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