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 (at] 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 34 DUALCASE=1; export DUALCASE # for MKS sh 35 if 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 42 else 43 case `(set -o) 2>/dev/null` in #( 44 *posix*) : 45 set -o posix ;; #( 46 *) : 47 ;; 48 esac 49 fi 50 51 52 as_nl=' 53 ' 54 export as_nl 55 # Printing a long string crashes Solaris 7 /usr/bin/printf. 56 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 57 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 58 as_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. 61 if 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 --' 65 elif (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' 68 else 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' 88 fi 89 90 # The user is always right. 91 if 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 } 97 fi 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.) 105 IFS=" "" $as_nl" 106 107 # Find who we are. Look in the path if we contain no directory separator. 108 case $0 in #(( 109 *[\\/]* ) as_myself=$0 ;; 110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 111 for as_dir in $PATH 112 do 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 117 IFS=$as_save_IFS 118 119 ;; 120 esac 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. 123 if test "x$as_myself" = x; then 124 as_myself=$0 125 fi 126 if test ! -f "$as_myself"; then 127 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 128 exit 1 129 fi 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. 135 for as_var in BASH_ENV ENV MAIL MAILPATH 136 do eval test x\${$as_var+set} = xset \ 137 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 138 done 139 PS1='$ ' 140 PS2='> ' 141 PS4='+ ' 142 143 # NLS nuisances. 144 LC_ALL=C 145 export LC_ALL 146 LANGUAGE=C 147 export LANGUAGE 148 149 # CDPATH. 150 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 151 152 if 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 160 else 161 case \`(set -o) 2>/dev/null\` in #( 162 *posix*) : 163 set -o posix ;; #( 164 *) : 165 ;; 166 esac 167 fi 168 " 169 as_required="as_fn_return () { (exit \$1); } 170 as_fn_success () { as_fn_return 0; } 171 as_fn_failure () { as_fn_return 1; } 172 as_fn_ret_success () { return 0; } 173 as_fn_ret_failure () { return 1; } 174 175 exitcode=0 176 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 177 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 178 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 179 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 180 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 181 182 else 183 exitcode=1; echo positional parameters were not saved. 184 fi 185 test 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 190 test \$(( 1 + 1 )) = 2 || exit 1" 191 if (eval "$as_required") 2>/dev/null; then : 192 as_have_required=yes 193 else 194 as_have_required=no 195 fi 196 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 197 198 else 199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 200 as_found=false 201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 202 do 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 216 fi 217 fi 218 done;; 219 esac 220 as_found=false 221 done 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 225 fi; } 226 IFS=$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+"$@"} 238 fi 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 (at] gnu.org and bug-cvs (at] 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 254 fi 255 fi 256 fi 257 SHELL=${CONFIG_SHELL-/bin/sh} 258 export SHELL 259 # Unset more variables known to interfere with behavior of common tools. 260 CLICOLOR_FORCE= GREP_OPTIONS= 261 unset CLICOLOR_FORCE GREP_OPTIONS 262 263 ## --------------------- ## 264 ## M4sh Shell Functions. ## 265 ## --------------------- ## 266 # as_fn_unset VAR 267 # --------------- 268 # Portably unset VAR. 269 as_fn_unset () 270 { 271 { eval $1=; unset $1;} 272 } 273 as_unset=as_fn_unset 274 275 # as_fn_set_status STATUS 276 # ----------------------- 277 # Set $? to STATUS, without forking. 278 as_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. 286 as_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. 296 as_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. 346 if (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 }' 351 else 352 as_fn_append () 353 { 354 eval $1=\$$1\$2 355 } 356 fi # 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. 363 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 364 eval 'as_fn_arith () 365 { 366 as_val=$(( $* )) 367 }' 368 else 369 as_fn_arith () 370 { 371 as_val=`expr "$@" || test $? -eq 1` 372 } 373 fi # 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. 381 as_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 392 if expr a : '\(a\)' >/dev/null 2>&1 && 393 test "X`expr 00001 : '.*\(...\)'`" = X001; then 394 as_expr=expr 395 else 396 as_expr=false 397 fi 398 399 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 400 as_basename=basename 401 else 402 as_basename=false 403 fi 404 405 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 406 as_dirname=dirname 407 else 408 as_dirname=false 409 fi 410 411 as_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. 431 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 432 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 433 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 434 as_cr_digits='0123456789' 435 as_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 469 ECHO_C= ECHO_N= ECHO_T= 470 case `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';; 480 esac 481 482 rm -f conf$$ conf$$.exe conf$$.file 483 if test -d conf$$.dir; then 484 rm -f conf$$.dir/conf$$.file 485 else 486 rm -f conf$$.dir 487 mkdir conf$$.dir 2>/dev/null 488 fi 489 if (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 503 else 504 as_ln_s='cp -p' 505 fi 506 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 507 rmdir conf$$.dir 2>/dev/null 508 509 if mkdir -p . 2>/dev/null; then 510 as_mkdir_p='mkdir -p "$as_dir"' 511 else 512 test -d ./-p && rmdir ./-p 513 as_mkdir_p=false 514 fi 515 516 if test -x / >/dev/null 2>&1; then 517 as_test_x='test -x' 518 else 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 ' 536 fi 537 as_executable_p=$as_test_x 538 539 # Sed expression to map a string onto a valid CPP name. 540 as_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. 543 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 544 545 546 test -n "$DJDIR" || exec 7<&0 </dev/null 547 exec 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. 552 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 553 554 # 555 # Initializations. 556 # 557 ac_default_prefix=/usr/local 558 ac_clean_files= 559 ac_config_libobj_dir=. 560 LIBOBJS= 561 cross_compiling=no 562 subdirs= 563 MFLAGS= 564 MAKEFLAGS= 565 566 # Identity of this package. 567 PACKAGE_NAME='Concurrent Versions System (CVS)' 568 PACKAGE_TARNAME='cvs' 569 PACKAGE_VERSION='1.12.13' 570 PACKAGE_STRING='Concurrent Versions System (CVS) 1.12.13' 571 PACKAGE_BUGREPORT='bug-cvs@nongnu.org' 572 PACKAGE_URL='' 573 574 ac_unique_file="src/cvs.h" 575 # Factoring default headers for most tests. 576 ac_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 611 gl_func_list= 612 gl_header_list= 613 ac_subst_vars='am__EXEEXT_FALSE 614 am__EXEEXT_TRUE 615 LTLIBOBJS 616 EDITOR 617 RSH_DFLT 618 with_default_rsh 619 KRB4 620 cvs_client_objects 621 EOVERFLOW 622 STDINT_H 623 HAVE_LONG_LONG_64BIT 624 HAVE_LONG_64BIT 625 LIB_NANOSLEEP 626 GLOB_H 627 GETOPT_H 628 LIB_CLOCK_GETTIME 629 YFLAGS 630 YACC 631 FNMATCH_H 632 HAVE__BOOL 633 STDBOOL_H 634 ALLOCA_H 635 ALLOCA 636 LIBOBJS 637 MAKE_TARGETS_IN_VPATH_FALSE 638 MAKE_TARGETS_IN_VPATH_TRUE 639 TEXI2DVI 640 PS2PDF 641 ROFF 642 PR 643 SENDMAIL 644 MKTEMP 645 CSH 646 PERL 647 LN_S 648 RANLIB 649 EGREP 650 GREP 651 CPP 652 am__fastdepCC_FALSE 653 am__fastdepCC_TRUE 654 CCDEPMODE 655 AMDEPBACKSLASH 656 AMDEP_FALSE 657 AMDEP_TRUE 658 am__quote 659 am__include 660 DEPDIR 661 OBJEXT 662 EXEEXT 663 ac_ct_CC 664 CPPFLAGS 665 LDFLAGS 666 CFLAGS 667 CC 668 MAINT 669 MAINTAINER_MODE_FALSE 670 MAINTAINER_MODE_TRUE 671 ac_prefix_program 672 am__untar 673 am__tar 674 AMTAR 675 am__leading_dot 676 SET_MAKE 677 AWK 678 mkdir_p 679 MKDIR_P 680 INSTALL_STRIP_PROGRAM 681 STRIP 682 install_sh 683 MAKEINFO 684 AUTOHEADER 685 AUTOMAKE 686 AUTOCONF 687 ACLOCAL 688 VERSION 689 PACKAGE 690 CYGPATH_W 691 am__isrc 692 INSTALL_DATA 693 INSTALL_SCRIPT 694 INSTALL_PROGRAM 695 target_alias 696 host_alias 697 build_alias 698 LIBS 699 ECHO_T 700 ECHO_N 701 ECHO_C 702 DEFS 703 mandir 704 localedir 705 libdir 706 psdir 707 pdfdir 708 dvidir 709 htmldir 710 infodir 711 docdir 712 oldincludedir 713 includedir 714 localstatedir 715 sharedstatedir 716 sysconfdir 717 datadir 718 datarootdir 719 libexecdir 720 sbindir 721 bindir 722 program_transform_name 723 prefix 724 exec_prefix 725 PACKAGE_URL 726 PACKAGE_BUGREPORT 727 PACKAGE_STRING 728 PACKAGE_VERSION 729 PACKAGE_TARNAME 730 PACKAGE_NAME 731 PATH_SEPARATOR 732 SHELL' 733 ac_subst_files='MKTEMP_SH_FUNCTION' 734 ac_user_opts=' 735 enable_option_checking 736 enable_maintainer_mode 737 enable_dependency_tracking 738 enable_largefile 739 with_included_regex 740 with_krb4 741 with_gssapi 742 with_rsh 743 with_editor 744 with_hardcoded_pam_service_name 745 with_tmpdir 746 with_umask 747 with_cvs_admin_group 748 enable_cvs_ndbm 749 enable_client 750 enable_password_authenticated_client 751 enable_server 752 enable_server_flow_control 753 enable_proxy 754 enable_pam 755 enable_case_sensitivity 756 enable_encryption 757 enable_force_editor 758 enable_lock_compatibility 759 enable_rootcommit 760 enable_old_info_support 761 enable_config_override 762 ' 763 ac_precious_vars='build_alias 764 host_alias 765 target_alias 766 CC 767 CFLAGS 768 LDFLAGS 769 LIBS 770 CPPFLAGS 771 CPP 772 YACC 773 YFLAGS 774 EDITOR' 775 776 777 # Initialize some variables set by options. 778 ac_init_help= 779 ac_init_version=false 780 ac_unrecognized_opts= 781 ac_unrecognized_sep= 782 # The variables have the same names as the options, with 783 # dashes changed to underlines. 784 cache_file=/dev/null 785 exec_prefix=NONE 786 no_create= 787 no_recursion= 788 prefix=NONE 789 program_prefix=NONE 790 program_suffix=NONE 791 program_transform_name=s,x,x, 792 silent= 793 site= 794 srcdir= 795 verbose= 796 x_includes=NONE 797 x_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.) 805 bindir='${exec_prefix}/bin' 806 sbindir='${exec_prefix}/sbin' 807 libexecdir='${exec_prefix}/libexec' 808 datarootdir='${prefix}/share' 809 datadir='${datarootdir}' 810 sysconfdir='${prefix}/etc' 811 sharedstatedir='${prefix}/com' 812 localstatedir='${prefix}/var' 813 includedir='${prefix}/include' 814 oldincludedir='/usr/include' 815 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 816 infodir='${datarootdir}/info' 817 htmldir='${docdir}' 818 dvidir='${docdir}' 819 pdfdir='${docdir}' 820 psdir='${docdir}' 821 libdir='${exec_prefix}/lib' 822 localedir='${datarootdir}/locale' 823 mandir='${datarootdir}/man' 824 825 ac_prev= 826 ac_dashdash= 827 for ac_option 828 do 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' 1160 Try \`$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 1182 done 1183 1184 if test -n "$ac_prev"; then 1185 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1186 as_fn_error "missing argument to $ac_option" 1187 fi 1188 1189 if 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 1195 fi 1196 1197 # Check all directory arguments for consistency. 1198 for 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 1202 do 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" 1216 done 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. 1221 build=$build_alias 1222 host=$host_alias 1223 target=$target_alias 1224 1225 # FIXME: To remove some day. 1226 if 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 1234 fi 1235 1236 ac_tool_prefix= 1237 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1238 1239 test "$silent" = yes && exec 6>/dev/null 1240 1241 1242 ac_pwd=`pwd` && test -n "$ac_pwd" && 1243 ac_ls_di=`ls -di .` && 1244 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1245 as_fn_error "working directory cannot be determined" 1246 test "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. 1251 if 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 1281 else 1282 ac_srcdir_defaulted=no 1283 fi 1284 if 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" 1287 fi 1288 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1289 ac_abs_confdir=`( 1290 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1291 pwd)` 1292 # When building in place, set srcdir=. 1293 if test "$ac_abs_confdir" = "$ac_pwd"; then 1294 srcdir=. 1295 fi 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. 1299 case $srcdir in 1300 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1301 esac 1302 for 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} 1307 done 1308 1309 # 1310 # Report the --help message. 1311 # 1312 if 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 1318 Usage: $0 [OPTION]... [VAR=VALUE]... 1319 1320 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1321 VAR=VALUE. See below for descriptions of some of the useful variables. 1322 1323 Defaults for the options are specified in brackets. 1324 1325 Configuration: 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 1336 Installation 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 1342 By default, \`make install' will install all the files in 1343 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1344 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1345 for instance \`--prefix=\$HOME'. 1346 1347 For better control, use the options below. 1348 1349 Fine 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 1373 Program 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 1378 fi 1379 1380 if 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 1386 Optional 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 1480 Optional 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 1512 Some 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 1530 Use these variables to override the choices made by `configure' or to help 1531 it to find libraries and programs with nonstandard names/locations. 1532 1533 Report bugs to <bug-cvs (at] nongnu.org>. 1534 _ACEOF 1535 ac_status=$? 1536 fi 1537 1538 if 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 1546 case "$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 ;; 1556 esac 1557 ac_abs_top_builddir=$ac_pwd 1558 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1559 # for backward compatibility: 1560 ac_top_builddir=$ac_top_build_prefix 1561 1562 case $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 ;; 1575 esac 1576 ac_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 1591 fi 1592 1593 test -n "$ac_init_help" && exit $ac_status 1594 if $ac_init_version; then 1595 cat <<\_ACEOF 1596 Concurrent Versions System (CVS) configure 1.12.13 1597 generated by GNU Autoconf 2.65 1598 1599 Copyright (C) 2009 Free Software Foundation, Inc. 1600 This configure script is free software; the Free Software Foundation 1601 gives unlimited permission to copy, distribute and modify it. 1602 1603 Copyright (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 1607 This program is free software; you can redistribute it and/or modify 1608 it under the terms of the GNU General Public License as published by 1609 the Free Software Foundation; either version 2, or (at your option) 1610 any later version. 1611 1612 This program is distributed in the hope that it will be useful, 1613 but WITHOUT ANY WARRANTY; without even the implied warranty of 1614 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1615 GNU General Public License for more details. 1616 _ACEOF 1617 exit 1618 fi 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. 1627 ac_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" 1632 case "(($ac_try" in 1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1634 *) ac_try_echo=$ac_try;; 1635 esac 1636 eval 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 1651 else 1652 $as_echo "$as_me: failed program was:" >&5 1653 sed 's/^/| /' conftest.$ac_ext >&5 1654 1655 ac_retval=1 1656 fi 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. 1665 ac_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" 1669 case "(($ac_try" in 1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1671 *) ac_try_echo=$ac_try;; 1672 esac 1673 eval 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 1688 else 1689 $as_echo "$as_me: failed program was:" >&5 1690 sed 's/^/| /' conftest.$ac_ext >&5 1691 1692 ac_retval=1 1693 fi 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. 1704 ac_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; } 1710 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1711 $as_echo_n "(cached) " >&6 1712 fi 1713 eval ac_res=\$$3 1714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1715 $as_echo "$ac_res" >&6; } 1716 else 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; } 1720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1721 /* end confdefs.h. */ 1722 $4 1723 #include <$2> 1724 _ACEOF 1725 if ac_fn_c_try_compile "$LINENO"; then : 1726 ac_header_compiler=yes 1727 else 1728 ac_header_compiler=no 1729 fi 1730 rm -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; } 1737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1738 /* end confdefs.h. */ 1739 #include <$2> 1740 _ACEOF 1741 if ac_fn_c_try_cpp "$LINENO"; then : 1742 ac_header_preproc=yes 1743 else 1744 ac_header_preproc=no 1745 fi 1746 rm -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? 1751 case $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 (at] nongnu.org ## 1772 ## --------------------------------- ## 1773 _ASBOX 1774 ) | sed "s/^/$as_me: WARNING: /" >&2 1775 ;; 1776 esac 1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1778 $as_echo_n "checking for $2... " >&6; } 1779 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1780 $as_echo_n "(cached) " >&6 1781 else 1782 eval "$3=\$ac_header_compiler" 1783 fi 1784 eval ac_res=\$$3 1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1786 $as_echo "$ac_res" >&6; } 1787 fi 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. 1796 ac_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" 1800 case "(($ac_try" in 1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1802 *) ac_try_echo=$ac_try;; 1803 esac 1804 eval 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;; 1813 esac 1814 eval 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 1821 else 1822 $as_echo "$as_me: program exited with status $ac_status" >&5 1823 $as_echo "$as_me: failed program was:" >&5 1824 sed 's/^/| /' conftest.$ac_ext >&5 1825 1826 ac_retval=$ac_status 1827 fi 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. 1838 ac_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; } 1843 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1844 $as_echo_n "(cached) " >&6 1845 else 1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1847 /* end confdefs.h. */ 1848 $4 1849 #include <$2> 1850 _ACEOF 1851 if ac_fn_c_try_compile "$LINENO"; then : 1852 eval "$3=yes" 1853 else 1854 eval "$3=no" 1855 fi 1856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1857 fi 1858 eval 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. 1868 ac_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" 1873 case "(($ac_try" in 1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1875 *) ac_try_echo=$ac_try;; 1876 esac 1877 eval 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 1895 else 1896 $as_echo "$as_me: failed program was:" >&5 1897 sed 's/^/| /' conftest.$ac_ext >&5 1898 1899 ac_retval=1 1900 fi 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. 1915 ac_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; } 1920 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1921 $as_echo_n "(cached) " >&6 1922 else 1923 eval "$3=no" 1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1925 /* end confdefs.h. */ 1926 $4 1927 int 1928 main () 1929 { 1930 if (sizeof ($2)) 1931 return 0; 1932 ; 1933 return 0; 1934 } 1935 _ACEOF 1936 if ac_fn_c_try_compile "$LINENO"; then : 1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1938 /* end confdefs.h. */ 1939 $4 1940 int 1941 main () 1942 { 1943 if (sizeof (($2))) 1944 return 0; 1945 ; 1946 return 0; 1947 } 1948 _ACEOF 1949 if ac_fn_c_try_compile "$LINENO"; then : 1950 1951 else 1952 eval "$3=yes" 1953 fi 1954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1955 fi 1956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1957 fi 1958 eval 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. 1969 ac_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; } 1974 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : 1975 $as_echo_n "(cached) " >&6 1976 else 1977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1978 /* end confdefs.h. */ 1979 $5 1980 int 1981 main () 1982 { 1983 static $2 ac_aggr; 1984 if (ac_aggr.$3) 1985 return 0; 1986 ; 1987 return 0; 1988 } 1989 _ACEOF 1990 if ac_fn_c_try_compile "$LINENO"; then : 1991 eval "$4=yes" 1992 else 1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1994 /* end confdefs.h. */ 1995 $5 1996 int 1997 main () 1998 { 1999 static $2 ac_aggr; 2000 if (sizeof ac_aggr.$3) 2001 return 0; 2002 ; 2003 return 0; 2004 } 2005 _ACEOF 2006 if ac_fn_c_try_compile "$LINENO"; then : 2007 eval "$4=yes" 2008 else 2009 eval "$4=no" 2010 fi 2011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2012 fi 2013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2014 fi 2015 eval 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 2025 ac_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; } 2030 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2031 $as_echo_n "(cached) " >&6 2032 else 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 2056 extern "C" 2057 #endif 2058 char $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 2063 choke me 2064 #endif 2065 2066 int 2067 main () 2068 { 2069 return $2 (); 2070 ; 2071 return 0; 2072 } 2073 _ACEOF 2074 if ac_fn_c_try_link "$LINENO"; then : 2075 eval "$3=yes" 2076 else 2077 eval "$3=no" 2078 fi 2079 rm -f core conftest.err conftest.$ac_objext \ 2080 conftest$ac_exeext conftest.$ac_ext 2081 fi 2082 eval 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. 2092 ac_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; } 2097 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2098 $as_echo_n "(cached) " >&6 2099 else 2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2101 /* end confdefs.h. */ 2102 $4 2103 int 2104 main () 2105 { 2106 #ifndef $2 2107 (void) $2; 2108 #endif 2109 2110 ; 2111 return 0; 2112 } 2113 _ACEOF 2114 if ac_fn_c_try_compile "$LINENO"; then : 2115 eval "$3=yes" 2116 else 2117 eval "$3=no" 2118 fi 2119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2120 fi 2121 eval 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 2133 ac_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. 2138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2139 /* end confdefs.h. */ 2140 $4 2141 int 2142 main () 2143 { 2144 static int test_array [1 - 2 * !(($2) >= 0)]; 2145 test_array [0] = 0 2146 2147 ; 2148 return 0; 2149 } 2150 _ACEOF 2151 if 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 2157 int 2158 main () 2159 { 2160 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2161 test_array [0] = 0 2162 2163 ; 2164 return 0; 2165 } 2166 _ACEOF 2167 if ac_fn_c_try_compile "$LINENO"; then : 2168 ac_hi=$ac_mid; break 2169 else 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 2176 fi 2177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2178 done 2179 else 2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2181 /* end confdefs.h. */ 2182 $4 2183 int 2184 main () 2185 { 2186 static int test_array [1 - 2 * !(($2) < 0)]; 2187 test_array [0] = 0 2188 2189 ; 2190 return 0; 2191 } 2192 _ACEOF 2193 if 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 2199 int 2200 main () 2201 { 2202 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2203 test_array [0] = 0 2204 2205 ; 2206 return 0; 2207 } 2208 _ACEOF 2209 if ac_fn_c_try_compile "$LINENO"; then : 2210 ac_lo=$ac_mid; break 2211 else 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 2218 fi 2219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2220 done 2221 else 2222 ac_lo= ac_hi= 2223 fi 2224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2225 fi 2226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2227 # Binary search between lo and hi bounds. 2228 while 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 2233 int 2234 main () 2235 { 2236 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2237 test_array [0] = 0 2238 2239 ; 2240 return 0; 2241 } 2242 _ACEOF 2243 if ac_fn_c_try_compile "$LINENO"; then : 2244 ac_hi=$ac_mid 2245 else 2246 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2247 fi 2248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2249 done 2250 case $ac_lo in #(( 2251 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2252 '') ac_retval=1 ;; 2253 esac 2254 else 2255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2256 /* end confdefs.h. */ 2257 $4 2258 static long int longval () { return $2; } 2259 static unsigned long int ulongval () { return $2; } 2260 #include <stdio.h> 2261 #include <stdlib.h> 2262 int 2263 main () 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 2291 if ac_fn_c_try_run "$LINENO"; then : 2292 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2293 else 2294 ac_retval=1 2295 fi 2296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2297 conftest.$ac_objext conftest.beam conftest.$ac_ext 2298 rm -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 2305 cat >config.log <<_ACEOF 2306 This file contains any messages produced by compilers while 2307 running configure, to aid debugging if configure makes a mistake. 2308 2309 It was created by Concurrent Versions System (CVS) $as_me 1.12.13, which was 2310 generated by GNU Autoconf 2.65. Invocation command line was 2311 2312 $ $0 $@ 2313 2314 _ACEOF 2315 exec 5>>config.log 2316 { 2317 cat <<_ASUNAME 2318 ## --------- ## 2319 ## Platform. ## 2320 ## --------- ## 2321 2322 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2323 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2324 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2325 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2326 uname -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 2341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2342 for as_dir in $PATH 2343 do 2344 IFS=$as_save_IFS 2345 test -z "$as_dir" && as_dir=. 2346 $as_echo "PATH: $as_dir" 2347 done 2348 IFS=$as_save_IFS 2349 2350 } >&5 2351 2352 cat >&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. 2367 ac_configure_args= 2368 ac_configure_args0= 2369 ac_configure_args1= 2370 ac_must_keep_next=false 2371 for ac_pass in 1 2 2372 do 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 2406 done 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. 2415 trap '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 2510 for ac_signal in 1 2 13 15; do 2511 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2512 done 2513 ac_signal=0 2514 2515 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2516 rm -f -r conftest* confdefs.h 2517 2518 $as_echo "/* confdefs.h */" > confdefs.h 2519 2520 # Predefined preprocessor variables. 2521 2522 cat >>confdefs.h <<_ACEOF 2523 #define PACKAGE_NAME "$PACKAGE_NAME" 2524 _ACEOF 2525 2526 cat >>confdefs.h <<_ACEOF 2527 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2528 _ACEOF 2529 2530 cat >>confdefs.h <<_ACEOF 2531 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2532 _ACEOF 2533 2534 cat >>confdefs.h <<_ACEOF 2535 #define PACKAGE_STRING "$PACKAGE_STRING" 2536 _ACEOF 2537 2538 cat >>confdefs.h <<_ACEOF 2539 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2540 _ACEOF 2541 2542 cat >>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. 2549 ac_site_file1=NONE 2550 ac_site_file2=NONE 2551 if test -n "$CONFIG_SITE"; then 2552 ac_site_file1=$CONFIG_SITE 2553 elif test "x$prefix" != xNONE; then 2554 ac_site_file1=$prefix/share/config.site 2555 ac_site_file2=$prefix/etc/config.site 2556 else 2557 ac_site_file1=$ac_default_prefix/share/config.site 2558 ac_site_file2=$ac_default_prefix/etc/config.site 2559 fi 2560 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2561 do 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 2569 done 2570 2571 if 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 2582 else 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 2586 fi 2587 2588 gl_func_list="$gl_func_list fchdir" 2589 gl_header_list="$gl_header_list unistd.h" 2590 gl_func_list="$gl_func_list mempcpy" 2591 gl_header_list="$gl_header_list sys/time.h" 2592 gl_func_list="$gl_func_list isascii" 2593 gl_header_list="$gl_header_list sys/param.h" 2594 gl_header_list="$gl_header_list stdio_ext.h" 2595 gl_header_list="$gl_header_list termios.h" 2596 gl_func_list="$gl_func_list __fsetlocking" 2597 gl_func_list="$gl_func_list tcgetattr" 2598 gl_func_list="$gl_func_list tcsetattr" 2599 gl_func_list="$gl_func_list gettimeofday" 2600 gl_func_list="$gl_func_list nanotime" 2601 gl_header_list="$gl_header_list sys/cdefs.h" 2602 gl_func_list="$gl_func_list getlogin_r" 2603 gl_func_list="$gl_func_list getpwnam_r" 2604 gl_header_list="$gl_header_list wchar.h" 2605 gl_header_list="$gl_header_list wctype.h" 2606 gl_header_list="$gl_header_list stdint.h" 2607 gl_func_list="$gl_func_list siginterrupt" 2608 gl_header_list="$gl_header_list stdlib.h" 2609 gl_func_list="$gl_func_list posix_memalign" 2610 gl_func_list="$gl_func_list iswprint" 2611 gl_func_list="$gl_func_list mbsinit" 2612 gl_header_list="$gl_header_list locale.h" 2613 gl_func_list="$gl_func_list isblank" 2614 gl_func_list="$gl_func_list mbrtowc" 2615 gl_func_list="$gl_func_list wcrtomb" 2616 gl_func_list="$gl_func_list wcscoll" 2617 gl_func_list="$gl_func_list mblen" 2618 gl_func_list="$gl_func_list mbrlen" 2619 gl_func_list="$gl_func_list tzset" 2620 gl_header_list="$gl_header_list utime.h" 2621 # Check that the precious variables saved in the cache have kept the same 2622 # value. 2623 ac_cache_corrupted=false 2624 for 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 2670 done 2671 if $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 2677 fi 2678 ## -------------------- ## 2679 ## Main body of script. ## 2680 ## -------------------- ## 2681 2682 ac_ext=c 2683 ac_cpp='$CPP $CPPFLAGS' 2684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2686 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2687 2688 2689 2690 ac_aux_dir= 2691 for 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 2699 done 2700 if 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 2702 fi 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. 2708 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2709 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2710 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2711 2712 2713 am__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; } 2731 if test -z "$INSTALL"; then 2732 if test "${ac_cv_path_install+set}" = set; then : 2733 $as_echo_n "(cached) " >&6 2734 else 2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2736 for as_dir in $PATH 2737 do 2738 IFS=$as_save_IFS 2739 test -z "$as_dir" && as_dir=. 2740 # Account for people who put trailing slashes in PATH elements. 2741 case $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 ;; 2779 esac 2780 2781 done 2782 IFS=$as_save_IFS 2783 2784 rm -rf conftest.one conftest.two conftest.dir 2785 2786 fi 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 2796 fi 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. 2802 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2803 2804 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2805 2806 test -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 2811 sleep 1 2812 echo timestamp > conftest.file 2813 # Reject unsafe characters in $srcdir or the absolute working directory 2814 # name. Accept space and tab only in the latter. 2815 am_lf=' 2816 ' 2817 case `pwd` in 2818 *[\\\"\#\$\&\'\`$am_lf]*) 2819 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 2820 esac 2821 case $srcdir in 2822 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2823 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2824 esac 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). 2831 if ( 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 2846 alias in your environment" "$LINENO" 5 2847 fi 2848 2849 test "$2" = conftest.file 2850 ) 2851 then 2852 # Ok. 2853 : 2854 else 2855 as_fn_error "newly created file is older than distributed files! 2856 Check your system clock" "$LINENO" 5 2857 fi 2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2859 $as_echo "yes" >&6; } 2860 test "$program_prefix" != NONE && 2861 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2862 # Use a double $ so make ignores it. 2863 test "$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. 2867 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2868 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2869 2870 # expand $ac_aux_dir to an absolute path 2871 am_aux_dir=`cd $ac_aux_dir && pwd` 2872 2873 if 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 2880 fi 2881 # Use eval to expand $SHELL 2882 if eval "$MISSING --run true"; then 2883 am_missing_run="$MISSING --run " 2884 else 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;} 2888 fi 2889 2890 if 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 2897 fi 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. 2903 if 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. 2906 set 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; } 2909 if test "${ac_cv_prog_STRIP+set}" = set; then : 2910 $as_echo_n "(cached) " >&6 2911 else 2912 if test -n "$STRIP"; then 2913 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2914 else 2915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2916 for as_dir in $PATH 2917 do 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 2926 done 2927 done 2928 IFS=$as_save_IFS 2929 2930 fi 2931 fi 2932 STRIP=$ac_cv_prog_STRIP 2933 if test -n "$STRIP"; then 2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2935 $as_echo "$STRIP" >&6; } 2936 else 2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2938 $as_echo "no" >&6; } 2939 fi 2940 2941 2942 fi 2943 if 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. 2946 set 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; } 2949 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2950 $as_echo_n "(cached) " >&6 2951 else 2952 if test -n "$ac_ct_STRIP"; then 2953 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2954 else 2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2956 for as_dir in $PATH 2957 do 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 2966 done 2967 done 2968 IFS=$as_save_IFS 2969 2970 fi 2971 fi 2972 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2973 if 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; } 2976 else 2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2978 $as_echo "no" >&6; } 2979 fi 2980 2981 if test "x$ac_ct_STRIP" = x; then 2982 STRIP=":" 2983 else 2984 case $cross_compiling:$ac_tool_warned in 2985 yes:) 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;} 2988 ac_tool_warned=yes ;; 2989 esac 2990 STRIP=$ac_ct_STRIP 2991 fi 2992 else 2993 STRIP="$ac_cv_prog_STRIP" 2994 fi 2995 2996 fi 2997 INSTALL_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; } 3001 if test -z "$MKDIR_P"; then 3002 if test "${ac_cv_path_mkdir+set}" = set; then : 3003 $as_echo_n "(cached) " >&6 3004 else 3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3006 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3007 do 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 3023 IFS=$as_save_IFS 3024 3025 fi 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 3037 fi 3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3039 $as_echo "$MKDIR_P" >&6; } 3040 3041 mkdir_p="$MKDIR_P" 3042 case $mkdir_p in 3043 [\\/$]* | ?:[\\/]*) ;; 3044 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 3045 esac 3046 3047 for ac_prog in gawk mawk nawk awk 3048 do 3049 # Extract the first word of "$ac_prog", so it can be a program name with args. 3050 set 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; } 3053 if test "${ac_cv_prog_AWK+set}" = set; then : 3054 $as_echo_n "(cached) " >&6 3055 else 3056 if test -n "$AWK"; then 3057 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3058 else 3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3060 for as_dir in $PATH 3061 do 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 3070 done 3071 done 3072 IFS=$as_save_IFS 3073 3074 fi 3075 fi 3076 AWK=$ac_cv_prog_AWK 3077 if test -n "$AWK"; then 3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3079 $as_echo "$AWK" >&6; } 3080 else 3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3082 $as_echo "no" >&6; } 3083 fi 3084 3085 3086 test -n "$AWK" && break 3087 done 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; } 3091 set x ${MAKE-make} 3092 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3093 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 3094 $as_echo_n "(cached) " >&6 3095 else 3096 cat >conftest.make <<\_ACEOF 3097 SHELL = /bin/sh 3098 all: 3099 @echo '@@@%%%=$(MAKE)=@@@%%%' 3100 _ACEOF 3101 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3102 case `${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;; 3107 esac 3108 rm -f conftest.make 3109 fi 3110 if 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= 3114 else 3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3116 $as_echo "no" >&6; } 3117 SET_MAKE="MAKE=${MAKE-make}" 3118 fi 3119 3120 rm -rf .tst 2>/dev/null 3121 mkdir .tst 2>/dev/null 3122 if test -d .tst; then 3123 am__leading_dot=. 3124 else 3125 am__leading_dot=_ 3126 fi 3127 rmdir .tst 2>/dev/null 3128 3129 if 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 3137 fi 3138 3139 # test whether we have cygpath 3140 if 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 3146 fi 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 3156 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3157 3158 3159 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3160 3161 3162 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3163 3164 3165 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3166 3167 3168 MAKEINFO=${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 3174 AMTAR=${AMTAR-"${am_missing_run}tar"} 3175 3176 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3177 3178 3179 3180 3181 3182 3183 3184 if 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. 3187 set 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; } 3190 if test "${ac_cv_path_ac_prefix_program+set}" = set; then : 3191 $as_echo_n "(cached) " >&6 3192 else 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 3199 for as_dir in $PATH 3200 do 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 3209 done 3210 done 3211 IFS=$as_save_IFS 3212 3213 ;; 3214 esac 3215 fi 3216 ac_prefix_program=$ac_cv_path_ac_prefix_program 3217 if 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; } 3220 else 3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3222 $as_echo "no" >&6; } 3223 fi 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 3274 fi 3275 3276 ac_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. 3282 if test "${enable_maintainer_mode+set}" = set; then : 3283 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3284 else 3285 USE_MAINTAINER_MODE=no 3286 fi 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='#' 3293 else 3294 MAINTAINER_MODE_TRUE='#' 3295 MAINTAINER_MODE_FALSE= 3296 fi 3297 3298 MAINT=$MAINTAINER_MODE_TRUE 3299 3300 3301 3302 DEPDIR="${am__leading_dot}deps" 3303 3304 ac_config_commands="$ac_config_commands depfiles" 3305 3306 3307 am_make=${MAKE-make} 3308 cat > confinc << 'END' 3309 am__doit: 3310 @echo this is the am__doit target 3311 .PHONY: am__doit 3312 END 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; } 3316 am__include="#" 3317 am__quote= 3318 _am_result=none 3319 # First try GNU make style include. 3320 echo "include confinc" > confmf 3321 # Ignore all kinds of additional output from `make'. 3322 case `$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 ;; 3328 esac 3329 # Now try BSD make style include. 3330 if 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 3339 fi 3340 3341 3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3343 $as_echo "$_am_result" >&6; } 3344 rm -f confinc confmf 3345 3346 # Check whether --enable-dependency-tracking was given. 3347 if test "${enable_dependency_tracking+set}" = set; then : 3348 enableval=$enable_dependency_tracking; 3349 fi 3350 3351 if test "x$enable_dependency_tracking" != xno; then 3352 am_depcomp="$ac_aux_dir/depcomp" 3353 AMDEPBACKSLASH='\' 3354 fi 3355 if test "x$enable_dependency_tracking" != xno; then 3356 AMDEP_TRUE= 3357 AMDEP_FALSE='#' 3358 else 3359 AMDEP_TRUE='#' 3360 AMDEP_FALSE= 3361 fi 3362 3363 3364 ac_ext=c 3365 ac_cpp='$CPP $CPPFLAGS' 3366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3368 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3369 if 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. 3371 set 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; } 3374 if test "${ac_cv_prog_CC+set}" = set; then : 3375 $as_echo_n "(cached) " >&6 3376 else 3377 if test -n "$CC"; then 3378 ac_cv_prog_CC="$CC" # Let the user override the test. 3379 else 3380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3381 for as_dir in $PATH 3382 do 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 3391 done 3392 done 3393 IFS=$as_save_IFS 3394 3395 fi 3396 fi 3397 CC=$ac_cv_prog_CC 3398 if test -n "$CC"; then 3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3400 $as_echo "$CC" >&6; } 3401 else 3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3403 $as_echo "no" >&6; } 3404 fi 3405 3406 3407 fi 3408 if 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. 3411 set 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; } 3414 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3415 $as_echo_n "(cached) " >&6 3416 else 3417 if test -n "$ac_ct_CC"; then 3418 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3419 else 3420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3421 for as_dir in $PATH 3422 do 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 3431 done 3432 done 3433 IFS=$as_save_IFS 3434 3435 fi 3436 fi 3437 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3438 if 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; } 3441 else 3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3443 $as_echo "no" >&6; } 3444 fi 3445 3446 if test "x$ac_ct_CC" = x; then 3447 CC="" 3448 else 3449 case $cross_compiling:$ac_tool_warned in 3450 yes:) 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;} 3453 ac_tool_warned=yes ;; 3454 esac 3455 CC=$ac_ct_CC 3456 fi 3457 else 3458 CC="$ac_cv_prog_CC" 3459 fi 3460 3461 if 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. 3464 set 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; } 3467 if test "${ac_cv_prog_CC+set}" = set; then : 3468 $as_echo_n "(cached) " >&6 3469 else 3470 if test -n "$CC"; then 3471 ac_cv_prog_CC="$CC" # Let the user override the test. 3472 else 3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3474 for as_dir in $PATH 3475 do 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 3484 done 3485 done 3486 IFS=$as_save_IFS 3487 3488 fi 3489 fi 3490 CC=$ac_cv_prog_CC 3491 if test -n "$CC"; then 3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3493 $as_echo "$CC" >&6; } 3494 else 3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3496 $as_echo "no" >&6; } 3497 fi 3498 3499 3500 fi 3501 fi 3502 if test -z "$CC"; then 3503 # Extract the first word of "cc", so it can be a program name with args. 3504 set 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; } 3507 if test "${ac_cv_prog_CC+set}" = set; then : 3508 $as_echo_n "(cached) " >&6 3509 else 3510 if test -n "$CC"; then 3511 ac_cv_prog_CC="$CC" # Let the user override the test. 3512 else 3513 ac_prog_rejected=no 3514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3515 for as_dir in $PATH 3516 do 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 3529 done 3530 done 3531 IFS=$as_save_IFS 3532 3533 if 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 3544 fi 3545 fi 3546 fi 3547 CC=$ac_cv_prog_CC 3548 if test -n "$CC"; then 3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3550 $as_echo "$CC" >&6; } 3551 else 3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3553 $as_echo "no" >&6; } 3554 fi 3555 3556 3557 fi 3558 if 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. 3563 set 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; } 3566 if test "${ac_cv_prog_CC+set}" = set; then : 3567 $as_echo_n "(cached) " >&6 3568 else 3569 if test -n "$CC"; then 3570 ac_cv_prog_CC="$CC" # Let the user override the test. 3571 else 3572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3573 for as_dir in $PATH 3574 do 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 3583 done 3584 done 3585 IFS=$as_save_IFS 3586 3587 fi 3588 fi 3589 CC=$ac_cv_prog_CC 3590 if test -n "$CC"; then 3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3592 $as_echo "$CC" >&6; } 3593 else 3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3595 $as_echo "no" >&6; } 3596 fi 3597 3598 3599 test -n "$CC" && break 3600 done 3601 fi 3602 if test -z "$CC"; then 3603 ac_ct_CC=$CC 3604 for ac_prog in cl.exe 3605 do 3606 # Extract the first word of "$ac_prog", so it can be a program name with args. 3607 set 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; } 3610 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3611 $as_echo_n "(cached) " >&6 3612 else 3613 if test -n "$ac_ct_CC"; then 3614 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3615 else 3616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3617 for as_dir in $PATH 3618 do 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 3627 done 3628 done 3629 IFS=$as_save_IFS 3630 3631 fi 3632 fi 3633 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3634 if 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; } 3637 else 3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3639 $as_echo "no" >&6; } 3640 fi 3641 3642 3643 test -n "$ac_ct_CC" && break 3644 done 3645 3646 if test "x$ac_ct_CC" = x; then 3647 CC="" 3648 else 3649 case $cross_compiling:$ac_tool_warned in 3650 yes:) 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;} 3653 ac_tool_warned=yes ;; 3654 esac 3655 CC=$ac_ct_CC 3656 fi 3657 fi 3658 3659 fi 3660 3661 3662 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3664 as_fn_error "no acceptable C compiler found in \$PATH 3665 See \`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 3669 set X $ac_compile 3670 ac_compiler=$2 3671 for ac_option in --version -v -V -qversion; do 3672 { { ac_try="$ac_compiler $ac_option >&5" 3673 case "(($ac_try" in 3674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3675 *) ac_try_echo=$ac_try;; 3676 esac 3677 eval 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; } 3690 done 3691 3692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3693 /* end confdefs.h. */ 3694 3695 int 3696 main () 3697 { 3698 3699 ; 3700 return 0; 3701 } 3702 _ACEOF 3703 ac_clean_files_save=$ac_clean_files 3704 ac_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; } 3710 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3711 3712 # The possible output files: 3713 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3714 3715 ac_rmfiles= 3716 for ac_file in $ac_files 3717 do 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 3722 done 3723 rm -f $ac_rmfiles 3724 3725 if { { ac_try="$ac_link_default" 3726 case "(($ac_try" in 3727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3728 *) ac_try_echo=$ac_try;; 3729 esac 3730 eval 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. 3741 for ac_file in $ac_files '' 3742 do 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 3765 done 3766 test "$ac_cv_exeext" = no && ac_cv_exeext= 3767 3768 else 3769 ac_file='' 3770 fi 3771 if 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 3775 sed '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 3780 as_fn_error "C compiler cannot create executables 3781 See \`config.log' for more details." "$LINENO" 5; }; } 3782 else 3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3784 $as_echo "yes" >&6; } 3785 fi 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; } 3790 ac_exeext=$ac_cv_exeext 3791 3792 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3793 ac_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; } 3796 if { { ac_try="$ac_link" 3797 case "(($ac_try" in 3798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3799 *) ac_try_echo=$ac_try;; 3800 esac 3801 eval 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'. 3811 for 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 3819 done 3820 else 3821 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3822 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3823 as_fn_error "cannot compute suffix of executables: cannot compile and link 3824 See \`config.log' for more details." "$LINENO" 5; } 3825 fi 3826 rm -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 3830 rm -f conftest.$ac_ext 3831 EXEEXT=$ac_cv_exeext 3832 ac_exeext=$EXEEXT 3833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3834 /* end confdefs.h. */ 3835 #include <stdio.h> 3836 int 3837 main () 3838 { 3839 FILE *f = fopen ("conftest.out", "w"); 3840 return ferror (f) || fclose (f) != 0; 3841 3842 ; 3843 return 0; 3844 } 3845 _ACEOF 3846 ac_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; } 3851 if test "$cross_compiling" != yes; then 3852 { { ac_try="$ac_link" 3853 case "(($ac_try" in 3854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3855 *) ac_try_echo=$ac_try;; 3856 esac 3857 eval 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;; 3867 esac 3868 eval 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;} 3881 as_fn_error "cannot run C compiled programs. 3882 If you meant to cross compile, use \`--host'. 3883 See \`config.log' for more details." "$LINENO" 5; } 3884 fi 3885 fi 3886 fi 3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3888 $as_echo "$cross_compiling" >&6; } 3889 3890 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3891 ac_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; } 3894 if test "${ac_cv_objext+set}" = set; then : 3895 $as_echo_n "(cached) " >&6 3896 else 3897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3898 /* end confdefs.h. */ 3899 3900 int 3901 main () 3902 { 3903 3904 ; 3905 return 0; 3906 } 3907 _ACEOF 3908 rm -f conftest.o conftest.obj 3909 if { { ac_try="$ac_compile" 3910 case "(($ac_try" in 3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3912 *) ac_try_echo=$ac_try;; 3913 esac 3914 eval 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 3927 done 3928 else 3929 $as_echo "$as_me: failed program was:" >&5 3930 sed '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;} 3934 as_fn_error "cannot compute suffix of object files: cannot compile 3935 See \`config.log' for more details." "$LINENO" 5; } 3936 fi 3937 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3938 fi 3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3940 $as_echo "$ac_cv_objext" >&6; } 3941 OBJEXT=$ac_cv_objext 3942 ac_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; } 3945 if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3946 $as_echo_n "(cached) " >&6 3947 else 3948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3949 /* end confdefs.h. */ 3950 3951 int 3952 main () 3953 { 3954 #ifndef __GNUC__ 3955 choke me 3956 #endif 3957 3958 ; 3959 return 0; 3960 } 3961 _ACEOF 3962 if ac_fn_c_try_compile "$LINENO"; then : 3963 ac_compiler_gnu=yes 3964 else 3965 ac_compiler_gnu=no 3966 fi 3967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3968 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3969 3970 fi 3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3972 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3973 if test $ac_compiler_gnu = yes; then 3974 GCC=yes 3975 else 3976 GCC= 3977 fi 3978 ac_test_CFLAGS=${CFLAGS+set} 3979 ac_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; } 3982 if test "${ac_cv_prog_cc_g+set}" = set; then : 3983 $as_echo_n "(cached) " >&6 3984 else 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 3992 int 3993 main () 3994 { 3995 3996 ; 3997 return 0; 3998 } 3999 _ACEOF 4000 if ac_fn_c_try_compile "$LINENO"; then : 4001 ac_cv_prog_cc_g=yes 4002 else 4003 CFLAGS="" 4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4005 /* end confdefs.h. */ 4006 4007 int 4008 main () 4009 { 4010 4011 ; 4012 return 0; 4013 } 4014 _ACEOF 4015 if ac_fn_c_try_compile "$LINENO"; then : 4016 4017 else 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 4023 int 4024 main () 4025 { 4026 4027 ; 4028 return 0; 4029 } 4030 _ACEOF 4031 if ac_fn_c_try_compile "$LINENO"; then : 4032 ac_cv_prog_cc_g=yes 4033 fi 4034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4035 fi 4036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4037 fi 4038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4039 ac_c_werror_flag=$ac_save_c_werror_flag 4040 fi 4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4042 $as_echo "$ac_cv_prog_cc_g" >&6; } 4043 if test "$ac_test_CFLAGS" = set; then 4044 CFLAGS=$ac_save_CFLAGS 4045 elif 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 4051 else 4052 if test "$GCC" = yes; then 4053 CFLAGS="-O2" 4054 else 4055 CFLAGS= 4056 fi 4057 fi 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; } 4060 if test "${ac_cv_prog_cc_c89+set}" = set; then : 4061 $as_echo_n "(cached) " >&6 4062 else 4063 ac_cv_prog_cc_c89=no 4064 ac_save_CC=$CC 4065 cat 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. */ 4072 struct buf { int x; }; 4073 FILE * (*rcsopen) (struct buf *, struct stat *, int); 4074 static char *e (p, i) 4075 char **p; 4076 int i; 4077 { 4078 return p[i]; 4079 } 4080 static 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. */ 4097 int 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' 4102 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4103 4104 int test (int i, double x); 4105 struct s1 {int (*f) (int a);}; 4106 struct s2 {int (*f) (double a);}; 4107 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4108 int argc; 4109 char **argv; 4110 int 4111 main () 4112 { 4113 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4114 ; 4115 return 0; 4116 } 4117 _ACEOF 4118 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4119 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4120 do 4121 CC="$ac_save_CC $ac_arg" 4122 if ac_fn_c_try_compile "$LINENO"; then : 4123 ac_cv_prog_cc_c89=$ac_arg 4124 fi 4125 rm -f core conftest.err conftest.$ac_objext 4126 test "x$ac_cv_prog_cc_c89" != "xno" && break 4127 done 4128 rm -f conftest.$ac_ext 4129 CC=$ac_save_CC 4130 4131 fi 4132 # AC_CACHE_VAL 4133 case "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; } ;; 4144 esac 4145 if test "x$ac_cv_prog_cc_c89" != xno; then : 4146 4147 fi 4148 4149 ac_ext=c 4150 ac_cpp='$CPP $CPPFLAGS' 4151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4153 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4154 4155 depcc="$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; } 4159 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 4160 $as_echo_n "(cached) " >&6 4161 else 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 4262 else 4263 am_cv_CC_dependencies_compiler_type=none 4264 fi 4265 4266 fi 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; } 4269 CCDEPMODE=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='#' 4276 else 4277 am__fastdepCC_TRUE='#' 4278 am__fastdepCC_FALSE= 4279 fi 4280 4281 4282 4283 ac_ext=c 4284 ac_cpp='$CPP $CPPFLAGS' 4285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4287 ac_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. 4291 if test -n "$CPP" && test -d "$CPP"; then 4292 CPP= 4293 fi 4294 if test -z "$CPP"; then 4295 if test "${ac_cv_prog_CPP+set}" = set; then : 4296 $as_echo_n "(cached) " >&6 4297 else 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 4302 for ac_c_preproc_warn_flag in '' yes 4303 do 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 4319 if ac_fn_c_try_cpp "$LINENO"; then : 4320 4321 else 4322 # Broken: fails on valid input. 4323 continue 4324 fi 4325 rm -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 4333 if ac_fn_c_try_cpp "$LINENO"; then : 4334 # Broken: success on invalid input. 4335 continue 4336 else 4337 # Passes both tests. 4338 ac_preproc_ok=: 4339 break 4340 fi 4341 rm -f conftest.err conftest.$ac_ext 4342 4343 done 4344 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4345 rm -f conftest.err conftest.$ac_ext 4346 if $ac_preproc_ok; then : 4347 break 4348 fi 4349 4350 done 4351 ac_cv_prog_CPP=$CPP 4352 4353 fi 4354 CPP=$ac_cv_prog_CPP 4355 else 4356 ac_cv_prog_CPP=$CPP 4357 fi 4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4359 $as_echo "$CPP" >&6; } 4360 ac_preproc_ok=false 4361 for ac_c_preproc_warn_flag in '' yes 4362 do 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 4378 if ac_fn_c_try_cpp "$LINENO"; then : 4379 4380 else 4381 # Broken: fails on valid input. 4382 continue 4383 fi 4384 rm -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 4392 if ac_fn_c_try_cpp "$LINENO"; then : 4393 # Broken: success on invalid input. 4394 continue 4395 else 4396 # Passes both tests. 4397 ac_preproc_ok=: 4398 break 4399 fi 4400 rm -f conftest.err conftest.$ac_ext 4401 4402 done 4403 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4404 rm -f conftest.err conftest.$ac_ext 4405 if $ac_preproc_ok; then : 4406 4407 else 4408 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4410 as_fn_error "C preprocessor \"$CPP\" fails sanity check 4411 See \`config.log' for more details." "$LINENO" 5; } 4412 fi 4413 4414 ac_ext=c 4415 ac_cpp='$CPP $CPPFLAGS' 4416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4418 ac_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; } 4423 if test "${ac_cv_path_GREP+set}" = set; then : 4424 $as_echo_n "(cached) " >&6 4425 else 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 4430 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4431 do 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 4440 case `"$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;; 4464 esac 4465 4466 $ac_path_GREP_found && break 3 4467 done 4468 done 4469 done 4470 IFS=$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 4474 else 4475 ac_cv_path_GREP=$GREP 4476 fi 4477 4478 fi 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; } 4486 if test "${ac_cv_path_EGREP+set}" = set; then : 4487 $as_echo_n "(cached) " >&6 4488 else 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 4496 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4497 do 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 4506 case `"$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;; 4530 esac 4531 4532 $ac_path_EGREP_found && break 3 4533 done 4534 done 4535 done 4536 IFS=$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 4540 else 4541 ac_cv_path_EGREP=$EGREP 4542 fi 4543 4544 fi 4545 fi 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; } 4553 if test "${ac_cv_header_stdc+set}" = set; then : 4554 $as_echo_n "(cached) " >&6 4555 else 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 4563 int 4564 main () 4565 { 4566 4567 ; 4568 return 0; 4569 } 4570 _ACEOF 4571 if ac_fn_c_try_compile "$LINENO"; then : 4572 ac_cv_header_stdc=yes 4573 else 4574 ac_cv_header_stdc=no 4575 fi 4576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4577 4578 if 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 4585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4586 $EGREP "memchr" >/dev/null 2>&1; then : 4587 4588 else 4589 ac_cv_header_stdc=no 4590 fi 4591 rm -f conftest* 4592 4593 fi 4594 4595 if 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 4602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4603 $EGREP "free" >/dev/null 2>&1; then : 4604 4605 else 4606 ac_cv_header_stdc=no 4607 fi 4608 rm -f conftest* 4609 4610 fi 4611 4612 if 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 : 4616 else 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))) 4633 int 4634 main () 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 4644 if ac_fn_c_try_run "$LINENO"; then : 4645 4646 else 4647 ac_cv_header_stdc=no 4648 fi 4649 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4650 conftest.$ac_objext conftest.beam conftest.$ac_ext 4651 fi 4652 4653 fi 4654 fi 4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4656 $as_echo "$ac_cv_header_stdc" >&6; } 4657 if test $ac_cv_header_stdc = yes; then 4658 4659 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 4660 4661 fi 4662 4663 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4664 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4665 inttypes.h stdint.h unistd.h 4666 do : 4667 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4668 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4669 " 4670 eval 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 4676 fi 4677 4678 done 4679 4680 4681 4682 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4683 if test "x$ac_cv_header_minix_config_h" = x""yes; then : 4684 MINIX=yes 4685 else 4686 MINIX= 4687 fi 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; } 4705 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : 4706 $as_echo_n "(cached) " >&6 4707 else 4708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4709 /* end confdefs.h. */ 4710 4711 # define __EXTENSIONS__ 1 4712 $ac_includes_default 4713 int 4714 main () 4715 { 4716 4717 ; 4718 return 0; 4719 } 4720 _ACEOF 4721 if ac_fn_c_try_compile "$LINENO"; then : 4722 ac_cv_safe_to_define___extensions__=yes 4723 else 4724 ac_cv_safe_to_define___extensions__=no 4725 fi 4726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4727 fi 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 4766 ac_ext=c 4767 ac_cpp='$CPP $CPPFLAGS' 4768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4770 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4771 if 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. 4773 set 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; } 4776 if test "${ac_cv_prog_CC+set}" = set; then : 4777 $as_echo_n "(cached) " >&6 4778 else 4779 if test -n "$CC"; then 4780 ac_cv_prog_CC="$CC" # Let the user override the test. 4781 else 4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4783 for as_dir in $PATH 4784 do 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 4793 done 4794 done 4795 IFS=$as_save_IFS 4796 4797 fi 4798 fi 4799 CC=$ac_cv_prog_CC 4800 if test -n "$CC"; then 4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4802 $as_echo "$CC" >&6; } 4803 else 4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4805 $as_echo "no" >&6; } 4806 fi 4807 4808 4809 fi 4810 if 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. 4813 set 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; } 4816 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4817 $as_echo_n "(cached) " >&6 4818 else 4819 if test -n "$ac_ct_CC"; then 4820 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4821 else 4822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4823 for as_dir in $PATH 4824 do 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 4833 done 4834 done 4835 IFS=$as_save_IFS 4836 4837 fi 4838 fi 4839 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4840 if 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; } 4843 else 4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4845 $as_echo "no" >&6; } 4846 fi 4847 4848 if test "x$ac_ct_CC" = x; then 4849 CC="" 4850 else 4851 case $cross_compiling:$ac_tool_warned in 4852 yes:) 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;} 4855 ac_tool_warned=yes ;; 4856 esac 4857 CC=$ac_ct_CC 4858 fi 4859 else 4860 CC="$ac_cv_prog_CC" 4861 fi 4862 4863 if 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. 4866 set 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; } 4869 if test "${ac_cv_prog_CC+set}" = set; then : 4870 $as_echo_n "(cached) " >&6 4871 else 4872 if test -n "$CC"; then 4873 ac_cv_prog_CC="$CC" # Let the user override the test. 4874 else 4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4876 for as_dir in $PATH 4877 do 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 4886 done 4887 done 4888 IFS=$as_save_IFS 4889 4890 fi 4891 fi 4892 CC=$ac_cv_prog_CC 4893 if test -n "$CC"; then 4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4895 $as_echo "$CC" >&6; } 4896 else 4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4898 $as_echo "no" >&6; } 4899 fi 4900 4901 4902 fi 4903 fi 4904 if test -z "$CC"; then 4905 # Extract the first word of "cc", so it can be a program name with args. 4906 set 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; } 4909 if test "${ac_cv_prog_CC+set}" = set; then : 4910 $as_echo_n "(cached) " >&6 4911 else 4912 if test -n "$CC"; then 4913 ac_cv_prog_CC="$CC" # Let the user override the test. 4914 else 4915 ac_prog_rejected=no 4916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4917 for as_dir in $PATH 4918 do 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 4931 done 4932 done 4933 IFS=$as_save_IFS 4934 4935 if 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 4946 fi 4947 fi 4948 fi 4949 CC=$ac_cv_prog_CC 4950 if test -n "$CC"; then 4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4952 $as_echo "$CC" >&6; } 4953 else 4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4955 $as_echo "no" >&6; } 4956 fi 4957 4958 4959 fi 4960 if 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. 4965 set 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; } 4968 if test "${ac_cv_prog_CC+set}" = set; then : 4969 $as_echo_n "(cached) " >&6 4970 else 4971 if test -n "$CC"; then 4972 ac_cv_prog_CC="$CC" # Let the user override the test. 4973 else 4974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4975 for as_dir in $PATH 4976 do 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 4985 done 4986 done 4987 IFS=$as_save_IFS 4988 4989 fi 4990 fi 4991 CC=$ac_cv_prog_CC 4992 if test -n "$CC"; then 4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4994 $as_echo "$CC" >&6; } 4995 else 4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4997 $as_echo "no" >&6; } 4998 fi 4999 5000 5001 test -n "$CC" && break 5002 done 5003 fi 5004 if test -z "$CC"; then 5005 ac_ct_CC=$CC 5006 for ac_prog in cl.exe 5007 do 5008 # Extract the first word of "$ac_prog", so it can be a program name with args. 5009 set 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; } 5012 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 5013 $as_echo_n "(cached) " >&6 5014 else 5015 if test -n "$ac_ct_CC"; then 5016 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5017 else 5018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5019 for as_dir in $PATH 5020 do 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 5029 done 5030 done 5031 IFS=$as_save_IFS 5032 5033 fi 5034 fi 5035 ac_ct_CC=$ac_cv_prog_ac_ct_CC 5036 if 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; } 5039 else 5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5041 $as_echo "no" >&6; } 5042 fi 5043 5044 5045 test -n "$ac_ct_CC" && break 5046 done 5047 5048 if test "x$ac_ct_CC" = x; then 5049 CC="" 5050 else 5051 case $cross_compiling:$ac_tool_warned in 5052 yes:) 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;} 5055 ac_tool_warned=yes ;; 5056 esac 5057 CC=$ac_ct_CC 5058 fi 5059 fi 5060 5061 fi 5062 5063 5064 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5066 as_fn_error "no acceptable C compiler found in \$PATH 5067 See \`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 5071 set X $ac_compile 5072 ac_compiler=$2 5073 for ac_option in --version -v -V -qversion; do 5074 { { ac_try="$ac_compiler $ac_option >&5" 5075 case "(($ac_try" in 5076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5077 *) ac_try_echo=$ac_try;; 5078 esac 5079 eval 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; } 5092 done 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; } 5096 if test "${ac_cv_c_compiler_gnu+set}" = set; then : 5097 $as_echo_n "(cached) " >&6 5098 else 5099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5100 /* end confdefs.h. */ 5101 5102 int 5103 main () 5104 { 5105 #ifndef __GNUC__ 5106 choke me 5107 #endif 5108 5109 ; 5110 return 0; 5111 } 5112 _ACEOF 5113 if ac_fn_c_try_compile "$LINENO"; then : 5114 ac_compiler_gnu=yes 5115 else 5116 ac_compiler_gnu=no 5117 fi 5118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5119 ac_cv_c_compiler_gnu=$ac_compiler_gnu 5120 5121 fi 5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5123 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 5124 if test $ac_compiler_gnu = yes; then 5125 GCC=yes 5126 else 5127 GCC= 5128 fi 5129 ac_test_CFLAGS=${CFLAGS+set} 5130 ac_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; } 5133 if test "${ac_cv_prog_cc_g+set}" = set; then : 5134 $as_echo_n "(cached) " >&6 5135 else 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 5143 int 5144 main () 5145 { 5146 5147 ; 5148 return 0; 5149 } 5150 _ACEOF 5151 if ac_fn_c_try_compile "$LINENO"; then : 5152 ac_cv_prog_cc_g=yes 5153 else 5154 CFLAGS="" 5155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5156 /* end confdefs.h. */ 5157 5158 int 5159 main () 5160 { 5161 5162 ; 5163 return 0; 5164 } 5165 _ACEOF 5166 if ac_fn_c_try_compile "$LINENO"; then : 5167 5168 else 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 5174 int 5175 main () 5176 { 5177 5178 ; 5179 return 0; 5180 } 5181 _ACEOF 5182 if ac_fn_c_try_compile "$LINENO"; then : 5183 ac_cv_prog_cc_g=yes 5184 fi 5185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5186 fi 5187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5188 fi 5189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5190 ac_c_werror_flag=$ac_save_c_werror_flag 5191 fi 5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5193 $as_echo "$ac_cv_prog_cc_g" >&6; } 5194 if test "$ac_test_CFLAGS" = set; then 5195 CFLAGS=$ac_save_CFLAGS 5196 elif 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 5202 else 5203 if test "$GCC" = yes; then 5204 CFLAGS="-O2" 5205 else 5206 CFLAGS= 5207 fi 5208 fi 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; } 5211 if test "${ac_cv_prog_cc_c89+set}" = set; then : 5212 $as_echo_n "(cached) " >&6 5213 else 5214 ac_cv_prog_cc_c89=no 5215 ac_save_CC=$CC 5216 cat 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. */ 5223 struct buf { int x; }; 5224 FILE * (*rcsopen) (struct buf *, struct stat *, int); 5225 static char *e (p, i) 5226 char **p; 5227 int i; 5228 { 5229 return p[i]; 5230 } 5231 static 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. */ 5248 int 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' 5253 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5254 5255 int test (int i, double x); 5256 struct s1 {int (*f) (int a);}; 5257 struct s2 {int (*f) (double a);}; 5258 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5259 int argc; 5260 char **argv; 5261 int 5262 main () 5263 { 5264 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5265 ; 5266 return 0; 5267 } 5268 _ACEOF 5269 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5270 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5271 do 5272 CC="$ac_save_CC $ac_arg" 5273 if ac_fn_c_try_compile "$LINENO"; then : 5274 ac_cv_prog_cc_c89=$ac_arg 5275 fi 5276 rm -f core conftest.err conftest.$ac_objext 5277 test "x$ac_cv_prog_cc_c89" != "xno" && break 5278 done 5279 rm -f conftest.$ac_ext 5280 CC=$ac_save_CC 5281 5282 fi 5283 # AC_CACHE_VAL 5284 case "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; } ;; 5295 esac 5296 if test "x$ac_cv_prog_cc_c89" != xno; then : 5297 5298 fi 5299 5300 ac_ext=c 5301 ac_cpp='$CPP $CPPFLAGS' 5302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5304 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5305 5306 depcc="$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; } 5310 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 5311 $as_echo_n "(cached) " >&6 5312 else 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 5413 else 5414 am_cv_CC_dependencies_compiler_type=none 5415 fi 5416 5417 fi 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; } 5420 CCDEPMODE=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='#' 5427 else 5428 am__fastdepCC_TRUE='#' 5429 am__fastdepCC_FALSE= 5430 fi 5431 5432 5433 if 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; } 5436 else 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; } 5439 fi 5440 set dummy $CC; ac_cc=`$as_echo "$2" | 5441 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 5442 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then : 5443 $as_echo_n "(cached) " >&6 5444 else 5445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5446 /* end confdefs.h. */ 5447 5448 int 5449 main () 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. 5459 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 5460 rm -f conftest2.* 5461 if { { case "(($ac_try" in 5462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5463 *) ac_try_echo=$ac_try;; 5464 esac 5465 eval 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;; 5474 esac 5475 eval 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; }; 5481 then 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;; 5489 esac 5490 eval 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;; 5501 esac 5502 eval 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;; 5511 esac 5512 eval 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 5527 else 5528 eval ac_cv_prog_cc_${ac_cc}_c_o=no 5529 fi 5530 rm -f core conftest* 5531 5532 fi 5533 if 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; } 5536 else 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 5542 fi 5543 5544 # FIXME: we rely on the cache variable name because 5545 # there is no other way. 5546 set dummy $CC 5547 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 5548 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 5549 if 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" 5556 fi 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; } 5563 if test "${ac_cv_search_strerror+set}" = set; then : 5564 $as_echo_n "(cached) " >&6 5565 else 5566 ac_func_search_save_LIBS=$LIBS 5567 cat 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 5574 extern "C" 5575 #endif 5576 char strerror (); 5577 int 5578 main () 5579 { 5580 return strerror (); 5581 ; 5582 return 0; 5583 } 5584 _ACEOF 5585 for 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 5594 fi 5595 rm -f core conftest.err conftest.$ac_objext \ 5596 conftest$ac_exeext 5597 if test "${ac_cv_search_strerror+set}" = set; then : 5598 break 5599 fi 5600 done 5601 if test "${ac_cv_search_strerror+set}" = set; then : 5602 5603 else 5604 ac_cv_search_strerror=no 5605 fi 5606 rm conftest.$ac_ext 5607 LIBS=$ac_func_search_save_LIBS 5608 fi 5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 5610 $as_echo "$ac_cv_search_strerror" >&6; } 5611 ac_res=$ac_cv_search_strerror 5612 if test "$ac_res" != no; then : 5613 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5614 5615 fi 5616 5617 5618 5619 if 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. 5621 set 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; } 5624 if test "${ac_cv_prog_RANLIB+set}" = set; then : 5625 $as_echo_n "(cached) " >&6 5626 else 5627 if test -n "$RANLIB"; then 5628 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5629 else 5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5631 for as_dir in $PATH 5632 do 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 5641 done 5642 done 5643 IFS=$as_save_IFS 5644 5645 fi 5646 fi 5647 RANLIB=$ac_cv_prog_RANLIB 5648 if test -n "$RANLIB"; then 5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5650 $as_echo "$RANLIB" >&6; } 5651 else 5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5653 $as_echo "no" >&6; } 5654 fi 5655 5656 5657 fi 5658 if 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. 5661 set 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; } 5664 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 5665 $as_echo_n "(cached) " >&6 5666 else 5667 if test -n "$ac_ct_RANLIB"; then 5668 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5669 else 5670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5671 for as_dir in $PATH 5672 do 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 5681 done 5682 done 5683 IFS=$as_save_IFS 5684 5685 fi 5686 fi 5687 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5688 if 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; } 5691 else 5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5693 $as_echo "no" >&6; } 5694 fi 5695 5696 if test "x$ac_ct_RANLIB" = x; then 5697 RANLIB=":" 5698 else 5699 case $cross_compiling:$ac_tool_warned in 5700 yes:) 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;} 5703 ac_tool_warned=yes ;; 5704 esac 5705 RANLIB=$ac_ct_RANLIB 5706 fi 5707 else 5708 RANLIB="$ac_cv_prog_RANLIB" 5709 fi 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; } 5713 LN_S=$as_ln_s 5714 if test "$LN_S" = "ln -s"; then 5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5716 $as_echo "yes" >&6; } 5717 else 5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5719 $as_echo "no, using $LN_S" >&6; } 5720 fi 5721 5722 # Check whether --enable-largefile was given. 5723 if test "${enable_largefile+set}" = set; then : 5724 enableval=$enable_largefile; 5725 fi 5726 5727 if 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; } 5731 if test "${ac_cv_sys_largefile_CC+set}" = set; then : 5732 $as_echo_n "(cached) " >&6 5733 else 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]; 5751 int 5752 main () 5753 { 5754 5755 ; 5756 return 0; 5757 } 5758 _ACEOF 5759 if ac_fn_c_try_compile "$LINENO"; then : 5760 break 5761 fi 5762 rm -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 5766 fi 5767 rm -f core conftest.err conftest.$ac_objext 5768 break 5769 done 5770 CC=$ac_save_CC 5771 rm -f conftest.$ac_ext 5772 fi 5773 fi 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; } 5782 if test "${ac_cv_sys_file_offset_bits+set}" = set; then : 5783 $as_echo_n "(cached) " >&6 5784 else 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]; 5797 int 5798 main () 5799 { 5800 5801 ; 5802 return 0; 5803 } 5804 _ACEOF 5805 if ac_fn_c_try_compile "$LINENO"; then : 5806 ac_cv_sys_file_offset_bits=no; break 5807 fi 5808 rm -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]; 5821 int 5822 main () 5823 { 5824 5825 ; 5826 return 0; 5827 } 5828 _ACEOF 5829 if ac_fn_c_try_compile "$LINENO"; then : 5830 ac_cv_sys_file_offset_bits=64; break 5831 fi 5832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5833 ac_cv_sys_file_offset_bits=unknown 5834 break 5835 done 5836 fi 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; } 5839 case $ac_cv_sys_file_offset_bits in #( 5840 no | unknown) ;; 5841 *) 5842 cat >>confdefs.h <<_ACEOF 5843 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 5844 _ACEOF 5845 ;; 5846 esac 5847 rm -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; } 5851 if test "${ac_cv_sys_large_files+set}" = set; then : 5852 $as_echo_n "(cached) " >&6 5853 else 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]; 5866 int 5867 main () 5868 { 5869 5870 ; 5871 return 0; 5872 } 5873 _ACEOF 5874 if ac_fn_c_try_compile "$LINENO"; then : 5875 ac_cv_sys_large_files=no; break 5876 fi 5877 rm -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]; 5890 int 5891 main () 5892 { 5893 5894 ; 5895 return 0; 5896 } 5897 _ACEOF 5898 if ac_fn_c_try_compile "$LINENO"; then : 5899 ac_cv_sys_large_files=1; break 5900 fi 5901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5902 ac_cv_sys_large_files=unknown 5903 break 5904 done 5905 fi 5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 5907 $as_echo "$ac_cv_sys_large_files" >&6; } 5908 case $ac_cv_sys_large_files in #( 5909 no | unknown) ;; 5910 *) 5911 cat >>confdefs.h <<_ACEOF 5912 #define _LARGE_FILES $ac_cv_sys_large_files 5913 _ACEOF 5914 ;; 5915 esac 5916 rm -rf conftest* 5917 fi 5918 fi 5919 5920 5921 5922 # Extract the first word of "perl", so it can be a program name with args. 5923 set 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; } 5926 if test "${ac_cv_path_PERL+set}" = set; then : 5927 $as_echo_n "(cached) " >&6 5928 else 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 5935 for as_dir in $PATH 5936 do 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 5945 done 5946 done 5947 IFS=$as_save_IFS 5948 5949 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no" 5950 ;; 5951 esac 5952 fi 5953 PERL=$ac_cv_path_PERL 5954 if test -n "$PERL"; then 5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 5956 $as_echo "$PERL" >&6; } 5957 else 5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5959 $as_echo "no" >&6; } 5960 fi 5961 5962 5963 # Extract the first word of "csh", so it can be a program name with args. 5964 set 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; } 5967 if test "${ac_cv_path_CSH+set}" = set; then : 5968 $as_echo_n "(cached) " >&6 5969 else 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 5976 for as_dir in $PATH 5977 do 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 5986 done 5987 done 5988 IFS=$as_save_IFS 5989 5990 test -z "$ac_cv_path_CSH" && ac_cv_path_CSH="no" 5991 ;; 5992 esac 5993 fi 5994 CSH=$ac_cv_path_CSH 5995 if test -n "$CSH"; then 5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSH" >&5 5997 $as_echo "$CSH" >&6; } 5998 else 5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6000 $as_echo "no" >&6; } 6001 fi 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. 6006 set 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; } 6009 if test "${ac_cv_path_MKTEMP+set}" = set; then : 6010 $as_echo_n "(cached) " >&6 6011 else 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 6018 for as_dir in $PATH 6019 do 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 6028 done 6029 done 6030 IFS=$as_save_IFS 6031 6032 test -z "$ac_cv_path_MKTEMP" && ac_cv_path_MKTEMP="mktemp" 6033 ;; 6034 esac 6035 fi 6036 MKTEMP=$ac_cv_path_MKTEMP 6037 if test -n "$MKTEMP"; then 6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 6039 $as_echo "$MKTEMP" >&6; } 6040 else 6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6042 $as_echo "no" >&6; } 6043 fi 6044 6045 6046 if test x"$MKTEMP" = xmktemp; then 6047 MKTEMP_SH_FUNCTION=$srcdir/mktemp.sh 6048 else 6049 MKTEMP_SH_FUNCTION=/dev/null 6050 fi 6051 6052 # for src/cvsbug.in 6053 # Extract the first word of "sendmail", so it can be a program name with args. 6054 set 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; } 6057 if test "${ac_cv_path_SENDMAIL+set}" = set; then : 6058 $as_echo_n "(cached) " >&6 6059 else 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 6066 as_dummy="$PATH:/usr/sbin:/usr/lib" 6067 for as_dir in $as_dummy 6068 do 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 6077 done 6078 done 6079 IFS=$as_save_IFS 6080 6081 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="no" 6082 ;; 6083 esac 6084 fi 6085 SENDMAIL=$ac_cv_path_SENDMAIL 6086 if test -n "$SENDMAIL"; then 6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5 6088 $as_echo "$SENDMAIL" >&6; } 6089 else 6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6091 $as_echo "no" >&6; } 6092 fi 6093 6094 6095 # For diff/util.c 6096 # Extract the first word of "pr", so it can be a program name with args. 6097 set 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; } 6100 if test "${ac_cv_path_PR+set}" = set; then : 6101 $as_echo_n "(cached) " >&6 6102 else 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 6109 for as_dir in $PATH 6110 do 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 6119 done 6120 done 6121 IFS=$as_save_IFS 6122 6123 test -z "$ac_cv_path_PR" && ac_cv_path_PR="no" 6124 ;; 6125 esac 6126 fi 6127 PR=$ac_cv_path_PR 6128 if test -n "$PR"; then 6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PR" >&5 6130 $as_echo "$PR" >&6; } 6131 else 6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6133 $as_echo "no" >&6; } 6134 fi 6135 6136 6137 if test x"$PR" != xno; then 6138 6139 cat >>confdefs.h <<_ACEOF 6140 #define PR_PROGRAM "$PR" 6141 _ACEOF 6142 6143 fi 6144 6145 missing_dir=`cd $ac_aux_dir && pwd` 6146 glocs="$PATH:/usr/local/bin:/usr/contrib/bin:/usr/gnu/bin:/local/bin:/local/gnu/bin:/gnu/bin" 6147 for ac_prog in groff roff 6148 do 6149 # Extract the first word of "$ac_prog", so it can be a program name with args. 6150 set 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; } 6153 if test "${ac_cv_path_ROFF+set}" = set; then : 6154 $as_echo_n "(cached) " >&6 6155 else 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 6162 for as_dir in $glocs 6163 do 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 6172 done 6173 done 6174 IFS=$as_save_IFS 6175 6176 ;; 6177 esac 6178 fi 6179 ROFF=$ac_cv_path_ROFF 6180 if test -n "$ROFF"; then 6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ROFF" >&5 6182 $as_echo "$ROFF" >&6; } 6183 else 6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6185 $as_echo "no" >&6; } 6186 fi 6187 6188 6189 test -n "$ROFF" && break 6190 done 6191 test -n "$ROFF" || ROFF="$missing_dir/missing roff" 6192 6193 # Extract the first word of "ps2pdf", so it can be a program name with args. 6194 set 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; } 6197 if test "${ac_cv_path_PS2PDF+set}" = set; then : 6198 $as_echo_n "(cached) " >&6 6199 else 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 6206 for as_dir in $PATH 6207 do 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 6216 done 6217 done 6218 IFS=$as_save_IFS 6219 6220 test -z "$ac_cv_path_PS2PDF" && ac_cv_path_PS2PDF="$missing_dir/missing ps2pdf" 6221 ;; 6222 esac 6223 fi 6224 PS2PDF=$ac_cv_path_PS2PDF 6225 if test -n "$PS2PDF"; then 6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS2PDF" >&5 6227 $as_echo "$PS2PDF" >&6; } 6228 else 6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6230 $as_echo "no" >&6; } 6231 fi 6232 6233 6234 # Extract the first word of "texi2dvi", so it can be a program name with args. 6235 set 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; } 6238 if test "${ac_cv_path_TEXI2DVI+set}" = set; then : 6239 $as_echo_n "(cached) " >&6 6240 else 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 6247 for as_dir in $PATH 6248 do 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 6257 done 6258 done 6259 IFS=$as_save_IFS 6260 6261 test -z "$ac_cv_path_TEXI2DVI" && ac_cv_path_TEXI2DVI="$missing_dir/missing texi2dvi" 6262 ;; 6263 esac 6264 fi 6265 TEXI2DVI=$ac_cv_path_TEXI2DVI 6266 if test -n "$TEXI2DVI"; then 6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2DVI" >&5 6268 $as_echo "$TEXI2DVI" >&6; } 6269 else 6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6271 $as_echo "no" >&6; } 6272 fi 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; } 6278 if test "${ac_cv_sys_interpreter+set}" = set; then : 6279 $as_echo_n "(cached) " >&6 6280 else 6281 echo '#! /bin/cat 6282 exit 69 6283 ' >conftest 6284 chmod u+x conftest 6285 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1) 6286 if test $? -ne 69; then 6287 ac_cv_sys_interpreter=yes 6288 else 6289 ac_cv_sys_interpreter=no 6290 fi 6291 rm -f conftest 6292 fi 6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5 6294 $as_echo "$ac_cv_sys_interpreter" >&6; } 6295 interpval=$ac_cv_sys_interpreter 6296 6297 if 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;} 6302 fi 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; } 6307 if test "${ccvs_cv_bsd_make_vpath_bug+set}" = set; then : 6308 $as_echo_n "(cached) " >&6 6309 else 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; }; } 6317 fi 6318 cat >conftestmake <<EOF 6319 VPATH = ac_test_dir 6320 ac_test_target: ac_test_dep 6321 echo BSD VPATH bug present >&2 6322 ac_test_dep: ac_test_dep_dep 6323 EOF 6324 touch ac_test_dir/ac_test_dep_dep 6325 touch ac_test_dir/ac_test_dep 6326 touch ac_test_target 6327 # Don't know why, but the following test doesn't work under FreeBSD 4.2 6328 # without this sleep command 6329 sleep 1 6330 if { 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 6337 else 6338 ccvs_cv_bsd_make_vpath_bug=no 6339 fi 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; }; } 6346 fi 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='#' 6355 else 6356 MAKE_TARGETS_IN_VPATH_TRUE='#' 6357 MAKE_TARGETS_IN_VPATH_FALSE= 6358 fi 6359 6360 6361 ac_header_dirent=no 6362 for 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; } 6366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then : 6367 $as_echo_n "(cached) " >&6 6368 else 6369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6370 /* end confdefs.h. */ 6371 #include <sys/types.h> 6372 #include <$ac_hdr> 6373 6374 int 6375 main () 6376 { 6377 if ((DIR *) 0) 6378 return 0; 6379 ; 6380 return 0; 6381 } 6382 _ACEOF 6383 if ac_fn_c_try_compile "$LINENO"; then : 6384 eval "$as_ac_Header=yes" 6385 else 6386 eval "$as_ac_Header=no" 6387 fi 6388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6389 fi 6390 eval ac_res=\$$as_ac_Header 6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6392 $as_echo "$ac_res" >&6; } 6393 eval 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 6399 ac_header_dirent=$ac_hdr; break 6400 fi 6401 6402 done 6403 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 6404 if 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; } 6407 if test "${ac_cv_search_opendir+set}" = set; then : 6408 $as_echo_n "(cached) " >&6 6409 else 6410 ac_func_search_save_LIBS=$LIBS 6411 cat 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 6418 extern "C" 6419 #endif 6420 char opendir (); 6421 int 6422 main () 6423 { 6424 return opendir (); 6425 ; 6426 return 0; 6427 } 6428 _ACEOF 6429 for 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 6438 fi 6439 rm -f core conftest.err conftest.$ac_objext \ 6440 conftest$ac_exeext 6441 if test "${ac_cv_search_opendir+set}" = set; then : 6442 break 6443 fi 6444 done 6445 if test "${ac_cv_search_opendir+set}" = set; then : 6446 6447 else 6448 ac_cv_search_opendir=no 6449 fi 6450 rm conftest.$ac_ext 6451 LIBS=$ac_func_search_save_LIBS 6452 fi 6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 6454 $as_echo "$ac_cv_search_opendir" >&6; } 6455 ac_res=$ac_cv_search_opendir 6456 if test "$ac_res" != no; then : 6457 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6458 6459 fi 6460 6461 else 6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 6463 $as_echo_n "checking for library containing opendir... " >&6; } 6464 if test "${ac_cv_search_opendir+set}" = set; then : 6465 $as_echo_n "(cached) " >&6 6466 else 6467 ac_func_search_save_LIBS=$LIBS 6468 cat 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 6475 extern "C" 6476 #endif 6477 char opendir (); 6478 int 6479 main () 6480 { 6481 return opendir (); 6482 ; 6483 return 0; 6484 } 6485 _ACEOF 6486 for 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 6495 fi 6496 rm -f core conftest.err conftest.$ac_objext \ 6497 conftest$ac_exeext 6498 if test "${ac_cv_search_opendir+set}" = set; then : 6499 break 6500 fi 6501 done 6502 if test "${ac_cv_search_opendir+set}" = set; then : 6503 6504 else 6505 ac_cv_search_opendir=no 6506 fi 6507 rm conftest.$ac_ext 6508 LIBS=$ac_func_search_save_LIBS 6509 fi 6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 6511 $as_echo "$ac_cv_search_opendir" >&6; } 6512 ac_res=$ac_cv_search_opendir 6513 if test "$ac_res" != no; then : 6514 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6515 6516 fi 6517 6518 fi 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; } 6522 if test "${ac_cv_header_stdc+set}" = set; then : 6523 $as_echo_n "(cached) " >&6 6524 else 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 6532 int 6533 main () 6534 { 6535 6536 ; 6537 return 0; 6538 } 6539 _ACEOF 6540 if ac_fn_c_try_compile "$LINENO"; then : 6541 ac_cv_header_stdc=yes 6542 else 6543 ac_cv_header_stdc=no 6544 fi 6545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6546 6547 if 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 6554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6555 $EGREP "memchr" >/dev/null 2>&1; then : 6556 6557 else 6558 ac_cv_header_stdc=no 6559 fi 6560 rm -f conftest* 6561 6562 fi 6563 6564 if 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 6571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6572 $EGREP "free" >/dev/null 2>&1; then : 6573 6574 else 6575 ac_cv_header_stdc=no 6576 fi 6577 rm -f conftest* 6578 6579 fi 6580 6581 if 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 : 6585 else 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))) 6602 int 6603 main () 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 6613 if ac_fn_c_try_run "$LINENO"; then : 6614 6615 else 6616 ac_cv_header_stdc=no 6617 fi 6618 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6619 conftest.$ac_objext conftest.beam conftest.$ac_ext 6620 fi 6621 6622 fi 6623 fi 6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6625 $as_echo "$ac_cv_header_stdc" >&6; } 6626 if test $ac_cv_header_stdc = yes; then 6627 6628 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 6629 6630 fi 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; } 6634 if test "${ac_cv_header_sys_wait_h+set}" = set; then : 6635 $as_echo_n "(cached) " >&6 6636 else 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 6648 int 6649 main () 6650 { 6651 int s; 6652 wait (&s); 6653 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 6654 ; 6655 return 0; 6656 } 6657 _ACEOF 6658 if ac_fn_c_try_compile "$LINENO"; then : 6659 ac_cv_header_sys_wait_h=yes 6660 else 6661 ac_cv_header_sys_wait_h=no 6662 fi 6663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6664 fi 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; } 6667 if test $ac_cv_header_sys_wait_h = yes; then 6668 6669 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 6670 6671 fi 6672 6673 for 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 6690 do : 6691 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6692 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6693 eval 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 6699 fi 6700 6701 done 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; } 6705 if test "${ac_cv_header_stat_broken+set}" = set; then : 6706 $as_echo_n "(cached) " >&6 6707 else 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 6714 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; 6715 #endif 6716 6717 #if defined S_ISBLK && defined S_IFCHR 6718 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; 6719 #endif 6720 6721 #if defined S_ISLNK && defined S_IFREG 6722 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; 6723 #endif 6724 6725 #if defined S_ISSOCK && defined S_IFREG 6726 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; 6727 #endif 6728 6729 _ACEOF 6730 if ac_fn_c_try_compile "$LINENO"; then : 6731 ac_cv_header_stat_broken=no 6732 else 6733 ac_cv_header_stat_broken=yes 6734 fi 6735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6736 fi 6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 6738 $as_echo "$ac_cv_header_stat_broken" >&6; } 6739 if test $ac_cv_header_stat_broken = yes; then 6740 6741 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h 6742 6743 fi 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; } 6748 if test "${ac_cv_c_const+set}" = set; then : 6749 $as_echo_n "(cached) " >&6 6750 else 6751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6752 /* end confdefs.h. */ 6753 6754 int 6755 main () 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 6811 if ac_fn_c_try_compile "$LINENO"; then : 6812 ac_cv_c_const=yes 6813 else 6814 ac_cv_c_const=no 6815 fi 6816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6817 fi 6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 6819 $as_echo "$ac_cv_c_const" >&6; } 6820 if test $ac_cv_c_const = no; then 6821 6822 $as_echo "#define const /**/" >>confdefs.h 6823 6824 fi 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; } 6828 if test "${ac_cv_type_uid_t+set}" = set; then : 6829 $as_echo_n "(cached) " >&6 6830 else 6831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6832 /* end confdefs.h. */ 6833 #include <sys/types.h> 6834 6835 _ACEOF 6836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6837 $EGREP "uid_t" >/dev/null 2>&1; then : 6838 ac_cv_type_uid_t=yes 6839 else 6840 ac_cv_type_uid_t=no 6841 fi 6842 rm -f conftest* 6843 6844 fi 6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 6846 $as_echo "$ac_cv_type_uid_t" >&6; } 6847 if 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 6854 fi 6855 6856 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 6857 if test "x$ac_cv_type_mode_t" = x""yes; then : 6858 6859 else 6860 6861 cat >>confdefs.h <<_ACEOF 6862 #define mode_t int 6863 _ACEOF 6864 6865 fi 6866 6867 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 6868 if test "x$ac_cv_type_pid_t" = x""yes; then : 6869 6870 else 6871 6872 cat >>confdefs.h <<_ACEOF 6873 #define pid_t int 6874 _ACEOF 6875 6876 fi 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; } 6880 if test "${ac_cv_type_signal+set}" = set; then : 6881 $as_echo_n "(cached) " >&6 6882 else 6883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6884 /* end confdefs.h. */ 6885 #include <sys/types.h> 6886 #include <signal.h> 6887 6888 int 6889 main () 6890 { 6891 return *(signal (0, 0)) (0) == 1; 6892 ; 6893 return 0; 6894 } 6895 _ACEOF 6896 if ac_fn_c_try_compile "$LINENO"; then : 6897 ac_cv_type_signal=int 6898 else 6899 ac_cv_type_signal=void 6900 fi 6901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6902 fi 6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 6904 $as_echo "$ac_cv_type_signal" >&6; } 6905 6906 cat >>confdefs.h <<_ACEOF 6907 #define RETSIGTYPE $ac_cv_type_signal 6908 _ACEOF 6909 6910 6911 6912 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" 6913 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then : 6914 6915 cat >>confdefs.h <<_ACEOF 6916 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 6917 _ACEOF 6918 6919 6920 fi 6921 6922 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" 6923 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then : 6924 6925 cat >>confdefs.h <<_ACEOF 6926 #define HAVE_STRUCT_STAT_ST_RDEV 1 6927 _ACEOF 6928 6929 6930 fi 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; } 6935 if test "${ac_cv_sys_largefile_source+set}" = set; then : 6936 $as_echo_n "(cached) " >&6 6937 else 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> 6943 int 6944 main () 6945 { 6946 int (*fp) (FILE *, off_t, int) = fseeko; 6947 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 6948 ; 6949 return 0; 6950 } 6951 _ACEOF 6952 if ac_fn_c_try_link "$LINENO"; then : 6953 ac_cv_sys_largefile_source=no; break 6954 fi 6955 rm -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> 6962 int 6963 main () 6964 { 6965 int (*fp) (FILE *, off_t, int) = fseeko; 6966 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 6967 ; 6968 return 0; 6969 } 6970 _ACEOF 6971 if ac_fn_c_try_link "$LINENO"; then : 6972 ac_cv_sys_largefile_source=1; break 6973 fi 6974 rm -f core conftest.err conftest.$ac_objext \ 6975 conftest$ac_exeext conftest.$ac_ext 6976 ac_cv_sys_largefile_source=unknown 6977 break 6978 done 6979 fi 6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 6981 $as_echo "$ac_cv_sys_largefile_source" >&6; } 6982 case $ac_cv_sys_largefile_source in #( 6983 no | unknown) ;; 6984 *) 6985 cat >>confdefs.h <<_ACEOF 6986 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 6987 _ACEOF 6988 ;; 6989 esac 6990 rm -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. 6995 if test $ac_cv_sys_largefile_source != unknown; then 6996 6997 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 6998 6999 fi 7000 7001 if test $ac_cv_func_fseeko = no; then 7002 case " $LIBOBJS " in 7003 *" fseeko.$ac_objext "* ) ;; 7004 *) LIBOBJS="$LIBOBJS fseeko.$ac_objext" 7005 ;; 7006 esac 7007 7008 case " $LIBOBJS " in 7009 *" ftello.$ac_objext "* ) ;; 7010 *) LIBOBJS="$LIBOBJS ftello.$ac_objext" 7011 ;; 7012 esac 7013 7014 fi 7015 7016 # Replace functions with versions in lib/ when they can't be found. 7017 for ac_func in \ 7018 waitpid \ 7019 7020 do : 7021 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7022 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7023 eval 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 7029 else 7030 case " $LIBOBJS " in 7031 *" $ac_func.$ac_objext "* ) ;; 7032 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 7033 ;; 7034 esac 7035 7036 fi 7037 done 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; } 7043 if test "${db_cv_optreset+set}" = set; then : 7044 $as_echo_n "(cached) " >&6 7045 else 7046 7047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7048 /* end confdefs.h. */ 7049 #include <unistd.h> 7050 int 7051 main () 7052 { 7053 extern int optreset; optreset = 1; 7054 ; 7055 return 0; 7056 } 7057 _ACEOF 7058 if ac_fn_c_try_link "$LINENO"; then : 7059 db_cv_optreset=yes 7060 else 7061 db_cv_optreset=no 7062 fi 7063 rm -f core conftest.err conftest.$ac_objext \ 7064 conftest$ac_exeext conftest.$ac_ext 7065 fi 7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_optreset" >&5 7067 $as_echo "$db_cv_optreset" >&6; } 7068 if test "$db_cv_optreset" = "yes"; then 7069 $as_echo "#define HAVE_GETOPT_OPTRESET 1" >>confdefs.h 7070 7071 7072 fi 7073 7074 # 7075 # Special hack for a SunOS 5.7 (aka Solaris 7) select() problem. 7076 # 7077 7078 for ac_header in fcntl.h 7079 do : 7080 ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" 7081 if test "x$ac_cv_header_fcntl_h" = x""yes; then : 7082 cat >>confdefs.h <<_ACEOF 7083 #define HAVE_FCNTL_H 1 7084 _ACEOF 7085 7086 fi 7087 7088 done 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; } 7092 if test "${ccvs_cv_func_select_hang+set}" = set; then : 7093 $as_echo_n "(cached) " >&6 7094 else 7095 if test "$cross_compiling" = yes; then : 7096 ccvs_cv_func_select_hang=yes 7097 else 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> 7107 int 7108 main () 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 7129 if ac_fn_c_try_run "$LINENO"; then : 7130 ccvs_cv_func_select_hang=no 7131 else 7132 ccvs_cv_func_select_hang=yes 7133 fi 7134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7135 conftest.$ac_objext conftest.beam conftest.$ac_ext 7136 fi 7137 7138 7139 fi 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 7145 do : 7146 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7147 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 7148 eval 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 7154 fi 7155 7156 done 7157 7158 7159 case " $LIBOBJS " in 7160 *" sunos57-select.$ac_objext "* ) ;; 7161 *) LIBOBJS="$LIBOBJS sunos57-select.$ac_objext" 7162 ;; 7163 esac 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; } 7181 if test "${ac_cv_working_alloca_h+set}" = set; then : 7182 $as_echo_n "(cached) " >&6 7183 else 7184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7185 /* end confdefs.h. */ 7186 #include <alloca.h> 7187 int 7188 main () 7189 { 7190 char *p = (char *) alloca (2 * sizeof (int)); 7191 if (p) return 0; 7192 ; 7193 return 0; 7194 } 7195 _ACEOF 7196 if ac_fn_c_try_link "$LINENO"; then : 7197 ac_cv_working_alloca_h=yes 7198 else 7199 ac_cv_working_alloca_h=no 7200 fi 7201 rm -f core conftest.err conftest.$ac_objext \ 7202 conftest$ac_exeext conftest.$ac_ext 7203 fi 7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 7205 $as_echo "$ac_cv_working_alloca_h" >&6; } 7206 if test $ac_cv_working_alloca_h = yes; then 7207 7208 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 7209 7210 fi 7211 7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 7213 $as_echo_n "checking for alloca... " >&6; } 7214 if test "${ac_cv_func_alloca_works+set}" = set; then : 7215 $as_echo_n "(cached) " >&6 7216 else 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 */ 7233 char *alloca (); 7234 # endif 7235 # endif 7236 # endif 7237 # endif 7238 #endif 7239 7240 int 7241 main () 7242 { 7243 char *p = (char *) alloca (1); 7244 if (p) return 0; 7245 ; 7246 return 0; 7247 } 7248 _ACEOF 7249 if ac_fn_c_try_link "$LINENO"; then : 7250 ac_cv_func_alloca_works=yes 7251 else 7252 ac_cv_func_alloca_works=no 7253 fi 7254 rm -f core conftest.err conftest.$ac_objext \ 7255 conftest$ac_exeext conftest.$ac_ext 7256 fi 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 7260 if test $ac_cv_func_alloca_works = yes; then 7261 7262 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 7263 7264 else 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 7270 ALLOCA=\${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; } 7277 if test "${ac_cv_os_cray+set}" = set; then : 7278 $as_echo_n "(cached) " >&6 7279 else 7280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7281 /* end confdefs.h. */ 7282 #if defined CRAY && ! defined CRAY2 7283 webecray 7284 #else 7285 wenotbecray 7286 #endif 7287 7288 _ACEOF 7289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7290 $EGREP "webecray" >/dev/null 2>&1; then : 7291 ac_cv_os_cray=yes 7292 else 7293 ac_cv_os_cray=no 7294 fi 7295 rm -f conftest* 7296 7297 fi 7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 7299 $as_echo "$ac_cv_os_cray" >&6; } 7300 if 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` 7303 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7304 eval as_val=\$$as_ac_var 7305 if test "x$as_val" = x""yes; then : 7306 7307 cat >>confdefs.h <<_ACEOF 7308 #define CRAY_STACKSEG_END $ac_func 7309 _ACEOF 7310 7311 break 7312 fi 7313 7314 done 7315 fi 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; } 7319 if test "${ac_cv_c_stack_direction+set}" = set; then : 7320 $as_echo_n "(cached) " >&6 7321 else 7322 if test "$cross_compiling" = yes; then : 7323 ac_cv_c_stack_direction=0 7324 else 7325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7326 /* end confdefs.h. */ 7327 $ac_includes_default 7328 int 7329 find_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 7342 int 7343 main () 7344 { 7345 return find_stack_direction () < 0; 7346 } 7347 _ACEOF 7348 if ac_fn_c_try_run "$LINENO"; then : 7349 ac_cv_c_stack_direction=1 7350 else 7351 ac_cv_c_stack_direction=-1 7352 fi 7353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7354 conftest.$ac_objext conftest.beam conftest.$ac_ext 7355 fi 7356 7357 fi 7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 7359 $as_echo "$ac_cv_c_stack_direction" >&6; } 7360 cat >>confdefs.h <<_ACEOF 7361 #define STACK_DIRECTION $ac_cv_c_stack_direction 7362 _ACEOF 7363 7364 7365 fi 7366 7367 7368 for ac_header in stdlib.h 7369 do : 7370 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 7371 if test "x$ac_cv_header_stdlib_h" = x""yes; then : 7372 cat >>confdefs.h <<_ACEOF 7373 #define HAVE_STDLIB_H 1 7374 _ACEOF 7375 7376 fi 7377 7378 done 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; } 7382 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then : 7383 $as_echo_n "(cached) " >&6 7384 else 7385 if test "$cross_compiling" = yes; then : 7386 ac_cv_func_malloc_0_nonnull=no 7387 else 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 7393 char *malloc (); 7394 #endif 7395 7396 int 7397 main () 7398 { 7399 return ! malloc (0); 7400 ; 7401 return 0; 7402 } 7403 _ACEOF 7404 if ac_fn_c_try_run "$LINENO"; then : 7405 ac_cv_func_malloc_0_nonnull=yes 7406 else 7407 ac_cv_func_malloc_0_nonnull=no 7408 fi 7409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7410 conftest.$ac_objext conftest.beam conftest.$ac_ext 7411 fi 7412 7413 fi 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; } 7416 if test $ac_cv_func_malloc_0_nonnull = yes; then : 7417 gl_cv_func_malloc_0_nonnull=1 7418 else 7419 gl_cv_func_malloc_0_nonnull=0 7420 fi 7421 7422 7423 cat >>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; } 7431 if test "${ac_cv_type_long_long+set}" = set; then : 7432 $as_echo_n "(cached) " >&6 7433 else 7434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7435 /* end confdefs.h. */ 7436 long long ll = 1LL; int i = 63; 7437 int 7438 main () 7439 { 7440 long long llmax = (long long) -1; 7441 return ll << i | ll >> i | llmax / ll | llmax % ll; 7442 ; 7443 return 0; 7444 } 7445 _ACEOF 7446 if ac_fn_c_try_link "$LINENO"; then : 7447 ac_cv_type_long_long=yes 7448 else 7449 ac_cv_type_long_long=no 7450 fi 7451 rm -f core conftest.err conftest.$ac_objext \ 7452 conftest$ac_exeext conftest.$ac_ext 7453 fi 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; } 7465 if test "${gt_cv_c_long_double+set}" = set; then : 7466 $as_echo_n "(cached) " >&6 7467 else 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 7479 int 7480 main () 7481 { 7482 7483 ; 7484 return 0; 7485 } 7486 _ACEOF 7487 if ac_fn_c_try_compile "$LINENO"; then : 7488 gt_cv_c_long_double=yes 7489 else 7490 gt_cv_c_long_double=no 7491 fi 7492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7493 fi 7494 fi 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; } 7505 if test "${gl_cv_c_restrict+set}" = set; then : 7506 $as_echo_n "(cached) " >&6 7507 else 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. */ 7514 float * $ac_kw x; 7515 _ACEOF 7516 if ac_fn_c_try_compile "$LINENO"; then : 7517 gl_cv_c_restrict=$ac_kw; break 7518 fi 7519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7520 done 7521 7522 fi 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 7541 else 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> 7547 int 7548 main () 7549 { 7550 int x = AF_INET; struct in_addr y; struct sockaddr_in z; 7551 ; 7552 return 0; 7553 } 7554 _ACEOF 7555 if ac_fn_c_try_compile "$LINENO"; then : 7556 gl_cv_socket_ipv4=yes 7557 else 7558 gl_cv_socket_ipv4=no 7559 fi 7560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7561 fi 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 7575 else 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> 7581 int 7582 main () 7583 { 7584 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z; 7585 ; 7586 return 0; 7587 } 7588 _ACEOF 7589 if ac_fn_c_try_compile "$LINENO"; then : 7590 gl_cv_socket_ipv6=yes 7591 else 7592 gl_cv_socket_ipv6=no 7593 fi 7594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7595 fi 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; } 7607 if test "${ac_cv_c_inline+set}" = set; then : 7608 $as_echo_n "(cached) " >&6 7609 else 7610 ac_cv_c_inline=no 7611 for ac_kw in inline __inline__ __inline; do 7612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7613 /* end confdefs.h. */ 7614 #ifndef __cplusplus 7615 typedef int foo_t; 7616 static $ac_kw foo_t static_foo () {return 0; } 7617 $ac_kw foo_t foo () {return 0; } 7618 #endif 7619 7620 _ACEOF 7621 if ac_fn_c_try_compile "$LINENO"; then : 7622 ac_cv_c_inline=$ac_kw 7623 fi 7624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7625 test "$ac_cv_c_inline" != no && break 7626 done 7627 7628 fi 7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 7630 $as_echo "$ac_cv_c_inline" >&6; } 7631 7632 case $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 ;; 7645 esac 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; } 7650 if test "${ac_cv_search_getaddrinfo+set}" = set; then : 7651 $as_echo_n "(cached) " >&6 7652 else 7653 ac_func_search_save_LIBS=$LIBS 7654 cat 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 7661 extern "C" 7662 #endif 7663 char getaddrinfo (); 7664 int 7665 main () 7666 { 7667 return getaddrinfo (); 7668 ; 7669 return 0; 7670 } 7671 _ACEOF 7672 for 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 7681 fi 7682 rm -f core conftest.err conftest.$ac_objext \ 7683 conftest$ac_exeext 7684 if test "${ac_cv_search_getaddrinfo+set}" = set; then : 7685 break 7686 fi 7687 done 7688 if test "${ac_cv_search_getaddrinfo+set}" = set; then : 7689 7690 else 7691 ac_cv_search_getaddrinfo=no 7692 fi 7693 rm conftest.$ac_ext 7694 LIBS=$ac_func_search_save_LIBS 7695 fi 7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5 7697 $as_echo "$ac_cv_search_getaddrinfo" >&6; } 7698 ac_res=$ac_cv_search_getaddrinfo 7699 if test "$ac_res" != no; then : 7700 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7701 7702 fi 7703 7704 for ac_func in getaddrinfo gai_strerror 7705 do : 7706 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7707 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7708 eval 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 7714 else 7715 case " $LIBOBJS " in 7716 *" $ac_func.$ac_objext "* ) ;; 7717 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 7718 ;; 7719 esac 7720 7721 fi 7722 done 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; } 7733 if test "${ac_cv_header_stdbool_h+set}" = set; then : 7734 $as_echo_n "(cached) " >&6 7735 else 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 7774 int 7775 main () 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 7785 if ac_fn_c_try_compile "$LINENO"; then : 7786 ac_cv_header_stdbool_h=yes 7787 else 7788 ac_cv_header_stdbool_h=no 7789 fi 7790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7791 fi 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" 7795 if test "x$ac_cv_type__Bool" = x""yes; then : 7796 7797 cat >>confdefs.h <<_ACEOF 7798 #define HAVE__BOOL 1 7799 _ACEOF 7800 7801 7802 fi 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 7814 do : 7815 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7816 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7817 eval 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 7823 fi 7824 done 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 for ac_header in $gl_header_list 7835 do : 7836 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7837 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 7838 eval 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 7844 fi 7845 7846 done 7847 7848 7849 7850 7851 7852 7853 7854 case " $LIBOBJS " in 7855 *" save-cwd.$ac_objext "* ) ;; 7856 *) LIBOBJS="$LIBOBJS save-cwd.$ac_objext" 7857 ;; 7858 esac 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" 7877 if test "x$ac_cv_have_decl_memrchr" = x""yes; then : 7878 ac_have_decl=1 7879 else 7880 ac_have_decl=0 7881 fi 7882 7883 cat >>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; } 7891 if test "${ac_cv_win_or_dos+set}" = set; then : 7892 $as_echo_n "(cached) " >&6 7893 else 7894 7895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7896 /* end confdefs.h. */ 7897 7898 int 7899 main () 7900 { 7901 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__ 7902 neither MSDOS nor Windows 7903 #endif 7904 ; 7905 return 0; 7906 } 7907 _ACEOF 7908 if ac_fn_c_try_compile "$LINENO"; then : 7909 ac_cv_win_or_dos=yes 7910 else 7911 ac_cv_win_or_dos=no 7912 fi 7913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7914 7915 fi 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 7930 cat >>confdefs.h <<_ACEOF 7931 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix 7932 _ACEOF 7933 7934 7935 7936 7937 7938 cat >>confdefs.h <<_ACEOF 7939 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator 7940 _ACEOF 7941 7942 7943 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" 7944 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then : 7945 ac_have_decl=1 7946 else 7947 ac_have_decl=0 7948 fi 7949 7950 cat >>confdefs.h <<_ACEOF 7951 #define HAVE_DECL_STRERROR_R $ac_have_decl 7952 _ACEOF 7953 7954 for ac_func in strerror_r 7955 do : 7956 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" 7957 if test "x$ac_cv_func_strerror_r" = x""yes; then : 7958 cat >>confdefs.h <<_ACEOF 7959 #define HAVE_STRERROR_R 1 7960 _ACEOF 7961 7962 fi 7963 done 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; } 7967 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then : 7968 $as_echo_n "(cached) " >&6 7969 else 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 7976 int 7977 main () 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 7989 if ac_fn_c_try_compile "$LINENO"; then : 7990 ac_cv_func_strerror_r_char_p=yes 7991 fi 7992 rm -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 : 8002 else 8003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8004 /* end confdefs.h. */ 8005 $ac_includes_default 8006 extern char *strerror_r (); 8007 int 8008 main () 8009 { 8010 char buf[100]; 8011 char x = *strerror_r (0, buf, sizeof buf); 8012 return ! isalpha (x); 8013 ; 8014 return 0; 8015 } 8016 _ACEOF 8017 if ac_fn_c_try_run "$LINENO"; then : 8018 ac_cv_func_strerror_r_char_p=yes 8019 fi 8020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8021 conftest.$ac_objext conftest.beam conftest.$ac_ext 8022 fi 8023 8024 fi 8025 8026 fi 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; } 8029 if test $ac_cv_func_strerror_r_char_p = yes; then 8030 8031 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h 8032 8033 fi 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; } 8042 if test "${ac_cv_type_mbstate_t+set}" = set; then : 8043 $as_echo_n "(cached) " >&6 8044 else 8045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8046 /* end confdefs.h. */ 8047 $ac_includes_default 8048 # include <wchar.h> 8049 int 8050 main () 8051 { 8052 mbstate_t x; return sizeof x; 8053 ; 8054 return 0; 8055 } 8056 _ACEOF 8057 if ac_fn_c_try_compile "$LINENO"; then : 8058 ac_cv_type_mbstate_t=yes 8059 else 8060 ac_cv_type_mbstate_t=no 8061 fi 8062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8063 fi 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; } 8087 if test "${gl_cv_func_getcwd_null+set}" = set; then : 8088 $as_echo_n "(cached) " >&6 8089 else 8090 if test "$cross_compiling" = yes; then : 8091 gl_cv_func_getcwd_null=no 8092 else 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 8115 if ac_fn_c_try_run "$LINENO"; then : 8116 gl_cv_func_getcwd_null=yes 8117 else 8118 gl_cv_func_getcwd_null=no 8119 fi 8120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8121 conftest.$ac_objext conftest.beam conftest.$ac_ext 8122 fi 8123 8124 fi 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" 8130 if test "x$ac_cv_have_decl_getcwd" = x""yes; then : 8131 ac_have_decl=1 8132 else 8133 ac_have_decl=0 8134 fi 8135 8136 cat >>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; } 8143 if test "${jm_cv_struct_dirent_d_ino+set}" = set; then : 8144 $as_echo_n "(cached) " >&6 8145 else 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 8165 int 8166 main () 8167 { 8168 struct dirent dp; dp.d_ino = 0; 8169 ; 8170 return 0; 8171 } 8172 _ACEOF 8173 if ac_fn_c_try_link "$LINENO"; then : 8174 jm_cv_struct_dirent_d_ino=yes 8175 else 8176 jm_cv_struct_dirent_d_ino=no 8177 fi 8178 rm -f core conftest.err conftest.$ac_objext \ 8179 conftest$ac_exeext conftest.$ac_ext 8180 8181 8182 fi 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; } 8194 if test "${ac_cv_header_time+set}" = set; then : 8195 $as_echo_n "(cached) " >&6 8196 else 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 8203 int 8204 main () 8205 { 8206 if ((struct tm *) 0) 8207 return 0; 8208 ; 8209 return 0; 8210 } 8211 _ACEOF 8212 if ac_fn_c_try_compile "$LINENO"; then : 8213 ac_cv_header_time=yes 8214 else 8215 ac_cv_header_time=no 8216 fi 8217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8218 fi 8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 8220 $as_echo "$ac_cv_header_time" >&6; } 8221 if test $ac_cv_header_time = yes; then 8222 8223 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 8224 8225 fi 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; } 8257 if test "${fu_cv_sys_struct_timespec+set}" = set; then : 8258 $as_echo_n "(cached) " >&6 8259 else 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 8274 int 8275 main () 8276 { 8277 static struct timespec x; x.tv_sec = x.tv_nsec; 8278 ; 8279 return 0; 8280 } 8281 _ACEOF 8282 if ac_fn_c_try_compile "$LINENO"; then : 8283 fu_cv_sys_struct_timespec=yes 8284 else 8285 fu_cv_sys_struct_timespec=no 8286 fi 8287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8288 8289 fi 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 " 8304 if test "x$ac_cv_have_decl_nanosleep" = x""yes; then : 8305 ac_have_decl=1 8306 else 8307 ac_have_decl=0 8308 fi 8309 8310 cat >>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; } 8328 if test "${ac_cv_struct_tm+set}" = set; then : 8329 $as_echo_n "(cached) " >&6 8330 else 8331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8332 /* end confdefs.h. */ 8333 #include <sys/types.h> 8334 #include <time.h> 8335 8336 int 8337 main () 8338 { 8339 struct tm tm; 8340 int *p = &tm.tm_sec; 8341 return !p; 8342 ; 8343 return 0; 8344 } 8345 _ACEOF 8346 if ac_fn_c_try_compile "$LINENO"; then : 8347 ac_cv_struct_tm=time.h 8348 else 8349 ac_cv_struct_tm=sys/time.h 8350 fi 8351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8352 fi 8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 8354 $as_echo "$ac_cv_struct_tm" >&6; } 8355 if test $ac_cv_struct_tm = sys/time.h; then 8356 8357 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 8358 8359 fi 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; } 8374 if test "${ac_cv_search_clock_gettime+set}" = set; then : 8375 $as_echo_n "(cached) " >&6 8376 else 8377 ac_func_search_save_LIBS=$LIBS 8378 cat 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 8385 extern "C" 8386 #endif 8387 char clock_gettime (); 8388 int 8389 main () 8390 { 8391 return clock_gettime (); 8392 ; 8393 return 0; 8394 } 8395 _ACEOF 8396 for 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 8405 fi 8406 rm -f core conftest.err conftest.$ac_objext \ 8407 conftest$ac_exeext 8408 if test "${ac_cv_search_clock_gettime+set}" = set; then : 8409 break 8410 fi 8411 done 8412 if test "${ac_cv_search_clock_gettime+set}" = set; then : 8413 8414 else 8415 ac_cv_search_clock_gettime=no 8416 fi 8417 rm conftest.$ac_ext 8418 LIBS=$ac_func_search_save_LIBS 8419 fi 8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 8421 $as_echo "$ac_cv_search_clock_gettime" >&6; } 8422 ac_res=$ac_cv_search_clock_gettime 8423 if 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 8427 fi 8428 8429 8430 for ac_func in clock_gettime clock_settime 8431 do : 8432 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8433 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8434 eval 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 8440 fi 8441 done 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 " 8448 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then : 8449 8450 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h 8451 8452 fi 8453 8454 8455 8456 ac_fn_c_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default" 8457 if test "x$ac_cv_have_decl_getdelim" = x""yes; then : 8458 ac_have_decl=1 8459 else 8460 ac_have_decl=0 8461 fi 8462 8463 cat >>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" 8470 if test "x$ac_cv_have_decl_getlogin" = x""yes; then : 8471 ac_have_decl=1 8472 else 8473 ac_have_decl=0 8474 fi 8475 8476 cat >>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" 8483 if test "x$ac_cv_have_decl_getlogin_r" = x""yes; then : 8484 ac_have_decl=1 8485 else 8486 ac_have_decl=0 8487 fi 8488 8489 cat >>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; } 8497 if test "${gt_cv_ssize_t+set}" = set; then : 8498 $as_echo_n "(cached) " >&6 8499 else 8500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8501 /* end confdefs.h. */ 8502 #include <sys/types.h> 8503 int 8504 main () 8505 { 8506 int x = sizeof (ssize_t *) + sizeof (ssize_t); 8507 ; 8508 return 0; 8509 } 8510 _ACEOF 8511 if ac_fn_c_try_compile "$LINENO"; then : 8512 gt_cv_ssize_t=yes 8513 else 8514 gt_cv_ssize_t=no 8515 fi 8516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8517 fi 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 8529 do : 8530 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" 8531 if test "x$ac_cv_header_getopt_h" = x""yes; then : 8532 cat >>confdefs.h <<_ACEOF 8533 #define HAVE_GETOPT_H 1 8534 _ACEOF 8535 8536 else 8537 GETOPT_H=getopt.h 8538 fi 8539 8540 done 8541 8542 fi 8543 8544 if test -z "$GETOPT_H"; then 8545 for ac_func in getopt_long_only 8546 do : 8547 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only" 8548 if 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 8553 else 8554 GETOPT_H=getopt.h 8555 fi 8556 done 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 " 8563 if test "x$ac_cv_have_decl_optreset" = x""yes; then : 8564 GETOPT_H=getopt.h 8565 fi 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; } 8572 if test "${gl_cv_func_gnu_getopt+set}" = set; then : 8573 $as_echo_n "(cached) " >&6 8574 else 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 " 8578 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then : 8579 gl_cv_func_gnu_getopt=no 8580 else 8581 gl_cv_func_gnu_getopt=yes 8582 fi 8583 8584 else 8585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8586 /* end confdefs.h. */ 8587 #include <getopt.h> 8588 int 8589 main () 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 8602 if ac_fn_c_try_run "$LINENO"; then : 8603 gl_cv_func_gnu_getopt=yes 8604 else 8605 gl_cv_func_gnu_getopt=no 8606 fi 8607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8608 conftest.$ac_objext conftest.beam conftest.$ac_ext 8609 fi 8610 8611 fi 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" 8626 if test "x$ac_cv_have_decl_getpass" = x""yes; then : 8627 ac_have_decl=1 8628 else 8629 ac_have_decl=0 8630 fi 8631 8632 cat >>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" 8664 if test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then : 8665 ac_have_decl=1 8666 else 8667 ac_have_decl=0 8668 fi 8669 8670 cat >>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" 8677 if test "x$ac_cv_have_decl_flockfile" = x""yes; then : 8678 ac_have_decl=1 8679 else 8680 ac_have_decl=0 8681 fi 8682 8683 cat >>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" 8690 if test "x$ac_cv_have_decl_fputs_unlocked" = x""yes; then : 8691 ac_have_decl=1 8692 else 8693 ac_have_decl=0 8694 fi 8695 8696 cat >>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" 8703 if test "x$ac_cv_have_decl_funlockfile" = x""yes; then : 8704 ac_have_decl=1 8705 else 8706 ac_have_decl=0 8707 fi 8708 8709 cat >>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" 8716 if test "x$ac_cv_have_decl_putc_unlocked" = x""yes; then : 8717 ac_have_decl=1 8718 else 8719 ac_have_decl=0 8720 fi 8721 8722 cat >>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; } 8739 if test "${jm_cv_struct_dirent_d_type+set}" = set; then : 8740 $as_echo_n "(cached) " >&6 8741 else 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 8761 int 8762 main () 8763 { 8764 struct dirent dp; dp.d_type = 0; 8765 ; 8766 return 0; 8767 } 8768 _ACEOF 8769 if ac_fn_c_try_link "$LINENO"; then : 8770 jm_cv_struct_dirent_d_type=yes 8771 else 8772 jm_cv_struct_dirent_d_type=no 8773 fi 8774 rm -f core conftest.err conftest.$ac_objext \ 8775 conftest$ac_exeext conftest.$ac_ext 8776 8777 8778 fi 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; } 8805 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then : 8806 $as_echo_n "(cached) " >&6 8807 else 8808 rm -f conftest.sym conftest.file 8809 echo >conftest.file 8810 if 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 8813 else 8814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8815 /* end confdefs.h. */ 8816 $ac_includes_default 8817 int 8818 main () 8819 { 8820 struct 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 8829 if ac_fn_c_try_run "$LINENO"; then : 8830 ac_cv_func_lstat_dereferences_slashed_symlink=yes 8831 else 8832 ac_cv_func_lstat_dereferences_slashed_symlink=no 8833 fi 8834 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8835 conftest.$ac_objext conftest.beam conftest.$ac_ext 8836 fi 8837 8838 else 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 8842 fi 8843 rm -f conftest.sym conftest.file 8844 8845 fi 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 8849 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && 8850 8851 cat >>confdefs.h <<_ACEOF 8852 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 8853 _ACEOF 8854 8855 8856 if 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 ;; 8861 esac 8862 8863 fi 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; } 8878 if test "${gl_cv_c_uint32_t+set}" = set; then : 8879 $as_echo_n "(cached) " >&6 8880 else 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 8887 int 8888 main () 8889 { 8890 static int test_array [1 - 2 * !(($ac_type) -1 == 4294967295U)]; 8891 test_array [0] = 0 8892 8893 ; 8894 return 0; 8895 } 8896 _ACEOF 8897 if ac_fn_c_try_compile "$LINENO"; then : 8898 gl_cv_c_uint32_t=$ac_type 8899 fi 8900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8901 test "$gl_cv_c_uint32_t" != no && break 8902 done 8903 fi 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 8913 cat >>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; } 8922 if test "${gl_cv_c_uint32_max+set}" = set; then : 8923 $as_echo_n "(cached) " >&6 8924 else 8925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8926 /* end confdefs.h. */ 8927 $ac_includes_default 8928 int 8929 main () 8930 { 8931 static int test_array [1 - 2 * !(UINT32_MAX == 4294967295U)]; 8932 test_array [0] = 0 8933 8934 ; 8935 return 0; 8936 } 8937 _ACEOF 8938 if ac_fn_c_try_compile "$LINENO"; then : 8939 gl_cv_c_uint32_max=yes 8940 else 8941 gl_cv_c_uint32_max=no 8942 fi 8943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8944 fi 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; } 8959 if test "${ac_cv_c_bigendian+set}" = set; then : 8960 $as_echo_n "(cached) " >&6 8961 else 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 8972 if 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 8995 fi 8996 rm -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 9004 int 9005 main () 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 9017 if 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 9024 int 9025 main () 9026 { 9027 #if BYTE_ORDER != BIG_ENDIAN 9028 not big endian 9029 #endif 9030 9031 ; 9032 return 0; 9033 } 9034 _ACEOF 9035 if ac_fn_c_try_compile "$LINENO"; then : 9036 ac_cv_c_bigendian=yes 9037 else 9038 ac_cv_c_bigendian=no 9039 fi 9040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9041 fi 9042 rm -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 9050 int 9051 main () 9052 { 9053 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 9054 bogus endian macros 9055 #endif 9056 9057 ; 9058 return 0; 9059 } 9060 _ACEOF 9061 if 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 9067 int 9068 main () 9069 { 9070 #ifndef _BIG_ENDIAN 9071 not big endian 9072 #endif 9073 9074 ; 9075 return 0; 9076 } 9077 _ACEOF 9078 if ac_fn_c_try_compile "$LINENO"; then : 9079 ac_cv_c_bigendian=yes 9080 else 9081 ac_cv_c_bigendian=no 9082 fi 9083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9084 fi 9085 rm -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. */ 9093 short 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 9109 int 9110 main () 9111 { 9112 return use_ascii (foo) == use_ebcdic (foo); 9113 ; 9114 return 0; 9115 } 9116 _ACEOF 9117 if 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 9129 fi 9130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9131 else 9132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9133 /* end confdefs.h. */ 9134 $ac_includes_default 9135 int 9136 main () 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 9152 if ac_fn_c_try_run "$LINENO"; then : 9153 ac_cv_c_bigendian=no 9154 else 9155 ac_cv_c_bigendian=yes 9156 fi 9157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9158 conftest.$ac_objext conftest.beam conftest.$ac_ext 9159 fi 9160 9161 fi 9162 fi 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; } 9187 if test "${gl_cv_minmax_in_limits_h+set}" = set; then : 9188 $as_echo_n "(cached) " >&6 9189 else 9190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9191 /* end confdefs.h. */ 9192 #include <limits.h> 9193 int x = MIN (42, 17); 9194 int 9195 main () 9196 { 9197 9198 ; 9199 return 0; 9200 } 9201 _ACEOF 9202 if ac_fn_c_try_compile "$LINENO"; then : 9203 gl_cv_minmax_in_limits_h=yes 9204 else 9205 gl_cv_minmax_in_limits_h=no 9206 fi 9207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9208 fi 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; } 9224 if test "${gl_cv_minmax_in_sys_param_h+set}" = set; then : 9225 $as_echo_n "(cached) " >&6 9226 else 9227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9228 /* end confdefs.h. */ 9229 #include <sys/param.h> 9230 int x = MIN (42, 17); 9231 int 9232 main () 9233 { 9234 9235 ; 9236 return 0; 9237 } 9238 _ACEOF 9239 if ac_fn_c_try_compile "$LINENO"; then : 9240 gl_cv_minmax_in_sys_param_h=yes 9241 else 9242 gl_cv_minmax_in_sys_param_h=no 9243 fi 9244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9245 fi 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" 9264 if test "x$ac_cv_have_decl_getenv" = x""yes; then : 9265 ac_have_decl=1 9266 else 9267 ac_have_decl=0 9268 fi 9269 9270 cat >>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; } 9278 if test "${gl_cv_header_inttypes_h+set}" = set; then : 9279 $as_echo_n "(cached) " >&6 9280 else 9281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9282 /* end confdefs.h. */ 9283 #include <sys/types.h> 9284 #include <inttypes.h> 9285 int 9286 main () 9287 { 9288 uintmax_t i = (uintmax_t) -1; 9289 ; 9290 return 0; 9291 } 9292 _ACEOF 9293 if ac_fn_c_try_compile "$LINENO"; then : 9294 gl_cv_header_inttypes_h=yes 9295 else 9296 gl_cv_header_inttypes_h=no 9297 fi 9298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9299 fi 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 9304 cat >>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; } 9313 if test "${gl_cv_header_stdint_h+set}" = set; then : 9314 $as_echo_n "(cached) " >&6 9315 else 9316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9317 /* end confdefs.h. */ 9318 #include <sys/types.h> 9319 #include <stdint.h> 9320 int 9321 main () 9322 { 9323 uintmax_t i = (uintmax_t) -1; 9324 ; 9325 return 0; 9326 } 9327 _ACEOF 9328 if ac_fn_c_try_compile "$LINENO"; then : 9329 gl_cv_header_stdint_h=yes 9330 else 9331 gl_cv_header_stdint_h=no 9332 fi 9333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9334 fi 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 9339 cat >>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; } 9348 if test "${ac_cv_type_unsigned_long_long+set}" = set; then : 9349 $as_echo_n "(cached) " >&6 9350 else 9351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9352 /* end confdefs.h. */ 9353 unsigned long long ull = 1ULL; int i = 63; 9354 int 9355 main () 9356 { 9357 unsigned long long ullmax = (unsigned long long) -1; 9358 return ull << i | ull >> i | ullmax / ull | ullmax % ull; 9359 ; 9360 return 0; 9361 } 9362 _ACEOF 9363 if ac_fn_c_try_link "$LINENO"; then : 9364 ac_cv_type_unsigned_long_long=yes 9365 else 9366 ac_cv_type_unsigned_long_long=no 9367 fi 9368 rm -f core conftest.err conftest.$ac_objext \ 9369 conftest$ac_exeext conftest.$ac_ext 9370 fi 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 9388 cat >>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 9398 for ac_header in stdlib.h sys/time.h unistd.h 9399 do : 9400 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9401 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 9402 eval 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 9408 fi 9409 9410 done 9411 9412 for ac_func in alarm 9413 do : 9414 ac_fn_c_check_func "$LINENO" "alarm" "ac_cv_func_alarm" 9415 if test "x$ac_cv_func_alarm" = x""yes; then : 9416 cat >>confdefs.h <<_ACEOF 9417 #define HAVE_ALARM 1 9418 _ACEOF 9419 9420 fi 9421 done 9422 9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5 9424 $as_echo_n "checking for working mktime... " >&6; } 9425 if test "${ac_cv_func_working_mktime+set}" = set; then : 9426 $as_echo_n "(cached) " >&6 9427 else 9428 if test "$cross_compiling" = yes; then : 9429 ac_cv_func_working_mktime=no 9430 else 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 9460 static time_t time_t_max; 9461 static time_t time_t_min; 9462 9463 /* Values we'll use to set the TZ environment variable. */ 9464 static 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. */ 9472 static void 9473 spring_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 9495 static void 9496 mktime_test1 (now) 9497 time_t now; 9498 { 9499 struct tm *lt; 9500 if ((lt = localtime (&now)) && mktime (lt) != now) 9501 exit (1); 9502 } 9503 9504 static void 9505 mktime_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 9513 static void 9514 irix_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 9530 static void 9531 bigtime_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 9556 int 9557 main () 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 9594 if ac_fn_c_try_run "$LINENO"; then : 9595 ac_cv_func_working_mktime=yes 9596 else 9597 ac_cv_func_working_mktime=no 9598 fi 9599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9600 conftest.$ac_objext conftest.beam conftest.$ac_ext 9601 fi 9602 9603 fi 9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5 9605 $as_echo "$ac_cv_func_working_mktime" >&6; } 9606 if test $ac_cv_func_working_mktime = no; then 9607 case " $LIBOBJS " in 9608 *" mktime.$ac_objext "* ) ;; 9609 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" 9610 ;; 9611 esac 9612 9613 fi 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 9645 for ac_func in getpagesize 9646 do : 9647 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 9648 if test "x$ac_cv_func_getpagesize" = x""yes; then : 9649 cat >>confdefs.h <<_ACEOF 9650 #define HAVE_GETPAGESIZE 1 9651 _ACEOF 9652 9653 fi 9654 done 9655 9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 9657 $as_echo_n "checking for working mmap... " >&6; } 9658 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : 9659 $as_echo_n "(cached) " >&6 9660 else 9661 if test "$cross_compiling" = yes; then : 9662 ac_cv_func_mmap_fixed_mapped=no 9663 else 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 9696 char *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 9731 int 9732 main () 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 9803 if ac_fn_c_try_run "$LINENO"; then : 9804 ac_cv_func_mmap_fixed_mapped=yes 9805 else 9806 ac_cv_func_mmap_fixed_mapped=no 9807 fi 9808 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9809 conftest.$ac_objext conftest.beam conftest.$ac_ext 9810 fi 9811 9812 fi 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; } 9815 if test $ac_cv_func_mmap_fixed_mapped = yes; then 9816 9817 $as_echo "#define HAVE_MMAP 1" >>confdefs.h 9818 9819 fi 9820 rm -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 9837 if (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 9840 fi 9841 rm -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 9853 if (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 9859 fi 9860 rm -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; } 9890 if test "${am_cv_langinfo_codeset+set}" = set; then : 9891 $as_echo_n "(cached) " >&6 9892 else 9893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9894 /* end confdefs.h. */ 9895 #include <langinfo.h> 9896 int 9897 main () 9898 { 9899 char* cs = nl_langinfo(CODESET); 9900 ; 9901 return 0; 9902 } 9903 _ACEOF 9904 if ac_fn_c_try_link "$LINENO"; then : 9905 am_cv_langinfo_codeset=yes 9906 else 9907 am_cv_langinfo_codeset=no 9908 fi 9909 rm -f core conftest.err conftest.$ac_objext \ 9910 conftest$ac_exeext conftest.$ac_ext 9911 9912 fi 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; } 9949 if test "${gt_cv_header_inttypes_h+set}" = set; then : 9950 $as_echo_n "(cached) " >&6 9951 else 9952 9953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9954 /* end confdefs.h. */ 9955 #include <sys/types.h> 9956 #include <inttypes.h> 9957 int 9958 main () 9959 { 9960 9961 ; 9962 return 0; 9963 } 9964 _ACEOF 9965 if ac_fn_c_try_compile "$LINENO"; then : 9966 gt_cv_header_inttypes_h=yes 9967 else 9968 gt_cv_header_inttypes_h=no 9969 fi 9970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9971 9972 fi 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 9977 cat >>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" 9985 if test "x$ac_cv_have_decl_strdup" = x""yes; then : 9986 ac_have_decl=1 9987 else 9988 ac_have_decl=0 9989 fi 9990 9991 cat >>confdefs.h <<_ACEOF 9992 #define HAVE_DECL_STRDUP $ac_have_decl 9993 _ACEOF 9994 9995 9996 for ac_func in strftime 9997 do : 9998 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" 9999 if test "x$ac_cv_func_strftime" = x""yes; then : 10000 cat >>confdefs.h <<_ACEOF 10001 #define HAVE_STRFTIME 1 10002 _ACEOF 10003 10004 else 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; } 10008 if test "${ac_cv_lib_intl_strftime+set}" = set; then : 10009 $as_echo_n "(cached) " >&6 10010 else 10011 ac_check_lib_save_LIBS=$LIBS 10012 LIBS="-lintl $LIBS" 10013 cat 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 10020 extern "C" 10021 #endif 10022 char strftime (); 10023 int 10024 main () 10025 { 10026 return strftime (); 10027 ; 10028 return 0; 10029 } 10030 _ACEOF 10031 if ac_fn_c_try_link "$LINENO"; then : 10032 ac_cv_lib_intl_strftime=yes 10033 else 10034 ac_cv_lib_intl_strftime=no 10035 fi 10036 rm -f core conftest.err conftest.$ac_objext \ 10037 conftest$ac_exeext conftest.$ac_ext 10038 LIBS=$ac_check_lib_save_LIBS 10039 fi 10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 10041 $as_echo "$ac_cv_lib_intl_strftime" >&6; } 10042 if test "x$ac_cv_lib_intl_strftime" = x""yes; then : 10043 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h 10044 10045 LIBS="-lintl $LIBS" 10046 fi 10047 10048 fi 10049 done 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 ;; 10072 esac 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" 10117 if test "x$ac_cv_have_decl_clearerr_unlocked" = x""yes; then : 10118 ac_have_decl=1 10119 else 10120 ac_have_decl=0 10121 fi 10122 10123 cat >>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" 10130 if test "x$ac_cv_have_decl_feof_unlocked" = x""yes; then : 10131 ac_have_decl=1 10132 else 10133 ac_have_decl=0 10134 fi 10135 10136 cat >>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" 10143 if test "x$ac_cv_have_decl_ferror_unlocked" = x""yes; then : 10144 ac_have_decl=1 10145 else 10146 ac_have_decl=0 10147 fi 10148 10149 cat >>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" 10156 if test "x$ac_cv_have_decl_fgets_unlocked" = x""yes; then : 10157 ac_have_decl=1 10158 else 10159 ac_have_decl=0 10160 fi 10161 10162 cat >>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" 10169 if test "x$ac_cv_have_decl_fputc_unlocked" = x""yes; then : 10170 ac_have_decl=1 10171 else 10172 ac_have_decl=0 10173 fi 10174 10175 cat >>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" 10182 if test "x$ac_cv_have_decl_fread_unlocked" = x""yes; then : 10183 ac_have_decl=1 10184 else 10185 ac_have_decl=0 10186 fi 10187 10188 cat >>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" 10195 if test "x$ac_cv_have_decl_fwrite_unlocked" = x""yes; then : 10196 ac_have_decl=1 10197 else 10198 ac_have_decl=0 10199 fi 10200 10201 cat >>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" 10208 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then : 10209 ac_have_decl=1 10210 else 10211 ac_have_decl=0 10212 fi 10213 10214 cat >>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" 10221 if test "x$ac_cv_have_decl_getchar_unlocked" = x""yes; then : 10222 ac_have_decl=1 10223 else 10224 ac_have_decl=0 10225 fi 10226 10227 cat >>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" 10234 if test "x$ac_cv_have_decl_putchar_unlocked" = x""yes; then : 10235 ac_have_decl=1 10236 else 10237 ac_have_decl=0 10238 fi 10239 10240 cat >>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; } 10249 if test "${ac_cv_decl_EOVERFLOW+set}" = set; then : 10250 $as_echo_n "(cached) " >&6 10251 else 10252 10253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10254 /* end confdefs.h. */ 10255 10256 #include <errno.h> 10257 #ifdef EOVERFLOW 10258 yes 10259 #endif 10260 10261 _ACEOF 10262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10263 $EGREP "yes" >/dev/null 2>&1; then : 10264 have_eoverflow=1 10265 fi 10266 rm -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 10277 yes 10278 #endif 10279 10280 _ACEOF 10281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10282 $EGREP "yes" >/dev/null 2>&1; then : 10283 have_eoverflow=1 10284 fi 10285 rm -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 10296 fi 10297 10298 10299 else 10300 ac_cv_decl_EOVERFLOW=E2BIG 10301 fi 10302 fi 10303 10304 fi 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 10309 cat >>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; } 10320 if test "${bh_cv_c_signed+set}" = set; then : 10321 $as_echo_n "(cached) " >&6 10322 else 10323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10324 /* end confdefs.h. */ 10325 10326 int 10327 main () 10328 { 10329 signed char x; 10330 ; 10331 return 0; 10332 } 10333 _ACEOF 10334 if ac_fn_c_try_compile "$LINENO"; then : 10335 bh_cv_c_signed=yes 10336 else 10337 bh_cv_c_signed=no 10338 fi 10339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10340 fi 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; } 10352 if test "${gt_cv_c_wchar_t+set}" = set; then : 10353 $as_echo_n "(cached) " >&6 10354 else 10355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10356 /* end confdefs.h. */ 10357 #include <stddef.h> 10358 wchar_t foo = (wchar_t)'\0'; 10359 int 10360 main () 10361 { 10362 10363 ; 10364 return 0; 10365 } 10366 _ACEOF 10367 if ac_fn_c_try_compile "$LINENO"; then : 10368 gt_cv_c_wchar_t=yes 10369 else 10370 gt_cv_c_wchar_t=no 10371 fi 10372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10373 fi 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; } 10385 if test "${gt_cv_c_wint_t+set}" = set; then : 10386 $as_echo_n "(cached) " >&6 10387 else 10388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10389 /* end confdefs.h. */ 10390 #include <wchar.h> 10391 wint_t foo = (wchar_t)'\0'; 10392 int 10393 main () 10394 { 10395 10396 ; 10397 return 0; 10398 } 10399 _ACEOF 10400 if ac_fn_c_try_compile "$LINENO"; then : 10401 gt_cv_c_wint_t=yes 10402 else 10403 gt_cv_c_wint_t=no 10404 fi 10405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10406 fi 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 10415 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 10416 if test "x$ac_cv_type_size_t" = x""yes; then : 10417 10418 else 10419 10420 cat >>confdefs.h <<_ACEOF 10421 #define size_t unsigned int 10422 _ACEOF 10423 10424 fi 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; } 10431 if test "${gt_cv_c_intmax_t+set}" = set; then : 10432 $as_echo_n "(cached) " >&6 10433 else 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 10446 int 10447 main () 10448 { 10449 intmax_t x = -1; 10450 ; 10451 return 0; 10452 } 10453 _ACEOF 10454 if ac_fn_c_try_compile "$LINENO"; then : 10455 gt_cv_c_intmax_t=yes 10456 else 10457 gt_cv_c_intmax_t=no 10458 fi 10459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10460 fi 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 10473 cat >>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 10499 if (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 10505 else 10506 ALLOCA_H= 10507 fi 10508 rm -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 10527 do : 10528 ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit" 10529 if test "x$ac_cv_func_atexit" = x""yes; then : 10530 cat >>confdefs.h <<_ACEOF 10531 #define HAVE_ATEXIT 1 10532 _ACEOF 10533 10534 else 10535 case " $LIBOBJS " in 10536 *" $ac_func.$ac_objext "* ) ;; 10537 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 10538 ;; 10539 esac 10540 10541 fi 10542 done 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 ;; 10557 esac 10558 10559 10560 10561 10562 10563 10564 10565 case " $LIBOBJS " in 10566 *" canonicalize.$ac_objext "* ) ;; 10567 *) LIBOBJS="$LIBOBJS canonicalize.$ac_objext" 10568 ;; 10569 esac 10570 10571 10572 10573 for ac_header in string.h sys/param.h 10574 do : 10575 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10576 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10577 eval 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 10583 fi 10584 10585 done 10586 10587 for ac_func in resolvepath canonicalize_file_name 10588 do : 10589 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10590 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 10591 eval 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 10597 fi 10598 done 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; } 10605 if test "${gl_cv_have_path_max_definition+set}" = set; then : 10606 $as_echo_n "(cached) " >&6 10607 else 10608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10609 /* end confdefs.h. */ 10610 #include <unistd.h> 10611 #include <limits.h> 10612 #ifdef PATH_MAX 10613 have_path_max_definition 10614 #endif 10615 _ACEOF 10616 if (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 10619 else 10620 gl_cv_have_path_max_definition=no 10621 fi 10622 rm -f conftest* 10623 10624 fi 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 ;; 10633 esac 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 10661 do : 10662 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy" 10663 if test "x$ac_cv_func_mempcpy" = x""yes; then : 10664 cat >>confdefs.h <<_ACEOF 10665 #define HAVE_MEMPCPY 1 10666 _ACEOF 10667 10668 else 10669 case " $LIBOBJS " in 10670 *" $ac_func.$ac_objext "* ) ;; 10671 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 10672 ;; 10673 esac 10674 10675 fi 10676 done 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 10689 do : 10690 ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat" 10691 if test "x$ac_cv_func_openat" = x""yes; then : 10692 cat >>confdefs.h <<_ACEOF 10693 #define HAVE_OPENAT 1 10694 _ACEOF 10695 10696 else 10697 case " $LIBOBJS " in 10698 *" $ac_func.$ac_objext "* ) ;; 10699 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 10700 ;; 10701 esac 10702 10703 fi 10704 done 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 10732 do : 10733 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr" 10734 if test "x$ac_cv_func_memrchr" = x""yes; then : 10735 cat >>confdefs.h <<_ACEOF 10736 #define HAVE_MEMRCHR 1 10737 _ACEOF 10738 10739 else 10740 case " $LIBOBJS " in 10741 *" $ac_func.$ac_objext "* ) ;; 10742 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 10743 ;; 10744 esac 10745 10746 fi 10747 done 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 ;; 10763 esac 10764 10765 10766 : 10767 10768 10769 10770 case " $LIBOBJS " in 10771 *" dirname.$ac_objext "* ) ;; 10772 *) LIBOBJS="$LIBOBJS dirname.$ac_objext" 10773 ;; 10774 esac 10775 10776 10777 10778 10779 10780 10781 for ac_func in dup2 10782 do : 10783 ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" 10784 if test "x$ac_cv_func_dup2" = x""yes; then : 10785 cat >>confdefs.h <<_ACEOF 10786 #define HAVE_DUP2 1 10787 _ACEOF 10788 10789 else 10790 case " $LIBOBJS " in 10791 *" $ac_func.$ac_objext "* ) ;; 10792 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 10793 ;; 10794 esac 10795 10796 fi 10797 done 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 ;; 10824 esac 10825 10826 10827 : 10828 10829 10830 10831 case " $LIBOBJS " in 10832 *" filenamecat.$ac_objext "* ) ;; 10833 *) LIBOBJS="$LIBOBJS filenamecat.$ac_objext" 10834 ;; 10835 esac 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; } 10851 if test "${ac_cv_func_fnmatch_posix+set}" = set; then : 10852 $as_echo_n "(cached) " >&6 10853 else 10854 if test "$cross_compiling" = yes; then : 10855 ac_cv_func_fnmatch_posix=cross 10856 else 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 10865 int 10866 main () 10867 { 10868 exit 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 10880 if ac_fn_c_try_run "$LINENO"; then : 10881 ac_cv_func_fnmatch_posix=yes 10882 else 10883 ac_cv_func_fnmatch_posix=no 10884 fi 10885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10886 conftest.$ac_objext conftest.beam conftest.$ac_ext 10887 fi 10888 10889 fi 10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fnmatch_posix" >&5 10891 $as_echo "$ac_cv_func_fnmatch_posix" >&6; } 10892 if test $ac_cv_func_fnmatch_posix = yes; then : 10893 rm -f lib/fnmatch.h 10894 else 10895 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default" 10896 if test "x$ac_cv_have_decl_getenv" = x""yes; then : 10897 ac_have_decl=1 10898 else 10899 ac_have_decl=0 10900 fi 10901 10902 cat >>confdefs.h <<_ACEOF 10903 #define HAVE_DECL_GETENV $ac_have_decl 10904 _ACEOF 10905 10906 for ac_func in btowc mbsrtowcs mempcpy wmemchr wmemcpy wmempcpy 10907 do : 10908 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10909 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 10910 eval 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 10916 fi 10917 done 10918 10919 for ac_header in wchar.h wctype.h 10920 do : 10921 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10922 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10923 eval 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 10929 fi 10930 10931 done 10932 10933 case " $LIBOBJS " in 10934 *" fnmatch.$ac_objext "* ) ;; 10935 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext" 10936 ;; 10937 esac 10938 10939 FNMATCH_H=fnmatch.h 10940 10941 fi 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 10954 do : 10955 ac_fn_c_check_header_mongrel "$LINENO" "stdio_ext.h" "ac_cv_header_stdio_ext_h" "$ac_includes_default" 10956 if 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 10961 fi 10962 10963 done 10964 10965 for ac_func in __fpending 10966 do : 10967 ac_fn_c_check_func "$LINENO" "__fpending" "ac_cv_func___fpending" 10968 if test "x$ac_cv_func___fpending" = x""yes; then : 10969 cat >>confdefs.h <<_ACEOF 10970 #define HAVE___FPENDING 1 10971 _ACEOF 10972 10973 else 10974 case " $LIBOBJS " in 10975 *" $ac_func.$ac_objext "* ) ;; 10976 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 10977 ;; 10978 esac 10979 10980 fi 10981 done 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 " 10991 if test "x$ac_cv_have_decl___fpending" = x""yes; then : 10992 ac_have_decl=1 10993 else 10994 ac_have_decl=0 10995 fi 10996 10997 cat >>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; } 11004 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then : 11005 $as_echo_n "(cached) " >&6 11006 else 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 11042 int 11043 main () 11044 { 11045 FILE *fp = stdin; (void) ($ac_expr); 11046 ; 11047 return 0; 11048 } 11049 _ACEOF 11050 if ac_fn_c_try_compile "$LINENO"; then : 11051 fp_done=yes 11052 11053 fi 11054 rm -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 11061 fi 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 11065 cat >>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 11073 do : 11074 ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate" 11075 if test "x$ac_cv_func_ftruncate" = x""yes; then : 11076 cat >>confdefs.h <<_ACEOF 11077 #define HAVE_FTRUNCATE 1 11078 _ACEOF 11079 11080 else 11081 case " $LIBOBJS " in 11082 *" $ac_func.$ac_objext "* ) ;; 11083 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 11084 ;; 11085 esac 11086 11087 fi 11088 done 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 11101 do : 11102 ac_fn_c_check_func "$LINENO" "chsize" "ac_cv_func_chsize" 11103 if test "x$ac_cv_func_chsize" = x""yes; then : 11104 cat >>confdefs.h <<_ACEOF 11105 #define HAVE_CHSIZE 1 11106 _ACEOF 11107 11108 fi 11109 done 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; } 11117 if test "${ac_cv_search_getaddrinfo+set}" = set; then : 11118 $as_echo_n "(cached) " >&6 11119 else 11120 ac_func_search_save_LIBS=$LIBS 11121 cat 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 11128 extern "C" 11129 #endif 11130 char getaddrinfo (); 11131 int 11132 main () 11133 { 11134 return getaddrinfo (); 11135 ; 11136 return 0; 11137 } 11138 _ACEOF 11139 for 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 11148 fi 11149 rm -f core conftest.err conftest.$ac_objext \ 11150 conftest$ac_exeext 11151 if test "${ac_cv_search_getaddrinfo+set}" = set; then : 11152 break 11153 fi 11154 done 11155 if test "${ac_cv_search_getaddrinfo+set}" = set; then : 11156 11157 else 11158 ac_cv_search_getaddrinfo=no 11159 fi 11160 rm conftest.$ac_ext 11161 LIBS=$ac_func_search_save_LIBS 11162 fi 11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5 11164 $as_echo "$ac_cv_search_getaddrinfo" >&6; } 11165 ac_res=$ac_cv_search_getaddrinfo 11166 if test "$ac_res" != no; then : 11167 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11168 11169 fi 11170 11171 for ac_func in getaddrinfo gai_strerror 11172 do : 11173 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11174 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11175 eval 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 11181 else 11182 case " $LIBOBJS " in 11183 *" $ac_func.$ac_objext "* ) ;; 11184 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 11185 ;; 11186 esac 11187 11188 fi 11189 done 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; } 11213 if test "${gl_cv_func_getcwd_path_max+set}" = set; then : 11214 $as_echo_n "(cached) " >&6 11215 else 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 11220 else 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 11260 int 11261 main (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 11372 if ac_fn_c_try_run "$LINENO"; then : 11373 gl_cv_func_getcwd_path_max=yes 11374 else 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 11379 fi 11380 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11381 conftest.$ac_objext conftest.beam conftest.$ac_ext 11382 fi 11383 11384 11385 fi 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 ;; 11404 esac 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 ;; 11423 esac 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 " 11442 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then : 11443 11444 cat >>confdefs.h <<_ACEOF 11445 #define HAVE_STRUCT_TM_TM_ZONE 1 11446 _ACEOF 11447 11448 11449 fi 11450 11451 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 11452 11453 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h 11454 11455 else 11456 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 11457 " 11458 if test "x$ac_cv_have_decl_tzname" = x""yes; then : 11459 ac_have_decl=1 11460 else 11461 ac_have_decl=0 11462 fi 11463 11464 cat >>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; } 11470 if test "${ac_cv_var_tzname+set}" = set; then : 11471 $as_echo_n "(cached) " >&6 11472 else 11473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11474 /* end confdefs.h. */ 11475 #include <time.h> 11476 #if !HAVE_DECL_TZNAME 11477 extern char *tzname[]; 11478 #endif 11479 11480 int 11481 main () 11482 { 11483 return tzname[0][0]; 11484 ; 11485 return 0; 11486 } 11487 _ACEOF 11488 if ac_fn_c_try_link "$LINENO"; then : 11489 ac_cv_var_tzname=yes 11490 else 11491 ac_cv_var_tzname=no 11492 fi 11493 rm -f core conftest.err conftest.$ac_objext \ 11494 conftest$ac_exeext conftest.$ac_ext 11495 fi 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 11503 fi 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 for ac_func in getdelim 11514 do : 11515 ac_fn_c_check_func "$LINENO" "getdelim" "ac_cv_func_getdelim" 11516 if test "x$ac_cv_func_getdelim" = x""yes; then : 11517 cat >>confdefs.h <<_ACEOF 11518 #define HAVE_GETDELIM 1 11519 _ACEOF 11520 11521 else 11522 case " $LIBOBJS " in 11523 *" $ac_func.$ac_objext "* ) ;; 11524 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 11525 ;; 11526 esac 11527 11528 fi 11529 done 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 11543 do : 11544 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11545 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11546 eval 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 11552 fi 11553 done 11554 11555 11556 fi 11557 11558 11559 for ac_func in gethostname 11560 do : 11561 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname" 11562 if test "x$ac_cv_func_gethostname" = x""yes; then : 11563 cat >>confdefs.h <<_ACEOF 11564 #define HAVE_GETHOSTNAME 1 11565 _ACEOF 11566 11567 else 11568 case " $LIBOBJS " in 11569 *" $ac_func.$ac_objext "* ) ;; 11570 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 11571 ;; 11572 esac 11573 11574 fi 11575 done 11576 11577 11578 if test $ac_cv_func_gethostname = no; then 11579 11580 for ac_func in uname 11581 do : 11582 ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname" 11583 if test "x$ac_cv_func_uname" = x""yes; then : 11584 cat >>confdefs.h <<_ACEOF 11585 #define HAVE_UNAME 1 11586 _ACEOF 11587 11588 fi 11589 done 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" 11600 if test "x$ac_cv_have_decl_getline" = x""yes; then : 11601 ac_have_decl=1 11602 else 11603 ac_have_decl=0 11604 fi 11605 11606 cat >>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" 11613 if test "x$ac_cv_func_getline" = x""yes; then : 11614 gl_getline_needs_run_time_check=yes 11615 else 11616 am_cv_func_working_getline=no 11617 fi 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; } 11622 if test "${am_cv_func_working_getline+set}" = set; then : 11623 $as_echo_n "(cached) " >&6 11624 else 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 11628 else 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 11648 if ac_fn_c_try_run "$LINENO"; then : 11649 am_cv_func_working_getline=yes 11650 else 11651 am_cv_func_working_getline=no 11652 fi 11653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11654 conftest.$ac_objext conftest.beam conftest.$ac_ext 11655 fi 11656 11657 fi 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 ;; 11670 esac 11671 11672 11673 11674 11675 11676 11677 11678 11679 for ac_func in getdelim 11680 do : 11681 ac_fn_c_check_func "$LINENO" "getdelim" "ac_cv_func_getdelim" 11682 if test "x$ac_cv_func_getdelim" = x""yes; then : 11683 cat >>confdefs.h <<_ACEOF 11684 #define HAVE_GETDELIM 1 11685 _ACEOF 11686 11687 else 11688 case " $LIBOBJS " in 11689 *" $ac_func.$ac_objext "* ) ;; 11690 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 11691 ;; 11692 esac 11693 11694 fi 11695 done 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 11709 do : 11710 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11711 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11712 eval 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 11718 fi 11719 done 11720 11721 11722 fi 11723 11724 11725 fi 11726 11727 11728 for ac_func in getlogin_r 11729 do : 11730 ac_fn_c_check_func "$LINENO" "getlogin_r" "ac_cv_func_getlogin_r" 11731 if test "x$ac_cv_func_getlogin_r" = x""yes; then : 11732 cat >>confdefs.h <<_ACEOF 11733 #define HAVE_GETLOGIN_R 1 11734 _ACEOF 11735 11736 else 11737 case " $LIBOBJS " in 11738 *" $ac_func.$ac_objext "* ) ;; 11739 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 11740 ;; 11741 esac 11742 11743 fi 11744 done 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 ;; 11773 esac 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 ;; 11787 esac 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 ;; 11807 esac 11808 11809 case " $LIBOBJS " in 11810 *" getopt1.$ac_objext "* ) ;; 11811 *) LIBOBJS="$LIBOBJS getopt1.$ac_objext" 11812 ;; 11813 esac 11814 11815 11816 GETOPT_H=getopt.h 11817 11818 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h 11819 11820 11821 11822 : 11823 11824 fi 11825 11826 11827 11828 11829 11830 : 11831 11832 11833 11834 11835 11836 11837 11838 11839 for ac_header in OS.h 11840 do : 11841 ac_fn_c_check_header_mongrel "$LINENO" "OS.h" "ac_cv_header_OS_h" "$ac_includes_default" 11842 if test "x$ac_cv_header_OS_h" = x""yes; then : 11843 cat >>confdefs.h <<_ACEOF 11844 #define HAVE_OS_H 1 11845 _ACEOF 11846 11847 fi 11848 11849 done 11850 11851 for ac_func in getpagesize 11852 do : 11853 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 11854 if test "x$ac_cv_func_getpagesize" = x""yes; then : 11855 cat >>confdefs.h <<_ACEOF 11856 #define HAVE_GETPAGESIZE 1 11857 _ACEOF 11858 11859 fi 11860 done 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 ;; 11877 esac 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 ;; 11933 esac 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; } 11953 if test "${jm_cv_func_gettimeofday_clobber+set}" = set; then : 11954 $as_echo_n "(cached) " >&6 11955 else 11956 if test "$cross_compiling" = yes; then : 11957 jm_cv_func_gettimeofday_clobber=yes 11958 else 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 11978 int 11979 main () 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 11995 if ac_fn_c_try_run "$LINENO"; then : 11996 jm_cv_func_gettimeofday_clobber=no 11997 else 11998 jm_cv_func_gettimeofday_clobber=yes 11999 fi 12000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12001 conftest.$ac_objext conftest.beam conftest.$ac_ext 12002 fi 12003 12004 12005 fi 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 ;; 12014 esac 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 12034 do : 12035 ac_fn_c_check_header_mongrel "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default" 12036 if test "x$ac_cv_header_glob_h" = x""yes; then : 12037 cat >>confdefs.h <<_ACEOF 12038 #define HAVE_GLOB_H 1 12039 _ACEOF 12040 12041 else 12042 GLOB_H=glob.h 12043 fi 12044 12045 done 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; } 12051 if test "${gl_cv_gnu_glob_interface_version_1+set}" = set; then : 12052 $as_echo_n "(cached) " >&6 12053 else 12054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12055 /* end confdefs.h. */ 12056 #include <gnu-versions.h> 12057 char a[_GNU_GLOB_INTERFACE_VERSION == 1 ? 1 : -1]; 12058 _ACEOF 12059 if ac_fn_c_try_compile "$LINENO"; then : 12060 gl_cv_gnu_glob_interface_version_1=yes 12061 else 12062 gl_cv_gnu_glob_interface_version_1=no 12063 fi 12064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12065 fi 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; } 12077 if test "${gl_cv_glob_lists_symlinks+set}" = set; then : 12078 $as_echo_n "(cached) " >&6 12079 else 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 12091 else 12092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12093 /* end confdefs.h. */ 12094 #include <stddef.h> 12095 #include <glob.h> 12096 int 12097 main () 12098 { 12099 glob_t found; 12100 if (glob ("conf*-globtest", 0, NULL, &found) == GLOB_NOMATCH) return 1; 12101 ; 12102 return 0; 12103 } 12104 _ACEOF 12105 if ac_fn_c_try_run "$LINENO"; then : 12106 gl_cv_glob_lists_symlinks=yes 12107 else 12108 gl_cv_glob_lists_symlinks=no 12109 fi 12110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12111 conftest.$ac_objext conftest.beam conftest.$ac_ext 12112 fi 12113 12114 fi 12115 fi 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 ;; 12154 esac 12155 12156 12157 12158 fi 12159 12160 12161 12162 12163 12164 : 12165 12166 for ac_header in stdlib.h 12167 do : 12168 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 12169 if test "x$ac_cv_header_stdlib_h" = x""yes; then : 12170 cat >>confdefs.h <<_ACEOF 12171 #define HAVE_STDLIB_H 1 12172 _ACEOF 12173 12174 fi 12175 12176 done 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; } 12180 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then : 12181 $as_echo_n "(cached) " >&6 12182 else 12183 if test "$cross_compiling" = yes; then : 12184 ac_cv_func_malloc_0_nonnull=no 12185 else 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 12191 char *malloc (); 12192 #endif 12193 12194 int 12195 main () 12196 { 12197 return ! malloc (0); 12198 ; 12199 return 0; 12200 } 12201 _ACEOF 12202 if ac_fn_c_try_run "$LINENO"; then : 12203 ac_cv_func_malloc_0_nonnull=yes 12204 else 12205 ac_cv_func_malloc_0_nonnull=no 12206 fi 12207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12208 conftest.$ac_objext conftest.beam conftest.$ac_ext 12209 fi 12210 12211 fi 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; } 12214 if test $ac_cv_func_malloc_0_nonnull = yes; then : 12215 12216 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h 12217 12218 else 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 ;; 12225 esac 12226 12227 12228 $as_echo "#define malloc rpl_malloc" >>confdefs.h 12229 12230 fi 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 ;; 12251 esac 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 ;; 12268 esac 12269 12270 12271 12272 12273 12274 : 12275 12276 12277 for ac_func in memchr 12278 do : 12279 ac_fn_c_check_func "$LINENO" "memchr" "ac_cv_func_memchr" 12280 if test "x$ac_cv_func_memchr" = x""yes; then : 12281 cat >>confdefs.h <<_ACEOF 12282 #define HAVE_MEMCHR 1 12283 _ACEOF 12284 12285 else 12286 case " $LIBOBJS " in 12287 *" $ac_func.$ac_objext "* ) ;; 12288 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 12289 ;; 12290 esac 12291 12292 fi 12293 done 12294 12295 12296 if test $ac_cv_func_memchr = no; then 12297 12298 for ac_header in bp-sym.h 12299 do : 12300 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default" 12301 if 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 12306 fi 12307 12308 done 12309 12310 12311 fi 12312 12313 12314 for ac_func in memmove 12315 do : 12316 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" 12317 if test "x$ac_cv_func_memmove" = x""yes; then : 12318 cat >>confdefs.h <<_ACEOF 12319 #define HAVE_MEMMOVE 1 12320 _ACEOF 12321 12322 else 12323 case " $LIBOBJS " in 12324 *" $ac_func.$ac_objext "* ) ;; 12325 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 12326 ;; 12327 esac 12328 12329 fi 12330 done 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 12345 do : 12346 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy" 12347 if test "x$ac_cv_func_mempcpy" = x""yes; then : 12348 cat >>confdefs.h <<_ACEOF 12349 #define HAVE_MEMPCPY 1 12350 _ACEOF 12351 12352 else 12353 case " $LIBOBJS " in 12354 *" $ac_func.$ac_objext "* ) ;; 12355 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 12356 ;; 12357 esac 12358 12359 fi 12360 done 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 12383 do : 12384 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr" 12385 if test "x$ac_cv_func_memrchr" = x""yes; then : 12386 cat >>confdefs.h <<_ACEOF 12387 #define HAVE_MEMRCHR 1 12388 _ACEOF 12389 12390 else 12391 case " $LIBOBJS " in 12392 *" $ac_func.$ac_objext "* ) ;; 12393 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 12394 ;; 12395 esac 12396 12397 fi 12398 done 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; } 12410 if test "${gl_cv_func_mkdir_trailing_slash_bug+set}" = set; then : 12411 $as_echo_n "(cached) " >&6 12412 else 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 12419 else 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 12433 if ac_fn_c_try_run "$LINENO"; then : 12434 gl_cv_func_mkdir_trailing_slash_bug=no 12435 else 12436 gl_cv_func_mkdir_trailing_slash_bug=yes 12437 fi 12438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12439 conftest.$ac_objext conftest.beam conftest.$ac_ext 12440 fi 12441 12442 12443 12444 fi 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 ;; 12453 esac 12454 12455 12456 $as_echo "#define mkdir rpl_mkdir" >>confdefs.h 12457 12458 : 12459 fi 12460 12461 for ac_func in mkstemp 12462 do : 12463 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 12464 if test "x$ac_cv_func_mkstemp" = x""yes; then : 12465 cat >>confdefs.h <<_ACEOF 12466 #define HAVE_MKSTEMP 1 12467 _ACEOF 12468 12469 else 12470 case " $LIBOBJS " in 12471 *" $ac_func.$ac_objext "* ) ;; 12472 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 12473 ;; 12474 esac 12475 12476 fi 12477 done 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; } 12485 if test "${gl_cv_func_mkstemp_limitations+set}" = set; then : 12486 $as_echo_n "(cached) " >&6 12487 else 12488 12489 mkdir conftest.mkstemp 12490 if test "$cross_compiling" = yes; then : 12491 gl_cv_func_mkstemp_limitations=yes 12492 12493 else 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 12514 if ac_fn_c_try_run "$LINENO"; then : 12515 gl_cv_func_mkstemp_limitations=no 12516 else 12517 gl_cv_func_mkstemp_limitations=yes 12518 fi 12519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12520 conftest.$ac_objext conftest.beam conftest.$ac_ext 12521 fi 12522 12523 rm -rf conftest.mkstemp 12524 12525 12526 fi 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 ;; 12536 esac 12537 12538 case " $LIBOBJS " in 12539 *" tempname.$ac_objext "* ) ;; 12540 *) LIBOBJS="$LIBOBJS tempname.$ac_objext" 12541 ;; 12542 esac 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 12564 do : 12565 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12566 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12567 eval 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 12573 fi 12574 done 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; } 12605 if test "${ac_cv_search_nanosleep+set}" = set; then : 12606 $as_echo_n "(cached) " >&6 12607 else 12608 ac_func_search_save_LIBS=$LIBS 12609 cat 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 12616 extern "C" 12617 #endif 12618 char nanosleep (); 12619 int 12620 main () 12621 { 12622 return nanosleep (); 12623 ; 12624 return 0; 12625 } 12626 _ACEOF 12627 for 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 12636 fi 12637 rm -f core conftest.err conftest.$ac_objext \ 12638 conftest$ac_exeext 12639 if test "${ac_cv_search_nanosleep+set}" = set; then : 12640 break 12641 fi 12642 done 12643 if test "${ac_cv_search_nanosleep+set}" = set; then : 12644 12645 else 12646 ac_cv_search_nanosleep=no 12647 fi 12648 rm conftest.$ac_ext 12649 LIBS=$ac_func_search_save_LIBS 12650 fi 12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5 12652 $as_echo "$ac_cv_search_nanosleep" >&6; } 12653 ac_res=$ac_cv_search_nanosleep 12654 if 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 12658 fi 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; } 12664 if test "${jm_cv_func_nanosleep_works+set}" = set; then : 12665 $as_echo_n "(cached) " >&6 12666 else 12667 12668 12669 12670 : 12671 12672 12673 12674 12675 12676 if test "$cross_compiling" = yes; then : 12677 jm_cv_func_nanosleep_works=no 12678 else 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 12703 if ac_fn_c_try_run "$LINENO"; then : 12704 jm_cv_func_nanosleep_works=yes 12705 else 12706 jm_cv_func_nanosleep_works=no 12707 fi 12708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12709 conftest.$ac_objext conftest.beam conftest.$ac_ext 12710 fi 12711 12712 12713 fi 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 ;; 12721 esac 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 12750 do : 12751 ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat" 12752 if test "x$ac_cv_func_openat" = x""yes; then : 12753 cat >>confdefs.h <<_ACEOF 12754 #define HAVE_OPENAT 1 12755 _ACEOF 12756 12757 else 12758 case " $LIBOBJS " in 12759 *" $ac_func.$ac_objext "* ) ;; 12760 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 12761 ;; 12762 esac 12763 12764 fi 12765 done 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 ;; 12787 esac 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 ;; 12828 esac 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; } 12853 if test "${ac_cv_type_mbstate_t+set}" = set; then : 12854 $as_echo_n "(cached) " >&6 12855 else 12856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12857 /* end confdefs.h. */ 12858 $ac_includes_default 12859 # include <wchar.h> 12860 int 12861 main () 12862 { 12863 mbstate_t x; return sizeof x; 12864 ; 12865 return 0; 12866 } 12867 _ACEOF 12868 if ac_fn_c_try_compile "$LINENO"; then : 12869 ac_cv_type_mbstate_t=yes 12870 else 12871 ac_cv_type_mbstate_t=no 12872 fi 12873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12874 fi 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; } 12889 if test "${gl_cv_func_mbrtowc+set}" = set; then : 12890 $as_echo_n "(cached) " >&6 12891 else 12892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12893 /* end confdefs.h. */ 12894 #include <wchar.h> 12895 int 12896 main () 12897 { 12898 wchar_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 12907 if ac_fn_c_try_link "$LINENO"; then : 12908 gl_cv_func_mbrtowc=yes 12909 else 12910 gl_cv_func_mbrtowc=no 12911 fi 12912 rm -f core conftest.err conftest.$ac_objext \ 12913 conftest$ac_exeext conftest.$ac_ext 12914 fi 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 12926 do : 12927 ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink" 12928 if test "x$ac_cv_func_readlink" = x""yes; then : 12929 cat >>confdefs.h <<_ACEOF 12930 #define HAVE_READLINK 1 12931 _ACEOF 12932 12933 fi 12934 done 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 ;; 12941 esac 12942 12943 12944 : 12945 12946 fi 12947 12948 for ac_header in stdlib.h 12949 do : 12950 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 12951 if test "x$ac_cv_header_stdlib_h" = x""yes; then : 12952 cat >>confdefs.h <<_ACEOF 12953 #define HAVE_STDLIB_H 1 12954 _ACEOF 12955 12956 fi 12957 12958 done 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; } 12962 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then : 12963 $as_echo_n "(cached) " >&6 12964 else 12965 if test "$cross_compiling" = yes; then : 12966 ac_cv_func_realloc_0_nonnull=no 12967 else 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 12973 char *realloc (); 12974 #endif 12975 12976 int 12977 main () 12978 { 12979 return ! realloc (0, 0); 12980 ; 12981 return 0; 12982 } 12983 _ACEOF 12984 if ac_fn_c_try_run "$LINENO"; then : 12985 ac_cv_func_realloc_0_nonnull=yes 12986 else 12987 ac_cv_func_realloc_0_nonnull=no 12988 fi 12989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12990 conftest.$ac_objext conftest.beam conftest.$ac_ext 12991 fi 12992 12993 fi 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; } 12996 if test $ac_cv_func_realloc_0_nonnull = yes; then : 12997 12998 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h 12999 13000 else 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 ;; 13007 esac 13008 13009 13010 $as_echo "#define realloc rpl_realloc" >>confdefs.h 13011 13012 fi 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. 13024 if test "${with_included_regex+set}" = set; then : 13025 withval=$with_included_regex; 13026 fi 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; } 13040 if test "${gl_cv_func_re_compile_pattern_broken+set}" = set; then : 13041 $as_echo_n "(cached) " >&6 13042 else 13043 if test "$cross_compiling" = yes; then : 13044 gl_cv_func_re_compile_pattern_broken=yes 13045 else 13046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13047 /* end confdefs.h. */ 13048 $ac_includes_default 13049 #include <regex.h> 13050 int 13051 main () 13052 { 13053 static 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 13123 if ac_fn_c_try_run "$LINENO"; then : 13124 gl_cv_func_re_compile_pattern_broken=no 13125 else 13126 gl_cv_func_re_compile_pattern_broken=yes 13127 fi 13128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13129 conftest.$ac_objext conftest.beam conftest.$ac_ext 13130 fi 13131 13132 fi 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 ;; 13146 esac 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; } 13190 if test "${vb_cv_func_rename_trailing_slash_bug+set}" = set; then : 13191 $as_echo_n "(cached) " >&6 13192 else 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 13199 else 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 13211 if ac_fn_c_try_run "$LINENO"; then : 13212 vb_cv_func_rename_trailing_slash_bug=no 13213 else 13214 vb_cv_func_rename_trailing_slash_bug=yes 13215 fi 13216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13217 conftest.$ac_objext conftest.beam conftest.$ac_ext 13218 fi 13219 13220 13221 rm -rf conftest.d1 conftest.d2 13222 13223 fi 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 ;; 13231 esac 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; } 13244 if test "${gl_cv_c_restrict+set}" = set; then : 13245 $as_echo_n "(cached) " >&6 13246 else 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. */ 13253 float * $ac_kw x; 13254 _ACEOF 13255 if ac_fn_c_try_compile "$LINENO"; then : 13256 gl_cv_c_restrict=$ac_kw; break 13257 fi 13258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13259 done 13260 13261 fi 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 13277 do : 13278 ac_fn_c_check_func "$LINENO" "rpmatch" "ac_cv_func_rpmatch" 13279 if test "x$ac_cv_func_rpmatch" = x""yes; then : 13280 cat >>confdefs.h <<_ACEOF 13281 #define HAVE_RPMATCH 1 13282 _ACEOF 13283 13284 else 13285 case " $LIBOBJS " in 13286 *" $ac_func.$ac_objext "* ) ;; 13287 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 13288 ;; 13289 esac 13290 13291 fi 13292 done 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 ;; 13305 esac 13306 13307 13308 : 13309 13310 13311 13312 13313 13314 13315 : 13316 13317 13318 13319 13320 13321 13322 13323 for ac_func in setenv unsetenv 13324 do : 13325 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13326 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13327 eval 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 13333 else 13334 case " $LIBOBJS " in 13335 *" $ac_func.$ac_objext "* ) ;; 13336 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 13337 ;; 13338 esac 13339 13340 fi 13341 done 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 13355 do : 13356 ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default" 13357 if test "x$ac_cv_header_search_h" = x""yes; then : 13358 cat >>confdefs.h <<_ACEOF 13359 #define HAVE_SEARCH_H 1 13360 _ACEOF 13361 13362 fi 13363 13364 done 13365 13366 for ac_func in tsearch 13367 do : 13368 ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch" 13369 if test "x$ac_cv_func_tsearch" = x""yes; then : 13370 cat >>confdefs.h <<_ACEOF 13371 #define HAVE_TSEARCH 1 13372 _ACEOF 13373 13374 fi 13375 done 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 13383 else 13384 13385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13386 /* end confdefs.h. */ 13387 #include <errno.h> 13388 extern struct { int foo; } errno; 13389 int 13390 main () 13391 { 13392 errno.foo = 1; 13393 ; 13394 return 0; 13395 } 13396 _ACEOF 13397 if ac_fn_c_try_compile "$LINENO"; then : 13398 gt_cv_var_errno_declaration=no 13399 else 13400 gt_cv_var_errno_declaration=yes 13401 fi 13402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13403 fi 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 13419 else 13420 13421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13422 /* end confdefs.h. */ 13423 #include <unistd.h> 13424 extern struct { int foo; } environ; 13425 int 13426 main () 13427 { 13428 environ.foo = 1; 13429 ; 13430 return 0; 13431 } 13432 _ACEOF 13433 if ac_fn_c_try_compile "$LINENO"; then : 13434 gt_cv_var_environ_declaration=no 13435 else 13436 gt_cv_var_environ_declaration=yes 13437 fi 13438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13439 fi 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 13466 else 13467 13468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13469 /* end confdefs.h. */ 13470 #include <errno.h> 13471 extern struct { int foo; } errno; 13472 int 13473 main () 13474 { 13475 errno.foo = 1; 13476 ; 13477 return 0; 13478 } 13479 _ACEOF 13480 if ac_fn_c_try_compile "$LINENO"; then : 13481 gt_cv_var_errno_declaration=no 13482 else 13483 gt_cv_var_errno_declaration=yes 13484 fi 13485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13486 fi 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 13502 else 13503 13504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13505 /* end confdefs.h. */ 13506 #include <unistd.h> 13507 extern struct { int foo; } environ; 13508 int 13509 main () 13510 { 13511 environ.foo = 1; 13512 ; 13513 return 0; 13514 } 13515 _ACEOF 13516 if ac_fn_c_try_compile "$LINENO"; then : 13517 gt_cv_var_environ_declaration=no 13518 else 13519 gt_cv_var_environ_declaration=yes 13520 fi 13521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13522 fi 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; } 13536 if test "${gt_cv_func_unsetenv_ret+set}" = set; then : 13537 $as_echo_n "(cached) " >&6 13538 else 13539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13540 /* end confdefs.h. */ 13541 #include <stdlib.h> 13542 extern 13543 #ifdef __cplusplus 13544 "C" 13545 #endif 13546 #if defined(__STDC__) || defined(__cplusplus) 13547 int unsetenv (const char *name); 13548 #else 13549 int unsetenv(); 13550 #endif 13551 13552 int 13553 main () 13554 { 13555 13556 ; 13557 return 0; 13558 } 13559 _ACEOF 13560 if ac_fn_c_try_compile "$LINENO"; then : 13561 gt_cv_func_unsetenv_ret='int' 13562 else 13563 gt_cv_func_unsetenv_ret='void' 13564 fi 13565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13566 fi 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 13578 do : 13579 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 13580 if test "x$ac_cv_header_stdint_h" = x""yes; then : 13581 cat >>confdefs.h <<_ACEOF 13582 #define HAVE_STDINT_H 1 13583 _ACEOF 13584 13585 fi 13586 13587 done 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 13600 Found it 13601 #endif 13602 13603 _ACEOF 13604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13605 $EGREP "Found it" >/dev/null 2>&1; then : 13606 result=yes 13607 fi 13608 rm -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 13613 else 13614 result=? 13615 fi 13616 13617 13618 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then : 13619 13620 else 13621 result=? 13622 fi 13623 13624 13625 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then : 13626 13627 else 13628 result=? 13629 fi 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 13639 int 13640 main () 13641 { 13642 13643 ; 13644 return 0; 13645 } 13646 _ACEOF 13647 if ac_fn_c_try_compile "$LINENO"; then : 13648 fits_in_uint=0 13649 fi 13650 rm -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 13666 cat >>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; } 13675 if test "${gt_cv_ssize_t+set}" = set; then : 13676 $as_echo_n "(cached) " >&6 13677 else 13678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13679 /* end confdefs.h. */ 13680 #include <sys/types.h> 13681 int 13682 main () 13683 { 13684 int x = sizeof (ssize_t *) + sizeof (ssize_t); 13685 ; 13686 return 0; 13687 } 13688 _ACEOF 13689 if ac_fn_c_try_compile "$LINENO"; then : 13690 gt_cv_ssize_t=yes 13691 else 13692 gt_cv_ssize_t=no 13693 fi 13694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13695 fi 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 13729 for ac_header in sys/inttypes.h 13730 do : 13731 ac_fn_c_check_header_mongrel "$LINENO" "sys/inttypes.h" "ac_cv_header_sys_inttypes_h" "$ac_includes_default" 13732 if 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 13737 fi 13738 13739 done 13740 13741 13742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 13743 $as_echo_n "checking for stdint.h... " >&6; } 13744 if test "${gl_cv_header_stdint_h+set}" = set; then : 13745 $as_echo_n "(cached) " >&6 13746 else 13747 13748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13749 /* end confdefs.h. */ 13750 #include <stdint.h> 13751 int 13752 main () 13753 { 13754 13755 ; 13756 return 0; 13757 } 13758 _ACEOF 13759 if ac_fn_c_try_compile "$LINENO"; then : 13760 gl_cv_header_stdint_h=yes 13761 else 13762 gl_cv_header_stdint_h=no 13763 fi 13764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13765 fi 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; } 13769 if test $gl_cv_header_stdint_h = yes; then 13770 13771 $as_echo "#define HAVE_STDINT_H 1" >>confdefs.h 13772 13773 STDINT_H='' 13774 else 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; } 13779 if test "${gl_cv_long_bitsize_64+set}" = set; then : 13780 $as_echo_n "(cached) " >&6 13781 else 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) 13788 typedef int array [2 * (POW63 != 0 && POW64 == 0) - 1]; 13789 13790 int 13791 main () 13792 { 13793 13794 ; 13795 return 0; 13796 } 13797 _ACEOF 13798 if ac_fn_c_try_compile "$LINENO"; then : 13799 gl_cv_long_bitsize_64=yes 13800 else 13801 gl_cv_long_bitsize_64=no 13802 fi 13803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13804 fi 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; } 13816 if test "${gl_cv_longlong_bitsize_64+set}" = set; then : 13817 $as_echo_n "(cached) " >&6 13818 else 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) 13825 typedef int array [2 * (POW63 != 0 && POW64 == 0) - 1]; 13826 13827 int 13828 main () 13829 { 13830 13831 ; 13832 return 0; 13833 } 13834 _ACEOF 13835 if ac_fn_c_try_compile "$LINENO"; then : 13836 gl_cv_longlong_bitsize_64=yes 13837 else 13838 gl_cv_longlong_bitsize_64=no 13839 fi 13840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13841 fi 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 13851 fi 13852 13853 13854 13855 13856 case " $LIBOBJS " in 13857 *" strcasecmp.$ac_objext "* ) ;; 13858 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" 13859 ;; 13860 esac 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; } 13869 if test "${gl_cv_func_mbrtowc+set}" = set; then : 13870 $as_echo_n "(cached) " >&6 13871 else 13872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13873 /* end confdefs.h. */ 13874 #include <wchar.h> 13875 int 13876 main () 13877 { 13878 wchar_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 13887 if ac_fn_c_try_link "$LINENO"; then : 13888 gl_cv_func_mbrtowc=yes 13889 else 13890 gl_cv_func_mbrtowc=no 13891 fi 13892 rm -f core conftest.err conftest.$ac_objext \ 13893 conftest$ac_exeext conftest.$ac_ext 13894 fi 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 13907 do : 13908 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp" 13909 if test "x$ac_cv_func_strncasecmp" = x""yes; then : 13910 cat >>confdefs.h <<_ACEOF 13911 #define HAVE_STRNCASECMP 1 13912 _ACEOF 13913 13914 else 13915 case " $LIBOBJS " in 13916 *" $ac_func.$ac_objext "* ) ;; 13917 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 13918 ;; 13919 esac 13920 13921 fi 13922 done 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 13936 do : 13937 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" 13938 if test "x$ac_cv_func_strdup" = x""yes; then : 13939 cat >>confdefs.h <<_ACEOF 13940 #define HAVE_STRDUP 1 13941 _ACEOF 13942 13943 else 13944 case " $LIBOBJS " in 13945 *" $ac_func.$ac_objext "* ) ;; 13946 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 13947 ;; 13948 esac 13949 13950 fi 13951 done 13952 13953 13954 13955 : 13956 13957 13958 13959 13960 13961 : 13962 13963 13964 for ac_func in strerror 13965 do : 13966 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" 13967 if test "x$ac_cv_func_strerror" = x""yes; then : 13968 cat >>confdefs.h <<_ACEOF 13969 #define HAVE_STRERROR 1 13970 _ACEOF 13971 13972 else 13973 case " $LIBOBJS " in 13974 *" $ac_func.$ac_objext "* ) ;; 13975 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 13976 ;; 13977 esac 13978 13979 fi 13980 done 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 ;; 13995 esac 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; } 14001 if test "${gl_cv_func_mbrtowc+set}" = set; then : 14002 $as_echo_n "(cached) " >&6 14003 else 14004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14005 /* end confdefs.h. */ 14006 #include <wchar.h> 14007 int 14008 main () 14009 { 14010 wchar_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 14019 if ac_fn_c_try_link "$LINENO"; then : 14020 gl_cv_func_mbrtowc=yes 14021 else 14022 gl_cv_func_mbrtowc=no 14023 fi 14024 rm -f core conftest.err conftest.$ac_objext \ 14025 conftest$ac_exeext conftest.$ac_ext 14026 fi 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 14039 do : 14040 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol" 14041 if test "x$ac_cv_func_strtol" = x""yes; then : 14042 cat >>confdefs.h <<_ACEOF 14043 #define HAVE_STRTOL 1 14044 _ACEOF 14045 14046 else 14047 case " $LIBOBJS " in 14048 *" $ac_func.$ac_objext "* ) ;; 14049 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 14050 ;; 14051 esac 14052 14053 fi 14054 done 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 14072 do : 14073 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul" 14074 if test "x$ac_cv_func_strtoul" = x""yes; then : 14075 cat >>confdefs.h <<_ACEOF 14076 #define HAVE_STRTOUL 1 14077 _ACEOF 14078 14079 else 14080 case " $LIBOBJS " in 14081 *" $ac_func.$ac_objext "* ) ;; 14082 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 14083 ;; 14084 esac 14085 14086 fi 14087 done 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; } 14111 if test "${gl_cv_time_r_posix+set}" = set; then : 14112 $as_echo_n "(cached) " >&6 14113 else 14114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14115 /* end confdefs.h. */ 14116 #include <time.h> 14117 int 14118 main () 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 14128 if ac_fn_c_try_compile "$LINENO"; then : 14129 gl_cv_time_r_posix=yes 14130 else 14131 gl_cv_time_r_posix=no 14132 fi 14133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14134 fi 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 ;; 14146 esac 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; } 14178 if test "${fu_cv_sys_struct_timespec+set}" = set; then : 14179 $as_echo_n "(cached) " >&6 14180 else 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 14195 int 14196 main () 14197 { 14198 static struct timespec x; x.tv_sec = x.tv_nsec; 14199 ; 14200 return 0; 14201 } 14202 _ACEOF 14203 if ac_fn_c_try_compile "$LINENO"; then : 14204 fu_cv_sys_struct_timespec=yes 14205 else 14206 fu_cv_sys_struct_timespec=no 14207 fi 14208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14209 14210 fi 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 " 14225 if test "x$ac_cv_have_decl_nanosleep" = x""yes; then : 14226 ac_have_decl=1 14227 else 14228 ac_have_decl=0 14229 fi 14230 14231 cat >>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; } 14240 if test "${gl_cv_func_tzset_clobber+set}" = set; then : 14241 $as_echo_n "(cached) " >&6 14242 else 14243 14244 if test "$cross_compiling" = yes; then : 14245 gl_cv_func_tzset_clobber=yes 14246 else 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 14262 int 14263 main () 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 14281 if ac_fn_c_try_run "$LINENO"; then : 14282 gl_cv_func_tzset_clobber=no 14283 else 14284 gl_cv_func_tzset_clobber=yes 14285 fi 14286 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14287 conftest.$ac_objext conftest.beam conftest.$ac_ext 14288 fi 14289 14290 fi 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 ;; 14304 esac 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 ;; 14328 esac 14329 14330 case " $LIBOBJS " in 14331 *" fd-safer.$ac_objext "* ) ;; 14332 *) LIBOBJS="$LIBOBJS fd-safer.$ac_objext" 14333 ;; 14334 esac 14335 14336 case " $LIBOBJS " in 14337 *" pipe-safer.$ac_objext "* ) ;; 14338 *) LIBOBJS="$LIBOBJS pipe-safer.$ac_objext" 14339 ;; 14340 esac 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 14418 do : 14419 ac_fn_c_check_func "$LINENO" "vasnprintf" "ac_cv_func_vasnprintf" 14420 if test "x$ac_cv_func_vasnprintf" = x""yes; then : 14421 cat >>confdefs.h <<_ACEOF 14422 #define HAVE_VASNPRINTF 1 14423 _ACEOF 14424 14425 else 14426 case " $LIBOBJS " in 14427 *" $ac_func.$ac_objext "* ) ;; 14428 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 14429 ;; 14430 esac 14431 14432 fi 14433 done 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 ;; 14441 esac 14442 14443 case " $LIBOBJS " in 14444 *" printf-parse.$ac_objext "* ) ;; 14445 *) LIBOBJS="$LIBOBJS printf-parse.$ac_objext" 14446 ;; 14447 esac 14448 14449 case " $LIBOBJS " in 14450 *" asnprintf.$ac_objext "* ) ;; 14451 *) LIBOBJS="$LIBOBJS asnprintf.$ac_objext" 14452 ;; 14453 esac 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" 14469 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then : 14470 14471 cat >>confdefs.h <<_ACEOF 14472 #define HAVE_PTRDIFF_T 1 14473 _ACEOF 14474 14475 14476 fi 14477 14478 14479 14480 14481 14482 14483 14484 14485 14486 for ac_func in snprintf wcslen 14487 do : 14488 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14489 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14490 eval 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 14496 fi 14497 done 14498 14499 14500 14501 14502 fi 14503 14504 14505 for ac_func in vasprintf 14506 do : 14507 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" 14508 if test "x$ac_cv_func_vasprintf" = x""yes; then : 14509 cat >>confdefs.h <<_ACEOF 14510 #define HAVE_VASPRINTF 1 14511 _ACEOF 14512 14513 else 14514 case " $LIBOBJS " in 14515 *" $ac_func.$ac_objext "* ) ;; 14516 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 14517 ;; 14518 esac 14519 14520 fi 14521 done 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 ;; 14529 esac 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 ;; 14543 esac 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 ;; 14560 esac 14561 14562 14563 14564 14565 14566 14567 14568 : 14569 14570 14571 14572 14573 14574 14575 14576 14577 14578 for ac_header in stdint.h 14579 do : 14580 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 14581 if test "x$ac_cv_header_stdint_h" = x""yes; then : 14582 cat >>confdefs.h <<_ACEOF 14583 #define HAVE_STDINT_H 1 14584 _ACEOF 14585 14586 fi 14587 14588 done 14589 14590 14591 14592 14593 case " $LIBOBJS " in 14594 *" yesno.$ac_objext "* ) ;; 14595 *) LIBOBJS="$LIBOBJS yesno.$ac_objext" 14596 ;; 14597 esac 14598 14599 14600 : 14601 14602 14603 # The error module still poses merge problems. 14604 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" 14605 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then : 14606 ac_have_decl=1 14607 else 14608 ac_have_decl=0 14609 fi 14610 14611 cat >>confdefs.h <<_ACEOF 14612 #define HAVE_DECL_STRERROR_R $ac_have_decl 14613 _ACEOF 14614 14615 for ac_func in strerror_r 14616 do : 14617 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" 14618 if test "x$ac_cv_func_strerror_r" = x""yes; then : 14619 cat >>confdefs.h <<_ACEOF 14620 #define HAVE_STRERROR_R 1 14621 _ACEOF 14622 14623 fi 14624 done 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; } 14628 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then : 14629 $as_echo_n "(cached) " >&6 14630 else 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 14637 int 14638 main () 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 14650 if ac_fn_c_try_compile "$LINENO"; then : 14651 ac_cv_func_strerror_r_char_p=yes 14652 fi 14653 rm -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 : 14663 else 14664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14665 /* end confdefs.h. */ 14666 $ac_includes_default 14667 extern char *strerror_r (); 14668 int 14669 main () 14670 { 14671 char buf[100]; 14672 char x = *strerror_r (0, buf, sizeof buf); 14673 return ! isalpha (x); 14674 ; 14675 return 0; 14676 } 14677 _ACEOF 14678 if ac_fn_c_try_run "$LINENO"; then : 14679 ac_cv_func_strerror_r_char_p=yes 14680 fi 14681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14682 conftest.$ac_objext conftest.beam conftest.$ac_ext 14683 fi 14684 14685 fi 14686 14687 fi 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; } 14690 if test $ac_cv_func_strerror_r_char_p = yes; then 14691 14692 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h 14693 14694 fi 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 14706 cat >>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 14724 do : 14725 ac_fn_c_check_header_mongrel "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default" 14726 if test "x$ac_cv_header_glob_h" = x""yes; then : 14727 cat >>confdefs.h <<_ACEOF 14728 #define HAVE_GLOB_H 1 14729 _ACEOF 14730 14731 else 14732 GLOB_H=glob.h 14733 fi 14734 14735 done 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; } 14741 if test "${gl_cv_gnu_glob_interface_version_1+set}" = set; then : 14742 $as_echo_n "(cached) " >&6 14743 else 14744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14745 /* end confdefs.h. */ 14746 #include <gnu-versions.h> 14747 char a[_GNU_GLOB_INTERFACE_VERSION == 1 ? 1 : -1]; 14748 _ACEOF 14749 if ac_fn_c_try_compile "$LINENO"; then : 14750 gl_cv_gnu_glob_interface_version_1=yes 14751 else 14752 gl_cv_gnu_glob_interface_version_1=no 14753 fi 14754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14755 fi 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; } 14767 if test "${gl_cv_glob_lists_symlinks+set}" = set; then : 14768 $as_echo_n "(cached) " >&6 14769 else 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 14781 else 14782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14783 /* end confdefs.h. */ 14784 #include <stddef.h> 14785 #include <glob.h> 14786 int 14787 main () 14788 { 14789 glob_t found; 14790 if (glob ("conf*-globtest", 0, NULL, &found) == GLOB_NOMATCH) return 1; 14791 ; 14792 return 0; 14793 } 14794 _ACEOF 14795 if ac_fn_c_try_run "$LINENO"; then : 14796 gl_cv_glob_lists_symlinks=yes 14797 else 14798 gl_cv_glob_lists_symlinks=no 14799 fi 14800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14801 conftest.$ac_objext conftest.beam conftest.$ac_ext 14802 fi 14803 14804 fi 14805 fi 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 ;; 14844 esac 14845 14846 14847 14848 fi 14849 14850 14851 # 14852 # End GNULIB stuff. 14853 # 14854 14855 14856 14857 # Check for function existance. 14858 for 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 14885 do : 14886 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14887 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14888 eval 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 14894 fi 14895 done 14896 14897 14898 if test $cross_compiling = yes ; then 14899 14900 $as_echo "#define CROSS_COMPILING 1" >>confdefs.h 14901 14902 else 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; } 14909 if test "${ac_cv_sizeof_char+set}" = set; then : 14910 $as_echo_n "(cached) " >&6 14911 else 14912 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : 14913 14914 else 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 14919 as_fn_error "cannot compute sizeof (char) 14920 See \`config.log' for more details." "$LINENO" 5; }; } 14921 else 14922 ac_cv_sizeof_char=0 14923 fi 14924 fi 14925 14926 fi 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 14932 cat >>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; } 14939 if test "${ccvs_cv_unique_int_type_char+set}" = set; then : 14940 $as_echo_n "(cached) " >&6 14941 else 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 14948 fi 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; } 14962 if test "${ac_cv_sizeof_short+set}" = set; then : 14963 $as_echo_n "(cached) " >&6 14964 else 14965 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 14966 14967 else 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 14972 as_fn_error "cannot compute sizeof (short) 14973 See \`config.log' for more details." "$LINENO" 5; }; } 14974 else 14975 ac_cv_sizeof_short=0 14976 fi 14977 fi 14978 14979 fi 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 14985 cat >>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; } 14992 if test "${ccvs_cv_unique_int_type_short+set}" = set; then : 14993 $as_echo_n "(cached) " >&6 14994 else 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 15001 fi 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; } 15015 if test "${ac_cv_sizeof_int+set}" = set; then : 15016 $as_echo_n "(cached) " >&6 15017 else 15018 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 15019 15020 else 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 15025 as_fn_error "cannot compute sizeof (int) 15026 See \`config.log' for more details." "$LINENO" 5; }; } 15027 else 15028 ac_cv_sizeof_int=0 15029 fi 15030 fi 15031 15032 fi 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 15038 cat >>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; } 15045 if test "${ccvs_cv_unique_int_type_int+set}" = set; then : 15046 $as_echo_n "(cached) " >&6 15047 else 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 15054 fi 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; } 15068 if test "${ac_cv_sizeof_long+set}" = set; then : 15069 $as_echo_n "(cached) " >&6 15070 else 15071 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 15072 15073 else 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 15078 as_fn_error "cannot compute sizeof (long) 15079 See \`config.log' for more details." "$LINENO" 5; }; } 15080 else 15081 ac_cv_sizeof_long=0 15082 fi 15083 fi 15084 15085 fi 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 15091 cat >>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; } 15098 if test "${ccvs_cv_unique_int_type_long+set}" = set; then : 15099 $as_echo_n "(cached) " >&6 15100 else 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 15107 fi 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; } 15122 if test "${ac_cv_sizeof_long_long+set}" = set; then : 15123 $as_echo_n "(cached) " >&6 15124 else 15125 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 15126 15127 else 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 15132 as_fn_error "cannot compute sizeof (long long) 15133 See \`config.log' for more details." "$LINENO" 5; }; } 15134 else 15135 ac_cv_sizeof_long_long=0 15136 fi 15137 fi 15138 15139 fi 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 15145 cat >>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; } 15152 if test "${ccvs_cv_unique_int_type_long_long+set}" = set; then : 15153 $as_echo_n "(cached) " >&6 15154 else 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 15161 fi 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; } 15176 if test "${ac_cv_sizeof_size_t+set}" = set; then : 15177 $as_echo_n "(cached) " >&6 15178 else 15179 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : 15180 15181 else 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 15186 as_fn_error "cannot compute sizeof (size_t) 15187 See \`config.log' for more details." "$LINENO" 5; }; } 15188 else 15189 ac_cv_sizeof_size_t=0 15190 fi 15191 fi 15192 15193 fi 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 15199 cat >>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; } 15206 if test "${ccvs_cv_unique_int_type_size_t+set}" = set; then : 15207 $as_echo_n "(cached) " >&6 15208 else 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 15215 fi 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; } 15229 if test "${ac_cv_sizeof_ptrdiff_t+set}" = set; then : 15230 $as_echo_n "(cached) " >&6 15231 else 15232 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ptrdiff_t))" "ac_cv_sizeof_ptrdiff_t" "$ac_includes_default"; then : 15233 15234 else 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 15239 as_fn_error "cannot compute sizeof (ptrdiff_t) 15240 See \`config.log' for more details." "$LINENO" 5; }; } 15241 else 15242 ac_cv_sizeof_ptrdiff_t=0 15243 fi 15244 fi 15245 15246 fi 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 15252 cat >>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; } 15259 if test "${ccvs_cv_unique_int_type_ptrdiff_t+set}" = set; then : 15260 $as_echo_n "(cached) " >&6 15261 else 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 15268 fi 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; } 15283 if test "${ac_cv_sizeof_wint_t+set}" = set; then : 15284 $as_echo_n "(cached) " >&6 15285 else 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 15291 else 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 15296 as_fn_error "cannot compute sizeof (wint_t) 15297 See \`config.log' for more details." "$LINENO" 5; }; } 15298 else 15299 ac_cv_sizeof_wint_t=0 15300 fi 15301 fi 15302 15303 fi 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 15309 cat >>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; } 15316 if test "${ccvs_cv_unique_int_type_wint_t+set}" = set; then : 15317 $as_echo_n "(cached) " >&6 15318 else 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 15325 fi 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; } 15341 if test "${ac_cv_sizeof_intmax_t+set}" = set; then : 15342 $as_echo_n "(cached) " >&6 15343 else 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 15355 else 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 15360 as_fn_error "cannot compute sizeof (intmax_t) 15361 See \`config.log' for more details." "$LINENO" 5; }; } 15362 else 15363 ac_cv_sizeof_intmax_t=0 15364 fi 15365 fi 15366 15367 fi 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 15373 cat >>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; } 15380 if test "${ccvs_cv_unique_int_type_intmax_t+set}" = set; then : 15381 $as_echo_n "(cached) " >&6 15382 else 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 15389 fi 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; } 15405 if test "${ac_cv_sizeof_float+set}" = set; then : 15406 $as_echo_n "(cached) " >&6 15407 else 15408 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then : 15409 15410 else 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 15415 as_fn_error "cannot compute sizeof (float) 15416 See \`config.log' for more details." "$LINENO" 5; }; } 15417 else 15418 ac_cv_sizeof_float=0 15419 fi 15420 fi 15421 15422 fi 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 15428 cat >>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; } 15435 if test "${ccvs_cv_unique_float_type_float+set}" = set; then : 15436 $as_echo_n "(cached) " >&6 15437 else 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 15444 fi 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; } 15458 if test "${ac_cv_sizeof_double+set}" = set; then : 15459 $as_echo_n "(cached) " >&6 15460 else 15461 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then : 15462 15463 else 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 15468 as_fn_error "cannot compute sizeof (double) 15469 See \`config.log' for more details." "$LINENO" 5; }; } 15470 else 15471 ac_cv_sizeof_double=0 15472 fi 15473 fi 15474 15475 fi 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 15481 cat >>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; } 15488 if test "${ccvs_cv_unique_float_type_double+set}" = set; then : 15489 $as_echo_n "(cached) " >&6 15490 else 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 15497 fi 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; } 15512 if test "${ac_cv_sizeof_long_double+set}" = set; then : 15513 $as_echo_n "(cached) " >&6 15514 else 15515 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then : 15516 15517 else 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 15522 as_fn_error "cannot compute sizeof (long double) 15523 See \`config.log' for more details." "$LINENO" 5; }; } 15524 else 15525 ac_cv_sizeof_long_double=0 15526 fi 15527 fi 15528 15529 fi 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 15535 cat >>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; } 15542 if test "${ccvs_cv_unique_float_type_long_double+set}" = set; then : 15543 $as_echo_n "(cached) " >&6 15544 else 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 15551 fi 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 15560 fi 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 15575 for ac_header in vfork.h 15576 do : 15577 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 15578 if test "x$ac_cv_header_vfork_h" = x""yes; then : 15579 cat >>confdefs.h <<_ACEOF 15580 #define HAVE_VFORK_H 1 15581 _ACEOF 15582 15583 fi 15584 15585 done 15586 15587 for ac_func in fork vfork 15588 do : 15589 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15590 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15591 eval 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 15597 fi 15598 done 15599 15600 if 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; } 15603 if test "${ac_cv_func_fork_works+set}" = set; then : 15604 $as_echo_n "(cached) " >&6 15605 else 15606 if test "$cross_compiling" = yes; then : 15607 ac_cv_func_fork_works=cross 15608 else 15609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15610 /* end confdefs.h. */ 15611 $ac_includes_default 15612 int 15613 main () 15614 { 15615 15616 /* By Ruediger Kuhlmann. */ 15617 return fork () < 0; 15618 15619 ; 15620 return 0; 15621 } 15622 _ACEOF 15623 if ac_fn_c_try_run "$LINENO"; then : 15624 ac_cv_func_fork_works=yes 15625 else 15626 ac_cv_func_fork_works=no 15627 fi 15628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15629 conftest.$ac_objext conftest.beam conftest.$ac_ext 15630 fi 15631 15632 fi 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 15636 else 15637 ac_cv_func_fork_works=$ac_cv_func_fork 15638 fi 15639 if 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;} 15651 fi 15652 ac_cv_func_vfork_works=$ac_cv_func_vfork 15653 if 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; } 15656 if test "${ac_cv_func_vfork_works+set}" = set; then : 15657 $as_echo_n "(cached) " >&6 15658 else 15659 if test "$cross_compiling" = yes; then : 15660 ac_cv_func_vfork_works=cross 15661 else 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. */ 15676 static void 15677 #ifdef __cplusplus 15678 sparc_address_test (int arg) 15679 # else 15680 sparc_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 15698 int 15699 main () 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 15754 if ac_fn_c_try_run "$LINENO"; then : 15755 ac_cv_func_vfork_works=yes 15756 else 15757 ac_cv_func_vfork_works=no 15758 fi 15759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15760 conftest.$ac_objext conftest.beam conftest.$ac_ext 15761 fi 15762 15763 fi 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 15767 fi; 15768 if 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;} 15772 fi 15773 15774 if test "x$ac_cv_func_vfork_works" = xyes; then 15775 15776 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 15777 15778 else 15779 15780 $as_echo "#define vfork fork" >>confdefs.h 15781 15782 fi 15783 if test "x$ac_cv_func_fork_works" = xyes; then 15784 15785 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 15786 15787 fi 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; } 15791 if test "${ac_cv_func_closedir_void+set}" = set; then : 15792 $as_echo_n "(cached) " >&6 15793 else 15794 if test "$cross_compiling" = yes; then : 15795 ac_cv_func_closedir_void=yes 15796 else 15797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15798 /* end confdefs.h. */ 15799 $ac_includes_default 15800 #include <$ac_header_dirent> 15801 #ifndef __cplusplus 15802 int closedir (); 15803 #endif 15804 15805 int 15806 main () 15807 { 15808 return closedir (opendir (".")) != 0; 15809 ; 15810 return 0; 15811 } 15812 _ACEOF 15813 if ac_fn_c_try_run "$LINENO"; then : 15814 ac_cv_func_closedir_void=no 15815 else 15816 ac_cv_func_closedir_void=yes 15817 fi 15818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15819 conftest.$ac_objext conftest.beam conftest.$ac_ext 15820 fi 15821 15822 fi 15823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5 15824 $as_echo "$ac_cv_func_closedir_void" >&6; } 15825 if test $ac_cv_func_closedir_void = yes; then 15826 15827 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h 15828 15829 fi 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; } 15834 if test "${ac_cv_search_getspnam+set}" = set; then : 15835 $as_echo_n "(cached) " >&6 15836 else 15837 ac_func_search_save_LIBS=$LIBS 15838 cat 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 15845 extern "C" 15846 #endif 15847 char getspnam (); 15848 int 15849 main () 15850 { 15851 return getspnam (); 15852 ; 15853 return 0; 15854 } 15855 _ACEOF 15856 for 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 15865 fi 15866 rm -f core conftest.err conftest.$ac_objext \ 15867 conftest$ac_exeext 15868 if test "${ac_cv_search_getspnam+set}" = set; then : 15869 break 15870 fi 15871 done 15872 if test "${ac_cv_search_getspnam+set}" = set; then : 15873 15874 else 15875 ac_cv_search_getspnam=no 15876 fi 15877 rm conftest.$ac_ext 15878 LIBS=$ac_func_search_save_LIBS 15879 fi 15880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspnam" >&5 15881 $as_echo "$ac_cv_search_getspnam" >&6; } 15882 ac_res=$ac_cv_search_getspnam 15883 if 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 15888 fi 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; } 15905 if test "${ac_cv_func_utime_null+set}" = set; then : 15906 $as_echo_n "(cached) " >&6 15907 else 15908 rm -f conftest.data; >conftest.data 15909 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong. 15910 if test "$cross_compiling" = yes; then : 15911 ac_cv_func_utime_null='guessing yes' 15912 else 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 15919 int 15920 main () 15921 { 15922 struct 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 15932 if ac_fn_c_try_run "$LINENO"; then : 15933 ac_cv_func_utime_null=yes 15934 else 15935 ac_cv_func_utime_null=no 15936 fi 15937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15938 conftest.$ac_objext conftest.beam conftest.$ac_ext 15939 fi 15940 15941 fi 15942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5 15943 $as_echo "$ac_cv_func_utime_null" >&6; } 15944 if 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 15949 fi 15950 rm -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; } 15954 if test "${ac_cv_sys_long_file_names+set}" = set; then : 15955 $as_echo_n "(cached) " >&6 15956 else 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 15966 for 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 15982 done 15983 fi 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; } 15986 if test $ac_cv_sys_long_file_names = yes; then 15987 15988 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h 15989 15990 fi 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; } 15995 if test "${cvs_cv_func_printf_ptr+set}" = set; then : 15996 $as_echo_n "(cached) " >&6 15997 else 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;} 16001 as_fn_error "cannot run test program while cross compiling 16002 See \`config.log' for more details." "$LINENO" 5; } 16003 else 16004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16005 /* end confdefs.h. */ 16006 #include <stdio.h> 16007 /* If printf supports %p, exit 0. */ 16008 int 16009 main () 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 16018 if ac_fn_c_try_run "$LINENO"; then : 16019 cvs_cv_func_printf_ptr=yes 16020 else 16021 cvs_cv_func_printf_ptr=no 16022 fi 16023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16024 conftest.$ac_objext conftest.beam conftest.$ac_ext 16025 fi 16026 16027 rm -f core core.* *.core 16028 fi 16029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cvs_cv_func_printf_ptr" >&5 16030 $as_echo "$cvs_cv_func_printf_ptr" >&6; } 16031 if test $cvs_cv_func_printf_ptr = yes; then 16032 16033 $as_echo "#define HAVE_PRINTF_PTR 1" >>confdefs.h 16034 16035 fi 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; } 16041 if test "${ac_cv_lib_nsl_main+set}" = set; then : 16042 $as_echo_n "(cached) " >&6 16043 else 16044 ac_check_lib_save_LIBS=$LIBS 16045 LIBS="-lnsl $LIBS" 16046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16047 /* end confdefs.h. */ 16048 16049 16050 int 16051 main () 16052 { 16053 return main (); 16054 ; 16055 return 0; 16056 } 16057 _ACEOF 16058 if ac_fn_c_try_link "$LINENO"; then : 16059 ac_cv_lib_nsl_main=yes 16060 else 16061 ac_cv_lib_nsl_main=no 16062 fi 16063 rm -f core conftest.err conftest.$ac_objext \ 16064 conftest$ac_exeext conftest.$ac_ext 16065 LIBS=$ac_check_lib_save_LIBS 16066 fi 16067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5 16068 $as_echo "$ac_cv_lib_nsl_main" >&6; } 16069 if 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 16076 fi 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; } 16080 if test "${ac_cv_search_connect+set}" = set; then : 16081 $as_echo_n "(cached) " >&6 16082 else 16083 ac_func_search_save_LIBS=$LIBS 16084 cat 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 16091 extern "C" 16092 #endif 16093 char connect (); 16094 int 16095 main () 16096 { 16097 return connect (); 16098 ; 16099 return 0; 16100 } 16101 _ACEOF 16102 for 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 16111 fi 16112 rm -f core conftest.err conftest.$ac_objext \ 16113 conftest$ac_exeext 16114 if test "${ac_cv_search_connect+set}" = set; then : 16115 break 16116 fi 16117 done 16118 if test "${ac_cv_search_connect+set}" = set; then : 16119 16120 else 16121 ac_cv_search_connect=no 16122 fi 16123 rm conftest.$ac_ext 16124 LIBS=$ac_func_search_save_LIBS 16125 fi 16126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5 16127 $as_echo "$ac_cv_search_connect" >&6; } 16128 ac_res=$ac_cv_search_connect 16129 if 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 16134 fi 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; } 16138 if test "${ac_cv_search_gethostbyname+set}" = set; then : 16139 $as_echo_n "(cached) " >&6 16140 else 16141 ac_func_search_save_LIBS=$LIBS 16142 cat 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 16149 extern "C" 16150 #endif 16151 char gethostbyname (); 16152 int 16153 main () 16154 { 16155 return gethostbyname (); 16156 ; 16157 return 0; 16158 } 16159 _ACEOF 16160 for 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 16169 fi 16170 rm -f core conftest.err conftest.$ac_objext \ 16171 conftest$ac_exeext 16172 if test "${ac_cv_search_gethostbyname+set}" = set; then : 16173 break 16174 fi 16175 done 16176 if test "${ac_cv_search_gethostbyname+set}" = set; then : 16177 16178 else 16179 ac_cv_search_gethostbyname=no 16180 fi 16181 rm conftest.$ac_ext 16182 LIBS=$ac_func_search_save_LIBS 16183 fi 16184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 16185 $as_echo "$ac_cv_search_gethostbyname" >&6; } 16186 ac_res=$ac_cv_search_gethostbyname 16187 if test "$ac_res" != no; then : 16188 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16189 16190 fi 16191 16192 16193 16194 16195 16196 16197 KRB4=/usr/kerberos 16198 16199 16200 # Check whether --with-krb4 was given. 16201 if test "${with_krb4+set}" = set; then : 16202 withval=$with_krb4; KRB4=$with_krb4 16203 fi 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 16210 krb_h= 16211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb.h" >&5 16212 $as_echo_n "checking for krb.h... " >&6; } 16213 if 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> 16219 int 16220 main () 16221 { 16222 int i; 16223 ; 16224 return 0; 16225 } 16226 _ACEOF 16227 if ac_fn_c_try_link "$LINENO"; then : 16228 krb_h=yes krb_incdir=$KRB4/include 16229 else 16230 CFLAGS=$hold_cflags 16231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16232 /* end confdefs.h. */ 16233 #include <krb.h> 16234 int 16235 main () 16236 { 16237 int i; 16238 ; 16239 return 0; 16240 } 16241 _ACEOF 16242 if ac_fn_c_try_link "$LINENO"; then : 16243 krb_h=yes krb_incdir= 16244 fi 16245 rm -f core conftest.err conftest.$ac_objext \ 16246 conftest$ac_exeext conftest.$ac_ext 16247 fi 16248 rm -f core conftest.err conftest.$ac_objext \ 16249 conftest$ac_exeext conftest.$ac_ext 16250 CFLAGS=$hold_cflags 16251 else 16252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16253 /* end confdefs.h. */ 16254 #include <krb.h> 16255 int 16256 main () 16257 { 16258 int i; 16259 ; 16260 return 0; 16261 } 16262 _ACEOF 16263 if ac_fn_c_try_link "$LINENO"; then : 16264 krb_h=yes krb_incdir= 16265 fi 16266 rm -f core conftest.err conftest.$ac_objext \ 16267 conftest$ac_exeext conftest.$ac_ext 16268 fi 16269 if test -z "$krb_h"; then 16270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16271 /* end confdefs.h. */ 16272 #include <krb.h> 16273 int 16274 main () 16275 { 16276 int i; 16277 ; 16278 return 0; 16279 } 16280 _ACEOF 16281 if ac_fn_c_try_link "$LINENO"; then : 16282 krb_h=yes krb_incdir= 16283 else 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> 16290 int 16291 main () 16292 { 16293 int i; 16294 ; 16295 return 0; 16296 } 16297 _ACEOF 16298 if ac_fn_c_try_link "$LINENO"; then : 16299 krb_h=yes krb_incdir=$KRB4/include/kerberosIV 16300 fi 16301 rm -f core conftest.err conftest.$ac_objext \ 16302 conftest$ac_exeext conftest.$ac_ext 16303 CFLAGS=$hold_cflags 16304 fi 16305 fi 16306 rm -f core conftest.err conftest.$ac_objext \ 16307 conftest$ac_exeext conftest.$ac_ext 16308 fi 16309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb_h" >&5 16310 $as_echo "$krb_h" >&6; } 16311 16312 if 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; } 16319 if test "${ac_cv_lib_krb_printf+set}" = set; then : 16320 $as_echo_n "(cached) " >&6 16321 else 16322 ac_check_lib_save_LIBS=$LIBS 16323 LIBS="-lkrb $LIBS" 16324 cat 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 16331 extern "C" 16332 #endif 16333 char printf (); 16334 int 16335 main () 16336 { 16337 return printf (); 16338 ; 16339 return 0; 16340 } 16341 _ACEOF 16342 if ac_fn_c_try_link "$LINENO"; then : 16343 ac_cv_lib_krb_printf=yes 16344 else 16345 ac_cv_lib_krb_printf=no 16346 fi 16347 rm -f core conftest.err conftest.$ac_objext \ 16348 conftest$ac_exeext conftest.$ac_ext 16349 LIBS=$ac_check_lib_save_LIBS 16350 fi 16351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_printf" >&5 16352 $as_echo "$ac_cv_lib_krb_printf" >&6; } 16353 if test "x$ac_cv_lib_krb_printf" = x""yes; then : 16354 krb_lib=yes krb_libdir=${KRB4}/lib 16355 else 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; } 16361 if test "${ac_cv_lib_krb_open+set}" = set; then : 16362 $as_echo_n "(cached) " >&6 16363 else 16364 ac_check_lib_save_LIBS=$LIBS 16365 LIBS="-lkrb $LIBS" 16366 cat 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 16373 extern "C" 16374 #endif 16375 char open (); 16376 int 16377 main () 16378 { 16379 return open (); 16380 ; 16381 return 0; 16382 } 16383 _ACEOF 16384 if ac_fn_c_try_link "$LINENO"; then : 16385 ac_cv_lib_krb_open=yes 16386 else 16387 ac_cv_lib_krb_open=no 16388 fi 16389 rm -f core conftest.err conftest.$ac_objext \ 16390 conftest$ac_exeext conftest.$ac_ext 16391 LIBS=$ac_check_lib_save_LIBS 16392 fi 16393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_open" >&5 16394 $as_echo "$ac_cv_lib_krb_open" >&6; } 16395 if test "x$ac_cv_lib_krb_open" = x""yes; then : 16396 krb_lib=yes krb_libdir= 16397 fi 16398 16399 fi 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; } 16405 if test "${ac_cv_lib_krb_printf+set}" = set; then : 16406 $as_echo_n "(cached) " >&6 16407 else 16408 ac_check_lib_save_LIBS=$LIBS 16409 LIBS="-lkrb $LIBS" 16410 cat 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 16417 extern "C" 16418 #endif 16419 char printf (); 16420 int 16421 main () 16422 { 16423 return printf (); 16424 ; 16425 return 0; 16426 } 16427 _ACEOF 16428 if ac_fn_c_try_link "$LINENO"; then : 16429 ac_cv_lib_krb_printf=yes 16430 else 16431 ac_cv_lib_krb_printf=no 16432 fi 16433 rm -f core conftest.err conftest.$ac_objext \ 16434 conftest$ac_exeext conftest.$ac_ext 16435 LIBS=$ac_check_lib_save_LIBS 16436 fi 16437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_printf" >&5 16438 $as_echo "$ac_cv_lib_krb_printf" >&6; } 16439 if test "x$ac_cv_lib_krb_printf" = x""yes; then : 16440 krb_lib=yes krb_libdir= 16441 fi 16442 16443 ac_fn_c_check_func "$LINENO" "krb_recvauth" "ac_cv_func_krb_recvauth" 16444 if test "x$ac_cv_func_krb_recvauth" = x""yes; then : 16445 krb_lib=yes krb_libdir= 16446 fi 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; } 16462 if test "${ac_cv_lib_des_printf+set}" = set; then : 16463 $as_echo_n "(cached) " >&6 16464 else 16465 ac_check_lib_save_LIBS=$LIBS 16466 LIBS="-ldes $LIBS" 16467 cat 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 16474 extern "C" 16475 #endif 16476 char printf (); 16477 int 16478 main () 16479 { 16480 return printf (); 16481 ; 16482 return 0; 16483 } 16484 _ACEOF 16485 if ac_fn_c_try_link "$LINENO"; then : 16486 ac_cv_lib_des_printf=yes 16487 else 16488 ac_cv_lib_des_printf=no 16489 fi 16490 rm -f core conftest.err conftest.$ac_objext \ 16491 conftest$ac_exeext conftest.$ac_ext 16492 LIBS=$ac_check_lib_save_LIBS 16493 fi 16494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_printf" >&5 16495 $as_echo "$ac_cv_lib_des_printf" >&6; } 16496 if test "x$ac_cv_lib_des_printf" = x""yes; then : 16497 LIBS="${LIBS} -ldes" 16498 fi 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; } 16502 if test "${ac_cv_lib_krb_krb_recvauth+set}" = set; then : 16503 $as_echo_n "(cached) " >&6 16504 else 16505 ac_check_lib_save_LIBS=$LIBS 16506 LIBS="-lkrb $LIBS" 16507 cat 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 16514 extern "C" 16515 #endif 16516 char krb_recvauth (); 16517 int 16518 main () 16519 { 16520 return krb_recvauth (); 16521 ; 16522 return 0; 16523 } 16524 _ACEOF 16525 if ac_fn_c_try_link "$LINENO"; then : 16526 ac_cv_lib_krb_krb_recvauth=yes 16527 else 16528 ac_cv_lib_krb_krb_recvauth=no 16529 fi 16530 rm -f core conftest.err conftest.$ac_objext \ 16531 conftest$ac_exeext conftest.$ac_ext 16532 LIBS=$ac_check_lib_save_LIBS 16533 fi 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; } 16536 if 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 16543 fi 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; } 16547 if test "${ac_cv_lib_krb4_krb_recvauth+set}" = set; then : 16548 $as_echo_n "(cached) " >&6 16549 else 16550 ac_check_lib_save_LIBS=$LIBS 16551 LIBS="-lkrb4 $LIBS" 16552 cat 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 16559 extern "C" 16560 #endif 16561 char krb_recvauth (); 16562 int 16563 main () 16564 { 16565 return krb_recvauth (); 16566 ; 16567 return 0; 16568 } 16569 _ACEOF 16570 if ac_fn_c_try_link "$LINENO"; then : 16571 ac_cv_lib_krb4_krb_recvauth=yes 16572 else 16573 ac_cv_lib_krb4_krb_recvauth=no 16574 fi 16575 rm -f core conftest.err conftest.$ac_objext \ 16576 conftest$ac_exeext conftest.$ac_ext 16577 LIBS=$ac_check_lib_save_LIBS 16578 fi 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; } 16581 if 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 16588 fi 16589 16590 LDFLAGS=$hold_ldflags 16591 if test -n "$krb_incdir"; then 16592 CPPFLAGS="$CPPFLAGS -I$krb_incdir" 16593 fi 16594 fi 16595 fi 16596 for ac_func in krb_get_err_text 16597 do : 16598 ac_fn_c_check_func "$LINENO" "krb_get_err_text" "ac_cv_func_krb_get_err_text" 16599 if 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 16604 fi 16605 done 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. 16619 if test "${with_gssapi+set}" = set; then : 16620 withval=$with_gssapi; 16621 else 16622 with_gssapi=yes 16623 fi 16624 16625 # 16626 # Try to locate a GSSAPI installation if no location was specified, assuming 16627 # GSSAPI was enabled (the default). 16628 # 16629 if 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; } 16635 else :; fi 16636 if test "${acx_gssapi_cv_gssapi+set}" = set; then : 16637 $as_echo_n "(cached) " >&6 16638 else 16639 16640 if 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 16674 do : 16675 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16676 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16677 eval 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 16683 fi 16684 16685 done 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 16694 else 16695 acx_gssapi_cv_gssapi=$with_gssapi 16696 fi 16697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI" >&5 16698 $as_echo_n "checking for GSSAPI... " >&6; } 16699 16700 fi 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 # 16708 if test x$acx_gssapi_cv_gssapi = xyes; then 16709 # no special includes necessary 16710 GSSAPI_INCLUDES="" 16711 else 16712 # GSSAPI at $acx_gssapi_cv_gssapi (could be 'no') 16713 GSSAPI_INCLUDES=" -I$acx_gssapi_cv_gssapi/include" 16714 fi 16715 16716 # 16717 # Get the rest of the information CVS needs to compile with GSSAPI support 16718 # 16719 if 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 16730 do : 16731 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16732 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16733 eval 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 16739 fi 16740 16741 done 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; } 16746 if test "${acx_gssapi_cv_gss_c_nt_hostbased_service+set}" = set; then : 16747 $as_echo_n "(cached) " >&6 16748 else 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 16757 if (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 16760 else 16761 16762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16763 /* end confdefs.h. */ 16764 #include <gssapi.h> 16765 16766 _ACEOF 16767 if (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 16770 fi 16771 rm -f conftest* 16772 16773 16774 fi 16775 rm -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 16785 if (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 16788 else 16789 16790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16791 /* end confdefs.h. */ 16792 #include <gssapi/gssapi.h> 16793 16794 _ACEOF 16795 if (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 16798 fi 16799 rm -f conftest* 16800 16801 16802 fi 16803 rm -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 16813 if (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 16816 else 16817 16818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16819 /* end confdefs.h. */ 16820 #include <gssapi/gssapi_generic.h> 16821 16822 _ACEOF 16823 if (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 16826 fi 16827 rm -f conftest* 16828 16829 16830 fi 16831 rm -f conftest* 16832 16833 else :; fi 16834 16835 fi 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 16849 cat >>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; } 16877 if test "${ac_cv_search_des_set_odd_parity+set}" = set; then : 16878 $as_echo_n "(cached) " >&6 16879 else 16880 ac_func_search_save_LIBS=$LIBS 16881 cat 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 16888 extern "C" 16889 #endif 16890 char des_set_odd_parity (); 16891 int 16892 main () 16893 { 16894 return des_set_odd_parity (); 16895 ; 16896 return 0; 16897 } 16898 _ACEOF 16899 for 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 16908 fi 16909 rm -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 16913 fi 16914 done 16915 if test "${ac_cv_search_des_set_odd_parity+set}" = set; then : 16916 16917 else 16918 ac_cv_search_des_set_odd_parity=no 16919 fi 16920 rm conftest.$ac_ext 16921 LIBS=$ac_func_search_save_LIBS 16922 fi 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; } 16925 ac_res=$ac_cv_search_des_set_odd_parity 16926 if test "$ac_res" != no; then : 16927 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16928 16929 fi 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; } 16939 if test "${ac_cv_search_com_err+set}" = set; then : 16940 $as_echo_n "(cached) " >&6 16941 else 16942 ac_func_search_save_LIBS=$LIBS 16943 cat 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 16950 extern "C" 16951 #endif 16952 char com_err (); 16953 int 16954 main () 16955 { 16956 return com_err (); 16957 ; 16958 return 0; 16959 } 16960 _ACEOF 16961 for 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 16970 fi 16971 rm -f core conftest.err conftest.$ac_objext \ 16972 conftest$ac_exeext 16973 if test "${ac_cv_search_com_err+set}" = set; then : 16974 break 16975 fi 16976 done 16977 if test "${ac_cv_search_com_err+set}" = set; then : 16978 16979 else 16980 ac_cv_search_com_err=no 16981 fi 16982 rm conftest.$ac_ext 16983 LIBS=$ac_func_search_save_LIBS 16984 fi 16985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_com_err" >&5 16986 $as_echo "$ac_cv_search_com_err" >&6; } 16987 ac_res=$ac_cv_search_com_err 16988 if test "$ac_res" != no; then : 16989 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16990 16991 fi 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; } 16999 if test "${ac_cv_search_initialize_asn1_error_table_r+set}" = set; then : 17000 $as_echo_n "(cached) " >&6 17001 else 17002 ac_func_search_save_LIBS=$LIBS 17003 cat 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 17010 extern "C" 17011 #endif 17012 char initialize_asn1_error_table_r (); 17013 int 17014 main () 17015 { 17016 return initialize_asn1_error_table_r (); 17017 ; 17018 return 0; 17019 } 17020 _ACEOF 17021 for 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 17030 fi 17031 rm -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 17035 fi 17036 done 17037 if test "${ac_cv_search_initialize_asn1_error_table_r+set}" = set; then : 17038 17039 else 17040 ac_cv_search_initialize_asn1_error_table_r=no 17041 fi 17042 rm conftest.$ac_ext 17043 LIBS=$ac_func_search_save_LIBS 17044 fi 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; } 17047 ac_res=$ac_cv_search_initialize_asn1_error_table_r 17048 if test "$ac_res" != no; then : 17049 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17050 17051 fi 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; } 17062 if test "${ac_cv_search___dn_expand+set}" = set; then : 17063 $as_echo_n "(cached) " >&6 17064 else 17065 ac_func_search_save_LIBS=$LIBS 17066 cat 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 17073 extern "C" 17074 #endif 17075 char __dn_expand (); 17076 int 17077 main () 17078 { 17079 return __dn_expand (); 17080 ; 17081 return 0; 17082 } 17083 _ACEOF 17084 for 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 17093 fi 17094 rm -f core conftest.err conftest.$ac_objext \ 17095 conftest$ac_exeext 17096 if test "${ac_cv_search___dn_expand+set}" = set; then : 17097 break 17098 fi 17099 done 17100 if test "${ac_cv_search___dn_expand+set}" = set; then : 17101 17102 else 17103 ac_cv_search___dn_expand=no 17104 fi 17105 rm conftest.$ac_ext 17106 LIBS=$ac_func_search_save_LIBS 17107 fi 17108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___dn_expand" >&5 17109 $as_echo "$ac_cv_search___dn_expand" >&6; } 17110 ac_res=$ac_cv_search___dn_expand 17111 if test "$ac_res" != no; then : 17112 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17113 17114 fi 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; } 17122 if test "${ac_cv_search_RC4+set}" = set; then : 17123 $as_echo_n "(cached) " >&6 17124 else 17125 ac_func_search_save_LIBS=$LIBS 17126 cat 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 17133 extern "C" 17134 #endif 17135 char RC4 (); 17136 int 17137 main () 17138 { 17139 return RC4 (); 17140 ; 17141 return 0; 17142 } 17143 _ACEOF 17144 for 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 17153 fi 17154 rm -f core conftest.err conftest.$ac_objext \ 17155 conftest$ac_exeext 17156 if test "${ac_cv_search_RC4+set}" = set; then : 17157 break 17158 fi 17159 done 17160 if test "${ac_cv_search_RC4+set}" = set; then : 17161 17162 else 17163 ac_cv_search_RC4=no 17164 fi 17165 rm conftest.$ac_ext 17166 LIBS=$ac_func_search_save_LIBS 17167 fi 17168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RC4" >&5 17169 $as_echo "$ac_cv_search_RC4" >&6; } 17170 ac_res=$ac_cv_search_RC4 17171 if test "$ac_res" != no; then : 17172 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17173 17174 fi 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; } 17182 if test "${ac_cv_search_crypt+set}" = set; then : 17183 $as_echo_n "(cached) " >&6 17184 else 17185 ac_func_search_save_LIBS=$LIBS 17186 cat 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 17193 extern "C" 17194 #endif 17195 char crypt (); 17196 int 17197 main () 17198 { 17199 return crypt (); 17200 ; 17201 return 0; 17202 } 17203 _ACEOF 17204 for 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 17213 fi 17214 rm -f core conftest.err conftest.$ac_objext \ 17215 conftest$ac_exeext 17216 if test "${ac_cv_search_crypt+set}" = set; then : 17217 break 17218 fi 17219 done 17220 if test "${ac_cv_search_crypt+set}" = set; then : 17221 17222 else 17223 ac_cv_search_crypt=no 17224 fi 17225 rm conftest.$ac_ext 17226 LIBS=$ac_func_search_save_LIBS 17227 fi 17228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 17229 $as_echo "$ac_cv_search_crypt" >&6; } 17230 ac_res=$ac_cv_search_crypt 17231 if test "$ac_res" != no; then : 17232 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17233 17234 fi 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; } 17243 if test "${ac_cv_search_roken_gethostbyaddr+set}" = set; then : 17244 $as_echo_n "(cached) " >&6 17245 else 17246 ac_func_search_save_LIBS=$LIBS 17247 cat 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 17254 extern "C" 17255 #endif 17256 char roken_gethostbyaddr (); 17257 int 17258 main () 17259 { 17260 return roken_gethostbyaddr (); 17261 ; 17262 return 0; 17263 } 17264 _ACEOF 17265 for 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 17274 fi 17275 rm -f core conftest.err conftest.$ac_objext \ 17276 conftest$ac_exeext 17277 if test "${ac_cv_search_roken_gethostbyaddr+set}" = set; then : 17278 break 17279 fi 17280 done 17281 if test "${ac_cv_search_roken_gethostbyaddr+set}" = set; then : 17282 17283 else 17284 ac_cv_search_roken_gethostbyaddr=no 17285 fi 17286 rm conftest.$ac_ext 17287 LIBS=$ac_func_search_save_LIBS 17288 fi 17289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_gethostbyaddr" >&5 17290 $as_echo "$ac_cv_search_roken_gethostbyaddr" >&6; } 17291 ac_res=$ac_cv_search_roken_gethostbyaddr 17292 if test "$ac_res" != no; then : 17293 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17294 17295 fi 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; } 17303 if test "${ac_cv_search_valid_enctype+set}" = set; then : 17304 $as_echo_n "(cached) " >&6 17305 else 17306 ac_func_search_save_LIBS=$LIBS 17307 cat 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 17314 extern "C" 17315 #endif 17316 char valid_enctype (); 17317 int 17318 main () 17319 { 17320 return valid_enctype (); 17321 ; 17322 return 0; 17323 } 17324 _ACEOF 17325 for 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 17334 fi 17335 rm -f core conftest.err conftest.$ac_objext \ 17336 conftest$ac_exeext 17337 if test "${ac_cv_search_valid_enctype+set}" = set; then : 17338 break 17339 fi 17340 done 17341 if test "${ac_cv_search_valid_enctype+set}" = set; then : 17342 17343 else 17344 ac_cv_search_valid_enctype=no 17345 fi 17346 rm conftest.$ac_ext 17347 LIBS=$ac_func_search_save_LIBS 17348 fi 17349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_valid_enctype" >&5 17350 $as_echo "$ac_cv_search_valid_enctype" >&6; } 17351 ac_res=$ac_cv_search_valid_enctype 17352 if test "$ac_res" != no; then : 17353 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17354 17355 fi 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; } 17370 if test "${ac_cv_search_compile+set}" = set; then : 17371 $as_echo_n "(cached) " >&6 17372 else 17373 ac_func_search_save_LIBS=$LIBS 17374 cat 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 17381 extern "C" 17382 #endif 17383 char compile (); 17384 int 17385 main () 17386 { 17387 return compile (); 17388 ; 17389 return 0; 17390 } 17391 _ACEOF 17392 for 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 17401 fi 17402 rm -f core conftest.err conftest.$ac_objext \ 17403 conftest$ac_exeext 17404 if test "${ac_cv_search_compile+set}" = set; then : 17405 break 17406 fi 17407 done 17408 if test "${ac_cv_search_compile+set}" = set; then : 17409 17410 else 17411 ac_cv_search_compile=no 17412 fi 17413 rm conftest.$ac_ext 17414 LIBS=$ac_func_search_save_LIBS 17415 fi 17416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_compile" >&5 17417 $as_echo "$ac_cv_search_compile" >&6; } 17418 ac_res=$ac_cv_search_compile 17419 if test "$ac_res" != no; then : 17420 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17421 17422 fi 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; } 17440 if test "${ac_cv_search_krb5_free_context+set}" = set; then : 17441 $as_echo_n "(cached) " >&6 17442 else 17443 ac_func_search_save_LIBS=$LIBS 17444 cat 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 17451 extern "C" 17452 #endif 17453 char krb5_free_context (); 17454 int 17455 main () 17456 { 17457 return krb5_free_context (); 17458 ; 17459 return 0; 17460 } 17461 _ACEOF 17462 for 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 17471 fi 17472 rm -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 17476 fi 17477 done 17478 if test "${ac_cv_search_krb5_free_context+set}" = set; then : 17479 17480 else 17481 ac_cv_search_krb5_free_context=no 17482 fi 17483 rm conftest.$ac_ext 17484 LIBS=$ac_func_search_save_LIBS 17485 fi 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; } 17488 ac_res=$ac_cv_search_krb5_free_context 17489 if test "$ac_res" != no; then : 17490 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17491 17492 fi 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; } 17508 if test "${ac_cv_search_gss_import_name+set}" = set; then : 17509 $as_echo_n "(cached) " >&6 17510 else 17511 ac_func_search_save_LIBS=$LIBS 17512 cat 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 17519 extern "C" 17520 #endif 17521 char gss_import_name (); 17522 int 17523 main () 17524 { 17525 return gss_import_name (); 17526 ; 17527 return 0; 17528 } 17529 _ACEOF 17530 for 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 17539 fi 17540 rm -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 17544 fi 17545 done 17546 if test "${ac_cv_search_gss_import_name+set}" = set; then : 17547 17548 else 17549 ac_cv_search_gss_import_name=no 17550 fi 17551 rm conftest.$ac_ext 17552 LIBS=$ac_func_search_save_LIBS 17553 fi 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; } 17556 ac_res=$ac_cv_search_gss_import_name 17557 if test "$ac_res" != no; then : 17558 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17559 17560 fi 17561 17562 fi 17563 17564 17565 17566 17567 # What remote shell transport should our client cvs default to using? 17568 17569 # Check whether --with-rsh was given. 17570 if test "${with_rsh+set}" = set; then : 17571 withval=$with_rsh; 17572 else 17573 with_rsh="ssh rsh" 17574 fi 17575 17576 17577 if 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 17581 elif test yes = "$with_rsh"; then 17582 # Make --with-rsh mean the same thing as --with-rsh=rsh 17583 with_rsh=rsh 17584 fi 17585 17586 if 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 17599 else 17600 # Search for a remote shell 17601 for ac_prog in $with_rsh 17602 do 17603 # Extract the first word of "$ac_prog", so it can be a program name with args. 17604 set 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; } 17607 if test "${ac_cv_prog_with_default_rsh+set}" = set; then : 17608 $as_echo_n "(cached) " >&6 17609 else 17610 if test -n "$with_default_rsh"; then 17611 ac_cv_prog_with_default_rsh="$with_default_rsh" # Let the user override the test. 17612 else 17613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17614 for as_dir in $PATH 17615 do 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 17624 done 17625 done 17626 IFS=$as_save_IFS 17627 17628 fi 17629 fi 17630 with_default_rsh=$ac_cv_prog_with_default_rsh 17631 if 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; } 17634 else 17635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17636 $as_echo "no" >&6; } 17637 fi 17638 17639 17640 test -n "$with_default_rsh" && break 17641 done 17642 test -n "$with_default_rsh" || with_default_rsh=""rsh"" 17643 17644 fi 17645 17646 17647 cat >>confdefs.h <<_ACEOF 17648 #define RSH_DFLT "$with_default_rsh" 17649 _ACEOF 17650 17651 RSH_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. 17660 if test "${with_editor+set}" = set; then : 17661 withval=$with_editor; 17662 else 17663 with_editor=yes 17664 fi 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. 17671 if test -n "$EDITOR" && test yes != $with_editor; then 17672 { EDITOR=; unset EDITOR;} 17673 fi 17674 17675 # Set the default when --with-editor wasn't supplied or when it was supplied 17676 # without an argument. 17677 if test yes = $with_editor; then 17678 with_editor="vim vi emacs nano pico edit" 17679 fi 17680 17681 if 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 17696 elif test no != "${with_editor}"; then 17697 # Search for an editor 17698 for ac_prog in $with_editor 17699 do 17700 # Extract the first word of "$ac_prog", so it can be a program name with args. 17701 set 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; } 17704 if test "${ac_cv_prog_EDITOR+set}" = set; then : 17705 $as_echo_n "(cached) " >&6 17706 else 17707 if test -n "$EDITOR"; then 17708 ac_cv_prog_EDITOR="$EDITOR" # Let the user override the test. 17709 else 17710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17711 for as_dir in $PATH 17712 do 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 17721 done 17722 done 17723 IFS=$as_save_IFS 17724 17725 fi 17726 fi 17727 EDITOR=$ac_cv_prog_EDITOR 17728 if test -n "$EDITOR"; then 17729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EDITOR" >&5 17730 $as_echo "$EDITOR" >&6; } 17731 else 17732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17733 $as_echo "no" >&6; } 17734 fi 17735 17736 17737 test -n "$EDITOR" && break 17738 done 17739 test -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 17747 else 17748 as_fn_error " 17749 CVS cannot be compiled without a default log message editor. 17750 Try \`configure --with-editor'." "$LINENO" 5 17751 fi 17752 17753 17754 cat >>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. 17764 if test "${with_hardcoded_pam_service_name+set}" = set; then : 17765 withval=$with_hardcoded_pam_service_name; 17766 else 17767 with_hardcoded_pam_service_name=cvs 17768 fi 17769 17770 17771 if 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 17776 else 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 17784 fi 17785 17786 17787 17788 17789 # Check whether --with-tmpdir was given. 17790 if test "${with_tmpdir+set}" = set; then : 17791 withval=$with_tmpdir; 17792 fi 17793 17794 17795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for temporary directory" >&5 17796 $as_echo_n "checking for temporary directory... " >&6; } 17797 if 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; } 17811 elif ! 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 17815 elif ! 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;} 17823 fi 17824 17825 17826 cat >>confdefs.h <<_ACEOF 17827 #define TMPDIR_DFLT "$with_tmpdir" 17828 _ACEOF 17829 17830 17831 17832 17833 17834 17835 # Check whether --with-umask was given. 17836 if test "${with_umask+set}" = set; then : 17837 withval=$with_umask; 17838 fi 17839 17840 17841 if test -z "$with_umask" || test yes = "$with_umask"; then 17842 with_umask=002 17843 elif test no = "$with_umask"; then 17844 with_umask=000 17845 fi 17846 17847 17848 cat >>confdefs.h <<_ACEOF 17849 #define UMASK_DFLT $with_umask 17850 _ACEOF 17851 17852 17853 17854 17855 # Check whether --with-cvs-admin-group was given. 17856 if test "${with_cvs_admin_group+set}" = set; then : 17857 withval=$with_cvs_admin_group; 17858 else 17859 with_cvs_admin_group=cvsadmin 17860 fi 17861 17862 17863 if test yes = "$with_cvs_admin_group"; then 17864 with_cvs_admin_group=cvsadmin 17865 fi 17866 if test no != "$with_cvs_admin_group"; then 17867 17868 cat >>confdefs.h <<_ACEOF 17869 #define CVS_ADMIN_GROUP "$with_cvs_admin_group" 17870 _ACEOF 17871 17872 fi 17873 17874 17875 # Check whether --enable-cvs-ndbm was given. 17876 if test "${enable_cvs_ndbm+set}" = set; then : 17877 enableval=$enable_cvs_ndbm; 17878 else 17879 enable_cvs_ndbm=yes 17880 fi 17881 17882 if test no != "$enable_cvs_ndbm"; then 17883 17884 $as_echo "#define MY_NDBM 1" >>confdefs.h 17885 17886 fi 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. 17899 if test "${enable_client+set}" = set; then : 17900 enableval=$enable_client; 17901 else 17902 enable_client=$ac_cv_search_connect 17903 fi 17904 17905 if test no != "$enable_client"; then 17906 17907 $as_echo "#define CLIENT_SUPPORT 1" >>confdefs.h 17908 17909 fi 17910 17911 17912 17913 # Check whether --enable-password-authenticated-client was given. 17914 if test "${enable_password_authenticated_client+set}" = set; then : 17915 enableval=$enable_password_authenticated_client; 17916 else 17917 enable_password_authenticated_client=$enable_client 17918 fi 17919 17920 17921 if 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 17932 fi 17933 17934 17935 17936 17937 # Check whether --enable-server was given. 17938 if test "${enable_server+set}" = set; then : 17939 enableval=$enable_server; 17940 else 17941 enable_server=$ac_cv_search_connect 17942 fi 17943 17944 17945 if 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; } 17952 if test "${ac_cv_search_crypt+set}" = set; then : 17953 $as_echo_n "(cached) " >&6 17954 else 17955 ac_func_search_save_LIBS=$LIBS 17956 cat 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 17963 extern "C" 17964 #endif 17965 char crypt (); 17966 int 17967 main () 17968 { 17969 return crypt (); 17970 ; 17971 return 0; 17972 } 17973 _ACEOF 17974 for 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 17983 fi 17984 rm -f core conftest.err conftest.$ac_objext \ 17985 conftest$ac_exeext 17986 if test "${ac_cv_search_crypt+set}" = set; then : 17987 break 17988 fi 17989 done 17990 if test "${ac_cv_search_crypt+set}" = set; then : 17991 17992 else 17993 ac_cv_search_crypt=no 17994 fi 17995 rm conftest.$ac_ext 17996 LIBS=$ac_func_search_save_LIBS 17997 fi 17998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 17999 $as_echo "$ac_cv_search_crypt" >&6; } 18000 ac_res=$ac_cv_search_crypt 18001 if 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 18009 fi 18010 18011 # Check whether --enable-server-flow-control was given. 18012 if 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 18016 else 18017 enable_server_flow_control=1M,2M 18018 fi 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 18050 cat >>confdefs.h <<_ACEOF 18051 #define SERVER_LO_WATER ($ccvs_lwm) 18052 _ACEOF 18053 18054 18055 cat >>confdefs.h <<_ACEOF 18056 #define SERVER_HI_WATER ($ccvs_hwm) 18057 _ACEOF 18058 18059 fi # enable_server_flow_control 18060 fi # enable_server 18061 18062 18063 18064 18065 # Check whether --enable-proxy was given. 18066 if test "${enable_proxy+set}" = set; then : 18067 enableval=$enable_proxy; 18068 else 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 18074 fi 18075 18076 18077 if 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 18088 fi 18089 18090 18091 18092 # Check whether --enable-pam was given. 18093 if test "${enable_pam+set}" = set; then : 18094 enableval=$enable_pam; 18095 else 18096 enable_pam=no 18097 18098 fi 18099 18100 18101 if 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" 18105 if 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 18111 fi 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" 18117 if 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 18123 fi 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; } 18136 if test "${ac_cv_lib_pam_pam_start+set}" = set; then : 18137 $as_echo_n "(cached) " >&6 18138 else 18139 ac_check_lib_save_LIBS=$LIBS 18140 LIBS="-lpam $LIBS" 18141 cat 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 18148 extern "C" 18149 #endif 18150 char pam_start (); 18151 int 18152 main () 18153 { 18154 return pam_start (); 18155 ; 18156 return 0; 18157 } 18158 _ACEOF 18159 if ac_fn_c_try_link "$LINENO"; then : 18160 ac_cv_lib_pam_pam_start=yes 18161 else 18162 ac_cv_lib_pam_pam_start=no 18163 fi 18164 rm -f core conftest.err conftest.$ac_objext \ 18165 conftest$ac_exeext conftest.$ac_ext 18166 LIBS=$ac_check_lib_save_LIBS 18167 fi 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; } 18170 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then : 18171 LIBS="${LIBS} -lpam" 18172 else 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 18177 fi 18178 18179 fi 18180 fi 18181 18182 18183 18184 18185 # Check whether --enable-case-sensitivity was given. 18186 if 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 18193 else 18194 enable_case_sensitivity=auto 18195 fi 18196 18197 18198 acx_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; } 18201 if test $enable_case_sensitivity = auto; then 18202 if test "${acx_cv_case_sensitive+set}" = set; then : 18203 $as_echo_n "(cached) " >&6 18204 else 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 18214 fi 18215 18216 enable_case_sensitivity=$acx_cv_case_sensitive 18217 acx_forced= 18218 fi 18219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_case_sensitivity$acx_forced" >&5 18220 $as_echo "$enable_case_sensitivity$acx_forced" >&6; } 18221 if 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 ;; 18229 esac 18230 18231 fi 18232 18233 18234 18235 18236 # Check whether --enable-encryption was given. 18237 if test "${enable_encryption+set}" = set; then : 18238 enableval=$enable_encryption; 18239 else 18240 enable_encryption=no 18241 fi 18242 18243 if 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 18254 fi 18255 18256 18257 18258 18259 # Check whether --enable-force-editor was given. 18260 if test "${enable_force_editor+set}" = set; then : 18261 enableval=$enable_force_editor; 18262 else 18263 enable_force_editor=no 18264 fi 18265 18266 18267 if test yes = "$enable_force_editor"; then 18268 18269 $as_echo "#define FORCE_USE_EDITOR 1" >>confdefs.h 18270 18271 fi 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. 18279 if test "${enable_lock_compatibility+set}" = set; then : 18280 enableval=$enable_lock_compatibility; 18281 else 18282 enable_lock_compatibility=yes 18283 fi 18284 18285 18286 if test x$enable_lock_compatibility = xyes; then 18287 18288 $as_echo "#define LOCK_COMPATIBILITY 1" >>confdefs.h 18289 18290 fi 18291 18292 18293 18294 18295 # Check whether --enable-rootcommit was given. 18296 if test "${enable_rootcommit+set}" = set; then : 18297 enableval=$enable_rootcommit; 18298 else 18299 enable_rootcommit=no 18300 fi 18301 18302 if test "$enable_rootcommit" = no; then 18303 18304 $as_echo "#define CVS_BADROOT 1" >>confdefs.h 18305 18306 fi 18307 18308 18309 # Check whether --enable-old-info-support was given. 18310 if test "${enable_old_info_support+set}" = set; then : 18311 enableval=$enable_old_info_support; 18312 else 18313 enable_old_info_format_support=yes 18314 fi 18315 18316 if test "$enable_old_info_format_support" = yes; then 18317 18318 $as_echo "#define SUPPORT_OLD_INFO_FMT_STRINGS 1" >>confdefs.h 18319 18320 fi 18321 18322 18323 18324 18325 # Check whether --enable-config-override was given. 18326 if test "${enable_config_override+set}" = set; then : 18327 enableval=$enable_config_override; 18328 else 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 18338 fi 18339 18340 18341 if test x"$enable_config_override" = xyes; then 18342 enable_config_override=/ 18343 fi 18344 18345 if 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 18364 cat >>confdefs.h <<_ACEOF 18365 #define ALLOW_CONFIG_OVERRIDE $arrayinit 18366 _ACEOF 18367 18368 fi 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; } 18379 if test "${ccvs_cv_sys_cygwin32+set}" = set; then : 18380 $as_echo_n "(cached) " >&6 18381 else 18382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18383 /* end confdefs.h. */ 18384 18385 int 18386 main () 18387 { 18388 return __CYGWIN32__; 18389 ; 18390 return 0; 18391 } 18392 _ACEOF 18393 if ac_fn_c_try_compile "$LINENO"; then : 18394 ccvs_cv_sys_cygwin32=yes 18395 else 18396 ccvs_cv_sys_cygwin32=no 18397 fi 18398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18399 fi 18400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ccvs_cv_sys_cygwin32" >&5 18401 $as_echo "$ccvs_cv_sys_cygwin32" >&6; } 18402 if 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 18415 fi 18416 18417 ac_config_files="$ac_config_files contrib/validate_repo" 18418 18419 ac_config_files="$ac_config_files contrib/clmerge" 18420 18421 ac_config_files="$ac_config_files contrib/cln_hist" 18422 18423 ac_config_files="$ac_config_files contrib/commit_prep" 18424 18425 ac_config_files="$ac_config_files contrib/cvs_acls" 18426 18427 ac_config_files="$ac_config_files contrib/log" 18428 18429 ac_config_files="$ac_config_files contrib/log_accum" 18430 18431 ac_config_files="$ac_config_files contrib/mfpipe" 18432 18433 ac_config_files="$ac_config_files contrib/pvcs2rcs" 18434 18435 ac_config_files="$ac_config_files contrib/rcs2log:contrib/rcs2log.sh" 18436 18437 ac_config_files="$ac_config_files contrib/rcslock" 18438 18439 ac_config_files="$ac_config_files contrib/sccs2rcs" 18440 18441 ac_config_files="$ac_config_files doc/mkman:doc/mkman.pl" 18442 18443 ac_config_files="$ac_config_files src/cvsbug" 18444 18445 18446 ac_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 18450 cat >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 18512 if 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 18522 fi 18523 rm -f confcache 18524 18525 test "x$prefix" = xNONE && prefix=$ac_default_prefix 18526 # Let make expand exec_prefix. 18527 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18528 18529 DEFS=-DHAVE_CONFIG_H 18530 18531 ac_libobjs= 18532 ac_ltlibobjs= 18533 for 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' 18541 done 18542 LIBOBJS=$ac_libobjs 18543 18544 LTLIBOBJS=$ac_ltlibobjs 18545 18546 18547 if test -n "$EXEEXT"; then 18548 am__EXEEXT_TRUE= 18549 am__EXEEXT_FALSE='#' 18550 else 18551 am__EXEEXT_TRUE='#' 18552 am__EXEEXT_FALSE= 18553 fi 18554 18555 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 18556 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. 18557 Usually this means the macro was only invoked conditionally." "$LINENO" 5 18558 fi 18559 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18560 as_fn_error "conditional \"AMDEP\" was never defined. 18561 Usually this means the macro was only invoked conditionally." "$LINENO" 5 18562 fi 18563 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18564 as_fn_error "conditional \"am__fastdepCC\" was never defined. 18565 Usually this means the macro was only invoked conditionally." "$LINENO" 5 18566 fi 18567 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18568 as_fn_error "conditional \"am__fastdepCC\" was never defined. 18569 Usually this means the macro was only invoked conditionally." "$LINENO" 5 18570 fi 18571 if 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. 18573 Usually this means the macro was only invoked conditionally." "$LINENO" 5 18574 fi 18575 18576 18577 : ${CONFIG_STATUS=./config.status} 18578 ac_write_fail=0 18579 ac_clean_files_save=$ac_clean_files 18580 ac_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;} 18583 as_write_fail=0 18584 cat >$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 18591 debug=false 18592 ac_cs_recheck=false 18593 ac_cs_silent=false 18594 18595 SHELL=\${CONFIG_SHELL-$SHELL} 18596 export SHELL 18597 _ASEOF 18598 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18599 ## -------------------- ## 18600 ## M4sh Initialization. ## 18601 ## -------------------- ## 18602 18603 # Be more Bourne compatible 18604 DUALCASE=1; export DUALCASE # for MKS sh 18605 if 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 18612 else 18613 case `(set -o) 2>/dev/null` in #( 18614 *posix*) : 18615 set -o posix ;; #( 18616 *) : 18617 ;; 18618 esac 18619 fi 18620 18621 18622 as_nl=' 18623 ' 18624 export as_nl 18625 # Printing a long string crashes Solaris 7 /usr/bin/printf. 18626 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18627 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18628 as_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. 18631 if 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 --' 18635 elif (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' 18638 else 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' 18658 fi 18659 18660 # The user is always right. 18661 if 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 } 18667 fi 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.) 18675 IFS=" "" $as_nl" 18676 18677 # Find who we are. Look in the path if we contain no directory separator. 18678 case $0 in #(( 18679 *[\\/]* ) as_myself=$0 ;; 18680 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18681 for as_dir in $PATH 18682 do 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 18687 IFS=$as_save_IFS 18688 18689 ;; 18690 esac 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. 18693 if test "x$as_myself" = x; then 18694 as_myself=$0 18695 fi 18696 if test ! -f "$as_myself"; then 18697 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18698 exit 1 18699 fi 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. 18705 for as_var in BASH_ENV ENV MAIL MAILPATH 18706 do eval test x\${$as_var+set} = xset \ 18707 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18708 done 18709 PS1='$ ' 18710 PS2='> ' 18711 PS4='+ ' 18712 18713 # NLS nuisances. 18714 LC_ALL=C 18715 export LC_ALL 18716 LANGUAGE=C 18717 export 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. 18728 as_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. 18743 as_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. 18751 as_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. 18761 as_fn_unset () 18762 { 18763 { eval $1=; unset $1;} 18764 } 18765 as_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. 18772 if (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 }' 18777 else 18778 as_fn_append () 18779 { 18780 eval $1=\$$1\$2 18781 } 18782 fi # 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. 18789 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18790 eval 'as_fn_arith () 18791 { 18792 as_val=$(( $* )) 18793 }' 18794 else 18795 as_fn_arith () 18796 { 18797 as_val=`expr "$@" || test $? -eq 1` 18798 } 18799 fi # as_fn_arith 18800 18801 18802 if expr a : '\(a\)' >/dev/null 2>&1 && 18803 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18804 as_expr=expr 18805 else 18806 as_expr=false 18807 fi 18808 18809 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18810 as_basename=basename 18811 else 18812 as_basename=false 18813 fi 18814 18815 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18816 as_dirname=dirname 18817 else 18818 as_dirname=false 18819 fi 18820 18821 as_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. 18841 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18842 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18843 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18844 as_cr_digits='0123456789' 18845 as_cr_alnum=$as_cr_Letters$as_cr_digits 18846 18847 ECHO_C= ECHO_N= ECHO_T= 18848 case `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';; 18858 esac 18859 18860 rm -f conf$$ conf$$.exe conf$$.file 18861 if test -d conf$$.dir; then 18862 rm -f conf$$.dir/conf$$.file 18863 else 18864 rm -f conf$$.dir 18865 mkdir conf$$.dir 2>/dev/null 18866 fi 18867 if (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 18881 else 18882 as_ln_s='cp -p' 18883 fi 18884 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18885 rmdir conf$$.dir 2>/dev/null 18886 18887 18888 # as_fn_mkdir_p 18889 # ------------- 18890 # Create "$as_dir" as a directory, including parents if necessary. 18891 as_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 18935 if mkdir -p . 2>/dev/null; then 18936 as_mkdir_p='mkdir -p "$as_dir"' 18937 else 18938 test -d ./-p && rmdir ./-p 18939 as_mkdir_p=false 18940 fi 18941 18942 if test -x / >/dev/null 2>&1; then 18943 as_test_x='test -x' 18944 else 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 ' 18962 fi 18963 as_executable_p=$as_test_x 18964 18965 # Sed expression to map a string onto a valid CPP name. 18966 as_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. 18969 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18970 18971 18972 exec 6>&1 18973 ## ----------------------------------- ## 18974 ## Main body of $CONFIG_STATUS script. ## 18975 ## ----------------------------------- ## 18976 _ASEOF 18977 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18978 18979 cat >>$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. 18983 ac_log=" 18984 This file was extended by Concurrent Versions System (CVS) $as_me 1.12.13, which was 18985 generated 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 18993 on `(hostname || uname -n) 2>/dev/null | sed 1q` 18994 " 18995 18996 _ACEOF 18997 18998 case $ac_config_files in *" 18999 "*) set x $ac_config_files; shift; ac_config_files=$*;; 19000 esac 19001 19002 case $ac_config_headers in *" 19003 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19004 esac 19005 19006 19007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19008 # Files that config.status was made for. 19009 config_files="$ac_config_files" 19010 config_headers="$ac_config_headers" 19011 config_commands="$ac_config_commands" 19012 19013 _ACEOF 19014 19015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19016 ac_cs_usage="\ 19017 \`$as_me' instantiates files and other configuration actions 19018 from templates according to the current configuration. Unless the files 19019 and actions are specified as TAGs, all are instantiated by default. 19020 19021 Usage: $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 19035 Configuration files: 19036 $config_files 19037 19038 Configuration headers: 19039 $config_headers 19040 19041 Configuration commands: 19042 $config_commands 19043 19044 Report bugs to <bug-cvs (at] nongnu.org>." 19045 19046 _ACEOF 19047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19048 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19049 ac_cs_version="\\ 19050 Concurrent Versions System (CVS) config.status 1.12.13 19051 configured by $0, generated by GNU Autoconf 2.65, 19052 with options \\"\$ac_cs_config\\" 19053 19054 Copyright (C) 2009 Free Software Foundation, Inc. 19055 This config.status script is free software; the Free Software Foundation 19056 gives unlimited permission to copy, distribute and modify it." 19057 19058 ac_pwd='$ac_pwd' 19059 srcdir='$srcdir' 19060 INSTALL='$INSTALL' 19061 MKDIR_P='$MKDIR_P' 19062 AWK='$AWK' 19063 test -n "\$AWK" || AWK=awk 19064 _ACEOF 19065 19066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19067 # The default lists apply if the user does not specify any file. 19068 ac_need_defaults=: 19069 while test $# != 0 19070 do 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' 19111 Try \`$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' 19120 Try \`$0 --help' for more information." ;; 19121 19122 *) as_fn_append ac_config_targets " $1" 19123 ac_need_defaults=false ;; 19124 19125 esac 19126 shift 19127 done 19128 19129 ac_configure_extra_args= 19130 19131 if $ac_cs_silent; then 19132 exec 6>/dev/null 19133 ac_configure_extra_args="$ac_configure_extra_args --silent" 19134 fi 19135 19136 _ACEOF 19137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19138 if \$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 "\$@" 19145 fi 19146 19147 _ACEOF 19148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19149 exec 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 19159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19160 # 19161 # INIT-COMMANDS 19162 # 19163 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19164 19165 _ACEOF 19166 19167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19168 19169 # Handling of arguments. 19170 for ac_config_target in $ac_config_targets 19171 do 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 19205 done 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. 19212 if $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 19216 fi 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'. 19246 if test -n "$CONFIG_FILES"; then 19247 19248 if $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= 19256 else 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 ":" }' 19265 fi 19266 ac_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. 19270 if test "x$ac_cr" = x; then 19271 eval ac_cr=\$\'\\r\' 19272 fi 19273 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19274 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19275 ac_cs_awk_cr='\r' 19276 else 19277 ac_cs_awk_cr=$ac_cr 19278 fi 19279 19280 echo '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 19293 rm -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 19301 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 19302 ac_delim='%!_!# ' 19303 for 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 19315 done 19316 rm -f conf$$subs.sh 19317 19318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19319 cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 19320 _ACEOF 19321 sed -n ' 19322 h 19323 s/^/S["/; s/!.*/"]=/ 19324 p 19325 g 19326 s/^[^!]*!// 19327 :repl 19328 t repl 19329 s/'"$ac_delim"'$// 19330 t delim 19331 :nl 19332 h 19333 s/\(.\{148\}\)..*/\1/ 19334 t more1 19335 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19336 p 19337 n 19338 b repl 19339 :more1 19340 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19341 p 19342 g 19343 s/.\{148\}// 19344 t nl 19345 :delim 19346 h 19347 s/\(.\{148\}\)..*/\1/ 19348 t more2 19349 s/["\\]/\\&/g; s/^/"/; s/$/"/ 19350 p 19351 b 19352 :more2 19353 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19354 p 19355 g 19356 s/.\{148\}// 19357 t delim 19358 ' <conf$$subs.awk | sed ' 19359 /^[^""]/{ 19360 N 19361 s/\n// 19362 } 19363 ' >>$CONFIG_STATUS || ac_write_fail=1 19364 rm -f conf$$subs.awk 19365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19366 _ACAWK 19367 cat >>"\$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 19400 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19401 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19402 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19403 else 19404 cat 19405 fi < "$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). 19413 if test "x$srcdir" = x.; then 19414 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 19415 s/:*\$(srcdir):*/:/ 19416 s/:*\${srcdir}:*/:/ 19417 s/:*@srcdir@:*/:/ 19418 s/^\([^=]*=[ ]*\):*/\1/ 19419 s/:*$// 19420 s/^[^=]*=[ ]*$// 19421 }' 19422 fi 19423 19424 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19425 fi # 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'. 19430 if test -n "$CONFIG_HEADERS"; then 19431 cat >"$tmp/defines.awk" <<\_ACAWK || 19432 BEGIN { 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. 19441 ac_delim='%!_!# ' 19442 for 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 19451 done 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 19457 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19458 sed -n ' 19459 s/.\{148\}/&'"$ac_delim"'/g 19460 t rset 19461 :rset 19462 s/^[ ]*#[ ]*define[ ][ ]*/ / 19463 t def 19464 d 19465 :def 19466 s/\\$// 19467 t bsnl 19468 s/["\\]/\\&/g 19469 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19470 D["\1"]=" \3"/p 19471 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19472 d 19473 :bsnl 19474 s/["\\]/\\&/g 19475 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19476 D["\1"]=" \3\\\\\\n"\\/p 19477 t cont 19478 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19479 t cont 19480 d 19481 :cont 19482 n 19483 s/.\{148\}/&'"$ac_delim"'/g 19484 t clear 19485 :clear 19486 s/\\$// 19487 t bsnlc 19488 s/["\\]/\\&/g; s/^/"/; s/$/"/p 19489 d 19490 :bsnlc 19491 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19492 b cont 19493 ' <confdefs.h | sed ' 19494 s/'"$ac_delim"'/"\\\ 19495 "/g' >>$CONFIG_STATUS || ac_write_fail=1 19496 19497 cat >>$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 19531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19532 as_fn_error "could not setup config headers machinery" "$LINENO" 5 19533 fi # test -n "$CONFIG_HEADERS" 19534 19535 19536 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19537 shift 19538 for ac_tag 19539 do 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 19631 case "$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 ;; 19641 esac 19642 ac_abs_top_builddir=$ac_pwd 19643 ac_abs_builddir=$ac_pwd$ac_dir_suffix 19644 # for backward compatibility: 19645 ac_top_builddir=$ac_top_build_prefix 19646 19647 case $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 ;; 19660 esac 19661 ac_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 19681 cat >>$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. 19684 ac_datarootdir_hack=; ac_datarootdir_seen= 19685 ac_sed_dataroot=' 19686 /datarootdir/ { 19687 p 19688 q 19689 } 19690 /@datadir@/p 19691 /@docdir@/p 19692 /@infodir@/p 19693 /@localedir@/p 19694 /@mandir@/p' 19695 case `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 19701 cat >>$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' ;; 19709 esac 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? 19715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19716 ac_sed_extra="$ac_vpsub 19717 $extrasub 19718 _ACEOF 19719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19720 :t 19721 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19722 s|@configure_input@|$ac_sed_conf_input|;t t 19723 s&@top_builddir@&$ac_top_builddir_sub&;t t 19724 s&@top_build_prefix@&$ac_top_build_prefix&;t t 19725 s&@srcdir@&$ac_srcdir&;t t 19726 s&@abs_srcdir@&$ac_abs_srcdir&;t t 19727 s&@top_srcdir@&$ac_top_srcdir&;t t 19728 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19729 s&@builddir@&$ac_builddir&;t t 19730 s&@abs_builddir@&$ac_abs_builddir&;t t 19731 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19732 s&@INSTALL@&$ac_INSTALL&;t t 19733 s&@MKDIR_P@&$ac_MKDIR_P&;t t 19734 $ac_datarootdir_hack 19735 " 19736 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | 19737 if $ac_cs_awk_getline; then 19738 $AWK -f "$tmp/subs.awk" 19739 else 19740 $AWK -f "$tmp/subs.awk" | $SHELL 19741 fi >$tmp/out \ 19742 || as_fn_error "could not create $ac_file" "$LINENO" 5 19743 19744 test -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' 19748 which 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' 19750 which 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 19785 for _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 19792 done 19793 echo "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 19936 done # for ac_tag 19937 19938 19939 as_fn_exit 0 19940 _ACEOF 19941 ac_clean_files=$ac_clean_files_save 19942 19943 test $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. 19955 if 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 $? 19966 fi 19967 if 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;} 19970 fi 19971 19972 19973 19974 19975 # Report the state of this version of CVS if this is from dev. 19976 19977