configure revision 1.102
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libnbcompat noversion. 4# 5# Report bugs to <lib-bug-people@NetBSD.org>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204else 205 as_have_required=no 206fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211as_found=false 212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227fi 228fi 229 done;; 230 esac 231 as_found=false 232done 233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236fi; } 237IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and 270$0: lib-bug-people@NetBSD.org about your system, including 271$0: any error possibly output before this message. Then 272$0: install a modern shell, or manually run the script 273$0: under such a shell if you do have one." 274 fi 275 exit 1 276fi 277fi 278fi 279SHELL=${CONFIG_SHELL-/bin/sh} 280export SHELL 281# Unset more variables known to interfere with behavior of common tools. 282CLICOLOR_FORCE= GREP_OPTIONS= 283unset CLICOLOR_FORCE GREP_OPTIONS 284 285## --------------------- ## 286## M4sh Shell Functions. ## 287## --------------------- ## 288# as_fn_unset VAR 289# --------------- 290# Portably unset VAR. 291as_fn_unset () 292{ 293 { eval $1=; unset $1;} 294} 295as_unset=as_fn_unset 296 297# as_fn_set_status STATUS 298# ----------------------- 299# Set $? to STATUS, without forking. 300as_fn_set_status () 301{ 302 return $1 303} # as_fn_set_status 304 305# as_fn_exit STATUS 306# ----------------- 307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 308as_fn_exit () 309{ 310 set +e 311 as_fn_set_status $1 312 exit $1 313} # as_fn_exit 314 315# as_fn_mkdir_p 316# ------------- 317# Create "$as_dir" as a directory, including parents if necessary. 318as_fn_mkdir_p () 319{ 320 321 case $as_dir in #( 322 -*) as_dir=./$as_dir;; 323 esac 324 test -d "$as_dir" || eval $as_mkdir_p || { 325 as_dirs= 326 while :; do 327 case $as_dir in #( 328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 329 *) as_qdir=$as_dir;; 330 esac 331 as_dirs="'$as_qdir' $as_dirs" 332 as_dir=`$as_dirname -- "$as_dir" || 333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 334 X"$as_dir" : 'X\(//\)[^/]' \| \ 335 X"$as_dir" : 'X\(//\)$' \| \ 336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 337$as_echo X"$as_dir" | 338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 339 s//\1/ 340 q 341 } 342 /^X\(\/\/\)[^/].*/{ 343 s//\1/ 344 q 345 } 346 /^X\(\/\/\)$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\).*/{ 351 s//\1/ 352 q 353 } 354 s/.*/./; q'` 355 test -d "$as_dir" && break 356 done 357 test -z "$as_dirs" || eval "mkdir $as_dirs" 358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 359 360 361} # as_fn_mkdir_p 362 363# as_fn_executable_p FILE 364# ----------------------- 365# Test if FILE is an executable regular file. 366as_fn_executable_p () 367{ 368 test -f "$1" && test -x "$1" 369} # as_fn_executable_p 370# as_fn_append VAR VALUE 371# ---------------------- 372# Append the text in VALUE to the end of the definition contained in VAR. Take 373# advantage of any shell optimizations that allow amortized linear growth over 374# repeated appends, instead of the typical quadratic growth present in naive 375# implementations. 376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 377 eval 'as_fn_append () 378 { 379 eval $1+=\$2 380 }' 381else 382 as_fn_append () 383 { 384 eval $1=\$$1\$2 385 } 386fi # as_fn_append 387 388# as_fn_arith ARG... 389# ------------------ 390# Perform arithmetic evaluation on the ARGs, and store the result in the 391# global $as_val. Take advantage of shells that can avoid forks. The arguments 392# must be portable across $(()) and expr. 393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 394 eval 'as_fn_arith () 395 { 396 as_val=$(( $* )) 397 }' 398else 399 as_fn_arith () 400 { 401 as_val=`expr "$@" || test $? -eq 1` 402 } 403fi # as_fn_arith 404 405 406# as_fn_error STATUS ERROR [LINENO LOG_FD] 407# ---------------------------------------- 408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 410# script with STATUS, using 1 if that was 0. 411as_fn_error () 412{ 413 as_status=$1; test $as_status -eq 0 && as_status=1 414 if test "$4"; then 415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 417 fi 418 $as_echo "$as_me: error: $2" >&2 419 as_fn_exit $as_status 420} # as_fn_error 421 422if expr a : '\(a\)' >/dev/null 2>&1 && 423 test "X`expr 00001 : '.*\(...\)'`" = X001; then 424 as_expr=expr 425else 426 as_expr=false 427fi 428 429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 430 as_basename=basename 431else 432 as_basename=false 433fi 434 435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 436 as_dirname=dirname 437else 438 as_dirname=false 439fi 440 441as_me=`$as_basename -- "$0" || 442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 443 X"$0" : 'X\(//\)$' \| \ 444 X"$0" : 'X\(/\)' \| . 2>/dev/null || 445$as_echo X/"$0" | 446 sed '/^.*\/\([^/][^/]*\)\/*$/{ 447 s//\1/ 448 q 449 } 450 /^X\/\(\/\/\)$/{ 451 s//\1/ 452 q 453 } 454 /^X\/\(\/\).*/{ 455 s//\1/ 456 q 457 } 458 s/.*/./; q'` 459 460# Avoid depending upon Character Ranges. 461as_cr_letters='abcdefghijklmnopqrstuvwxyz' 462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 463as_cr_Letters=$as_cr_letters$as_cr_LETTERS 464as_cr_digits='0123456789' 465as_cr_alnum=$as_cr_Letters$as_cr_digits 466 467 468 as_lineno_1=$LINENO as_lineno_1a=$LINENO 469 as_lineno_2=$LINENO as_lineno_2a=$LINENO 470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 473 sed -n ' 474 p 475 /[$]LINENO/= 476 ' <$as_myself | 477 sed ' 478 s/[$]LINENO.*/&-/ 479 t lineno 480 b 481 :lineno 482 N 483 :loop 484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 485 t loop 486 s/-\n.*// 487 ' >$as_me.lineno && 488 chmod +x "$as_me.lineno" || 489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 490 491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 492 # already done that, so ensure we don't try to do so again and fall 493 # in an infinite loop. This has already happened in practice. 494 _as_can_reexec=no; export _as_can_reexec 495 # Don't try to exec as it changes $[0], causing all sort of problems 496 # (the dirname of $[0] is not the place where we might find the 497 # original and so on. Autoconf is especially sensitive to this). 498 . "./$as_me.lineno" 499 # Exit status is that of the last command. 500 exit 501} 502 503ECHO_C= ECHO_N= ECHO_T= 504case `echo -n x` in #((((( 505-n*) 506 case `echo 'xy\c'` in 507 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 508 xy) ECHO_C='\c';; 509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 510 ECHO_T=' ';; 511 esac;; 512*) 513 ECHO_N='-n';; 514esac 515 516rm -f conf$$ conf$$.exe conf$$.file 517if test -d conf$$.dir; then 518 rm -f conf$$.dir/conf$$.file 519else 520 rm -f conf$$.dir 521 mkdir conf$$.dir 2>/dev/null 522fi 523if (echo >conf$$.file) 2>/dev/null; then 524 if ln -s conf$$.file conf$$ 2>/dev/null; then 525 as_ln_s='ln -s' 526 # ... but there are two gotchas: 527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 529 # In both cases, we have to default to `cp -pR'. 530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 531 as_ln_s='cp -pR' 532 elif ln conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s=ln 534 else 535 as_ln_s='cp -pR' 536 fi 537else 538 as_ln_s='cp -pR' 539fi 540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 541rmdir conf$$.dir 2>/dev/null 542 543if mkdir -p . 2>/dev/null; then 544 as_mkdir_p='mkdir -p "$as_dir"' 545else 546 test -d ./-p && rmdir ./-p 547 as_mkdir_p=false 548fi 549 550as_test_x='test -x' 551as_executable_p=as_fn_executable_p 552 553# Sed expression to map a string onto a valid CPP name. 554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 555 556# Sed expression to map a string onto a valid variable name. 557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 558 559 560test -n "$DJDIR" || exec 7<&0 </dev/null 561exec 6>&1 562 563# Name of the host. 564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 565# so uname gets run too. 566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 567 568# 569# Initializations. 570# 571ac_default_prefix=/usr/local 572ac_clean_files= 573ac_config_libobj_dir=. 574LIBOBJS= 575cross_compiling=no 576subdirs= 577MFLAGS= 578MAKEFLAGS= 579 580# Identity of this package. 581PACKAGE_NAME='libnbcompat' 582PACKAGE_TARNAME='libnbcompat' 583PACKAGE_VERSION='noversion' 584PACKAGE_STRING='libnbcompat noversion' 585PACKAGE_BUGREPORT='lib-bug-people@NetBSD.org' 586PACKAGE_URL='' 587 588# Factoring default headers for most tests. 589ac_includes_default="\ 590#include <stdio.h> 591#ifdef HAVE_SYS_TYPES_H 592# include <sys/types.h> 593#endif 594#ifdef HAVE_SYS_STAT_H 595# include <sys/stat.h> 596#endif 597#ifdef STDC_HEADERS 598# include <stdlib.h> 599# include <stddef.h> 600#else 601# ifdef HAVE_STDLIB_H 602# include <stdlib.h> 603# endif 604#endif 605#ifdef HAVE_STRING_H 606# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 607# include <memory.h> 608# endif 609# include <string.h> 610#endif 611#ifdef HAVE_STRINGS_H 612# include <strings.h> 613#endif 614#ifdef HAVE_INTTYPES_H 615# include <inttypes.h> 616#endif 617#ifdef HAVE_STDINT_H 618# include <stdint.h> 619#endif 620#ifdef HAVE_UNISTD_H 621# include <unistd.h> 622#endif" 623 624ac_subst_vars='LTLIBOBJS 625LIBOBJS 626CC_WNO_STRINGOP_TRUNCATION 627CC_WNO_STRINGOP_OVERFLOW 628CC_WNO_MAYBE_UNINITIALIZED 629CC_WNO_FORMAT_TRUNCATION 630CC_NO_CPP_PRECOMP 631ALLOCA 632BSHELL 633EGREP 634GREP 635CPP 636OBJEXT 637EXEEXT 638ac_ct_CC 639CPPFLAGS 640LDFLAGS 641CFLAGS 642CC 643target_alias 644host_alias 645build_alias 646LIBS 647ECHO_T 648ECHO_N 649ECHO_C 650DEFS 651mandir 652localedir 653libdir 654psdir 655pdfdir 656dvidir 657htmldir 658infodir 659docdir 660oldincludedir 661includedir 662localstatedir 663sharedstatedir 664sysconfdir 665datadir 666datarootdir 667libexecdir 668sbindir 669bindir 670program_transform_name 671prefix 672exec_prefix 673PACKAGE_URL 674PACKAGE_BUGREPORT 675PACKAGE_STRING 676PACKAGE_VERSION 677PACKAGE_TARNAME 678PACKAGE_NAME 679PATH_SEPARATOR 680SHELL' 681ac_subst_files='' 682ac_user_opts=' 683enable_option_checking 684' 685 ac_precious_vars='build_alias 686host_alias 687target_alias 688CC 689CFLAGS 690LDFLAGS 691LIBS 692CPPFLAGS 693CPP' 694 695 696# Initialize some variables set by options. 697ac_init_help= 698ac_init_version=false 699ac_unrecognized_opts= 700ac_unrecognized_sep= 701# The variables have the same names as the options, with 702# dashes changed to underlines. 703cache_file=/dev/null 704exec_prefix=NONE 705no_create= 706no_recursion= 707prefix=NONE 708program_prefix=NONE 709program_suffix=NONE 710program_transform_name=s,x,x, 711silent= 712site= 713srcdir= 714verbose= 715x_includes=NONE 716x_libraries=NONE 717 718# Installation directory options. 719# These are left unexpanded so users can "make install exec_prefix=/foo" 720# and all the variables that are supposed to be based on exec_prefix 721# by default will actually change. 722# Use braces instead of parens because sh, perl, etc. also accept them. 723# (The list follows the same order as the GNU Coding Standards.) 724bindir='${exec_prefix}/bin' 725sbindir='${exec_prefix}/sbin' 726libexecdir='${exec_prefix}/libexec' 727datarootdir='${prefix}/share' 728datadir='${datarootdir}' 729sysconfdir='${prefix}/etc' 730sharedstatedir='${prefix}/com' 731localstatedir='${prefix}/var' 732includedir='${prefix}/include' 733oldincludedir='/usr/include' 734docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 735infodir='${datarootdir}/info' 736htmldir='${docdir}' 737dvidir='${docdir}' 738pdfdir='${docdir}' 739psdir='${docdir}' 740libdir='${exec_prefix}/lib' 741localedir='${datarootdir}/locale' 742mandir='${datarootdir}/man' 743 744ac_prev= 745ac_dashdash= 746for ac_option 747do 748 # If the previous option needs an argument, assign it. 749 if test -n "$ac_prev"; then 750 eval $ac_prev=\$ac_option 751 ac_prev= 752 continue 753 fi 754 755 case $ac_option in 756 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 757 *=) ac_optarg= ;; 758 *) ac_optarg=yes ;; 759 esac 760 761 # Accept the important Cygnus configure options, so we can diagnose typos. 762 763 case $ac_dashdash$ac_option in 764 --) 765 ac_dashdash=yes ;; 766 767 -bindir | --bindir | --bindi | --bind | --bin | --bi) 768 ac_prev=bindir ;; 769 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 770 bindir=$ac_optarg ;; 771 772 -build | --build | --buil | --bui | --bu) 773 ac_prev=build_alias ;; 774 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 775 build_alias=$ac_optarg ;; 776 777 -cache-file | --cache-file | --cache-fil | --cache-fi \ 778 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 779 ac_prev=cache_file ;; 780 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 781 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 782 cache_file=$ac_optarg ;; 783 784 --config-cache | -C) 785 cache_file=config.cache ;; 786 787 -datadir | --datadir | --datadi | --datad) 788 ac_prev=datadir ;; 789 -datadir=* | --datadir=* | --datadi=* | --datad=*) 790 datadir=$ac_optarg ;; 791 792 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 793 | --dataroo | --dataro | --datar) 794 ac_prev=datarootdir ;; 795 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 796 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 797 datarootdir=$ac_optarg ;; 798 799 -disable-* | --disable-*) 800 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 801 # Reject names that are not valid shell variable names. 802 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 803 as_fn_error $? "invalid feature name: $ac_useropt" 804 ac_useropt_orig=$ac_useropt 805 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 806 case $ac_user_opts in 807 *" 808"enable_$ac_useropt" 809"*) ;; 810 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 811 ac_unrecognized_sep=', ';; 812 esac 813 eval enable_$ac_useropt=no ;; 814 815 -docdir | --docdir | --docdi | --doc | --do) 816 ac_prev=docdir ;; 817 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 818 docdir=$ac_optarg ;; 819 820 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 821 ac_prev=dvidir ;; 822 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 823 dvidir=$ac_optarg ;; 824 825 -enable-* | --enable-*) 826 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 827 # Reject names that are not valid shell variable names. 828 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 829 as_fn_error $? "invalid feature name: $ac_useropt" 830 ac_useropt_orig=$ac_useropt 831 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 832 case $ac_user_opts in 833 *" 834"enable_$ac_useropt" 835"*) ;; 836 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 837 ac_unrecognized_sep=', ';; 838 esac 839 eval enable_$ac_useropt=\$ac_optarg ;; 840 841 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 842 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 843 | --exec | --exe | --ex) 844 ac_prev=exec_prefix ;; 845 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 846 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 847 | --exec=* | --exe=* | --ex=*) 848 exec_prefix=$ac_optarg ;; 849 850 -gas | --gas | --ga | --g) 851 # Obsolete; use --with-gas. 852 with_gas=yes ;; 853 854 -help | --help | --hel | --he | -h) 855 ac_init_help=long ;; 856 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 857 ac_init_help=recursive ;; 858 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 859 ac_init_help=short ;; 860 861 -host | --host | --hos | --ho) 862 ac_prev=host_alias ;; 863 -host=* | --host=* | --hos=* | --ho=*) 864 host_alias=$ac_optarg ;; 865 866 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 867 ac_prev=htmldir ;; 868 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 869 | --ht=*) 870 htmldir=$ac_optarg ;; 871 872 -includedir | --includedir | --includedi | --included | --include \ 873 | --includ | --inclu | --incl | --inc) 874 ac_prev=includedir ;; 875 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 876 | --includ=* | --inclu=* | --incl=* | --inc=*) 877 includedir=$ac_optarg ;; 878 879 -infodir | --infodir | --infodi | --infod | --info | --inf) 880 ac_prev=infodir ;; 881 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 882 infodir=$ac_optarg ;; 883 884 -libdir | --libdir | --libdi | --libd) 885 ac_prev=libdir ;; 886 -libdir=* | --libdir=* | --libdi=* | --libd=*) 887 libdir=$ac_optarg ;; 888 889 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 890 | --libexe | --libex | --libe) 891 ac_prev=libexecdir ;; 892 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 893 | --libexe=* | --libex=* | --libe=*) 894 libexecdir=$ac_optarg ;; 895 896 -localedir | --localedir | --localedi | --localed | --locale) 897 ac_prev=localedir ;; 898 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 899 localedir=$ac_optarg ;; 900 901 -localstatedir | --localstatedir | --localstatedi | --localstated \ 902 | --localstate | --localstat | --localsta | --localst | --locals) 903 ac_prev=localstatedir ;; 904 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 905 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 906 localstatedir=$ac_optarg ;; 907 908 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 909 ac_prev=mandir ;; 910 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 911 mandir=$ac_optarg ;; 912 913 -nfp | --nfp | --nf) 914 # Obsolete; use --without-fp. 915 with_fp=no ;; 916 917 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 918 | --no-cr | --no-c | -n) 919 no_create=yes ;; 920 921 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 922 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 923 no_recursion=yes ;; 924 925 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 926 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 927 | --oldin | --oldi | --old | --ol | --o) 928 ac_prev=oldincludedir ;; 929 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 930 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 931 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 932 oldincludedir=$ac_optarg ;; 933 934 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 935 ac_prev=prefix ;; 936 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 937 prefix=$ac_optarg ;; 938 939 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 940 | --program-pre | --program-pr | --program-p) 941 ac_prev=program_prefix ;; 942 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 943 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 944 program_prefix=$ac_optarg ;; 945 946 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 947 | --program-suf | --program-su | --program-s) 948 ac_prev=program_suffix ;; 949 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 950 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 951 program_suffix=$ac_optarg ;; 952 953 -program-transform-name | --program-transform-name \ 954 | --program-transform-nam | --program-transform-na \ 955 | --program-transform-n | --program-transform- \ 956 | --program-transform | --program-transfor \ 957 | --program-transfo | --program-transf \ 958 | --program-trans | --program-tran \ 959 | --progr-tra | --program-tr | --program-t) 960 ac_prev=program_transform_name ;; 961 -program-transform-name=* | --program-transform-name=* \ 962 | --program-transform-nam=* | --program-transform-na=* \ 963 | --program-transform-n=* | --program-transform-=* \ 964 | --program-transform=* | --program-transfor=* \ 965 | --program-transfo=* | --program-transf=* \ 966 | --program-trans=* | --program-tran=* \ 967 | --progr-tra=* | --program-tr=* | --program-t=*) 968 program_transform_name=$ac_optarg ;; 969 970 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 971 ac_prev=pdfdir ;; 972 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 973 pdfdir=$ac_optarg ;; 974 975 -psdir | --psdir | --psdi | --psd | --ps) 976 ac_prev=psdir ;; 977 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 978 psdir=$ac_optarg ;; 979 980 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 981 | -silent | --silent | --silen | --sile | --sil) 982 silent=yes ;; 983 984 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 985 ac_prev=sbindir ;; 986 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 987 | --sbi=* | --sb=*) 988 sbindir=$ac_optarg ;; 989 990 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 991 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 992 | --sharedst | --shareds | --shared | --share | --shar \ 993 | --sha | --sh) 994 ac_prev=sharedstatedir ;; 995 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 996 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 997 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 998 | --sha=* | --sh=*) 999 sharedstatedir=$ac_optarg ;; 1000 1001 -site | --site | --sit) 1002 ac_prev=site ;; 1003 -site=* | --site=* | --sit=*) 1004 site=$ac_optarg ;; 1005 1006 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1007 ac_prev=srcdir ;; 1008 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1009 srcdir=$ac_optarg ;; 1010 1011 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1012 | --syscon | --sysco | --sysc | --sys | --sy) 1013 ac_prev=sysconfdir ;; 1014 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1015 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1016 sysconfdir=$ac_optarg ;; 1017 1018 -target | --target | --targe | --targ | --tar | --ta | --t) 1019 ac_prev=target_alias ;; 1020 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1021 target_alias=$ac_optarg ;; 1022 1023 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1024 verbose=yes ;; 1025 1026 -version | --version | --versio | --versi | --vers | -V) 1027 ac_init_version=: ;; 1028 1029 -with-* | --with-*) 1030 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1031 # Reject names that are not valid shell variable names. 1032 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1033 as_fn_error $? "invalid package name: $ac_useropt" 1034 ac_useropt_orig=$ac_useropt 1035 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1036 case $ac_user_opts in 1037 *" 1038"with_$ac_useropt" 1039"*) ;; 1040 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1041 ac_unrecognized_sep=', ';; 1042 esac 1043 eval with_$ac_useropt=\$ac_optarg ;; 1044 1045 -without-* | --without-*) 1046 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1047 # Reject names that are not valid shell variable names. 1048 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1049 as_fn_error $? "invalid package name: $ac_useropt" 1050 ac_useropt_orig=$ac_useropt 1051 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1052 case $ac_user_opts in 1053 *" 1054"with_$ac_useropt" 1055"*) ;; 1056 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1057 ac_unrecognized_sep=', ';; 1058 esac 1059 eval with_$ac_useropt=no ;; 1060 1061 --x) 1062 # Obsolete; use --with-x. 1063 with_x=yes ;; 1064 1065 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1066 | --x-incl | --x-inc | --x-in | --x-i) 1067 ac_prev=x_includes ;; 1068 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1069 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1070 x_includes=$ac_optarg ;; 1071 1072 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1073 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1074 ac_prev=x_libraries ;; 1075 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1076 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1077 x_libraries=$ac_optarg ;; 1078 1079 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1080Try \`$0 --help' for more information" 1081 ;; 1082 1083 *=*) 1084 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1085 # Reject names that are not valid shell variable names. 1086 case $ac_envvar in #( 1087 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1088 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1089 esac 1090 eval $ac_envvar=\$ac_optarg 1091 export $ac_envvar ;; 1092 1093 *) 1094 # FIXME: should be removed in autoconf 3.0. 1095 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1096 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1097 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1098 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1099 ;; 1100 1101 esac 1102done 1103 1104if test -n "$ac_prev"; then 1105 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1106 as_fn_error $? "missing argument to $ac_option" 1107fi 1108 1109if test -n "$ac_unrecognized_opts"; then 1110 case $enable_option_checking in 1111 no) ;; 1112 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1113 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1114 esac 1115fi 1116 1117# Check all directory arguments for consistency. 1118for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1119 datadir sysconfdir sharedstatedir localstatedir includedir \ 1120 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1121 libdir localedir mandir 1122do 1123 eval ac_val=\$$ac_var 1124 # Remove trailing slashes. 1125 case $ac_val in 1126 */ ) 1127 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1128 eval $ac_var=\$ac_val;; 1129 esac 1130 # Be sure to have absolute directory names. 1131 case $ac_val in 1132 [\\/$]* | ?:[\\/]* ) continue;; 1133 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1134 esac 1135 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1136done 1137 1138# There might be people who depend on the old broken behavior: `$host' 1139# used to hold the argument of --host etc. 1140# FIXME: To remove some day. 1141build=$build_alias 1142host=$host_alias 1143target=$target_alias 1144 1145# FIXME: To remove some day. 1146if test "x$host_alias" != x; then 1147 if test "x$build_alias" = x; then 1148 cross_compiling=maybe 1149 elif test "x$build_alias" != "x$host_alias"; then 1150 cross_compiling=yes 1151 fi 1152fi 1153 1154ac_tool_prefix= 1155test -n "$host_alias" && ac_tool_prefix=$host_alias- 1156 1157test "$silent" = yes && exec 6>/dev/null 1158 1159 1160ac_pwd=`pwd` && test -n "$ac_pwd" && 1161ac_ls_di=`ls -di .` && 1162ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1163 as_fn_error $? "working directory cannot be determined" 1164test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1165 as_fn_error $? "pwd does not report name of working directory" 1166 1167 1168# Find the source files, if location was not specified. 1169if test -z "$srcdir"; then 1170 ac_srcdir_defaulted=yes 1171 # Try the directory containing this script, then the parent directory. 1172 ac_confdir=`$as_dirname -- "$as_myself" || 1173$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1174 X"$as_myself" : 'X\(//\)[^/]' \| \ 1175 X"$as_myself" : 'X\(//\)$' \| \ 1176 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1177$as_echo X"$as_myself" | 1178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1179 s//\1/ 1180 q 1181 } 1182 /^X\(\/\/\)[^/].*/{ 1183 s//\1/ 1184 q 1185 } 1186 /^X\(\/\/\)$/{ 1187 s//\1/ 1188 q 1189 } 1190 /^X\(\/\).*/{ 1191 s//\1/ 1192 q 1193 } 1194 s/.*/./; q'` 1195 srcdir=$ac_confdir 1196 if test ! -r "$srcdir/$ac_unique_file"; then 1197 srcdir=.. 1198 fi 1199else 1200 ac_srcdir_defaulted=no 1201fi 1202if test ! -r "$srcdir/$ac_unique_file"; then 1203 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1204 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1205fi 1206ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1207ac_abs_confdir=`( 1208 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1209 pwd)` 1210# When building in place, set srcdir=. 1211if test "$ac_abs_confdir" = "$ac_pwd"; then 1212 srcdir=. 1213fi 1214# Remove unnecessary trailing slashes from srcdir. 1215# Double slashes in file names in object file debugging info 1216# mess up M-x gdb in Emacs. 1217case $srcdir in 1218*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1219esac 1220for ac_var in $ac_precious_vars; do 1221 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1222 eval ac_env_${ac_var}_value=\$${ac_var} 1223 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1224 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1225done 1226 1227# 1228# Report the --help message. 1229# 1230if test "$ac_init_help" = "long"; then 1231 # Omit some internal or obsolete options to make the list less imposing. 1232 # This message is too long to be a string in the A/UX 3.1 sh. 1233 cat <<_ACEOF 1234\`configure' configures libnbcompat noversion to adapt to many kinds of systems. 1235 1236Usage: $0 [OPTION]... [VAR=VALUE]... 1237 1238To assign environment variables (e.g., CC, CFLAGS...), specify them as 1239VAR=VALUE. See below for descriptions of some of the useful variables. 1240 1241Defaults for the options are specified in brackets. 1242 1243Configuration: 1244 -h, --help display this help and exit 1245 --help=short display options specific to this package 1246 --help=recursive display the short help of all the included packages 1247 -V, --version display version information and exit 1248 -q, --quiet, --silent do not print \`checking ...' messages 1249 --cache-file=FILE cache test results in FILE [disabled] 1250 -C, --config-cache alias for \`--cache-file=config.cache' 1251 -n, --no-create do not create output files 1252 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1253 1254Installation directories: 1255 --prefix=PREFIX install architecture-independent files in PREFIX 1256 [$ac_default_prefix] 1257 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1258 [PREFIX] 1259 1260By default, \`make install' will install all the files in 1261\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1262an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1263for instance \`--prefix=\$HOME'. 1264 1265For better control, use the options below. 1266 1267Fine tuning of the installation directories: 1268 --bindir=DIR user executables [EPREFIX/bin] 1269 --sbindir=DIR system admin executables [EPREFIX/sbin] 1270 --libexecdir=DIR program executables [EPREFIX/libexec] 1271 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1272 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1273 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1274 --libdir=DIR object code libraries [EPREFIX/lib] 1275 --includedir=DIR C header files [PREFIX/include] 1276 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1277 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1278 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1279 --infodir=DIR info documentation [DATAROOTDIR/info] 1280 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1281 --mandir=DIR man documentation [DATAROOTDIR/man] 1282 --docdir=DIR documentation root [DATAROOTDIR/doc/libnbcompat] 1283 --htmldir=DIR html documentation [DOCDIR] 1284 --dvidir=DIR dvi documentation [DOCDIR] 1285 --pdfdir=DIR pdf documentation [DOCDIR] 1286 --psdir=DIR ps documentation [DOCDIR] 1287_ACEOF 1288 1289 cat <<\_ACEOF 1290_ACEOF 1291fi 1292 1293if test -n "$ac_init_help"; then 1294 case $ac_init_help in 1295 short | recursive ) echo "Configuration of libnbcompat noversion:";; 1296 esac 1297 cat <<\_ACEOF 1298 1299Some influential environment variables: 1300 CC C compiler command 1301 CFLAGS C compiler flags 1302 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1303 nonstandard directory <lib dir> 1304 LIBS libraries to pass to the linker, e.g. -l<library> 1305 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1306 you have headers in a nonstandard directory <include dir> 1307 CPP C preprocessor 1308 1309Use these variables to override the choices made by `configure' or to help 1310it to find libraries and programs with nonstandard names/locations. 1311 1312Report bugs to <lib-bug-people@NetBSD.org>. 1313_ACEOF 1314ac_status=$? 1315fi 1316 1317if test "$ac_init_help" = "recursive"; then 1318 # If there are subdirs, report their specific --help. 1319 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1320 test -d "$ac_dir" || 1321 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1322 continue 1323 ac_builddir=. 1324 1325case "$ac_dir" in 1326.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1327*) 1328 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1329 # A ".." for each directory in $ac_dir_suffix. 1330 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1331 case $ac_top_builddir_sub in 1332 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1333 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1334 esac ;; 1335esac 1336ac_abs_top_builddir=$ac_pwd 1337ac_abs_builddir=$ac_pwd$ac_dir_suffix 1338# for backward compatibility: 1339ac_top_builddir=$ac_top_build_prefix 1340 1341case $srcdir in 1342 .) # We are building in place. 1343 ac_srcdir=. 1344 ac_top_srcdir=$ac_top_builddir_sub 1345 ac_abs_top_srcdir=$ac_pwd ;; 1346 [\\/]* | ?:[\\/]* ) # Absolute name. 1347 ac_srcdir=$srcdir$ac_dir_suffix; 1348 ac_top_srcdir=$srcdir 1349 ac_abs_top_srcdir=$srcdir ;; 1350 *) # Relative name. 1351 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1352 ac_top_srcdir=$ac_top_build_prefix$srcdir 1353 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1354esac 1355ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1356 1357 cd "$ac_dir" || { ac_status=$?; continue; } 1358 # Check for guested configure. 1359 if test -f "$ac_srcdir/configure.gnu"; then 1360 echo && 1361 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1362 elif test -f "$ac_srcdir/configure"; then 1363 echo && 1364 $SHELL "$ac_srcdir/configure" --help=recursive 1365 else 1366 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1367 fi || ac_status=$? 1368 cd "$ac_pwd" || { ac_status=$?; break; } 1369 done 1370fi 1371 1372test -n "$ac_init_help" && exit $ac_status 1373if $ac_init_version; then 1374 cat <<\_ACEOF 1375libnbcompat configure noversion 1376generated by GNU Autoconf 2.69 1377 1378Copyright (C) 2012 Free Software Foundation, Inc. 1379This configure script is free software; the Free Software Foundation 1380gives unlimited permission to copy, distribute and modify it. 1381_ACEOF 1382 exit 1383fi 1384 1385## ------------------------ ## 1386## Autoconf initialization. ## 1387## ------------------------ ## 1388 1389# ac_fn_c_try_compile LINENO 1390# -------------------------- 1391# Try to compile conftest.$ac_ext, and return whether this succeeded. 1392ac_fn_c_try_compile () 1393{ 1394 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1395 rm -f conftest.$ac_objext 1396 if { { ac_try="$ac_compile" 1397case "(($ac_try" in 1398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1399 *) ac_try_echo=$ac_try;; 1400esac 1401eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1402$as_echo "$ac_try_echo"; } >&5 1403 (eval "$ac_compile") 2>conftest.err 1404 ac_status=$? 1405 if test -s conftest.err; then 1406 grep -v '^ *+' conftest.err >conftest.er1 1407 cat conftest.er1 >&5 1408 mv -f conftest.er1 conftest.err 1409 fi 1410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1411 test $ac_status = 0; } && { 1412 test -z "$ac_c_werror_flag" || 1413 test ! -s conftest.err 1414 } && test -s conftest.$ac_objext; then : 1415 ac_retval=0 1416else 1417 $as_echo "$as_me: failed program was:" >&5 1418sed 's/^/| /' conftest.$ac_ext >&5 1419 1420 ac_retval=1 1421fi 1422 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1423 as_fn_set_status $ac_retval 1424 1425} # ac_fn_c_try_compile 1426 1427# ac_fn_c_try_cpp LINENO 1428# ---------------------- 1429# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1430ac_fn_c_try_cpp () 1431{ 1432 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1433 if { { ac_try="$ac_cpp conftest.$ac_ext" 1434case "(($ac_try" in 1435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1436 *) ac_try_echo=$ac_try;; 1437esac 1438eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1439$as_echo "$ac_try_echo"; } >&5 1440 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1441 ac_status=$? 1442 if test -s conftest.err; then 1443 grep -v '^ *+' conftest.err >conftest.er1 1444 cat conftest.er1 >&5 1445 mv -f conftest.er1 conftest.err 1446 fi 1447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1448 test $ac_status = 0; } > conftest.i && { 1449 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1450 test ! -s conftest.err 1451 }; then : 1452 ac_retval=0 1453else 1454 $as_echo "$as_me: failed program was:" >&5 1455sed 's/^/| /' conftest.$ac_ext >&5 1456 1457 ac_retval=1 1458fi 1459 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1460 as_fn_set_status $ac_retval 1461 1462} # ac_fn_c_try_cpp 1463 1464# ac_fn_c_try_run LINENO 1465# ---------------------- 1466# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1467# that executables *can* be run. 1468ac_fn_c_try_run () 1469{ 1470 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1471 if { { ac_try="$ac_link" 1472case "(($ac_try" in 1473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1474 *) ac_try_echo=$ac_try;; 1475esac 1476eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1477$as_echo "$ac_try_echo"; } >&5 1478 (eval "$ac_link") 2>&5 1479 ac_status=$? 1480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1481 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1482 { { case "(($ac_try" in 1483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1484 *) ac_try_echo=$ac_try;; 1485esac 1486eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1487$as_echo "$ac_try_echo"; } >&5 1488 (eval "$ac_try") 2>&5 1489 ac_status=$? 1490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1491 test $ac_status = 0; }; }; then : 1492 ac_retval=0 1493else 1494 $as_echo "$as_me: program exited with status $ac_status" >&5 1495 $as_echo "$as_me: failed program was:" >&5 1496sed 's/^/| /' conftest.$ac_ext >&5 1497 1498 ac_retval=$ac_status 1499fi 1500 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1501 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1502 as_fn_set_status $ac_retval 1503 1504} # ac_fn_c_try_run 1505 1506# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1507# ------------------------------------------------------- 1508# Tests whether HEADER exists and can be compiled using the include files in 1509# INCLUDES, setting the cache variable VAR accordingly. 1510ac_fn_c_check_header_compile () 1511{ 1512 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1514$as_echo_n "checking for $2... " >&6; } 1515if eval \${$3+:} false; then : 1516 $as_echo_n "(cached) " >&6 1517else 1518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1519/* end confdefs.h. */ 1520$4 1521#include <$2> 1522_ACEOF 1523if ac_fn_c_try_compile "$LINENO"; then : 1524 eval "$3=yes" 1525else 1526 eval "$3=no" 1527fi 1528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1529fi 1530eval ac_res=\$$3 1531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1532$as_echo "$ac_res" >&6; } 1533 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1534 1535} # ac_fn_c_check_header_compile 1536 1537# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1538# ------------------------------------------------------- 1539# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1540# the include files in INCLUDES and setting the cache variable VAR 1541# accordingly. 1542ac_fn_c_check_header_mongrel () 1543{ 1544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1545 if eval \${$3+:} false; then : 1546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1547$as_echo_n "checking for $2... " >&6; } 1548if eval \${$3+:} false; then : 1549 $as_echo_n "(cached) " >&6 1550fi 1551eval ac_res=\$$3 1552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1553$as_echo "$ac_res" >&6; } 1554else 1555 # Is the header compilable? 1556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1557$as_echo_n "checking $2 usability... " >&6; } 1558cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1559/* end confdefs.h. */ 1560$4 1561#include <$2> 1562_ACEOF 1563if ac_fn_c_try_compile "$LINENO"; then : 1564 ac_header_compiler=yes 1565else 1566 ac_header_compiler=no 1567fi 1568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1570$as_echo "$ac_header_compiler" >&6; } 1571 1572# Is the header present? 1573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1574$as_echo_n "checking $2 presence... " >&6; } 1575cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1576/* end confdefs.h. */ 1577#include <$2> 1578_ACEOF 1579if ac_fn_c_try_cpp "$LINENO"; then : 1580 ac_header_preproc=yes 1581else 1582 ac_header_preproc=no 1583fi 1584rm -f conftest.err conftest.i conftest.$ac_ext 1585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1586$as_echo "$ac_header_preproc" >&6; } 1587 1588# So? What about this header? 1589case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1590 yes:no: ) 1591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1592$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1594$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1595 ;; 1596 no:yes:* ) 1597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1598$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1600$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1602$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1604$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1606$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1607( $as_echo "## ---------------------------------------- ## 1608## Report this to lib-bug-people@NetBSD.org ## 1609## ---------------------------------------- ##" 1610 ) | sed "s/^/$as_me: WARNING: /" >&2 1611 ;; 1612esac 1613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1614$as_echo_n "checking for $2... " >&6; } 1615if eval \${$3+:} false; then : 1616 $as_echo_n "(cached) " >&6 1617else 1618 eval "$3=\$ac_header_compiler" 1619fi 1620eval ac_res=\$$3 1621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1622$as_echo "$ac_res" >&6; } 1623fi 1624 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1625 1626} # ac_fn_c_check_header_mongrel 1627 1628# ac_fn_c_try_link LINENO 1629# ----------------------- 1630# Try to link conftest.$ac_ext, and return whether this succeeded. 1631ac_fn_c_try_link () 1632{ 1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1634 rm -f conftest.$ac_objext conftest$ac_exeext 1635 if { { ac_try="$ac_link" 1636case "(($ac_try" in 1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1638 *) ac_try_echo=$ac_try;; 1639esac 1640eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1641$as_echo "$ac_try_echo"; } >&5 1642 (eval "$ac_link") 2>conftest.err 1643 ac_status=$? 1644 if test -s conftest.err; then 1645 grep -v '^ *+' conftest.err >conftest.er1 1646 cat conftest.er1 >&5 1647 mv -f conftest.er1 conftest.err 1648 fi 1649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1650 test $ac_status = 0; } && { 1651 test -z "$ac_c_werror_flag" || 1652 test ! -s conftest.err 1653 } && test -s conftest$ac_exeext && { 1654 test "$cross_compiling" = yes || 1655 test -x conftest$ac_exeext 1656 }; then : 1657 ac_retval=0 1658else 1659 $as_echo "$as_me: failed program was:" >&5 1660sed 's/^/| /' conftest.$ac_ext >&5 1661 1662 ac_retval=1 1663fi 1664 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1665 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1666 # interfere with the next link command; also delete a directory that is 1667 # left behind by Apple's compiler. We do this before executing the actions. 1668 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1670 as_fn_set_status $ac_retval 1671 1672} # ac_fn_c_try_link 1673 1674# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1675# ------------------------------------------- 1676# Tests whether TYPE exists after having included INCLUDES, setting cache 1677# variable VAR accordingly. 1678ac_fn_c_check_type () 1679{ 1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1682$as_echo_n "checking for $2... " >&6; } 1683if eval \${$3+:} false; then : 1684 $as_echo_n "(cached) " >&6 1685else 1686 eval "$3=no" 1687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1688/* end confdefs.h. */ 1689$4 1690int 1691main () 1692{ 1693if (sizeof ($2)) 1694 return 0; 1695 ; 1696 return 0; 1697} 1698_ACEOF 1699if ac_fn_c_try_compile "$LINENO"; then : 1700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1701/* end confdefs.h. */ 1702$4 1703int 1704main () 1705{ 1706if (sizeof (($2))) 1707 return 0; 1708 ; 1709 return 0; 1710} 1711_ACEOF 1712if ac_fn_c_try_compile "$LINENO"; then : 1713 1714else 1715 eval "$3=yes" 1716fi 1717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1718fi 1719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1720fi 1721eval ac_res=\$$3 1722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1723$as_echo "$ac_res" >&6; } 1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1725 1726} # ac_fn_c_check_type 1727 1728# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1729# ---------------------------------------------------- 1730# Tries to find if the field MEMBER exists in type AGGR, after including 1731# INCLUDES, setting cache variable VAR accordingly. 1732ac_fn_c_check_member () 1733{ 1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1736$as_echo_n "checking for $2.$3... " >&6; } 1737if eval \${$4+:} false; then : 1738 $as_echo_n "(cached) " >&6 1739else 1740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1741/* end confdefs.h. */ 1742$5 1743int 1744main () 1745{ 1746static $2 ac_aggr; 1747if (ac_aggr.$3) 1748return 0; 1749 ; 1750 return 0; 1751} 1752_ACEOF 1753if ac_fn_c_try_compile "$LINENO"; then : 1754 eval "$4=yes" 1755else 1756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1757/* end confdefs.h. */ 1758$5 1759int 1760main () 1761{ 1762static $2 ac_aggr; 1763if (sizeof ac_aggr.$3) 1764return 0; 1765 ; 1766 return 0; 1767} 1768_ACEOF 1769if ac_fn_c_try_compile "$LINENO"; then : 1770 eval "$4=yes" 1771else 1772 eval "$4=no" 1773fi 1774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1775fi 1776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1777fi 1778eval ac_res=\$$4 1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1780$as_echo "$ac_res" >&6; } 1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1782 1783} # ac_fn_c_check_member 1784 1785# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1786# --------------------------------------------- 1787# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1788# accordingly. 1789ac_fn_c_check_decl () 1790{ 1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1792 as_decl_name=`echo $2|sed 's/ *(.*//'` 1793 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1795$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1796if eval \${$3+:} false; then : 1797 $as_echo_n "(cached) " >&6 1798else 1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1800/* end confdefs.h. */ 1801$4 1802int 1803main () 1804{ 1805#ifndef $as_decl_name 1806#ifdef __cplusplus 1807 (void) $as_decl_use; 1808#else 1809 (void) $as_decl_name; 1810#endif 1811#endif 1812 1813 ; 1814 return 0; 1815} 1816_ACEOF 1817if ac_fn_c_try_compile "$LINENO"; then : 1818 eval "$3=yes" 1819else 1820 eval "$3=no" 1821fi 1822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1823fi 1824eval ac_res=\$$3 1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1826$as_echo "$ac_res" >&6; } 1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1828 1829} # ac_fn_c_check_decl 1830 1831# ac_fn_c_check_func LINENO FUNC VAR 1832# ---------------------------------- 1833# Tests whether FUNC exists, setting the cache variable VAR accordingly 1834ac_fn_c_check_func () 1835{ 1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1838$as_echo_n "checking for $2... " >&6; } 1839if eval \${$3+:} false; then : 1840 $as_echo_n "(cached) " >&6 1841else 1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1843/* end confdefs.h. */ 1844/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1845 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1846#define $2 innocuous_$2 1847 1848/* System header to define __stub macros and hopefully few prototypes, 1849 which can conflict with char $2 (); below. 1850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1851 <limits.h> exists even on freestanding compilers. */ 1852 1853#ifdef __STDC__ 1854# include <limits.h> 1855#else 1856# include <assert.h> 1857#endif 1858 1859#undef $2 1860 1861/* Override any GCC internal prototype to avoid an error. 1862 Use char because int might match the return type of a GCC 1863 builtin and then its argument prototype would still apply. */ 1864#ifdef __cplusplus 1865extern "C" 1866#endif 1867char $2 (); 1868/* The GNU C library defines this for functions which it implements 1869 to always fail with ENOSYS. Some functions are actually named 1870 something starting with __ and the normal name is an alias. */ 1871#if defined __stub_$2 || defined __stub___$2 1872choke me 1873#endif 1874 1875int 1876main () 1877{ 1878return $2 (); 1879 ; 1880 return 0; 1881} 1882_ACEOF 1883if ac_fn_c_try_link "$LINENO"; then : 1884 eval "$3=yes" 1885else 1886 eval "$3=no" 1887fi 1888rm -f core conftest.err conftest.$ac_objext \ 1889 conftest$ac_exeext conftest.$ac_ext 1890fi 1891eval ac_res=\$$3 1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1893$as_echo "$ac_res" >&6; } 1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1895 1896} # ac_fn_c_check_func 1897cat >config.log <<_ACEOF 1898This file contains any messages produced by compilers while 1899running configure, to aid debugging if configure makes a mistake. 1900 1901It was created by libnbcompat $as_me noversion, which was 1902generated by GNU Autoconf 2.69. Invocation command line was 1903 1904 $ $0 $@ 1905 1906_ACEOF 1907exec 5>>config.log 1908{ 1909cat <<_ASUNAME 1910## --------- ## 1911## Platform. ## 1912## --------- ## 1913 1914hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1915uname -m = `(uname -m) 2>/dev/null || echo unknown` 1916uname -r = `(uname -r) 2>/dev/null || echo unknown` 1917uname -s = `(uname -s) 2>/dev/null || echo unknown` 1918uname -v = `(uname -v) 2>/dev/null || echo unknown` 1919 1920/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1921/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1922 1923/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1924/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1925/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1926/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1927/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1928/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1929/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1930 1931_ASUNAME 1932 1933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1934for as_dir in $PATH 1935do 1936 IFS=$as_save_IFS 1937 test -z "$as_dir" && as_dir=. 1938 $as_echo "PATH: $as_dir" 1939 done 1940IFS=$as_save_IFS 1941 1942} >&5 1943 1944cat >&5 <<_ACEOF 1945 1946 1947## ----------- ## 1948## Core tests. ## 1949## ----------- ## 1950 1951_ACEOF 1952 1953 1954# Keep a trace of the command line. 1955# Strip out --no-create and --no-recursion so they do not pile up. 1956# Strip out --silent because we don't want to record it for future runs. 1957# Also quote any args containing shell meta-characters. 1958# Make two passes to allow for proper duplicate-argument suppression. 1959ac_configure_args= 1960ac_configure_args0= 1961ac_configure_args1= 1962ac_must_keep_next=false 1963for ac_pass in 1 2 1964do 1965 for ac_arg 1966 do 1967 case $ac_arg in 1968 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1969 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1970 | -silent | --silent | --silen | --sile | --sil) 1971 continue ;; 1972 *\'*) 1973 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1974 esac 1975 case $ac_pass in 1976 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1977 2) 1978 as_fn_append ac_configure_args1 " '$ac_arg'" 1979 if test $ac_must_keep_next = true; then 1980 ac_must_keep_next=false # Got value, back to normal. 1981 else 1982 case $ac_arg in 1983 *=* | --config-cache | -C | -disable-* | --disable-* \ 1984 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1985 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1986 | -with-* | --with-* | -without-* | --without-* | --x) 1987 case "$ac_configure_args0 " in 1988 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1989 esac 1990 ;; 1991 -* ) ac_must_keep_next=true ;; 1992 esac 1993 fi 1994 as_fn_append ac_configure_args " '$ac_arg'" 1995 ;; 1996 esac 1997 done 1998done 1999{ ac_configure_args0=; unset ac_configure_args0;} 2000{ ac_configure_args1=; unset ac_configure_args1;} 2001 2002# When interrupted or exit'd, cleanup temporary files, and complete 2003# config.log. We remove comments because anyway the quotes in there 2004# would cause problems or look ugly. 2005# WARNING: Use '\'' to represent an apostrophe within the trap. 2006# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2007trap 'exit_status=$? 2008 # Save into config.log some information that might help in debugging. 2009 { 2010 echo 2011 2012 $as_echo "## ---------------- ## 2013## Cache variables. ## 2014## ---------------- ##" 2015 echo 2016 # The following way of writing the cache mishandles newlines in values, 2017( 2018 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2019 eval ac_val=\$$ac_var 2020 case $ac_val in #( 2021 *${as_nl}*) 2022 case $ac_var in #( 2023 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2024$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2025 esac 2026 case $ac_var in #( 2027 _ | IFS | as_nl) ;; #( 2028 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2029 *) { eval $ac_var=; unset $ac_var;} ;; 2030 esac ;; 2031 esac 2032 done 2033 (set) 2>&1 | 2034 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2035 *${as_nl}ac_space=\ *) 2036 sed -n \ 2037 "s/'\''/'\''\\\\'\'''\''/g; 2038 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2039 ;; #( 2040 *) 2041 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2042 ;; 2043 esac | 2044 sort 2045) 2046 echo 2047 2048 $as_echo "## ----------------- ## 2049## Output variables. ## 2050## ----------------- ##" 2051 echo 2052 for ac_var in $ac_subst_vars 2053 do 2054 eval ac_val=\$$ac_var 2055 case $ac_val in 2056 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2057 esac 2058 $as_echo "$ac_var='\''$ac_val'\''" 2059 done | sort 2060 echo 2061 2062 if test -n "$ac_subst_files"; then 2063 $as_echo "## ------------------- ## 2064## File substitutions. ## 2065## ------------------- ##" 2066 echo 2067 for ac_var in $ac_subst_files 2068 do 2069 eval ac_val=\$$ac_var 2070 case $ac_val in 2071 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2072 esac 2073 $as_echo "$ac_var='\''$ac_val'\''" 2074 done | sort 2075 echo 2076 fi 2077 2078 if test -s confdefs.h; then 2079 $as_echo "## ----------- ## 2080## confdefs.h. ## 2081## ----------- ##" 2082 echo 2083 cat confdefs.h 2084 echo 2085 fi 2086 test "$ac_signal" != 0 && 2087 $as_echo "$as_me: caught signal $ac_signal" 2088 $as_echo "$as_me: exit $exit_status" 2089 } >&5 2090 rm -f core *.core core.conftest.* && 2091 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2092 exit $exit_status 2093' 0 2094for ac_signal in 1 2 13 15; do 2095 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2096done 2097ac_signal=0 2098 2099# confdefs.h avoids OS command line length limits that DEFS can exceed. 2100rm -f -r conftest* confdefs.h 2101 2102$as_echo "/* confdefs.h */" > confdefs.h 2103 2104# Predefined preprocessor variables. 2105 2106cat >>confdefs.h <<_ACEOF 2107#define PACKAGE_NAME "$PACKAGE_NAME" 2108_ACEOF 2109 2110cat >>confdefs.h <<_ACEOF 2111#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2112_ACEOF 2113 2114cat >>confdefs.h <<_ACEOF 2115#define PACKAGE_VERSION "$PACKAGE_VERSION" 2116_ACEOF 2117 2118cat >>confdefs.h <<_ACEOF 2119#define PACKAGE_STRING "$PACKAGE_STRING" 2120_ACEOF 2121 2122cat >>confdefs.h <<_ACEOF 2123#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2124_ACEOF 2125 2126cat >>confdefs.h <<_ACEOF 2127#define PACKAGE_URL "$PACKAGE_URL" 2128_ACEOF 2129 2130 2131# Let the site file select an alternate cache file if it wants to. 2132# Prefer an explicitly selected file to automatically selected ones. 2133ac_site_file1=NONE 2134ac_site_file2=NONE 2135if test -n "$CONFIG_SITE"; then 2136 # We do not want a PATH search for config.site. 2137 case $CONFIG_SITE in #(( 2138 -*) ac_site_file1=./$CONFIG_SITE;; 2139 */*) ac_site_file1=$CONFIG_SITE;; 2140 *) ac_site_file1=./$CONFIG_SITE;; 2141 esac 2142elif test "x$prefix" != xNONE; then 2143 ac_site_file1=$prefix/share/config.site 2144 ac_site_file2=$prefix/etc/config.site 2145else 2146 ac_site_file1=$ac_default_prefix/share/config.site 2147 ac_site_file2=$ac_default_prefix/etc/config.site 2148fi 2149for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2150do 2151 test "x$ac_site_file" = xNONE && continue 2152 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2153 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2154$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2155 sed 's/^/| /' "$ac_site_file" >&5 2156 . "$ac_site_file" \ 2157 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2158$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2159as_fn_error $? "failed to load site script $ac_site_file 2160See \`config.log' for more details" "$LINENO" 5; } 2161 fi 2162done 2163 2164if test -r "$cache_file"; then 2165 # Some versions of bash will fail to source /dev/null (special files 2166 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2167 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2168 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2169$as_echo "$as_me: loading cache $cache_file" >&6;} 2170 case $cache_file in 2171 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2172 *) . "./$cache_file";; 2173 esac 2174 fi 2175else 2176 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2177$as_echo "$as_me: creating cache $cache_file" >&6;} 2178 >$cache_file 2179fi 2180 2181# Check that the precious variables saved in the cache have kept the same 2182# value. 2183ac_cache_corrupted=false 2184for ac_var in $ac_precious_vars; do 2185 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2186 eval ac_new_set=\$ac_env_${ac_var}_set 2187 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2188 eval ac_new_val=\$ac_env_${ac_var}_value 2189 case $ac_old_set,$ac_new_set in 2190 set,) 2191 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2192$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2193 ac_cache_corrupted=: ;; 2194 ,set) 2195 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2196$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2197 ac_cache_corrupted=: ;; 2198 ,);; 2199 *) 2200 if test "x$ac_old_val" != "x$ac_new_val"; then 2201 # differences in whitespace do not lead to failure. 2202 ac_old_val_w=`echo x $ac_old_val` 2203 ac_new_val_w=`echo x $ac_new_val` 2204 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2206$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2207 ac_cache_corrupted=: 2208 else 2209 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2210$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2211 eval $ac_var=\$ac_old_val 2212 fi 2213 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2214$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2215 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2216$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2217 fi;; 2218 esac 2219 # Pass precious variables to config.status. 2220 if test "$ac_new_set" = set; then 2221 case $ac_new_val in 2222 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2223 *) ac_arg=$ac_var=$ac_new_val ;; 2224 esac 2225 case " $ac_configure_args " in 2226 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2227 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2228 esac 2229 fi 2230done 2231if $ac_cache_corrupted; then 2232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2233$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2234 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2235$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2236 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2237fi 2238## -------------------- ## 2239## Main body of script. ## 2240## -------------------- ## 2241 2242ac_ext=c 2243ac_cpp='$CPP $CPPFLAGS' 2244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2246ac_compiler_gnu=$ac_cv_c_compiler_gnu 2247 2248 2249ac_config_headers="$ac_config_headers nbtool_config.h" 2250 2251ac_config_files="$ac_config_files defs.mk" 2252 2253 2254 2255 2256 2257 2258# Autoheader header and footer 2259 2260 2261 2262 2263 2264ac_ext=c 2265ac_cpp='$CPP $CPPFLAGS' 2266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2268ac_compiler_gnu=$ac_cv_c_compiler_gnu 2269if test -n "$ac_tool_prefix"; then 2270 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2271set dummy ${ac_tool_prefix}gcc; ac_word=$2 2272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2273$as_echo_n "checking for $ac_word... " >&6; } 2274if ${ac_cv_prog_CC+:} false; then : 2275 $as_echo_n "(cached) " >&6 2276else 2277 if test -n "$CC"; then 2278 ac_cv_prog_CC="$CC" # Let the user override the test. 2279else 2280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2281for as_dir in $PATH 2282do 2283 IFS=$as_save_IFS 2284 test -z "$as_dir" && as_dir=. 2285 for ac_exec_ext in '' $ac_executable_extensions; do 2286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2287 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2289 break 2 2290 fi 2291done 2292 done 2293IFS=$as_save_IFS 2294 2295fi 2296fi 2297CC=$ac_cv_prog_CC 2298if test -n "$CC"; then 2299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2300$as_echo "$CC" >&6; } 2301else 2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2303$as_echo "no" >&6; } 2304fi 2305 2306 2307fi 2308if test -z "$ac_cv_prog_CC"; then 2309 ac_ct_CC=$CC 2310 # Extract the first word of "gcc", so it can be a program name with args. 2311set dummy gcc; ac_word=$2 2312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2313$as_echo_n "checking for $ac_word... " >&6; } 2314if ${ac_cv_prog_ac_ct_CC+:} false; then : 2315 $as_echo_n "(cached) " >&6 2316else 2317 if test -n "$ac_ct_CC"; then 2318 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2319else 2320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2321for as_dir in $PATH 2322do 2323 IFS=$as_save_IFS 2324 test -z "$as_dir" && as_dir=. 2325 for ac_exec_ext in '' $ac_executable_extensions; do 2326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2327 ac_cv_prog_ac_ct_CC="gcc" 2328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2329 break 2 2330 fi 2331done 2332 done 2333IFS=$as_save_IFS 2334 2335fi 2336fi 2337ac_ct_CC=$ac_cv_prog_ac_ct_CC 2338if test -n "$ac_ct_CC"; then 2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2340$as_echo "$ac_ct_CC" >&6; } 2341else 2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2343$as_echo "no" >&6; } 2344fi 2345 2346 if test "x$ac_ct_CC" = x; then 2347 CC="" 2348 else 2349 case $cross_compiling:$ac_tool_warned in 2350yes:) 2351{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2352$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2353ac_tool_warned=yes ;; 2354esac 2355 CC=$ac_ct_CC 2356 fi 2357else 2358 CC="$ac_cv_prog_CC" 2359fi 2360 2361if test -z "$CC"; then 2362 if test -n "$ac_tool_prefix"; then 2363 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2364set dummy ${ac_tool_prefix}cc; ac_word=$2 2365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2366$as_echo_n "checking for $ac_word... " >&6; } 2367if ${ac_cv_prog_CC+:} false; then : 2368 $as_echo_n "(cached) " >&6 2369else 2370 if test -n "$CC"; then 2371 ac_cv_prog_CC="$CC" # Let the user override the test. 2372else 2373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2374for as_dir in $PATH 2375do 2376 IFS=$as_save_IFS 2377 test -z "$as_dir" && as_dir=. 2378 for ac_exec_ext in '' $ac_executable_extensions; do 2379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2380 ac_cv_prog_CC="${ac_tool_prefix}cc" 2381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2382 break 2 2383 fi 2384done 2385 done 2386IFS=$as_save_IFS 2387 2388fi 2389fi 2390CC=$ac_cv_prog_CC 2391if test -n "$CC"; then 2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2393$as_echo "$CC" >&6; } 2394else 2395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2396$as_echo "no" >&6; } 2397fi 2398 2399 2400 fi 2401fi 2402if test -z "$CC"; then 2403 # Extract the first word of "cc", so it can be a program name with args. 2404set dummy cc; ac_word=$2 2405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2406$as_echo_n "checking for $ac_word... " >&6; } 2407if ${ac_cv_prog_CC+:} false; then : 2408 $as_echo_n "(cached) " >&6 2409else 2410 if test -n "$CC"; then 2411 ac_cv_prog_CC="$CC" # Let the user override the test. 2412else 2413 ac_prog_rejected=no 2414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2415for as_dir in $PATH 2416do 2417 IFS=$as_save_IFS 2418 test -z "$as_dir" && as_dir=. 2419 for ac_exec_ext in '' $ac_executable_extensions; do 2420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2421 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2422 ac_prog_rejected=yes 2423 continue 2424 fi 2425 ac_cv_prog_CC="cc" 2426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2427 break 2 2428 fi 2429done 2430 done 2431IFS=$as_save_IFS 2432 2433if test $ac_prog_rejected = yes; then 2434 # We found a bogon in the path, so make sure we never use it. 2435 set dummy $ac_cv_prog_CC 2436 shift 2437 if test $# != 0; then 2438 # We chose a different compiler from the bogus one. 2439 # However, it has the same basename, so the bogon will be chosen 2440 # first if we set CC to just the basename; use the full file name. 2441 shift 2442 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2443 fi 2444fi 2445fi 2446fi 2447CC=$ac_cv_prog_CC 2448if test -n "$CC"; then 2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2450$as_echo "$CC" >&6; } 2451else 2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2453$as_echo "no" >&6; } 2454fi 2455 2456 2457fi 2458if test -z "$CC"; then 2459 if test -n "$ac_tool_prefix"; then 2460 for ac_prog in cl.exe 2461 do 2462 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2463set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2465$as_echo_n "checking for $ac_word... " >&6; } 2466if ${ac_cv_prog_CC+:} false; then : 2467 $as_echo_n "(cached) " >&6 2468else 2469 if test -n "$CC"; then 2470 ac_cv_prog_CC="$CC" # Let the user override the test. 2471else 2472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2473for as_dir in $PATH 2474do 2475 IFS=$as_save_IFS 2476 test -z "$as_dir" && as_dir=. 2477 for ac_exec_ext in '' $ac_executable_extensions; do 2478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2479 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2481 break 2 2482 fi 2483done 2484 done 2485IFS=$as_save_IFS 2486 2487fi 2488fi 2489CC=$ac_cv_prog_CC 2490if test -n "$CC"; then 2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2492$as_echo "$CC" >&6; } 2493else 2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2495$as_echo "no" >&6; } 2496fi 2497 2498 2499 test -n "$CC" && break 2500 done 2501fi 2502if test -z "$CC"; then 2503 ac_ct_CC=$CC 2504 for ac_prog in cl.exe 2505do 2506 # Extract the first word of "$ac_prog", so it can be a program name with args. 2507set dummy $ac_prog; ac_word=$2 2508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2509$as_echo_n "checking for $ac_word... " >&6; } 2510if ${ac_cv_prog_ac_ct_CC+:} false; then : 2511 $as_echo_n "(cached) " >&6 2512else 2513 if test -n "$ac_ct_CC"; then 2514 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2515else 2516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2517for as_dir in $PATH 2518do 2519 IFS=$as_save_IFS 2520 test -z "$as_dir" && as_dir=. 2521 for ac_exec_ext in '' $ac_executable_extensions; do 2522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2523 ac_cv_prog_ac_ct_CC="$ac_prog" 2524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2525 break 2 2526 fi 2527done 2528 done 2529IFS=$as_save_IFS 2530 2531fi 2532fi 2533ac_ct_CC=$ac_cv_prog_ac_ct_CC 2534if test -n "$ac_ct_CC"; then 2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2536$as_echo "$ac_ct_CC" >&6; } 2537else 2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2539$as_echo "no" >&6; } 2540fi 2541 2542 2543 test -n "$ac_ct_CC" && break 2544done 2545 2546 if test "x$ac_ct_CC" = x; then 2547 CC="" 2548 else 2549 case $cross_compiling:$ac_tool_warned in 2550yes:) 2551{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2552$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2553ac_tool_warned=yes ;; 2554esac 2555 CC=$ac_ct_CC 2556 fi 2557fi 2558 2559fi 2560 2561 2562test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2563$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2564as_fn_error $? "no acceptable C compiler found in \$PATH 2565See \`config.log' for more details" "$LINENO" 5; } 2566 2567# Provide some information about the compiler. 2568$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2569set X $ac_compile 2570ac_compiler=$2 2571for ac_option in --version -v -V -qversion; do 2572 { { ac_try="$ac_compiler $ac_option >&5" 2573case "(($ac_try" in 2574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2575 *) ac_try_echo=$ac_try;; 2576esac 2577eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2578$as_echo "$ac_try_echo"; } >&5 2579 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2580 ac_status=$? 2581 if test -s conftest.err; then 2582 sed '10a\ 2583... rest of stderr output deleted ... 2584 10q' conftest.err >conftest.er1 2585 cat conftest.er1 >&5 2586 fi 2587 rm -f conftest.er1 conftest.err 2588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2589 test $ac_status = 0; } 2590done 2591 2592cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2593/* end confdefs.h. */ 2594 2595int 2596main () 2597{ 2598 2599 ; 2600 return 0; 2601} 2602_ACEOF 2603ac_clean_files_save=$ac_clean_files 2604ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2605# Try to create an executable without -o first, disregard a.out. 2606# It will help us diagnose broken compilers, and finding out an intuition 2607# of exeext. 2608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2609$as_echo_n "checking whether the C compiler works... " >&6; } 2610ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2611 2612# The possible output files: 2613ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2614 2615ac_rmfiles= 2616for ac_file in $ac_files 2617do 2618 case $ac_file in 2619 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2620 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2621 esac 2622done 2623rm -f $ac_rmfiles 2624 2625if { { ac_try="$ac_link_default" 2626case "(($ac_try" in 2627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2628 *) ac_try_echo=$ac_try;; 2629esac 2630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2631$as_echo "$ac_try_echo"; } >&5 2632 (eval "$ac_link_default") 2>&5 2633 ac_status=$? 2634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2635 test $ac_status = 0; }; then : 2636 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2637# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2638# in a Makefile. We should not override ac_cv_exeext if it was cached, 2639# so that the user can short-circuit this test for compilers unknown to 2640# Autoconf. 2641for ac_file in $ac_files '' 2642do 2643 test -f "$ac_file" || continue 2644 case $ac_file in 2645 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2646 ;; 2647 [ab].out ) 2648 # We found the default executable, but exeext='' is most 2649 # certainly right. 2650 break;; 2651 *.* ) 2652 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2653 then :; else 2654 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2655 fi 2656 # We set ac_cv_exeext here because the later test for it is not 2657 # safe: cross compilers may not add the suffix if given an `-o' 2658 # argument, so we may need to know it at that point already. 2659 # Even if this section looks crufty: it has the advantage of 2660 # actually working. 2661 break;; 2662 * ) 2663 break;; 2664 esac 2665done 2666test "$ac_cv_exeext" = no && ac_cv_exeext= 2667 2668else 2669 ac_file='' 2670fi 2671if test -z "$ac_file"; then : 2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2673$as_echo "no" >&6; } 2674$as_echo "$as_me: failed program was:" >&5 2675sed 's/^/| /' conftest.$ac_ext >&5 2676 2677{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2678$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2679as_fn_error 77 "C compiler cannot create executables 2680See \`config.log' for more details" "$LINENO" 5; } 2681else 2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2683$as_echo "yes" >&6; } 2684fi 2685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2686$as_echo_n "checking for C compiler default output file name... " >&6; } 2687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2688$as_echo "$ac_file" >&6; } 2689ac_exeext=$ac_cv_exeext 2690 2691rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2692ac_clean_files=$ac_clean_files_save 2693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2694$as_echo_n "checking for suffix of executables... " >&6; } 2695if { { ac_try="$ac_link" 2696case "(($ac_try" in 2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2698 *) ac_try_echo=$ac_try;; 2699esac 2700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2701$as_echo "$ac_try_echo"; } >&5 2702 (eval "$ac_link") 2>&5 2703 ac_status=$? 2704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2705 test $ac_status = 0; }; then : 2706 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2707# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2708# work properly (i.e., refer to `conftest.exe'), while it won't with 2709# `rm'. 2710for ac_file in conftest.exe conftest conftest.*; do 2711 test -f "$ac_file" || continue 2712 case $ac_file in 2713 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2714 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2715 break;; 2716 * ) break;; 2717 esac 2718done 2719else 2720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2721$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2722as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2723See \`config.log' for more details" "$LINENO" 5; } 2724fi 2725rm -f conftest conftest$ac_cv_exeext 2726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2727$as_echo "$ac_cv_exeext" >&6; } 2728 2729rm -f conftest.$ac_ext 2730EXEEXT=$ac_cv_exeext 2731ac_exeext=$EXEEXT 2732cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2733/* end confdefs.h. */ 2734#include <stdio.h> 2735int 2736main () 2737{ 2738FILE *f = fopen ("conftest.out", "w"); 2739 return ferror (f) || fclose (f) != 0; 2740 2741 ; 2742 return 0; 2743} 2744_ACEOF 2745ac_clean_files="$ac_clean_files conftest.out" 2746# Check that the compiler produces executables we can run. If not, either 2747# the compiler is broken, or we cross compile. 2748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2749$as_echo_n "checking whether we are cross compiling... " >&6; } 2750if test "$cross_compiling" != yes; then 2751 { { ac_try="$ac_link" 2752case "(($ac_try" in 2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2754 *) ac_try_echo=$ac_try;; 2755esac 2756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2757$as_echo "$ac_try_echo"; } >&5 2758 (eval "$ac_link") 2>&5 2759 ac_status=$? 2760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2761 test $ac_status = 0; } 2762 if { ac_try='./conftest$ac_cv_exeext' 2763 { { case "(($ac_try" in 2764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2765 *) ac_try_echo=$ac_try;; 2766esac 2767eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2768$as_echo "$ac_try_echo"; } >&5 2769 (eval "$ac_try") 2>&5 2770 ac_status=$? 2771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2772 test $ac_status = 0; }; }; then 2773 cross_compiling=no 2774 else 2775 if test "$cross_compiling" = maybe; then 2776 cross_compiling=yes 2777 else 2778 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2779$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2780as_fn_error $? "cannot run C compiled programs. 2781If you meant to cross compile, use \`--host'. 2782See \`config.log' for more details" "$LINENO" 5; } 2783 fi 2784 fi 2785fi 2786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2787$as_echo "$cross_compiling" >&6; } 2788 2789rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2790ac_clean_files=$ac_clean_files_save 2791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2792$as_echo_n "checking for suffix of object files... " >&6; } 2793if ${ac_cv_objext+:} false; then : 2794 $as_echo_n "(cached) " >&6 2795else 2796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2797/* end confdefs.h. */ 2798 2799int 2800main () 2801{ 2802 2803 ; 2804 return 0; 2805} 2806_ACEOF 2807rm -f conftest.o conftest.obj 2808if { { ac_try="$ac_compile" 2809case "(($ac_try" in 2810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2811 *) ac_try_echo=$ac_try;; 2812esac 2813eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2814$as_echo "$ac_try_echo"; } >&5 2815 (eval "$ac_compile") 2>&5 2816 ac_status=$? 2817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2818 test $ac_status = 0; }; then : 2819 for ac_file in conftest.o conftest.obj conftest.*; do 2820 test -f "$ac_file" || continue; 2821 case $ac_file in 2822 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2823 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2824 break;; 2825 esac 2826done 2827else 2828 $as_echo "$as_me: failed program was:" >&5 2829sed 's/^/| /' conftest.$ac_ext >&5 2830 2831{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2832$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2833as_fn_error $? "cannot compute suffix of object files: cannot compile 2834See \`config.log' for more details" "$LINENO" 5; } 2835fi 2836rm -f conftest.$ac_cv_objext conftest.$ac_ext 2837fi 2838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2839$as_echo "$ac_cv_objext" >&6; } 2840OBJEXT=$ac_cv_objext 2841ac_objext=$OBJEXT 2842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2843$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2844if ${ac_cv_c_compiler_gnu+:} false; then : 2845 $as_echo_n "(cached) " >&6 2846else 2847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2848/* end confdefs.h. */ 2849 2850int 2851main () 2852{ 2853#ifndef __GNUC__ 2854 choke me 2855#endif 2856 2857 ; 2858 return 0; 2859} 2860_ACEOF 2861if ac_fn_c_try_compile "$LINENO"; then : 2862 ac_compiler_gnu=yes 2863else 2864 ac_compiler_gnu=no 2865fi 2866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2867ac_cv_c_compiler_gnu=$ac_compiler_gnu 2868 2869fi 2870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2871$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2872if test $ac_compiler_gnu = yes; then 2873 GCC=yes 2874else 2875 GCC= 2876fi 2877ac_test_CFLAGS=${CFLAGS+set} 2878ac_save_CFLAGS=$CFLAGS 2879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2880$as_echo_n "checking whether $CC accepts -g... " >&6; } 2881if ${ac_cv_prog_cc_g+:} false; then : 2882 $as_echo_n "(cached) " >&6 2883else 2884 ac_save_c_werror_flag=$ac_c_werror_flag 2885 ac_c_werror_flag=yes 2886 ac_cv_prog_cc_g=no 2887 CFLAGS="-g" 2888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2889/* end confdefs.h. */ 2890 2891int 2892main () 2893{ 2894 2895 ; 2896 return 0; 2897} 2898_ACEOF 2899if ac_fn_c_try_compile "$LINENO"; then : 2900 ac_cv_prog_cc_g=yes 2901else 2902 CFLAGS="" 2903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2904/* end confdefs.h. */ 2905 2906int 2907main () 2908{ 2909 2910 ; 2911 return 0; 2912} 2913_ACEOF 2914if ac_fn_c_try_compile "$LINENO"; then : 2915 2916else 2917 ac_c_werror_flag=$ac_save_c_werror_flag 2918 CFLAGS="-g" 2919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2920/* end confdefs.h. */ 2921 2922int 2923main () 2924{ 2925 2926 ; 2927 return 0; 2928} 2929_ACEOF 2930if ac_fn_c_try_compile "$LINENO"; then : 2931 ac_cv_prog_cc_g=yes 2932fi 2933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2934fi 2935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2936fi 2937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2938 ac_c_werror_flag=$ac_save_c_werror_flag 2939fi 2940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 2941$as_echo "$ac_cv_prog_cc_g" >&6; } 2942if test "$ac_test_CFLAGS" = set; then 2943 CFLAGS=$ac_save_CFLAGS 2944elif test $ac_cv_prog_cc_g = yes; then 2945 if test "$GCC" = yes; then 2946 CFLAGS="-g -O2" 2947 else 2948 CFLAGS="-g" 2949 fi 2950else 2951 if test "$GCC" = yes; then 2952 CFLAGS="-O2" 2953 else 2954 CFLAGS= 2955 fi 2956fi 2957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 2958$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2959if ${ac_cv_prog_cc_c89+:} false; then : 2960 $as_echo_n "(cached) " >&6 2961else 2962 ac_cv_prog_cc_c89=no 2963ac_save_CC=$CC 2964cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2965/* end confdefs.h. */ 2966#include <stdarg.h> 2967#include <stdio.h> 2968struct stat; 2969/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2970struct buf { int x; }; 2971FILE * (*rcsopen) (struct buf *, struct stat *, int); 2972static char *e (p, i) 2973 char **p; 2974 int i; 2975{ 2976 return p[i]; 2977} 2978static char *f (char * (*g) (char **, int), char **p, ...) 2979{ 2980 char *s; 2981 va_list v; 2982 va_start (v,p); 2983 s = g (p, va_arg (v,int)); 2984 va_end (v); 2985 return s; 2986} 2987 2988/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2989 function prototypes and stuff, but not '\xHH' hex character constants. 2990 These don't provoke an error unfortunately, instead are silently treated 2991 as 'x'. The following induces an error, until -std is added to get 2992 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2993 array size at least. It's necessary to write '\x00'==0 to get something 2994 that's true only with -std. */ 2995int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2996 2997/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2998 inside strings and character constants. */ 2999#define FOO(x) 'x' 3000int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3001 3002int test (int i, double x); 3003struct s1 {int (*f) (int a);}; 3004struct s2 {int (*f) (double a);}; 3005int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3006int argc; 3007char **argv; 3008int 3009main () 3010{ 3011return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3012 ; 3013 return 0; 3014} 3015_ACEOF 3016for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3017 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3018do 3019 CC="$ac_save_CC $ac_arg" 3020 if ac_fn_c_try_compile "$LINENO"; then : 3021 ac_cv_prog_cc_c89=$ac_arg 3022fi 3023rm -f core conftest.err conftest.$ac_objext 3024 test "x$ac_cv_prog_cc_c89" != "xno" && break 3025done 3026rm -f conftest.$ac_ext 3027CC=$ac_save_CC 3028 3029fi 3030# AC_CACHE_VAL 3031case "x$ac_cv_prog_cc_c89" in 3032 x) 3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3034$as_echo "none needed" >&6; } ;; 3035 xno) 3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3037$as_echo "unsupported" >&6; } ;; 3038 *) 3039 CC="$CC $ac_cv_prog_cc_c89" 3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3041$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3042esac 3043if test "x$ac_cv_prog_cc_c89" != xno; then : 3044 3045fi 3046 3047ac_ext=c 3048ac_cpp='$CPP $CPPFLAGS' 3049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3051ac_compiler_gnu=$ac_cv_c_compiler_gnu 3052 3053 3054ac_ext=c 3055ac_cpp='$CPP $CPPFLAGS' 3056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3058ac_compiler_gnu=$ac_cv_c_compiler_gnu 3059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3060$as_echo_n "checking how to run the C preprocessor... " >&6; } 3061# On Suns, sometimes $CPP names a directory. 3062if test -n "$CPP" && test -d "$CPP"; then 3063 CPP= 3064fi 3065if test -z "$CPP"; then 3066 if ${ac_cv_prog_CPP+:} false; then : 3067 $as_echo_n "(cached) " >&6 3068else 3069 # Double quotes because CPP needs to be expanded 3070 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3071 do 3072 ac_preproc_ok=false 3073for ac_c_preproc_warn_flag in '' yes 3074do 3075 # Use a header file that comes with gcc, so configuring glibc 3076 # with a fresh cross-compiler works. 3077 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3078 # <limits.h> exists even on freestanding compilers. 3079 # On the NeXT, cc -E runs the code through the compiler's parser, 3080 # not just through cpp. "Syntax error" is here to catch this case. 3081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3082/* end confdefs.h. */ 3083#ifdef __STDC__ 3084# include <limits.h> 3085#else 3086# include <assert.h> 3087#endif 3088 Syntax error 3089_ACEOF 3090if ac_fn_c_try_cpp "$LINENO"; then : 3091 3092else 3093 # Broken: fails on valid input. 3094continue 3095fi 3096rm -f conftest.err conftest.i conftest.$ac_ext 3097 3098 # OK, works on sane cases. Now check whether nonexistent headers 3099 # can be detected and how. 3100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3101/* end confdefs.h. */ 3102#include <ac_nonexistent.h> 3103_ACEOF 3104if ac_fn_c_try_cpp "$LINENO"; then : 3105 # Broken: success on invalid input. 3106continue 3107else 3108 # Passes both tests. 3109ac_preproc_ok=: 3110break 3111fi 3112rm -f conftest.err conftest.i conftest.$ac_ext 3113 3114done 3115# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3116rm -f conftest.i conftest.err conftest.$ac_ext 3117if $ac_preproc_ok; then : 3118 break 3119fi 3120 3121 done 3122 ac_cv_prog_CPP=$CPP 3123 3124fi 3125 CPP=$ac_cv_prog_CPP 3126else 3127 ac_cv_prog_CPP=$CPP 3128fi 3129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3130$as_echo "$CPP" >&6; } 3131ac_preproc_ok=false 3132for ac_c_preproc_warn_flag in '' yes 3133do 3134 # Use a header file that comes with gcc, so configuring glibc 3135 # with a fresh cross-compiler works. 3136 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3137 # <limits.h> exists even on freestanding compilers. 3138 # On the NeXT, cc -E runs the code through the compiler's parser, 3139 # not just through cpp. "Syntax error" is here to catch this case. 3140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3141/* end confdefs.h. */ 3142#ifdef __STDC__ 3143# include <limits.h> 3144#else 3145# include <assert.h> 3146#endif 3147 Syntax error 3148_ACEOF 3149if ac_fn_c_try_cpp "$LINENO"; then : 3150 3151else 3152 # Broken: fails on valid input. 3153continue 3154fi 3155rm -f conftest.err conftest.i conftest.$ac_ext 3156 3157 # OK, works on sane cases. Now check whether nonexistent headers 3158 # can be detected and how. 3159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3160/* end confdefs.h. */ 3161#include <ac_nonexistent.h> 3162_ACEOF 3163if ac_fn_c_try_cpp "$LINENO"; then : 3164 # Broken: success on invalid input. 3165continue 3166else 3167 # Passes both tests. 3168ac_preproc_ok=: 3169break 3170fi 3171rm -f conftest.err conftest.i conftest.$ac_ext 3172 3173done 3174# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3175rm -f conftest.i conftest.err conftest.$ac_ext 3176if $ac_preproc_ok; then : 3177 3178else 3179 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3180$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3181as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3182See \`config.log' for more details" "$LINENO" 5; } 3183fi 3184 3185ac_ext=c 3186ac_cpp='$CPP $CPPFLAGS' 3187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3189ac_compiler_gnu=$ac_cv_c_compiler_gnu 3190 3191 3192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3193$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3194if ${ac_cv_path_GREP+:} false; then : 3195 $as_echo_n "(cached) " >&6 3196else 3197 if test -z "$GREP"; then 3198 ac_path_GREP_found=false 3199 # Loop through the user's path and test for each of PROGNAME-LIST 3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3201for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3202do 3203 IFS=$as_save_IFS 3204 test -z "$as_dir" && as_dir=. 3205 for ac_prog in grep ggrep; do 3206 for ac_exec_ext in '' $ac_executable_extensions; do 3207 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3208 as_fn_executable_p "$ac_path_GREP" || continue 3209# Check for GNU ac_path_GREP and select it if it is found. 3210 # Check for GNU $ac_path_GREP 3211case `"$ac_path_GREP" --version 2>&1` in 3212*GNU*) 3213 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3214*) 3215 ac_count=0 3216 $as_echo_n 0123456789 >"conftest.in" 3217 while : 3218 do 3219 cat "conftest.in" "conftest.in" >"conftest.tmp" 3220 mv "conftest.tmp" "conftest.in" 3221 cp "conftest.in" "conftest.nl" 3222 $as_echo 'GREP' >> "conftest.nl" 3223 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3224 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3225 as_fn_arith $ac_count + 1 && ac_count=$as_val 3226 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3227 # Best one so far, save it but keep looking for a better one 3228 ac_cv_path_GREP="$ac_path_GREP" 3229 ac_path_GREP_max=$ac_count 3230 fi 3231 # 10*(2^10) chars as input seems more than enough 3232 test $ac_count -gt 10 && break 3233 done 3234 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3235esac 3236 3237 $ac_path_GREP_found && break 3 3238 done 3239 done 3240 done 3241IFS=$as_save_IFS 3242 if test -z "$ac_cv_path_GREP"; then 3243 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3244 fi 3245else 3246 ac_cv_path_GREP=$GREP 3247fi 3248 3249fi 3250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3251$as_echo "$ac_cv_path_GREP" >&6; } 3252 GREP="$ac_cv_path_GREP" 3253 3254 3255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3256$as_echo_n "checking for egrep... " >&6; } 3257if ${ac_cv_path_EGREP+:} false; then : 3258 $as_echo_n "(cached) " >&6 3259else 3260 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3261 then ac_cv_path_EGREP="$GREP -E" 3262 else 3263 if test -z "$EGREP"; then 3264 ac_path_EGREP_found=false 3265 # Loop through the user's path and test for each of PROGNAME-LIST 3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3267for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3268do 3269 IFS=$as_save_IFS 3270 test -z "$as_dir" && as_dir=. 3271 for ac_prog in egrep; do 3272 for ac_exec_ext in '' $ac_executable_extensions; do 3273 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3274 as_fn_executable_p "$ac_path_EGREP" || continue 3275# Check for GNU ac_path_EGREP and select it if it is found. 3276 # Check for GNU $ac_path_EGREP 3277case `"$ac_path_EGREP" --version 2>&1` in 3278*GNU*) 3279 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3280*) 3281 ac_count=0 3282 $as_echo_n 0123456789 >"conftest.in" 3283 while : 3284 do 3285 cat "conftest.in" "conftest.in" >"conftest.tmp" 3286 mv "conftest.tmp" "conftest.in" 3287 cp "conftest.in" "conftest.nl" 3288 $as_echo 'EGREP' >> "conftest.nl" 3289 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3290 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3291 as_fn_arith $ac_count + 1 && ac_count=$as_val 3292 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3293 # Best one so far, save it but keep looking for a better one 3294 ac_cv_path_EGREP="$ac_path_EGREP" 3295 ac_path_EGREP_max=$ac_count 3296 fi 3297 # 10*(2^10) chars as input seems more than enough 3298 test $ac_count -gt 10 && break 3299 done 3300 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3301esac 3302 3303 $ac_path_EGREP_found && break 3 3304 done 3305 done 3306 done 3307IFS=$as_save_IFS 3308 if test -z "$ac_cv_path_EGREP"; then 3309 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3310 fi 3311else 3312 ac_cv_path_EGREP=$EGREP 3313fi 3314 3315 fi 3316fi 3317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3318$as_echo "$ac_cv_path_EGREP" >&6; } 3319 EGREP="$ac_cv_path_EGREP" 3320 3321 3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NetBSD" >&5 3323$as_echo_n "checking for NetBSD... " >&6; } 3324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3325/* end confdefs.h. */ 3326#ifdef __NetBSD__ 3327 yes 3328 #endif 3329 3330_ACEOF 3331if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3332 $EGREP "yes" >/dev/null 2>&1; then : 3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3334$as_echo "yes" >&6; } 3335 3336$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3337 3338 3339$as_echo "#define _POSIX_C_SOURCE 200112L" >>confdefs.h 3340 3341 3342$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h 3343 3344else 3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3346$as_echo "no" >&6; } 3347fi 3348rm -f conftest* 3349 3350 3351# Extract the first word of "sh", so it can be a program name with args. 3352set dummy sh; ac_word=$2 3353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3354$as_echo_n "checking for $ac_word... " >&6; } 3355if ${ac_cv_path_BSHELL+:} false; then : 3356 $as_echo_n "(cached) " >&6 3357else 3358 case $BSHELL in 3359 [\\/]* | ?:[\\/]*) 3360 ac_cv_path_BSHELL="$BSHELL" # Let the user override the test with a path. 3361 ;; 3362 *) 3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3364for as_dir in $PATH 3365do 3366 IFS=$as_save_IFS 3367 test -z "$as_dir" && as_dir=. 3368 for ac_exec_ext in '' $ac_executable_extensions; do 3369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3370 ac_cv_path_BSHELL="$as_dir/$ac_word$ac_exec_ext" 3371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3372 break 2 3373 fi 3374done 3375 done 3376IFS=$as_save_IFS 3377 3378 ;; 3379esac 3380fi 3381BSHELL=$ac_cv_path_BSHELL 3382if test -n "$BSHELL"; then 3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BSHELL" >&5 3384$as_echo "$BSHELL" >&6; } 3385else 3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3387$as_echo "no" >&6; } 3388fi 3389 3390 3391if test x"$BSHELL" = x; then 3392 as_fn_error $? "sh must be somewhere on \$PATH" "$LINENO" 5 3393fi 3394 3395cat >>confdefs.h <<_ACEOF 3396#define PATH_BSHELL "$BSHELL" 3397_ACEOF 3398 3399 3400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3401$as_echo_n "checking for ANSI C header files... " >&6; } 3402if ${ac_cv_header_stdc+:} false; then : 3403 $as_echo_n "(cached) " >&6 3404else 3405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3406/* end confdefs.h. */ 3407#include <stdlib.h> 3408#include <stdarg.h> 3409#include <string.h> 3410#include <float.h> 3411 3412int 3413main () 3414{ 3415 3416 ; 3417 return 0; 3418} 3419_ACEOF 3420if ac_fn_c_try_compile "$LINENO"; then : 3421 ac_cv_header_stdc=yes 3422else 3423 ac_cv_header_stdc=no 3424fi 3425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3426 3427if test $ac_cv_header_stdc = yes; then 3428 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3430/* end confdefs.h. */ 3431#include <string.h> 3432 3433_ACEOF 3434if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3435 $EGREP "memchr" >/dev/null 2>&1; then : 3436 3437else 3438 ac_cv_header_stdc=no 3439fi 3440rm -f conftest* 3441 3442fi 3443 3444if test $ac_cv_header_stdc = yes; then 3445 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3447/* end confdefs.h. */ 3448#include <stdlib.h> 3449 3450_ACEOF 3451if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3452 $EGREP "free" >/dev/null 2>&1; then : 3453 3454else 3455 ac_cv_header_stdc=no 3456fi 3457rm -f conftest* 3458 3459fi 3460 3461if test $ac_cv_header_stdc = yes; then 3462 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3463 if test "$cross_compiling" = yes; then : 3464 : 3465else 3466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3467/* end confdefs.h. */ 3468#include <ctype.h> 3469#include <stdlib.h> 3470#if ((' ' & 0x0FF) == 0x020) 3471# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3472# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3473#else 3474# define ISLOWER(c) \ 3475 (('a' <= (c) && (c) <= 'i') \ 3476 || ('j' <= (c) && (c) <= 'r') \ 3477 || ('s' <= (c) && (c) <= 'z')) 3478# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3479#endif 3480 3481#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3482int 3483main () 3484{ 3485 int i; 3486 for (i = 0; i < 256; i++) 3487 if (XOR (islower (i), ISLOWER (i)) 3488 || toupper (i) != TOUPPER (i)) 3489 return 2; 3490 return 0; 3491} 3492_ACEOF 3493if ac_fn_c_try_run "$LINENO"; then : 3494 3495else 3496 ac_cv_header_stdc=no 3497fi 3498rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3499 conftest.$ac_objext conftest.beam conftest.$ac_ext 3500fi 3501 3502fi 3503fi 3504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3505$as_echo "$ac_cv_header_stdc" >&6; } 3506if test $ac_cv_header_stdc = yes; then 3507 3508$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3509 3510fi 3511 3512# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3513for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3514 inttypes.h stdint.h unistd.h 3515do : 3516 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3517ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3518" 3519if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3520 cat >>confdefs.h <<_ACEOF 3521#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3522_ACEOF 3523 3524fi 3525 3526done 3527 3528 3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 3530$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 3531if ${ac_cv_c_bigendian+:} false; then : 3532 $as_echo_n "(cached) " >&6 3533else 3534 ac_cv_c_bigendian=unknown 3535 # See if we're dealing with a universal compiler. 3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3537/* end confdefs.h. */ 3538#ifndef __APPLE_CC__ 3539 not a universal capable compiler 3540 #endif 3541 typedef int dummy; 3542 3543_ACEOF 3544if ac_fn_c_try_compile "$LINENO"; then : 3545 3546 # Check for potential -arch flags. It is not universal unless 3547 # there are at least two -arch flags with different values. 3548 ac_arch= 3549 ac_prev= 3550 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 3551 if test -n "$ac_prev"; then 3552 case $ac_word in 3553 i?86 | x86_64 | ppc | ppc64) 3554 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 3555 ac_arch=$ac_word 3556 else 3557 ac_cv_c_bigendian=universal 3558 break 3559 fi 3560 ;; 3561 esac 3562 ac_prev= 3563 elif test "x$ac_word" = "x-arch"; then 3564 ac_prev=arch 3565 fi 3566 done 3567fi 3568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3569 if test $ac_cv_c_bigendian = unknown; then 3570 # See if sys/param.h defines the BYTE_ORDER macro. 3571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3572/* end confdefs.h. */ 3573#include <sys/types.h> 3574 #include <sys/param.h> 3575 3576int 3577main () 3578{ 3579#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 3580 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 3581 && LITTLE_ENDIAN) 3582 bogus endian macros 3583 #endif 3584 3585 ; 3586 return 0; 3587} 3588_ACEOF 3589if ac_fn_c_try_compile "$LINENO"; then : 3590 # It does; now see whether it defined to BIG_ENDIAN or not. 3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3592/* end confdefs.h. */ 3593#include <sys/types.h> 3594 #include <sys/param.h> 3595 3596int 3597main () 3598{ 3599#if BYTE_ORDER != BIG_ENDIAN 3600 not big endian 3601 #endif 3602 3603 ; 3604 return 0; 3605} 3606_ACEOF 3607if ac_fn_c_try_compile "$LINENO"; then : 3608 ac_cv_c_bigendian=yes 3609else 3610 ac_cv_c_bigendian=no 3611fi 3612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3613fi 3614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3615 fi 3616 if test $ac_cv_c_bigendian = unknown; then 3617 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3619/* end confdefs.h. */ 3620#include <limits.h> 3621 3622int 3623main () 3624{ 3625#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 3626 bogus endian macros 3627 #endif 3628 3629 ; 3630 return 0; 3631} 3632_ACEOF 3633if ac_fn_c_try_compile "$LINENO"; then : 3634 # It does; now see whether it defined to _BIG_ENDIAN or not. 3635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3636/* end confdefs.h. */ 3637#include <limits.h> 3638 3639int 3640main () 3641{ 3642#ifndef _BIG_ENDIAN 3643 not big endian 3644 #endif 3645 3646 ; 3647 return 0; 3648} 3649_ACEOF 3650if ac_fn_c_try_compile "$LINENO"; then : 3651 ac_cv_c_bigendian=yes 3652else 3653 ac_cv_c_bigendian=no 3654fi 3655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3656fi 3657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3658 fi 3659 if test $ac_cv_c_bigendian = unknown; then 3660 # Compile a test program. 3661 if test "$cross_compiling" = yes; then : 3662 # Try to guess by grepping values from an object file. 3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3664/* end confdefs.h. */ 3665short int ascii_mm[] = 3666 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 3667 short int ascii_ii[] = 3668 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 3669 int use_ascii (int i) { 3670 return ascii_mm[i] + ascii_ii[i]; 3671 } 3672 short int ebcdic_ii[] = 3673 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 3674 short int ebcdic_mm[] = 3675 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 3676 int use_ebcdic (int i) { 3677 return ebcdic_mm[i] + ebcdic_ii[i]; 3678 } 3679 extern int foo; 3680 3681int 3682main () 3683{ 3684return use_ascii (foo) == use_ebcdic (foo); 3685 ; 3686 return 0; 3687} 3688_ACEOF 3689if ac_fn_c_try_compile "$LINENO"; then : 3690 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 3691 ac_cv_c_bigendian=yes 3692 fi 3693 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 3694 if test "$ac_cv_c_bigendian" = unknown; then 3695 ac_cv_c_bigendian=no 3696 else 3697 # finding both strings is unlikely to happen, but who knows? 3698 ac_cv_c_bigendian=unknown 3699 fi 3700 fi 3701fi 3702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3703else 3704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3705/* end confdefs.h. */ 3706$ac_includes_default 3707int 3708main () 3709{ 3710 3711 /* Are we little or big endian? From Harbison&Steele. */ 3712 union 3713 { 3714 long int l; 3715 char c[sizeof (long int)]; 3716 } u; 3717 u.l = 1; 3718 return u.c[sizeof (long int) - 1] == 1; 3719 3720 ; 3721 return 0; 3722} 3723_ACEOF 3724if ac_fn_c_try_run "$LINENO"; then : 3725 ac_cv_c_bigendian=no 3726else 3727 ac_cv_c_bigendian=yes 3728fi 3729rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3730 conftest.$ac_objext conftest.beam conftest.$ac_ext 3731fi 3732 3733 fi 3734fi 3735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 3736$as_echo "$ac_cv_c_bigendian" >&6; } 3737 case $ac_cv_c_bigendian in #( 3738 yes) 3739 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 3740;; #( 3741 no) 3742 ;; #( 3743 universal) 3744 3745$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 3746 3747 ;; #( 3748 *) 3749 as_fn_error $? "unknown endianness 3750 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 3751 esac 3752 3753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3754$as_echo_n "checking for ANSI C header files... " >&6; } 3755if ${ac_cv_header_stdc+:} false; then : 3756 $as_echo_n "(cached) " >&6 3757else 3758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3759/* end confdefs.h. */ 3760#include <stdlib.h> 3761#include <stdarg.h> 3762#include <string.h> 3763#include <float.h> 3764 3765int 3766main () 3767{ 3768 3769 ; 3770 return 0; 3771} 3772_ACEOF 3773if ac_fn_c_try_compile "$LINENO"; then : 3774 ac_cv_header_stdc=yes 3775else 3776 ac_cv_header_stdc=no 3777fi 3778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3779 3780if test $ac_cv_header_stdc = yes; then 3781 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3783/* end confdefs.h. */ 3784#include <string.h> 3785 3786_ACEOF 3787if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3788 $EGREP "memchr" >/dev/null 2>&1; then : 3789 3790else 3791 ac_cv_header_stdc=no 3792fi 3793rm -f conftest* 3794 3795fi 3796 3797if test $ac_cv_header_stdc = yes; then 3798 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3800/* end confdefs.h. */ 3801#include <stdlib.h> 3802 3803_ACEOF 3804if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3805 $EGREP "free" >/dev/null 2>&1; then : 3806 3807else 3808 ac_cv_header_stdc=no 3809fi 3810rm -f conftest* 3811 3812fi 3813 3814if test $ac_cv_header_stdc = yes; then 3815 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3816 if test "$cross_compiling" = yes; then : 3817 : 3818else 3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3820/* end confdefs.h. */ 3821#include <ctype.h> 3822#include <stdlib.h> 3823#if ((' ' & 0x0FF) == 0x020) 3824# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3825# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3826#else 3827# define ISLOWER(c) \ 3828 (('a' <= (c) && (c) <= 'i') \ 3829 || ('j' <= (c) && (c) <= 'r') \ 3830 || ('s' <= (c) && (c) <= 'z')) 3831# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3832#endif 3833 3834#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3835int 3836main () 3837{ 3838 int i; 3839 for (i = 0; i < 256; i++) 3840 if (XOR (islower (i), ISLOWER (i)) 3841 || toupper (i) != TOUPPER (i)) 3842 return 2; 3843 return 0; 3844} 3845_ACEOF 3846if ac_fn_c_try_run "$LINENO"; then : 3847 3848else 3849 ac_cv_header_stdc=no 3850fi 3851rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3852 conftest.$ac_objext conftest.beam conftest.$ac_ext 3853fi 3854 3855fi 3856fi 3857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3858$as_echo "$ac_cv_header_stdc" >&6; } 3859if test $ac_cv_header_stdc = yes; then 3860 3861$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3862 3863fi 3864 3865 3866# Confirm existence of zlib. (This is available as a default install 3867# option on many OS's; this could be added as a reachover build in the 3868# future.) 3869ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 3870if test "x$ac_cv_header_zlib_h" = xyes; then : 3871 3872else 3873 as_fn_error $? "zlib must be installed in a compiler-visible path" "$LINENO" 5 3874fi 3875 3876 3877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzdopen in -lz" >&5 3878$as_echo_n "checking for gzdopen in -lz... " >&6; } 3879if ${ac_cv_lib_z_gzdopen+:} false; then : 3880 $as_echo_n "(cached) " >&6 3881else 3882 ac_check_lib_save_LIBS=$LIBS 3883LIBS="-lz $LIBS" 3884cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3885/* end confdefs.h. */ 3886 3887/* Override any GCC internal prototype to avoid an error. 3888 Use char because int might match the return type of a GCC 3889 builtin and then its argument prototype would still apply. */ 3890#ifdef __cplusplus 3891extern "C" 3892#endif 3893char gzdopen (); 3894int 3895main () 3896{ 3897return gzdopen (); 3898 ; 3899 return 0; 3900} 3901_ACEOF 3902if ac_fn_c_try_link "$LINENO"; then : 3903 ac_cv_lib_z_gzdopen=yes 3904else 3905 ac_cv_lib_z_gzdopen=no 3906fi 3907rm -f core conftest.err conftest.$ac_objext \ 3908 conftest$ac_exeext conftest.$ac_ext 3909LIBS=$ac_check_lib_save_LIBS 3910fi 3911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzdopen" >&5 3912$as_echo "$ac_cv_lib_z_gzdopen" >&6; } 3913if test "x$ac_cv_lib_z_gzdopen" = xyes; then : 3914 cat >>confdefs.h <<_ACEOF 3915#define HAVE_LIBZ 1 3916_ACEOF 3917 3918 LIBS="-lz $LIBS" 3919 3920else 3921 as_fn_error $? "zlib must be installed in a compiler-visible path" "$LINENO" 5 3922fi 3923 3924 3925# Make sure certain required headers are available. 3926# These are not necessarily required by the code, but they are not 3927# currently conditionalized. 3928for ac_header in sys/ioctl.h sys/mman.h sys/param.h \ 3929 sys/socket.h sys/stat.h sys/time.h sys/types.h sys/utsname.h \ 3930 sys/wait.h assert.h ctype.h errno.h fcntl.h grp.h limits.h locale.h \ 3931 netdb.h pwd.h signal.h stdarg.h stdio.h stdlib.h string.h \ 3932 termios.h unistd.h 3933do : 3934 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3935ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 3936if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3937 cat >>confdefs.h <<_ACEOF 3938#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3939_ACEOF 3940 3941else 3942 as_fn_error $? "standard system header file not found" "$LINENO" 5 3943fi 3944 3945done 3946 3947 3948# Find headers that may not be available. 3949ac_header_dirent=no 3950for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 3951 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 3952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 3953$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 3954if eval \${$as_ac_Header+:} false; then : 3955 $as_echo_n "(cached) " >&6 3956else 3957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3958/* end confdefs.h. */ 3959#include <sys/types.h> 3960#include <$ac_hdr> 3961 3962int 3963main () 3964{ 3965if ((DIR *) 0) 3966return 0; 3967 ; 3968 return 0; 3969} 3970_ACEOF 3971if ac_fn_c_try_compile "$LINENO"; then : 3972 eval "$as_ac_Header=yes" 3973else 3974 eval "$as_ac_Header=no" 3975fi 3976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3977fi 3978eval ac_res=\$$as_ac_Header 3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3980$as_echo "$ac_res" >&6; } 3981if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3982 cat >>confdefs.h <<_ACEOF 3983#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 3984_ACEOF 3985 3986ac_header_dirent=$ac_hdr; break 3987fi 3988 3989done 3990# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 3991if test $ac_header_dirent = dirent.h; then 3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 3993$as_echo_n "checking for library containing opendir... " >&6; } 3994if ${ac_cv_search_opendir+:} false; then : 3995 $as_echo_n "(cached) " >&6 3996else 3997 ac_func_search_save_LIBS=$LIBS 3998cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3999/* end confdefs.h. */ 4000 4001/* Override any GCC internal prototype to avoid an error. 4002 Use char because int might match the return type of a GCC 4003 builtin and then its argument prototype would still apply. */ 4004#ifdef __cplusplus 4005extern "C" 4006#endif 4007char opendir (); 4008int 4009main () 4010{ 4011return opendir (); 4012 ; 4013 return 0; 4014} 4015_ACEOF 4016for ac_lib in '' dir; do 4017 if test -z "$ac_lib"; then 4018 ac_res="none required" 4019 else 4020 ac_res=-l$ac_lib 4021 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4022 fi 4023 if ac_fn_c_try_link "$LINENO"; then : 4024 ac_cv_search_opendir=$ac_res 4025fi 4026rm -f core conftest.err conftest.$ac_objext \ 4027 conftest$ac_exeext 4028 if ${ac_cv_search_opendir+:} false; then : 4029 break 4030fi 4031done 4032if ${ac_cv_search_opendir+:} false; then : 4033 4034else 4035 ac_cv_search_opendir=no 4036fi 4037rm conftest.$ac_ext 4038LIBS=$ac_func_search_save_LIBS 4039fi 4040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 4041$as_echo "$ac_cv_search_opendir" >&6; } 4042ac_res=$ac_cv_search_opendir 4043if test "$ac_res" != no; then : 4044 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4045 4046fi 4047 4048else 4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 4050$as_echo_n "checking for library containing opendir... " >&6; } 4051if ${ac_cv_search_opendir+:} false; then : 4052 $as_echo_n "(cached) " >&6 4053else 4054 ac_func_search_save_LIBS=$LIBS 4055cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4056/* end confdefs.h. */ 4057 4058/* Override any GCC internal prototype to avoid an error. 4059 Use char because int might match the return type of a GCC 4060 builtin and then its argument prototype would still apply. */ 4061#ifdef __cplusplus 4062extern "C" 4063#endif 4064char opendir (); 4065int 4066main () 4067{ 4068return opendir (); 4069 ; 4070 return 0; 4071} 4072_ACEOF 4073for ac_lib in '' x; do 4074 if test -z "$ac_lib"; then 4075 ac_res="none required" 4076 else 4077 ac_res=-l$ac_lib 4078 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4079 fi 4080 if ac_fn_c_try_link "$LINENO"; then : 4081 ac_cv_search_opendir=$ac_res 4082fi 4083rm -f core conftest.err conftest.$ac_objext \ 4084 conftest$ac_exeext 4085 if ${ac_cv_search_opendir+:} false; then : 4086 break 4087fi 4088done 4089if ${ac_cv_search_opendir+:} false; then : 4090 4091else 4092 ac_cv_search_opendir=no 4093fi 4094rm conftest.$ac_ext 4095LIBS=$ac_func_search_save_LIBS 4096fi 4097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 4098$as_echo "$ac_cv_search_opendir" >&6; } 4099ac_res=$ac_cv_search_opendir 4100if test "$ac_res" != no; then : 4101 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4102 4103fi 4104 4105fi 4106 4107for ac_header in sys/mtio.h sys/sysmacros.h sys/syslimits.h stdio_ext.h \ 4108 getopt.h features.h malloc.h sys/poll.h pthread.h stddef.h sys/uio.h 4109do : 4110 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4111ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 4112if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4113 cat >>confdefs.h <<_ACEOF 4114#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4115_ACEOF 4116 4117fi 4118 4119done 4120 4121for ac_header in sys/bswap.h machine/bswap.h sys/cdefs.h machine/endian.h \ 4122 sys/endian.h sys/featuretest.h err.h inttypes.h libgen.h paths.h \ 4123 libgen.h stdint.h util.h resolv.h arpa/nameser.h 4124do : 4125 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4126ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 4127if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4128 cat >>confdefs.h <<_ACEOF 4129#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4130_ACEOF 4131 4132else 4133 test -f include/$ac_header || touch include/$ac_header 4134fi 4135 4136done 4137 4138for ac_header in rpc/types.h 4139do : 4140 ac_fn_c_check_header_mongrel "$LINENO" "rpc/types.h" "ac_cv_header_rpc_types_h" "$ac_includes_default" 4141if test "x$ac_cv_header_rpc_types_h" = xyes; then : 4142 cat >>confdefs.h <<_ACEOF 4143#define HAVE_RPC_TYPES_H 1 4144_ACEOF 4145 4146else 4147 echo '#include "nbtool_config.h"' >include/$ac_header.new 4148 echo '#include "'$srcdir/../../common/include/$ac_header'"' \ 4149 >>include/$ac_header.new 4150 if cmp include/$ac_header.new include/$ac_header >/dev/null 2>&1; then 4151 rm -f include/$ac_header.new 4152 else 4153 mv -f include/$ac_header.new include/$ac_header 4154 fi 4155fi 4156 4157done 4158 4159for ac_header in netconfig.h 4160do : 4161 ac_fn_c_check_header_mongrel "$LINENO" "netconfig.h" "ac_cv_header_netconfig_h" "$ac_includes_default" 4162if test "x$ac_cv_header_netconfig_h" = xyes; then : 4163 cat >>confdefs.h <<_ACEOF 4164#define HAVE_NETCONFIG_H 1 4165_ACEOF 4166 4167else 4168 echo '#include "nbtool_config.h"' >include/$ac_header.new 4169 echo '#include "'$srcdir/../../include/$ac_header'"' \ 4170 >>include/$ac_header.new 4171 if cmp include/$ac_header.new include/$ac_header >/dev/null 2>&1; then 4172 rm -f include/$ac_header.new 4173 else 4174 mv -f include/$ac_header.new include/$ac_header 4175 fi 4176fi 4177 4178done 4179 4180 4181# Typedefs. 4182ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 4183if test "x$ac_cv_type_size_t" = xyes; then : 4184 4185else 4186 4187cat >>confdefs.h <<_ACEOF 4188#define size_t unsigned int 4189_ACEOF 4190 4191fi 4192 4193ac_fn_c_check_type "$LINENO" "id_t" "ac_cv_type_id_t" "$ac_includes_default" 4194if test "x$ac_cv_type_id_t" = xyes; then : 4195 4196cat >>confdefs.h <<_ACEOF 4197#define HAVE_ID_T 1 4198_ACEOF 4199 4200 4201fi 4202ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 4203if test "x$ac_cv_type_long_long" = xyes; then : 4204 4205cat >>confdefs.h <<_ACEOF 4206#define HAVE_LONG_LONG 1 4207_ACEOF 4208 4209 4210fi 4211ac_fn_c_check_type "$LINENO" "u_long" "ac_cv_type_u_long" "$ac_includes_default" 4212if test "x$ac_cv_type_u_long" = xyes; then : 4213 4214cat >>confdefs.h <<_ACEOF 4215#define HAVE_U_LONG 1 4216_ACEOF 4217 4218 4219fi 4220ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "$ac_includes_default" 4221if test "x$ac_cv_type_u_char" = xyes; then : 4222 4223cat >>confdefs.h <<_ACEOF 4224#define HAVE_U_CHAR 1 4225_ACEOF 4226 4227 4228fi 4229ac_fn_c_check_type "$LINENO" "u_short" "ac_cv_type_u_short" "$ac_includes_default" 4230if test "x$ac_cv_type_u_short" = xyes; then : 4231 4232cat >>confdefs.h <<_ACEOF 4233#define HAVE_U_SHORT 1 4234_ACEOF 4235 4236 4237fi 4238ac_fn_c_check_type "$LINENO" "u_int" "ac_cv_type_u_int" "$ac_includes_default" 4239if test "x$ac_cv_type_u_int" = xyes; then : 4240 4241cat >>confdefs.h <<_ACEOF 4242#define HAVE_U_INT 1 4243_ACEOF 4244 4245 4246fi 4247ac_fn_c_check_type "$LINENO" "u_quad_t" "ac_cv_type_u_quad_t" "$ac_includes_default" 4248if test "x$ac_cv_type_u_quad_t" = xyes; then : 4249 4250cat >>confdefs.h <<_ACEOF 4251#define HAVE_U_QUAD_T 1 4252_ACEOF 4253 4254 4255fi 4256 4257ac_fn_c_check_type "$LINENO" "uchar_t" "ac_cv_type_uchar_t" "$ac_includes_default" 4258if test "x$ac_cv_type_uchar_t" = xyes; then : 4259 4260cat >>confdefs.h <<_ACEOF 4261#define HAVE_UCHAR_T 1 4262_ACEOF 4263 4264 4265fi 4266ac_fn_c_check_type "$LINENO" "ushort_t" "ac_cv_type_ushort_t" "$ac_includes_default" 4267if test "x$ac_cv_type_ushort_t" = xyes; then : 4268 4269cat >>confdefs.h <<_ACEOF 4270#define HAVE_USHORT_T 1 4271_ACEOF 4272 4273 4274fi 4275ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default" 4276if test "x$ac_cv_type_uint_t" = xyes; then : 4277 4278cat >>confdefs.h <<_ACEOF 4279#define HAVE_UINT_T 1 4280_ACEOF 4281 4282 4283fi 4284ac_fn_c_check_type "$LINENO" "ulong_t" "ac_cv_type_ulong_t" "$ac_includes_default" 4285if test "x$ac_cv_type_ulong_t" = xyes; then : 4286 4287cat >>confdefs.h <<_ACEOF 4288#define HAVE_ULONG_T 1 4289_ACEOF 4290 4291 4292fi 4293 4294ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> 4295#ifdef HAVE_RPC_TYPES_H 4296#include <rpc/types.h> 4297#endif 4298#include <sys/socket.h> 4299" 4300if test "x$ac_cv_type_socklen_t" = xyes; then : 4301 4302$as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h 4303 4304fi 4305 4306 4307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for enum uio_rw" >&5 4308$as_echo_n "checking for enum uio_rw... " >&6; } 4309cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4310/* end confdefs.h. */ 4311 4312#include <sys/types.h> 4313#ifdef HAVE_SYS_UIO_H 4314#include <sys/uio.h> 4315#endif 4316int 4317main () 4318{ 4319enum uio_rw rw; 4320 ; 4321 return 0; 4322} 4323_ACEOF 4324if ac_fn_c_try_compile "$LINENO"; then : 4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4326$as_echo "yes" >&6; } 4327 4328$as_echo "#define HAVE_ENUM_UIO_RW 1" >>confdefs.h 4329 4330else 4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4332$as_echo "no" >&6; } 4333fi 4334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4335 4336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for enum uio_seg" >&5 4337$as_echo_n "checking for enum uio_seg... " >&6; } 4338cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4339/* end confdefs.h. */ 4340 4341#include <sys/types.h> 4342#ifdef HAVE_SYS_UIO_H 4343#include <sys/uio.h> 4344#endif 4345int 4346main () 4347{ 4348enum uio_seg seg; 4349 ; 4350 return 0; 4351} 4352_ACEOF 4353if ac_fn_c_try_compile "$LINENO"; then : 4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4355$as_echo "yes" >&6; } 4356 4357$as_echo "#define HAVE_ENUM_UIO_SEG 1" >>confdefs.h 4358 4359else 4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4361$as_echo "no" >&6; } 4362fi 4363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4364 4365 4366 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 4367if test "x$ac_cv_type_uint8_t" = xyes; then : 4368 4369else 4370 4371 ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default" 4372if test "x$ac_cv_type_u_int8_t" = xyes; then : 4373 4374$as_echo "#define uint8_t u_int8_t" >>confdefs.h 4375 4376else 4377 as_fn_error $? "cannot find a suitable type for uint8_t" "$LINENO" 5 4378fi 4379 4380 4381fi 4382 4383 ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default" 4384if test "x$ac_cv_type_u_int8_t" = xyes; then : 4385 4386else 4387 4388 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 4389if test "x$ac_cv_type_uint8_t" = xyes; then : 4390 4391$as_echo "#define u_int8_t uint8_t" >>confdefs.h 4392 4393else 4394 as_fn_error $? "cannot find a suitable type for u_int8_t" "$LINENO" 5 4395fi 4396 4397 4398fi 4399 4400 4401 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 4402if test "x$ac_cv_type_uint16_t" = xyes; then : 4403 4404else 4405 4406 ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default" 4407if test "x$ac_cv_type_u_int16_t" = xyes; then : 4408 4409$as_echo "#define uint16_t u_int16_t" >>confdefs.h 4410 4411else 4412 as_fn_error $? "cannot find a suitable type for uint16_t" "$LINENO" 5 4413fi 4414 4415 4416fi 4417 4418 ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default" 4419if test "x$ac_cv_type_u_int16_t" = xyes; then : 4420 4421else 4422 4423 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 4424if test "x$ac_cv_type_uint16_t" = xyes; then : 4425 4426$as_echo "#define u_int16_t uint16_t" >>confdefs.h 4427 4428else 4429 as_fn_error $? "cannot find a suitable type for u_int16_t" "$LINENO" 5 4430fi 4431 4432 4433fi 4434 4435 4436 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 4437if test "x$ac_cv_type_uint32_t" = xyes; then : 4438 4439else 4440 4441 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default" 4442if test "x$ac_cv_type_u_int32_t" = xyes; then : 4443 4444$as_echo "#define uint32_t u_int32_t" >>confdefs.h 4445 4446else 4447 as_fn_error $? "cannot find a suitable type for uint32_t" "$LINENO" 5 4448fi 4449 4450 4451fi 4452 4453 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default" 4454if test "x$ac_cv_type_u_int32_t" = xyes; then : 4455 4456else 4457 4458 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 4459if test "x$ac_cv_type_uint32_t" = xyes; then : 4460 4461$as_echo "#define u_int32_t uint32_t" >>confdefs.h 4462 4463else 4464 as_fn_error $? "cannot find a suitable type for u_int32_t" "$LINENO" 5 4465fi 4466 4467 4468fi 4469 4470 4471 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" 4472if test "x$ac_cv_type_uint64_t" = xyes; then : 4473 4474else 4475 4476 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default" 4477if test "x$ac_cv_type_u_int64_t" = xyes; then : 4478 4479$as_echo "#define uint64_t u_int64_t" >>confdefs.h 4480 4481else 4482 as_fn_error $? "cannot find a suitable type for uint64_t" "$LINENO" 5 4483fi 4484 4485 4486fi 4487 4488 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default" 4489if test "x$ac_cv_type_u_int64_t" = xyes; then : 4490 4491else 4492 4493 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" 4494if test "x$ac_cv_type_uint64_t" = xyes; then : 4495 4496$as_echo "#define u_int64_t uint64_t" >>confdefs.h 4497 4498else 4499 as_fn_error $? "cannot find a suitable type for u_int64_t" "$LINENO" 5 4500fi 4501 4502 4503fi 4504 4505 4506 4507# Struct members. 4508ac_fn_c_check_member "$LINENO" "DIR" "dd_fd" "ac_cv_member_DIR_dd_fd" "#include <sys/types.h> 4509#include <dirent.h> 4510" 4511if test "x$ac_cv_member_DIR_dd_fd" = xyes; then : 4512 4513cat >>confdefs.h <<_ACEOF 4514#define HAVE_DIR_DD_FD 1 4515_ACEOF 4516 4517 4518fi 4519ac_fn_c_check_member "$LINENO" "DIR" "__dd_fd" "ac_cv_member_DIR___dd_fd" "#include <sys/types.h> 4520#include <dirent.h> 4521" 4522if test "x$ac_cv_member_DIR___dd_fd" = xyes; then : 4523 4524cat >>confdefs.h <<_ACEOF 4525#define HAVE_DIR___DD_FD 1 4526_ACEOF 4527 4528 4529fi 4530ac_fn_c_check_member "$LINENO" "struct dirent" "d_namlen" "ac_cv_member_struct_dirent_d_namlen" "#include <sys/types.h> 4531#include <dirent.h> 4532" 4533if test "x$ac_cv_member_struct_dirent_d_namlen" = xyes; then : 4534 4535cat >>confdefs.h <<_ACEOF 4536#define HAVE_STRUCT_DIRENT_D_NAMLEN 1 4537_ACEOF 4538 4539 4540fi 4541 4542ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "#include <sys/stat.h> 4543" 4544if test "x$ac_cv_member_struct_stat_st_flags" = xyes; then : 4545 4546cat >>confdefs.h <<_ACEOF 4547#define HAVE_STRUCT_STAT_ST_FLAGS 1 4548_ACEOF 4549 4550 4551fi 4552ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "#include <sys/stat.h> 4553" 4554if test "x$ac_cv_member_struct_stat_st_gen" = xyes; then : 4555 4556cat >>confdefs.h <<_ACEOF 4557#define HAVE_STRUCT_STAT_ST_GEN 1 4558_ACEOF 4559 4560 4561fi 4562ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "#include <sys/stat.h> 4563" 4564if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then : 4565 4566cat >>confdefs.h <<_ACEOF 4567#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 4568_ACEOF 4569 4570 4571fi 4572ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/stat.h> 4573" 4574if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes; then : 4575 4576cat >>confdefs.h <<_ACEOF 4577#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1 4578_ACEOF 4579 4580 4581fi 4582ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "#include <sys/stat.h> 4583" 4584if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then : 4585 4586cat >>confdefs.h <<_ACEOF 4587#define HAVE_STRUCT_STAT_ST_ATIM 1 4588_ACEOF 4589 4590 4591fi 4592ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "#include <sys/stat.h> 4593" 4594if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes; then : 4595 4596cat >>confdefs.h <<_ACEOF 4597#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1 4598_ACEOF 4599 4600 4601fi 4602 4603ac_fn_c_check_member "$LINENO" "struct statvfs" "f_iosize" "ac_cv_member_struct_statvfs_f_iosize" "#include <sys/statvfs.h> 4604" 4605if test "x$ac_cv_member_struct_statvfs_f_iosize" = xyes; then : 4606 4607cat >>confdefs.h <<_ACEOF 4608#define HAVE_STRUCT_STATVFS_F_IOSIZE 1 4609_ACEOF 4610 4611 4612fi 4613 4614ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h> 4615" 4616if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then : 4617 4618cat >>confdefs.h <<_ACEOF 4619#define HAVE_STRUCT_TM_TM_GMTOFF 1 4620_ACEOF 4621 4622 4623fi 4624 4625 4626# Global variable decls. 4627ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" " 4628#include <stdio.h> 4629 4630" 4631if test "x$ac_cv_have_decl_asprintf" = xyes; then : 4632 ac_have_decl=1 4633else 4634 ac_have_decl=0 4635fi 4636 4637cat >>confdefs.h <<_ACEOF 4638#define HAVE_DECL_ASPRINTF $ac_have_decl 4639_ACEOF 4640ac_fn_c_check_decl "$LINENO" "asnprintf" "ac_cv_have_decl_asnprintf" " 4641#include <stdio.h> 4642 4643" 4644if test "x$ac_cv_have_decl_asnprintf" = xyes; then : 4645 ac_have_decl=1 4646else 4647 ac_have_decl=0 4648fi 4649 4650cat >>confdefs.h <<_ACEOF 4651#define HAVE_DECL_ASNPRINTF $ac_have_decl 4652_ACEOF 4653ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" " 4654#include <stdio.h> 4655 4656" 4657if test "x$ac_cv_have_decl_vasprintf" = xyes; then : 4658 ac_have_decl=1 4659else 4660 ac_have_decl=0 4661fi 4662 4663cat >>confdefs.h <<_ACEOF 4664#define HAVE_DECL_VASPRINTF $ac_have_decl 4665_ACEOF 4666ac_fn_c_check_decl "$LINENO" "vasnprintf" "ac_cv_have_decl_vasnprintf" " 4667#include <stdio.h> 4668 4669" 4670if test "x$ac_cv_have_decl_vasnprintf" = xyes; then : 4671 ac_have_decl=1 4672else 4673 ac_have_decl=0 4674fi 4675 4676cat >>confdefs.h <<_ACEOF 4677#define HAVE_DECL_VASNPRINTF $ac_have_decl 4678_ACEOF 4679ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" " 4680#include <stdio.h> 4681 4682" 4683if test "x$ac_cv_have_decl_vsnprintf" = xyes; then : 4684 ac_have_decl=1 4685else 4686 ac_have_decl=0 4687fi 4688 4689cat >>confdefs.h <<_ACEOF 4690#define HAVE_DECL_VSNPRINTF $ac_have_decl 4691_ACEOF 4692ac_fn_c_check_decl "$LINENO" "fgetln" "ac_cv_have_decl_fgetln" " 4693#include <stdio.h> 4694 4695" 4696if test "x$ac_cv_have_decl_fgetln" = xyes; then : 4697 ac_have_decl=1 4698else 4699 ac_have_decl=0 4700fi 4701 4702cat >>confdefs.h <<_ACEOF 4703#define HAVE_DECL_FGETLN $ac_have_decl 4704_ACEOF 4705ac_fn_c_check_decl "$LINENO" "fparseln" "ac_cv_have_decl_fparseln" " 4706#include <stdio.h> 4707 4708" 4709if test "x$ac_cv_have_decl_fparseln" = xyes; then : 4710 ac_have_decl=1 4711else 4712 ac_have_decl=0 4713fi 4714 4715cat >>confdefs.h <<_ACEOF 4716#define HAVE_DECL_FPARSELN $ac_have_decl 4717_ACEOF 4718ac_fn_c_check_decl "$LINENO" "fpurge" "ac_cv_have_decl_fpurge" " 4719#include <stdio.h> 4720 4721" 4722if test "x$ac_cv_have_decl_fpurge" = xyes; then : 4723 ac_have_decl=1 4724else 4725 ac_have_decl=0 4726fi 4727 4728cat >>confdefs.h <<_ACEOF 4729#define HAVE_DECL_FPURGE $ac_have_decl 4730_ACEOF 4731ac_fn_c_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" " 4732#include <stdio.h> 4733 4734" 4735if test "x$ac_cv_have_decl_getdelim" = xyes; then : 4736 ac_have_decl=1 4737else 4738 ac_have_decl=0 4739fi 4740 4741cat >>confdefs.h <<_ACEOF 4742#define HAVE_DECL_GETDELIM $ac_have_decl 4743_ACEOF 4744ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" " 4745#include <stdio.h> 4746 4747" 4748if test "x$ac_cv_have_decl_getline" = xyes; then : 4749 ac_have_decl=1 4750else 4751 ac_have_decl=0 4752fi 4753 4754cat >>confdefs.h <<_ACEOF 4755#define HAVE_DECL_GETLINE $ac_have_decl 4756_ACEOF 4757ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" " 4758#include <stdio.h> 4759 4760" 4761if test "x$ac_cv_have_decl_snprintf" = xyes; then : 4762 ac_have_decl=1 4763else 4764 ac_have_decl=0 4765fi 4766 4767cat >>confdefs.h <<_ACEOF 4768#define HAVE_DECL_SNPRINTF $ac_have_decl 4769_ACEOF 4770 4771 4772ac_fn_c_check_decl "$LINENO" "atoll" "ac_cv_have_decl_atoll" " 4773#include <stdlib.h> 4774 4775" 4776if test "x$ac_cv_have_decl_atoll" = xyes; then : 4777 ac_have_decl=1 4778else 4779 ac_have_decl=0 4780fi 4781 4782cat >>confdefs.h <<_ACEOF 4783#define HAVE_DECL_ATOLL $ac_have_decl 4784_ACEOF 4785ac_fn_c_check_decl "$LINENO" "heapsort" "ac_cv_have_decl_heapsort" " 4786#include <stdlib.h> 4787 4788" 4789if test "x$ac_cv_have_decl_heapsort" = xyes; then : 4790 ac_have_decl=1 4791else 4792 ac_have_decl=0 4793fi 4794 4795cat >>confdefs.h <<_ACEOF 4796#define HAVE_DECL_HEAPSORT $ac_have_decl 4797_ACEOF 4798ac_fn_c_check_decl "$LINENO" "mkdtemp" "ac_cv_have_decl_mkdtemp" " 4799#include <stdlib.h> 4800 4801" 4802if test "x$ac_cv_have_decl_mkdtemp" = xyes; then : 4803 ac_have_decl=1 4804else 4805 ac_have_decl=0 4806fi 4807 4808cat >>confdefs.h <<_ACEOF 4809#define HAVE_DECL_MKDTEMP $ac_have_decl 4810_ACEOF 4811ac_fn_c_check_decl "$LINENO" "mkstemp" "ac_cv_have_decl_mkstemp" " 4812#include <stdlib.h> 4813 4814" 4815if test "x$ac_cv_have_decl_mkstemp" = xyes; then : 4816 ac_have_decl=1 4817else 4818 ac_have_decl=0 4819fi 4820 4821cat >>confdefs.h <<_ACEOF 4822#define HAVE_DECL_MKSTEMP $ac_have_decl 4823_ACEOF 4824ac_fn_c_check_decl "$LINENO" "reallocarr" "ac_cv_have_decl_reallocarr" " 4825#include <stdlib.h> 4826 4827" 4828if test "x$ac_cv_have_decl_reallocarr" = xyes; then : 4829 ac_have_decl=1 4830else 4831 ac_have_decl=0 4832fi 4833 4834cat >>confdefs.h <<_ACEOF 4835#define HAVE_DECL_REALLOCARR $ac_have_decl 4836_ACEOF 4837ac_fn_c_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" " 4838#include <stdlib.h> 4839 4840" 4841if test "x$ac_cv_have_decl_reallocarray" = xyes; then : 4842 ac_have_decl=1 4843else 4844 ac_have_decl=0 4845fi 4846 4847cat >>confdefs.h <<_ACEOF 4848#define HAVE_DECL_REALLOCARRAY $ac_have_decl 4849_ACEOF 4850ac_fn_c_check_decl "$LINENO" "getsubopt" "ac_cv_have_decl_getsubopt" " 4851#include <stdlib.h> 4852 4853" 4854if test "x$ac_cv_have_decl_getsubopt" = xyes; then : 4855 ac_have_decl=1 4856else 4857 ac_have_decl=0 4858fi 4859 4860cat >>confdefs.h <<_ACEOF 4861#define HAVE_DECL_GETSUBOPT $ac_have_decl 4862_ACEOF 4863ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" " 4864#include <stdlib.h> 4865 4866" 4867if test "x$ac_cv_have_decl_setenv" = xyes; then : 4868 ac_have_decl=1 4869else 4870 ac_have_decl=0 4871fi 4872 4873cat >>confdefs.h <<_ACEOF 4874#define HAVE_DECL_SETENV $ac_have_decl 4875_ACEOF 4876ac_fn_c_check_decl "$LINENO" "strtoi" "ac_cv_have_decl_strtoi" " 4877#include <stdlib.h> 4878 4879" 4880if test "x$ac_cv_have_decl_strtoi" = xyes; then : 4881 ac_have_decl=1 4882else 4883 ac_have_decl=0 4884fi 4885 4886cat >>confdefs.h <<_ACEOF 4887#define HAVE_DECL_STRTOI $ac_have_decl 4888_ACEOF 4889ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" " 4890#include <stdlib.h> 4891 4892" 4893if test "x$ac_cv_have_decl_strtoll" = xyes; then : 4894 ac_have_decl=1 4895else 4896 ac_have_decl=0 4897fi 4898 4899cat >>confdefs.h <<_ACEOF 4900#define HAVE_DECL_STRTOLL $ac_have_decl 4901_ACEOF 4902ac_fn_c_check_decl "$LINENO" "strtou" "ac_cv_have_decl_strtou" " 4903#include <stdlib.h> 4904 4905" 4906if test "x$ac_cv_have_decl_strtou" = xyes; then : 4907 ac_have_decl=1 4908else 4909 ac_have_decl=0 4910fi 4911 4912cat >>confdefs.h <<_ACEOF 4913#define HAVE_DECL_STRTOU $ac_have_decl 4914_ACEOF 4915ac_fn_c_check_decl "$LINENO" "setprogname" "ac_cv_have_decl_setprogname" " 4916#include <stdlib.h> 4917 4918" 4919if test "x$ac_cv_have_decl_setprogname" = xyes; then : 4920 ac_have_decl=1 4921else 4922 ac_have_decl=0 4923fi 4924 4925cat >>confdefs.h <<_ACEOF 4926#define HAVE_DECL_SETPROGNAME $ac_have_decl 4927_ACEOF 4928ac_fn_c_check_decl "$LINENO" "getprogname" "ac_cv_have_decl_getprogname" " 4929#include <stdlib.h> 4930 4931" 4932if test "x$ac_cv_have_decl_getprogname" = xyes; then : 4933 ac_have_decl=1 4934else 4935 ac_have_decl=0 4936fi 4937 4938cat >>confdefs.h <<_ACEOF 4939#define HAVE_DECL_GETPROGNAME $ac_have_decl 4940_ACEOF 4941 4942 4943ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" " 4944#include <libgen.h> 4945 4946" 4947if test "x$ac_cv_have_decl_basename" = xyes; then : 4948 ac_have_decl=1 4949else 4950 ac_have_decl=0 4951fi 4952 4953cat >>confdefs.h <<_ACEOF 4954#define HAVE_DECL_BASENAME $ac_have_decl 4955_ACEOF 4956ac_fn_c_check_decl "$LINENO" "dirname" "ac_cv_have_decl_dirname" " 4957#include <libgen.h> 4958 4959" 4960if test "x$ac_cv_have_decl_dirname" = xyes; then : 4961 ac_have_decl=1 4962else 4963 ac_have_decl=0 4964fi 4965 4966cat >>confdefs.h <<_ACEOF 4967#define HAVE_DECL_DIRNAME $ac_have_decl 4968_ACEOF 4969 4970 4971ac_fn_c_check_decl "$LINENO" "raise_default_signal" "ac_cv_have_decl_raise_default_signal" " 4972#include <util.h> 4973 4974" 4975if test "x$ac_cv_have_decl_raise_default_signal" = xyes; then : 4976 ac_have_decl=1 4977else 4978 ac_have_decl=0 4979fi 4980 4981cat >>confdefs.h <<_ACEOF 4982#define HAVE_DECL_RAISE_DEFAULT_SIGNAL $ac_have_decl 4983_ACEOF 4984 4985 4986ac_fn_c_check_decl "$LINENO" "issetugid" "ac_cv_have_decl_issetugid" " 4987#include <unistd.h> 4988 4989" 4990if test "x$ac_cv_have_decl_issetugid" = xyes; then : 4991 ac_have_decl=1 4992else 4993 ac_have_decl=0 4994fi 4995 4996cat >>confdefs.h <<_ACEOF 4997#define HAVE_DECL_ISSETUGID $ac_have_decl 4998_ACEOF 4999ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" " 5000#include <unistd.h> 5001 5002" 5003if test "x$ac_cv_have_decl_pread" = xyes; then : 5004 ac_have_decl=1 5005else 5006 ac_have_decl=0 5007fi 5008 5009cat >>confdefs.h <<_ACEOF 5010#define HAVE_DECL_PREAD $ac_have_decl 5011_ACEOF 5012ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" " 5013#include <unistd.h> 5014 5015" 5016if test "x$ac_cv_have_decl_pwrite" = xyes; then : 5017 ac_have_decl=1 5018else 5019 ac_have_decl=0 5020fi 5021 5022cat >>confdefs.h <<_ACEOF 5023#define HAVE_DECL_PWRITE $ac_have_decl 5024_ACEOF 5025 5026 5027ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" " 5028#include <unistd.h> 5029#include <string.h> 5030 5031" 5032if test "x$ac_cv_have_decl_strmode" = xyes; then : 5033 ac_have_decl=1 5034else 5035 ac_have_decl=0 5036fi 5037 5038cat >>confdefs.h <<_ACEOF 5039#define HAVE_DECL_STRMODE $ac_have_decl 5040_ACEOF 5041 5042 5043ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" " 5044#include <ctype.h> 5045 5046" 5047if test "x$ac_cv_have_decl_isblank" = xyes; then : 5048 ac_have_decl=1 5049else 5050 ac_have_decl=0 5051fi 5052 5053cat >>confdefs.h <<_ACEOF 5054#define HAVE_DECL_ISBLANK $ac_have_decl 5055_ACEOF 5056 5057 5058 5059ac_fn_c_check_decl "$LINENO" "optind" "ac_cv_have_decl_optind" " 5060#include <stdio.h> 5061#include <stdlib.h> 5062#include <unistd.h> 5063#ifdef HAVE_GETOPT_H 5064#include <getopt.h> 5065#endif 5066 5067" 5068if test "x$ac_cv_have_decl_optind" = xyes; then : 5069 ac_have_decl=1 5070else 5071 ac_have_decl=0 5072fi 5073 5074cat >>confdefs.h <<_ACEOF 5075#define HAVE_DECL_OPTIND $ac_have_decl 5076_ACEOF 5077ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" " 5078#include <stdio.h> 5079#include <stdlib.h> 5080#include <unistd.h> 5081#ifdef HAVE_GETOPT_H 5082#include <getopt.h> 5083#endif 5084 5085" 5086if test "x$ac_cv_have_decl_optreset" = xyes; then : 5087 ac_have_decl=1 5088else 5089 ac_have_decl=0 5090fi 5091 5092cat >>confdefs.h <<_ACEOF 5093#define HAVE_DECL_OPTRESET $ac_have_decl 5094_ACEOF 5095 5096ac_fn_c_check_decl "$LINENO" "sys_signame" "ac_cv_have_decl_sys_signame" "#include <signal.h> 5097" 5098if test "x$ac_cv_have_decl_sys_signame" = xyes; then : 5099 ac_have_decl=1 5100else 5101 ac_have_decl=0 5102fi 5103 5104cat >>confdefs.h <<_ACEOF 5105#define HAVE_DECL_SYS_SIGNAME $ac_have_decl 5106_ACEOF 5107 5108 5109# Library functions (where a .h check isn't enough). 5110# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 5111# for constant arguments. Useless! 5112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 5113$as_echo_n "checking for working alloca.h... " >&6; } 5114if ${ac_cv_working_alloca_h+:} false; then : 5115 $as_echo_n "(cached) " >&6 5116else 5117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5118/* end confdefs.h. */ 5119#include <alloca.h> 5120int 5121main () 5122{ 5123char *p = (char *) alloca (2 * sizeof (int)); 5124 if (p) return 0; 5125 ; 5126 return 0; 5127} 5128_ACEOF 5129if ac_fn_c_try_link "$LINENO"; then : 5130 ac_cv_working_alloca_h=yes 5131else 5132 ac_cv_working_alloca_h=no 5133fi 5134rm -f core conftest.err conftest.$ac_objext \ 5135 conftest$ac_exeext conftest.$ac_ext 5136fi 5137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 5138$as_echo "$ac_cv_working_alloca_h" >&6; } 5139if test $ac_cv_working_alloca_h = yes; then 5140 5141$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 5142 5143fi 5144 5145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 5146$as_echo_n "checking for alloca... " >&6; } 5147if ${ac_cv_func_alloca_works+:} false; then : 5148 $as_echo_n "(cached) " >&6 5149else 5150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5151/* end confdefs.h. */ 5152#ifdef __GNUC__ 5153# define alloca __builtin_alloca 5154#else 5155# ifdef _MSC_VER 5156# include <malloc.h> 5157# define alloca _alloca 5158# elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__) 5159# include <stdlib.h> 5160# else 5161# ifdef HAVE_ALLOCA_H 5162# include <alloca.h> 5163# else 5164# ifdef _AIX 5165 #pragma alloca 5166# else 5167# ifndef alloca /* predefined by HP cc +Olibcalls */ 5168void *alloca (size_t); 5169# endif 5170# endif 5171# endif 5172# endif 5173#endif 5174 5175int 5176main () 5177{ 5178char *p = (char *) alloca (1); 5179 if (p) return 0; 5180 ; 5181 return 0; 5182} 5183_ACEOF 5184if ac_fn_c_try_link "$LINENO"; then : 5185 ac_cv_func_alloca_works=yes 5186else 5187 ac_cv_func_alloca_works=no 5188fi 5189rm -f core conftest.err conftest.$ac_objext \ 5190 conftest$ac_exeext conftest.$ac_ext 5191fi 5192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 5193$as_echo "$ac_cv_func_alloca_works" >&6; } 5194 5195if test $ac_cv_func_alloca_works = yes; then 5196 5197$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 5198 5199else 5200 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 5201# that cause trouble. Some versions do not even contain alloca or 5202# contain a buggy version. If you still want to use their alloca, 5203# use ar to extract alloca.o from them instead of compiling alloca.c. 5204 5205ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 5206 5207$as_echo "#define C_ALLOCA 1" >>confdefs.h 5208 5209 5210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 5211$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 5212if ${ac_cv_os_cray+:} false; then : 5213 $as_echo_n "(cached) " >&6 5214else 5215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5216/* end confdefs.h. */ 5217#if defined CRAY && ! defined CRAY2 5218webecray 5219#else 5220wenotbecray 5221#endif 5222 5223_ACEOF 5224if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5225 $EGREP "webecray" >/dev/null 2>&1; then : 5226 ac_cv_os_cray=yes 5227else 5228 ac_cv_os_cray=no 5229fi 5230rm -f conftest* 5231 5232fi 5233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 5234$as_echo "$ac_cv_os_cray" >&6; } 5235if test $ac_cv_os_cray = yes; then 5236 for ac_func in _getb67 GETB67 getb67; do 5237 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 5238ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 5239if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 5240 5241cat >>confdefs.h <<_ACEOF 5242#define CRAY_STACKSEG_END $ac_func 5243_ACEOF 5244 5245 break 5246fi 5247 5248 done 5249fi 5250 5251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 5252$as_echo_n "checking stack direction for C alloca... " >&6; } 5253if ${ac_cv_c_stack_direction+:} false; then : 5254 $as_echo_n "(cached) " >&6 5255else 5256 if test "$cross_compiling" = yes; then : 5257 ac_cv_c_stack_direction=0 5258else 5259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5260/* end confdefs.h. */ 5261$ac_includes_default 5262int 5263find_stack_direction (int *addr, int depth) 5264{ 5265 int dir, dummy = 0; 5266 if (! addr) 5267 addr = &dummy; 5268 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 5269 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 5270 return dir + dummy; 5271} 5272 5273int 5274main (int argc, char **argv) 5275{ 5276 return find_stack_direction (0, argc + !argv + 20) < 0; 5277} 5278_ACEOF 5279if ac_fn_c_try_run "$LINENO"; then : 5280 ac_cv_c_stack_direction=1 5281else 5282 ac_cv_c_stack_direction=-1 5283fi 5284rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5285 conftest.$ac_objext conftest.beam conftest.$ac_ext 5286fi 5287 5288fi 5289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 5290$as_echo "$ac_cv_c_stack_direction" >&6; } 5291cat >>confdefs.h <<_ACEOF 5292#define STACK_DIRECTION $ac_cv_c_stack_direction 5293_ACEOF 5294 5295 5296fi 5297 5298for ac_func in atoll asprintf asnprintf basename devname dirfd dirname \ 5299 dispatch_semaphore_create \ 5300 dprintf esetfunc fgetln flock fpurge __fpurge futimes getline \ 5301 getopt getopt_long group_from_gid gid_from_group \ 5302 heapsort isblank issetugid lchflags lchmod lchown lutimes mkstemp \ 5303 mkdtemp poll pread putc_unlocked pwcache_userdb pwcache_groupdb \ 5304 pwrite raise_default_signal random reallocarr reallocarray setenv \ 5305 setgroupent setprogname setpassent \ 5306 snprintb_m snprintf strlcat strlcpy strmode \ 5307 strcasecmp strncasecmp strndup strnlen strsep strsuftoll strtoi \ 5308 strtoll strtou \ 5309 user_from_uid uid_from_user vasprintf vasnprintf vsnprintf 5310do : 5311 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 5312ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 5313if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 5314 cat >>confdefs.h <<_ACEOF 5315#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 5316_ACEOF 5317 5318fi 5319done 5320 5321 5322ac_fn_c_check_decl "$LINENO" "user_from_uid" "ac_cv_have_decl_user_from_uid" " 5323#include <pwd.h> 5324 5325" 5326if test "x$ac_cv_have_decl_user_from_uid" = xyes; then : 5327 ac_have_decl=1 5328else 5329 ac_have_decl=0 5330fi 5331 5332cat >>confdefs.h <<_ACEOF 5333#define HAVE_DECL_USER_FROM_UID $ac_have_decl 5334_ACEOF 5335ac_fn_c_check_decl "$LINENO" "uid_from_user" "ac_cv_have_decl_uid_from_user" " 5336#include <pwd.h> 5337 5338" 5339if test "x$ac_cv_have_decl_uid_from_user" = xyes; then : 5340 ac_have_decl=1 5341else 5342 ac_have_decl=0 5343fi 5344 5345cat >>confdefs.h <<_ACEOF 5346#define HAVE_DECL_UID_FROM_USER $ac_have_decl 5347_ACEOF 5348ac_fn_c_check_decl "$LINENO" "pwcache_userdb" "ac_cv_have_decl_pwcache_userdb" " 5349#include <pwd.h> 5350 5351" 5352if test "x$ac_cv_have_decl_pwcache_userdb" = xyes; then : 5353 ac_have_decl=1 5354else 5355 ac_have_decl=0 5356fi 5357 5358cat >>confdefs.h <<_ACEOF 5359#define HAVE_DECL_PWCACHE_USERDB $ac_have_decl 5360_ACEOF 5361 5362ac_fn_c_check_decl "$LINENO" "group_from_gid" "ac_cv_have_decl_group_from_gid" " 5363#include <grp.h> 5364 5365" 5366if test "x$ac_cv_have_decl_group_from_gid" = xyes; then : 5367 ac_have_decl=1 5368else 5369 ac_have_decl=0 5370fi 5371 5372cat >>confdefs.h <<_ACEOF 5373#define HAVE_DECL_GROUP_FROM_GID $ac_have_decl 5374_ACEOF 5375ac_fn_c_check_decl "$LINENO" "gid_from_group" "ac_cv_have_decl_gid_from_group" " 5376#include <grp.h> 5377 5378" 5379if test "x$ac_cv_have_decl_gid_from_group" = xyes; then : 5380 ac_have_decl=1 5381else 5382 ac_have_decl=0 5383fi 5384 5385cat >>confdefs.h <<_ACEOF 5386#define HAVE_DECL_GID_FROM_GROUP $ac_have_decl 5387_ACEOF 5388ac_fn_c_check_decl "$LINENO" "pwcache_groupdb" "ac_cv_have_decl_pwcache_groupdb" " 5389#include <grp.h> 5390 5391" 5392if test "x$ac_cv_have_decl_pwcache_groupdb" = xyes; then : 5393 ac_have_decl=1 5394else 5395 ac_have_decl=0 5396fi 5397 5398cat >>confdefs.h <<_ACEOF 5399#define HAVE_DECL_PWCACHE_GROUPDB $ac_have_decl 5400_ACEOF 5401 5402ac_fn_c_check_decl "$LINENO" "strcasecmp" "ac_cv_have_decl_strcasecmp" " 5403#include <string.h> 5404 5405" 5406if test "x$ac_cv_have_decl_strcasecmp" = xyes; then : 5407 ac_have_decl=1 5408else 5409 ac_have_decl=0 5410fi 5411 5412cat >>confdefs.h <<_ACEOF 5413#define HAVE_DECL_STRCASECMP $ac_have_decl 5414_ACEOF 5415ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" " 5416#include <string.h> 5417 5418" 5419if test "x$ac_cv_have_decl_strncasecmp" = xyes; then : 5420 ac_have_decl=1 5421else 5422 ac_have_decl=0 5423fi 5424 5425cat >>confdefs.h <<_ACEOF 5426#define HAVE_DECL_STRNCASECMP $ac_have_decl 5427_ACEOF 5428ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" " 5429#include <string.h> 5430 5431" 5432if test "x$ac_cv_have_decl_strlcpy" = xyes; then : 5433 ac_have_decl=1 5434else 5435 ac_have_decl=0 5436fi 5437 5438cat >>confdefs.h <<_ACEOF 5439#define HAVE_DECL_STRLCPY $ac_have_decl 5440_ACEOF 5441ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" " 5442#include <string.h> 5443 5444" 5445if test "x$ac_cv_have_decl_strlcat" = xyes; then : 5446 ac_have_decl=1 5447else 5448 ac_have_decl=0 5449fi 5450 5451cat >>confdefs.h <<_ACEOF 5452#define HAVE_DECL_STRLCAT $ac_have_decl 5453_ACEOF 5454ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" " 5455#include <string.h> 5456 5457" 5458if test "x$ac_cv_have_decl_strndup" = xyes; then : 5459 ac_have_decl=1 5460else 5461 ac_have_decl=0 5462fi 5463 5464cat >>confdefs.h <<_ACEOF 5465#define HAVE_DECL_STRNDUP $ac_have_decl 5466_ACEOF 5467ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" " 5468#include <string.h> 5469 5470" 5471if test "x$ac_cv_have_decl_strnlen" = xyes; then : 5472 ac_have_decl=1 5473else 5474 ac_have_decl=0 5475fi 5476 5477cat >>confdefs.h <<_ACEOF 5478#define HAVE_DECL_STRNLEN $ac_have_decl 5479_ACEOF 5480ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" " 5481#include <string.h> 5482 5483" 5484if test "x$ac_cv_have_decl_strsep" = xyes; then : 5485 ac_have_decl=1 5486else 5487 ac_have_decl=0 5488fi 5489 5490cat >>confdefs.h <<_ACEOF 5491#define HAVE_DECL_STRSEP $ac_have_decl 5492_ACEOF 5493 5494ac_fn_c_check_decl "$LINENO" "strsuftoll" "ac_cv_have_decl_strsuftoll" "#include <stdlib.h> 5495" 5496if test "x$ac_cv_have_decl_strsuftoll" = xyes; then : 5497 ac_have_decl=1 5498else 5499 ac_have_decl=0 5500fi 5501 5502cat >>confdefs.h <<_ACEOF 5503#define HAVE_DECL_STRSUFTOLL $ac_have_decl 5504_ACEOF 5505ac_fn_c_check_decl "$LINENO" "mi_vector_hash" "ac_cv_have_decl_mi_vector_hash" "#include <stdlib.h> 5506" 5507if test "x$ac_cv_have_decl_mi_vector_hash" = xyes; then : 5508 ac_have_decl=1 5509else 5510 ac_have_decl=0 5511fi 5512 5513cat >>confdefs.h <<_ACEOF 5514#define HAVE_DECL_MI_VECTOR_HASH $ac_have_decl 5515_ACEOF 5516 5517ac_fn_c_check_decl "$LINENO" "lchflags" "ac_cv_have_decl_lchflags" " 5518#include <sys/stat.h> 5519#include <unistd.h> 5520 5521" 5522if test "x$ac_cv_have_decl_lchflags" = xyes; then : 5523 ac_have_decl=1 5524else 5525 ac_have_decl=0 5526fi 5527 5528cat >>confdefs.h <<_ACEOF 5529#define HAVE_DECL_LCHFLAGS $ac_have_decl 5530_ACEOF 5531ac_fn_c_check_decl "$LINENO" "lchmod" "ac_cv_have_decl_lchmod" " 5532#include <sys/stat.h> 5533#include <unistd.h> 5534 5535" 5536if test "x$ac_cv_have_decl_lchmod" = xyes; then : 5537 ac_have_decl=1 5538else 5539 ac_have_decl=0 5540fi 5541 5542cat >>confdefs.h <<_ACEOF 5543#define HAVE_DECL_LCHMOD $ac_have_decl 5544_ACEOF 5545ac_fn_c_check_decl "$LINENO" "lchown" "ac_cv_have_decl_lchown" " 5546#include <sys/stat.h> 5547#include <unistd.h> 5548 5549" 5550if test "x$ac_cv_have_decl_lchown" = xyes; then : 5551 ac_have_decl=1 5552else 5553 ac_have_decl=0 5554fi 5555 5556cat >>confdefs.h <<_ACEOF 5557#define HAVE_DECL_LCHOWN $ac_have_decl 5558_ACEOF 5559 5560 5561ac_fn_c_check_decl "$LINENO" "err" "ac_cv_have_decl_err" " 5562#ifdef HAVE_ERR_H 5563#include <err.h> 5564#endif 5565 5566" 5567if test "x$ac_cv_have_decl_err" = xyes; then : 5568 ac_have_decl=1 5569else 5570 ac_have_decl=0 5571fi 5572 5573cat >>confdefs.h <<_ACEOF 5574#define HAVE_DECL_ERR $ac_have_decl 5575_ACEOF 5576ac_fn_c_check_decl "$LINENO" "errc" "ac_cv_have_decl_errc" " 5577#ifdef HAVE_ERR_H 5578#include <err.h> 5579#endif 5580 5581" 5582if test "x$ac_cv_have_decl_errc" = xyes; then : 5583 ac_have_decl=1 5584else 5585 ac_have_decl=0 5586fi 5587 5588cat >>confdefs.h <<_ACEOF 5589#define HAVE_DECL_ERRC $ac_have_decl 5590_ACEOF 5591ac_fn_c_check_decl "$LINENO" "errx" "ac_cv_have_decl_errx" " 5592#ifdef HAVE_ERR_H 5593#include <err.h> 5594#endif 5595 5596" 5597if test "x$ac_cv_have_decl_errx" = xyes; then : 5598 ac_have_decl=1 5599else 5600 ac_have_decl=0 5601fi 5602 5603cat >>confdefs.h <<_ACEOF 5604#define HAVE_DECL_ERRX $ac_have_decl 5605_ACEOF 5606ac_fn_c_check_decl "$LINENO" "verrc" "ac_cv_have_decl_verrc" " 5607#ifdef HAVE_ERR_H 5608#include <err.h> 5609#endif 5610 5611" 5612if test "x$ac_cv_have_decl_verrc" = xyes; then : 5613 ac_have_decl=1 5614else 5615 ac_have_decl=0 5616fi 5617 5618cat >>confdefs.h <<_ACEOF 5619#define HAVE_DECL_VERRC $ac_have_decl 5620_ACEOF 5621ac_fn_c_check_decl "$LINENO" "verrx" "ac_cv_have_decl_verrx" " 5622#ifdef HAVE_ERR_H 5623#include <err.h> 5624#endif 5625 5626" 5627if test "x$ac_cv_have_decl_verrx" = xyes; then : 5628 ac_have_decl=1 5629else 5630 ac_have_decl=0 5631fi 5632 5633cat >>confdefs.h <<_ACEOF 5634#define HAVE_DECL_VERRX $ac_have_decl 5635_ACEOF 5636ac_fn_c_check_decl "$LINENO" "warn" "ac_cv_have_decl_warn" " 5637#ifdef HAVE_ERR_H 5638#include <err.h> 5639#endif 5640 5641" 5642if test "x$ac_cv_have_decl_warn" = xyes; then : 5643 ac_have_decl=1 5644else 5645 ac_have_decl=0 5646fi 5647 5648cat >>confdefs.h <<_ACEOF 5649#define HAVE_DECL_WARN $ac_have_decl 5650_ACEOF 5651ac_fn_c_check_decl "$LINENO" "warnc" "ac_cv_have_decl_warnc" " 5652#ifdef HAVE_ERR_H 5653#include <err.h> 5654#endif 5655 5656" 5657if test "x$ac_cv_have_decl_warnc" = xyes; then : 5658 ac_have_decl=1 5659else 5660 ac_have_decl=0 5661fi 5662 5663cat >>confdefs.h <<_ACEOF 5664#define HAVE_DECL_WARNC $ac_have_decl 5665_ACEOF 5666ac_fn_c_check_decl "$LINENO" "warnx" "ac_cv_have_decl_warnx" " 5667#ifdef HAVE_ERR_H 5668#include <err.h> 5669#endif 5670 5671" 5672if test "x$ac_cv_have_decl_warnx" = xyes; then : 5673 ac_have_decl=1 5674else 5675 ac_have_decl=0 5676fi 5677 5678cat >>confdefs.h <<_ACEOF 5679#define HAVE_DECL_WARNX $ac_have_decl 5680_ACEOF 5681ac_fn_c_check_decl "$LINENO" "vwarnc" "ac_cv_have_decl_vwarnc" " 5682#ifdef HAVE_ERR_H 5683#include <err.h> 5684#endif 5685 5686" 5687if test "x$ac_cv_have_decl_vwarnc" = xyes; then : 5688 ac_have_decl=1 5689else 5690 ac_have_decl=0 5691fi 5692 5693cat >>confdefs.h <<_ACEOF 5694#define HAVE_DECL_VWARNC $ac_have_decl 5695_ACEOF 5696ac_fn_c_check_decl "$LINENO" "vwarnx" "ac_cv_have_decl_vwarnx" " 5697#ifdef HAVE_ERR_H 5698#include <err.h> 5699#endif 5700 5701" 5702if test "x$ac_cv_have_decl_vwarnx" = xyes; then : 5703 ac_have_decl=1 5704else 5705 ac_have_decl=0 5706fi 5707 5708cat >>confdefs.h <<_ACEOF 5709#define HAVE_DECL_VWARNX $ac_have_decl 5710_ACEOF 5711 5712 5713ac_fn_c_check_decl "$LINENO" "htobe16" "ac_cv_have_decl_htobe16" "#include <sys/types.h> 5714" 5715if test "x$ac_cv_have_decl_htobe16" = xyes; then : 5716 ac_have_decl=1 5717else 5718 ac_have_decl=0 5719fi 5720 5721cat >>confdefs.h <<_ACEOF 5722#define HAVE_DECL_HTOBE16 $ac_have_decl 5723_ACEOF 5724ac_fn_c_check_decl "$LINENO" "htobe32" "ac_cv_have_decl_htobe32" "#include <sys/types.h> 5725" 5726if test "x$ac_cv_have_decl_htobe32" = xyes; then : 5727 ac_have_decl=1 5728else 5729 ac_have_decl=0 5730fi 5731 5732cat >>confdefs.h <<_ACEOF 5733#define HAVE_DECL_HTOBE32 $ac_have_decl 5734_ACEOF 5735ac_fn_c_check_decl "$LINENO" "htobe64" "ac_cv_have_decl_htobe64" "#include <sys/types.h> 5736" 5737if test "x$ac_cv_have_decl_htobe64" = xyes; then : 5738 ac_have_decl=1 5739else 5740 ac_have_decl=0 5741fi 5742 5743cat >>confdefs.h <<_ACEOF 5744#define HAVE_DECL_HTOBE64 $ac_have_decl 5745_ACEOF 5746ac_fn_c_check_decl "$LINENO" "htole16" "ac_cv_have_decl_htole16" "#include <sys/types.h> 5747" 5748if test "x$ac_cv_have_decl_htole16" = xyes; then : 5749 ac_have_decl=1 5750else 5751 ac_have_decl=0 5752fi 5753 5754cat >>confdefs.h <<_ACEOF 5755#define HAVE_DECL_HTOLE16 $ac_have_decl 5756_ACEOF 5757ac_fn_c_check_decl "$LINENO" "htole32" "ac_cv_have_decl_htole32" "#include <sys/types.h> 5758" 5759if test "x$ac_cv_have_decl_htole32" = xyes; then : 5760 ac_have_decl=1 5761else 5762 ac_have_decl=0 5763fi 5764 5765cat >>confdefs.h <<_ACEOF 5766#define HAVE_DECL_HTOLE32 $ac_have_decl 5767_ACEOF 5768ac_fn_c_check_decl "$LINENO" "htole64" "ac_cv_have_decl_htole64" "#include <sys/types.h> 5769" 5770if test "x$ac_cv_have_decl_htole64" = xyes; then : 5771 ac_have_decl=1 5772else 5773 ac_have_decl=0 5774fi 5775 5776cat >>confdefs.h <<_ACEOF 5777#define HAVE_DECL_HTOLE64 $ac_have_decl 5778_ACEOF 5779ac_fn_c_check_decl "$LINENO" "be16toh" "ac_cv_have_decl_be16toh" "#include <sys/types.h> 5780" 5781if test "x$ac_cv_have_decl_be16toh" = xyes; then : 5782 ac_have_decl=1 5783else 5784 ac_have_decl=0 5785fi 5786 5787cat >>confdefs.h <<_ACEOF 5788#define HAVE_DECL_BE16TOH $ac_have_decl 5789_ACEOF 5790ac_fn_c_check_decl "$LINENO" "be32toh" "ac_cv_have_decl_be32toh" "#include <sys/types.h> 5791" 5792if test "x$ac_cv_have_decl_be32toh" = xyes; then : 5793 ac_have_decl=1 5794else 5795 ac_have_decl=0 5796fi 5797 5798cat >>confdefs.h <<_ACEOF 5799#define HAVE_DECL_BE32TOH $ac_have_decl 5800_ACEOF 5801ac_fn_c_check_decl "$LINENO" "be64toh" "ac_cv_have_decl_be64toh" "#include <sys/types.h> 5802" 5803if test "x$ac_cv_have_decl_be64toh" = xyes; then : 5804 ac_have_decl=1 5805else 5806 ac_have_decl=0 5807fi 5808 5809cat >>confdefs.h <<_ACEOF 5810#define HAVE_DECL_BE64TOH $ac_have_decl 5811_ACEOF 5812ac_fn_c_check_decl "$LINENO" "le16toh" "ac_cv_have_decl_le16toh" "#include <sys/types.h> 5813" 5814if test "x$ac_cv_have_decl_le16toh" = xyes; then : 5815 ac_have_decl=1 5816else 5817 ac_have_decl=0 5818fi 5819 5820cat >>confdefs.h <<_ACEOF 5821#define HAVE_DECL_LE16TOH $ac_have_decl 5822_ACEOF 5823ac_fn_c_check_decl "$LINENO" "le32toh" "ac_cv_have_decl_le32toh" "#include <sys/types.h> 5824" 5825if test "x$ac_cv_have_decl_le32toh" = xyes; then : 5826 ac_have_decl=1 5827else 5828 ac_have_decl=0 5829fi 5830 5831cat >>confdefs.h <<_ACEOF 5832#define HAVE_DECL_LE32TOH $ac_have_decl 5833_ACEOF 5834ac_fn_c_check_decl "$LINENO" "le64toh" "ac_cv_have_decl_le64toh" "#include <sys/types.h> 5835" 5836if test "x$ac_cv_have_decl_le64toh" = xyes; then : 5837 ac_have_decl=1 5838else 5839 ac_have_decl=0 5840fi 5841 5842cat >>confdefs.h <<_ACEOF 5843#define HAVE_DECL_LE64TOH $ac_have_decl 5844_ACEOF 5845 5846 5847ac_fn_c_check_decl "$LINENO" "bswap16" "ac_cv_have_decl_bswap16" "#include <machine/bswap.h> 5848" 5849if test "x$ac_cv_have_decl_bswap16" = xyes; then : 5850 ac_have_decl=1 5851else 5852 ac_have_decl=0 5853fi 5854 5855cat >>confdefs.h <<_ACEOF 5856#define HAVE_DECL_BSWAP16 $ac_have_decl 5857_ACEOF 5858ac_fn_c_check_decl "$LINENO" "bswap32" "ac_cv_have_decl_bswap32" "#include <machine/bswap.h> 5859" 5860if test "x$ac_cv_have_decl_bswap32" = xyes; then : 5861 ac_have_decl=1 5862else 5863 ac_have_decl=0 5864fi 5865 5866cat >>confdefs.h <<_ACEOF 5867#define HAVE_DECL_BSWAP32 $ac_have_decl 5868_ACEOF 5869ac_fn_c_check_decl "$LINENO" "bswap64" "ac_cv_have_decl_bswap64" "#include <machine/bswap.h> 5870" 5871if test "x$ac_cv_have_decl_bswap64" = xyes; then : 5872 ac_have_decl=1 5873else 5874 ac_have_decl=0 5875fi 5876 5877cat >>confdefs.h <<_ACEOF 5878#define HAVE_DECL_BSWAP64 $ac_have_decl 5879_ACEOF 5880 5881 5882ac_fn_c_check_decl "$LINENO" "be16enc" "ac_cv_have_decl_be16enc" "#include <sys/endian.h> 5883" 5884if test "x$ac_cv_have_decl_be16enc" = xyes; then : 5885 ac_have_decl=1 5886else 5887 ac_have_decl=0 5888fi 5889 5890cat >>confdefs.h <<_ACEOF 5891#define HAVE_DECL_BE16ENC $ac_have_decl 5892_ACEOF 5893ac_fn_c_check_decl "$LINENO" "le16enc" "ac_cv_have_decl_le16enc" "#include <sys/endian.h> 5894" 5895if test "x$ac_cv_have_decl_le16enc" = xyes; then : 5896 ac_have_decl=1 5897else 5898 ac_have_decl=0 5899fi 5900 5901cat >>confdefs.h <<_ACEOF 5902#define HAVE_DECL_LE16ENC $ac_have_decl 5903_ACEOF 5904ac_fn_c_check_decl "$LINENO" "be16dec" "ac_cv_have_decl_be16dec" "#include <sys/endian.h> 5905" 5906if test "x$ac_cv_have_decl_be16dec" = xyes; then : 5907 ac_have_decl=1 5908else 5909 ac_have_decl=0 5910fi 5911 5912cat >>confdefs.h <<_ACEOF 5913#define HAVE_DECL_BE16DEC $ac_have_decl 5914_ACEOF 5915ac_fn_c_check_decl "$LINENO" "le16dec" "ac_cv_have_decl_le16dec" "#include <sys/endian.h> 5916" 5917if test "x$ac_cv_have_decl_le16dec" = xyes; then : 5918 ac_have_decl=1 5919else 5920 ac_have_decl=0 5921fi 5922 5923cat >>confdefs.h <<_ACEOF 5924#define HAVE_DECL_LE16DEC $ac_have_decl 5925_ACEOF 5926ac_fn_c_check_decl "$LINENO" "be32enc" "ac_cv_have_decl_be32enc" "#include <sys/endian.h> 5927" 5928if test "x$ac_cv_have_decl_be32enc" = xyes; then : 5929 ac_have_decl=1 5930else 5931 ac_have_decl=0 5932fi 5933 5934cat >>confdefs.h <<_ACEOF 5935#define HAVE_DECL_BE32ENC $ac_have_decl 5936_ACEOF 5937ac_fn_c_check_decl "$LINENO" "le32enc" "ac_cv_have_decl_le32enc" "#include <sys/endian.h> 5938" 5939if test "x$ac_cv_have_decl_le32enc" = xyes; then : 5940 ac_have_decl=1 5941else 5942 ac_have_decl=0 5943fi 5944 5945cat >>confdefs.h <<_ACEOF 5946#define HAVE_DECL_LE32ENC $ac_have_decl 5947_ACEOF 5948ac_fn_c_check_decl "$LINENO" "be32dec" "ac_cv_have_decl_be32dec" "#include <sys/endian.h> 5949" 5950if test "x$ac_cv_have_decl_be32dec" = xyes; then : 5951 ac_have_decl=1 5952else 5953 ac_have_decl=0 5954fi 5955 5956cat >>confdefs.h <<_ACEOF 5957#define HAVE_DECL_BE32DEC $ac_have_decl 5958_ACEOF 5959ac_fn_c_check_decl "$LINENO" "le32dec" "ac_cv_have_decl_le32dec" "#include <sys/endian.h> 5960" 5961if test "x$ac_cv_have_decl_le32dec" = xyes; then : 5962 ac_have_decl=1 5963else 5964 ac_have_decl=0 5965fi 5966 5967cat >>confdefs.h <<_ACEOF 5968#define HAVE_DECL_LE32DEC $ac_have_decl 5969_ACEOF 5970ac_fn_c_check_decl "$LINENO" "be64enc" "ac_cv_have_decl_be64enc" "#include <sys/endian.h> 5971" 5972if test "x$ac_cv_have_decl_be64enc" = xyes; then : 5973 ac_have_decl=1 5974else 5975 ac_have_decl=0 5976fi 5977 5978cat >>confdefs.h <<_ACEOF 5979#define HAVE_DECL_BE64ENC $ac_have_decl 5980_ACEOF 5981ac_fn_c_check_decl "$LINENO" "le64enc" "ac_cv_have_decl_le64enc" "#include <sys/endian.h> 5982" 5983if test "x$ac_cv_have_decl_le64enc" = xyes; then : 5984 ac_have_decl=1 5985else 5986 ac_have_decl=0 5987fi 5988 5989cat >>confdefs.h <<_ACEOF 5990#define HAVE_DECL_LE64ENC $ac_have_decl 5991_ACEOF 5992ac_fn_c_check_decl "$LINENO" "be64dec" "ac_cv_have_decl_be64dec" "#include <sys/endian.h> 5993" 5994if test "x$ac_cv_have_decl_be64dec" = xyes; then : 5995 ac_have_decl=1 5996else 5997 ac_have_decl=0 5998fi 5999 6000cat >>confdefs.h <<_ACEOF 6001#define HAVE_DECL_BE64DEC $ac_have_decl 6002_ACEOF 6003ac_fn_c_check_decl "$LINENO" "le64dec" "ac_cv_have_decl_le64dec" "#include <sys/endian.h> 6004" 6005if test "x$ac_cv_have_decl_le64dec" = xyes; then : 6006 ac_have_decl=1 6007else 6008 ac_have_decl=0 6009fi 6010 6011cat >>confdefs.h <<_ACEOF 6012#define HAVE_DECL_LE64DEC $ac_have_decl 6013_ACEOF 6014 6015 6016ac_fn_c_check_decl "$LINENO" "fstatvfs" "ac_cv_have_decl_fstatvfs" "#include <sys/statvfs.h> 6017" 6018if test "x$ac_cv_have_decl_fstatvfs" = xyes; then : 6019 ac_have_decl=1 6020else 6021 ac_have_decl=0 6022fi 6023 6024cat >>confdefs.h <<_ACEOF 6025#define HAVE_DECL_FSTATVFS $ac_have_decl 6026_ACEOF 6027 6028 6029ac_fn_c_check_decl "$LINENO" "setgroupent" "ac_cv_have_decl_setgroupent" " 6030#include <sys/types.h> 6031#include <grp.h> 6032#include <pwd.h> 6033 6034" 6035if test "x$ac_cv_have_decl_setgroupent" = xyes; then : 6036 ac_have_decl=1 6037else 6038 ac_have_decl=0 6039fi 6040 6041cat >>confdefs.h <<_ACEOF 6042#define HAVE_DECL_SETGROUPENT $ac_have_decl 6043_ACEOF 6044ac_fn_c_check_decl "$LINENO" "setpassent" "ac_cv_have_decl_setpassent" " 6045#include <sys/types.h> 6046#include <grp.h> 6047#include <pwd.h> 6048 6049" 6050if test "x$ac_cv_have_decl_setpassent" = xyes; then : 6051 ac_have_decl=1 6052else 6053 ac_have_decl=0 6054fi 6055 6056cat >>confdefs.h <<_ACEOF 6057#define HAVE_DECL_SETPASSENT $ac_have_decl 6058_ACEOF 6059 6060 6061# regcomp() and regexec() are also names of functions in the old V8 6062# regexp package. To avoid them, we need to find out who has regfree(). 6063 6064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for regfree in -lregex" >&5 6065$as_echo_n "checking for regfree in -lregex... " >&6; } 6066if ${ac_cv_lib_regex_regfree+:} false; then : 6067 $as_echo_n "(cached) " >&6 6068else 6069 ac_check_lib_save_LIBS=$LIBS 6070LIBS="-lregex $LIBS" 6071cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6072/* end confdefs.h. */ 6073 6074/* Override any GCC internal prototype to avoid an error. 6075 Use char because int might match the return type of a GCC 6076 builtin and then its argument prototype would still apply. */ 6077#ifdef __cplusplus 6078extern "C" 6079#endif 6080char regfree (); 6081int 6082main () 6083{ 6084return regfree (); 6085 ; 6086 return 0; 6087} 6088_ACEOF 6089if ac_fn_c_try_link "$LINENO"; then : 6090 ac_cv_lib_regex_regfree=yes 6091else 6092 ac_cv_lib_regex_regfree=no 6093fi 6094rm -f core conftest.err conftest.$ac_objext \ 6095 conftest$ac_exeext conftest.$ac_ext 6096LIBS=$ac_check_lib_save_LIBS 6097fi 6098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regfree" >&5 6099$as_echo "$ac_cv_lib_regex_regfree" >&6; } 6100if test "x$ac_cv_lib_regex_regfree" = xyes; then : 6101 cat >>confdefs.h <<_ACEOF 6102#define HAVE_LIBREGEX 1 6103_ACEOF 6104 6105 LIBS="-lregex $LIBS" 6106 6107fi 6108 6109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regfree" >&5 6110$as_echo_n "checking for library containing regfree... " >&6; } 6111if ${ac_cv_search_regfree+:} false; then : 6112 $as_echo_n "(cached) " >&6 6113else 6114 ac_func_search_save_LIBS=$LIBS 6115cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6116/* end confdefs.h. */ 6117 6118/* Override any GCC internal prototype to avoid an error. 6119 Use char because int might match the return type of a GCC 6120 builtin and then its argument prototype would still apply. */ 6121#ifdef __cplusplus 6122extern "C" 6123#endif 6124char regfree (); 6125int 6126main () 6127{ 6128return regfree (); 6129 ; 6130 return 0; 6131} 6132_ACEOF 6133for ac_lib in '' rx posix; do 6134 if test -z "$ac_lib"; then 6135 ac_res="none required" 6136 else 6137 ac_res=-l$ac_lib 6138 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6139 fi 6140 if ac_fn_c_try_link "$LINENO"; then : 6141 ac_cv_search_regfree=$ac_res 6142fi 6143rm -f core conftest.err conftest.$ac_objext \ 6144 conftest$ac_exeext 6145 if ${ac_cv_search_regfree+:} false; then : 6146 break 6147fi 6148done 6149if ${ac_cv_search_regfree+:} false; then : 6150 6151else 6152 ac_cv_search_regfree=no 6153fi 6154rm conftest.$ac_ext 6155LIBS=$ac_func_search_save_LIBS 6156fi 6157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regfree" >&5 6158$as_echo "$ac_cv_search_regfree" >&6; } 6159ac_res=$ac_cv_search_regfree 6160if test "$ac_res" != no; then : 6161 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6162 6163fi 6164 6165 6166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 6167$as_echo_n "checking for clock_gettime in -lrt... " >&6; } 6168if ${ac_cv_lib_rt_clock_gettime+:} false; then : 6169 $as_echo_n "(cached) " >&6 6170else 6171 ac_check_lib_save_LIBS=$LIBS 6172LIBS="-lrt $LIBS" 6173cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6174/* end confdefs.h. */ 6175 6176/* Override any GCC internal prototype to avoid an error. 6177 Use char because int might match the return type of a GCC 6178 builtin and then its argument prototype would still apply. */ 6179#ifdef __cplusplus 6180extern "C" 6181#endif 6182char clock_gettime (); 6183int 6184main () 6185{ 6186return clock_gettime (); 6187 ; 6188 return 0; 6189} 6190_ACEOF 6191if ac_fn_c_try_link "$LINENO"; then : 6192 ac_cv_lib_rt_clock_gettime=yes 6193else 6194 ac_cv_lib_rt_clock_gettime=no 6195fi 6196rm -f core conftest.err conftest.$ac_objext \ 6197 conftest$ac_exeext conftest.$ac_ext 6198LIBS=$ac_check_lib_save_LIBS 6199fi 6200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 6201$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } 6202if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : 6203 cat >>confdefs.h <<_ACEOF 6204#define HAVE_LIBRT 1 6205_ACEOF 6206 6207 LIBS="-lrt $LIBS" 6208 6209fi 6210 6211 6212for ac_func in fparseln 6213do : 6214 ac_fn_c_check_func "$LINENO" "fparseln" "ac_cv_func_fparseln" 6215if test "x$ac_cv_func_fparseln" = xyes; then : 6216 cat >>confdefs.h <<_ACEOF 6217#define HAVE_FPARSELN 1 6218_ACEOF 6219 6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fparseln seems to work" >&5 6221$as_echo_n "checking if fparseln seems to work... " >&6; } 6222 if test "$cross_compiling" = yes; then : 6223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking farseln" >&5 6224$as_echo "$as_me: WARNING: cross compiling: not checking farseln" >&2;} 6225 6226else 6227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6228/* end confdefs.h. */ 6229 6230#define _NETBSD_SOURCE 6231#include <stdio.h> 6232#include <stdlib.h> 6233#define CONFTEST "conftest.fparseln" 6234#define COMMENT '#' 6235int 6236main(void) 6237{ 6238 static const char delim[3] = { '\0', '\0', COMMENT }; 6239 FILE *fp; 6240 char *ptr; 6241 fp = fopen(CONFTEST, "w+"); 6242 if (fp != NULL) { 6243 unlink(CONFTEST); 6244 ungetc(COMMENT, fp); 6245 ptr = fparseln(fp, NULL, NULL, delim, 6246 FPARSELN_UNESCALL); 6247 fclose(fp); 6248 if (ptr == NULL) 6249 exit(0); 6250 } 6251 exit(1); 6252} 6253 6254_ACEOF 6255if ac_fn_c_try_run "$LINENO"; then : 6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6257$as_echo "yes" >&6; } 6258else 6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6260$as_echo "no" >&6; } 6261 6262$as_echo "#define BROKEN_FPARSELN 1" >>confdefs.h 6263 6264fi 6265rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6266 conftest.$ac_objext conftest.beam conftest.$ac_ext 6267fi 6268 6269 6270fi 6271done 6272 6273 6274 6275cc_fail_unknown= 6276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=unknown-warning-option" >&5 6277$as_echo_n "checking whether C compiler accepts -Werror=unknown-warning-option... " >&6; } 6278if ${ax_cv_check_cflags___Werror_unknown_warning_option+:} false; then : 6279 $as_echo_n "(cached) " >&6 6280else 6281 6282 ax_check_save_flags=$CFLAGS 6283 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6285/* end confdefs.h. */ 6286 6287int 6288main () 6289{ 6290 6291 ; 6292 return 0; 6293} 6294_ACEOF 6295if ac_fn_c_try_compile "$LINENO"; then : 6296 ax_cv_check_cflags___Werror_unknown_warning_option=yes 6297else 6298 ax_cv_check_cflags___Werror_unknown_warning_option=no 6299fi 6300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6301 CFLAGS=$ax_check_save_flags 6302fi 6303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror_unknown_warning_option" >&5 6304$as_echo "$ax_cv_check_cflags___Werror_unknown_warning_option" >&6; } 6305if test "x$ax_cv_check_cflags___Werror_unknown_warning_option" = xyes; then : 6306 as_fn_append cc_fail_unknown -Werror=unknown-warning-option 6307else 6308 : 6309fi 6310 6311 6312 6313 6314 6315 6316as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$cc_fail_unknown_-no-cpp-precomp" | $as_tr_sh` 6317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -no-cpp-precomp" >&5 6318$as_echo_n "checking whether C compiler accepts -no-cpp-precomp... " >&6; } 6319if eval \${$as_CACHEVAR+:} false; then : 6320 $as_echo_n "(cached) " >&6 6321else 6322 6323 ax_check_save_flags=$CFLAGS 6324 CFLAGS="$CFLAGS $cc_fail_unknown -no-cpp-precomp" 6325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6326/* end confdefs.h. */ 6327 6328int 6329main () 6330{ 6331 6332 ; 6333 return 0; 6334} 6335_ACEOF 6336if ac_fn_c_try_compile "$LINENO"; then : 6337 eval "$as_CACHEVAR=yes" 6338else 6339 eval "$as_CACHEVAR=no" 6340fi 6341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6342 CFLAGS=$ax_check_save_flags 6343fi 6344eval ac_res=\$$as_CACHEVAR 6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6346$as_echo "$ac_res" >&6; } 6347if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 6348 CC_NO_CPP_PRECOMP=-no-cpp-precomp 6349else 6350 : 6351fi 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$cc_fail_unknown_-Wformat-truncation" | $as_tr_sh` 6364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-truncation" >&5 6365$as_echo_n "checking whether C compiler accepts -Wformat-truncation... " >&6; } 6366if eval \${$as_CACHEVAR+:} false; then : 6367 $as_echo_n "(cached) " >&6 6368else 6369 6370 ax_check_save_flags=$CFLAGS 6371 CFLAGS="$CFLAGS $cc_fail_unknown -Wformat-truncation" 6372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6373/* end confdefs.h. */ 6374 6375int 6376main () 6377{ 6378 6379 ; 6380 return 0; 6381} 6382_ACEOF 6383if ac_fn_c_try_compile "$LINENO"; then : 6384 eval "$as_CACHEVAR=yes" 6385else 6386 eval "$as_CACHEVAR=no" 6387fi 6388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6389 CFLAGS=$ax_check_save_flags 6390fi 6391eval ac_res=\$$as_CACHEVAR 6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6393$as_echo "$ac_res" >&6; } 6394if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 6395 CC_WNO_FORMAT_TRUNCATION=-Wno-format-truncation 6396else 6397 : 6398fi 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$cc_fail_unknown_-Wmaybe-uninitialized" | $as_tr_sh` 6410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmaybe-uninitialized" >&5 6411$as_echo_n "checking whether C compiler accepts -Wmaybe-uninitialized... " >&6; } 6412if eval \${$as_CACHEVAR+:} false; then : 6413 $as_echo_n "(cached) " >&6 6414else 6415 6416 ax_check_save_flags=$CFLAGS 6417 CFLAGS="$CFLAGS $cc_fail_unknown -Wmaybe-uninitialized" 6418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6419/* end confdefs.h. */ 6420 6421int 6422main () 6423{ 6424 6425 ; 6426 return 0; 6427} 6428_ACEOF 6429if ac_fn_c_try_compile "$LINENO"; then : 6430 eval "$as_CACHEVAR=yes" 6431else 6432 eval "$as_CACHEVAR=no" 6433fi 6434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6435 CFLAGS=$ax_check_save_flags 6436fi 6437eval ac_res=\$$as_CACHEVAR 6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6439$as_echo "$ac_res" >&6; } 6440if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 6441 CC_WNO_MAYBE_UNINITIALIZED=-Wno-maybe-uninitialized 6442else 6443 : 6444fi 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$cc_fail_unknown_-Wstringop-overflow" | $as_tr_sh` 6456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstringop-overflow" >&5 6457$as_echo_n "checking whether C compiler accepts -Wstringop-overflow... " >&6; } 6458if eval \${$as_CACHEVAR+:} false; then : 6459 $as_echo_n "(cached) " >&6 6460else 6461 6462 ax_check_save_flags=$CFLAGS 6463 CFLAGS="$CFLAGS $cc_fail_unknown -Wstringop-overflow" 6464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6465/* end confdefs.h. */ 6466 6467int 6468main () 6469{ 6470 6471 ; 6472 return 0; 6473} 6474_ACEOF 6475if ac_fn_c_try_compile "$LINENO"; then : 6476 eval "$as_CACHEVAR=yes" 6477else 6478 eval "$as_CACHEVAR=no" 6479fi 6480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6481 CFLAGS=$ax_check_save_flags 6482fi 6483eval ac_res=\$$as_CACHEVAR 6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6485$as_echo "$ac_res" >&6; } 6486if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 6487 CC_WNO_STRINGOP_OVERFLOW=-Wno-stringop-overflow 6488else 6489 : 6490fi 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$cc_fail_unknown_-Wstringop-truncation" | $as_tr_sh` 6502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstringop-truncation" >&5 6503$as_echo_n "checking whether C compiler accepts -Wstringop-truncation... " >&6; } 6504if eval \${$as_CACHEVAR+:} false; then : 6505 $as_echo_n "(cached) " >&6 6506else 6507 6508 ax_check_save_flags=$CFLAGS 6509 CFLAGS="$CFLAGS $cc_fail_unknown -Wstringop-truncation" 6510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6511/* end confdefs.h. */ 6512 6513int 6514main () 6515{ 6516 6517 ; 6518 return 0; 6519} 6520_ACEOF 6521if ac_fn_c_try_compile "$LINENO"; then : 6522 eval "$as_CACHEVAR=yes" 6523else 6524 eval "$as_CACHEVAR=no" 6525fi 6526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6527 CFLAGS=$ax_check_save_flags 6528fi 6529eval ac_res=\$$as_CACHEVAR 6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6531$as_echo "$ac_res" >&6; } 6532if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 6533 CC_WNO_STRINGOP_TRUNCATION=-Wno-stringop-truncation 6534else 6535 : 6536fi 6537 6538 6539 6540 6541 6542 6543 6544 6545cat >confcache <<\_ACEOF 6546# This file is a shell script that caches the results of configure 6547# tests run on this system so they can be shared between configure 6548# scripts and configure runs, see configure's option --config-cache. 6549# It is not useful on other systems. If it contains results you don't 6550# want to keep, you may remove or edit it. 6551# 6552# config.status only pays attention to the cache file if you give it 6553# the --recheck option to rerun configure. 6554# 6555# `ac_cv_env_foo' variables (set or unset) will be overridden when 6556# loading this file, other *unset* `ac_cv_foo' will be assigned the 6557# following values. 6558 6559_ACEOF 6560 6561# The following way of writing the cache mishandles newlines in values, 6562# but we know of no workaround that is simple, portable, and efficient. 6563# So, we kill variables containing newlines. 6564# Ultrix sh set writes to stderr and can't be redirected directly, 6565# and sets the high bit in the cache file unless we assign to the vars. 6566( 6567 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 6568 eval ac_val=\$$ac_var 6569 case $ac_val in #( 6570 *${as_nl}*) 6571 case $ac_var in #( 6572 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 6573$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 6574 esac 6575 case $ac_var in #( 6576 _ | IFS | as_nl) ;; #( 6577 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 6578 *) { eval $ac_var=; unset $ac_var;} ;; 6579 esac ;; 6580 esac 6581 done 6582 6583 (set) 2>&1 | 6584 case $as_nl`(ac_space=' '; set) 2>&1` in #( 6585 *${as_nl}ac_space=\ *) 6586 # `set' does not quote correctly, so add quotes: double-quote 6587 # substitution turns \\\\ into \\, and sed turns \\ into \. 6588 sed -n \ 6589 "s/'/'\\\\''/g; 6590 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 6591 ;; #( 6592 *) 6593 # `set' quotes correctly as required by POSIX, so do not add quotes. 6594 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 6595 ;; 6596 esac | 6597 sort 6598) | 6599 sed ' 6600 /^ac_cv_env_/b end 6601 t clear 6602 :clear 6603 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 6604 t end 6605 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 6606 :end' >>confcache 6607if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 6608 if test -w "$cache_file"; then 6609 if test "x$cache_file" != "x/dev/null"; then 6610 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 6611$as_echo "$as_me: updating cache $cache_file" >&6;} 6612 if test ! -f "$cache_file" || test -h "$cache_file"; then 6613 cat confcache >"$cache_file" 6614 else 6615 case $cache_file in #( 6616 */* | ?:*) 6617 mv -f confcache "$cache_file"$$ && 6618 mv -f "$cache_file"$$ "$cache_file" ;; #( 6619 *) 6620 mv -f confcache "$cache_file" ;; 6621 esac 6622 fi 6623 fi 6624 else 6625 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 6626$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 6627 fi 6628fi 6629rm -f confcache 6630 6631test "x$prefix" = xNONE && prefix=$ac_default_prefix 6632# Let make expand exec_prefix. 6633test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 6634 6635DEFS=-DHAVE_CONFIG_H 6636 6637ac_libobjs= 6638ac_ltlibobjs= 6639U= 6640for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 6641 # 1. Remove the extension, and $U if already installed. 6642 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 6643 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 6644 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 6645 # will be set to the directory where LIBOBJS objects are built. 6646 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 6647 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 6648done 6649LIBOBJS=$ac_libobjs 6650 6651LTLIBOBJS=$ac_ltlibobjs 6652 6653 6654 6655 6656: "${CONFIG_STATUS=./config.status}" 6657ac_write_fail=0 6658ac_clean_files_save=$ac_clean_files 6659ac_clean_files="$ac_clean_files $CONFIG_STATUS" 6660{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 6661$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 6662as_write_fail=0 6663cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 6664#! $SHELL 6665# Generated by $as_me. 6666# Run this file to recreate the current configuration. 6667# Compiler output produced by configure, useful for debugging 6668# configure, is in config.log if it exists. 6669 6670debug=false 6671ac_cs_recheck=false 6672ac_cs_silent=false 6673 6674SHELL=\${CONFIG_SHELL-$SHELL} 6675export SHELL 6676_ASEOF 6677cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 6678## -------------------- ## 6679## M4sh Initialization. ## 6680## -------------------- ## 6681 6682# Be more Bourne compatible 6683DUALCASE=1; export DUALCASE # for MKS sh 6684if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 6685 emulate sh 6686 NULLCMD=: 6687 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 6688 # is contrary to our usage. Disable this feature. 6689 alias -g '${1+"$@"}'='"$@"' 6690 setopt NO_GLOB_SUBST 6691else 6692 case `(set -o) 2>/dev/null` in #( 6693 *posix*) : 6694 set -o posix ;; #( 6695 *) : 6696 ;; 6697esac 6698fi 6699 6700 6701as_nl=' 6702' 6703export as_nl 6704# Printing a long string crashes Solaris 7 /usr/bin/printf. 6705as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6706as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 6707as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 6708# Prefer a ksh shell builtin over an external printf program on Solaris, 6709# but without wasting forks for bash or zsh. 6710if test -z "$BASH_VERSION$ZSH_VERSION" \ 6711 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 6712 as_echo='print -r --' 6713 as_echo_n='print -rn --' 6714elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 6715 as_echo='printf %s\n' 6716 as_echo_n='printf %s' 6717else 6718 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 6719 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 6720 as_echo_n='/usr/ucb/echo -n' 6721 else 6722 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 6723 as_echo_n_body='eval 6724 arg=$1; 6725 case $arg in #( 6726 *"$as_nl"*) 6727 expr "X$arg" : "X\\(.*\\)$as_nl"; 6728 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 6729 esac; 6730 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 6731 ' 6732 export as_echo_n_body 6733 as_echo_n='sh -c $as_echo_n_body as_echo' 6734 fi 6735 export as_echo_body 6736 as_echo='sh -c $as_echo_body as_echo' 6737fi 6738 6739# The user is always right. 6740if test "${PATH_SEPARATOR+set}" != set; then 6741 PATH_SEPARATOR=: 6742 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 6743 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 6744 PATH_SEPARATOR=';' 6745 } 6746fi 6747 6748 6749# IFS 6750# We need space, tab and new line, in precisely that order. Quoting is 6751# there to prevent editors from complaining about space-tab. 6752# (If _AS_PATH_WALK were called with IFS unset, it would disable word 6753# splitting by setting IFS to empty value.) 6754IFS=" "" $as_nl" 6755 6756# Find who we are. Look in the path if we contain no directory separator. 6757as_myself= 6758case $0 in #(( 6759 *[\\/]* ) as_myself=$0 ;; 6760 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6761for as_dir in $PATH 6762do 6763 IFS=$as_save_IFS 6764 test -z "$as_dir" && as_dir=. 6765 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 6766 done 6767IFS=$as_save_IFS 6768 6769 ;; 6770esac 6771# We did not find ourselves, most probably we were run as `sh COMMAND' 6772# in which case we are not to be found in the path. 6773if test "x$as_myself" = x; then 6774 as_myself=$0 6775fi 6776if test ! -f "$as_myself"; then 6777 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 6778 exit 1 6779fi 6780 6781# Unset variables that we do not need and which cause bugs (e.g. in 6782# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 6783# suppresses any "Segmentation fault" message there. '((' could 6784# trigger a bug in pdksh 5.2.14. 6785for as_var in BASH_ENV ENV MAIL MAILPATH 6786do eval test x\${$as_var+set} = xset \ 6787 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 6788done 6789PS1='$ ' 6790PS2='> ' 6791PS4='+ ' 6792 6793# NLS nuisances. 6794LC_ALL=C 6795export LC_ALL 6796LANGUAGE=C 6797export LANGUAGE 6798 6799# CDPATH. 6800(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 6801 6802 6803# as_fn_error STATUS ERROR [LINENO LOG_FD] 6804# ---------------------------------------- 6805# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 6806# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 6807# script with STATUS, using 1 if that was 0. 6808as_fn_error () 6809{ 6810 as_status=$1; test $as_status -eq 0 && as_status=1 6811 if test "$4"; then 6812 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 6813 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 6814 fi 6815 $as_echo "$as_me: error: $2" >&2 6816 as_fn_exit $as_status 6817} # as_fn_error 6818 6819 6820# as_fn_set_status STATUS 6821# ----------------------- 6822# Set $? to STATUS, without forking. 6823as_fn_set_status () 6824{ 6825 return $1 6826} # as_fn_set_status 6827 6828# as_fn_exit STATUS 6829# ----------------- 6830# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 6831as_fn_exit () 6832{ 6833 set +e 6834 as_fn_set_status $1 6835 exit $1 6836} # as_fn_exit 6837 6838# as_fn_unset VAR 6839# --------------- 6840# Portably unset VAR. 6841as_fn_unset () 6842{ 6843 { eval $1=; unset $1;} 6844} 6845as_unset=as_fn_unset 6846# as_fn_append VAR VALUE 6847# ---------------------- 6848# Append the text in VALUE to the end of the definition contained in VAR. Take 6849# advantage of any shell optimizations that allow amortized linear growth over 6850# repeated appends, instead of the typical quadratic growth present in naive 6851# implementations. 6852if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 6853 eval 'as_fn_append () 6854 { 6855 eval $1+=\$2 6856 }' 6857else 6858 as_fn_append () 6859 { 6860 eval $1=\$$1\$2 6861 } 6862fi # as_fn_append 6863 6864# as_fn_arith ARG... 6865# ------------------ 6866# Perform arithmetic evaluation on the ARGs, and store the result in the 6867# global $as_val. Take advantage of shells that can avoid forks. The arguments 6868# must be portable across $(()) and expr. 6869if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 6870 eval 'as_fn_arith () 6871 { 6872 as_val=$(( $* )) 6873 }' 6874else 6875 as_fn_arith () 6876 { 6877 as_val=`expr "$@" || test $? -eq 1` 6878 } 6879fi # as_fn_arith 6880 6881 6882if expr a : '\(a\)' >/dev/null 2>&1 && 6883 test "X`expr 00001 : '.*\(...\)'`" = X001; then 6884 as_expr=expr 6885else 6886 as_expr=false 6887fi 6888 6889if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 6890 as_basename=basename 6891else 6892 as_basename=false 6893fi 6894 6895if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 6896 as_dirname=dirname 6897else 6898 as_dirname=false 6899fi 6900 6901as_me=`$as_basename -- "$0" || 6902$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 6903 X"$0" : 'X\(//\)$' \| \ 6904 X"$0" : 'X\(/\)' \| . 2>/dev/null || 6905$as_echo X/"$0" | 6906 sed '/^.*\/\([^/][^/]*\)\/*$/{ 6907 s//\1/ 6908 q 6909 } 6910 /^X\/\(\/\/\)$/{ 6911 s//\1/ 6912 q 6913 } 6914 /^X\/\(\/\).*/{ 6915 s//\1/ 6916 q 6917 } 6918 s/.*/./; q'` 6919 6920# Avoid depending upon Character Ranges. 6921as_cr_letters='abcdefghijklmnopqrstuvwxyz' 6922as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 6923as_cr_Letters=$as_cr_letters$as_cr_LETTERS 6924as_cr_digits='0123456789' 6925as_cr_alnum=$as_cr_Letters$as_cr_digits 6926 6927ECHO_C= ECHO_N= ECHO_T= 6928case `echo -n x` in #((((( 6929-n*) 6930 case `echo 'xy\c'` in 6931 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 6932 xy) ECHO_C='\c';; 6933 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 6934 ECHO_T=' ';; 6935 esac;; 6936*) 6937 ECHO_N='-n';; 6938esac 6939 6940rm -f conf$$ conf$$.exe conf$$.file 6941if test -d conf$$.dir; then 6942 rm -f conf$$.dir/conf$$.file 6943else 6944 rm -f conf$$.dir 6945 mkdir conf$$.dir 2>/dev/null 6946fi 6947if (echo >conf$$.file) 2>/dev/null; then 6948 if ln -s conf$$.file conf$$ 2>/dev/null; then 6949 as_ln_s='ln -s' 6950 # ... but there are two gotchas: 6951 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 6952 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 6953 # In both cases, we have to default to `cp -pR'. 6954 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 6955 as_ln_s='cp -pR' 6956 elif ln conf$$.file conf$$ 2>/dev/null; then 6957 as_ln_s=ln 6958 else 6959 as_ln_s='cp -pR' 6960 fi 6961else 6962 as_ln_s='cp -pR' 6963fi 6964rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 6965rmdir conf$$.dir 2>/dev/null 6966 6967 6968# as_fn_mkdir_p 6969# ------------- 6970# Create "$as_dir" as a directory, including parents if necessary. 6971as_fn_mkdir_p () 6972{ 6973 6974 case $as_dir in #( 6975 -*) as_dir=./$as_dir;; 6976 esac 6977 test -d "$as_dir" || eval $as_mkdir_p || { 6978 as_dirs= 6979 while :; do 6980 case $as_dir in #( 6981 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 6982 *) as_qdir=$as_dir;; 6983 esac 6984 as_dirs="'$as_qdir' $as_dirs" 6985 as_dir=`$as_dirname -- "$as_dir" || 6986$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6987 X"$as_dir" : 'X\(//\)[^/]' \| \ 6988 X"$as_dir" : 'X\(//\)$' \| \ 6989 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 6990$as_echo X"$as_dir" | 6991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6992 s//\1/ 6993 q 6994 } 6995 /^X\(\/\/\)[^/].*/{ 6996 s//\1/ 6997 q 6998 } 6999 /^X\(\/\/\)$/{ 7000 s//\1/ 7001 q 7002 } 7003 /^X\(\/\).*/{ 7004 s//\1/ 7005 q 7006 } 7007 s/.*/./; q'` 7008 test -d "$as_dir" && break 7009 done 7010 test -z "$as_dirs" || eval "mkdir $as_dirs" 7011 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 7012 7013 7014} # as_fn_mkdir_p 7015if mkdir -p . 2>/dev/null; then 7016 as_mkdir_p='mkdir -p "$as_dir"' 7017else 7018 test -d ./-p && rmdir ./-p 7019 as_mkdir_p=false 7020fi 7021 7022 7023# as_fn_executable_p FILE 7024# ----------------------- 7025# Test if FILE is an executable regular file. 7026as_fn_executable_p () 7027{ 7028 test -f "$1" && test -x "$1" 7029} # as_fn_executable_p 7030as_test_x='test -x' 7031as_executable_p=as_fn_executable_p 7032 7033# Sed expression to map a string onto a valid CPP name. 7034as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 7035 7036# Sed expression to map a string onto a valid variable name. 7037as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 7038 7039 7040exec 6>&1 7041## ----------------------------------- ## 7042## Main body of $CONFIG_STATUS script. ## 7043## ----------------------------------- ## 7044_ASEOF 7045test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 7046 7047cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7048# Save the log message, to keep $0 and so on meaningful, and to 7049# report actual input values of CONFIG_FILES etc. instead of their 7050# values after options handling. 7051ac_log=" 7052This file was extended by libnbcompat $as_me noversion, which was 7053generated by GNU Autoconf 2.69. Invocation command line was 7054 7055 CONFIG_FILES = $CONFIG_FILES 7056 CONFIG_HEADERS = $CONFIG_HEADERS 7057 CONFIG_LINKS = $CONFIG_LINKS 7058 CONFIG_COMMANDS = $CONFIG_COMMANDS 7059 $ $0 $@ 7060 7061on `(hostname || uname -n) 2>/dev/null | sed 1q` 7062" 7063 7064_ACEOF 7065 7066case $ac_config_files in *" 7067"*) set x $ac_config_files; shift; ac_config_files=$*;; 7068esac 7069 7070case $ac_config_headers in *" 7071"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 7072esac 7073 7074 7075cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7076# Files that config.status was made for. 7077config_files="$ac_config_files" 7078config_headers="$ac_config_headers" 7079 7080_ACEOF 7081 7082cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7083ac_cs_usage="\ 7084\`$as_me' instantiates files and other configuration actions 7085from templates according to the current configuration. Unless the files 7086and actions are specified as TAGs, all are instantiated by default. 7087 7088Usage: $0 [OPTION]... [TAG]... 7089 7090 -h, --help print this help, then exit 7091 -V, --version print version number and configuration settings, then exit 7092 --config print configuration, then exit 7093 -q, --quiet, --silent 7094 do not print progress messages 7095 -d, --debug don't remove temporary files 7096 --recheck update $as_me by reconfiguring in the same conditions 7097 --file=FILE[:TEMPLATE] 7098 instantiate the configuration file FILE 7099 --header=FILE[:TEMPLATE] 7100 instantiate the configuration header FILE 7101 7102Configuration files: 7103$config_files 7104 7105Configuration headers: 7106$config_headers 7107 7108Report bugs to <lib-bug-people@NetBSD.org>." 7109 7110_ACEOF 7111cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7112ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 7113ac_cs_version="\\ 7114libnbcompat config.status noversion 7115configured by $0, generated by GNU Autoconf 2.69, 7116 with options \\"\$ac_cs_config\\" 7117 7118Copyright (C) 2012 Free Software Foundation, Inc. 7119This config.status script is free software; the Free Software Foundation 7120gives unlimited permission to copy, distribute and modify it." 7121 7122ac_pwd='$ac_pwd' 7123srcdir='$srcdir' 7124test -n "\$AWK" || AWK=awk 7125_ACEOF 7126 7127cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7128# The default lists apply if the user does not specify any file. 7129ac_need_defaults=: 7130while test $# != 0 7131do 7132 case $1 in 7133 --*=?*) 7134 ac_option=`expr "X$1" : 'X\([^=]*\)='` 7135 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 7136 ac_shift=: 7137 ;; 7138 --*=) 7139 ac_option=`expr "X$1" : 'X\([^=]*\)='` 7140 ac_optarg= 7141 ac_shift=: 7142 ;; 7143 *) 7144 ac_option=$1 7145 ac_optarg=$2 7146 ac_shift=shift 7147 ;; 7148 esac 7149 7150 case $ac_option in 7151 # Handling of the options. 7152 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 7153 ac_cs_recheck=: ;; 7154 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 7155 $as_echo "$ac_cs_version"; exit ;; 7156 --config | --confi | --conf | --con | --co | --c ) 7157 $as_echo "$ac_cs_config"; exit ;; 7158 --debug | --debu | --deb | --de | --d | -d ) 7159 debug=: ;; 7160 --file | --fil | --fi | --f ) 7161 $ac_shift 7162 case $ac_optarg in 7163 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 7164 '') as_fn_error $? "missing file argument" ;; 7165 esac 7166 as_fn_append CONFIG_FILES " '$ac_optarg'" 7167 ac_need_defaults=false;; 7168 --header | --heade | --head | --hea ) 7169 $ac_shift 7170 case $ac_optarg in 7171 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 7172 esac 7173 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 7174 ac_need_defaults=false;; 7175 --he | --h) 7176 # Conflict between --help and --header 7177 as_fn_error $? "ambiguous option: \`$1' 7178Try \`$0 --help' for more information.";; 7179 --help | --hel | -h ) 7180 $as_echo "$ac_cs_usage"; exit ;; 7181 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 7182 | -silent | --silent | --silen | --sile | --sil | --si | --s) 7183 ac_cs_silent=: ;; 7184 7185 # This is an error. 7186 -*) as_fn_error $? "unrecognized option: \`$1' 7187Try \`$0 --help' for more information." ;; 7188 7189 *) as_fn_append ac_config_targets " $1" 7190 ac_need_defaults=false ;; 7191 7192 esac 7193 shift 7194done 7195 7196ac_configure_extra_args= 7197 7198if $ac_cs_silent; then 7199 exec 6>/dev/null 7200 ac_configure_extra_args="$ac_configure_extra_args --silent" 7201fi 7202 7203_ACEOF 7204cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7205if \$ac_cs_recheck; then 7206 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 7207 shift 7208 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 7209 CONFIG_SHELL='$SHELL' 7210 export CONFIG_SHELL 7211 exec "\$@" 7212fi 7213 7214_ACEOF 7215cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7216exec 5>>config.log 7217{ 7218 echo 7219 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 7220## Running $as_me. ## 7221_ASBOX 7222 $as_echo "$ac_log" 7223} >&5 7224 7225_ACEOF 7226cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7227_ACEOF 7228 7229cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7230 7231# Handling of arguments. 7232for ac_config_target in $ac_config_targets 7233do 7234 case $ac_config_target in 7235 "nbtool_config.h") CONFIG_HEADERS="$CONFIG_HEADERS nbtool_config.h" ;; 7236 "defs.mk") CONFIG_FILES="$CONFIG_FILES defs.mk" ;; 7237 7238 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 7239 esac 7240done 7241 7242 7243# If the user did not use the arguments to specify the items to instantiate, 7244# then the envvar interface is used. Set only those that are not. 7245# We use the long form for the default assignment because of an extremely 7246# bizarre bug on SunOS 4.1.3. 7247if $ac_need_defaults; then 7248 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 7249 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 7250fi 7251 7252# Have a temporary directory for convenience. Make it in the build tree 7253# simply because there is no reason against having it here, and in addition, 7254# creating and moving files from /tmp can sometimes cause problems. 7255# Hook for its removal unless debugging. 7256# Note that there is a small window in which the directory will not be cleaned: 7257# after its creation but before its name has been assigned to `$tmp'. 7258$debug || 7259{ 7260 tmp= ac_tmp= 7261 trap 'exit_status=$? 7262 : "${ac_tmp:=$tmp}" 7263 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 7264' 0 7265 trap 'as_fn_exit 1' 1 2 13 15 7266} 7267# Create a (secure) tmp directory for tmp files. 7268 7269{ 7270 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 7271 test -d "$tmp" 7272} || 7273{ 7274 tmp=./conf$$-$RANDOM 7275 (umask 077 && mkdir "$tmp") 7276} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 7277ac_tmp=$tmp 7278 7279# Set up the scripts for CONFIG_FILES section. 7280# No need to generate them if there are no CONFIG_FILES. 7281# This happens for instance with `./config.status config.h'. 7282if test -n "$CONFIG_FILES"; then 7283 7284 7285ac_cr=`echo X | tr X '\015'` 7286# On cygwin, bash can eat \r inside `` if the user requested igncr. 7287# But we know of no other shell where ac_cr would be empty at this 7288# point, so we can use a bashism as a fallback. 7289if test "x$ac_cr" = x; then 7290 eval ac_cr=\$\'\\r\' 7291fi 7292ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 7293if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 7294 ac_cs_awk_cr='\\r' 7295else 7296 ac_cs_awk_cr=$ac_cr 7297fi 7298 7299echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 7300_ACEOF 7301 7302 7303{ 7304 echo "cat >conf$$subs.awk <<_ACEOF" && 7305 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 7306 echo "_ACEOF" 7307} >conf$$subs.sh || 7308 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 7309ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 7310ac_delim='%!_!# ' 7311for ac_last_try in false false false false false :; do 7312 . ./conf$$subs.sh || 7313 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 7314 7315 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 7316 if test $ac_delim_n = $ac_delim_num; then 7317 break 7318 elif $ac_last_try; then 7319 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 7320 else 7321 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 7322 fi 7323done 7324rm -f conf$$subs.sh 7325 7326cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7327cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 7328_ACEOF 7329sed -n ' 7330h 7331s/^/S["/; s/!.*/"]=/ 7332p 7333g 7334s/^[^!]*!// 7335:repl 7336t repl 7337s/'"$ac_delim"'$// 7338t delim 7339:nl 7340h 7341s/\(.\{148\}\)..*/\1/ 7342t more1 7343s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 7344p 7345n 7346b repl 7347:more1 7348s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 7349p 7350g 7351s/.\{148\}// 7352t nl 7353:delim 7354h 7355s/\(.\{148\}\)..*/\1/ 7356t more2 7357s/["\\]/\\&/g; s/^/"/; s/$/"/ 7358p 7359b 7360:more2 7361s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 7362p 7363g 7364s/.\{148\}// 7365t delim 7366' <conf$$subs.awk | sed ' 7367/^[^""]/{ 7368 N 7369 s/\n// 7370} 7371' >>$CONFIG_STATUS || ac_write_fail=1 7372rm -f conf$$subs.awk 7373cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7374_ACAWK 7375cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 7376 for (key in S) S_is_set[key] = 1 7377 FS = "" 7378 7379} 7380{ 7381 line = $ 0 7382 nfields = split(line, field, "@") 7383 substed = 0 7384 len = length(field[1]) 7385 for (i = 2; i < nfields; i++) { 7386 key = field[i] 7387 keylen = length(key) 7388 if (S_is_set[key]) { 7389 value = S[key] 7390 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 7391 len += length(value) + length(field[++i]) 7392 substed = 1 7393 } else 7394 len += 1 + keylen 7395 } 7396 7397 print line 7398} 7399 7400_ACAWK 7401_ACEOF 7402cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7403if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 7404 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 7405else 7406 cat 7407fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 7408 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 7409_ACEOF 7410 7411# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 7412# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 7413# trailing colons and then remove the whole line if VPATH becomes empty 7414# (actually we leave an empty line to preserve line numbers). 7415if test "x$srcdir" = x.; then 7416 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 7417h 7418s/// 7419s/^/:/ 7420s/[ ]*$/:/ 7421s/:\$(srcdir):/:/g 7422s/:\${srcdir}:/:/g 7423s/:@srcdir@:/:/g 7424s/^:*// 7425s/:*$// 7426x 7427s/\(=[ ]*\).*/\1/ 7428G 7429s/\n// 7430s/^[^=]*=[ ]*$// 7431}' 7432fi 7433 7434cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7435fi # test -n "$CONFIG_FILES" 7436 7437# Set up the scripts for CONFIG_HEADERS section. 7438# No need to generate them if there are no CONFIG_HEADERS. 7439# This happens for instance with `./config.status Makefile'. 7440if test -n "$CONFIG_HEADERS"; then 7441cat >"$ac_tmp/defines.awk" <<\_ACAWK || 7442BEGIN { 7443_ACEOF 7444 7445# Transform confdefs.h into an awk script `defines.awk', embedded as 7446# here-document in config.status, that substitutes the proper values into 7447# config.h.in to produce config.h. 7448 7449# Create a delimiter string that does not exist in confdefs.h, to ease 7450# handling of long lines. 7451ac_delim='%!_!# ' 7452for ac_last_try in false false :; do 7453 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 7454 if test -z "$ac_tt"; then 7455 break 7456 elif $ac_last_try; then 7457 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 7458 else 7459 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 7460 fi 7461done 7462 7463# For the awk script, D is an array of macro values keyed by name, 7464# likewise P contains macro parameters if any. Preserve backslash 7465# newline sequences. 7466 7467ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 7468sed -n ' 7469s/.\{148\}/&'"$ac_delim"'/g 7470t rset 7471:rset 7472s/^[ ]*#[ ]*define[ ][ ]*/ / 7473t def 7474d 7475:def 7476s/\\$// 7477t bsnl 7478s/["\\]/\\&/g 7479s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 7480D["\1"]=" \3"/p 7481s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 7482d 7483:bsnl 7484s/["\\]/\\&/g 7485s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 7486D["\1"]=" \3\\\\\\n"\\/p 7487t cont 7488s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 7489t cont 7490d 7491:cont 7492n 7493s/.\{148\}/&'"$ac_delim"'/g 7494t clear 7495:clear 7496s/\\$// 7497t bsnlc 7498s/["\\]/\\&/g; s/^/"/; s/$/"/p 7499d 7500:bsnlc 7501s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 7502b cont 7503' <confdefs.h | sed ' 7504s/'"$ac_delim"'/"\\\ 7505"/g' >>$CONFIG_STATUS || ac_write_fail=1 7506 7507cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7508 for (key in D) D_is_set[key] = 1 7509 FS = "" 7510} 7511/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 7512 line = \$ 0 7513 split(line, arg, " ") 7514 if (arg[1] == "#") { 7515 defundef = arg[2] 7516 mac1 = arg[3] 7517 } else { 7518 defundef = substr(arg[1], 2) 7519 mac1 = arg[2] 7520 } 7521 split(mac1, mac2, "(") #) 7522 macro = mac2[1] 7523 prefix = substr(line, 1, index(line, defundef) - 1) 7524 if (D_is_set[macro]) { 7525 # Preserve the white space surrounding the "#". 7526 print prefix "define", macro P[macro] D[macro] 7527 next 7528 } else { 7529 # Replace #undef with comments. This is necessary, for example, 7530 # in the case of _POSIX_SOURCE, which is predefined and required 7531 # on some systems where configure will not decide to define it. 7532 if (defundef == "undef") { 7533 print "/*", prefix defundef, macro, "*/" 7534 next 7535 } 7536 } 7537} 7538{ print } 7539_ACAWK 7540_ACEOF 7541cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7542 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 7543fi # test -n "$CONFIG_HEADERS" 7544 7545 7546eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 7547shift 7548for ac_tag 7549do 7550 case $ac_tag in 7551 :[FHLC]) ac_mode=$ac_tag; continue;; 7552 esac 7553 case $ac_mode$ac_tag in 7554 :[FHL]*:*);; 7555 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 7556 :[FH]-) ac_tag=-:-;; 7557 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 7558 esac 7559 ac_save_IFS=$IFS 7560 IFS=: 7561 set x $ac_tag 7562 IFS=$ac_save_IFS 7563 shift 7564 ac_file=$1 7565 shift 7566 7567 case $ac_mode in 7568 :L) ac_source=$1;; 7569 :[FH]) 7570 ac_file_inputs= 7571 for ac_f 7572 do 7573 case $ac_f in 7574 -) ac_f="$ac_tmp/stdin";; 7575 *) # Look for the file first in the build tree, then in the source tree 7576 # (if the path is not absolute). The absolute path cannot be DOS-style, 7577 # because $ac_f cannot contain `:'. 7578 test -f "$ac_f" || 7579 case $ac_f in 7580 [\\/$]*) false;; 7581 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 7582 esac || 7583 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 7584 esac 7585 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 7586 as_fn_append ac_file_inputs " '$ac_f'" 7587 done 7588 7589 # Let's still pretend it is `configure' which instantiates (i.e., don't 7590 # use $as_me), people would be surprised to read: 7591 # /* config.h. Generated by config.status. */ 7592 configure_input='Generated from '` 7593 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 7594 `' by configure.' 7595 if test x"$ac_file" != x-; then 7596 configure_input="$ac_file. $configure_input" 7597 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 7598$as_echo "$as_me: creating $ac_file" >&6;} 7599 fi 7600 # Neutralize special characters interpreted by sed in replacement strings. 7601 case $configure_input in #( 7602 *\&* | *\|* | *\\* ) 7603 ac_sed_conf_input=`$as_echo "$configure_input" | 7604 sed 's/[\\\\&|]/\\\\&/g'`;; #( 7605 *) ac_sed_conf_input=$configure_input;; 7606 esac 7607 7608 case $ac_tag in 7609 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 7610 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 7611 esac 7612 ;; 7613 esac 7614 7615 ac_dir=`$as_dirname -- "$ac_file" || 7616$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7617 X"$ac_file" : 'X\(//\)[^/]' \| \ 7618 X"$ac_file" : 'X\(//\)$' \| \ 7619 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 7620$as_echo X"$ac_file" | 7621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7622 s//\1/ 7623 q 7624 } 7625 /^X\(\/\/\)[^/].*/{ 7626 s//\1/ 7627 q 7628 } 7629 /^X\(\/\/\)$/{ 7630 s//\1/ 7631 q 7632 } 7633 /^X\(\/\).*/{ 7634 s//\1/ 7635 q 7636 } 7637 s/.*/./; q'` 7638 as_dir="$ac_dir"; as_fn_mkdir_p 7639 ac_builddir=. 7640 7641case "$ac_dir" in 7642.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 7643*) 7644 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 7645 # A ".." for each directory in $ac_dir_suffix. 7646 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 7647 case $ac_top_builddir_sub in 7648 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 7649 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 7650 esac ;; 7651esac 7652ac_abs_top_builddir=$ac_pwd 7653ac_abs_builddir=$ac_pwd$ac_dir_suffix 7654# for backward compatibility: 7655ac_top_builddir=$ac_top_build_prefix 7656 7657case $srcdir in 7658 .) # We are building in place. 7659 ac_srcdir=. 7660 ac_top_srcdir=$ac_top_builddir_sub 7661 ac_abs_top_srcdir=$ac_pwd ;; 7662 [\\/]* | ?:[\\/]* ) # Absolute name. 7663 ac_srcdir=$srcdir$ac_dir_suffix; 7664 ac_top_srcdir=$srcdir 7665 ac_abs_top_srcdir=$srcdir ;; 7666 *) # Relative name. 7667 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 7668 ac_top_srcdir=$ac_top_build_prefix$srcdir 7669 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 7670esac 7671ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 7672 7673 7674 case $ac_mode in 7675 :F) 7676 # 7677 # CONFIG_FILE 7678 # 7679 7680_ACEOF 7681 7682cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7683# If the template does not know about datarootdir, expand it. 7684# FIXME: This hack should be removed a few years after 2.60. 7685ac_datarootdir_hack=; ac_datarootdir_seen= 7686ac_sed_dataroot=' 7687/datarootdir/ { 7688 p 7689 q 7690} 7691/@datadir@/p 7692/@docdir@/p 7693/@infodir@/p 7694/@localedir@/p 7695/@mandir@/p' 7696case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 7697*datarootdir*) ac_datarootdir_seen=yes;; 7698*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 7699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 7700$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 7701_ACEOF 7702cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7703 ac_datarootdir_hack=' 7704 s&@datadir@&$datadir&g 7705 s&@docdir@&$docdir&g 7706 s&@infodir@&$infodir&g 7707 s&@localedir@&$localedir&g 7708 s&@mandir@&$mandir&g 7709 s&\\\${datarootdir}&$datarootdir&g' ;; 7710esac 7711_ACEOF 7712 7713# Neutralize VPATH when `$srcdir' = `.'. 7714# Shell code in configure.ac might set extrasub. 7715# FIXME: do we really want to maintain this feature? 7716cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7717ac_sed_extra="$ac_vpsub 7718$extrasub 7719_ACEOF 7720cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7721:t 7722/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 7723s|@configure_input@|$ac_sed_conf_input|;t t 7724s&@top_builddir@&$ac_top_builddir_sub&;t t 7725s&@top_build_prefix@&$ac_top_build_prefix&;t t 7726s&@srcdir@&$ac_srcdir&;t t 7727s&@abs_srcdir@&$ac_abs_srcdir&;t t 7728s&@top_srcdir@&$ac_top_srcdir&;t t 7729s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 7730s&@builddir@&$ac_builddir&;t t 7731s&@abs_builddir@&$ac_abs_builddir&;t t 7732s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 7733$ac_datarootdir_hack 7734" 7735eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 7736 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 7737 7738test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 7739 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 7740 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 7741 "$ac_tmp/out"`; test -z "$ac_out"; } && 7742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 7743which seems to be undefined. Please make sure it is defined" >&5 7744$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 7745which seems to be undefined. Please make sure it is defined" >&2;} 7746 7747 rm -f "$ac_tmp/stdin" 7748 case $ac_file in 7749 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 7750 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 7751 esac \ 7752 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 7753 ;; 7754 :H) 7755 # 7756 # CONFIG_HEADER 7757 # 7758 if test x"$ac_file" != x-; then 7759 { 7760 $as_echo "/* $configure_input */" \ 7761 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 7762 } >"$ac_tmp/config.h" \ 7763 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 7764 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 7765 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 7766$as_echo "$as_me: $ac_file is unchanged" >&6;} 7767 else 7768 rm -f "$ac_file" 7769 mv "$ac_tmp/config.h" "$ac_file" \ 7770 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 7771 fi 7772 else 7773 $as_echo "/* $configure_input */" \ 7774 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 7775 || as_fn_error $? "could not create -" "$LINENO" 5 7776 fi 7777 ;; 7778 7779 7780 esac 7781 7782done # for ac_tag 7783 7784 7785as_fn_exit 0 7786_ACEOF 7787ac_clean_files=$ac_clean_files_save 7788 7789test $ac_write_fail = 0 || 7790 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 7791 7792 7793# configure is writing to config.log, and then calls config.status. 7794# config.status does its own redirection, appending to config.log. 7795# Unfortunately, on DOS this fails, as config.log is still kept open 7796# by configure, so config.status won't be able to write to it; its 7797# output is simply discarded. So we exec the FD to /dev/null, 7798# effectively closing config.log, so it can be properly (re)opened and 7799# appended to by config.status. When coming back to configure, we 7800# need to make the FD available again. 7801if test "$no_create" != yes; then 7802 ac_cs_success=: 7803 ac_config_status_args= 7804 test "$silent" = yes && 7805 ac_config_status_args="$ac_config_status_args --quiet" 7806 exec 5>/dev/null 7807 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 7808 exec 5>>config.log 7809 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 7810 # would make configure fail if this is the last instruction. 7811 $ac_cs_success || as_fn_exit 1 7812fi 7813if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 7814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 7815$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 7816fi 7817 7818 7819{ $as_echo "$as_me:${as_lineno-$LINENO}: ========= Configuration results =========" >&5 7820$as_echo "$as_me: ========= Configuration results =========" >&6;} 7821{ $as_echo "$as_me:${as_lineno-$LINENO}: CC $CC" >&5 7822$as_echo "$as_me: CC $CC" >&6;} 7823{ $as_echo "$as_me:${as_lineno-$LINENO}: CC_NO_CPP_PRECOMP $CC_NO_CPP_PRECOMP" >&5 7824$as_echo "$as_me: CC_NO_CPP_PRECOMP $CC_NO_CPP_PRECOMP" >&6;} 7825{ $as_echo "$as_me:${as_lineno-$LINENO}: CC_WNO_FORMAT_TRUNCATION $CC_WNO_FORMAT_TRUNCATION" >&5 7826$as_echo "$as_me: CC_WNO_FORMAT_TRUNCATION $CC_WNO_FORMAT_TRUNCATION" >&6;} 7827{ $as_echo "$as_me:${as_lineno-$LINENO}: CC_WNO_MAYBE_UNINITIALIZED $CC_WNO_MAYBE_UNINITIALIZED" >&5 7828$as_echo "$as_me: CC_WNO_MAYBE_UNINITIALIZED $CC_WNO_MAYBE_UNINITIALIZED" >&6;} 7829{ $as_echo "$as_me:${as_lineno-$LINENO}: CC_WNO_STRINGOP_OVERFLOW $CC_WNO_STRINGOP_OVERFLOW" >&5 7830$as_echo "$as_me: CC_WNO_STRINGOP_OVERFLOW $CC_WNO_STRINGOP_OVERFLOW" >&6;} 7831{ $as_echo "$as_me:${as_lineno-$LINENO}: CC_WNO_STRINGOP_TRUNCATION $CC_WNO_STRINGOP_TRUNCATION" >&5 7832$as_echo "$as_me: CC_WNO_STRINGOP_TRUNCATION $CC_WNO_STRINGOP_TRUNCATION" >&6;} 7833 7834{ $as_echo "$as_me:${as_lineno-$LINENO}: LIBS $LIBS" >&5 7835$as_echo "$as_me: LIBS $LIBS" >&6;} 7836{ $as_echo "$as_me:${as_lineno-$LINENO}: =========================================" >&5 7837$as_echo "$as_me: =========================================" >&6;} 7838