1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.65 for Concurrent Versions System (CVS) 1.12.13. 4# 5# Report bugs to <bug-cvs@nongnu.org>. 6# 7# Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 8# 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 9# Free Software Foundation, Inc. 10# 11# This program is free software; you can redistribute it and/or modify 12# it under the terms of the GNU General Public License as published by 13# the Free Software Foundation; either version 2, or (at your option) 14# any later version. 15# 16# This program is distributed in the hope that it will be useful, 17# but WITHOUT ANY WARRANTY; without even the implied warranty of 18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19# GNU General Public License for more details. 20# 21# 22# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 23# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 24# Inc. 25# 26# 27# This configure script is free software; the Free Software Foundation 28# gives unlimited permission to copy, distribute and modify it. 29## -------------------- ## 30## M4sh Initialization. ## 31## -------------------- ## 32 33# Be more Bourne compatible 34DUALCASE=1; export DUALCASE # for MKS sh 35if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 36 emulate sh 37 NULLCMD=: 38 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 39 # is contrary to our usage. Disable this feature. 40 alias -g '${1+"$@"}'='"$@"' 41 setopt NO_GLOB_SUBST 42else 43 case `(set -o) 2>/dev/null` in #( 44 *posix*) : 45 set -o posix ;; #( 46 *) : 47 ;; 48esac 49fi 50 51 52as_nl=' 53' 54export as_nl 55# Printing a long string crashes Solaris 7 /usr/bin/printf. 56as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 57as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 58as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 59# Prefer a ksh shell builtin over an external printf program on Solaris, 60# but without wasting forks for bash or zsh. 61if test -z "$BASH_VERSION$ZSH_VERSION" \ 62 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 63 as_echo='print -r --' 64 as_echo_n='print -rn --' 65elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 66 as_echo='printf %s\n' 67 as_echo_n='printf %s' 68else 69 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 70 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 71 as_echo_n='/usr/ucb/echo -n' 72 else 73 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 74 as_echo_n_body='eval 75 arg=$1; 76 case $arg in #( 77 *"$as_nl"*) 78 expr "X$arg" : "X\\(.*\\)$as_nl"; 79 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 80 esac; 81 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 82 ' 83 export as_echo_n_body 84 as_echo_n='sh -c $as_echo_n_body as_echo' 85 fi 86 export as_echo_body 87 as_echo='sh -c $as_echo_body as_echo' 88fi 89 90# The user is always right. 91if test "${PATH_SEPARATOR+set}" != set; then 92 PATH_SEPARATOR=: 93 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 94 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 95 PATH_SEPARATOR=';' 96 } 97fi 98 99 100# IFS 101# We need space, tab and new line, in precisely that order. Quoting is 102# there to prevent editors from complaining about space-tab. 103# (If _AS_PATH_WALK were called with IFS unset, it would disable word 104# splitting by setting IFS to empty value.) 105IFS=" "" $as_nl" 106 107# Find who we are. Look in the path if we contain no directory separator. 108case $0 in #(( 109 *[\\/]* ) as_myself=$0 ;; 110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 111for as_dir in $PATH 112do 113 IFS=$as_save_IFS 114 test -z "$as_dir" && as_dir=. 115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 116 done 117IFS=$as_save_IFS 118 119 ;; 120esac 121# We did not find ourselves, most probably we were run as `sh COMMAND' 122# in which case we are not to be found in the path. 123if test "x$as_myself" = x; then 124 as_myself=$0 125fi 126if test ! -f "$as_myself"; then 127 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 128 exit 1 129fi 130 131# Unset variables that we do not need and which cause bugs (e.g. in 132# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 133# suppresses any "Segmentation fault" message there. '((' could 134# trigger a bug in pdksh 5.2.14. 135for as_var in BASH_ENV ENV MAIL MAILPATH 136do eval test x\${$as_var+set} = xset \ 137 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 138done 139PS1='$ ' 140PS2='> ' 141PS4='+ ' 142 143# NLS nuisances. 144LC_ALL=C 145export LC_ALL 146LANGUAGE=C 147export LANGUAGE 148 149# CDPATH. 150(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 151 152if test "x$CONFIG_SHELL" = x; then 153 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 154 emulate sh 155 NULLCMD=: 156 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 157 # is contrary to our usage. Disable this feature. 158 alias -g '\${1+\"\$@\"}'='\"\$@\"' 159 setopt NO_GLOB_SUBST 160else 161 case \`(set -o) 2>/dev/null\` in #( 162 *posix*) : 163 set -o posix ;; #( 164 *) : 165 ;; 166esac 167fi 168" 169 as_required="as_fn_return () { (exit \$1); } 170as_fn_success () { as_fn_return 0; } 171as_fn_failure () { as_fn_return 1; } 172as_fn_ret_success () { return 0; } 173as_fn_ret_failure () { return 1; } 174 175exitcode=0 176as_fn_success || { exitcode=1; echo as_fn_success failed.; } 177as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 178as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 179as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 180if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 181 182else 183 exitcode=1; echo positional parameters were not saved. 184fi 185test x\$exitcode = x0 || exit 1" 186 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 187 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 188 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 189 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 190test \$(( 1 + 1 )) = 2 || exit 1" 191 if (eval "$as_required") 2>/dev/null; then : 192 as_have_required=yes 193else 194 as_have_required=no 195fi 196 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 197 198else 199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 200as_found=false 201for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 202do 203 IFS=$as_save_IFS 204 test -z "$as_dir" && as_dir=. 205 as_found=: 206 case $as_dir in #( 207 /*) 208 for as_base in sh bash ksh sh5; do 209 # Try only shells that exist, to save several forks. 210 as_shell=$as_dir/$as_base 211 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 212 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 213 CONFIG_SHELL=$as_shell as_have_required=yes 214 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 215 break 2 216fi 217fi 218 done;; 219 esac 220 as_found=false 221done 222$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 224 CONFIG_SHELL=$SHELL as_have_required=yes 225fi; } 226IFS=$as_save_IFS 227 228 229 if test "x$CONFIG_SHELL" != x; then : 230 # We cannot yet assume a decent shell, so we have to provide a 231 # neutralization value for shells without unset; and this also 232 # works around shells that cannot unset nonexistent variables. 233 BASH_ENV=/dev/null 234 ENV=/dev/null 235 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 236 export CONFIG_SHELL 237 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 238fi 239 240 if test x$as_have_required = xno; then : 241 $as_echo "$0: This script requires a shell more modern than all" 242 $as_echo "$0: the shells that I found on your system." 243 if test x${ZSH_VERSION+set} = xset ; then 244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 245 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 246 else 247 $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-cvs@nongnu.org 248$0: about your system, including any error possibly output 249$0: before this message. Then install a modern shell, or 250$0: manually run the script under such a shell if you do 251$0: have one." 252 fi 253 exit 1 254fi 255fi 256fi 257SHELL=${CONFIG_SHELL-/bin/sh} 258export SHELL 259# Unset more variables known to interfere with behavior of common tools. 260CLICOLOR_FORCE= GREP_OPTIONS= 261unset CLICOLOR_FORCE GREP_OPTIONS 262 263## --------------------- ## 264## M4sh Shell Functions. ## 265## --------------------- ## 266# as_fn_unset VAR 267# --------------- 268# Portably unset VAR. 269as_fn_unset () 270{ 271 { eval $1=; unset $1;} 272} 273as_unset=as_fn_unset 274 275# as_fn_set_status STATUS 276# ----------------------- 277# Set $? to STATUS, without forking. 278as_fn_set_status () 279{ 280 return $1 281} # as_fn_set_status 282 283# as_fn_exit STATUS 284# ----------------- 285# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 286as_fn_exit () 287{ 288 set +e 289 as_fn_set_status $1 290 exit $1 291} # as_fn_exit 292 293# as_fn_mkdir_p 294# ------------- 295# Create "$as_dir" as a directory, including parents if necessary. 296as_fn_mkdir_p () 297{ 298 299 case $as_dir in #( 300 -*) as_dir=./$as_dir;; 301 esac 302 test -d "$as_dir" || eval $as_mkdir_p || { 303 as_dirs= 304 while :; do 305 case $as_dir in #( 306 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 307 *) as_qdir=$as_dir;; 308 esac 309 as_dirs="'$as_qdir' $as_dirs" 310 as_dir=`$as_dirname -- "$as_dir" || 311$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 312 X"$as_dir" : 'X\(//\)[^/]' \| \ 313 X"$as_dir" : 'X\(//\)$' \| \ 314 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 315$as_echo X"$as_dir" | 316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 317 s//\1/ 318 q 319 } 320 /^X\(\/\/\)[^/].*/{ 321 s//\1/ 322 q 323 } 324 /^X\(\/\/\)$/{ 325 s//\1/ 326 q 327 } 328 /^X\(\/\).*/{ 329 s//\1/ 330 q 331 } 332 s/.*/./; q'` 333 test -d "$as_dir" && break 334 done 335 test -z "$as_dirs" || eval "mkdir $as_dirs" 336 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 337 338 339} # as_fn_mkdir_p 340# as_fn_append VAR VALUE 341# ---------------------- 342# Append the text in VALUE to the end of the definition contained in VAR. Take 343# advantage of any shell optimizations that allow amortized linear growth over 344# repeated appends, instead of the typical quadratic growth present in naive 345# implementations. 346if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 347 eval 'as_fn_append () 348 { 349 eval $1+=\$2 350 }' 351else 352 as_fn_append () 353 { 354 eval $1=\$$1\$2 355 } 356fi # as_fn_append 357 358# as_fn_arith ARG... 359# ------------------ 360# Perform arithmetic evaluation on the ARGs, and store the result in the 361# global $as_val. Take advantage of shells that can avoid forks. The arguments 362# must be portable across $(()) and expr. 363if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 364 eval 'as_fn_arith () 365 { 366 as_val=$(( $* )) 367 }' 368else 369 as_fn_arith () 370 { 371 as_val=`expr "$@" || test $? -eq 1` 372 } 373fi # as_fn_arith 374 375 376# as_fn_error ERROR [LINENO LOG_FD] 377# --------------------------------- 378# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 379# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 380# script with status $?, using 1 if that was 0. 381as_fn_error () 382{ 383 as_status=$?; test $as_status -eq 0 && as_status=1 384 if test "$3"; then 385 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 386 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 387 fi 388 $as_echo "$as_me: error: $1" >&2 389 as_fn_exit $as_status 390} # as_fn_error 391 392if expr a : '\(a\)' >/dev/null 2>&1 && 393 test "X`expr 00001 : '.*\(...\)'`" = X001; then 394 as_expr=expr 395else 396 as_expr=false 397fi 398 399if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 400 as_basename=basename 401else 402 as_basename=false 403fi 404 405if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 406 as_dirname=dirname 407else 408 as_dirname=false 409fi 410 411as_me=`$as_basename -- "$0" || 412$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 413 X"$0" : 'X\(//\)$' \| \ 414 X"$0" : 'X\(/\)' \| . 2>/dev/null || 415$as_echo X/"$0" | 416 sed '/^.*\/\([^/][^/]*\)\/*$/{ 417 s//\1/ 418 q 419 } 420 /^X\/\(\/\/\)$/{ 421 s//\1/ 422 q 423 } 424 /^X\/\(\/\).*/{ 425 s//\1/ 426 q 427 } 428 s/.*/./; q'` 429 430# Avoid depending upon Character Ranges. 431as_cr_letters='abcdefghijklmnopqrstuvwxyz' 432as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 433as_cr_Letters=$as_cr_letters$as_cr_LETTERS 434as_cr_digits='0123456789' 435as_cr_alnum=$as_cr_Letters$as_cr_digits 436 437 438 as_lineno_1=$LINENO as_lineno_1a=$LINENO 439 as_lineno_2=$LINENO as_lineno_2a=$LINENO 440 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 441 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 442 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 443 sed -n ' 444 p 445 /[$]LINENO/= 446 ' <$as_myself | 447 sed ' 448 s/[$]LINENO.*/&-/ 449 t lineno 450 b 451 :lineno 452 N 453 :loop 454 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 455 t loop 456 s/-\n.*// 457 ' >$as_me.lineno && 458 chmod +x "$as_me.lineno" || 459 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 460 461 # Don't try to exec as it changes $[0], causing all sort of problems 462 # (the dirname of $[0] is not the place where we might find the 463 # original and so on. Autoconf is especially sensitive to this). 464 . "./$as_me.lineno" 465 # Exit status is that of the last command. 466 exit 467} 468 469ECHO_C= ECHO_N= ECHO_T= 470case `echo -n x` in #((((( 471-n*) 472 case `echo 'xy\c'` in 473 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 474 xy) ECHO_C='\c';; 475 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 476 ECHO_T=' ';; 477 esac;; 478*) 479 ECHO_N='-n';; 480esac 481 482rm -f conf$$ conf$$.exe conf$$.file 483if test -d conf$$.dir; then 484 rm -f conf$$.dir/conf$$.file 485else 486 rm -f conf$$.dir 487 mkdir conf$$.dir 2>/dev/null 488fi 489if (echo >conf$$.file) 2>/dev/null; then 490 if ln -s conf$$.file conf$$ 2>/dev/null; then 491 as_ln_s='ln -s' 492 # ... but there are two gotchas: 493 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 494 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 495 # In both cases, we have to default to `cp -p'. 496 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 497 as_ln_s='cp -p' 498 elif ln conf$$.file conf$$ 2>/dev/null; then 499 as_ln_s=ln 500 else 501 as_ln_s='cp -p' 502 fi 503else 504 as_ln_s='cp -p' 505fi 506rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 507rmdir conf$$.dir 2>/dev/null 508 509if mkdir -p . 2>/dev/null; then 510 as_mkdir_p='mkdir -p "$as_dir"' 511else 512 test -d ./-p && rmdir ./-p 513 as_mkdir_p=false 514fi 515 516if test -x / >/dev/null 2>&1; then 517 as_test_x='test -x' 518else 519 if ls -dL / >/dev/null 2>&1; then 520 as_ls_L_option=L 521 else 522 as_ls_L_option= 523 fi 524 as_test_x=' 525 eval sh -c '\'' 526 if test -d "$1"; then 527 test -d "$1/."; 528 else 529 case $1 in #( 530 -*)set "./$1";; 531 esac; 532 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 533 ???[sx]*):;;*)false;;esac;fi 534 '\'' sh 535 ' 536fi 537as_executable_p=$as_test_x 538 539# Sed expression to map a string onto a valid CPP name. 540as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 541 542# Sed expression to map a string onto a valid variable name. 543as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 544 545 546test -n "$DJDIR" || exec 7<&0 </dev/null 547exec 6>&1 548 549# Name of the host. 550# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 551# so uname gets run too. 552ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 553 554# 555# Initializations. 556# 557ac_default_prefix=/usr/local 558ac_clean_files= 559ac_config_libobj_dir=. 560LIBOBJS= 561cross_compiling=no 562subdirs= 563MFLAGS= 564MAKEFLAGS= 565 566# Identity of this package. 567PACKAGE_NAME='Concurrent Versions System (CVS)' 568PACKAGE_TARNAME='cvs' 569PACKAGE_VERSION='1.12.13' 570PACKAGE_STRING='Concurrent Versions System (CVS) 1.12.13' 571PACKAGE_BUGREPORT='bug-cvs@nongnu.org' 572PACKAGE_URL='' 573 574ac_unique_file="src/cvs.h" 575# Factoring default headers for most tests. 576ac_includes_default="\ 577#include <stdio.h> 578#ifdef HAVE_SYS_TYPES_H 579# include <sys/types.h> 580#endif 581#ifdef HAVE_SYS_STAT_H 582# include <sys/stat.h> 583#endif 584#ifdef STDC_HEADERS 585# include <stdlib.h> 586# include <stddef.h> 587#else 588# ifdef HAVE_STDLIB_H 589# include <stdlib.h> 590# endif 591#endif 592#ifdef HAVE_STRING_H 593# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 594# include <memory.h> 595# endif 596# include <string.h> 597#endif 598#ifdef HAVE_STRINGS_H 599# include <strings.h> 600#endif 601#ifdef HAVE_INTTYPES_H 602# include <inttypes.h> 603#endif 604#ifdef HAVE_STDINT_H 605# include <stdint.h> 606#endif 607#ifdef HAVE_UNISTD_H 608# include <unistd.h> 609#endif" 610 611gl_func_list= 612gl_header_list= 613ac_subst_vars='am__EXEEXT_FALSE 614am__EXEEXT_TRUE 615LTLIBOBJS 616EDITOR 617RSH_DFLT 618with_default_rsh 619KRB4 620cvs_client_objects 621EOVERFLOW 622STDINT_H 623HAVE_LONG_LONG_64BIT 624HAVE_LONG_64BIT 625LIB_NANOSLEEP 626GLOB_H 627GETOPT_H 628LIB_CLOCK_GETTIME 629YFLAGS 630YACC 631FNMATCH_H 632HAVE__BOOL 633STDBOOL_H 634ALLOCA_H 635ALLOCA 636LIBOBJS 637MAKE_TARGETS_IN_VPATH_FALSE 638MAKE_TARGETS_IN_VPATH_TRUE 639TEXI2DVI 640PS2PDF 641ROFF 642PR 643SENDMAIL 644MKTEMP 645CSH 646PERL 647LN_S 648RANLIB 649EGREP 650GREP 651CPP 652am__fastdepCC_FALSE 653am__fastdepCC_TRUE 654CCDEPMODE 655AMDEPBACKSLASH 656AMDEP_FALSE 657AMDEP_TRUE 658am__quote 659am__include 660DEPDIR 661OBJEXT 662EXEEXT 663ac_ct_CC 664CPPFLAGS 665LDFLAGS 666CFLAGS 667CC 668MAINT 669MAINTAINER_MODE_FALSE 670MAINTAINER_MODE_TRUE 671ac_prefix_program 672am__untar 673am__tar 674AMTAR 675am__leading_dot 676SET_MAKE 677AWK 678mkdir_p 679MKDIR_P 680INSTALL_STRIP_PROGRAM 681STRIP 682install_sh 683MAKEINFO 684AUTOHEADER 685AUTOMAKE 686AUTOCONF 687ACLOCAL 688VERSION 689PACKAGE 690CYGPATH_W 691am__isrc 692INSTALL_DATA 693INSTALL_SCRIPT 694INSTALL_PROGRAM 695target_alias 696host_alias 697build_alias 698LIBS 699ECHO_T 700ECHO_N 701ECHO_C 702DEFS 703mandir 704localedir 705libdir 706psdir 707pdfdir 708dvidir 709htmldir 710infodir 711docdir 712oldincludedir 713includedir 714localstatedir 715sharedstatedir 716sysconfdir 717datadir 718datarootdir 719libexecdir 720sbindir 721bindir 722program_transform_name 723prefix 724exec_prefix 725PACKAGE_URL 726PACKAGE_BUGREPORT 727PACKAGE_STRING 728PACKAGE_VERSION 729PACKAGE_TARNAME 730PACKAGE_NAME 731PATH_SEPARATOR 732SHELL' 733ac_subst_files='MKTEMP_SH_FUNCTION' 734ac_user_opts=' 735enable_option_checking 736enable_maintainer_mode 737enable_dependency_tracking 738enable_largefile 739with_included_regex 740with_krb4 741with_gssapi 742with_rsh 743with_editor 744with_hardcoded_pam_service_name 745with_tmpdir 746with_umask 747with_cvs_admin_group 748enable_cvs_ndbm 749enable_client 750enable_password_authenticated_client 751enable_server 752enable_server_flow_control 753enable_proxy 754enable_pam 755enable_case_sensitivity 756enable_encryption 757enable_force_editor 758enable_lock_compatibility 759enable_rootcommit 760enable_old_info_support 761enable_config_override 762' 763 ac_precious_vars='build_alias 764host_alias 765target_alias 766CC 767CFLAGS 768LDFLAGS 769LIBS 770CPPFLAGS 771CPP 772YACC 773YFLAGS 774EDITOR' 775 776 777# Initialize some variables set by options. 778ac_init_help= 779ac_init_version=false 780ac_unrecognized_opts= 781ac_unrecognized_sep= 782# The variables have the same names as the options, with 783# dashes changed to underlines. 784cache_file=/dev/null 785exec_prefix=NONE 786no_create= 787no_recursion= 788prefix=NONE 789program_prefix=NONE 790program_suffix=NONE 791program_transform_name=s,x,x, 792silent= 793site= 794srcdir= 795verbose= 796x_includes=NONE 797x_libraries=NONE 798 799# Installation directory options. 800# These are left unexpanded so users can "make install exec_prefix=/foo" 801# and all the variables that are supposed to be based on exec_prefix 802# by default will actually change. 803# Use braces instead of parens because sh, perl, etc. also accept them. 804# (The list follows the same order as the GNU Coding Standards.) 805bindir='${exec_prefix}/bin' 806sbindir='${exec_prefix}/sbin' 807libexecdir='${exec_prefix}/libexec' 808datarootdir='${prefix}/share' 809datadir='${datarootdir}' 810sysconfdir='${prefix}/etc' 811sharedstatedir='${prefix}/com' 812localstatedir='${prefix}/var' 813includedir='${prefix}/include' 814oldincludedir='/usr/include' 815docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 816infodir='${datarootdir}/info' 817htmldir='${docdir}' 818dvidir='${docdir}' 819pdfdir='${docdir}' 820psdir='${docdir}' 821libdir='${exec_prefix}/lib' 822localedir='${datarootdir}/locale' 823mandir='${datarootdir}/man' 824 825ac_prev= 826ac_dashdash= 827for ac_option 828do 829 # If the previous option needs an argument, assign it. 830 if test -n "$ac_prev"; then 831 eval $ac_prev=\$ac_option 832 ac_prev= 833 continue 834 fi 835 836 case $ac_option in 837 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 838 *) ac_optarg=yes ;; 839 esac 840 841 # Accept the important Cygnus configure options, so we can diagnose typos. 842 843 case $ac_dashdash$ac_option in 844 --) 845 ac_dashdash=yes ;; 846 847 -bindir | --bindir | --bindi | --bind | --bin | --bi) 848 ac_prev=bindir ;; 849 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 850 bindir=$ac_optarg ;; 851 852 -build | --build | --buil | --bui | --bu) 853 ac_prev=build_alias ;; 854 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 855 build_alias=$ac_optarg ;; 856 857 -cache-file | --cache-file | --cache-fil | --cache-fi \ 858 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 859 ac_prev=cache_file ;; 860 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 861 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 862 cache_file=$ac_optarg ;; 863 864 --config-cache | -C) 865 cache_file=config.cache ;; 866 867 -datadir | --datadir | --datadi | --datad) 868 ac_prev=datadir ;; 869 -datadir=* | --datadir=* | --datadi=* | --datad=*) 870 datadir=$ac_optarg ;; 871 872 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 873 | --dataroo | --dataro | --datar) 874 ac_prev=datarootdir ;; 875 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 876 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 877 datarootdir=$ac_optarg ;; 878 879 -disable-* | --disable-*) 880 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 881 # Reject names that are not valid shell variable names. 882 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 883 as_fn_error "invalid feature name: $ac_useropt" 884 ac_useropt_orig=$ac_useropt 885 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 886 case $ac_user_opts in 887 *" 888"enable_$ac_useropt" 889"*) ;; 890 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 891 ac_unrecognized_sep=', ';; 892 esac 893 eval enable_$ac_useropt=no ;; 894 895 -docdir | --docdir | --docdi | --doc | --do) 896 ac_prev=docdir ;; 897 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 898 docdir=$ac_optarg ;; 899 900 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 901 ac_prev=dvidir ;; 902 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 903 dvidir=$ac_optarg ;; 904 905 -enable-* | --enable-*) 906 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 907 # Reject names that are not valid shell variable names. 908 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 909 as_fn_error "invalid feature name: $ac_useropt" 910 ac_useropt_orig=$ac_useropt 911 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 912 case $ac_user_opts in 913 *" 914"enable_$ac_useropt" 915"*) ;; 916 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 917 ac_unrecognized_sep=', ';; 918 esac 919 eval enable_$ac_useropt=\$ac_optarg ;; 920 921 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 922 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 923 | --exec | --exe | --ex) 924 ac_prev=exec_prefix ;; 925 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 926 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 927 | --exec=* | --exe=* | --ex=*) 928 exec_prefix=$ac_optarg ;; 929 930 -gas | --gas | --ga | --g) 931 # Obsolete; use --with-gas. 932 with_gas=yes ;; 933 934 -help | --help | --hel | --he | -h) 935 ac_init_help=long ;; 936 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 937 ac_init_help=recursive ;; 938 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 939 ac_init_help=short ;; 940 941 -host | --host | --hos | --ho) 942 ac_prev=host_alias ;; 943 -host=* | --host=* | --hos=* | --ho=*) 944 host_alias=$ac_optarg ;; 945 946 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 947 ac_prev=htmldir ;; 948 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 949 | --ht=*) 950 htmldir=$ac_optarg ;; 951 952 -includedir | --includedir | --includedi | --included | --include \ 953 | --includ | --inclu | --incl | --inc) 954 ac_prev=includedir ;; 955 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 956 | --includ=* | --inclu=* | --incl=* | --inc=*) 957 includedir=$ac_optarg ;; 958 959 -infodir | --infodir | --infodi | --infod | --info | --inf) 960 ac_prev=infodir ;; 961 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 962 infodir=$ac_optarg ;; 963 964 -libdir | --libdir | --libdi | --libd) 965 ac_prev=libdir ;; 966 -libdir=* | --libdir=* | --libdi=* | --libd=*) 967 libdir=$ac_optarg ;; 968 969 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 970 | --libexe | --libex | --libe) 971 ac_prev=libexecdir ;; 972 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 973 | --libexe=* | --libex=* | --libe=*) 974 libexecdir=$ac_optarg ;; 975 976 -localedir | --localedir | --localedi | --localed | --locale) 977 ac_prev=localedir ;; 978 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 979 localedir=$ac_optarg ;; 980 981 -localstatedir | --localstatedir | --localstatedi | --localstated \ 982 | --localstate | --localstat | --localsta | --localst | --locals) 983 ac_prev=localstatedir ;; 984 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 985 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 986 localstatedir=$ac_optarg ;; 987 988 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 989 ac_prev=mandir ;; 990 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 991 mandir=$ac_optarg ;; 992 993 -nfp | --nfp | --nf) 994 # Obsolete; use --without-fp. 995 with_fp=no ;; 996 997 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 998 | --no-cr | --no-c | -n) 999 no_create=yes ;; 1000 1001 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1002 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1003 no_recursion=yes ;; 1004 1005 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1006 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1007 | --oldin | --oldi | --old | --ol | --o) 1008 ac_prev=oldincludedir ;; 1009 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1010 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1011 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1012 oldincludedir=$ac_optarg ;; 1013 1014 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1015 ac_prev=prefix ;; 1016 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1017 prefix=$ac_optarg ;; 1018 1019 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1020 | --program-pre | --program-pr | --program-p) 1021 ac_prev=program_prefix ;; 1022 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1023 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1024 program_prefix=$ac_optarg ;; 1025 1026 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1027 | --program-suf | --program-su | --program-s) 1028 ac_prev=program_suffix ;; 1029 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1030 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1031 program_suffix=$ac_optarg ;; 1032 1033 -program-transform-name | --program-transform-name \ 1034 | --program-transform-nam | --program-transform-na \ 1035 | --program-transform-n | --program-transform- \ 1036 | --program-transform | --program-transfor \ 1037 | --program-transfo | --program-transf \ 1038 | --program-trans | --program-tran \ 1039 | --progr-tra | --program-tr | --program-t) 1040 ac_prev=program_transform_name ;; 1041 -program-transform-name=* | --program-transform-name=* \ 1042 | --program-transform-nam=* | --program-transform-na=* \ 1043 | --program-transform-n=* | --program-transform-=* \ 1044 | --program-transform=* | --program-transfor=* \ 1045 | --program-transfo=* | --program-transf=* \ 1046 | --program-trans=* | --program-tran=* \ 1047 | --progr-tra=* | --program-tr=* | --program-t=*) 1048 program_transform_name=$ac_optarg ;; 1049 1050 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1051 ac_prev=pdfdir ;; 1052 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1053 pdfdir=$ac_optarg ;; 1054 1055 -psdir | --psdir | --psdi | --psd | --ps) 1056 ac_prev=psdir ;; 1057 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1058 psdir=$ac_optarg ;; 1059 1060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1061 | -silent | --silent | --silen | --sile | --sil) 1062 silent=yes ;; 1063 1064 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1065 ac_prev=sbindir ;; 1066 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1067 | --sbi=* | --sb=*) 1068 sbindir=$ac_optarg ;; 1069 1070 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1071 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1072 | --sharedst | --shareds | --shared | --share | --shar \ 1073 | --sha | --sh) 1074 ac_prev=sharedstatedir ;; 1075 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1076 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1077 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1078 | --sha=* | --sh=*) 1079 sharedstatedir=$ac_optarg ;; 1080 1081 -site | --site | --sit) 1082 ac_prev=site ;; 1083 -site=* | --site=* | --sit=*) 1084 site=$ac_optarg ;; 1085 1086 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1087 ac_prev=srcdir ;; 1088 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1089 srcdir=$ac_optarg ;; 1090 1091 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1092 | --syscon | --sysco | --sysc | --sys | --sy) 1093 ac_prev=sysconfdir ;; 1094 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1095 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1096 sysconfdir=$ac_optarg ;; 1097 1098 -target | --target | --targe | --targ | --tar | --ta | --t) 1099 ac_prev=target_alias ;; 1100 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1101 target_alias=$ac_optarg ;; 1102 1103 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1104 verbose=yes ;; 1105 1106 -version | --version | --versio | --versi | --vers | -V) 1107 ac_init_version=: ;; 1108 1109 -with-* | --with-*) 1110 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1111 # Reject names that are not valid shell variable names. 1112 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1113 as_fn_error "invalid package name: $ac_useropt" 1114 ac_useropt_orig=$ac_useropt 1115 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1116 case $ac_user_opts in 1117 *" 1118"with_$ac_useropt" 1119"*) ;; 1120 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1121 ac_unrecognized_sep=', ';; 1122 esac 1123 eval with_$ac_useropt=\$ac_optarg ;; 1124 1125 -without-* | --without-*) 1126 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1127 # Reject names that are not valid shell variable names. 1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1129 as_fn_error "invalid package name: $ac_useropt" 1130 ac_useropt_orig=$ac_useropt 1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1132 case $ac_user_opts in 1133 *" 1134"with_$ac_useropt" 1135"*) ;; 1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1137 ac_unrecognized_sep=', ';; 1138 esac 1139 eval with_$ac_useropt=no ;; 1140 1141 --x) 1142 # Obsolete; use --with-x. 1143 with_x=yes ;; 1144 1145 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1146 | --x-incl | --x-inc | --x-in | --x-i) 1147 ac_prev=x_includes ;; 1148 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1149 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1150 x_includes=$ac_optarg ;; 1151 1152 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1153 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1154 ac_prev=x_libraries ;; 1155 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1156 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1157 x_libraries=$ac_optarg ;; 1158 1159 -*) as_fn_error "unrecognized option: \`$ac_option' 1160Try \`$0 --help' for more information." 1161 ;; 1162 1163 *=*) 1164 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1165 # Reject names that are not valid shell variable names. 1166 case $ac_envvar in #( 1167 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1168 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1169 esac 1170 eval $ac_envvar=\$ac_optarg 1171 export $ac_envvar ;; 1172 1173 *) 1174 # FIXME: should be removed in autoconf 3.0. 1175 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1176 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1177 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1178 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1179 ;; 1180 1181 esac 1182done 1183 1184if test -n "$ac_prev"; then 1185 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1186 as_fn_error "missing argument to $ac_option" 1187fi 1188 1189if test -n "$ac_unrecognized_opts"; then 1190 case $enable_option_checking in 1191 no) ;; 1192 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1193 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1194 esac 1195fi 1196 1197# Check all directory arguments for consistency. 1198for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1199 datadir sysconfdir sharedstatedir localstatedir includedir \ 1200 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1201 libdir localedir mandir 1202do 1203 eval ac_val=\$$ac_var 1204 # Remove trailing slashes. 1205 case $ac_val in 1206 */ ) 1207 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1208 eval $ac_var=\$ac_val;; 1209 esac 1210 # Be sure to have absolute directory names. 1211 case $ac_val in 1212 [\\/$]* | ?:[\\/]* ) continue;; 1213 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1214 esac 1215 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1216done 1217 1218# There might be people who depend on the old broken behavior: `$host' 1219# used to hold the argument of --host etc. 1220# FIXME: To remove some day. 1221build=$build_alias 1222host=$host_alias 1223target=$target_alias 1224 1225# FIXME: To remove some day. 1226if test "x$host_alias" != x; then 1227 if test "x$build_alias" = x; then 1228 cross_compiling=maybe 1229 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1230 If a cross compiler is detected then cross compile mode will be used." >&2 1231 elif test "x$build_alias" != "x$host_alias"; then 1232 cross_compiling=yes 1233 fi 1234fi 1235 1236ac_tool_prefix= 1237test -n "$host_alias" && ac_tool_prefix=$host_alias- 1238 1239test "$silent" = yes && exec 6>/dev/null 1240 1241 1242ac_pwd=`pwd` && test -n "$ac_pwd" && 1243ac_ls_di=`ls -di .` && 1244ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1245 as_fn_error "working directory cannot be determined" 1246test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1247 as_fn_error "pwd does not report name of working directory" 1248 1249 1250# Find the source files, if location was not specified. 1251if test -z "$srcdir"; then 1252 ac_srcdir_defaulted=yes 1253 # Try the directory containing this script, then the parent directory. 1254 ac_confdir=`$as_dirname -- "$as_myself" || 1255$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1256 X"$as_myself" : 'X\(//\)[^/]' \| \ 1257 X"$as_myself" : 'X\(//\)$' \| \ 1258 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1259$as_echo X"$as_myself" | 1260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1261 s//\1/ 1262 q 1263 } 1264 /^X\(\/\/\)[^/].*/{ 1265 s//\1/ 1266 q 1267 } 1268 /^X\(\/\/\)$/{ 1269 s//\1/ 1270 q 1271 } 1272 /^X\(\/\).*/{ 1273 s//\1/ 1274 q 1275 } 1276 s/.*/./; q'` 1277 srcdir=$ac_confdir 1278 if test ! -r "$srcdir/$ac_unique_file"; then 1279 srcdir=.. 1280 fi 1281else 1282 ac_srcdir_defaulted=no 1283fi 1284if test ! -r "$srcdir/$ac_unique_file"; then 1285 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1286 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1287fi 1288ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1289ac_abs_confdir=`( 1290 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1291 pwd)` 1292# When building in place, set srcdir=. 1293if test "$ac_abs_confdir" = "$ac_pwd"; then 1294 srcdir=. 1295fi 1296# Remove unnecessary trailing slashes from srcdir. 1297# Double slashes in file names in object file debugging info 1298# mess up M-x gdb in Emacs. 1299case $srcdir in 1300*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1301esac 1302for ac_var in $ac_precious_vars; do 1303 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1304 eval ac_env_${ac_var}_value=\$${ac_var} 1305 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1306 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1307done 1308 1309# 1310# Report the --help message. 1311# 1312if test "$ac_init_help" = "long"; then 1313 # Omit some internal or obsolete options to make the list less imposing. 1314 # This message is too long to be a string in the A/UX 3.1 sh. 1315 cat <<_ACEOF 1316\`configure' configures Concurrent Versions System (CVS) 1.12.13 to adapt to many kinds of systems. 1317 1318Usage: $0 [OPTION]... [VAR=VALUE]... 1319 1320To assign environment variables (e.g., CC, CFLAGS...), specify them as 1321VAR=VALUE. See below for descriptions of some of the useful variables. 1322 1323Defaults for the options are specified in brackets. 1324 1325Configuration: 1326 -h, --help display this help and exit 1327 --help=short display options specific to this package 1328 --help=recursive display the short help of all the included packages 1329 -V, --version display version information and exit 1330 -q, --quiet, --silent do not print \`checking...' messages 1331 --cache-file=FILE cache test results in FILE [disabled] 1332 -C, --config-cache alias for \`--cache-file=config.cache' 1333 -n, --no-create do not create output files 1334 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1335 1336Installation directories: 1337 --prefix=PREFIX install architecture-independent files in PREFIX 1338 [$ac_default_prefix] 1339 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1340 [PREFIX] 1341 1342By default, \`make install' will install all the files in 1343\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1344an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1345for instance \`--prefix=\$HOME'. 1346 1347For better control, use the options below. 1348 1349Fine tuning of the installation directories: 1350 --bindir=DIR user executables [EPREFIX/bin] 1351 --sbindir=DIR system admin executables [EPREFIX/sbin] 1352 --libexecdir=DIR program executables [EPREFIX/libexec] 1353 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1354 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1355 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1356 --libdir=DIR object code libraries [EPREFIX/lib] 1357 --includedir=DIR C header files [PREFIX/include] 1358 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1359 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1360 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1361 --infodir=DIR info documentation [DATAROOTDIR/info] 1362 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1363 --mandir=DIR man documentation [DATAROOTDIR/man] 1364 --docdir=DIR documentation root [DATAROOTDIR/doc/cvs] 1365 --htmldir=DIR html documentation [DOCDIR] 1366 --dvidir=DIR dvi documentation [DOCDIR] 1367 --pdfdir=DIR pdf documentation [DOCDIR] 1368 --psdir=DIR ps documentation [DOCDIR] 1369_ACEOF 1370 1371 cat <<\_ACEOF 1372 1373Program names: 1374 --program-prefix=PREFIX prepend PREFIX to installed program names 1375 --program-suffix=SUFFIX append SUFFIX to installed program names 1376 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1377_ACEOF 1378fi 1379 1380if test -n "$ac_init_help"; then 1381 case $ac_init_help in 1382 short | recursive ) echo "Configuration of Concurrent Versions System (CVS) 1.12.13:";; 1383 esac 1384 cat <<\_ACEOF 1385 1386Optional Features: 1387 --disable-option-checking ignore unrecognized --enable/--with options 1388 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1389 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1390 --enable-maintainer-mode enable make rules and dependencies not useful 1391 (and sometimes confusing) to the casual installer 1392 --disable-dependency-tracking speeds up one-time build 1393 --enable-dependency-tracking do not reject slow dependency extractors 1394 --disable-largefile omit support for large files 1395 --enable-cvs-ndbm Use the NDBM library distributed with CVS rather 1396 than attempting to use a system NDBM library. 1397 Disabling this may not work. (default) 1398 --enable-client Include code for running as a remote client 1399 (default) 1400 --enable-password-authenticated-client 1401 Enable pserver as a remote access method in the CVS 1402 client (default) 1403 --enable-server Include code for running as a server (default) 1404 --enable-server-flow-control 1405 If you are working with a large remote repository 1406 and a 'cvs checkout' is swamping your network and 1407 memory, define these to enable flow control. You may 1408 optionally pass a low water mark in bytes and a high 1409 water mark in bytes, separated by commas. (default 1410 is enabled 1M,2M) 1411 --enable-proxy Include code for running as a transparent proxy 1412 server. Disabling this may produce a slight 1413 performance gain on some systems, at the expense of 1414 write proxy support. (default) 1415 --enable-pam Use to enable system authentication with PAM instead 1416 of using the simple getpwnam interface. This allows 1417 authentication (in theory) with any PAM module, e.g. 1418 on systems with shadow passwords or via LDAP 1419 --enable-case-sensitivity 1420 Force CVS to expect a case sensitive file system. 1421 Enabling this on a case insensitive system should 1422 have little effect on the server or client 1423 operation, though client users may ocassionally be 1424 suprised that the CVS server appears to be case 1425 sensitive. Disabling this for a case sensitive 1426 server disables server support for case insensitive 1427 clients, which can confuse all users of case 1428 insensitive clients contacting the server. Disabling 1429 this for a case sensitive client will cause the 1430 client to ask servers to behave case insensitively, 1431 which could cause confusion for users, but also 1432 probably no real harm. (default autoselects based on 1433 the case sensitivity of the file system containing 1434 the current working directory) 1435 --enable-encryption Enable encryption support (disabled by default) 1436 --enable-force-editor When committing or importing files, you must enter a 1437 log message. Normally, you can do this either via 1438 the -m flag on the command line, the -F flag on the 1439 command line, or an editor will be started for you. 1440 If you like to use logging templates (the rcsinfo 1441 file within the $CVSROOT/CVSROOT directory), you 1442 might want to force people to use the editor even if 1443 they specify a message with -m or -F. 1444 --enable-force-editor will cause the -m or -F 1445 message to be appended to the temp file when the 1446 editor is started. (disabled by default) 1447 --enable-lock-compatibility 1448 Include locking code which prevents versions of CVS 1449 earlier than 1.12.4 directly accessing the same 1450 repositiory as this executable from ignoring this 1451 executable's promotable read locks. If only CVS 1452 versions 1.12.4 and later will be accessing your 1453 repository directly (as a server or locally), you 1454 can safely disable this option in return for fewer 1455 disk accesses and a small speed increase. Disabling 1456 this option when versions of CVS earlier than 1,12,4 1457 _will_ be accessing your repository, however, is 1458 *VERY* *VERY* *VERY* dangerous and could result in 1459 data loss. (enabled by default) 1460 --enable-rootcommit Allow the root user to commit files (disabled by 1461 default) 1462 --enable-old-info-format-support 1463 Enable support for the pre 1.12.1 *info scripting 1464 hook format strings. Disable this option for a 1465 smaller executable once your scripting hooks have 1466 been updated to use the new *info format strings 1467 (default). 1468 --enable-config-override 1469 Set to a comma-seperated list of paths to 1470 directories (designated by trailing `/') and files, 1471 specifies the path prefixes (for directories) and 1472 paths to files the CVS server commands will allow 1473 configuration to be read from. Specify 1474 `--enable-config-override=no' to disable config file 1475 overrides completely and 1476 `--enable-config-override=/' or simply 1477 `--enable-config-override' to allow all paths. 1478 (Defaults to `SYSCONFDIR/cvs.conf,SYSCONFDIR/cvs/') 1479 1480Optional Packages: 1481 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1482 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1483 --without-included-regex 1484 don't compile regex; this is the default on systems 1485 with recent-enough versions of the GNU C Library 1486 (use with caution on other systems) 1487 --with-krb4 Kerberos 4 directory (default /usr/kerberos) 1488 --with-gssapi GSSAPI directory (default autoselects) 1489 --with-rsh The default remote shell CVS will use for :ext: 1490 transport (default ssh) 1491 --with-editor The default text editor CVS should use for log 1492 messages (default autoselects) 1493 --with-hardcoded-pam-service-name 1494 Use this to hard code a service name for PAM CVS 1495 authentication. The special name, `program_name', 1496 will cause CVS to use whatever name it was invoked 1497 as as the service name. (defaults to `cvs') 1498 --with-tmpdir The temporary directory CVS should use as a default 1499 (default autoselects) 1500 --with-umask Set the umask CVS will use by default in the 1501 repository (default 002) 1502 --with-cvs-admin-group=GROUP 1503 The CVS admin command is restricted to the members 1504 of this group. If this group does not exist, all 1505 users are allowed to run CVS admin. To disable the 1506 CVS admin command for all users, create an empty 1507 group by specifying the --with-cvs-admin-group= 1508 option. To disable access control for CVS admin, run 1509 configure with the --without-cvs-admin-group option. 1510 (default 'cvsadmin') 1511 1512Some influential environment variables: 1513 CC C compiler command 1514 CFLAGS C compiler flags 1515 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1516 nonstandard directory <lib dir> 1517 LIBS libraries to pass to the linker, e.g. -l<library> 1518 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1519 you have headers in a nonstandard directory <include dir> 1520 CPP C preprocessor 1521 YACC The `Yet Another C Compiler' implementation to use. Defaults to 1522 `bison -y'. Values other than `bison -y' will most likely break 1523 on most systems. 1524 YFLAGS YFLAGS contains the list arguments that will be passed by 1525 default to Bison. This script will default YFLAGS to the empty 1526 string to avoid a default value of `-d' given by some make 1527 applications. 1528 EDITOR The text editor CVS will use by default for log messages. 1529 1530Use these variables to override the choices made by `configure' or to help 1531it to find libraries and programs with nonstandard names/locations. 1532 1533Report bugs to <bug-cvs@nongnu.org>. 1534_ACEOF 1535ac_status=$? 1536fi 1537 1538if test "$ac_init_help" = "recursive"; then 1539 # If there are subdirs, report their specific --help. 1540 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1541 test -d "$ac_dir" || 1542 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1543 continue 1544 ac_builddir=. 1545 1546case "$ac_dir" in 1547.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1548*) 1549 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1550 # A ".." for each directory in $ac_dir_suffix. 1551 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1552 case $ac_top_builddir_sub in 1553 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1554 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1555 esac ;; 1556esac 1557ac_abs_top_builddir=$ac_pwd 1558ac_abs_builddir=$ac_pwd$ac_dir_suffix 1559# for backward compatibility: 1560ac_top_builddir=$ac_top_build_prefix 1561 1562case $srcdir in 1563 .) # We are building in place. 1564 ac_srcdir=. 1565 ac_top_srcdir=$ac_top_builddir_sub 1566 ac_abs_top_srcdir=$ac_pwd ;; 1567 [\\/]* | ?:[\\/]* ) # Absolute name. 1568 ac_srcdir=$srcdir$ac_dir_suffix; 1569 ac_top_srcdir=$srcdir 1570 ac_abs_top_srcdir=$srcdir ;; 1571 *) # Relative name. 1572 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1573 ac_top_srcdir=$ac_top_build_prefix$srcdir 1574 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1575esac 1576ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1577 1578 cd "$ac_dir" || { ac_status=$?; continue; } 1579 # Check for guested configure. 1580 if test -f "$ac_srcdir/configure.gnu"; then 1581 echo && 1582 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1583 elif test -f "$ac_srcdir/configure"; then 1584 echo && 1585 $SHELL "$ac_srcdir/configure" --help=recursive 1586 else 1587 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1588 fi || ac_status=$? 1589 cd "$ac_pwd" || { ac_status=$?; break; } 1590 done 1591fi 1592 1593test -n "$ac_init_help" && exit $ac_status 1594if $ac_init_version; then 1595 cat <<\_ACEOF 1596Concurrent Versions System (CVS) configure 1.12.13 1597generated by GNU Autoconf 2.65 1598 1599Copyright (C) 2009 Free Software Foundation, Inc. 1600This configure script is free software; the Free Software Foundation 1601gives unlimited permission to copy, distribute and modify it. 1602 1603Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1604 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 1605 Free Software Foundation, Inc. 1606 1607This program is free software; you can redistribute it and/or modify 1608it under the terms of the GNU General Public License as published by 1609the Free Software Foundation; either version 2, or (at your option) 1610any later version. 1611 1612This program is distributed in the hope that it will be useful, 1613but WITHOUT ANY WARRANTY; without even the implied warranty of 1614MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1615GNU General Public License for more details. 1616_ACEOF 1617 exit 1618fi 1619 1620## ------------------------ ## 1621## Autoconf initialization. ## 1622## ------------------------ ## 1623 1624# ac_fn_c_try_compile LINENO 1625# -------------------------- 1626# Try to compile conftest.$ac_ext, and return whether this succeeded. 1627ac_fn_c_try_compile () 1628{ 1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1630 rm -f conftest.$ac_objext 1631 if { { ac_try="$ac_compile" 1632case "(($ac_try" in 1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1634 *) ac_try_echo=$ac_try;; 1635esac 1636eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1637$as_echo "$ac_try_echo"; } >&5 1638 (eval "$ac_compile") 2>conftest.err 1639 ac_status=$? 1640 if test -s conftest.err; then 1641 grep -v '^ *+' conftest.err >conftest.er1 1642 cat conftest.er1 >&5 1643 mv -f conftest.er1 conftest.err 1644 fi 1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1646 test $ac_status = 0; } && { 1647 test -z "$ac_c_werror_flag" || 1648 test ! -s conftest.err 1649 } && test -s conftest.$ac_objext; then : 1650 ac_retval=0 1651else 1652 $as_echo "$as_me: failed program was:" >&5 1653sed 's/^/| /' conftest.$ac_ext >&5 1654 1655 ac_retval=1 1656fi 1657 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1658 as_fn_set_status $ac_retval 1659 1660} # ac_fn_c_try_compile 1661 1662# ac_fn_c_try_cpp LINENO 1663# ---------------------- 1664# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1665ac_fn_c_try_cpp () 1666{ 1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1668 if { { ac_try="$ac_cpp conftest.$ac_ext" 1669case "(($ac_try" in 1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1671 *) ac_try_echo=$ac_try;; 1672esac 1673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1674$as_echo "$ac_try_echo"; } >&5 1675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1676 ac_status=$? 1677 if test -s conftest.err; then 1678 grep -v '^ *+' conftest.err >conftest.er1 1679 cat conftest.er1 >&5 1680 mv -f conftest.er1 conftest.err 1681 fi 1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1683 test $ac_status = 0; } >/dev/null && { 1684 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1685 test ! -s conftest.err 1686 }; then : 1687 ac_retval=0 1688else 1689 $as_echo "$as_me: failed program was:" >&5 1690sed 's/^/| /' conftest.$ac_ext >&5 1691 1692 ac_retval=1 1693fi 1694 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1695 as_fn_set_status $ac_retval 1696 1697} # ac_fn_c_try_cpp 1698 1699# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1700# ------------------------------------------------------- 1701# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1702# the include files in INCLUDES and setting the cache variable VAR 1703# accordingly. 1704ac_fn_c_check_header_mongrel () 1705{ 1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1707 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1709$as_echo_n "checking for $2... " >&6; } 1710if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1711 $as_echo_n "(cached) " >&6 1712fi 1713eval ac_res=\$$3 1714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1715$as_echo "$ac_res" >&6; } 1716else 1717 # Is the header compilable? 1718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1719$as_echo_n "checking $2 usability... " >&6; } 1720cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1721/* end confdefs.h. */ 1722$4 1723#include <$2> 1724_ACEOF 1725if ac_fn_c_try_compile "$LINENO"; then : 1726 ac_header_compiler=yes 1727else 1728 ac_header_compiler=no 1729fi 1730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1732$as_echo "$ac_header_compiler" >&6; } 1733 1734# Is the header present? 1735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1736$as_echo_n "checking $2 presence... " >&6; } 1737cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1738/* end confdefs.h. */ 1739#include <$2> 1740_ACEOF 1741if ac_fn_c_try_cpp "$LINENO"; then : 1742 ac_header_preproc=yes 1743else 1744 ac_header_preproc=no 1745fi 1746rm -f conftest.err conftest.$ac_ext 1747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1748$as_echo "$ac_header_preproc" >&6; } 1749 1750# So? What about this header? 1751case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1752 yes:no: ) 1753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1754$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1756$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1757 ;; 1758 no:yes:* ) 1759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1760$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1762$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1764$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1766$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1768$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1769( cat <<\_ASBOX 1770## --------------------------------- ## 1771## Report this to bug-cvs@nongnu.org ## 1772## --------------------------------- ## 1773_ASBOX 1774 ) | sed "s/^/$as_me: WARNING: /" >&2 1775 ;; 1776esac 1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1778$as_echo_n "checking for $2... " >&6; } 1779if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1780 $as_echo_n "(cached) " >&6 1781else 1782 eval "$3=\$ac_header_compiler" 1783fi 1784eval ac_res=\$$3 1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1786$as_echo "$ac_res" >&6; } 1787fi 1788 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1789 1790} # ac_fn_c_check_header_mongrel 1791 1792# ac_fn_c_try_run LINENO 1793# ---------------------- 1794# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1795# that executables *can* be run. 1796ac_fn_c_try_run () 1797{ 1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1799 if { { ac_try="$ac_link" 1800case "(($ac_try" in 1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1802 *) ac_try_echo=$ac_try;; 1803esac 1804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1805$as_echo "$ac_try_echo"; } >&5 1806 (eval "$ac_link") 2>&5 1807 ac_status=$? 1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1809 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1810 { { case "(($ac_try" in 1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1812 *) ac_try_echo=$ac_try;; 1813esac 1814eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1815$as_echo "$ac_try_echo"; } >&5 1816 (eval "$ac_try") 2>&5 1817 ac_status=$? 1818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1819 test $ac_status = 0; }; }; then : 1820 ac_retval=0 1821else 1822 $as_echo "$as_me: program exited with status $ac_status" >&5 1823 $as_echo "$as_me: failed program was:" >&5 1824sed 's/^/| /' conftest.$ac_ext >&5 1825 1826 ac_retval=$ac_status 1827fi 1828 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1829 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1830 as_fn_set_status $ac_retval 1831 1832} # ac_fn_c_try_run 1833 1834# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1835# ------------------------------------------------------- 1836# Tests whether HEADER exists and can be compiled using the include files in 1837# INCLUDES, setting the cache variable VAR accordingly. 1838ac_fn_c_check_header_compile () 1839{ 1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1842$as_echo_n "checking for $2... " >&6; } 1843if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1844 $as_echo_n "(cached) " >&6 1845else 1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1847/* end confdefs.h. */ 1848$4 1849#include <$2> 1850_ACEOF 1851if ac_fn_c_try_compile "$LINENO"; then : 1852 eval "$3=yes" 1853else 1854 eval "$3=no" 1855fi 1856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1857fi 1858eval ac_res=\$$3 1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1860$as_echo "$ac_res" >&6; } 1861 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1862 1863} # ac_fn_c_check_header_compile 1864 1865# ac_fn_c_try_link LINENO 1866# ----------------------- 1867# Try to link conftest.$ac_ext, and return whether this succeeded. 1868ac_fn_c_try_link () 1869{ 1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1871 rm -f conftest.$ac_objext conftest$ac_exeext 1872 if { { ac_try="$ac_link" 1873case "(($ac_try" in 1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1875 *) ac_try_echo=$ac_try;; 1876esac 1877eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1878$as_echo "$ac_try_echo"; } >&5 1879 (eval "$ac_link") 2>conftest.err 1880 ac_status=$? 1881 if test -s conftest.err; then 1882 grep -v '^ *+' conftest.err >conftest.er1 1883 cat conftest.er1 >&5 1884 mv -f conftest.er1 conftest.err 1885 fi 1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1887 test $ac_status = 0; } && { 1888 test -z "$ac_c_werror_flag" || 1889 test ! -s conftest.err 1890 } && test -s conftest$ac_exeext && { 1891 test "$cross_compiling" = yes || 1892 $as_test_x conftest$ac_exeext 1893 }; then : 1894 ac_retval=0 1895else 1896 $as_echo "$as_me: failed program was:" >&5 1897sed 's/^/| /' conftest.$ac_ext >&5 1898 1899 ac_retval=1 1900fi 1901 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1902 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1903 # interfere with the next link command; also delete a directory that is 1904 # left behind by Apple's compiler. We do this before executing the actions. 1905 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1906 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1907 as_fn_set_status $ac_retval 1908 1909} # ac_fn_c_try_link 1910 1911# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1912# ------------------------------------------- 1913# Tests whether TYPE exists after having included INCLUDES, setting cache 1914# variable VAR accordingly. 1915ac_fn_c_check_type () 1916{ 1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1919$as_echo_n "checking for $2... " >&6; } 1920if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1921 $as_echo_n "(cached) " >&6 1922else 1923 eval "$3=no" 1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1925/* end confdefs.h. */ 1926$4 1927int 1928main () 1929{ 1930if (sizeof ($2)) 1931 return 0; 1932 ; 1933 return 0; 1934} 1935_ACEOF 1936if ac_fn_c_try_compile "$LINENO"; then : 1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1938/* end confdefs.h. */ 1939$4 1940int 1941main () 1942{ 1943if (sizeof (($2))) 1944 return 0; 1945 ; 1946 return 0; 1947} 1948_ACEOF 1949if ac_fn_c_try_compile "$LINENO"; then : 1950 1951else 1952 eval "$3=yes" 1953fi 1954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1955fi 1956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1957fi 1958eval ac_res=\$$3 1959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1960$as_echo "$ac_res" >&6; } 1961 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1962 1963} # ac_fn_c_check_type 1964 1965# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1966# ---------------------------------------------------- 1967# Tries to find if the field MEMBER exists in type AGGR, after including 1968# INCLUDES, setting cache variable VAR accordingly. 1969ac_fn_c_check_member () 1970{ 1971 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1973$as_echo_n "checking for $2.$3... " >&6; } 1974if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : 1975 $as_echo_n "(cached) " >&6 1976else 1977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1978/* end confdefs.h. */ 1979$5 1980int 1981main () 1982{ 1983static $2 ac_aggr; 1984if (ac_aggr.$3) 1985return 0; 1986 ; 1987 return 0; 1988} 1989_ACEOF 1990if ac_fn_c_try_compile "$LINENO"; then : 1991 eval "$4=yes" 1992else 1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1994/* end confdefs.h. */ 1995$5 1996int 1997main () 1998{ 1999static $2 ac_aggr; 2000if (sizeof ac_aggr.$3) 2001return 0; 2002 ; 2003 return 0; 2004} 2005_ACEOF 2006if ac_fn_c_try_compile "$LINENO"; then : 2007 eval "$4=yes" 2008else 2009 eval "$4=no" 2010fi 2011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2012fi 2013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2014fi 2015eval ac_res=\$$4 2016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2017$as_echo "$ac_res" >&6; } 2018 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2019 2020} # ac_fn_c_check_member 2021 2022# ac_fn_c_check_func LINENO FUNC VAR 2023# ---------------------------------- 2024# Tests whether FUNC exists, setting the cache variable VAR accordingly 2025ac_fn_c_check_func () 2026{ 2027 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2029$as_echo_n "checking for $2... " >&6; } 2030if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2031 $as_echo_n "(cached) " >&6 2032else 2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2034/* end confdefs.h. */ 2035/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2036 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2037#define $2 innocuous_$2 2038 2039/* System header to define __stub macros and hopefully few prototypes, 2040 which can conflict with char $2 (); below. 2041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2042 <limits.h> exists even on freestanding compilers. */ 2043 2044#ifdef __STDC__ 2045# include <limits.h> 2046#else 2047# include <assert.h> 2048#endif 2049 2050#undef $2 2051 2052/* Override any GCC internal prototype to avoid an error. 2053 Use char because int might match the return type of a GCC 2054 builtin and then its argument prototype would still apply. */ 2055#ifdef __cplusplus 2056extern "C" 2057#endif 2058char $2 (); 2059/* The GNU C library defines this for functions which it implements 2060 to always fail with ENOSYS. Some functions are actually named 2061 something starting with __ and the normal name is an alias. */ 2062#if defined __stub_$2 || defined __stub___$2 2063choke me 2064#endif 2065 2066int 2067main () 2068{ 2069return $2 (); 2070 ; 2071 return 0; 2072} 2073_ACEOF 2074if ac_fn_c_try_link "$LINENO"; then : 2075 eval "$3=yes" 2076else 2077 eval "$3=no" 2078fi 2079rm -f core conftest.err conftest.$ac_objext \ 2080 conftest$ac_exeext conftest.$ac_ext 2081fi 2082eval ac_res=\$$3 2083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2084$as_echo "$ac_res" >&6; } 2085 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2086 2087} # ac_fn_c_check_func 2088 2089# ac_fn_c_check_decl LINENO SYMBOL VAR 2090# ------------------------------------ 2091# Tests whether SYMBOL is declared, setting cache variable VAR accordingly. 2092ac_fn_c_check_decl () 2093{ 2094 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 2096$as_echo_n "checking whether $2 is declared... " >&6; } 2097if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2098 $as_echo_n "(cached) " >&6 2099else 2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2101/* end confdefs.h. */ 2102$4 2103int 2104main () 2105{ 2106#ifndef $2 2107 (void) $2; 2108#endif 2109 2110 ; 2111 return 0; 2112} 2113_ACEOF 2114if ac_fn_c_try_compile "$LINENO"; then : 2115 eval "$3=yes" 2116else 2117 eval "$3=no" 2118fi 2119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2120fi 2121eval ac_res=\$$3 2122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2123$as_echo "$ac_res" >&6; } 2124 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2125 2126} # ac_fn_c_check_decl 2127 2128# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2129# -------------------------------------------- 2130# Tries to find the compile-time value of EXPR in a program that includes 2131# INCLUDES, setting VAR accordingly. Returns whether the value could be 2132# computed 2133ac_fn_c_compute_int () 2134{ 2135 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2136 if test "$cross_compiling" = yes; then 2137 # Depending upon the size, compute the lo and hi bounds. 2138cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2139/* end confdefs.h. */ 2140$4 2141int 2142main () 2143{ 2144static int test_array [1 - 2 * !(($2) >= 0)]; 2145test_array [0] = 0 2146 2147 ; 2148 return 0; 2149} 2150_ACEOF 2151if ac_fn_c_try_compile "$LINENO"; then : 2152 ac_lo=0 ac_mid=0 2153 while :; do 2154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2155/* end confdefs.h. */ 2156$4 2157int 2158main () 2159{ 2160static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2161test_array [0] = 0 2162 2163 ; 2164 return 0; 2165} 2166_ACEOF 2167if ac_fn_c_try_compile "$LINENO"; then : 2168 ac_hi=$ac_mid; break 2169else 2170 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2171 if test $ac_lo -le $ac_mid; then 2172 ac_lo= ac_hi= 2173 break 2174 fi 2175 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2176fi 2177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2178 done 2179else 2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2181/* end confdefs.h. */ 2182$4 2183int 2184main () 2185{ 2186static int test_array [1 - 2 * !(($2) < 0)]; 2187test_array [0] = 0 2188 2189 ; 2190 return 0; 2191} 2192_ACEOF 2193if ac_fn_c_try_compile "$LINENO"; then : 2194 ac_hi=-1 ac_mid=-1 2195 while :; do 2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2197/* end confdefs.h. */ 2198$4 2199int 2200main () 2201{ 2202static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2203test_array [0] = 0 2204 2205 ; 2206 return 0; 2207} 2208_ACEOF 2209if ac_fn_c_try_compile "$LINENO"; then : 2210 ac_lo=$ac_mid; break 2211else 2212 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2213 if test $ac_mid -le $ac_hi; then 2214 ac_lo= ac_hi= 2215 break 2216 fi 2217 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2218fi 2219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2220 done 2221else 2222 ac_lo= ac_hi= 2223fi 2224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2225fi 2226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2227# Binary search between lo and hi bounds. 2228while test "x$ac_lo" != "x$ac_hi"; do 2229 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2231/* end confdefs.h. */ 2232$4 2233int 2234main () 2235{ 2236static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2237test_array [0] = 0 2238 2239 ; 2240 return 0; 2241} 2242_ACEOF 2243if ac_fn_c_try_compile "$LINENO"; then : 2244 ac_hi=$ac_mid 2245else 2246 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2247fi 2248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2249done 2250case $ac_lo in #(( 2251?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2252'') ac_retval=1 ;; 2253esac 2254 else 2255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2256/* end confdefs.h. */ 2257$4 2258static long int longval () { return $2; } 2259static unsigned long int ulongval () { return $2; } 2260#include <stdio.h> 2261#include <stdlib.h> 2262int 2263main () 2264{ 2265 2266 FILE *f = fopen ("conftest.val", "w"); 2267 if (! f) 2268 return 1; 2269 if (($2) < 0) 2270 { 2271 long int i = longval (); 2272 if (i != ($2)) 2273 return 1; 2274 fprintf (f, "%ld", i); 2275 } 2276 else 2277 { 2278 unsigned long int i = ulongval (); 2279 if (i != ($2)) 2280 return 1; 2281 fprintf (f, "%lu", i); 2282 } 2283 /* Do not output a trailing newline, as this causes \r\n confusion 2284 on some platforms. */ 2285 return ferror (f) || fclose (f) != 0; 2286 2287 ; 2288 return 0; 2289} 2290_ACEOF 2291if ac_fn_c_try_run "$LINENO"; then : 2292 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2293else 2294 ac_retval=1 2295fi 2296rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2297 conftest.$ac_objext conftest.beam conftest.$ac_ext 2298rm -f conftest.val 2299 2300 fi 2301 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2302 as_fn_set_status $ac_retval 2303 2304} # ac_fn_c_compute_int 2305cat >config.log <<_ACEOF 2306This file contains any messages produced by compilers while 2307running configure, to aid debugging if configure makes a mistake. 2308 2309It was created by Concurrent Versions System (CVS) $as_me 1.12.13, which was 2310generated by GNU Autoconf 2.65. Invocation command line was 2311 2312 $ $0 $@ 2313 2314_ACEOF 2315exec 5>>config.log 2316{ 2317cat <<_ASUNAME 2318## --------- ## 2319## Platform. ## 2320## --------- ## 2321 2322hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2323uname -m = `(uname -m) 2>/dev/null || echo unknown` 2324uname -r = `(uname -r) 2>/dev/null || echo unknown` 2325uname -s = `(uname -s) 2>/dev/null || echo unknown` 2326uname -v = `(uname -v) 2>/dev/null || echo unknown` 2327 2328/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2329/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2330 2331/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2332/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2333/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2334/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2335/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2336/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2337/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2338 2339_ASUNAME 2340 2341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2342for as_dir in $PATH 2343do 2344 IFS=$as_save_IFS 2345 test -z "$as_dir" && as_dir=. 2346 $as_echo "PATH: $as_dir" 2347 done 2348IFS=$as_save_IFS 2349 2350} >&5 2351 2352cat >&5 <<_ACEOF 2353 2354 2355## ----------- ## 2356## Core tests. ## 2357## ----------- ## 2358 2359_ACEOF 2360 2361 2362# Keep a trace of the command line. 2363# Strip out --no-create and --no-recursion so they do not pile up. 2364# Strip out --silent because we don't want to record it for future runs. 2365# Also quote any args containing shell meta-characters. 2366# Make two passes to allow for proper duplicate-argument suppression. 2367ac_configure_args= 2368ac_configure_args0= 2369ac_configure_args1= 2370ac_must_keep_next=false 2371for ac_pass in 1 2 2372do 2373 for ac_arg 2374 do 2375 case $ac_arg in 2376 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2377 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2378 | -silent | --silent | --silen | --sile | --sil) 2379 continue ;; 2380 *\'*) 2381 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2382 esac 2383 case $ac_pass in 2384 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2385 2) 2386 as_fn_append ac_configure_args1 " '$ac_arg'" 2387 if test $ac_must_keep_next = true; then 2388 ac_must_keep_next=false # Got value, back to normal. 2389 else 2390 case $ac_arg in 2391 *=* | --config-cache | -C | -disable-* | --disable-* \ 2392 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2393 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2394 | -with-* | --with-* | -without-* | --without-* | --x) 2395 case "$ac_configure_args0 " in 2396 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2397 esac 2398 ;; 2399 -* ) ac_must_keep_next=true ;; 2400 esac 2401 fi 2402 as_fn_append ac_configure_args " '$ac_arg'" 2403 ;; 2404 esac 2405 done 2406done 2407{ ac_configure_args0=; unset ac_configure_args0;} 2408{ ac_configure_args1=; unset ac_configure_args1;} 2409 2410# When interrupted or exit'd, cleanup temporary files, and complete 2411# config.log. We remove comments because anyway the quotes in there 2412# would cause problems or look ugly. 2413# WARNING: Use '\'' to represent an apostrophe within the trap. 2414# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2415trap 'exit_status=$? 2416 # Save into config.log some information that might help in debugging. 2417 { 2418 echo 2419 2420 cat <<\_ASBOX 2421## ---------------- ## 2422## Cache variables. ## 2423## ---------------- ## 2424_ASBOX 2425 echo 2426 # The following way of writing the cache mishandles newlines in values, 2427( 2428 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2429 eval ac_val=\$$ac_var 2430 case $ac_val in #( 2431 *${as_nl}*) 2432 case $ac_var in #( 2433 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2434$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2435 esac 2436 case $ac_var in #( 2437 _ | IFS | as_nl) ;; #( 2438 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2439 *) { eval $ac_var=; unset $ac_var;} ;; 2440 esac ;; 2441 esac 2442 done 2443 (set) 2>&1 | 2444 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2445 *${as_nl}ac_space=\ *) 2446 sed -n \ 2447 "s/'\''/'\''\\\\'\'''\''/g; 2448 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2449 ;; #( 2450 *) 2451 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2452 ;; 2453 esac | 2454 sort 2455) 2456 echo 2457 2458 cat <<\_ASBOX 2459## ----------------- ## 2460## Output variables. ## 2461## ----------------- ## 2462_ASBOX 2463 echo 2464 for ac_var in $ac_subst_vars 2465 do 2466 eval ac_val=\$$ac_var 2467 case $ac_val in 2468 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2469 esac 2470 $as_echo "$ac_var='\''$ac_val'\''" 2471 done | sort 2472 echo 2473 2474 if test -n "$ac_subst_files"; then 2475 cat <<\_ASBOX 2476## ------------------- ## 2477## File substitutions. ## 2478## ------------------- ## 2479_ASBOX 2480 echo 2481 for ac_var in $ac_subst_files 2482 do 2483 eval ac_val=\$$ac_var 2484 case $ac_val in 2485 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2486 esac 2487 $as_echo "$ac_var='\''$ac_val'\''" 2488 done | sort 2489 echo 2490 fi 2491 2492 if test -s confdefs.h; then 2493 cat <<\_ASBOX 2494## ----------- ## 2495## confdefs.h. ## 2496## ----------- ## 2497_ASBOX 2498 echo 2499 cat confdefs.h 2500 echo 2501 fi 2502 test "$ac_signal" != 0 && 2503 $as_echo "$as_me: caught signal $ac_signal" 2504 $as_echo "$as_me: exit $exit_status" 2505 } >&5 2506 rm -f core *.core core.conftest.* && 2507 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2508 exit $exit_status 2509' 0 2510for ac_signal in 1 2 13 15; do 2511 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2512done 2513ac_signal=0 2514 2515# confdefs.h avoids OS command line length limits that DEFS can exceed. 2516rm -f -r conftest* confdefs.h 2517 2518$as_echo "/* confdefs.h */" > confdefs.h 2519 2520# Predefined preprocessor variables. 2521 2522cat >>confdefs.h <<_ACEOF 2523#define PACKAGE_NAME "$PACKAGE_NAME" 2524_ACEOF 2525 2526cat >>confdefs.h <<_ACEOF 2527#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2528_ACEOF 2529 2530cat >>confdefs.h <<_ACEOF 2531#define PACKAGE_VERSION "$PACKAGE_VERSION" 2532_ACEOF 2533 2534cat >>confdefs.h <<_ACEOF 2535#define PACKAGE_STRING "$PACKAGE_STRING" 2536_ACEOF 2537 2538cat >>confdefs.h <<_ACEOF 2539#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2540_ACEOF 2541 2542cat >>confdefs.h <<_ACEOF 2543#define PACKAGE_URL "$PACKAGE_URL" 2544_ACEOF 2545 2546 2547# Let the site file select an alternate cache file if it wants to. 2548# Prefer an explicitly selected file to automatically selected ones. 2549ac_site_file1=NONE 2550ac_site_file2=NONE 2551if test -n "$CONFIG_SITE"; then 2552 ac_site_file1=$CONFIG_SITE 2553elif test "x$prefix" != xNONE; then 2554 ac_site_file1=$prefix/share/config.site 2555 ac_site_file2=$prefix/etc/config.site 2556else 2557 ac_site_file1=$ac_default_prefix/share/config.site 2558 ac_site_file2=$ac_default_prefix/etc/config.site 2559fi 2560for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2561do 2562 test "x$ac_site_file" = xNONE && continue 2563 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2564 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2565$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2566 sed 's/^/| /' "$ac_site_file" >&5 2567 . "$ac_site_file" 2568 fi 2569done 2570 2571if test -r "$cache_file"; then 2572 # Some versions of bash will fail to source /dev/null (special files 2573 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2574 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2575 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2576$as_echo "$as_me: loading cache $cache_file" >&6;} 2577 case $cache_file in 2578 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2579 *) . "./$cache_file";; 2580 esac 2581 fi 2582else 2583 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2584$as_echo "$as_me: creating cache $cache_file" >&6;} 2585 >$cache_file 2586fi 2587 2588gl_func_list="$gl_func_list fchdir" 2589gl_header_list="$gl_header_list unistd.h" 2590gl_func_list="$gl_func_list mempcpy" 2591gl_header_list="$gl_header_list sys/time.h" 2592gl_func_list="$gl_func_list isascii" 2593gl_header_list="$gl_header_list sys/param.h" 2594gl_header_list="$gl_header_list stdio_ext.h" 2595gl_header_list="$gl_header_list termios.h" 2596gl_func_list="$gl_func_list __fsetlocking" 2597gl_func_list="$gl_func_list tcgetattr" 2598gl_func_list="$gl_func_list tcsetattr" 2599gl_func_list="$gl_func_list gettimeofday" 2600gl_func_list="$gl_func_list nanotime" 2601gl_header_list="$gl_header_list sys/cdefs.h" 2602gl_func_list="$gl_func_list getlogin_r" 2603gl_func_list="$gl_func_list getpwnam_r" 2604gl_header_list="$gl_header_list wchar.h" 2605gl_header_list="$gl_header_list wctype.h" 2606gl_header_list="$gl_header_list stdint.h" 2607gl_func_list="$gl_func_list siginterrupt" 2608gl_header_list="$gl_header_list stdlib.h" 2609gl_func_list="$gl_func_list posix_memalign" 2610gl_func_list="$gl_func_list iswprint" 2611gl_func_list="$gl_func_list mbsinit" 2612gl_header_list="$gl_header_list locale.h" 2613gl_func_list="$gl_func_list isblank" 2614gl_func_list="$gl_func_list mbrtowc" 2615gl_func_list="$gl_func_list wcrtomb" 2616gl_func_list="$gl_func_list wcscoll" 2617gl_func_list="$gl_func_list mblen" 2618gl_func_list="$gl_func_list mbrlen" 2619gl_func_list="$gl_func_list tzset" 2620gl_header_list="$gl_header_list utime.h" 2621# Check that the precious variables saved in the cache have kept the same 2622# value. 2623ac_cache_corrupted=false 2624for ac_var in $ac_precious_vars; do 2625 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2626 eval ac_new_set=\$ac_env_${ac_var}_set 2627 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2628 eval ac_new_val=\$ac_env_${ac_var}_value 2629 case $ac_old_set,$ac_new_set in 2630 set,) 2631 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2632$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2633 ac_cache_corrupted=: ;; 2634 ,set) 2635 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2636$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2637 ac_cache_corrupted=: ;; 2638 ,);; 2639 *) 2640 if test "x$ac_old_val" != "x$ac_new_val"; then 2641 # differences in whitespace do not lead to failure. 2642 ac_old_val_w=`echo x $ac_old_val` 2643 ac_new_val_w=`echo x $ac_new_val` 2644 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2645 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2646$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2647 ac_cache_corrupted=: 2648 else 2649 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2650$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2651 eval $ac_var=\$ac_old_val 2652 fi 2653 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2654$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2655 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2656$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2657 fi;; 2658 esac 2659 # Pass precious variables to config.status. 2660 if test "$ac_new_set" = set; then 2661 case $ac_new_val in 2662 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2663 *) ac_arg=$ac_var=$ac_new_val ;; 2664 esac 2665 case " $ac_configure_args " in 2666 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2667 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2668 esac 2669 fi 2670done 2671if $ac_cache_corrupted; then 2672 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2673$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2674 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2675$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2676 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2677fi 2678## -------------------- ## 2679## Main body of script. ## 2680## -------------------- ## 2681 2682ac_ext=c 2683ac_cpp='$CPP $CPPFLAGS' 2684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2686ac_compiler_gnu=$ac_cv_c_compiler_gnu 2687 2688 2689 2690ac_aux_dir= 2691for ac_dir in build-aux "$srcdir"/build-aux; do 2692 for ac_t in install-sh install.sh shtool; do 2693 if test -f "$ac_dir/$ac_t"; then 2694 ac_aux_dir=$ac_dir 2695 ac_install_sh="$ac_aux_dir/$ac_t -c" 2696 break 2 2697 fi 2698 done 2699done 2700if test -z "$ac_aux_dir"; then 2701 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 2702fi 2703 2704# These three variables are undocumented and unsupported, 2705# and are intended to be withdrawn in a future Autoconf release. 2706# They can cause serious problems if a builder's source tree is in a directory 2707# whose full name contains unusual characters. 2708ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2709ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2710ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2711 2712 2713am__api_version='1.11' 2714 2715# Find a good install program. We prefer a C program (faster), 2716# so one script is as good as another. But avoid the broken or 2717# incompatible versions: 2718# SysV /etc/install, /usr/sbin/install 2719# SunOS /usr/etc/install 2720# IRIX /sbin/install 2721# AIX /bin/install 2722# AmigaOS /C/install, which installs bootblocks on floppy discs 2723# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2724# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2725# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2726# OS/2's system install, which has a completely different semantic 2727# ./install, which can be erroneously created by make from ./install.sh. 2728# Reject install programs that cannot install multiple files. 2729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2730$as_echo_n "checking for a BSD-compatible install... " >&6; } 2731if test -z "$INSTALL"; then 2732if test "${ac_cv_path_install+set}" = set; then : 2733 $as_echo_n "(cached) " >&6 2734else 2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2736for as_dir in $PATH 2737do 2738 IFS=$as_save_IFS 2739 test -z "$as_dir" && as_dir=. 2740 # Account for people who put trailing slashes in PATH elements. 2741case $as_dir/ in #(( 2742 ./ | .// | /[cC]/* | \ 2743 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2744 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2745 /usr/ucb/* ) ;; 2746 *) 2747 # OSF1 and SCO ODT 3.0 have their own names for install. 2748 # Don't use installbsd from OSF since it installs stuff as root 2749 # by default. 2750 for ac_prog in ginstall scoinst install; do 2751 for ac_exec_ext in '' $ac_executable_extensions; do 2752 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2753 if test $ac_prog = install && 2754 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2755 # AIX install. It has an incompatible calling convention. 2756 : 2757 elif test $ac_prog = install && 2758 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2759 # program-specific install script used by HP pwplus--don't use. 2760 : 2761 else 2762 rm -rf conftest.one conftest.two conftest.dir 2763 echo one > conftest.one 2764 echo two > conftest.two 2765 mkdir conftest.dir 2766 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2767 test -s conftest.one && test -s conftest.two && 2768 test -s conftest.dir/conftest.one && 2769 test -s conftest.dir/conftest.two 2770 then 2771 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2772 break 3 2773 fi 2774 fi 2775 fi 2776 done 2777 done 2778 ;; 2779esac 2780 2781 done 2782IFS=$as_save_IFS 2783 2784rm -rf conftest.one conftest.two conftest.dir 2785 2786fi 2787 if test "${ac_cv_path_install+set}" = set; then 2788 INSTALL=$ac_cv_path_install 2789 else 2790 # As a last resort, use the slow shell script. Don't cache a 2791 # value for INSTALL within a source directory, because that will 2792 # break other packages using the cache if that directory is 2793 # removed, or if the value is a relative name. 2794 INSTALL=$ac_install_sh 2795 fi 2796fi 2797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2798$as_echo "$INSTALL" >&6; } 2799 2800# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2801# It thinks the first close brace ends the variable substitution. 2802test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2803 2804test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2805 2806test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2807 2808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2809$as_echo_n "checking whether build environment is sane... " >&6; } 2810# Just in case 2811sleep 1 2812echo timestamp > conftest.file 2813# Reject unsafe characters in $srcdir or the absolute working directory 2814# name. Accept space and tab only in the latter. 2815am_lf=' 2816' 2817case `pwd` in 2818 *[\\\"\#\$\&\'\`$am_lf]*) 2819 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 2820esac 2821case $srcdir in 2822 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2823 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2824esac 2825 2826# Do `set' in a subshell so we don't clobber the current shell's 2827# arguments. Must try -L first in case configure is actually a 2828# symlink; some systems play weird games with the mod time of symlinks 2829# (eg FreeBSD returns the mod time of the symlink's containing 2830# directory). 2831if ( 2832 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2833 if test "$*" = "X"; then 2834 # -L didn't work. 2835 set X `ls -t "$srcdir/configure" conftest.file` 2836 fi 2837 rm -f conftest.file 2838 if test "$*" != "X $srcdir/configure conftest.file" \ 2839 && test "$*" != "X conftest.file $srcdir/configure"; then 2840 2841 # If neither matched, then we have a broken ls. This can happen 2842 # if, for instance, CONFIG_SHELL is bash and it inherits a 2843 # broken ls alias from the environment. This has actually 2844 # happened. Such a system could not be considered "sane". 2845 as_fn_error "ls -t appears to fail. Make sure there is not a broken 2846alias in your environment" "$LINENO" 5 2847 fi 2848 2849 test "$2" = conftest.file 2850 ) 2851then 2852 # Ok. 2853 : 2854else 2855 as_fn_error "newly created file is older than distributed files! 2856Check your system clock" "$LINENO" 5 2857fi 2858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2859$as_echo "yes" >&6; } 2860test "$program_prefix" != NONE && 2861 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2862# Use a double $ so make ignores it. 2863test "$program_suffix" != NONE && 2864 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2865# Double any \ or $. 2866# By default was `s,x,x', remove it if useless. 2867ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2868program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2869 2870# expand $ac_aux_dir to an absolute path 2871am_aux_dir=`cd $ac_aux_dir && pwd` 2872 2873if test x"${MISSING+set}" != xset; then 2874 case $am_aux_dir in 2875 *\ * | *\ *) 2876 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2877 *) 2878 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2879 esac 2880fi 2881# Use eval to expand $SHELL 2882if eval "$MISSING --run true"; then 2883 am_missing_run="$MISSING --run " 2884else 2885 am_missing_run= 2886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2887$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2888fi 2889 2890if test x"${install_sh}" != xset; then 2891 case $am_aux_dir in 2892 *\ * | *\ *) 2893 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2894 *) 2895 install_sh="\${SHELL} $am_aux_dir/install-sh" 2896 esac 2897fi 2898 2899# Installed binaries are usually stripped using `strip' when the user 2900# run `make install-strip'. However `strip' might not be the right 2901# tool to use in cross-compilation environments, therefore Automake 2902# will honor the `STRIP' environment variable to overrule this program. 2903if test "$cross_compiling" != no; then 2904 if test -n "$ac_tool_prefix"; then 2905 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2906set dummy ${ac_tool_prefix}strip; ac_word=$2 2907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2908$as_echo_n "checking for $ac_word... " >&6; } 2909if test "${ac_cv_prog_STRIP+set}" = set; then : 2910 $as_echo_n "(cached) " >&6 2911else 2912 if test -n "$STRIP"; then 2913 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2914else 2915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2916for as_dir in $PATH 2917do 2918 IFS=$as_save_IFS 2919 test -z "$as_dir" && as_dir=. 2920 for ac_exec_ext in '' $ac_executable_extensions; do 2921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2922 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2924 break 2 2925 fi 2926done 2927 done 2928IFS=$as_save_IFS 2929 2930fi 2931fi 2932STRIP=$ac_cv_prog_STRIP 2933if test -n "$STRIP"; then 2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2935$as_echo "$STRIP" >&6; } 2936else 2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2938$as_echo "no" >&6; } 2939fi 2940 2941 2942fi 2943if test -z "$ac_cv_prog_STRIP"; then 2944 ac_ct_STRIP=$STRIP 2945 # Extract the first word of "strip", so it can be a program name with args. 2946set dummy strip; ac_word=$2 2947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2948$as_echo_n "checking for $ac_word... " >&6; } 2949if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2950 $as_echo_n "(cached) " >&6 2951else 2952 if test -n "$ac_ct_STRIP"; then 2953 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2954else 2955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2956for as_dir in $PATH 2957do 2958 IFS=$as_save_IFS 2959 test -z "$as_dir" && as_dir=. 2960 for ac_exec_ext in '' $ac_executable_extensions; do 2961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2962 ac_cv_prog_ac_ct_STRIP="strip" 2963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2964 break 2 2965 fi 2966done 2967 done 2968IFS=$as_save_IFS 2969 2970fi 2971fi 2972ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2973if test -n "$ac_ct_STRIP"; then 2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2975$as_echo "$ac_ct_STRIP" >&6; } 2976else 2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2978$as_echo "no" >&6; } 2979fi 2980 2981 if test "x$ac_ct_STRIP" = x; then 2982 STRIP=":" 2983 else 2984 case $cross_compiling:$ac_tool_warned in 2985yes:) 2986{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2987$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2988ac_tool_warned=yes ;; 2989esac 2990 STRIP=$ac_ct_STRIP 2991 fi 2992else 2993 STRIP="$ac_cv_prog_STRIP" 2994fi 2995 2996fi 2997INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2998 2999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3000$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3001if test -z "$MKDIR_P"; then 3002 if test "${ac_cv_path_mkdir+set}" = set; then : 3003 $as_echo_n "(cached) " >&6 3004else 3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3006for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3007do 3008 IFS=$as_save_IFS 3009 test -z "$as_dir" && as_dir=. 3010 for ac_prog in mkdir gmkdir; do 3011 for ac_exec_ext in '' $ac_executable_extensions; do 3012 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 3013 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3014 'mkdir (GNU coreutils) '* | \ 3015 'mkdir (coreutils) '* | \ 3016 'mkdir (fileutils) '4.1*) 3017 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3018 break 3;; 3019 esac 3020 done 3021 done 3022 done 3023IFS=$as_save_IFS 3024 3025fi 3026 3027 test -d ./--version && rmdir ./--version 3028 if test "${ac_cv_path_mkdir+set}" = set; then 3029 MKDIR_P="$ac_cv_path_mkdir -p" 3030 else 3031 # As a last resort, use the slow shell script. Don't cache a 3032 # value for MKDIR_P within a source directory, because that will 3033 # break other packages using the cache if that directory is 3034 # removed, or if the value is a relative name. 3035 MKDIR_P="$ac_install_sh -d" 3036 fi 3037fi 3038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3039$as_echo "$MKDIR_P" >&6; } 3040 3041mkdir_p="$MKDIR_P" 3042case $mkdir_p in 3043 [\\/$]* | ?:[\\/]*) ;; 3044 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 3045esac 3046 3047for ac_prog in gawk mawk nawk awk 3048do 3049 # Extract the first word of "$ac_prog", so it can be a program name with args. 3050set dummy $ac_prog; ac_word=$2 3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3052$as_echo_n "checking for $ac_word... " >&6; } 3053if test "${ac_cv_prog_AWK+set}" = set; then : 3054 $as_echo_n "(cached) " >&6 3055else 3056 if test -n "$AWK"; then 3057 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3058else 3059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3060for as_dir in $PATH 3061do 3062 IFS=$as_save_IFS 3063 test -z "$as_dir" && as_dir=. 3064 for ac_exec_ext in '' $ac_executable_extensions; do 3065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3066 ac_cv_prog_AWK="$ac_prog" 3067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3068 break 2 3069 fi 3070done 3071 done 3072IFS=$as_save_IFS 3073 3074fi 3075fi 3076AWK=$ac_cv_prog_AWK 3077if test -n "$AWK"; then 3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3079$as_echo "$AWK" >&6; } 3080else 3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3082$as_echo "no" >&6; } 3083fi 3084 3085 3086 test -n "$AWK" && break 3087done 3088 3089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3090$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3091set x ${MAKE-make} 3092ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3093if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 3094 $as_echo_n "(cached) " >&6 3095else 3096 cat >conftest.make <<\_ACEOF 3097SHELL = /bin/sh 3098all: 3099 @echo '@@@%%%=$(MAKE)=@@@%%%' 3100_ACEOF 3101# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3102case `${MAKE-make} -f conftest.make 2>/dev/null` in 3103 *@@@%%%=?*=@@@%%%*) 3104 eval ac_cv_prog_make_${ac_make}_set=yes;; 3105 *) 3106 eval ac_cv_prog_make_${ac_make}_set=no;; 3107esac 3108rm -f conftest.make 3109fi 3110if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3112$as_echo "yes" >&6; } 3113 SET_MAKE= 3114else 3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3116$as_echo "no" >&6; } 3117 SET_MAKE="MAKE=${MAKE-make}" 3118fi 3119 3120rm -rf .tst 2>/dev/null 3121mkdir .tst 2>/dev/null 3122if test -d .tst; then 3123 am__leading_dot=. 3124else 3125 am__leading_dot=_ 3126fi 3127rmdir .tst 2>/dev/null 3128 3129if test "`cd $srcdir && pwd`" != "`pwd`"; then 3130 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3131 # is not polluted with repeated "-I." 3132 am__isrc=' -I$(srcdir)' 3133 # test to see if srcdir already configured 3134 if test -f $srcdir/config.status; then 3135 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3136 fi 3137fi 3138 3139# test whether we have cygpath 3140if test -z "$CYGPATH_W"; then 3141 if (cygpath --version) >/dev/null 2>/dev/null; then 3142 CYGPATH_W='cygpath -w' 3143 else 3144 CYGPATH_W=echo 3145 fi 3146fi 3147 3148 3149# Define the identity of the package. 3150 PACKAGE='cvs' 3151 VERSION='1.12.13' 3152 3153 3154# Some tools Automake needs. 3155 3156ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3157 3158 3159AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3160 3161 3162AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3163 3164 3165AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3166 3167 3168MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3169 3170# We need awk for the "check" target. The system "awk" is bad on 3171# some platforms. 3172# Always define AMTAR for backward compatibility. 3173 3174AMTAR=${AMTAR-"${am_missing_run}tar"} 3175 3176am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3177 3178 3179 3180 3181 3182 3183 3184if test "x$prefix" = xNONE; then 3185 $as_echo_n "checking for prefix by " >&6 3186 # Extract the first word of "cvs", so it can be a program name with args. 3187set dummy cvs; ac_word=$2 3188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3189$as_echo_n "checking for $ac_word... " >&6; } 3190if test "${ac_cv_path_ac_prefix_program+set}" = set; then : 3191 $as_echo_n "(cached) " >&6 3192else 3193 case $ac_prefix_program in 3194 [\\/]* | ?:[\\/]*) 3195 ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path. 3196 ;; 3197 *) 3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3199for as_dir in $PATH 3200do 3201 IFS=$as_save_IFS 3202 test -z "$as_dir" && as_dir=. 3203 for ac_exec_ext in '' $ac_executable_extensions; do 3204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3205 ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext" 3206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3207 break 2 3208 fi 3209done 3210 done 3211IFS=$as_save_IFS 3212 3213 ;; 3214esac 3215fi 3216ac_prefix_program=$ac_cv_path_ac_prefix_program 3217if test -n "$ac_prefix_program"; then 3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prefix_program" >&5 3219$as_echo "$ac_prefix_program" >&6; } 3220else 3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3222$as_echo "no" >&6; } 3223fi 3224 3225 3226 if test -n "$ac_prefix_program"; then 3227 prefix=`$as_dirname -- "$ac_prefix_program" || 3228$as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3229 X"$ac_prefix_program" : 'X\(//\)[^/]' \| \ 3230 X"$ac_prefix_program" : 'X\(//\)$' \| \ 3231 X"$ac_prefix_program" : 'X\(/\)' \| . 2>/dev/null || 3232$as_echo X"$ac_prefix_program" | 3233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 3234 s//\1/ 3235 q 3236 } 3237 /^X\(\/\/\)[^/].*/{ 3238 s//\1/ 3239 q 3240 } 3241 /^X\(\/\/\)$/{ 3242 s//\1/ 3243 q 3244 } 3245 /^X\(\/\).*/{ 3246 s//\1/ 3247 q 3248 } 3249 s/.*/./; q'` 3250 prefix=`$as_dirname -- "$prefix" || 3251$as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3252 X"$prefix" : 'X\(//\)[^/]' \| \ 3253 X"$prefix" : 'X\(//\)$' \| \ 3254 X"$prefix" : 'X\(/\)' \| . 2>/dev/null || 3255$as_echo X"$prefix" | 3256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 3257 s//\1/ 3258 q 3259 } 3260 /^X\(\/\/\)[^/].*/{ 3261 s//\1/ 3262 q 3263 } 3264 /^X\(\/\/\)$/{ 3265 s//\1/ 3266 q 3267 } 3268 /^X\(\/\).*/{ 3269 s//\1/ 3270 q 3271 } 3272 s/.*/./; q'` 3273 fi 3274fi 3275 3276ac_config_headers="$ac_config_headers config.h" 3277 3278 3279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3280$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3281 # Check whether --enable-maintainer-mode was given. 3282if test "${enable_maintainer_mode+set}" = set; then : 3283 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3284else 3285 USE_MAINTAINER_MODE=no 3286fi 3287 3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3289$as_echo "$USE_MAINTAINER_MODE" >&6; } 3290 if test $USE_MAINTAINER_MODE = yes; then 3291 MAINTAINER_MODE_TRUE= 3292 MAINTAINER_MODE_FALSE='#' 3293else 3294 MAINTAINER_MODE_TRUE='#' 3295 MAINTAINER_MODE_FALSE= 3296fi 3297 3298 MAINT=$MAINTAINER_MODE_TRUE 3299 3300 3301 3302DEPDIR="${am__leading_dot}deps" 3303 3304ac_config_commands="$ac_config_commands depfiles" 3305 3306 3307am_make=${MAKE-make} 3308cat > confinc << 'END' 3309am__doit: 3310 @echo this is the am__doit target 3311.PHONY: am__doit 3312END 3313# If we don't find an include directive, just comment out the code. 3314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3315$as_echo_n "checking for style of include used by $am_make... " >&6; } 3316am__include="#" 3317am__quote= 3318_am_result=none 3319# First try GNU make style include. 3320echo "include confinc" > confmf 3321# Ignore all kinds of additional output from `make'. 3322case `$am_make -s -f confmf 2> /dev/null` in #( 3323*the\ am__doit\ target*) 3324 am__include=include 3325 am__quote= 3326 _am_result=GNU 3327 ;; 3328esac 3329# Now try BSD make style include. 3330if test "$am__include" = "#"; then 3331 echo '.include "confinc"' > confmf 3332 case `$am_make -s -f confmf 2> /dev/null` in #( 3333 *the\ am__doit\ target*) 3334 am__include=.include 3335 am__quote="\"" 3336 _am_result=BSD 3337 ;; 3338 esac 3339fi 3340 3341 3342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3343$as_echo "$_am_result" >&6; } 3344rm -f confinc confmf 3345 3346# Check whether --enable-dependency-tracking was given. 3347if test "${enable_dependency_tracking+set}" = set; then : 3348 enableval=$enable_dependency_tracking; 3349fi 3350 3351if test "x$enable_dependency_tracking" != xno; then 3352 am_depcomp="$ac_aux_dir/depcomp" 3353 AMDEPBACKSLASH='\' 3354fi 3355 if test "x$enable_dependency_tracking" != xno; then 3356 AMDEP_TRUE= 3357 AMDEP_FALSE='#' 3358else 3359 AMDEP_TRUE='#' 3360 AMDEP_FALSE= 3361fi 3362 3363 3364ac_ext=c 3365ac_cpp='$CPP $CPPFLAGS' 3366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3368ac_compiler_gnu=$ac_cv_c_compiler_gnu 3369if test -n "$ac_tool_prefix"; then 3370 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3371set dummy ${ac_tool_prefix}gcc; ac_word=$2 3372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3373$as_echo_n "checking for $ac_word... " >&6; } 3374if test "${ac_cv_prog_CC+set}" = set; then : 3375 $as_echo_n "(cached) " >&6 3376else 3377 if test -n "$CC"; then 3378 ac_cv_prog_CC="$CC" # Let the user override the test. 3379else 3380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3381for as_dir in $PATH 3382do 3383 IFS=$as_save_IFS 3384 test -z "$as_dir" && as_dir=. 3385 for ac_exec_ext in '' $ac_executable_extensions; do 3386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3387 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3389 break 2 3390 fi 3391done 3392 done 3393IFS=$as_save_IFS 3394 3395fi 3396fi 3397CC=$ac_cv_prog_CC 3398if test -n "$CC"; then 3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3400$as_echo "$CC" >&6; } 3401else 3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3403$as_echo "no" >&6; } 3404fi 3405 3406 3407fi 3408if test -z "$ac_cv_prog_CC"; then 3409 ac_ct_CC=$CC 3410 # Extract the first word of "gcc", so it can be a program name with args. 3411set dummy gcc; ac_word=$2 3412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3413$as_echo_n "checking for $ac_word... " >&6; } 3414if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3415 $as_echo_n "(cached) " >&6 3416else 3417 if test -n "$ac_ct_CC"; then 3418 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3419else 3420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3421for as_dir in $PATH 3422do 3423 IFS=$as_save_IFS 3424 test -z "$as_dir" && as_dir=. 3425 for ac_exec_ext in '' $ac_executable_extensions; do 3426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3427 ac_cv_prog_ac_ct_CC="gcc" 3428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3429 break 2 3430 fi 3431done 3432 done 3433IFS=$as_save_IFS 3434 3435fi 3436fi 3437ac_ct_CC=$ac_cv_prog_ac_ct_CC 3438if test -n "$ac_ct_CC"; then 3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3440$as_echo "$ac_ct_CC" >&6; } 3441else 3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3443$as_echo "no" >&6; } 3444fi 3445 3446 if test "x$ac_ct_CC" = x; then 3447 CC="" 3448 else 3449 case $cross_compiling:$ac_tool_warned in 3450yes:) 3451{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3452$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3453ac_tool_warned=yes ;; 3454esac 3455 CC=$ac_ct_CC 3456 fi 3457else 3458 CC="$ac_cv_prog_CC" 3459fi 3460 3461if test -z "$CC"; then 3462 if test -n "$ac_tool_prefix"; then 3463 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3464set dummy ${ac_tool_prefix}cc; ac_word=$2 3465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3466$as_echo_n "checking for $ac_word... " >&6; } 3467if test "${ac_cv_prog_CC+set}" = set; then : 3468 $as_echo_n "(cached) " >&6 3469else 3470 if test -n "$CC"; then 3471 ac_cv_prog_CC="$CC" # Let the user override the test. 3472else 3473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3474for as_dir in $PATH 3475do 3476 IFS=$as_save_IFS 3477 test -z "$as_dir" && as_dir=. 3478 for ac_exec_ext in '' $ac_executable_extensions; do 3479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3480 ac_cv_prog_CC="${ac_tool_prefix}cc" 3481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3482 break 2 3483 fi 3484done 3485 done 3486IFS=$as_save_IFS 3487 3488fi 3489fi 3490CC=$ac_cv_prog_CC 3491if test -n "$CC"; then 3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3493$as_echo "$CC" >&6; } 3494else 3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3496$as_echo "no" >&6; } 3497fi 3498 3499 3500 fi 3501fi 3502if test -z "$CC"; then 3503 # Extract the first word of "cc", so it can be a program name with args. 3504set dummy cc; ac_word=$2 3505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3506$as_echo_n "checking for $ac_word... " >&6; } 3507if test "${ac_cv_prog_CC+set}" = set; then : 3508 $as_echo_n "(cached) " >&6 3509else 3510 if test -n "$CC"; then 3511 ac_cv_prog_CC="$CC" # Let the user override the test. 3512else 3513 ac_prog_rejected=no 3514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3515for as_dir in $PATH 3516do 3517 IFS=$as_save_IFS 3518 test -z "$as_dir" && as_dir=. 3519 for ac_exec_ext in '' $ac_executable_extensions; do 3520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3521 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3522 ac_prog_rejected=yes 3523 continue 3524 fi 3525 ac_cv_prog_CC="cc" 3526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3527 break 2 3528 fi 3529done 3530 done 3531IFS=$as_save_IFS 3532 3533if test $ac_prog_rejected = yes; then 3534 # We found a bogon in the path, so make sure we never use it. 3535 set dummy $ac_cv_prog_CC 3536 shift 3537 if test $# != 0; then 3538 # We chose a different compiler from the bogus one. 3539 # However, it has the same basename, so the bogon will be chosen 3540 # first if we set CC to just the basename; use the full file name. 3541 shift 3542 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3543 fi 3544fi 3545fi 3546fi 3547CC=$ac_cv_prog_CC 3548if test -n "$CC"; then 3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3550$as_echo "$CC" >&6; } 3551else 3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3553$as_echo "no" >&6; } 3554fi 3555 3556 3557fi 3558if test -z "$CC"; then 3559 if test -n "$ac_tool_prefix"; then 3560 for ac_prog in cl.exe 3561 do 3562 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3563set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3565$as_echo_n "checking for $ac_word... " >&6; } 3566if test "${ac_cv_prog_CC+set}" = set; then : 3567 $as_echo_n "(cached) " >&6 3568else 3569 if test -n "$CC"; then 3570 ac_cv_prog_CC="$CC" # Let the user override the test. 3571else 3572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3573for as_dir in $PATH 3574do 3575 IFS=$as_save_IFS 3576 test -z "$as_dir" && as_dir=. 3577 for ac_exec_ext in '' $ac_executable_extensions; do 3578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3579 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3581 break 2 3582 fi 3583done 3584 done 3585IFS=$as_save_IFS 3586 3587fi 3588fi 3589CC=$ac_cv_prog_CC 3590if test -n "$CC"; then 3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3592$as_echo "$CC" >&6; } 3593else 3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3595$as_echo "no" >&6; } 3596fi 3597 3598 3599 test -n "$CC" && break 3600 done 3601fi 3602if test -z "$CC"; then 3603 ac_ct_CC=$CC 3604 for ac_prog in cl.exe 3605do 3606 # Extract the first word of "$ac_prog", so it can be a program name with args. 3607set dummy $ac_prog; ac_word=$2 3608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3609$as_echo_n "checking for $ac_word... " >&6; } 3610if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3611 $as_echo_n "(cached) " >&6 3612else 3613 if test -n "$ac_ct_CC"; then 3614 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3615else 3616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3617for as_dir in $PATH 3618do 3619 IFS=$as_save_IFS 3620 test -z "$as_dir" && as_dir=. 3621 for ac_exec_ext in '' $ac_executable_extensions; do 3622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3623 ac_cv_prog_ac_ct_CC="$ac_prog" 3624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3625 break 2 3626 fi 3627done 3628 done 3629IFS=$as_save_IFS 3630 3631fi 3632fi 3633ac_ct_CC=$ac_cv_prog_ac_ct_CC 3634if test -n "$ac_ct_CC"; then 3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3636$as_echo "$ac_ct_CC" >&6; } 3637else 3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3639$as_echo "no" >&6; } 3640fi 3641 3642 3643 test -n "$ac_ct_CC" && break 3644done 3645 3646 if test "x$ac_ct_CC" = x; then 3647 CC="" 3648 else 3649 case $cross_compiling:$ac_tool_warned in 3650yes:) 3651{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3652$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3653ac_tool_warned=yes ;; 3654esac 3655 CC=$ac_ct_CC 3656 fi 3657fi 3658 3659fi 3660 3661 3662test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3663$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3664as_fn_error "no acceptable C compiler found in \$PATH 3665See \`config.log' for more details." "$LINENO" 5; } 3666 3667# Provide some information about the compiler. 3668$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3669set X $ac_compile 3670ac_compiler=$2 3671for ac_option in --version -v -V -qversion; do 3672 { { ac_try="$ac_compiler $ac_option >&5" 3673case "(($ac_try" in 3674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3675 *) ac_try_echo=$ac_try;; 3676esac 3677eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3678$as_echo "$ac_try_echo"; } >&5 3679 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3680 ac_status=$? 3681 if test -s conftest.err; then 3682 sed '10a\ 3683... rest of stderr output deleted ... 3684 10q' conftest.err >conftest.er1 3685 cat conftest.er1 >&5 3686 fi 3687 rm -f conftest.er1 conftest.err 3688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3689 test $ac_status = 0; } 3690done 3691 3692cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3693/* end confdefs.h. */ 3694 3695int 3696main () 3697{ 3698 3699 ; 3700 return 0; 3701} 3702_ACEOF 3703ac_clean_files_save=$ac_clean_files 3704ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3705# Try to create an executable without -o first, disregard a.out. 3706# It will help us diagnose broken compilers, and finding out an intuition 3707# of exeext. 3708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3709$as_echo_n "checking whether the C compiler works... " >&6; } 3710ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3711 3712# The possible output files: 3713ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3714 3715ac_rmfiles= 3716for ac_file in $ac_files 3717do 3718 case $ac_file in 3719 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3720 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3721 esac 3722done 3723rm -f $ac_rmfiles 3724 3725if { { ac_try="$ac_link_default" 3726case "(($ac_try" in 3727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3728 *) ac_try_echo=$ac_try;; 3729esac 3730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3731$as_echo "$ac_try_echo"; } >&5 3732 (eval "$ac_link_default") 2>&5 3733 ac_status=$? 3734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3735 test $ac_status = 0; }; then : 3736 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3737# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3738# in a Makefile. We should not override ac_cv_exeext if it was cached, 3739# so that the user can short-circuit this test for compilers unknown to 3740# Autoconf. 3741for ac_file in $ac_files '' 3742do 3743 test -f "$ac_file" || continue 3744 case $ac_file in 3745 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3746 ;; 3747 [ab].out ) 3748 # We found the default executable, but exeext='' is most 3749 # certainly right. 3750 break;; 3751 *.* ) 3752 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3753 then :; else 3754 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3755 fi 3756 # We set ac_cv_exeext here because the later test for it is not 3757 # safe: cross compilers may not add the suffix if given an `-o' 3758 # argument, so we may need to know it at that point already. 3759 # Even if this section looks crufty: it has the advantage of 3760 # actually working. 3761 break;; 3762 * ) 3763 break;; 3764 esac 3765done 3766test "$ac_cv_exeext" = no && ac_cv_exeext= 3767 3768else 3769 ac_file='' 3770fi 3771if test -z "$ac_file"; then : 3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3773$as_echo "no" >&6; } 3774$as_echo "$as_me: failed program was:" >&5 3775sed 's/^/| /' conftest.$ac_ext >&5 3776 3777{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3778$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3779{ as_fn_set_status 77 3780as_fn_error "C compiler cannot create executables 3781See \`config.log' for more details." "$LINENO" 5; }; } 3782else 3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3784$as_echo "yes" >&6; } 3785fi 3786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3787$as_echo_n "checking for C compiler default output file name... " >&6; } 3788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3789$as_echo "$ac_file" >&6; } 3790ac_exeext=$ac_cv_exeext 3791 3792rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3793ac_clean_files=$ac_clean_files_save 3794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3795$as_echo_n "checking for suffix of executables... " >&6; } 3796if { { ac_try="$ac_link" 3797case "(($ac_try" in 3798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3799 *) ac_try_echo=$ac_try;; 3800esac 3801eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3802$as_echo "$ac_try_echo"; } >&5 3803 (eval "$ac_link") 2>&5 3804 ac_status=$? 3805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3806 test $ac_status = 0; }; then : 3807 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3808# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3809# work properly (i.e., refer to `conftest.exe'), while it won't with 3810# `rm'. 3811for ac_file in conftest.exe conftest conftest.*; do 3812 test -f "$ac_file" || continue 3813 case $ac_file in 3814 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3815 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3816 break;; 3817 * ) break;; 3818 esac 3819done 3820else 3821 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3822$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3823as_fn_error "cannot compute suffix of executables: cannot compile and link 3824See \`config.log' for more details." "$LINENO" 5; } 3825fi 3826rm -f conftest conftest$ac_cv_exeext 3827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3828$as_echo "$ac_cv_exeext" >&6; } 3829 3830rm -f conftest.$ac_ext 3831EXEEXT=$ac_cv_exeext 3832ac_exeext=$EXEEXT 3833cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3834/* end confdefs.h. */ 3835#include <stdio.h> 3836int 3837main () 3838{ 3839FILE *f = fopen ("conftest.out", "w"); 3840 return ferror (f) || fclose (f) != 0; 3841 3842 ; 3843 return 0; 3844} 3845_ACEOF 3846ac_clean_files="$ac_clean_files conftest.out" 3847# Check that the compiler produces executables we can run. If not, either 3848# the compiler is broken, or we cross compile. 3849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3850$as_echo_n "checking whether we are cross compiling... " >&6; } 3851if test "$cross_compiling" != yes; then 3852 { { ac_try="$ac_link" 3853case "(($ac_try" in 3854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3855 *) ac_try_echo=$ac_try;; 3856esac 3857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3858$as_echo "$ac_try_echo"; } >&5 3859 (eval "$ac_link") 2>&5 3860 ac_status=$? 3861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3862 test $ac_status = 0; } 3863 if { ac_try='./conftest$ac_cv_exeext' 3864 { { case "(($ac_try" in 3865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3866 *) ac_try_echo=$ac_try;; 3867esac 3868eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3869$as_echo "$ac_try_echo"; } >&5 3870 (eval "$ac_try") 2>&5 3871 ac_status=$? 3872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3873 test $ac_status = 0; }; }; then 3874 cross_compiling=no 3875 else 3876 if test "$cross_compiling" = maybe; then 3877 cross_compiling=yes 3878 else 3879 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3880$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3881as_fn_error "cannot run C compiled programs. 3882If you meant to cross compile, use \`--host'. 3883See \`config.log' for more details." "$LINENO" 5; } 3884 fi 3885 fi 3886fi 3887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3888$as_echo "$cross_compiling" >&6; } 3889 3890rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3891ac_clean_files=$ac_clean_files_save 3892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3893$as_echo_n "checking for suffix of object files... " >&6; } 3894if test "${ac_cv_objext+set}" = set; then : 3895 $as_echo_n "(cached) " >&6 3896else 3897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3898/* end confdefs.h. */ 3899 3900int 3901main () 3902{ 3903 3904 ; 3905 return 0; 3906} 3907_ACEOF 3908rm -f conftest.o conftest.obj 3909if { { ac_try="$ac_compile" 3910case "(($ac_try" in 3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3912 *) ac_try_echo=$ac_try;; 3913esac 3914eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3915$as_echo "$ac_try_echo"; } >&5 3916 (eval "$ac_compile") 2>&5 3917 ac_status=$? 3918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3919 test $ac_status = 0; }; then : 3920 for ac_file in conftest.o conftest.obj conftest.*; do 3921 test -f "$ac_file" || continue; 3922 case $ac_file in 3923 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3924 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3925 break;; 3926 esac 3927done 3928else 3929 $as_echo "$as_me: failed program was:" >&5 3930sed 's/^/| /' conftest.$ac_ext >&5 3931 3932{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3933$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3934as_fn_error "cannot compute suffix of object files: cannot compile 3935See \`config.log' for more details." "$LINENO" 5; } 3936fi 3937rm -f conftest.$ac_cv_objext conftest.$ac_ext 3938fi 3939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3940$as_echo "$ac_cv_objext" >&6; } 3941OBJEXT=$ac_cv_objext 3942ac_objext=$OBJEXT 3943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3944$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3945if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3946 $as_echo_n "(cached) " >&6 3947else 3948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3949/* end confdefs.h. */ 3950 3951int 3952main () 3953{ 3954#ifndef __GNUC__ 3955 choke me 3956#endif 3957 3958 ; 3959 return 0; 3960} 3961_ACEOF 3962if ac_fn_c_try_compile "$LINENO"; then : 3963 ac_compiler_gnu=yes 3964else 3965 ac_compiler_gnu=no 3966fi 3967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3968ac_cv_c_compiler_gnu=$ac_compiler_gnu 3969 3970fi 3971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3972$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3973if test $ac_compiler_gnu = yes; then 3974 GCC=yes 3975else 3976 GCC= 3977fi 3978ac_test_CFLAGS=${CFLAGS+set} 3979ac_save_CFLAGS=$CFLAGS 3980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3981$as_echo_n "checking whether $CC accepts -g... " >&6; } 3982if test "${ac_cv_prog_cc_g+set}" = set; then : 3983 $as_echo_n "(cached) " >&6 3984else 3985 ac_save_c_werror_flag=$ac_c_werror_flag 3986 ac_c_werror_flag=yes 3987 ac_cv_prog_cc_g=no 3988 CFLAGS="-g" 3989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3990/* end confdefs.h. */ 3991 3992int 3993main () 3994{ 3995 3996 ; 3997 return 0; 3998} 3999_ACEOF 4000if ac_fn_c_try_compile "$LINENO"; then : 4001 ac_cv_prog_cc_g=yes 4002else 4003 CFLAGS="" 4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4005/* end confdefs.h. */ 4006 4007int 4008main () 4009{ 4010 4011 ; 4012 return 0; 4013} 4014_ACEOF 4015if ac_fn_c_try_compile "$LINENO"; then : 4016 4017else 4018 ac_c_werror_flag=$ac_save_c_werror_flag 4019 CFLAGS="-g" 4020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4021/* end confdefs.h. */ 4022 4023int 4024main () 4025{ 4026 4027 ; 4028 return 0; 4029} 4030_ACEOF 4031if ac_fn_c_try_compile "$LINENO"; then : 4032 ac_cv_prog_cc_g=yes 4033fi 4034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4035fi 4036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4037fi 4038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4039 ac_c_werror_flag=$ac_save_c_werror_flag 4040fi 4041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4042$as_echo "$ac_cv_prog_cc_g" >&6; } 4043if test "$ac_test_CFLAGS" = set; then 4044 CFLAGS=$ac_save_CFLAGS 4045elif test $ac_cv_prog_cc_g = yes; then 4046 if test "$GCC" = yes; then 4047 CFLAGS="-g -O2" 4048 else 4049 CFLAGS="-g" 4050 fi 4051else 4052 if test "$GCC" = yes; then 4053 CFLAGS="-O2" 4054 else 4055 CFLAGS= 4056 fi 4057fi 4058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4059$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4060if test "${ac_cv_prog_cc_c89+set}" = set; then : 4061 $as_echo_n "(cached) " >&6 4062else 4063 ac_cv_prog_cc_c89=no 4064ac_save_CC=$CC 4065cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4066/* end confdefs.h. */ 4067#include <stdarg.h> 4068#include <stdio.h> 4069#include <sys/types.h> 4070#include <sys/stat.h> 4071/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4072struct buf { int x; }; 4073FILE * (*rcsopen) (struct buf *, struct stat *, int); 4074static char *e (p, i) 4075 char **p; 4076 int i; 4077{ 4078 return p[i]; 4079} 4080static char *f (char * (*g) (char **, int), char **p, ...) 4081{ 4082 char *s; 4083 va_list v; 4084 va_start (v,p); 4085 s = g (p, va_arg (v,int)); 4086 va_end (v); 4087 return s; 4088} 4089 4090/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4091 function prototypes and stuff, but not '\xHH' hex character constants. 4092 These don't provoke an error unfortunately, instead are silently treated 4093 as 'x'. The following induces an error, until -std is added to get 4094 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4095 array size at least. It's necessary to write '\x00'==0 to get something 4096 that's true only with -std. */ 4097int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4098 4099/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4100 inside strings and character constants. */ 4101#define FOO(x) 'x' 4102int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4103 4104int test (int i, double x); 4105struct s1 {int (*f) (int a);}; 4106struct s2 {int (*f) (double a);}; 4107int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4108int argc; 4109char **argv; 4110int 4111main () 4112{ 4113return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4114 ; 4115 return 0; 4116} 4117_ACEOF 4118for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4119 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4120do 4121 CC="$ac_save_CC $ac_arg" 4122 if ac_fn_c_try_compile "$LINENO"; then : 4123 ac_cv_prog_cc_c89=$ac_arg 4124fi 4125rm -f core conftest.err conftest.$ac_objext 4126 test "x$ac_cv_prog_cc_c89" != "xno" && break 4127done 4128rm -f conftest.$ac_ext 4129CC=$ac_save_CC 4130 4131fi 4132# AC_CACHE_VAL 4133case "x$ac_cv_prog_cc_c89" in 4134 x) 4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4136$as_echo "none needed" >&6; } ;; 4137 xno) 4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4139$as_echo "unsupported" >&6; } ;; 4140 *) 4141 CC="$CC $ac_cv_prog_cc_c89" 4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4143$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4144esac 4145if test "x$ac_cv_prog_cc_c89" != xno; then : 4146 4147fi 4148 4149ac_ext=c 4150ac_cpp='$CPP $CPPFLAGS' 4151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4153ac_compiler_gnu=$ac_cv_c_compiler_gnu 4154 4155depcc="$CC" am_compiler_list= 4156 4157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4158$as_echo_n "checking dependency style of $depcc... " >&6; } 4159if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 4160 $as_echo_n "(cached) " >&6 4161else 4162 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4163 # We make a subdir and do the tests there. Otherwise we can end up 4164 # making bogus files that we don't know about and never remove. For 4165 # instance it was reported that on HP-UX the gcc test will end up 4166 # making a dummy file named `D' -- because `-MD' means `put the output 4167 # in D'. 4168 mkdir conftest.dir 4169 # Copy depcomp to subdir because otherwise we won't find it if we're 4170 # using a relative directory. 4171 cp "$am_depcomp" conftest.dir 4172 cd conftest.dir 4173 # We will build objects and dependencies in a subdirectory because 4174 # it helps to detect inapplicable dependency modes. For instance 4175 # both Tru64's cc and ICC support -MD to output dependencies as a 4176 # side effect of compilation, but ICC will put the dependencies in 4177 # the current directory while Tru64 will put them in the object 4178 # directory. 4179 mkdir sub 4180 4181 am_cv_CC_dependencies_compiler_type=none 4182 if test "$am_compiler_list" = ""; then 4183 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4184 fi 4185 am__universal=false 4186 case " $depcc " in #( 4187 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4188 esac 4189 4190 for depmode in $am_compiler_list; do 4191 # Setup a source with many dependencies, because some compilers 4192 # like to wrap large dependency lists on column 80 (with \), and 4193 # we should not choose a depcomp mode which is confused by this. 4194 # 4195 # We need to recreate these files for each test, as the compiler may 4196 # overwrite some of them when testing with obscure command lines. 4197 # This happens at least with the AIX C compiler. 4198 : > sub/conftest.c 4199 for i in 1 2 3 4 5 6; do 4200 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4201 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4202 # Solaris 8's {/usr,}/bin/sh. 4203 touch sub/conftst$i.h 4204 done 4205 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4206 4207 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4208 # mode. It turns out that the SunPro C++ compiler does not properly 4209 # handle `-M -o', and we need to detect this. Also, some Intel 4210 # versions had trouble with output in subdirs 4211 am__obj=sub/conftest.${OBJEXT-o} 4212 am__minus_obj="-o $am__obj" 4213 case $depmode in 4214 gcc) 4215 # This depmode causes a compiler race in universal mode. 4216 test "$am__universal" = false || continue 4217 ;; 4218 nosideeffect) 4219 # after this tag, mechanisms are not by side-effect, so they'll 4220 # only be used when explicitly requested 4221 if test "x$enable_dependency_tracking" = xyes; then 4222 continue 4223 else 4224 break 4225 fi 4226 ;; 4227 msvisualcpp | msvcmsys) 4228 # This compiler won't grok `-c -o', but also, the minuso test has 4229 # not run yet. These depmodes are late enough in the game, and 4230 # so weak that their functioning should not be impacted. 4231 am__obj=conftest.${OBJEXT-o} 4232 am__minus_obj= 4233 ;; 4234 none) break ;; 4235 esac 4236 if depmode=$depmode \ 4237 source=sub/conftest.c object=$am__obj \ 4238 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4239 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4240 >/dev/null 2>conftest.err && 4241 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4242 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4243 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4244 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4245 # icc doesn't choke on unknown options, it will just issue warnings 4246 # or remarks (even with -Werror). So we grep stderr for any message 4247 # that says an option was ignored or not supported. 4248 # When given -MP, icc 7.0 and 7.1 complain thusly: 4249 # icc: Command line warning: ignoring option '-M'; no argument required 4250 # The diagnosis changed in icc 8.0: 4251 # icc: Command line remark: option '-MP' not supported 4252 if (grep 'ignoring option' conftest.err || 4253 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4254 am_cv_CC_dependencies_compiler_type=$depmode 4255 break 4256 fi 4257 fi 4258 done 4259 4260 cd .. 4261 rm -rf conftest.dir 4262else 4263 am_cv_CC_dependencies_compiler_type=none 4264fi 4265 4266fi 4267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4268$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4269CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4270 4271 if 4272 test "x$enable_dependency_tracking" != xno \ 4273 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4274 am__fastdepCC_TRUE= 4275 am__fastdepCC_FALSE='#' 4276else 4277 am__fastdepCC_TRUE='#' 4278 am__fastdepCC_FALSE= 4279fi 4280 4281 4282 4283ac_ext=c 4284ac_cpp='$CPP $CPPFLAGS' 4285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4287ac_compiler_gnu=$ac_cv_c_compiler_gnu 4288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4289$as_echo_n "checking how to run the C preprocessor... " >&6; } 4290# On Suns, sometimes $CPP names a directory. 4291if test -n "$CPP" && test -d "$CPP"; then 4292 CPP= 4293fi 4294if test -z "$CPP"; then 4295 if test "${ac_cv_prog_CPP+set}" = set; then : 4296 $as_echo_n "(cached) " >&6 4297else 4298 # Double quotes because CPP needs to be expanded 4299 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4300 do 4301 ac_preproc_ok=false 4302for ac_c_preproc_warn_flag in '' yes 4303do 4304 # Use a header file that comes with gcc, so configuring glibc 4305 # with a fresh cross-compiler works. 4306 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4307 # <limits.h> exists even on freestanding compilers. 4308 # On the NeXT, cc -E runs the code through the compiler's parser, 4309 # not just through cpp. "Syntax error" is here to catch this case. 4310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4311/* end confdefs.h. */ 4312#ifdef __STDC__ 4313# include <limits.h> 4314#else 4315# include <assert.h> 4316#endif 4317 Syntax error 4318_ACEOF 4319if ac_fn_c_try_cpp "$LINENO"; then : 4320 4321else 4322 # Broken: fails on valid input. 4323continue 4324fi 4325rm -f conftest.err conftest.$ac_ext 4326 4327 # OK, works on sane cases. Now check whether nonexistent headers 4328 # can be detected and how. 4329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4330/* end confdefs.h. */ 4331#include <ac_nonexistent.h> 4332_ACEOF 4333if ac_fn_c_try_cpp "$LINENO"; then : 4334 # Broken: success on invalid input. 4335continue 4336else 4337 # Passes both tests. 4338ac_preproc_ok=: 4339break 4340fi 4341rm -f conftest.err conftest.$ac_ext 4342 4343done 4344# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4345rm -f conftest.err conftest.$ac_ext 4346if $ac_preproc_ok; then : 4347 break 4348fi 4349 4350 done 4351 ac_cv_prog_CPP=$CPP 4352 4353fi 4354 CPP=$ac_cv_prog_CPP 4355else 4356 ac_cv_prog_CPP=$CPP 4357fi 4358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4359$as_echo "$CPP" >&6; } 4360ac_preproc_ok=false 4361for ac_c_preproc_warn_flag in '' yes 4362do 4363 # Use a header file that comes with gcc, so configuring glibc 4364 # with a fresh cross-compiler works. 4365 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4366 # <limits.h> exists even on freestanding compilers. 4367 # On the NeXT, cc -E runs the code through the compiler's parser, 4368 # not just through cpp. "Syntax error" is here to catch this case. 4369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4370/* end confdefs.h. */ 4371#ifdef __STDC__ 4372# include <limits.h> 4373#else 4374# include <assert.h> 4375#endif 4376 Syntax error 4377_ACEOF 4378if ac_fn_c_try_cpp "$LINENO"; then : 4379 4380else 4381 # Broken: fails on valid input. 4382continue 4383fi 4384rm -f conftest.err conftest.$ac_ext 4385 4386 # OK, works on sane cases. Now check whether nonexistent headers 4387 # can be detected and how. 4388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4389/* end confdefs.h. */ 4390#include <ac_nonexistent.h> 4391_ACEOF 4392if ac_fn_c_try_cpp "$LINENO"; then : 4393 # Broken: success on invalid input. 4394continue 4395else 4396 # Passes both tests. 4397ac_preproc_ok=: 4398break 4399fi 4400rm -f conftest.err conftest.$ac_ext 4401 4402done 4403# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4404rm -f conftest.err conftest.$ac_ext 4405if $ac_preproc_ok; then : 4406 4407else 4408 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4409$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4410as_fn_error "C preprocessor \"$CPP\" fails sanity check 4411See \`config.log' for more details." "$LINENO" 5; } 4412fi 4413 4414ac_ext=c 4415ac_cpp='$CPP $CPPFLAGS' 4416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4418ac_compiler_gnu=$ac_cv_c_compiler_gnu 4419 4420 4421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4422$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4423if test "${ac_cv_path_GREP+set}" = set; then : 4424 $as_echo_n "(cached) " >&6 4425else 4426 if test -z "$GREP"; then 4427 ac_path_GREP_found=false 4428 # Loop through the user's path and test for each of PROGNAME-LIST 4429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4430for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4431do 4432 IFS=$as_save_IFS 4433 test -z "$as_dir" && as_dir=. 4434 for ac_prog in grep ggrep; do 4435 for ac_exec_ext in '' $ac_executable_extensions; do 4436 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4437 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4438# Check for GNU ac_path_GREP and select it if it is found. 4439 # Check for GNU $ac_path_GREP 4440case `"$ac_path_GREP" --version 2>&1` in 4441*GNU*) 4442 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4443*) 4444 ac_count=0 4445 $as_echo_n 0123456789 >"conftest.in" 4446 while : 4447 do 4448 cat "conftest.in" "conftest.in" >"conftest.tmp" 4449 mv "conftest.tmp" "conftest.in" 4450 cp "conftest.in" "conftest.nl" 4451 $as_echo 'GREP' >> "conftest.nl" 4452 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4453 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4454 as_fn_arith $ac_count + 1 && ac_count=$as_val 4455 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4456 # Best one so far, save it but keep looking for a better one 4457 ac_cv_path_GREP="$ac_path_GREP" 4458 ac_path_GREP_max=$ac_count 4459 fi 4460 # 10*(2^10) chars as input seems more than enough 4461 test $ac_count -gt 10 && break 4462 done 4463 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4464esac 4465 4466 $ac_path_GREP_found && break 3 4467 done 4468 done 4469 done 4470IFS=$as_save_IFS 4471 if test -z "$ac_cv_path_GREP"; then 4472 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4473 fi 4474else 4475 ac_cv_path_GREP=$GREP 4476fi 4477 4478fi 4479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4480$as_echo "$ac_cv_path_GREP" >&6; } 4481 GREP="$ac_cv_path_GREP" 4482 4483 4484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4485$as_echo_n "checking for egrep... " >&6; } 4486if test "${ac_cv_path_EGREP+set}" = set; then : 4487 $as_echo_n "(cached) " >&6 4488else 4489 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4490 then ac_cv_path_EGREP="$GREP -E" 4491 else 4492 if test -z "$EGREP"; then 4493 ac_path_EGREP_found=false 4494 # Loop through the user's path and test for each of PROGNAME-LIST 4495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4496for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4497do 4498 IFS=$as_save_IFS 4499 test -z "$as_dir" && as_dir=. 4500 for ac_prog in egrep; do 4501 for ac_exec_ext in '' $ac_executable_extensions; do 4502 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4503 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4504# Check for GNU ac_path_EGREP and select it if it is found. 4505 # Check for GNU $ac_path_EGREP 4506case `"$ac_path_EGREP" --version 2>&1` in 4507*GNU*) 4508 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4509*) 4510 ac_count=0 4511 $as_echo_n 0123456789 >"conftest.in" 4512 while : 4513 do 4514 cat "conftest.in" "conftest.in" >"conftest.tmp" 4515 mv "conftest.tmp" "conftest.in" 4516 cp "conftest.in" "conftest.nl" 4517 $as_echo 'EGREP' >> "conftest.nl" 4518 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4519 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4520 as_fn_arith $ac_count + 1 && ac_count=$as_val 4521 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4522 # Best one so far, save it but keep looking for a better one 4523 ac_cv_path_EGREP="$ac_path_EGREP" 4524 ac_path_EGREP_max=$ac_count 4525 fi 4526 # 10*(2^10) chars as input seems more than enough 4527 test $ac_count -gt 10 && break 4528 done 4529 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4530esac 4531 4532 $ac_path_EGREP_found && break 3 4533 done 4534 done 4535 done 4536IFS=$as_save_IFS 4537 if test -z "$ac_cv_path_EGREP"; then 4538 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4539 fi 4540else 4541 ac_cv_path_EGREP=$EGREP 4542fi 4543 4544 fi 4545fi 4546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4547$as_echo "$ac_cv_path_EGREP" >&6; } 4548 EGREP="$ac_cv_path_EGREP" 4549 4550 4551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4552$as_echo_n "checking for ANSI C header files... " >&6; } 4553if test "${ac_cv_header_stdc+set}" = set; then : 4554 $as_echo_n "(cached) " >&6 4555else 4556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4557/* end confdefs.h. */ 4558#include <stdlib.h> 4559#include <stdarg.h> 4560#include <string.h> 4561#include <float.h> 4562 4563int 4564main () 4565{ 4566 4567 ; 4568 return 0; 4569} 4570_ACEOF 4571if ac_fn_c_try_compile "$LINENO"; then : 4572 ac_cv_header_stdc=yes 4573else 4574 ac_cv_header_stdc=no 4575fi 4576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4577 4578if test $ac_cv_header_stdc = yes; then 4579 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4581/* end confdefs.h. */ 4582#include <string.h> 4583 4584_ACEOF 4585if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4586 $EGREP "memchr" >/dev/null 2>&1; then : 4587 4588else 4589 ac_cv_header_stdc=no 4590fi 4591rm -f conftest* 4592 4593fi 4594 4595if test $ac_cv_header_stdc = yes; then 4596 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4598/* end confdefs.h. */ 4599#include <stdlib.h> 4600 4601_ACEOF 4602if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4603 $EGREP "free" >/dev/null 2>&1; then : 4604 4605else 4606 ac_cv_header_stdc=no 4607fi 4608rm -f conftest* 4609 4610fi 4611 4612if test $ac_cv_header_stdc = yes; then 4613 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4614 if test "$cross_compiling" = yes; then : 4615 : 4616else 4617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4618/* end confdefs.h. */ 4619#include <ctype.h> 4620#include <stdlib.h> 4621#if ((' ' & 0x0FF) == 0x020) 4622# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4623# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4624#else 4625# define ISLOWER(c) \ 4626 (('a' <= (c) && (c) <= 'i') \ 4627 || ('j' <= (c) && (c) <= 'r') \ 4628 || ('s' <= (c) && (c) <= 'z')) 4629# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4630#endif 4631 4632#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4633int 4634main () 4635{ 4636 int i; 4637 for (i = 0; i < 256; i++) 4638 if (XOR (islower (i), ISLOWER (i)) 4639 || toupper (i) != TOUPPER (i)) 4640 return 2; 4641 return 0; 4642} 4643_ACEOF 4644if ac_fn_c_try_run "$LINENO"; then : 4645 4646else 4647 ac_cv_header_stdc=no 4648fi 4649rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4650 conftest.$ac_objext conftest.beam conftest.$ac_ext 4651fi 4652 4653fi 4654fi 4655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4656$as_echo "$ac_cv_header_stdc" >&6; } 4657if test $ac_cv_header_stdc = yes; then 4658 4659$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4660 4661fi 4662 4663# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4664for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4665 inttypes.h stdint.h unistd.h 4666do : 4667 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4668ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4669" 4670eval as_val=\$$as_ac_Header 4671 if test "x$as_val" = x""yes; then : 4672 cat >>confdefs.h <<_ACEOF 4673#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4674_ACEOF 4675 4676fi 4677 4678done 4679 4680 4681 4682 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4683if test "x$ac_cv_header_minix_config_h" = x""yes; then : 4684 MINIX=yes 4685else 4686 MINIX= 4687fi 4688 4689 4690 if test "$MINIX" = yes; then 4691 4692$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4693 4694 4695$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4696 4697 4698$as_echo "#define _MINIX 1" >>confdefs.h 4699 4700 fi 4701 4702 4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4704$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4705if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : 4706 $as_echo_n "(cached) " >&6 4707else 4708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4709/* end confdefs.h. */ 4710 4711# define __EXTENSIONS__ 1 4712 $ac_includes_default 4713int 4714main () 4715{ 4716 4717 ; 4718 return 0; 4719} 4720_ACEOF 4721if ac_fn_c_try_compile "$LINENO"; then : 4722 ac_cv_safe_to_define___extensions__=yes 4723else 4724 ac_cv_safe_to_define___extensions__=no 4725fi 4726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4727fi 4728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4729$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4730 test $ac_cv_safe_to_define___extensions__ = yes && 4731 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4732 4733 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4734 4735 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4736 4737 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4738 4739 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4756 4757 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4758 4759 4760 4761 4762 4763 4764 4765 4766ac_ext=c 4767ac_cpp='$CPP $CPPFLAGS' 4768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4770ac_compiler_gnu=$ac_cv_c_compiler_gnu 4771if test -n "$ac_tool_prefix"; then 4772 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4773set dummy ${ac_tool_prefix}gcc; ac_word=$2 4774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4775$as_echo_n "checking for $ac_word... " >&6; } 4776if test "${ac_cv_prog_CC+set}" = set; then : 4777 $as_echo_n "(cached) " >&6 4778else 4779 if test -n "$CC"; then 4780 ac_cv_prog_CC="$CC" # Let the user override the test. 4781else 4782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4783for as_dir in $PATH 4784do 4785 IFS=$as_save_IFS 4786 test -z "$as_dir" && as_dir=. 4787 for ac_exec_ext in '' $ac_executable_extensions; do 4788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4789 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4791 break 2 4792 fi 4793done 4794 done 4795IFS=$as_save_IFS 4796 4797fi 4798fi 4799CC=$ac_cv_prog_CC 4800if test -n "$CC"; then 4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4802$as_echo "$CC" >&6; } 4803else 4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4805$as_echo "no" >&6; } 4806fi 4807 4808 4809fi 4810if test -z "$ac_cv_prog_CC"; then 4811 ac_ct_CC=$CC 4812 # Extract the first word of "gcc", so it can be a program name with args. 4813set dummy gcc; ac_word=$2 4814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4815$as_echo_n "checking for $ac_word... " >&6; } 4816if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4817 $as_echo_n "(cached) " >&6 4818else 4819 if test -n "$ac_ct_CC"; then 4820 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4821else 4822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4823for as_dir in $PATH 4824do 4825 IFS=$as_save_IFS 4826 test -z "$as_dir" && as_dir=. 4827 for ac_exec_ext in '' $ac_executable_extensions; do 4828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4829 ac_cv_prog_ac_ct_CC="gcc" 4830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4831 break 2 4832 fi 4833done 4834 done 4835IFS=$as_save_IFS 4836 4837fi 4838fi 4839ac_ct_CC=$ac_cv_prog_ac_ct_CC 4840if test -n "$ac_ct_CC"; then 4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4842$as_echo "$ac_ct_CC" >&6; } 4843else 4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4845$as_echo "no" >&6; } 4846fi 4847 4848 if test "x$ac_ct_CC" = x; then 4849 CC="" 4850 else 4851 case $cross_compiling:$ac_tool_warned in 4852yes:) 4853{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4854$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4855ac_tool_warned=yes ;; 4856esac 4857 CC=$ac_ct_CC 4858 fi 4859else 4860 CC="$ac_cv_prog_CC" 4861fi 4862 4863if test -z "$CC"; then 4864 if test -n "$ac_tool_prefix"; then 4865 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4866set dummy ${ac_tool_prefix}cc; ac_word=$2 4867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4868$as_echo_n "checking for $ac_word... " >&6; } 4869if test "${ac_cv_prog_CC+set}" = set; then : 4870 $as_echo_n "(cached) " >&6 4871else 4872 if test -n "$CC"; then 4873 ac_cv_prog_CC="$CC" # Let the user override the test. 4874else 4875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4876for as_dir in $PATH 4877do 4878 IFS=$as_save_IFS 4879 test -z "$as_dir" && as_dir=. 4880 for ac_exec_ext in '' $ac_executable_extensions; do 4881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4882 ac_cv_prog_CC="${ac_tool_prefix}cc" 4883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4884 break 2 4885 fi 4886done 4887 done 4888IFS=$as_save_IFS 4889 4890fi 4891fi 4892CC=$ac_cv_prog_CC 4893if test -n "$CC"; then 4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4895$as_echo "$CC" >&6; } 4896else 4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4898$as_echo "no" >&6; } 4899fi 4900 4901 4902 fi 4903fi 4904if test -z "$CC"; then 4905 # Extract the first word of "cc", so it can be a program name with args. 4906set dummy cc; ac_word=$2 4907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4908$as_echo_n "checking for $ac_word... " >&6; } 4909if test "${ac_cv_prog_CC+set}" = set; then : 4910 $as_echo_n "(cached) " >&6 4911else 4912 if test -n "$CC"; then 4913 ac_cv_prog_CC="$CC" # Let the user override the test. 4914else 4915 ac_prog_rejected=no 4916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4917for as_dir in $PATH 4918do 4919 IFS=$as_save_IFS 4920 test -z "$as_dir" && as_dir=. 4921 for ac_exec_ext in '' $ac_executable_extensions; do 4922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4923 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4924 ac_prog_rejected=yes 4925 continue 4926 fi 4927 ac_cv_prog_CC="cc" 4928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4929 break 2 4930 fi 4931done 4932 done 4933IFS=$as_save_IFS 4934 4935if test $ac_prog_rejected = yes; then 4936 # We found a bogon in the path, so make sure we never use it. 4937 set dummy $ac_cv_prog_CC 4938 shift 4939 if test $# != 0; then 4940 # We chose a different compiler from the bogus one. 4941 # However, it has the same basename, so the bogon will be chosen 4942 # first if we set CC to just the basename; use the full file name. 4943 shift 4944 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4945 fi 4946fi 4947fi 4948fi 4949CC=$ac_cv_prog_CC 4950if test -n "$CC"; then 4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4952$as_echo "$CC" >&6; } 4953else 4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4955$as_echo "no" >&6; } 4956fi 4957 4958 4959fi 4960if test -z "$CC"; then 4961 if test -n "$ac_tool_prefix"; then 4962 for ac_prog in cl.exe 4963 do 4964 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4965set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4967$as_echo_n "checking for $ac_word... " >&6; } 4968if test "${ac_cv_prog_CC+set}" = set; then : 4969 $as_echo_n "(cached) " >&6 4970else 4971 if test -n "$CC"; then 4972 ac_cv_prog_CC="$CC" # Let the user override the test. 4973else 4974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4975for as_dir in $PATH 4976do 4977 IFS=$as_save_IFS 4978 test -z "$as_dir" && as_dir=. 4979 for ac_exec_ext in '' $ac_executable_extensions; do 4980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4981 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4983 break 2 4984 fi 4985done 4986 done 4987IFS=$as_save_IFS 4988 4989fi 4990fi 4991CC=$ac_cv_prog_CC 4992if test -n "$CC"; then 4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4994$as_echo "$CC" >&6; } 4995else 4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4997$as_echo "no" >&6; } 4998fi 4999 5000 5001 test -n "$CC" && break 5002 done 5003fi 5004if test -z "$CC"; then 5005 ac_ct_CC=$CC 5006 for ac_prog in cl.exe 5007do 5008 # Extract the first word of "$ac_prog", so it can be a program name with args. 5009set dummy $ac_prog; ac_word=$2 5010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5011$as_echo_n "checking for $ac_word... " >&6; } 5012if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 5013 $as_echo_n "(cached) " >&6 5014else 5015 if test -n "$ac_ct_CC"; then 5016 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5017else 5018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5019for as_dir in $PATH 5020do 5021 IFS=$as_save_IFS 5022 test -z "$as_dir" && as_dir=. 5023 for ac_exec_ext in '' $ac_executable_extensions; do 5024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5025 ac_cv_prog_ac_ct_CC="$ac_prog" 5026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5027 break 2 5028 fi 5029done 5030 done 5031IFS=$as_save_IFS 5032 5033fi 5034fi 5035ac_ct_CC=$ac_cv_prog_ac_ct_CC 5036if test -n "$ac_ct_CC"; then 5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5038$as_echo "$ac_ct_CC" >&6; } 5039else 5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5041$as_echo "no" >&6; } 5042fi 5043 5044 5045 test -n "$ac_ct_CC" && break 5046done 5047 5048 if test "x$ac_ct_CC" = x; then 5049 CC="" 5050 else 5051 case $cross_compiling:$ac_tool_warned in 5052yes:) 5053{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5054$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5055ac_tool_warned=yes ;; 5056esac 5057 CC=$ac_ct_CC 5058 fi 5059fi 5060 5061fi 5062 5063 5064test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5065$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5066as_fn_error "no acceptable C compiler found in \$PATH 5067See \`config.log' for more details." "$LINENO" 5; } 5068 5069# Provide some information about the compiler. 5070$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5071set X $ac_compile 5072ac_compiler=$2 5073for ac_option in --version -v -V -qversion; do 5074 { { ac_try="$ac_compiler $ac_option >&5" 5075case "(($ac_try" in 5076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5077 *) ac_try_echo=$ac_try;; 5078esac 5079eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5080$as_echo "$ac_try_echo"; } >&5 5081 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5082 ac_status=$? 5083 if test -s conftest.err; then 5084 sed '10a\ 5085... rest of stderr output deleted ... 5086 10q' conftest.err >conftest.er1 5087 cat conftest.er1 >&5 5088 fi 5089 rm -f conftest.er1 conftest.err 5090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5091 test $ac_status = 0; } 5092done 5093 5094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5095$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5096if test "${ac_cv_c_compiler_gnu+set}" = set; then : 5097 $as_echo_n "(cached) " >&6 5098else 5099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5100/* end confdefs.h. */ 5101 5102int 5103main () 5104{ 5105#ifndef __GNUC__ 5106 choke me 5107#endif 5108 5109 ; 5110 return 0; 5111} 5112_ACEOF 5113if ac_fn_c_try_compile "$LINENO"; then : 5114 ac_compiler_gnu=yes 5115else 5116 ac_compiler_gnu=no 5117fi 5118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5119ac_cv_c_compiler_gnu=$ac_compiler_gnu 5120 5121fi 5122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5123$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5124if test $ac_compiler_gnu = yes; then 5125 GCC=yes 5126else 5127 GCC= 5128fi 5129ac_test_CFLAGS=${CFLAGS+set} 5130ac_save_CFLAGS=$CFLAGS 5131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5132$as_echo_n "checking whether $CC accepts -g... " >&6; } 5133if test "${ac_cv_prog_cc_g+set}" = set; then : 5134 $as_echo_n "(cached) " >&6 5135else 5136 ac_save_c_werror_flag=$ac_c_werror_flag 5137 ac_c_werror_flag=yes 5138 ac_cv_prog_cc_g=no 5139 CFLAGS="-g" 5140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5141/* end confdefs.h. */ 5142 5143int 5144main () 5145{ 5146 5147 ; 5148 return 0; 5149} 5150_ACEOF 5151if ac_fn_c_try_compile "$LINENO"; then : 5152 ac_cv_prog_cc_g=yes 5153else 5154 CFLAGS="" 5155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5156/* end confdefs.h. */ 5157 5158int 5159main () 5160{ 5161 5162 ; 5163 return 0; 5164} 5165_ACEOF 5166if ac_fn_c_try_compile "$LINENO"; then : 5167 5168else 5169 ac_c_werror_flag=$ac_save_c_werror_flag 5170 CFLAGS="-g" 5171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5172/* end confdefs.h. */ 5173 5174int 5175main () 5176{ 5177 5178 ; 5179 return 0; 5180} 5181_ACEOF 5182if ac_fn_c_try_compile "$LINENO"; then : 5183 ac_cv_prog_cc_g=yes 5184fi 5185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5186fi 5187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5188fi 5189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5190 ac_c_werror_flag=$ac_save_c_werror_flag 5191fi 5192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5193$as_echo "$ac_cv_prog_cc_g" >&6; } 5194if test "$ac_test_CFLAGS" = set; then 5195 CFLAGS=$ac_save_CFLAGS 5196elif test $ac_cv_prog_cc_g = yes; then 5197 if test "$GCC" = yes; then 5198 CFLAGS="-g -O2" 5199 else 5200 CFLAGS="-g" 5201 fi 5202else 5203 if test "$GCC" = yes; then 5204 CFLAGS="-O2" 5205 else 5206 CFLAGS= 5207 fi 5208fi 5209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5210$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5211if test "${ac_cv_prog_cc_c89+set}" = set; then : 5212 $as_echo_n "(cached) " >&6 5213else 5214 ac_cv_prog_cc_c89=no 5215ac_save_CC=$CC 5216cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5217/* end confdefs.h. */ 5218#include <stdarg.h> 5219#include <stdio.h> 5220#include <sys/types.h> 5221#include <sys/stat.h> 5222/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5223struct buf { int x; }; 5224FILE * (*rcsopen) (struct buf *, struct stat *, int); 5225static char *e (p, i) 5226 char **p; 5227 int i; 5228{ 5229 return p[i]; 5230} 5231static char *f (char * (*g) (char **, int), char **p, ...) 5232{ 5233 char *s; 5234 va_list v; 5235 va_start (v,p); 5236 s = g (p, va_arg (v,int)); 5237 va_end (v); 5238 return s; 5239} 5240 5241/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5242 function prototypes and stuff, but not '\xHH' hex character constants. 5243 These don't provoke an error unfortunately, instead are silently treated 5244 as 'x'. The following induces an error, until -std is added to get 5245 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5246 array size at least. It's necessary to write '\x00'==0 to get something 5247 that's true only with -std. */ 5248int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5249 5250/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5251 inside strings and character constants. */ 5252#define FOO(x) 'x' 5253int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5254 5255int test (int i, double x); 5256struct s1 {int (*f) (int a);}; 5257struct s2 {int (*f) (double a);}; 5258int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5259int argc; 5260char **argv; 5261int 5262main () 5263{ 5264return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5265 ; 5266 return 0; 5267} 5268_ACEOF 5269for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5270 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5271do 5272 CC="$ac_save_CC $ac_arg" 5273 if ac_fn_c_try_compile "$LINENO"; then : 5274 ac_cv_prog_cc_c89=$ac_arg 5275fi 5276rm -f core conftest.err conftest.$ac_objext 5277 test "x$ac_cv_prog_cc_c89" != "xno" && break 5278done 5279rm -f conftest.$ac_ext 5280CC=$ac_save_CC 5281 5282fi 5283# AC_CACHE_VAL 5284case "x$ac_cv_prog_cc_c89" in 5285 x) 5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5287$as_echo "none needed" >&6; } ;; 5288 xno) 5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5290$as_echo "unsupported" >&6; } ;; 5291 *) 5292 CC="$CC $ac_cv_prog_cc_c89" 5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5294$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5295esac 5296if test "x$ac_cv_prog_cc_c89" != xno; then : 5297 5298fi 5299 5300ac_ext=c 5301ac_cpp='$CPP $CPPFLAGS' 5302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5304ac_compiler_gnu=$ac_cv_c_compiler_gnu 5305 5306depcc="$CC" am_compiler_list= 5307 5308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5309$as_echo_n "checking dependency style of $depcc... " >&6; } 5310if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 5311 $as_echo_n "(cached) " >&6 5312else 5313 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5314 # We make a subdir and do the tests there. Otherwise we can end up 5315 # making bogus files that we don't know about and never remove. For 5316 # instance it was reported that on HP-UX the gcc test will end up 5317 # making a dummy file named `D' -- because `-MD' means `put the output 5318 # in D'. 5319 mkdir conftest.dir 5320 # Copy depcomp to subdir because otherwise we won't find it if we're 5321 # using a relative directory. 5322 cp "$am_depcomp" conftest.dir 5323 cd conftest.dir 5324 # We will build objects and dependencies in a subdirectory because 5325 # it helps to detect inapplicable dependency modes. For instance 5326 # both Tru64's cc and ICC support -MD to output dependencies as a 5327 # side effect of compilation, but ICC will put the dependencies in 5328 # the current directory while Tru64 will put them in the object 5329 # directory. 5330 mkdir sub 5331 5332 am_cv_CC_dependencies_compiler_type=none 5333 if test "$am_compiler_list" = ""; then 5334 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5335 fi 5336 am__universal=false 5337 case " $depcc " in #( 5338 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5339 esac 5340 5341 for depmode in $am_compiler_list; do 5342 # Setup a source with many dependencies, because some compilers 5343 # like to wrap large dependency lists on column 80 (with \), and 5344 # we should not choose a depcomp mode which is confused by this. 5345 # 5346 # We need to recreate these files for each test, as the compiler may 5347 # overwrite some of them when testing with obscure command lines. 5348 # This happens at least with the AIX C compiler. 5349 : > sub/conftest.c 5350 for i in 1 2 3 4 5 6; do 5351 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5352 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5353 # Solaris 8's {/usr,}/bin/sh. 5354 touch sub/conftst$i.h 5355 done 5356 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5357 5358 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5359 # mode. It turns out that the SunPro C++ compiler does not properly 5360 # handle `-M -o', and we need to detect this. Also, some Intel 5361 # versions had trouble with output in subdirs 5362 am__obj=sub/conftest.${OBJEXT-o} 5363 am__minus_obj="-o $am__obj" 5364 case $depmode in 5365 gcc) 5366 # This depmode causes a compiler race in universal mode. 5367 test "$am__universal" = false || continue 5368 ;; 5369 nosideeffect) 5370 # after this tag, mechanisms are not by side-effect, so they'll 5371 # only be used when explicitly requested 5372 if test "x$enable_dependency_tracking" = xyes; then 5373 continue 5374 else 5375 break 5376 fi 5377 ;; 5378 msvisualcpp | msvcmsys) 5379 # This compiler won't grok `-c -o', but also, the minuso test has 5380 # not run yet. These depmodes are late enough in the game, and 5381 # so weak that their functioning should not be impacted. 5382 am__obj=conftest.${OBJEXT-o} 5383 am__minus_obj= 5384 ;; 5385 none) break ;; 5386 esac 5387 if depmode=$depmode \ 5388 source=sub/conftest.c object=$am__obj \ 5389 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5390 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5391 >/dev/null 2>conftest.err && 5392 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5393 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5394 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5395 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5396 # icc doesn't choke on unknown options, it will just issue warnings 5397 # or remarks (even with -Werror). So we grep stderr for any message 5398 # that says an option was ignored or not supported. 5399 # When given -MP, icc 7.0 and 7.1 complain thusly: 5400 # icc: Command line warning: ignoring option '-M'; no argument required 5401 # The diagnosis changed in icc 8.0: 5402 # icc: Command line remark: option '-MP' not supported 5403 if (grep 'ignoring option' conftest.err || 5404 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5405 am_cv_CC_dependencies_compiler_type=$depmode 5406 break 5407 fi 5408 fi 5409 done 5410 5411 cd .. 5412 rm -rf conftest.dir 5413else 5414 am_cv_CC_dependencies_compiler_type=none 5415fi 5416 5417fi 5418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5419$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5420CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5421 5422 if 5423 test "x$enable_dependency_tracking" != xno \ 5424 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5425 am__fastdepCC_TRUE= 5426 am__fastdepCC_FALSE='#' 5427else 5428 am__fastdepCC_TRUE='#' 5429 am__fastdepCC_FALSE= 5430fi 5431 5432 5433if test "x$CC" != xcc; then 5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 5435$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 5436else 5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 5438$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 5439fi 5440set dummy $CC; ac_cc=`$as_echo "$2" | 5441 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 5442if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then : 5443 $as_echo_n "(cached) " >&6 5444else 5445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5446/* end confdefs.h. */ 5447 5448int 5449main () 5450{ 5451 5452 ; 5453 return 0; 5454} 5455_ACEOF 5456# Make sure it works both with $CC and with simple cc. 5457# We do the test twice because some compilers refuse to overwrite an 5458# existing .o file with -o, though they will create one. 5459ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 5460rm -f conftest2.* 5461if { { case "(($ac_try" in 5462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5463 *) ac_try_echo=$ac_try;; 5464esac 5465eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5466$as_echo "$ac_try_echo"; } >&5 5467 (eval "$ac_try") 2>&5 5468 ac_status=$? 5469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5470 test $ac_status = 0; } && 5471 test -f conftest2.$ac_objext && { { case "(($ac_try" in 5472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5473 *) ac_try_echo=$ac_try;; 5474esac 5475eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5476$as_echo "$ac_try_echo"; } >&5 5477 (eval "$ac_try") 2>&5 5478 ac_status=$? 5479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5480 test $ac_status = 0; }; 5481then 5482 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 5483 if test "x$CC" != xcc; then 5484 # Test first that cc exists at all. 5485 if { ac_try='cc -c conftest.$ac_ext >&5' 5486 { { case "(($ac_try" in 5487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5488 *) ac_try_echo=$ac_try;; 5489esac 5490eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5491$as_echo "$ac_try_echo"; } >&5 5492 (eval "$ac_try") 2>&5 5493 ac_status=$? 5494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5495 test $ac_status = 0; }; }; then 5496 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 5497 rm -f conftest2.* 5498 if { { case "(($ac_try" in 5499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5500 *) ac_try_echo=$ac_try;; 5501esac 5502eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5503$as_echo "$ac_try_echo"; } >&5 5504 (eval "$ac_try") 2>&5 5505 ac_status=$? 5506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5507 test $ac_status = 0; } && 5508 test -f conftest2.$ac_objext && { { case "(($ac_try" in 5509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5510 *) ac_try_echo=$ac_try;; 5511esac 5512eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5513$as_echo "$ac_try_echo"; } >&5 5514 (eval "$ac_try") 2>&5 5515 ac_status=$? 5516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5517 test $ac_status = 0; }; 5518 then 5519 # cc works too. 5520 : 5521 else 5522 # cc exists but doesn't like -o. 5523 eval ac_cv_prog_cc_${ac_cc}_c_o=no 5524 fi 5525 fi 5526 fi 5527else 5528 eval ac_cv_prog_cc_${ac_cc}_c_o=no 5529fi 5530rm -f core conftest* 5531 5532fi 5533if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5535$as_echo "yes" >&6; } 5536else 5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5538$as_echo "no" >&6; } 5539 5540$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 5541 5542fi 5543 5544# FIXME: we rely on the cache variable name because 5545# there is no other way. 5546set dummy $CC 5547am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 5548eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 5549if test "$am_t" != yes; then 5550 # Losing compiler, so override with the script. 5551 # FIXME: It is wrong to rewrite CC. 5552 # But if we don't then we get into trouble of one sort or another. 5553 # A longer-term fix would be to have automake use am__CC in this case, 5554 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5555 CC="$am_aux_dir/compile $CC" 5556fi 5557 5558 5559 5560# Find the posix library needed on INTERACTIVE UNIX (ISC) 5561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 5562$as_echo_n "checking for library containing strerror... " >&6; } 5563if test "${ac_cv_search_strerror+set}" = set; then : 5564 $as_echo_n "(cached) " >&6 5565else 5566 ac_func_search_save_LIBS=$LIBS 5567cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5568/* end confdefs.h. */ 5569 5570/* Override any GCC internal prototype to avoid an error. 5571 Use char because int might match the return type of a GCC 5572 builtin and then its argument prototype would still apply. */ 5573#ifdef __cplusplus 5574extern "C" 5575#endif 5576char strerror (); 5577int 5578main () 5579{ 5580return strerror (); 5581 ; 5582 return 0; 5583} 5584_ACEOF 5585for ac_lib in '' cposix; do 5586 if test -z "$ac_lib"; then 5587 ac_res="none required" 5588 else 5589 ac_res=-l$ac_lib 5590 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5591 fi 5592 if ac_fn_c_try_link "$LINENO"; then : 5593 ac_cv_search_strerror=$ac_res 5594fi 5595rm -f core conftest.err conftest.$ac_objext \ 5596 conftest$ac_exeext 5597 if test "${ac_cv_search_strerror+set}" = set; then : 5598 break 5599fi 5600done 5601if test "${ac_cv_search_strerror+set}" = set; then : 5602 5603else 5604 ac_cv_search_strerror=no 5605fi 5606rm conftest.$ac_ext 5607LIBS=$ac_func_search_save_LIBS 5608fi 5609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 5610$as_echo "$ac_cv_search_strerror" >&6; } 5611ac_res=$ac_cv_search_strerror 5612if test "$ac_res" != no; then : 5613 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5614 5615fi 5616 5617 5618 5619if test -n "$ac_tool_prefix"; then 5620 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5621set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5623$as_echo_n "checking for $ac_word... " >&6; } 5624if test "${ac_cv_prog_RANLIB+set}" = set; then : 5625 $as_echo_n "(cached) " >&6 5626else 5627 if test -n "$RANLIB"; then 5628 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5629else 5630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5631for as_dir in $PATH 5632do 5633 IFS=$as_save_IFS 5634 test -z "$as_dir" && as_dir=. 5635 for ac_exec_ext in '' $ac_executable_extensions; do 5636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5637 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5639 break 2 5640 fi 5641done 5642 done 5643IFS=$as_save_IFS 5644 5645fi 5646fi 5647RANLIB=$ac_cv_prog_RANLIB 5648if test -n "$RANLIB"; then 5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5650$as_echo "$RANLIB" >&6; } 5651else 5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5653$as_echo "no" >&6; } 5654fi 5655 5656 5657fi 5658if test -z "$ac_cv_prog_RANLIB"; then 5659 ac_ct_RANLIB=$RANLIB 5660 # Extract the first word of "ranlib", so it can be a program name with args. 5661set dummy ranlib; ac_word=$2 5662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5663$as_echo_n "checking for $ac_word... " >&6; } 5664if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 5665 $as_echo_n "(cached) " >&6 5666else 5667 if test -n "$ac_ct_RANLIB"; then 5668 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5669else 5670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5671for as_dir in $PATH 5672do 5673 IFS=$as_save_IFS 5674 test -z "$as_dir" && as_dir=. 5675 for ac_exec_ext in '' $ac_executable_extensions; do 5676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5677 ac_cv_prog_ac_ct_RANLIB="ranlib" 5678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5679 break 2 5680 fi 5681done 5682 done 5683IFS=$as_save_IFS 5684 5685fi 5686fi 5687ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5688if test -n "$ac_ct_RANLIB"; then 5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5690$as_echo "$ac_ct_RANLIB" >&6; } 5691else 5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5693$as_echo "no" >&6; } 5694fi 5695 5696 if test "x$ac_ct_RANLIB" = x; then 5697 RANLIB=":" 5698 else 5699 case $cross_compiling:$ac_tool_warned in 5700yes:) 5701{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5702$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5703ac_tool_warned=yes ;; 5704esac 5705 RANLIB=$ac_ct_RANLIB 5706 fi 5707else 5708 RANLIB="$ac_cv_prog_RANLIB" 5709fi 5710 5711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5712$as_echo_n "checking whether ln -s works... " >&6; } 5713LN_S=$as_ln_s 5714if test "$LN_S" = "ln -s"; then 5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5716$as_echo "yes" >&6; } 5717else 5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5719$as_echo "no, using $LN_S" >&6; } 5720fi 5721 5722# Check whether --enable-largefile was given. 5723if test "${enable_largefile+set}" = set; then : 5724 enableval=$enable_largefile; 5725fi 5726 5727if test "$enable_largefile" != no; then 5728 5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 5730$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 5731if test "${ac_cv_sys_largefile_CC+set}" = set; then : 5732 $as_echo_n "(cached) " >&6 5733else 5734 ac_cv_sys_largefile_CC=no 5735 if test "$GCC" != yes; then 5736 ac_save_CC=$CC 5737 while :; do 5738 # IRIX 6.2 and later do not support large files by default, 5739 # so use the C compiler's -n32 option if that helps. 5740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5741/* end confdefs.h. */ 5742#include <sys/types.h> 5743 /* Check that off_t can represent 2**63 - 1 correctly. 5744 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5745 since some C++ compilers masquerading as C compilers 5746 incorrectly reject 9223372036854775807. */ 5747#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5748 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5749 && LARGE_OFF_T % 2147483647 == 1) 5750 ? 1 : -1]; 5751int 5752main () 5753{ 5754 5755 ; 5756 return 0; 5757} 5758_ACEOF 5759 if ac_fn_c_try_compile "$LINENO"; then : 5760 break 5761fi 5762rm -f core conftest.err conftest.$ac_objext 5763 CC="$CC -n32" 5764 if ac_fn_c_try_compile "$LINENO"; then : 5765 ac_cv_sys_largefile_CC=' -n32'; break 5766fi 5767rm -f core conftest.err conftest.$ac_objext 5768 break 5769 done 5770 CC=$ac_save_CC 5771 rm -f conftest.$ac_ext 5772 fi 5773fi 5774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 5775$as_echo "$ac_cv_sys_largefile_CC" >&6; } 5776 if test "$ac_cv_sys_largefile_CC" != no; then 5777 CC=$CC$ac_cv_sys_largefile_CC 5778 fi 5779 5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 5781$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 5782if test "${ac_cv_sys_file_offset_bits+set}" = set; then : 5783 $as_echo_n "(cached) " >&6 5784else 5785 while :; do 5786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5787/* end confdefs.h. */ 5788#include <sys/types.h> 5789 /* Check that off_t can represent 2**63 - 1 correctly. 5790 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5791 since some C++ compilers masquerading as C compilers 5792 incorrectly reject 9223372036854775807. */ 5793#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5794 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5795 && LARGE_OFF_T % 2147483647 == 1) 5796 ? 1 : -1]; 5797int 5798main () 5799{ 5800 5801 ; 5802 return 0; 5803} 5804_ACEOF 5805if ac_fn_c_try_compile "$LINENO"; then : 5806 ac_cv_sys_file_offset_bits=no; break 5807fi 5808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5810/* end confdefs.h. */ 5811#define _FILE_OFFSET_BITS 64 5812#include <sys/types.h> 5813 /* Check that off_t can represent 2**63 - 1 correctly. 5814 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5815 since some C++ compilers masquerading as C compilers 5816 incorrectly reject 9223372036854775807. */ 5817#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5818 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5819 && LARGE_OFF_T % 2147483647 == 1) 5820 ? 1 : -1]; 5821int 5822main () 5823{ 5824 5825 ; 5826 return 0; 5827} 5828_ACEOF 5829if ac_fn_c_try_compile "$LINENO"; then : 5830 ac_cv_sys_file_offset_bits=64; break 5831fi 5832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5833 ac_cv_sys_file_offset_bits=unknown 5834 break 5835done 5836fi 5837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 5838$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 5839case $ac_cv_sys_file_offset_bits in #( 5840 no | unknown) ;; 5841 *) 5842cat >>confdefs.h <<_ACEOF 5843#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 5844_ACEOF 5845;; 5846esac 5847rm -rf conftest* 5848 if test $ac_cv_sys_file_offset_bits = unknown; then 5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 5850$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 5851if test "${ac_cv_sys_large_files+set}" = set; then : 5852 $as_echo_n "(cached) " >&6 5853else 5854 while :; do 5855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5856/* end confdefs.h. */ 5857#include <sys/types.h> 5858 /* Check that off_t can represent 2**63 - 1 correctly. 5859 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5860 since some C++ compilers masquerading as C compilers 5861 incorrectly reject 9223372036854775807. */ 5862#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5863 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5864 && LARGE_OFF_T % 2147483647 == 1) 5865 ? 1 : -1]; 5866int 5867main () 5868{ 5869 5870 ; 5871 return 0; 5872} 5873_ACEOF 5874if ac_fn_c_try_compile "$LINENO"; then : 5875 ac_cv_sys_large_files=no; break 5876fi 5877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5879/* end confdefs.h. */ 5880#define _LARGE_FILES 1 5881#include <sys/types.h> 5882 /* Check that off_t can represent 2**63 - 1 correctly. 5883 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5884 since some C++ compilers masquerading as C compilers 5885 incorrectly reject 9223372036854775807. */ 5886#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5887 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5888 && LARGE_OFF_T % 2147483647 == 1) 5889 ? 1 : -1]; 5890int 5891main () 5892{ 5893 5894 ; 5895 return 0; 5896} 5897_ACEOF 5898if ac_fn_c_try_compile "$LINENO"; then : 5899 ac_cv_sys_large_files=1; break 5900fi 5901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5902 ac_cv_sys_large_files=unknown 5903 break 5904done 5905fi 5906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 5907$as_echo "$ac_cv_sys_large_files" >&6; } 5908case $ac_cv_sys_large_files in #( 5909 no | unknown) ;; 5910 *) 5911cat >>confdefs.h <<_ACEOF 5912#define _LARGE_FILES $ac_cv_sys_large_files 5913_ACEOF 5914;; 5915esac 5916rm -rf conftest* 5917 fi 5918fi 5919 5920 5921 5922# Extract the first word of "perl", so it can be a program name with args. 5923set dummy perl; ac_word=$2 5924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5925$as_echo_n "checking for $ac_word... " >&6; } 5926if test "${ac_cv_path_PERL+set}" = set; then : 5927 $as_echo_n "(cached) " >&6 5928else 5929 case $PERL in 5930 [\\/]* | ?:[\\/]*) 5931 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 5932 ;; 5933 *) 5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5935for as_dir in $PATH 5936do 5937 IFS=$as_save_IFS 5938 test -z "$as_dir" && as_dir=. 5939 for ac_exec_ext in '' $ac_executable_extensions; do 5940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5941 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 5942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5943 break 2 5944 fi 5945done 5946 done 5947IFS=$as_save_IFS 5948 5949 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no" 5950 ;; 5951esac 5952fi 5953PERL=$ac_cv_path_PERL 5954if test -n "$PERL"; then 5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 5956$as_echo "$PERL" >&6; } 5957else 5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5959$as_echo "no" >&6; } 5960fi 5961 5962 5963# Extract the first word of "csh", so it can be a program name with args. 5964set dummy csh; ac_word=$2 5965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5966$as_echo_n "checking for $ac_word... " >&6; } 5967if test "${ac_cv_path_CSH+set}" = set; then : 5968 $as_echo_n "(cached) " >&6 5969else 5970 case $CSH in 5971 [\\/]* | ?:[\\/]*) 5972 ac_cv_path_CSH="$CSH" # Let the user override the test with a path. 5973 ;; 5974 *) 5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5976for as_dir in $PATH 5977do 5978 IFS=$as_save_IFS 5979 test -z "$as_dir" && as_dir=. 5980 for ac_exec_ext in '' $ac_executable_extensions; do 5981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5982 ac_cv_path_CSH="$as_dir/$ac_word$ac_exec_ext" 5983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5984 break 2 5985 fi 5986done 5987 done 5988IFS=$as_save_IFS 5989 5990 test -z "$ac_cv_path_CSH" && ac_cv_path_CSH="no" 5991 ;; 5992esac 5993fi 5994CSH=$ac_cv_path_CSH 5995if test -n "$CSH"; then 5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSH" >&5 5997$as_echo "$CSH" >&6; } 5998else 5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6000$as_echo "no" >&6; } 6001fi 6002 6003 6004# for contrib/rcs2log.sh & src/cvsbug.in. 6005# Extract the first word of "mktemp", so it can be a program name with args. 6006set dummy mktemp; ac_word=$2 6007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6008$as_echo_n "checking for $ac_word... " >&6; } 6009if test "${ac_cv_path_MKTEMP+set}" = set; then : 6010 $as_echo_n "(cached) " >&6 6011else 6012 case $MKTEMP in 6013 [\\/]* | ?:[\\/]*) 6014 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 6015 ;; 6016 *) 6017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6018for as_dir in $PATH 6019do 6020 IFS=$as_save_IFS 6021 test -z "$as_dir" && as_dir=. 6022 for ac_exec_ext in '' $ac_executable_extensions; do 6023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6024 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 6025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6026 break 2 6027 fi 6028done 6029 done 6030IFS=$as_save_IFS 6031 6032 test -z "$ac_cv_path_MKTEMP" && ac_cv_path_MKTEMP="mktemp" 6033 ;; 6034esac 6035fi 6036MKTEMP=$ac_cv_path_MKTEMP 6037if test -n "$MKTEMP"; then 6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 6039$as_echo "$MKTEMP" >&6; } 6040else 6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6042$as_echo "no" >&6; } 6043fi 6044 6045 6046if test x"$MKTEMP" = xmktemp; then 6047 MKTEMP_SH_FUNCTION=$srcdir/mktemp.sh 6048else 6049 MKTEMP_SH_FUNCTION=/dev/null 6050fi 6051 6052# for src/cvsbug.in 6053# Extract the first word of "sendmail", so it can be a program name with args. 6054set dummy sendmail; ac_word=$2 6055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6056$as_echo_n "checking for $ac_word... " >&6; } 6057if test "${ac_cv_path_SENDMAIL+set}" = set; then : 6058 $as_echo_n "(cached) " >&6 6059else 6060 case $SENDMAIL in 6061 [\\/]* | ?:[\\/]*) 6062 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path. 6063 ;; 6064 *) 6065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6066as_dummy="$PATH:/usr/sbin:/usr/lib" 6067for as_dir in $as_dummy 6068do 6069 IFS=$as_save_IFS 6070 test -z "$as_dir" && as_dir=. 6071 for ac_exec_ext in '' $ac_executable_extensions; do 6072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6073 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext" 6074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6075 break 2 6076 fi 6077done 6078 done 6079IFS=$as_save_IFS 6080 6081 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="no" 6082 ;; 6083esac 6084fi 6085SENDMAIL=$ac_cv_path_SENDMAIL 6086if test -n "$SENDMAIL"; then 6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5 6088$as_echo "$SENDMAIL" >&6; } 6089else 6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6091$as_echo "no" >&6; } 6092fi 6093 6094 6095# For diff/util.c 6096# Extract the first word of "pr", so it can be a program name with args. 6097set dummy pr; ac_word=$2 6098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6099$as_echo_n "checking for $ac_word... " >&6; } 6100if test "${ac_cv_path_PR+set}" = set; then : 6101 $as_echo_n "(cached) " >&6 6102else 6103 case $PR in 6104 [\\/]* | ?:[\\/]*) 6105 ac_cv_path_PR="$PR" # Let the user override the test with a path. 6106 ;; 6107 *) 6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6109for as_dir in $PATH 6110do 6111 IFS=$as_save_IFS 6112 test -z "$as_dir" && as_dir=. 6113 for ac_exec_ext in '' $ac_executable_extensions; do 6114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6115 ac_cv_path_PR="$as_dir/$ac_word$ac_exec_ext" 6116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6117 break 2 6118 fi 6119done 6120 done 6121IFS=$as_save_IFS 6122 6123 test -z "$ac_cv_path_PR" && ac_cv_path_PR="no" 6124 ;; 6125esac 6126fi 6127PR=$ac_cv_path_PR 6128if test -n "$PR"; then 6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PR" >&5 6130$as_echo "$PR" >&6; } 6131else 6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6133$as_echo "no" >&6; } 6134fi 6135 6136 6137if test x"$PR" != xno; then 6138 6139cat >>confdefs.h <<_ACEOF 6140#define PR_PROGRAM "$PR" 6141_ACEOF 6142 6143fi 6144 6145missing_dir=`cd $ac_aux_dir && pwd` 6146glocs="$PATH:/usr/local/bin:/usr/contrib/bin:/usr/gnu/bin:/local/bin:/local/gnu/bin:/gnu/bin" 6147for ac_prog in groff roff 6148do 6149 # Extract the first word of "$ac_prog", so it can be a program name with args. 6150set dummy $ac_prog; ac_word=$2 6151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6152$as_echo_n "checking for $ac_word... " >&6; } 6153if test "${ac_cv_path_ROFF+set}" = set; then : 6154 $as_echo_n "(cached) " >&6 6155else 6156 case $ROFF in 6157 [\\/]* | ?:[\\/]*) 6158 ac_cv_path_ROFF="$ROFF" # Let the user override the test with a path. 6159 ;; 6160 *) 6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6162for as_dir in $glocs 6163do 6164 IFS=$as_save_IFS 6165 test -z "$as_dir" && as_dir=. 6166 for ac_exec_ext in '' $ac_executable_extensions; do 6167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6168 ac_cv_path_ROFF="$as_dir/$ac_word$ac_exec_ext" 6169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6170 break 2 6171 fi 6172done 6173 done 6174IFS=$as_save_IFS 6175 6176 ;; 6177esac 6178fi 6179ROFF=$ac_cv_path_ROFF 6180if test -n "$ROFF"; then 6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ROFF" >&5 6182$as_echo "$ROFF" >&6; } 6183else 6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6185$as_echo "no" >&6; } 6186fi 6187 6188 6189 test -n "$ROFF" && break 6190done 6191test -n "$ROFF" || ROFF="$missing_dir/missing roff" 6192 6193# Extract the first word of "ps2pdf", so it can be a program name with args. 6194set dummy ps2pdf; ac_word=$2 6195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6196$as_echo_n "checking for $ac_word... " >&6; } 6197if test "${ac_cv_path_PS2PDF+set}" = set; then : 6198 $as_echo_n "(cached) " >&6 6199else 6200 case $PS2PDF in 6201 [\\/]* | ?:[\\/]*) 6202 ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path. 6203 ;; 6204 *) 6205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6206for as_dir in $PATH 6207do 6208 IFS=$as_save_IFS 6209 test -z "$as_dir" && as_dir=. 6210 for ac_exec_ext in '' $ac_executable_extensions; do 6211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6212 ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext" 6213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6214 break 2 6215 fi 6216done 6217 done 6218IFS=$as_save_IFS 6219 6220 test -z "$ac_cv_path_PS2PDF" && ac_cv_path_PS2PDF="$missing_dir/missing ps2pdf" 6221 ;; 6222esac 6223fi 6224PS2PDF=$ac_cv_path_PS2PDF 6225if test -n "$PS2PDF"; then 6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS2PDF" >&5 6227$as_echo "$PS2PDF" >&6; } 6228else 6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6230$as_echo "no" >&6; } 6231fi 6232 6233 6234# Extract the first word of "texi2dvi", so it can be a program name with args. 6235set dummy texi2dvi; ac_word=$2 6236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6237$as_echo_n "checking for $ac_word... " >&6; } 6238if test "${ac_cv_path_TEXI2DVI+set}" = set; then : 6239 $as_echo_n "(cached) " >&6 6240else 6241 case $TEXI2DVI in 6242 [\\/]* | ?:[\\/]*) 6243 ac_cv_path_TEXI2DVI="$TEXI2DVI" # Let the user override the test with a path. 6244 ;; 6245 *) 6246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6247for as_dir in $PATH 6248do 6249 IFS=$as_save_IFS 6250 test -z "$as_dir" && as_dir=. 6251 for ac_exec_ext in '' $ac_executable_extensions; do 6252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6253 ac_cv_path_TEXI2DVI="$as_dir/$ac_word$ac_exec_ext" 6254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6255 break 2 6256 fi 6257done 6258 done 6259IFS=$as_save_IFS 6260 6261 test -z "$ac_cv_path_TEXI2DVI" && ac_cv_path_TEXI2DVI="$missing_dir/missing texi2dvi" 6262 ;; 6263esac 6264fi 6265TEXI2DVI=$ac_cv_path_TEXI2DVI 6266if test -n "$TEXI2DVI"; then 6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2DVI" >&5 6268$as_echo "$TEXI2DVI" >&6; } 6269else 6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6271$as_echo "no" >&6; } 6272fi 6273 6274 6275 6276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5 6277$as_echo_n "checking whether #! works in shell scripts... " >&6; } 6278if test "${ac_cv_sys_interpreter+set}" = set; then : 6279 $as_echo_n "(cached) " >&6 6280else 6281 echo '#! /bin/cat 6282exit 69 6283' >conftest 6284chmod u+x conftest 6285(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1) 6286if test $? -ne 69; then 6287 ac_cv_sys_interpreter=yes 6288else 6289 ac_cv_sys_interpreter=no 6290fi 6291rm -f conftest 6292fi 6293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5 6294$as_echo "$ac_cv_sys_interpreter" >&6; } 6295interpval=$ac_cv_sys_interpreter 6296 6297if test X"$ac_cv_sys_interpreter" != X"yes" ; then 6298 # silly trick to avoid problems in AC macros... 6299 ac_msg='perl scripts using #! may not be invoked properly' 6300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_msg" >&5 6301$as_echo "$as_me: WARNING: $ac_msg" >&2;} 6302fi 6303 6304# BSD's logo is a devil for a reason, hey? 6305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD VPATH bug in make" >&5 6306$as_echo_n "checking for BSD VPATH bug in make... " >&6; } 6307if test "${ccvs_cv_bsd_make_vpath_bug+set}" = set; then : 6308 $as_echo_n "(cached) " >&6 6309else 6310 if test ! -d ac_test_dir ; then 6311 { ac_try='mkdir ac_test_dir' 6312 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 6313 (eval $ac_try) 2>&5 6314 ac_status=$? 6315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6316 test $ac_status = 0; }; } 6317fi 6318cat >conftestmake <<EOF 6319VPATH = ac_test_dir 6320ac_test_target: ac_test_dep 6321 echo BSD VPATH bug present >&2 6322ac_test_dep: ac_test_dep_dep 6323EOF 6324touch ac_test_dir/ac_test_dep_dep 6325touch ac_test_dir/ac_test_dep 6326touch ac_test_target 6327# Don't know why, but the following test doesn't work under FreeBSD 4.2 6328# without this sleep command 6329sleep 1 6330if { ac_try='make -f conftestmake 2>&1 >/dev/null |grep ^BSD\ VPATH\ bug\ present\$ >/dev/null' 6331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 6332 (eval $ac_try) 2>&5 6333 ac_status=$? 6334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6335 test $ac_status = 0; }; } ; then 6336 ccvs_cv_bsd_make_vpath_bug=yes 6337else 6338 ccvs_cv_bsd_make_vpath_bug=no 6339fi 6340{ ac_try='rm -rf ac_test_dir ac_test_target conftestmake' 6341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 6342 (eval $ac_try) 2>&5 6343 ac_status=$? 6344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6345 test $ac_status = 0; }; } 6346fi 6347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ccvs_cv_bsd_make_vpath_bug" >&5 6348$as_echo "$ccvs_cv_bsd_make_vpath_bug" >&6; } 6349# We also don't need to worry about the bug when $srcdir = $builddir 6350 if \ 6351 test $ccvs_cv_bsd_make_vpath_bug = no \ 6352 || test $srcdir = .; then 6353 MAKE_TARGETS_IN_VPATH_TRUE= 6354 MAKE_TARGETS_IN_VPATH_FALSE='#' 6355else 6356 MAKE_TARGETS_IN_VPATH_TRUE='#' 6357 MAKE_TARGETS_IN_VPATH_FALSE= 6358fi 6359 6360 6361ac_header_dirent=no 6362for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 6363 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 6364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 6365$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 6366if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then : 6367 $as_echo_n "(cached) " >&6 6368else 6369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6370/* end confdefs.h. */ 6371#include <sys/types.h> 6372#include <$ac_hdr> 6373 6374int 6375main () 6376{ 6377if ((DIR *) 0) 6378return 0; 6379 ; 6380 return 0; 6381} 6382_ACEOF 6383if ac_fn_c_try_compile "$LINENO"; then : 6384 eval "$as_ac_Header=yes" 6385else 6386 eval "$as_ac_Header=no" 6387fi 6388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6389fi 6390eval ac_res=\$$as_ac_Header 6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6392$as_echo "$ac_res" >&6; } 6393eval as_val=\$$as_ac_Header 6394 if test "x$as_val" = x""yes; then : 6395 cat >>confdefs.h <<_ACEOF 6396#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 6397_ACEOF 6398 6399ac_header_dirent=$ac_hdr; break 6400fi 6401 6402done 6403# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 6404if test $ac_header_dirent = dirent.h; then 6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 6406$as_echo_n "checking for library containing opendir... " >&6; } 6407if test "${ac_cv_search_opendir+set}" = set; then : 6408 $as_echo_n "(cached) " >&6 6409else 6410 ac_func_search_save_LIBS=$LIBS 6411cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6412/* end confdefs.h. */ 6413 6414/* Override any GCC internal prototype to avoid an error. 6415 Use char because int might match the return type of a GCC 6416 builtin and then its argument prototype would still apply. */ 6417#ifdef __cplusplus 6418extern "C" 6419#endif 6420char opendir (); 6421int 6422main () 6423{ 6424return opendir (); 6425 ; 6426 return 0; 6427} 6428_ACEOF 6429for ac_lib in '' dir; do 6430 if test -z "$ac_lib"; then 6431 ac_res="none required" 6432 else 6433 ac_res=-l$ac_lib 6434 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6435 fi 6436 if ac_fn_c_try_link "$LINENO"; then : 6437 ac_cv_search_opendir=$ac_res 6438fi 6439rm -f core conftest.err conftest.$ac_objext \ 6440 conftest$ac_exeext 6441 if test "${ac_cv_search_opendir+set}" = set; then : 6442 break 6443fi 6444done 6445if test "${ac_cv_search_opendir+set}" = set; then : 6446 6447else 6448 ac_cv_search_opendir=no 6449fi 6450rm conftest.$ac_ext 6451LIBS=$ac_func_search_save_LIBS 6452fi 6453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 6454$as_echo "$ac_cv_search_opendir" >&6; } 6455ac_res=$ac_cv_search_opendir 6456if test "$ac_res" != no; then : 6457 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6458 6459fi 6460 6461else 6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 6463$as_echo_n "checking for library containing opendir... " >&6; } 6464if test "${ac_cv_search_opendir+set}" = set; then : 6465 $as_echo_n "(cached) " >&6 6466else 6467 ac_func_search_save_LIBS=$LIBS 6468cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6469/* end confdefs.h. */ 6470 6471/* Override any GCC internal prototype to avoid an error. 6472 Use char because int might match the return type of a GCC 6473 builtin and then its argument prototype would still apply. */ 6474#ifdef __cplusplus 6475extern "C" 6476#endif 6477char opendir (); 6478int 6479main () 6480{ 6481return opendir (); 6482 ; 6483 return 0; 6484} 6485_ACEOF 6486for ac_lib in '' x; do 6487 if test -z "$ac_lib"; then 6488 ac_res="none required" 6489 else 6490 ac_res=-l$ac_lib 6491 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6492 fi 6493 if ac_fn_c_try_link "$LINENO"; then : 6494 ac_cv_search_opendir=$ac_res 6495fi 6496rm -f core conftest.err conftest.$ac_objext \ 6497 conftest$ac_exeext 6498 if test "${ac_cv_search_opendir+set}" = set; then : 6499 break 6500fi 6501done 6502if test "${ac_cv_search_opendir+set}" = set; then : 6503 6504else 6505 ac_cv_search_opendir=no 6506fi 6507rm conftest.$ac_ext 6508LIBS=$ac_func_search_save_LIBS 6509fi 6510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 6511$as_echo "$ac_cv_search_opendir" >&6; } 6512ac_res=$ac_cv_search_opendir 6513if test "$ac_res" != no; then : 6514 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6515 6516fi 6517 6518fi 6519 6520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6521$as_echo_n "checking for ANSI C header files... " >&6; } 6522if test "${ac_cv_header_stdc+set}" = set; then : 6523 $as_echo_n "(cached) " >&6 6524else 6525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6526/* end confdefs.h. */ 6527#include <stdlib.h> 6528#include <stdarg.h> 6529#include <string.h> 6530#include <float.h> 6531 6532int 6533main () 6534{ 6535 6536 ; 6537 return 0; 6538} 6539_ACEOF 6540if ac_fn_c_try_compile "$LINENO"; then : 6541 ac_cv_header_stdc=yes 6542else 6543 ac_cv_header_stdc=no 6544fi 6545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6546 6547if test $ac_cv_header_stdc = yes; then 6548 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6550/* end confdefs.h. */ 6551#include <string.h> 6552 6553_ACEOF 6554if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6555 $EGREP "memchr" >/dev/null 2>&1; then : 6556 6557else 6558 ac_cv_header_stdc=no 6559fi 6560rm -f conftest* 6561 6562fi 6563 6564if test $ac_cv_header_stdc = yes; then 6565 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6567/* end confdefs.h. */ 6568#include <stdlib.h> 6569 6570_ACEOF 6571if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6572 $EGREP "free" >/dev/null 2>&1; then : 6573 6574else 6575 ac_cv_header_stdc=no 6576fi 6577rm -f conftest* 6578 6579fi 6580 6581if test $ac_cv_header_stdc = yes; then 6582 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6583 if test "$cross_compiling" = yes; then : 6584 : 6585else 6586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6587/* end confdefs.h. */ 6588#include <ctype.h> 6589#include <stdlib.h> 6590#if ((' ' & 0x0FF) == 0x020) 6591# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6592# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6593#else 6594# define ISLOWER(c) \ 6595 (('a' <= (c) && (c) <= 'i') \ 6596 || ('j' <= (c) && (c) <= 'r') \ 6597 || ('s' <= (c) && (c) <= 'z')) 6598# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6599#endif 6600 6601#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6602int 6603main () 6604{ 6605 int i; 6606 for (i = 0; i < 256; i++) 6607 if (XOR (islower (i), ISLOWER (i)) 6608 || toupper (i) != TOUPPER (i)) 6609 return 2; 6610 return 0; 6611} 6612_ACEOF 6613if ac_fn_c_try_run "$LINENO"; then : 6614 6615else 6616 ac_cv_header_stdc=no 6617fi 6618rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6619 conftest.$ac_objext conftest.beam conftest.$ac_ext 6620fi 6621 6622fi 6623fi 6624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6625$as_echo "$ac_cv_header_stdc" >&6; } 6626if test $ac_cv_header_stdc = yes; then 6627 6628$as_echo "#define STDC_HEADERS 1" >>confdefs.h 6629 6630fi 6631 6632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 6633$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 6634if test "${ac_cv_header_sys_wait_h+set}" = set; then : 6635 $as_echo_n "(cached) " >&6 6636else 6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6638/* end confdefs.h. */ 6639#include <sys/types.h> 6640#include <sys/wait.h> 6641#ifndef WEXITSTATUS 6642# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 6643#endif 6644#ifndef WIFEXITED 6645# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 6646#endif 6647 6648int 6649main () 6650{ 6651 int s; 6652 wait (&s); 6653 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 6654 ; 6655 return 0; 6656} 6657_ACEOF 6658if ac_fn_c_try_compile "$LINENO"; then : 6659 ac_cv_header_sys_wait_h=yes 6660else 6661 ac_cv_header_sys_wait_h=no 6662fi 6663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6664fi 6665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 6666$as_echo "$ac_cv_header_sys_wait_h" >&6; } 6667if test $ac_cv_header_sys_wait_h = yes; then 6668 6669$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 6670 6671fi 6672 6673for ac_header in \ 6674 direct.h \ 6675 fcntl.h \ 6676 io.h \ 6677 memory.h \ 6678 ndbm.h \ 6679 stdint.h \ 6680 syslog.h \ 6681 sys/bsdtypes.h \ 6682 sys/file.h \ 6683 sys/param.h \ 6684 sys/resource.h \ 6685 sys/select.h \ 6686 unistd.h \ 6687 utime.h \ 6688 zlib.h \ 6689 6690do : 6691 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6692ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6693eval as_val=\$$as_ac_Header 6694 if test "x$as_val" = x""yes; then : 6695 cat >>confdefs.h <<_ACEOF 6696#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6697_ACEOF 6698 6699fi 6700 6701done 6702 6703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 6704$as_echo_n "checking whether stat file-mode macros are broken... " >&6; } 6705if test "${ac_cv_header_stat_broken+set}" = set; then : 6706 $as_echo_n "(cached) " >&6 6707else 6708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6709/* end confdefs.h. */ 6710#include <sys/types.h> 6711#include <sys/stat.h> 6712 6713#if defined S_ISBLK && defined S_IFDIR 6714extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; 6715#endif 6716 6717#if defined S_ISBLK && defined S_IFCHR 6718extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; 6719#endif 6720 6721#if defined S_ISLNK && defined S_IFREG 6722extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; 6723#endif 6724 6725#if defined S_ISSOCK && defined S_IFREG 6726extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; 6727#endif 6728 6729_ACEOF 6730if ac_fn_c_try_compile "$LINENO"; then : 6731 ac_cv_header_stat_broken=no 6732else 6733 ac_cv_header_stat_broken=yes 6734fi 6735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6736fi 6737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 6738$as_echo "$ac_cv_header_stat_broken" >&6; } 6739if test $ac_cv_header_stat_broken = yes; then 6740 6741$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h 6742 6743fi 6744 6745 6746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 6747$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 6748if test "${ac_cv_c_const+set}" = set; then : 6749 $as_echo_n "(cached) " >&6 6750else 6751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6752/* end confdefs.h. */ 6753 6754int 6755main () 6756{ 6757/* FIXME: Include the comments suggested by Paul. */ 6758#ifndef __cplusplus 6759 /* Ultrix mips cc rejects this. */ 6760 typedef int charset[2]; 6761 const charset cs; 6762 /* SunOS 4.1.1 cc rejects this. */ 6763 char const *const *pcpcc; 6764 char **ppc; 6765 /* NEC SVR4.0.2 mips cc rejects this. */ 6766 struct point {int x, y;}; 6767 static struct point const zero = {0,0}; 6768 /* AIX XL C 1.02.0.0 rejects this. 6769 It does not let you subtract one const X* pointer from another in 6770 an arm of an if-expression whose if-part is not a constant 6771 expression */ 6772 const char *g = "string"; 6773 pcpcc = &g + (g ? g-g : 0); 6774 /* HPUX 7.0 cc rejects these. */ 6775 ++pcpcc; 6776 ppc = (char**) pcpcc; 6777 pcpcc = (char const *const *) ppc; 6778 { /* SCO 3.2v4 cc rejects this. */ 6779 char *t; 6780 char const *s = 0 ? (char *) 0 : (char const *) 0; 6781 6782 *t++ = 0; 6783 if (s) return 0; 6784 } 6785 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 6786 int x[] = {25, 17}; 6787 const int *foo = &x[0]; 6788 ++foo; 6789 } 6790 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 6791 typedef const int *iptr; 6792 iptr p = 0; 6793 ++p; 6794 } 6795 { /* AIX XL C 1.02.0.0 rejects this saying 6796 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 6797 struct s { int j; const int *ap[3]; }; 6798 struct s *b; b->j = 5; 6799 } 6800 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 6801 const int foo = 10; 6802 if (!foo) return 0; 6803 } 6804 return !cs[0] && !zero.x; 6805#endif 6806 6807 ; 6808 return 0; 6809} 6810_ACEOF 6811if ac_fn_c_try_compile "$LINENO"; then : 6812 ac_cv_c_const=yes 6813else 6814 ac_cv_c_const=no 6815fi 6816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6817fi 6818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 6819$as_echo "$ac_cv_c_const" >&6; } 6820if test $ac_cv_c_const = no; then 6821 6822$as_echo "#define const /**/" >>confdefs.h 6823 6824fi 6825 6826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 6827$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 6828if test "${ac_cv_type_uid_t+set}" = set; then : 6829 $as_echo_n "(cached) " >&6 6830else 6831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6832/* end confdefs.h. */ 6833#include <sys/types.h> 6834 6835_ACEOF 6836if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6837 $EGREP "uid_t" >/dev/null 2>&1; then : 6838 ac_cv_type_uid_t=yes 6839else 6840 ac_cv_type_uid_t=no 6841fi 6842rm -f conftest* 6843 6844fi 6845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 6846$as_echo "$ac_cv_type_uid_t" >&6; } 6847if test $ac_cv_type_uid_t = no; then 6848 6849$as_echo "#define uid_t int" >>confdefs.h 6850 6851 6852$as_echo "#define gid_t int" >>confdefs.h 6853 6854fi 6855 6856ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 6857if test "x$ac_cv_type_mode_t" = x""yes; then : 6858 6859else 6860 6861cat >>confdefs.h <<_ACEOF 6862#define mode_t int 6863_ACEOF 6864 6865fi 6866 6867ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 6868if test "x$ac_cv_type_pid_t" = x""yes; then : 6869 6870else 6871 6872cat >>confdefs.h <<_ACEOF 6873#define pid_t int 6874_ACEOF 6875 6876fi 6877 6878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 6879$as_echo_n "checking return type of signal handlers... " >&6; } 6880if test "${ac_cv_type_signal+set}" = set; then : 6881 $as_echo_n "(cached) " >&6 6882else 6883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6884/* end confdefs.h. */ 6885#include <sys/types.h> 6886#include <signal.h> 6887 6888int 6889main () 6890{ 6891return *(signal (0, 0)) (0) == 1; 6892 ; 6893 return 0; 6894} 6895_ACEOF 6896if ac_fn_c_try_compile "$LINENO"; then : 6897 ac_cv_type_signal=int 6898else 6899 ac_cv_type_signal=void 6900fi 6901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6902fi 6903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 6904$as_echo "$ac_cv_type_signal" >&6; } 6905 6906cat >>confdefs.h <<_ACEOF 6907#define RETSIGTYPE $ac_cv_type_signal 6908_ACEOF 6909 6910 6911 6912ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" 6913if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then : 6914 6915cat >>confdefs.h <<_ACEOF 6916#define HAVE_STRUCT_STAT_ST_BLKSIZE 1 6917_ACEOF 6918 6919 6920fi 6921 6922ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" 6923if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then : 6924 6925cat >>confdefs.h <<_ACEOF 6926#define HAVE_STRUCT_STAT_ST_RDEV 1 6927_ACEOF 6928 6929 6930fi 6931 6932 6933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 6934$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 6935if test "${ac_cv_sys_largefile_source+set}" = set; then : 6936 $as_echo_n "(cached) " >&6 6937else 6938 while :; do 6939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6940/* end confdefs.h. */ 6941#include <sys/types.h> /* for off_t */ 6942 #include <stdio.h> 6943int 6944main () 6945{ 6946int (*fp) (FILE *, off_t, int) = fseeko; 6947 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 6948 ; 6949 return 0; 6950} 6951_ACEOF 6952if ac_fn_c_try_link "$LINENO"; then : 6953 ac_cv_sys_largefile_source=no; break 6954fi 6955rm -f core conftest.err conftest.$ac_objext \ 6956 conftest$ac_exeext conftest.$ac_ext 6957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6958/* end confdefs.h. */ 6959#define _LARGEFILE_SOURCE 1 6960#include <sys/types.h> /* for off_t */ 6961 #include <stdio.h> 6962int 6963main () 6964{ 6965int (*fp) (FILE *, off_t, int) = fseeko; 6966 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 6967 ; 6968 return 0; 6969} 6970_ACEOF 6971if ac_fn_c_try_link "$LINENO"; then : 6972 ac_cv_sys_largefile_source=1; break 6973fi 6974rm -f core conftest.err conftest.$ac_objext \ 6975 conftest$ac_exeext conftest.$ac_ext 6976 ac_cv_sys_largefile_source=unknown 6977 break 6978done 6979fi 6980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 6981$as_echo "$ac_cv_sys_largefile_source" >&6; } 6982case $ac_cv_sys_largefile_source in #( 6983 no | unknown) ;; 6984 *) 6985cat >>confdefs.h <<_ACEOF 6986#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 6987_ACEOF 6988;; 6989esac 6990rm -rf conftest* 6991 6992# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 6993# in glibc 2.1.3, but that breaks too many other things. 6994# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 6995if test $ac_cv_sys_largefile_source != unknown; then 6996 6997$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 6998 6999fi 7000 7001if test $ac_cv_func_fseeko = no; then 7002 case " $LIBOBJS " in 7003 *" fseeko.$ac_objext "* ) ;; 7004 *) LIBOBJS="$LIBOBJS fseeko.$ac_objext" 7005 ;; 7006esac 7007 7008 case " $LIBOBJS " in 7009 *" ftello.$ac_objext "* ) ;; 7010 *) LIBOBJS="$LIBOBJS ftello.$ac_objext" 7011 ;; 7012esac 7013 7014fi 7015 7016# Replace functions with versions in lib/ when they can't be found. 7017for ac_func in \ 7018 waitpid \ 7019 7020do : 7021 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7022ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7023eval as_val=\$$as_ac_var 7024 if test "x$as_val" = x""yes; then : 7025 cat >>confdefs.h <<_ACEOF 7026#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7027_ACEOF 7028 7029else 7030 case " $LIBOBJS " in 7031 *" $ac_func.$ac_objext "* ) ;; 7032 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 7033 ;; 7034esac 7035 7036fi 7037done 7038 7039 7040 7041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt optreset variable" >&5 7042$as_echo_n "checking for getopt optreset variable... " >&6; } 7043if test "${db_cv_optreset+set}" = set; then : 7044 $as_echo_n "(cached) " >&6 7045else 7046 7047cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7048/* end confdefs.h. */ 7049#include <unistd.h> 7050int 7051main () 7052{ 7053extern int optreset; optreset = 1; 7054 ; 7055 return 0; 7056} 7057_ACEOF 7058if ac_fn_c_try_link "$LINENO"; then : 7059 db_cv_optreset=yes 7060else 7061 db_cv_optreset=no 7062fi 7063rm -f core conftest.err conftest.$ac_objext \ 7064 conftest$ac_exeext conftest.$ac_ext 7065fi 7066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_optreset" >&5 7067$as_echo "$db_cv_optreset" >&6; } 7068if test "$db_cv_optreset" = "yes"; then 7069 $as_echo "#define HAVE_GETOPT_OPTRESET 1" >>confdefs.h 7070 7071 7072fi 7073 7074# 7075# Special hack for a SunOS 5.7 (aka Solaris 7) select() problem. 7076# 7077 7078 for ac_header in fcntl.h 7079do : 7080 ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" 7081if test "x$ac_cv_header_fcntl_h" = x""yes; then : 7082 cat >>confdefs.h <<_ACEOF 7083#define HAVE_FCNTL_H 1 7084_ACEOF 7085 7086fi 7087 7088done 7089 7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select hangs on /dev/null fd when timeout is NULL" >&5 7091$as_echo_n "checking whether select hangs on /dev/null fd when timeout is NULL... " >&6; } 7092if test "${ccvs_cv_func_select_hang+set}" = set; then : 7093 $as_echo_n "(cached) " >&6 7094else 7095 if test "$cross_compiling" = yes; then : 7096 ccvs_cv_func_select_hang=yes 7097else 7098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7099/* end confdefs.h. */ 7100 7101#include <stdio.h> 7102#include <sys/select.h> 7103#ifdef HAVE_FCNTL_H 7104# include <fcntl.h> 7105#endif 7106#include <errno.h> 7107int 7108main () 7109{ 7110 7111 int numfds; 7112 fd_set readfds; 7113 struct timeval timeout; 7114 int fd = open ("/dev/null", O_RDONLY); 7115 7116 FD_ZERO (&readfds); 7117 FD_SET (fd, &readfds); 7118 timeout.tv_sec = 0; 7119 timeout.tv_usec = 1; 7120 7121 while ((numfds = select (fd + 1, &readfds, NULL, NULL, &timeout)) < 0 7122 && errno == EINTR); 7123 return (numfds <= 0); 7124 7125 ; 7126 return 0; 7127} 7128_ACEOF 7129if ac_fn_c_try_run "$LINENO"; then : 7130 ccvs_cv_func_select_hang=no 7131else 7132 ccvs_cv_func_select_hang=yes 7133fi 7134rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7135 conftest.$ac_objext conftest.beam conftest.$ac_ext 7136fi 7137 7138 7139fi 7140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ccvs_cv_func_select_hang" >&5 7141$as_echo "$ccvs_cv_func_select_hang" >&6; } 7142 if test $ccvs_cv_func_select_hang = yes; then 7143 7144 for ac_header in fcntl.h unistd.h 7145do : 7146 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7147ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 7148eval as_val=\$$as_ac_Header 7149 if test "x$as_val" = x""yes; then : 7150 cat >>confdefs.h <<_ACEOF 7151#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7152_ACEOF 7153 7154fi 7155 7156done 7157 7158 7159 case " $LIBOBJS " in 7160 *" sunos57-select.$ac_objext "* ) ;; 7161 *) LIBOBJS="$LIBOBJS sunos57-select.$ac_objext" 7162 ;; 7163esac 7164 7165 7166$as_echo "#define select rpl_select" >>confdefs.h 7167 7168 fi 7169 7170 7171# 7172# Begin GNULIB stuff. 7173# 7174 7175# Look for functions from GNULIB and replace with versions in lib/ when 7176# necessary. 7177# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 7178# for constant arguments. Useless! 7179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 7180$as_echo_n "checking for working alloca.h... " >&6; } 7181if test "${ac_cv_working_alloca_h+set}" = set; then : 7182 $as_echo_n "(cached) " >&6 7183else 7184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7185/* end confdefs.h. */ 7186#include <alloca.h> 7187int 7188main () 7189{ 7190char *p = (char *) alloca (2 * sizeof (int)); 7191 if (p) return 0; 7192 ; 7193 return 0; 7194} 7195_ACEOF 7196if ac_fn_c_try_link "$LINENO"; then : 7197 ac_cv_working_alloca_h=yes 7198else 7199 ac_cv_working_alloca_h=no 7200fi 7201rm -f core conftest.err conftest.$ac_objext \ 7202 conftest$ac_exeext conftest.$ac_ext 7203fi 7204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 7205$as_echo "$ac_cv_working_alloca_h" >&6; } 7206if test $ac_cv_working_alloca_h = yes; then 7207 7208$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 7209 7210fi 7211 7212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 7213$as_echo_n "checking for alloca... " >&6; } 7214if test "${ac_cv_func_alloca_works+set}" = set; then : 7215 $as_echo_n "(cached) " >&6 7216else 7217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7218/* end confdefs.h. */ 7219#ifdef __GNUC__ 7220# define alloca __builtin_alloca 7221#else 7222# ifdef _MSC_VER 7223# include <malloc.h> 7224# define alloca _alloca 7225# else 7226# ifdef HAVE_ALLOCA_H 7227# include <alloca.h> 7228# else 7229# ifdef _AIX 7230 #pragma alloca 7231# else 7232# ifndef alloca /* predefined by HP cc +Olibcalls */ 7233char *alloca (); 7234# endif 7235# endif 7236# endif 7237# endif 7238#endif 7239 7240int 7241main () 7242{ 7243char *p = (char *) alloca (1); 7244 if (p) return 0; 7245 ; 7246 return 0; 7247} 7248_ACEOF 7249if ac_fn_c_try_link "$LINENO"; then : 7250 ac_cv_func_alloca_works=yes 7251else 7252 ac_cv_func_alloca_works=no 7253fi 7254rm -f core conftest.err conftest.$ac_objext \ 7255 conftest$ac_exeext conftest.$ac_ext 7256fi 7257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 7258$as_echo "$ac_cv_func_alloca_works" >&6; } 7259 7260if test $ac_cv_func_alloca_works = yes; then 7261 7262$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 7263 7264else 7265 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 7266# that cause trouble. Some versions do not even contain alloca or 7267# contain a buggy version. If you still want to use their alloca, 7268# use ar to extract alloca.o from them instead of compiling alloca.c. 7269 7270ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 7271 7272$as_echo "#define C_ALLOCA 1" >>confdefs.h 7273 7274 7275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 7276$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 7277if test "${ac_cv_os_cray+set}" = set; then : 7278 $as_echo_n "(cached) " >&6 7279else 7280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7281/* end confdefs.h. */ 7282#if defined CRAY && ! defined CRAY2 7283webecray 7284#else 7285wenotbecray 7286#endif 7287 7288_ACEOF 7289if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7290 $EGREP "webecray" >/dev/null 2>&1; then : 7291 ac_cv_os_cray=yes 7292else 7293 ac_cv_os_cray=no 7294fi 7295rm -f conftest* 7296 7297fi 7298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 7299$as_echo "$ac_cv_os_cray" >&6; } 7300if test $ac_cv_os_cray = yes; then 7301 for ac_func in _getb67 GETB67 getb67; do 7302 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7303ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7304eval as_val=\$$as_ac_var 7305 if test "x$as_val" = x""yes; then : 7306 7307cat >>confdefs.h <<_ACEOF 7308#define CRAY_STACKSEG_END $ac_func 7309_ACEOF 7310 7311 break 7312fi 7313 7314 done 7315fi 7316 7317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 7318$as_echo_n "checking stack direction for C alloca... " >&6; } 7319if test "${ac_cv_c_stack_direction+set}" = set; then : 7320 $as_echo_n "(cached) " >&6 7321else 7322 if test "$cross_compiling" = yes; then : 7323 ac_cv_c_stack_direction=0 7324else 7325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7326/* end confdefs.h. */ 7327$ac_includes_default 7328int 7329find_stack_direction () 7330{ 7331 static char *addr = 0; 7332 auto char dummy; 7333 if (addr == 0) 7334 { 7335 addr = &dummy; 7336 return find_stack_direction (); 7337 } 7338 else 7339 return (&dummy > addr) ? 1 : -1; 7340} 7341 7342int 7343main () 7344{ 7345 return find_stack_direction () < 0; 7346} 7347_ACEOF 7348if ac_fn_c_try_run "$LINENO"; then : 7349 ac_cv_c_stack_direction=1 7350else 7351 ac_cv_c_stack_direction=-1 7352fi 7353rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7354 conftest.$ac_objext conftest.beam conftest.$ac_ext 7355fi 7356 7357fi 7358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 7359$as_echo "$ac_cv_c_stack_direction" >&6; } 7360cat >>confdefs.h <<_ACEOF 7361#define STACK_DIRECTION $ac_cv_c_stack_direction 7362_ACEOF 7363 7364 7365fi 7366 7367 7368 for ac_header in stdlib.h 7369do : 7370 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 7371if test "x$ac_cv_header_stdlib_h" = x""yes; then : 7372 cat >>confdefs.h <<_ACEOF 7373#define HAVE_STDLIB_H 1 7374_ACEOF 7375 7376fi 7377 7378done 7379 7380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 7381$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 7382if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then : 7383 $as_echo_n "(cached) " >&6 7384else 7385 if test "$cross_compiling" = yes; then : 7386 ac_cv_func_malloc_0_nonnull=no 7387else 7388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7389/* end confdefs.h. */ 7390#if defined STDC_HEADERS || defined HAVE_STDLIB_H 7391# include <stdlib.h> 7392#else 7393char *malloc (); 7394#endif 7395 7396int 7397main () 7398{ 7399return ! malloc (0); 7400 ; 7401 return 0; 7402} 7403_ACEOF 7404if ac_fn_c_try_run "$LINENO"; then : 7405 ac_cv_func_malloc_0_nonnull=yes 7406else 7407 ac_cv_func_malloc_0_nonnull=no 7408fi 7409rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7410 conftest.$ac_objext conftest.beam conftest.$ac_ext 7411fi 7412 7413fi 7414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 7415$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } 7416if test $ac_cv_func_malloc_0_nonnull = yes; then : 7417 gl_cv_func_malloc_0_nonnull=1 7418else 7419 gl_cv_func_malloc_0_nonnull=0 7420fi 7421 7422 7423cat >>confdefs.h <<_ACEOF 7424#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull 7425_ACEOF 7426 7427 7428 7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5 7430$as_echo_n "checking for long long... " >&6; } 7431if test "${ac_cv_type_long_long+set}" = set; then : 7432 $as_echo_n "(cached) " >&6 7433else 7434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7435/* end confdefs.h. */ 7436long long ll = 1LL; int i = 63; 7437int 7438main () 7439{ 7440long long llmax = (long long) -1; 7441 return ll << i | ll >> i | llmax / ll | llmax % ll; 7442 ; 7443 return 0; 7444} 7445_ACEOF 7446if ac_fn_c_try_link "$LINENO"; then : 7447 ac_cv_type_long_long=yes 7448else 7449 ac_cv_type_long_long=no 7450fi 7451rm -f core conftest.err conftest.$ac_objext \ 7452 conftest$ac_exeext conftest.$ac_ext 7453fi 7454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5 7455$as_echo "$ac_cv_type_long_long" >&6; } 7456 if test $ac_cv_type_long_long = yes; then 7457 7458$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h 7459 7460 fi 7461 7462 7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 7464$as_echo_n "checking for long double... " >&6; } 7465if test "${gt_cv_c_long_double+set}" = set; then : 7466 $as_echo_n "(cached) " >&6 7467else 7468 if test "$GCC" = yes; then 7469 gt_cv_c_long_double=yes 7470 else 7471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7472/* end confdefs.h. */ 7473 7474 /* The Stardent Vistra knows sizeof(long double), but does not support it. */ 7475 long double foo = 0.0; 7476 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ 7477 int array [2*(sizeof(long double) >= sizeof(double)) - 1]; 7478 7479int 7480main () 7481{ 7482 7483 ; 7484 return 0; 7485} 7486_ACEOF 7487if ac_fn_c_try_compile "$LINENO"; then : 7488 gt_cv_c_long_double=yes 7489else 7490 gt_cv_c_long_double=no 7491fi 7492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7493 fi 7494fi 7495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5 7496$as_echo "$gt_cv_c_long_double" >&6; } 7497 if test $gt_cv_c_long_double = yes; then 7498 7499$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h 7500 7501 fi 7502 7503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 7504$as_echo_n "checking for C/C++ restrict keyword... " >&6; } 7505if test "${gl_cv_c_restrict+set}" = set; then : 7506 $as_echo_n "(cached) " >&6 7507else 7508 gl_cv_c_restrict=no 7509 # Try the official restrict keyword, then gcc's __restrict, and 7510 # the less common variants. 7511 for ac_kw in restrict __restrict __restrict__ _Restrict; do 7512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7513/* end confdefs.h. */ 7514float * $ac_kw x; 7515_ACEOF 7516if ac_fn_c_try_compile "$LINENO"; then : 7517 gl_cv_c_restrict=$ac_kw; break 7518fi 7519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7520 done 7521 7522fi 7523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_restrict" >&5 7524$as_echo "$gl_cv_c_restrict" >&6; } 7525 case $gl_cv_c_restrict in 7526 restrict) ;; 7527 no) 7528$as_echo "#define restrict /**/" >>confdefs.h 7529 ;; 7530 *) cat >>confdefs.h <<_ACEOF 7531#define restrict $gl_cv_c_restrict 7532_ACEOF 7533 ;; 7534 esac 7535 7536 7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5 7538$as_echo_n "checking for IPv4 sockets... " >&6; } 7539 if test "${gl_cv_socket_ipv4+set}" = set; then : 7540 $as_echo_n "(cached) " >&6 7541else 7542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7543/* end confdefs.h. */ 7544#include <sys/types.h> 7545#include <sys/socket.h> 7546#include <netinet/in.h> 7547int 7548main () 7549{ 7550int x = AF_INET; struct in_addr y; struct sockaddr_in z; 7551 ; 7552 return 0; 7553} 7554_ACEOF 7555if ac_fn_c_try_compile "$LINENO"; then : 7556 gl_cv_socket_ipv4=yes 7557else 7558 gl_cv_socket_ipv4=no 7559fi 7560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7561fi 7562 7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5 7564$as_echo "$gl_cv_socket_ipv4" >&6; } 7565 if test $gl_cv_socket_ipv4 = yes; then 7566 7567$as_echo "#define HAVE_IPV4 1" >>confdefs.h 7568 7569 fi 7570 7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5 7572$as_echo_n "checking for IPv6 sockets... " >&6; } 7573 if test "${gl_cv_socket_ipv6+set}" = set; then : 7574 $as_echo_n "(cached) " >&6 7575else 7576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7577/* end confdefs.h. */ 7578#include <sys/types.h> 7579#include <sys/socket.h> 7580#include <netinet/in.h> 7581int 7582main () 7583{ 7584int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z; 7585 ; 7586 return 0; 7587} 7588_ACEOF 7589if ac_fn_c_try_compile "$LINENO"; then : 7590 gl_cv_socket_ipv6=yes 7591else 7592 gl_cv_socket_ipv6=no 7593fi 7594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7595fi 7596 7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5 7598$as_echo "$gl_cv_socket_ipv6" >&6; } 7599 if test $gl_cv_socket_ipv6 = yes; then 7600 7601$as_echo "#define HAVE_IPV6 1" >>confdefs.h 7602 7603 fi 7604 7605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 7606$as_echo_n "checking for inline... " >&6; } 7607if test "${ac_cv_c_inline+set}" = set; then : 7608 $as_echo_n "(cached) " >&6 7609else 7610 ac_cv_c_inline=no 7611for ac_kw in inline __inline__ __inline; do 7612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7613/* end confdefs.h. */ 7614#ifndef __cplusplus 7615typedef int foo_t; 7616static $ac_kw foo_t static_foo () {return 0; } 7617$ac_kw foo_t foo () {return 0; } 7618#endif 7619 7620_ACEOF 7621if ac_fn_c_try_compile "$LINENO"; then : 7622 ac_cv_c_inline=$ac_kw 7623fi 7624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7625 test "$ac_cv_c_inline" != no && break 7626done 7627 7628fi 7629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 7630$as_echo "$ac_cv_c_inline" >&6; } 7631 7632case $ac_cv_c_inline in 7633 inline | yes) ;; 7634 *) 7635 case $ac_cv_c_inline in 7636 no) ac_val=;; 7637 *) ac_val=$ac_cv_c_inline;; 7638 esac 7639 cat >>confdefs.h <<_ACEOF 7640#ifndef __cplusplus 7641#define inline $ac_val 7642#endif 7643_ACEOF 7644 ;; 7645esac 7646 7647 7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5 7649$as_echo_n "checking for library containing getaddrinfo... " >&6; } 7650if test "${ac_cv_search_getaddrinfo+set}" = set; then : 7651 $as_echo_n "(cached) " >&6 7652else 7653 ac_func_search_save_LIBS=$LIBS 7654cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7655/* end confdefs.h. */ 7656 7657/* Override any GCC internal prototype to avoid an error. 7658 Use char because int might match the return type of a GCC 7659 builtin and then its argument prototype would still apply. */ 7660#ifdef __cplusplus 7661extern "C" 7662#endif 7663char getaddrinfo (); 7664int 7665main () 7666{ 7667return getaddrinfo (); 7668 ; 7669 return 0; 7670} 7671_ACEOF 7672for ac_lib in '' nsl socket; do 7673 if test -z "$ac_lib"; then 7674 ac_res="none required" 7675 else 7676 ac_res=-l$ac_lib 7677 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7678 fi 7679 if ac_fn_c_try_link "$LINENO"; then : 7680 ac_cv_search_getaddrinfo=$ac_res 7681fi 7682rm -f core conftest.err conftest.$ac_objext \ 7683 conftest$ac_exeext 7684 if test "${ac_cv_search_getaddrinfo+set}" = set; then : 7685 break 7686fi 7687done 7688if test "${ac_cv_search_getaddrinfo+set}" = set; then : 7689 7690else 7691 ac_cv_search_getaddrinfo=no 7692fi 7693rm conftest.$ac_ext 7694LIBS=$ac_func_search_save_LIBS 7695fi 7696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5 7697$as_echo "$ac_cv_search_getaddrinfo" >&6; } 7698ac_res=$ac_cv_search_getaddrinfo 7699if test "$ac_res" != no; then : 7700 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7701 7702fi 7703 7704 for ac_func in getaddrinfo gai_strerror 7705do : 7706 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7707ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7708eval as_val=\$$as_ac_var 7709 if test "x$as_val" = x""yes; then : 7710 cat >>confdefs.h <<_ACEOF 7711#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7712_ACEOF 7713 7714else 7715 case " $LIBOBJS " in 7716 *" $ac_func.$ac_objext "* ) ;; 7717 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 7718 ;; 7719esac 7720 7721fi 7722done 7723 7724 7725 7726 7727 7728 7729 7730 7731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 7732$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 7733if test "${ac_cv_header_stdbool_h+set}" = set; then : 7734 $as_echo_n "(cached) " >&6 7735else 7736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7737/* end confdefs.h. */ 7738 7739 #include <stdbool.h> 7740 #ifndef bool 7741 "error: bool is not defined" 7742 #endif 7743 #ifndef false 7744 "error: false is not defined" 7745 #endif 7746 #if false 7747 "error: false is not 0" 7748 #endif 7749 #ifndef true 7750 "error: true is not defined" 7751 #endif 7752 #if true != 1 7753 "error: true is not 1" 7754 #endif 7755 #ifndef __bool_true_false_are_defined 7756 "error: __bool_true_false_are_defined is not defined" 7757 #endif 7758 7759 struct s { _Bool s: 1; _Bool t; } s; 7760 7761 char a[true == 1 ? 1 : -1]; 7762 char b[false == 0 ? 1 : -1]; 7763 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 7764 char d[(bool) -0.5 == true ? 1 : -1]; 7765 bool e = &s; 7766 char f[(_Bool) -0.0 == false ? 1 : -1]; 7767 char g[true]; 7768 char h[sizeof (_Bool)]; 7769 char i[sizeof s.t]; 7770 enum { j = false, k = true, l = false * true, m = true * 256 }; 7771 _Bool n[m]; 7772 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 7773 7774int 7775main () 7776{ 7777 7778 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k + !l 7779 + !m + !n + !o); 7780 7781 ; 7782 return 0; 7783} 7784_ACEOF 7785if ac_fn_c_try_compile "$LINENO"; then : 7786 ac_cv_header_stdbool_h=yes 7787else 7788 ac_cv_header_stdbool_h=no 7789fi 7790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7791fi 7792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 7793$as_echo "$ac_cv_header_stdbool_h" >&6; } 7794 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 7795if test "x$ac_cv_type__Bool" = x""yes; then : 7796 7797cat >>confdefs.h <<_ACEOF 7798#define HAVE__BOOL 1 7799_ACEOF 7800 7801 7802fi 7803 7804 if test $ac_cv_header_stdbool_h = yes; then 7805 7806$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 7807 7808 fi 7809 7810 7811 7812 7813 for ac_func in $gl_func_list 7814do : 7815 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7816ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7817eval as_val=\$$as_ac_var 7818 if test "x$as_val" = x""yes; then : 7819 cat >>confdefs.h <<_ACEOF 7820#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7821_ACEOF 7822 7823fi 7824done 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 for ac_header in $gl_header_list 7835do : 7836 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7837ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 7838eval as_val=\$$as_ac_Header 7839 if test "x$as_val" = x""yes; then : 7840 cat >>confdefs.h <<_ACEOF 7841#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7842_ACEOF 7843 7844fi 7845 7846done 7847 7848 7849 7850 7851 7852 7853 7854 case " $LIBOBJS " in 7855 *" save-cwd.$ac_objext "* ) ;; 7856 *) LIBOBJS="$LIBOBJS save-cwd.$ac_objext" 7857 ;; 7858esac 7859 7860 7861 : 7862 7863 7864 7865 7866 7867 7868 : 7869 7870 7871 7872 7873 7874 7875 7876 ac_fn_c_check_decl "$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default" 7877if test "x$ac_cv_have_decl_memrchr" = x""yes; then : 7878 ac_have_decl=1 7879else 7880 ac_have_decl=0 7881fi 7882 7883cat >>confdefs.h <<_ACEOF 7884#define HAVE_DECL_MEMRCHR $ac_have_decl 7885_ACEOF 7886 7887 7888 7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system is Windows or MSDOS" >&5 7890$as_echo_n "checking whether system is Windows or MSDOS... " >&6; } 7891if test "${ac_cv_win_or_dos+set}" = set; then : 7892 $as_echo_n "(cached) " >&6 7893else 7894 7895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7896/* end confdefs.h. */ 7897 7898int 7899main () 7900{ 7901#if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__ 7902neither MSDOS nor Windows 7903#endif 7904 ; 7905 return 0; 7906} 7907_ACEOF 7908if ac_fn_c_try_compile "$LINENO"; then : 7909 ac_cv_win_or_dos=yes 7910else 7911 ac_cv_win_or_dos=no 7912fi 7913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7914 7915fi 7916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_win_or_dos" >&5 7917$as_echo "$ac_cv_win_or_dos" >&6; } 7918 7919 if test x"$ac_cv_win_or_dos" = xyes; then 7920 ac_fs_accepts_drive_letter_prefix=1 7921 ac_fs_backslash_is_file_name_separator=1 7922 else 7923 ac_fs_accepts_drive_letter_prefix=0 7924 ac_fs_backslash_is_file_name_separator=0 7925 fi 7926 7927 7928 7929 7930cat >>confdefs.h <<_ACEOF 7931#define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix 7932_ACEOF 7933 7934 7935 7936 7937 7938cat >>confdefs.h <<_ACEOF 7939#define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator 7940_ACEOF 7941 7942 7943ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" 7944if test "x$ac_cv_have_decl_strerror_r" = x""yes; then : 7945 ac_have_decl=1 7946else 7947 ac_have_decl=0 7948fi 7949 7950cat >>confdefs.h <<_ACEOF 7951#define HAVE_DECL_STRERROR_R $ac_have_decl 7952_ACEOF 7953 7954for ac_func in strerror_r 7955do : 7956 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" 7957if test "x$ac_cv_func_strerror_r" = x""yes; then : 7958 cat >>confdefs.h <<_ACEOF 7959#define HAVE_STRERROR_R 1 7960_ACEOF 7961 7962fi 7963done 7964 7965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 7966$as_echo_n "checking whether strerror_r returns char *... " >&6; } 7967if test "${ac_cv_func_strerror_r_char_p+set}" = set; then : 7968 $as_echo_n "(cached) " >&6 7969else 7970 7971 ac_cv_func_strerror_r_char_p=no 7972 if test $ac_cv_have_decl_strerror_r = yes; then 7973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7974/* end confdefs.h. */ 7975$ac_includes_default 7976int 7977main () 7978{ 7979 7980 char buf[100]; 7981 char x = *strerror_r (0, buf, sizeof buf); 7982 char *p = strerror_r (0, buf, sizeof buf); 7983 return !p || x; 7984 7985 ; 7986 return 0; 7987} 7988_ACEOF 7989if ac_fn_c_try_compile "$LINENO"; then : 7990 ac_cv_func_strerror_r_char_p=yes 7991fi 7992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7993 else 7994 # strerror_r is not declared. Choose between 7995 # systems that have relatively inaccessible declarations for the 7996 # function. BeOS and DEC UNIX 4.0 fall in this category, but the 7997 # former has a strerror_r that returns char*, while the latter 7998 # has a strerror_r that returns `int'. 7999 # This test should segfault on the DEC system. 8000 if test "$cross_compiling" = yes; then : 8001 : 8002else 8003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8004/* end confdefs.h. */ 8005$ac_includes_default 8006 extern char *strerror_r (); 8007int 8008main () 8009{ 8010char buf[100]; 8011 char x = *strerror_r (0, buf, sizeof buf); 8012 return ! isalpha (x); 8013 ; 8014 return 0; 8015} 8016_ACEOF 8017if ac_fn_c_try_run "$LINENO"; then : 8018 ac_cv_func_strerror_r_char_p=yes 8019fi 8020rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8021 conftest.$ac_objext conftest.beam conftest.$ac_ext 8022fi 8023 8024 fi 8025 8026fi 8027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 8028$as_echo "$ac_cv_func_strerror_r_char_p" >&6; } 8029if test $ac_cv_func_strerror_r_char_p = yes; then 8030 8031$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h 8032 8033fi 8034 8035 8036 8037 8038 8039 8040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 8041$as_echo_n "checking for mbstate_t... " >&6; } 8042if test "${ac_cv_type_mbstate_t+set}" = set; then : 8043 $as_echo_n "(cached) " >&6 8044else 8045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8046/* end confdefs.h. */ 8047$ac_includes_default 8048# include <wchar.h> 8049int 8050main () 8051{ 8052mbstate_t x; return sizeof x; 8053 ; 8054 return 0; 8055} 8056_ACEOF 8057if ac_fn_c_try_compile "$LINENO"; then : 8058 ac_cv_type_mbstate_t=yes 8059else 8060 ac_cv_type_mbstate_t=no 8061fi 8062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8063fi 8064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 8065$as_echo "$ac_cv_type_mbstate_t" >&6; } 8066 if test $ac_cv_type_mbstate_t = yes; then 8067 8068$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h 8069 8070 else 8071 8072$as_echo "#define mbstate_t int" >>confdefs.h 8073 8074 fi 8075 8076 8077 8078 8079 : 8080 8081 8082 8083 8084 8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5 8086$as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; } 8087if test "${gl_cv_func_getcwd_null+set}" = set; then : 8088 $as_echo_n "(cached) " >&6 8089else 8090 if test "$cross_compiling" = yes; then : 8091 gl_cv_func_getcwd_null=no 8092else 8093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8094/* end confdefs.h. */ 8095 8096# include <stdlib.h> 8097# ifdef HAVE_UNISTD_H 8098# include <unistd.h> 8099# endif 8100# ifndef getcwd 8101 char *getcwd (); 8102# endif 8103 int 8104 main () 8105 { 8106 if (chdir ("/") != 0) 8107 exit (1); 8108 else 8109 { 8110 char *f = getcwd (NULL, 0); 8111 exit (! (f && f[0] == '/' && !f[1])); 8112 } 8113 } 8114_ACEOF 8115if ac_fn_c_try_run "$LINENO"; then : 8116 gl_cv_func_getcwd_null=yes 8117else 8118 gl_cv_func_getcwd_null=no 8119fi 8120rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8121 conftest.$ac_objext conftest.beam conftest.$ac_ext 8122fi 8123 8124fi 8125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5 8126$as_echo "$gl_cv_func_getcwd_null" >&6; } 8127 8128 8129 ac_fn_c_check_decl "$LINENO" "getcwd" "ac_cv_have_decl_getcwd" "$ac_includes_default" 8130if test "x$ac_cv_have_decl_getcwd" = x""yes; then : 8131 ac_have_decl=1 8132else 8133 ac_have_decl=0 8134fi 8135 8136cat >>confdefs.h <<_ACEOF 8137#define HAVE_DECL_GETCWD $ac_have_decl 8138_ACEOF 8139 8140 8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_ino member in directory struct" >&5 8142$as_echo_n "checking for d_ino member in directory struct... " >&6; } 8143if test "${jm_cv_struct_dirent_d_ino+set}" = set; then : 8144 $as_echo_n "(cached) " >&6 8145else 8146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8147/* end confdefs.h. */ 8148 8149#include <sys/types.h> 8150#ifdef HAVE_DIRENT_H 8151# include <dirent.h> 8152#else /* not HAVE_DIRENT_H */ 8153# define dirent direct 8154# ifdef HAVE_SYS_NDIR_H 8155# include <sys/ndir.h> 8156# endif /* HAVE_SYS_NDIR_H */ 8157# ifdef HAVE_SYS_DIR_H 8158# include <sys/dir.h> 8159# endif /* HAVE_SYS_DIR_H */ 8160# ifdef HAVE_NDIR_H 8161# include <ndir.h> 8162# endif /* HAVE_NDIR_H */ 8163#endif /* HAVE_DIRENT_H */ 8164 8165int 8166main () 8167{ 8168struct dirent dp; dp.d_ino = 0; 8169 ; 8170 return 0; 8171} 8172_ACEOF 8173if ac_fn_c_try_link "$LINENO"; then : 8174 jm_cv_struct_dirent_d_ino=yes 8175else 8176 jm_cv_struct_dirent_d_ino=no 8177fi 8178rm -f core conftest.err conftest.$ac_objext \ 8179 conftest$ac_exeext conftest.$ac_ext 8180 8181 8182fi 8183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_cv_struct_dirent_d_ino" >&5 8184$as_echo "$jm_cv_struct_dirent_d_ino" >&6; } 8185 if test $jm_cv_struct_dirent_d_ino = yes; then 8186 8187$as_echo "#define D_INO_IN_DIRENT 1" >>confdefs.h 8188 8189 fi 8190 8191 8192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 8193$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 8194if test "${ac_cv_header_time+set}" = set; then : 8195 $as_echo_n "(cached) " >&6 8196else 8197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8198/* end confdefs.h. */ 8199#include <sys/types.h> 8200#include <sys/time.h> 8201#include <time.h> 8202 8203int 8204main () 8205{ 8206if ((struct tm *) 0) 8207return 0; 8208 ; 8209 return 0; 8210} 8211_ACEOF 8212if ac_fn_c_try_compile "$LINENO"; then : 8213 ac_cv_header_time=yes 8214else 8215 ac_cv_header_time=no 8216fi 8217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8218fi 8219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 8220$as_echo "$ac_cv_header_time" >&6; } 8221if test $ac_cv_header_time = yes; then 8222 8223$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 8224 8225fi 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 : 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 : 8250 8251 8252 8253 8254 8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5 8256$as_echo_n "checking for struct timespec... " >&6; } 8257if test "${fu_cv_sys_struct_timespec+set}" = set; then : 8258 $as_echo_n "(cached) " >&6 8259else 8260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8261/* end confdefs.h. */ 8262 8263# if TIME_WITH_SYS_TIME 8264# include <sys/time.h> 8265# include <time.h> 8266# else 8267# if HAVE_SYS_TIME_H 8268# include <sys/time.h> 8269# else 8270# include <time.h> 8271# endif 8272# endif 8273 8274int 8275main () 8276{ 8277static struct timespec x; x.tv_sec = x.tv_nsec; 8278 ; 8279 return 0; 8280} 8281_ACEOF 8282if ac_fn_c_try_compile "$LINENO"; then : 8283 fu_cv_sys_struct_timespec=yes 8284else 8285 fu_cv_sys_struct_timespec=no 8286fi 8287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8288 8289fi 8290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_struct_timespec" >&5 8291$as_echo "$fu_cv_sys_struct_timespec" >&6; } 8292 8293 if test $fu_cv_sys_struct_timespec = yes; then 8294 8295$as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h 8296 8297 fi 8298 8299 8300 8301 8302 ac_fn_c_check_decl "$LINENO" "nanosleep" "ac_cv_have_decl_nanosleep" "#include <time.h> 8303" 8304if test "x$ac_cv_have_decl_nanosleep" = x""yes; then : 8305 ac_have_decl=1 8306else 8307 ac_have_decl=0 8308fi 8309 8310cat >>confdefs.h <<_ACEOF 8311#define HAVE_DECL_NANOSLEEP $ac_have_decl 8312_ACEOF 8313 8314 8315 # expand $ac_aux_dir to an absolute path 8316 am_aux_dir=`cd $ac_aux_dir && pwd` 8317 8318 # getdate.y works with bison only. 8319 : ${YACC="\${SHELL} $am_aux_dir/bison-missing --run bison -y"} 8320 8321 8322 8323 8324 8325 8326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 8327$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 8328if test "${ac_cv_struct_tm+set}" = set; then : 8329 $as_echo_n "(cached) " >&6 8330else 8331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8332/* end confdefs.h. */ 8333#include <sys/types.h> 8334#include <time.h> 8335 8336int 8337main () 8338{ 8339struct tm tm; 8340 int *p = &tm.tm_sec; 8341 return !p; 8342 ; 8343 return 0; 8344} 8345_ACEOF 8346if ac_fn_c_try_compile "$LINENO"; then : 8347 ac_cv_struct_tm=time.h 8348else 8349 ac_cv_struct_tm=sys/time.h 8350fi 8351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8352fi 8353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 8354$as_echo "$ac_cv_struct_tm" >&6; } 8355if test $ac_cv_struct_tm = sys/time.h; then 8356 8357$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 8358 8359fi 8360 8361 8362 # dnl Persuade glibc <time.h> to declare these functions. 8363 8364 8365 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function. 8366 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4. 8367 8368 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all* 8369 # programs in the package would end up linked with that potentially-shared 8370 # library, inducing unnecessary run-time overhead. 8371 gl_saved_libs=$LIBS 8372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 8373$as_echo_n "checking for library containing clock_gettime... " >&6; } 8374if test "${ac_cv_search_clock_gettime+set}" = set; then : 8375 $as_echo_n "(cached) " >&6 8376else 8377 ac_func_search_save_LIBS=$LIBS 8378cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8379/* end confdefs.h. */ 8380 8381/* Override any GCC internal prototype to avoid an error. 8382 Use char because int might match the return type of a GCC 8383 builtin and then its argument prototype would still apply. */ 8384#ifdef __cplusplus 8385extern "C" 8386#endif 8387char clock_gettime (); 8388int 8389main () 8390{ 8391return clock_gettime (); 8392 ; 8393 return 0; 8394} 8395_ACEOF 8396for ac_lib in '' rt posix4; do 8397 if test -z "$ac_lib"; then 8398 ac_res="none required" 8399 else 8400 ac_res=-l$ac_lib 8401 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8402 fi 8403 if ac_fn_c_try_link "$LINENO"; then : 8404 ac_cv_search_clock_gettime=$ac_res 8405fi 8406rm -f core conftest.err conftest.$ac_objext \ 8407 conftest$ac_exeext 8408 if test "${ac_cv_search_clock_gettime+set}" = set; then : 8409 break 8410fi 8411done 8412if test "${ac_cv_search_clock_gettime+set}" = set; then : 8413 8414else 8415 ac_cv_search_clock_gettime=no 8416fi 8417rm conftest.$ac_ext 8418LIBS=$ac_func_search_save_LIBS 8419fi 8420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 8421$as_echo "$ac_cv_search_clock_gettime" >&6; } 8422ac_res=$ac_cv_search_clock_gettime 8423if test "$ac_res" != no; then : 8424 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8425 test "$ac_cv_search_clock_gettime" = "none required" || 8426 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime 8427fi 8428 8429 8430 for ac_func in clock_gettime clock_settime 8431do : 8432 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8433ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8434eval as_val=\$$as_ac_var 8435 if test "x$as_val" = x""yes; then : 8436 cat >>confdefs.h <<_ACEOF 8437#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8438_ACEOF 8439 8440fi 8441done 8442 8443 LIBS=$gl_saved_libs 8444 8445 8446 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h> 8447" 8448if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then : 8449 8450$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h 8451 8452fi 8453 8454 8455 8456 ac_fn_c_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default" 8457if test "x$ac_cv_have_decl_getdelim" = x""yes; then : 8458 ac_have_decl=1 8459else 8460 ac_have_decl=0 8461fi 8462 8463cat >>confdefs.h <<_ACEOF 8464#define HAVE_DECL_GETDELIM $ac_have_decl 8465_ACEOF 8466 8467 8468 8469 ac_fn_c_check_decl "$LINENO" "getlogin" "ac_cv_have_decl_getlogin" "$ac_includes_default" 8470if test "x$ac_cv_have_decl_getlogin" = x""yes; then : 8471 ac_have_decl=1 8472else 8473 ac_have_decl=0 8474fi 8475 8476cat >>confdefs.h <<_ACEOF 8477#define HAVE_DECL_GETLOGIN $ac_have_decl 8478_ACEOF 8479 8480 8481 8482 ac_fn_c_check_decl "$LINENO" "getlogin_r" "ac_cv_have_decl_getlogin_r" "$ac_includes_default" 8483if test "x$ac_cv_have_decl_getlogin_r" = x""yes; then : 8484 ac_have_decl=1 8485else 8486 ac_have_decl=0 8487fi 8488 8489cat >>confdefs.h <<_ACEOF 8490#define HAVE_DECL_GETLOGIN_R $ac_have_decl 8491_ACEOF 8492 8493 8494 8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 8496$as_echo_n "checking for ssize_t... " >&6; } 8497if test "${gt_cv_ssize_t+set}" = set; then : 8498 $as_echo_n "(cached) " >&6 8499else 8500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8501/* end confdefs.h. */ 8502#include <sys/types.h> 8503int 8504main () 8505{ 8506int x = sizeof (ssize_t *) + sizeof (ssize_t); 8507 ; 8508 return 0; 8509} 8510_ACEOF 8511if ac_fn_c_try_compile "$LINENO"; then : 8512 gt_cv_ssize_t=yes 8513else 8514 gt_cv_ssize_t=no 8515fi 8516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8517fi 8518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5 8519$as_echo "$gt_cv_ssize_t" >&6; } 8520 if test $gt_cv_ssize_t = no; then 8521 8522$as_echo "#define ssize_t int" >>confdefs.h 8523 8524 fi 8525 8526 8527 if test -z "$GETOPT_H"; then 8528 for ac_header in getopt.h 8529do : 8530 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" 8531if test "x$ac_cv_header_getopt_h" = x""yes; then : 8532 cat >>confdefs.h <<_ACEOF 8533#define HAVE_GETOPT_H 1 8534_ACEOF 8535 8536else 8537 GETOPT_H=getopt.h 8538fi 8539 8540done 8541 8542 fi 8543 8544 if test -z "$GETOPT_H"; then 8545 for ac_func in getopt_long_only 8546do : 8547 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only" 8548if test "x$ac_cv_func_getopt_long_only" = x""yes; then : 8549 cat >>confdefs.h <<_ACEOF 8550#define HAVE_GETOPT_LONG_ONLY 1 8551_ACEOF 8552 8553else 8554 GETOPT_H=getopt.h 8555fi 8556done 8557 8558 fi 8559 8560 if test -z "$GETOPT_H"; then 8561 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h> 8562" 8563if test "x$ac_cv_have_decl_optreset" = x""yes; then : 8564 GETOPT_H=getopt.h 8565fi 8566 8567 fi 8568 8569 if test -z "$GETOPT_H"; then 8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5 8571$as_echo_n "checking for working GNU getopt function... " >&6; } 8572if test "${gl_cv_func_gnu_getopt+set}" = set; then : 8573 $as_echo_n "(cached) " >&6 8574else 8575 if test "$cross_compiling" = yes; then : 8576 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h> 8577" 8578if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then : 8579 gl_cv_func_gnu_getopt=no 8580else 8581 gl_cv_func_gnu_getopt=yes 8582fi 8583 8584else 8585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8586/* end confdefs.h. */ 8587#include <getopt.h> 8588int 8589main () 8590{ 8591 8592 char *myargv[3]; 8593 myargv[0] = "conftest"; 8594 myargv[1] = "-+"; 8595 myargv[2] = 0; 8596 return getopt (2, myargv, "+a") != '?'; 8597 8598 ; 8599 return 0; 8600} 8601_ACEOF 8602if ac_fn_c_try_run "$LINENO"; then : 8603 gl_cv_func_gnu_getopt=yes 8604else 8605 gl_cv_func_gnu_getopt=no 8606fi 8607rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8608 conftest.$ac_objext conftest.beam conftest.$ac_ext 8609fi 8610 8611fi 8612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5 8613$as_echo "$gl_cv_func_gnu_getopt" >&6; } 8614 if test "$gl_cv_func_gnu_getopt" = "no"; then 8615 GETOPT_H=getopt.h 8616 fi 8617 fi 8618 8619 8620 8621 8622 8623 8624 8625 ac_fn_c_check_decl "$LINENO" "getpass" "ac_cv_have_decl_getpass" "$ac_includes_default" 8626if test "x$ac_cv_have_decl_getpass" = x""yes; then : 8627 ac_have_decl=1 8628else 8629 ac_have_decl=0 8630fi 8631 8632cat >>confdefs.h <<_ACEOF 8633#define HAVE_DECL_GETPASS $ac_have_decl 8634_ACEOF 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default" 8664if test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then : 8665 ac_have_decl=1 8666else 8667 ac_have_decl=0 8668fi 8669 8670cat >>confdefs.h <<_ACEOF 8671#define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl 8672_ACEOF 8673 8674 8675 8676 ac_fn_c_check_decl "$LINENO" "flockfile" "ac_cv_have_decl_flockfile" "$ac_includes_default" 8677if test "x$ac_cv_have_decl_flockfile" = x""yes; then : 8678 ac_have_decl=1 8679else 8680 ac_have_decl=0 8681fi 8682 8683cat >>confdefs.h <<_ACEOF 8684#define HAVE_DECL_FLOCKFILE $ac_have_decl 8685_ACEOF 8686 8687 8688 8689 ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default" 8690if test "x$ac_cv_have_decl_fputs_unlocked" = x""yes; then : 8691 ac_have_decl=1 8692else 8693 ac_have_decl=0 8694fi 8695 8696cat >>confdefs.h <<_ACEOF 8697#define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl 8698_ACEOF 8699 8700 8701 8702 ac_fn_c_check_decl "$LINENO" "funlockfile" "ac_cv_have_decl_funlockfile" "$ac_includes_default" 8703if test "x$ac_cv_have_decl_funlockfile" = x""yes; then : 8704 ac_have_decl=1 8705else 8706 ac_have_decl=0 8707fi 8708 8709cat >>confdefs.h <<_ACEOF 8710#define HAVE_DECL_FUNLOCKFILE $ac_have_decl 8711_ACEOF 8712 8713 8714 8715 ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default" 8716if test "x$ac_cv_have_decl_putc_unlocked" = x""yes; then : 8717 ac_have_decl=1 8718else 8719 ac_have_decl=0 8720fi 8721 8722cat >>confdefs.h <<_ACEOF 8723#define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl 8724_ACEOF 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_type member in directory struct" >&5 8738$as_echo_n "checking for d_type member in directory struct... " >&6; } 8739if test "${jm_cv_struct_dirent_d_type+set}" = set; then : 8740 $as_echo_n "(cached) " >&6 8741else 8742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8743/* end confdefs.h. */ 8744 8745#include <sys/types.h> 8746#ifdef HAVE_DIRENT_H 8747# include <dirent.h> 8748#else /* not HAVE_DIRENT_H */ 8749# define dirent direct 8750# ifdef HAVE_SYS_NDIR_H 8751# include <sys/ndir.h> 8752# endif /* HAVE_SYS_NDIR_H */ 8753# ifdef HAVE_SYS_DIR_H 8754# include <sys/dir.h> 8755# endif /* HAVE_SYS_DIR_H */ 8756# ifdef HAVE_NDIR_H 8757# include <ndir.h> 8758# endif /* HAVE_NDIR_H */ 8759#endif /* HAVE_DIRENT_H */ 8760 8761int 8762main () 8763{ 8764struct dirent dp; dp.d_type = 0; 8765 ; 8766 return 0; 8767} 8768_ACEOF 8769if ac_fn_c_try_link "$LINENO"; then : 8770 jm_cv_struct_dirent_d_type=yes 8771else 8772 jm_cv_struct_dirent_d_type=no 8773fi 8774rm -f core conftest.err conftest.$ac_objext \ 8775 conftest$ac_exeext conftest.$ac_ext 8776 8777 8778fi 8779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_cv_struct_dirent_d_type" >&5 8780$as_echo "$jm_cv_struct_dirent_d_type" >&6; } 8781 if test $jm_cv_struct_dirent_d_type = yes; then 8782 8783$as_echo "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h 8784 8785 fi 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 8804$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } 8805if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then : 8806 $as_echo_n "(cached) " >&6 8807else 8808 rm -f conftest.sym conftest.file 8809echo >conftest.file 8810if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then 8811 if test "$cross_compiling" = yes; then : 8812 ac_cv_func_lstat_dereferences_slashed_symlink=no 8813else 8814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8815/* end confdefs.h. */ 8816$ac_includes_default 8817int 8818main () 8819{ 8820struct stat sbuf; 8821 /* Linux will dereference the symlink and fail, as required by POSIX. 8822 That is better in the sense that it means we will not 8823 have to compile and use the lstat wrapper. */ 8824 return lstat ("conftest.sym/", &sbuf) == 0; 8825 ; 8826 return 0; 8827} 8828_ACEOF 8829if ac_fn_c_try_run "$LINENO"; then : 8830 ac_cv_func_lstat_dereferences_slashed_symlink=yes 8831else 8832 ac_cv_func_lstat_dereferences_slashed_symlink=no 8833fi 8834rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8835 conftest.$ac_objext conftest.beam conftest.$ac_ext 8836fi 8837 8838else 8839 # If the `ln -s' command failed, then we probably don't even 8840 # have an lstat function. 8841 ac_cv_func_lstat_dereferences_slashed_symlink=no 8842fi 8843rm -f conftest.sym conftest.file 8844 8845fi 8846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 8847$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } 8848 8849test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && 8850 8851cat >>confdefs.h <<_ACEOF 8852#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 8853_ACEOF 8854 8855 8856if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then 8857 case " $LIBOBJS " in 8858 *" lstat.$ac_objext "* ) ;; 8859 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" 8860 ;; 8861esac 8862 8863fi 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5 8877$as_echo_n "checking for uint32_t... " >&6; } 8878if test "${gl_cv_c_uint32_t+set}" = set; then : 8879 $as_echo_n "(cached) " >&6 8880else 8881 gl_cv_c_uint32_t=no 8882 for ac_type in "uint32_t" "unsigned int" \ 8883 "unsigned long int" "unsigned short int"; do 8884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8885/* end confdefs.h. */ 8886$ac_includes_default 8887int 8888main () 8889{ 8890static int test_array [1 - 2 * !(($ac_type) -1 == 4294967295U)]; 8891test_array [0] = 0 8892 8893 ; 8894 return 0; 8895} 8896_ACEOF 8897if ac_fn_c_try_compile "$LINENO"; then : 8898 gl_cv_c_uint32_t=$ac_type 8899fi 8900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8901 test "$gl_cv_c_uint32_t" != no && break 8902 done 8903fi 8904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_uint32_t" >&5 8905$as_echo "$gl_cv_c_uint32_t" >&6; } 8906 case "$gl_cv_c_uint32_t" in 8907 no|uint32_t) ;; 8908 *) 8909 8910$as_echo "#define _UINT32_T 1" >>confdefs.h 8911 8912 8913cat >>confdefs.h <<_ACEOF 8914#define uint32_t $gl_cv_c_uint32_t 8915_ACEOF 8916 8917 ;; 8918 esac 8919 8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UINT32_MAX" >&5 8921$as_echo_n "checking for UINT32_MAX... " >&6; } 8922if test "${gl_cv_c_uint32_max+set}" = set; then : 8923 $as_echo_n "(cached) " >&6 8924else 8925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8926/* end confdefs.h. */ 8927$ac_includes_default 8928int 8929main () 8930{ 8931static int test_array [1 - 2 * !(UINT32_MAX == 4294967295U)]; 8932test_array [0] = 0 8933 8934 ; 8935 return 0; 8936} 8937_ACEOF 8938if ac_fn_c_try_compile "$LINENO"; then : 8939 gl_cv_c_uint32_max=yes 8940else 8941 gl_cv_c_uint32_max=no 8942fi 8943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8944fi 8945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_uint32_max" >&5 8946$as_echo "$gl_cv_c_uint32_max" >&6; } 8947 case $gl_cv_c_uint32_max,$gl_cv_c_uint32_t in 8948 yes,*) ;; 8949 *,no) ;; 8950 *) 8951 8952$as_echo "#define UINT32_MAX 4294967295U" >>confdefs.h 8953 8954 ;; 8955 esac 8956 8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 8958$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 8959if test "${ac_cv_c_bigendian+set}" = set; then : 8960 $as_echo_n "(cached) " >&6 8961else 8962 ac_cv_c_bigendian=unknown 8963 # See if we're dealing with a universal compiler. 8964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8965/* end confdefs.h. */ 8966#ifndef __APPLE_CC__ 8967 not a universal capable compiler 8968 #endif 8969 typedef int dummy; 8970 8971_ACEOF 8972if ac_fn_c_try_compile "$LINENO"; then : 8973 8974 # Check for potential -arch flags. It is not universal unless 8975 # there are at least two -arch flags with different values. 8976 ac_arch= 8977 ac_prev= 8978 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 8979 if test -n "$ac_prev"; then 8980 case $ac_word in 8981 i?86 | x86_64 | ppc | ppc64) 8982 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 8983 ac_arch=$ac_word 8984 else 8985 ac_cv_c_bigendian=universal 8986 break 8987 fi 8988 ;; 8989 esac 8990 ac_prev= 8991 elif test "x$ac_word" = "x-arch"; then 8992 ac_prev=arch 8993 fi 8994 done 8995fi 8996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8997 if test $ac_cv_c_bigendian = unknown; then 8998 # See if sys/param.h defines the BYTE_ORDER macro. 8999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9000/* end confdefs.h. */ 9001#include <sys/types.h> 9002 #include <sys/param.h> 9003 9004int 9005main () 9006{ 9007#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 9008 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 9009 && LITTLE_ENDIAN) 9010 bogus endian macros 9011 #endif 9012 9013 ; 9014 return 0; 9015} 9016_ACEOF 9017if ac_fn_c_try_compile "$LINENO"; then : 9018 # It does; now see whether it defined to BIG_ENDIAN or not. 9019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9020/* end confdefs.h. */ 9021#include <sys/types.h> 9022 #include <sys/param.h> 9023 9024int 9025main () 9026{ 9027#if BYTE_ORDER != BIG_ENDIAN 9028 not big endian 9029 #endif 9030 9031 ; 9032 return 0; 9033} 9034_ACEOF 9035if ac_fn_c_try_compile "$LINENO"; then : 9036 ac_cv_c_bigendian=yes 9037else 9038 ac_cv_c_bigendian=no 9039fi 9040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9041fi 9042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9043 fi 9044 if test $ac_cv_c_bigendian = unknown; then 9045 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 9046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9047/* end confdefs.h. */ 9048#include <limits.h> 9049 9050int 9051main () 9052{ 9053#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 9054 bogus endian macros 9055 #endif 9056 9057 ; 9058 return 0; 9059} 9060_ACEOF 9061if ac_fn_c_try_compile "$LINENO"; then : 9062 # It does; now see whether it defined to _BIG_ENDIAN or not. 9063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9064/* end confdefs.h. */ 9065#include <limits.h> 9066 9067int 9068main () 9069{ 9070#ifndef _BIG_ENDIAN 9071 not big endian 9072 #endif 9073 9074 ; 9075 return 0; 9076} 9077_ACEOF 9078if ac_fn_c_try_compile "$LINENO"; then : 9079 ac_cv_c_bigendian=yes 9080else 9081 ac_cv_c_bigendian=no 9082fi 9083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9084fi 9085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9086 fi 9087 if test $ac_cv_c_bigendian = unknown; then 9088 # Compile a test program. 9089 if test "$cross_compiling" = yes; then : 9090 # Try to guess by grepping values from an object file. 9091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9092/* end confdefs.h. */ 9093short int ascii_mm[] = 9094 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 9095 short int ascii_ii[] = 9096 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 9097 int use_ascii (int i) { 9098 return ascii_mm[i] + ascii_ii[i]; 9099 } 9100 short int ebcdic_ii[] = 9101 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 9102 short int ebcdic_mm[] = 9103 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 9104 int use_ebcdic (int i) { 9105 return ebcdic_mm[i] + ebcdic_ii[i]; 9106 } 9107 extern int foo; 9108 9109int 9110main () 9111{ 9112return use_ascii (foo) == use_ebcdic (foo); 9113 ; 9114 return 0; 9115} 9116_ACEOF 9117if ac_fn_c_try_compile "$LINENO"; then : 9118 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 9119 ac_cv_c_bigendian=yes 9120 fi 9121 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 9122 if test "$ac_cv_c_bigendian" = unknown; then 9123 ac_cv_c_bigendian=no 9124 else 9125 # finding both strings is unlikely to happen, but who knows? 9126 ac_cv_c_bigendian=unknown 9127 fi 9128 fi 9129fi 9130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9131else 9132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9133/* end confdefs.h. */ 9134$ac_includes_default 9135int 9136main () 9137{ 9138 9139 /* Are we little or big endian? From Harbison&Steele. */ 9140 union 9141 { 9142 long int l; 9143 char c[sizeof (long int)]; 9144 } u; 9145 u.l = 1; 9146 return u.c[sizeof (long int) - 1] == 1; 9147 9148 ; 9149 return 0; 9150} 9151_ACEOF 9152if ac_fn_c_try_run "$LINENO"; then : 9153 ac_cv_c_bigendian=no 9154else 9155 ac_cv_c_bigendian=yes 9156fi 9157rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9158 conftest.$ac_objext conftest.beam conftest.$ac_ext 9159fi 9160 9161 fi 9162fi 9163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 9164$as_echo "$ac_cv_c_bigendian" >&6; } 9165 case $ac_cv_c_bigendian in #( 9166 yes) 9167 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 9168;; #( 9169 no) 9170 ;; #( 9171 universal) 9172 9173$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 9174 9175 ;; #( 9176 *) 9177 as_fn_error "unknown endianness 9178 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 9179 esac 9180 9181 9182 9183 9184 9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5 9186$as_echo_n "checking whether <limits.h> defines MIN and MAX... " >&6; } 9187if test "${gl_cv_minmax_in_limits_h+set}" = set; then : 9188 $as_echo_n "(cached) " >&6 9189else 9190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9191/* end confdefs.h. */ 9192#include <limits.h> 9193int x = MIN (42, 17); 9194int 9195main () 9196{ 9197 9198 ; 9199 return 0; 9200} 9201_ACEOF 9202if ac_fn_c_try_compile "$LINENO"; then : 9203 gl_cv_minmax_in_limits_h=yes 9204else 9205 gl_cv_minmax_in_limits_h=no 9206fi 9207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9208fi 9209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5 9210$as_echo "$gl_cv_minmax_in_limits_h" >&6; } 9211 if test $gl_cv_minmax_in_limits_h = yes; then 9212 9213$as_echo "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h 9214 9215 fi 9216 9217 9218 9219 9220 9221 9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5 9223$as_echo_n "checking whether <sys/param.h> defines MIN and MAX... " >&6; } 9224if test "${gl_cv_minmax_in_sys_param_h+set}" = set; then : 9225 $as_echo_n "(cached) " >&6 9226else 9227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9228/* end confdefs.h. */ 9229#include <sys/param.h> 9230int x = MIN (42, 17); 9231int 9232main () 9233{ 9234 9235 ; 9236 return 0; 9237} 9238_ACEOF 9239if ac_fn_c_try_compile "$LINENO"; then : 9240 gl_cv_minmax_in_sys_param_h=yes 9241else 9242 gl_cv_minmax_in_sys_param_h=no 9243fi 9244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9245fi 9246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5 9247$as_echo "$gl_cv_minmax_in_sys_param_h" >&6; } 9248 if test $gl_cv_minmax_in_sys_param_h = yes; then 9249 9250$as_echo "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h 9251 9252 fi 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default" 9264if test "x$ac_cv_have_decl_getenv" = x""yes; then : 9265 ac_have_decl=1 9266else 9267 ac_have_decl=0 9268fi 9269 9270cat >>confdefs.h <<_ACEOF 9271#define HAVE_DECL_GETENV $ac_have_decl 9272_ACEOF 9273 9274 9275 9276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 9277$as_echo_n "checking for inttypes.h... " >&6; } 9278if test "${gl_cv_header_inttypes_h+set}" = set; then : 9279 $as_echo_n "(cached) " >&6 9280else 9281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9282/* end confdefs.h. */ 9283#include <sys/types.h> 9284#include <inttypes.h> 9285int 9286main () 9287{ 9288uintmax_t i = (uintmax_t) -1; 9289 ; 9290 return 0; 9291} 9292_ACEOF 9293if ac_fn_c_try_compile "$LINENO"; then : 9294 gl_cv_header_inttypes_h=yes 9295else 9296 gl_cv_header_inttypes_h=no 9297fi 9298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9299fi 9300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5 9301$as_echo "$gl_cv_header_inttypes_h" >&6; } 9302 if test $gl_cv_header_inttypes_h = yes; then 9303 9304cat >>confdefs.h <<_ACEOF 9305#define HAVE_INTTYPES_H_WITH_UINTMAX 1 9306_ACEOF 9307 9308 fi 9309 9310 9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 9312$as_echo_n "checking for stdint.h... " >&6; } 9313if test "${gl_cv_header_stdint_h+set}" = set; then : 9314 $as_echo_n "(cached) " >&6 9315else 9316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9317/* end confdefs.h. */ 9318#include <sys/types.h> 9319#include <stdint.h> 9320int 9321main () 9322{ 9323uintmax_t i = (uintmax_t) -1; 9324 ; 9325 return 0; 9326} 9327_ACEOF 9328if ac_fn_c_try_compile "$LINENO"; then : 9329 gl_cv_header_stdint_h=yes 9330else 9331 gl_cv_header_stdint_h=no 9332fi 9333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9334fi 9335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5 9336$as_echo "$gl_cv_header_stdint_h" >&6; } 9337 if test $gl_cv_header_stdint_h = yes; then 9338 9339cat >>confdefs.h <<_ACEOF 9340#define HAVE_STDINT_H_WITH_UINTMAX 1 9341_ACEOF 9342 9343 fi 9344 9345 9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5 9347$as_echo_n "checking for unsigned long long... " >&6; } 9348if test "${ac_cv_type_unsigned_long_long+set}" = set; then : 9349 $as_echo_n "(cached) " >&6 9350else 9351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9352/* end confdefs.h. */ 9353unsigned long long ull = 1ULL; int i = 63; 9354int 9355main () 9356{ 9357unsigned long long ullmax = (unsigned long long) -1; 9358 return ull << i | ull >> i | ullmax / ull | ullmax % ull; 9359 ; 9360 return 0; 9361} 9362_ACEOF 9363if ac_fn_c_try_link "$LINENO"; then : 9364 ac_cv_type_unsigned_long_long=yes 9365else 9366 ac_cv_type_unsigned_long_long=no 9367fi 9368rm -f core conftest.err conftest.$ac_objext \ 9369 conftest$ac_exeext conftest.$ac_ext 9370fi 9371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5 9372$as_echo "$ac_cv_type_unsigned_long_long" >&6; } 9373 if test $ac_cv_type_unsigned_long_long = yes; then 9374 9375$as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h 9376 9377 fi 9378 9379 9380 9381 9382 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then 9383 9384 test $ac_cv_type_unsigned_long_long = yes \ 9385 && ac_type='unsigned long long' \ 9386 || ac_type='unsigned long' 9387 9388cat >>confdefs.h <<_ACEOF 9389#define uintmax_t $ac_type 9390_ACEOF 9391 9392 else 9393 9394$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h 9395 9396 fi 9397 9398for ac_header in stdlib.h sys/time.h unistd.h 9399do : 9400 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9401ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 9402eval as_val=\$$as_ac_Header 9403 if test "x$as_val" = x""yes; then : 9404 cat >>confdefs.h <<_ACEOF 9405#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9406_ACEOF 9407 9408fi 9409 9410done 9411 9412for ac_func in alarm 9413do : 9414 ac_fn_c_check_func "$LINENO" "alarm" "ac_cv_func_alarm" 9415if test "x$ac_cv_func_alarm" = x""yes; then : 9416 cat >>confdefs.h <<_ACEOF 9417#define HAVE_ALARM 1 9418_ACEOF 9419 9420fi 9421done 9422 9423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5 9424$as_echo_n "checking for working mktime... " >&6; } 9425if test "${ac_cv_func_working_mktime+set}" = set; then : 9426 $as_echo_n "(cached) " >&6 9427else 9428 if test "$cross_compiling" = yes; then : 9429 ac_cv_func_working_mktime=no 9430else 9431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9432/* end confdefs.h. */ 9433/* Test program from Paul Eggert and Tony Leneis. */ 9434#if TIME_WITH_SYS_TIME 9435# include <sys/time.h> 9436# include <time.h> 9437#else 9438# if HAVE_SYS_TIME_H 9439# include <sys/time.h> 9440# else 9441# include <time.h> 9442# endif 9443#endif 9444 9445#if HAVE_STDLIB_H 9446# include <stdlib.h> 9447#endif 9448 9449#if HAVE_UNISTD_H 9450# include <unistd.h> 9451#endif 9452 9453#if !HAVE_ALARM 9454# define alarm(X) /* empty */ 9455#endif 9456 9457/* Work around redefinition to rpl_putenv by other config tests. */ 9458#undef putenv 9459 9460static time_t time_t_max; 9461static time_t time_t_min; 9462 9463/* Values we'll use to set the TZ environment variable. */ 9464static char *tz_strings[] = { 9465 (char *) 0, "TZ=GMT0", "TZ=JST-9", 9466 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" 9467}; 9468#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) 9469 9470/* Fail if mktime fails to convert a date in the spring-forward gap. 9471 Based on a problem report from Andreas Jaeger. */ 9472static void 9473spring_forward_gap () 9474{ 9475 /* glibc (up to about 1998-10-07) failed this test. */ 9476 struct tm tm; 9477 9478 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" 9479 instead of "TZ=America/Vancouver" in order to detect the bug even 9480 on systems that don't support the Olson extension, or don't have the 9481 full zoneinfo tables installed. */ 9482 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); 9483 9484 tm.tm_year = 98; 9485 tm.tm_mon = 3; 9486 tm.tm_mday = 5; 9487 tm.tm_hour = 2; 9488 tm.tm_min = 0; 9489 tm.tm_sec = 0; 9490 tm.tm_isdst = -1; 9491 if (mktime (&tm) == (time_t)-1) 9492 exit (1); 9493} 9494 9495static void 9496mktime_test1 (now) 9497 time_t now; 9498{ 9499 struct tm *lt; 9500 if ((lt = localtime (&now)) && mktime (lt) != now) 9501 exit (1); 9502} 9503 9504static void 9505mktime_test (now) 9506 time_t now; 9507{ 9508 mktime_test1 (now); 9509 mktime_test1 ((time_t) (time_t_max - now)); 9510 mktime_test1 ((time_t) (time_t_min + now)); 9511} 9512 9513static void 9514irix_6_4_bug () 9515{ 9516 /* Based on code from Ariel Faigon. */ 9517 struct tm tm; 9518 tm.tm_year = 96; 9519 tm.tm_mon = 3; 9520 tm.tm_mday = 0; 9521 tm.tm_hour = 0; 9522 tm.tm_min = 0; 9523 tm.tm_sec = 0; 9524 tm.tm_isdst = -1; 9525 mktime (&tm); 9526 if (tm.tm_mon != 2 || tm.tm_mday != 31) 9527 exit (1); 9528} 9529 9530static void 9531bigtime_test (j) 9532 int j; 9533{ 9534 struct tm tm; 9535 time_t now; 9536 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; 9537 now = mktime (&tm); 9538 if (now != (time_t) -1) 9539 { 9540 struct tm *lt = localtime (&now); 9541 if (! (lt 9542 && lt->tm_year == tm.tm_year 9543 && lt->tm_mon == tm.tm_mon 9544 && lt->tm_mday == tm.tm_mday 9545 && lt->tm_hour == tm.tm_hour 9546 && lt->tm_min == tm.tm_min 9547 && lt->tm_sec == tm.tm_sec 9548 && lt->tm_yday == tm.tm_yday 9549 && lt->tm_wday == tm.tm_wday 9550 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) 9551 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) 9552 exit (1); 9553 } 9554} 9555 9556int 9557main () 9558{ 9559 time_t t, delta; 9560 int i, j; 9561 9562 /* This test makes some buggy mktime implementations loop. 9563 Give up after 60 seconds; a mktime slower than that 9564 isn't worth using anyway. */ 9565 alarm (60); 9566 9567 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) 9568 continue; 9569 time_t_max--; 9570 if ((time_t) -1 < 0) 9571 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2) 9572 continue; 9573 delta = time_t_max / 997; /* a suitable prime number */ 9574 for (i = 0; i < N_STRINGS; i++) 9575 { 9576 if (tz_strings[i]) 9577 putenv (tz_strings[i]); 9578 9579 for (t = 0; t <= time_t_max - delta; t += delta) 9580 mktime_test (t); 9581 mktime_test ((time_t) 1); 9582 mktime_test ((time_t) (60 * 60)); 9583 mktime_test ((time_t) (60 * 60 * 24)); 9584 9585 for (j = 1; 0 < j; j *= 2) 9586 bigtime_test (j); 9587 bigtime_test (j - 1); 9588 } 9589 irix_6_4_bug (); 9590 spring_forward_gap (); 9591 exit (0); 9592} 9593_ACEOF 9594if ac_fn_c_try_run "$LINENO"; then : 9595 ac_cv_func_working_mktime=yes 9596else 9597 ac_cv_func_working_mktime=no 9598fi 9599rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9600 conftest.$ac_objext conftest.beam conftest.$ac_ext 9601fi 9602 9603fi 9604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5 9605$as_echo "$ac_cv_func_working_mktime" >&6; } 9606if test $ac_cv_func_working_mktime = no; then 9607 case " $LIBOBJS " in 9608 *" mktime.$ac_objext "* ) ;; 9609 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" 9610 ;; 9611esac 9612 9613fi 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 # Check for mmap() 9632 9633 : 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645for ac_func in getpagesize 9646do : 9647 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 9648if test "x$ac_cv_func_getpagesize" = x""yes; then : 9649 cat >>confdefs.h <<_ACEOF 9650#define HAVE_GETPAGESIZE 1 9651_ACEOF 9652 9653fi 9654done 9655 9656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 9657$as_echo_n "checking for working mmap... " >&6; } 9658if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : 9659 $as_echo_n "(cached) " >&6 9660else 9661 if test "$cross_compiling" = yes; then : 9662 ac_cv_func_mmap_fixed_mapped=no 9663else 9664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9665/* end confdefs.h. */ 9666$ac_includes_default 9667/* malloc might have been renamed as rpl_malloc. */ 9668#undef malloc 9669 9670/* Thanks to Mike Haertel and Jim Avera for this test. 9671 Here is a matrix of mmap possibilities: 9672 mmap private not fixed 9673 mmap private fixed at somewhere currently unmapped 9674 mmap private fixed at somewhere already mapped 9675 mmap shared not fixed 9676 mmap shared fixed at somewhere currently unmapped 9677 mmap shared fixed at somewhere already mapped 9678 For private mappings, we should verify that changes cannot be read() 9679 back from the file, nor mmap's back from the file at a different 9680 address. (There have been systems where private was not correctly 9681 implemented like the infamous i386 svr4.0, and systems where the 9682 VM page cache was not coherent with the file system buffer cache 9683 like early versions of FreeBSD and possibly contemporary NetBSD.) 9684 For shared mappings, we should conversely verify that changes get 9685 propagated back to all the places they're supposed to be. 9686 9687 Grep wants private fixed already mapped. 9688 The main things grep needs to know about mmap are: 9689 * does it exist and is it safe to write into the mmap'd area 9690 * how to use it (BSD variants) */ 9691 9692#include <fcntl.h> 9693#include <sys/mman.h> 9694 9695#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 9696char *malloc (); 9697#endif 9698 9699/* This mess was copied from the GNU getpagesize.h. */ 9700#ifndef HAVE_GETPAGESIZE 9701# ifdef _SC_PAGESIZE 9702# define getpagesize() sysconf(_SC_PAGESIZE) 9703# else /* no _SC_PAGESIZE */ 9704# ifdef HAVE_SYS_PARAM_H 9705# include <sys/param.h> 9706# ifdef EXEC_PAGESIZE 9707# define getpagesize() EXEC_PAGESIZE 9708# else /* no EXEC_PAGESIZE */ 9709# ifdef NBPG 9710# define getpagesize() NBPG * CLSIZE 9711# ifndef CLSIZE 9712# define CLSIZE 1 9713# endif /* no CLSIZE */ 9714# else /* no NBPG */ 9715# ifdef NBPC 9716# define getpagesize() NBPC 9717# else /* no NBPC */ 9718# ifdef PAGESIZE 9719# define getpagesize() PAGESIZE 9720# endif /* PAGESIZE */ 9721# endif /* no NBPC */ 9722# endif /* no NBPG */ 9723# endif /* no EXEC_PAGESIZE */ 9724# else /* no HAVE_SYS_PARAM_H */ 9725# define getpagesize() 8192 /* punt totally */ 9726# endif /* no HAVE_SYS_PARAM_H */ 9727# endif /* no _SC_PAGESIZE */ 9728 9729#endif /* no HAVE_GETPAGESIZE */ 9730 9731int 9732main () 9733{ 9734 char *data, *data2, *data3; 9735 const char *cdata2; 9736 int i, pagesize; 9737 int fd, fd2; 9738 9739 pagesize = getpagesize (); 9740 9741 /* First, make a file with some known garbage in it. */ 9742 data = (char *) malloc (pagesize); 9743 if (!data) 9744 return 1; 9745 for (i = 0; i < pagesize; ++i) 9746 *(data + i) = rand (); 9747 umask (0); 9748 fd = creat ("conftest.mmap", 0600); 9749 if (fd < 0) 9750 return 2; 9751 if (write (fd, data, pagesize) != pagesize) 9752 return 3; 9753 close (fd); 9754 9755 /* Next, check that the tail of a page is zero-filled. File must have 9756 non-zero length, otherwise we risk SIGBUS for entire page. */ 9757 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 9758 if (fd2 < 0) 9759 return 4; 9760 cdata2 = ""; 9761 if (write (fd2, cdata2, 1) != 1) 9762 return 5; 9763 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 9764 if (data2 == MAP_FAILED) 9765 return 6; 9766 for (i = 0; i < pagesize; ++i) 9767 if (*(data2 + i)) 9768 return 7; 9769 close (fd2); 9770 if (munmap (data2, pagesize)) 9771 return 8; 9772 9773 /* Next, try to mmap the file at a fixed address which already has 9774 something else allocated at it. If we can, also make sure that 9775 we see the same garbage. */ 9776 fd = open ("conftest.mmap", O_RDWR); 9777 if (fd < 0) 9778 return 9; 9779 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 9780 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 9781 return 10; 9782 for (i = 0; i < pagesize; ++i) 9783 if (*(data + i) != *(data2 + i)) 9784 return 11; 9785 9786 /* Finally, make sure that changes to the mapped area do not 9787 percolate back to the file as seen by read(). (This is a bug on 9788 some variants of i386 svr4.0.) */ 9789 for (i = 0; i < pagesize; ++i) 9790 *(data2 + i) = *(data2 + i) + 1; 9791 data3 = (char *) malloc (pagesize); 9792 if (!data3) 9793 return 12; 9794 if (read (fd, data3, pagesize) != pagesize) 9795 return 13; 9796 for (i = 0; i < pagesize; ++i) 9797 if (*(data + i) != *(data3 + i)) 9798 return 14; 9799 close (fd); 9800 return 0; 9801} 9802_ACEOF 9803if ac_fn_c_try_run "$LINENO"; then : 9804 ac_cv_func_mmap_fixed_mapped=yes 9805else 9806 ac_cv_func_mmap_fixed_mapped=no 9807fi 9808rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9809 conftest.$ac_objext conftest.beam conftest.$ac_ext 9810fi 9811 9812fi 9813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 9814$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 9815if test $ac_cv_func_mmap_fixed_mapped = yes; then 9816 9817$as_echo "#define HAVE_MMAP 1" >>confdefs.h 9818 9819fi 9820rm -f conftest.mmap conftest.txt 9821 9822 9823 # Try to allow MAP_ANONYMOUS. 9824 gl_have_mmap_anonymous=no 9825 if test $ac_cv_func_mmap_fixed_mapped = yes; then 9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5 9827$as_echo_n "checking for MAP_ANONYMOUS... " >&6; } 9828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9829/* end confdefs.h. */ 9830 9831#include <sys/mman.h> 9832#ifdef MAP_ANONYMOUS 9833 I cant identify this map. 9834#endif 9835 9836_ACEOF 9837if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9838 $EGREP "I cant identify this map." >/dev/null 2>&1; then : 9839 gl_have_mmap_anonymous=yes 9840fi 9841rm -f conftest* 9842 9843 if test $gl_have_mmap_anonymous != yes; then 9844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9845/* end confdefs.h. */ 9846 9847#include <sys/mman.h> 9848#ifdef MAP_ANON 9849 I cant identify this map. 9850#endif 9851 9852_ACEOF 9853if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9854 $EGREP "I cant identify this map." >/dev/null 2>&1; then : 9855 9856$as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h 9857 9858 gl_have_mmap_anonymous=yes 9859fi 9860rm -f conftest* 9861 9862 fi 9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5 9864$as_echo "$gl_have_mmap_anonymous" >&6; } 9865 if test $gl_have_mmap_anonymous = yes; then 9866 9867$as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h 9868 9869 fi 9870 fi 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 9889$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 9890if test "${am_cv_langinfo_codeset+set}" = set; then : 9891 $as_echo_n "(cached) " >&6 9892else 9893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9894/* end confdefs.h. */ 9895#include <langinfo.h> 9896int 9897main () 9898{ 9899char* cs = nl_langinfo(CODESET); 9900 ; 9901 return 0; 9902} 9903_ACEOF 9904if ac_fn_c_try_link "$LINENO"; then : 9905 am_cv_langinfo_codeset=yes 9906else 9907 am_cv_langinfo_codeset=no 9908fi 9909rm -f core conftest.err conftest.$ac_objext \ 9910 conftest$ac_exeext conftest.$ac_ext 9911 9912fi 9913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 9914$as_echo "$am_cv_langinfo_codeset" >&6; } 9915 if test $am_cv_langinfo_codeset = yes; then 9916 9917$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 9918 9919 fi 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 9948$as_echo_n "checking for inttypes.h... " >&6; } 9949if test "${gt_cv_header_inttypes_h+set}" = set; then : 9950 $as_echo_n "(cached) " >&6 9951else 9952 9953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9954/* end confdefs.h. */ 9955#include <sys/types.h> 9956#include <inttypes.h> 9957int 9958main () 9959{ 9960 9961 ; 9962 return 0; 9963} 9964_ACEOF 9965if ac_fn_c_try_compile "$LINENO"; then : 9966 gt_cv_header_inttypes_h=yes 9967else 9968 gt_cv_header_inttypes_h=no 9969fi 9970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9971 9972fi 9973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5 9974$as_echo "$gt_cv_header_inttypes_h" >&6; } 9975 if test $gt_cv_header_inttypes_h = yes; then 9976 9977cat >>confdefs.h <<_ACEOF 9978#define HAVE_INTTYPES_H 1 9979_ACEOF 9980 9981 fi 9982 9983 9984 ac_fn_c_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default" 9985if test "x$ac_cv_have_decl_strdup" = x""yes; then : 9986 ac_have_decl=1 9987else 9988 ac_have_decl=0 9989fi 9990 9991cat >>confdefs.h <<_ACEOF 9992#define HAVE_DECL_STRDUP $ac_have_decl 9993_ACEOF 9994 9995 9996for ac_func in strftime 9997do : 9998 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" 9999if test "x$ac_cv_func_strftime" = x""yes; then : 10000 cat >>confdefs.h <<_ACEOF 10001#define HAVE_STRFTIME 1 10002_ACEOF 10003 10004else 10005 # strftime is in -lintl on SCO UNIX. 10006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 10007$as_echo_n "checking for strftime in -lintl... " >&6; } 10008if test "${ac_cv_lib_intl_strftime+set}" = set; then : 10009 $as_echo_n "(cached) " >&6 10010else 10011 ac_check_lib_save_LIBS=$LIBS 10012LIBS="-lintl $LIBS" 10013cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10014/* end confdefs.h. */ 10015 10016/* Override any GCC internal prototype to avoid an error. 10017 Use char because int might match the return type of a GCC 10018 builtin and then its argument prototype would still apply. */ 10019#ifdef __cplusplus 10020extern "C" 10021#endif 10022char strftime (); 10023int 10024main () 10025{ 10026return strftime (); 10027 ; 10028 return 0; 10029} 10030_ACEOF 10031if ac_fn_c_try_link "$LINENO"; then : 10032 ac_cv_lib_intl_strftime=yes 10033else 10034 ac_cv_lib_intl_strftime=no 10035fi 10036rm -f core conftest.err conftest.$ac_objext \ 10037 conftest$ac_exeext conftest.$ac_ext 10038LIBS=$ac_check_lib_save_LIBS 10039fi 10040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 10041$as_echo "$ac_cv_lib_intl_strftime" >&6; } 10042if test "x$ac_cv_lib_intl_strftime" = x""yes; then : 10043 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h 10044 10045LIBS="-lintl $LIBS" 10046fi 10047 10048fi 10049done 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 case " $LIBOBJS " in 10069 *" strftime.$ac_objext "* ) ;; 10070 *) LIBOBJS="$LIBOBJS strftime.$ac_objext" 10071 ;; 10072esac 10073 10074 10075 # strftime.c uses the underyling system strftime if it exists. 10076 10077 10078 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE. 10079 10080 10081 10082 10083 10084 10085 : 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 : 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112$as_echo "#define my_strftime nstrftime" >>confdefs.h 10113 10114 10115 10116 ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default" 10117if test "x$ac_cv_have_decl_clearerr_unlocked" = x""yes; then : 10118 ac_have_decl=1 10119else 10120 ac_have_decl=0 10121fi 10122 10123cat >>confdefs.h <<_ACEOF 10124#define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl 10125_ACEOF 10126 10127 10128 10129 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default" 10130if test "x$ac_cv_have_decl_feof_unlocked" = x""yes; then : 10131 ac_have_decl=1 10132else 10133 ac_have_decl=0 10134fi 10135 10136cat >>confdefs.h <<_ACEOF 10137#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl 10138_ACEOF 10139 10140 10141 10142 ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default" 10143if test "x$ac_cv_have_decl_ferror_unlocked" = x""yes; then : 10144 ac_have_decl=1 10145else 10146 ac_have_decl=0 10147fi 10148 10149cat >>confdefs.h <<_ACEOF 10150#define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl 10151_ACEOF 10152 10153 10154 10155 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default" 10156if test "x$ac_cv_have_decl_fgets_unlocked" = x""yes; then : 10157 ac_have_decl=1 10158else 10159 ac_have_decl=0 10160fi 10161 10162cat >>confdefs.h <<_ACEOF 10163#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl 10164_ACEOF 10165 10166 10167 10168 ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default" 10169if test "x$ac_cv_have_decl_fputc_unlocked" = x""yes; then : 10170 ac_have_decl=1 10171else 10172 ac_have_decl=0 10173fi 10174 10175cat >>confdefs.h <<_ACEOF 10176#define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl 10177_ACEOF 10178 10179 10180 10181 ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default" 10182if test "x$ac_cv_have_decl_fread_unlocked" = x""yes; then : 10183 ac_have_decl=1 10184else 10185 ac_have_decl=0 10186fi 10187 10188cat >>confdefs.h <<_ACEOF 10189#define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl 10190_ACEOF 10191 10192 10193 10194 ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default" 10195if test "x$ac_cv_have_decl_fwrite_unlocked" = x""yes; then : 10196 ac_have_decl=1 10197else 10198 ac_have_decl=0 10199fi 10200 10201cat >>confdefs.h <<_ACEOF 10202#define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl 10203_ACEOF 10204 10205 10206 10207 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default" 10208if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then : 10209 ac_have_decl=1 10210else 10211 ac_have_decl=0 10212fi 10213 10214cat >>confdefs.h <<_ACEOF 10215#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl 10216_ACEOF 10217 10218 10219 10220 ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default" 10221if test "x$ac_cv_have_decl_getchar_unlocked" = x""yes; then : 10222 ac_have_decl=1 10223else 10224 ac_have_decl=0 10225fi 10226 10227cat >>confdefs.h <<_ACEOF 10228#define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl 10229_ACEOF 10230 10231 10232 10233 ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default" 10234if test "x$ac_cv_have_decl_putchar_unlocked" = x""yes; then : 10235 ac_have_decl=1 10236else 10237 ac_have_decl=0 10238fi 10239 10240cat >>confdefs.h <<_ACEOF 10241#define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl 10242_ACEOF 10243 10244 10245 10246 10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW" >&5 10248$as_echo_n "checking for EOVERFLOW... " >&6; } 10249if test "${ac_cv_decl_EOVERFLOW+set}" = set; then : 10250 $as_echo_n "(cached) " >&6 10251else 10252 10253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10254/* end confdefs.h. */ 10255 10256#include <errno.h> 10257#ifdef EOVERFLOW 10258yes 10259#endif 10260 10261_ACEOF 10262if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10263 $EGREP "yes" >/dev/null 2>&1; then : 10264 have_eoverflow=1 10265fi 10266rm -f conftest* 10267 10268 if test -n "$have_eoverflow"; then 10269 ac_cv_decl_EOVERFLOW=yes 10270 else 10271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10272/* end confdefs.h. */ 10273 10274#define _XOPEN_SOURCE_EXTENDED 1 10275#include <errno.h> 10276#ifdef EOVERFLOW 10277yes 10278#endif 10279 10280_ACEOF 10281if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10282 $EGREP "yes" >/dev/null 2>&1; then : 10283 have_eoverflow=1 10284fi 10285rm -f conftest* 10286 10287 if test -n "$have_eoverflow"; then 10288 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "ac_cv_decl_EOVERFLOW" " 10289#define _XOPEN_SOURCE_EXTENDED 1 10290#include <errno.h> 10291/* The following two lines are a workaround against an autoconf-2.52 bug. */ 10292#include <stdio.h> 10293#include <stdlib.h> 10294"; then : 10295 10296fi 10297 10298 10299 else 10300 ac_cv_decl_EOVERFLOW=E2BIG 10301 fi 10302 fi 10303 10304fi 10305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_EOVERFLOW" >&5 10306$as_echo "$ac_cv_decl_EOVERFLOW" >&6; } 10307 if test "$ac_cv_decl_EOVERFLOW" != yes; then 10308 10309cat >>confdefs.h <<_ACEOF 10310#define EOVERFLOW $ac_cv_decl_EOVERFLOW 10311_ACEOF 10312 10313 EOVERFLOW="$ac_cv_decl_EOVERFLOW" 10314 10315 fi 10316 10317 10318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5 10319$as_echo_n "checking for signed... " >&6; } 10320if test "${bh_cv_c_signed+set}" = set; then : 10321 $as_echo_n "(cached) " >&6 10322else 10323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10324/* end confdefs.h. */ 10325 10326int 10327main () 10328{ 10329signed char x; 10330 ; 10331 return 0; 10332} 10333_ACEOF 10334if ac_fn_c_try_compile "$LINENO"; then : 10335 bh_cv_c_signed=yes 10336else 10337 bh_cv_c_signed=no 10338fi 10339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10340fi 10341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5 10342$as_echo "$bh_cv_c_signed" >&6; } 10343 if test $bh_cv_c_signed = no; then 10344 10345$as_echo "#define signed /**/" >>confdefs.h 10346 10347 fi 10348 10349 10350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 10351$as_echo_n "checking for wchar_t... " >&6; } 10352if test "${gt_cv_c_wchar_t+set}" = set; then : 10353 $as_echo_n "(cached) " >&6 10354else 10355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10356/* end confdefs.h. */ 10357#include <stddef.h> 10358 wchar_t foo = (wchar_t)'\0'; 10359int 10360main () 10361{ 10362 10363 ; 10364 return 0; 10365} 10366_ACEOF 10367if ac_fn_c_try_compile "$LINENO"; then : 10368 gt_cv_c_wchar_t=yes 10369else 10370 gt_cv_c_wchar_t=no 10371fi 10372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10373fi 10374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 10375$as_echo "$gt_cv_c_wchar_t" >&6; } 10376 if test $gt_cv_c_wchar_t = yes; then 10377 10378$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h 10379 10380 fi 10381 10382 10383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 10384$as_echo_n "checking for wint_t... " >&6; } 10385if test "${gt_cv_c_wint_t+set}" = set; then : 10386 $as_echo_n "(cached) " >&6 10387else 10388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10389/* end confdefs.h. */ 10390#include <wchar.h> 10391 wint_t foo = (wchar_t)'\0'; 10392int 10393main () 10394{ 10395 10396 ; 10397 return 0; 10398} 10399_ACEOF 10400if ac_fn_c_try_compile "$LINENO"; then : 10401 gt_cv_c_wint_t=yes 10402else 10403 gt_cv_c_wint_t=no 10404fi 10405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10406fi 10407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 10408$as_echo "$gt_cv_c_wint_t" >&6; } 10409 if test $gt_cv_c_wint_t = yes; then 10410 10411$as_echo "#define HAVE_WINT_T 1" >>confdefs.h 10412 10413 fi 10414 10415ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 10416if test "x$ac_cv_type_size_t" = x""yes; then : 10417 10418else 10419 10420cat >>confdefs.h <<_ACEOF 10421#define size_t unsigned int 10422_ACEOF 10423 10424fi 10425 10426 10427 10428 10429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 10430$as_echo_n "checking for intmax_t... " >&6; } 10431if test "${gt_cv_c_intmax_t+set}" = set; then : 10432 $as_echo_n "(cached) " >&6 10433else 10434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10435/* end confdefs.h. */ 10436 10437#include <stddef.h> 10438#include <stdlib.h> 10439#if HAVE_STDINT_H_WITH_UINTMAX 10440#include <stdint.h> 10441#endif 10442#if HAVE_INTTYPES_H_WITH_UINTMAX 10443#include <inttypes.h> 10444#endif 10445 10446int 10447main () 10448{ 10449intmax_t x = -1; 10450 ; 10451 return 0; 10452} 10453_ACEOF 10454if ac_fn_c_try_compile "$LINENO"; then : 10455 gt_cv_c_intmax_t=yes 10456else 10457 gt_cv_c_intmax_t=no 10458fi 10459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10460fi 10461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5 10462$as_echo "$gt_cv_c_intmax_t" >&6; } 10463 if test $gt_cv_c_intmax_t = yes; then 10464 10465$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h 10466 10467 else 10468 10469 test $ac_cv_type_long_long = yes \ 10470 && ac_type='long long' \ 10471 || ac_type='long' 10472 10473cat >>confdefs.h <<_ACEOF 10474#define intmax_t $ac_type 10475_ACEOF 10476 10477 fi 10478 10479 10480 10481 10482 10483 10484 10485 if test $ac_cv_func_alloca_works = no; then 10486 : 10487 fi 10488 10489 # Define an additional variable used in the Makefile substitution. 10490 if test $ac_cv_working_alloca_h = yes; then 10491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10492/* end confdefs.h. */ 10493 10494#if defined __GNUC__ || defined _AIX || defined _MSC_VER 10495 Need own alloca 10496#endif 10497 10498_ACEOF 10499if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10500 $EGREP "Need own alloca" >/dev/null 2>&1; then : 10501 10502$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 10503 10504 ALLOCA_H=alloca.h 10505else 10506 ALLOCA_H= 10507fi 10508rm -f conftest* 10509 10510 else 10511 ALLOCA_H=alloca.h 10512 fi 10513 10514 10515 10516$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 for ac_func in atexit 10527do : 10528 ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit" 10529if test "x$ac_cv_func_atexit" = x""yes; then : 10530 cat >>confdefs.h <<_ACEOF 10531#define HAVE_ATEXIT 1 10532_ACEOF 10533 10534else 10535 case " $LIBOBJS " in 10536 *" $ac_func.$ac_objext "* ) ;; 10537 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 10538 ;; 10539esac 10540 10541fi 10542done 10543 10544 10545 if test $ac_cv_func_atexit = no; then 10546 10547 : 10548 10549 fi 10550 10551 10552 10553 case " $LIBOBJS " in 10554 *" canon-host.$ac_objext "* ) ;; 10555 *) LIBOBJS="$LIBOBJS canon-host.$ac_objext" 10556 ;; 10557esac 10558 10559 10560 10561 10562 10563 10564 10565 case " $LIBOBJS " in 10566 *" canonicalize.$ac_objext "* ) ;; 10567 *) LIBOBJS="$LIBOBJS canonicalize.$ac_objext" 10568 ;; 10569esac 10570 10571 10572 10573 for ac_header in string.h sys/param.h 10574do : 10575 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10576ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10577eval as_val=\$$as_ac_Header 10578 if test "x$as_val" = x""yes; then : 10579 cat >>confdefs.h <<_ACEOF 10580#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10581_ACEOF 10582 10583fi 10584 10585done 10586 10587 for ac_func in resolvepath canonicalize_file_name 10588do : 10589 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10590ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 10591eval as_val=\$$as_ac_var 10592 if test "x$as_val" = x""yes; then : 10593 cat >>confdefs.h <<_ACEOF 10594#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10595_ACEOF 10596 10597fi 10598done 10599 10600 10601 10602 10603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this system has a definition of PATH_MAX" >&5 10604$as_echo_n "checking whether this system has a definition of PATH_MAX... " >&6; } 10605if test "${gl_cv_have_path_max_definition+set}" = set; then : 10606 $as_echo_n "(cached) " >&6 10607else 10608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10609/* end confdefs.h. */ 10610#include <unistd.h> 10611#include <limits.h> 10612#ifdef PATH_MAX 10613have_path_max_definition 10614#endif 10615_ACEOF 10616if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10617 $EGREP "have_path_max_definition" >/dev/null 2>&1; then : 10618 gl_cv_have_path_max_definition=yes 10619else 10620 gl_cv_have_path_max_definition=no 10621fi 10622rm -f conftest* 10623 10624fi 10625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_path_max_definition" >&5 10626$as_echo "$gl_cv_have_path_max_definition" >&6; } 10627 10628 if test $gl_cv_have_path_max_definition; then 10629 case " $LIBOBJS " in 10630 *" chdir-long.$ac_objext "* ) ;; 10631 *) LIBOBJS="$LIBOBJS chdir-long.$ac_objext" 10632 ;; 10633esac 10634 10635 10636 10637 10638 10639 # Define two additional variables used in the Makefile substitution. 10640 10641 if test "$ac_cv_header_stdbool_h" = yes; then 10642 STDBOOL_H='' 10643 else 10644 STDBOOL_H='stdbool.h' 10645 fi 10646 10647 10648 if test "$ac_cv_type__Bool" = yes; then 10649 HAVE__BOOL=1 10650 else 10651 HAVE__BOOL=0 10652 fi 10653 10654 10655 10656 10657 10658 10659 10660 for ac_func in mempcpy 10661do : 10662 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy" 10663if test "x$ac_cv_func_mempcpy" = x""yes; then : 10664 cat >>confdefs.h <<_ACEOF 10665#define HAVE_MEMPCPY 1 10666_ACEOF 10667 10668else 10669 case " $LIBOBJS " in 10670 *" $ac_func.$ac_objext "* ) ;; 10671 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 10672 ;; 10673esac 10674 10675fi 10676done 10677 10678 10679 if test $ac_cv_func_mempcpy = no; then 10680 10681 : 10682 10683 fi 10684 10685 10686 10687 10688 for ac_func in openat 10689do : 10690 ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat" 10691if test "x$ac_cv_func_openat" = x""yes; then : 10692 cat >>confdefs.h <<_ACEOF 10693#define HAVE_OPENAT 1 10694_ACEOF 10695 10696else 10697 case " $LIBOBJS " in 10698 *" $ac_func.$ac_objext "* ) ;; 10699 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 10700 ;; 10701esac 10702 10703fi 10704done 10705 10706 10707 case $ac_cv_func_openat in 10708 yes) ;; 10709 *) 10710 10711$as_echo "#define __OPENAT_PREFIX rpl_" >>confdefs.h 10712 10713 10714 10715;; 10716 esac 10717 10718 10719 10720 10721 10722 10723 10724 : 10725 10726 10727 10728 10729 10730 10731 for ac_func in memrchr 10732do : 10733 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr" 10734if test "x$ac_cv_func_memrchr" = x""yes; then : 10735 cat >>confdefs.h <<_ACEOF 10736#define HAVE_MEMRCHR 1 10737_ACEOF 10738 10739else 10740 case " $LIBOBJS " in 10741 *" $ac_func.$ac_objext "* ) ;; 10742 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 10743 ;; 10744esac 10745 10746fi 10747done 10748 10749 10750 if test $ac_cv_func_memrchr = no; then 10751 : 10752 fi 10753 10754 10755 fi 10756 10757 10758 10759 case " $LIBOBJS " in 10760 *" closeout.$ac_objext "* ) ;; 10761 *) LIBOBJS="$LIBOBJS closeout.$ac_objext" 10762 ;; 10763esac 10764 10765 10766 : 10767 10768 10769 10770 case " $LIBOBJS " in 10771 *" dirname.$ac_objext "* ) ;; 10772 *) LIBOBJS="$LIBOBJS dirname.$ac_objext" 10773 ;; 10774esac 10775 10776 10777 10778 10779 10780 10781 for ac_func in dup2 10782do : 10783 ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" 10784if test "x$ac_cv_func_dup2" = x""yes; then : 10785 cat >>confdefs.h <<_ACEOF 10786#define HAVE_DUP2 1 10787_ACEOF 10788 10789else 10790 case " $LIBOBJS " in 10791 *" $ac_func.$ac_objext "* ) ;; 10792 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 10793 ;; 10794esac 10795 10796fi 10797done 10798 10799 10800 if test $ac_cv_func_dup2 = no; then 10801 10802 10803 : 10804 10805 10806 10807 10808 10809 10810 fi 10811 10812 10813 10814 10815 : 10816 10817 10818 10819 10820 case " $LIBOBJS " in 10821 *" exitfail.$ac_objext "* ) ;; 10822 *) LIBOBJS="$LIBOBJS exitfail.$ac_objext" 10823 ;; 10824esac 10825 10826 10827 : 10828 10829 10830 10831 case " $LIBOBJS " in 10832 *" filenamecat.$ac_objext "* ) ;; 10833 *) LIBOBJS="$LIBOBJS filenamecat.$ac_objext" 10834 ;; 10835esac 10836 10837 10838 10839 : 10840 10841 10842 10843 10844 10845 10846 # No macro. You should also use one of fnmatch-posix or fnmatch-gnu. 10847 10848 FNMATCH_H= 10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working POSIX fnmatch" >&5 10850$as_echo_n "checking for working POSIX fnmatch... " >&6; } 10851if test "${ac_cv_func_fnmatch_posix+set}" = set; then : 10852 $as_echo_n "(cached) " >&6 10853else 10854 if test "$cross_compiling" = yes; then : 10855 ac_cv_func_fnmatch_posix=cross 10856else 10857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10858/* end confdefs.h. */ 10859 10860# include <stdlib.h> 10861# include <fnmatch.h> 10862# define y(a, b, c) (fnmatch (a, b, c) == 0) 10863# define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH) 10864 10865int 10866main () 10867{ 10868exit 10869 (!(y ("a*", "abc", 0) 10870 && n ("d*/*1", "d/s/1", FNM_PATHNAME) 10871 && y ("a\\\\bc", "abc", 0) 10872 && n ("a\\\\bc", "abc", FNM_NOESCAPE) 10873 && y ("*x", ".x", 0) 10874 && n ("*x", ".x", FNM_PERIOD) 10875 && 1)); 10876 ; 10877 return 0; 10878} 10879_ACEOF 10880if ac_fn_c_try_run "$LINENO"; then : 10881 ac_cv_func_fnmatch_posix=yes 10882else 10883 ac_cv_func_fnmatch_posix=no 10884fi 10885rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10886 conftest.$ac_objext conftest.beam conftest.$ac_ext 10887fi 10888 10889fi 10890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fnmatch_posix" >&5 10891$as_echo "$ac_cv_func_fnmatch_posix" >&6; } 10892if test $ac_cv_func_fnmatch_posix = yes; then : 10893 rm -f lib/fnmatch.h 10894else 10895 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default" 10896if test "x$ac_cv_have_decl_getenv" = x""yes; then : 10897 ac_have_decl=1 10898else 10899 ac_have_decl=0 10900fi 10901 10902cat >>confdefs.h <<_ACEOF 10903#define HAVE_DECL_GETENV $ac_have_decl 10904_ACEOF 10905 10906for ac_func in btowc mbsrtowcs mempcpy wmemchr wmemcpy wmempcpy 10907do : 10908 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10909ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 10910eval as_val=\$$as_ac_var 10911 if test "x$as_val" = x""yes; then : 10912 cat >>confdefs.h <<_ACEOF 10913#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10914_ACEOF 10915 10916fi 10917done 10918 10919for ac_header in wchar.h wctype.h 10920do : 10921 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10922ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10923eval as_val=\$$as_ac_Header 10924 if test "x$as_val" = x""yes; then : 10925 cat >>confdefs.h <<_ACEOF 10926#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10927_ACEOF 10928 10929fi 10930 10931done 10932 10933case " $LIBOBJS " in 10934 *" fnmatch.$ac_objext "* ) ;; 10935 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext" 10936 ;; 10937esac 10938 10939FNMATCH_H=fnmatch.h 10940 10941fi 10942 10943 if test $ac_cv_func_fnmatch_posix != yes; then 10944 10945$as_echo "#define fnmatch posix_fnmatch" >>confdefs.h 10946 10947 fi 10948 10949 10950 10951 10952 10953 for ac_header in stdio_ext.h 10954do : 10955 ac_fn_c_check_header_mongrel "$LINENO" "stdio_ext.h" "ac_cv_header_stdio_ext_h" "$ac_includes_default" 10956if test "x$ac_cv_header_stdio_ext_h" = x""yes; then : 10957 cat >>confdefs.h <<_ACEOF 10958#define HAVE_STDIO_EXT_H 1 10959_ACEOF 10960 10961fi 10962 10963done 10964 10965 for ac_func in __fpending 10966do : 10967 ac_fn_c_check_func "$LINENO" "__fpending" "ac_cv_func___fpending" 10968if test "x$ac_cv_func___fpending" = x""yes; then : 10969 cat >>confdefs.h <<_ACEOF 10970#define HAVE___FPENDING 1 10971_ACEOF 10972 10973else 10974 case " $LIBOBJS " in 10975 *" $ac_func.$ac_objext "* ) ;; 10976 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 10977 ;; 10978esac 10979 10980fi 10981done 10982 10983 10984 fp_headers=' 10985# if HAVE_STDIO_EXT_H 10986# include <stdio_ext.h> 10987# endif 10988' 10989 ac_fn_c_check_decl "$LINENO" "__fpending" "ac_cv_have_decl___fpending" "$fp_headers 10990" 10991if test "x$ac_cv_have_decl___fpending" = x""yes; then : 10992 ac_have_decl=1 10993else 10994 ac_have_decl=0 10995fi 10996 10997cat >>confdefs.h <<_ACEOF 10998#define HAVE_DECL___FPENDING $ac_have_decl 10999_ACEOF 11000 11001 if test $ac_cv_func___fpending = no; then 11002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5 11003$as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; } 11004if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then : 11005 $as_echo_n "(cached) " >&6 11006else 11007 11008 for ac_expr in \ 11009 \ 11010 '# glibc2' \ 11011 'fp->_IO_write_ptr - fp->_IO_write_base' \ 11012 \ 11013 '# traditional Unix' \ 11014 'fp->_ptr - fp->_base' \ 11015 \ 11016 '# BSD' \ 11017 'fp->_p - fp->_bf._base' \ 11018 \ 11019 '# SCO, Unixware' \ 11020 'fp->__ptr - fp->__base' \ 11021 \ 11022 '# old glibc?' \ 11023 'fp->__bufp - fp->__buffer' \ 11024 \ 11025 '# old glibc iostream?' \ 11026 'fp->_pptr - fp->_pbase' \ 11027 \ 11028 '# VMS' \ 11029 '(*fp)->_ptr - (*fp)->_base' \ 11030 \ 11031 '# e.g., DGUX R4.11; the info is not available' \ 11032 1 \ 11033 ; do 11034 11035 # Skip each embedded comment. 11036 case "$ac_expr" in '#'*) continue;; esac 11037 11038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11039/* end confdefs.h. */ 11040#include <stdio.h> 11041 11042int 11043main () 11044{ 11045FILE *fp = stdin; (void) ($ac_expr); 11046 ; 11047 return 0; 11048} 11049_ACEOF 11050if ac_fn_c_try_compile "$LINENO"; then : 11051 fp_done=yes 11052 11053fi 11054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11055 test "$fp_done" = yes && break 11056 done 11057 11058 ac_cv_sys_pending_output_n_bytes=$ac_expr 11059 11060 11061fi 11062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5 11063$as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; } 11064 11065cat >>confdefs.h <<_ACEOF 11066#define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes 11067_ACEOF 11068 11069 fi 11070 11071 11072 for ac_func in ftruncate 11073do : 11074 ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate" 11075if test "x$ac_cv_func_ftruncate" = x""yes; then : 11076 cat >>confdefs.h <<_ACEOF 11077#define HAVE_FTRUNCATE 1 11078_ACEOF 11079 11080else 11081 case " $LIBOBJS " in 11082 *" $ac_func.$ac_objext "* ) ;; 11083 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 11084 ;; 11085esac 11086 11087fi 11088done 11089 11090 11091 if test $ac_cv_func_ftruncate = no; then 11092 11093 11094 : 11095 11096 11097 11098 11099 11100 for ac_func in chsize 11101do : 11102 ac_fn_c_check_func "$LINENO" "chsize" "ac_cv_func_chsize" 11103if test "x$ac_cv_func_chsize" = x""yes; then : 11104 cat >>confdefs.h <<_ACEOF 11105#define HAVE_CHSIZE 1 11106_ACEOF 11107 11108fi 11109done 11110 11111 11112 fi 11113 11114 11115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5 11116$as_echo_n "checking for library containing getaddrinfo... " >&6; } 11117if test "${ac_cv_search_getaddrinfo+set}" = set; then : 11118 $as_echo_n "(cached) " >&6 11119else 11120 ac_func_search_save_LIBS=$LIBS 11121cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11122/* end confdefs.h. */ 11123 11124/* Override any GCC internal prototype to avoid an error. 11125 Use char because int might match the return type of a GCC 11126 builtin and then its argument prototype would still apply. */ 11127#ifdef __cplusplus 11128extern "C" 11129#endif 11130char getaddrinfo (); 11131int 11132main () 11133{ 11134return getaddrinfo (); 11135 ; 11136 return 0; 11137} 11138_ACEOF 11139for ac_lib in '' nsl socket; do 11140 if test -z "$ac_lib"; then 11141 ac_res="none required" 11142 else 11143 ac_res=-l$ac_lib 11144 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11145 fi 11146 if ac_fn_c_try_link "$LINENO"; then : 11147 ac_cv_search_getaddrinfo=$ac_res 11148fi 11149rm -f core conftest.err conftest.$ac_objext \ 11150 conftest$ac_exeext 11151 if test "${ac_cv_search_getaddrinfo+set}" = set; then : 11152 break 11153fi 11154done 11155if test "${ac_cv_search_getaddrinfo+set}" = set; then : 11156 11157else 11158 ac_cv_search_getaddrinfo=no 11159fi 11160rm conftest.$ac_ext 11161LIBS=$ac_func_search_save_LIBS 11162fi 11163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5 11164$as_echo "$ac_cv_search_getaddrinfo" >&6; } 11165ac_res=$ac_cv_search_getaddrinfo 11166if test "$ac_res" != no; then : 11167 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11168 11169fi 11170 11171 for ac_func in getaddrinfo gai_strerror 11172do : 11173 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11174ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11175eval as_val=\$$as_ac_var 11176 if test "x$as_val" = x""yes; then : 11177 cat >>confdefs.h <<_ACEOF 11178#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11179_ACEOF 11180 11181else 11182 case " $LIBOBJS " in 11183 *" $ac_func.$ac_objext "* ) ;; 11184 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 11185 ;; 11186esac 11187 11188fi 11189done 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 case $gl_cv_func_getcwd_null in 11202 yes) 11203 11204 : 11205 11206 11207 11208 11209 11210 11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd handles long file names properly" >&5 11212$as_echo_n "checking whether getcwd handles long file names properly... " >&6; } 11213if test "${gl_cv_func_getcwd_path_max+set}" = set; then : 11214 $as_echo_n "(cached) " >&6 11215else 11216 # Arrange for deletion of the temporary directory this test creates. 11217 ac_clean_files="$ac_clean_files confdir3" 11218 if test "$cross_compiling" = yes; then : 11219 gl_cv_func_getcwd_path_max=no 11220else 11221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11222/* end confdefs.h. */ 11223 11224#include <errno.h> 11225#include <stdlib.h> 11226#include <unistd.h> 11227#include <string.h> 11228#include <limits.h> 11229#include <sys/stat.h> 11230#include <sys/types.h> 11231#include <fcntl.h> 11232 11233#ifndef AT_FDCWD 11234# define AT_FDCWD 0 11235#endif 11236#ifdef ENAMETOOLONG 11237# define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG) 11238#else 11239# define is_ENAMETOOLONG(x) 0 11240#endif 11241 11242/* Don't get link errors because mkdir is redefined to rpl_mkdir. */ 11243#undef mkdir 11244 11245#ifndef S_IRWXU 11246# define S_IRWXU 0700 11247#endif 11248 11249/* The length of this name must be 8. */ 11250#define DIR_NAME "confdir3" 11251#define DIR_NAME_LEN 8 11252#define DIR_NAME_SIZE (DIR_NAME_LEN + 1) 11253 11254/* The length of "../". */ 11255#define DOTDOTSLASH_LEN 3 11256 11257/* Leftover bytes in the buffer, to work around library or OS bugs. */ 11258#define BUF_SLOP 20 11259 11260int 11261main (void) 11262{ 11263#ifndef PATH_MAX 11264 /* The Hurd doesn't define this, so getcwd can't exhibit the bug -- 11265 at least not on a local file system. And if we were to start worrying 11266 about remote file systems, we'd have to enable the wrapper function 11267 all of the time, just to be safe. That's not worth the cost. */ 11268 exit (0); 11269#elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \ 11270 - DIR_NAME_SIZE - BUF_SLOP) \ 11271 <= PATH_MAX) 11272 /* FIXME: Assuming there's a system for which this is true, 11273 this should be done in a compile test. */ 11274 exit (0); 11275#else 11276 char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) 11277 + DIR_NAME_SIZE + BUF_SLOP]; 11278 char *cwd = getcwd (buf, PATH_MAX); 11279 size_t initial_cwd_len; 11280 size_t cwd_len; 11281 int fail = 0; 11282 size_t n_chdirs = 0; 11283 11284 if (cwd == NULL) 11285 exit (1); 11286 11287 cwd_len = initial_cwd_len = strlen (cwd); 11288 11289 while (1) 11290 { 11291 size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN); 11292 char *c = NULL; 11293 11294 cwd_len += DIR_NAME_SIZE; 11295 /* If mkdir or chdir fails, it could be that this system cannot create 11296 any file with an absolute name longer than PATH_MAX, such as cygwin. 11297 If so, leave fail as 0, because the current working directory can't 11298 be too long for getcwd if it can't even be created. For other 11299 errors, be pessimistic and consider that as a failure, too. */ 11300 if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0) 11301 { 11302 if (! (errno == ERANGE || is_ENAMETOOLONG (errno))) 11303 fail = 2; 11304 break; 11305 } 11306 11307 if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE) 11308 { 11309 c = getcwd (buf, PATH_MAX); 11310 if (!c && errno == ENOENT) 11311 { 11312 fail = 1; 11313 break; 11314 } 11315 if (c || ! (errno == ERANGE || is_ENAMETOOLONG (errno))) 11316 { 11317 fail = 2; 11318 break; 11319 } 11320 } 11321 11322 if (dotdot_max <= cwd_len - initial_cwd_len) 11323 { 11324 if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len) 11325 break; 11326 c = getcwd (buf, cwd_len + 1); 11327 if (!c) 11328 { 11329 if (! (errno == ERANGE || errno == ENOENT 11330 || is_ENAMETOOLONG (errno))) 11331 { 11332 fail = 2; 11333 break; 11334 } 11335 if (AT_FDCWD || errno == ERANGE || errno == ENOENT) 11336 { 11337 fail = 1; 11338 break; 11339 } 11340 } 11341 } 11342 11343 if (c && strlen (c) != cwd_len) 11344 { 11345 fail = 2; 11346 break; 11347 } 11348 ++n_chdirs; 11349 } 11350 11351 /* Leaving behind such a deep directory is not polite. 11352 So clean up here, right away, even though the driving 11353 shell script would also clean up. */ 11354 { 11355 size_t i; 11356 11357 /* Unlink first, in case the chdir failed. */ 11358 unlink (DIR_NAME); 11359 for (i = 0; i <= n_chdirs; i++) 11360 { 11361 if (chdir ("..") < 0) 11362 break; 11363 rmdir (DIR_NAME); 11364 } 11365 } 11366 11367 exit (fail); 11368#endif 11369} 11370 11371_ACEOF 11372if ac_fn_c_try_run "$LINENO"; then : 11373 gl_cv_func_getcwd_path_max=yes 11374else 11375 case $? in 11376 1) gl_cv_func_getcwd_path_max='no, but it is partly working';; 11377 *) gl_cv_func_getcwd_path_max=no;; 11378 esac 11379fi 11380rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11381 conftest.$ac_objext conftest.beam conftest.$ac_ext 11382fi 11383 11384 11385fi 11386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_path_max" >&5 11387$as_echo "$gl_cv_func_getcwd_path_max" >&6; } 11388 case $gl_cv_func_getcwd_path_max in 11389 no,*) 11390 11391$as_echo "#define HAVE_PARTLY_WORKING_GETCWD 1" >>confdefs.h 11392;; 11393 esac 11394;; 11395 esac 11396 11397 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_path_max in 11398 yes,yes) ;; 11399 *) 11400 case " $LIBOBJS " in 11401 *" getcwd.$ac_objext "* ) ;; 11402 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" 11403 ;; 11404esac 11405 11406 11407$as_echo "#define __GETCWD_PREFIX rpl_" >>confdefs.h 11408 11409 11410 11411 11412 11413 : 11414;; 11415 esac 11416 11417 11418 11419 case " $LIBOBJS " in 11420 *" getdate.$ac_objext "* ) ;; 11421 *) LIBOBJS="$LIBOBJS getdate.$ac_objext" 11422 ;; 11423esac 11424 11425 11426 11427 11428 11429 11430 11431 11432 : 11433 11434 11435 11436 11437 11438 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> 11439#include <$ac_cv_struct_tm> 11440 11441" 11442if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then : 11443 11444cat >>confdefs.h <<_ACEOF 11445#define HAVE_STRUCT_TM_TM_ZONE 1 11446_ACEOF 11447 11448 11449fi 11450 11451if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 11452 11453$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h 11454 11455else 11456 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 11457" 11458if test "x$ac_cv_have_decl_tzname" = x""yes; then : 11459 ac_have_decl=1 11460else 11461 ac_have_decl=0 11462fi 11463 11464cat >>confdefs.h <<_ACEOF 11465#define HAVE_DECL_TZNAME $ac_have_decl 11466_ACEOF 11467 11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 11469$as_echo_n "checking for tzname... " >&6; } 11470if test "${ac_cv_var_tzname+set}" = set; then : 11471 $as_echo_n "(cached) " >&6 11472else 11473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11474/* end confdefs.h. */ 11475#include <time.h> 11476#if !HAVE_DECL_TZNAME 11477extern char *tzname[]; 11478#endif 11479 11480int 11481main () 11482{ 11483return tzname[0][0]; 11484 ; 11485 return 0; 11486} 11487_ACEOF 11488if ac_fn_c_try_link "$LINENO"; then : 11489 ac_cv_var_tzname=yes 11490else 11491 ac_cv_var_tzname=no 11492fi 11493rm -f core conftest.err conftest.$ac_objext \ 11494 conftest$ac_exeext conftest.$ac_ext 11495fi 11496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 11497$as_echo "$ac_cv_var_tzname" >&6; } 11498 if test $ac_cv_var_tzname = yes; then 11499 11500$as_echo "#define HAVE_TZNAME 1" >>confdefs.h 11501 11502 fi 11503fi 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 for ac_func in getdelim 11514do : 11515 ac_fn_c_check_func "$LINENO" "getdelim" "ac_cv_func_getdelim" 11516if test "x$ac_cv_func_getdelim" = x""yes; then : 11517 cat >>confdefs.h <<_ACEOF 11518#define HAVE_GETDELIM 1 11519_ACEOF 11520 11521else 11522 case " $LIBOBJS " in 11523 *" $ac_func.$ac_objext "* ) ;; 11524 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 11525 ;; 11526esac 11527 11528fi 11529done 11530 11531 11532 11533 : 11534 11535 11536 11537 11538 11539 11540 if test $ac_cv_func_getdelim = no; then 11541 11542 for ac_func in flockfile funlockfile 11543do : 11544 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11545ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11546eval as_val=\$$as_ac_var 11547 if test "x$as_val" = x""yes; then : 11548 cat >>confdefs.h <<_ACEOF 11549#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11550_ACEOF 11551 11552fi 11553done 11554 11555 11556 fi 11557 11558 11559 for ac_func in gethostname 11560do : 11561 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname" 11562if test "x$ac_cv_func_gethostname" = x""yes; then : 11563 cat >>confdefs.h <<_ACEOF 11564#define HAVE_GETHOSTNAME 1 11565_ACEOF 11566 11567else 11568 case " $LIBOBJS " in 11569 *" $ac_func.$ac_objext "* ) ;; 11570 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 11571 ;; 11572esac 11573 11574fi 11575done 11576 11577 11578 if test $ac_cv_func_gethostname = no; then 11579 11580 for ac_func in uname 11581do : 11582 ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname" 11583if test "x$ac_cv_func_uname" = x""yes; then : 11584 cat >>confdefs.h <<_ACEOF 11585#define HAVE_UNAME 1 11586_ACEOF 11587 11588fi 11589done 11590 11591 11592 fi 11593 11594 11595 11596 11597 11598 11599 ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default" 11600if test "x$ac_cv_have_decl_getline" = x""yes; then : 11601 ac_have_decl=1 11602else 11603 ac_have_decl=0 11604fi 11605 11606cat >>confdefs.h <<_ACEOF 11607#define HAVE_DECL_GETLINE $ac_have_decl 11608_ACEOF 11609 11610 11611 gl_getline_needs_run_time_check=no 11612 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline" 11613if test "x$ac_cv_func_getline" = x""yes; then : 11614 gl_getline_needs_run_time_check=yes 11615else 11616 am_cv_func_working_getline=no 11617fi 11618 11619 if test $gl_getline_needs_run_time_check = yes; then 11620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5 11621$as_echo_n "checking for working getline function... " >&6; } 11622if test "${am_cv_func_working_getline+set}" = set; then : 11623 $as_echo_n "(cached) " >&6 11624else 11625 echo fooN |tr -d '\012'|tr N '\012' > conftest.data 11626 if test "$cross_compiling" = yes; then : 11627 am_cv_func_working_getline=no 11628else 11629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11630/* end confdefs.h. */ 11631 11632# include <stdio.h> 11633# include <stdlib.h> 11634# include <string.h> 11635 int main () 11636 { /* Based on a test program from Karl Heuer. */ 11637 char *line = NULL; 11638 size_t siz = 0; 11639 int len; 11640 FILE *in = fopen ("./conftest.data", "r"); 11641 if (!in) 11642 return 1; 11643 len = getline (&line, &siz, in); 11644 exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1); 11645 } 11646 11647_ACEOF 11648if ac_fn_c_try_run "$LINENO"; then : 11649 am_cv_func_working_getline=yes 11650else 11651 am_cv_func_working_getline=no 11652fi 11653rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11654 conftest.$ac_objext conftest.beam conftest.$ac_ext 11655fi 11656 11657fi 11658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5 11659$as_echo "$am_cv_func_working_getline" >&6; } 11660 fi 11661 11662 if test $am_cv_func_working_getline = no; then 11663 11664$as_echo "#define getline gnu_getline" >>confdefs.h 11665 11666 case " $LIBOBJS " in 11667 *" getline.$ac_objext "* ) ;; 11668 *) LIBOBJS="$LIBOBJS getline.$ac_objext" 11669 ;; 11670esac 11671 11672 11673 11674 11675 11676 11677 11678 11679 for ac_func in getdelim 11680do : 11681 ac_fn_c_check_func "$LINENO" "getdelim" "ac_cv_func_getdelim" 11682if test "x$ac_cv_func_getdelim" = x""yes; then : 11683 cat >>confdefs.h <<_ACEOF 11684#define HAVE_GETDELIM 1 11685_ACEOF 11686 11687else 11688 case " $LIBOBJS " in 11689 *" $ac_func.$ac_objext "* ) ;; 11690 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 11691 ;; 11692esac 11693 11694fi 11695done 11696 11697 11698 11699 : 11700 11701 11702 11703 11704 11705 11706 if test $ac_cv_func_getdelim = no; then 11707 11708 for ac_func in flockfile funlockfile 11709do : 11710 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11711ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11712eval as_val=\$$as_ac_var 11713 if test "x$as_val" = x""yes; then : 11714 cat >>confdefs.h <<_ACEOF 11715#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11716_ACEOF 11717 11718fi 11719done 11720 11721 11722 fi 11723 11724 11725 fi 11726 11727 11728 for ac_func in getlogin_r 11729do : 11730 ac_fn_c_check_func "$LINENO" "getlogin_r" "ac_cv_func_getlogin_r" 11731if test "x$ac_cv_func_getlogin_r" = x""yes; then : 11732 cat >>confdefs.h <<_ACEOF 11733#define HAVE_GETLOGIN_R 1 11734_ACEOF 11735 11736else 11737 case " $LIBOBJS " in 11738 *" $ac_func.$ac_objext "* ) ;; 11739 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 11740 ;; 11741esac 11742 11743fi 11744done 11745 11746 11747 if test $ac_cv_func_getlogin_r = no; then 11748 11749 11750 11751 : 11752 11753 11754 11755 11756 11757 11758 : 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 case " $LIBOBJS " in 11770 *" getlogin_r.$ac_objext "* ) ;; 11771 *) LIBOBJS="$LIBOBJS getlogin_r.$ac_objext" 11772 ;; 11773esac 11774 11775 11776 fi 11777 11778 11779 # Avoid multiple inclusions of getndelim2.o into LIBOBJS. 11780 # This hack won't be needed after gnulib requires Autoconf 2.58 or later. 11781 case " $LIBOBJS " in 11782 *" getndelim2.$ac_objext "* ) ;; 11783 *) case " $LIBOBJS " in 11784 *" getndelim2.$ac_objext "* ) ;; 11785 *) LIBOBJS="$LIBOBJS getndelim2.$ac_objext" 11786 ;; 11787esac 11788;; 11789 esac 11790 11791 11792 11793 11794 11795 11796 11797 : 11798 11799 11800 11801 if test -n "$GETOPT_H"; then : 11802 11803 case " $LIBOBJS " in 11804 *" getopt.$ac_objext "* ) ;; 11805 *) LIBOBJS="$LIBOBJS getopt.$ac_objext" 11806 ;; 11807esac 11808 11809 case " $LIBOBJS " in 11810 *" getopt1.$ac_objext "* ) ;; 11811 *) LIBOBJS="$LIBOBJS getopt1.$ac_objext" 11812 ;; 11813esac 11814 11815 11816 GETOPT_H=getopt.h 11817 11818$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h 11819 11820 11821 11822 : 11823 11824fi 11825 11826 11827 11828 11829 11830 : 11831 11832 11833 11834 11835 11836 11837 11838 11839 for ac_header in OS.h 11840do : 11841 ac_fn_c_check_header_mongrel "$LINENO" "OS.h" "ac_cv_header_OS_h" "$ac_includes_default" 11842if test "x$ac_cv_header_OS_h" = x""yes; then : 11843 cat >>confdefs.h <<_ACEOF 11844#define HAVE_OS_H 1 11845_ACEOF 11846 11847fi 11848 11849done 11850 11851 for ac_func in getpagesize 11852do : 11853 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 11854if test "x$ac_cv_func_getpagesize" = x""yes; then : 11855 cat >>confdefs.h <<_ACEOF 11856#define HAVE_GETPAGESIZE 1 11857_ACEOF 11858 11859fi 11860done 11861 11862 11863 11864 11865 11866 11867 : 11868 11869 11870 11871 11872 11873 case " $LIBOBJS " in 11874 *" getpass.$ac_objext "* ) ;; 11875 *) LIBOBJS="$LIBOBJS getpass.$ac_objext" 11876 ;; 11877esac 11878 11879 11880 11881 : 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 : 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 : 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924$as_echo "#define getpass gnu_getpass" >>confdefs.h 11925 11926 11927 11928 11929 case " $LIBOBJS " in 11930 *" gettime.$ac_objext "* ) ;; 11931 *) LIBOBJS="$LIBOBJS gettime.$ac_objext" 11932 ;; 11933esac 11934 11935 11936 11937 11938 11939 : 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5 11952$as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; } 11953if test "${jm_cv_func_gettimeofday_clobber+set}" = set; then : 11954 $as_echo_n "(cached) " >&6 11955else 11956 if test "$cross_compiling" = yes; then : 11957 jm_cv_func_gettimeofday_clobber=yes 11958else 11959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11960/* end confdefs.h. */ 11961 11962#include <stdio.h> 11963#include <string.h> 11964 11965#if TIME_WITH_SYS_TIME 11966# include <sys/time.h> 11967# include <time.h> 11968#else 11969# if HAVE_SYS_TIME_H 11970# include <sys/time.h> 11971# else 11972# include <time.h> 11973# endif 11974#endif 11975 11976#include <stdlib.h> 11977 11978int 11979main () 11980{ 11981 time_t t = 0; 11982 struct tm *lt; 11983 struct tm saved_lt; 11984 struct timeval tv; 11985 lt = localtime (&t); 11986 saved_lt = *lt; 11987 gettimeofday (&tv, NULL); 11988 if (memcmp (lt, &saved_lt, sizeof (struct tm)) != 0) 11989 exit (1); 11990 11991 exit (0); 11992} 11993 11994_ACEOF 11995if ac_fn_c_try_run "$LINENO"; then : 11996 jm_cv_func_gettimeofday_clobber=no 11997else 11998 jm_cv_func_gettimeofday_clobber=yes 11999fi 12000rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12001 conftest.$ac_objext conftest.beam conftest.$ac_ext 12002fi 12003 12004 12005fi 12006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_cv_func_gettimeofday_clobber" >&5 12007$as_echo "$jm_cv_func_gettimeofday_clobber" >&6; } 12008 if test $jm_cv_func_gettimeofday_clobber = yes; then 12009 12010 case " $LIBOBJS " in 12011 *" gettimeofday.$ac_objext "* ) ;; 12012 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" 12013 ;; 12014esac 12015 12016 12017$as_echo "#define gmtime rpl_gmtime" >>confdefs.h 12018 12019 12020$as_echo "#define localtime rpl_localtime" >>confdefs.h 12021 12022 12023 12024 12025$as_echo "#define gettimeofday rpl_gettimeofday" >>confdefs.h 12026 12027 12028 12029 12030 fi 12031 12032 GLOB_H= 12033 for ac_header in glob.h 12034do : 12035 ac_fn_c_check_header_mongrel "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default" 12036if test "x$ac_cv_header_glob_h" = x""yes; then : 12037 cat >>confdefs.h <<_ACEOF 12038#define HAVE_GLOB_H 1 12039_ACEOF 12040 12041else 12042 GLOB_H=glob.h 12043fi 12044 12045done 12046 12047 12048 if test -z "$GLOB_H"; then 12049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU glob interface version 1" >&5 12050$as_echo_n "checking for GNU glob interface version 1... " >&6; } 12051if test "${gl_cv_gnu_glob_interface_version_1+set}" = set; then : 12052 $as_echo_n "(cached) " >&6 12053else 12054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12055/* end confdefs.h. */ 12056#include <gnu-versions.h> 12057char a[_GNU_GLOB_INTERFACE_VERSION == 1 ? 1 : -1]; 12058_ACEOF 12059if ac_fn_c_try_compile "$LINENO"; then : 12060 gl_cv_gnu_glob_interface_version_1=yes 12061else 12062 gl_cv_gnu_glob_interface_version_1=no 12063fi 12064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12065fi 12066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_gnu_glob_interface_version_1" >&5 12067$as_echo "$gl_cv_gnu_glob_interface_version_1" >&6; } 12068 12069 if test "$gl_cv_gnu_glob_interface_version_1" = "no"; then 12070 GLOB_H=glob.h 12071 fi 12072 fi 12073 12074 if test -z "$GLOB_H"; then 12075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glob lists broken symlinks" >&5 12076$as_echo_n "checking whether glob lists broken symlinks... " >&6; } 12077if test "${gl_cv_glob_lists_symlinks+set}" = set; then : 12078 $as_echo_n "(cached) " >&6 12079else 12080 if ln -s conf-doesntexist conf$$-globtest 2>/dev/null; then 12081 gl_cv_glob_lists_symlinks=maybe 12082 else 12083 # If we can't make a symlink, then we cannot test this issue. Be 12084 # pessimistic about this. 12085 gl_cv_glob_lists_symlinks=no 12086 fi 12087 12088 if test $gl_cv_glob_lists_symlinks = maybe; then 12089 if test "$cross_compiling" = yes; then : 12090 gl_cv_glob_lists_symlinks=no 12091else 12092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12093/* end confdefs.h. */ 12094#include <stddef.h> 12095#include <glob.h> 12096int 12097main () 12098{ 12099glob_t found; 12100if (glob ("conf*-globtest", 0, NULL, &found) == GLOB_NOMATCH) return 1; 12101 ; 12102 return 0; 12103} 12104_ACEOF 12105if ac_fn_c_try_run "$LINENO"; then : 12106 gl_cv_glob_lists_symlinks=yes 12107else 12108 gl_cv_glob_lists_symlinks=no 12109fi 12110rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12111 conftest.$ac_objext conftest.beam conftest.$ac_ext 12112fi 12113 12114 fi 12115fi 12116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_glob_lists_symlinks" >&5 12117$as_echo "$gl_cv_glob_lists_symlinks" >&6; } 12118 12119 if test $gl_cv_glob_lists_symlinks = no; then 12120 GLOB_H=glob.h 12121 fi 12122 fi 12123 12124 rm -f conf$$-globtest 12125 12126 if test -n "$GLOB_H"; then 12127 12128 12129 : 12130 12131 12132 12133 12134 12135 12136 12137 12138 : 12139 12140 12141 12142 12143 12144 12145 12146 : 12147 12148 GLOB_H=glob.h 12149 12150 case " $LIBOBJS " in 12151 *" glob.$ac_objext "* ) ;; 12152 *) LIBOBJS="$LIBOBJS glob.$ac_objext" 12153 ;; 12154esac 12155 12156 12157 12158 fi 12159 12160 12161 12162 12163 12164 : 12165 12166 for ac_header in stdlib.h 12167do : 12168 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 12169if test "x$ac_cv_header_stdlib_h" = x""yes; then : 12170 cat >>confdefs.h <<_ACEOF 12171#define HAVE_STDLIB_H 1 12172_ACEOF 12173 12174fi 12175 12176done 12177 12178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 12179$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 12180if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then : 12181 $as_echo_n "(cached) " >&6 12182else 12183 if test "$cross_compiling" = yes; then : 12184 ac_cv_func_malloc_0_nonnull=no 12185else 12186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12187/* end confdefs.h. */ 12188#if defined STDC_HEADERS || defined HAVE_STDLIB_H 12189# include <stdlib.h> 12190#else 12191char *malloc (); 12192#endif 12193 12194int 12195main () 12196{ 12197return ! malloc (0); 12198 ; 12199 return 0; 12200} 12201_ACEOF 12202if ac_fn_c_try_run "$LINENO"; then : 12203 ac_cv_func_malloc_0_nonnull=yes 12204else 12205 ac_cv_func_malloc_0_nonnull=no 12206fi 12207rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12208 conftest.$ac_objext conftest.beam conftest.$ac_ext 12209fi 12210 12211fi 12212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 12213$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } 12214if test $ac_cv_func_malloc_0_nonnull = yes; then : 12215 12216$as_echo "#define HAVE_MALLOC 1" >>confdefs.h 12217 12218else 12219 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h 12220 12221 case " $LIBOBJS " in 12222 *" malloc.$ac_objext "* ) ;; 12223 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 12224 ;; 12225esac 12226 12227 12228$as_echo "#define malloc rpl_malloc" >>confdefs.h 12229 12230fi 12231 12232 12233 12234 12235 12236 : 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 if test x$ac_cv_header_wchar_h = xyes && test x$ac_cv_header_wctype_h = xyes; then 12247 case " $LIBOBJS " in 12248 *" mbchar.$ac_objext "* ) ;; 12249 *) LIBOBJS="$LIBOBJS mbchar.$ac_objext" 12250 ;; 12251esac 12252 12253 fi 12254 12255 12256 : 12257 12258 12259 12260 : 12261 12262 12263 12264 case " $LIBOBJS " in 12265 *" md5.$ac_objext "* ) ;; 12266 *) LIBOBJS="$LIBOBJS md5.$ac_objext" 12267 ;; 12268esac 12269 12270 12271 12272 12273 12274 : 12275 12276 12277 for ac_func in memchr 12278do : 12279 ac_fn_c_check_func "$LINENO" "memchr" "ac_cv_func_memchr" 12280if test "x$ac_cv_func_memchr" = x""yes; then : 12281 cat >>confdefs.h <<_ACEOF 12282#define HAVE_MEMCHR 1 12283_ACEOF 12284 12285else 12286 case " $LIBOBJS " in 12287 *" $ac_func.$ac_objext "* ) ;; 12288 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 12289 ;; 12290esac 12291 12292fi 12293done 12294 12295 12296 if test $ac_cv_func_memchr = no; then 12297 12298 for ac_header in bp-sym.h 12299do : 12300 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default" 12301if test "x$ac_cv_header_bp_sym_h" = x""yes; then : 12302 cat >>confdefs.h <<_ACEOF 12303#define HAVE_BP_SYM_H 1 12304_ACEOF 12305 12306fi 12307 12308done 12309 12310 12311 fi 12312 12313 12314 for ac_func in memmove 12315do : 12316 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" 12317if test "x$ac_cv_func_memmove" = x""yes; then : 12318 cat >>confdefs.h <<_ACEOF 12319#define HAVE_MEMMOVE 1 12320_ACEOF 12321 12322else 12323 case " $LIBOBJS " in 12324 *" $ac_func.$ac_objext "* ) ;; 12325 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 12326 ;; 12327esac 12328 12329fi 12330done 12331 12332 12333 if test $ac_cv_func_memmove = no; then 12334 12335 : 12336 12337 fi 12338 12339 12340 12341 12342 12343 12344 for ac_func in mempcpy 12345do : 12346 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy" 12347if test "x$ac_cv_func_mempcpy" = x""yes; then : 12348 cat >>confdefs.h <<_ACEOF 12349#define HAVE_MEMPCPY 1 12350_ACEOF 12351 12352else 12353 case " $LIBOBJS " in 12354 *" $ac_func.$ac_objext "* ) ;; 12355 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 12356 ;; 12357esac 12358 12359fi 12360done 12361 12362 12363 if test $ac_cv_func_mempcpy = no; then 12364 12365 : 12366 12367 fi 12368 12369 12370 12371 12372 12373 12374 12375 : 12376 12377 12378 12379 12380 12381 12382 for ac_func in memrchr 12383do : 12384 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr" 12385if test "x$ac_cv_func_memrchr" = x""yes; then : 12386 cat >>confdefs.h <<_ACEOF 12387#define HAVE_MEMRCHR 1 12388_ACEOF 12389 12390else 12391 case " $LIBOBJS " in 12392 *" $ac_func.$ac_objext "* ) ;; 12393 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 12394 ;; 12395esac 12396 12397fi 12398done 12399 12400 12401 if test $ac_cv_func_memrchr = no; then 12402 : 12403 fi 12404 12405 12406 12407 12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir fails due to a trailing slash" >&5 12409$as_echo_n "checking whether mkdir fails due to a trailing slash... " >&6; } 12410if test "${gl_cv_func_mkdir_trailing_slash_bug+set}" = set; then : 12411 $as_echo_n "(cached) " >&6 12412else 12413 12414 # Arrange for deletion of the temporary directory this test might create. 12415 ac_clean_files="$ac_clean_files confdir-slash" 12416 if test "$cross_compiling" = yes; then : 12417 gl_cv_func_mkdir_trailing_slash_bug=yes 12418 12419else 12420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12421/* end confdefs.h. */ 12422 12423# include <sys/types.h> 12424# include <sys/stat.h> 12425# include <stdlib.h> 12426 int main () 12427 { 12428 rmdir ("confdir-slash"); 12429 exit (mkdir ("confdir-slash/", 0700)); 12430 } 12431 12432_ACEOF 12433if ac_fn_c_try_run "$LINENO"; then : 12434 gl_cv_func_mkdir_trailing_slash_bug=no 12435else 12436 gl_cv_func_mkdir_trailing_slash_bug=yes 12437fi 12438rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12439 conftest.$ac_objext conftest.beam conftest.$ac_ext 12440fi 12441 12442 12443 12444fi 12445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_slash_bug" >&5 12446$as_echo "$gl_cv_func_mkdir_trailing_slash_bug" >&6; } 12447 12448 if test $gl_cv_func_mkdir_trailing_slash_bug = yes; then 12449 case " $LIBOBJS " in 12450 *" mkdir.$ac_objext "* ) ;; 12451 *) LIBOBJS="$LIBOBJS mkdir.$ac_objext" 12452 ;; 12453esac 12454 12455 12456$as_echo "#define mkdir rpl_mkdir" >>confdefs.h 12457 12458 : 12459 fi 12460 12461 for ac_func in mkstemp 12462do : 12463 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 12464if test "x$ac_cv_func_mkstemp" = x""yes; then : 12465 cat >>confdefs.h <<_ACEOF 12466#define HAVE_MKSTEMP 1 12467_ACEOF 12468 12469else 12470 case " $LIBOBJS " in 12471 *" $ac_func.$ac_objext "* ) ;; 12472 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 12473 ;; 12474esac 12475 12476fi 12477done 12478 12479 12480 if test $ac_cv_func_mkstemp = no; then 12481 gl_cv_func_mkstemp_limitations=yes 12482 else 12483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mkstemp limitations" >&5 12484$as_echo_n "checking for mkstemp limitations... " >&6; } 12485if test "${gl_cv_func_mkstemp_limitations+set}" = set; then : 12486 $as_echo_n "(cached) " >&6 12487else 12488 12489 mkdir conftest.mkstemp 12490 if test "$cross_compiling" = yes; then : 12491 gl_cv_func_mkstemp_limitations=yes 12492 12493else 12494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12495/* end confdefs.h. */ 12496 12497# include <stdlib.h> 12498# include <unistd.h> 12499 int main () 12500 { 12501 int i; 12502 for (i = 0; i < 70; i++) 12503 { 12504 char template[] = "conftest.mkstemp/coXXXXXX"; 12505 int fd = mkstemp (template); 12506 if (fd == -1) 12507 exit (1); 12508 close (fd); 12509 } 12510 exit (0); 12511 } 12512 12513_ACEOF 12514if ac_fn_c_try_run "$LINENO"; then : 12515 gl_cv_func_mkstemp_limitations=no 12516else 12517 gl_cv_func_mkstemp_limitations=yes 12518fi 12519rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12520 conftest.$ac_objext conftest.beam conftest.$ac_ext 12521fi 12522 12523 rm -rf conftest.mkstemp 12524 12525 12526fi 12527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkstemp_limitations" >&5 12528$as_echo "$gl_cv_func_mkstemp_limitations" >&6; } 12529 fi 12530 12531 if test $gl_cv_func_mkstemp_limitations = yes; then 12532 case " $LIBOBJS " in 12533 *" mkstemp.$ac_objext "* ) ;; 12534 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" 12535 ;; 12536esac 12537 12538 case " $LIBOBJS " in 12539 *" tempname.$ac_objext "* ) ;; 12540 *) LIBOBJS="$LIBOBJS tempname.$ac_objext" 12541 ;; 12542esac 12543 12544 12545$as_echo "#define mkstemp rpl_mkstemp" >>confdefs.h 12546 12547 12548 12549 12550 12551 : 12552 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 for ac_func in __secure_getenv gettimeofday 12564do : 12565 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12566ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12567eval as_val=\$$as_ac_var 12568 if test "x$as_val" = x""yes; then : 12569 cat >>confdefs.h <<_ACEOF 12570#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12571_ACEOF 12572 12573fi 12574done 12575 12576 12577 : 12578 12579 12580 12581 12582 12583 12584 12585 fi 12586 12587 12588 12589 if test $ac_cv_func_working_mktime = no; then 12590 12591$as_echo "#define mktime rpl_mktime" >>confdefs.h 12592 12593 : 12594 fi 12595 12596 12597 12598 12599 nanosleep_save_libs=$LIBS 12600 12601 # Solaris 2.5.1 needs -lposix4 to get the nanosleep function. 12602 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4. 12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5 12604$as_echo_n "checking for library containing nanosleep... " >&6; } 12605if test "${ac_cv_search_nanosleep+set}" = set; then : 12606 $as_echo_n "(cached) " >&6 12607else 12608 ac_func_search_save_LIBS=$LIBS 12609cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12610/* end confdefs.h. */ 12611 12612/* Override any GCC internal prototype to avoid an error. 12613 Use char because int might match the return type of a GCC 12614 builtin and then its argument prototype would still apply. */ 12615#ifdef __cplusplus 12616extern "C" 12617#endif 12618char nanosleep (); 12619int 12620main () 12621{ 12622return nanosleep (); 12623 ; 12624 return 0; 12625} 12626_ACEOF 12627for ac_lib in '' rt posix4; do 12628 if test -z "$ac_lib"; then 12629 ac_res="none required" 12630 else 12631 ac_res=-l$ac_lib 12632 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12633 fi 12634 if ac_fn_c_try_link "$LINENO"; then : 12635 ac_cv_search_nanosleep=$ac_res 12636fi 12637rm -f core conftest.err conftest.$ac_objext \ 12638 conftest$ac_exeext 12639 if test "${ac_cv_search_nanosleep+set}" = set; then : 12640 break 12641fi 12642done 12643if test "${ac_cv_search_nanosleep+set}" = set; then : 12644 12645else 12646 ac_cv_search_nanosleep=no 12647fi 12648rm conftest.$ac_ext 12649LIBS=$ac_func_search_save_LIBS 12650fi 12651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5 12652$as_echo "$ac_cv_search_nanosleep" >&6; } 12653ac_res=$ac_cv_search_nanosleep 12654if test "$ac_res" != no; then : 12655 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12656 test "$ac_cv_search_nanosleep" = "none required" || 12657 LIB_NANOSLEEP=$ac_cv_search_nanosleep 12658fi 12659 12660 12661 12662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nanosleep works" >&5 12663$as_echo_n "checking whether nanosleep works... " >&6; } 12664if test "${jm_cv_func_nanosleep_works+set}" = set; then : 12665 $as_echo_n "(cached) " >&6 12666else 12667 12668 12669 12670 : 12671 12672 12673 12674 12675 12676 if test "$cross_compiling" = yes; then : 12677 jm_cv_func_nanosleep_works=no 12678else 12679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12680/* end confdefs.h. */ 12681 12682# if TIME_WITH_SYS_TIME 12683# include <sys/time.h> 12684# include <time.h> 12685# else 12686# if HAVE_SYS_TIME_H 12687# include <sys/time.h> 12688# else 12689# include <time.h> 12690# endif 12691# endif 12692 12693 int 12694 main () 12695 { 12696 struct timespec ts_sleep, ts_remaining; 12697 ts_sleep.tv_sec = 0; 12698 ts_sleep.tv_nsec = 1; 12699 exit (nanosleep (&ts_sleep, &ts_remaining) == 0 ? 0 : 1); 12700 } 12701 12702_ACEOF 12703if ac_fn_c_try_run "$LINENO"; then : 12704 jm_cv_func_nanosleep_works=yes 12705else 12706 jm_cv_func_nanosleep_works=no 12707fi 12708rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12709 conftest.$ac_objext conftest.beam conftest.$ac_ext 12710fi 12711 12712 12713fi 12714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_cv_func_nanosleep_works" >&5 12715$as_echo "$jm_cv_func_nanosleep_works" >&6; } 12716 if test $jm_cv_func_nanosleep_works = no; then 12717 case " $LIBOBJS " in 12718 *" nanosleep.$ac_objext "* ) ;; 12719 *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext" 12720 ;; 12721esac 12722 12723 12724$as_echo "#define nanosleep rpl_nanosleep" >>confdefs.h 12725 12726 12727 12728 : 12729 12730 12731 12732 12733 12734 12735 : 12736 12737 12738 12739 12740 12741 12742 fi 12743 12744 LIBS=$nanosleep_save_libs 12745 12746 12747 12748 12749 for ac_func in openat 12750do : 12751 ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat" 12752if test "x$ac_cv_func_openat" = x""yes; then : 12753 cat >>confdefs.h <<_ACEOF 12754#define HAVE_OPENAT 1 12755_ACEOF 12756 12757else 12758 case " $LIBOBJS " in 12759 *" $ac_func.$ac_objext "* ) ;; 12760 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 12761 ;; 12762esac 12763 12764fi 12765done 12766 12767 12768 case $ac_cv_func_openat in 12769 yes) ;; 12770 *) 12771 12772$as_echo "#define __OPENAT_PREFIX rpl_" >>confdefs.h 12773 12774 12775 12776;; 12777 esac 12778 12779 12780 12781 12782 12783 case " $LIBOBJS " in 12784 *" pagealign_alloc.$ac_objext "* ) ;; 12785 *) LIBOBJS="$LIBOBJS pagealign_alloc.$ac_objext" 12786 ;; 12787esac 12788 12789 12790 12791 12792 12793 : 12794 12795 12796 12797 12798 12799 12800 : 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 : 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 case " $LIBOBJS " in 12825 *" quotearg.$ac_objext "* ) ;; 12826 *) LIBOBJS="$LIBOBJS quotearg.$ac_objext" 12827 ;; 12828esac 12829 12830 12831 12832 : 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 : 12843 12844 12845 12846 12847 12848 12849 12850 12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 12852$as_echo_n "checking for mbstate_t... " >&6; } 12853if test "${ac_cv_type_mbstate_t+set}" = set; then : 12854 $as_echo_n "(cached) " >&6 12855else 12856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12857/* end confdefs.h. */ 12858$ac_includes_default 12859# include <wchar.h> 12860int 12861main () 12862{ 12863mbstate_t x; return sizeof x; 12864 ; 12865 return 0; 12866} 12867_ACEOF 12868if ac_fn_c_try_compile "$LINENO"; then : 12869 ac_cv_type_mbstate_t=yes 12870else 12871 ac_cv_type_mbstate_t=no 12872fi 12873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12874fi 12875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 12876$as_echo "$ac_cv_type_mbstate_t" >&6; } 12877 if test $ac_cv_type_mbstate_t = yes; then 12878 12879$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h 12880 12881 else 12882 12883$as_echo "#define mbstate_t int" >>confdefs.h 12884 12885 fi 12886 12887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5 12888$as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; } 12889if test "${gl_cv_func_mbrtowc+set}" = set; then : 12890 $as_echo_n "(cached) " >&6 12891else 12892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12893/* end confdefs.h. */ 12894#include <wchar.h> 12895int 12896main () 12897{ 12898wchar_t wc; 12899 char const s[] = ""; 12900 size_t n = 1; 12901 mbstate_t state; 12902 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state)); 12903 ; 12904 return 0; 12905} 12906_ACEOF 12907if ac_fn_c_try_link "$LINENO"; then : 12908 gl_cv_func_mbrtowc=yes 12909else 12910 gl_cv_func_mbrtowc=no 12911fi 12912rm -f core conftest.err conftest.$ac_objext \ 12913 conftest$ac_exeext conftest.$ac_ext 12914fi 12915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc" >&5 12916$as_echo "$gl_cv_func_mbrtowc" >&6; } 12917 if test $gl_cv_func_mbrtowc = yes; then 12918 12919$as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h 12920 12921 fi 12922 12923 12924 12925 for ac_func in readlink 12926do : 12927 ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink" 12928if test "x$ac_cv_func_readlink" = x""yes; then : 12929 cat >>confdefs.h <<_ACEOF 12930#define HAVE_READLINK 1 12931_ACEOF 12932 12933fi 12934done 12935 12936 if test $ac_cv_func_readlink = no; then 12937 case " $LIBOBJS " in 12938 *" readlink.$ac_objext "* ) ;; 12939 *) LIBOBJS="$LIBOBJS readlink.$ac_objext" 12940 ;; 12941esac 12942 12943 12944 : 12945 12946 fi 12947 12948 for ac_header in stdlib.h 12949do : 12950 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 12951if test "x$ac_cv_header_stdlib_h" = x""yes; then : 12952 cat >>confdefs.h <<_ACEOF 12953#define HAVE_STDLIB_H 1 12954_ACEOF 12955 12956fi 12957 12958done 12959 12960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 12961$as_echo_n "checking for GNU libc compatible realloc... " >&6; } 12962if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then : 12963 $as_echo_n "(cached) " >&6 12964else 12965 if test "$cross_compiling" = yes; then : 12966 ac_cv_func_realloc_0_nonnull=no 12967else 12968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12969/* end confdefs.h. */ 12970#if defined STDC_HEADERS || defined HAVE_STDLIB_H 12971# include <stdlib.h> 12972#else 12973char *realloc (); 12974#endif 12975 12976int 12977main () 12978{ 12979return ! realloc (0, 0); 12980 ; 12981 return 0; 12982} 12983_ACEOF 12984if ac_fn_c_try_run "$LINENO"; then : 12985 ac_cv_func_realloc_0_nonnull=yes 12986else 12987 ac_cv_func_realloc_0_nonnull=no 12988fi 12989rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12990 conftest.$ac_objext conftest.beam conftest.$ac_ext 12991fi 12992 12993fi 12994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 12995$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } 12996if test $ac_cv_func_realloc_0_nonnull = yes; then : 12997 12998$as_echo "#define HAVE_REALLOC 1" >>confdefs.h 12999 13000else 13001 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h 13002 13003 case " $LIBOBJS " in 13004 *" realloc.$ac_objext "* ) ;; 13005 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" 13006 ;; 13007esac 13008 13009 13010$as_echo "#define realloc rpl_realloc" >>confdefs.h 13011 13012fi 13013 13014 13015 13016 13017$as_echo "#define _REGEX_LARGE_OFFSETS 1" >>confdefs.h 13018 13019 13020 13021 13022 13023# Check whether --with-included-regex was given. 13024if test "${with_included_regex+set}" = set; then : 13025 withval=$with_included_regex; 13026fi 13027 13028 13029 case $with_included_regex in 13030 yes|no) ac_use_included_regex=$with_included_regex 13031 ;; 13032 '') 13033 # If the system regex support is good enough that it passes the the 13034 # following run test, then default to *not* using the included regex.c. 13035 # If cross compiling, assume the test would fail and use the included 13036 # regex.c. The first failing regular expression is from `Spencer ere 13037 # test #75' in grep-2.3. 13038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working re_compile_pattern" >&5 13039$as_echo_n "checking for working re_compile_pattern... " >&6; } 13040if test "${gl_cv_func_re_compile_pattern_broken+set}" = set; then : 13041 $as_echo_n "(cached) " >&6 13042else 13043 if test "$cross_compiling" = yes; then : 13044 gl_cv_func_re_compile_pattern_broken=yes 13045else 13046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13047/* end confdefs.h. */ 13048$ac_includes_default 13049 #include <regex.h> 13050int 13051main () 13052{ 13053static struct re_pattern_buffer regex; 13054 const char *s; 13055 struct re_registers regs; 13056 /* Use the POSIX-compliant spelling with leading REG_, 13057 rather than the traditional GNU spelling with leading RE_, 13058 so that we reject older libc implementations. */ 13059 re_set_syntax (REG_SYNTAX_POSIX_EGREP); 13060 memset (®ex, 0, sizeof (regex)); 13061 s = re_compile_pattern ("a[:]:]b\n", 9, ®ex); 13062 /* This should fail with _Invalid character class name_ error. */ 13063 if (!s) 13064 exit (1); 13065 13066 /* This should succeed, but does not for e.g. glibc-2.1.3. */ 13067 memset (®ex, 0, sizeof (regex)); 13068 s = re_compile_pattern ("{1", 2, ®ex); 13069 13070 if (s) 13071 exit (1); 13072 13073 /* The following example is derived from a problem report 13074 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */ 13075 memset (®ex, 0, sizeof (regex)); 13076 s = re_compile_pattern ("[an\371]*n", 7, ®ex); 13077 if (s) 13078 exit (1); 13079 13080 /* This should match, but does not for e.g. glibc-2.2.1. */ 13081 if (re_match (®ex, "an", 2, 0, ®s) != 2) 13082 exit (1); 13083 13084 memset (®ex, 0, sizeof (regex)); 13085 s = re_compile_pattern ("x", 1, ®ex); 13086 if (s) 13087 exit (1); 13088 13089 /* The version of regex.c in e.g. GNU libc-2.2.93 did not 13090 work with a negative RANGE argument. */ 13091 if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1) 13092 exit (1); 13093 13094 /* The version of regex.c in older versions of gnulib 13095 ignored REG_IGNORE_CASE (which was then called RE_ICASE). 13096 Detect that problem too. */ 13097 memset (®ex, 0, sizeof (regex)); 13098 re_set_syntax (REG_SYNTAX_EMACS | REG_IGNORE_CASE); 13099 s = re_compile_pattern ("x", 1, ®ex); 13100 if (s) 13101 exit (1); 13102 13103 if (re_search (®ex, "WXY", 3, 0, 3, ®s) < 0) 13104 exit (1); 13105 13106 /* REG_STARTEND was added to glibc on 2004-01-15. 13107 Reject older versions. */ 13108 if (! REG_STARTEND) 13109 exit (1); 13110 13111 /* Reject hosts whose regoff_t values are too narrow. 13112 These include glibc 2.3.5 on hosts with 64-bit off_t 13113 and 32-bit int, and Solaris 10 on hosts with 32-bit int 13114 and _FILE_OFFSET_BITS=64. */ 13115 if (sizeof (regoff_t) < sizeof (off_t)) 13116 exit (1); 13117 13118 exit (0); 13119 ; 13120 return 0; 13121} 13122_ACEOF 13123if ac_fn_c_try_run "$LINENO"; then : 13124 gl_cv_func_re_compile_pattern_broken=no 13125else 13126 gl_cv_func_re_compile_pattern_broken=yes 13127fi 13128rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13129 conftest.$ac_objext conftest.beam conftest.$ac_ext 13130fi 13131 13132fi 13133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_re_compile_pattern_broken" >&5 13134$as_echo "$gl_cv_func_re_compile_pattern_broken" >&6; } 13135 ac_use_included_regex=$gl_cv_func_re_compile_pattern_broken 13136 ;; 13137 *) as_fn_error "Invalid value for --with-included-regex: $with_included_regex" "$LINENO" 5 13138 ;; 13139 esac 13140 13141 if test $ac_use_included_regex = yes; then 13142 case " $LIBOBJS " in 13143 *" regex.$ac_objext "* ) ;; 13144 *) LIBOBJS="$LIBOBJS regex.$ac_objext" 13145 ;; 13146esac 13147 13148 13149 13150 13151 13152 13153 : 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 : 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 fi 13186 13187 13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename is broken" >&5 13189$as_echo_n "checking whether rename is broken... " >&6; } 13190if test "${vb_cv_func_rename_trailing_slash_bug+set}" = set; then : 13191 $as_echo_n "(cached) " >&6 13192else 13193 13194 rm -rf conftest.d1 conftest.d2 13195 mkdir conftest.d1 || 13196 as_fn_error "cannot create temporary directory" "$LINENO" 5 13197 if test "$cross_compiling" = yes; then : 13198 vb_cv_func_rename_trailing_slash_bug=yes 13199else 13200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13201/* end confdefs.h. */ 13202 13203# include <stdio.h> 13204 int 13205 main () 13206 { 13207 exit (rename ("conftest.d1/", "conftest.d2") ? 1 : 0); 13208 } 13209 13210_ACEOF 13211if ac_fn_c_try_run "$LINENO"; then : 13212 vb_cv_func_rename_trailing_slash_bug=no 13213else 13214 vb_cv_func_rename_trailing_slash_bug=yes 13215fi 13216rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13217 conftest.$ac_objext conftest.beam conftest.$ac_ext 13218fi 13219 13220 13221 rm -rf conftest.d1 conftest.d2 13222 13223fi 13224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vb_cv_func_rename_trailing_slash_bug" >&5 13225$as_echo "$vb_cv_func_rename_trailing_slash_bug" >&6; } 13226 if test $vb_cv_func_rename_trailing_slash_bug = yes; then 13227 case " $LIBOBJS " in 13228 *" rename.$ac_objext "* ) ;; 13229 *) LIBOBJS="$LIBOBJS rename.$ac_objext" 13230 ;; 13231esac 13232 13233 13234$as_echo "#define rename rpl_rename" >>confdefs.h 13235 13236 13237$as_echo "#define RENAME_TRAILING_SLASH_BUG 1" >>confdefs.h 13238 13239 : 13240 fi 13241 13242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 13243$as_echo_n "checking for C/C++ restrict keyword... " >&6; } 13244if test "${gl_cv_c_restrict+set}" = set; then : 13245 $as_echo_n "(cached) " >&6 13246else 13247 gl_cv_c_restrict=no 13248 # Try the official restrict keyword, then gcc's __restrict, and 13249 # the less common variants. 13250 for ac_kw in restrict __restrict __restrict__ _Restrict; do 13251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13252/* end confdefs.h. */ 13253float * $ac_kw x; 13254_ACEOF 13255if ac_fn_c_try_compile "$LINENO"; then : 13256 gl_cv_c_restrict=$ac_kw; break 13257fi 13258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13259 done 13260 13261fi 13262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_restrict" >&5 13263$as_echo "$gl_cv_c_restrict" >&6; } 13264 case $gl_cv_c_restrict in 13265 restrict) ;; 13266 no) 13267$as_echo "#define restrict /**/" >>confdefs.h 13268 ;; 13269 *) cat >>confdefs.h <<_ACEOF 13270#define restrict $gl_cv_c_restrict 13271_ACEOF 13272 ;; 13273 esac 13274 13275 13276 for ac_func in rpmatch 13277do : 13278 ac_fn_c_check_func "$LINENO" "rpmatch" "ac_cv_func_rpmatch" 13279if test "x$ac_cv_func_rpmatch" = x""yes; then : 13280 cat >>confdefs.h <<_ACEOF 13281#define HAVE_RPMATCH 1 13282_ACEOF 13283 13284else 13285 case " $LIBOBJS " in 13286 *" $ac_func.$ac_objext "* ) ;; 13287 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 13288 ;; 13289esac 13290 13291fi 13292done 13293 13294 13295 if test $ac_cv_func_rpmatch = no; then 13296 : 13297 fi 13298 13299 13300 13301 case " $LIBOBJS " in 13302 *" save-cwd.$ac_objext "* ) ;; 13303 *) LIBOBJS="$LIBOBJS save-cwd.$ac_objext" 13304 ;; 13305esac 13306 13307 13308 : 13309 13310 13311 13312 13313 13314 13315 : 13316 13317 13318 13319 13320 13321 13322 13323 for ac_func in setenv unsetenv 13324do : 13325 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13326ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13327eval as_val=\$$as_ac_var 13328 if test "x$as_val" = x""yes; then : 13329 cat >>confdefs.h <<_ACEOF 13330#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13331_ACEOF 13332 13333else 13334 case " $LIBOBJS " in 13335 *" $ac_func.$ac_objext "* ) ;; 13336 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 13337 ;; 13338esac 13339 13340fi 13341done 13342 13343 13344 if test $ac_cv_func_setenv = no; then 13345 13346 13347 13348 : 13349 13350 13351 13352 13353 13354 for ac_header in search.h 13355do : 13356 ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default" 13357if test "x$ac_cv_header_search_h" = x""yes; then : 13358 cat >>confdefs.h <<_ACEOF 13359#define HAVE_SEARCH_H 1 13360_ACEOF 13361 13362fi 13363 13364done 13365 13366 for ac_func in tsearch 13367do : 13368 ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch" 13369if test "x$ac_cv_func_tsearch" = x""yes; then : 13370 cat >>confdefs.h <<_ACEOF 13371#define HAVE_TSEARCH 1 13372_ACEOF 13373 13374fi 13375done 13376 13377 13378 13379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if errno is properly declared" >&5 13380$as_echo_n "checking if errno is properly declared... " >&6; } 13381 if test "${gt_cv_var_errno_declaration+set}" = set; then : 13382 $as_echo_n "(cached) " >&6 13383else 13384 13385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13386/* end confdefs.h. */ 13387#include <errno.h> 13388 extern struct { int foo; } errno; 13389int 13390main () 13391{ 13392errno.foo = 1; 13393 ; 13394 return 0; 13395} 13396_ACEOF 13397if ac_fn_c_try_compile "$LINENO"; then : 13398 gt_cv_var_errno_declaration=no 13399else 13400 gt_cv_var_errno_declaration=yes 13401fi 13402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13403fi 13404 13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_errno_declaration" >&5 13406$as_echo "$gt_cv_var_errno_declaration" >&6; } 13407 if test $gt_cv_var_errno_declaration = yes; then 13408 13409$as_echo "#define HAVE_ERRNO_DECL 1" >>confdefs.h 13410 13411 fi 13412 13413 13414 13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5 13416$as_echo_n "checking if environ is properly declared... " >&6; } 13417 if test "${gt_cv_var_environ_declaration+set}" = set; then : 13418 $as_echo_n "(cached) " >&6 13419else 13420 13421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13422/* end confdefs.h. */ 13423#include <unistd.h> 13424 extern struct { int foo; } environ; 13425int 13426main () 13427{ 13428environ.foo = 1; 13429 ; 13430 return 0; 13431} 13432_ACEOF 13433if ac_fn_c_try_compile "$LINENO"; then : 13434 gt_cv_var_environ_declaration=no 13435else 13436 gt_cv_var_environ_declaration=yes 13437fi 13438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13439fi 13440 13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5 13442$as_echo "$gt_cv_var_environ_declaration" >&6; } 13443 if test $gt_cv_var_environ_declaration = yes; then 13444 13445$as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h 13446 13447 fi 13448 13449 13450 fi 13451 if test $ac_cv_func_unsetenv = no; then 13452 13453 13454 : 13455 13456 13457 13458 13459 13460 13461 13462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if errno is properly declared" >&5 13463$as_echo_n "checking if errno is properly declared... " >&6; } 13464 if test "${gt_cv_var_errno_declaration+set}" = set; then : 13465 $as_echo_n "(cached) " >&6 13466else 13467 13468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13469/* end confdefs.h. */ 13470#include <errno.h> 13471 extern struct { int foo; } errno; 13472int 13473main () 13474{ 13475errno.foo = 1; 13476 ; 13477 return 0; 13478} 13479_ACEOF 13480if ac_fn_c_try_compile "$LINENO"; then : 13481 gt_cv_var_errno_declaration=no 13482else 13483 gt_cv_var_errno_declaration=yes 13484fi 13485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13486fi 13487 13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_errno_declaration" >&5 13489$as_echo "$gt_cv_var_errno_declaration" >&6; } 13490 if test $gt_cv_var_errno_declaration = yes; then 13491 13492$as_echo "#define HAVE_ERRNO_DECL 1" >>confdefs.h 13493 13494 fi 13495 13496 13497 13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5 13499$as_echo_n "checking if environ is properly declared... " >&6; } 13500 if test "${gt_cv_var_environ_declaration+set}" = set; then : 13501 $as_echo_n "(cached) " >&6 13502else 13503 13504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13505/* end confdefs.h. */ 13506#include <unistd.h> 13507 extern struct { int foo; } environ; 13508int 13509main () 13510{ 13511environ.foo = 1; 13512 ; 13513 return 0; 13514} 13515_ACEOF 13516if ac_fn_c_try_compile "$LINENO"; then : 13517 gt_cv_var_environ_declaration=no 13518else 13519 gt_cv_var_environ_declaration=yes 13520fi 13521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13522fi 13523 13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5 13525$as_echo "$gt_cv_var_environ_declaration" >&6; } 13526 if test $gt_cv_var_environ_declaration = yes; then 13527 13528$as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h 13529 13530 fi 13531 13532 13533 else 13534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5 13535$as_echo_n "checking for unsetenv() return type... " >&6; } 13536if test "${gt_cv_func_unsetenv_ret+set}" = set; then : 13537 $as_echo_n "(cached) " >&6 13538else 13539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13540/* end confdefs.h. */ 13541#include <stdlib.h> 13542extern 13543#ifdef __cplusplus 13544"C" 13545#endif 13546#if defined(__STDC__) || defined(__cplusplus) 13547int unsetenv (const char *name); 13548#else 13549int unsetenv(); 13550#endif 13551 13552int 13553main () 13554{ 13555 13556 ; 13557 return 0; 13558} 13559_ACEOF 13560if ac_fn_c_try_compile "$LINENO"; then : 13561 gt_cv_func_unsetenv_ret='int' 13562else 13563 gt_cv_func_unsetenv_ret='void' 13564fi 13565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13566fi 13567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5 13568$as_echo "$gt_cv_func_unsetenv_ret" >&6; } 13569 if test $gt_cv_func_unsetenv_ret = 'void'; then 13570 13571$as_echo "#define VOID_UNSETENV 1" >>confdefs.h 13572 13573 fi 13574 fi 13575 13576 13577 for ac_header in stdint.h 13578do : 13579 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 13580if test "x$ac_cv_header_stdint_h" = x""yes; then : 13581 cat >>confdefs.h <<_ACEOF 13582#define HAVE_STDINT_H 1 13583_ACEOF 13584 13585fi 13586 13587done 13588 13589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5 13590$as_echo_n "checking for SIZE_MAX... " >&6; } 13591 result= 13592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13593/* end confdefs.h. */ 13594 13595#include <limits.h> 13596#if HAVE_STDINT_H 13597#include <stdint.h> 13598#endif 13599#ifdef SIZE_MAX 13600Found it 13601#endif 13602 13603_ACEOF 13604if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13605 $EGREP "Found it" >/dev/null 2>&1; then : 13606 result=yes 13607fi 13608rm -f conftest* 13609 13610 if test -z "$result"; then 13611 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then : 13612 13613else 13614 result=? 13615fi 13616 13617 13618 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then : 13619 13620else 13621 result=? 13622fi 13623 13624 13625 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then : 13626 13627else 13628 result=? 13629fi 13630 13631 13632 if test "$fits_in_uint" = 1; then 13633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13634/* end confdefs.h. */ 13635#include <stddef.h> 13636 extern size_t foo; 13637 extern unsigned long foo; 13638 13639int 13640main () 13641{ 13642 13643 ; 13644 return 0; 13645} 13646_ACEOF 13647if ac_fn_c_try_compile "$LINENO"; then : 13648 fits_in_uint=0 13649fi 13650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13651 fi 13652 if test -z "$result"; then 13653 if test "$fits_in_uint" = 1; then 13654 result="$res_hi$res_lo"U 13655 else 13656 result="$res_hi$res_lo"UL 13657 fi 13658 else 13659 result='~(size_t)0' 13660 fi 13661 fi 13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 13663$as_echo "$result" >&6; } 13664 if test "$result" != yes; then 13665 13666cat >>confdefs.h <<_ACEOF 13667#define SIZE_MAX $result 13668_ACEOF 13669 13670 fi 13671 13672 13673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 13674$as_echo_n "checking for ssize_t... " >&6; } 13675if test "${gt_cv_ssize_t+set}" = set; then : 13676 $as_echo_n "(cached) " >&6 13677else 13678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13679/* end confdefs.h. */ 13680#include <sys/types.h> 13681int 13682main () 13683{ 13684int x = sizeof (ssize_t *) + sizeof (ssize_t); 13685 ; 13686 return 0; 13687} 13688_ACEOF 13689if ac_fn_c_try_compile "$LINENO"; then : 13690 gt_cv_ssize_t=yes 13691else 13692 gt_cv_ssize_t=no 13693fi 13694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13695fi 13696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5 13697$as_echo "$gt_cv_ssize_t" >&6; } 13698 if test $gt_cv_ssize_t = no; then 13699 13700$as_echo "#define ssize_t int" >>confdefs.h 13701 13702 fi 13703 13704 13705 13706 13707 13708 13709 13710 13711 13712 # Define two additional variables used in the Makefile substitution. 13713 13714 if test "$ac_cv_header_stdbool_h" = yes; then 13715 STDBOOL_H='' 13716 else 13717 STDBOOL_H='stdbool.h' 13718 fi 13719 13720 13721 if test "$ac_cv_type__Bool" = yes; then 13722 HAVE__BOOL=1 13723 else 13724 HAVE__BOOL=0 13725 fi 13726 13727 13728 13729for ac_header in sys/inttypes.h 13730do : 13731 ac_fn_c_check_header_mongrel "$LINENO" "sys/inttypes.h" "ac_cv_header_sys_inttypes_h" "$ac_includes_default" 13732if test "x$ac_cv_header_sys_inttypes_h" = x""yes; then : 13733 cat >>confdefs.h <<_ACEOF 13734#define HAVE_SYS_INTTYPES_H 1 13735_ACEOF 13736 13737fi 13738 13739done 13740 13741 13742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 13743$as_echo_n "checking for stdint.h... " >&6; } 13744if test "${gl_cv_header_stdint_h+set}" = set; then : 13745 $as_echo_n "(cached) " >&6 13746else 13747 13748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13749/* end confdefs.h. */ 13750#include <stdint.h> 13751int 13752main () 13753{ 13754 13755 ; 13756 return 0; 13757} 13758_ACEOF 13759if ac_fn_c_try_compile "$LINENO"; then : 13760 gl_cv_header_stdint_h=yes 13761else 13762 gl_cv_header_stdint_h=no 13763fi 13764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13765fi 13766 13767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5 13768$as_echo "$gl_cv_header_stdint_h" >&6; } 13769if test $gl_cv_header_stdint_h = yes; then 13770 13771$as_echo "#define HAVE_STDINT_H 1" >>confdefs.h 13772 13773 STDINT_H='' 13774else 13775 STDINT_H='stdint.h' 13776 13777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'long' is 64 bit wide" >&5 13778$as_echo_n "checking whether 'long' is 64 bit wide... " >&6; } 13779if test "${gl_cv_long_bitsize_64+set}" = set; then : 13780 $as_echo_n "(cached) " >&6 13781else 13782 13783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13784/* end confdefs.h. */ 13785 13786#define POW63 ((((((long) 1 << 15) << 15) << 15) << 15) << 3) 13787#define POW64 ((((((long) 1 << 15) << 15) << 15) << 15) << 4) 13788typedef int array [2 * (POW63 != 0 && POW64 == 0) - 1]; 13789 13790int 13791main () 13792{ 13793 13794 ; 13795 return 0; 13796} 13797_ACEOF 13798if ac_fn_c_try_compile "$LINENO"; then : 13799 gl_cv_long_bitsize_64=yes 13800else 13801 gl_cv_long_bitsize_64=no 13802fi 13803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13804fi 13805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_bitsize_64" >&5 13806$as_echo "$gl_cv_long_bitsize_64" >&6; } 13807 if test $gl_cv_long_bitsize_64 = yes; then 13808 HAVE_LONG_64BIT=1 13809 else 13810 HAVE_LONG_64BIT=0 13811 fi 13812 13813 13814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'long long' is 64 bit wide" >&5 13815$as_echo_n "checking whether 'long long' is 64 bit wide... " >&6; } 13816if test "${gl_cv_longlong_bitsize_64+set}" = set; then : 13817 $as_echo_n "(cached) " >&6 13818else 13819 13820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13821/* end confdefs.h. */ 13822 13823#define POW63 ((((((long long) 1 << 15) << 15) << 15) << 15) << 3) 13824#define POW64 ((((((long long) 1 << 15) << 15) << 15) << 15) << 4) 13825typedef int array [2 * (POW63 != 0 && POW64 == 0) - 1]; 13826 13827int 13828main () 13829{ 13830 13831 ; 13832 return 0; 13833} 13834_ACEOF 13835if ac_fn_c_try_compile "$LINENO"; then : 13836 gl_cv_longlong_bitsize_64=yes 13837else 13838 gl_cv_longlong_bitsize_64=no 13839fi 13840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13841fi 13842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_longlong_bitsize_64" >&5 13843$as_echo "$gl_cv_longlong_bitsize_64" >&6; } 13844 if test $gl_cv_longlong_bitsize_64 = yes; then 13845 HAVE_LONG_LONG_64BIT=1 13846 else 13847 HAVE_LONG_LONG_64BIT=0 13848 fi 13849 13850 13851fi 13852 13853 13854 13855 13856 case " $LIBOBJS " in 13857 *" strcasecmp.$ac_objext "* ) ;; 13858 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" 13859 ;; 13860esac 13861 13862 13863$as_echo "#define strcasecmp rpl_strcasecmp" >>confdefs.h 13864 13865 13866 13867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5 13868$as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; } 13869if test "${gl_cv_func_mbrtowc+set}" = set; then : 13870 $as_echo_n "(cached) " >&6 13871else 13872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13873/* end confdefs.h. */ 13874#include <wchar.h> 13875int 13876main () 13877{ 13878wchar_t wc; 13879 char const s[] = ""; 13880 size_t n = 1; 13881 mbstate_t state; 13882 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state)); 13883 ; 13884 return 0; 13885} 13886_ACEOF 13887if ac_fn_c_try_link "$LINENO"; then : 13888 gl_cv_func_mbrtowc=yes 13889else 13890 gl_cv_func_mbrtowc=no 13891fi 13892rm -f core conftest.err conftest.$ac_objext \ 13893 conftest$ac_exeext conftest.$ac_ext 13894fi 13895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc" >&5 13896$as_echo "$gl_cv_func_mbrtowc" >&6; } 13897 if test $gl_cv_func_mbrtowc = yes; then 13898 13899$as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h 13900 13901 fi 13902 13903 13904 13905 13906 for ac_func in strncasecmp 13907do : 13908 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp" 13909if test "x$ac_cv_func_strncasecmp" = x""yes; then : 13910 cat >>confdefs.h <<_ACEOF 13911#define HAVE_STRNCASECMP 1 13912_ACEOF 13913 13914else 13915 case " $LIBOBJS " in 13916 *" $ac_func.$ac_objext "* ) ;; 13917 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 13918 ;; 13919esac 13920 13921fi 13922done 13923 13924 13925 if test $ac_cv_func_strncasecmp = no; then 13926 13927 : 13928 13929 fi 13930 13931 13932 13933 13934 13935 for ac_func in strdup 13936do : 13937 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" 13938if test "x$ac_cv_func_strdup" = x""yes; then : 13939 cat >>confdefs.h <<_ACEOF 13940#define HAVE_STRDUP 1 13941_ACEOF 13942 13943else 13944 case " $LIBOBJS " in 13945 *" $ac_func.$ac_objext "* ) ;; 13946 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 13947 ;; 13948esac 13949 13950fi 13951done 13952 13953 13954 13955 : 13956 13957 13958 13959 13960 13961 : 13962 13963 13964 for ac_func in strerror 13965do : 13966 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" 13967if test "x$ac_cv_func_strerror" = x""yes; then : 13968 cat >>confdefs.h <<_ACEOF 13969#define HAVE_STRERROR 1 13970_ACEOF 13971 13972else 13973 case " $LIBOBJS " in 13974 *" $ac_func.$ac_objext "* ) ;; 13975 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 13976 ;; 13977esac 13978 13979fi 13980done 13981 13982 13983 if test $ac_cv_func_strerror = no; then 13984 13985 : 13986 13987 fi 13988 13989 13990 13991 case " $LIBOBJS " in 13992 *" strstr.$ac_objext "* ) ;; 13993 *) LIBOBJS="$LIBOBJS strstr.$ac_objext" 13994 ;; 13995esac 13996 13997 13998 13999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5 14000$as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; } 14001if test "${gl_cv_func_mbrtowc+set}" = set; then : 14002 $as_echo_n "(cached) " >&6 14003else 14004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14005/* end confdefs.h. */ 14006#include <wchar.h> 14007int 14008main () 14009{ 14010wchar_t wc; 14011 char const s[] = ""; 14012 size_t n = 1; 14013 mbstate_t state; 14014 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state)); 14015 ; 14016 return 0; 14017} 14018_ACEOF 14019if ac_fn_c_try_link "$LINENO"; then : 14020 gl_cv_func_mbrtowc=yes 14021else 14022 gl_cv_func_mbrtowc=no 14023fi 14024rm -f core conftest.err conftest.$ac_objext \ 14025 conftest$ac_exeext conftest.$ac_ext 14026fi 14027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc" >&5 14028$as_echo "$gl_cv_func_mbrtowc" >&6; } 14029 if test $gl_cv_func_mbrtowc = yes; then 14030 14031$as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h 14032 14033 fi 14034 14035 14036 14037 14038 for ac_func in strtol 14039do : 14040 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol" 14041if test "x$ac_cv_func_strtol" = x""yes; then : 14042 cat >>confdefs.h <<_ACEOF 14043#define HAVE_STRTOL 1 14044_ACEOF 14045 14046else 14047 case " $LIBOBJS " in 14048 *" $ac_func.$ac_objext "* ) ;; 14049 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 14050 ;; 14051esac 14052 14053fi 14054done 14055 14056 14057 if test $ac_cv_func_strtol = no; then 14058 14059 14060 14061 : 14062 14063 14064 14065 14066 14067 14068 fi 14069 14070 14071 for ac_func in strtoul 14072do : 14073 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul" 14074if test "x$ac_cv_func_strtoul" = x""yes; then : 14075 cat >>confdefs.h <<_ACEOF 14076#define HAVE_STRTOUL 1 14077_ACEOF 14078 14079else 14080 case " $LIBOBJS " in 14081 *" $ac_func.$ac_objext "* ) ;; 14082 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 14083 ;; 14084esac 14085 14086fi 14087done 14088 14089 14090 if test $ac_cv_func_strtoul = no; then 14091 14092 14093 14094 14095 : 14096 14097 14098 14099 14100 14101 14102 14103 fi 14104 14105 14106 14107 14108 14109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5 14110$as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; } 14111if test "${gl_cv_time_r_posix+set}" = set; then : 14112 $as_echo_n "(cached) " >&6 14113else 14114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14115/* end confdefs.h. */ 14116#include <time.h> 14117int 14118main () 14119{ 14120/* We don't need to append 'restrict's to the argument types, 14121 even though the POSIX signature has the 'restrict's, 14122 since C99 says they can't affect type compatibility. */ 14123 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r; 14124 ; 14125 return 0; 14126} 14127_ACEOF 14128if ac_fn_c_try_compile "$LINENO"; then : 14129 gl_cv_time_r_posix=yes 14130else 14131 gl_cv_time_r_posix=no 14132fi 14133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14134fi 14135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5 14136$as_echo "$gl_cv_time_r_posix" >&6; } 14137 if test $gl_cv_time_r_posix = yes; then 14138 14139$as_echo "#define HAVE_TIME_R_POSIX 1" >>confdefs.h 14140 14141 else 14142 case " $LIBOBJS " in 14143 *" time_r.$ac_objext "* ) ;; 14144 *) LIBOBJS="$LIBOBJS time_r.$ac_objext" 14145 ;; 14146esac 14147 14148 14149 : 14150 14151 fi 14152 14153 14154 14155 14156 14157 14158 14159 : 14160 14161 14162 14163 14164 14165 14166 14167 14168 14169 14170 : 14171 14172 14173 14174 14175 14176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5 14177$as_echo_n "checking for struct timespec... " >&6; } 14178if test "${fu_cv_sys_struct_timespec+set}" = set; then : 14179 $as_echo_n "(cached) " >&6 14180else 14181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14182/* end confdefs.h. */ 14183 14184# if TIME_WITH_SYS_TIME 14185# include <sys/time.h> 14186# include <time.h> 14187# else 14188# if HAVE_SYS_TIME_H 14189# include <sys/time.h> 14190# else 14191# include <time.h> 14192# endif 14193# endif 14194 14195int 14196main () 14197{ 14198static struct timespec x; x.tv_sec = x.tv_nsec; 14199 ; 14200 return 0; 14201} 14202_ACEOF 14203if ac_fn_c_try_compile "$LINENO"; then : 14204 fu_cv_sys_struct_timespec=yes 14205else 14206 fu_cv_sys_struct_timespec=no 14207fi 14208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14209 14210fi 14211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_struct_timespec" >&5 14212$as_echo "$fu_cv_sys_struct_timespec" >&6; } 14213 14214 if test $fu_cv_sys_struct_timespec = yes; then 14215 14216$as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h 14217 14218 fi 14219 14220 14221 14222 14223 ac_fn_c_check_decl "$LINENO" "nanosleep" "ac_cv_have_decl_nanosleep" "#include <time.h> 14224" 14225if test "x$ac_cv_have_decl_nanosleep" = x""yes; then : 14226 ac_have_decl=1 14227else 14228 ac_have_decl=0 14229fi 14230 14231cat >>confdefs.h <<_ACEOF 14232#define HAVE_DECL_NANOSLEEP $ac_have_decl 14233_ACEOF 14234 14235 14236 14237 14238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tzset clobbers localtime buffer" >&5 14239$as_echo_n "checking whether tzset clobbers localtime buffer... " >&6; } 14240if test "${gl_cv_func_tzset_clobber+set}" = set; then : 14241 $as_echo_n "(cached) " >&6 14242else 14243 14244 if test "$cross_compiling" = yes; then : 14245 gl_cv_func_tzset_clobber=yes 14246else 14247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14248/* end confdefs.h. */ 14249 14250#if TIME_WITH_SYS_TIME 14251# include <sys/time.h> 14252# include <time.h> 14253#else 14254# if HAVE_SYS_TIME_H 14255# include <sys/time.h> 14256# else 14257# include <time.h> 14258# endif 14259#endif 14260#include <stdlib.h> 14261 14262int 14263main () 14264{ 14265 time_t t1 = 853958121; 14266 struct tm *p, s; 14267 putenv ("TZ=GMT0"); 14268 p = localtime (&t1); 14269 s = *p; 14270 putenv ("TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"); 14271 tzset (); 14272 exit (p->tm_year != s.tm_year 14273 || p->tm_mon != s.tm_mon 14274 || p->tm_mday != s.tm_mday 14275 || p->tm_hour != s.tm_hour 14276 || p->tm_min != s.tm_min 14277 || p->tm_sec != s.tm_sec); 14278} 14279 14280_ACEOF 14281if ac_fn_c_try_run "$LINENO"; then : 14282 gl_cv_func_tzset_clobber=no 14283else 14284 gl_cv_func_tzset_clobber=yes 14285fi 14286rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14287 conftest.$ac_objext conftest.beam conftest.$ac_ext 14288fi 14289 14290fi 14291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_tzset_clobber" >&5 14292$as_echo "$gl_cv_func_tzset_clobber" >&6; } 14293 14294 14295$as_echo "#define HAVE_RUN_TZSET_TEST 1" >>confdefs.h 14296 14297 14298 if test $gl_cv_func_tzset_clobber = yes; then 14299 14300 case " $LIBOBJS " in 14301 *" gettimeofday.$ac_objext "* ) ;; 14302 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" 14303 ;; 14304esac 14305 14306 14307$as_echo "#define gmtime rpl_gmtime" >>confdefs.h 14308 14309 14310$as_echo "#define localtime rpl_localtime" >>confdefs.h 14311 14312 14313 14314 14315$as_echo "#define tzset rpl_tzset" >>confdefs.h 14316 14317 14318$as_echo "#define TZSET_CLOBBERS_LOCALTIME_BUFFER 1" >>confdefs.h 14319 14320 fi 14321 14322 14323 14324 case " $LIBOBJS " in 14325 *" dup-safer.$ac_objext "* ) ;; 14326 *) LIBOBJS="$LIBOBJS dup-safer.$ac_objext" 14327 ;; 14328esac 14329 14330 case " $LIBOBJS " in 14331 *" fd-safer.$ac_objext "* ) ;; 14332 *) LIBOBJS="$LIBOBJS fd-safer.$ac_objext" 14333 ;; 14334esac 14335 14336 case " $LIBOBJS " in 14337 *" pipe-safer.$ac_objext "* ) ;; 14338 *) LIBOBJS="$LIBOBJS pipe-safer.$ac_objext" 14339 ;; 14340esac 14341 14342 14343 14344 14345 : 14346 14347 14348 14349 14350 14351 14352 14353 14354 : 14355 14356 14357 14358 14359 14360 14361 14362 14363 14364 14365 14366$as_echo "#define USE_UNLOCKED_IO 1" >>confdefs.h 14367 14368 14369 14370 14371 14372 : 14373 14374 14375 14376 14377 14378 14379 14380 14381 14382 14383 14384 14385 14386 14387 14388 14389 14390 14391 14392 14393 14394 14395 14396 14397 14398 14399 14400 14401 14402 14403 14404 14405 14406 14407 14408 14409 14410 14411 14412 14413 14414 14415 14416 14417 for ac_func in vasnprintf 14418do : 14419 ac_fn_c_check_func "$LINENO" "vasnprintf" "ac_cv_func_vasnprintf" 14420if test "x$ac_cv_func_vasnprintf" = x""yes; then : 14421 cat >>confdefs.h <<_ACEOF 14422#define HAVE_VASNPRINTF 1 14423_ACEOF 14424 14425else 14426 case " $LIBOBJS " in 14427 *" $ac_func.$ac_objext "* ) ;; 14428 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 14429 ;; 14430esac 14431 14432fi 14433done 14434 14435 14436 if test $ac_cv_func_vasnprintf = no; then 14437 case " $LIBOBJS " in 14438 *" printf-args.$ac_objext "* ) ;; 14439 *) LIBOBJS="$LIBOBJS printf-args.$ac_objext" 14440 ;; 14441esac 14442 14443 case " $LIBOBJS " in 14444 *" printf-parse.$ac_objext "* ) ;; 14445 *) LIBOBJS="$LIBOBJS printf-parse.$ac_objext" 14446 ;; 14447esac 14448 14449 case " $LIBOBJS " in 14450 *" asnprintf.$ac_objext "* ) ;; 14451 *) LIBOBJS="$LIBOBJS asnprintf.$ac_objext" 14452 ;; 14453esac 14454 14455 14456 14457 14458 14459 14460 14461 14462 14463 14464 14465 14466 14467 14468 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 14469if test "x$ac_cv_type_ptrdiff_t" = x""yes; then : 14470 14471cat >>confdefs.h <<_ACEOF 14472#define HAVE_PTRDIFF_T 1 14473_ACEOF 14474 14475 14476fi 14477 14478 14479 14480 14481 14482 14483 14484 14485 14486 for ac_func in snprintf wcslen 14487do : 14488 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14489ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14490eval as_val=\$$as_ac_var 14491 if test "x$as_val" = x""yes; then : 14492 cat >>confdefs.h <<_ACEOF 14493#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14494_ACEOF 14495 14496fi 14497done 14498 14499 14500 14501 14502 fi 14503 14504 14505 for ac_func in vasprintf 14506do : 14507 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" 14508if test "x$ac_cv_func_vasprintf" = x""yes; then : 14509 cat >>confdefs.h <<_ACEOF 14510#define HAVE_VASPRINTF 1 14511_ACEOF 14512 14513else 14514 case " $LIBOBJS " in 14515 *" $ac_func.$ac_objext "* ) ;; 14516 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 14517 ;; 14518esac 14519 14520fi 14521done 14522 14523 14524 if test $ac_cv_func_vasprintf = no; then 14525 case " $LIBOBJS " in 14526 *" asprintf.$ac_objext "* ) ;; 14527 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" 14528 ;; 14529esac 14530 14531 14532 14533 14534 14535 fi 14536 14537 14538 14539 case " $LIBOBJS " in 14540 *" xmalloc.$ac_objext "* ) ;; 14541 *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" 14542 ;; 14543esac 14544 14545 14546 14547 : 14548 14549 14550 14551 : 14552 14553 14554 14555 14556 case " $LIBOBJS " in 14557 *" xgetcwd.$ac_objext "* ) ;; 14558 *) LIBOBJS="$LIBOBJS xgetcwd.$ac_objext" 14559 ;; 14560esac 14561 14562 14563 14564 14565 14566 14567 14568 : 14569 14570 14571 14572 14573 14574 14575 14576 14577 14578 for ac_header in stdint.h 14579do : 14580 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 14581if test "x$ac_cv_header_stdint_h" = x""yes; then : 14582 cat >>confdefs.h <<_ACEOF 14583#define HAVE_STDINT_H 1 14584_ACEOF 14585 14586fi 14587 14588done 14589 14590 14591 14592 14593 case " $LIBOBJS " in 14594 *" yesno.$ac_objext "* ) ;; 14595 *) LIBOBJS="$LIBOBJS yesno.$ac_objext" 14596 ;; 14597esac 14598 14599 14600 : 14601 14602 14603# The error module still poses merge problems. 14604ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" 14605if test "x$ac_cv_have_decl_strerror_r" = x""yes; then : 14606 ac_have_decl=1 14607else 14608 ac_have_decl=0 14609fi 14610 14611cat >>confdefs.h <<_ACEOF 14612#define HAVE_DECL_STRERROR_R $ac_have_decl 14613_ACEOF 14614 14615for ac_func in strerror_r 14616do : 14617 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" 14618if test "x$ac_cv_func_strerror_r" = x""yes; then : 14619 cat >>confdefs.h <<_ACEOF 14620#define HAVE_STRERROR_R 1 14621_ACEOF 14622 14623fi 14624done 14625 14626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 14627$as_echo_n "checking whether strerror_r returns char *... " >&6; } 14628if test "${ac_cv_func_strerror_r_char_p+set}" = set; then : 14629 $as_echo_n "(cached) " >&6 14630else 14631 14632 ac_cv_func_strerror_r_char_p=no 14633 if test $ac_cv_have_decl_strerror_r = yes; then 14634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14635/* end confdefs.h. */ 14636$ac_includes_default 14637int 14638main () 14639{ 14640 14641 char buf[100]; 14642 char x = *strerror_r (0, buf, sizeof buf); 14643 char *p = strerror_r (0, buf, sizeof buf); 14644 return !p || x; 14645 14646 ; 14647 return 0; 14648} 14649_ACEOF 14650if ac_fn_c_try_compile "$LINENO"; then : 14651 ac_cv_func_strerror_r_char_p=yes 14652fi 14653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14654 else 14655 # strerror_r is not declared. Choose between 14656 # systems that have relatively inaccessible declarations for the 14657 # function. BeOS and DEC UNIX 4.0 fall in this category, but the 14658 # former has a strerror_r that returns char*, while the latter 14659 # has a strerror_r that returns `int'. 14660 # This test should segfault on the DEC system. 14661 if test "$cross_compiling" = yes; then : 14662 : 14663else 14664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14665/* end confdefs.h. */ 14666$ac_includes_default 14667 extern char *strerror_r (); 14668int 14669main () 14670{ 14671char buf[100]; 14672 char x = *strerror_r (0, buf, sizeof buf); 14673 return ! isalpha (x); 14674 ; 14675 return 0; 14676} 14677_ACEOF 14678if ac_fn_c_try_run "$LINENO"; then : 14679 ac_cv_func_strerror_r_char_p=yes 14680fi 14681rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14682 conftest.$ac_objext conftest.beam conftest.$ac_ext 14683fi 14684 14685 fi 14686 14687fi 14688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 14689$as_echo "$ac_cv_func_strerror_r_char_p" >&6; } 14690if test $ac_cv_func_strerror_r_char_p = yes; then 14691 14692$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h 14693 14694fi 14695 14696 14697 14698 14699 14700 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then 14701 14702 test $ac_cv_type_long_long = yes \ 14703 && ac_type='long long' \ 14704 || ac_type='long' 14705 14706cat >>confdefs.h <<_ACEOF 14707#define intmax_t $ac_type 14708_ACEOF 14709 14710 else 14711 14712$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h 14713 14714 fi 14715 14716 14717 14718 14719 14720 14721 14722 GLOB_H= 14723 for ac_header in glob.h 14724do : 14725 ac_fn_c_check_header_mongrel "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default" 14726if test "x$ac_cv_header_glob_h" = x""yes; then : 14727 cat >>confdefs.h <<_ACEOF 14728#define HAVE_GLOB_H 1 14729_ACEOF 14730 14731else 14732 GLOB_H=glob.h 14733fi 14734 14735done 14736 14737 14738 if test -z "$GLOB_H"; then 14739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU glob interface version 1" >&5 14740$as_echo_n "checking for GNU glob interface version 1... " >&6; } 14741if test "${gl_cv_gnu_glob_interface_version_1+set}" = set; then : 14742 $as_echo_n "(cached) " >&6 14743else 14744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14745/* end confdefs.h. */ 14746#include <gnu-versions.h> 14747char a[_GNU_GLOB_INTERFACE_VERSION == 1 ? 1 : -1]; 14748_ACEOF 14749if ac_fn_c_try_compile "$LINENO"; then : 14750 gl_cv_gnu_glob_interface_version_1=yes 14751else 14752 gl_cv_gnu_glob_interface_version_1=no 14753fi 14754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14755fi 14756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_gnu_glob_interface_version_1" >&5 14757$as_echo "$gl_cv_gnu_glob_interface_version_1" >&6; } 14758 14759 if test "$gl_cv_gnu_glob_interface_version_1" = "no"; then 14760 GLOB_H=glob.h 14761 fi 14762 fi 14763 14764 if test -z "$GLOB_H"; then 14765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glob lists broken symlinks" >&5 14766$as_echo_n "checking whether glob lists broken symlinks... " >&6; } 14767if test "${gl_cv_glob_lists_symlinks+set}" = set; then : 14768 $as_echo_n "(cached) " >&6 14769else 14770 if ln -s conf-doesntexist conf$$-globtest 2>/dev/null; then 14771 gl_cv_glob_lists_symlinks=maybe 14772 else 14773 # If we can't make a symlink, then we cannot test this issue. Be 14774 # pessimistic about this. 14775 gl_cv_glob_lists_symlinks=no 14776 fi 14777 14778 if test $gl_cv_glob_lists_symlinks = maybe; then 14779 if test "$cross_compiling" = yes; then : 14780 gl_cv_glob_lists_symlinks=no 14781else 14782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14783/* end confdefs.h. */ 14784#include <stddef.h> 14785#include <glob.h> 14786int 14787main () 14788{ 14789glob_t found; 14790if (glob ("conf*-globtest", 0, NULL, &found) == GLOB_NOMATCH) return 1; 14791 ; 14792 return 0; 14793} 14794_ACEOF 14795if ac_fn_c_try_run "$LINENO"; then : 14796 gl_cv_glob_lists_symlinks=yes 14797else 14798 gl_cv_glob_lists_symlinks=no 14799fi 14800rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14801 conftest.$ac_objext conftest.beam conftest.$ac_ext 14802fi 14803 14804 fi 14805fi 14806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_glob_lists_symlinks" >&5 14807$as_echo "$gl_cv_glob_lists_symlinks" >&6; } 14808 14809 if test $gl_cv_glob_lists_symlinks = no; then 14810 GLOB_H=glob.h 14811 fi 14812 fi 14813 14814 rm -f conf$$-globtest 14815 14816 if test -n "$GLOB_H"; then 14817 14818 14819 : 14820 14821 14822 14823 14824 14825 14826 14827 14828 : 14829 14830 14831 14832 14833 14834 14835 14836 : 14837 14838 GLOB_H=glob.h 14839 14840 case " $LIBOBJS " in 14841 *" glob.$ac_objext "* ) ;; 14842 *) LIBOBJS="$LIBOBJS glob.$ac_objext" 14843 ;; 14844esac 14845 14846 14847 14848 fi 14849 14850 14851# 14852# End GNULIB stuff. 14853# 14854 14855 14856 14857# Check for function existance. 14858for ac_func in \ 14859 fchdir \ 14860 fchmod \ 14861 fsync \ 14862 ftime \ 14863 geteuid \ 14864 getgroups \ 14865 getpagesize \ 14866 gettimeofday \ 14867 initgroups \ 14868 login \ 14869 logout \ 14870 mknod \ 14871 regcomp \ 14872 regerror \ 14873 regexec \ 14874 regfree \ 14875 sigaction \ 14876 sigblock \ 14877 sigprocmask \ 14878 sigsetmask \ 14879 sigvec \ 14880 timezone \ 14881 tzset \ 14882 vprintf \ 14883 wait3 \ 14884 14885do : 14886 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14887ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14888eval as_val=\$$as_ac_var 14889 if test "x$as_val" = x""yes; then : 14890 cat >>confdefs.h <<_ACEOF 14891#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14892_ACEOF 14893 14894fi 14895done 14896 14897 14898if test $cross_compiling = yes ; then 14899 14900$as_echo "#define CROSS_COMPILING 1" >>confdefs.h 14901 14902else 14903 # The cast to long int works around a bug in the HP C Compiler 14904# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14905# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14906# This bug is HP SR number 8606223364. 14907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 14908$as_echo_n "checking size of char... " >&6; } 14909if test "${ac_cv_sizeof_char+set}" = set; then : 14910 $as_echo_n "(cached) " >&6 14911else 14912 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : 14913 14914else 14915 if test "$ac_cv_type_char" = yes; then 14916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14917$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14918{ as_fn_set_status 77 14919as_fn_error "cannot compute sizeof (char) 14920See \`config.log' for more details." "$LINENO" 5; }; } 14921 else 14922 ac_cv_sizeof_char=0 14923 fi 14924fi 14925 14926fi 14927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 14928$as_echo "$ac_cv_sizeof_char" >&6; } 14929 14930 14931 14932cat >>confdefs.h <<_ACEOF 14933#define SIZEOF_CHAR $ac_cv_sizeof_char 14934_ACEOF 14935 14936 14937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uniquely sized char" >&5 14938$as_echo_n "checking for uniquely sized char... " >&6; } 14939if test "${ccvs_cv_unique_int_type_char+set}" = set; then : 14940 $as_echo_n "(cached) " >&6 14941else 14942 if set |grep ^ccvs_cv_unique_int_type_ \ 14943 |grep "($ac_cv_sizeof_char)" >/dev/null ; then 14944 ccvs_cv_unique_int_type_char=no 14945 else 14946 ccvs_cv_unique_int_type_char=yes\($ac_cv_sizeof_char\) 14947 fi 14948fi 14949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ccvs_cv_unique_int_type_char" >&5 14950$as_echo "$ccvs_cv_unique_int_type_char" >&6; } 14951 if test $ccvs_cv_unique_int_type_char != no ; then 14952 14953$as_echo "#define UNIQUE_INT_TYPE_CHAR 1" >>confdefs.h 14954 14955 fi 14956 # The cast to long int works around a bug in the HP C Compiler 14957# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14958# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14959# This bug is HP SR number 8606223364. 14960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 14961$as_echo_n "checking size of short... " >&6; } 14962if test "${ac_cv_sizeof_short+set}" = set; then : 14963 $as_echo_n "(cached) " >&6 14964else 14965 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 14966 14967else 14968 if test "$ac_cv_type_short" = yes; then 14969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14970$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14971{ as_fn_set_status 77 14972as_fn_error "cannot compute sizeof (short) 14973See \`config.log' for more details." "$LINENO" 5; }; } 14974 else 14975 ac_cv_sizeof_short=0 14976 fi 14977fi 14978 14979fi 14980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 14981$as_echo "$ac_cv_sizeof_short" >&6; } 14982 14983 14984 14985cat >>confdefs.h <<_ACEOF 14986#define SIZEOF_SHORT $ac_cv_sizeof_short 14987_ACEOF 14988 14989 14990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uniquely sized short" >&5 14991$as_echo_n "checking for uniquely sized short... " >&6; } 14992if test "${ccvs_cv_unique_int_type_short+set}" = set; then : 14993 $as_echo_n "(cached) " >&6 14994else 14995 if set |grep ^ccvs_cv_unique_int_type_ \ 14996 |grep "($ac_cv_sizeof_short)" >/dev/null ; then 14997 ccvs_cv_unique_int_type_short=no 14998 else 14999 ccvs_cv_unique_int_type_short=yes\($ac_cv_sizeof_short\) 15000 fi 15001fi 15002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ccvs_cv_unique_int_type_short" >&5 15003$as_echo "$ccvs_cv_unique_int_type_short" >&6; } 15004 if test $ccvs_cv_unique_int_type_short != no ; then 15005 15006$as_echo "#define UNIQUE_INT_TYPE_SHORT 1" >>confdefs.h 15007 15008 fi 15009 # The cast to long int works around a bug in the HP C Compiler 15010# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15011# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15012# This bug is HP SR number 8606223364. 15013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 15014$as_echo_n "checking size of int... " >&6; } 15015if test "${ac_cv_sizeof_int+set}" = set; then : 15016 $as_echo_n "(cached) " >&6 15017else 15018 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 15019 15020else 15021 if test "$ac_cv_type_int" = yes; then 15022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15023$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15024{ as_fn_set_status 77 15025as_fn_error "cannot compute sizeof (int) 15026See \`config.log' for more details." "$LINENO" 5; }; } 15027 else 15028 ac_cv_sizeof_int=0 15029 fi 15030fi 15031 15032fi 15033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 15034$as_echo "$ac_cv_sizeof_int" >&6; } 15035 15036 15037 15038cat >>confdefs.h <<_ACEOF 15039#define SIZEOF_INT $ac_cv_sizeof_int 15040_ACEOF 15041 15042 15043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uniquely sized int" >&5 15044$as_echo_n "checking for uniquely sized int... " >&6; } 15045if test "${ccvs_cv_unique_int_type_int+set}" = set; then : 15046 $as_echo_n "(cached) " >&6 15047else 15048 if set |grep ^ccvs_cv_unique_int_type_ \ 15049 |grep "($ac_cv_sizeof_int)" >/dev/null ; then 15050 ccvs_cv_unique_int_type_int=no 15051 else 15052 ccvs_cv_unique_int_type_int=yes\($ac_cv_sizeof_int\) 15053 fi 15054fi 15055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ccvs_cv_unique_int_type_int" >&5 15056$as_echo "$ccvs_cv_unique_int_type_int" >&6; } 15057 if test $ccvs_cv_unique_int_type_int != no ; then 15058 15059$as_echo "#define UNIQUE_INT_TYPE_INT 1" >>confdefs.h 15060 15061 fi 15062 # The cast to long int works around a bug in the HP C Compiler 15063# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15064# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15065# This bug is HP SR number 8606223364. 15066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 15067$as_echo_n "checking size of long... " >&6; } 15068if test "${ac_cv_sizeof_long+set}" = set; then : 15069 $as_echo_n "(cached) " >&6 15070else 15071 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 15072 15073else 15074 if test "$ac_cv_type_long" = yes; then 15075 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15076$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15077{ as_fn_set_status 77 15078as_fn_error "cannot compute sizeof (long) 15079See \`config.log' for more details." "$LINENO" 5; }; } 15080 else 15081 ac_cv_sizeof_long=0 15082 fi 15083fi 15084 15085fi 15086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 15087$as_echo "$ac_cv_sizeof_long" >&6; } 15088 15089 15090 15091cat >>confdefs.h <<_ACEOF 15092#define SIZEOF_LONG $ac_cv_sizeof_long 15093_ACEOF 15094 15095 15096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uniquely sized long" >&5 15097$as_echo_n "checking for uniquely sized long... " >&6; } 15098if test "${ccvs_cv_unique_int_type_long+set}" = set; then : 15099 $as_echo_n "(cached) " >&6 15100else 15101 if set |grep ^ccvs_cv_unique_int_type_ \ 15102 |grep "($ac_cv_sizeof_long)" >/dev/null ; then 15103 ccvs_cv_unique_int_type_long=no 15104 else 15105 ccvs_cv_unique_int_type_long=yes\($ac_cv_sizeof_long\) 15106 fi 15107fi 15108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ccvs_cv_unique_int_type_long" >&5 15109$as_echo "$ccvs_cv_unique_int_type_long" >&6; } 15110 if test $ccvs_cv_unique_int_type_long != no ; then 15111 15112$as_echo "#define UNIQUE_INT_TYPE_LONG 1" >>confdefs.h 15113 15114 fi 15115 if test $ac_cv_type_long_long != no; then 15116 # The cast to long int works around a bug in the HP C Compiler 15117# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15118# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15119# This bug is HP SR number 8606223364. 15120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 15121$as_echo_n "checking size of long long... " >&6; } 15122if test "${ac_cv_sizeof_long_long+set}" = set; then : 15123 $as_echo_n "(cached) " >&6 15124else 15125 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 15126 15127else 15128 if test "$ac_cv_type_long_long" = yes; then 15129 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15130$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15131{ as_fn_set_status 77 15132as_fn_error "cannot compute sizeof (long long) 15133See \`config.log' for more details." "$LINENO" 5; }; } 15134 else 15135 ac_cv_sizeof_long_long=0 15136 fi 15137fi 15138 15139fi 15140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 15141$as_echo "$ac_cv_sizeof_long_long" >&6; } 15142 15143 15144 15145cat >>confdefs.h <<_ACEOF 15146#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 15147_ACEOF 15148 15149 15150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uniquely sized long long" >&5 15151$as_echo_n "checking for uniquely sized long long... " >&6; } 15152if test "${ccvs_cv_unique_int_type_long_long+set}" = set; then : 15153 $as_echo_n "(cached) " >&6 15154else 15155 if set |grep ^ccvs_cv_unique_int_type_ \ 15156 |grep "($ac_cv_sizeof_long_long)" >/dev/null ; then 15157 ccvs_cv_unique_int_type_long_long=no 15158 else 15159 ccvs_cv_unique_int_type_long_long=yes\($ac_cv_sizeof_long_long\) 15160 fi 15161fi 15162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ccvs_cv_unique_int_type_long_long" >&5 15163$as_echo "$ccvs_cv_unique_int_type_long_long" >&6; } 15164 if test $ccvs_cv_unique_int_type_long_long != no ; then 15165 15166$as_echo "#define UNIQUE_INT_TYPE_LONG_LONG 1" >>confdefs.h 15167 15168 fi 15169 fi 15170 # The cast to long int works around a bug in the HP C Compiler 15171# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15172# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15173# This bug is HP SR number 8606223364. 15174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 15175$as_echo_n "checking size of size_t... " >&6; } 15176if test "${ac_cv_sizeof_size_t+set}" = set; then : 15177 $as_echo_n "(cached) " >&6 15178else 15179 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : 15180 15181else 15182 if test "$ac_cv_type_size_t" = yes; then 15183 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15185{ as_fn_set_status 77 15186as_fn_error "cannot compute sizeof (size_t) 15187See \`config.log' for more details." "$LINENO" 5; }; } 15188 else 15189 ac_cv_sizeof_size_t=0 15190 fi 15191fi 15192 15193fi 15194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 15195$as_echo "$ac_cv_sizeof_size_t" >&6; } 15196 15197 15198 15199cat >>confdefs.h <<_ACEOF 15200#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 15201_ACEOF 15202 15203 15204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uniquely sized size_t" >&5 15205$as_echo_n "checking for uniquely sized size_t... " >&6; } 15206if test "${ccvs_cv_unique_int_type_size_t+set}" = set; then : 15207 $as_echo_n "(cached) " >&6 15208else 15209 if set |grep ^ccvs_cv_unique_int_type_ \ 15210 |grep "($ac_cv_sizeof_size_t)" >/dev/null ; then 15211 ccvs_cv_unique_int_type_size_t=no 15212 else 15213 ccvs_cv_unique_int_type_size_t=yes\($ac_cv_sizeof_size_t\) 15214 fi 15215fi 15216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ccvs_cv_unique_int_type_size_t" >&5 15217$as_echo "$ccvs_cv_unique_int_type_size_t" >&6; } 15218 if test $ccvs_cv_unique_int_type_size_t != no ; then 15219 15220$as_echo "#define UNIQUE_INT_TYPE_SIZE_T 1" >>confdefs.h 15221 15222 fi 15223 # The cast to long int works around a bug in the HP C Compiler 15224# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15225# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15226# This bug is HP SR number 8606223364. 15227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ptrdiff_t" >&5 15228$as_echo_n "checking size of ptrdiff_t... " >&6; } 15229if test "${ac_cv_sizeof_ptrdiff_t+set}" = set; then : 15230 $as_echo_n "(cached) " >&6 15231else 15232 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ptrdiff_t))" "ac_cv_sizeof_ptrdiff_t" "$ac_includes_default"; then : 15233 15234else 15235 if test "$ac_cv_type_ptrdiff_t" = yes; then 15236 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15237$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15238{ as_fn_set_status 77 15239as_fn_error "cannot compute sizeof (ptrdiff_t) 15240See \`config.log' for more details." "$LINENO" 5; }; } 15241 else 15242 ac_cv_sizeof_ptrdiff_t=0 15243 fi 15244fi 15245 15246fi 15247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ptrdiff_t" >&5 15248$as_echo "$ac_cv_sizeof_ptrdiff_t" >&6; } 15249 15250 15251 15252cat >>confdefs.h <<_ACEOF 15253#define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t 15254_ACEOF 15255 15256 15257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uniquely sized ptrdiff_t" >&5 15258$as_echo_n "checking for uniquely sized ptrdiff_t... " >&6; } 15259if test "${ccvs_cv_unique_int_type_ptrdiff_t+set}" = set; then : 15260 $as_echo_n "(cached) " >&6 15261else 15262 if set |grep ^ccvs_cv_unique_int_type_ \ 15263 |grep "($ac_cv_sizeof_ptrdiff_t)" >/dev/null ; then 15264 ccvs_cv_unique_int_type_ptrdiff_t=no 15265 else 15266 ccvs_cv_unique_int_type_ptrdiff_t=yes\($ac_cv_sizeof_ptrdiff_t\) 15267 fi 15268fi 15269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ccvs_cv_unique_int_type_ptrdiff_t" >&5 15270$as_echo "$ccvs_cv_unique_int_type_ptrdiff_t" >&6; } 15271 if test $ccvs_cv_unique_int_type_ptrdiff_t != no ; then 15272 15273$as_echo "#define UNIQUE_INT_TYPE_PTRDIFF_T 1" >>confdefs.h 15274 15275 fi 15276 if test $gt_cv_c_wint_t != no; then 15277 # The cast to long int works around a bug in the HP C Compiler 15278# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15279# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15280# This bug is HP SR number 8606223364. 15281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wint_t" >&5 15282$as_echo_n "checking size of wint_t... " >&6; } 15283if test "${ac_cv_sizeof_wint_t+set}" = set; then : 15284 $as_echo_n "(cached) " >&6 15285else 15286 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wint_t))" "ac_cv_sizeof_wint_t" "#include <stdio.h> 15287#include <wchar.h> 15288 15289"; then : 15290 15291else 15292 if test "$ac_cv_type_wint_t" = yes; then 15293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15294$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15295{ as_fn_set_status 77 15296as_fn_error "cannot compute sizeof (wint_t) 15297See \`config.log' for more details." "$LINENO" 5; }; } 15298 else 15299 ac_cv_sizeof_wint_t=0 15300 fi 15301fi 15302 15303fi 15304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wint_t" >&5 15305$as_echo "$ac_cv_sizeof_wint_t" >&6; } 15306 15307 15308 15309cat >>confdefs.h <<_ACEOF 15310#define SIZEOF_WINT_T $ac_cv_sizeof_wint_t 15311_ACEOF 15312 15313 15314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uniquely sized wint_t" >&5 15315$as_echo_n "checking for uniquely sized wint_t... " >&6; } 15316if test "${ccvs_cv_unique_int_type_wint_t+set}" = set; then : 15317 $as_echo_n "(cached) " >&6 15318else 15319 if set |grep ^ccvs_cv_unique_int_type_ \ 15320 |grep "($ac_cv_sizeof_wint_t)" >/dev/null ; then 15321 ccvs_cv_unique_int_type_wint_t=no 15322 else 15323 ccvs_cv_unique_int_type_wint_t=yes\($ac_cv_sizeof_wint_t\) 15324 fi 15325fi 15326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ccvs_cv_unique_int_type_wint_t" >&5 15327$as_echo "$ccvs_cv_unique_int_type_wint_t" >&6; } 15328 if test $ccvs_cv_unique_int_type_wint_t != no ; then 15329 15330$as_echo "#define UNIQUE_INT_TYPE_WINT_T 1" >>confdefs.h 15331 15332 fi 15333 fi 15334 if test $gt_cv_c_intmax_t != no; then 15335 # The cast to long int works around a bug in the HP C Compiler 15336# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15337# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15338# This bug is HP SR number 8606223364. 15339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5 15340$as_echo_n "checking size of intmax_t... " >&6; } 15341if test "${ac_cv_sizeof_intmax_t+set}" = set; then : 15342 $as_echo_n "(cached) " >&6 15343else 15344 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t" "#include <stdio.h> 15345#ifdef HAVE_INTTYPES_H 15346#include <inttypes.h> 15347#else 15348#ifdef HAVE_STDINT_H 15349#include <stdint.h> 15350#endif 15351#endif 15352 15353"; then : 15354 15355else 15356 if test "$ac_cv_type_intmax_t" = yes; then 15357 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15358$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15359{ as_fn_set_status 77 15360as_fn_error "cannot compute sizeof (intmax_t) 15361See \`config.log' for more details." "$LINENO" 5; }; } 15362 else 15363 ac_cv_sizeof_intmax_t=0 15364 fi 15365fi 15366 15367fi 15368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5 15369$as_echo "$ac_cv_sizeof_intmax_t" >&6; } 15370 15371 15372 15373cat >>confdefs.h <<_ACEOF 15374#define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t 15375_ACEOF 15376 15377 15378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uniquely sized intmax_t" >&5 15379$as_echo_n "checking for uniquely sized intmax_t... " >&6; } 15380if test "${ccvs_cv_unique_int_type_intmax_t+set}" = set; then : 15381 $as_echo_n "(cached) " >&6 15382else 15383 if set |grep ^ccvs_cv_unique_int_type_ \ 15384 |grep "($ac_cv_sizeof_intmax_t)" >/dev/null ; then 15385 ccvs_cv_unique_int_type_intmax_t=no 15386 else 15387 ccvs_cv_unique_int_type_intmax_t=yes\($ac_cv_sizeof_intmax_t\) 15388 fi 15389fi 15390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ccvs_cv_unique_int_type_intmax_t" >&5 15391$as_echo "$ccvs_cv_unique_int_type_intmax_t" >&6; } 15392 if test $ccvs_cv_unique_int_type_intmax_t != no ; then 15393 15394$as_echo "#define UNIQUE_INT_TYPE_INTMAX_T 1" >>confdefs.h 15395 15396 fi 15397 fi 15398 15399 # The cast to long int works around a bug in the HP C Compiler 15400# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15401# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15402# This bug is HP SR number 8606223364. 15403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 15404$as_echo_n "checking size of float... " >&6; } 15405if test "${ac_cv_sizeof_float+set}" = set; then : 15406 $as_echo_n "(cached) " >&6 15407else 15408 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then : 15409 15410else 15411 if test "$ac_cv_type_float" = yes; then 15412 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15413$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15414{ as_fn_set_status 77 15415as_fn_error "cannot compute sizeof (float) 15416See \`config.log' for more details." "$LINENO" 5; }; } 15417 else 15418 ac_cv_sizeof_float=0 15419 fi 15420fi 15421 15422fi 15423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 15424$as_echo "$ac_cv_sizeof_float" >&6; } 15425 15426 15427 15428cat >>confdefs.h <<_ACEOF 15429#define SIZEOF_FLOAT $ac_cv_sizeof_float 15430_ACEOF 15431 15432 15433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uniquely sized float" >&5 15434$as_echo_n "checking for uniquely sized float... " >&6; } 15435if test "${ccvs_cv_unique_float_type_float+set}" = set; then : 15436 $as_echo_n "(cached) " >&6 15437else 15438 if set |grep ^ccvs_cv_unique_float_type_ \ 15439 |grep "($ac_cv_sizeof_float)" >/dev/null ; then 15440 ccvs_cv_unique_float_type_float=no 15441 else 15442 ccvs_cv_unique_float_type_float=yes\($ac_cv_sizeof_float\) 15443 fi 15444fi 15445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ccvs_cv_unique_float_type_float" >&5 15446$as_echo "$ccvs_cv_unique_float_type_float" >&6; } 15447 if test $ccvs_cv_unique_float_type_float != no ; then 15448 15449$as_echo "#define UNIQUE_FLOAT_TYPE_FLOAT 1" >>confdefs.h 15450 15451 fi 15452 # The cast to long int works around a bug in the HP C Compiler 15453# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15454# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15455# This bug is HP SR number 8606223364. 15456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 15457$as_echo_n "checking size of double... " >&6; } 15458if test "${ac_cv_sizeof_double+set}" = set; then : 15459 $as_echo_n "(cached) " >&6 15460else 15461 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then : 15462 15463else 15464 if test "$ac_cv_type_double" = yes; then 15465 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15466$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15467{ as_fn_set_status 77 15468as_fn_error "cannot compute sizeof (double) 15469See \`config.log' for more details." "$LINENO" 5; }; } 15470 else 15471 ac_cv_sizeof_double=0 15472 fi 15473fi 15474 15475fi 15476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 15477$as_echo "$ac_cv_sizeof_double" >&6; } 15478 15479 15480 15481cat >>confdefs.h <<_ACEOF 15482#define SIZEOF_DOUBLE $ac_cv_sizeof_double 15483_ACEOF 15484 15485 15486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uniquely sized double" >&5 15487$as_echo_n "checking for uniquely sized double... " >&6; } 15488if test "${ccvs_cv_unique_float_type_double+set}" = set; then : 15489 $as_echo_n "(cached) " >&6 15490else 15491 if set |grep ^ccvs_cv_unique_float_type_ \ 15492 |grep "($ac_cv_sizeof_double)" >/dev/null ; then 15493 ccvs_cv_unique_float_type_double=no 15494 else 15495 ccvs_cv_unique_float_type_double=yes\($ac_cv_sizeof_double\) 15496 fi 15497fi 15498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ccvs_cv_unique_float_type_double" >&5 15499$as_echo "$ccvs_cv_unique_float_type_double" >&6; } 15500 if test $ccvs_cv_unique_float_type_double != no ; then 15501 15502$as_echo "#define UNIQUE_FLOAT_TYPE_DOUBLE 1" >>confdefs.h 15503 15504 fi 15505 if test $gt_cv_c_long_double != no; then 15506 # The cast to long int works around a bug in the HP C Compiler 15507# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15508# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15509# This bug is HP SR number 8606223364. 15510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 15511$as_echo_n "checking size of long double... " >&6; } 15512if test "${ac_cv_sizeof_long_double+set}" = set; then : 15513 $as_echo_n "(cached) " >&6 15514else 15515 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then : 15516 15517else 15518 if test "$ac_cv_type_long_double" = yes; then 15519 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15520$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15521{ as_fn_set_status 77 15522as_fn_error "cannot compute sizeof (long double) 15523See \`config.log' for more details." "$LINENO" 5; }; } 15524 else 15525 ac_cv_sizeof_long_double=0 15526 fi 15527fi 15528 15529fi 15530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 15531$as_echo "$ac_cv_sizeof_long_double" >&6; } 15532 15533 15534 15535cat >>confdefs.h <<_ACEOF 15536#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double 15537_ACEOF 15538 15539 15540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uniquely sized long double" >&5 15541$as_echo_n "checking for uniquely sized long double... " >&6; } 15542if test "${ccvs_cv_unique_float_type_long_double+set}" = set; then : 15543 $as_echo_n "(cached) " >&6 15544else 15545 if set |grep ^ccvs_cv_unique_float_type_ \ 15546 |grep "($ac_cv_sizeof_long_double)" >/dev/null ; then 15547 ccvs_cv_unique_float_type_long_double=no 15548 else 15549 ccvs_cv_unique_float_type_long_double=yes\($ac_cv_sizeof_long_double\) 15550 fi 15551fi 15552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ccvs_cv_unique_float_type_long_double" >&5 15553$as_echo "$ccvs_cv_unique_float_type_long_double" >&6; } 15554 if test $ccvs_cv_unique_float_type_long_double != no ; then 15555 15556$as_echo "#define UNIQUE_FLOAT_TYPE_LONG_DOUBLE 1" >>confdefs.h 15557 15558 fi 15559 fi 15560fi 15561 15562 15563$as_echo "#define HAVE_STRCHR 1" >>confdefs.h 15564 15565 15566$as_echo "#define HAVE_MEMCHR 1" >>confdefs.h 15567 15568 15569 15570$as_echo "#define REGEX_MALLOC 1" >>confdefs.h 15571 15572 15573$as_echo "#define _REGEX_RE_COMP 1" >>confdefs.h 15574 15575for ac_header in vfork.h 15576do : 15577 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 15578if test "x$ac_cv_header_vfork_h" = x""yes; then : 15579 cat >>confdefs.h <<_ACEOF 15580#define HAVE_VFORK_H 1 15581_ACEOF 15582 15583fi 15584 15585done 15586 15587for ac_func in fork vfork 15588do : 15589 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15590ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15591eval as_val=\$$as_ac_var 15592 if test "x$as_val" = x""yes; then : 15593 cat >>confdefs.h <<_ACEOF 15594#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15595_ACEOF 15596 15597fi 15598done 15599 15600if test "x$ac_cv_func_fork" = xyes; then 15601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 15602$as_echo_n "checking for working fork... " >&6; } 15603if test "${ac_cv_func_fork_works+set}" = set; then : 15604 $as_echo_n "(cached) " >&6 15605else 15606 if test "$cross_compiling" = yes; then : 15607 ac_cv_func_fork_works=cross 15608else 15609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15610/* end confdefs.h. */ 15611$ac_includes_default 15612int 15613main () 15614{ 15615 15616 /* By Ruediger Kuhlmann. */ 15617 return fork () < 0; 15618 15619 ; 15620 return 0; 15621} 15622_ACEOF 15623if ac_fn_c_try_run "$LINENO"; then : 15624 ac_cv_func_fork_works=yes 15625else 15626 ac_cv_func_fork_works=no 15627fi 15628rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15629 conftest.$ac_objext conftest.beam conftest.$ac_ext 15630fi 15631 15632fi 15633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 15634$as_echo "$ac_cv_func_fork_works" >&6; } 15635 15636else 15637 ac_cv_func_fork_works=$ac_cv_func_fork 15638fi 15639if test "x$ac_cv_func_fork_works" = xcross; then 15640 case $host in 15641 *-*-amigaos* | *-*-msdosdjgpp*) 15642 # Override, as these systems have only a dummy fork() stub 15643 ac_cv_func_fork_works=no 15644 ;; 15645 *) 15646 ac_cv_func_fork_works=yes 15647 ;; 15648 esac 15649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 15650$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 15651fi 15652ac_cv_func_vfork_works=$ac_cv_func_vfork 15653if test "x$ac_cv_func_vfork" = xyes; then 15654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 15655$as_echo_n "checking for working vfork... " >&6; } 15656if test "${ac_cv_func_vfork_works+set}" = set; then : 15657 $as_echo_n "(cached) " >&6 15658else 15659 if test "$cross_compiling" = yes; then : 15660 ac_cv_func_vfork_works=cross 15661else 15662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15663/* end confdefs.h. */ 15664/* Thanks to Paul Eggert for this test. */ 15665$ac_includes_default 15666#include <sys/wait.h> 15667#ifdef HAVE_VFORK_H 15668# include <vfork.h> 15669#endif 15670/* On some sparc systems, changes by the child to local and incoming 15671 argument registers are propagated back to the parent. The compiler 15672 is told about this with #include <vfork.h>, but some compilers 15673 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 15674 static variable whose address is put into a register that is 15675 clobbered by the vfork. */ 15676static void 15677#ifdef __cplusplus 15678sparc_address_test (int arg) 15679# else 15680sparc_address_test (arg) int arg; 15681#endif 15682{ 15683 static pid_t child; 15684 if (!child) { 15685 child = vfork (); 15686 if (child < 0) { 15687 perror ("vfork"); 15688 _exit(2); 15689 } 15690 if (!child) { 15691 arg = getpid(); 15692 write(-1, "", 0); 15693 _exit (arg); 15694 } 15695 } 15696} 15697 15698int 15699main () 15700{ 15701 pid_t parent = getpid (); 15702 pid_t child; 15703 15704 sparc_address_test (0); 15705 15706 child = vfork (); 15707 15708 if (child == 0) { 15709 /* Here is another test for sparc vfork register problems. This 15710 test uses lots of local variables, at least as many local 15711 variables as main has allocated so far including compiler 15712 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 15713 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 15714 reuse the register of parent for one of the local variables, 15715 since it will think that parent can't possibly be used any more 15716 in this routine. Assigning to the local variable will thus 15717 munge parent in the parent process. */ 15718 pid_t 15719 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 15720 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 15721 /* Convince the compiler that p..p7 are live; otherwise, it might 15722 use the same hardware register for all 8 local variables. */ 15723 if (p != p1 || p != p2 || p != p3 || p != p4 15724 || p != p5 || p != p6 || p != p7) 15725 _exit(1); 15726 15727 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 15728 from child file descriptors. If the child closes a descriptor 15729 before it execs or exits, this munges the parent's descriptor 15730 as well. Test for this by closing stdout in the child. */ 15731 _exit(close(fileno(stdout)) != 0); 15732 } else { 15733 int status; 15734 struct stat st; 15735 15736 while (wait(&status) != child) 15737 ; 15738 return ( 15739 /* Was there some problem with vforking? */ 15740 child < 0 15741 15742 /* Did the child fail? (This shouldn't happen.) */ 15743 || status 15744 15745 /* Did the vfork/compiler bug occur? */ 15746 || parent != getpid() 15747 15748 /* Did the file descriptor bug occur? */ 15749 || fstat(fileno(stdout), &st) != 0 15750 ); 15751 } 15752} 15753_ACEOF 15754if ac_fn_c_try_run "$LINENO"; then : 15755 ac_cv_func_vfork_works=yes 15756else 15757 ac_cv_func_vfork_works=no 15758fi 15759rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15760 conftest.$ac_objext conftest.beam conftest.$ac_ext 15761fi 15762 15763fi 15764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 15765$as_echo "$ac_cv_func_vfork_works" >&6; } 15766 15767fi; 15768if test "x$ac_cv_func_fork_works" = xcross; then 15769 ac_cv_func_vfork_works=$ac_cv_func_vfork 15770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 15771$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 15772fi 15773 15774if test "x$ac_cv_func_vfork_works" = xyes; then 15775 15776$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 15777 15778else 15779 15780$as_echo "#define vfork fork" >>confdefs.h 15781 15782fi 15783if test "x$ac_cv_func_fork_works" = xyes; then 15784 15785$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 15786 15787fi 15788 15789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 15790$as_echo_n "checking whether closedir returns void... " >&6; } 15791if test "${ac_cv_func_closedir_void+set}" = set; then : 15792 $as_echo_n "(cached) " >&6 15793else 15794 if test "$cross_compiling" = yes; then : 15795 ac_cv_func_closedir_void=yes 15796else 15797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15798/* end confdefs.h. */ 15799$ac_includes_default 15800#include <$ac_header_dirent> 15801#ifndef __cplusplus 15802int closedir (); 15803#endif 15804 15805int 15806main () 15807{ 15808return closedir (opendir (".")) != 0; 15809 ; 15810 return 0; 15811} 15812_ACEOF 15813if ac_fn_c_try_run "$LINENO"; then : 15814 ac_cv_func_closedir_void=no 15815else 15816 ac_cv_func_closedir_void=yes 15817fi 15818rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15819 conftest.$ac_objext conftest.beam conftest.$ac_ext 15820fi 15821 15822fi 15823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5 15824$as_echo "$ac_cv_func_closedir_void" >&6; } 15825if test $ac_cv_func_closedir_void = yes; then 15826 15827$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h 15828 15829fi 15830 15831 15832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspnam" >&5 15833$as_echo_n "checking for library containing getspnam... " >&6; } 15834if test "${ac_cv_search_getspnam+set}" = set; then : 15835 $as_echo_n "(cached) " >&6 15836else 15837 ac_func_search_save_LIBS=$LIBS 15838cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15839/* end confdefs.h. */ 15840 15841/* Override any GCC internal prototype to avoid an error. 15842 Use char because int might match the return type of a GCC 15843 builtin and then its argument prototype would still apply. */ 15844#ifdef __cplusplus 15845extern "C" 15846#endif 15847char getspnam (); 15848int 15849main () 15850{ 15851return getspnam (); 15852 ; 15853 return 0; 15854} 15855_ACEOF 15856for ac_lib in '' sec gen; do 15857 if test -z "$ac_lib"; then 15858 ac_res="none required" 15859 else 15860 ac_res=-l$ac_lib 15861 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15862 fi 15863 if ac_fn_c_try_link "$LINENO"; then : 15864 ac_cv_search_getspnam=$ac_res 15865fi 15866rm -f core conftest.err conftest.$ac_objext \ 15867 conftest$ac_exeext 15868 if test "${ac_cv_search_getspnam+set}" = set; then : 15869 break 15870fi 15871done 15872if test "${ac_cv_search_getspnam+set}" = set; then : 15873 15874else 15875 ac_cv_search_getspnam=no 15876fi 15877rm conftest.$ac_ext 15878LIBS=$ac_func_search_save_LIBS 15879fi 15880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspnam" >&5 15881$as_echo "$ac_cv_search_getspnam" >&6; } 15882ac_res=$ac_cv_search_getspnam 15883if test "$ac_res" != no; then : 15884 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15885 15886$as_echo "#define HAVE_GETSPNAM 1" >>confdefs.h 15887 15888fi 15889 15890 15891 15892 15893 15894 15895 15896 15897 : 15898 15899 15900 15901 15902 15903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5 15904$as_echo_n "checking whether utime accepts a null argument... " >&6; } 15905if test "${ac_cv_func_utime_null+set}" = set; then : 15906 $as_echo_n "(cached) " >&6 15907else 15908 rm -f conftest.data; >conftest.data 15909# Sequent interprets utime(file, 0) to mean use start of epoch. Wrong. 15910if test "$cross_compiling" = yes; then : 15911 ac_cv_func_utime_null='guessing yes' 15912else 15913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15914/* end confdefs.h. */ 15915$ac_includes_default 15916 #ifdef HAVE_UTIME_H 15917 # include <utime.h> 15918 #endif 15919int 15920main () 15921{ 15922struct stat s, t; 15923 return ! (stat ("conftest.data", &s) == 0 15924 && utime ("conftest.data", 0) == 0 15925 && stat ("conftest.data", &t) == 0 15926 && t.st_mtime >= s.st_mtime 15927 && t.st_mtime - s.st_mtime < 120); 15928 ; 15929 return 0; 15930} 15931_ACEOF 15932if ac_fn_c_try_run "$LINENO"; then : 15933 ac_cv_func_utime_null=yes 15934else 15935 ac_cv_func_utime_null=no 15936fi 15937rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15938 conftest.$ac_objext conftest.beam conftest.$ac_ext 15939fi 15940 15941fi 15942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5 15943$as_echo "$ac_cv_func_utime_null" >&6; } 15944if test "x$ac_cv_func_utime_null" != xno; then 15945 ac_cv_func_utime_null=yes 15946 15947$as_echo "#define HAVE_UTIME_NULL 1" >>confdefs.h 15948 15949fi 15950rm -f conftest.data 15951 15952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5 15953$as_echo_n "checking for long file names... " >&6; } 15954if test "${ac_cv_sys_long_file_names+set}" = set; then : 15955 $as_echo_n "(cached) " >&6 15956else 15957 ac_cv_sys_long_file_names=yes 15958# Test for long file names in all the places we know might matter: 15959# . the current directory, where building will happen 15960# $prefix/lib where we will be installing things 15961# $exec_prefix/lib likewise 15962# $TMPDIR if set, where it might want to write temporary files 15963# /tmp where it might want to write temporary files 15964# /var/tmp likewise 15965# /usr/tmp likewise 15966for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do 15967 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib 15968 # in the usual case where exec_prefix is '${prefix}'. 15969 case $ac_dir in #( 15970 . | /* | ?:[\\/]*) ;; #( 15971 *) continue;; 15972 esac 15973 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here. 15974 ac_xdir=$ac_dir/cf$$ 15975 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue 15976 ac_tf1=$ac_xdir/conftest9012345 15977 ac_tf2=$ac_xdir/conftest9012346 15978 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" || 15979 ac_cv_sys_long_file_names=no 15980 rm -f -r "$ac_xdir" 2>/dev/null 15981 test $ac_cv_sys_long_file_names = no && break 15982done 15983fi 15984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5 15985$as_echo "$ac_cv_sys_long_file_names" >&6; } 15986if test $ac_cv_sys_long_file_names = yes; then 15987 15988$as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h 15989 15990fi 15991 15992 15993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports %p" >&5 15994$as_echo_n "checking whether printf supports %p... " >&6; } 15995if test "${cvs_cv_func_printf_ptr+set}" = set; then : 15996 $as_echo_n "(cached) " >&6 15997else 15998 if test "$cross_compiling" = yes; then : 15999 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16000$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16001as_fn_error "cannot run test program while cross compiling 16002See \`config.log' for more details." "$LINENO" 5; } 16003else 16004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16005/* end confdefs.h. */ 16006#include <stdio.h> 16007/* If printf supports %p, exit 0. */ 16008int 16009main () 16010{ 16011 void *p1, *p2; 16012 char buf[256]; 16013 p1 = &p1; p2 = &p2; 16014 sprintf(buf, "%p", p1); 16015 exit(sscanf(buf, "%p", &p2) != 1 || p2 != p1); 16016} 16017_ACEOF 16018if ac_fn_c_try_run "$LINENO"; then : 16019 cvs_cv_func_printf_ptr=yes 16020else 16021 cvs_cv_func_printf_ptr=no 16022fi 16023rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16024 conftest.$ac_objext conftest.beam conftest.$ac_ext 16025fi 16026 16027rm -f core core.* *.core 16028fi 16029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cvs_cv_func_printf_ptr" >&5 16030$as_echo "$cvs_cv_func_printf_ptr" >&6; } 16031if test $cvs_cv_func_printf_ptr = yes; then 16032 16033$as_echo "#define HAVE_PRINTF_PTR 1" >>confdefs.h 16034 16035fi 16036 16037 16038# Try to find connect and gethostbyname. 16039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5 16040$as_echo_n "checking for main in -lnsl... " >&6; } 16041if test "${ac_cv_lib_nsl_main+set}" = set; then : 16042 $as_echo_n "(cached) " >&6 16043else 16044 ac_check_lib_save_LIBS=$LIBS 16045LIBS="-lnsl $LIBS" 16046cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16047/* end confdefs.h. */ 16048 16049 16050int 16051main () 16052{ 16053return main (); 16054 ; 16055 return 0; 16056} 16057_ACEOF 16058if ac_fn_c_try_link "$LINENO"; then : 16059 ac_cv_lib_nsl_main=yes 16060else 16061 ac_cv_lib_nsl_main=no 16062fi 16063rm -f core conftest.err conftest.$ac_objext \ 16064 conftest$ac_exeext conftest.$ac_ext 16065LIBS=$ac_check_lib_save_LIBS 16066fi 16067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5 16068$as_echo "$ac_cv_lib_nsl_main" >&6; } 16069if test "x$ac_cv_lib_nsl_main" = x""yes; then : 16070 cat >>confdefs.h <<_ACEOF 16071#define HAVE_LIBNSL 1 16072_ACEOF 16073 16074 LIBS="-lnsl $LIBS" 16075 16076fi 16077 16078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5 16079$as_echo_n "checking for library containing connect... " >&6; } 16080if test "${ac_cv_search_connect+set}" = set; then : 16081 $as_echo_n "(cached) " >&6 16082else 16083 ac_func_search_save_LIBS=$LIBS 16084cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16085/* end confdefs.h. */ 16086 16087/* Override any GCC internal prototype to avoid an error. 16088 Use char because int might match the return type of a GCC 16089 builtin and then its argument prototype would still apply. */ 16090#ifdef __cplusplus 16091extern "C" 16092#endif 16093char connect (); 16094int 16095main () 16096{ 16097return connect (); 16098 ; 16099 return 0; 16100} 16101_ACEOF 16102for ac_lib in '' xnet socket inet; do 16103 if test -z "$ac_lib"; then 16104 ac_res="none required" 16105 else 16106 ac_res=-l$ac_lib 16107 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16108 fi 16109 if ac_fn_c_try_link "$LINENO"; then : 16110 ac_cv_search_connect=$ac_res 16111fi 16112rm -f core conftest.err conftest.$ac_objext \ 16113 conftest$ac_exeext 16114 if test "${ac_cv_search_connect+set}" = set; then : 16115 break 16116fi 16117done 16118if test "${ac_cv_search_connect+set}" = set; then : 16119 16120else 16121 ac_cv_search_connect=no 16122fi 16123rm conftest.$ac_ext 16124LIBS=$ac_func_search_save_LIBS 16125fi 16126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5 16127$as_echo "$ac_cv_search_connect" >&6; } 16128ac_res=$ac_cv_search_connect 16129if test "$ac_res" != no; then : 16130 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16131 16132$as_echo "#define HAVE_CONNECT 1" >>confdefs.h 16133 16134fi 16135 16136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 16137$as_echo_n "checking for library containing gethostbyname... " >&6; } 16138if test "${ac_cv_search_gethostbyname+set}" = set; then : 16139 $as_echo_n "(cached) " >&6 16140else 16141 ac_func_search_save_LIBS=$LIBS 16142cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16143/* end confdefs.h. */ 16144 16145/* Override any GCC internal prototype to avoid an error. 16146 Use char because int might match the return type of a GCC 16147 builtin and then its argument prototype would still apply. */ 16148#ifdef __cplusplus 16149extern "C" 16150#endif 16151char gethostbyname (); 16152int 16153main () 16154{ 16155return gethostbyname (); 16156 ; 16157 return 0; 16158} 16159_ACEOF 16160for ac_lib in '' netinet; do 16161 if test -z "$ac_lib"; then 16162 ac_res="none required" 16163 else 16164 ac_res=-l$ac_lib 16165 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16166 fi 16167 if ac_fn_c_try_link "$LINENO"; then : 16168 ac_cv_search_gethostbyname=$ac_res 16169fi 16170rm -f core conftest.err conftest.$ac_objext \ 16171 conftest$ac_exeext 16172 if test "${ac_cv_search_gethostbyname+set}" = set; then : 16173 break 16174fi 16175done 16176if test "${ac_cv_search_gethostbyname+set}" = set; then : 16177 16178else 16179 ac_cv_search_gethostbyname=no 16180fi 16181rm conftest.$ac_ext 16182LIBS=$ac_func_search_save_LIBS 16183fi 16184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 16185$as_echo "$ac_cv_search_gethostbyname" >&6; } 16186ac_res=$ac_cv_search_gethostbyname 16187if test "$ac_res" != no; then : 16188 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16189 16190fi 16191 16192 16193 16194 16195 16196 16197KRB4=/usr/kerberos 16198 16199 16200# Check whether --with-krb4 was given. 16201if test "${with_krb4+set}" = set; then : 16202 withval=$with_krb4; KRB4=$with_krb4 16203fi 16204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for KRB4 in $KRB4" >&5 16205$as_echo_n "checking for KRB4 in $KRB4... " >&6; } 16206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 16207$as_echo "" >&6; } 16208 16209 16210krb_h= 16211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb.h" >&5 16212$as_echo_n "checking for krb.h... " >&6; } 16213if test "$cross_compiling" != yes && test -r $KRB4/include/krb.h; then 16214 hold_cflags=$CFLAGS 16215 CFLAGS="$CFLAGS -I$KRB4/include" 16216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16217/* end confdefs.h. */ 16218#include <krb.h> 16219int 16220main () 16221{ 16222int i; 16223 ; 16224 return 0; 16225} 16226_ACEOF 16227if ac_fn_c_try_link "$LINENO"; then : 16228 krb_h=yes krb_incdir=$KRB4/include 16229else 16230 CFLAGS=$hold_cflags 16231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16232/* end confdefs.h. */ 16233#include <krb.h> 16234int 16235main () 16236{ 16237int i; 16238 ; 16239 return 0; 16240} 16241_ACEOF 16242if ac_fn_c_try_link "$LINENO"; then : 16243 krb_h=yes krb_incdir= 16244fi 16245rm -f core conftest.err conftest.$ac_objext \ 16246 conftest$ac_exeext conftest.$ac_ext 16247fi 16248rm -f core conftest.err conftest.$ac_objext \ 16249 conftest$ac_exeext conftest.$ac_ext 16250 CFLAGS=$hold_cflags 16251else 16252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16253/* end confdefs.h. */ 16254#include <krb.h> 16255int 16256main () 16257{ 16258int i; 16259 ; 16260 return 0; 16261} 16262_ACEOF 16263if ac_fn_c_try_link "$LINENO"; then : 16264 krb_h=yes krb_incdir= 16265fi 16266rm -f core conftest.err conftest.$ac_objext \ 16267 conftest$ac_exeext conftest.$ac_ext 16268fi 16269if test -z "$krb_h"; then 16270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16271/* end confdefs.h. */ 16272#include <krb.h> 16273int 16274main () 16275{ 16276int i; 16277 ; 16278 return 0; 16279} 16280_ACEOF 16281if ac_fn_c_try_link "$LINENO"; then : 16282 krb_h=yes krb_incdir= 16283else 16284 if test "$cross_compiling" != yes && test -r $KRB4/include/kerberosIV/krb.h; then 16285 hold_cflags=$CFLAGS 16286 CFLAGS="$CFLAGS -I$KRB4/include/kerberosIV" 16287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16288/* end confdefs.h. */ 16289#include <krb.h> 16290int 16291main () 16292{ 16293int i; 16294 ; 16295 return 0; 16296} 16297_ACEOF 16298if ac_fn_c_try_link "$LINENO"; then : 16299 krb_h=yes krb_incdir=$KRB4/include/kerberosIV 16300fi 16301rm -f core conftest.err conftest.$ac_objext \ 16302 conftest$ac_exeext conftest.$ac_ext 16303 CFLAGS=$hold_cflags 16304 fi 16305fi 16306rm -f core conftest.err conftest.$ac_objext \ 16307 conftest$ac_exeext conftest.$ac_ext 16308fi 16309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb_h" >&5 16310$as_echo "$krb_h" >&6; } 16311 16312if test -n "$krb_h"; then 16313 krb_lib= 16314 if test "$cross_compiling" != yes && test -r $KRB4/lib/libkrb.a; then 16315 hold_ldflags=$LDFLAGS 16316 LDFLAGS="-L${KRB4}/lib $LDFLAGS" 16317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf in -lkrb" >&5 16318$as_echo_n "checking for printf in -lkrb... " >&6; } 16319if test "${ac_cv_lib_krb_printf+set}" = set; then : 16320 $as_echo_n "(cached) " >&6 16321else 16322 ac_check_lib_save_LIBS=$LIBS 16323LIBS="-lkrb $LIBS" 16324cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16325/* end confdefs.h. */ 16326 16327/* Override any GCC internal prototype to avoid an error. 16328 Use char because int might match the return type of a GCC 16329 builtin and then its argument prototype would still apply. */ 16330#ifdef __cplusplus 16331extern "C" 16332#endif 16333char printf (); 16334int 16335main () 16336{ 16337return printf (); 16338 ; 16339 return 0; 16340} 16341_ACEOF 16342if ac_fn_c_try_link "$LINENO"; then : 16343 ac_cv_lib_krb_printf=yes 16344else 16345 ac_cv_lib_krb_printf=no 16346fi 16347rm -f core conftest.err conftest.$ac_objext \ 16348 conftest$ac_exeext conftest.$ac_ext 16349LIBS=$ac_check_lib_save_LIBS 16350fi 16351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_printf" >&5 16352$as_echo "$ac_cv_lib_krb_printf" >&6; } 16353if test "x$ac_cv_lib_krb_printf" = x""yes; then : 16354 krb_lib=yes krb_libdir=${KRB4}/lib 16355else 16356 LDFLAGS=$hold_ldflags 16357 # Using open here instead of printf so we don't 16358 # get confused by the cached value for printf from above. 16359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for open in -lkrb" >&5 16360$as_echo_n "checking for open in -lkrb... " >&6; } 16361if test "${ac_cv_lib_krb_open+set}" = set; then : 16362 $as_echo_n "(cached) " >&6 16363else 16364 ac_check_lib_save_LIBS=$LIBS 16365LIBS="-lkrb $LIBS" 16366cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16367/* end confdefs.h. */ 16368 16369/* Override any GCC internal prototype to avoid an error. 16370 Use char because int might match the return type of a GCC 16371 builtin and then its argument prototype would still apply. */ 16372#ifdef __cplusplus 16373extern "C" 16374#endif 16375char open (); 16376int 16377main () 16378{ 16379return open (); 16380 ; 16381 return 0; 16382} 16383_ACEOF 16384if ac_fn_c_try_link "$LINENO"; then : 16385 ac_cv_lib_krb_open=yes 16386else 16387 ac_cv_lib_krb_open=no 16388fi 16389rm -f core conftest.err conftest.$ac_objext \ 16390 conftest$ac_exeext conftest.$ac_ext 16391LIBS=$ac_check_lib_save_LIBS 16392fi 16393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_open" >&5 16394$as_echo "$ac_cv_lib_krb_open" >&6; } 16395if test "x$ac_cv_lib_krb_open" = x""yes; then : 16396 krb_lib=yes krb_libdir= 16397fi 16398 16399fi 16400 16401 LDFLAGS=$hold_ldflags 16402 else 16403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf in -lkrb" >&5 16404$as_echo_n "checking for printf in -lkrb... " >&6; } 16405if test "${ac_cv_lib_krb_printf+set}" = set; then : 16406 $as_echo_n "(cached) " >&6 16407else 16408 ac_check_lib_save_LIBS=$LIBS 16409LIBS="-lkrb $LIBS" 16410cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16411/* end confdefs.h. */ 16412 16413/* Override any GCC internal prototype to avoid an error. 16414 Use char because int might match the return type of a GCC 16415 builtin and then its argument prototype would still apply. */ 16416#ifdef __cplusplus 16417extern "C" 16418#endif 16419char printf (); 16420int 16421main () 16422{ 16423return printf (); 16424 ; 16425 return 0; 16426} 16427_ACEOF 16428if ac_fn_c_try_link "$LINENO"; then : 16429 ac_cv_lib_krb_printf=yes 16430else 16431 ac_cv_lib_krb_printf=no 16432fi 16433rm -f core conftest.err conftest.$ac_objext \ 16434 conftest$ac_exeext conftest.$ac_ext 16435LIBS=$ac_check_lib_save_LIBS 16436fi 16437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_printf" >&5 16438$as_echo "$ac_cv_lib_krb_printf" >&6; } 16439if test "x$ac_cv_lib_krb_printf" = x""yes; then : 16440 krb_lib=yes krb_libdir= 16441fi 16442 16443 ac_fn_c_check_func "$LINENO" "krb_recvauth" "ac_cv_func_krb_recvauth" 16444if test "x$ac_cv_func_krb_recvauth" = x""yes; then : 16445 krb_lib=yes krb_libdir= 16446fi 16447 16448 fi 16449 if test -n "$krb_lib"; then 16450 16451$as_echo "#define HAVE_KERBEROS 1" >>confdefs.h 16452 16453 cvs_client_objects="$cvs_client_objects kerberos4-client.o" 16454 test -n "${krb_libdir}" && LIBS="${LIBS} -L${krb_libdir}" 16455 # Put -L${krb_libdir} in LDFLAGS temporarily so that it appears before 16456 # -ldes in the command line. Don't do it permanently so that we honor 16457 # the user's setting for LDFLAGS 16458 hold_ldflags=$LDFLAGS 16459 test -n "${krb_libdir}" && LDFLAGS="$LDFLAGS -L${krb_libdir}" 16460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf in -ldes" >&5 16461$as_echo_n "checking for printf in -ldes... " >&6; } 16462if test "${ac_cv_lib_des_printf+set}" = set; then : 16463 $as_echo_n "(cached) " >&6 16464else 16465 ac_check_lib_save_LIBS=$LIBS 16466LIBS="-ldes $LIBS" 16467cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16468/* end confdefs.h. */ 16469 16470/* Override any GCC internal prototype to avoid an error. 16471 Use char because int might match the return type of a GCC 16472 builtin and then its argument prototype would still apply. */ 16473#ifdef __cplusplus 16474extern "C" 16475#endif 16476char printf (); 16477int 16478main () 16479{ 16480return printf (); 16481 ; 16482 return 0; 16483} 16484_ACEOF 16485if ac_fn_c_try_link "$LINENO"; then : 16486 ac_cv_lib_des_printf=yes 16487else 16488 ac_cv_lib_des_printf=no 16489fi 16490rm -f core conftest.err conftest.$ac_objext \ 16491 conftest$ac_exeext conftest.$ac_ext 16492LIBS=$ac_check_lib_save_LIBS 16493fi 16494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_printf" >&5 16495$as_echo "$ac_cv_lib_des_printf" >&6; } 16496if test "x$ac_cv_lib_des_printf" = x""yes; then : 16497 LIBS="${LIBS} -ldes" 16498fi 16499 16500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_recvauth in -lkrb" >&5 16501$as_echo_n "checking for krb_recvauth in -lkrb... " >&6; } 16502if test "${ac_cv_lib_krb_krb_recvauth+set}" = set; then : 16503 $as_echo_n "(cached) " >&6 16504else 16505 ac_check_lib_save_LIBS=$LIBS 16506LIBS="-lkrb $LIBS" 16507cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16508/* end confdefs.h. */ 16509 16510/* Override any GCC internal prototype to avoid an error. 16511 Use char because int might match the return type of a GCC 16512 builtin and then its argument prototype would still apply. */ 16513#ifdef __cplusplus 16514extern "C" 16515#endif 16516char krb_recvauth (); 16517int 16518main () 16519{ 16520return krb_recvauth (); 16521 ; 16522 return 0; 16523} 16524_ACEOF 16525if ac_fn_c_try_link "$LINENO"; then : 16526 ac_cv_lib_krb_krb_recvauth=yes 16527else 16528 ac_cv_lib_krb_krb_recvauth=no 16529fi 16530rm -f core conftest.err conftest.$ac_objext \ 16531 conftest$ac_exeext conftest.$ac_ext 16532LIBS=$ac_check_lib_save_LIBS 16533fi 16534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_recvauth" >&5 16535$as_echo "$ac_cv_lib_krb_krb_recvauth" >&6; } 16536if test "x$ac_cv_lib_krb_krb_recvauth" = x""yes; then : 16537 cat >>confdefs.h <<_ACEOF 16538#define HAVE_LIBKRB 1 16539_ACEOF 16540 16541 LIBS="-lkrb $LIBS" 16542 16543fi 16544 16545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_recvauth in -lkrb4" >&5 16546$as_echo_n "checking for krb_recvauth in -lkrb4... " >&6; } 16547if test "${ac_cv_lib_krb4_krb_recvauth+set}" = set; then : 16548 $as_echo_n "(cached) " >&6 16549else 16550 ac_check_lib_save_LIBS=$LIBS 16551LIBS="-lkrb4 $LIBS" 16552cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16553/* end confdefs.h. */ 16554 16555/* Override any GCC internal prototype to avoid an error. 16556 Use char because int might match the return type of a GCC 16557 builtin and then its argument prototype would still apply. */ 16558#ifdef __cplusplus 16559extern "C" 16560#endif 16561char krb_recvauth (); 16562int 16563main () 16564{ 16565return krb_recvauth (); 16566 ; 16567 return 0; 16568} 16569_ACEOF 16570if ac_fn_c_try_link "$LINENO"; then : 16571 ac_cv_lib_krb4_krb_recvauth=yes 16572else 16573 ac_cv_lib_krb4_krb_recvauth=no 16574fi 16575rm -f core conftest.err conftest.$ac_objext \ 16576 conftest$ac_exeext conftest.$ac_ext 16577LIBS=$ac_check_lib_save_LIBS 16578fi 16579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_recvauth" >&5 16580$as_echo "$ac_cv_lib_krb4_krb_recvauth" >&6; } 16581if test "x$ac_cv_lib_krb4_krb_recvauth" = x""yes; then : 16582 cat >>confdefs.h <<_ACEOF 16583#define HAVE_LIBKRB4 1 16584_ACEOF 16585 16586 LIBS="-lkrb4 $LIBS" 16587 16588fi 16589 16590 LDFLAGS=$hold_ldflags 16591 if test -n "$krb_incdir"; then 16592 CPPFLAGS="$CPPFLAGS -I$krb_incdir" 16593 fi 16594 fi 16595fi 16596for ac_func in krb_get_err_text 16597do : 16598 ac_fn_c_check_func "$LINENO" "krb_get_err_text" "ac_cv_func_krb_get_err_text" 16599if test "x$ac_cv_func_krb_get_err_text" = x""yes; then : 16600 cat >>confdefs.h <<_ACEOF 16601#define HAVE_KRB_GET_ERR_TEXT 1 16602_ACEOF 16603 16604fi 16605done 16606 16607 16608 16609 16610# 16611# Use --with-gssapi[=DIR] to enable GSSAPI support. 16612# 16613# defaults to enabled with DIR in default list below 16614# 16615# Search for /SUNHEA/ and read the comments about this default below. 16616# 16617 16618# Check whether --with-gssapi was given. 16619if test "${with_gssapi+set}" = set; then : 16620 withval=$with_gssapi; 16621else 16622 with_gssapi=yes 16623fi 16624 16625# 16626# Try to locate a GSSAPI installation if no location was specified, assuming 16627# GSSAPI was enabled (the default). 16628# 16629if test -n "$acx_gssapi_cv_gssapi"; then 16630 # Granted, this is a slightly ugly way to print this info, but the 16631 # AC_CHECK_HEADER used in the search for a GSSAPI installation makes using 16632 # AC_CACHE_CHECK worse 16633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI" >&5 16634$as_echo_n "checking for GSSAPI... " >&6; } 16635else :; fi 16636if test "${acx_gssapi_cv_gssapi+set}" = set; then : 16637 $as_echo_n "(cached) " >&6 16638else 16639 16640if test x$with_gssapi = xyes; then 16641 # --with but no location specified 16642 # assume a gssapi.h or gssapi/gssapi.h locates our install. 16643 # 16644 # This isn't always strictly true. For instance Solaris 7's SUNHEA (header) 16645 # package installs gssapi.h whether or not the necessary libraries are 16646 # installed. I'm still not sure whether to consider this a bug. The long 16647 # way around is to not consider GSSPAI installed unless gss_import_name is 16648 # found, but that brings up a lot of other hassles, like continuing to let 16649 # gcc & ld generate the error messages when the user uses --with-gssapi=dir 16650 # as a debugging aid. The short way around is to disable GSSAPI by default, 16651 # but I think Sun users have been faced with this for awhile and I haven't 16652 # heard many complaints. 16653 acx_gssapi_save_CPPFLAGS=$CPPFLAGS 16654 for acx_gssapi_cv_gssapi in yes /usr/kerberos /usr/cygnus/kerbnet no; do 16655 if test x$acx_gssapi_cv_gssapi = xno; then 16656 break 16657 fi 16658 if test x$acx_gssapi_cv_gssapi = xyes; then 16659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI" >&5 16660$as_echo_n "checking for GSSAPI... " >&6; } 16661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 16662$as_echo "" >&6; } 16663 else 16664 CPPFLAGS="$acx_gssapi_save_CPPFLAGS -I$acx_gssapi_cv_gssapi/include" 16665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI in $acx_gssapi_cv_gssapi" >&5 16666$as_echo_n "checking for GSSAPI in $acx_gssapi_cv_gssapi... " >&6; } 16667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 16668$as_echo "" >&6; } 16669 fi 16670 unset ac_cv_header_gssapi_h 16671 unset ac_cv_header_gssapi_gssapi_h 16672 unset ac_cv_header_krb5_h 16673 for ac_header in gssapi.h gssapi/gssapi.h krb5.h 16674do : 16675 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16676ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16677eval as_val=\$$as_ac_Header 16678 if test "x$as_val" = x""yes; then : 16679 cat >>confdefs.h <<_ACEOF 16680#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16681_ACEOF 16682 16683fi 16684 16685done 16686 16687 if (test "$ac_cv_header_gssapi_h" = yes || 16688 test "$ac_cv_header_gssapi_gssapi_h" = yes) && 16689 test "$ac_cv_header_krb5_h" = yes; then 16690 break 16691 fi 16692 done 16693 CPPFLAGS=$acx_gssapi_save_CPPFLAGS 16694else 16695 acx_gssapi_cv_gssapi=$with_gssapi 16696fi 16697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI" >&5 16698$as_echo_n "checking for GSSAPI... " >&6; } 16699 16700fi 16701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_gssapi_cv_gssapi" >&5 16702$as_echo "$acx_gssapi_cv_gssapi" >&6; } 16703 16704# 16705# Set up GSSAPI includes for later use. We don't bother to check for 16706# $acx_gssapi_cv_gssapi=no here since that will be caught later. 16707# 16708if test x$acx_gssapi_cv_gssapi = xyes; then 16709 # no special includes necessary 16710 GSSAPI_INCLUDES="" 16711else 16712 # GSSAPI at $acx_gssapi_cv_gssapi (could be 'no') 16713 GSSAPI_INCLUDES=" -I$acx_gssapi_cv_gssapi/include" 16714fi 16715 16716# 16717# Get the rest of the information CVS needs to compile with GSSAPI support 16718# 16719if test x$acx_gssapi_cv_gssapi != xno; then 16720 # define HAVE_GSSAPI and set up the includes 16721 16722$as_echo "#define HAVE_GSSAPI /**/" >>confdefs.h 16723 16724 CPPFLAGS=$CPPFLAGS$GSSAPI_INCLUDES 16725 16726 cvs_client_objects="$cvs_client_objects gssapi-client.o" 16727 16728 # locate any other headers 16729 for ac_header in gssapi.h gssapi/gssapi.h gssapi/gssapi_generic.h krb5.h 16730do : 16731 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16732ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16733eval as_val=\$$as_ac_Header 16734 if test "x$as_val" = x""yes; then : 16735 cat >>confdefs.h <<_ACEOF 16736#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16737_ACEOF 16738 16739fi 16740 16741done 16742 16743 # And look through them for GSS_C_NT_HOSTBASED_SERVICE or its alternatives 16744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5 16745$as_echo_n "checking for GSS_C_NT_HOSTBASED_SERVICE... " >&6; } 16746if test "${acx_gssapi_cv_gss_c_nt_hostbased_service+set}" = set; then : 16747 $as_echo_n "(cached) " >&6 16748else 16749 16750 acx_gssapi_cv_gss_c_nt_hostbased_service=no 16751 if test "$ac_cv_header_gssapi_h" = "yes"; then 16752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16753/* end confdefs.h. */ 16754#include <gssapi.h> 16755 16756_ACEOF 16757if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16758 $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then : 16759 acx_gssapi_cv_gss_c_nt_hostbased_service=yes 16760else 16761 16762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16763/* end confdefs.h. */ 16764#include <gssapi.h> 16765 16766_ACEOF 16767if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16768 $EGREP "gss_nt_service_name" >/dev/null 2>&1; then : 16769 acx_gssapi_cv_gss_c_nt_hostbased_service=gss_nt_service_name 16770fi 16771rm -f conftest* 16772 16773 16774fi 16775rm -f conftest* 16776 16777 fi 16778 if test $acx_gssapi_cv_gss_c_nt_hostbased_service = no && 16779 test "$ac_cv_header_gssapi_gssapi_h" = "yes"; then 16780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16781/* end confdefs.h. */ 16782#include <gssapi/gssapi.h> 16783 16784_ACEOF 16785if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16786 $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then : 16787 acx_gssapi_cv_gss_c_nt_hostbased_service=yes 16788else 16789 16790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16791/* end confdefs.h. */ 16792#include <gssapi/gssapi.h> 16793 16794_ACEOF 16795if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16796 $EGREP "gss_nt_service_name" >/dev/null 2>&1; then : 16797 acx_gssapi_cv_gss_c_nt_hostbased_service=gss_nt_service_name 16798fi 16799rm -f conftest* 16800 16801 16802fi 16803rm -f conftest* 16804 16805 else :; fi 16806 if test $acx_gssapi_cv_gss_c_nt_hostbased_service = no && 16807 test "$ac_cv_header_gssapi_gssapi_generic_h" = "yes"; then 16808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16809/* end confdefs.h. */ 16810#include <gssapi/gssapi_generic.h> 16811 16812_ACEOF 16813if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16814 $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then : 16815 acx_gssapi_cv_gss_c_nt_hostbased_service=yes 16816else 16817 16818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16819/* end confdefs.h. */ 16820#include <gssapi/gssapi_generic.h> 16821 16822_ACEOF 16823if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16824 $EGREP "gss_nt_service_name" >/dev/null 2>&1; then : 16825 acx_gssapi_cv_gss_c_nt_hostbased_service=gss_nt_service_name 16826fi 16827rm -f conftest* 16828 16829 16830fi 16831rm -f conftest* 16832 16833 else :; fi 16834 16835fi 16836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_gssapi_cv_gss_c_nt_hostbased_service" >&5 16837$as_echo "$acx_gssapi_cv_gss_c_nt_hostbased_service" >&6; } 16838 if test $acx_gssapi_cv_gss_c_nt_hostbased_service != yes && 16839 test $acx_gssapi_cv_gss_c_nt_hostbased_service != no; then 16840 # don't define for yes since that means it already means something and 16841 # don't define for no since we'd rather the compiler catch the error 16842 # It's debatable whether we'd prefer that the compiler catch the error 16843 # - it seems our estranged developer is more likely to be familiar with 16844 # the intricacies of the compiler than with those of autoconf, but by 16845 # the same token, maybe we'd rather alert them to the fact that most 16846 # of the support they need to fix the problem is installed if they can 16847 # simply locate the appropriate symbol. 16848 16849cat >>confdefs.h <<_ACEOF 16850#define GSS_C_NT_HOSTBASED_SERVICE $acx_gssapi_cv_gss_c_nt_hostbased_service 16851_ACEOF 16852 16853 else :; fi 16854 16855 # Expect the libs to be installed parallel to the headers 16856 # 16857 # We could try once with and once without, but I'm not sure it's worth the 16858 # trouble. 16859 if test x$acx_gssapi_cv_gssapi != xyes; then 16860 if test -z "$LIBS"; then 16861 LIBS="-L$acx_gssapi_cv_gssapi/lib" 16862 else 16863 LIBS="-L$acx_gssapi_cv_gssapi/lib $LIBS" 16864 fi 16865 else :; fi 16866 16867 # 16868 # Some of the order below is particular due to library dependencies 16869 # 16870 16871 # 16872 # des Heimdal K 0.3d, but Heimdal seems to be set up such 16873 # that it could have been installed from elsewhere. 16874 # 16875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing des_set_odd_parity" >&5 16876$as_echo_n "checking for library containing des_set_odd_parity... " >&6; } 16877if test "${ac_cv_search_des_set_odd_parity+set}" = set; then : 16878 $as_echo_n "(cached) " >&6 16879else 16880 ac_func_search_save_LIBS=$LIBS 16881cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16882/* end confdefs.h. */ 16883 16884/* Override any GCC internal prototype to avoid an error. 16885 Use char because int might match the return type of a GCC 16886 builtin and then its argument prototype would still apply. */ 16887#ifdef __cplusplus 16888extern "C" 16889#endif 16890char des_set_odd_parity (); 16891int 16892main () 16893{ 16894return des_set_odd_parity (); 16895 ; 16896 return 0; 16897} 16898_ACEOF 16899for ac_lib in '' des; do 16900 if test -z "$ac_lib"; then 16901 ac_res="none required" 16902 else 16903 ac_res=-l$ac_lib 16904 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16905 fi 16906 if ac_fn_c_try_link "$LINENO"; then : 16907 ac_cv_search_des_set_odd_parity=$ac_res 16908fi 16909rm -f core conftest.err conftest.$ac_objext \ 16910 conftest$ac_exeext 16911 if test "${ac_cv_search_des_set_odd_parity+set}" = set; then : 16912 break 16913fi 16914done 16915if test "${ac_cv_search_des_set_odd_parity+set}" = set; then : 16916 16917else 16918 ac_cv_search_des_set_odd_parity=no 16919fi 16920rm conftest.$ac_ext 16921LIBS=$ac_func_search_save_LIBS 16922fi 16923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_des_set_odd_parity" >&5 16924$as_echo "$ac_cv_search_des_set_odd_parity" >&6; } 16925ac_res=$ac_cv_search_des_set_odd_parity 16926if test "$ac_res" != no; then : 16927 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16928 16929fi 16930 16931 16932 # 16933 # com_err Heimdal K 0.3d 16934 # 16935 # com_err MIT K5 v1.2.2-beta1 16936 # 16937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing com_err" >&5 16938$as_echo_n "checking for library containing com_err... " >&6; } 16939if test "${ac_cv_search_com_err+set}" = set; then : 16940 $as_echo_n "(cached) " >&6 16941else 16942 ac_func_search_save_LIBS=$LIBS 16943cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16944/* end confdefs.h. */ 16945 16946/* Override any GCC internal prototype to avoid an error. 16947 Use char because int might match the return type of a GCC 16948 builtin and then its argument prototype would still apply. */ 16949#ifdef __cplusplus 16950extern "C" 16951#endif 16952char com_err (); 16953int 16954main () 16955{ 16956return com_err (); 16957 ; 16958 return 0; 16959} 16960_ACEOF 16961for ac_lib in '' com_err; do 16962 if test -z "$ac_lib"; then 16963 ac_res="none required" 16964 else 16965 ac_res=-l$ac_lib 16966 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16967 fi 16968 if ac_fn_c_try_link "$LINENO"; then : 16969 ac_cv_search_com_err=$ac_res 16970fi 16971rm -f core conftest.err conftest.$ac_objext \ 16972 conftest$ac_exeext 16973 if test "${ac_cv_search_com_err+set}" = set; then : 16974 break 16975fi 16976done 16977if test "${ac_cv_search_com_err+set}" = set; then : 16978 16979else 16980 ac_cv_search_com_err=no 16981fi 16982rm conftest.$ac_ext 16983LIBS=$ac_func_search_save_LIBS 16984fi 16985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_com_err" >&5 16986$as_echo "$ac_cv_search_com_err" >&6; } 16987ac_res=$ac_cv_search_com_err 16988if test "$ac_res" != no; then : 16989 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16990 16991fi 16992 16993 16994 # 16995 # asn1 Heimdal K 0.3d -lcom_err 16996 # 16997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing initialize_asn1_error_table_r" >&5 16998$as_echo_n "checking for library containing initialize_asn1_error_table_r... " >&6; } 16999if test "${ac_cv_search_initialize_asn1_error_table_r+set}" = set; then : 17000 $as_echo_n "(cached) " >&6 17001else 17002 ac_func_search_save_LIBS=$LIBS 17003cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17004/* end confdefs.h. */ 17005 17006/* Override any GCC internal prototype to avoid an error. 17007 Use char because int might match the return type of a GCC 17008 builtin and then its argument prototype would still apply. */ 17009#ifdef __cplusplus 17010extern "C" 17011#endif 17012char initialize_asn1_error_table_r (); 17013int 17014main () 17015{ 17016return initialize_asn1_error_table_r (); 17017 ; 17018 return 0; 17019} 17020_ACEOF 17021for ac_lib in '' asn1; do 17022 if test -z "$ac_lib"; then 17023 ac_res="none required" 17024 else 17025 ac_res=-l$ac_lib 17026 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17027 fi 17028 if ac_fn_c_try_link "$LINENO"; then : 17029 ac_cv_search_initialize_asn1_error_table_r=$ac_res 17030fi 17031rm -f core conftest.err conftest.$ac_objext \ 17032 conftest$ac_exeext 17033 if test "${ac_cv_search_initialize_asn1_error_table_r+set}" = set; then : 17034 break 17035fi 17036done 17037if test "${ac_cv_search_initialize_asn1_error_table_r+set}" = set; then : 17038 17039else 17040 ac_cv_search_initialize_asn1_error_table_r=no 17041fi 17042rm conftest.$ac_ext 17043LIBS=$ac_func_search_save_LIBS 17044fi 17045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_initialize_asn1_error_table_r" >&5 17046$as_echo "$ac_cv_search_initialize_asn1_error_table_r" >&6; } 17047ac_res=$ac_cv_search_initialize_asn1_error_table_r 17048if test "$ac_res" != no; then : 17049 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17050 17051fi 17052 17053 17054 # 17055 # resolv required, but not installed by Heimdal K 0.3d 17056 # 17057 # resolv MIT K5 1.2.2-beta1 17058 # Linux 2.2.17 17059 # 17060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __dn_expand" >&5 17061$as_echo_n "checking for library containing __dn_expand... " >&6; } 17062if test "${ac_cv_search___dn_expand+set}" = set; then : 17063 $as_echo_n "(cached) " >&6 17064else 17065 ac_func_search_save_LIBS=$LIBS 17066cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17067/* end confdefs.h. */ 17068 17069/* Override any GCC internal prototype to avoid an error. 17070 Use char because int might match the return type of a GCC 17071 builtin and then its argument prototype would still apply. */ 17072#ifdef __cplusplus 17073extern "C" 17074#endif 17075char __dn_expand (); 17076int 17077main () 17078{ 17079return __dn_expand (); 17080 ; 17081 return 0; 17082} 17083_ACEOF 17084for ac_lib in '' resolv; do 17085 if test -z "$ac_lib"; then 17086 ac_res="none required" 17087 else 17088 ac_res=-l$ac_lib 17089 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17090 fi 17091 if ac_fn_c_try_link "$LINENO"; then : 17092 ac_cv_search___dn_expand=$ac_res 17093fi 17094rm -f core conftest.err conftest.$ac_objext \ 17095 conftest$ac_exeext 17096 if test "${ac_cv_search___dn_expand+set}" = set; then : 17097 break 17098fi 17099done 17100if test "${ac_cv_search___dn_expand+set}" = set; then : 17101 17102else 17103 ac_cv_search___dn_expand=no 17104fi 17105rm conftest.$ac_ext 17106LIBS=$ac_func_search_save_LIBS 17107fi 17108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___dn_expand" >&5 17109$as_echo "$ac_cv_search___dn_expand" >&6; } 17110ac_res=$ac_cv_search___dn_expand 17111if test "$ac_res" != no; then : 17112 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17113 17114fi 17115 17116 17117 # 17118 # crypto Need by gssapi under FreeBSD 5.4 17119 # 17120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RC4" >&5 17121$as_echo_n "checking for library containing RC4... " >&6; } 17122if test "${ac_cv_search_RC4+set}" = set; then : 17123 $as_echo_n "(cached) " >&6 17124else 17125 ac_func_search_save_LIBS=$LIBS 17126cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17127/* end confdefs.h. */ 17128 17129/* Override any GCC internal prototype to avoid an error. 17130 Use char because int might match the return type of a GCC 17131 builtin and then its argument prototype would still apply. */ 17132#ifdef __cplusplus 17133extern "C" 17134#endif 17135char RC4 (); 17136int 17137main () 17138{ 17139return RC4 (); 17140 ; 17141 return 0; 17142} 17143_ACEOF 17144for ac_lib in '' crypto; do 17145 if test -z "$ac_lib"; then 17146 ac_res="none required" 17147 else 17148 ac_res=-l$ac_lib 17149 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17150 fi 17151 if ac_fn_c_try_link "$LINENO"; then : 17152 ac_cv_search_RC4=$ac_res 17153fi 17154rm -f core conftest.err conftest.$ac_objext \ 17155 conftest$ac_exeext 17156 if test "${ac_cv_search_RC4+set}" = set; then : 17157 break 17158fi 17159done 17160if test "${ac_cv_search_RC4+set}" = set; then : 17161 17162else 17163 ac_cv_search_RC4=no 17164fi 17165rm conftest.$ac_ext 17166LIBS=$ac_func_search_save_LIBS 17167fi 17168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RC4" >&5 17169$as_echo "$ac_cv_search_RC4" >&6; } 17170ac_res=$ac_cv_search_RC4 17171if test "$ac_res" != no; then : 17172 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17173 17174fi 17175 17176 17177 # 17178 # crypt Needed by roken under FreeBSD 4.6. 17179 # 17180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 17181$as_echo_n "checking for library containing crypt... " >&6; } 17182if test "${ac_cv_search_crypt+set}" = set; then : 17183 $as_echo_n "(cached) " >&6 17184else 17185 ac_func_search_save_LIBS=$LIBS 17186cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17187/* end confdefs.h. */ 17188 17189/* Override any GCC internal prototype to avoid an error. 17190 Use char because int might match the return type of a GCC 17191 builtin and then its argument prototype would still apply. */ 17192#ifdef __cplusplus 17193extern "C" 17194#endif 17195char crypt (); 17196int 17197main () 17198{ 17199return crypt (); 17200 ; 17201 return 0; 17202} 17203_ACEOF 17204for ac_lib in '' crypt; do 17205 if test -z "$ac_lib"; then 17206 ac_res="none required" 17207 else 17208 ac_res=-l$ac_lib 17209 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17210 fi 17211 if ac_fn_c_try_link "$LINENO"; then : 17212 ac_cv_search_crypt=$ac_res 17213fi 17214rm -f core conftest.err conftest.$ac_objext \ 17215 conftest$ac_exeext 17216 if test "${ac_cv_search_crypt+set}" = set; then : 17217 break 17218fi 17219done 17220if test "${ac_cv_search_crypt+set}" = set; then : 17221 17222else 17223 ac_cv_search_crypt=no 17224fi 17225rm conftest.$ac_ext 17226LIBS=$ac_func_search_save_LIBS 17227fi 17228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 17229$as_echo "$ac_cv_search_crypt" >&6; } 17230ac_res=$ac_cv_search_crypt 17231if test "$ac_res" != no; then : 17232 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17233 17234fi 17235 17236 17237 # 17238 # roken Heimdal K 0.3d -lresolv 17239 # roken FreeBSD 4.6 -lcrypt 17240 # 17241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing roken_gethostbyaddr" >&5 17242$as_echo_n "checking for library containing roken_gethostbyaddr... " >&6; } 17243if test "${ac_cv_search_roken_gethostbyaddr+set}" = set; then : 17244 $as_echo_n "(cached) " >&6 17245else 17246 ac_func_search_save_LIBS=$LIBS 17247cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17248/* end confdefs.h. */ 17249 17250/* Override any GCC internal prototype to avoid an error. 17251 Use char because int might match the return type of a GCC 17252 builtin and then its argument prototype would still apply. */ 17253#ifdef __cplusplus 17254extern "C" 17255#endif 17256char roken_gethostbyaddr (); 17257int 17258main () 17259{ 17260return roken_gethostbyaddr (); 17261 ; 17262 return 0; 17263} 17264_ACEOF 17265for ac_lib in '' roken; do 17266 if test -z "$ac_lib"; then 17267 ac_res="none required" 17268 else 17269 ac_res=-l$ac_lib 17270 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17271 fi 17272 if ac_fn_c_try_link "$LINENO"; then : 17273 ac_cv_search_roken_gethostbyaddr=$ac_res 17274fi 17275rm -f core conftest.err conftest.$ac_objext \ 17276 conftest$ac_exeext 17277 if test "${ac_cv_search_roken_gethostbyaddr+set}" = set; then : 17278 break 17279fi 17280done 17281if test "${ac_cv_search_roken_gethostbyaddr+set}" = set; then : 17282 17283else 17284 ac_cv_search_roken_gethostbyaddr=no 17285fi 17286rm conftest.$ac_ext 17287LIBS=$ac_func_search_save_LIBS 17288fi 17289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_gethostbyaddr" >&5 17290$as_echo "$ac_cv_search_roken_gethostbyaddr" >&6; } 17291ac_res=$ac_cv_search_roken_gethostbyaddr 17292if test "$ac_res" != no; then : 17293 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17294 17295fi 17296 17297 17298 # 17299 # k5crypto MIT K5 v1.2.2-beta1 17300 # 17301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing valid_enctype" >&5 17302$as_echo_n "checking for library containing valid_enctype... " >&6; } 17303if test "${ac_cv_search_valid_enctype+set}" = set; then : 17304 $as_echo_n "(cached) " >&6 17305else 17306 ac_func_search_save_LIBS=$LIBS 17307cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17308/* end confdefs.h. */ 17309 17310/* Override any GCC internal prototype to avoid an error. 17311 Use char because int might match the return type of a GCC 17312 builtin and then its argument prototype would still apply. */ 17313#ifdef __cplusplus 17314extern "C" 17315#endif 17316char valid_enctype (); 17317int 17318main () 17319{ 17320return valid_enctype (); 17321 ; 17322 return 0; 17323} 17324_ACEOF 17325for ac_lib in '' k5crypto; do 17326 if test -z "$ac_lib"; then 17327 ac_res="none required" 17328 else 17329 ac_res=-l$ac_lib 17330 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17331 fi 17332 if ac_fn_c_try_link "$LINENO"; then : 17333 ac_cv_search_valid_enctype=$ac_res 17334fi 17335rm -f core conftest.err conftest.$ac_objext \ 17336 conftest$ac_exeext 17337 if test "${ac_cv_search_valid_enctype+set}" = set; then : 17338 break 17339fi 17340done 17341if test "${ac_cv_search_valid_enctype+set}" = set; then : 17342 17343else 17344 ac_cv_search_valid_enctype=no 17345fi 17346rm conftest.$ac_ext 17347LIBS=$ac_func_search_save_LIBS 17348fi 17349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_valid_enctype" >&5 17350$as_echo "$ac_cv_search_valid_enctype" >&6; } 17351ac_res=$ac_cv_search_valid_enctype 17352if test "$ac_res" != no; then : 17353 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17354 17355fi 17356 17357 17358 # 17359 # gen ? ? ? Needed on Irix 5.3 with some 17360 # Irix 5.3 version of Kerberos. I'm not 17361 # sure which since Irix didn't 17362 # get any testing this time 17363 # around. Original comment: 17364 # 17365 # This is necessary on Irix 5.3, in order to link against libkrb5 -- 17366 # there, an_to_ln.o refers to things defined only in -lgen. 17367 # 17368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing compile" >&5 17369$as_echo_n "checking for library containing compile... " >&6; } 17370if test "${ac_cv_search_compile+set}" = set; then : 17371 $as_echo_n "(cached) " >&6 17372else 17373 ac_func_search_save_LIBS=$LIBS 17374cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17375/* end confdefs.h. */ 17376 17377/* Override any GCC internal prototype to avoid an error. 17378 Use char because int might match the return type of a GCC 17379 builtin and then its argument prototype would still apply. */ 17380#ifdef __cplusplus 17381extern "C" 17382#endif 17383char compile (); 17384int 17385main () 17386{ 17387return compile (); 17388 ; 17389 return 0; 17390} 17391_ACEOF 17392for ac_lib in '' gen; do 17393 if test -z "$ac_lib"; then 17394 ac_res="none required" 17395 else 17396 ac_res=-l$ac_lib 17397 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17398 fi 17399 if ac_fn_c_try_link "$LINENO"; then : 17400 ac_cv_search_compile=$ac_res 17401fi 17402rm -f core conftest.err conftest.$ac_objext \ 17403 conftest$ac_exeext 17404 if test "${ac_cv_search_compile+set}" = set; then : 17405 break 17406fi 17407done 17408if test "${ac_cv_search_compile+set}" = set; then : 17409 17410else 17411 ac_cv_search_compile=no 17412fi 17413rm conftest.$ac_ext 17414LIBS=$ac_func_search_save_LIBS 17415fi 17416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_compile" >&5 17417$as_echo "$ac_cv_search_compile" >&6; } 17418ac_res=$ac_cv_search_compile 17419if test "$ac_res" != no; then : 17420 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17421 17422fi 17423 17424 17425 # 17426 # krb5 ? ? ? -lgen -l??? 17427 # Irix 5.3 17428 # 17429 # krb5 MIT K5 v1.1.1 17430 # 17431 # krb5 MIT K5 v1.2.2-beta1 -lcrypto -lcom_err 17432 # Linux 2.2.17 17433 # 17434 # krb5 MIT K5 v1.2.2-beta1 -lcrypto -lcom_err -lresolv 17435 # 17436 # krb5 Heimdal K 0.3d -lasn1 -lroken -ldes 17437 # 17438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing krb5_free_context" >&5 17439$as_echo_n "checking for library containing krb5_free_context... " >&6; } 17440if test "${ac_cv_search_krb5_free_context+set}" = set; then : 17441 $as_echo_n "(cached) " >&6 17442else 17443 ac_func_search_save_LIBS=$LIBS 17444cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17445/* end confdefs.h. */ 17446 17447/* Override any GCC internal prototype to avoid an error. 17448 Use char because int might match the return type of a GCC 17449 builtin and then its argument prototype would still apply. */ 17450#ifdef __cplusplus 17451extern "C" 17452#endif 17453char krb5_free_context (); 17454int 17455main () 17456{ 17457return krb5_free_context (); 17458 ; 17459 return 0; 17460} 17461_ACEOF 17462for ac_lib in '' krb5; do 17463 if test -z "$ac_lib"; then 17464 ac_res="none required" 17465 else 17466 ac_res=-l$ac_lib 17467 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17468 fi 17469 if ac_fn_c_try_link "$LINENO"; then : 17470 ac_cv_search_krb5_free_context=$ac_res 17471fi 17472rm -f core conftest.err conftest.$ac_objext \ 17473 conftest$ac_exeext 17474 if test "${ac_cv_search_krb5_free_context+set}" = set; then : 17475 break 17476fi 17477done 17478if test "${ac_cv_search_krb5_free_context+set}" = set; then : 17479 17480else 17481 ac_cv_search_krb5_free_context=no 17482fi 17483rm conftest.$ac_ext 17484LIBS=$ac_func_search_save_LIBS 17485fi 17486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_krb5_free_context" >&5 17487$as_echo "$ac_cv_search_krb5_free_context" >&6; } 17488ac_res=$ac_cv_search_krb5_free_context 17489if test "$ac_res" != no; then : 17490 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17491 17492fi 17493 17494 17495 # 17496 # gssapi_krb5 Only lib needed with MIT K5 v1.2.1, so find it first in 17497 # order to prefer MIT Kerberos. If both MIT & Heimdal 17498 # Kerberos are installed and in the path, this will leave 17499 # some of the libraries above in LIBS unnecessarily, but 17500 # noone would ever do that, right? 17501 # 17502 # gssapi_krb5 MIT K5 v1.2.2-beta1 -lkrb5 17503 # 17504 # gssapi Heimdal K 0.3d -lkrb5 17505 # 17506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_import_name" >&5 17507$as_echo_n "checking for library containing gss_import_name... " >&6; } 17508if test "${ac_cv_search_gss_import_name+set}" = set; then : 17509 $as_echo_n "(cached) " >&6 17510else 17511 ac_func_search_save_LIBS=$LIBS 17512cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17513/* end confdefs.h. */ 17514 17515/* Override any GCC internal prototype to avoid an error. 17516 Use char because int might match the return type of a GCC 17517 builtin and then its argument prototype would still apply. */ 17518#ifdef __cplusplus 17519extern "C" 17520#endif 17521char gss_import_name (); 17522int 17523main () 17524{ 17525return gss_import_name (); 17526 ; 17527 return 0; 17528} 17529_ACEOF 17530for ac_lib in '' gssapi_krb5 gssapi; do 17531 if test -z "$ac_lib"; then 17532 ac_res="none required" 17533 else 17534 ac_res=-l$ac_lib 17535 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17536 fi 17537 if ac_fn_c_try_link "$LINENO"; then : 17538 ac_cv_search_gss_import_name=$ac_res 17539fi 17540rm -f core conftest.err conftest.$ac_objext \ 17541 conftest$ac_exeext 17542 if test "${ac_cv_search_gss_import_name+set}" = set; then : 17543 break 17544fi 17545done 17546if test "${ac_cv_search_gss_import_name+set}" = set; then : 17547 17548else 17549 ac_cv_search_gss_import_name=no 17550fi 17551rm conftest.$ac_ext 17552LIBS=$ac_func_search_save_LIBS 17553fi 17554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_import_name" >&5 17555$as_echo "$ac_cv_search_gss_import_name" >&6; } 17556ac_res=$ac_cv_search_gss_import_name 17557if test "$ac_res" != no; then : 17558 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17559 17560fi 17561 17562fi 17563 17564 17565 17566 17567# What remote shell transport should our client cvs default to using? 17568 17569# Check whether --with-rsh was given. 17570if test "${with_rsh+set}" = set; then : 17571 withval=$with_rsh; 17572else 17573 with_rsh="ssh rsh" 17574fi 17575 17576 17577if test no = "$with_rsh"; then 17578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed to find usable remote shell. Using 'rsh'." >&5 17579$as_echo "$as_me: WARNING: Failed to find usable remote shell. Using 'rsh'." >&2;} 17580 with_rsh=rsh 17581elif test yes = "$with_rsh"; then 17582 # Make --with-rsh mean the same thing as --with-rsh=rsh 17583 with_rsh=rsh 17584fi 17585 17586if echo $with_rsh |grep ^/ >/dev/null; then 17587 # If $with_rsh is an absolute path, issue a warning if the executable 17588 # doesn't exist or isn't usable, but then trust the user and use it 17589 # regardless 17590 with_default_rsh=$with_rsh 17591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a remote shell" >&5 17592$as_echo_n "checking for a remote shell... " >&6; } 17593 if ! test -f $with_rsh \ 17594 || ! test -x $with_rsh; then 17595 # warn the user that they may encounter problems 17596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $with_rsh is not a path to an executable file" >&5 17597$as_echo "$as_me: WARNING: $with_rsh is not a path to an executable file" >&2;} 17598 fi 17599else 17600 # Search for a remote shell 17601 for ac_prog in $with_rsh 17602do 17603 # Extract the first word of "$ac_prog", so it can be a program name with args. 17604set dummy $ac_prog; ac_word=$2 17605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17606$as_echo_n "checking for $ac_word... " >&6; } 17607if test "${ac_cv_prog_with_default_rsh+set}" = set; then : 17608 $as_echo_n "(cached) " >&6 17609else 17610 if test -n "$with_default_rsh"; then 17611 ac_cv_prog_with_default_rsh="$with_default_rsh" # Let the user override the test. 17612else 17613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17614for as_dir in $PATH 17615do 17616 IFS=$as_save_IFS 17617 test -z "$as_dir" && as_dir=. 17618 for ac_exec_ext in '' $ac_executable_extensions; do 17619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17620 ac_cv_prog_with_default_rsh="$ac_prog" 17621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17622 break 2 17623 fi 17624done 17625 done 17626IFS=$as_save_IFS 17627 17628fi 17629fi 17630with_default_rsh=$ac_cv_prog_with_default_rsh 17631if test -n "$with_default_rsh"; then 17632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_default_rsh" >&5 17633$as_echo "$with_default_rsh" >&6; } 17634else 17635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17636$as_echo "no" >&6; } 17637fi 17638 17639 17640 test -n "$with_default_rsh" && break 17641done 17642test -n "$with_default_rsh" || with_default_rsh=""rsh"" 17643 17644fi 17645 17646 17647cat >>confdefs.h <<_ACEOF 17648#define RSH_DFLT "$with_default_rsh" 17649_ACEOF 17650 17651RSH_DFLT=$with_default_rsh 17652 17653 17654 17655 17656 17657# Let the confiscator request a specific editor 17658 17659# Check whether --with-editor was given. 17660if test "${with_editor+set}" = set; then : 17661 withval=$with_editor; 17662else 17663 with_editor=yes 17664fi 17665 17666 17667# If --with-editor was supplied with an argument, let it override $EDITOR from 17668# the user's environment. We need to unset EDITOR here because AC_CHECK_PROGS 17669# will let the value of EDITOR ride when it is set rather than searching. We 17670# ignore the --without-editor case since it will be caught below. 17671if test -n "$EDITOR" && test yes != $with_editor; then 17672 { EDITOR=; unset EDITOR;} 17673fi 17674 17675# Set the default when --with-editor wasn't supplied or when it was supplied 17676# without an argument. 17677if test yes = $with_editor; then 17678 with_editor="vim vi emacs nano pico edit" 17679fi 17680 17681if echo $with_editor |grep ^/ >/dev/null; then 17682 # If $with_editor is an absolute path, issue a warning if the executable 17683 # doesn't exist or isn't usable, but then trust the user and use it 17684 # regardless 17685 EDITOR=$with_editor 17686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an editor" >&5 17687$as_echo_n "checking for an editor... " >&6; } 17688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EDITOR" >&5 17689$as_echo "$EDITOR" >&6; } 17690 if ! test -f $with_editor \ 17691 || ! test -x $with_editor; then 17692 # warn the user that they may encounter problems 17693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$with_editor' is not a path to an executable file" >&5 17694$as_echo "$as_me: WARNING: \`$with_editor' is not a path to an executable file" >&2;} 17695 fi 17696elif test no != "${with_editor}"; then 17697 # Search for an editor 17698 for ac_prog in $with_editor 17699do 17700 # Extract the first word of "$ac_prog", so it can be a program name with args. 17701set dummy $ac_prog; ac_word=$2 17702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17703$as_echo_n "checking for $ac_word... " >&6; } 17704if test "${ac_cv_prog_EDITOR+set}" = set; then : 17705 $as_echo_n "(cached) " >&6 17706else 17707 if test -n "$EDITOR"; then 17708 ac_cv_prog_EDITOR="$EDITOR" # Let the user override the test. 17709else 17710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17711for as_dir in $PATH 17712do 17713 IFS=$as_save_IFS 17714 test -z "$as_dir" && as_dir=. 17715 for ac_exec_ext in '' $ac_executable_extensions; do 17716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17717 ac_cv_prog_EDITOR="$ac_prog" 17718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17719 break 2 17720 fi 17721done 17722 done 17723IFS=$as_save_IFS 17724 17725fi 17726fi 17727EDITOR=$ac_cv_prog_EDITOR 17728if test -n "$EDITOR"; then 17729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EDITOR" >&5 17730$as_echo "$EDITOR" >&6; } 17731else 17732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17733$as_echo "no" >&6; } 17734fi 17735 17736 17737 test -n "$EDITOR" && break 17738done 17739test -n "$EDITOR" || EDITOR="no" 17740 17741 if test no = "${EDITOR}"; then 17742 as_fn_error " 17743 Failed to find a text file editor. CVS cannot be compiled 17744 without a default log message editor. Searched for 17745 \`$with_editor'. Try \`configure --with-editor'." "$LINENO" 5 17746 fi 17747else 17748 as_fn_error " 17749 CVS cannot be compiled without a default log message editor. 17750 Try \`configure --with-editor'." "$LINENO" 5 17751fi 17752 17753 17754cat >>confdefs.h <<_ACEOF 17755#define EDITOR_DFLT "$EDITOR" 17756_ACEOF 17757 17758 17759 17760 17761 17762 17763# Check whether --with-hardcoded-pam-service-name was given. 17764if test "${with_hardcoded_pam_service_name+set}" = set; then : 17765 withval=$with_hardcoded_pam_service_name; 17766else 17767 with_hardcoded_pam_service_name=cvs 17768fi 17769 17770 17771if test "x$with_hardcoded_pam_service_name" = xno || 17772 test "x$with_hardcoded_pam_service_name" = xprogram_name; then 17773 17774$as_echo "#define PAM_SERVICE_NAME program_name" >>confdefs.h 17775 17776else 17777 if test x"$with_hardcoded_pam_service_name" = xyes; then 17778 with_hardcoded_pam_service_name=cvs 17779 fi 17780 cat >>confdefs.h <<_ACEOF 17781#define PAM_SERVICE_NAME "$with_hardcoded_pam_service_name" 17782_ACEOF 17783 17784fi 17785 17786 17787 17788 17789# Check whether --with-tmpdir was given. 17790if test "${with_tmpdir+set}" = set; then : 17791 withval=$with_tmpdir; 17792fi 17793 17794 17795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for temporary directory" >&5 17796$as_echo_n "checking for temporary directory... " >&6; } 17797if test -z "$with_tmpdir" || test yes = "$with_tmpdir"; then 17798 for with_tmpdir in /tmp /var/tmp no; do 17799 if test -d "$with_tmpdir" && test -x "$with_tmpdir" \ 17800 && test -w "$with_tmpdir" && test -r "$with_tmpdir"; then 17801 break 17802 fi 17803 done 17804 if test no = "$with_tmpdir"; then 17805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed to find usable temporary directory. Using '/tmp'." >&5 17806$as_echo "$as_me: WARNING: Failed to find usable temporary directory. Using '/tmp'." >&2;} 17807 with_tmpdir=/tmp 17808 fi 17809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tmpdir" >&5 17810$as_echo "$with_tmpdir" >&6; } 17811elif ! echo "$with_tmpdir" |grep '^[\\/]'; then 17812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tmpdir" >&5 17813$as_echo "$with_tmpdir" >&6; } 17814 as_fn_error "--with-tmpdir requires an absolute path." "$LINENO" 5 17815elif ! test -d "$with_tmpdir" || ! test -x "$with_tmpdir" \ 17816 || ! test -w "$with_tmpdir" || ! test -r "$with_tmpdir"; then 17817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tmpdir" >&5 17818$as_echo "$with_tmpdir" >&6; } 17819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: User supplied temporary directory ('$with_tmpdir') does not 17820 exist or lacks sufficient permissions for read/write." >&5 17821$as_echo "$as_me: WARNING: User supplied temporary directory ('$with_tmpdir') does not 17822 exist or lacks sufficient permissions for read/write." >&2;} 17823fi 17824 17825 17826cat >>confdefs.h <<_ACEOF 17827#define TMPDIR_DFLT "$with_tmpdir" 17828_ACEOF 17829 17830 17831 17832 17833 17834 17835# Check whether --with-umask was given. 17836if test "${with_umask+set}" = set; then : 17837 withval=$with_umask; 17838fi 17839 17840 17841if test -z "$with_umask" || test yes = "$with_umask"; then 17842 with_umask=002 17843elif test no = "$with_umask"; then 17844 with_umask=000 17845fi 17846 17847 17848cat >>confdefs.h <<_ACEOF 17849#define UMASK_DFLT $with_umask 17850_ACEOF 17851 17852 17853 17854 17855# Check whether --with-cvs-admin-group was given. 17856if test "${with_cvs_admin_group+set}" = set; then : 17857 withval=$with_cvs_admin_group; 17858else 17859 with_cvs_admin_group=cvsadmin 17860fi 17861 17862 17863if test yes = "$with_cvs_admin_group"; then 17864 with_cvs_admin_group=cvsadmin 17865fi 17866if test no != "$with_cvs_admin_group"; then 17867 17868cat >>confdefs.h <<_ACEOF 17869#define CVS_ADMIN_GROUP "$with_cvs_admin_group" 17870_ACEOF 17871 17872fi 17873 17874 17875# Check whether --enable-cvs-ndbm was given. 17876if test "${enable_cvs_ndbm+set}" = set; then : 17877 enableval=$enable_cvs_ndbm; 17878else 17879 enable_cvs_ndbm=yes 17880fi 17881 17882if test no != "$enable_cvs_ndbm"; then 17883 17884$as_echo "#define MY_NDBM 1" >>confdefs.h 17885 17886fi 17887 17888 17889 17890 17891 17892 17893 17894 17895 17896# Check for options requesting client and server feature. If none are 17897# given and we have connect(), we want the full client & server arrangement. 17898# Check whether --enable-client was given. 17899if test "${enable_client+set}" = set; then : 17900 enableval=$enable_client; 17901else 17902 enable_client=$ac_cv_search_connect 17903fi 17904 17905if test no != "$enable_client"; then 17906 17907$as_echo "#define CLIENT_SUPPORT 1" >>confdefs.h 17908 17909fi 17910 17911 17912 17913# Check whether --enable-password-authenticated-client was given. 17914if test "${enable_password_authenticated_client+set}" = set; then : 17915 enableval=$enable_password_authenticated_client; 17916else 17917 enable_password_authenticated_client=$enable_client 17918fi 17919 17920 17921if test xno != "x$enable_password_authenticated_client"; then 17922 if test xno != "x$enable_client"; then 17923 17924$as_echo "#define AUTH_CLIENT_SUPPORT 1" >>confdefs.h 17925 17926 else 17927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-password-authenticated-client is meaningless with 17928 the CVS client disabled (--disable-client)" >&5 17929$as_echo "$as_me: WARNING: --enable-password-authenticated-client is meaningless with 17930 the CVS client disabled (--disable-client)" >&2;} 17931 fi 17932fi 17933 17934 17935 17936 17937# Check whether --enable-server was given. 17938if test "${enable_server+set}" = set; then : 17939 enableval=$enable_server; 17940else 17941 enable_server=$ac_cv_search_connect 17942fi 17943 17944 17945if test no != "$enable_server"; then 17946 17947$as_echo "#define SERVER_SUPPORT 1" >>confdefs.h 17948 17949 17950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 17951$as_echo_n "checking for library containing crypt... " >&6; } 17952if test "${ac_cv_search_crypt+set}" = set; then : 17953 $as_echo_n "(cached) " >&6 17954else 17955 ac_func_search_save_LIBS=$LIBS 17956cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17957/* end confdefs.h. */ 17958 17959/* Override any GCC internal prototype to avoid an error. 17960 Use char because int might match the return type of a GCC 17961 builtin and then its argument prototype would still apply. */ 17962#ifdef __cplusplus 17963extern "C" 17964#endif 17965char crypt (); 17966int 17967main () 17968{ 17969return crypt (); 17970 ; 17971 return 0; 17972} 17973_ACEOF 17974for ac_lib in '' crypt; do 17975 if test -z "$ac_lib"; then 17976 ac_res="none required" 17977 else 17978 ac_res=-l$ac_lib 17979 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17980 fi 17981 if ac_fn_c_try_link "$LINENO"; then : 17982 ac_cv_search_crypt=$ac_res 17983fi 17984rm -f core conftest.err conftest.$ac_objext \ 17985 conftest$ac_exeext 17986 if test "${ac_cv_search_crypt+set}" = set; then : 17987 break 17988fi 17989done 17990if test "${ac_cv_search_crypt+set}" = set; then : 17991 17992else 17993 ac_cv_search_crypt=no 17994fi 17995rm conftest.$ac_ext 17996LIBS=$ac_func_search_save_LIBS 17997fi 17998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 17999$as_echo "$ac_cv_search_crypt" >&6; } 18000ac_res=$ac_cv_search_crypt 18001if test "$ac_res" != no; then : 18002 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18003 18004$as_echo "#define HAVE_CRYPT 1" >>confdefs.h 18005 18006 18007$as_echo "#define AUTH_SERVER_SUPPORT 1" >>confdefs.h 18008 18009fi 18010 18011 # Check whether --enable-server-flow-control was given. 18012if test "${enable_server_flow_control+set}" = set; then : 18013 enableval=$enable_server_flow_control; if test yes = $enable_server_flow_control; then 18014 enable_server_flow_control=1M,2M 18015 fi 18016else 18017 enable_server_flow_control=1M,2M 18018fi 18019 18020 if test no != $enable_server_flow_control; then 18021 ccvs_lwm=`expr "$enable_server_flow_control" : '\(.*\),'` 18022 ccvs_hwm=`expr "$enable_server_flow_control" : '.*,\(.*\)'` 18023 ccvs_lwm_E=`expr "$ccvs_lwm" : '[0-9][0-9]*\(.*\)'` 18024 ccvs_lwm=`expr "$ccvs_lwm" : '\([0-9][0-9]*\)'` 18025 test "" != "$ccvs_lwm" || ccvs_lwm_E="?" 18026 case $ccvs_lwm_E in 18027 G) ccvs_lwm="$ccvs_lwm * 1024 * 1024 * 1024";; 18028 M) ccvs_lwm="$ccvs_lwm * 1024 * 1024";; 18029 k) ccvs_lwm="$ccvs_lwm * 1024";; 18030 b | '') ;; 18031 *) as_fn_error "Can't parse argument to --enable-server-flow-control 18032 ('$enable_server_flow_control') as <lwm>,<hwm>" "$LINENO" 5 18033 esac 18034 ccvs_hwm_E=`expr "$ccvs_hwm" : '[0-9][0-9]*\(.*\)'` 18035 ccvs_hwm=`expr "$ccvs_hwm" : '\([0-9][0-9]*\).*'` 18036 test "" != "$ccvs_hwm" || ccvs_hwm_E="?" 18037 case $ccvs_hwm_E in 18038 G) ccvs_hwm="$ccvs_hwm * 1024 * 1024 * 1024";; 18039 M) ccvs_hwm="$ccvs_hwm * 1024 * 1024";; 18040 k) ccvs_hwm="$ccvs_hwm * 1024";; 18041 b | '') ccvs_hwm="$ccvs_hwm";; 18042 *) as_fn_error "Can't parse argument to --enable-server-flow-control 18043 ('$enable_server_flow_control') as <lwm>,<hwm>" "$LINENO" 5 18044 esac 18045 18046 18047$as_echo "#define SERVER_FLOWCONTROL 1" >>confdefs.h 18048 18049 18050cat >>confdefs.h <<_ACEOF 18051#define SERVER_LO_WATER ($ccvs_lwm) 18052_ACEOF 18053 18054 18055cat >>confdefs.h <<_ACEOF 18056#define SERVER_HI_WATER ($ccvs_hwm) 18057_ACEOF 18058 18059 fi # enable_server_flow_control 18060fi # enable_server 18061 18062 18063 18064 18065# Check whether --enable-proxy was given. 18066if test "${enable_proxy+set}" = set; then : 18067 enableval=$enable_proxy; 18068else 18069 if test xno != "x$enable_client" && test xno != "x$enable_server"; then 18070 enable_proxy=yes 18071 else 18072 enable_proxy=no 18073 fi 18074fi 18075 18076 18077if test no != "$enable_proxy"; then 18078 if test xno = "x$enable_client" || test xno = "x$enable_server"; then 18079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-proxy is meaningless when either the CVS client or the 18080 CVS server is disabled (--disable-client and --disable-server)." >&5 18081$as_echo "$as_me: WARNING: --enable-proxy is meaningless when either the CVS client or the 18082 CVS server is disabled (--disable-client and --disable-server)." >&2;} 18083 else 18084 18085$as_echo "#define PROXY_SUPPORT 1" >>confdefs.h 18086 18087 fi 18088fi 18089 18090 18091 18092# Check whether --enable-pam was given. 18093if test "${enable_pam+set}" = set; then : 18094 enableval=$enable_pam; 18095else 18096 enable_pam=no 18097 18098fi 18099 18100 18101if test yes = $enable_pam; then 18102 ac_pam_header_available= 18103 18104 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default" 18105if test "x$ac_cv_header_security_pam_appl_h" = x""yes; then : 18106 18107 18108$as_echo "#define HAVE_SECURITY_PAM_APPL_H 1" >>confdefs.h 18109 18110 ac_pam_header_available=1 18111fi 18112 18113 18114 18115 if test -z "$ac_pam_header_available"; then 18116 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default" 18117if test "x$ac_cv_header_pam_pam_appl_h" = x""yes; then : 18118 18119 18120$as_echo "#define HAVE_PAM_PAM_APPL_H 1" >>confdefs.h 18121 18122 ac_pam_header_available=1 18123fi 18124 18125 18126 fi 18127 18128 if test -z "$ac_pam_header_available"; then 18129 as_fn_error "Could not find PAM headers" "$LINENO" 5 18130 else 18131 18132$as_echo "#define HAVE_PAM 1" >>confdefs.h 18133 18134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5 18135$as_echo_n "checking for pam_start in -lpam... " >&6; } 18136if test "${ac_cv_lib_pam_pam_start+set}" = set; then : 18137 $as_echo_n "(cached) " >&6 18138else 18139 ac_check_lib_save_LIBS=$LIBS 18140LIBS="-lpam $LIBS" 18141cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18142/* end confdefs.h. */ 18143 18144/* Override any GCC internal prototype to avoid an error. 18145 Use char because int might match the return type of a GCC 18146 builtin and then its argument prototype would still apply. */ 18147#ifdef __cplusplus 18148extern "C" 18149#endif 18150char pam_start (); 18151int 18152main () 18153{ 18154return pam_start (); 18155 ; 18156 return 0; 18157} 18158_ACEOF 18159if ac_fn_c_try_link "$LINENO"; then : 18160 ac_cv_lib_pam_pam_start=yes 18161else 18162 ac_cv_lib_pam_pam_start=no 18163fi 18164rm -f core conftest.err conftest.$ac_objext \ 18165 conftest$ac_exeext conftest.$ac_ext 18166LIBS=$ac_check_lib_save_LIBS 18167fi 18168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5 18169$as_echo "$ac_cv_lib_pam_pam_start" >&6; } 18170if test "x$ac_cv_lib_pam_pam_start" = x""yes; then : 18171 LIBS="${LIBS} -lpam" 18172else 18173 as_fn_error "Could not find PAM libraries but the headers exist. 18174 Give the --disable-pam option to compile without PAM support (or fix 18175 your broken configuration)" "$LINENO" 5 18176 18177fi 18178 18179 fi 18180fi 18181 18182 18183 18184 18185# Check whether --enable-case-sensitivity was given. 18186if test "${enable_case_sensitivity+set}" = set; then : 18187 enableval=$enable_case_sensitivity; case "$enable_case_sensitivity" in 18188 yes | no | auto) ;; 18189 *) 18190 as_fn_error "Unrecognized argument to --enable-case-sensitivity: \`$enable_case_sensitivity'. Acceptable values are \`yes', \`no', and \`auto'." "$LINENO" 5 18191 ;; 18192 esac 18193else 18194 enable_case_sensitivity=auto 18195fi 18196 18197 18198acx_forced=' (forced)' 18199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a case sensitive file system" >&5 18200$as_echo_n "checking for a case sensitive file system... " >&6; } 18201if test $enable_case_sensitivity = auto; then 18202 if test "${acx_cv_case_sensitive+set}" = set; then : 18203 $as_echo_n "(cached) " >&6 18204else 18205 rm -f ac_TEST_filenames_CASE_sensitive 18206 echo foo >ac_test_filenames_case_sensitive 18207 if test -f ac_TEST_filenames_CASE_sensitive; then 18208 acx_cv_case_sensitive=no 18209 else 18210 acx_cv_case_sensitive=yes 18211 fi 18212 rm ac_test_filenames_case_sensitive 18213 18214fi 18215 18216 enable_case_sensitivity=$acx_cv_case_sensitive 18217 acx_forced= 18218fi 18219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_case_sensitivity$acx_forced" >&5 18220$as_echo "$enable_case_sensitivity$acx_forced" >&6; } 18221if test $enable_case_sensitivity = no; then 18222 18223$as_echo "#define FILENAMES_CASE_INSENSITIVE 1" >>confdefs.h 18224 18225 case " $LIBOBJS " in 18226 *" fncase.$ac_objext "* ) ;; 18227 *) LIBOBJS="$LIBOBJS fncase.$ac_objext" 18228 ;; 18229esac 18230 18231fi 18232 18233 18234 18235 18236# Check whether --enable-encryption was given. 18237if test "${enable_encryption+set}" = set; then : 18238 enableval=$enable_encryption; 18239else 18240 enable_encryption=no 18241fi 18242 18243if test "x$enable_encryption" = xyes; then 18244 if test xno = "x$with_client" && test xno = "x$with_server"; then 18245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-encryption is meaningless when neither the CVS client 18246 nor the CVS server is enabled (--disable-client and --disable-server)." >&5 18247$as_echo "$as_me: WARNING: --enable-encryption is meaningless when neither the CVS client 18248 nor the CVS server is enabled (--disable-client and --disable-server)." >&2;} 18249 else 18250 18251$as_echo "#define ENCRYPTION 1" >>confdefs.h 18252 18253 fi 18254fi 18255 18256 18257 18258 18259# Check whether --enable-force-editor was given. 18260if test "${enable_force_editor+set}" = set; then : 18261 enableval=$enable_force_editor; 18262else 18263 enable_force_editor=no 18264fi 18265 18266 18267if test yes = "$enable_force_editor"; then 18268 18269$as_echo "#define FORCE_USE_EDITOR 1" >>confdefs.h 18270 18271fi 18272 18273 18274 18275 18276# Check for options requesting client and server feature. If none are 18277# given and we have connect(), we want the full client & server arrangement. 18278# Check whether --enable-lock-compatibility was given. 18279if test "${enable_lock_compatibility+set}" = set; then : 18280 enableval=$enable_lock_compatibility; 18281else 18282 enable_lock_compatibility=yes 18283fi 18284 18285 18286if test x$enable_lock_compatibility = xyes; then 18287 18288$as_echo "#define LOCK_COMPATIBILITY 1" >>confdefs.h 18289 18290fi 18291 18292 18293 18294 18295# Check whether --enable-rootcommit was given. 18296if test "${enable_rootcommit+set}" = set; then : 18297 enableval=$enable_rootcommit; 18298else 18299 enable_rootcommit=no 18300fi 18301 18302if test "$enable_rootcommit" = no; then 18303 18304$as_echo "#define CVS_BADROOT 1" >>confdefs.h 18305 18306fi 18307 18308 18309# Check whether --enable-old-info-support was given. 18310if test "${enable_old_info_support+set}" = set; then : 18311 enableval=$enable_old_info_support; 18312else 18313 enable_old_info_format_support=yes 18314fi 18315 18316if test "$enable_old_info_format_support" = yes; then 18317 18318$as_echo "#define SUPPORT_OLD_INFO_FMT_STRINGS 1" >>confdefs.h 18319 18320fi 18321 18322 18323 18324 18325# Check whether --enable-config-override was given. 18326if test "${enable_config_override+set}" = set; then : 18327 enableval=$enable_config_override; 18328else 18329 # $sysconfdir may still contain variable references. By default, this will 18330 # be to $prefix, and $prefix won't be set to its default value until later. 18331 # Compromise without setting $prefix for the rest of the file. 18332 cvs_save_prefix=$prefix 18333 if test "X$prefix" = XNONE; then 18334 prefix=$ac_prefix_default 18335 fi 18336 eval enable_config_override=`echo $sysconfdir/cvs.conf,$sysconfdir/cvs/` 18337 prefix=$cvs_save_prefix 18338fi 18339 18340 18341if test x"$enable_config_override" = xyes; then 18342 enable_config_override=/ 18343fi 18344 18345if test x"$enable_config_override" = xno; then :; else 18346 save_IFS=$IFS 18347 IFS=, 18348 arrayinit="" 18349 for path in $enable_config_override; do 18350 IFS=$save_IFS 18351 case "$path" in 18352 [\\/$]* | ?:[\\/]* ) 18353 arrayinit="$arrayinit\"$path\", " 18354 ;; 18355 *) as_fn_error "expected comma separated list of absolute directory 18356 names for --enable-config-override, or \`no', not: 18357 \`$enable_config_override' 18358 (\`$path' invalid.)" "$LINENO" 5;; 18359 esac 18360 done 18361 arrayinit="${arrayinit}NULL" 18362 18363 18364cat >>confdefs.h <<_ACEOF 18365#define ALLOW_CONFIG_OVERRIDE $arrayinit 18366_ACEOF 18367 18368fi 18369 18370 18371 18372 18373 18374 18375 18376 18377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin32" >&5 18378$as_echo_n "checking for cygwin32... " >&6; } 18379if test "${ccvs_cv_sys_cygwin32+set}" = set; then : 18380 $as_echo_n "(cached) " >&6 18381else 18382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18383/* end confdefs.h. */ 18384 18385int 18386main () 18387{ 18388return __CYGWIN32__; 18389 ; 18390 return 0; 18391} 18392_ACEOF 18393if ac_fn_c_try_compile "$LINENO"; then : 18394 ccvs_cv_sys_cygwin32=yes 18395else 18396 ccvs_cv_sys_cygwin32=no 18397fi 18398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18399fi 18400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ccvs_cv_sys_cygwin32" >&5 18401$as_echo "$ccvs_cv_sys_cygwin32" >&6; } 18402if test $ccvs_cv_sys_cygwin32 = yes; then 18403 LIBS="$LIBS -ladvapi32" 18404 18405 18406$as_echo "#define UTIME_EXPECTS_WRITABLE 1" >>confdefs.h 18407 18408 18409 18410$as_echo "#define USE_SETMODE_STDOUT 1" >>confdefs.h 18411 18412 18413$as_echo "#define HAVE_SETMODE 1" >>confdefs.h 18414 18415fi 18416 18417ac_config_files="$ac_config_files contrib/validate_repo" 18418 18419ac_config_files="$ac_config_files contrib/clmerge" 18420 18421ac_config_files="$ac_config_files contrib/cln_hist" 18422 18423ac_config_files="$ac_config_files contrib/commit_prep" 18424 18425ac_config_files="$ac_config_files contrib/cvs_acls" 18426 18427ac_config_files="$ac_config_files contrib/log" 18428 18429ac_config_files="$ac_config_files contrib/log_accum" 18430 18431ac_config_files="$ac_config_files contrib/mfpipe" 18432 18433ac_config_files="$ac_config_files contrib/pvcs2rcs" 18434 18435ac_config_files="$ac_config_files contrib/rcs2log:contrib/rcs2log.sh" 18436 18437ac_config_files="$ac_config_files contrib/rcslock" 18438 18439ac_config_files="$ac_config_files contrib/sccs2rcs" 18440 18441ac_config_files="$ac_config_files doc/mkman:doc/mkman.pl" 18442 18443ac_config_files="$ac_config_files src/cvsbug" 18444 18445 18446ac_config_files="$ac_config_files Makefile contrib/Makefile contrib/pam/Makefile cvs.spec diff/Makefile doc/Makefile doc/i18n/Makefile doc/i18n/pt_BR/Makefile lib/Makefile maint-aux/Makefile man/Makefile src/Makefile src/sanity.config.sh" 18447 18448 18449 18450cat >confcache <<\_ACEOF 18451# This file is a shell script that caches the results of configure 18452# tests run on this system so they can be shared between configure 18453# scripts and configure runs, see configure's option --config-cache. 18454# It is not useful on other systems. If it contains results you don't 18455# want to keep, you may remove or edit it. 18456# 18457# config.status only pays attention to the cache file if you give it 18458# the --recheck option to rerun configure. 18459# 18460# `ac_cv_env_foo' variables (set or unset) will be overridden when 18461# loading this file, other *unset* `ac_cv_foo' will be assigned the 18462# following values. 18463 18464_ACEOF 18465 18466# The following way of writing the cache mishandles newlines in values, 18467# but we know of no workaround that is simple, portable, and efficient. 18468# So, we kill variables containing newlines. 18469# Ultrix sh set writes to stderr and can't be redirected directly, 18470# and sets the high bit in the cache file unless we assign to the vars. 18471( 18472 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18473 eval ac_val=\$$ac_var 18474 case $ac_val in #( 18475 *${as_nl}*) 18476 case $ac_var in #( 18477 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18478$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18479 esac 18480 case $ac_var in #( 18481 _ | IFS | as_nl) ;; #( 18482 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18483 *) { eval $ac_var=; unset $ac_var;} ;; 18484 esac ;; 18485 esac 18486 done 18487 18488 (set) 2>&1 | 18489 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18490 *${as_nl}ac_space=\ *) 18491 # `set' does not quote correctly, so add quotes: double-quote 18492 # substitution turns \\\\ into \\, and sed turns \\ into \. 18493 sed -n \ 18494 "s/'/'\\\\''/g; 18495 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18496 ;; #( 18497 *) 18498 # `set' quotes correctly as required by POSIX, so do not add quotes. 18499 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18500 ;; 18501 esac | 18502 sort 18503) | 18504 sed ' 18505 /^ac_cv_env_/b end 18506 t clear 18507 :clear 18508 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18509 t end 18510 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18511 :end' >>confcache 18512if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18513 if test -w "$cache_file"; then 18514 test "x$cache_file" != "x/dev/null" && 18515 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18516$as_echo "$as_me: updating cache $cache_file" >&6;} 18517 cat confcache >$cache_file 18518 else 18519 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18520$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18521 fi 18522fi 18523rm -f confcache 18524 18525test "x$prefix" = xNONE && prefix=$ac_default_prefix 18526# Let make expand exec_prefix. 18527test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18528 18529DEFS=-DHAVE_CONFIG_H 18530 18531ac_libobjs= 18532ac_ltlibobjs= 18533for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18534 # 1. Remove the extension, and $U if already installed. 18535 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18536 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18537 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18538 # will be set to the directory where LIBOBJS objects are built. 18539 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18540 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18541done 18542LIBOBJS=$ac_libobjs 18543 18544LTLIBOBJS=$ac_ltlibobjs 18545 18546 18547 if test -n "$EXEEXT"; then 18548 am__EXEEXT_TRUE= 18549 am__EXEEXT_FALSE='#' 18550else 18551 am__EXEEXT_TRUE='#' 18552 am__EXEEXT_FALSE= 18553fi 18554 18555if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 18556 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. 18557Usually this means the macro was only invoked conditionally." "$LINENO" 5 18558fi 18559if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18560 as_fn_error "conditional \"AMDEP\" was never defined. 18561Usually this means the macro was only invoked conditionally." "$LINENO" 5 18562fi 18563if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18564 as_fn_error "conditional \"am__fastdepCC\" was never defined. 18565Usually this means the macro was only invoked conditionally." "$LINENO" 5 18566fi 18567if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18568 as_fn_error "conditional \"am__fastdepCC\" was never defined. 18569Usually this means the macro was only invoked conditionally." "$LINENO" 5 18570fi 18571if test -z "${MAKE_TARGETS_IN_VPATH_TRUE}" && test -z "${MAKE_TARGETS_IN_VPATH_FALSE}"; then 18572 as_fn_error "conditional \"MAKE_TARGETS_IN_VPATH\" was never defined. 18573Usually this means the macro was only invoked conditionally." "$LINENO" 5 18574fi 18575 18576 18577: ${CONFIG_STATUS=./config.status} 18578ac_write_fail=0 18579ac_clean_files_save=$ac_clean_files 18580ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18581{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18582$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18583as_write_fail=0 18584cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18585#! $SHELL 18586# Generated by $as_me. 18587# Run this file to recreate the current configuration. 18588# Compiler output produced by configure, useful for debugging 18589# configure, is in config.log if it exists. 18590 18591debug=false 18592ac_cs_recheck=false 18593ac_cs_silent=false 18594 18595SHELL=\${CONFIG_SHELL-$SHELL} 18596export SHELL 18597_ASEOF 18598cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18599## -------------------- ## 18600## M4sh Initialization. ## 18601## -------------------- ## 18602 18603# Be more Bourne compatible 18604DUALCASE=1; export DUALCASE # for MKS sh 18605if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18606 emulate sh 18607 NULLCMD=: 18608 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18609 # is contrary to our usage. Disable this feature. 18610 alias -g '${1+"$@"}'='"$@"' 18611 setopt NO_GLOB_SUBST 18612else 18613 case `(set -o) 2>/dev/null` in #( 18614 *posix*) : 18615 set -o posix ;; #( 18616 *) : 18617 ;; 18618esac 18619fi 18620 18621 18622as_nl=' 18623' 18624export as_nl 18625# Printing a long string crashes Solaris 7 /usr/bin/printf. 18626as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18627as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18628as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18629# Prefer a ksh shell builtin over an external printf program on Solaris, 18630# but without wasting forks for bash or zsh. 18631if test -z "$BASH_VERSION$ZSH_VERSION" \ 18632 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18633 as_echo='print -r --' 18634 as_echo_n='print -rn --' 18635elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18636 as_echo='printf %s\n' 18637 as_echo_n='printf %s' 18638else 18639 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18640 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18641 as_echo_n='/usr/ucb/echo -n' 18642 else 18643 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18644 as_echo_n_body='eval 18645 arg=$1; 18646 case $arg in #( 18647 *"$as_nl"*) 18648 expr "X$arg" : "X\\(.*\\)$as_nl"; 18649 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18650 esac; 18651 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18652 ' 18653 export as_echo_n_body 18654 as_echo_n='sh -c $as_echo_n_body as_echo' 18655 fi 18656 export as_echo_body 18657 as_echo='sh -c $as_echo_body as_echo' 18658fi 18659 18660# The user is always right. 18661if test "${PATH_SEPARATOR+set}" != set; then 18662 PATH_SEPARATOR=: 18663 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18664 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18665 PATH_SEPARATOR=';' 18666 } 18667fi 18668 18669 18670# IFS 18671# We need space, tab and new line, in precisely that order. Quoting is 18672# there to prevent editors from complaining about space-tab. 18673# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18674# splitting by setting IFS to empty value.) 18675IFS=" "" $as_nl" 18676 18677# Find who we are. Look in the path if we contain no directory separator. 18678case $0 in #(( 18679 *[\\/]* ) as_myself=$0 ;; 18680 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18681for as_dir in $PATH 18682do 18683 IFS=$as_save_IFS 18684 test -z "$as_dir" && as_dir=. 18685 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18686 done 18687IFS=$as_save_IFS 18688 18689 ;; 18690esac 18691# We did not find ourselves, most probably we were run as `sh COMMAND' 18692# in which case we are not to be found in the path. 18693if test "x$as_myself" = x; then 18694 as_myself=$0 18695fi 18696if test ! -f "$as_myself"; then 18697 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18698 exit 1 18699fi 18700 18701# Unset variables that we do not need and which cause bugs (e.g. in 18702# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18703# suppresses any "Segmentation fault" message there. '((' could 18704# trigger a bug in pdksh 5.2.14. 18705for as_var in BASH_ENV ENV MAIL MAILPATH 18706do eval test x\${$as_var+set} = xset \ 18707 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18708done 18709PS1='$ ' 18710PS2='> ' 18711PS4='+ ' 18712 18713# NLS nuisances. 18714LC_ALL=C 18715export LC_ALL 18716LANGUAGE=C 18717export LANGUAGE 18718 18719# CDPATH. 18720(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18721 18722 18723# as_fn_error ERROR [LINENO LOG_FD] 18724# --------------------------------- 18725# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18726# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18727# script with status $?, using 1 if that was 0. 18728as_fn_error () 18729{ 18730 as_status=$?; test $as_status -eq 0 && as_status=1 18731 if test "$3"; then 18732 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18733 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 18734 fi 18735 $as_echo "$as_me: error: $1" >&2 18736 as_fn_exit $as_status 18737} # as_fn_error 18738 18739 18740# as_fn_set_status STATUS 18741# ----------------------- 18742# Set $? to STATUS, without forking. 18743as_fn_set_status () 18744{ 18745 return $1 18746} # as_fn_set_status 18747 18748# as_fn_exit STATUS 18749# ----------------- 18750# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18751as_fn_exit () 18752{ 18753 set +e 18754 as_fn_set_status $1 18755 exit $1 18756} # as_fn_exit 18757 18758# as_fn_unset VAR 18759# --------------- 18760# Portably unset VAR. 18761as_fn_unset () 18762{ 18763 { eval $1=; unset $1;} 18764} 18765as_unset=as_fn_unset 18766# as_fn_append VAR VALUE 18767# ---------------------- 18768# Append the text in VALUE to the end of the definition contained in VAR. Take 18769# advantage of any shell optimizations that allow amortized linear growth over 18770# repeated appends, instead of the typical quadratic growth present in naive 18771# implementations. 18772if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18773 eval 'as_fn_append () 18774 { 18775 eval $1+=\$2 18776 }' 18777else 18778 as_fn_append () 18779 { 18780 eval $1=\$$1\$2 18781 } 18782fi # as_fn_append 18783 18784# as_fn_arith ARG... 18785# ------------------ 18786# Perform arithmetic evaluation on the ARGs, and store the result in the 18787# global $as_val. Take advantage of shells that can avoid forks. The arguments 18788# must be portable across $(()) and expr. 18789if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18790 eval 'as_fn_arith () 18791 { 18792 as_val=$(( $* )) 18793 }' 18794else 18795 as_fn_arith () 18796 { 18797 as_val=`expr "$@" || test $? -eq 1` 18798 } 18799fi # as_fn_arith 18800 18801 18802if expr a : '\(a\)' >/dev/null 2>&1 && 18803 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18804 as_expr=expr 18805else 18806 as_expr=false 18807fi 18808 18809if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18810 as_basename=basename 18811else 18812 as_basename=false 18813fi 18814 18815if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18816 as_dirname=dirname 18817else 18818 as_dirname=false 18819fi 18820 18821as_me=`$as_basename -- "$0" || 18822$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18823 X"$0" : 'X\(//\)$' \| \ 18824 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18825$as_echo X/"$0" | 18826 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18827 s//\1/ 18828 q 18829 } 18830 /^X\/\(\/\/\)$/{ 18831 s//\1/ 18832 q 18833 } 18834 /^X\/\(\/\).*/{ 18835 s//\1/ 18836 q 18837 } 18838 s/.*/./; q'` 18839 18840# Avoid depending upon Character Ranges. 18841as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18842as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18843as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18844as_cr_digits='0123456789' 18845as_cr_alnum=$as_cr_Letters$as_cr_digits 18846 18847ECHO_C= ECHO_N= ECHO_T= 18848case `echo -n x` in #((((( 18849-n*) 18850 case `echo 'xy\c'` in 18851 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18852 xy) ECHO_C='\c';; 18853 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18854 ECHO_T=' ';; 18855 esac;; 18856*) 18857 ECHO_N='-n';; 18858esac 18859 18860rm -f conf$$ conf$$.exe conf$$.file 18861if test -d conf$$.dir; then 18862 rm -f conf$$.dir/conf$$.file 18863else 18864 rm -f conf$$.dir 18865 mkdir conf$$.dir 2>/dev/null 18866fi 18867if (echo >conf$$.file) 2>/dev/null; then 18868 if ln -s conf$$.file conf$$ 2>/dev/null; then 18869 as_ln_s='ln -s' 18870 # ... but there are two gotchas: 18871 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18872 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18873 # In both cases, we have to default to `cp -p'. 18874 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18875 as_ln_s='cp -p' 18876 elif ln conf$$.file conf$$ 2>/dev/null; then 18877 as_ln_s=ln 18878 else 18879 as_ln_s='cp -p' 18880 fi 18881else 18882 as_ln_s='cp -p' 18883fi 18884rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18885rmdir conf$$.dir 2>/dev/null 18886 18887 18888# as_fn_mkdir_p 18889# ------------- 18890# Create "$as_dir" as a directory, including parents if necessary. 18891as_fn_mkdir_p () 18892{ 18893 18894 case $as_dir in #( 18895 -*) as_dir=./$as_dir;; 18896 esac 18897 test -d "$as_dir" || eval $as_mkdir_p || { 18898 as_dirs= 18899 while :; do 18900 case $as_dir in #( 18901 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18902 *) as_qdir=$as_dir;; 18903 esac 18904 as_dirs="'$as_qdir' $as_dirs" 18905 as_dir=`$as_dirname -- "$as_dir" || 18906$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18907 X"$as_dir" : 'X\(//\)[^/]' \| \ 18908 X"$as_dir" : 'X\(//\)$' \| \ 18909 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18910$as_echo X"$as_dir" | 18911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18912 s//\1/ 18913 q 18914 } 18915 /^X\(\/\/\)[^/].*/{ 18916 s//\1/ 18917 q 18918 } 18919 /^X\(\/\/\)$/{ 18920 s//\1/ 18921 q 18922 } 18923 /^X\(\/\).*/{ 18924 s//\1/ 18925 q 18926 } 18927 s/.*/./; q'` 18928 test -d "$as_dir" && break 18929 done 18930 test -z "$as_dirs" || eval "mkdir $as_dirs" 18931 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 18932 18933 18934} # as_fn_mkdir_p 18935if mkdir -p . 2>/dev/null; then 18936 as_mkdir_p='mkdir -p "$as_dir"' 18937else 18938 test -d ./-p && rmdir ./-p 18939 as_mkdir_p=false 18940fi 18941 18942if test -x / >/dev/null 2>&1; then 18943 as_test_x='test -x' 18944else 18945 if ls -dL / >/dev/null 2>&1; then 18946 as_ls_L_option=L 18947 else 18948 as_ls_L_option= 18949 fi 18950 as_test_x=' 18951 eval sh -c '\'' 18952 if test -d "$1"; then 18953 test -d "$1/."; 18954 else 18955 case $1 in #( 18956 -*)set "./$1";; 18957 esac; 18958 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 18959 ???[sx]*):;;*)false;;esac;fi 18960 '\'' sh 18961 ' 18962fi 18963as_executable_p=$as_test_x 18964 18965# Sed expression to map a string onto a valid CPP name. 18966as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18967 18968# Sed expression to map a string onto a valid variable name. 18969as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18970 18971 18972exec 6>&1 18973## ----------------------------------- ## 18974## Main body of $CONFIG_STATUS script. ## 18975## ----------------------------------- ## 18976_ASEOF 18977test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18978 18979cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18980# Save the log message, to keep $0 and so on meaningful, and to 18981# report actual input values of CONFIG_FILES etc. instead of their 18982# values after options handling. 18983ac_log=" 18984This file was extended by Concurrent Versions System (CVS) $as_me 1.12.13, which was 18985generated by GNU Autoconf 2.65. Invocation command line was 18986 18987 CONFIG_FILES = $CONFIG_FILES 18988 CONFIG_HEADERS = $CONFIG_HEADERS 18989 CONFIG_LINKS = $CONFIG_LINKS 18990 CONFIG_COMMANDS = $CONFIG_COMMANDS 18991 $ $0 $@ 18992 18993on `(hostname || uname -n) 2>/dev/null | sed 1q` 18994" 18995 18996_ACEOF 18997 18998case $ac_config_files in *" 18999"*) set x $ac_config_files; shift; ac_config_files=$*;; 19000esac 19001 19002case $ac_config_headers in *" 19003"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19004esac 19005 19006 19007cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19008# Files that config.status was made for. 19009config_files="$ac_config_files" 19010config_headers="$ac_config_headers" 19011config_commands="$ac_config_commands" 19012 19013_ACEOF 19014 19015cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19016ac_cs_usage="\ 19017\`$as_me' instantiates files and other configuration actions 19018from templates according to the current configuration. Unless the files 19019and actions are specified as TAGs, all are instantiated by default. 19020 19021Usage: $0 [OPTION]... [TAG]... 19022 19023 -h, --help print this help, then exit 19024 -V, --version print version number and configuration settings, then exit 19025 --config print configuration, then exit 19026 -q, --quiet, --silent 19027 do not print progress messages 19028 -d, --debug don't remove temporary files 19029 --recheck update $as_me by reconfiguring in the same conditions 19030 --file=FILE[:TEMPLATE] 19031 instantiate the configuration file FILE 19032 --header=FILE[:TEMPLATE] 19033 instantiate the configuration header FILE 19034 19035Configuration files: 19036$config_files 19037 19038Configuration headers: 19039$config_headers 19040 19041Configuration commands: 19042$config_commands 19043 19044Report bugs to <bug-cvs@nongnu.org>." 19045 19046_ACEOF 19047cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19048ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19049ac_cs_version="\\ 19050Concurrent Versions System (CVS) config.status 1.12.13 19051configured by $0, generated by GNU Autoconf 2.65, 19052 with options \\"\$ac_cs_config\\" 19053 19054Copyright (C) 2009 Free Software Foundation, Inc. 19055This config.status script is free software; the Free Software Foundation 19056gives unlimited permission to copy, distribute and modify it." 19057 19058ac_pwd='$ac_pwd' 19059srcdir='$srcdir' 19060INSTALL='$INSTALL' 19061MKDIR_P='$MKDIR_P' 19062AWK='$AWK' 19063test -n "\$AWK" || AWK=awk 19064_ACEOF 19065 19066cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19067# The default lists apply if the user does not specify any file. 19068ac_need_defaults=: 19069while test $# != 0 19070do 19071 case $1 in 19072 --*=*) 19073 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19074 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19075 ac_shift=: 19076 ;; 19077 *) 19078 ac_option=$1 19079 ac_optarg=$2 19080 ac_shift=shift 19081 ;; 19082 esac 19083 19084 case $ac_option in 19085 # Handling of the options. 19086 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19087 ac_cs_recheck=: ;; 19088 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19089 $as_echo "$ac_cs_version"; exit ;; 19090 --config | --confi | --conf | --con | --co | --c ) 19091 $as_echo "$ac_cs_config"; exit ;; 19092 --debug | --debu | --deb | --de | --d | -d ) 19093 debug=: ;; 19094 --file | --fil | --fi | --f ) 19095 $ac_shift 19096 case $ac_optarg in 19097 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19098 esac 19099 as_fn_append CONFIG_FILES " '$ac_optarg'" 19100 ac_need_defaults=false;; 19101 --header | --heade | --head | --hea ) 19102 $ac_shift 19103 case $ac_optarg in 19104 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19105 esac 19106 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19107 ac_need_defaults=false;; 19108 --he | --h) 19109 # Conflict between --help and --header 19110 as_fn_error "ambiguous option: \`$1' 19111Try \`$0 --help' for more information.";; 19112 --help | --hel | -h ) 19113 $as_echo "$ac_cs_usage"; exit ;; 19114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19115 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19116 ac_cs_silent=: ;; 19117 19118 # This is an error. 19119 -*) as_fn_error "unrecognized option: \`$1' 19120Try \`$0 --help' for more information." ;; 19121 19122 *) as_fn_append ac_config_targets " $1" 19123 ac_need_defaults=false ;; 19124 19125 esac 19126 shift 19127done 19128 19129ac_configure_extra_args= 19130 19131if $ac_cs_silent; then 19132 exec 6>/dev/null 19133 ac_configure_extra_args="$ac_configure_extra_args --silent" 19134fi 19135 19136_ACEOF 19137cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19138if \$ac_cs_recheck; then 19139 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19140 shift 19141 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19142 CONFIG_SHELL='$SHELL' 19143 export CONFIG_SHELL 19144 exec "\$@" 19145fi 19146 19147_ACEOF 19148cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19149exec 5>>config.log 19150{ 19151 echo 19152 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19153## Running $as_me. ## 19154_ASBOX 19155 $as_echo "$ac_log" 19156} >&5 19157 19158_ACEOF 19159cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19160# 19161# INIT-COMMANDS 19162# 19163AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19164 19165_ACEOF 19166 19167cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19168 19169# Handling of arguments. 19170for ac_config_target in $ac_config_targets 19171do 19172 case $ac_config_target in 19173 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19174 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19175 "contrib/validate_repo") CONFIG_FILES="$CONFIG_FILES contrib/validate_repo" ;; 19176 "contrib/clmerge") CONFIG_FILES="$CONFIG_FILES contrib/clmerge" ;; 19177 "contrib/cln_hist") CONFIG_FILES="$CONFIG_FILES contrib/cln_hist" ;; 19178 "contrib/commit_prep") CONFIG_FILES="$CONFIG_FILES contrib/commit_prep" ;; 19179 "contrib/cvs_acls") CONFIG_FILES="$CONFIG_FILES contrib/cvs_acls" ;; 19180 "contrib/log") CONFIG_FILES="$CONFIG_FILES contrib/log" ;; 19181 "contrib/log_accum") CONFIG_FILES="$CONFIG_FILES contrib/log_accum" ;; 19182 "contrib/mfpipe") CONFIG_FILES="$CONFIG_FILES contrib/mfpipe" ;; 19183 "contrib/pvcs2rcs") CONFIG_FILES="$CONFIG_FILES contrib/pvcs2rcs" ;; 19184 "contrib/rcs2log") CONFIG_FILES="$CONFIG_FILES contrib/rcs2log:contrib/rcs2log.sh" ;; 19185 "contrib/rcslock") CONFIG_FILES="$CONFIG_FILES contrib/rcslock" ;; 19186 "contrib/sccs2rcs") CONFIG_FILES="$CONFIG_FILES contrib/sccs2rcs" ;; 19187 "doc/mkman") CONFIG_FILES="$CONFIG_FILES doc/mkman:doc/mkman.pl" ;; 19188 "src/cvsbug") CONFIG_FILES="$CONFIG_FILES src/cvsbug" ;; 19189 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19190 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; 19191 "contrib/pam/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/pam/Makefile" ;; 19192 "cvs.spec") CONFIG_FILES="$CONFIG_FILES cvs.spec" ;; 19193 "diff/Makefile") CONFIG_FILES="$CONFIG_FILES diff/Makefile" ;; 19194 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 19195 "doc/i18n/Makefile") CONFIG_FILES="$CONFIG_FILES doc/i18n/Makefile" ;; 19196 "doc/i18n/pt_BR/Makefile") CONFIG_FILES="$CONFIG_FILES doc/i18n/pt_BR/Makefile" ;; 19197 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 19198 "maint-aux/Makefile") CONFIG_FILES="$CONFIG_FILES maint-aux/Makefile" ;; 19199 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 19200 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19201 "src/sanity.config.sh") CONFIG_FILES="$CONFIG_FILES src/sanity.config.sh" ;; 19202 19203 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19204 esac 19205done 19206 19207 19208# If the user did not use the arguments to specify the items to instantiate, 19209# then the envvar interface is used. Set only those that are not. 19210# We use the long form for the default assignment because of an extremely 19211# bizarre bug on SunOS 4.1.3. 19212if $ac_need_defaults; then 19213 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19214 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19215 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19216fi 19217 19218# Have a temporary directory for convenience. Make it in the build tree 19219# simply because there is no reason against having it here, and in addition, 19220# creating and moving files from /tmp can sometimes cause problems. 19221# Hook for its removal unless debugging. 19222# Note that there is a small window in which the directory will not be cleaned: 19223# after its creation but before its name has been assigned to `$tmp'. 19224$debug || 19225{ 19226 tmp= 19227 trap 'exit_status=$? 19228 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 19229' 0 19230 trap 'as_fn_exit 1' 1 2 13 15 19231} 19232# Create a (secure) tmp directory for tmp files. 19233 19234{ 19235 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19236 test -n "$tmp" && test -d "$tmp" 19237} || 19238{ 19239 tmp=./conf$$-$RANDOM 19240 (umask 077 && mkdir "$tmp") 19241} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 19242 19243# Set up the scripts for CONFIG_FILES section. 19244# No need to generate them if there are no CONFIG_FILES. 19245# This happens for instance with `./config.status config.h'. 19246if test -n "$CONFIG_FILES"; then 19247 19248if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then 19249 ac_cs_awk_getline=: 19250 ac_cs_awk_pipe_init= 19251 ac_cs_awk_read_file=' 19252 while ((getline aline < (F[key])) > 0) 19253 print(aline) 19254 close(F[key])' 19255 ac_cs_awk_pipe_fini= 19256else 19257 ac_cs_awk_getline=false 19258 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" 19259 ac_cs_awk_read_file=' 19260 print "|#_!!_#|" 19261 print "cat " F[key] " &&" 19262 '$ac_cs_awk_pipe_init 19263 # The final `:' finishes the AND list. 19264 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' 19265fi 19266ac_cr=`echo X | tr X '\015'` 19267# On cygwin, bash can eat \r inside `` if the user requested igncr. 19268# But we know of no other shell where ac_cr would be empty at this 19269# point, so we can use a bashism as a fallback. 19270if test "x$ac_cr" = x; then 19271 eval ac_cr=\$\'\\r\' 19272fi 19273ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19274if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19275 ac_cs_awk_cr='\r' 19276else 19277 ac_cs_awk_cr=$ac_cr 19278fi 19279 19280echo 'BEGIN {' >"$tmp/subs1.awk" && 19281_ACEOF 19282 19283# Create commands to substitute file output variables. 19284{ 19285 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && 19286 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && 19287 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && 19288 echo "_ACAWK" && 19289 echo "_ACEOF" 19290} >conf$$files.sh && 19291. ./conf$$files.sh || 19292 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 19293rm -f conf$$files.sh 19294 19295{ 19296 echo "cat >conf$$subs.awk <<_ACEOF" && 19297 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19298 echo "_ACEOF" 19299} >conf$$subs.sh || 19300 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 19301ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 19302ac_delim='%!_!# ' 19303for ac_last_try in false false false false false :; do 19304 . ./conf$$subs.sh || 19305 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 19306 19307 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19308 if test $ac_delim_n = $ac_delim_num; then 19309 break 19310 elif $ac_last_try; then 19311 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 19312 else 19313 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19314 fi 19315done 19316rm -f conf$$subs.sh 19317 19318cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19319cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 19320_ACEOF 19321sed -n ' 19322h 19323s/^/S["/; s/!.*/"]=/ 19324p 19325g 19326s/^[^!]*!// 19327:repl 19328t repl 19329s/'"$ac_delim"'$// 19330t delim 19331:nl 19332h 19333s/\(.\{148\}\)..*/\1/ 19334t more1 19335s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19336p 19337n 19338b repl 19339:more1 19340s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19341p 19342g 19343s/.\{148\}// 19344t nl 19345:delim 19346h 19347s/\(.\{148\}\)..*/\1/ 19348t more2 19349s/["\\]/\\&/g; s/^/"/; s/$/"/ 19350p 19351b 19352:more2 19353s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19354p 19355g 19356s/.\{148\}// 19357t delim 19358' <conf$$subs.awk | sed ' 19359/^[^""]/{ 19360 N 19361 s/\n// 19362} 19363' >>$CONFIG_STATUS || ac_write_fail=1 19364rm -f conf$$subs.awk 19365cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19366_ACAWK 19367cat >>"\$tmp/subs1.awk" <<_ACAWK && 19368 for (key in S) S_is_set[key] = 1 19369 FS = "" 19370 \$ac_cs_awk_pipe_init 19371} 19372{ 19373 line = $ 0 19374 nfields = split(line, field, "@") 19375 substed = 0 19376 len = length(field[1]) 19377 for (i = 2; i < nfields; i++) { 19378 key = field[i] 19379 keylen = length(key) 19380 if (S_is_set[key]) { 19381 value = S[key] 19382 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19383 len += length(value) + length(field[++i]) 19384 substed = 1 19385 } else 19386 len += 1 + keylen 19387 } 19388 if (nfields == 3 && !substed) { 19389 key = field[2] 19390 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { 19391 \$ac_cs_awk_read_file 19392 next 19393 } 19394 } 19395 print line 19396} 19397\$ac_cs_awk_pipe_fini 19398_ACAWK 19399_ACEOF 19400cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19401if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19402 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19403else 19404 cat 19405fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 19406 || as_fn_error "could not setup config files machinery" "$LINENO" 5 19407_ACEOF 19408 19409# VPATH may cause trouble with some makes, so we remove $(srcdir), 19410# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 19411# trailing colons and then remove the whole line if VPATH becomes empty 19412# (actually we leave an empty line to preserve line numbers). 19413if test "x$srcdir" = x.; then 19414 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 19415s/:*\$(srcdir):*/:/ 19416s/:*\${srcdir}:*/:/ 19417s/:*@srcdir@:*/:/ 19418s/^\([^=]*=[ ]*\):*/\1/ 19419s/:*$// 19420s/^[^=]*=[ ]*$// 19421}' 19422fi 19423 19424cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19425fi # test -n "$CONFIG_FILES" 19426 19427# Set up the scripts for CONFIG_HEADERS section. 19428# No need to generate them if there are no CONFIG_HEADERS. 19429# This happens for instance with `./config.status Makefile'. 19430if test -n "$CONFIG_HEADERS"; then 19431cat >"$tmp/defines.awk" <<\_ACAWK || 19432BEGIN { 19433_ACEOF 19434 19435# Transform confdefs.h into an awk script `defines.awk', embedded as 19436# here-document in config.status, that substitutes the proper values into 19437# config.h.in to produce config.h. 19438 19439# Create a delimiter string that does not exist in confdefs.h, to ease 19440# handling of long lines. 19441ac_delim='%!_!# ' 19442for ac_last_try in false false :; do 19443 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 19444 if test -z "$ac_t"; then 19445 break 19446 elif $ac_last_try; then 19447 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 19448 else 19449 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19450 fi 19451done 19452 19453# For the awk script, D is an array of macro values keyed by name, 19454# likewise P contains macro parameters if any. Preserve backslash 19455# newline sequences. 19456 19457ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19458sed -n ' 19459s/.\{148\}/&'"$ac_delim"'/g 19460t rset 19461:rset 19462s/^[ ]*#[ ]*define[ ][ ]*/ / 19463t def 19464d 19465:def 19466s/\\$// 19467t bsnl 19468s/["\\]/\\&/g 19469s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19470D["\1"]=" \3"/p 19471s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19472d 19473:bsnl 19474s/["\\]/\\&/g 19475s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19476D["\1"]=" \3\\\\\\n"\\/p 19477t cont 19478s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19479t cont 19480d 19481:cont 19482n 19483s/.\{148\}/&'"$ac_delim"'/g 19484t clear 19485:clear 19486s/\\$// 19487t bsnlc 19488s/["\\]/\\&/g; s/^/"/; s/$/"/p 19489d 19490:bsnlc 19491s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19492b cont 19493' <confdefs.h | sed ' 19494s/'"$ac_delim"'/"\\\ 19495"/g' >>$CONFIG_STATUS || ac_write_fail=1 19496 19497cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19498 for (key in D) D_is_set[key] = 1 19499 FS = "" 19500} 19501/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19502 line = \$ 0 19503 split(line, arg, " ") 19504 if (arg[1] == "#") { 19505 defundef = arg[2] 19506 mac1 = arg[3] 19507 } else { 19508 defundef = substr(arg[1], 2) 19509 mac1 = arg[2] 19510 } 19511 split(mac1, mac2, "(") #) 19512 macro = mac2[1] 19513 prefix = substr(line, 1, index(line, defundef) - 1) 19514 if (D_is_set[macro]) { 19515 # Preserve the white space surrounding the "#". 19516 print prefix "define", macro P[macro] D[macro] 19517 next 19518 } else { 19519 # Replace #undef with comments. This is necessary, for example, 19520 # in the case of _POSIX_SOURCE, which is predefined and required 19521 # on some systems where configure will not decide to define it. 19522 if (defundef == "undef") { 19523 print "/*", prefix defundef, macro, "*/" 19524 next 19525 } 19526 } 19527} 19528{ print } 19529_ACAWK 19530_ACEOF 19531cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19532 as_fn_error "could not setup config headers machinery" "$LINENO" 5 19533fi # test -n "$CONFIG_HEADERS" 19534 19535 19536eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19537shift 19538for ac_tag 19539do 19540 case $ac_tag in 19541 :[FHLC]) ac_mode=$ac_tag; continue;; 19542 esac 19543 case $ac_mode$ac_tag in 19544 :[FHL]*:*);; 19545 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 19546 :[FH]-) ac_tag=-:-;; 19547 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19548 esac 19549 ac_save_IFS=$IFS 19550 IFS=: 19551 set x $ac_tag 19552 IFS=$ac_save_IFS 19553 shift 19554 ac_file=$1 19555 shift 19556 19557 case $ac_mode in 19558 :L) ac_source=$1;; 19559 :[FH]) 19560 ac_file_inputs= 19561 for ac_f 19562 do 19563 case $ac_f in 19564 -) ac_f="$tmp/stdin";; 19565 *) # Look for the file first in the build tree, then in the source tree 19566 # (if the path is not absolute). The absolute path cannot be DOS-style, 19567 # because $ac_f cannot contain `:'. 19568 test -f "$ac_f" || 19569 case $ac_f in 19570 [\\/$]*) false;; 19571 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19572 esac || 19573 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19574 esac 19575 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19576 as_fn_append ac_file_inputs " '$ac_f'" 19577 done 19578 19579 # Let's still pretend it is `configure' which instantiates (i.e., don't 19580 # use $as_me), people would be surprised to read: 19581 # /* config.h. Generated by config.status. */ 19582 configure_input='Generated from '` 19583 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19584 `' by configure.' 19585 if test x"$ac_file" != x-; then 19586 configure_input="$ac_file. $configure_input" 19587 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19588$as_echo "$as_me: creating $ac_file" >&6;} 19589 fi 19590 # Neutralize special characters interpreted by sed in replacement strings. 19591 case $configure_input in #( 19592 *\&* | *\|* | *\\* ) 19593 ac_sed_conf_input=`$as_echo "$configure_input" | 19594 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19595 *) ac_sed_conf_input=$configure_input;; 19596 esac 19597 19598 case $ac_tag in 19599 *:-:* | *:-) cat >"$tmp/stdin" \ 19600 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 19601 esac 19602 ;; 19603 esac 19604 19605 ac_dir=`$as_dirname -- "$ac_file" || 19606$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19607 X"$ac_file" : 'X\(//\)[^/]' \| \ 19608 X"$ac_file" : 'X\(//\)$' \| \ 19609 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19610$as_echo X"$ac_file" | 19611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19612 s//\1/ 19613 q 19614 } 19615 /^X\(\/\/\)[^/].*/{ 19616 s//\1/ 19617 q 19618 } 19619 /^X\(\/\/\)$/{ 19620 s//\1/ 19621 q 19622 } 19623 /^X\(\/\).*/{ 19624 s//\1/ 19625 q 19626 } 19627 s/.*/./; q'` 19628 as_dir="$ac_dir"; as_fn_mkdir_p 19629 ac_builddir=. 19630 19631case "$ac_dir" in 19632.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19633*) 19634 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19635 # A ".." for each directory in $ac_dir_suffix. 19636 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19637 case $ac_top_builddir_sub in 19638 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19639 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19640 esac ;; 19641esac 19642ac_abs_top_builddir=$ac_pwd 19643ac_abs_builddir=$ac_pwd$ac_dir_suffix 19644# for backward compatibility: 19645ac_top_builddir=$ac_top_build_prefix 19646 19647case $srcdir in 19648 .) # We are building in place. 19649 ac_srcdir=. 19650 ac_top_srcdir=$ac_top_builddir_sub 19651 ac_abs_top_srcdir=$ac_pwd ;; 19652 [\\/]* | ?:[\\/]* ) # Absolute name. 19653 ac_srcdir=$srcdir$ac_dir_suffix; 19654 ac_top_srcdir=$srcdir 19655 ac_abs_top_srcdir=$srcdir ;; 19656 *) # Relative name. 19657 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19658 ac_top_srcdir=$ac_top_build_prefix$srcdir 19659 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19660esac 19661ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19662 19663 19664 case $ac_mode in 19665 :F) 19666 # 19667 # CONFIG_FILE 19668 # 19669 19670 case $INSTALL in 19671 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19672 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19673 esac 19674 ac_MKDIR_P=$MKDIR_P 19675 case $MKDIR_P in 19676 [\\/$]* | ?:[\\/]* ) ;; 19677 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19678 esac 19679_ACEOF 19680 19681cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19682# If the template does not know about datarootdir, expand it. 19683# FIXME: This hack should be removed a few years after 2.60. 19684ac_datarootdir_hack=; ac_datarootdir_seen= 19685ac_sed_dataroot=' 19686/datarootdir/ { 19687 p 19688 q 19689} 19690/@datadir@/p 19691/@docdir@/p 19692/@infodir@/p 19693/@localedir@/p 19694/@mandir@/p' 19695case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19696*datarootdir*) ac_datarootdir_seen=yes;; 19697*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19699$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19700_ACEOF 19701cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19702 ac_datarootdir_hack=' 19703 s&@datadir@&$datadir&g 19704 s&@docdir@&$docdir&g 19705 s&@infodir@&$infodir&g 19706 s&@localedir@&$localedir&g 19707 s&@mandir@&$mandir&g 19708 s&\\\${datarootdir}&$datarootdir&g' ;; 19709esac 19710_ACEOF 19711 19712# Neutralize VPATH when `$srcdir' = `.'. 19713# Shell code in configure.ac might set extrasub. 19714# FIXME: do we really want to maintain this feature? 19715cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19716ac_sed_extra="$ac_vpsub 19717$extrasub 19718_ACEOF 19719cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19720:t 19721/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19722s|@configure_input@|$ac_sed_conf_input|;t t 19723s&@top_builddir@&$ac_top_builddir_sub&;t t 19724s&@top_build_prefix@&$ac_top_build_prefix&;t t 19725s&@srcdir@&$ac_srcdir&;t t 19726s&@abs_srcdir@&$ac_abs_srcdir&;t t 19727s&@top_srcdir@&$ac_top_srcdir&;t t 19728s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19729s&@builddir@&$ac_builddir&;t t 19730s&@abs_builddir@&$ac_abs_builddir&;t t 19731s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19732s&@INSTALL@&$ac_INSTALL&;t t 19733s&@MKDIR_P@&$ac_MKDIR_P&;t t 19734$ac_datarootdir_hack 19735" 19736eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | 19737if $ac_cs_awk_getline; then 19738 $AWK -f "$tmp/subs.awk" 19739else 19740 $AWK -f "$tmp/subs.awk" | $SHELL 19741fi >$tmp/out \ 19742 || as_fn_error "could not create $ac_file" "$LINENO" 5 19743 19744test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19745 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 19746 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 19747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19748which seems to be undefined. Please make sure it is defined." >&5 19749$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19750which seems to be undefined. Please make sure it is defined." >&2;} 19751 19752 rm -f "$tmp/stdin" 19753 case $ac_file in 19754 -) cat "$tmp/out" && rm -f "$tmp/out";; 19755 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 19756 esac \ 19757 || as_fn_error "could not create $ac_file" "$LINENO" 5 19758 ;; 19759 :H) 19760 # 19761 # CONFIG_HEADER 19762 # 19763 if test x"$ac_file" != x-; then 19764 { 19765 $as_echo "/* $configure_input */" \ 19766 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 19767 } >"$tmp/config.h" \ 19768 || as_fn_error "could not create $ac_file" "$LINENO" 5 19769 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 19770 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19771$as_echo "$as_me: $ac_file is unchanged" >&6;} 19772 else 19773 rm -f "$ac_file" 19774 mv "$tmp/config.h" "$ac_file" \ 19775 || as_fn_error "could not create $ac_file" "$LINENO" 5 19776 fi 19777 else 19778 $as_echo "/* $configure_input */" \ 19779 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 19780 || as_fn_error "could not create -" "$LINENO" 5 19781 fi 19782# Compute "$ac_file"'s index in $config_headers. 19783_am_arg="$ac_file" 19784_am_stamp_count=1 19785for _am_header in $config_headers :; do 19786 case $_am_header in 19787 $_am_arg | $_am_arg:* ) 19788 break ;; 19789 * ) 19790 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19791 esac 19792done 19793echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19794$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19795 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19796 X"$_am_arg" : 'X\(//\)$' \| \ 19797 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19798$as_echo X"$_am_arg" | 19799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19800 s//\1/ 19801 q 19802 } 19803 /^X\(\/\/\)[^/].*/{ 19804 s//\1/ 19805 q 19806 } 19807 /^X\(\/\/\)$/{ 19808 s//\1/ 19809 q 19810 } 19811 /^X\(\/\).*/{ 19812 s//\1/ 19813 q 19814 } 19815 s/.*/./; q'`/stamp-h$_am_stamp_count 19816 ;; 19817 19818 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19819$as_echo "$as_me: executing $ac_file commands" >&6;} 19820 ;; 19821 esac 19822 19823 19824 case $ac_file$ac_mode in 19825 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19826 # Autoconf 2.62 quotes --file arguments for eval, but not when files 19827 # are listed without --file. Let's play safe and only enable the eval 19828 # if we detect the quoting. 19829 case $CONFIG_FILES in 19830 *\'*) eval set x "$CONFIG_FILES" ;; 19831 *) set x $CONFIG_FILES ;; 19832 esac 19833 shift 19834 for mf 19835 do 19836 # Strip MF so we end up with the name of the file. 19837 mf=`echo "$mf" | sed -e 's/:.*$//'` 19838 # Check whether this is an Automake generated Makefile or not. 19839 # We used to match only the files named `Makefile.in', but 19840 # some people rename them; so instead we look at the file content. 19841 # Grep'ing the first line is not enough: some people post-process 19842 # each Makefile.in and add a new line on top of each file to say so. 19843 # Grep'ing the whole file is not good either: AIX grep has a line 19844 # limit of 2048, but all sed's we know have understand at least 4000. 19845 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 19846 dirpart=`$as_dirname -- "$mf" || 19847$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19848 X"$mf" : 'X\(//\)[^/]' \| \ 19849 X"$mf" : 'X\(//\)$' \| \ 19850 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 19851$as_echo X"$mf" | 19852 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19853 s//\1/ 19854 q 19855 } 19856 /^X\(\/\/\)[^/].*/{ 19857 s//\1/ 19858 q 19859 } 19860 /^X\(\/\/\)$/{ 19861 s//\1/ 19862 q 19863 } 19864 /^X\(\/\).*/{ 19865 s//\1/ 19866 q 19867 } 19868 s/.*/./; q'` 19869 else 19870 continue 19871 fi 19872 # Extract the definition of DEPDIR, am__include, and am__quote 19873 # from the Makefile without running `make'. 19874 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 19875 test -z "$DEPDIR" && continue 19876 am__include=`sed -n 's/^am__include = //p' < "$mf"` 19877 test -z "am__include" && continue 19878 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 19879 # When using ansi2knr, U may be empty or an underscore; expand it 19880 U=`sed -n 's/^U = //p' < "$mf"` 19881 # Find all dependency output files, they are included files with 19882 # $(DEPDIR) in their names. We invoke sed twice because it is the 19883 # simplest approach to changing $(DEPDIR) to its actual value in the 19884 # expansion. 19885 for file in `sed -n " 19886 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 19887 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 19888 # Make sure the directory exists. 19889 test -f "$dirpart/$file" && continue 19890 fdir=`$as_dirname -- "$file" || 19891$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19892 X"$file" : 'X\(//\)[^/]' \| \ 19893 X"$file" : 'X\(//\)$' \| \ 19894 X"$file" : 'X\(/\)' \| . 2>/dev/null || 19895$as_echo X"$file" | 19896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19897 s//\1/ 19898 q 19899 } 19900 /^X\(\/\/\)[^/].*/{ 19901 s//\1/ 19902 q 19903 } 19904 /^X\(\/\/\)$/{ 19905 s//\1/ 19906 q 19907 } 19908 /^X\(\/\).*/{ 19909 s//\1/ 19910 q 19911 } 19912 s/.*/./; q'` 19913 as_dir=$dirpart/$fdir; as_fn_mkdir_p 19914 # echo "creating $dirpart/$file" 19915 echo '# dummy' > "$dirpart/$file" 19916 done 19917 done 19918} 19919 ;; 19920 "contrib/validate_repo":F) chmod +x contrib/validate_repo ;; 19921 "contrib/clmerge":F) chmod +x contrib/clmerge ;; 19922 "contrib/cln_hist":F) chmod +x contrib/cln_hist ;; 19923 "contrib/commit_prep":F) chmod +x contrib/commit_prep ;; 19924 "contrib/cvs_acls":F) chmod +x contrib/cvs_acls ;; 19925 "contrib/log":F) chmod +x contrib/log ;; 19926 "contrib/log_accum":F) chmod +x contrib/log_accum ;; 19927 "contrib/mfpipe":F) chmod +x contrib/mfpipe ;; 19928 "contrib/pvcs2rcs":F) chmod +x contrib/pvcs2rcs ;; 19929 "contrib/rcs2log":F) chmod +x contrib/rcs2log ;; 19930 "contrib/rcslock":F) chmod +x contrib/rcslock ;; 19931 "contrib/sccs2rcs":F) chmod +x contrib/sccs2rcs ;; 19932 "doc/mkman":F) chmod +x doc/mkman ;; 19933 "src/cvsbug":F) chmod +x src/cvsbug ;; 19934 19935 esac 19936done # for ac_tag 19937 19938 19939as_fn_exit 0 19940_ACEOF 19941ac_clean_files=$ac_clean_files_save 19942 19943test $ac_write_fail = 0 || 19944 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 19945 19946 19947# configure is writing to config.log, and then calls config.status. 19948# config.status does its own redirection, appending to config.log. 19949# Unfortunately, on DOS this fails, as config.log is still kept open 19950# by configure, so config.status won't be able to write to it; its 19951# output is simply discarded. So we exec the FD to /dev/null, 19952# effectively closing config.log, so it can be properly (re)opened and 19953# appended to by config.status. When coming back to configure, we 19954# need to make the FD available again. 19955if test "$no_create" != yes; then 19956 ac_cs_success=: 19957 ac_config_status_args= 19958 test "$silent" = yes && 19959 ac_config_status_args="$ac_config_status_args --quiet" 19960 exec 5>/dev/null 19961 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19962 exec 5>>config.log 19963 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19964 # would make configure fail if this is the last instruction. 19965 $ac_cs_success || as_fn_exit $? 19966fi 19967if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 19968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 19969$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 19970fi 19971 19972 19973 19974 19975# Report the state of this version of CVS if this is from dev. 19976 19977