1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.69 for GNU Bison 2.7. 4 # 5 # Report bugs to <bug-bison (at] gnu.org>. 6 # 7 # 8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9 # 10 # 11 # This configure script is free software; the Free Software Foundation 12 # gives unlimited permission to copy, distribute and modify it. 13 ## -------------------- ## 14 ## M4sh Initialization. ## 15 ## -------------------- ## 16 17 # Be more Bourne compatible 18 DUALCASE=1; export DUALCASE # for MKS sh 19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26 else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32 esac 33 fi 34 35 36 as_nl=' 37 ' 38 export as_nl 39 # Printing a long string crashes Solaris 7 /usr/bin/printf. 40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43 # Prefer a ksh shell builtin over an external printf program on Solaris, 44 # but without wasting forks for bash or zsh. 45 if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52 else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72 fi 73 74 # The user is always right. 75 if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81 fi 82 83 84 # IFS 85 # We need space, tab and new line, in precisely that order. Quoting is 86 # there to prevent editors from complaining about space-tab. 87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 88 # splitting by setting IFS to empty value.) 89 IFS=" "" $as_nl" 90 91 # Find who we are. Look in the path if we contain no directory separator. 92 as_myself= 93 case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96 for as_dir in $PATH 97 do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102 IFS=$as_save_IFS 103 104 ;; 105 esac 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. 108 if test "x$as_myself" = x; then 109 as_myself=$0 110 fi 111 if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114 fi 115 116 # Unset variables that we do not need and which cause bugs (e.g. in 117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118 # suppresses any "Segmentation fault" message there. '((' could 119 # trigger a bug in pdksh 5.2.14. 120 for as_var in BASH_ENV ENV MAIL MAILPATH 121 do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123 done 124 PS1='$ ' 125 PS2='> ' 126 PS4='+ ' 127 128 # NLS nuisances. 129 LC_ALL=C 130 export LC_ALL 131 LANGUAGE=C 132 export LANGUAGE 133 134 # CDPATH. 135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137 # Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142 # neutralization value for shells without unset; and this also 143 # works around shells that cannot unset nonexistent variables. 144 # Preserve -v and -x to the replacement shell. 145 BASH_ENV=/dev/null 146 ENV=/dev/null 147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148 case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153 esac 154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155 # Admittedly, this is quite paranoid, since all the known shells bail 156 # out after a failed `exec'. 157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158 as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162 if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170 else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176 esac 177 fi 178 " 179 as_required="as_fn_return () { (exit \$1); } 180 as_fn_success () { as_fn_return 0; } 181 as_fn_failure () { as_fn_return 1; } 182 as_fn_ret_success () { return 0; } 183 as_fn_ret_failure () { return 1; } 184 185 exitcode=0 186 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192 else 193 exitcode=1; echo positional parameters were not saved. 194 fi 195 test x\$exitcode = x0 || exit 1 196 test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204 else 205 as_have_required=no 206 fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209 else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211 as_found=false 212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213 do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227 fi 228 fi 229 done;; 230 esac 231 as_found=false 232 done 233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236 fi; } 237 IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243 # neutralization value for shells without unset; and this also 244 # works around shells that cannot unset nonexistent variables. 245 # Preserve -v and -x to the replacement shell. 246 BASH_ENV=/dev/null 247 ENV=/dev/null 248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249 case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254 esac 255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256 # Admittedly, this is quite paranoid, since all the known shells bail 257 # out after a failed `exec'. 258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259 exit 255 260 fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and bug-bison (at] gnu.org 270 $0: about your system, including any error possibly output 271 $0: before this message. Then install a modern shell, or 272 $0: manually run the script under such a shell if you do 273 $0: have one." 274 fi 275 exit 1 276 fi 277 fi 278 fi 279 SHELL=${CONFIG_SHELL-/bin/sh} 280 export SHELL 281 # Unset more variables known to interfere with behavior of common tools. 282 CLICOLOR_FORCE= GREP_OPTIONS= 283 unset CLICOLOR_FORCE GREP_OPTIONS 284 285 ## --------------------- ## 286 ## M4sh Shell Functions. ## 287 ## --------------------- ## 288 # as_fn_unset VAR 289 # --------------- 290 # Portably unset VAR. 291 as_fn_unset () 292 { 293 { eval $1=; unset $1;} 294 } 295 as_unset=as_fn_unset 296 297 # as_fn_set_status STATUS 298 # ----------------------- 299 # Set $? to STATUS, without forking. 300 as_fn_set_status () 301 { 302 return $1 303 } # as_fn_set_status 304 305 # as_fn_exit STATUS 306 # ----------------- 307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 308 as_fn_exit () 309 { 310 set +e 311 as_fn_set_status $1 312 exit $1 313 } # as_fn_exit 314 315 # as_fn_mkdir_p 316 # ------------- 317 # Create "$as_dir" as a directory, including parents if necessary. 318 as_fn_mkdir_p () 319 { 320 321 case $as_dir in #( 322 -*) as_dir=./$as_dir;; 323 esac 324 test -d "$as_dir" || eval $as_mkdir_p || { 325 as_dirs= 326 while :; do 327 case $as_dir in #( 328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 329 *) as_qdir=$as_dir;; 330 esac 331 as_dirs="'$as_qdir' $as_dirs" 332 as_dir=`$as_dirname -- "$as_dir" || 333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 334 X"$as_dir" : 'X\(//\)[^/]' \| \ 335 X"$as_dir" : 'X\(//\)$' \| \ 336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 337 $as_echo X"$as_dir" | 338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 339 s//\1/ 340 q 341 } 342 /^X\(\/\/\)[^/].*/{ 343 s//\1/ 344 q 345 } 346 /^X\(\/\/\)$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\).*/{ 351 s//\1/ 352 q 353 } 354 s/.*/./; q'` 355 test -d "$as_dir" && break 356 done 357 test -z "$as_dirs" || eval "mkdir $as_dirs" 358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 359 360 361 } # as_fn_mkdir_p 362 363 # as_fn_executable_p FILE 364 # ----------------------- 365 # Test if FILE is an executable regular file. 366 as_fn_executable_p () 367 { 368 test -f "$1" && test -x "$1" 369 } # as_fn_executable_p 370 # as_fn_append VAR VALUE 371 # ---------------------- 372 # Append the text in VALUE to the end of the definition contained in VAR. Take 373 # advantage of any shell optimizations that allow amortized linear growth over 374 # repeated appends, instead of the typical quadratic growth present in naive 375 # implementations. 376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 377 eval 'as_fn_append () 378 { 379 eval $1+=\$2 380 }' 381 else 382 as_fn_append () 383 { 384 eval $1=\$$1\$2 385 } 386 fi # as_fn_append 387 388 # as_fn_arith ARG... 389 # ------------------ 390 # Perform arithmetic evaluation on the ARGs, and store the result in the 391 # global $as_val. Take advantage of shells that can avoid forks. The arguments 392 # must be portable across $(()) and expr. 393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 394 eval 'as_fn_arith () 395 { 396 as_val=$(( $* )) 397 }' 398 else 399 as_fn_arith () 400 { 401 as_val=`expr "$@" || test $? -eq 1` 402 } 403 fi # as_fn_arith 404 405 406 # as_fn_error STATUS ERROR [LINENO LOG_FD] 407 # ---------------------------------------- 408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 410 # script with STATUS, using 1 if that was 0. 411 as_fn_error () 412 { 413 as_status=$1; test $as_status -eq 0 && as_status=1 414 if test "$4"; then 415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 417 fi 418 $as_echo "$as_me: error: $2" >&2 419 as_fn_exit $as_status 420 } # as_fn_error 421 422 if expr a : '\(a\)' >/dev/null 2>&1 && 423 test "X`expr 00001 : '.*\(...\)'`" = X001; then 424 as_expr=expr 425 else 426 as_expr=false 427 fi 428 429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 430 as_basename=basename 431 else 432 as_basename=false 433 fi 434 435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 436 as_dirname=dirname 437 else 438 as_dirname=false 439 fi 440 441 as_me=`$as_basename -- "$0" || 442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 443 X"$0" : 'X\(//\)$' \| \ 444 X"$0" : 'X\(/\)' \| . 2>/dev/null || 445 $as_echo X/"$0" | 446 sed '/^.*\/\([^/][^/]*\)\/*$/{ 447 s//\1/ 448 q 449 } 450 /^X\/\(\/\/\)$/{ 451 s//\1/ 452 q 453 } 454 /^X\/\(\/\).*/{ 455 s//\1/ 456 q 457 } 458 s/.*/./; q'` 459 460 # Avoid depending upon Character Ranges. 461 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 464 as_cr_digits='0123456789' 465 as_cr_alnum=$as_cr_Letters$as_cr_digits 466 467 468 as_lineno_1=$LINENO as_lineno_1a=$LINENO 469 as_lineno_2=$LINENO as_lineno_2a=$LINENO 470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 473 sed -n ' 474 p 475 /[$]LINENO/= 476 ' <$as_myself | 477 sed ' 478 s/[$]LINENO.*/&-/ 479 t lineno 480 b 481 :lineno 482 N 483 :loop 484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 485 t loop 486 s/-\n.*// 487 ' >$as_me.lineno && 488 chmod +x "$as_me.lineno" || 489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 490 491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 492 # already done that, so ensure we don't try to do so again and fall 493 # in an infinite loop. This has already happened in practice. 494 _as_can_reexec=no; export _as_can_reexec 495 # Don't try to exec as it changes $[0], causing all sort of problems 496 # (the dirname of $[0] is not the place where we might find the 497 # original and so on. Autoconf is especially sensitive to this). 498 . "./$as_me.lineno" 499 # Exit status is that of the last command. 500 exit 501 } 502 503 ECHO_C= ECHO_N= ECHO_T= 504 case `echo -n x` in #((((( 505 -n*) 506 case `echo 'xy\c'` in 507 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 508 xy) ECHO_C='\c';; 509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 510 ECHO_T=' ';; 511 esac;; 512 *) 513 ECHO_N='-n';; 514 esac 515 516 rm -f conf$$ conf$$.exe conf$$.file 517 if test -d conf$$.dir; then 518 rm -f conf$$.dir/conf$$.file 519 else 520 rm -f conf$$.dir 521 mkdir conf$$.dir 2>/dev/null 522 fi 523 if (echo >conf$$.file) 2>/dev/null; then 524 if ln -s conf$$.file conf$$ 2>/dev/null; then 525 as_ln_s='ln -s' 526 # ... but there are two gotchas: 527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 529 # In both cases, we have to default to `cp -pR'. 530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 531 as_ln_s='cp -pR' 532 elif ln conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s=ln 534 else 535 as_ln_s='cp -pR' 536 fi 537 else 538 as_ln_s='cp -pR' 539 fi 540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 541 rmdir conf$$.dir 2>/dev/null 542 543 if mkdir -p . 2>/dev/null; then 544 as_mkdir_p='mkdir -p "$as_dir"' 545 else 546 test -d ./-p && rmdir ./-p 547 as_mkdir_p=false 548 fi 549 550 as_test_x='test -x' 551 as_executable_p=as_fn_executable_p 552 553 # Sed expression to map a string onto a valid CPP name. 554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 555 556 # Sed expression to map a string onto a valid variable name. 557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 558 559 560 test -n "$DJDIR" || exec 7<&0 </dev/null 561 exec 6>&1 562 563 # Name of the host. 564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 565 # so uname gets run too. 566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 567 568 # 569 # Initializations. 570 # 571 ac_default_prefix=/usr/local 572 ac_clean_files= 573 ac_config_libobj_dir=. 574 LIBOBJS= 575 cross_compiling=no 576 subdirs= 577 MFLAGS= 578 MAKEFLAGS= 579 580 # Identity of this package. 581 PACKAGE_NAME='GNU Bison' 582 PACKAGE_TARNAME='bison' 583 PACKAGE_VERSION='2.7' 584 PACKAGE_STRING='GNU Bison 2.7' 585 PACKAGE_BUGREPORT='bug-bison (at] gnu.org' 586 PACKAGE_URL='http://www.gnu.org/software/bison/' 587 588 # Factoring default headers for most tests. 589 ac_includes_default="\ 590 #include <stdio.h> 591 #ifdef HAVE_SYS_TYPES_H 592 # include <sys/types.h> 593 #endif 594 #ifdef HAVE_SYS_STAT_H 595 # include <sys/stat.h> 596 #endif 597 #ifdef STDC_HEADERS 598 # include <stdlib.h> 599 # include <stddef.h> 600 #else 601 # ifdef HAVE_STDLIB_H 602 # include <stdlib.h> 603 # endif 604 #endif 605 #ifdef HAVE_STRING_H 606 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 607 # include <memory.h> 608 # endif 609 # include <string.h> 610 #endif 611 #ifdef HAVE_STRINGS_H 612 # include <strings.h> 613 #endif 614 #ifdef HAVE_INTTYPES_H 615 # include <inttypes.h> 616 #endif 617 #ifdef HAVE_STDINT_H 618 # include <stdint.h> 619 #endif 620 #ifdef HAVE_UNISTD_H 621 # include <unistd.h> 622 #endif" 623 624 gl_use_threads_default= 625 ac_header_list= 626 ac_func_list= 627 gl_getopt_required=POSIX 628 gl_getopt_required=POSIX 629 gt_needs= 630 ac_subst_vars='gltests_LTLIBOBJS 631 gltests_LIBOBJS 632 gl_LTLIBOBJS 633 gl_LIBOBJS 634 CONFIG_INCLUDE 635 am__EXEEXT_FALSE 636 am__EXEEXT_TRUE 637 LTLIBOBJS 638 LIBOBJS 639 HAVE_JIKES 640 HAVE_JAVAC 641 HAVE_GCJ_C 642 HAVE_JAVAC_ENVVAR 643 CONF_JAVAC 644 HAVE_JIKES_IN_PATH 645 HAVE_JAVAC_IN_PATH 646 HAVE_GCJ_IN_PATH 647 HAVE_JVIEW 648 HAVE_JRE 649 HAVE_JAVA 650 HAVE_GIJ 651 HAVE_JAVA_ENVVAR 652 CLASSPATH_SEPARATOR 653 CLASSPATH 654 CONF_JAVA 655 HAVE_JVIEW_IN_PATH 656 HAVE_JRE_IN_PATH 657 HAVE_JAVA_IN_PATH 658 HAVE_GIJ_IN_PATH 659 GCC 660 AUTOM4TE 661 VALGRIND_PREBISON 662 VALGRIND 663 aclocaldir 664 BISON_LOCALEDIR 665 POSUB 666 INTLLIBS 667 LTLIBICONV 668 LIBICONV 669 INTL_MACOSX_LIBS 670 XGETTEXT_EXTRA_OPTIONS 671 MSGMERGE 672 XGETTEXT_015 673 XGETTEXT 674 GMSGFMT_015 675 MSGFMT_015 676 GMSGFMT 677 MSGFMT 678 GETTEXT_MACRO_VERSION 679 USE_NLS 680 LIBBISON_LTLIBDEPS 681 LIBBISON_LIBDEPS 682 gltests_WITNESS 683 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H 684 NEXT_WCHAR_H 685 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE 686 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE 687 LIBUNISTRING_UNIWIDTH_H 688 LIBUNISTRING_UNITYPES_H 689 HAVE_UNISTD_H 690 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H 691 NEXT_UNISTD_H 692 PTHREAD_H_DEFINES_STRUCT_TIMESPEC 693 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC 694 TIME_H_DEFINES_STRUCT_TIMESPEC 695 NEXT_AS_FIRST_DIRECTIVE_TIME_H 696 NEXT_TIME_H 697 REPLACE_TIMEGM 698 REPLACE_NANOSLEEP 699 REPLACE_MKTIME 700 REPLACE_LOCALTIME_R 701 HAVE_TIMEGM 702 HAVE_STRPTIME 703 HAVE_NANOSLEEP 704 HAVE_DECL_LOCALTIME_R 705 GNULIB_TIME_R 706 GNULIB_TIMEGM 707 GNULIB_STRPTIME 708 GNULIB_NANOSLEEP 709 GNULIB_MKTIME 710 NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H 711 NEXT_SYS_WAIT_H 712 GNULIB_WAITPID 713 WINDOWS_64_BIT_OFF_T 714 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H 715 NEXT_SYS_TYPES_H 716 NEXT_AS_FIRST_DIRECTIVE_STRING_H 717 NEXT_STRING_H 718 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H 719 NEXT_STDLIB_H 720 NEXT_AS_FIRST_DIRECTIVE_STDIO_H 721 NEXT_STDIO_H 722 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H 723 NEXT_STDDEF_H 724 GL_GENERATE_STDDEF_H_FALSE 725 GL_GENERATE_STDDEF_H_TRUE 726 STDDEF_H 727 HAVE_WCHAR_T 728 REPLACE_NULL 729 HAVE__BOOL 730 GL_GENERATE_STDBOOL_H_FALSE 731 GL_GENERATE_STDBOOL_H_TRUE 732 STDBOOL_H 733 HAVE_SPAWN_H 734 NEXT_AS_FIRST_DIRECTIVE_SPAWN_H 735 NEXT_SPAWN_H 736 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H 737 NEXT_SIGNAL_H 738 GL_GENERATE_SCHED_H_FALSE 739 GL_GENERATE_SCHED_H_TRUE 740 SCHED_H 741 HAVE_STRUCT_SCHED_PARAM 742 HAVE_SCHED_H 743 NEXT_AS_FIRST_DIRECTIVE_SCHED_H 744 NEXT_SCHED_H 745 REPLACE_RAISE 746 REPLACE_PTHREAD_SIGMASK 747 HAVE_SIGHANDLER_T 748 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T 749 HAVE_STRUCT_SIGACTION_SA_SIGACTION 750 HAVE_SIGACTION 751 HAVE_SIGINFO_T 752 HAVE_SIGSET_T 753 HAVE_RAISE 754 HAVE_PTHREAD_SIGMASK 755 HAVE_POSIX_SIGNALBLOCKING 756 GNULIB_SIGACTION 757 GNULIB_SIGPROCMASK 758 GNULIB_SIGNAL_H_SIGPIPE 759 GNULIB_RAISE 760 GNULIB_PTHREAD_SIGMASK 761 ASM_SYMBOL_PREFIX 762 REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN 763 REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2 764 REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE 765 REPLACE_POSIX_SPAWN 766 HAVE_POSIX_SPAWN_FILE_ACTIONS_T 767 HAVE_POSIX_SPAWNATTR_T 768 HAVE_POSIX_SPAWN 769 GNULIB_POSIX_SPAWNATTR_DESTROY 770 GNULIB_POSIX_SPAWNATTR_SETSIGMASK 771 GNULIB_POSIX_SPAWNATTR_GETSIGMASK 772 GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT 773 GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT 774 GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY 775 GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY 776 GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM 777 GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM 778 GNULIB_POSIX_SPAWNATTR_SETPGROUP 779 GNULIB_POSIX_SPAWNATTR_GETPGROUP 780 GNULIB_POSIX_SPAWNATTR_SETFLAGS 781 GNULIB_POSIX_SPAWNATTR_GETFLAGS 782 GNULIB_POSIX_SPAWNATTR_INIT 783 GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY 784 GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN 785 GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2 786 GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE 787 GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT 788 GNULIB_POSIX_SPAWNP 789 GNULIB_POSIX_SPAWN 790 UNDEFINE_STRTOK_R 791 REPLACE_STRTOK_R 792 REPLACE_STRSIGNAL 793 REPLACE_STRNLEN 794 REPLACE_STRNDUP 795 REPLACE_STRNCAT 796 REPLACE_STRERROR_R 797 REPLACE_STRERROR 798 REPLACE_STRCHRNUL 799 REPLACE_STRCASESTR 800 REPLACE_STRSTR 801 REPLACE_STRDUP 802 REPLACE_STPNCPY 803 REPLACE_MEMMEM 804 REPLACE_MEMCHR 805 HAVE_STRVERSCMP 806 HAVE_DECL_STRSIGNAL 807 HAVE_DECL_STRERROR_R 808 HAVE_DECL_STRTOK_R 809 HAVE_STRCASESTR 810 HAVE_STRSEP 811 HAVE_STRPBRK 812 HAVE_DECL_STRNLEN 813 HAVE_DECL_STRNDUP 814 HAVE_DECL_STRDUP 815 HAVE_STRCHRNUL 816 HAVE_STPNCPY 817 HAVE_STPCPY 818 HAVE_RAWMEMCHR 819 HAVE_DECL_MEMRCHR 820 HAVE_MEMPCPY 821 HAVE_DECL_MEMMEM 822 HAVE_MEMCHR 823 HAVE_FFSLL 824 HAVE_FFSL 825 HAVE_MBSLEN 826 GNULIB_STRVERSCMP 827 GNULIB_STRSIGNAL 828 GNULIB_STRERROR_R 829 GNULIB_STRERROR 830 GNULIB_MBSTOK_R 831 GNULIB_MBSSEP 832 GNULIB_MBSSPN 833 GNULIB_MBSPBRK 834 GNULIB_MBSCSPN 835 GNULIB_MBSCASESTR 836 GNULIB_MBSPCASECMP 837 GNULIB_MBSNCASECMP 838 GNULIB_MBSCASECMP 839 GNULIB_MBSSTR 840 GNULIB_MBSRCHR 841 GNULIB_MBSCHR 842 GNULIB_MBSNLEN 843 GNULIB_MBSLEN 844 GNULIB_STRTOK_R 845 GNULIB_STRCASESTR 846 GNULIB_STRSTR 847 GNULIB_STRSEP 848 GNULIB_STRPBRK 849 GNULIB_STRNLEN 850 GNULIB_STRNDUP 851 GNULIB_STRNCAT 852 GNULIB_STRDUP 853 GNULIB_STRCHRNUL 854 GNULIB_STPNCPY 855 GNULIB_STPCPY 856 GNULIB_RAWMEMCHR 857 GNULIB_MEMRCHR 858 GNULIB_MEMPCPY 859 GNULIB_MEMMEM 860 GNULIB_MEMCHR 861 GNULIB_FFSLL 862 GNULIB_FFSL 863 LOCALE_FR_UTF8 864 LOCALE_ZH_CN 865 LOCALE_JA 866 REPLACE_WCSWIDTH 867 REPLACE_WCWIDTH 868 REPLACE_WCSNRTOMBS 869 REPLACE_WCSRTOMBS 870 REPLACE_WCRTOMB 871 REPLACE_MBSNRTOWCS 872 REPLACE_MBSRTOWCS 873 REPLACE_MBRLEN 874 REPLACE_MBRTOWC 875 REPLACE_MBSINIT 876 REPLACE_WCTOB 877 REPLACE_BTOWC 878 REPLACE_MBSTATE_T 879 HAVE_DECL_WCWIDTH 880 HAVE_DECL_WCTOB 881 HAVE_WCSWIDTH 882 HAVE_WCSTOK 883 HAVE_WCSSTR 884 HAVE_WCSPBRK 885 HAVE_WCSSPN 886 HAVE_WCSCSPN 887 HAVE_WCSRCHR 888 HAVE_WCSCHR 889 HAVE_WCSDUP 890 HAVE_WCSXFRM 891 HAVE_WCSCOLL 892 HAVE_WCSNCASECMP 893 HAVE_WCSCASECMP 894 HAVE_WCSNCMP 895 HAVE_WCSCMP 896 HAVE_WCSNCAT 897 HAVE_WCSCAT 898 HAVE_WCPNCPY 899 HAVE_WCSNCPY 900 HAVE_WCPCPY 901 HAVE_WCSCPY 902 HAVE_WCSNLEN 903 HAVE_WCSLEN 904 HAVE_WMEMSET 905 HAVE_WMEMMOVE 906 HAVE_WMEMCPY 907 HAVE_WMEMCMP 908 HAVE_WMEMCHR 909 HAVE_WCSNRTOMBS 910 HAVE_WCSRTOMBS 911 HAVE_WCRTOMB 912 HAVE_MBSNRTOWCS 913 HAVE_MBSRTOWCS 914 HAVE_MBRLEN 915 HAVE_MBRTOWC 916 HAVE_MBSINIT 917 HAVE_BTOWC 918 GNULIB_WCSWIDTH 919 GNULIB_WCSTOK 920 GNULIB_WCSSTR 921 GNULIB_WCSPBRK 922 GNULIB_WCSSPN 923 GNULIB_WCSCSPN 924 GNULIB_WCSRCHR 925 GNULIB_WCSCHR 926 GNULIB_WCSDUP 927 GNULIB_WCSXFRM 928 GNULIB_WCSCOLL 929 GNULIB_WCSNCASECMP 930 GNULIB_WCSCASECMP 931 GNULIB_WCSNCMP 932 GNULIB_WCSCMP 933 GNULIB_WCSNCAT 934 GNULIB_WCSCAT 935 GNULIB_WCPNCPY 936 GNULIB_WCSNCPY 937 GNULIB_WCPCPY 938 GNULIB_WCSCPY 939 GNULIB_WCSNLEN 940 GNULIB_WCSLEN 941 GNULIB_WMEMSET 942 GNULIB_WMEMMOVE 943 GNULIB_WMEMCPY 944 GNULIB_WMEMCMP 945 GNULIB_WMEMCHR 946 GNULIB_WCWIDTH 947 GNULIB_WCSNRTOMBS 948 GNULIB_WCSRTOMBS 949 GNULIB_WCRTOMB 950 GNULIB_MBSNRTOWCS 951 GNULIB_MBSRTOWCS 952 GNULIB_MBRLEN 953 GNULIB_MBRTOWC 954 GNULIB_MBSINIT 955 GNULIB_WCTOB 956 GNULIB_BTOWC 957 NEXT_AS_FIRST_DIRECTIVE_MATH_H 958 NEXT_MATH_H 959 LTLIBMULTITHREAD 960 LIBMULTITHREAD 961 LTLIBTHREAD 962 LIBTHREAD 963 LIBPTH_PREFIX 964 LTLIBPTH 965 LIBPTH 966 LOCALCHARSET_TESTS_ENVIRONMENT 967 GLIBC21 968 LDEXPL_LIBM 969 LDEXP_LIBM 970 REPLACE_TOWLOWER 971 REPLACE_ISWCNTRL 972 HAVE_WCTYPE_H 973 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H 974 NEXT_WCTYPE_H 975 HAVE_WINT_T 976 HAVE_ISWCNTRL 977 REPLACE_ISWBLANK 978 HAVE_WCTRANS_T 979 HAVE_WCTYPE_T 980 HAVE_ISWBLANK 981 GNULIB_TOWCTRANS 982 GNULIB_WCTRANS 983 GNULIB_ISWCTYPE 984 GNULIB_WCTYPE 985 GNULIB_ISWBLANK 986 ISNAN_LIBM 987 ISNANL_LIBM 988 ISNAND_LIBM 989 ISNANF_LIBM 990 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H 991 NEXT_INTTYPES_H 992 UINT64_MAX_EQ_ULONG_MAX 993 UINT32_MAX_LT_UINTMAX_MAX 994 PRIPTR_PREFIX 995 PRI_MACROS_BROKEN 996 INT64_MAX_EQ_LONG_MAX 997 INT32_MAX_LT_INTMAX_MAX 998 REPLACE_STRTOIMAX 999 HAVE_DECL_STRTOUMAX 1000 HAVE_DECL_STRTOIMAX 1001 HAVE_DECL_IMAXDIV 1002 HAVE_DECL_IMAXABS 1003 GNULIB_STRTOUMAX 1004 GNULIB_STRTOIMAX 1005 GNULIB_IMAXDIV 1006 GNULIB_IMAXABS 1007 GL_GENERATE_STDINT_H_FALSE 1008 GL_GENERATE_STDINT_H_TRUE 1009 STDINT_H 1010 WINT_T_SUFFIX 1011 WCHAR_T_SUFFIX 1012 SIG_ATOMIC_T_SUFFIX 1013 SIZE_T_SUFFIX 1014 PTRDIFF_T_SUFFIX 1015 HAVE_SIGNED_WINT_T 1016 HAVE_SIGNED_WCHAR_T 1017 HAVE_SIGNED_SIG_ATOMIC_T 1018 BITSIZEOF_WINT_T 1019 BITSIZEOF_WCHAR_T 1020 BITSIZEOF_SIG_ATOMIC_T 1021 BITSIZEOF_SIZE_T 1022 BITSIZEOF_PTRDIFF_T 1023 HAVE_SYS_BITYPES_H 1024 HAVE_SYS_INTTYPES_H 1025 HAVE_STDINT_H 1026 NEXT_AS_FIRST_DIRECTIVE_STDINT_H 1027 NEXT_STDINT_H 1028 HAVE_SYS_TYPES_H 1029 HAVE_INTTYPES_H 1030 HAVE_WCHAR_H 1031 HAVE_UNSIGNED_LONG_LONG_INT 1032 HAVE_LONG_LONG_INT 1033 LTLIBINTL 1034 LIBINTL 1035 GNULIB_GL_UNISTD_H_GETOPT 1036 GETOPT_H 1037 HAVE_GETOPT_H 1038 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H 1039 NEXT_GETOPT_H 1040 WINDOWS_64_BIT_ST_SIZE 1041 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H 1042 NEXT_SYS_STAT_H 1043 REPLACE_UTIMENSAT 1044 REPLACE_STAT 1045 REPLACE_MKNOD 1046 REPLACE_MKFIFO 1047 REPLACE_MKDIR 1048 REPLACE_LSTAT 1049 REPLACE_FUTIMENS 1050 REPLACE_FSTATAT 1051 REPLACE_FSTAT 1052 HAVE_UTIMENSAT 1053 HAVE_MKNODAT 1054 HAVE_MKNOD 1055 HAVE_MKFIFOAT 1056 HAVE_MKFIFO 1057 HAVE_MKDIRAT 1058 HAVE_LSTAT 1059 HAVE_LCHMOD 1060 HAVE_FUTIMENS 1061 HAVE_FSTATAT 1062 HAVE_FCHMODAT 1063 GNULIB_UTIMENSAT 1064 GNULIB_STAT 1065 GNULIB_MKNODAT 1066 GNULIB_MKNOD 1067 GNULIB_MKFIFOAT 1068 GNULIB_MKFIFO 1069 GNULIB_MKDIRAT 1070 GNULIB_LSTAT 1071 GNULIB_LCHMOD 1072 GNULIB_FUTIMENS 1073 GNULIB_FSTATAT 1074 GNULIB_FSTAT 1075 GNULIB_FCHMODAT 1076 REPLACE_TRUNCL 1077 REPLACE_TRUNCF 1078 REPLACE_TRUNC 1079 REPLACE_SQRTL 1080 REPLACE_SIGNBIT_USING_GCC 1081 REPLACE_SIGNBIT 1082 REPLACE_ROUNDL 1083 REPLACE_ROUNDF 1084 REPLACE_ROUND 1085 REPLACE_REMAINDERL 1086 REPLACE_REMAINDERF 1087 REPLACE_REMAINDER 1088 REPLACE_NAN 1089 REPLACE_MODFL 1090 REPLACE_MODFF 1091 REPLACE_MODF 1092 REPLACE_LOGBL 1093 REPLACE_LOGBF 1094 REPLACE_LOGB 1095 REPLACE_LOG2L 1096 REPLACE_LOG2F 1097 REPLACE_LOG2 1098 REPLACE_LOG1PL 1099 REPLACE_LOG1PF 1100 REPLACE_LOG1P 1101 REPLACE_LOG10L 1102 REPLACE_LOG10F 1103 REPLACE_LOG10 1104 REPLACE_LOGL 1105 REPLACE_LOGF 1106 REPLACE_LOG 1107 REPLACE_LDEXPL 1108 REPLACE_ISNAN 1109 REPLACE_ISINF 1110 REPLACE_ISFINITE 1111 REPLACE_ILOGBF 1112 REPLACE_ILOGB 1113 REPLACE_HYPOTL 1114 REPLACE_HYPOTF 1115 REPLACE_HYPOT 1116 REPLACE_HUGE_VAL 1117 REPLACE_FREXPL 1118 REPLACE_FREXP 1119 REPLACE_FREXPF 1120 REPLACE_FMODL 1121 REPLACE_FMODF 1122 REPLACE_FMOD 1123 REPLACE_FMAL 1124 REPLACE_FMAF 1125 REPLACE_FMA 1126 REPLACE_FLOORL 1127 REPLACE_FLOORF 1128 REPLACE_FLOOR 1129 REPLACE_FABSL 1130 REPLACE_EXP2L 1131 REPLACE_EXP2 1132 REPLACE_EXPM1F 1133 REPLACE_EXPM1 1134 REPLACE_CEILL 1135 REPLACE_CEILF 1136 REPLACE_CEIL 1137 REPLACE_CBRTL 1138 REPLACE_CBRTF 1139 HAVE_DECL_TRUNCL 1140 HAVE_DECL_TRUNCF 1141 HAVE_DECL_TRUNC 1142 HAVE_DECL_TANL 1143 HAVE_DECL_SQRTL 1144 HAVE_DECL_SINL 1145 HAVE_DECL_ROUNDL 1146 HAVE_DECL_ROUNDF 1147 HAVE_DECL_ROUND 1148 HAVE_DECL_RINTF 1149 HAVE_DECL_REMAINDERL 1150 HAVE_DECL_REMAINDER 1151 HAVE_DECL_LOGB 1152 HAVE_DECL_LOG2L 1153 HAVE_DECL_LOG2F 1154 HAVE_DECL_LOG2 1155 HAVE_DECL_LOG10L 1156 HAVE_DECL_LOGL 1157 HAVE_DECL_LDEXPL 1158 HAVE_DECL_FREXPL 1159 HAVE_DECL_FLOORL 1160 HAVE_DECL_FLOORF 1161 HAVE_DECL_EXPM1L 1162 HAVE_DECL_EXP2L 1163 HAVE_DECL_EXP2F 1164 HAVE_DECL_EXP2 1165 HAVE_DECL_EXPL 1166 HAVE_DECL_COSL 1167 HAVE_DECL_COPYSIGNF 1168 HAVE_DECL_CEILL 1169 HAVE_DECL_CEILF 1170 HAVE_DECL_CBRTL 1171 HAVE_DECL_CBRTF 1172 HAVE_DECL_ATANL 1173 HAVE_DECL_ASINL 1174 HAVE_DECL_ACOSL 1175 HAVE_TANHF 1176 HAVE_TANL 1177 HAVE_TANF 1178 HAVE_SQRTL 1179 HAVE_SQRTF 1180 HAVE_SINHF 1181 HAVE_SINL 1182 HAVE_SINF 1183 HAVE_RINTL 1184 HAVE_RINT 1185 HAVE_REMAINDERF 1186 HAVE_REMAINDER 1187 HAVE_POWF 1188 HAVE_MODFL 1189 HAVE_MODFF 1190 HAVE_LOGBL 1191 HAVE_LOGBF 1192 HAVE_LOG1PL 1193 HAVE_LOG1PF 1194 HAVE_LOG1P 1195 HAVE_LOG10L 1196 HAVE_LOG10F 1197 HAVE_LOGL 1198 HAVE_LOGF 1199 HAVE_LDEXPF 1200 HAVE_ISNANL 1201 HAVE_ISNAND 1202 HAVE_ISNANF 1203 HAVE_ILOGBL 1204 HAVE_ILOGBF 1205 HAVE_ILOGB 1206 HAVE_HYPOTL 1207 HAVE_HYPOTF 1208 HAVE_FREXPF 1209 HAVE_FMODL 1210 HAVE_FMODF 1211 HAVE_FMAL 1212 HAVE_FMAF 1213 HAVE_FMA 1214 HAVE_FABSL 1215 HAVE_FABSF 1216 HAVE_EXPM1F 1217 HAVE_EXPM1 1218 HAVE_EXPL 1219 HAVE_EXPF 1220 HAVE_COSHF 1221 HAVE_COSL 1222 HAVE_COSF 1223 HAVE_COPYSIGNL 1224 HAVE_COPYSIGN 1225 HAVE_CBRTL 1226 HAVE_CBRTF 1227 HAVE_CBRT 1228 HAVE_ATAN2F 1229 HAVE_ATANL 1230 HAVE_ATANF 1231 HAVE_ASINL 1232 HAVE_ASINF 1233 HAVE_ACOSL 1234 HAVE_ACOSF 1235 GNULIB_TRUNCL 1236 GNULIB_TRUNCF 1237 GNULIB_TRUNC 1238 GNULIB_TANHF 1239 GNULIB_TANL 1240 GNULIB_TANF 1241 GNULIB_SQRTL 1242 GNULIB_SQRTF 1243 GNULIB_SINHF 1244 GNULIB_SINL 1245 GNULIB_SINF 1246 GNULIB_SIGNBIT 1247 GNULIB_ROUNDL 1248 GNULIB_ROUNDF 1249 GNULIB_ROUND 1250 GNULIB_RINTL 1251 GNULIB_RINTF 1252 GNULIB_RINT 1253 GNULIB_REMAINDERL 1254 GNULIB_REMAINDERF 1255 GNULIB_REMAINDER 1256 GNULIB_POWF 1257 GNULIB_MODFL 1258 GNULIB_MODFF 1259 GNULIB_MODF 1260 GNULIB_LOGBL 1261 GNULIB_LOGBF 1262 GNULIB_LOGB 1263 GNULIB_LOG2L 1264 GNULIB_LOG2F 1265 GNULIB_LOG2 1266 GNULIB_LOG1PL 1267 GNULIB_LOG1PF 1268 GNULIB_LOG1P 1269 GNULIB_LOG10L 1270 GNULIB_LOG10F 1271 GNULIB_LOG10 1272 GNULIB_LOGL 1273 GNULIB_LOGF 1274 GNULIB_LOG 1275 GNULIB_LDEXPL 1276 GNULIB_LDEXPF 1277 GNULIB_ISNANL 1278 GNULIB_ISNAND 1279 GNULIB_ISNANF 1280 GNULIB_ISNAN 1281 GNULIB_ISINF 1282 GNULIB_ISFINITE 1283 GNULIB_ILOGBL 1284 GNULIB_ILOGBF 1285 GNULIB_ILOGB 1286 GNULIB_HYPOTL 1287 GNULIB_HYPOTF 1288 GNULIB_HYPOT 1289 GNULIB_FREXPL 1290 GNULIB_FREXP 1291 GNULIB_FREXPF 1292 GNULIB_FMODL 1293 GNULIB_FMODF 1294 GNULIB_FMOD 1295 GNULIB_FMAL 1296 GNULIB_FMAF 1297 GNULIB_FMA 1298 GNULIB_FLOORL 1299 GNULIB_FLOORF 1300 GNULIB_FLOOR 1301 GNULIB_FABSL 1302 GNULIB_FABSF 1303 GNULIB_EXPM1L 1304 GNULIB_EXPM1F 1305 GNULIB_EXPM1 1306 GNULIB_EXP2L 1307 GNULIB_EXP2F 1308 GNULIB_EXP2 1309 GNULIB_EXPL 1310 GNULIB_EXPF 1311 GNULIB_COSHF 1312 GNULIB_COSL 1313 GNULIB_COSF 1314 GNULIB_COPYSIGNL 1315 GNULIB_COPYSIGNF 1316 GNULIB_COPYSIGN 1317 GNULIB_CEILL 1318 GNULIB_CEILF 1319 GNULIB_CEIL 1320 GNULIB_CBRTL 1321 GNULIB_CBRTF 1322 GNULIB_CBRT 1323 GNULIB_ATAN2F 1324 GNULIB_ATANL 1325 GNULIB_ATANF 1326 GNULIB_ASINL 1327 GNULIB_ASINF 1328 GNULIB_ACOSL 1329 GNULIB_ACOSF 1330 HAVE_FEATURES_H 1331 APPLE_UNIVERSAL_BUILD 1332 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1333 REPLACE_VSPRINTF 1334 REPLACE_VSNPRINTF 1335 REPLACE_VPRINTF 1336 REPLACE_VFPRINTF 1337 REPLACE_VDPRINTF 1338 REPLACE_VASPRINTF 1339 REPLACE_TMPFILE 1340 REPLACE_STDIO_WRITE_FUNCS 1341 REPLACE_STDIO_READ_FUNCS 1342 REPLACE_SPRINTF 1343 REPLACE_SNPRINTF 1344 REPLACE_RENAMEAT 1345 REPLACE_RENAME 1346 REPLACE_REMOVE 1347 REPLACE_PRINTF 1348 REPLACE_POPEN 1349 REPLACE_PERROR 1350 REPLACE_OBSTACK_PRINTF 1351 REPLACE_GETLINE 1352 REPLACE_GETDELIM 1353 REPLACE_FTELLO 1354 REPLACE_FTELL 1355 REPLACE_FSEEKO 1356 REPLACE_FSEEK 1357 REPLACE_FREOPEN 1358 REPLACE_FPURGE 1359 REPLACE_FPRINTF 1360 REPLACE_FOPEN 1361 REPLACE_FFLUSH 1362 REPLACE_FDOPEN 1363 REPLACE_FCLOSE 1364 REPLACE_DPRINTF 1365 HAVE_VDPRINTF 1366 HAVE_VASPRINTF 1367 HAVE_RENAMEAT 1368 HAVE_POPEN 1369 HAVE_PCLOSE 1370 HAVE_FTELLO 1371 HAVE_FSEEKO 1372 HAVE_DPRINTF 1373 HAVE_DECL_VSNPRINTF 1374 HAVE_DECL_SNPRINTF 1375 HAVE_DECL_OBSTACK_PRINTF 1376 HAVE_DECL_GETLINE 1377 HAVE_DECL_GETDELIM 1378 HAVE_DECL_FTELLO 1379 HAVE_DECL_FSEEKO 1380 HAVE_DECL_FPURGE 1381 GNULIB_VSPRINTF_POSIX 1382 GNULIB_VSNPRINTF 1383 GNULIB_VPRINTF_POSIX 1384 GNULIB_VPRINTF 1385 GNULIB_VFPRINTF_POSIX 1386 GNULIB_VFPRINTF 1387 GNULIB_VDPRINTF 1388 GNULIB_VSCANF 1389 GNULIB_VFSCANF 1390 GNULIB_VASPRINTF 1391 GNULIB_TMPFILE 1392 GNULIB_STDIO_H_SIGPIPE 1393 GNULIB_STDIO_H_NONBLOCKING 1394 GNULIB_SPRINTF_POSIX 1395 GNULIB_SNPRINTF 1396 GNULIB_SCANF 1397 GNULIB_RENAMEAT 1398 GNULIB_RENAME 1399 GNULIB_REMOVE 1400 GNULIB_PUTS 1401 GNULIB_PUTCHAR 1402 GNULIB_PUTC 1403 GNULIB_PRINTF_POSIX 1404 GNULIB_PRINTF 1405 GNULIB_POPEN 1406 GNULIB_PERROR 1407 GNULIB_PCLOSE 1408 GNULIB_OBSTACK_PRINTF_POSIX 1409 GNULIB_OBSTACK_PRINTF 1410 GNULIB_GETLINE 1411 GNULIB_GETDELIM 1412 GNULIB_GETCHAR 1413 GNULIB_GETC 1414 GNULIB_FWRITE 1415 GNULIB_FTELLO 1416 GNULIB_FTELL 1417 GNULIB_FSEEKO 1418 GNULIB_FSEEK 1419 GNULIB_FSCANF 1420 GNULIB_FREOPEN 1421 GNULIB_FREAD 1422 GNULIB_FPUTS 1423 GNULIB_FPUTC 1424 GNULIB_FPURGE 1425 GNULIB_FPRINTF_POSIX 1426 GNULIB_FPRINTF 1427 GNULIB_FOPEN 1428 GNULIB_FGETS 1429 GNULIB_FGETC 1430 GNULIB_FFLUSH 1431 GNULIB_FDOPEN 1432 GNULIB_FCLOSE 1433 GNULIB_DPRINTF 1434 REPLACE_ITOLD 1435 GL_GENERATE_FLOAT_H_FALSE 1436 GL_GENERATE_FLOAT_H_TRUE 1437 FLOAT_H 1438 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H 1439 NEXT_FLOAT_H 1440 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H 1441 NEXT_FCNTL_H 1442 REPLACE_OPENAT 1443 REPLACE_OPEN 1444 REPLACE_FCNTL 1445 HAVE_OPENAT 1446 HAVE_FCNTL 1447 GNULIB_OPENAT 1448 GNULIB_OPEN 1449 GNULIB_NONBLOCKING 1450 GNULIB_FCNTL 1451 EOVERFLOW_VALUE 1452 EOVERFLOW_HIDDEN 1453 ENOLINK_VALUE 1454 ENOLINK_HIDDEN 1455 EMULTIHOP_VALUE 1456 EMULTIHOP_HIDDEN 1457 GL_GENERATE_ERRNO_H_FALSE 1458 GL_GENERATE_ERRNO_H_TRUE 1459 ERRNO_H 1460 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H 1461 NEXT_ERRNO_H 1462 PRAGMA_COLUMNS 1463 PRAGMA_SYSTEM_HEADER 1464 INCLUDE_NEXT_AS_FIRST_DIRECTIVE 1465 INCLUDE_NEXT 1466 pkglibexecdir 1467 lispdir 1468 HAVE_WINSOCK2_H 1469 HAVE_MSVC_INVALID_PARAMETER_HANDLER 1470 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS 1471 UNISTD_H_HAVE_WINSOCK2_H 1472 REPLACE_WRITE 1473 REPLACE_USLEEP 1474 REPLACE_UNLINKAT 1475 REPLACE_UNLINK 1476 REPLACE_TTYNAME_R 1477 REPLACE_SYMLINK 1478 REPLACE_SLEEP 1479 REPLACE_RMDIR 1480 REPLACE_READLINK 1481 REPLACE_READ 1482 REPLACE_PWRITE 1483 REPLACE_PREAD 1484 REPLACE_LSEEK 1485 REPLACE_LINKAT 1486 REPLACE_LINK 1487 REPLACE_LCHOWN 1488 REPLACE_ISATTY 1489 REPLACE_GETPAGESIZE 1490 REPLACE_GETGROUPS 1491 REPLACE_GETLOGIN_R 1492 REPLACE_GETDOMAINNAME 1493 REPLACE_GETCWD 1494 REPLACE_FTRUNCATE 1495 REPLACE_FCHOWNAT 1496 REPLACE_DUP2 1497 REPLACE_DUP 1498 REPLACE_CLOSE 1499 REPLACE_CHOWN 1500 HAVE_SYS_PARAM_H 1501 HAVE_OS_H 1502 HAVE_DECL_TTYNAME_R 1503 HAVE_DECL_SETHOSTNAME 1504 HAVE_DECL_GETUSERSHELL 1505 HAVE_DECL_GETPAGESIZE 1506 HAVE_DECL_GETLOGIN_R 1507 HAVE_DECL_GETDOMAINNAME 1508 HAVE_DECL_FDATASYNC 1509 HAVE_DECL_FCHDIR 1510 HAVE_DECL_ENVIRON 1511 HAVE_USLEEP 1512 HAVE_UNLINKAT 1513 HAVE_SYMLINKAT 1514 HAVE_SYMLINK 1515 HAVE_SLEEP 1516 HAVE_SETHOSTNAME 1517 HAVE_READLINKAT 1518 HAVE_READLINK 1519 HAVE_PWRITE 1520 HAVE_PREAD 1521 HAVE_PIPE2 1522 HAVE_PIPE 1523 HAVE_LINKAT 1524 HAVE_LINK 1525 HAVE_LCHOWN 1526 HAVE_GROUP_MEMBER 1527 HAVE_GETPAGESIZE 1528 HAVE_GETLOGIN 1529 HAVE_GETHOSTNAME 1530 HAVE_GETGROUPS 1531 HAVE_GETDTABLESIZE 1532 HAVE_FTRUNCATE 1533 HAVE_FSYNC 1534 HAVE_FDATASYNC 1535 HAVE_FCHOWNAT 1536 HAVE_FCHDIR 1537 HAVE_FACCESSAT 1538 HAVE_EUIDACCESS 1539 HAVE_DUP3 1540 HAVE_DUP2 1541 HAVE_CHOWN 1542 GNULIB_WRITE 1543 GNULIB_USLEEP 1544 GNULIB_UNLINKAT 1545 GNULIB_UNLINK 1546 GNULIB_UNISTD_H_SIGPIPE 1547 GNULIB_UNISTD_H_NONBLOCKING 1548 GNULIB_TTYNAME_R 1549 GNULIB_SYMLINKAT 1550 GNULIB_SYMLINK 1551 GNULIB_SLEEP 1552 GNULIB_SETHOSTNAME 1553 GNULIB_RMDIR 1554 GNULIB_READLINKAT 1555 GNULIB_READLINK 1556 GNULIB_READ 1557 GNULIB_PWRITE 1558 GNULIB_PREAD 1559 GNULIB_PIPE2 1560 GNULIB_PIPE 1561 GNULIB_LSEEK 1562 GNULIB_LINKAT 1563 GNULIB_LINK 1564 GNULIB_LCHOWN 1565 GNULIB_ISATTY 1566 GNULIB_GROUP_MEMBER 1567 GNULIB_GETUSERSHELL 1568 GNULIB_GETPAGESIZE 1569 GNULIB_GETLOGIN_R 1570 GNULIB_GETLOGIN 1571 GNULIB_GETHOSTNAME 1572 GNULIB_GETGROUPS 1573 GNULIB_GETDTABLESIZE 1574 GNULIB_GETDOMAINNAME 1575 GNULIB_GETCWD 1576 GNULIB_FTRUNCATE 1577 GNULIB_FSYNC 1578 GNULIB_FDATASYNC 1579 GNULIB_FCHOWNAT 1580 GNULIB_FCHDIR 1581 GNULIB_FACCESSAT 1582 GNULIB_EUIDACCESS 1583 GNULIB_ENVIRON 1584 GNULIB_DUP3 1585 GNULIB_DUP2 1586 GNULIB_DUP 1587 GNULIB_CLOSE 1588 GNULIB_CHOWN 1589 GNULIB_CHDIR 1590 REPLACE_WCTOMB 1591 REPLACE_UNSETENV 1592 REPLACE_STRTOD 1593 REPLACE_SETENV 1594 REPLACE_REALPATH 1595 REPLACE_REALLOC 1596 REPLACE_RANDOM_R 1597 REPLACE_PUTENV 1598 REPLACE_PTSNAME_R 1599 REPLACE_PTSNAME 1600 REPLACE_MKSTEMP 1601 REPLACE_MBTOWC 1602 REPLACE_MALLOC 1603 REPLACE_CANONICALIZE_FILE_NAME 1604 REPLACE_CALLOC 1605 HAVE_DECL_UNSETENV 1606 HAVE_UNLOCKPT 1607 HAVE_SYS_LOADAVG_H 1608 HAVE_STRUCT_RANDOM_DATA 1609 HAVE_STRTOULL 1610 HAVE_STRTOLL 1611 HAVE_STRTOD 1612 HAVE_DECL_SETENV 1613 HAVE_SETENV 1614 HAVE_RPMATCH 1615 HAVE_REALPATH 1616 HAVE_RANDOM_R 1617 HAVE_RANDOM_H 1618 HAVE_RANDOM 1619 HAVE_PTSNAME_R 1620 HAVE_PTSNAME 1621 HAVE_POSIX_OPENPT 1622 HAVE_MKSTEMPS 1623 HAVE_MKSTEMP 1624 HAVE_MKOSTEMPS 1625 HAVE_MKOSTEMP 1626 HAVE_MKDTEMP 1627 HAVE_GRANTPT 1628 HAVE_GETSUBOPT 1629 HAVE_DECL_GETLOADAVG 1630 HAVE_CANONICALIZE_FILE_NAME 1631 HAVE_ATOLL 1632 HAVE__EXIT 1633 GNULIB_WCTOMB 1634 GNULIB_UNSETENV 1635 GNULIB_UNLOCKPT 1636 GNULIB_SYSTEM_POSIX 1637 GNULIB_STRTOULL 1638 GNULIB_STRTOLL 1639 GNULIB_STRTOD 1640 GNULIB_SETENV 1641 GNULIB_RPMATCH 1642 GNULIB_REALPATH 1643 GNULIB_REALLOC_POSIX 1644 GNULIB_RANDOM_R 1645 GNULIB_RANDOM 1646 GNULIB_PUTENV 1647 GNULIB_PTSNAME_R 1648 GNULIB_PTSNAME 1649 GNULIB_POSIX_OPENPT 1650 GNULIB_MKSTEMPS 1651 GNULIB_MKSTEMP 1652 GNULIB_MKOSTEMPS 1653 GNULIB_MKOSTEMP 1654 GNULIB_MKDTEMP 1655 GNULIB_MBTOWC 1656 GNULIB_MALLOC_POSIX 1657 GNULIB_GRANTPT 1658 GNULIB_GETSUBOPT 1659 GNULIB_GETLOADAVG 1660 GNULIB_CANONICALIZE_FILE_NAME 1661 GNULIB_CALLOC_POSIX 1662 GNULIB_ATOLL 1663 GNULIB__EXIT 1664 GL_GENERATE_ALLOCA_H_FALSE 1665 GL_GENERATE_ALLOCA_H_TRUE 1666 ALLOCA_H 1667 ALLOCA 1668 GL_COND_LIBTOOL_FALSE 1669 GL_COND_LIBTOOL_TRUE 1670 XSLTPROC 1671 HELP2MAN 1672 PERL 1673 M4_DEBUGFILE 1674 M4_GNU 1675 M4 1676 YFLAGS 1677 YACC 1678 LEXLIB 1679 LEX_OUTPUT_ROOT 1680 LEX_IS_FLEX 1681 LEX 1682 DOT 1683 YACC_LIBRARY 1684 YACC_SCRIPT 1685 CXX_COMPILER_POSIXLY_CORRECT 1686 BISON_CXX_WORKS_FALSE 1687 BISON_CXX_WORKS_TRUE 1688 BISON_CXX_WORKS 1689 C_COMPILER_POSIXLY_CORRECT 1690 BISON_C_WORKS 1691 WARN_CXXFLAGS_TEST 1692 WERROR_CXXFLAGS 1693 WARN_CXXFLAGS 1694 WARN_CFLAGS_TEST 1695 WERROR_CFLAGS 1696 WARN_CFLAGS 1697 host_os 1698 host_vendor 1699 host_cpu 1700 host 1701 build_os 1702 build_vendor 1703 build_cpu 1704 build 1705 RANLIB 1706 ARFLAGS 1707 AR 1708 EGREP 1709 GREP 1710 CPP 1711 am__fastdepCXX_FALSE 1712 am__fastdepCXX_TRUE 1713 CXXDEPMODE 1714 ac_ct_CXX 1715 CXXFLAGS 1716 CXX 1717 am__fastdepCC_FALSE 1718 am__fastdepCC_TRUE 1719 CCDEPMODE 1720 am__nodep 1721 AMDEPBACKSLASH 1722 AMDEP_FALSE 1723 AMDEP_TRUE 1724 am__quote 1725 am__include 1726 DEPDIR 1727 OBJEXT 1728 EXEEXT 1729 ac_ct_CC 1730 CPPFLAGS 1731 LDFLAGS 1732 CFLAGS 1733 CC 1734 AM_BACKSLASH 1735 AM_DEFAULT_VERBOSITY 1736 AM_DEFAULT_V 1737 AM_V 1738 am__untar 1739 am__tar 1740 AMTAR 1741 am__leading_dot 1742 SET_MAKE 1743 AWK 1744 mkdir_p 1745 MKDIR_P 1746 INSTALL_STRIP_PROGRAM 1747 STRIP 1748 install_sh 1749 MAKEINFO 1750 AUTOHEADER 1751 AUTOMAKE 1752 AUTOCONF 1753 ACLOCAL 1754 VERSION 1755 PACKAGE 1756 CYGPATH_W 1757 am__isrc 1758 INSTALL_DATA 1759 INSTALL_SCRIPT 1760 INSTALL_PROGRAM 1761 PACKAGE_COPYRIGHT_YEAR 1762 target_alias 1763 host_alias 1764 build_alias 1765 LIBS 1766 ECHO_T 1767 ECHO_N 1768 ECHO_C 1769 DEFS 1770 mandir 1771 localedir 1772 libdir 1773 psdir 1774 pdfdir 1775 dvidir 1776 htmldir 1777 infodir 1778 docdir 1779 oldincludedir 1780 includedir 1781 localstatedir 1782 sharedstatedir 1783 sysconfdir 1784 datadir 1785 datarootdir 1786 libexecdir 1787 sbindir 1788 bindir 1789 program_transform_name 1790 prefix 1791 exec_prefix 1792 PACKAGE_URL 1793 PACKAGE_BUGREPORT 1794 PACKAGE_STRING 1795 PACKAGE_VERSION 1796 PACKAGE_TARNAME 1797 PACKAGE_NAME 1798 PATH_SEPARATOR 1799 SHELL' 1800 ac_subst_files='' 1801 ac_user_opts=' 1802 enable_option_checking 1803 enable_silent_rules 1804 enable_dependency_tracking 1805 enable_largefile 1806 enable_threads 1807 enable_gcc_warnings 1808 enable_yacc 1809 enable_assert 1810 with_gnu_ld 1811 enable_rpath 1812 with_libpth_prefix 1813 with_dmalloc 1814 enable_nls 1815 with_libiconv_prefix 1816 with_libintl_prefix 1817 ' 1818 ac_precious_vars='build_alias 1819 host_alias 1820 target_alias 1821 CC 1822 CFLAGS 1823 LDFLAGS 1824 LIBS 1825 CPPFLAGS 1826 CXX 1827 CXXFLAGS 1828 CCC 1829 CPP 1830 YACC 1831 YFLAGS 1832 M4' 1833 1834 1835 # Initialize some variables set by options. 1836 ac_init_help= 1837 ac_init_version=false 1838 ac_unrecognized_opts= 1839 ac_unrecognized_sep= 1840 # The variables have the same names as the options, with 1841 # dashes changed to underlines. 1842 cache_file=/dev/null 1843 exec_prefix=NONE 1844 no_create= 1845 no_recursion= 1846 prefix=NONE 1847 program_prefix=NONE 1848 program_suffix=NONE 1849 program_transform_name=s,x,x, 1850 silent= 1851 site= 1852 srcdir= 1853 verbose= 1854 x_includes=NONE 1855 x_libraries=NONE 1856 1857 # Installation directory options. 1858 # These are left unexpanded so users can "make install exec_prefix=/foo" 1859 # and all the variables that are supposed to be based on exec_prefix 1860 # by default will actually change. 1861 # Use braces instead of parens because sh, perl, etc. also accept them. 1862 # (The list follows the same order as the GNU Coding Standards.) 1863 bindir='${exec_prefix}/bin' 1864 sbindir='${exec_prefix}/sbin' 1865 libexecdir='${exec_prefix}/libexec' 1866 datarootdir='${prefix}/share' 1867 datadir='${datarootdir}' 1868 sysconfdir='${prefix}/etc' 1869 sharedstatedir='${prefix}/com' 1870 localstatedir='${prefix}/var' 1871 includedir='${prefix}/include' 1872 oldincludedir='/usr/include' 1873 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1874 infodir='${datarootdir}/info' 1875 htmldir='${docdir}' 1876 dvidir='${docdir}' 1877 pdfdir='${docdir}' 1878 psdir='${docdir}' 1879 libdir='${exec_prefix}/lib' 1880 localedir='${datarootdir}/locale' 1881 mandir='${datarootdir}/man' 1882 1883 ac_prev= 1884 ac_dashdash= 1885 for ac_option 1886 do 1887 # If the previous option needs an argument, assign it. 1888 if test -n "$ac_prev"; then 1889 eval $ac_prev=\$ac_option 1890 ac_prev= 1891 continue 1892 fi 1893 1894 case $ac_option in 1895 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1896 *=) ac_optarg= ;; 1897 *) ac_optarg=yes ;; 1898 esac 1899 1900 # Accept the important Cygnus configure options, so we can diagnose typos. 1901 1902 case $ac_dashdash$ac_option in 1903 --) 1904 ac_dashdash=yes ;; 1905 1906 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1907 ac_prev=bindir ;; 1908 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1909 bindir=$ac_optarg ;; 1910 1911 -build | --build | --buil | --bui | --bu) 1912 ac_prev=build_alias ;; 1913 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1914 build_alias=$ac_optarg ;; 1915 1916 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1917 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1918 ac_prev=cache_file ;; 1919 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1920 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1921 cache_file=$ac_optarg ;; 1922 1923 --config-cache | -C) 1924 cache_file=config.cache ;; 1925 1926 -datadir | --datadir | --datadi | --datad) 1927 ac_prev=datadir ;; 1928 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1929 datadir=$ac_optarg ;; 1930 1931 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1932 | --dataroo | --dataro | --datar) 1933 ac_prev=datarootdir ;; 1934 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1935 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1936 datarootdir=$ac_optarg ;; 1937 1938 -disable-* | --disable-*) 1939 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1940 # Reject names that are not valid shell variable names. 1941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1942 as_fn_error $? "invalid feature name: $ac_useropt" 1943 ac_useropt_orig=$ac_useropt 1944 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1945 case $ac_user_opts in 1946 *" 1947 "enable_$ac_useropt" 1948 "*) ;; 1949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1950 ac_unrecognized_sep=', ';; 1951 esac 1952 eval enable_$ac_useropt=no ;; 1953 1954 -docdir | --docdir | --docdi | --doc | --do) 1955 ac_prev=docdir ;; 1956 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1957 docdir=$ac_optarg ;; 1958 1959 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1960 ac_prev=dvidir ;; 1961 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1962 dvidir=$ac_optarg ;; 1963 1964 -enable-* | --enable-*) 1965 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1966 # Reject names that are not valid shell variable names. 1967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1968 as_fn_error $? "invalid feature name: $ac_useropt" 1969 ac_useropt_orig=$ac_useropt 1970 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1971 case $ac_user_opts in 1972 *" 1973 "enable_$ac_useropt" 1974 "*) ;; 1975 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1976 ac_unrecognized_sep=', ';; 1977 esac 1978 eval enable_$ac_useropt=\$ac_optarg ;; 1979 1980 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1981 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1982 | --exec | --exe | --ex) 1983 ac_prev=exec_prefix ;; 1984 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1985 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1986 | --exec=* | --exe=* | --ex=*) 1987 exec_prefix=$ac_optarg ;; 1988 1989 -gas | --gas | --ga | --g) 1990 # Obsolete; use --with-gas. 1991 with_gas=yes ;; 1992 1993 -help | --help | --hel | --he | -h) 1994 ac_init_help=long ;; 1995 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1996 ac_init_help=recursive ;; 1997 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1998 ac_init_help=short ;; 1999 2000 -host | --host | --hos | --ho) 2001 ac_prev=host_alias ;; 2002 -host=* | --host=* | --hos=* | --ho=*) 2003 host_alias=$ac_optarg ;; 2004 2005 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 2006 ac_prev=htmldir ;; 2007 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 2008 | --ht=*) 2009 htmldir=$ac_optarg ;; 2010 2011 -includedir | --includedir | --includedi | --included | --include \ 2012 | --includ | --inclu | --incl | --inc) 2013 ac_prev=includedir ;; 2014 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 2015 | --includ=* | --inclu=* | --incl=* | --inc=*) 2016 includedir=$ac_optarg ;; 2017 2018 -infodir | --infodir | --infodi | --infod | --info | --inf) 2019 ac_prev=infodir ;; 2020 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 2021 infodir=$ac_optarg ;; 2022 2023 -libdir | --libdir | --libdi | --libd) 2024 ac_prev=libdir ;; 2025 -libdir=* | --libdir=* | --libdi=* | --libd=*) 2026 libdir=$ac_optarg ;; 2027 2028 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 2029 | --libexe | --libex | --libe) 2030 ac_prev=libexecdir ;; 2031 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 2032 | --libexe=* | --libex=* | --libe=*) 2033 libexecdir=$ac_optarg ;; 2034 2035 -localedir | --localedir | --localedi | --localed | --locale) 2036 ac_prev=localedir ;; 2037 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 2038 localedir=$ac_optarg ;; 2039 2040 -localstatedir | --localstatedir | --localstatedi | --localstated \ 2041 | --localstate | --localstat | --localsta | --localst | --locals) 2042 ac_prev=localstatedir ;; 2043 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 2044 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 2045 localstatedir=$ac_optarg ;; 2046 2047 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 2048 ac_prev=mandir ;; 2049 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 2050 mandir=$ac_optarg ;; 2051 2052 -nfp | --nfp | --nf) 2053 # Obsolete; use --without-fp. 2054 with_fp=no ;; 2055 2056 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 2057 | --no-cr | --no-c | -n) 2058 no_create=yes ;; 2059 2060 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 2061 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 2062 no_recursion=yes ;; 2063 2064 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 2065 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 2066 | --oldin | --oldi | --old | --ol | --o) 2067 ac_prev=oldincludedir ;; 2068 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 2069 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 2070 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 2071 oldincludedir=$ac_optarg ;; 2072 2073 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 2074 ac_prev=prefix ;; 2075 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 2076 prefix=$ac_optarg ;; 2077 2078 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 2079 | --program-pre | --program-pr | --program-p) 2080 ac_prev=program_prefix ;; 2081 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 2082 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 2083 program_prefix=$ac_optarg ;; 2084 2085 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 2086 | --program-suf | --program-su | --program-s) 2087 ac_prev=program_suffix ;; 2088 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 2089 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 2090 program_suffix=$ac_optarg ;; 2091 2092 -program-transform-name | --program-transform-name \ 2093 | --program-transform-nam | --program-transform-na \ 2094 | --program-transform-n | --program-transform- \ 2095 | --program-transform | --program-transfor \ 2096 | --program-transfo | --program-transf \ 2097 | --program-trans | --program-tran \ 2098 | --progr-tra | --program-tr | --program-t) 2099 ac_prev=program_transform_name ;; 2100 -program-transform-name=* | --program-transform-name=* \ 2101 | --program-transform-nam=* | --program-transform-na=* \ 2102 | --program-transform-n=* | --program-transform-=* \ 2103 | --program-transform=* | --program-transfor=* \ 2104 | --program-transfo=* | --program-transf=* \ 2105 | --program-trans=* | --program-tran=* \ 2106 | --progr-tra=* | --program-tr=* | --program-t=*) 2107 program_transform_name=$ac_optarg ;; 2108 2109 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 2110 ac_prev=pdfdir ;; 2111 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 2112 pdfdir=$ac_optarg ;; 2113 2114 -psdir | --psdir | --psdi | --psd | --ps) 2115 ac_prev=psdir ;; 2116 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 2117 psdir=$ac_optarg ;; 2118 2119 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2120 | -silent | --silent | --silen | --sile | --sil) 2121 silent=yes ;; 2122 2123 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 2124 ac_prev=sbindir ;; 2125 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 2126 | --sbi=* | --sb=*) 2127 sbindir=$ac_optarg ;; 2128 2129 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 2130 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 2131 | --sharedst | --shareds | --shared | --share | --shar \ 2132 | --sha | --sh) 2133 ac_prev=sharedstatedir ;; 2134 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 2135 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 2136 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 2137 | --sha=* | --sh=*) 2138 sharedstatedir=$ac_optarg ;; 2139 2140 -site | --site | --sit) 2141 ac_prev=site ;; 2142 -site=* | --site=* | --sit=*) 2143 site=$ac_optarg ;; 2144 2145 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 2146 ac_prev=srcdir ;; 2147 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 2148 srcdir=$ac_optarg ;; 2149 2150 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 2151 | --syscon | --sysco | --sysc | --sys | --sy) 2152 ac_prev=sysconfdir ;; 2153 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 2154 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 2155 sysconfdir=$ac_optarg ;; 2156 2157 -target | --target | --targe | --targ | --tar | --ta | --t) 2158 ac_prev=target_alias ;; 2159 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 2160 target_alias=$ac_optarg ;; 2161 2162 -v | -verbose | --verbose | --verbos | --verbo | --verb) 2163 verbose=yes ;; 2164 2165 -version | --version | --versio | --versi | --vers | -V) 2166 ac_init_version=: ;; 2167 2168 -with-* | --with-*) 2169 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 2170 # Reject names that are not valid shell variable names. 2171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 2172 as_fn_error $? "invalid package name: $ac_useropt" 2173 ac_useropt_orig=$ac_useropt 2174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 2175 case $ac_user_opts in 2176 *" 2177 "with_$ac_useropt" 2178 "*) ;; 2179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 2180 ac_unrecognized_sep=', ';; 2181 esac 2182 eval with_$ac_useropt=\$ac_optarg ;; 2183 2184 -without-* | --without-*) 2185 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 2186 # Reject names that are not valid shell variable names. 2187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 2188 as_fn_error $? "invalid package name: $ac_useropt" 2189 ac_useropt_orig=$ac_useropt 2190 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 2191 case $ac_user_opts in 2192 *" 2193 "with_$ac_useropt" 2194 "*) ;; 2195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 2196 ac_unrecognized_sep=', ';; 2197 esac 2198 eval with_$ac_useropt=no ;; 2199 2200 --x) 2201 # Obsolete; use --with-x. 2202 with_x=yes ;; 2203 2204 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 2205 | --x-incl | --x-inc | --x-in | --x-i) 2206 ac_prev=x_includes ;; 2207 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 2208 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 2209 x_includes=$ac_optarg ;; 2210 2211 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 2212 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 2213 ac_prev=x_libraries ;; 2214 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 2215 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 2216 x_libraries=$ac_optarg ;; 2217 2218 -*) as_fn_error $? "unrecognized option: \`$ac_option' 2219 Try \`$0 --help' for more information" 2220 ;; 2221 2222 *=*) 2223 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 2224 # Reject names that are not valid shell variable names. 2225 case $ac_envvar in #( 2226 '' | [0-9]* | *[!_$as_cr_alnum]* ) 2227 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 2228 esac 2229 eval $ac_envvar=\$ac_optarg 2230 export $ac_envvar ;; 2231 2232 *) 2233 # FIXME: should be removed in autoconf 3.0. 2234 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 2235 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 2236 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 2237 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 2238 ;; 2239 2240 esac 2241 done 2242 2243 if test -n "$ac_prev"; then 2244 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 2245 as_fn_error $? "missing argument to $ac_option" 2246 fi 2247 2248 if test -n "$ac_unrecognized_opts"; then 2249 case $enable_option_checking in 2250 no) ;; 2251 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 2252 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 2253 esac 2254 fi 2255 2256 # Check all directory arguments for consistency. 2257 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 2258 datadir sysconfdir sharedstatedir localstatedir includedir \ 2259 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 2260 libdir localedir mandir 2261 do 2262 eval ac_val=\$$ac_var 2263 # Remove trailing slashes. 2264 case $ac_val in 2265 */ ) 2266 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 2267 eval $ac_var=\$ac_val;; 2268 esac 2269 # Be sure to have absolute directory names. 2270 case $ac_val in 2271 [\\/$]* | ?:[\\/]* ) continue;; 2272 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 2273 esac 2274 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 2275 done 2276 2277 # There might be people who depend on the old broken behavior: `$host' 2278 # used to hold the argument of --host etc. 2279 # FIXME: To remove some day. 2280 build=$build_alias 2281 host=$host_alias 2282 target=$target_alias 2283 2284 # FIXME: To remove some day. 2285 if test "x$host_alias" != x; then 2286 if test "x$build_alias" = x; then 2287 cross_compiling=maybe 2288 elif test "x$build_alias" != "x$host_alias"; then 2289 cross_compiling=yes 2290 fi 2291 fi 2292 2293 ac_tool_prefix= 2294 test -n "$host_alias" && ac_tool_prefix=$host_alias- 2295 2296 test "$silent" = yes && exec 6>/dev/null 2297 2298 2299 ac_pwd=`pwd` && test -n "$ac_pwd" && 2300 ac_ls_di=`ls -di .` && 2301 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 2302 as_fn_error $? "working directory cannot be determined" 2303 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 2304 as_fn_error $? "pwd does not report name of working directory" 2305 2306 2307 # Find the source files, if location was not specified. 2308 if test -z "$srcdir"; then 2309 ac_srcdir_defaulted=yes 2310 # Try the directory containing this script, then the parent directory. 2311 ac_confdir=`$as_dirname -- "$as_myself" || 2312 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 2313 X"$as_myself" : 'X\(//\)[^/]' \| \ 2314 X"$as_myself" : 'X\(//\)$' \| \ 2315 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 2316 $as_echo X"$as_myself" | 2317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 2318 s//\1/ 2319 q 2320 } 2321 /^X\(\/\/\)[^/].*/{ 2322 s//\1/ 2323 q 2324 } 2325 /^X\(\/\/\)$/{ 2326 s//\1/ 2327 q 2328 } 2329 /^X\(\/\).*/{ 2330 s//\1/ 2331 q 2332 } 2333 s/.*/./; q'` 2334 srcdir=$ac_confdir 2335 if test ! -r "$srcdir/$ac_unique_file"; then 2336 srcdir=.. 2337 fi 2338 else 2339 ac_srcdir_defaulted=no 2340 fi 2341 if test ! -r "$srcdir/$ac_unique_file"; then 2342 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 2343 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 2344 fi 2345 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 2346 ac_abs_confdir=`( 2347 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 2348 pwd)` 2349 # When building in place, set srcdir=. 2350 if test "$ac_abs_confdir" = "$ac_pwd"; then 2351 srcdir=. 2352 fi 2353 # Remove unnecessary trailing slashes from srcdir. 2354 # Double slashes in file names in object file debugging info 2355 # mess up M-x gdb in Emacs. 2356 case $srcdir in 2357 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 2358 esac 2359 for ac_var in $ac_precious_vars; do 2360 eval ac_env_${ac_var}_set=\${${ac_var}+set} 2361 eval ac_env_${ac_var}_value=\$${ac_var} 2362 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 2363 eval ac_cv_env_${ac_var}_value=\$${ac_var} 2364 done 2365 2366 # 2367 # Report the --help message. 2368 # 2369 if test "$ac_init_help" = "long"; then 2370 # Omit some internal or obsolete options to make the list less imposing. 2371 # This message is too long to be a string in the A/UX 3.1 sh. 2372 cat <<_ACEOF 2373 \`configure' configures GNU Bison 2.7 to adapt to many kinds of systems. 2374 2375 Usage: $0 [OPTION]... [VAR=VALUE]... 2376 2377 To assign environment variables (e.g., CC, CFLAGS...), specify them as 2378 VAR=VALUE. See below for descriptions of some of the useful variables. 2379 2380 Defaults for the options are specified in brackets. 2381 2382 Configuration: 2383 -h, --help display this help and exit 2384 --help=short display options specific to this package 2385 --help=recursive display the short help of all the included packages 2386 -V, --version display version information and exit 2387 -q, --quiet, --silent do not print \`checking ...' messages 2388 --cache-file=FILE cache test results in FILE [disabled] 2389 -C, --config-cache alias for \`--cache-file=config.cache' 2390 -n, --no-create do not create output files 2391 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 2392 2393 Installation directories: 2394 --prefix=PREFIX install architecture-independent files in PREFIX 2395 [$ac_default_prefix] 2396 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 2397 [PREFIX] 2398 2399 By default, \`make install' will install all the files in 2400 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 2401 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 2402 for instance \`--prefix=\$HOME'. 2403 2404 For better control, use the options below. 2405 2406 Fine tuning of the installation directories: 2407 --bindir=DIR user executables [EPREFIX/bin] 2408 --sbindir=DIR system admin executables [EPREFIX/sbin] 2409 --libexecdir=DIR program executables [EPREFIX/libexec] 2410 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 2411 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 2412 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 2413 --libdir=DIR object code libraries [EPREFIX/lib] 2414 --includedir=DIR C header files [PREFIX/include] 2415 --oldincludedir=DIR C header files for non-gcc [/usr/include] 2416 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 2417 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 2418 --infodir=DIR info documentation [DATAROOTDIR/info] 2419 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 2420 --mandir=DIR man documentation [DATAROOTDIR/man] 2421 --docdir=DIR documentation root [DATAROOTDIR/doc/bison] 2422 --htmldir=DIR html documentation [DOCDIR] 2423 --dvidir=DIR dvi documentation [DOCDIR] 2424 --pdfdir=DIR pdf documentation [DOCDIR] 2425 --psdir=DIR ps documentation [DOCDIR] 2426 _ACEOF 2427 2428 cat <<\_ACEOF 2429 2430 Program names: 2431 --program-prefix=PREFIX prepend PREFIX to installed program names 2432 --program-suffix=SUFFIX append SUFFIX to installed program names 2433 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 2434 2435 System types: 2436 --build=BUILD configure for building on BUILD [guessed] 2437 --host=HOST cross-compile to build programs to run on HOST [BUILD] 2438 _ACEOF 2439 fi 2440 2441 if test -n "$ac_init_help"; then 2442 case $ac_init_help in 2443 short | recursive ) echo "Configuration of GNU Bison 2.7:";; 2444 esac 2445 cat <<\_ACEOF 2446 2447 Optional Features: 2448 --disable-option-checking ignore unrecognized --enable/--with options 2449 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 2450 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 2451 --enable-silent-rules less verbose build output (undo: "make V=1") 2452 --disable-silent-rules verbose build output (undo: "make V=0") 2453 --enable-dependency-tracking 2454 do not reject slow dependency extractors 2455 --disable-dependency-tracking 2456 speeds up one-time build 2457 --disable-largefile omit support for large files 2458 --enable-threads={posix|solaris|pth|windows} 2459 specify multithreading API 2460 --disable-threads build without multithread safety 2461 --enable-gcc-warnings turn on lots of GCC warnings (not recommended) 2462 --disable-yacc do not build a yacc command or an -ly library 2463 --disable-assert turn off assertions 2464 --disable-rpath do not hardcode runtime library paths 2465 --disable-nls do not use Native Language Support 2466 2467 Optional Packages: 2468 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 2469 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 2470 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 2471 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib 2472 --without-libpth-prefix don't search for libpth in includedir and libdir 2473 --with-dmalloc use dmalloc, as in 2474 http://www.dmalloc.com/dmalloc.tar.gz 2475 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 2476 --without-libiconv-prefix don't search for libiconv in includedir and libdir 2477 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 2478 --without-libintl-prefix don't search for libintl in includedir and libdir 2479 2480 Some influential environment variables: 2481 CC C compiler command 2482 CFLAGS C compiler flags 2483 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2484 nonstandard directory <lib dir> 2485 LIBS libraries to pass to the linker, e.g. -l<library> 2486 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2487 you have headers in a nonstandard directory <include dir> 2488 CXX C++ compiler command 2489 CXXFLAGS C++ compiler flags 2490 CPP C preprocessor 2491 YACC The `Yet Another Compiler Compiler' implementation to use. 2492 Defaults to the first program found out of: `bison -y', `byacc', 2493 `yacc'. 2494 YFLAGS The list of arguments that will be passed by default to $YACC. 2495 This script will default YFLAGS to the empty string to avoid a 2496 default value of `-d' given by some make applications. 2497 M4 Location of GNU M4 1.4.6 or later. Defaults to the first program 2498 of 'm4', 'gm4', or 'gnum4' on PATH that meets Autoconf needs. 2499 2500 Use these variables to override the choices made by `configure' or to help 2501 it to find libraries and programs with nonstandard names/locations. 2502 2503 Report bugs to <bug-bison@gnu.org>. 2504 GNU Bison home page: <http://www.gnu.org/software/bison/>. 2505 General help using GNU software: <http://www.gnu.org/gethelp/>. 2506 _ACEOF 2507 ac_status=$? 2508 fi 2509 2510 if test "$ac_init_help" = "recursive"; then 2511 # If there are subdirs, report their specific --help. 2512 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2513 test -d "$ac_dir" || 2514 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2515 continue 2516 ac_builddir=. 2517 2518 case "$ac_dir" in 2519 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2520 *) 2521 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2522 # A ".." for each directory in $ac_dir_suffix. 2523 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2524 case $ac_top_builddir_sub in 2525 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2526 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2527 esac ;; 2528 esac 2529 ac_abs_top_builddir=$ac_pwd 2530 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2531 # for backward compatibility: 2532 ac_top_builddir=$ac_top_build_prefix 2533 2534 case $srcdir in 2535 .) # We are building in place. 2536 ac_srcdir=. 2537 ac_top_srcdir=$ac_top_builddir_sub 2538 ac_abs_top_srcdir=$ac_pwd ;; 2539 [\\/]* | ?:[\\/]* ) # Absolute name. 2540 ac_srcdir=$srcdir$ac_dir_suffix; 2541 ac_top_srcdir=$srcdir 2542 ac_abs_top_srcdir=$srcdir ;; 2543 *) # Relative name. 2544 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2545 ac_top_srcdir=$ac_top_build_prefix$srcdir 2546 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2547 esac 2548 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2549 2550 cd "$ac_dir" || { ac_status=$?; continue; } 2551 # Check for guested configure. 2552 if test -f "$ac_srcdir/configure.gnu"; then 2553 echo && 2554 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2555 elif test -f "$ac_srcdir/configure"; then 2556 echo && 2557 $SHELL "$ac_srcdir/configure" --help=recursive 2558 else 2559 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2560 fi || ac_status=$? 2561 cd "$ac_pwd" || { ac_status=$?; break; } 2562 done 2563 fi 2564 2565 test -n "$ac_init_help" && exit $ac_status 2566 if $ac_init_version; then 2567 cat <<\_ACEOF 2568 GNU Bison configure 2.7 2569 generated by GNU Autoconf 2.69 2570 2571 Copyright (C) 2012 Free Software Foundation, Inc. 2572 This configure script is free software; the Free Software Foundation 2573 gives unlimited permission to copy, distribute and modify it. 2574 _ACEOF 2575 exit 2576 fi 2577 2578 ## ------------------------ ## 2579 ## Autoconf initialization. ## 2580 ## ------------------------ ## 2581 2582 # ac_fn_c_try_compile LINENO 2583 # -------------------------- 2584 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2585 ac_fn_c_try_compile () 2586 { 2587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2588 rm -f conftest.$ac_objext 2589 if { { ac_try="$ac_compile" 2590 case "(($ac_try" in 2591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2592 *) ac_try_echo=$ac_try;; 2593 esac 2594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2595 $as_echo "$ac_try_echo"; } >&5 2596 (eval "$ac_compile") 2>conftest.err 2597 ac_status=$? 2598 if test -s conftest.err; then 2599 grep -v '^ *+' conftest.err >conftest.er1 2600 cat conftest.er1 >&5 2601 mv -f conftest.er1 conftest.err 2602 fi 2603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2604 test $ac_status = 0; } && { 2605 test -z "$ac_c_werror_flag" || 2606 test ! -s conftest.err 2607 } && test -s conftest.$ac_objext; then : 2608 ac_retval=0 2609 else 2610 $as_echo "$as_me: failed program was:" >&5 2611 sed 's/^/| /' conftest.$ac_ext >&5 2612 2613 ac_retval=1 2614 fi 2615 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2616 as_fn_set_status $ac_retval 2617 2618 } # ac_fn_c_try_compile 2619 2620 # ac_fn_cxx_try_compile LINENO 2621 # ---------------------------- 2622 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2623 ac_fn_cxx_try_compile () 2624 { 2625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2626 rm -f conftest.$ac_objext 2627 if { { ac_try="$ac_compile" 2628 case "(($ac_try" in 2629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2630 *) ac_try_echo=$ac_try;; 2631 esac 2632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2633 $as_echo "$ac_try_echo"; } >&5 2634 (eval "$ac_compile") 2>conftest.err 2635 ac_status=$? 2636 if test -s conftest.err; then 2637 grep -v '^ *+' conftest.err >conftest.er1 2638 cat conftest.er1 >&5 2639 mv -f conftest.er1 conftest.err 2640 fi 2641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2642 test $ac_status = 0; } && { 2643 test -z "$ac_cxx_werror_flag" || 2644 test ! -s conftest.err 2645 } && test -s conftest.$ac_objext; then : 2646 ac_retval=0 2647 else 2648 $as_echo "$as_me: failed program was:" >&5 2649 sed 's/^/| /' conftest.$ac_ext >&5 2650 2651 ac_retval=1 2652 fi 2653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2654 as_fn_set_status $ac_retval 2655 2656 } # ac_fn_cxx_try_compile 2657 2658 # ac_fn_c_try_cpp LINENO 2659 # ---------------------- 2660 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2661 ac_fn_c_try_cpp () 2662 { 2663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2664 if { { ac_try="$ac_cpp conftest.$ac_ext" 2665 case "(($ac_try" in 2666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2667 *) ac_try_echo=$ac_try;; 2668 esac 2669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2670 $as_echo "$ac_try_echo"; } >&5 2671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2672 ac_status=$? 2673 if test -s conftest.err; then 2674 grep -v '^ *+' conftest.err >conftest.er1 2675 cat conftest.er1 >&5 2676 mv -f conftest.er1 conftest.err 2677 fi 2678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2679 test $ac_status = 0; } > conftest.i && { 2680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2681 test ! -s conftest.err 2682 }; then : 2683 ac_retval=0 2684 else 2685 $as_echo "$as_me: failed program was:" >&5 2686 sed 's/^/| /' conftest.$ac_ext >&5 2687 2688 ac_retval=1 2689 fi 2690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2691 as_fn_set_status $ac_retval 2692 2693 } # ac_fn_c_try_cpp 2694 2695 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2696 # ------------------------------------------------------- 2697 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2698 # the include files in INCLUDES and setting the cache variable VAR 2699 # accordingly. 2700 ac_fn_c_check_header_mongrel () 2701 { 2702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2703 if eval \${$3+:} false; then : 2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2705 $as_echo_n "checking for $2... " >&6; } 2706 if eval \${$3+:} false; then : 2707 $as_echo_n "(cached) " >&6 2708 fi 2709 eval ac_res=\$$3 2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2711 $as_echo "$ac_res" >&6; } 2712 else 2713 # Is the header compilable? 2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2715 $as_echo_n "checking $2 usability... " >&6; } 2716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2717 /* end confdefs.h. */ 2718 $4 2719 #include <$2> 2720 _ACEOF 2721 if ac_fn_c_try_compile "$LINENO"; then : 2722 ac_header_compiler=yes 2723 else 2724 ac_header_compiler=no 2725 fi 2726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2728 $as_echo "$ac_header_compiler" >&6; } 2729 2730 # Is the header present? 2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2732 $as_echo_n "checking $2 presence... " >&6; } 2733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2734 /* end confdefs.h. */ 2735 #include <$2> 2736 _ACEOF 2737 if ac_fn_c_try_cpp "$LINENO"; then : 2738 ac_header_preproc=yes 2739 else 2740 ac_header_preproc=no 2741 fi 2742 rm -f conftest.err conftest.i conftest.$ac_ext 2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2744 $as_echo "$ac_header_preproc" >&6; } 2745 2746 # So? What about this header? 2747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2748 yes:no: ) 2749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2750 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2752 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2753 ;; 2754 no:yes:* ) 2755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2756 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2758 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2760 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2762 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2764 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2765 ( $as_echo "## -------------------------------- ## 2766 ## Report this to bug-bison (at] gnu.org ## 2767 ## -------------------------------- ##" 2768 ) | sed "s/^/$as_me: WARNING: /" >&2 2769 ;; 2770 esac 2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2772 $as_echo_n "checking for $2... " >&6; } 2773 if eval \${$3+:} false; then : 2774 $as_echo_n "(cached) " >&6 2775 else 2776 eval "$3=\$ac_header_compiler" 2777 fi 2778 eval ac_res=\$$3 2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2780 $as_echo "$ac_res" >&6; } 2781 fi 2782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2783 2784 } # ac_fn_c_check_header_mongrel 2785 2786 # ac_fn_c_try_run LINENO 2787 # ---------------------- 2788 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2789 # that executables *can* be run. 2790 ac_fn_c_try_run () 2791 { 2792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2793 if { { ac_try="$ac_link" 2794 case "(($ac_try" in 2795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2796 *) ac_try_echo=$ac_try;; 2797 esac 2798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2799 $as_echo "$ac_try_echo"; } >&5 2800 (eval "$ac_link") 2>&5 2801 ac_status=$? 2802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2803 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2804 { { case "(($ac_try" in 2805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2806 *) ac_try_echo=$ac_try;; 2807 esac 2808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2809 $as_echo "$ac_try_echo"; } >&5 2810 (eval "$ac_try") 2>&5 2811 ac_status=$? 2812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2813 test $ac_status = 0; }; }; then : 2814 ac_retval=0 2815 else 2816 $as_echo "$as_me: program exited with status $ac_status" >&5 2817 $as_echo "$as_me: failed program was:" >&5 2818 sed 's/^/| /' conftest.$ac_ext >&5 2819 2820 ac_retval=$ac_status 2821 fi 2822 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2824 as_fn_set_status $ac_retval 2825 2826 } # ac_fn_c_try_run 2827 2828 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2829 # ------------------------------------------------------- 2830 # Tests whether HEADER exists and can be compiled using the include files in 2831 # INCLUDES, setting the cache variable VAR accordingly. 2832 ac_fn_c_check_header_compile () 2833 { 2834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2836 $as_echo_n "checking for $2... " >&6; } 2837 if eval \${$3+:} false; then : 2838 $as_echo_n "(cached) " >&6 2839 else 2840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2841 /* end confdefs.h. */ 2842 $4 2843 #include <$2> 2844 _ACEOF 2845 if ac_fn_c_try_compile "$LINENO"; then : 2846 eval "$3=yes" 2847 else 2848 eval "$3=no" 2849 fi 2850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2851 fi 2852 eval ac_res=\$$3 2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2854 $as_echo "$ac_res" >&6; } 2855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2856 2857 } # ac_fn_c_check_header_compile 2858 2859 # ac_fn_c_try_link LINENO 2860 # ----------------------- 2861 # Try to link conftest.$ac_ext, and return whether this succeeded. 2862 ac_fn_c_try_link () 2863 { 2864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2865 rm -f conftest.$ac_objext conftest$ac_exeext 2866 if { { ac_try="$ac_link" 2867 case "(($ac_try" in 2868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2869 *) ac_try_echo=$ac_try;; 2870 esac 2871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2872 $as_echo "$ac_try_echo"; } >&5 2873 (eval "$ac_link") 2>conftest.err 2874 ac_status=$? 2875 if test -s conftest.err; then 2876 grep -v '^ *+' conftest.err >conftest.er1 2877 cat conftest.er1 >&5 2878 mv -f conftest.er1 conftest.err 2879 fi 2880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2881 test $ac_status = 0; } && { 2882 test -z "$ac_c_werror_flag" || 2883 test ! -s conftest.err 2884 } && test -s conftest$ac_exeext && { 2885 test "$cross_compiling" = yes || 2886 test -x conftest$ac_exeext 2887 }; then : 2888 ac_retval=0 2889 else 2890 $as_echo "$as_me: failed program was:" >&5 2891 sed 's/^/| /' conftest.$ac_ext >&5 2892 2893 ac_retval=1 2894 fi 2895 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2896 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2897 # interfere with the next link command; also delete a directory that is 2898 # left behind by Apple's compiler. We do this before executing the actions. 2899 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2901 as_fn_set_status $ac_retval 2902 2903 } # ac_fn_c_try_link 2904 2905 # ac_fn_cxx_try_link LINENO 2906 # ------------------------- 2907 # Try to link conftest.$ac_ext, and return whether this succeeded. 2908 ac_fn_cxx_try_link () 2909 { 2910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2911 rm -f conftest.$ac_objext conftest$ac_exeext 2912 if { { ac_try="$ac_link" 2913 case "(($ac_try" in 2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2915 *) ac_try_echo=$ac_try;; 2916 esac 2917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2918 $as_echo "$ac_try_echo"; } >&5 2919 (eval "$ac_link") 2>conftest.err 2920 ac_status=$? 2921 if test -s conftest.err; then 2922 grep -v '^ *+' conftest.err >conftest.er1 2923 cat conftest.er1 >&5 2924 mv -f conftest.er1 conftest.err 2925 fi 2926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2927 test $ac_status = 0; } && { 2928 test -z "$ac_cxx_werror_flag" || 2929 test ! -s conftest.err 2930 } && test -s conftest$ac_exeext && { 2931 test "$cross_compiling" = yes || 2932 test -x conftest$ac_exeext 2933 }; then : 2934 ac_retval=0 2935 else 2936 $as_echo "$as_me: failed program was:" >&5 2937 sed 's/^/| /' conftest.$ac_ext >&5 2938 2939 ac_retval=1 2940 fi 2941 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2942 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2943 # interfere with the next link command; also delete a directory that is 2944 # left behind by Apple's compiler. We do this before executing the actions. 2945 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2947 as_fn_set_status $ac_retval 2948 2949 } # ac_fn_cxx_try_link 2950 2951 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2952 # ------------------------------------------- 2953 # Tests whether TYPE exists after having included INCLUDES, setting cache 2954 # variable VAR accordingly. 2955 ac_fn_c_check_type () 2956 { 2957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2959 $as_echo_n "checking for $2... " >&6; } 2960 if eval \${$3+:} false; then : 2961 $as_echo_n "(cached) " >&6 2962 else 2963 eval "$3=no" 2964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2965 /* end confdefs.h. */ 2966 $4 2967 int 2968 main () 2969 { 2970 if (sizeof ($2)) 2971 return 0; 2972 ; 2973 return 0; 2974 } 2975 _ACEOF 2976 if ac_fn_c_try_compile "$LINENO"; then : 2977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2978 /* end confdefs.h. */ 2979 $4 2980 int 2981 main () 2982 { 2983 if (sizeof (($2))) 2984 return 0; 2985 ; 2986 return 0; 2987 } 2988 _ACEOF 2989 if ac_fn_c_try_compile "$LINENO"; then : 2990 2991 else 2992 eval "$3=yes" 2993 fi 2994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2995 fi 2996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2997 fi 2998 eval ac_res=\$$3 2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3000 $as_echo "$ac_res" >&6; } 3001 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3002 3003 } # ac_fn_c_check_type 3004 3005 # ac_fn_c_check_func LINENO FUNC VAR 3006 # ---------------------------------- 3007 # Tests whether FUNC exists, setting the cache variable VAR accordingly 3008 ac_fn_c_check_func () 3009 { 3010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3012 $as_echo_n "checking for $2... " >&6; } 3013 if eval \${$3+:} false; then : 3014 $as_echo_n "(cached) " >&6 3015 else 3016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3017 /* end confdefs.h. */ 3018 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 3019 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3020 #define $2 innocuous_$2 3021 3022 /* System header to define __stub macros and hopefully few prototypes, 3023 which can conflict with char $2 (); below. 3024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3025 <limits.h> exists even on freestanding compilers. */ 3026 3027 #ifdef __STDC__ 3028 # include <limits.h> 3029 #else 3030 # include <assert.h> 3031 #endif 3032 3033 #undef $2 3034 3035 /* Override any GCC internal prototype to avoid an error. 3036 Use char because int might match the return type of a GCC 3037 builtin and then its argument prototype would still apply. */ 3038 #ifdef __cplusplus 3039 extern "C" 3040 #endif 3041 char $2 (); 3042 /* The GNU C library defines this for functions which it implements 3043 to always fail with ENOSYS. Some functions are actually named 3044 something starting with __ and the normal name is an alias. */ 3045 #if defined __stub_$2 || defined __stub___$2 3046 choke me 3047 #endif 3048 3049 int 3050 main () 3051 { 3052 return $2 (); 3053 ; 3054 return 0; 3055 } 3056 _ACEOF 3057 if ac_fn_c_try_link "$LINENO"; then : 3058 eval "$3=yes" 3059 else 3060 eval "$3=no" 3061 fi 3062 rm -f core conftest.err conftest.$ac_objext \ 3063 conftest$ac_exeext conftest.$ac_ext 3064 fi 3065 eval ac_res=\$$3 3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3067 $as_echo "$ac_res" >&6; } 3068 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3069 3070 } # ac_fn_c_check_func 3071 3072 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 3073 # -------------------------------------------- 3074 # Tries to find the compile-time value of EXPR in a program that includes 3075 # INCLUDES, setting VAR accordingly. Returns whether the value could be 3076 # computed 3077 ac_fn_c_compute_int () 3078 { 3079 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3080 if test "$cross_compiling" = yes; then 3081 # Depending upon the size, compute the lo and hi bounds. 3082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3083 /* end confdefs.h. */ 3084 $4 3085 int 3086 main () 3087 { 3088 static int test_array [1 - 2 * !(($2) >= 0)]; 3089 test_array [0] = 0; 3090 return test_array [0]; 3091 3092 ; 3093 return 0; 3094 } 3095 _ACEOF 3096 if ac_fn_c_try_compile "$LINENO"; then : 3097 ac_lo=0 ac_mid=0 3098 while :; do 3099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3100 /* end confdefs.h. */ 3101 $4 3102 int 3103 main () 3104 { 3105 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 3106 test_array [0] = 0; 3107 return test_array [0]; 3108 3109 ; 3110 return 0; 3111 } 3112 _ACEOF 3113 if ac_fn_c_try_compile "$LINENO"; then : 3114 ac_hi=$ac_mid; break 3115 else 3116 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 3117 if test $ac_lo -le $ac_mid; then 3118 ac_lo= ac_hi= 3119 break 3120 fi 3121 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 3122 fi 3123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3124 done 3125 else 3126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3127 /* end confdefs.h. */ 3128 $4 3129 int 3130 main () 3131 { 3132 static int test_array [1 - 2 * !(($2) < 0)]; 3133 test_array [0] = 0; 3134 return test_array [0]; 3135 3136 ; 3137 return 0; 3138 } 3139 _ACEOF 3140 if ac_fn_c_try_compile "$LINENO"; then : 3141 ac_hi=-1 ac_mid=-1 3142 while :; do 3143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3144 /* end confdefs.h. */ 3145 $4 3146 int 3147 main () 3148 { 3149 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 3150 test_array [0] = 0; 3151 return test_array [0]; 3152 3153 ; 3154 return 0; 3155 } 3156 _ACEOF 3157 if ac_fn_c_try_compile "$LINENO"; then : 3158 ac_lo=$ac_mid; break 3159 else 3160 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 3161 if test $ac_mid -le $ac_hi; then 3162 ac_lo= ac_hi= 3163 break 3164 fi 3165 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 3166 fi 3167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3168 done 3169 else 3170 ac_lo= ac_hi= 3171 fi 3172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3173 fi 3174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3175 # Binary search between lo and hi bounds. 3176 while test "x$ac_lo" != "x$ac_hi"; do 3177 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 3178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3179 /* end confdefs.h. */ 3180 $4 3181 int 3182 main () 3183 { 3184 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 3185 test_array [0] = 0; 3186 return test_array [0]; 3187 3188 ; 3189 return 0; 3190 } 3191 _ACEOF 3192 if ac_fn_c_try_compile "$LINENO"; then : 3193 ac_hi=$ac_mid 3194 else 3195 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 3196 fi 3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3198 done 3199 case $ac_lo in #(( 3200 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 3201 '') ac_retval=1 ;; 3202 esac 3203 else 3204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3205 /* end confdefs.h. */ 3206 $4 3207 static long int longval () { return $2; } 3208 static unsigned long int ulongval () { return $2; } 3209 #include <stdio.h> 3210 #include <stdlib.h> 3211 int 3212 main () 3213 { 3214 3215 FILE *f = fopen ("conftest.val", "w"); 3216 if (! f) 3217 return 1; 3218 if (($2) < 0) 3219 { 3220 long int i = longval (); 3221 if (i != ($2)) 3222 return 1; 3223 fprintf (f, "%ld", i); 3224 } 3225 else 3226 { 3227 unsigned long int i = ulongval (); 3228 if (i != ($2)) 3229 return 1; 3230 fprintf (f, "%lu", i); 3231 } 3232 /* Do not output a trailing newline, as this causes \r\n confusion 3233 on some platforms. */ 3234 return ferror (f) || fclose (f) != 0; 3235 3236 ; 3237 return 0; 3238 } 3239 _ACEOF 3240 if ac_fn_c_try_run "$LINENO"; then : 3241 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 3242 else 3243 ac_retval=1 3244 fi 3245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3246 conftest.$ac_objext conftest.beam conftest.$ac_ext 3247 rm -f conftest.val 3248 3249 fi 3250 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3251 as_fn_set_status $ac_retval 3252 3253 } # ac_fn_c_compute_int 3254 3255 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 3256 # --------------------------------------------- 3257 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 3258 # accordingly. 3259 ac_fn_c_check_decl () 3260 { 3261 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3262 as_decl_name=`echo $2|sed 's/ *(.*//'` 3263 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 3265 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } 3266 if eval \${$3+:} false; then : 3267 $as_echo_n "(cached) " >&6 3268 else 3269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3270 /* end confdefs.h. */ 3271 $4 3272 int 3273 main () 3274 { 3275 #ifndef $as_decl_name 3276 #ifdef __cplusplus 3277 (void) $as_decl_use; 3278 #else 3279 (void) $as_decl_name; 3280 #endif 3281 #endif 3282 3283 ; 3284 return 0; 3285 } 3286 _ACEOF 3287 if ac_fn_c_try_compile "$LINENO"; then : 3288 eval "$3=yes" 3289 else 3290 eval "$3=no" 3291 fi 3292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3293 fi 3294 eval ac_res=\$$3 3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3296 $as_echo "$ac_res" >&6; } 3297 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3298 3299 } # ac_fn_c_check_decl 3300 3301 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 3302 # ---------------------------------------------------- 3303 # Tries to find if the field MEMBER exists in type AGGR, after including 3304 # INCLUDES, setting cache variable VAR accordingly. 3305 ac_fn_c_check_member () 3306 { 3307 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 3309 $as_echo_n "checking for $2.$3... " >&6; } 3310 if eval \${$4+:} false; then : 3311 $as_echo_n "(cached) " >&6 3312 else 3313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3314 /* end confdefs.h. */ 3315 $5 3316 int 3317 main () 3318 { 3319 static $2 ac_aggr; 3320 if (ac_aggr.$3) 3321 return 0; 3322 ; 3323 return 0; 3324 } 3325 _ACEOF 3326 if ac_fn_c_try_compile "$LINENO"; then : 3327 eval "$4=yes" 3328 else 3329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3330 /* end confdefs.h. */ 3331 $5 3332 int 3333 main () 3334 { 3335 static $2 ac_aggr; 3336 if (sizeof ac_aggr.$3) 3337 return 0; 3338 ; 3339 return 0; 3340 } 3341 _ACEOF 3342 if ac_fn_c_try_compile "$LINENO"; then : 3343 eval "$4=yes" 3344 else 3345 eval "$4=no" 3346 fi 3347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3348 fi 3349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3350 fi 3351 eval ac_res=\$$4 3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3353 $as_echo "$ac_res" >&6; } 3354 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3355 3356 } # ac_fn_c_check_member 3357 cat >config.log <<_ACEOF 3358 This file contains any messages produced by compilers while 3359 running configure, to aid debugging if configure makes a mistake. 3360 3361 It was created by GNU Bison $as_me 2.7, which was 3362 generated by GNU Autoconf 2.69. Invocation command line was 3363 3364 $ $0 $@ 3365 3366 _ACEOF 3367 exec 5>>config.log 3368 { 3369 cat <<_ASUNAME 3370 ## --------- ## 3371 ## Platform. ## 3372 ## --------- ## 3373 3374 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 3375 uname -m = `(uname -m) 2>/dev/null || echo unknown` 3376 uname -r = `(uname -r) 2>/dev/null || echo unknown` 3377 uname -s = `(uname -s) 2>/dev/null || echo unknown` 3378 uname -v = `(uname -v) 2>/dev/null || echo unknown` 3379 3380 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 3381 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 3382 3383 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 3384 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 3385 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 3386 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 3387 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 3388 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 3389 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 3390 3391 _ASUNAME 3392 3393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3394 for as_dir in $PATH 3395 do 3396 IFS=$as_save_IFS 3397 test -z "$as_dir" && as_dir=. 3398 $as_echo "PATH: $as_dir" 3399 done 3400 IFS=$as_save_IFS 3401 3402 } >&5 3403 3404 cat >&5 <<_ACEOF 3405 3406 3407 ## ----------- ## 3408 ## Core tests. ## 3409 ## ----------- ## 3410 3411 _ACEOF 3412 3413 3414 # Keep a trace of the command line. 3415 # Strip out --no-create and --no-recursion so they do not pile up. 3416 # Strip out --silent because we don't want to record it for future runs. 3417 # Also quote any args containing shell meta-characters. 3418 # Make two passes to allow for proper duplicate-argument suppression. 3419 ac_configure_args= 3420 ac_configure_args0= 3421 ac_configure_args1= 3422 ac_must_keep_next=false 3423 for ac_pass in 1 2 3424 do 3425 for ac_arg 3426 do 3427 case $ac_arg in 3428 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 3429 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3430 | -silent | --silent | --silen | --sile | --sil) 3431 continue ;; 3432 *\'*) 3433 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3434 esac 3435 case $ac_pass in 3436 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 3437 2) 3438 as_fn_append ac_configure_args1 " '$ac_arg'" 3439 if test $ac_must_keep_next = true; then 3440 ac_must_keep_next=false # Got value, back to normal. 3441 else 3442 case $ac_arg in 3443 *=* | --config-cache | -C | -disable-* | --disable-* \ 3444 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 3445 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 3446 | -with-* | --with-* | -without-* | --without-* | --x) 3447 case "$ac_configure_args0 " in 3448 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 3449 esac 3450 ;; 3451 -* ) ac_must_keep_next=true ;; 3452 esac 3453 fi 3454 as_fn_append ac_configure_args " '$ac_arg'" 3455 ;; 3456 esac 3457 done 3458 done 3459 { ac_configure_args0=; unset ac_configure_args0;} 3460 { ac_configure_args1=; unset ac_configure_args1;} 3461 3462 # When interrupted or exit'd, cleanup temporary files, and complete 3463 # config.log. We remove comments because anyway the quotes in there 3464 # would cause problems or look ugly. 3465 # WARNING: Use '\'' to represent an apostrophe within the trap. 3466 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3467 trap 'exit_status=$? 3468 # Save into config.log some information that might help in debugging. 3469 { 3470 echo 3471 3472 $as_echo "## ---------------- ## 3473 ## Cache variables. ## 3474 ## ---------------- ##" 3475 echo 3476 # The following way of writing the cache mishandles newlines in values, 3477 ( 3478 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3479 eval ac_val=\$$ac_var 3480 case $ac_val in #( 3481 *${as_nl}*) 3482 case $ac_var in #( 3483 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3484 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3485 esac 3486 case $ac_var in #( 3487 _ | IFS | as_nl) ;; #( 3488 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3489 *) { eval $ac_var=; unset $ac_var;} ;; 3490 esac ;; 3491 esac 3492 done 3493 (set) 2>&1 | 3494 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3495 *${as_nl}ac_space=\ *) 3496 sed -n \ 3497 "s/'\''/'\''\\\\'\'''\''/g; 3498 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3499 ;; #( 3500 *) 3501 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3502 ;; 3503 esac | 3504 sort 3505 ) 3506 echo 3507 3508 $as_echo "## ----------------- ## 3509 ## Output variables. ## 3510 ## ----------------- ##" 3511 echo 3512 for ac_var in $ac_subst_vars 3513 do 3514 eval ac_val=\$$ac_var 3515 case $ac_val in 3516 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3517 esac 3518 $as_echo "$ac_var='\''$ac_val'\''" 3519 done | sort 3520 echo 3521 3522 if test -n "$ac_subst_files"; then 3523 $as_echo "## ------------------- ## 3524 ## File substitutions. ## 3525 ## ------------------- ##" 3526 echo 3527 for ac_var in $ac_subst_files 3528 do 3529 eval ac_val=\$$ac_var 3530 case $ac_val in 3531 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3532 esac 3533 $as_echo "$ac_var='\''$ac_val'\''" 3534 done | sort 3535 echo 3536 fi 3537 3538 if test -s confdefs.h; then 3539 $as_echo "## ----------- ## 3540 ## confdefs.h. ## 3541 ## ----------- ##" 3542 echo 3543 cat confdefs.h 3544 echo 3545 fi 3546 test "$ac_signal" != 0 && 3547 $as_echo "$as_me: caught signal $ac_signal" 3548 $as_echo "$as_me: exit $exit_status" 3549 } >&5 3550 rm -f core *.core core.conftest.* && 3551 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3552 exit $exit_status 3553 ' 0 3554 for ac_signal in 1 2 13 15; do 3555 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3556 done 3557 ac_signal=0 3558 3559 # confdefs.h avoids OS command line length limits that DEFS can exceed. 3560 rm -f -r conftest* confdefs.h 3561 3562 $as_echo "/* confdefs.h */" > confdefs.h 3563 3564 # Predefined preprocessor variables. 3565 3566 cat >>confdefs.h <<_ACEOF 3567 #define PACKAGE_NAME "$PACKAGE_NAME" 3568 _ACEOF 3569 3570 cat >>confdefs.h <<_ACEOF 3571 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3572 _ACEOF 3573 3574 cat >>confdefs.h <<_ACEOF 3575 #define PACKAGE_VERSION "$PACKAGE_VERSION" 3576 _ACEOF 3577 3578 cat >>confdefs.h <<_ACEOF 3579 #define PACKAGE_STRING "$PACKAGE_STRING" 3580 _ACEOF 3581 3582 cat >>confdefs.h <<_ACEOF 3583 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3584 _ACEOF 3585 3586 cat >>confdefs.h <<_ACEOF 3587 #define PACKAGE_URL "$PACKAGE_URL" 3588 _ACEOF 3589 3590 3591 # Let the site file select an alternate cache file if it wants to. 3592 # Prefer an explicitly selected file to automatically selected ones. 3593 ac_site_file1=NONE 3594 ac_site_file2=NONE 3595 if test -n "$CONFIG_SITE"; then 3596 # We do not want a PATH search for config.site. 3597 case $CONFIG_SITE in #(( 3598 -*) ac_site_file1=./$CONFIG_SITE;; 3599 */*) ac_site_file1=$CONFIG_SITE;; 3600 *) ac_site_file1=./$CONFIG_SITE;; 3601 esac 3602 elif test "x$prefix" != xNONE; then 3603 ac_site_file1=$prefix/share/config.site 3604 ac_site_file2=$prefix/etc/config.site 3605 else 3606 ac_site_file1=$ac_default_prefix/share/config.site 3607 ac_site_file2=$ac_default_prefix/etc/config.site 3608 fi 3609 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3610 do 3611 test "x$ac_site_file" = xNONE && continue 3612 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3613 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3614 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 3615 sed 's/^/| /' "$ac_site_file" >&5 3616 . "$ac_site_file" \ 3617 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3619 as_fn_error $? "failed to load site script $ac_site_file 3620 See \`config.log' for more details" "$LINENO" 5; } 3621 fi 3622 done 3623 3624 if test -r "$cache_file"; then 3625 # Some versions of bash will fail to source /dev/null (special files 3626 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3627 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3628 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3629 $as_echo "$as_me: loading cache $cache_file" >&6;} 3630 case $cache_file in 3631 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3632 *) . "./$cache_file";; 3633 esac 3634 fi 3635 else 3636 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3637 $as_echo "$as_me: creating cache $cache_file" >&6;} 3638 >$cache_file 3639 fi 3640 3641 as_fn_append ac_header_list " locale.h" 3642 as_fn_append ac_func_list " _set_invalid_parameter_handler" 3643 as_fn_append ac_header_list " sys/socket.h" 3644 as_fn_append ac_header_list " unistd.h" 3645 as_fn_append ac_func_list " fcntl" 3646 as_fn_append ac_func_list " symlink" 3647 as_fn_append ac_header_list " stdio_ext.h" 3648 as_fn_append ac_func_list " __fpending" 3649 as_fn_append ac_func_list " vasnprintf" 3650 as_fn_append ac_header_list " features.h" 3651 as_fn_append ac_func_list " snprintf" 3652 as_fn_append ac_func_list " alarm" 3653 as_fn_append ac_func_list " __fseterr" 3654 as_fn_append ac_header_list " sys/stat.h" 3655 as_fn_append ac_func_list " getdelim" 3656 as_fn_append ac_func_list " getdtablesize" 3657 gl_getopt_required=GNU 3658 as_fn_append ac_header_list " getopt.h" 3659 as_fn_append ac_header_list " wchar.h" 3660 as_fn_append ac_header_list " stdint.h" 3661 as_fn_append ac_header_list " inttypes.h" 3662 as_fn_append ac_func_list " iswcntrl" 3663 as_fn_append ac_header_list " wctype.h" 3664 as_fn_append ac_func_list " iswblank" 3665 as_fn_append ac_header_list " math.h" 3666 as_fn_append ac_func_list " mbsinit" 3667 as_fn_append ac_func_list " mbrtowc" 3668 as_fn_append ac_func_list " isascii" 3669 as_fn_append ac_header_list " sys/mman.h" 3670 as_fn_append ac_func_list " mprotect" 3671 as_fn_append ac_func_list " obstack_printf" 3672 as_fn_append ac_func_list " lstat" 3673 as_fn_append ac_header_list " sys/param.h" 3674 as_fn_append ac_func_list " strerror_r" 3675 as_fn_append ac_func_list " __xpg_strerror_r" 3676 as_fn_append ac_func_list " pipe2" 3677 as_fn_append ac_func_list " posix_spawn" 3678 gl_printf_safe=yes 3679 as_fn_append ac_header_list " sched.h" 3680 as_fn_append ac_func_list " sigaction" 3681 as_fn_append ac_func_list " sigaltstack" 3682 as_fn_append ac_func_list " siginterrupt" 3683 as_fn_append ac_header_list " spawn.h" 3684 as_fn_append ac_func_list " strdup" 3685 as_fn_append ac_func_list " catgets" 3686 as_fn_append ac_func_list " strndup" 3687 as_fn_append ac_header_list " sys/wait.h" 3688 as_fn_append ac_header_list " sys/time.h" 3689 as_fn_append ac_func_list " pipe" 3690 as_fn_append ac_func_list " wcwidth" 3691 as_fn_append ac_func_list " setlocale" 3692 gt_needs="$gt_needs need-ngettext" 3693 # Check that the precious variables saved in the cache have kept the same 3694 # value. 3695 ac_cache_corrupted=false 3696 for ac_var in $ac_precious_vars; do 3697 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3698 eval ac_new_set=\$ac_env_${ac_var}_set 3699 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3700 eval ac_new_val=\$ac_env_${ac_var}_value 3701 case $ac_old_set,$ac_new_set in 3702 set,) 3703 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3704 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3705 ac_cache_corrupted=: ;; 3706 ,set) 3707 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3708 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3709 ac_cache_corrupted=: ;; 3710 ,);; 3711 *) 3712 if test "x$ac_old_val" != "x$ac_new_val"; then 3713 # differences in whitespace do not lead to failure. 3714 ac_old_val_w=`echo x $ac_old_val` 3715 ac_new_val_w=`echo x $ac_new_val` 3716 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3717 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3718 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3719 ac_cache_corrupted=: 3720 else 3721 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3722 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3723 eval $ac_var=\$ac_old_val 3724 fi 3725 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3726 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3727 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3728 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3729 fi;; 3730 esac 3731 # Pass precious variables to config.status. 3732 if test "$ac_new_set" = set; then 3733 case $ac_new_val in 3734 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3735 *) ac_arg=$ac_var=$ac_new_val ;; 3736 esac 3737 case " $ac_configure_args " in 3738 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3739 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3740 esac 3741 fi 3742 done 3743 if $ac_cache_corrupted; then 3744 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3746 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3747 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3748 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3749 fi 3750 ## -------------------- ## 3751 ## Main body of script. ## 3752 ## -------------------- ## 3753 3754 ac_ext=c 3755 ac_cpp='$CPP $CPPFLAGS' 3756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3758 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3759 3760 3761 PACKAGE_COPYRIGHT_YEAR=2012 3762 3763 3764 cat >>confdefs.h <<_ACEOF 3765 #define PACKAGE_COPYRIGHT_YEAR $PACKAGE_COPYRIGHT_YEAR 3766 _ACEOF 3767 3768 3769 ac_aux_dir= 3770 for ac_dir in build-aux "$srcdir"/build-aux; do 3771 if test -f "$ac_dir/install-sh"; then 3772 ac_aux_dir=$ac_dir 3773 ac_install_sh="$ac_aux_dir/install-sh -c" 3774 break 3775 elif test -f "$ac_dir/install.sh"; then 3776 ac_aux_dir=$ac_dir 3777 ac_install_sh="$ac_aux_dir/install.sh -c" 3778 break 3779 elif test -f "$ac_dir/shtool"; then 3780 ac_aux_dir=$ac_dir 3781 ac_install_sh="$ac_aux_dir/shtool install -c" 3782 break 3783 fi 3784 done 3785 if test -z "$ac_aux_dir"; then 3786 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 3787 fi 3788 3789 # These three variables are undocumented and unsupported, 3790 # and are intended to be withdrawn in a future Autoconf release. 3791 # They can cause serious problems if a builder's source tree is in a directory 3792 # whose full name contains unusual characters. 3793 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3794 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3795 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3796 3797 3798 3799 3800 # Automake 1.10.3 and 1.11.1 fix a security flaw discussed here: 3801 # 3802 # http://thread.gmane.org/gmane.comp.sysutils.autotools.announce/131 3803 # 3804 # To avoid 1.11, we make 1.11.1 the minimum version. 3805 # 3806 # We want gnits strictness only when rolling a stable release. For 3807 # release candidates, we use version strings like 2.4.3_rc1, but gnits 3808 # doesn't like that, so we let the underscore disable gnits. Between 3809 # releases, we want to be able run make dist without being required to 3810 # add a bogus NEWS entry. In that case, the version string 3811 # automatically contains a dash, which we also let disable gnits. 3812 am__api_version='1.12' 3813 3814 # Find a good install program. We prefer a C program (faster), 3815 # so one script is as good as another. But avoid the broken or 3816 # incompatible versions: 3817 # SysV /etc/install, /usr/sbin/install 3818 # SunOS /usr/etc/install 3819 # IRIX /sbin/install 3820 # AIX /bin/install 3821 # AmigaOS /C/install, which installs bootblocks on floppy discs 3822 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3823 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3824 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3825 # OS/2's system install, which has a completely different semantic 3826 # ./install, which can be erroneously created by make from ./install.sh. 3827 # Reject install programs that cannot install multiple files. 3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3829 $as_echo_n "checking for a BSD-compatible install... " >&6; } 3830 if test -z "$INSTALL"; then 3831 if ${ac_cv_path_install+:} false; then : 3832 $as_echo_n "(cached) " >&6 3833 else 3834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3835 for as_dir in $PATH 3836 do 3837 IFS=$as_save_IFS 3838 test -z "$as_dir" && as_dir=. 3839 # Account for people who put trailing slashes in PATH elements. 3840 case $as_dir/ in #(( 3841 ./ | .// | /[cC]/* | \ 3842 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3843 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3844 /usr/ucb/* ) ;; 3845 *) 3846 # OSF1 and SCO ODT 3.0 have their own names for install. 3847 # Don't use installbsd from OSF since it installs stuff as root 3848 # by default. 3849 for ac_prog in ginstall scoinst install; do 3850 for ac_exec_ext in '' $ac_executable_extensions; do 3851 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3852 if test $ac_prog = install && 3853 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3854 # AIX install. It has an incompatible calling convention. 3855 : 3856 elif test $ac_prog = install && 3857 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3858 # program-specific install script used by HP pwplus--don't use. 3859 : 3860 else 3861 rm -rf conftest.one conftest.two conftest.dir 3862 echo one > conftest.one 3863 echo two > conftest.two 3864 mkdir conftest.dir 3865 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3866 test -s conftest.one && test -s conftest.two && 3867 test -s conftest.dir/conftest.one && 3868 test -s conftest.dir/conftest.two 3869 then 3870 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3871 break 3 3872 fi 3873 fi 3874 fi 3875 done 3876 done 3877 ;; 3878 esac 3879 3880 done 3881 IFS=$as_save_IFS 3882 3883 rm -rf conftest.one conftest.two conftest.dir 3884 3885 fi 3886 if test "${ac_cv_path_install+set}" = set; then 3887 INSTALL=$ac_cv_path_install 3888 else 3889 # As a last resort, use the slow shell script. Don't cache a 3890 # value for INSTALL within a source directory, because that will 3891 # break other packages using the cache if that directory is 3892 # removed, or if the value is a relative name. 3893 INSTALL=$ac_install_sh 3894 fi 3895 fi 3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3897 $as_echo "$INSTALL" >&6; } 3898 3899 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3900 # It thinks the first close brace ends the variable substitution. 3901 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3902 3903 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3904 3905 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3906 3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3908 $as_echo_n "checking whether build environment is sane... " >&6; } 3909 # Reject unsafe characters in $srcdir or the absolute working directory 3910 # name. Accept space and tab only in the latter. 3911 am_lf=' 3912 ' 3913 case `pwd` in 3914 *[\\\"\#\$\&\'\`$am_lf]*) 3915 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3916 esac 3917 case $srcdir in 3918 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3919 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3920 esac 3921 3922 # Do 'set' in a subshell so we don't clobber the current shell's 3923 # arguments. Must try -L first in case configure is actually a 3924 # symlink; some systems play weird games with the mod time of symlinks 3925 # (eg FreeBSD returns the mod time of the symlink's containing 3926 # directory). 3927 if ( 3928 am_has_slept=no 3929 for am_try in 1 2; do 3930 echo "timestamp, slept: $am_has_slept" > conftest.file 3931 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3932 if test "$*" = "X"; then 3933 # -L didn't work. 3934 set X `ls -t "$srcdir/configure" conftest.file` 3935 fi 3936 if test "$*" != "X $srcdir/configure conftest.file" \ 3937 && test "$*" != "X conftest.file $srcdir/configure"; then 3938 3939 # If neither matched, then we have a broken ls. This can happen 3940 # if, for instance, CONFIG_SHELL is bash and it inherits a 3941 # broken ls alias from the environment. This has actually 3942 # happened. Such a system could not be considered "sane". 3943 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3944 alias in your environment" "$LINENO" 5 3945 fi 3946 if test "$2" = conftest.file || test $am_try -eq 2; then 3947 break 3948 fi 3949 # Just in case. 3950 sleep 1 3951 am_has_slept=yes 3952 done 3953 test "$2" = conftest.file 3954 ) 3955 then 3956 # Ok. 3957 : 3958 else 3959 as_fn_error $? "newly created file is older than distributed files! 3960 Check your system clock" "$LINENO" 5 3961 fi 3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3963 $as_echo "yes" >&6; } 3964 # If we didn't sleep, we still need to ensure time stamps of config.status and 3965 # generated files are strictly newer. 3966 am_sleep_pid= 3967 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3968 ( sleep 1 ) & 3969 am_sleep_pid=$! 3970 fi 3971 3972 rm -f conftest.file 3973 3974 test "$program_prefix" != NONE && 3975 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3976 # Use a double $ so make ignores it. 3977 test "$program_suffix" != NONE && 3978 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3979 # Double any \ or $. 3980 # By default was `s,x,x', remove it if useless. 3981 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3982 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3983 3984 # expand $ac_aux_dir to an absolute path 3985 am_aux_dir=`cd $ac_aux_dir && pwd` 3986 3987 if test x"${MISSING+set}" != xset; then 3988 case $am_aux_dir in 3989 *\ * | *\ *) 3990 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3991 *) 3992 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3993 esac 3994 fi 3995 # Use eval to expand $SHELL 3996 if eval "$MISSING --run true"; then 3997 am_missing_run="$MISSING --run " 3998 else 3999 am_missing_run= 4000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4001 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4002 fi 4003 4004 if test x"${install_sh}" != xset; then 4005 case $am_aux_dir in 4006 *\ * | *\ *) 4007 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4008 *) 4009 install_sh="\${SHELL} $am_aux_dir/install-sh" 4010 esac 4011 fi 4012 4013 # Installed binaries are usually stripped using 'strip' when the user 4014 # run "make install-strip". However 'strip' might not be the right 4015 # tool to use in cross-compilation environments, therefore Automake 4016 # will honor the 'STRIP' environment variable to overrule this program. 4017 if test "$cross_compiling" != no; then 4018 if test -n "$ac_tool_prefix"; then 4019 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4020 set dummy ${ac_tool_prefix}strip; ac_word=$2 4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4022 $as_echo_n "checking for $ac_word... " >&6; } 4023 if ${ac_cv_prog_STRIP+:} false; then : 4024 $as_echo_n "(cached) " >&6 4025 else 4026 if test -n "$STRIP"; then 4027 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4028 else 4029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4030 for as_dir in $PATH 4031 do 4032 IFS=$as_save_IFS 4033 test -z "$as_dir" && as_dir=. 4034 for ac_exec_ext in '' $ac_executable_extensions; do 4035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4036 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4038 break 2 4039 fi 4040 done 4041 done 4042 IFS=$as_save_IFS 4043 4044 fi 4045 fi 4046 STRIP=$ac_cv_prog_STRIP 4047 if test -n "$STRIP"; then 4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4049 $as_echo "$STRIP" >&6; } 4050 else 4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4052 $as_echo "no" >&6; } 4053 fi 4054 4055 4056 fi 4057 if test -z "$ac_cv_prog_STRIP"; then 4058 ac_ct_STRIP=$STRIP 4059 # Extract the first word of "strip", so it can be a program name with args. 4060 set dummy strip; ac_word=$2 4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4062 $as_echo_n "checking for $ac_word... " >&6; } 4063 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 4064 $as_echo_n "(cached) " >&6 4065 else 4066 if test -n "$ac_ct_STRIP"; then 4067 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4068 else 4069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4070 for as_dir in $PATH 4071 do 4072 IFS=$as_save_IFS 4073 test -z "$as_dir" && as_dir=. 4074 for ac_exec_ext in '' $ac_executable_extensions; do 4075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4076 ac_cv_prog_ac_ct_STRIP="strip" 4077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4078 break 2 4079 fi 4080 done 4081 done 4082 IFS=$as_save_IFS 4083 4084 fi 4085 fi 4086 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4087 if test -n "$ac_ct_STRIP"; then 4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4089 $as_echo "$ac_ct_STRIP" >&6; } 4090 else 4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4092 $as_echo "no" >&6; } 4093 fi 4094 4095 if test "x$ac_ct_STRIP" = x; then 4096 STRIP=":" 4097 else 4098 case $cross_compiling:$ac_tool_warned in 4099 yes:) 4100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4102 ac_tool_warned=yes ;; 4103 esac 4104 STRIP=$ac_ct_STRIP 4105 fi 4106 else 4107 STRIP="$ac_cv_prog_STRIP" 4108 fi 4109 4110 fi 4111 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4112 4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 4114 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 4115 if test -z "$MKDIR_P"; then 4116 if ${ac_cv_path_mkdir+:} false; then : 4117 $as_echo_n "(cached) " >&6 4118 else 4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4120 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4121 do 4122 IFS=$as_save_IFS 4123 test -z "$as_dir" && as_dir=. 4124 for ac_prog in mkdir gmkdir; do 4125 for ac_exec_ext in '' $ac_executable_extensions; do 4126 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 4127 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 4128 'mkdir (GNU coreutils) '* | \ 4129 'mkdir (coreutils) '* | \ 4130 'mkdir (fileutils) '4.1*) 4131 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 4132 break 3;; 4133 esac 4134 done 4135 done 4136 done 4137 IFS=$as_save_IFS 4138 4139 fi 4140 4141 test -d ./--version && rmdir ./--version 4142 if test "${ac_cv_path_mkdir+set}" = set; then 4143 MKDIR_P="$ac_cv_path_mkdir -p" 4144 else 4145 # As a last resort, use the slow shell script. Don't cache a 4146 # value for MKDIR_P within a source directory, because that will 4147 # break other packages using the cache if that directory is 4148 # removed, or if the value is a relative name. 4149 MKDIR_P="$ac_install_sh -d" 4150 fi 4151 fi 4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4153 $as_echo "$MKDIR_P" >&6; } 4154 4155 4156 for ac_prog in gawk mawk nawk awk 4157 do 4158 # Extract the first word of "$ac_prog", so it can be a program name with args. 4159 set dummy $ac_prog; ac_word=$2 4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4161 $as_echo_n "checking for $ac_word... " >&6; } 4162 if ${ac_cv_prog_AWK+:} false; then : 4163 $as_echo_n "(cached) " >&6 4164 else 4165 if test -n "$AWK"; then 4166 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4167 else 4168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4169 for as_dir in $PATH 4170 do 4171 IFS=$as_save_IFS 4172 test -z "$as_dir" && as_dir=. 4173 for ac_exec_ext in '' $ac_executable_extensions; do 4174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4175 ac_cv_prog_AWK="$ac_prog" 4176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4177 break 2 4178 fi 4179 done 4180 done 4181 IFS=$as_save_IFS 4182 4183 fi 4184 fi 4185 AWK=$ac_cv_prog_AWK 4186 if test -n "$AWK"; then 4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4188 $as_echo "$AWK" >&6; } 4189 else 4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4191 $as_echo "no" >&6; } 4192 fi 4193 4194 4195 test -n "$AWK" && break 4196 done 4197 4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4199 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4200 set x ${MAKE-make} 4201 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4202 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4203 $as_echo_n "(cached) " >&6 4204 else 4205 cat >conftest.make <<\_ACEOF 4206 SHELL = /bin/sh 4207 all: 4208 @echo '@@@%%%=$(MAKE)=@@@%%%' 4209 _ACEOF 4210 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4211 case `${MAKE-make} -f conftest.make 2>/dev/null` in 4212 *@@@%%%=?*=@@@%%%*) 4213 eval ac_cv_prog_make_${ac_make}_set=yes;; 4214 *) 4215 eval ac_cv_prog_make_${ac_make}_set=no;; 4216 esac 4217 rm -f conftest.make 4218 fi 4219 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4221 $as_echo "yes" >&6; } 4222 SET_MAKE= 4223 else 4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4225 $as_echo "no" >&6; } 4226 SET_MAKE="MAKE=${MAKE-make}" 4227 fi 4228 4229 rm -rf .tst 2>/dev/null 4230 mkdir .tst 2>/dev/null 4231 if test -d .tst; then 4232 am__leading_dot=. 4233 else 4234 am__leading_dot=_ 4235 fi 4236 rmdir .tst 2>/dev/null 4237 4238 # Check whether --enable-silent-rules was given. 4239 if test "${enable_silent_rules+set}" = set; then : 4240 enableval=$enable_silent_rules; 4241 fi 4242 4243 case $enable_silent_rules in # ((( 4244 yes) AM_DEFAULT_VERBOSITY=0;; 4245 no) AM_DEFAULT_VERBOSITY=1;; 4246 *) AM_DEFAULT_VERBOSITY=1;; 4247 esac 4248 am_make=${MAKE-make} 4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4250 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4251 if ${am_cv_make_support_nested_variables+:} false; then : 4252 $as_echo_n "(cached) " >&6 4253 else 4254 if $as_echo 'TRUE=$(BAR$(V)) 4255 BAR0=false 4256 BAR1=true 4257 V=1 4258 am__doit: 4259 @$(TRUE) 4260 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4261 am_cv_make_support_nested_variables=yes 4262 else 4263 am_cv_make_support_nested_variables=no 4264 fi 4265 fi 4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4267 $as_echo "$am_cv_make_support_nested_variables" >&6; } 4268 if test $am_cv_make_support_nested_variables = yes; then 4269 AM_V='$(V)' 4270 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4271 else 4272 AM_V=$AM_DEFAULT_VERBOSITY 4273 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4274 fi 4275 AM_BACKSLASH='\' 4276 4277 if test "`cd $srcdir && pwd`" != "`pwd`"; then 4278 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4279 # is not polluted with repeated "-I." 4280 am__isrc=' -I$(srcdir)' 4281 # test to see if srcdir already configured 4282 if test -f $srcdir/config.status; then 4283 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4284 fi 4285 fi 4286 4287 # test whether we have cygpath 4288 if test -z "$CYGPATH_W"; then 4289 if (cygpath --version) >/dev/null 2>/dev/null; then 4290 CYGPATH_W='cygpath -w' 4291 else 4292 CYGPATH_W=echo 4293 fi 4294 fi 4295 4296 4297 # Define the identity of the package. 4298 PACKAGE='bison' 4299 VERSION='2.7' 4300 4301 4302 cat >>confdefs.h <<_ACEOF 4303 #define PACKAGE "$PACKAGE" 4304 _ACEOF 4305 4306 4307 cat >>confdefs.h <<_ACEOF 4308 #define VERSION "$VERSION" 4309 _ACEOF 4310 4311 # Some tools Automake needs. 4312 4313 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4314 4315 4316 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4317 4318 4319 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4320 4321 4322 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4323 4324 4325 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4326 4327 # For better backward compatibility. To be removed once Automake 1.9.x 4328 # dies out for good. For more background, see: 4329 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4330 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4331 mkdir_p='$(MKDIR_P)' 4332 4333 # We need awk for the "check" target. The system "awk" is bad on 4334 # some platforms. 4335 # Always define AMTAR for backward compatibility. Yes, it's still used 4336 # in the wild :-( We should find a proper way to deprecate it ... 4337 AMTAR='$${TAR-tar}' 4338 4339 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4340 4341 4342 4343 4344 4345 # Check whether --enable-silent-rules was given. 4346 if test "${enable_silent_rules+set}" = set; then : 4347 enableval=$enable_silent_rules; 4348 fi 4349 4350 case $enable_silent_rules in # ((( 4351 yes) AM_DEFAULT_VERBOSITY=0;; 4352 no) AM_DEFAULT_VERBOSITY=1;; 4353 *) AM_DEFAULT_VERBOSITY=0;; 4354 esac 4355 am_make=${MAKE-make} 4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4357 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4358 if ${am_cv_make_support_nested_variables+:} false; then : 4359 $as_echo_n "(cached) " >&6 4360 else 4361 if $as_echo 'TRUE=$(BAR$(V)) 4362 BAR0=false 4363 BAR1=true 4364 V=1 4365 am__doit: 4366 @$(TRUE) 4367 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4368 am_cv_make_support_nested_variables=yes 4369 else 4370 am_cv_make_support_nested_variables=no 4371 fi 4372 fi 4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4374 $as_echo "$am_cv_make_support_nested_variables" >&6; } 4375 if test $am_cv_make_support_nested_variables = yes; then 4376 AM_V='$(V)' 4377 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4378 else 4379 AM_V=$AM_DEFAULT_VERBOSITY 4380 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4381 fi 4382 AM_BACKSLASH='\' 4383 4384 ac_config_headers="$ac_config_headers lib/config.h:lib/config.in.h" 4385 4386 4387 # Checks for the compiler. 4388 DEPDIR="${am__leading_dot}deps" 4389 4390 ac_config_commands="$ac_config_commands depfiles" 4391 4392 4393 am_make=${MAKE-make} 4394 cat > confinc << 'END' 4395 am__doit: 4396 @echo this is the am__doit target 4397 .PHONY: am__doit 4398 END 4399 # If we don't find an include directive, just comment out the code. 4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4401 $as_echo_n "checking for style of include used by $am_make... " >&6; } 4402 am__include="#" 4403 am__quote= 4404 _am_result=none 4405 # First try GNU make style include. 4406 echo "include confinc" > confmf 4407 # Ignore all kinds of additional output from 'make'. 4408 case `$am_make -s -f confmf 2> /dev/null` in #( 4409 *the\ am__doit\ target*) 4410 am__include=include 4411 am__quote= 4412 _am_result=GNU 4413 ;; 4414 esac 4415 # Now try BSD make style include. 4416 if test "$am__include" = "#"; then 4417 echo '.include "confinc"' > confmf 4418 case `$am_make -s -f confmf 2> /dev/null` in #( 4419 *the\ am__doit\ target*) 4420 am__include=.include 4421 am__quote="\"" 4422 _am_result=BSD 4423 ;; 4424 esac 4425 fi 4426 4427 4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4429 $as_echo "$_am_result" >&6; } 4430 rm -f confinc confmf 4431 4432 # Check whether --enable-dependency-tracking was given. 4433 if test "${enable_dependency_tracking+set}" = set; then : 4434 enableval=$enable_dependency_tracking; 4435 fi 4436 4437 if test "x$enable_dependency_tracking" != xno; then 4438 am_depcomp="$ac_aux_dir/depcomp" 4439 AMDEPBACKSLASH='\' 4440 am__nodep='_no' 4441 fi 4442 if test "x$enable_dependency_tracking" != xno; then 4443 AMDEP_TRUE= 4444 AMDEP_FALSE='#' 4445 else 4446 AMDEP_TRUE='#' 4447 AMDEP_FALSE= 4448 fi 4449 4450 4451 ac_ext=c 4452 ac_cpp='$CPP $CPPFLAGS' 4453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4455 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4456 if test -n "$ac_tool_prefix"; then 4457 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4458 set dummy ${ac_tool_prefix}gcc; ac_word=$2 4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4460 $as_echo_n "checking for $ac_word... " >&6; } 4461 if ${ac_cv_prog_CC+:} false; then : 4462 $as_echo_n "(cached) " >&6 4463 else 4464 if test -n "$CC"; then 4465 ac_cv_prog_CC="$CC" # Let the user override the test. 4466 else 4467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4468 for as_dir in $PATH 4469 do 4470 IFS=$as_save_IFS 4471 test -z "$as_dir" && as_dir=. 4472 for ac_exec_ext in '' $ac_executable_extensions; do 4473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4474 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4476 break 2 4477 fi 4478 done 4479 done 4480 IFS=$as_save_IFS 4481 4482 fi 4483 fi 4484 CC=$ac_cv_prog_CC 4485 if test -n "$CC"; then 4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4487 $as_echo "$CC" >&6; } 4488 else 4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4490 $as_echo "no" >&6; } 4491 fi 4492 4493 4494 fi 4495 if test -z "$ac_cv_prog_CC"; then 4496 ac_ct_CC=$CC 4497 # Extract the first word of "gcc", so it can be a program name with args. 4498 set dummy gcc; ac_word=$2 4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4500 $as_echo_n "checking for $ac_word... " >&6; } 4501 if ${ac_cv_prog_ac_ct_CC+:} false; then : 4502 $as_echo_n "(cached) " >&6 4503 else 4504 if test -n "$ac_ct_CC"; then 4505 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4506 else 4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4508 for as_dir in $PATH 4509 do 4510 IFS=$as_save_IFS 4511 test -z "$as_dir" && as_dir=. 4512 for ac_exec_ext in '' $ac_executable_extensions; do 4513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4514 ac_cv_prog_ac_ct_CC="gcc" 4515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4516 break 2 4517 fi 4518 done 4519 done 4520 IFS=$as_save_IFS 4521 4522 fi 4523 fi 4524 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4525 if test -n "$ac_ct_CC"; then 4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4527 $as_echo "$ac_ct_CC" >&6; } 4528 else 4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4530 $as_echo "no" >&6; } 4531 fi 4532 4533 if test "x$ac_ct_CC" = x; then 4534 CC="" 4535 else 4536 case $cross_compiling:$ac_tool_warned in 4537 yes:) 4538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4540 ac_tool_warned=yes ;; 4541 esac 4542 CC=$ac_ct_CC 4543 fi 4544 else 4545 CC="$ac_cv_prog_CC" 4546 fi 4547 4548 if test -z "$CC"; then 4549 if test -n "$ac_tool_prefix"; then 4550 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4551 set dummy ${ac_tool_prefix}cc; ac_word=$2 4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4553 $as_echo_n "checking for $ac_word... " >&6; } 4554 if ${ac_cv_prog_CC+:} false; then : 4555 $as_echo_n "(cached) " >&6 4556 else 4557 if test -n "$CC"; then 4558 ac_cv_prog_CC="$CC" # Let the user override the test. 4559 else 4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4561 for as_dir in $PATH 4562 do 4563 IFS=$as_save_IFS 4564 test -z "$as_dir" && as_dir=. 4565 for ac_exec_ext in '' $ac_executable_extensions; do 4566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4567 ac_cv_prog_CC="${ac_tool_prefix}cc" 4568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4569 break 2 4570 fi 4571 done 4572 done 4573 IFS=$as_save_IFS 4574 4575 fi 4576 fi 4577 CC=$ac_cv_prog_CC 4578 if test -n "$CC"; then 4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4580 $as_echo "$CC" >&6; } 4581 else 4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4583 $as_echo "no" >&6; } 4584 fi 4585 4586 4587 fi 4588 fi 4589 if test -z "$CC"; then 4590 # Extract the first word of "cc", so it can be a program name with args. 4591 set dummy cc; ac_word=$2 4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4593 $as_echo_n "checking for $ac_word... " >&6; } 4594 if ${ac_cv_prog_CC+:} false; then : 4595 $as_echo_n "(cached) " >&6 4596 else 4597 if test -n "$CC"; then 4598 ac_cv_prog_CC="$CC" # Let the user override the test. 4599 else 4600 ac_prog_rejected=no 4601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4602 for as_dir in $PATH 4603 do 4604 IFS=$as_save_IFS 4605 test -z "$as_dir" && as_dir=. 4606 for ac_exec_ext in '' $ac_executable_extensions; do 4607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4608 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4609 ac_prog_rejected=yes 4610 continue 4611 fi 4612 ac_cv_prog_CC="cc" 4613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4614 break 2 4615 fi 4616 done 4617 done 4618 IFS=$as_save_IFS 4619 4620 if test $ac_prog_rejected = yes; then 4621 # We found a bogon in the path, so make sure we never use it. 4622 set dummy $ac_cv_prog_CC 4623 shift 4624 if test $# != 0; then 4625 # We chose a different compiler from the bogus one. 4626 # However, it has the same basename, so the bogon will be chosen 4627 # first if we set CC to just the basename; use the full file name. 4628 shift 4629 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4630 fi 4631 fi 4632 fi 4633 fi 4634 CC=$ac_cv_prog_CC 4635 if test -n "$CC"; then 4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4637 $as_echo "$CC" >&6; } 4638 else 4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4640 $as_echo "no" >&6; } 4641 fi 4642 4643 4644 fi 4645 if test -z "$CC"; then 4646 if test -n "$ac_tool_prefix"; then 4647 for ac_prog in cl.exe 4648 do 4649 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4650 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4652 $as_echo_n "checking for $ac_word... " >&6; } 4653 if ${ac_cv_prog_CC+:} false; then : 4654 $as_echo_n "(cached) " >&6 4655 else 4656 if test -n "$CC"; then 4657 ac_cv_prog_CC="$CC" # Let the user override the test. 4658 else 4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4660 for as_dir in $PATH 4661 do 4662 IFS=$as_save_IFS 4663 test -z "$as_dir" && as_dir=. 4664 for ac_exec_ext in '' $ac_executable_extensions; do 4665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4666 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4668 break 2 4669 fi 4670 done 4671 done 4672 IFS=$as_save_IFS 4673 4674 fi 4675 fi 4676 CC=$ac_cv_prog_CC 4677 if test -n "$CC"; then 4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4679 $as_echo "$CC" >&6; } 4680 else 4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4682 $as_echo "no" >&6; } 4683 fi 4684 4685 4686 test -n "$CC" && break 4687 done 4688 fi 4689 if test -z "$CC"; then 4690 ac_ct_CC=$CC 4691 for ac_prog in cl.exe 4692 do 4693 # Extract the first word of "$ac_prog", so it can be a program name with args. 4694 set dummy $ac_prog; ac_word=$2 4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4696 $as_echo_n "checking for $ac_word... " >&6; } 4697 if ${ac_cv_prog_ac_ct_CC+:} false; then : 4698 $as_echo_n "(cached) " >&6 4699 else 4700 if test -n "$ac_ct_CC"; then 4701 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4702 else 4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4704 for as_dir in $PATH 4705 do 4706 IFS=$as_save_IFS 4707 test -z "$as_dir" && as_dir=. 4708 for ac_exec_ext in '' $ac_executable_extensions; do 4709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4710 ac_cv_prog_ac_ct_CC="$ac_prog" 4711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4712 break 2 4713 fi 4714 done 4715 done 4716 IFS=$as_save_IFS 4717 4718 fi 4719 fi 4720 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4721 if test -n "$ac_ct_CC"; then 4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4723 $as_echo "$ac_ct_CC" >&6; } 4724 else 4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4726 $as_echo "no" >&6; } 4727 fi 4728 4729 4730 test -n "$ac_ct_CC" && break 4731 done 4732 4733 if test "x$ac_ct_CC" = x; then 4734 CC="" 4735 else 4736 case $cross_compiling:$ac_tool_warned in 4737 yes:) 4738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4740 ac_tool_warned=yes ;; 4741 esac 4742 CC=$ac_ct_CC 4743 fi 4744 fi 4745 4746 fi 4747 4748 4749 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4751 as_fn_error $? "no acceptable C compiler found in \$PATH 4752 See \`config.log' for more details" "$LINENO" 5; } 4753 4754 # Provide some information about the compiler. 4755 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4756 set X $ac_compile 4757 ac_compiler=$2 4758 for ac_option in --version -v -V -qversion; do 4759 { { ac_try="$ac_compiler $ac_option >&5" 4760 case "(($ac_try" in 4761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4762 *) ac_try_echo=$ac_try;; 4763 esac 4764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4765 $as_echo "$ac_try_echo"; } >&5 4766 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4767 ac_status=$? 4768 if test -s conftest.err; then 4769 sed '10a\ 4770 ... rest of stderr output deleted ... 4771 10q' conftest.err >conftest.er1 4772 cat conftest.er1 >&5 4773 fi 4774 rm -f conftest.er1 conftest.err 4775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4776 test $ac_status = 0; } 4777 done 4778 4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4780 /* end confdefs.h. */ 4781 4782 int 4783 main () 4784 { 4785 4786 ; 4787 return 0; 4788 } 4789 _ACEOF 4790 ac_clean_files_save=$ac_clean_files 4791 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4792 # Try to create an executable without -o first, disregard a.out. 4793 # It will help us diagnose broken compilers, and finding out an intuition 4794 # of exeext. 4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4796 $as_echo_n "checking whether the C compiler works... " >&6; } 4797 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4798 4799 # The possible output files: 4800 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4801 4802 ac_rmfiles= 4803 for ac_file in $ac_files 4804 do 4805 case $ac_file in 4806 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4807 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4808 esac 4809 done 4810 rm -f $ac_rmfiles 4811 4812 if { { ac_try="$ac_link_default" 4813 case "(($ac_try" in 4814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4815 *) ac_try_echo=$ac_try;; 4816 esac 4817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4818 $as_echo "$ac_try_echo"; } >&5 4819 (eval "$ac_link_default") 2>&5 4820 ac_status=$? 4821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4822 test $ac_status = 0; }; then : 4823 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4824 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4825 # in a Makefile. We should not override ac_cv_exeext if it was cached, 4826 # so that the user can short-circuit this test for compilers unknown to 4827 # Autoconf. 4828 for ac_file in $ac_files '' 4829 do 4830 test -f "$ac_file" || continue 4831 case $ac_file in 4832 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4833 ;; 4834 [ab].out ) 4835 # We found the default executable, but exeext='' is most 4836 # certainly right. 4837 break;; 4838 *.* ) 4839 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4840 then :; else 4841 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4842 fi 4843 # We set ac_cv_exeext here because the later test for it is not 4844 # safe: cross compilers may not add the suffix if given an `-o' 4845 # argument, so we may need to know it at that point already. 4846 # Even if this section looks crufty: it has the advantage of 4847 # actually working. 4848 break;; 4849 * ) 4850 break;; 4851 esac 4852 done 4853 test "$ac_cv_exeext" = no && ac_cv_exeext= 4854 4855 else 4856 ac_file='' 4857 fi 4858 if test -z "$ac_file"; then : 4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4860 $as_echo "no" >&6; } 4861 $as_echo "$as_me: failed program was:" >&5 4862 sed 's/^/| /' conftest.$ac_ext >&5 4863 4864 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4865 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4866 as_fn_error 77 "C compiler cannot create executables 4867 See \`config.log' for more details" "$LINENO" 5; } 4868 else 4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4870 $as_echo "yes" >&6; } 4871 fi 4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4873 $as_echo_n "checking for C compiler default output file name... " >&6; } 4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4875 $as_echo "$ac_file" >&6; } 4876 ac_exeext=$ac_cv_exeext 4877 4878 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4879 ac_clean_files=$ac_clean_files_save 4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4881 $as_echo_n "checking for suffix of executables... " >&6; } 4882 if { { ac_try="$ac_link" 4883 case "(($ac_try" in 4884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4885 *) ac_try_echo=$ac_try;; 4886 esac 4887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4888 $as_echo "$ac_try_echo"; } >&5 4889 (eval "$ac_link") 2>&5 4890 ac_status=$? 4891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4892 test $ac_status = 0; }; then : 4893 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4894 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4895 # work properly (i.e., refer to `conftest.exe'), while it won't with 4896 # `rm'. 4897 for ac_file in conftest.exe conftest conftest.*; do 4898 test -f "$ac_file" || continue 4899 case $ac_file in 4900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4901 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4902 break;; 4903 * ) break;; 4904 esac 4905 done 4906 else 4907 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4909 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4910 See \`config.log' for more details" "$LINENO" 5; } 4911 fi 4912 rm -f conftest conftest$ac_cv_exeext 4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4914 $as_echo "$ac_cv_exeext" >&6; } 4915 4916 rm -f conftest.$ac_ext 4917 EXEEXT=$ac_cv_exeext 4918 ac_exeext=$EXEEXT 4919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4920 /* end confdefs.h. */ 4921 #include <stdio.h> 4922 int 4923 main () 4924 { 4925 FILE *f = fopen ("conftest.out", "w"); 4926 return ferror (f) || fclose (f) != 0; 4927 4928 ; 4929 return 0; 4930 } 4931 _ACEOF 4932 ac_clean_files="$ac_clean_files conftest.out" 4933 # Check that the compiler produces executables we can run. If not, either 4934 # the compiler is broken, or we cross compile. 4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4936 $as_echo_n "checking whether we are cross compiling... " >&6; } 4937 if test "$cross_compiling" != yes; then 4938 { { ac_try="$ac_link" 4939 case "(($ac_try" in 4940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4941 *) ac_try_echo=$ac_try;; 4942 esac 4943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4944 $as_echo "$ac_try_echo"; } >&5 4945 (eval "$ac_link") 2>&5 4946 ac_status=$? 4947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4948 test $ac_status = 0; } 4949 if { ac_try='./conftest$ac_cv_exeext' 4950 { { case "(($ac_try" in 4951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4952 *) ac_try_echo=$ac_try;; 4953 esac 4954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4955 $as_echo "$ac_try_echo"; } >&5 4956 (eval "$ac_try") 2>&5 4957 ac_status=$? 4958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4959 test $ac_status = 0; }; }; then 4960 cross_compiling=no 4961 else 4962 if test "$cross_compiling" = maybe; then 4963 cross_compiling=yes 4964 else 4965 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4967 as_fn_error $? "cannot run C compiled programs. 4968 If you meant to cross compile, use \`--host'. 4969 See \`config.log' for more details" "$LINENO" 5; } 4970 fi 4971 fi 4972 fi 4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4974 $as_echo "$cross_compiling" >&6; } 4975 4976 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4977 ac_clean_files=$ac_clean_files_save 4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4979 $as_echo_n "checking for suffix of object files... " >&6; } 4980 if ${ac_cv_objext+:} false; then : 4981 $as_echo_n "(cached) " >&6 4982 else 4983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4984 /* end confdefs.h. */ 4985 4986 int 4987 main () 4988 { 4989 4990 ; 4991 return 0; 4992 } 4993 _ACEOF 4994 rm -f conftest.o conftest.obj 4995 if { { ac_try="$ac_compile" 4996 case "(($ac_try" in 4997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4998 *) ac_try_echo=$ac_try;; 4999 esac 5000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5001 $as_echo "$ac_try_echo"; } >&5 5002 (eval "$ac_compile") 2>&5 5003 ac_status=$? 5004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5005 test $ac_status = 0; }; then : 5006 for ac_file in conftest.o conftest.obj conftest.*; do 5007 test -f "$ac_file" || continue; 5008 case $ac_file in 5009 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 5010 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 5011 break;; 5012 esac 5013 done 5014 else 5015 $as_echo "$as_me: failed program was:" >&5 5016 sed 's/^/| /' conftest.$ac_ext >&5 5017 5018 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5019 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5020 as_fn_error $? "cannot compute suffix of object files: cannot compile 5021 See \`config.log' for more details" "$LINENO" 5; } 5022 fi 5023 rm -f conftest.$ac_cv_objext conftest.$ac_ext 5024 fi 5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 5026 $as_echo "$ac_cv_objext" >&6; } 5027 OBJEXT=$ac_cv_objext 5028 ac_objext=$OBJEXT 5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5030 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5031 if ${ac_cv_c_compiler_gnu+:} false; then : 5032 $as_echo_n "(cached) " >&6 5033 else 5034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5035 /* end confdefs.h. */ 5036 5037 int 5038 main () 5039 { 5040 #ifndef __GNUC__ 5041 choke me 5042 #endif 5043 5044 ; 5045 return 0; 5046 } 5047 _ACEOF 5048 if ac_fn_c_try_compile "$LINENO"; then : 5049 ac_compiler_gnu=yes 5050 else 5051 ac_compiler_gnu=no 5052 fi 5053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5054 ac_cv_c_compiler_gnu=$ac_compiler_gnu 5055 5056 fi 5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5058 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 5059 if test $ac_compiler_gnu = yes; then 5060 GCC=yes 5061 else 5062 GCC= 5063 fi 5064 ac_test_CFLAGS=${CFLAGS+set} 5065 ac_save_CFLAGS=$CFLAGS 5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5067 $as_echo_n "checking whether $CC accepts -g... " >&6; } 5068 if ${ac_cv_prog_cc_g+:} false; then : 5069 $as_echo_n "(cached) " >&6 5070 else 5071 ac_save_c_werror_flag=$ac_c_werror_flag 5072 ac_c_werror_flag=yes 5073 ac_cv_prog_cc_g=no 5074 CFLAGS="-g" 5075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5076 /* end confdefs.h. */ 5077 5078 int 5079 main () 5080 { 5081 5082 ; 5083 return 0; 5084 } 5085 _ACEOF 5086 if ac_fn_c_try_compile "$LINENO"; then : 5087 ac_cv_prog_cc_g=yes 5088 else 5089 CFLAGS="" 5090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5091 /* end confdefs.h. */ 5092 5093 int 5094 main () 5095 { 5096 5097 ; 5098 return 0; 5099 } 5100 _ACEOF 5101 if ac_fn_c_try_compile "$LINENO"; then : 5102 5103 else 5104 ac_c_werror_flag=$ac_save_c_werror_flag 5105 CFLAGS="-g" 5106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5107 /* end confdefs.h. */ 5108 5109 int 5110 main () 5111 { 5112 5113 ; 5114 return 0; 5115 } 5116 _ACEOF 5117 if ac_fn_c_try_compile "$LINENO"; then : 5118 ac_cv_prog_cc_g=yes 5119 fi 5120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5121 fi 5122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5123 fi 5124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5125 ac_c_werror_flag=$ac_save_c_werror_flag 5126 fi 5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5128 $as_echo "$ac_cv_prog_cc_g" >&6; } 5129 if test "$ac_test_CFLAGS" = set; then 5130 CFLAGS=$ac_save_CFLAGS 5131 elif test $ac_cv_prog_cc_g = yes; then 5132 if test "$GCC" = yes; then 5133 CFLAGS="-g -O2" 5134 else 5135 CFLAGS="-g" 5136 fi 5137 else 5138 if test "$GCC" = yes; then 5139 CFLAGS="-O2" 5140 else 5141 CFLAGS= 5142 fi 5143 fi 5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5145 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5146 if ${ac_cv_prog_cc_c89+:} false; then : 5147 $as_echo_n "(cached) " >&6 5148 else 5149 ac_cv_prog_cc_c89=no 5150 ac_save_CC=$CC 5151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5152 /* end confdefs.h. */ 5153 #include <stdarg.h> 5154 #include <stdio.h> 5155 struct stat; 5156 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5157 struct buf { int x; }; 5158 FILE * (*rcsopen) (struct buf *, struct stat *, int); 5159 static char *e (p, i) 5160 char **p; 5161 int i; 5162 { 5163 return p[i]; 5164 } 5165 static char *f (char * (*g) (char **, int), char **p, ...) 5166 { 5167 char *s; 5168 va_list v; 5169 va_start (v,p); 5170 s = g (p, va_arg (v,int)); 5171 va_end (v); 5172 return s; 5173 } 5174 5175 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5176 function prototypes and stuff, but not '\xHH' hex character constants. 5177 These don't provoke an error unfortunately, instead are silently treated 5178 as 'x'. The following induces an error, until -std is added to get 5179 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5180 array size at least. It's necessary to write '\x00'==0 to get something 5181 that's true only with -std. */ 5182 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5183 5184 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5185 inside strings and character constants. */ 5186 #define FOO(x) 'x' 5187 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5188 5189 int test (int i, double x); 5190 struct s1 {int (*f) (int a);}; 5191 struct s2 {int (*f) (double a);}; 5192 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5193 int argc; 5194 char **argv; 5195 int 5196 main () 5197 { 5198 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5199 ; 5200 return 0; 5201 } 5202 _ACEOF 5203 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5204 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5205 do 5206 CC="$ac_save_CC $ac_arg" 5207 if ac_fn_c_try_compile "$LINENO"; then : 5208 ac_cv_prog_cc_c89=$ac_arg 5209 fi 5210 rm -f core conftest.err conftest.$ac_objext 5211 test "x$ac_cv_prog_cc_c89" != "xno" && break 5212 done 5213 rm -f conftest.$ac_ext 5214 CC=$ac_save_CC 5215 5216 fi 5217 # AC_CACHE_VAL 5218 case "x$ac_cv_prog_cc_c89" in 5219 x) 5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5221 $as_echo "none needed" >&6; } ;; 5222 xno) 5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5224 $as_echo "unsupported" >&6; } ;; 5225 *) 5226 CC="$CC $ac_cv_prog_cc_c89" 5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5228 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5229 esac 5230 if test "x$ac_cv_prog_cc_c89" != xno; then : 5231 5232 fi 5233 5234 ac_ext=c 5235 ac_cpp='$CPP $CPPFLAGS' 5236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5238 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5239 5240 depcc="$CC" am_compiler_list= 5241 5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5243 $as_echo_n "checking dependency style of $depcc... " >&6; } 5244 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5245 $as_echo_n "(cached) " >&6 5246 else 5247 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5248 # We make a subdir and do the tests there. Otherwise we can end up 5249 # making bogus files that we don't know about and never remove. For 5250 # instance it was reported that on HP-UX the gcc test will end up 5251 # making a dummy file named 'D' -- because '-MD' means "put the output 5252 # in D". 5253 rm -rf conftest.dir 5254 mkdir conftest.dir 5255 # Copy depcomp to subdir because otherwise we won't find it if we're 5256 # using a relative directory. 5257 cp "$am_depcomp" conftest.dir 5258 cd conftest.dir 5259 # We will build objects and dependencies in a subdirectory because 5260 # it helps to detect inapplicable dependency modes. For instance 5261 # both Tru64's cc and ICC support -MD to output dependencies as a 5262 # side effect of compilation, but ICC will put the dependencies in 5263 # the current directory while Tru64 will put them in the object 5264 # directory. 5265 mkdir sub 5266 5267 am_cv_CC_dependencies_compiler_type=none 5268 if test "$am_compiler_list" = ""; then 5269 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5270 fi 5271 am__universal=false 5272 case " $depcc " in #( 5273 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5274 esac 5275 5276 for depmode in $am_compiler_list; do 5277 # Setup a source with many dependencies, because some compilers 5278 # like to wrap large dependency lists on column 80 (with \), and 5279 # we should not choose a depcomp mode which is confused by this. 5280 # 5281 # We need to recreate these files for each test, as the compiler may 5282 # overwrite some of them when testing with obscure command lines. 5283 # This happens at least with the AIX C compiler. 5284 : > sub/conftest.c 5285 for i in 1 2 3 4 5 6; do 5286 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5287 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5288 # Solaris 10 /bin/sh. 5289 echo '/* dummy */' > sub/conftst$i.h 5290 done 5291 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5292 5293 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5294 # mode. It turns out that the SunPro C++ compiler does not properly 5295 # handle '-M -o', and we need to detect this. Also, some Intel 5296 # versions had trouble with output in subdirs. 5297 am__obj=sub/conftest.${OBJEXT-o} 5298 am__minus_obj="-o $am__obj" 5299 case $depmode in 5300 gcc) 5301 # This depmode causes a compiler race in universal mode. 5302 test "$am__universal" = false || continue 5303 ;; 5304 nosideeffect) 5305 # After this tag, mechanisms are not by side-effect, so they'll 5306 # only be used when explicitly requested. 5307 if test "x$enable_dependency_tracking" = xyes; then 5308 continue 5309 else 5310 break 5311 fi 5312 ;; 5313 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5314 # This compiler won't grok '-c -o', but also, the minuso test has 5315 # not run yet. These depmodes are late enough in the game, and 5316 # so weak that their functioning should not be impacted. 5317 am__obj=conftest.${OBJEXT-o} 5318 am__minus_obj= 5319 ;; 5320 none) break ;; 5321 esac 5322 if depmode=$depmode \ 5323 source=sub/conftest.c object=$am__obj \ 5324 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5325 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5326 >/dev/null 2>conftest.err && 5327 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5328 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5329 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5330 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5331 # icc doesn't choke on unknown options, it will just issue warnings 5332 # or remarks (even with -Werror). So we grep stderr for any message 5333 # that says an option was ignored or not supported. 5334 # When given -MP, icc 7.0 and 7.1 complain thusly: 5335 # icc: Command line warning: ignoring option '-M'; no argument required 5336 # The diagnosis changed in icc 8.0: 5337 # icc: Command line remark: option '-MP' not supported 5338 if (grep 'ignoring option' conftest.err || 5339 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5340 am_cv_CC_dependencies_compiler_type=$depmode 5341 break 5342 fi 5343 fi 5344 done 5345 5346 cd .. 5347 rm -rf conftest.dir 5348 else 5349 am_cv_CC_dependencies_compiler_type=none 5350 fi 5351 5352 fi 5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5354 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5355 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5356 5357 if 5358 test "x$enable_dependency_tracking" != xno \ 5359 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5360 am__fastdepCC_TRUE= 5361 am__fastdepCC_FALSE='#' 5362 else 5363 am__fastdepCC_TRUE='#' 5364 am__fastdepCC_FALSE= 5365 fi 5366 5367 5368 case $ac_cv_prog_cc_stdc in #( 5369 no) : 5370 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( 5371 *) : 5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 5373 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 5374 if ${ac_cv_prog_cc_c99+:} false; then : 5375 $as_echo_n "(cached) " >&6 5376 else 5377 ac_cv_prog_cc_c99=no 5378 ac_save_CC=$CC 5379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5380 /* end confdefs.h. */ 5381 #include <stdarg.h> 5382 #include <stdbool.h> 5383 #include <stdlib.h> 5384 #include <wchar.h> 5385 #include <stdio.h> 5386 5387 // Check varargs macros. These examples are taken from C99 6.10.3.5. 5388 #define debug(...) fprintf (stderr, __VA_ARGS__) 5389 #define showlist(...) puts (#__VA_ARGS__) 5390 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 5391 static void 5392 test_varargs_macros (void) 5393 { 5394 int x = 1234; 5395 int y = 5678; 5396 debug ("Flag"); 5397 debug ("X = %d\n", x); 5398 showlist (The first, second, and third items.); 5399 report (x>y, "x is %d but y is %d", x, y); 5400 } 5401 5402 // Check long long types. 5403 #define BIG64 18446744073709551615ull 5404 #define BIG32 4294967295ul 5405 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 5406 #if !BIG_OK 5407 your preprocessor is broken; 5408 #endif 5409 #if BIG_OK 5410 #else 5411 your preprocessor is broken; 5412 #endif 5413 static long long int bignum = -9223372036854775807LL; 5414 static unsigned long long int ubignum = BIG64; 5415 5416 struct incomplete_array 5417 { 5418 int datasize; 5419 double data[]; 5420 }; 5421 5422 struct named_init { 5423 int number; 5424 const wchar_t *name; 5425 double average; 5426 }; 5427 5428 typedef const char *ccp; 5429 5430 static inline int 5431 test_restrict (ccp restrict text) 5432 { 5433 // See if C++-style comments work. 5434 // Iterate through items via the restricted pointer. 5435 // Also check for declarations in for loops. 5436 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 5437 continue; 5438 return 0; 5439 } 5440 5441 // Check varargs and va_copy. 5442 static void 5443 test_varargs (const char *format, ...) 5444 { 5445 va_list args; 5446 va_start (args, format); 5447 va_list args_copy; 5448 va_copy (args_copy, args); 5449 5450 const char *str; 5451 int number; 5452 float fnumber; 5453 5454 while (*format) 5455 { 5456 switch (*format++) 5457 { 5458 case 's': // string 5459 str = va_arg (args_copy, const char *); 5460 break; 5461 case 'd': // int 5462 number = va_arg (args_copy, int); 5463 break; 5464 case 'f': // float 5465 fnumber = va_arg (args_copy, double); 5466 break; 5467 default: 5468 break; 5469 } 5470 } 5471 va_end (args_copy); 5472 va_end (args); 5473 } 5474 5475 int 5476 main () 5477 { 5478 5479 // Check bool. 5480 _Bool success = false; 5481 5482 // Check restrict. 5483 if (test_restrict ("String literal") == 0) 5484 success = true; 5485 char *restrict newvar = "Another string"; 5486 5487 // Check varargs. 5488 test_varargs ("s, d' f .", "string", 65, 34.234); 5489 test_varargs_macros (); 5490 5491 // Check flexible array members. 5492 struct incomplete_array *ia = 5493 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 5494 ia->datasize = 10; 5495 for (int i = 0; i < ia->datasize; ++i) 5496 ia->data[i] = i * 1.234; 5497 5498 // Check named initializers. 5499 struct named_init ni = { 5500 .number = 34, 5501 .name = L"Test wide string", 5502 .average = 543.34343, 5503 }; 5504 5505 ni.number = 58; 5506 5507 int dynamic_array[ni.number]; 5508 dynamic_array[ni.number - 1] = 543; 5509 5510 // work around unused variable warnings 5511 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 5512 || dynamic_array[ni.number - 1] != 543); 5513 5514 ; 5515 return 0; 5516 } 5517 _ACEOF 5518 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 5519 do 5520 CC="$ac_save_CC $ac_arg" 5521 if ac_fn_c_try_compile "$LINENO"; then : 5522 ac_cv_prog_cc_c99=$ac_arg 5523 fi 5524 rm -f core conftest.err conftest.$ac_objext 5525 test "x$ac_cv_prog_cc_c99" != "xno" && break 5526 done 5527 rm -f conftest.$ac_ext 5528 CC=$ac_save_CC 5529 5530 fi 5531 # AC_CACHE_VAL 5532 case "x$ac_cv_prog_cc_c99" in 5533 x) 5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5535 $as_echo "none needed" >&6; } ;; 5536 xno) 5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5538 $as_echo "unsupported" >&6; } ;; 5539 *) 5540 CC="$CC $ac_cv_prog_cc_c99" 5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5542 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 5543 esac 5544 if test "x$ac_cv_prog_cc_c99" != xno; then : 5545 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 5546 else 5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5548 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5549 if ${ac_cv_prog_cc_c89+:} false; then : 5550 $as_echo_n "(cached) " >&6 5551 else 5552 ac_cv_prog_cc_c89=no 5553 ac_save_CC=$CC 5554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5555 /* end confdefs.h. */ 5556 #include <stdarg.h> 5557 #include <stdio.h> 5558 struct stat; 5559 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5560 struct buf { int x; }; 5561 FILE * (*rcsopen) (struct buf *, struct stat *, int); 5562 static char *e (p, i) 5563 char **p; 5564 int i; 5565 { 5566 return p[i]; 5567 } 5568 static char *f (char * (*g) (char **, int), char **p, ...) 5569 { 5570 char *s; 5571 va_list v; 5572 va_start (v,p); 5573 s = g (p, va_arg (v,int)); 5574 va_end (v); 5575 return s; 5576 } 5577 5578 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5579 function prototypes and stuff, but not '\xHH' hex character constants. 5580 These don't provoke an error unfortunately, instead are silently treated 5581 as 'x'. The following induces an error, until -std is added to get 5582 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5583 array size at least. It's necessary to write '\x00'==0 to get something 5584 that's true only with -std. */ 5585 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5586 5587 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5588 inside strings and character constants. */ 5589 #define FOO(x) 'x' 5590 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5591 5592 int test (int i, double x); 5593 struct s1 {int (*f) (int a);}; 5594 struct s2 {int (*f) (double a);}; 5595 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5596 int argc; 5597 char **argv; 5598 int 5599 main () 5600 { 5601 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5602 ; 5603 return 0; 5604 } 5605 _ACEOF 5606 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5607 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5608 do 5609 CC="$ac_save_CC $ac_arg" 5610 if ac_fn_c_try_compile "$LINENO"; then : 5611 ac_cv_prog_cc_c89=$ac_arg 5612 fi 5613 rm -f core conftest.err conftest.$ac_objext 5614 test "x$ac_cv_prog_cc_c89" != "xno" && break 5615 done 5616 rm -f conftest.$ac_ext 5617 CC=$ac_save_CC 5618 5619 fi 5620 # AC_CACHE_VAL 5621 case "x$ac_cv_prog_cc_c89" in 5622 x) 5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5624 $as_echo "none needed" >&6; } ;; 5625 xno) 5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5627 $as_echo "unsupported" >&6; } ;; 5628 *) 5629 CC="$CC $ac_cv_prog_cc_c89" 5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5631 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5632 esac 5633 if test "x$ac_cv_prog_cc_c89" != xno; then : 5634 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 5635 else 5636 ac_cv_prog_cc_stdc=no 5637 fi 5638 5639 fi 5640 ;; 5641 esac 5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 5643 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } 5644 if ${ac_cv_prog_cc_stdc+:} false; then : 5645 $as_echo_n "(cached) " >&6 5646 fi 5647 5648 case $ac_cv_prog_cc_stdc in #( 5649 no) : 5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5651 $as_echo "unsupported" >&6; } ;; #( 5652 '') : 5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5654 $as_echo "none needed" >&6; } ;; #( 5655 *) : 5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 5657 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; 5658 esac 5659 5660 ac_ext=cpp 5661 ac_cpp='$CXXCPP $CPPFLAGS' 5662 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5663 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5664 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5665 if test -z "$CXX"; then 5666 if test -n "$CCC"; then 5667 CXX=$CCC 5668 else 5669 if test -n "$ac_tool_prefix"; then 5670 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5671 do 5672 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5673 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5675 $as_echo_n "checking for $ac_word... " >&6; } 5676 if ${ac_cv_prog_CXX+:} false; then : 5677 $as_echo_n "(cached) " >&6 5678 else 5679 if test -n "$CXX"; then 5680 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5681 else 5682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5683 for as_dir in $PATH 5684 do 5685 IFS=$as_save_IFS 5686 test -z "$as_dir" && as_dir=. 5687 for ac_exec_ext in '' $ac_executable_extensions; do 5688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5689 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5691 break 2 5692 fi 5693 done 5694 done 5695 IFS=$as_save_IFS 5696 5697 fi 5698 fi 5699 CXX=$ac_cv_prog_CXX 5700 if test -n "$CXX"; then 5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 5702 $as_echo "$CXX" >&6; } 5703 else 5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5705 $as_echo "no" >&6; } 5706 fi 5707 5708 5709 test -n "$CXX" && break 5710 done 5711 fi 5712 if test -z "$CXX"; then 5713 ac_ct_CXX=$CXX 5714 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5715 do 5716 # Extract the first word of "$ac_prog", so it can be a program name with args. 5717 set dummy $ac_prog; ac_word=$2 5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5719 $as_echo_n "checking for $ac_word... " >&6; } 5720 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 5721 $as_echo_n "(cached) " >&6 5722 else 5723 if test -n "$ac_ct_CXX"; then 5724 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5725 else 5726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5727 for as_dir in $PATH 5728 do 5729 IFS=$as_save_IFS 5730 test -z "$as_dir" && as_dir=. 5731 for ac_exec_ext in '' $ac_executable_extensions; do 5732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5733 ac_cv_prog_ac_ct_CXX="$ac_prog" 5734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5735 break 2 5736 fi 5737 done 5738 done 5739 IFS=$as_save_IFS 5740 5741 fi 5742 fi 5743 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5744 if test -n "$ac_ct_CXX"; then 5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 5746 $as_echo "$ac_ct_CXX" >&6; } 5747 else 5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5749 $as_echo "no" >&6; } 5750 fi 5751 5752 5753 test -n "$ac_ct_CXX" && break 5754 done 5755 5756 if test "x$ac_ct_CXX" = x; then 5757 CXX="g++" 5758 else 5759 case $cross_compiling:$ac_tool_warned in 5760 yes:) 5761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5763 ac_tool_warned=yes ;; 5764 esac 5765 CXX=$ac_ct_CXX 5766 fi 5767 fi 5768 5769 fi 5770 fi 5771 # Provide some information about the compiler. 5772 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 5773 set X $ac_compile 5774 ac_compiler=$2 5775 for ac_option in --version -v -V -qversion; do 5776 { { ac_try="$ac_compiler $ac_option >&5" 5777 case "(($ac_try" in 5778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5779 *) ac_try_echo=$ac_try;; 5780 esac 5781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5782 $as_echo "$ac_try_echo"; } >&5 5783 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5784 ac_status=$? 5785 if test -s conftest.err; then 5786 sed '10a\ 5787 ... rest of stderr output deleted ... 5788 10q' conftest.err >conftest.er1 5789 cat conftest.er1 >&5 5790 fi 5791 rm -f conftest.er1 conftest.err 5792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5793 test $ac_status = 0; } 5794 done 5795 5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 5797 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 5798 if ${ac_cv_cxx_compiler_gnu+:} false; then : 5799 $as_echo_n "(cached) " >&6 5800 else 5801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5802 /* end confdefs.h. */ 5803 5804 int 5805 main () 5806 { 5807 #ifndef __GNUC__ 5808 choke me 5809 #endif 5810 5811 ; 5812 return 0; 5813 } 5814 _ACEOF 5815 if ac_fn_cxx_try_compile "$LINENO"; then : 5816 ac_compiler_gnu=yes 5817 else 5818 ac_compiler_gnu=no 5819 fi 5820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5821 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5822 5823 fi 5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 5825 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 5826 if test $ac_compiler_gnu = yes; then 5827 GXX=yes 5828 else 5829 GXX= 5830 fi 5831 ac_test_CXXFLAGS=${CXXFLAGS+set} 5832 ac_save_CXXFLAGS=$CXXFLAGS 5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 5834 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 5835 if ${ac_cv_prog_cxx_g+:} false; then : 5836 $as_echo_n "(cached) " >&6 5837 else 5838 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5839 ac_cxx_werror_flag=yes 5840 ac_cv_prog_cxx_g=no 5841 CXXFLAGS="-g" 5842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5843 /* end confdefs.h. */ 5844 5845 int 5846 main () 5847 { 5848 5849 ; 5850 return 0; 5851 } 5852 _ACEOF 5853 if ac_fn_cxx_try_compile "$LINENO"; then : 5854 ac_cv_prog_cxx_g=yes 5855 else 5856 CXXFLAGS="" 5857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5858 /* end confdefs.h. */ 5859 5860 int 5861 main () 5862 { 5863 5864 ; 5865 return 0; 5866 } 5867 _ACEOF 5868 if ac_fn_cxx_try_compile "$LINENO"; then : 5869 5870 else 5871 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5872 CXXFLAGS="-g" 5873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5874 /* end confdefs.h. */ 5875 5876 int 5877 main () 5878 { 5879 5880 ; 5881 return 0; 5882 } 5883 _ACEOF 5884 if ac_fn_cxx_try_compile "$LINENO"; then : 5885 ac_cv_prog_cxx_g=yes 5886 fi 5887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5888 fi 5889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5890 fi 5891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5892 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5893 fi 5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 5895 $as_echo "$ac_cv_prog_cxx_g" >&6; } 5896 if test "$ac_test_CXXFLAGS" = set; then 5897 CXXFLAGS=$ac_save_CXXFLAGS 5898 elif test $ac_cv_prog_cxx_g = yes; then 5899 if test "$GXX" = yes; then 5900 CXXFLAGS="-g -O2" 5901 else 5902 CXXFLAGS="-g" 5903 fi 5904 else 5905 if test "$GXX" = yes; then 5906 CXXFLAGS="-O2" 5907 else 5908 CXXFLAGS= 5909 fi 5910 fi 5911 ac_ext=c 5912 ac_cpp='$CPP $CPPFLAGS' 5913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5915 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5916 5917 depcc="$CXX" am_compiler_list= 5918 5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5920 $as_echo_n "checking dependency style of $depcc... " >&6; } 5921 if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 5922 $as_echo_n "(cached) " >&6 5923 else 5924 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5925 # We make a subdir and do the tests there. Otherwise we can end up 5926 # making bogus files that we don't know about and never remove. For 5927 # instance it was reported that on HP-UX the gcc test will end up 5928 # making a dummy file named 'D' -- because '-MD' means "put the output 5929 # in D". 5930 rm -rf conftest.dir 5931 mkdir conftest.dir 5932 # Copy depcomp to subdir because otherwise we won't find it if we're 5933 # using a relative directory. 5934 cp "$am_depcomp" conftest.dir 5935 cd conftest.dir 5936 # We will build objects and dependencies in a subdirectory because 5937 # it helps to detect inapplicable dependency modes. For instance 5938 # both Tru64's cc and ICC support -MD to output dependencies as a 5939 # side effect of compilation, but ICC will put the dependencies in 5940 # the current directory while Tru64 will put them in the object 5941 # directory. 5942 mkdir sub 5943 5944 am_cv_CXX_dependencies_compiler_type=none 5945 if test "$am_compiler_list" = ""; then 5946 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5947 fi 5948 am__universal=false 5949 case " $depcc " in #( 5950 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5951 esac 5952 5953 for depmode in $am_compiler_list; do 5954 # Setup a source with many dependencies, because some compilers 5955 # like to wrap large dependency lists on column 80 (with \), and 5956 # we should not choose a depcomp mode which is confused by this. 5957 # 5958 # We need to recreate these files for each test, as the compiler may 5959 # overwrite some of them when testing with obscure command lines. 5960 # This happens at least with the AIX C compiler. 5961 : > sub/conftest.c 5962 for i in 1 2 3 4 5 6; do 5963 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5964 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5965 # Solaris 10 /bin/sh. 5966 echo '/* dummy */' > sub/conftst$i.h 5967 done 5968 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5969 5970 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5971 # mode. It turns out that the SunPro C++ compiler does not properly 5972 # handle '-M -o', and we need to detect this. Also, some Intel 5973 # versions had trouble with output in subdirs. 5974 am__obj=sub/conftest.${OBJEXT-o} 5975 am__minus_obj="-o $am__obj" 5976 case $depmode in 5977 gcc) 5978 # This depmode causes a compiler race in universal mode. 5979 test "$am__universal" = false || continue 5980 ;; 5981 nosideeffect) 5982 # After this tag, mechanisms are not by side-effect, so they'll 5983 # only be used when explicitly requested. 5984 if test "x$enable_dependency_tracking" = xyes; then 5985 continue 5986 else 5987 break 5988 fi 5989 ;; 5990 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5991 # This compiler won't grok '-c -o', but also, the minuso test has 5992 # not run yet. These depmodes are late enough in the game, and 5993 # so weak that their functioning should not be impacted. 5994 am__obj=conftest.${OBJEXT-o} 5995 am__minus_obj= 5996 ;; 5997 none) break ;; 5998 esac 5999 if depmode=$depmode \ 6000 source=sub/conftest.c object=$am__obj \ 6001 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6002 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6003 >/dev/null 2>conftest.err && 6004 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6005 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6006 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6007 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6008 # icc doesn't choke on unknown options, it will just issue warnings 6009 # or remarks (even with -Werror). So we grep stderr for any message 6010 # that says an option was ignored or not supported. 6011 # When given -MP, icc 7.0 and 7.1 complain thusly: 6012 # icc: Command line warning: ignoring option '-M'; no argument required 6013 # The diagnosis changed in icc 8.0: 6014 # icc: Command line remark: option '-MP' not supported 6015 if (grep 'ignoring option' conftest.err || 6016 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6017 am_cv_CXX_dependencies_compiler_type=$depmode 6018 break 6019 fi 6020 fi 6021 done 6022 6023 cd .. 6024 rm -rf conftest.dir 6025 else 6026 am_cv_CXX_dependencies_compiler_type=none 6027 fi 6028 6029 fi 6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 6031 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 6032 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 6033 6034 if 6035 test "x$enable_dependency_tracking" != xno \ 6036 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 6037 am__fastdepCXX_TRUE= 6038 am__fastdepCXX_FALSE='#' 6039 else 6040 am__fastdepCXX_TRUE='#' 6041 am__fastdepCXX_FALSE= 6042 fi 6043 6044 6045 6046 # Gnulib (early checks). 6047 6048 ac_ext=c 6049 ac_cpp='$CPP $CPPFLAGS' 6050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6052 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6054 $as_echo_n "checking how to run the C preprocessor... " >&6; } 6055 # On Suns, sometimes $CPP names a directory. 6056 if test -n "$CPP" && test -d "$CPP"; then 6057 CPP= 6058 fi 6059 if test -z "$CPP"; then 6060 if ${ac_cv_prog_CPP+:} false; then : 6061 $as_echo_n "(cached) " >&6 6062 else 6063 # Double quotes because CPP needs to be expanded 6064 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6065 do 6066 ac_preproc_ok=false 6067 for ac_c_preproc_warn_flag in '' yes 6068 do 6069 # Use a header file that comes with gcc, so configuring glibc 6070 # with a fresh cross-compiler works. 6071 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6072 # <limits.h> exists even on freestanding compilers. 6073 # On the NeXT, cc -E runs the code through the compiler's parser, 6074 # not just through cpp. "Syntax error" is here to catch this case. 6075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6076 /* end confdefs.h. */ 6077 #ifdef __STDC__ 6078 # include <limits.h> 6079 #else 6080 # include <assert.h> 6081 #endif 6082 Syntax error 6083 _ACEOF 6084 if ac_fn_c_try_cpp "$LINENO"; then : 6085 6086 else 6087 # Broken: fails on valid input. 6088 continue 6089 fi 6090 rm -f conftest.err conftest.i conftest.$ac_ext 6091 6092 # OK, works on sane cases. Now check whether nonexistent headers 6093 # can be detected and how. 6094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6095 /* end confdefs.h. */ 6096 #include <ac_nonexistent.h> 6097 _ACEOF 6098 if ac_fn_c_try_cpp "$LINENO"; then : 6099 # Broken: success on invalid input. 6100 continue 6101 else 6102 # Passes both tests. 6103 ac_preproc_ok=: 6104 break 6105 fi 6106 rm -f conftest.err conftest.i conftest.$ac_ext 6107 6108 done 6109 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6110 rm -f conftest.i conftest.err conftest.$ac_ext 6111 if $ac_preproc_ok; then : 6112 break 6113 fi 6114 6115 done 6116 ac_cv_prog_CPP=$CPP 6117 6118 fi 6119 CPP=$ac_cv_prog_CPP 6120 else 6121 ac_cv_prog_CPP=$CPP 6122 fi 6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 6124 $as_echo "$CPP" >&6; } 6125 ac_preproc_ok=false 6126 for ac_c_preproc_warn_flag in '' yes 6127 do 6128 # Use a header file that comes with gcc, so configuring glibc 6129 # with a fresh cross-compiler works. 6130 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6131 # <limits.h> exists even on freestanding compilers. 6132 # On the NeXT, cc -E runs the code through the compiler's parser, 6133 # not just through cpp. "Syntax error" is here to catch this case. 6134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6135 /* end confdefs.h. */ 6136 #ifdef __STDC__ 6137 # include <limits.h> 6138 #else 6139 # include <assert.h> 6140 #endif 6141 Syntax error 6142 _ACEOF 6143 if ac_fn_c_try_cpp "$LINENO"; then : 6144 6145 else 6146 # Broken: fails on valid input. 6147 continue 6148 fi 6149 rm -f conftest.err conftest.i conftest.$ac_ext 6150 6151 # OK, works on sane cases. Now check whether nonexistent headers 6152 # can be detected and how. 6153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6154 /* end confdefs.h. */ 6155 #include <ac_nonexistent.h> 6156 _ACEOF 6157 if ac_fn_c_try_cpp "$LINENO"; then : 6158 # Broken: success on invalid input. 6159 continue 6160 else 6161 # Passes both tests. 6162 ac_preproc_ok=: 6163 break 6164 fi 6165 rm -f conftest.err conftest.i conftest.$ac_ext 6166 6167 done 6168 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6169 rm -f conftest.i conftest.err conftest.$ac_ext 6170 if $ac_preproc_ok; then : 6171 6172 else 6173 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6175 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 6176 See \`config.log' for more details" "$LINENO" 5; } 6177 fi 6178 6179 ac_ext=c 6180 ac_cpp='$CPP $CPPFLAGS' 6181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6183 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6184 6185 6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 6187 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 6188 if ${ac_cv_path_GREP+:} false; then : 6189 $as_echo_n "(cached) " >&6 6190 else 6191 if test -z "$GREP"; then 6192 ac_path_GREP_found=false 6193 # Loop through the user's path and test for each of PROGNAME-LIST 6194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6195 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6196 do 6197 IFS=$as_save_IFS 6198 test -z "$as_dir" && as_dir=. 6199 for ac_prog in grep ggrep; do 6200 for ac_exec_ext in '' $ac_executable_extensions; do 6201 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 6202 as_fn_executable_p "$ac_path_GREP" || continue 6203 # Check for GNU ac_path_GREP and select it if it is found. 6204 # Check for GNU $ac_path_GREP 6205 case `"$ac_path_GREP" --version 2>&1` in 6206 *GNU*) 6207 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 6208 *) 6209 ac_count=0 6210 $as_echo_n 0123456789 >"conftest.in" 6211 while : 6212 do 6213 cat "conftest.in" "conftest.in" >"conftest.tmp" 6214 mv "conftest.tmp" "conftest.in" 6215 cp "conftest.in" "conftest.nl" 6216 $as_echo 'GREP' >> "conftest.nl" 6217 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6218 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6219 as_fn_arith $ac_count + 1 && ac_count=$as_val 6220 if test $ac_count -gt ${ac_path_GREP_max-0}; then 6221 # Best one so far, save it but keep looking for a better one 6222 ac_cv_path_GREP="$ac_path_GREP" 6223 ac_path_GREP_max=$ac_count 6224 fi 6225 # 10*(2^10) chars as input seems more than enough 6226 test $ac_count -gt 10 && break 6227 done 6228 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6229 esac 6230 6231 $ac_path_GREP_found && break 3 6232 done 6233 done 6234 done 6235 IFS=$as_save_IFS 6236 if test -z "$ac_cv_path_GREP"; then 6237 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6238 fi 6239 else 6240 ac_cv_path_GREP=$GREP 6241 fi 6242 6243 fi 6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 6245 $as_echo "$ac_cv_path_GREP" >&6; } 6246 GREP="$ac_cv_path_GREP" 6247 6248 6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 6250 $as_echo_n "checking for egrep... " >&6; } 6251 if ${ac_cv_path_EGREP+:} false; then : 6252 $as_echo_n "(cached) " >&6 6253 else 6254 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 6255 then ac_cv_path_EGREP="$GREP -E" 6256 else 6257 if test -z "$EGREP"; then 6258 ac_path_EGREP_found=false 6259 # Loop through the user's path and test for each of PROGNAME-LIST 6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6261 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6262 do 6263 IFS=$as_save_IFS 6264 test -z "$as_dir" && as_dir=. 6265 for ac_prog in egrep; do 6266 for ac_exec_ext in '' $ac_executable_extensions; do 6267 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 6268 as_fn_executable_p "$ac_path_EGREP" || continue 6269 # Check for GNU ac_path_EGREP and select it if it is found. 6270 # Check for GNU $ac_path_EGREP 6271 case `"$ac_path_EGREP" --version 2>&1` in 6272 *GNU*) 6273 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 6274 *) 6275 ac_count=0 6276 $as_echo_n 0123456789 >"conftest.in" 6277 while : 6278 do 6279 cat "conftest.in" "conftest.in" >"conftest.tmp" 6280 mv "conftest.tmp" "conftest.in" 6281 cp "conftest.in" "conftest.nl" 6282 $as_echo 'EGREP' >> "conftest.nl" 6283 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6284 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6285 as_fn_arith $ac_count + 1 && ac_count=$as_val 6286 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 6287 # Best one so far, save it but keep looking for a better one 6288 ac_cv_path_EGREP="$ac_path_EGREP" 6289 ac_path_EGREP_max=$ac_count 6290 fi 6291 # 10*(2^10) chars as input seems more than enough 6292 test $ac_count -gt 10 && break 6293 done 6294 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6295 esac 6296 6297 $ac_path_EGREP_found && break 3 6298 done 6299 done 6300 done 6301 IFS=$as_save_IFS 6302 if test -z "$ac_cv_path_EGREP"; then 6303 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6304 fi 6305 else 6306 ac_cv_path_EGREP=$EGREP 6307 fi 6308 6309 fi 6310 fi 6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 6312 $as_echo "$ac_cv_path_EGREP" >&6; } 6313 EGREP="$ac_cv_path_EGREP" 6314 6315 6316 6317 6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5 6319 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; } 6320 if ${gl_cv_c_amsterdam_compiler+:} false; then : 6321 $as_echo_n "(cached) " >&6 6322 else 6323 6324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6325 /* end confdefs.h. */ 6326 6327 #ifdef __ACK__ 6328 Amsterdam 6329 #endif 6330 6331 _ACEOF 6332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6333 $EGREP "Amsterdam" >/dev/null 2>&1; then : 6334 gl_cv_c_amsterdam_compiler=yes 6335 else 6336 gl_cv_c_amsterdam_compiler=no 6337 fi 6338 rm -f conftest* 6339 6340 6341 fi 6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5 6343 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; } 6344 if test -z "$AR"; then 6345 if test $gl_cv_c_amsterdam_compiler = yes; then 6346 AR='cc -c.a' 6347 if test -z "$ARFLAGS"; then 6348 ARFLAGS='-o' 6349 fi 6350 else 6351 if test -n "$ac_tool_prefix"; then 6352 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6353 set dummy ${ac_tool_prefix}ar; ac_word=$2 6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6355 $as_echo_n "checking for $ac_word... " >&6; } 6356 if ${ac_cv_prog_AR+:} false; then : 6357 $as_echo_n "(cached) " >&6 6358 else 6359 if test -n "$AR"; then 6360 ac_cv_prog_AR="$AR" # Let the user override the test. 6361 else 6362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6363 for as_dir in $PATH 6364 do 6365 IFS=$as_save_IFS 6366 test -z "$as_dir" && as_dir=. 6367 for ac_exec_ext in '' $ac_executable_extensions; do 6368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6369 ac_cv_prog_AR="${ac_tool_prefix}ar" 6370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6371 break 2 6372 fi 6373 done 6374 done 6375 IFS=$as_save_IFS 6376 6377 fi 6378 fi 6379 AR=$ac_cv_prog_AR 6380 if test -n "$AR"; then 6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6382 $as_echo "$AR" >&6; } 6383 else 6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6385 $as_echo "no" >&6; } 6386 fi 6387 6388 6389 fi 6390 if test -z "$ac_cv_prog_AR"; then 6391 ac_ct_AR=$AR 6392 # Extract the first word of "ar", so it can be a program name with args. 6393 set dummy ar; ac_word=$2 6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6395 $as_echo_n "checking for $ac_word... " >&6; } 6396 if ${ac_cv_prog_ac_ct_AR+:} false; then : 6397 $as_echo_n "(cached) " >&6 6398 else 6399 if test -n "$ac_ct_AR"; then 6400 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6401 else 6402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6403 for as_dir in $PATH 6404 do 6405 IFS=$as_save_IFS 6406 test -z "$as_dir" && as_dir=. 6407 for ac_exec_ext in '' $ac_executable_extensions; do 6408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6409 ac_cv_prog_ac_ct_AR="ar" 6410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6411 break 2 6412 fi 6413 done 6414 done 6415 IFS=$as_save_IFS 6416 6417 fi 6418 fi 6419 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6420 if test -n "$ac_ct_AR"; then 6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6422 $as_echo "$ac_ct_AR" >&6; } 6423 else 6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6425 $as_echo "no" >&6; } 6426 fi 6427 6428 if test "x$ac_ct_AR" = x; then 6429 AR="ar" 6430 else 6431 case $cross_compiling:$ac_tool_warned in 6432 yes:) 6433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6435 ac_tool_warned=yes ;; 6436 esac 6437 AR=$ac_ct_AR 6438 fi 6439 else 6440 AR="$ac_cv_prog_AR" 6441 fi 6442 6443 if test -z "$ARFLAGS"; then 6444 ARFLAGS='cru' 6445 fi 6446 fi 6447 else 6448 if test -z "$ARFLAGS"; then 6449 ARFLAGS='cru' 6450 fi 6451 fi 6452 6453 6454 if test -z "$RANLIB"; then 6455 if test $gl_cv_c_amsterdam_compiler = yes; then 6456 RANLIB=':' 6457 else 6458 if test -n "$ac_tool_prefix"; then 6459 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6460 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6462 $as_echo_n "checking for $ac_word... " >&6; } 6463 if ${ac_cv_prog_RANLIB+:} false; then : 6464 $as_echo_n "(cached) " >&6 6465 else 6466 if test -n "$RANLIB"; then 6467 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6468 else 6469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6470 for as_dir in $PATH 6471 do 6472 IFS=$as_save_IFS 6473 test -z "$as_dir" && as_dir=. 6474 for ac_exec_ext in '' $ac_executable_extensions; do 6475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6476 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6478 break 2 6479 fi 6480 done 6481 done 6482 IFS=$as_save_IFS 6483 6484 fi 6485 fi 6486 RANLIB=$ac_cv_prog_RANLIB 6487 if test -n "$RANLIB"; then 6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6489 $as_echo "$RANLIB" >&6; } 6490 else 6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6492 $as_echo "no" >&6; } 6493 fi 6494 6495 6496 fi 6497 if test -z "$ac_cv_prog_RANLIB"; then 6498 ac_ct_RANLIB=$RANLIB 6499 # Extract the first word of "ranlib", so it can be a program name with args. 6500 set dummy ranlib; ac_word=$2 6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6502 $as_echo_n "checking for $ac_word... " >&6; } 6503 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6504 $as_echo_n "(cached) " >&6 6505 else 6506 if test -n "$ac_ct_RANLIB"; then 6507 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6508 else 6509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6510 for as_dir in $PATH 6511 do 6512 IFS=$as_save_IFS 6513 test -z "$as_dir" && as_dir=. 6514 for ac_exec_ext in '' $ac_executable_extensions; do 6515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6516 ac_cv_prog_ac_ct_RANLIB="ranlib" 6517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6518 break 2 6519 fi 6520 done 6521 done 6522 IFS=$as_save_IFS 6523 6524 fi 6525 fi 6526 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6527 if test -n "$ac_ct_RANLIB"; then 6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6529 $as_echo "$ac_ct_RANLIB" >&6; } 6530 else 6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6532 $as_echo "no" >&6; } 6533 fi 6534 6535 if test "x$ac_ct_RANLIB" = x; then 6536 RANLIB=":" 6537 else 6538 case $cross_compiling:$ac_tool_warned in 6539 yes:) 6540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6542 ac_tool_warned=yes ;; 6543 esac 6544 RANLIB=$ac_ct_RANLIB 6545 fi 6546 else 6547 RANLIB="$ac_cv_prog_RANLIB" 6548 fi 6549 6550 fi 6551 fi 6552 6553 6554 if test "x$CC" != xcc; then 6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 6556 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 6557 else 6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 6559 $as_echo_n "checking whether cc understands -c and -o together... " >&6; } 6560 fi 6561 set dummy $CC; ac_cc=`$as_echo "$2" | 6562 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 6563 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : 6564 $as_echo_n "(cached) " >&6 6565 else 6566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6567 /* end confdefs.h. */ 6568 6569 int 6570 main () 6571 { 6572 6573 ; 6574 return 0; 6575 } 6576 _ACEOF 6577 # Make sure it works both with $CC and with simple cc. 6578 # We do the test twice because some compilers refuse to overwrite an 6579 # existing .o file with -o, though they will create one. 6580 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 6581 rm -f conftest2.* 6582 if { { case "(($ac_try" in 6583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6584 *) ac_try_echo=$ac_try;; 6585 esac 6586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6587 $as_echo "$ac_try_echo"; } >&5 6588 (eval "$ac_try") 2>&5 6589 ac_status=$? 6590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6591 test $ac_status = 0; } && 6592 test -f conftest2.$ac_objext && { { case "(($ac_try" in 6593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6594 *) ac_try_echo=$ac_try;; 6595 esac 6596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6597 $as_echo "$ac_try_echo"; } >&5 6598 (eval "$ac_try") 2>&5 6599 ac_status=$? 6600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6601 test $ac_status = 0; }; 6602 then 6603 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 6604 if test "x$CC" != xcc; then 6605 # Test first that cc exists at all. 6606 if { ac_try='cc -c conftest.$ac_ext >&5' 6607 { { case "(($ac_try" in 6608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6609 *) ac_try_echo=$ac_try;; 6610 esac 6611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6612 $as_echo "$ac_try_echo"; } >&5 6613 (eval "$ac_try") 2>&5 6614 ac_status=$? 6615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6616 test $ac_status = 0; }; }; then 6617 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 6618 rm -f conftest2.* 6619 if { { case "(($ac_try" in 6620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6621 *) ac_try_echo=$ac_try;; 6622 esac 6623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6624 $as_echo "$ac_try_echo"; } >&5 6625 (eval "$ac_try") 2>&5 6626 ac_status=$? 6627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6628 test $ac_status = 0; } && 6629 test -f conftest2.$ac_objext && { { case "(($ac_try" in 6630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6631 *) ac_try_echo=$ac_try;; 6632 esac 6633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6634 $as_echo "$ac_try_echo"; } >&5 6635 (eval "$ac_try") 2>&5 6636 ac_status=$? 6637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6638 test $ac_status = 0; }; 6639 then 6640 # cc works too. 6641 : 6642 else 6643 # cc exists but doesn't like -o. 6644 eval ac_cv_prog_cc_${ac_cc}_c_o=no 6645 fi 6646 fi 6647 fi 6648 else 6649 eval ac_cv_prog_cc_${ac_cc}_c_o=no 6650 fi 6651 rm -f core conftest* 6652 6653 fi 6654 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6656 $as_echo "yes" >&6; } 6657 else 6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6659 $as_echo "no" >&6; } 6660 6661 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 6662 6663 fi 6664 6665 # FIXME: we rely on the cache variable name because 6666 # there is no other way. 6667 set dummy $CC 6668 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 6669 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 6670 if test "$am_t" != yes; then 6671 # Losing compiler, so override with the script. 6672 # FIXME: It is wrong to rewrite CC. 6673 # But if we don't then we get into trouble of one sort or another. 6674 # A longer-term fix would be to have automake use am__CC in this case, 6675 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 6676 CC="$am_aux_dir/compile $CC" 6677 fi 6678 6679 6680 # Make sure we can run config.sub. 6681 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 6682 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 6683 6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 6685 $as_echo_n "checking build system type... " >&6; } 6686 if ${ac_cv_build+:} false; then : 6687 $as_echo_n "(cached) " >&6 6688 else 6689 ac_build_alias=$build_alias 6690 test "x$ac_build_alias" = x && 6691 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 6692 test "x$ac_build_alias" = x && 6693 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 6694 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 6695 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 6696 6697 fi 6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 6699 $as_echo "$ac_cv_build" >&6; } 6700 case $ac_cv_build in 6701 *-*-*) ;; 6702 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 6703 esac 6704 build=$ac_cv_build 6705 ac_save_IFS=$IFS; IFS='-' 6706 set x $ac_cv_build 6707 shift 6708 build_cpu=$1 6709 build_vendor=$2 6710 shift; shift 6711 # Remember, the first character of IFS is used to create $*, 6712 # except with old shells: 6713 build_os=$* 6714 IFS=$ac_save_IFS 6715 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 6716 6717 6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 6719 $as_echo_n "checking host system type... " >&6; } 6720 if ${ac_cv_host+:} false; then : 6721 $as_echo_n "(cached) " >&6 6722 else 6723 if test "x$host_alias" = x; then 6724 ac_cv_host=$ac_cv_build 6725 else 6726 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 6727 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 6728 fi 6729 6730 fi 6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 6732 $as_echo "$ac_cv_host" >&6; } 6733 case $ac_cv_host in 6734 *-*-*) ;; 6735 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 6736 esac 6737 host=$ac_cv_host 6738 ac_save_IFS=$IFS; IFS='-' 6739 set x $ac_cv_host 6740 shift 6741 host_cpu=$1 6742 host_vendor=$2 6743 shift; shift 6744 # Remember, the first character of IFS is used to create $*, 6745 # except with old shells: 6746 host_os=$* 6747 IFS=$ac_save_IFS 6748 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 6749 6750 6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6752 $as_echo_n "checking for ANSI C header files... " >&6; } 6753 if ${ac_cv_header_stdc+:} false; then : 6754 $as_echo_n "(cached) " >&6 6755 else 6756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6757 /* end confdefs.h. */ 6758 #include <stdlib.h> 6759 #include <stdarg.h> 6760 #include <string.h> 6761 #include <float.h> 6762 6763 int 6764 main () 6765 { 6766 6767 ; 6768 return 0; 6769 } 6770 _ACEOF 6771 if ac_fn_c_try_compile "$LINENO"; then : 6772 ac_cv_header_stdc=yes 6773 else 6774 ac_cv_header_stdc=no 6775 fi 6776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6777 6778 if test $ac_cv_header_stdc = yes; then 6779 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6781 /* end confdefs.h. */ 6782 #include <string.h> 6783 6784 _ACEOF 6785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6786 $EGREP "memchr" >/dev/null 2>&1; then : 6787 6788 else 6789 ac_cv_header_stdc=no 6790 fi 6791 rm -f conftest* 6792 6793 fi 6794 6795 if test $ac_cv_header_stdc = yes; then 6796 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6798 /* end confdefs.h. */ 6799 #include <stdlib.h> 6800 6801 _ACEOF 6802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6803 $EGREP "free" >/dev/null 2>&1; then : 6804 6805 else 6806 ac_cv_header_stdc=no 6807 fi 6808 rm -f conftest* 6809 6810 fi 6811 6812 if test $ac_cv_header_stdc = yes; then 6813 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6814 if test "$cross_compiling" = yes; then : 6815 : 6816 else 6817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6818 /* end confdefs.h. */ 6819 #include <ctype.h> 6820 #include <stdlib.h> 6821 #if ((' ' & 0x0FF) == 0x020) 6822 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6823 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6824 #else 6825 # define ISLOWER(c) \ 6826 (('a' <= (c) && (c) <= 'i') \ 6827 || ('j' <= (c) && (c) <= 'r') \ 6828 || ('s' <= (c) && (c) <= 'z')) 6829 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6830 #endif 6831 6832 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6833 int 6834 main () 6835 { 6836 int i; 6837 for (i = 0; i < 256; i++) 6838 if (XOR (islower (i), ISLOWER (i)) 6839 || toupper (i) != TOUPPER (i)) 6840 return 2; 6841 return 0; 6842 } 6843 _ACEOF 6844 if ac_fn_c_try_run "$LINENO"; then : 6845 6846 else 6847 ac_cv_header_stdc=no 6848 fi 6849 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6850 conftest.$ac_objext conftest.beam conftest.$ac_ext 6851 fi 6852 6853 fi 6854 fi 6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6856 $as_echo "$ac_cv_header_stdc" >&6; } 6857 if test $ac_cv_header_stdc = yes; then 6858 6859 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 6860 6861 fi 6862 6863 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 6864 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6865 inttypes.h stdint.h unistd.h 6866 do : 6867 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6868 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6869 " 6870 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6871 cat >>confdefs.h <<_ACEOF 6872 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6873 _ACEOF 6874 6875 fi 6876 6877 done 6878 6879 6880 6881 6882 6883 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 6884 if test "x$ac_cv_header_minix_config_h" = xyes; then : 6885 MINIX=yes 6886 else 6887 MINIX= 6888 fi 6889 6890 6891 if test "$MINIX" = yes; then 6892 6893 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 6894 6895 6896 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 6897 6898 6899 $as_echo "#define _MINIX 1" >>confdefs.h 6900 6901 fi 6902 6903 case "$host_os" in 6904 hpux*) 6905 6906 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h 6907 6908 ;; 6909 esac 6910 6911 6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 6913 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 6914 if ${ac_cv_safe_to_define___extensions__+:} false; then : 6915 $as_echo_n "(cached) " >&6 6916 else 6917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6918 /* end confdefs.h. */ 6919 6920 # define __EXTENSIONS__ 1 6921 $ac_includes_default 6922 int 6923 main () 6924 { 6925 6926 ; 6927 return 0; 6928 } 6929 _ACEOF 6930 if ac_fn_c_try_compile "$LINENO"; then : 6931 ac_cv_safe_to_define___extensions__=yes 6932 else 6933 ac_cv_safe_to_define___extensions__=no 6934 fi 6935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6936 fi 6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 6938 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 6939 test $ac_cv_safe_to_define___extensions__ = yes && 6940 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 6941 6942 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 6943 6944 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h 6945 6946 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 6947 6948 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 6949 6950 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 # IEEE behaviour is the default on all CPUs except Alpha and SH 6963 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4 6964 # and the GCC 4.1.2 manual). 6965 case "$host_cpu" in 6966 alpha*) 6967 # On Alpha systems, a compiler option provides the behaviour. 6968 # See the ieee(3) manual page, also available at 6969 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM> 6970 if test -n "$GCC"; then 6971 # GCC has the option -mieee. 6972 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact. 6973 CPPFLAGS="$CPPFLAGS -mieee" 6974 else 6975 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact. 6976 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact. 6977 CPPFLAGS="$CPPFLAGS -ieee" 6978 fi 6979 ;; 6980 sh*) 6981 if test -n "$GCC"; then 6982 # GCC has the option -mieee. 6983 CPPFLAGS="$CPPFLAGS -mieee" 6984 fi 6985 ;; 6986 esac 6987 6988 # Check whether --enable-largefile was given. 6989 if test "${enable_largefile+set}" = set; then : 6990 enableval=$enable_largefile; 6991 fi 6992 6993 if test "$enable_largefile" != no; then 6994 6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 6996 $as_echo_n "checking for special C compiler options needed for large files... " >&6; } 6997 if ${ac_cv_sys_largefile_CC+:} false; then : 6998 $as_echo_n "(cached) " >&6 6999 else 7000 ac_cv_sys_largefile_CC=no 7001 if test "$GCC" != yes; then 7002 ac_save_CC=$CC 7003 while :; do 7004 # IRIX 6.2 and later do not support large files by default, 7005 # so use the C compiler's -n32 option if that helps. 7006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7007 /* end confdefs.h. */ 7008 #include <sys/types.h> 7009 /* Check that off_t can represent 2**63 - 1 correctly. 7010 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7011 since some C++ compilers masquerading as C compilers 7012 incorrectly reject 9223372036854775807. */ 7013 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 7014 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7015 && LARGE_OFF_T % 2147483647 == 1) 7016 ? 1 : -1]; 7017 int 7018 main () 7019 { 7020 7021 ; 7022 return 0; 7023 } 7024 _ACEOF 7025 if ac_fn_c_try_compile "$LINENO"; then : 7026 break 7027 fi 7028 rm -f core conftest.err conftest.$ac_objext 7029 CC="$CC -n32" 7030 if ac_fn_c_try_compile "$LINENO"; then : 7031 ac_cv_sys_largefile_CC=' -n32'; break 7032 fi 7033 rm -f core conftest.err conftest.$ac_objext 7034 break 7035 done 7036 CC=$ac_save_CC 7037 rm -f conftest.$ac_ext 7038 fi 7039 fi 7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 7041 $as_echo "$ac_cv_sys_largefile_CC" >&6; } 7042 if test "$ac_cv_sys_largefile_CC" != no; then 7043 CC=$CC$ac_cv_sys_largefile_CC 7044 fi 7045 7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 7047 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 7048 if ${ac_cv_sys_file_offset_bits+:} false; then : 7049 $as_echo_n "(cached) " >&6 7050 else 7051 while :; do 7052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7053 /* end confdefs.h. */ 7054 #include <sys/types.h> 7055 /* Check that off_t can represent 2**63 - 1 correctly. 7056 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7057 since some C++ compilers masquerading as C compilers 7058 incorrectly reject 9223372036854775807. */ 7059 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 7060 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7061 && LARGE_OFF_T % 2147483647 == 1) 7062 ? 1 : -1]; 7063 int 7064 main () 7065 { 7066 7067 ; 7068 return 0; 7069 } 7070 _ACEOF 7071 if ac_fn_c_try_compile "$LINENO"; then : 7072 ac_cv_sys_file_offset_bits=no; break 7073 fi 7074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7076 /* end confdefs.h. */ 7077 #define _FILE_OFFSET_BITS 64 7078 #include <sys/types.h> 7079 /* Check that off_t can represent 2**63 - 1 correctly. 7080 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7081 since some C++ compilers masquerading as C compilers 7082 incorrectly reject 9223372036854775807. */ 7083 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 7084 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7085 && LARGE_OFF_T % 2147483647 == 1) 7086 ? 1 : -1]; 7087 int 7088 main () 7089 { 7090 7091 ; 7092 return 0; 7093 } 7094 _ACEOF 7095 if ac_fn_c_try_compile "$LINENO"; then : 7096 ac_cv_sys_file_offset_bits=64; break 7097 fi 7098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7099 ac_cv_sys_file_offset_bits=unknown 7100 break 7101 done 7102 fi 7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 7104 $as_echo "$ac_cv_sys_file_offset_bits" >&6; } 7105 case $ac_cv_sys_file_offset_bits in #( 7106 no | unknown) ;; 7107 *) 7108 cat >>confdefs.h <<_ACEOF 7109 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 7110 _ACEOF 7111 ;; 7112 esac 7113 rm -rf conftest* 7114 if test $ac_cv_sys_file_offset_bits = unknown; then 7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 7116 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 7117 if ${ac_cv_sys_large_files+:} false; then : 7118 $as_echo_n "(cached) " >&6 7119 else 7120 while :; do 7121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7122 /* end confdefs.h. */ 7123 #include <sys/types.h> 7124 /* Check that off_t can represent 2**63 - 1 correctly. 7125 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7126 since some C++ compilers masquerading as C compilers 7127 incorrectly reject 9223372036854775807. */ 7128 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 7129 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7130 && LARGE_OFF_T % 2147483647 == 1) 7131 ? 1 : -1]; 7132 int 7133 main () 7134 { 7135 7136 ; 7137 return 0; 7138 } 7139 _ACEOF 7140 if ac_fn_c_try_compile "$LINENO"; then : 7141 ac_cv_sys_large_files=no; break 7142 fi 7143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7145 /* end confdefs.h. */ 7146 #define _LARGE_FILES 1 7147 #include <sys/types.h> 7148 /* Check that off_t can represent 2**63 - 1 correctly. 7149 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7150 since some C++ compilers masquerading as C compilers 7151 incorrectly reject 9223372036854775807. */ 7152 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 7153 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7154 && LARGE_OFF_T % 2147483647 == 1) 7155 ? 1 : -1]; 7156 int 7157 main () 7158 { 7159 7160 ; 7161 return 0; 7162 } 7163 _ACEOF 7164 if ac_fn_c_try_compile "$LINENO"; then : 7165 ac_cv_sys_large_files=1; break 7166 fi 7167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7168 ac_cv_sys_large_files=unknown 7169 break 7170 done 7171 fi 7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 7173 $as_echo "$ac_cv_sys_large_files" >&6; } 7174 case $ac_cv_sys_large_files in #( 7175 no | unknown) ;; 7176 *) 7177 cat >>confdefs.h <<_ACEOF 7178 #define _LARGE_FILES $ac_cv_sys_large_files 7179 _ACEOF 7180 ;; 7181 esac 7182 rm -rf conftest* 7183 fi 7184 7185 7186 fi 7187 7188 7189 7190 7191 7192 7193 # Check whether --enable-threads was given. 7194 if test "${enable_threads+set}" = set; then : 7195 enableval=$enable_threads; gl_use_threads=$enableval 7196 else 7197 if test -n "$gl_use_threads_default"; then 7198 gl_use_threads="$gl_use_threads_default" 7199 else 7200 case "$host_os" in 7201 osf*) gl_use_threads=no ;; 7202 cygwin*) 7203 case `uname -r` in 7204 1.[0-5].*) gl_use_threads=no ;; 7205 *) gl_use_threads=yes ;; 7206 esac 7207 ;; 7208 *) gl_use_threads=yes ;; 7209 esac 7210 fi 7211 7212 fi 7213 7214 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then 7215 # For using <pthread.h>: 7216 case "$host_os" in 7217 osf*) 7218 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it 7219 # groks <pthread.h>. cc also understands the flag -pthread, but 7220 # we don't use it because 1. gcc-2.95 doesn't understand -pthread, 7221 # 2. putting a flag into CPPFLAGS that has an effect on the linker 7222 # causes the AC_LINK_IFELSE test below to succeed unexpectedly, 7223 # leading to wrong values of LIBTHREAD and LTLIBTHREAD. 7224 CPPFLAGS="$CPPFLAGS -D_REENTRANT" 7225 ;; 7226 esac 7227 # Some systems optimize for single-threaded programs by default, and 7228 # need special flags to disable these optimizations. For example, the 7229 # definition of 'errno' in <errno.h>. 7230 case "$host_os" in 7231 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;; 7232 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; 7233 esac 7234 fi 7235 7236 7237 7238 7239 # Code from module alloca-opt: 7240 # Code from module announce-gen: 7241 # Code from module argmatch: 7242 # Code from module assert: 7243 # Code from module binary-io: 7244 # Code from module bitrotate: 7245 # Code from module c-ctype: 7246 # Code from module c-strcase: 7247 # Code from module c-strcaseeq: 7248 # Code from module calloc-posix: 7249 # Code from module cloexec: 7250 # Code from module close: 7251 # Code from module close-stream: 7252 # Code from module closeout: 7253 # Code from module config-h: 7254 # Code from module configmake: 7255 # Code from module dirname: 7256 # Code from module dirname-lgpl: 7257 # Code from module do-release-commit-and-tag: 7258 # Code from module dosname: 7259 # Code from module double-slash-root: 7260 # Code from module dup2: 7261 # Code from module environ: 7262 # Code from module errno: 7263 # Code from module error: 7264 # Code from module exitfail: 7265 # Code from module extensions: 7266 7267 # Code from module extern-inline: 7268 # Code from module fatal-signal: 7269 # Code from module fcntl: 7270 # Code from module fcntl-h: 7271 # Code from module fd-hook: 7272 # Code from module fd-safer-flag: 7273 # Code from module fdl: 7274 # Code from module float: 7275 # Code from module fopen: 7276 # Code from module fopen-safer: 7277 # Code from module fpending: 7278 # Code from module fpieee: 7279 7280 # Code from module fprintf-posix: 7281 # Code from module fpucw: 7282 # Code from module frexp-nolibm: 7283 # Code from module frexpl-nolibm: 7284 # Code from module fseterr: 7285 # Code from module fstat: 7286 # Code from module gendocs: 7287 # Code from module getdelim: 7288 # Code from module getdtablesize: 7289 # Code from module getline: 7290 # Code from module getopt-gnu: 7291 # Code from module getopt-posix: 7292 # Code from module gettext: 7293 # Code from module gettext-h: 7294 # Code from module git-version-gen: 7295 # Code from module gitlog-to-changelog: 7296 # Code from module gnu-web-doc-update: 7297 # Code from module gnumakefile: 7298 # Code from module gnupload: 7299 # Code from module gpl-3.0: 7300 # Code from module hash: 7301 # Code from module havelib: 7302 # Code from module include_next: 7303 # Code from module intprops: 7304 # Code from module inttypes: 7305 # Code from module inttypes-incomplete: 7306 # Code from module isnan: 7307 # Code from module isnand: 7308 # Code from module isnand-nolibm: 7309 # Code from module isnanf: 7310 # Code from module isnanf-nolibm: 7311 # Code from module isnanl: 7312 # Code from module isnanl-nolibm: 7313 # Code from module iswblank: 7314 # Code from module javacomp-script: 7315 # Code from module javaexec-script: 7316 # Code from module largefile: 7317 7318 # Code from module ldexp: 7319 # Code from module ldexpl: 7320 # Code from module localcharset: 7321 # Code from module lock: 7322 # Code from module maintainer-makefile: 7323 # Code from module malloc-gnu: 7324 # Code from module malloc-posix: 7325 # Code from module math: 7326 # Code from module mbchar: 7327 # Code from module mbrtowc: 7328 # Code from module mbschr: 7329 # Code from module mbsinit: 7330 # Code from module mbsrchr: 7331 # Code from module mbswidth: 7332 # Code from module mbuiter: 7333 # Code from module memchr: 7334 # Code from module msvc-inval: 7335 # Code from module msvc-nothrow: 7336 # Code from module multiarch: 7337 # Code from module nocrash: 7338 # Code from module obstack: 7339 # Code from module obstack-printf: 7340 # Code from module open: 7341 # Code from module pathmax: 7342 # Code from module perror: 7343 # Code from module pipe2: 7344 # Code from module pipe2-safer: 7345 # Code from module posix_spawn-internal: 7346 # Code from module posix_spawn_file_actions_addclose: 7347 # Code from module posix_spawn_file_actions_adddup2: 7348 # Code from module posix_spawn_file_actions_addopen: 7349 # Code from module posix_spawn_file_actions_destroy: 7350 # Code from module posix_spawn_file_actions_init: 7351 # Code from module posix_spawnattr_destroy: 7352 # Code from module posix_spawnattr_init: 7353 # Code from module posix_spawnattr_setflags: 7354 # Code from module posix_spawnattr_setsigmask: 7355 # Code from module posix_spawnp: 7356 # Code from module printf-frexp: 7357 # Code from module printf-frexpl: 7358 # Code from module printf-posix: 7359 # Code from module printf-safe: 7360 # Code from module progname: 7361 # Code from module quote: 7362 # Code from module quotearg: 7363 # Code from module quotearg-simple: 7364 # Code from module raise: 7365 # Code from module rawmemchr: 7366 # Code from module readme-release: 7367 # Code from module realloc-posix: 7368 # Code from module sched: 7369 # Code from module sigaction: 7370 # Code from module signal-h: 7371 # Code from module signbit: 7372 # Code from module sigprocmask: 7373 # Code from module size_max: 7374 # Code from module snippet/_Noreturn: 7375 # Code from module snippet/arg-nonnull: 7376 # Code from module snippet/c++defs: 7377 # Code from module snippet/warn-on-use: 7378 # Code from module snprintf: 7379 # Code from module snprintf-posix: 7380 # Code from module spawn: 7381 # Code from module spawn-pipe: 7382 # Code from module sprintf-posix: 7383 # Code from module ssize_t: 7384 # Code from module stat: 7385 # Code from module stdbool: 7386 # Code from module stddef: 7387 # Code from module stdint: 7388 # Code from module stdio: 7389 # Code from module stdlib: 7390 # Code from module stpcpy: 7391 # Code from module strchrnul: 7392 # Code from module strdup-posix: 7393 # Code from module streq: 7394 # Code from module strerror: 7395 # Code from module strerror-override: 7396 # Code from module strerror_r-posix: 7397 # Code from module string: 7398 # Code from module strndup: 7399 # Code from module strnlen: 7400 # Code from module strnlen1: 7401 # Code from module strtoul: 7402 # Code from module strverscmp: 7403 # Code from module sys_stat: 7404 # Code from module sys_types: 7405 # Code from module sys_wait: 7406 # Code from module threadlib: 7407 7408 7409 7410 # Code from module time: 7411 # Code from module unistd: 7412 # Code from module unistd-safer: 7413 # Code from module unitypes: 7414 # Code from module uniwidth/base: 7415 # Code from module uniwidth/width: 7416 # Code from module unlocked-io: 7417 # Code from module unsetenv: 7418 # Code from module update-copyright: 7419 # Code from module useless-if-before-free: 7420 # Code from module vasnprintf: 7421 # Code from module vc-list-files: 7422 # Code from module verify: 7423 # Code from module vfprintf-posix: 7424 # Code from module vsnprintf: 7425 # Code from module vsnprintf-posix: 7426 # Code from module vsprintf-posix: 7427 # Code from module wait-process: 7428 # Code from module waitpid: 7429 # Code from module warnings: 7430 # Code from module wchar: 7431 # Code from module wctype-h: 7432 # Code from module wcwidth: 7433 # Code from module xalloc: 7434 # Code from module xalloc-die: 7435 # Code from module xalloc-oversized: 7436 # Code from module xmemdup0: 7437 # Code from module xsize: 7438 # Code from module xstrndup: 7439 7440 7441 # Gnulib uses '#pragma GCC diagnostic push' to silence some 7442 # warnings, but older gcc doesn't support this. 7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma GCC diagnostic push works" >&5 7444 $as_echo_n "checking whether pragma GCC diagnostic push works... " >&6; } 7445 if ${lv_cv_gcc_pragma_push_works+:} false; then : 7446 $as_echo_n "(cached) " >&6 7447 else 7448 7449 save_CFLAGS=$CFLAGS 7450 CFLAGS='-Wunknown-pragmas -Werror' 7451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7452 /* end confdefs.h. */ 7453 7454 #pragma GCC diagnostic push 7455 #pragma GCC diagnostic pop 7456 7457 int 7458 main () 7459 { 7460 7461 ; 7462 return 0; 7463 } 7464 _ACEOF 7465 if ac_fn_c_try_compile "$LINENO"; then : 7466 lv_cv_gcc_pragma_push_works=yes 7467 else 7468 lv_cv_gcc_pragma_push_works=no 7469 fi 7470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7471 CFLAGS=$save_CFLAGS 7472 fi 7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lv_cv_gcc_pragma_push_works" >&5 7474 $as_echo "$lv_cv_gcc_pragma_push_works" >&6; } 7475 7476 # Check whether --enable-gcc-warnings was given. 7477 if test "${enable_gcc_warnings+set}" = set; then : 7478 enableval=$enable_gcc_warnings; case $enable_gcc_warnings in 7479 yes|no) ;; 7480 *) as_fn_error $? "invalid value for --gcc-warnings: $enable_gcc_warnings" "$LINENO" 5;; 7481 esac 7482 else 7483 enable_gcc_warnings=no 7484 fi 7485 7486 if test "$enable_gcc_warnings" = yes; then 7487 warn_common='-Wall -Wextra -Wno-sign-compare -Wcast-align 7488 -Wformat -Wpointer-arith -Wwrite-strings' 7489 warn_c='-Wbad-function-cast -Wshadow -Wstrict-prototypes' 7490 warn_cxx='-Wnoexcept' 7491 ac_ext=c 7492 ac_cpp='$CPP $CPPFLAGS' 7493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7495 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7496 7497 # Clang supports many of GCC's -W options, but only issues warnings 7498 # on the ones it does not recognize. In that case, gl_WARN_ADD 7499 # thinks the option is supported, and unknown options are then added 7500 # to CFLAGS. But then, when -Werror is added in the test suite for 7501 # instance, the warning about the unknown option turns into an 7502 # error. 7503 # 7504 # This should be addressed by gnulib's gl_WARN_ADD, but in the 7505 # meanwhile, turn warnings about unknown options into errors in 7506 # CFLAGS, and restore CFLAGS after the tests. 7507 save_CFLAGS=$CFLAGS 7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror=unknown-warning-option" >&5 7509 $as_echo_n "checking whether C compiler handles -Werror=unknown-warning-option... " >&6; } 7510 if ${gl_cv_warn_c__Werror_unknown_warning_option+:} false; then : 7511 $as_echo_n "(cached) " >&6 7512 else 7513 7514 gl_save_compiler_FLAGS="$CFLAGS" 7515 as_fn_append CFLAGS " -Werror=unknown-warning-option" 7516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7517 /* end confdefs.h. */ 7518 7519 int 7520 main () 7521 { 7522 7523 ; 7524 return 0; 7525 } 7526 _ACEOF 7527 if ac_fn_c_try_compile "$LINENO"; then : 7528 gl_cv_warn_c__Werror_unknown_warning_option=yes 7529 else 7530 gl_cv_warn_c__Werror_unknown_warning_option=no 7531 fi 7532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7533 CFLAGS="$gl_save_compiler_FLAGS" 7534 7535 fi 7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror_unknown_warning_option" >&5 7537 $as_echo "$gl_cv_warn_c__Werror_unknown_warning_option" >&6; } 7538 if test "x$gl_cv_warn_c__Werror_unknown_warning_option" = xyes; then : 7539 as_fn_append CFLAGS " -Werror=unknown-warning-option" 7540 fi 7541 7542 7543 for i in $warn_common $warn_c; 7544 do 7545 as_gl_Warn=`$as_echo "gl_cv_warn_c_$i" | $as_tr_sh` 7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $i" >&5 7547 $as_echo_n "checking whether C compiler handles $i... " >&6; } 7548 if eval \${$as_gl_Warn+:} false; then : 7549 $as_echo_n "(cached) " >&6 7550 else 7551 7552 gl_save_compiler_FLAGS="$CFLAGS" 7553 as_fn_append CFLAGS " $i" 7554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7555 /* end confdefs.h. */ 7556 7557 int 7558 main () 7559 { 7560 7561 ; 7562 return 0; 7563 } 7564 _ACEOF 7565 if ac_fn_c_try_compile "$LINENO"; then : 7566 eval "$as_gl_Warn=yes" 7567 else 7568 eval "$as_gl_Warn=no" 7569 fi 7570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7571 CFLAGS="$gl_save_compiler_FLAGS" 7572 7573 fi 7574 eval ac_res=\$$as_gl_Warn 7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7576 $as_echo "$ac_res" >&6; } 7577 if eval test \"x\$"$as_gl_Warn"\" = x"yes"; then : 7578 as_fn_append WARN_CFLAGS " $i" 7579 fi 7580 7581 7582 done 7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5 7584 $as_echo_n "checking whether C compiler handles -Werror... " >&6; } 7585 if ${gl_cv_warn_c__Werror+:} false; then : 7586 $as_echo_n "(cached) " >&6 7587 else 7588 7589 gl_save_compiler_FLAGS="$CFLAGS" 7590 as_fn_append CFLAGS " -Werror" 7591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7592 /* end confdefs.h. */ 7593 7594 int 7595 main () 7596 { 7597 7598 ; 7599 return 0; 7600 } 7601 _ACEOF 7602 if ac_fn_c_try_compile "$LINENO"; then : 7603 gl_cv_warn_c__Werror=yes 7604 else 7605 gl_cv_warn_c__Werror=no 7606 fi 7607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7608 CFLAGS="$gl_save_compiler_FLAGS" 7609 7610 fi 7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5 7612 $as_echo "$gl_cv_warn_c__Werror" >&6; } 7613 if test "x$gl_cv_warn_c__Werror" = xyes; then : 7614 as_fn_append WERROR_CFLAGS " -Werror" 7615 fi 7616 7617 7618 7619 # Warnings for the test suite, and maybe for bison if GCC is modern 7620 # enough. 7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wmissing-declarations" >&5 7622 $as_echo_n "checking whether C compiler handles -Wmissing-declarations... " >&6; } 7623 if ${gl_cv_warn_c__Wmissing_declarations+:} false; then : 7624 $as_echo_n "(cached) " >&6 7625 else 7626 7627 gl_save_compiler_FLAGS="$CFLAGS" 7628 as_fn_append CFLAGS " -Wmissing-declarations" 7629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7630 /* end confdefs.h. */ 7631 7632 int 7633 main () 7634 { 7635 7636 ; 7637 return 0; 7638 } 7639 _ACEOF 7640 if ac_fn_c_try_compile "$LINENO"; then : 7641 gl_cv_warn_c__Wmissing_declarations=yes 7642 else 7643 gl_cv_warn_c__Wmissing_declarations=no 7644 fi 7645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7646 CFLAGS="$gl_save_compiler_FLAGS" 7647 7648 fi 7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wmissing_declarations" >&5 7650 $as_echo "$gl_cv_warn_c__Wmissing_declarations" >&6; } 7651 if test "x$gl_cv_warn_c__Wmissing_declarations" = xyes; then : 7652 as_fn_append WARN_CFLAGS_TEST " -Wmissing-declarations" 7653 fi 7654 7655 7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wmissing-prototypes" >&5 7657 $as_echo_n "checking whether C compiler handles -Wmissing-prototypes... " >&6; } 7658 if ${gl_cv_warn_c__Wmissing_prototypes+:} false; then : 7659 $as_echo_n "(cached) " >&6 7660 else 7661 7662 gl_save_compiler_FLAGS="$CFLAGS" 7663 as_fn_append CFLAGS " -Wmissing-prototypes" 7664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7665 /* end confdefs.h. */ 7666 7667 int 7668 main () 7669 { 7670 7671 ; 7672 return 0; 7673 } 7674 _ACEOF 7675 if ac_fn_c_try_compile "$LINENO"; then : 7676 gl_cv_warn_c__Wmissing_prototypes=yes 7677 else 7678 gl_cv_warn_c__Wmissing_prototypes=no 7679 fi 7680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7681 CFLAGS="$gl_save_compiler_FLAGS" 7682 7683 fi 7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wmissing_prototypes" >&5 7685 $as_echo "$gl_cv_warn_c__Wmissing_prototypes" >&6; } 7686 if test "x$gl_cv_warn_c__Wmissing_prototypes" = xyes; then : 7687 as_fn_append WARN_CFLAGS_TEST " -Wmissing-prototypes" 7688 fi 7689 7690 7691 test $lv_cv_gcc_pragma_push_works = yes && 7692 as_fn_append WARN_CFLAGS " $WARN_CFLAGS_TEST" 7693 7694 # Warnings for the test suite only. 7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wundef" >&5 7696 $as_echo_n "checking whether C compiler handles -Wundef... " >&6; } 7697 if ${gl_cv_warn_c__Wundef+:} false; then : 7698 $as_echo_n "(cached) " >&6 7699 else 7700 7701 gl_save_compiler_FLAGS="$CFLAGS" 7702 as_fn_append CFLAGS " -Wundef" 7703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7704 /* end confdefs.h. */ 7705 7706 int 7707 main () 7708 { 7709 7710 ; 7711 return 0; 7712 } 7713 _ACEOF 7714 if ac_fn_c_try_compile "$LINENO"; then : 7715 gl_cv_warn_c__Wundef=yes 7716 else 7717 gl_cv_warn_c__Wundef=no 7718 fi 7719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7720 CFLAGS="$gl_save_compiler_FLAGS" 7721 7722 fi 7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wundef" >&5 7724 $as_echo "$gl_cv_warn_c__Wundef" >&6; } 7725 if test "x$gl_cv_warn_c__Wundef" = xyes; then : 7726 as_fn_append WARN_CFLAGS_TEST " -Wundef" 7727 fi 7728 7729 7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -pedantic" >&5 7731 $as_echo_n "checking whether C compiler handles -pedantic... " >&6; } 7732 if ${gl_cv_warn_c__pedantic+:} false; then : 7733 $as_echo_n "(cached) " >&6 7734 else 7735 7736 gl_save_compiler_FLAGS="$CFLAGS" 7737 as_fn_append CFLAGS " -pedantic" 7738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7739 /* end confdefs.h. */ 7740 7741 int 7742 main () 7743 { 7744 7745 ; 7746 return 0; 7747 } 7748 _ACEOF 7749 if ac_fn_c_try_compile "$LINENO"; then : 7750 gl_cv_warn_c__pedantic=yes 7751 else 7752 gl_cv_warn_c__pedantic=no 7753 fi 7754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7755 CFLAGS="$gl_save_compiler_FLAGS" 7756 7757 fi 7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__pedantic" >&5 7759 $as_echo "$gl_cv_warn_c__pedantic" >&6; } 7760 if test "x$gl_cv_warn_c__pedantic" = xyes; then : 7761 as_fn_append WARN_CFLAGS_TEST " -pedantic" 7762 fi 7763 7764 7765 CFLAGS=$save_CFLAGS 7766 ac_ext=c 7767 ac_cpp='$CPP $CPPFLAGS' 7768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7770 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7771 7772 7773 7774 ac_ext=cpp 7775 ac_cpp='$CXXCPP $CPPFLAGS' 7776 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7777 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7778 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7779 7780 save_CXXFLAGS=$CXXFLAGS 7781 7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler handles -Werror=unknown-warning-option" >&5 7783 $as_echo_n "checking whether C++ compiler handles -Werror=unknown-warning-option... " >&6; } 7784 if ${gl_cv_warn_cxx__Werror_unknown_warning_option+:} false; then : 7785 $as_echo_n "(cached) " >&6 7786 else 7787 7788 gl_save_compiler_FLAGS="$CXXFLAGS" 7789 as_fn_append CXXFLAGS " -Werror=unknown-warning-option" 7790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7791 /* end confdefs.h. */ 7792 7793 int 7794 main () 7795 { 7796 7797 ; 7798 return 0; 7799 } 7800 _ACEOF 7801 if ac_fn_cxx_try_compile "$LINENO"; then : 7802 gl_cv_warn_cxx__Werror_unknown_warning_option=yes 7803 else 7804 gl_cv_warn_cxx__Werror_unknown_warning_option=no 7805 fi 7806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7807 CXXFLAGS="$gl_save_compiler_FLAGS" 7808 7809 fi 7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__Werror_unknown_warning_option" >&5 7811 $as_echo "$gl_cv_warn_cxx__Werror_unknown_warning_option" >&6; } 7812 if test "x$gl_cv_warn_cxx__Werror_unknown_warning_option" = xyes; then : 7813 as_fn_append CXXFLAGS " -Werror=unknown-warning-option" 7814 fi 7815 7816 7817 for i in $warn_common $warn_cxx; 7818 do 7819 as_gl_Warn=`$as_echo "gl_cv_warn_cxx_$i" | $as_tr_sh` 7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler handles $i" >&5 7821 $as_echo_n "checking whether C++ compiler handles $i... " >&6; } 7822 if eval \${$as_gl_Warn+:} false; then : 7823 $as_echo_n "(cached) " >&6 7824 else 7825 7826 gl_save_compiler_FLAGS="$CXXFLAGS" 7827 as_fn_append CXXFLAGS " $i" 7828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7829 /* end confdefs.h. */ 7830 7831 int 7832 main () 7833 { 7834 7835 ; 7836 return 0; 7837 } 7838 _ACEOF 7839 if ac_fn_cxx_try_compile "$LINENO"; then : 7840 eval "$as_gl_Warn=yes" 7841 else 7842 eval "$as_gl_Warn=no" 7843 fi 7844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7845 CXXFLAGS="$gl_save_compiler_FLAGS" 7846 7847 fi 7848 eval ac_res=\$$as_gl_Warn 7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7850 $as_echo "$ac_res" >&6; } 7851 if eval test \"x\$"$as_gl_Warn"\" = x"yes"; then : 7852 as_fn_append WARN_CXXFLAGS " $i" 7853 fi 7854 7855 7856 done 7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler handles -Wzero-as-null-pointer-constant" >&5 7858 $as_echo_n "checking whether C++ compiler handles -Wzero-as-null-pointer-constant... " >&6; } 7859 if ${gl_cv_warn_cxx__Wzero_as_null_pointer_constant+:} false; then : 7860 $as_echo_n "(cached) " >&6 7861 else 7862 7863 gl_save_compiler_FLAGS="$CXXFLAGS" 7864 as_fn_append CXXFLAGS " -Wzero-as-null-pointer-constant" 7865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7866 /* end confdefs.h. */ 7867 7868 int 7869 main () 7870 { 7871 nullptr 7872 ; 7873 return 0; 7874 } 7875 _ACEOF 7876 if ac_fn_cxx_try_compile "$LINENO"; then : 7877 gl_cv_warn_cxx__Wzero_as_null_pointer_constant=yes 7878 else 7879 gl_cv_warn_cxx__Wzero_as_null_pointer_constant=no 7880 fi 7881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7882 CXXFLAGS="$gl_save_compiler_FLAGS" 7883 7884 fi 7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__Wzero_as_null_pointer_constant" >&5 7886 $as_echo "$gl_cv_warn_cxx__Wzero_as_null_pointer_constant" >&6; } 7887 if test "x$gl_cv_warn_cxx__Wzero_as_null_pointer_constant" = xyes; then : 7888 as_fn_append WARN_CXXFLAGS " -Wzero-as-null-pointer-constant" 7889 fi 7890 7891 7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler handles -Werror" >&5 7893 $as_echo_n "checking whether C++ compiler handles -Werror... " >&6; } 7894 if ${gl_cv_warn_cxx__Werror+:} false; then : 7895 $as_echo_n "(cached) " >&6 7896 else 7897 7898 gl_save_compiler_FLAGS="$CXXFLAGS" 7899 as_fn_append CXXFLAGS " -Werror" 7900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7901 /* end confdefs.h. */ 7902 7903 int 7904 main () 7905 { 7906 7907 ; 7908 return 0; 7909 } 7910 _ACEOF 7911 if ac_fn_cxx_try_compile "$LINENO"; then : 7912 gl_cv_warn_cxx__Werror=yes 7913 else 7914 gl_cv_warn_cxx__Werror=no 7915 fi 7916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7917 CXXFLAGS="$gl_save_compiler_FLAGS" 7918 7919 fi 7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__Werror" >&5 7921 $as_echo "$gl_cv_warn_cxx__Werror" >&6; } 7922 if test "x$gl_cv_warn_cxx__Werror" = xyes; then : 7923 as_fn_append WERROR_CXXFLAGS " -Werror" 7924 fi 7925 7926 7927 # Warnings for the test suite only. 7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler handles -Wundef" >&5 7929 $as_echo_n "checking whether C++ compiler handles -Wundef... " >&6; } 7930 if ${gl_cv_warn_cxx__Wundef+:} false; then : 7931 $as_echo_n "(cached) " >&6 7932 else 7933 7934 gl_save_compiler_FLAGS="$CXXFLAGS" 7935 as_fn_append CXXFLAGS " -Wundef" 7936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7937 /* end confdefs.h. */ 7938 7939 int 7940 main () 7941 { 7942 7943 ; 7944 return 0; 7945 } 7946 _ACEOF 7947 if ac_fn_cxx_try_compile "$LINENO"; then : 7948 gl_cv_warn_cxx__Wundef=yes 7949 else 7950 gl_cv_warn_cxx__Wundef=no 7951 fi 7952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7953 CXXFLAGS="$gl_save_compiler_FLAGS" 7954 7955 fi 7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__Wundef" >&5 7957 $as_echo "$gl_cv_warn_cxx__Wundef" >&6; } 7958 if test "x$gl_cv_warn_cxx__Wundef" = xyes; then : 7959 as_fn_append WARN_CXXFLAGS_TEST " -Wundef" 7960 fi 7961 7962 7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler handles -pedantic" >&5 7964 $as_echo_n "checking whether C++ compiler handles -pedantic... " >&6; } 7965 if ${gl_cv_warn_cxx__pedantic+:} false; then : 7966 $as_echo_n "(cached) " >&6 7967 else 7968 7969 gl_save_compiler_FLAGS="$CXXFLAGS" 7970 as_fn_append CXXFLAGS " -pedantic" 7971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7972 /* end confdefs.h. */ 7973 7974 int 7975 main () 7976 { 7977 7978 ; 7979 return 0; 7980 } 7981 _ACEOF 7982 if ac_fn_cxx_try_compile "$LINENO"; then : 7983 gl_cv_warn_cxx__pedantic=yes 7984 else 7985 gl_cv_warn_cxx__pedantic=no 7986 fi 7987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7988 CXXFLAGS="$gl_save_compiler_FLAGS" 7989 7990 fi 7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_cxx__pedantic" >&5 7992 $as_echo "$gl_cv_warn_cxx__pedantic" >&6; } 7993 if test "x$gl_cv_warn_cxx__pedantic" = xyes; then : 7994 as_fn_append WARN_CXXFLAGS_TEST " -pedantic" 7995 fi 7996 7997 7998 CXXFLAGS=$save_CXXFLAGS 7999 ac_ext=c 8000 ac_cpp='$CPP $CPPFLAGS' 8001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8003 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8004 8005 fi 8006 8007 8008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8009 /* end confdefs.h. */ 8010 #include <limits.h> 8011 int test_array[CHAR_BIT]; 8012 int 8013 main () 8014 { 8015 8016 ; 8017 return 0; 8018 } 8019 _ACEOF 8020 if ac_fn_c_try_compile "$LINENO"; then : 8021 8022 else 8023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8025 as_fn_error $? "cannot compile a simple C program 8026 See \`config.log' for more details" "$LINENO" 5; } 8027 fi 8028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8029 BISON_C_WORKS=: 8030 8031 8032 ac_ext=c 8033 ac_cpp='$CPP $CPPFLAGS' 8034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8036 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8037 8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports POSIXLY_CORRECT=1" >&5 8039 $as_echo_n "checking whether $CC supports POSIXLY_CORRECT=1... " >&6; } 8040 if ${bison_cv_c_supports_posixly_correct+:} false; then : 8041 $as_echo_n "(cached) " >&6 8042 else 8043 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }' 8044 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in 8045 xx) gl_had_POSIXLY_CORRECT=exported ;; 8046 x) gl_had_POSIXLY_CORRECT=yes ;; 8047 *) gl_had_POSIXLY_CORRECT= ;; 8048 esac 8049 POSIXLY_CORRECT=1 8050 export POSIXLY_CORRECT 8051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8052 /* end confdefs.h. */ 8053 8054 int 8055 main () 8056 { 8057 8058 ; 8059 return 0; 8060 } 8061 _ACEOF 8062 if ac_fn_c_try_link "$LINENO"; then : 8063 bison_cv_c_supports_posixly_correct=yes 8064 else 8065 bison_cv_c_supports_posixly_correct=no 8066 fi 8067 rm -f core conftest.err conftest.$ac_objext \ 8068 conftest$ac_exeext conftest.$ac_ext 8069 case $gl_had_POSIXLY_CORRECT in 8070 exported) ;; 8071 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;; 8072 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;; 8073 esac 8074 8075 fi 8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bison_cv_c_supports_posixly_correct" >&5 8077 $as_echo "$bison_cv_c_supports_posixly_correct" >&6; } 8078 case $bison_cv_c_supports_posixly_correct in 8079 yes) C_COMPILER_POSIXLY_CORRECT=true 8080 ;; 8081 no) C_COMPILER_POSIXLY_CORRECT=false 8082 ;; 8083 esac 8084 8085 ac_ext=c 8086 ac_cpp='$CPP $CPPFLAGS' 8087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8089 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8090 8091 8092 8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX builds executables that work" >&5 8094 $as_echo_n "checking whether $CXX builds executables that work... " >&6; } 8095 if ${bison_cv_cxx_works+:} false; then : 8096 $as_echo_n "(cached) " >&6 8097 else 8098 ac_ext=cpp 8099 ac_cpp='$CXXCPP $CPPFLAGS' 8100 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8101 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8102 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8103 8104 bison_cv_cxx_works=no 8105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8106 /* end confdefs.h. */ 8107 #include <cstdlib> 8108 #include <iostream> 8109 #include <map> 8110 #include <string> 8111 using namespace std; 8112 int 8113 main () 8114 { 8115 std::cerr << ""; 8116 cout << ""; 8117 typedef std::pair<unsigned int, int> uipair; 8118 std::map<unsigned int, int> m; 8119 std::map<unsigned int, int>::iterator i; 8120 m.insert (uipair (4, -4)); 8121 for (i = m.begin (); i != m.end (); ++i) 8122 if (i->first != 4) 8123 return 1; 8124 ; 8125 return 0; 8126 } 8127 _ACEOF 8128 if ac_fn_cxx_try_compile "$LINENO"; then : 8129 if { ac_try='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_objext $LIBS >&5' 8130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 8131 (eval $ac_try) 2>&5 8132 ac_status=$? 8133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8134 test $ac_status = 0; }; }; then : 8135 if test "$cross_compiling" = yes; then : 8136 bison_cv_cxx_works=cross 8137 else 8138 if { ac_try='./conftest$ac_exeext' 8139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 8140 (eval $ac_try) 2>&5 8141 ac_status=$? 8142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8143 test $ac_status = 0; }; }; then : 8144 bison_cv_cxx_works=yes 8145 fi 8146 fi 8147 fi 8148 rm -f conftest$ac_exeext 8149 fi 8150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8151 ac_ext=c 8152 ac_cpp='$CPP $CPPFLAGS' 8153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8155 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8156 8157 fi 8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bison_cv_cxx_works" >&5 8159 $as_echo "$bison_cv_cxx_works" >&6; } 8160 8161 case $bison_cv_cxx_works in 8162 yes) 8163 BISON_CXX_WORKS=':';; 8164 no | cross) 8165 BISON_CXX_WORKS='exit 77';; 8166 esac 8167 8168 8169 if test $bison_cv_cxx_works = yes; then 8170 BISON_CXX_WORKS_TRUE= 8171 BISON_CXX_WORKS_FALSE='#' 8172 else 8173 BISON_CXX_WORKS_TRUE='#' 8174 BISON_CXX_WORKS_FALSE= 8175 fi 8176 8177 8178 ac_ext=cpp 8179 ac_cpp='$CXXCPP $CPPFLAGS' 8180 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8181 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8182 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8183 8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports POSIXLY_CORRECT=1" >&5 8185 $as_echo_n "checking whether $CXX supports POSIXLY_CORRECT=1... " >&6; } 8186 if ${bison_cv_cxx_supports_posixly_correct+:} false; then : 8187 $as_echo_n "(cached) " >&6 8188 else 8189 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }' 8190 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in 8191 xx) gl_had_POSIXLY_CORRECT=exported ;; 8192 x) gl_had_POSIXLY_CORRECT=yes ;; 8193 *) gl_had_POSIXLY_CORRECT= ;; 8194 esac 8195 POSIXLY_CORRECT=1 8196 export POSIXLY_CORRECT 8197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8198 /* end confdefs.h. */ 8199 8200 int 8201 main () 8202 { 8203 8204 ; 8205 return 0; 8206 } 8207 _ACEOF 8208 if ac_fn_cxx_try_link "$LINENO"; then : 8209 bison_cv_cxx_supports_posixly_correct=yes 8210 else 8211 bison_cv_cxx_supports_posixly_correct=no 8212 fi 8213 rm -f core conftest.err conftest.$ac_objext \ 8214 conftest$ac_exeext conftest.$ac_ext 8215 case $gl_had_POSIXLY_CORRECT in 8216 exported) ;; 8217 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;; 8218 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;; 8219 esac 8220 8221 fi 8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bison_cv_cxx_supports_posixly_correct" >&5 8223 $as_echo "$bison_cv_cxx_supports_posixly_correct" >&6; } 8224 case $bison_cv_cxx_supports_posixly_correct in 8225 yes) CXX_COMPILER_POSIXLY_CORRECT=true 8226 ;; 8227 no) CXX_COMPILER_POSIXLY_CORRECT=false 8228 ;; 8229 esac 8230 8231 ac_ext=c 8232 ac_cpp='$CPP $CPPFLAGS' 8233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8235 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8236 8237 8238 8239 # Check whether --enable-yacc was given. 8240 if test "${enable_yacc+set}" = set; then : 8241 enableval=$enable_yacc; 8242 else 8243 enable_yacc=yes 8244 fi 8245 8246 case $enable_yacc in 8247 yes) 8248 YACC_SCRIPT=yacc 8249 YACC_LIBRARY=liby.a;; 8250 *) 8251 YACC_SCRIPT= 8252 YACC_LIBRARY=;; 8253 esac 8254 8255 8256 8257 # Checks for programs. 8258 8259 DOT=${DOT-"${am_missing_run}dot"} 8260 8261 for ac_prog in flex lex 8262 do 8263 # Extract the first word of "$ac_prog", so it can be a program name with args. 8264 set dummy $ac_prog; ac_word=$2 8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8266 $as_echo_n "checking for $ac_word... " >&6; } 8267 if ${ac_cv_prog_LEX+:} false; then : 8268 $as_echo_n "(cached) " >&6 8269 else 8270 if test -n "$LEX"; then 8271 ac_cv_prog_LEX="$LEX" # Let the user override the test. 8272 else 8273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8274 for as_dir in $PATH 8275 do 8276 IFS=$as_save_IFS 8277 test -z "$as_dir" && as_dir=. 8278 for ac_exec_ext in '' $ac_executable_extensions; do 8279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8280 ac_cv_prog_LEX="$ac_prog" 8281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8282 break 2 8283 fi 8284 done 8285 done 8286 IFS=$as_save_IFS 8287 8288 fi 8289 fi 8290 LEX=$ac_cv_prog_LEX 8291 if test -n "$LEX"; then 8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 8293 $as_echo "$LEX" >&6; } 8294 else 8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8296 $as_echo "no" >&6; } 8297 fi 8298 8299 8300 test -n "$LEX" && break 8301 done 8302 test -n "$LEX" || LEX=":" 8303 8304 if test "x$LEX" != "x:"; then 8305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lex is flex" >&5 8306 $as_echo_n "checking whether lex is flex... " >&6; } 8307 if ${ac_cv_prog_lex_is_flex+:} false; then : 8308 $as_echo_n "(cached) " >&6 8309 else 8310 cat >conftest.l <<_ACEOF 8311 %option debug nodefault noinput nounput noyywrap never-interactive 8312 %x SC_CONF_TEST 8313 %% 8314 a { BEGIN SC_CONF_TEST; } 8315 _ACEOF 8316 if { { ac_try="$LEX conftest.l" 8317 case "(($ac_try" in 8318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8319 *) ac_try_echo=$ac_try;; 8320 esac 8321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 8322 $as_echo "$ac_try_echo"; } >&5 8323 (eval "$LEX conftest.l") 2>&5 8324 ac_status=$? 8325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8326 test $ac_status = 0; }; then 8327 ac_cv_prog_lex_is_flex=yes 8328 else 8329 ac_cv_prog_lex_is_flex=no 8330 fi 8331 8332 fi 8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_is_flex" >&5 8334 $as_echo "$ac_cv_prog_lex_is_flex" >&6; } 8335 LEX_IS_FLEX=`test "$ac_cv_prog_lex_is_flex" = yes && echo true || echo false` 8336 8337 cat >conftest.l <<_ACEOF 8338 %% 8339 a { ECHO; } 8340 b { REJECT; } 8341 c { yymore (); } 8342 d { yyless (1); } 8343 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 8344 yyless ((input () != 0)); } 8345 f { unput (yytext[0]); } 8346 . { BEGIN INITIAL; } 8347 %% 8348 #ifdef YYTEXT_POINTER 8349 extern char *yytext; 8350 #endif 8351 int 8352 main (void) 8353 { 8354 return ! yylex () + ! yywrap (); 8355 } 8356 _ACEOF 8357 { { ac_try="$LEX conftest.l" 8358 case "(($ac_try" in 8359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8360 *) ac_try_echo=$ac_try;; 8361 esac 8362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 8363 $as_echo "$ac_try_echo"; } >&5 8364 (eval "$LEX conftest.l") 2>&5 8365 ac_status=$? 8366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8367 test $ac_status = 0; } 8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 8369 $as_echo_n "checking lex output file root... " >&6; } 8370 if ${ac_cv_prog_lex_root+:} false; then : 8371 $as_echo_n "(cached) " >&6 8372 else 8373 8374 if test -f lex.yy.c; then 8375 ac_cv_prog_lex_root=lex.yy 8376 elif test -f lexyy.c; then 8377 ac_cv_prog_lex_root=lexyy 8378 else 8379 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 8380 fi 8381 fi 8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 8383 $as_echo "$ac_cv_prog_lex_root" >&6; } 8384 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 8385 8386 if test -z "${LEXLIB+set}"; then 8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 8388 $as_echo_n "checking lex library... " >&6; } 8389 if ${ac_cv_lib_lex+:} false; then : 8390 $as_echo_n "(cached) " >&6 8391 else 8392 8393 ac_save_LIBS=$LIBS 8394 ac_cv_lib_lex='none needed' 8395 for ac_lib in '' -lfl -ll; do 8396 LIBS="$ac_lib $ac_save_LIBS" 8397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8398 /* end confdefs.h. */ 8399 `cat $LEX_OUTPUT_ROOT.c` 8400 _ACEOF 8401 if ac_fn_c_try_link "$LINENO"; then : 8402 ac_cv_lib_lex=$ac_lib 8403 fi 8404 rm -f core conftest.err conftest.$ac_objext \ 8405 conftest$ac_exeext conftest.$ac_ext 8406 test "$ac_cv_lib_lex" != 'none needed' && break 8407 done 8408 LIBS=$ac_save_LIBS 8409 8410 fi 8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 8412 $as_echo "$ac_cv_lib_lex" >&6; } 8413 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 8414 fi 8415 8416 8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 8418 $as_echo_n "checking whether yytext is a pointer... " >&6; } 8419 if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 8420 $as_echo_n "(cached) " >&6 8421 else 8422 # POSIX says lex can declare yytext either as a pointer or an array; the 8423 # default is implementation-dependent. Figure out which it is, since 8424 # not all implementations provide the %pointer and %array declarations. 8425 ac_cv_prog_lex_yytext_pointer=no 8426 ac_save_LIBS=$LIBS 8427 LIBS="$LEXLIB $ac_save_LIBS" 8428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8429 /* end confdefs.h. */ 8430 8431 #define YYTEXT_POINTER 1 8432 `cat $LEX_OUTPUT_ROOT.c` 8433 _ACEOF 8434 if ac_fn_c_try_link "$LINENO"; then : 8435 ac_cv_prog_lex_yytext_pointer=yes 8436 fi 8437 rm -f core conftest.err conftest.$ac_objext \ 8438 conftest$ac_exeext conftest.$ac_ext 8439 LIBS=$ac_save_LIBS 8440 8441 fi 8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 8443 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 8444 if test $ac_cv_prog_lex_yytext_pointer = yes; then 8445 8446 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 8447 8448 fi 8449 rm -f conftest.l $LEX_OUTPUT_ROOT.c 8450 8451 fi 8452 $LEX_IS_FLEX || as_fn_error $? "Flex is required" "$LINENO" 5 8453 for ac_prog in 'bison -y' byacc 8454 do 8455 # Extract the first word of "$ac_prog", so it can be a program name with args. 8456 set dummy $ac_prog; ac_word=$2 8457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8458 $as_echo_n "checking for $ac_word... " >&6; } 8459 if ${ac_cv_prog_YACC+:} false; then : 8460 $as_echo_n "(cached) " >&6 8461 else 8462 if test -n "$YACC"; then 8463 ac_cv_prog_YACC="$YACC" # Let the user override the test. 8464 else 8465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8466 for as_dir in $PATH 8467 do 8468 IFS=$as_save_IFS 8469 test -z "$as_dir" && as_dir=. 8470 for ac_exec_ext in '' $ac_executable_extensions; do 8471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8472 ac_cv_prog_YACC="$ac_prog" 8473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8474 break 2 8475 fi 8476 done 8477 done 8478 IFS=$as_save_IFS 8479 8480 fi 8481 fi 8482 YACC=$ac_cv_prog_YACC 8483 if test -n "$YACC"; then 8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 8485 $as_echo "$YACC" >&6; } 8486 else 8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8488 $as_echo "no" >&6; } 8489 fi 8490 8491 8492 test -n "$YACC" && break 8493 done 8494 test -n "$YACC" || YACC="yacc" 8495 8496 if test -n "$ac_tool_prefix"; then 8497 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8498 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8500 $as_echo_n "checking for $ac_word... " >&6; } 8501 if ${ac_cv_prog_RANLIB+:} false; then : 8502 $as_echo_n "(cached) " >&6 8503 else 8504 if test -n "$RANLIB"; then 8505 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8506 else 8507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8508 for as_dir in $PATH 8509 do 8510 IFS=$as_save_IFS 8511 test -z "$as_dir" && as_dir=. 8512 for ac_exec_ext in '' $ac_executable_extensions; do 8513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8514 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8516 break 2 8517 fi 8518 done 8519 done 8520 IFS=$as_save_IFS 8521 8522 fi 8523 fi 8524 RANLIB=$ac_cv_prog_RANLIB 8525 if test -n "$RANLIB"; then 8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8527 $as_echo "$RANLIB" >&6; } 8528 else 8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8530 $as_echo "no" >&6; } 8531 fi 8532 8533 8534 fi 8535 if test -z "$ac_cv_prog_RANLIB"; then 8536 ac_ct_RANLIB=$RANLIB 8537 # Extract the first word of "ranlib", so it can be a program name with args. 8538 set dummy ranlib; ac_word=$2 8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8540 $as_echo_n "checking for $ac_word... " >&6; } 8541 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 8542 $as_echo_n "(cached) " >&6 8543 else 8544 if test -n "$ac_ct_RANLIB"; then 8545 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8546 else 8547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8548 for as_dir in $PATH 8549 do 8550 IFS=$as_save_IFS 8551 test -z "$as_dir" && as_dir=. 8552 for ac_exec_ext in '' $ac_executable_extensions; do 8553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8554 ac_cv_prog_ac_ct_RANLIB="ranlib" 8555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8556 break 2 8557 fi 8558 done 8559 done 8560 IFS=$as_save_IFS 8561 8562 fi 8563 fi 8564 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8565 if test -n "$ac_ct_RANLIB"; then 8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8567 $as_echo "$ac_ct_RANLIB" >&6; } 8568 else 8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8570 $as_echo "no" >&6; } 8571 fi 8572 8573 if test "x$ac_ct_RANLIB" = x; then 8574 RANLIB=":" 8575 else 8576 case $cross_compiling:$ac_tool_warned in 8577 yes:) 8578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8580 ac_tool_warned=yes ;; 8581 esac 8582 RANLIB=$ac_ct_RANLIB 8583 fi 8584 else 8585 RANLIB="$ac_cv_prog_RANLIB" 8586 fi 8587 8588 8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU M4 that supports accurate traces" >&5 8590 $as_echo_n "checking for GNU M4 that supports accurate traces... " >&6; } 8591 if ${ac_cv_path_M4+:} false; then : 8592 $as_echo_n "(cached) " >&6 8593 else 8594 rm -f conftest.m4f 8595 ac_had_posixly_correct=${POSIXLY_CORRECT:+yes} 8596 { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} 8597 if test -z "$M4"; then 8598 ac_path_M4_found=false 8599 # Loop through the user's path and test for each of PROGNAME-LIST 8600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8601 for as_dir in $PATH 8602 do 8603 IFS=$as_save_IFS 8604 test -z "$as_dir" && as_dir=. 8605 for ac_prog in m4 gm4 gnum4; do 8606 for ac_exec_ext in '' $ac_executable_extensions; do 8607 ac_path_M4="$as_dir/$ac_prog$ac_exec_ext" 8608 as_fn_executable_p "$ac_path_M4" || continue 8609 # Root out GNU M4 1.4.5, as well as non-GNU m4 that ignore -t, -F. 8610 # Root out GNU M4 1.4.15 with buggy false negative replacement strstr. 8611 # Root out Glibc 2.9 - 2.12 and GNU M4 1.4.11 - 1.4.15 with buggy 8612 # false positive strstr. 8613 ac_snippet=change'quote(<,>)in''dir(<if''def>,mac,bug)' 8614 ac_snippet=${ac_snippet}pat'subst(a,\(b\)\|\(a\),\1)d'nl 8615 ac_snippet=${ac_snippet}${as_nl}if'else(in''dex(..wi.d.,.d.),-1,bug)' 8616 ac_snippet=${ac_snippet}${as_nl}if'else(in''dex(;:11-:12-:12-:12-:12-:12-:12-:12-:12.:12.:12.:12.:12.:12.:12.:12.:12-,:12-:12-:12-:12-:12-:12-:12-:12-),-1,,strstr-bug2)' 8617 test -z "`$ac_path_M4 -F conftest.m4f </dev/null 2>&1`" \ 8618 && test -z "`$as_echo $ac_snippet | $ac_path_M4 --trace=mac 2>&1`" \ 8619 && test -f conftest.m4f \ 8620 && ac_cv_path_M4=$ac_path_M4 ac_path_M4_found=: 8621 rm -f conftest.m4f 8622 $ac_path_M4_found && break 3 8623 done 8624 done 8625 done 8626 IFS=$as_save_IFS 8627 if test -z "$ac_cv_path_M4"; then 8628 as_fn_error $? "no acceptable m4 could be found in \$PATH. 8629 GNU M4 1.4.6 or later is required; 1.4.16 or newer is recommended. 8630 GNU M4 1.4.15 uses a buggy replacement strstr on some systems. 8631 Glibc 2.9 - 2.12 and GNU M4 1.4.11 - 1.4.15 have another strstr bug." "$LINENO" 5 8632 fi 8633 else 8634 ac_cv_path_M4=$M4 8635 fi 8636 8637 fi 8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_M4" >&5 8639 $as_echo "$ac_cv_path_M4" >&6; } 8640 M4=$ac_cv_path_M4 8641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_cv_path_M4 accepts --gnu" >&5 8642 $as_echo_n "checking whether $ac_cv_path_M4 accepts --gnu... " >&6; } 8643 if ${ac_cv_prog_gnu_m4_gnu+:} false; then : 8644 $as_echo_n "(cached) " >&6 8645 else 8646 case `$M4 --help < /dev/null 2>&1` in 8647 *--gnu*) ac_cv_prog_gnu_m4_gnu=yes ;; 8648 *) ac_cv_prog_gnu_m4_gnu=no ;; 8649 esac 8650 fi 8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gnu_m4_gnu" >&5 8652 $as_echo "$ac_cv_prog_gnu_m4_gnu" >&6; } 8653 if test "$ac_cv_prog_gnu_m4_gnu" = yes; then 8654 M4_GNU=--gnu 8655 else 8656 M4_GNU= 8657 fi 8658 8659 if test x$ac_had_posixly_correct = xyes; then 8660 POSIXLY_CORRECT=: 8661 if test $ac_cv_prog_gnu_m4_gnu = no; then 8662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the version of M4 that was found does not support -g" >&5 8663 $as_echo "$as_me: WARNING: the version of M4 that was found does not support -g" >&2;} 8664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using it with POSIXLY_CORRECT set may cause problems" >&5 8665 $as_echo "$as_me: WARNING: using it with POSIXLY_CORRECT set may cause problems" >&2;} 8666 fi 8667 fi 8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how m4 supports trace files" >&5 8669 $as_echo_n "checking how m4 supports trace files... " >&6; } 8670 if ${ac_cv_prog_gnu_m4_debugfile+:} false; then : 8671 $as_echo_n "(cached) " >&6 8672 else 8673 case `$M4 --help < /dev/null 2>&1` in 8674 *debugfile*) ac_cv_prog_gnu_m4_debugfile=--debugfile ;; 8675 *) ac_cv_prog_gnu_m4_debugfile=--error-output ;; 8676 esac 8677 fi 8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gnu_m4_debugfile" >&5 8679 $as_echo "$ac_cv_prog_gnu_m4_debugfile" >&6; } 8680 M4_DEBUGFILE=$ac_cv_prog_gnu_m4_debugfile 8681 8682 8683 8684 cat >>confdefs.h <<_ACEOF 8685 #define M4 "$M4" 8686 _ACEOF 8687 8688 8689 cat >>confdefs.h <<_ACEOF 8690 #define M4_GNU_OPTION "$M4_GNU" 8691 _ACEOF 8692 8693 # Extract the first word of "perl", so it can be a program name with args. 8694 set dummy perl; ac_word=$2 8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8696 $as_echo_n "checking for $ac_word... " >&6; } 8697 if ${ac_cv_path_PERL+:} false; then : 8698 $as_echo_n "(cached) " >&6 8699 else 8700 case $PERL in 8701 [\\/]* | ?:[\\/]*) 8702 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 8703 ;; 8704 *) 8705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8706 for as_dir in $PATH 8707 do 8708 IFS=$as_save_IFS 8709 test -z "$as_dir" && as_dir=. 8710 for ac_exec_ext in '' $ac_executable_extensions; do 8711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8712 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 8713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8714 break 2 8715 fi 8716 done 8717 done 8718 IFS=$as_save_IFS 8719 8720 ;; 8721 esac 8722 fi 8723 PERL=$ac_cv_path_PERL 8724 if test -n "$PERL"; then 8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 8726 $as_echo "$PERL" >&6; } 8727 else 8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8729 $as_echo "no" >&6; } 8730 fi 8731 8732 8733 if test -z "$PERL"; then 8734 as_fn_error $? "perl not found" "$LINENO" 5 8735 fi 8736 8737 HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"} 8738 8739 # Extract the first word of "xsltproc", so it can be a program name with args. 8740 set dummy xsltproc; ac_word=$2 8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8742 $as_echo_n "checking for $ac_word... " >&6; } 8743 if ${ac_cv_path_XSLTPROC+:} false; then : 8744 $as_echo_n "(cached) " >&6 8745 else 8746 case $XSLTPROC in 8747 [\\/]* | ?:[\\/]*) 8748 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 8749 ;; 8750 *) 8751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8752 for as_dir in $PATH 8753 do 8754 IFS=$as_save_IFS 8755 test -z "$as_dir" && as_dir=. 8756 for ac_exec_ext in '' $ac_executable_extensions; do 8757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8758 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 8759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8760 break 2 8761 fi 8762 done 8763 done 8764 IFS=$as_save_IFS 8765 8766 ;; 8767 esac 8768 fi 8769 XSLTPROC=$ac_cv_path_XSLTPROC 8770 if test -n "$XSLTPROC"; then 8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 8772 $as_echo "$XSLTPROC" >&6; } 8773 else 8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8775 $as_echo "no" >&6; } 8776 fi 8777 8778 8779 8780 8781 # Checks for header files. 8782 8783 8784 8785 for ac_header in $ac_header_list 8786 do : 8787 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8788 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8789 " 8790 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8791 cat >>confdefs.h <<_ACEOF 8792 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8793 _ACEOF 8794 8795 fi 8796 8797 done 8798 8799 8800 8801 8802 8803 # Checks for compiler characteristics. 8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 8805 $as_echo_n "checking for inline... " >&6; } 8806 if ${ac_cv_c_inline+:} false; then : 8807 $as_echo_n "(cached) " >&6 8808 else 8809 ac_cv_c_inline=no 8810 for ac_kw in inline __inline__ __inline; do 8811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8812 /* end confdefs.h. */ 8813 #ifndef __cplusplus 8814 typedef int foo_t; 8815 static $ac_kw foo_t static_foo () {return 0; } 8816 $ac_kw foo_t foo () {return 0; } 8817 #endif 8818 8819 _ACEOF 8820 if ac_fn_c_try_compile "$LINENO"; then : 8821 ac_cv_c_inline=$ac_kw 8822 fi 8823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8824 test "$ac_cv_c_inline" != no && break 8825 done 8826 8827 fi 8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 8829 $as_echo "$ac_cv_c_inline" >&6; } 8830 8831 case $ac_cv_c_inline in 8832 inline | yes) ;; 8833 *) 8834 case $ac_cv_c_inline in 8835 no) ac_val=;; 8836 *) ac_val=$ac_cv_c_inline;; 8837 esac 8838 cat >>confdefs.h <<_ACEOF 8839 #ifndef __cplusplus 8840 #define inline $ac_val 8841 #endif 8842 _ACEOF 8843 ;; 8844 esac 8845 8846 8847 # Gnulib (later checks). Putting them here rather than right after 8848 # gl_EARLY avoids some redundant checks. 8849 8850 8851 8852 8853 8854 LIBC_FATAL_STDERR_=1 8855 export LIBC_FATAL_STDERR_ 8856 8857 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 8858 if test "x$ac_cv_type_size_t" = xyes; then : 8859 8860 else 8861 8862 cat >>confdefs.h <<_ACEOF 8863 #define size_t unsigned int 8864 _ACEOF 8865 8866 fi 8867 8868 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 8869 # for constant arguments. Useless! 8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 8871 $as_echo_n "checking for working alloca.h... " >&6; } 8872 if ${ac_cv_working_alloca_h+:} false; then : 8873 $as_echo_n "(cached) " >&6 8874 else 8875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8876 /* end confdefs.h. */ 8877 #include <alloca.h> 8878 int 8879 main () 8880 { 8881 char *p = (char *) alloca (2 * sizeof (int)); 8882 if (p) return 0; 8883 ; 8884 return 0; 8885 } 8886 _ACEOF 8887 if ac_fn_c_try_link "$LINENO"; then : 8888 ac_cv_working_alloca_h=yes 8889 else 8890 ac_cv_working_alloca_h=no 8891 fi 8892 rm -f core conftest.err conftest.$ac_objext \ 8893 conftest$ac_exeext conftest.$ac_ext 8894 fi 8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 8896 $as_echo "$ac_cv_working_alloca_h" >&6; } 8897 if test $ac_cv_working_alloca_h = yes; then 8898 8899 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 8900 8901 fi 8902 8903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 8904 $as_echo_n "checking for alloca... " >&6; } 8905 if ${ac_cv_func_alloca_works+:} false; then : 8906 $as_echo_n "(cached) " >&6 8907 else 8908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8909 /* end confdefs.h. */ 8910 #ifdef __GNUC__ 8911 # define alloca __builtin_alloca 8912 #else 8913 # ifdef _MSC_VER 8914 # include <malloc.h> 8915 # define alloca _alloca 8916 # else 8917 # ifdef HAVE_ALLOCA_H 8918 # include <alloca.h> 8919 # else 8920 # ifdef _AIX 8921 #pragma alloca 8922 # else 8923 # ifndef alloca /* predefined by HP cc +Olibcalls */ 8924 void *alloca (size_t); 8925 # endif 8926 # endif 8927 # endif 8928 # endif 8929 #endif 8930 8931 int 8932 main () 8933 { 8934 char *p = (char *) alloca (1); 8935 if (p) return 0; 8936 ; 8937 return 0; 8938 } 8939 _ACEOF 8940 if ac_fn_c_try_link "$LINENO"; then : 8941 ac_cv_func_alloca_works=yes 8942 else 8943 ac_cv_func_alloca_works=no 8944 fi 8945 rm -f core conftest.err conftest.$ac_objext \ 8946 conftest$ac_exeext conftest.$ac_ext 8947 fi 8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 8949 $as_echo "$ac_cv_func_alloca_works" >&6; } 8950 8951 if test $ac_cv_func_alloca_works = yes; then 8952 8953 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 8954 8955 else 8956 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 8957 # that cause trouble. Some versions do not even contain alloca or 8958 # contain a buggy version. If you still want to use their alloca, 8959 # use ar to extract alloca.o from them instead of compiling alloca.c. 8960 8961 8962 8963 8964 8965 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 8966 8967 $as_echo "#define C_ALLOCA 1" >>confdefs.h 8968 8969 8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 8971 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 8972 if ${ac_cv_os_cray+:} false; then : 8973 $as_echo_n "(cached) " >&6 8974 else 8975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8976 /* end confdefs.h. */ 8977 #if defined CRAY && ! defined CRAY2 8978 webecray 8979 #else 8980 wenotbecray 8981 #endif 8982 8983 _ACEOF 8984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8985 $EGREP "webecray" >/dev/null 2>&1; then : 8986 ac_cv_os_cray=yes 8987 else 8988 ac_cv_os_cray=no 8989 fi 8990 rm -f conftest* 8991 8992 fi 8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 8994 $as_echo "$ac_cv_os_cray" >&6; } 8995 if test $ac_cv_os_cray = yes; then 8996 for ac_func in _getb67 GETB67 getb67; do 8997 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8998 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8999 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 9000 9001 cat >>confdefs.h <<_ACEOF 9002 #define CRAY_STACKSEG_END $ac_func 9003 _ACEOF 9004 9005 break 9006 fi 9007 9008 done 9009 fi 9010 9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 9012 $as_echo_n "checking stack direction for C alloca... " >&6; } 9013 if ${ac_cv_c_stack_direction+:} false; then : 9014 $as_echo_n "(cached) " >&6 9015 else 9016 if test "$cross_compiling" = yes; then : 9017 ac_cv_c_stack_direction=0 9018 else 9019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9020 /* end confdefs.h. */ 9021 $ac_includes_default 9022 int 9023 find_stack_direction (int *addr, int depth) 9024 { 9025 int dir, dummy = 0; 9026 if (! addr) 9027 addr = &dummy; 9028 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 9029 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 9030 return dir + dummy; 9031 } 9032 9033 int 9034 main (int argc, char **argv) 9035 { 9036 return find_stack_direction (0, argc + !argv + 20) < 0; 9037 } 9038 _ACEOF 9039 if ac_fn_c_try_run "$LINENO"; then : 9040 ac_cv_c_stack_direction=1 9041 else 9042 ac_cv_c_stack_direction=-1 9043 fi 9044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9045 conftest.$ac_objext conftest.beam conftest.$ac_ext 9046 fi 9047 9048 fi 9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 9050 $as_echo "$ac_cv_c_stack_direction" >&6; } 9051 cat >>confdefs.h <<_ACEOF 9052 #define STACK_DIRECTION $ac_cv_c_stack_direction 9053 _ACEOF 9054 9055 9056 fi 9057 9058 9059 GNULIB__EXIT=0; 9060 GNULIB_ATOLL=0; 9061 GNULIB_CALLOC_POSIX=0; 9062 GNULIB_CANONICALIZE_FILE_NAME=0; 9063 GNULIB_GETLOADAVG=0; 9064 GNULIB_GETSUBOPT=0; 9065 GNULIB_GRANTPT=0; 9066 GNULIB_MALLOC_POSIX=0; 9067 GNULIB_MBTOWC=0; 9068 GNULIB_MKDTEMP=0; 9069 GNULIB_MKOSTEMP=0; 9070 GNULIB_MKOSTEMPS=0; 9071 GNULIB_MKSTEMP=0; 9072 GNULIB_MKSTEMPS=0; 9073 GNULIB_POSIX_OPENPT=0; 9074 GNULIB_PTSNAME=0; 9075 GNULIB_PTSNAME_R=0; 9076 GNULIB_PUTENV=0; 9077 GNULIB_RANDOM=0; 9078 GNULIB_RANDOM_R=0; 9079 GNULIB_REALLOC_POSIX=0; 9080 GNULIB_REALPATH=0; 9081 GNULIB_RPMATCH=0; 9082 GNULIB_SETENV=0; 9083 GNULIB_STRTOD=0; 9084 GNULIB_STRTOLL=0; 9085 GNULIB_STRTOULL=0; 9086 GNULIB_SYSTEM_POSIX=0; 9087 GNULIB_UNLOCKPT=0; 9088 GNULIB_UNSETENV=0; 9089 GNULIB_WCTOMB=0; 9090 HAVE__EXIT=1; 9091 HAVE_ATOLL=1; 9092 HAVE_CANONICALIZE_FILE_NAME=1; 9093 HAVE_DECL_GETLOADAVG=1; 9094 HAVE_GETSUBOPT=1; 9095 HAVE_GRANTPT=1; 9096 HAVE_MKDTEMP=1; 9097 HAVE_MKOSTEMP=1; 9098 HAVE_MKOSTEMPS=1; 9099 HAVE_MKSTEMP=1; 9100 HAVE_MKSTEMPS=1; 9101 HAVE_POSIX_OPENPT=1; 9102 HAVE_PTSNAME=1; 9103 HAVE_PTSNAME_R=1; 9104 HAVE_RANDOM=1; 9105 HAVE_RANDOM_H=1; 9106 HAVE_RANDOM_R=1; 9107 HAVE_REALPATH=1; 9108 HAVE_RPMATCH=1; 9109 HAVE_SETENV=1; 9110 HAVE_DECL_SETENV=1; 9111 HAVE_STRTOD=1; 9112 HAVE_STRTOLL=1; 9113 HAVE_STRTOULL=1; 9114 HAVE_STRUCT_RANDOM_DATA=1; 9115 HAVE_SYS_LOADAVG_H=0; 9116 HAVE_UNLOCKPT=1; 9117 HAVE_DECL_UNSETENV=1; 9118 REPLACE_CALLOC=0; 9119 REPLACE_CANONICALIZE_FILE_NAME=0; 9120 REPLACE_MALLOC=0; 9121 REPLACE_MBTOWC=0; 9122 REPLACE_MKSTEMP=0; 9123 REPLACE_PTSNAME=0; 9124 REPLACE_PTSNAME_R=0; 9125 REPLACE_PUTENV=0; 9126 REPLACE_RANDOM_R=0; 9127 REPLACE_REALLOC=0; 9128 REPLACE_REALPATH=0; 9129 REPLACE_SETENV=0; 9130 REPLACE_STRTOD=0; 9131 REPLACE_UNSETENV=0; 9132 REPLACE_WCTOMB=0; 9133 9134 9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5 9136 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; } 9137 if ${gl_cv_func_malloc_posix+:} false; then : 9138 $as_echo_n "(cached) " >&6 9139 else 9140 9141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9142 /* end confdefs.h. */ 9143 9144 int 9145 main () 9146 { 9147 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ 9148 choke me 9149 #endif 9150 9151 ; 9152 return 0; 9153 } 9154 _ACEOF 9155 if ac_fn_c_try_compile "$LINENO"; then : 9156 gl_cv_func_malloc_posix=yes 9157 else 9158 gl_cv_func_malloc_posix=no 9159 fi 9160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9161 9162 fi 9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5 9164 $as_echo "$gl_cv_func_malloc_posix" >&6; } 9165 9166 9167 GNULIB_CHDIR=0; 9168 GNULIB_CHOWN=0; 9169 GNULIB_CLOSE=0; 9170 GNULIB_DUP=0; 9171 GNULIB_DUP2=0; 9172 GNULIB_DUP3=0; 9173 GNULIB_ENVIRON=0; 9174 GNULIB_EUIDACCESS=0; 9175 GNULIB_FACCESSAT=0; 9176 GNULIB_FCHDIR=0; 9177 GNULIB_FCHOWNAT=0; 9178 GNULIB_FDATASYNC=0; 9179 GNULIB_FSYNC=0; 9180 GNULIB_FTRUNCATE=0; 9181 GNULIB_GETCWD=0; 9182 GNULIB_GETDOMAINNAME=0; 9183 GNULIB_GETDTABLESIZE=0; 9184 GNULIB_GETGROUPS=0; 9185 GNULIB_GETHOSTNAME=0; 9186 GNULIB_GETLOGIN=0; 9187 GNULIB_GETLOGIN_R=0; 9188 GNULIB_GETPAGESIZE=0; 9189 GNULIB_GETUSERSHELL=0; 9190 GNULIB_GROUP_MEMBER=0; 9191 GNULIB_ISATTY=0; 9192 GNULIB_LCHOWN=0; 9193 GNULIB_LINK=0; 9194 GNULIB_LINKAT=0; 9195 GNULIB_LSEEK=0; 9196 GNULIB_PIPE=0; 9197 GNULIB_PIPE2=0; 9198 GNULIB_PREAD=0; 9199 GNULIB_PWRITE=0; 9200 GNULIB_READ=0; 9201 GNULIB_READLINK=0; 9202 GNULIB_READLINKAT=0; 9203 GNULIB_RMDIR=0; 9204 GNULIB_SETHOSTNAME=0; 9205 GNULIB_SLEEP=0; 9206 GNULIB_SYMLINK=0; 9207 GNULIB_SYMLINKAT=0; 9208 GNULIB_TTYNAME_R=0; 9209 GNULIB_UNISTD_H_NONBLOCKING=0; 9210 GNULIB_UNISTD_H_SIGPIPE=0; 9211 GNULIB_UNLINK=0; 9212 GNULIB_UNLINKAT=0; 9213 GNULIB_USLEEP=0; 9214 GNULIB_WRITE=0; 9215 HAVE_CHOWN=1; 9216 HAVE_DUP2=1; 9217 HAVE_DUP3=1; 9218 HAVE_EUIDACCESS=1; 9219 HAVE_FACCESSAT=1; 9220 HAVE_FCHDIR=1; 9221 HAVE_FCHOWNAT=1; 9222 HAVE_FDATASYNC=1; 9223 HAVE_FSYNC=1; 9224 HAVE_FTRUNCATE=1; 9225 HAVE_GETDTABLESIZE=1; 9226 HAVE_GETGROUPS=1; 9227 HAVE_GETHOSTNAME=1; 9228 HAVE_GETLOGIN=1; 9229 HAVE_GETPAGESIZE=1; 9230 HAVE_GROUP_MEMBER=1; 9231 HAVE_LCHOWN=1; 9232 HAVE_LINK=1; 9233 HAVE_LINKAT=1; 9234 HAVE_PIPE=1; 9235 HAVE_PIPE2=1; 9236 HAVE_PREAD=1; 9237 HAVE_PWRITE=1; 9238 HAVE_READLINK=1; 9239 HAVE_READLINKAT=1; 9240 HAVE_SETHOSTNAME=1; 9241 HAVE_SLEEP=1; 9242 HAVE_SYMLINK=1; 9243 HAVE_SYMLINKAT=1; 9244 HAVE_UNLINKAT=1; 9245 HAVE_USLEEP=1; 9246 HAVE_DECL_ENVIRON=1; 9247 HAVE_DECL_FCHDIR=1; 9248 HAVE_DECL_FDATASYNC=1; 9249 HAVE_DECL_GETDOMAINNAME=1; 9250 HAVE_DECL_GETLOGIN_R=1; 9251 HAVE_DECL_GETPAGESIZE=1; 9252 HAVE_DECL_GETUSERSHELL=1; 9253 HAVE_DECL_SETHOSTNAME=1; 9254 HAVE_DECL_TTYNAME_R=1; 9255 HAVE_OS_H=0; 9256 HAVE_SYS_PARAM_H=0; 9257 REPLACE_CHOWN=0; 9258 REPLACE_CLOSE=0; 9259 REPLACE_DUP=0; 9260 REPLACE_DUP2=0; 9261 REPLACE_FCHOWNAT=0; 9262 REPLACE_FTRUNCATE=0; 9263 REPLACE_GETCWD=0; 9264 REPLACE_GETDOMAINNAME=0; 9265 REPLACE_GETLOGIN_R=0; 9266 REPLACE_GETGROUPS=0; 9267 REPLACE_GETPAGESIZE=0; 9268 REPLACE_ISATTY=0; 9269 REPLACE_LCHOWN=0; 9270 REPLACE_LINK=0; 9271 REPLACE_LINKAT=0; 9272 REPLACE_LSEEK=0; 9273 REPLACE_PREAD=0; 9274 REPLACE_PWRITE=0; 9275 REPLACE_READ=0; 9276 REPLACE_READLINK=0; 9277 REPLACE_RMDIR=0; 9278 REPLACE_SLEEP=0; 9279 REPLACE_SYMLINK=0; 9280 REPLACE_TTYNAME_R=0; 9281 REPLACE_UNLINK=0; 9282 REPLACE_UNLINKAT=0; 9283 REPLACE_USLEEP=0; 9284 REPLACE_WRITE=0; 9285 UNISTD_H_HAVE_WINSOCK2_H=0; 9286 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0; 9287 9288 9289 9290 9291 9292 for ac_func in $ac_func_list 9293 do : 9294 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9295 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 9296 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 9297 cat >>confdefs.h <<_ACEOF 9298 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9299 _ACEOF 9300 9301 fi 9302 done 9303 9304 9305 9306 9307 9308 if test $ac_cv_func__set_invalid_parameter_handler = yes; then 9309 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1 9310 9311 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h 9312 9313 else 9314 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0 9315 fi 9316 9317 9318 9319 9320 9321 9322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5 9323 $as_echo_n "checking whether // is distinct from /... " >&6; } 9324 if ${gl_cv_double_slash_root+:} false; then : 9325 $as_echo_n "(cached) " >&6 9326 else 9327 if test x"$cross_compiling" = xyes ; then 9328 # When cross-compiling, there is no way to tell whether // is special 9329 # short of a list of hosts. However, the only known hosts to date 9330 # that have a distinct // are Apollo DomainOS (too old to port to), 9331 # Cygwin, and z/OS. If anyone knows of another system for which // has 9332 # special semantics and is distinct from /, please report it to 9333 # <bug-gnulib (at] gnu.org>. 9334 case $host in 9335 *-cygwin | i370-ibm-openedition) 9336 gl_cv_double_slash_root=yes ;; 9337 *) 9338 # Be optimistic and assume that / and // are the same when we 9339 # don't know. 9340 gl_cv_double_slash_root='unknown, assuming no' ;; 9341 esac 9342 else 9343 set x `ls -di / // 2>/dev/null` 9344 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then 9345 gl_cv_double_slash_root=no 9346 else 9347 gl_cv_double_slash_root=yes 9348 fi 9349 fi 9350 fi 9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5 9352 $as_echo "$gl_cv_double_slash_root" >&6; } 9353 if test "$gl_cv_double_slash_root" = yes; then 9354 9355 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h 9356 9357 fi 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5 9373 $as_echo_n "checking if environ is properly declared... " >&6; } 9374 if ${gt_cv_var_environ_declaration+:} false; then : 9375 $as_echo_n "(cached) " >&6 9376 else 9377 9378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9379 /* end confdefs.h. */ 9380 #if HAVE_UNISTD_H 9381 #include <unistd.h> 9382 #endif 9383 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */ 9384 #include <stdlib.h> 9385 9386 extern struct { int foo; } environ; 9387 int 9388 main () 9389 { 9390 environ.foo = 1; 9391 ; 9392 return 0; 9393 } 9394 _ACEOF 9395 if ac_fn_c_try_compile "$LINENO"; then : 9396 gt_cv_var_environ_declaration=no 9397 else 9398 gt_cv_var_environ_declaration=yes 9399 fi 9400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9401 fi 9402 9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5 9404 $as_echo "$gt_cv_var_environ_declaration" >&6; } 9405 if test $gt_cv_var_environ_declaration = yes; then 9406 9407 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h 9408 9409 fi 9410 9411 9412 if test $gt_cv_var_environ_declaration != yes; then 9413 HAVE_DECL_ENVIRON=0 9414 fi 9415 9416 9417 9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5 9419 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; } 9420 if ${gl_cv_have_include_next+:} false; then : 9421 $as_echo_n "(cached) " >&6 9422 else 9423 rm -rf conftestd1a conftestd1b conftestd2 9424 mkdir conftestd1a conftestd1b conftestd2 9425 cat <<EOF > conftestd1a/conftest.h 9426 #define DEFINED_IN_CONFTESTD1 9427 #include_next <conftest.h> 9428 #ifdef DEFINED_IN_CONFTESTD2 9429 int foo; 9430 #else 9431 #error "include_next doesn't work" 9432 #endif 9433 EOF 9434 cat <<EOF > conftestd1b/conftest.h 9435 #define DEFINED_IN_CONFTESTD1 9436 #include <stdio.h> 9437 #include_next <conftest.h> 9438 #ifdef DEFINED_IN_CONFTESTD2 9439 int foo; 9440 #else 9441 #error "include_next doesn't work" 9442 #endif 9443 EOF 9444 cat <<EOF > conftestd2/conftest.h 9445 #ifndef DEFINED_IN_CONFTESTD1 9446 #error "include_next test doesn't work" 9447 #endif 9448 #define DEFINED_IN_CONFTESTD2 9449 EOF 9450 gl_save_CPPFLAGS="$CPPFLAGS" 9451 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2" 9452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9453 /* end confdefs.h. */ 9454 #include <conftest.h> 9455 _ACEOF 9456 if ac_fn_c_try_compile "$LINENO"; then : 9457 gl_cv_have_include_next=yes 9458 else 9459 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2" 9460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9461 /* end confdefs.h. */ 9462 #include <conftest.h> 9463 _ACEOF 9464 if ac_fn_c_try_compile "$LINENO"; then : 9465 gl_cv_have_include_next=buggy 9466 else 9467 gl_cv_have_include_next=no 9468 fi 9469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9470 9471 fi 9472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9473 CPPFLAGS="$gl_save_CPPFLAGS" 9474 rm -rf conftestd1a conftestd1b conftestd2 9475 9476 fi 9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5 9478 $as_echo "$gl_cv_have_include_next" >&6; } 9479 PRAGMA_SYSTEM_HEADER= 9480 if test $gl_cv_have_include_next = yes; then 9481 INCLUDE_NEXT=include_next 9482 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next 9483 if test -n "$GCC"; then 9484 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header' 9485 fi 9486 else 9487 if test $gl_cv_have_include_next = buggy; then 9488 INCLUDE_NEXT=include 9489 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next 9490 else 9491 INCLUDE_NEXT=include 9492 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include 9493 fi 9494 fi 9495 9496 9497 9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5 9499 $as_echo_n "checking whether system header files limit the line length... " >&6; } 9500 if ${gl_cv_pragma_columns+:} false; then : 9501 $as_echo_n "(cached) " >&6 9502 else 9503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9504 /* end confdefs.h. */ 9505 9506 #ifdef __TANDEM 9507 choke me 9508 #endif 9509 9510 _ACEOF 9511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9512 $EGREP "choke me" >/dev/null 2>&1; then : 9513 gl_cv_pragma_columns=yes 9514 else 9515 gl_cv_pragma_columns=no 9516 fi 9517 rm -f conftest* 9518 9519 9520 fi 9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5 9522 $as_echo "$gl_cv_pragma_columns" >&6; } 9523 if test $gl_cv_pragma_columns = yes; then 9524 PRAGMA_COLUMNS="#pragma COLUMNS 10000" 9525 else 9526 PRAGMA_COLUMNS= 9527 fi 9528 9529 9530 9531 9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5 9533 $as_echo_n "checking for complete errno.h... " >&6; } 9534 if ${gl_cv_header_errno_h_complete+:} false; then : 9535 $as_echo_n "(cached) " >&6 9536 else 9537 9538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9539 /* end confdefs.h. */ 9540 9541 #include <errno.h> 9542 #if !defined ETXTBSY 9543 booboo 9544 #endif 9545 #if !defined ENOMSG 9546 booboo 9547 #endif 9548 #if !defined EIDRM 9549 booboo 9550 #endif 9551 #if !defined ENOLINK 9552 booboo 9553 #endif 9554 #if !defined EPROTO 9555 booboo 9556 #endif 9557 #if !defined EMULTIHOP 9558 booboo 9559 #endif 9560 #if !defined EBADMSG 9561 booboo 9562 #endif 9563 #if !defined EOVERFLOW 9564 booboo 9565 #endif 9566 #if !defined ENOTSUP 9567 booboo 9568 #endif 9569 #if !defined ENETRESET 9570 booboo 9571 #endif 9572 #if !defined ECONNABORTED 9573 booboo 9574 #endif 9575 #if !defined ESTALE 9576 booboo 9577 #endif 9578 #if !defined EDQUOT 9579 booboo 9580 #endif 9581 #if !defined ECANCELED 9582 booboo 9583 #endif 9584 #if !defined EOWNERDEAD 9585 booboo 9586 #endif 9587 #if !defined ENOTRECOVERABLE 9588 booboo 9589 #endif 9590 #if !defined EILSEQ 9591 booboo 9592 #endif 9593 9594 _ACEOF 9595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9596 $EGREP "booboo" >/dev/null 2>&1; then : 9597 gl_cv_header_errno_h_complete=no 9598 else 9599 gl_cv_header_errno_h_complete=yes 9600 fi 9601 rm -f conftest* 9602 9603 9604 fi 9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5 9606 $as_echo "$gl_cv_header_errno_h_complete" >&6; } 9607 if test $gl_cv_header_errno_h_complete = yes; then 9608 ERRNO_H='' 9609 else 9610 9611 9612 9613 9614 9615 9616 9617 9618 if test $gl_cv_have_include_next = yes; then 9619 gl_cv_next_errno_h='<'errno.h'>' 9620 else 9621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5 9622 $as_echo_n "checking absolute name of <errno.h>... " >&6; } 9623 if ${gl_cv_next_errno_h+:} false; then : 9624 $as_echo_n "(cached) " >&6 9625 else 9626 9627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9628 /* end confdefs.h. */ 9629 #include <errno.h> 9630 9631 _ACEOF 9632 case "$host_os" in 9633 aix*) gl_absname_cpp="$ac_cpp -C" ;; 9634 *) gl_absname_cpp="$ac_cpp" ;; 9635 esac 9636 9637 case "$host_os" in 9638 mingw*) 9639 gl_dirsep_regex='[/\\]' 9640 ;; 9641 *) 9642 gl_dirsep_regex='\/' 9643 ;; 9644 esac 9645 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 9646 9647 gl_header_literal_regex=`echo 'errno.h' \ 9648 | sed -e "$gl_make_literal_regex_sed"` 9649 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 9650 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 9651 s|^/[^/]|//&| 9652 p 9653 q 9654 }' 9655 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 9656 sed -n "$gl_absolute_header_sed"`'"' 9657 9658 9659 fi 9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5 9661 $as_echo "$gl_cv_next_errno_h" >&6; } 9662 fi 9663 NEXT_ERRNO_H=$gl_cv_next_errno_h 9664 9665 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 9666 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 9667 gl_next_as_first_directive='<'errno.h'>' 9668 else 9669 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 9670 gl_next_as_first_directive=$gl_cv_next_errno_h 9671 fi 9672 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive 9673 9674 9675 9676 9677 ERRNO_H='errno.h' 9678 fi 9679 9680 if test -n "$ERRNO_H"; then 9681 GL_GENERATE_ERRNO_H_TRUE= 9682 GL_GENERATE_ERRNO_H_FALSE='#' 9683 else 9684 GL_GENERATE_ERRNO_H_TRUE='#' 9685 GL_GENERATE_ERRNO_H_FALSE= 9686 fi 9687 9688 9689 if test -n "$ERRNO_H"; then 9690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5 9691 $as_echo_n "checking for EMULTIHOP value... " >&6; } 9692 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then : 9693 $as_echo_n "(cached) " >&6 9694 else 9695 9696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9697 /* end confdefs.h. */ 9698 9699 #include <errno.h> 9700 #ifdef EMULTIHOP 9701 yes 9702 #endif 9703 9704 _ACEOF 9705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9706 $EGREP "yes" >/dev/null 2>&1; then : 9707 gl_cv_header_errno_h_EMULTIHOP=yes 9708 else 9709 gl_cv_header_errno_h_EMULTIHOP=no 9710 fi 9711 rm -f conftest* 9712 9713 if test $gl_cv_header_errno_h_EMULTIHOP = no; then 9714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9715 /* end confdefs.h. */ 9716 9717 #define _XOPEN_SOURCE_EXTENDED 1 9718 #include <errno.h> 9719 #ifdef EMULTIHOP 9720 yes 9721 #endif 9722 9723 _ACEOF 9724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9725 $EGREP "yes" >/dev/null 2>&1; then : 9726 gl_cv_header_errno_h_EMULTIHOP=hidden 9727 fi 9728 rm -f conftest* 9729 9730 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then 9731 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" " 9732 #define _XOPEN_SOURCE_EXTENDED 1 9733 #include <errno.h> 9734 /* The following two lines are a workaround against an autoconf-2.52 bug. */ 9735 #include <stdio.h> 9736 #include <stdlib.h> 9737 "; then : 9738 9739 fi 9740 9741 fi 9742 fi 9743 9744 fi 9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5 9746 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; } 9747 case $gl_cv_header_errno_h_EMULTIHOP in 9748 yes | no) 9749 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE= 9750 ;; 9751 *) 9752 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP" 9753 ;; 9754 esac 9755 9756 9757 fi 9758 9759 9760 if test -n "$ERRNO_H"; then 9761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5 9762 $as_echo_n "checking for ENOLINK value... " >&6; } 9763 if ${gl_cv_header_errno_h_ENOLINK+:} false; then : 9764 $as_echo_n "(cached) " >&6 9765 else 9766 9767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9768 /* end confdefs.h. */ 9769 9770 #include <errno.h> 9771 #ifdef ENOLINK 9772 yes 9773 #endif 9774 9775 _ACEOF 9776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9777 $EGREP "yes" >/dev/null 2>&1; then : 9778 gl_cv_header_errno_h_ENOLINK=yes 9779 else 9780 gl_cv_header_errno_h_ENOLINK=no 9781 fi 9782 rm -f conftest* 9783 9784 if test $gl_cv_header_errno_h_ENOLINK = no; then 9785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9786 /* end confdefs.h. */ 9787 9788 #define _XOPEN_SOURCE_EXTENDED 1 9789 #include <errno.h> 9790 #ifdef ENOLINK 9791 yes 9792 #endif 9793 9794 _ACEOF 9795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9796 $EGREP "yes" >/dev/null 2>&1; then : 9797 gl_cv_header_errno_h_ENOLINK=hidden 9798 fi 9799 rm -f conftest* 9800 9801 if test $gl_cv_header_errno_h_ENOLINK = hidden; then 9802 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" " 9803 #define _XOPEN_SOURCE_EXTENDED 1 9804 #include <errno.h> 9805 /* The following two lines are a workaround against an autoconf-2.52 bug. */ 9806 #include <stdio.h> 9807 #include <stdlib.h> 9808 "; then : 9809 9810 fi 9811 9812 fi 9813 fi 9814 9815 fi 9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5 9817 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; } 9818 case $gl_cv_header_errno_h_ENOLINK in 9819 yes | no) 9820 ENOLINK_HIDDEN=0; ENOLINK_VALUE= 9821 ;; 9822 *) 9823 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK" 9824 ;; 9825 esac 9826 9827 9828 fi 9829 9830 9831 if test -n "$ERRNO_H"; then 9832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5 9833 $as_echo_n "checking for EOVERFLOW value... " >&6; } 9834 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then : 9835 $as_echo_n "(cached) " >&6 9836 else 9837 9838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9839 /* end confdefs.h. */ 9840 9841 #include <errno.h> 9842 #ifdef EOVERFLOW 9843 yes 9844 #endif 9845 9846 _ACEOF 9847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9848 $EGREP "yes" >/dev/null 2>&1; then : 9849 gl_cv_header_errno_h_EOVERFLOW=yes 9850 else 9851 gl_cv_header_errno_h_EOVERFLOW=no 9852 fi 9853 rm -f conftest* 9854 9855 if test $gl_cv_header_errno_h_EOVERFLOW = no; then 9856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9857 /* end confdefs.h. */ 9858 9859 #define _XOPEN_SOURCE_EXTENDED 1 9860 #include <errno.h> 9861 #ifdef EOVERFLOW 9862 yes 9863 #endif 9864 9865 _ACEOF 9866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9867 $EGREP "yes" >/dev/null 2>&1; then : 9868 gl_cv_header_errno_h_EOVERFLOW=hidden 9869 fi 9870 rm -f conftest* 9871 9872 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then 9873 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" " 9874 #define _XOPEN_SOURCE_EXTENDED 1 9875 #include <errno.h> 9876 /* The following two lines are a workaround against an autoconf-2.52 bug. */ 9877 #include <stdio.h> 9878 #include <stdlib.h> 9879 "; then : 9880 9881 fi 9882 9883 fi 9884 fi 9885 9886 fi 9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5 9888 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; } 9889 case $gl_cv_header_errno_h_EOVERFLOW in 9890 yes | no) 9891 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE= 9892 ;; 9893 *) 9894 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW" 9895 ;; 9896 esac 9897 9898 9899 fi 9900 9901 9902 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" 9903 if test "x$ac_cv_have_decl_strerror_r" = xyes; then : 9904 ac_have_decl=1 9905 else 9906 ac_have_decl=0 9907 fi 9908 9909 cat >>confdefs.h <<_ACEOF 9910 #define HAVE_DECL_STRERROR_R $ac_have_decl 9911 _ACEOF 9912 9913 for ac_func in strerror_r 9914 do : 9915 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" 9916 if test "x$ac_cv_func_strerror_r" = xyes; then : 9917 cat >>confdefs.h <<_ACEOF 9918 #define HAVE_STRERROR_R 1 9919 _ACEOF 9920 9921 fi 9922 done 9923 9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 9925 $as_echo_n "checking whether strerror_r returns char *... " >&6; } 9926 if ${ac_cv_func_strerror_r_char_p+:} false; then : 9927 $as_echo_n "(cached) " >&6 9928 else 9929 9930 ac_cv_func_strerror_r_char_p=no 9931 if test $ac_cv_have_decl_strerror_r = yes; then 9932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9933 /* end confdefs.h. */ 9934 $ac_includes_default 9935 int 9936 main () 9937 { 9938 9939 char buf[100]; 9940 char x = *strerror_r (0, buf, sizeof buf); 9941 char *p = strerror_r (0, buf, sizeof buf); 9942 return !p || x; 9943 9944 ; 9945 return 0; 9946 } 9947 _ACEOF 9948 if ac_fn_c_try_compile "$LINENO"; then : 9949 ac_cv_func_strerror_r_char_p=yes 9950 fi 9951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9952 else 9953 # strerror_r is not declared. Choose between 9954 # systems that have relatively inaccessible declarations for the 9955 # function. BeOS and DEC UNIX 4.0 fall in this category, but the 9956 # former has a strerror_r that returns char*, while the latter 9957 # has a strerror_r that returns `int'. 9958 # This test should segfault on the DEC system. 9959 if test "$cross_compiling" = yes; then : 9960 : 9961 else 9962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9963 /* end confdefs.h. */ 9964 $ac_includes_default 9965 extern char *strerror_r (); 9966 int 9967 main () 9968 { 9969 char buf[100]; 9970 char x = *strerror_r (0, buf, sizeof buf); 9971 return ! isalpha (x); 9972 ; 9973 return 0; 9974 } 9975 _ACEOF 9976 if ac_fn_c_try_run "$LINENO"; then : 9977 ac_cv_func_strerror_r_char_p=yes 9978 fi 9979 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9980 conftest.$ac_objext conftest.beam conftest.$ac_ext 9981 fi 9982 9983 fi 9984 9985 fi 9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 9987 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; } 9988 if test $ac_cv_func_strerror_r_char_p = yes; then 9989 9990 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h 9991 9992 fi 9993 9994 9995 XGETTEXT_EXTRA_OPTIONS= 9996 9997 9998 9999 10000 10001 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h> 10002 " 10003 if test "x$ac_cv_type_sig_atomic_t" = xyes; then : 10004 10005 cat >>confdefs.h <<_ACEOF 10006 #define HAVE_SIG_ATOMIC_T 1 10007 _ACEOF 10008 10009 10010 else 10011 10012 $as_echo "#define sig_atomic_t int" >>confdefs.h 10013 10014 fi 10015 10016 10017 10018 GNULIB_FCNTL=0; 10019 GNULIB_NONBLOCKING=0; 10020 GNULIB_OPEN=0; 10021 GNULIB_OPENAT=0; 10022 HAVE_FCNTL=1; 10023 HAVE_OPENAT=1; 10024 REPLACE_FCNTL=0; 10025 REPLACE_OPEN=0; 10026 REPLACE_OPENAT=0; 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5 10038 $as_echo_n "checking for working fcntl.h... " >&6; } 10039 if ${gl_cv_header_working_fcntl_h+:} false; then : 10040 $as_echo_n "(cached) " >&6 10041 else 10042 if test "$cross_compiling" = yes; then : 10043 gl_cv_header_working_fcntl_h=cross-compiling 10044 else 10045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10046 /* end confdefs.h. */ 10047 #include <sys/types.h> 10048 #include <sys/stat.h> 10049 #if HAVE_UNISTD_H 10050 # include <unistd.h> 10051 #else /* on Windows with MSVC */ 10052 # include <io.h> 10053 # include <stdlib.h> 10054 # defined sleep(n) _sleep ((n) * 1000) 10055 #endif 10056 #include <fcntl.h> 10057 #ifndef O_NOATIME 10058 #define O_NOATIME 0 10059 #endif 10060 #ifndef O_NOFOLLOW 10061 #define O_NOFOLLOW 0 10062 #endif 10063 static int const constants[] = 10064 { 10065 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND, 10066 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY 10067 }; 10068 10069 int 10070 main () 10071 { 10072 10073 int result = !constants; 10074 #if HAVE_SYMLINK 10075 { 10076 static char const sym[] = "conftest.sym"; 10077 if (symlink ("/dev/null", sym) != 0) 10078 result |= 2; 10079 else 10080 { 10081 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0); 10082 if (fd >= 0) 10083 { 10084 close (fd); 10085 result |= 4; 10086 } 10087 } 10088 if (unlink (sym) != 0 || symlink (".", sym) != 0) 10089 result |= 2; 10090 else 10091 { 10092 int fd = open (sym, O_RDONLY | O_NOFOLLOW); 10093 if (fd >= 0) 10094 { 10095 close (fd); 10096 result |= 4; 10097 } 10098 } 10099 unlink (sym); 10100 } 10101 #endif 10102 { 10103 static char const file[] = "confdefs.h"; 10104 int fd = open (file, O_RDONLY | O_NOATIME); 10105 if (fd < 0) 10106 result |= 8; 10107 else 10108 { 10109 struct stat st0; 10110 if (fstat (fd, &st0) != 0) 10111 result |= 16; 10112 else 10113 { 10114 char c; 10115 sleep (1); 10116 if (read (fd, &c, 1) != 1) 10117 result |= 24; 10118 else 10119 { 10120 if (close (fd) != 0) 10121 result |= 32; 10122 else 10123 { 10124 struct stat st1; 10125 if (stat (file, &st1) != 0) 10126 result |= 40; 10127 else 10128 if (st0.st_atime != st1.st_atime) 10129 result |= 64; 10130 } 10131 } 10132 } 10133 } 10134 } 10135 return result; 10136 ; 10137 return 0; 10138 } 10139 _ACEOF 10140 if ac_fn_c_try_run "$LINENO"; then : 10141 gl_cv_header_working_fcntl_h=yes 10142 else 10143 case $? in #( 10144 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #( 10145 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #( 10146 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #( 10147 *) gl_cv_header_working_fcntl_h='no';; 10148 esac 10149 fi 10150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10151 conftest.$ac_objext conftest.beam conftest.$ac_ext 10152 fi 10153 10154 fi 10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5 10156 $as_echo "$gl_cv_header_working_fcntl_h" >&6; } 10157 10158 case $gl_cv_header_working_fcntl_h in #( 10159 *O_NOATIME* | no | cross-compiling) ac_val=0;; #( 10160 *) ac_val=1;; 10161 esac 10162 10163 cat >>confdefs.h <<_ACEOF 10164 #define HAVE_WORKING_O_NOATIME $ac_val 10165 _ACEOF 10166 10167 10168 case $gl_cv_header_working_fcntl_h in #( 10169 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #( 10170 *) ac_val=1;; 10171 esac 10172 10173 cat >>confdefs.h <<_ACEOF 10174 #define HAVE_WORKING_O_NOFOLLOW $ac_val 10175 _ACEOF 10176 10177 10178 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 10179 if test "x$ac_cv_type_pid_t" = xyes; then : 10180 10181 else 10182 10183 cat >>confdefs.h <<_ACEOF 10184 #define pid_t int 10185 _ACEOF 10186 10187 fi 10188 10189 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 10190 if test "x$ac_cv_type_mode_t" = xyes; then : 10191 10192 else 10193 10194 cat >>confdefs.h <<_ACEOF 10195 #define mode_t int 10196 _ACEOF 10197 10198 fi 10199 10200 10201 GNULIB_DPRINTF=0; 10202 GNULIB_FCLOSE=0; 10203 GNULIB_FDOPEN=0; 10204 GNULIB_FFLUSH=0; 10205 GNULIB_FGETC=0; 10206 GNULIB_FGETS=0; 10207 GNULIB_FOPEN=0; 10208 GNULIB_FPRINTF=0; 10209 GNULIB_FPRINTF_POSIX=0; 10210 GNULIB_FPURGE=0; 10211 GNULIB_FPUTC=0; 10212 GNULIB_FPUTS=0; 10213 GNULIB_FREAD=0; 10214 GNULIB_FREOPEN=0; 10215 GNULIB_FSCANF=0; 10216 GNULIB_FSEEK=0; 10217 GNULIB_FSEEKO=0; 10218 GNULIB_FTELL=0; 10219 GNULIB_FTELLO=0; 10220 GNULIB_FWRITE=0; 10221 GNULIB_GETC=0; 10222 GNULIB_GETCHAR=0; 10223 GNULIB_GETDELIM=0; 10224 GNULIB_GETLINE=0; 10225 GNULIB_OBSTACK_PRINTF=0; 10226 GNULIB_OBSTACK_PRINTF_POSIX=0; 10227 GNULIB_PCLOSE=0; 10228 GNULIB_PERROR=0; 10229 GNULIB_POPEN=0; 10230 GNULIB_PRINTF=0; 10231 GNULIB_PRINTF_POSIX=0; 10232 GNULIB_PUTC=0; 10233 GNULIB_PUTCHAR=0; 10234 GNULIB_PUTS=0; 10235 GNULIB_REMOVE=0; 10236 GNULIB_RENAME=0; 10237 GNULIB_RENAMEAT=0; 10238 GNULIB_SCANF=0; 10239 GNULIB_SNPRINTF=0; 10240 GNULIB_SPRINTF_POSIX=0; 10241 GNULIB_STDIO_H_NONBLOCKING=0; 10242 GNULIB_STDIO_H_SIGPIPE=0; 10243 GNULIB_TMPFILE=0; 10244 GNULIB_VASPRINTF=0; 10245 GNULIB_VFSCANF=0; 10246 GNULIB_VSCANF=0; 10247 GNULIB_VDPRINTF=0; 10248 GNULIB_VFPRINTF=0; 10249 GNULIB_VFPRINTF_POSIX=0; 10250 GNULIB_VPRINTF=0; 10251 GNULIB_VPRINTF_POSIX=0; 10252 GNULIB_VSNPRINTF=0; 10253 GNULIB_VSPRINTF_POSIX=0; 10254 HAVE_DECL_FPURGE=1; 10255 HAVE_DECL_FSEEKO=1; 10256 HAVE_DECL_FTELLO=1; 10257 HAVE_DECL_GETDELIM=1; 10258 HAVE_DECL_GETLINE=1; 10259 HAVE_DECL_OBSTACK_PRINTF=1; 10260 HAVE_DECL_SNPRINTF=1; 10261 HAVE_DECL_VSNPRINTF=1; 10262 HAVE_DPRINTF=1; 10263 HAVE_FSEEKO=1; 10264 HAVE_FTELLO=1; 10265 HAVE_PCLOSE=1; 10266 HAVE_POPEN=1; 10267 HAVE_RENAMEAT=1; 10268 HAVE_VASPRINTF=1; 10269 HAVE_VDPRINTF=1; 10270 REPLACE_DPRINTF=0; 10271 REPLACE_FCLOSE=0; 10272 REPLACE_FDOPEN=0; 10273 REPLACE_FFLUSH=0; 10274 REPLACE_FOPEN=0; 10275 REPLACE_FPRINTF=0; 10276 REPLACE_FPURGE=0; 10277 REPLACE_FREOPEN=0; 10278 REPLACE_FSEEK=0; 10279 REPLACE_FSEEKO=0; 10280 REPLACE_FTELL=0; 10281 REPLACE_FTELLO=0; 10282 REPLACE_GETDELIM=0; 10283 REPLACE_GETLINE=0; 10284 REPLACE_OBSTACK_PRINTF=0; 10285 REPLACE_PERROR=0; 10286 REPLACE_POPEN=0; 10287 REPLACE_PRINTF=0; 10288 REPLACE_REMOVE=0; 10289 REPLACE_RENAME=0; 10290 REPLACE_RENAMEAT=0; 10291 REPLACE_SNPRINTF=0; 10292 REPLACE_SPRINTF=0; 10293 REPLACE_STDIO_READ_FUNCS=0; 10294 REPLACE_STDIO_WRITE_FUNCS=0; 10295 REPLACE_TMPFILE=0; 10296 REPLACE_VASPRINTF=0; 10297 REPLACE_VDPRINTF=0; 10298 REPLACE_VFPRINTF=0; 10299 REPLACE_VPRINTF=0; 10300 REPLACE_VSNPRINTF=0; 10301 REPLACE_VSPRINTF=0; 10302 10303 10304 10305 10306 10307 10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 10309 $as_echo_n "checking for stdint.h... " >&6; } 10310 if ${gl_cv_header_stdint_h+:} false; then : 10311 $as_echo_n "(cached) " >&6 10312 else 10313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10314 /* end confdefs.h. */ 10315 #include <sys/types.h> 10316 #include <stdint.h> 10317 int 10318 main () 10319 { 10320 uintmax_t i = (uintmax_t) -1; return !i; 10321 ; 10322 return 0; 10323 } 10324 _ACEOF 10325 if ac_fn_c_try_compile "$LINENO"; then : 10326 gl_cv_header_stdint_h=yes 10327 else 10328 gl_cv_header_stdint_h=no 10329 fi 10330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10331 fi 10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5 10333 $as_echo "$gl_cv_header_stdint_h" >&6; } 10334 if test $gl_cv_header_stdint_h = yes; then 10335 10336 cat >>confdefs.h <<_ACEOF 10337 #define HAVE_STDINT_H_WITH_UINTMAX 1 10338 _ACEOF 10339 10340 fi 10341 10342 10343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 10344 $as_echo_n "checking for inttypes.h... " >&6; } 10345 if ${gl_cv_header_inttypes_h+:} false; then : 10346 $as_echo_n "(cached) " >&6 10347 else 10348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10349 /* end confdefs.h. */ 10350 10351 #include <sys/types.h> 10352 #include <inttypes.h> 10353 10354 int 10355 main () 10356 { 10357 uintmax_t i = (uintmax_t) -1; return !i; 10358 ; 10359 return 0; 10360 } 10361 _ACEOF 10362 if ac_fn_c_try_compile "$LINENO"; then : 10363 gl_cv_header_inttypes_h=yes 10364 else 10365 gl_cv_header_inttypes_h=no 10366 fi 10367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10368 fi 10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5 10370 $as_echo "$gl_cv_header_inttypes_h" >&6; } 10371 if test $gl_cv_header_inttypes_h = yes; then 10372 10373 cat >>confdefs.h <<_ACEOF 10374 #define HAVE_INTTYPES_H_WITH_UINTMAX 1 10375 _ACEOF 10376 10377 fi 10378 10379 10380 10381 10382 10383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports size specifiers as in C99" >&5 10384 $as_echo_n "checking whether printf supports size specifiers as in C99... " >&6; } 10385 if ${gl_cv_func_printf_sizes_c99+:} false; then : 10386 $as_echo_n "(cached) " >&6 10387 else 10388 10389 if test "$cross_compiling" = yes; then : 10390 10391 case "$host_os" in 10392 # Guess yes on glibc systems. 10393 *-gnu*) gl_cv_func_printf_sizes_c99="guessing yes";; 10394 # Guess yes on FreeBSD >= 5. 10395 freebsd[1-4]*) gl_cv_func_printf_sizes_c99="guessing no";; 10396 freebsd* | kfreebsd*) gl_cv_func_printf_sizes_c99="guessing yes";; 10397 # Guess yes on Mac OS X >= 10.3. 10398 darwin[1-6].*) gl_cv_func_printf_sizes_c99="guessing no";; 10399 darwin*) gl_cv_func_printf_sizes_c99="guessing yes";; 10400 # Guess yes on OpenBSD >= 3.9. 10401 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*) 10402 gl_cv_func_printf_sizes_c99="guessing no";; 10403 openbsd*) gl_cv_func_printf_sizes_c99="guessing yes";; 10404 # Guess yes on Solaris >= 2.10. 10405 solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";; 10406 solaris*) gl_cv_func_printf_sizes_c99="guessing no";; 10407 # Guess yes on NetBSD >= 3. 10408 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*) 10409 gl_cv_func_printf_sizes_c99="guessing no";; 10410 netbsd*) gl_cv_func_printf_sizes_c99="guessing yes";; 10411 # If we don't know, assume the worst. 10412 *) gl_cv_func_printf_sizes_c99="guessing no";; 10413 esac 10414 10415 else 10416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10417 /* end confdefs.h. */ 10418 10419 #include <stddef.h> 10420 #include <stdio.h> 10421 #include <string.h> 10422 #include <sys/types.h> 10423 #if HAVE_STDINT_H_WITH_UINTMAX 10424 # include <stdint.h> 10425 #endif 10426 #if HAVE_INTTYPES_H_WITH_UINTMAX 10427 # include <inttypes.h> 10428 #endif 10429 static char buf[100]; 10430 int main () 10431 { 10432 int result = 0; 10433 #if HAVE_STDINT_H_WITH_UINTMAX || HAVE_INTTYPES_H_WITH_UINTMAX 10434 buf[0] = '\0'; 10435 if (sprintf (buf, "%ju %d", (uintmax_t) 12345671, 33, 44, 55) < 0 10436 || strcmp (buf, "12345671 33") != 0) 10437 result |= 1; 10438 #endif 10439 buf[0] = '\0'; 10440 if (sprintf (buf, "%zu %d", (size_t) 12345672, 33, 44, 55) < 0 10441 || strcmp (buf, "12345672 33") != 0) 10442 result |= 2; 10443 buf[0] = '\0'; 10444 if (sprintf (buf, "%tu %d", (ptrdiff_t) 12345673, 33, 44, 55) < 0 10445 || strcmp (buf, "12345673 33") != 0) 10446 result |= 4; 10447 buf[0] = '\0'; 10448 if (sprintf (buf, "%Lg %d", (long double) 1.5, 33, 44, 55) < 0 10449 || strcmp (buf, "1.5 33") != 0) 10450 result |= 8; 10451 return result; 10452 } 10453 _ACEOF 10454 if ac_fn_c_try_run "$LINENO"; then : 10455 gl_cv_func_printf_sizes_c99=yes 10456 else 10457 gl_cv_func_printf_sizes_c99=no 10458 fi 10459 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10460 conftest.$ac_objext conftest.beam conftest.$ac_ext 10461 fi 10462 10463 10464 fi 10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_sizes_c99" >&5 10466 $as_echo "$gl_cv_func_printf_sizes_c99" >&6; } 10467 10468 10469 10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports 'long double' arguments" >&5 10471 $as_echo_n "checking whether printf supports 'long double' arguments... " >&6; } 10472 if ${gl_cv_func_printf_long_double+:} false; then : 10473 $as_echo_n "(cached) " >&6 10474 else 10475 10476 if test "$cross_compiling" = yes; then : 10477 10478 case "$host_os" in 10479 beos*) gl_cv_func_printf_long_double="guessing no";; 10480 mingw* | pw*) gl_cv_func_printf_long_double="guessing no";; 10481 *) gl_cv_func_printf_long_double="guessing yes";; 10482 esac 10483 10484 else 10485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10486 /* end confdefs.h. */ 10487 10488 #include <stdio.h> 10489 #include <string.h> 10490 static char buf[10000]; 10491 int main () 10492 { 10493 int result = 0; 10494 buf[0] = '\0'; 10495 if (sprintf (buf, "%Lf %d", 1.75L, 33, 44, 55) < 0 10496 || strcmp (buf, "1.750000 33") != 0) 10497 result |= 1; 10498 buf[0] = '\0'; 10499 if (sprintf (buf, "%Le %d", 1.75L, 33, 44, 55) < 0 10500 || strcmp (buf, "1.750000e+00 33") != 0) 10501 result |= 2; 10502 buf[0] = '\0'; 10503 if (sprintf (buf, "%Lg %d", 1.75L, 33, 44, 55) < 0 10504 || strcmp (buf, "1.75 33") != 0) 10505 result |= 4; 10506 return result; 10507 } 10508 _ACEOF 10509 if ac_fn_c_try_run "$LINENO"; then : 10510 gl_cv_func_printf_long_double=yes 10511 else 10512 gl_cv_func_printf_long_double=no 10513 fi 10514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10515 conftest.$ac_objext conftest.beam conftest.$ac_ext 10516 fi 10517 10518 10519 fi 10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_long_double" >&5 10521 $as_echo "$gl_cv_func_printf_long_double" >&6; } 10522 10523 10524 10525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports infinite 'double' arguments" >&5 10526 $as_echo_n "checking whether printf supports infinite 'double' arguments... " >&6; } 10527 if ${gl_cv_func_printf_infinite+:} false; then : 10528 $as_echo_n "(cached) " >&6 10529 else 10530 10531 if test "$cross_compiling" = yes; then : 10532 10533 case "$host_os" in 10534 # Guess yes on glibc systems. 10535 *-gnu*) gl_cv_func_printf_infinite="guessing yes";; 10536 # Guess yes on FreeBSD >= 6. 10537 freebsd[1-5]*) gl_cv_func_printf_infinite="guessing no";; 10538 freebsd* | kfreebsd*) gl_cv_func_printf_infinite="guessing yes";; 10539 # Guess yes on Mac OS X >= 10.3. 10540 darwin[1-6].*) gl_cv_func_printf_infinite="guessing no";; 10541 darwin*) gl_cv_func_printf_infinite="guessing yes";; 10542 # Guess yes on HP-UX >= 11. 10543 hpux[7-9]* | hpux10*) gl_cv_func_printf_infinite="guessing no";; 10544 hpux*) gl_cv_func_printf_infinite="guessing yes";; 10545 # Guess yes on NetBSD >= 3. 10546 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*) 10547 gl_cv_func_printf_infinite="guessing no";; 10548 netbsd*) gl_cv_func_printf_infinite="guessing yes";; 10549 # Guess yes on BeOS. 10550 beos*) gl_cv_func_printf_infinite="guessing yes";; 10551 # If we don't know, assume the worst. 10552 *) gl_cv_func_printf_infinite="guessing no";; 10553 esac 10554 10555 else 10556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10557 /* end confdefs.h. */ 10558 10559 #include <stdio.h> 10560 #include <string.h> 10561 static int 10562 strisnan (const char *string, size_t start_index, size_t end_index) 10563 { 10564 if (start_index < end_index) 10565 { 10566 if (string[start_index] == '-') 10567 start_index++; 10568 if (start_index + 3 <= end_index 10569 && memcmp (string + start_index, "nan", 3) == 0) 10570 { 10571 start_index += 3; 10572 if (start_index == end_index 10573 || (string[start_index] == '(' && string[end_index - 1] == ')')) 10574 return 1; 10575 } 10576 } 10577 return 0; 10578 } 10579 static int 10580 have_minus_zero () 10581 { 10582 static double plus_zero = 0.0; 10583 double minus_zero = - plus_zero; 10584 return memcmp (&plus_zero, &minus_zero, sizeof (double)) != 0; 10585 } 10586 static char buf[10000]; 10587 static double zero = 0.0; 10588 int main () 10589 { 10590 int result = 0; 10591 if (sprintf (buf, "%f", 1.0 / zero) < 0 10592 || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0)) 10593 result |= 1; 10594 if (sprintf (buf, "%f", -1.0 / zero) < 0 10595 || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0)) 10596 result |= 1; 10597 if (sprintf (buf, "%f", zero / zero) < 0 10598 || !strisnan (buf, 0, strlen (buf))) 10599 result |= 2; 10600 if (sprintf (buf, "%e", 1.0 / zero) < 0 10601 || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0)) 10602 result |= 4; 10603 if (sprintf (buf, "%e", -1.0 / zero) < 0 10604 || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0)) 10605 result |= 4; 10606 if (sprintf (buf, "%e", zero / zero) < 0 10607 || !strisnan (buf, 0, strlen (buf))) 10608 result |= 8; 10609 if (sprintf (buf, "%g", 1.0 / zero) < 0 10610 || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0)) 10611 result |= 16; 10612 if (sprintf (buf, "%g", -1.0 / zero) < 0 10613 || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0)) 10614 result |= 16; 10615 if (sprintf (buf, "%g", zero / zero) < 0 10616 || !strisnan (buf, 0, strlen (buf))) 10617 result |= 32; 10618 /* This test fails on HP-UX 10.20. */ 10619 if (have_minus_zero ()) 10620 if (sprintf (buf, "%g", - zero) < 0 10621 || strcmp (buf, "-0") != 0) 10622 result |= 64; 10623 return result; 10624 } 10625 _ACEOF 10626 if ac_fn_c_try_run "$LINENO"; then : 10627 gl_cv_func_printf_infinite=yes 10628 else 10629 gl_cv_func_printf_infinite=no 10630 fi 10631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10632 conftest.$ac_objext conftest.beam conftest.$ac_ext 10633 fi 10634 10635 10636 fi 10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_infinite" >&5 10638 $as_echo "$gl_cv_func_printf_infinite" >&6; } 10639 10640 10641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 10642 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 10643 if ${ac_cv_c_bigendian+:} false; then : 10644 $as_echo_n "(cached) " >&6 10645 else 10646 ac_cv_c_bigendian=unknown 10647 # See if we're dealing with a universal compiler. 10648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10649 /* end confdefs.h. */ 10650 #ifndef __APPLE_CC__ 10651 not a universal capable compiler 10652 #endif 10653 typedef int dummy; 10654 10655 _ACEOF 10656 if ac_fn_c_try_compile "$LINENO"; then : 10657 10658 # Check for potential -arch flags. It is not universal unless 10659 # there are at least two -arch flags with different values. 10660 ac_arch= 10661 ac_prev= 10662 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 10663 if test -n "$ac_prev"; then 10664 case $ac_word in 10665 i?86 | x86_64 | ppc | ppc64) 10666 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 10667 ac_arch=$ac_word 10668 else 10669 ac_cv_c_bigendian=universal 10670 break 10671 fi 10672 ;; 10673 esac 10674 ac_prev= 10675 elif test "x$ac_word" = "x-arch"; then 10676 ac_prev=arch 10677 fi 10678 done 10679 fi 10680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10681 if test $ac_cv_c_bigendian = unknown; then 10682 # See if sys/param.h defines the BYTE_ORDER macro. 10683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10684 /* end confdefs.h. */ 10685 #include <sys/types.h> 10686 #include <sys/param.h> 10687 10688 int 10689 main () 10690 { 10691 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 10692 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 10693 && LITTLE_ENDIAN) 10694 bogus endian macros 10695 #endif 10696 10697 ; 10698 return 0; 10699 } 10700 _ACEOF 10701 if ac_fn_c_try_compile "$LINENO"; then : 10702 # It does; now see whether it defined to BIG_ENDIAN or not. 10703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10704 /* end confdefs.h. */ 10705 #include <sys/types.h> 10706 #include <sys/param.h> 10707 10708 int 10709 main () 10710 { 10711 #if BYTE_ORDER != BIG_ENDIAN 10712 not big endian 10713 #endif 10714 10715 ; 10716 return 0; 10717 } 10718 _ACEOF 10719 if ac_fn_c_try_compile "$LINENO"; then : 10720 ac_cv_c_bigendian=yes 10721 else 10722 ac_cv_c_bigendian=no 10723 fi 10724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10725 fi 10726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10727 fi 10728 if test $ac_cv_c_bigendian = unknown; then 10729 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 10730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10731 /* end confdefs.h. */ 10732 #include <limits.h> 10733 10734 int 10735 main () 10736 { 10737 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 10738 bogus endian macros 10739 #endif 10740 10741 ; 10742 return 0; 10743 } 10744 _ACEOF 10745 if ac_fn_c_try_compile "$LINENO"; then : 10746 # It does; now see whether it defined to _BIG_ENDIAN or not. 10747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10748 /* end confdefs.h. */ 10749 #include <limits.h> 10750 10751 int 10752 main () 10753 { 10754 #ifndef _BIG_ENDIAN 10755 not big endian 10756 #endif 10757 10758 ; 10759 return 0; 10760 } 10761 _ACEOF 10762 if ac_fn_c_try_compile "$LINENO"; then : 10763 ac_cv_c_bigendian=yes 10764 else 10765 ac_cv_c_bigendian=no 10766 fi 10767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10768 fi 10769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10770 fi 10771 if test $ac_cv_c_bigendian = unknown; then 10772 # Compile a test program. 10773 if test "$cross_compiling" = yes; then : 10774 # Try to guess by grepping values from an object file. 10775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10776 /* end confdefs.h. */ 10777 short int ascii_mm[] = 10778 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 10779 short int ascii_ii[] = 10780 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 10781 int use_ascii (int i) { 10782 return ascii_mm[i] + ascii_ii[i]; 10783 } 10784 short int ebcdic_ii[] = 10785 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 10786 short int ebcdic_mm[] = 10787 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 10788 int use_ebcdic (int i) { 10789 return ebcdic_mm[i] + ebcdic_ii[i]; 10790 } 10791 extern int foo; 10792 10793 int 10794 main () 10795 { 10796 return use_ascii (foo) == use_ebcdic (foo); 10797 ; 10798 return 0; 10799 } 10800 _ACEOF 10801 if ac_fn_c_try_compile "$LINENO"; then : 10802 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 10803 ac_cv_c_bigendian=yes 10804 fi 10805 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 10806 if test "$ac_cv_c_bigendian" = unknown; then 10807 ac_cv_c_bigendian=no 10808 else 10809 # finding both strings is unlikely to happen, but who knows? 10810 ac_cv_c_bigendian=unknown 10811 fi 10812 fi 10813 fi 10814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10815 else 10816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10817 /* end confdefs.h. */ 10818 $ac_includes_default 10819 int 10820 main () 10821 { 10822 10823 /* Are we little or big endian? From Harbison&Steele. */ 10824 union 10825 { 10826 long int l; 10827 char c[sizeof (long int)]; 10828 } u; 10829 u.l = 1; 10830 return u.c[sizeof (long int) - 1] == 1; 10831 10832 ; 10833 return 0; 10834 } 10835 _ACEOF 10836 if ac_fn_c_try_run "$LINENO"; then : 10837 ac_cv_c_bigendian=no 10838 else 10839 ac_cv_c_bigendian=yes 10840 fi 10841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10842 conftest.$ac_objext conftest.beam conftest.$ac_ext 10843 fi 10844 10845 fi 10846 fi 10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 10848 $as_echo "$ac_cv_c_bigendian" >&6; } 10849 case $ac_cv_c_bigendian in #( 10850 yes) 10851 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 10852 ;; #( 10853 no) 10854 ;; #( 10855 universal) 10856 10857 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 10858 10859 ;; #( 10860 *) 10861 as_fn_error $? "unknown endianness 10862 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 10863 esac 10864 10865 10866 10867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5 10868 $as_echo_n "checking whether long double and double are the same... " >&6; } 10869 if ${gl_cv_long_double_equals_double+:} false; then : 10870 $as_echo_n "(cached) " >&6 10871 else 10872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10873 /* end confdefs.h. */ 10874 #include <float.h> 10875 int 10876 main () 10877 { 10878 typedef int check[sizeof (long double) == sizeof (double) 10879 && LDBL_MANT_DIG == DBL_MANT_DIG 10880 && LDBL_MAX_EXP == DBL_MAX_EXP 10881 && LDBL_MIN_EXP == DBL_MIN_EXP 10882 ? 1 : -1]; 10883 10884 ; 10885 return 0; 10886 } 10887 _ACEOF 10888 if ac_fn_c_try_compile "$LINENO"; then : 10889 gl_cv_long_double_equals_double=yes 10890 else 10891 gl_cv_long_double_equals_double=no 10892 fi 10893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10894 10895 fi 10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5 10897 $as_echo "$gl_cv_long_double_equals_double" >&6; } 10898 if test $gl_cv_long_double_equals_double = yes; then 10899 10900 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h 10901 10902 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1 10903 else 10904 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0 10905 fi 10906 10907 10908 10909 10910 10911 10912 10913 if test -n "$gl_printf_safe"; then 10914 10915 $as_echo "#define CHECK_PRINTF_SAFE 1" >>confdefs.h 10916 10917 fi 10918 case "$gl_cv_func_printf_long_double" in 10919 *yes) 10920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports infinite 'long double' arguments" >&5 10921 $as_echo_n "checking whether printf supports infinite 'long double' arguments... " >&6; } 10922 if ${gl_cv_func_printf_infinite_long_double+:} false; then : 10923 $as_echo_n "(cached) " >&6 10924 else 10925 10926 if test "$cross_compiling" = yes; then : 10927 10928 case "$host_cpu" in 10929 # Guess no on ia64, x86_64, i386. 10930 ia64 | x86_64 | i*86) gl_cv_func_printf_infinite_long_double="guessing no";; 10931 *) 10932 case "$host_os" in 10933 # Guess yes on glibc systems. 10934 *-gnu*) gl_cv_func_printf_infinite_long_double="guessing yes";; 10935 # Guess yes on FreeBSD >= 6. 10936 freebsd[1-5]*) gl_cv_func_printf_infinite_long_double="guessing no";; 10937 freebsd* | kfreebsd*) gl_cv_func_printf_infinite_long_double="guessing yes";; 10938 # Guess yes on HP-UX >= 11. 10939 hpux[7-9]* | hpux10*) gl_cv_func_printf_infinite_long_double="guessing no";; 10940 hpux*) gl_cv_func_printf_infinite_long_double="guessing yes";; 10941 # If we don't know, assume the worst. 10942 *) gl_cv_func_printf_infinite_long_double="guessing no";; 10943 esac 10944 ;; 10945 esac 10946 10947 else 10948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10949 /* end confdefs.h. */ 10950 10951 10952 #include <stdlib.h> 10953 #if defined __MACH__ && defined __APPLE__ 10954 /* Avoid a crash on Mac OS X. */ 10955 #include <mach/mach.h> 10956 #include <mach/mach_error.h> 10957 #include <mach/thread_status.h> 10958 #include <mach/exception.h> 10959 #include <mach/task.h> 10960 #include <pthread.h> 10961 /* The exception port on which our thread listens. */ 10962 static mach_port_t our_exception_port; 10963 /* The main function of the thread listening for exceptions of type 10964 EXC_BAD_ACCESS. */ 10965 static void * 10966 mach_exception_thread (void *arg) 10967 { 10968 /* Buffer for a message to be received. */ 10969 struct { 10970 mach_msg_header_t head; 10971 mach_msg_body_t msgh_body; 10972 char data[1024]; 10973 } msg; 10974 mach_msg_return_t retval; 10975 /* Wait for a message on the exception port. */ 10976 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg), 10977 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL); 10978 if (retval != MACH_MSG_SUCCESS) 10979 abort (); 10980 exit (1); 10981 } 10982 static void 10983 nocrash_init (void) 10984 { 10985 mach_port_t self = mach_task_self (); 10986 /* Allocate a port on which the thread shall listen for exceptions. */ 10987 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port) 10988 == KERN_SUCCESS) { 10989 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */ 10990 if (mach_port_insert_right (self, our_exception_port, our_exception_port, 10991 MACH_MSG_TYPE_MAKE_SEND) 10992 == KERN_SUCCESS) { 10993 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting 10994 for us. */ 10995 exception_mask_t mask = EXC_MASK_BAD_ACCESS; 10996 /* Create the thread listening on the exception port. */ 10997 pthread_attr_t attr; 10998 pthread_t thread; 10999 if (pthread_attr_init (&attr) == 0 11000 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0 11001 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) { 11002 pthread_attr_destroy (&attr); 11003 /* Replace the exception port info for these exceptions with our own. 11004 Note that we replace the exception port for the entire task, not only 11005 for a particular thread. This has the effect that when our exception 11006 port gets the message, the thread specific exception port has already 11007 been asked, and we don't need to bother about it. 11008 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */ 11009 task_set_exception_ports (self, mask, our_exception_port, 11010 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE); 11011 } 11012 } 11013 } 11014 } 11015 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ 11016 /* Avoid a crash on native Windows. */ 11017 #define WIN32_LEAN_AND_MEAN 11018 #include <windows.h> 11019 #include <winerror.h> 11020 static LONG WINAPI 11021 exception_filter (EXCEPTION_POINTERS *ExceptionInfo) 11022 { 11023 switch (ExceptionInfo->ExceptionRecord->ExceptionCode) 11024 { 11025 case EXCEPTION_ACCESS_VIOLATION: 11026 case EXCEPTION_IN_PAGE_ERROR: 11027 case EXCEPTION_STACK_OVERFLOW: 11028 case EXCEPTION_GUARD_PAGE: 11029 case EXCEPTION_PRIV_INSTRUCTION: 11030 case EXCEPTION_ILLEGAL_INSTRUCTION: 11031 case EXCEPTION_DATATYPE_MISALIGNMENT: 11032 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED: 11033 case EXCEPTION_NONCONTINUABLE_EXCEPTION: 11034 exit (1); 11035 } 11036 return EXCEPTION_CONTINUE_SEARCH; 11037 } 11038 static void 11039 nocrash_init (void) 11040 { 11041 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter); 11042 } 11043 #else 11044 /* Avoid a crash on POSIX systems. */ 11045 #include <signal.h> 11046 /* A POSIX signal handler. */ 11047 static void 11048 exception_handler (int sig) 11049 { 11050 exit (1); 11051 } 11052 static void 11053 nocrash_init (void) 11054 { 11055 #ifdef SIGSEGV 11056 signal (SIGSEGV, exception_handler); 11057 #endif 11058 #ifdef SIGBUS 11059 signal (SIGBUS, exception_handler); 11060 #endif 11061 } 11062 #endif 11063 11064 #include <float.h> 11065 #include <stdio.h> 11066 #include <string.h> 11067 static int 11068 strisnan (const char *string, size_t start_index, size_t end_index) 11069 { 11070 if (start_index < end_index) 11071 { 11072 if (string[start_index] == '-') 11073 start_index++; 11074 if (start_index + 3 <= end_index 11075 && memcmp (string + start_index, "nan", 3) == 0) 11076 { 11077 start_index += 3; 11078 if (start_index == end_index 11079 || (string[start_index] == '(' && string[end_index - 1] == ')')) 11080 return 1; 11081 } 11082 } 11083 return 0; 11084 } 11085 static char buf[10000]; 11086 static long double zeroL = 0.0L; 11087 int main () 11088 { 11089 int result = 0; 11090 nocrash_init(); 11091 if (sprintf (buf, "%Lf", 1.0L / zeroL) < 0 11092 || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0)) 11093 result |= 1; 11094 if (sprintf (buf, "%Lf", -1.0L / zeroL) < 0 11095 || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0)) 11096 result |= 1; 11097 if (sprintf (buf, "%Lf", zeroL / zeroL) < 0 11098 || !strisnan (buf, 0, strlen (buf))) 11099 result |= 1; 11100 if (sprintf (buf, "%Le", 1.0L / zeroL) < 0 11101 || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0)) 11102 result |= 1; 11103 if (sprintf (buf, "%Le", -1.0L / zeroL) < 0 11104 || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0)) 11105 result |= 1; 11106 if (sprintf (buf, "%Le", zeroL / zeroL) < 0 11107 || !strisnan (buf, 0, strlen (buf))) 11108 result |= 1; 11109 if (sprintf (buf, "%Lg", 1.0L / zeroL) < 0 11110 || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0)) 11111 result |= 1; 11112 if (sprintf (buf, "%Lg", -1.0L / zeroL) < 0 11113 || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0)) 11114 result |= 1; 11115 if (sprintf (buf, "%Lg", zeroL / zeroL) < 0 11116 || !strisnan (buf, 0, strlen (buf))) 11117 result |= 1; 11118 #if CHECK_PRINTF_SAFE && ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_)) && !HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 11119 /* Representation of an 80-bit 'long double' as an initializer for a sequence 11120 of 'unsigned int' words. */ 11121 # ifdef WORDS_BIGENDIAN 11122 # define LDBL80_WORDS(exponent,manthi,mantlo) \ 11123 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \ 11124 ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16), \ 11125 (unsigned int) (mantlo) << 16 \ 11126 } 11127 # else 11128 # define LDBL80_WORDS(exponent,manthi,mantlo) \ 11129 { mantlo, manthi, exponent } 11130 # endif 11131 { /* Quiet NaN. */ 11132 static union { unsigned int word[4]; long double value; } x = 11133 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) }; 11134 if (sprintf (buf, "%Lf", x.value) < 0 11135 || !strisnan (buf, 0, strlen (buf))) 11136 result |= 2; 11137 if (sprintf (buf, "%Le", x.value) < 0 11138 || !strisnan (buf, 0, strlen (buf))) 11139 result |= 2; 11140 if (sprintf (buf, "%Lg", x.value) < 0 11141 || !strisnan (buf, 0, strlen (buf))) 11142 result |= 2; 11143 } 11144 { 11145 /* Signalling NaN. */ 11146 static union { unsigned int word[4]; long double value; } x = 11147 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) }; 11148 if (sprintf (buf, "%Lf", x.value) < 0 11149 || !strisnan (buf, 0, strlen (buf))) 11150 result |= 2; 11151 if (sprintf (buf, "%Le", x.value) < 0 11152 || !strisnan (buf, 0, strlen (buf))) 11153 result |= 2; 11154 if (sprintf (buf, "%Lg", x.value) < 0 11155 || !strisnan (buf, 0, strlen (buf))) 11156 result |= 2; 11157 } 11158 { /* Pseudo-NaN. */ 11159 static union { unsigned int word[4]; long double value; } x = 11160 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) }; 11161 if (sprintf (buf, "%Lf", x.value) < 0 11162 || !strisnan (buf, 0, strlen (buf))) 11163 result |= 4; 11164 if (sprintf (buf, "%Le", x.value) < 0 11165 || !strisnan (buf, 0, strlen (buf))) 11166 result |= 4; 11167 if (sprintf (buf, "%Lg", x.value) < 0 11168 || !strisnan (buf, 0, strlen (buf))) 11169 result |= 4; 11170 } 11171 { /* Pseudo-Infinity. */ 11172 static union { unsigned int word[4]; long double value; } x = 11173 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) }; 11174 if (sprintf (buf, "%Lf", x.value) < 0 11175 || !strisnan (buf, 0, strlen (buf))) 11176 result |= 8; 11177 if (sprintf (buf, "%Le", x.value) < 0 11178 || !strisnan (buf, 0, strlen (buf))) 11179 result |= 8; 11180 if (sprintf (buf, "%Lg", x.value) < 0 11181 || !strisnan (buf, 0, strlen (buf))) 11182 result |= 8; 11183 } 11184 { /* Pseudo-Zero. */ 11185 static union { unsigned int word[4]; long double value; } x = 11186 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) }; 11187 if (sprintf (buf, "%Lf", x.value) < 0 11188 || !strisnan (buf, 0, strlen (buf))) 11189 result |= 16; 11190 if (sprintf (buf, "%Le", x.value) < 0 11191 || !strisnan (buf, 0, strlen (buf))) 11192 result |= 16; 11193 if (sprintf (buf, "%Lg", x.value) < 0 11194 || !strisnan (buf, 0, strlen (buf))) 11195 result |= 16; 11196 } 11197 { /* Unnormalized number. */ 11198 static union { unsigned int word[4]; long double value; } x = 11199 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) }; 11200 if (sprintf (buf, "%Lf", x.value) < 0 11201 || !strisnan (buf, 0, strlen (buf))) 11202 result |= 32; 11203 if (sprintf (buf, "%Le", x.value) < 0 11204 || !strisnan (buf, 0, strlen (buf))) 11205 result |= 32; 11206 if (sprintf (buf, "%Lg", x.value) < 0 11207 || !strisnan (buf, 0, strlen (buf))) 11208 result |= 32; 11209 } 11210 { /* Pseudo-Denormal. */ 11211 static union { unsigned int word[4]; long double value; } x = 11212 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) }; 11213 if (sprintf (buf, "%Lf", x.value) < 0 11214 || !strisnan (buf, 0, strlen (buf))) 11215 result |= 64; 11216 if (sprintf (buf, "%Le", x.value) < 0 11217 || !strisnan (buf, 0, strlen (buf))) 11218 result |= 64; 11219 if (sprintf (buf, "%Lg", x.value) < 0 11220 || !strisnan (buf, 0, strlen (buf))) 11221 result |= 64; 11222 } 11223 #endif 11224 return result; 11225 } 11226 _ACEOF 11227 if ac_fn_c_try_run "$LINENO"; then : 11228 gl_cv_func_printf_infinite_long_double=yes 11229 else 11230 gl_cv_func_printf_infinite_long_double=no 11231 fi 11232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11233 conftest.$ac_objext conftest.beam conftest.$ac_ext 11234 fi 11235 11236 11237 fi 11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_infinite_long_double" >&5 11239 $as_echo "$gl_cv_func_printf_infinite_long_double" >&6; } 11240 ;; 11241 *) 11242 gl_cv_func_printf_infinite_long_double="irrelevant" 11243 ;; 11244 esac 11245 11246 11247 11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'a' and 'A' directives" >&5 11249 $as_echo_n "checking whether printf supports the 'a' and 'A' directives... " >&6; } 11250 if ${gl_cv_func_printf_directive_a+:} false; then : 11251 $as_echo_n "(cached) " >&6 11252 else 11253 11254 if test "$cross_compiling" = yes; then : 11255 11256 case "$host_os" in 11257 # Guess yes on glibc >= 2.5 systems. 11258 *-gnu*) 11259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11260 /* end confdefs.h. */ 11261 11262 #include <features.h> 11263 #ifdef __GNU_LIBRARY__ 11264 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 5) || (__GLIBC__ > 2)) && !defined __UCLIBC__ 11265 BZ2908 11266 #endif 11267 #endif 11268 11269 _ACEOF 11270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11271 $EGREP "BZ2908" >/dev/null 2>&1; then : 11272 gl_cv_func_printf_directive_a="guessing yes" 11273 else 11274 gl_cv_func_printf_directive_a="guessing no" 11275 fi 11276 rm -f conftest* 11277 11278 ;; 11279 # If we don't know, assume the worst. 11280 *) gl_cv_func_printf_directive_a="guessing no";; 11281 esac 11282 11283 else 11284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11285 /* end confdefs.h. */ 11286 11287 #include <stdio.h> 11288 #include <string.h> 11289 static char buf[100]; 11290 static double zero = 0.0; 11291 int main () 11292 { 11293 int result = 0; 11294 if (sprintf (buf, "%a %d", 3.1416015625, 33, 44, 55) < 0 11295 || (strcmp (buf, "0x1.922p+1 33") != 0 11296 && strcmp (buf, "0x3.244p+0 33") != 0 11297 && strcmp (buf, "0x6.488p-1 33") != 0 11298 && strcmp (buf, "0xc.91p-2 33") != 0)) 11299 result |= 1; 11300 if (sprintf (buf, "%A %d", -3.1416015625, 33, 44, 55) < 0 11301 || (strcmp (buf, "-0X1.922P+1 33") != 0 11302 && strcmp (buf, "-0X3.244P+0 33") != 0 11303 && strcmp (buf, "-0X6.488P-1 33") != 0 11304 && strcmp (buf, "-0XC.91P-2 33") != 0)) 11305 result |= 2; 11306 /* This catches a FreeBSD 6.1 bug: it doesn't round. */ 11307 if (sprintf (buf, "%.2a %d", 1.51, 33, 44, 55) < 0 11308 || (strcmp (buf, "0x1.83p+0 33") != 0 11309 && strcmp (buf, "0x3.05p-1 33") != 0 11310 && strcmp (buf, "0x6.0ap-2 33") != 0 11311 && strcmp (buf, "0xc.14p-3 33") != 0)) 11312 result |= 4; 11313 /* This catches a FreeBSD 6.1 bug. See 11314 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00107.html> */ 11315 if (sprintf (buf, "%010a %d", 1.0 / zero, 33, 44, 55) < 0 11316 || buf[0] == '0') 11317 result |= 8; 11318 /* This catches a Mac OS X 10.3.9 (Darwin 7.9) bug. */ 11319 if (sprintf (buf, "%.1a", 1.999) < 0 11320 || (strcmp (buf, "0x1.0p+1") != 0 11321 && strcmp (buf, "0x2.0p+0") != 0 11322 && strcmp (buf, "0x4.0p-1") != 0 11323 && strcmp (buf, "0x8.0p-2") != 0)) 11324 result |= 16; 11325 /* This catches the same Mac OS X 10.3.9 (Darwin 7.9) bug and also a 11326 glibc 2.4 bug <http://sourceware.org/bugzilla/show_bug.cgi?id=2908>. */ 11327 if (sprintf (buf, "%.1La", 1.999L) < 0 11328 || (strcmp (buf, "0x1.0p+1") != 0 11329 && strcmp (buf, "0x2.0p+0") != 0 11330 && strcmp (buf, "0x4.0p-1") != 0 11331 && strcmp (buf, "0x8.0p-2") != 0)) 11332 result |= 32; 11333 return result; 11334 } 11335 _ACEOF 11336 if ac_fn_c_try_run "$LINENO"; then : 11337 gl_cv_func_printf_directive_a=yes 11338 else 11339 gl_cv_func_printf_directive_a=no 11340 fi 11341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11342 conftest.$ac_objext conftest.beam conftest.$ac_ext 11343 fi 11344 11345 11346 fi 11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_a" >&5 11348 $as_echo "$gl_cv_func_printf_directive_a" >&6; } 11349 11350 11351 11352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'F' directive" >&5 11353 $as_echo_n "checking whether printf supports the 'F' directive... " >&6; } 11354 if ${gl_cv_func_printf_directive_f+:} false; then : 11355 $as_echo_n "(cached) " >&6 11356 else 11357 11358 if test "$cross_compiling" = yes; then : 11359 11360 case "$host_os" in 11361 # Guess yes on glibc systems. 11362 *-gnu*) gl_cv_func_printf_directive_f="guessing yes";; 11363 # Guess yes on FreeBSD >= 6. 11364 freebsd[1-5]*) gl_cv_func_printf_directive_f="guessing no";; 11365 freebsd* | kfreebsd*) gl_cv_func_printf_directive_f="guessing yes";; 11366 # Guess yes on Mac OS X >= 10.3. 11367 darwin[1-6].*) gl_cv_func_printf_directive_f="guessing no";; 11368 darwin*) gl_cv_func_printf_directive_f="guessing yes";; 11369 # Guess yes on Solaris >= 2.10. 11370 solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";; 11371 solaris*) gl_cv_func_printf_sizes_c99="guessing no";; 11372 # If we don't know, assume the worst. 11373 *) gl_cv_func_printf_directive_f="guessing no";; 11374 esac 11375 11376 else 11377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11378 /* end confdefs.h. */ 11379 11380 #include <stdio.h> 11381 #include <string.h> 11382 static char buf[100]; 11383 static double zero = 0.0; 11384 int main () 11385 { 11386 int result = 0; 11387 if (sprintf (buf, "%F %d", 1234567.0, 33, 44, 55) < 0 11388 || strcmp (buf, "1234567.000000 33") != 0) 11389 result |= 1; 11390 if (sprintf (buf, "%F", 1.0 / zero) < 0 11391 || (strcmp (buf, "INF") != 0 && strcmp (buf, "INFINITY") != 0)) 11392 result |= 2; 11393 /* This catches a Cygwin 1.5.x bug. */ 11394 if (sprintf (buf, "%.F", 1234.0) < 0 11395 || strcmp (buf, "1234") != 0) 11396 result |= 4; 11397 return result; 11398 } 11399 _ACEOF 11400 if ac_fn_c_try_run "$LINENO"; then : 11401 gl_cv_func_printf_directive_f=yes 11402 else 11403 gl_cv_func_printf_directive_f=no 11404 fi 11405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11406 conftest.$ac_objext conftest.beam conftest.$ac_ext 11407 fi 11408 11409 11410 fi 11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_f" >&5 11412 $as_echo "$gl_cv_func_printf_directive_f" >&6; } 11413 11414 11415 11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'n' directive" >&5 11417 $as_echo_n "checking whether printf supports the 'n' directive... " >&6; } 11418 if ${gl_cv_func_printf_directive_n+:} false; then : 11419 $as_echo_n "(cached) " >&6 11420 else 11421 11422 if test "$cross_compiling" = yes; then : 11423 11424 case "$host_os" in 11425 mingw*) gl_cv_func_printf_directive_n="guessing no";; 11426 *) gl_cv_func_printf_directive_n="guessing yes";; 11427 esac 11428 11429 else 11430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11431 /* end confdefs.h. */ 11432 11433 #include <stdio.h> 11434 #include <stdlib.h> 11435 #include <string.h> 11436 #ifdef _MSC_VER 11437 /* See page about "Parameter Validation" on msdn.microsoft.com. */ 11438 static void cdecl 11439 invalid_parameter_handler (const wchar_t *expression, 11440 const wchar_t *function, 11441 const wchar_t *file, unsigned int line, 11442 uintptr_t dummy) 11443 { 11444 exit (1); 11445 } 11446 #endif 11447 static char fmtstring[10]; 11448 static char buf[100]; 11449 int main () 11450 { 11451 int count = -1; 11452 #ifdef _MSC_VER 11453 _set_invalid_parameter_handler (invalid_parameter_handler); 11454 #endif 11455 /* Copy the format string. Some systems (glibc with _FORTIFY_SOURCE=2) 11456 support %n in format strings in read-only memory but not in writable 11457 memory. */ 11458 strcpy (fmtstring, "%d %n"); 11459 if (sprintf (buf, fmtstring, 123, &count, 33, 44, 55) < 0 11460 || strcmp (buf, "123 ") != 0 11461 || count != 4) 11462 return 1; 11463 return 0; 11464 } 11465 _ACEOF 11466 if ac_fn_c_try_run "$LINENO"; then : 11467 gl_cv_func_printf_directive_n=yes 11468 else 11469 gl_cv_func_printf_directive_n=no 11470 fi 11471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11472 conftest.$ac_objext conftest.beam conftest.$ac_ext 11473 fi 11474 11475 11476 fi 11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_n" >&5 11478 $as_echo "$gl_cv_func_printf_directive_n" >&6; } 11479 11480 11481 11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'ls' directive" >&5 11483 $as_echo_n "checking whether printf supports the 'ls' directive... " >&6; } 11484 if ${gl_cv_func_printf_directive_ls+:} false; then : 11485 $as_echo_n "(cached) " >&6 11486 else 11487 11488 if test "$cross_compiling" = yes; then : 11489 11490 case "$host_os" in 11491 openbsd*) gl_cv_func_printf_directive_ls="guessing no";; 11492 irix*) gl_cv_func_printf_directive_ls="guessing no";; 11493 solaris*) gl_cv_func_printf_directive_ls="guessing no";; 11494 cygwin*) gl_cv_func_printf_directive_ls="guessing no";; 11495 beos* | haiku*) gl_cv_func_printf_directive_ls="guessing no";; 11496 *) gl_cv_func_printf_directive_ls="guessing yes";; 11497 esac 11498 11499 else 11500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11501 /* end confdefs.h. */ 11502 11503 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 11504 <wchar.h>. 11505 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 11506 included before <wchar.h>. */ 11507 #include <stddef.h> 11508 #include <stdio.h> 11509 #include <time.h> 11510 #include <wchar.h> 11511 #include <string.h> 11512 int main () 11513 { 11514 int result = 0; 11515 char buf[100]; 11516 /* Test whether %ls works at all. 11517 This test fails on OpenBSD 4.0, IRIX 6.5, Solaris 2.6, Haiku, but not on 11518 Cygwin 1.5. */ 11519 { 11520 static const wchar_t wstring[] = { 'a', 'b', 'c', 0 }; 11521 buf[0] = '\0'; 11522 if (sprintf (buf, "%ls", wstring) < 0 11523 || strcmp (buf, "abc") != 0) 11524 result |= 1; 11525 } 11526 /* This test fails on IRIX 6.5, Solaris 2.6, Cygwin 1.5, Haiku (with an 11527 assertion failure inside libc), but not on OpenBSD 4.0. */ 11528 { 11529 static const wchar_t wstring[] = { 'a', 0 }; 11530 buf[0] = '\0'; 11531 if (sprintf (buf, "%ls", wstring) < 0 11532 || strcmp (buf, "a") != 0) 11533 result |= 2; 11534 } 11535 /* Test whether precisions in %ls are supported as specified in ISO C 99 11536 section 7.19.6.1: 11537 "If a precision is specified, no more than that many bytes are written 11538 (including shift sequences, if any), and the array shall contain a 11539 null wide character if, to equal the multibyte character sequence 11540 length given by the precision, the function would need to access a 11541 wide character one past the end of the array." 11542 This test fails on Solaris 10. */ 11543 { 11544 static const wchar_t wstring[] = { 'a', 'b', (wchar_t) 0xfdfdfdfd, 0 }; 11545 buf[0] = '\0'; 11546 if (sprintf (buf, "%.2ls", wstring) < 0 11547 || strcmp (buf, "ab") != 0) 11548 result |= 8; 11549 } 11550 return result; 11551 } 11552 _ACEOF 11553 if ac_fn_c_try_run "$LINENO"; then : 11554 gl_cv_func_printf_directive_ls=yes 11555 else 11556 gl_cv_func_printf_directive_ls=no 11557 fi 11558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11559 conftest.$ac_objext conftest.beam conftest.$ac_ext 11560 fi 11561 11562 11563 fi 11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_ls" >&5 11565 $as_echo "$gl_cv_func_printf_directive_ls" >&6; } 11566 11567 11568 11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5 11570 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; } 11571 if ${gl_cv_func_printf_positions+:} false; then : 11572 $as_echo_n "(cached) " >&6 11573 else 11574 11575 if test "$cross_compiling" = yes; then : 11576 11577 case "$host_os" in 11578 netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*) 11579 gl_cv_func_printf_positions="guessing no";; 11580 beos*) gl_cv_func_printf_positions="guessing no";; 11581 mingw* | pw*) gl_cv_func_printf_positions="guessing no";; 11582 *) gl_cv_func_printf_positions="guessing yes";; 11583 esac 11584 11585 else 11586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11587 /* end confdefs.h. */ 11588 11589 #include <stdio.h> 11590 #include <string.h> 11591 /* The string "%2$d %1$d", with dollar characters protected from the shell's 11592 dollar expansion (possibly an autoconf bug). */ 11593 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; 11594 static char buf[100]; 11595 int main () 11596 { 11597 sprintf (buf, format, 33, 55); 11598 return (strcmp (buf, "55 33") != 0); 11599 } 11600 _ACEOF 11601 if ac_fn_c_try_run "$LINENO"; then : 11602 gl_cv_func_printf_positions=yes 11603 else 11604 gl_cv_func_printf_positions=no 11605 fi 11606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11607 conftest.$ac_objext conftest.beam conftest.$ac_ext 11608 fi 11609 11610 11611 fi 11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5 11613 $as_echo "$gl_cv_func_printf_positions" >&6; } 11614 11615 11616 11617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the grouping flag" >&5 11618 $as_echo_n "checking whether printf supports the grouping flag... " >&6; } 11619 if ${gl_cv_func_printf_flag_grouping+:} false; then : 11620 $as_echo_n "(cached) " >&6 11621 else 11622 11623 if test "$cross_compiling" = yes; then : 11624 11625 case "$host_os" in 11626 cygwin*) gl_cv_func_printf_flag_grouping="guessing no";; 11627 netbsd*) gl_cv_func_printf_flag_grouping="guessing no";; 11628 mingw* | pw*) gl_cv_func_printf_flag_grouping="guessing no";; 11629 *) gl_cv_func_printf_flag_grouping="guessing yes";; 11630 esac 11631 11632 else 11633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11634 /* end confdefs.h. */ 11635 11636 #include <stdio.h> 11637 #include <string.h> 11638 static char buf[100]; 11639 int main () 11640 { 11641 if (sprintf (buf, "%'d %d", 1234567, 99) < 0 11642 || buf[strlen (buf) - 1] != '9') 11643 return 1; 11644 return 0; 11645 } 11646 _ACEOF 11647 if ac_fn_c_try_run "$LINENO"; then : 11648 gl_cv_func_printf_flag_grouping=yes 11649 else 11650 gl_cv_func_printf_flag_grouping=no 11651 fi 11652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11653 conftest.$ac_objext conftest.beam conftest.$ac_ext 11654 fi 11655 11656 11657 fi 11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_flag_grouping" >&5 11659 $as_echo "$gl_cv_func_printf_flag_grouping" >&6; } 11660 11661 11662 11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the left-adjust flag correctly" >&5 11664 $as_echo_n "checking whether printf supports the left-adjust flag correctly... " >&6; } 11665 if ${gl_cv_func_printf_flag_leftadjust+:} false; then : 11666 $as_echo_n "(cached) " >&6 11667 else 11668 11669 if test "$cross_compiling" = yes; then : 11670 11671 case "$host_os" in 11672 # Guess yes on HP-UX 11. 11673 hpux11*) gl_cv_func_printf_flag_leftadjust="guessing yes";; 11674 # Guess no on HP-UX 10 and older. 11675 hpux*) gl_cv_func_printf_flag_leftadjust="guessing no";; 11676 # Guess yes otherwise. 11677 *) gl_cv_func_printf_flag_leftadjust="guessing yes";; 11678 esac 11679 11680 else 11681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11682 /* end confdefs.h. */ 11683 11684 #include <stdio.h> 11685 #include <string.h> 11686 static char buf[100]; 11687 int main () 11688 { 11689 /* Check that a '-' flag is not annihilated by a negative width. */ 11690 if (sprintf (buf, "a%-*sc", -3, "b") < 0 11691 || strcmp (buf, "ab c") != 0) 11692 return 1; 11693 return 0; 11694 } 11695 _ACEOF 11696 if ac_fn_c_try_run "$LINENO"; then : 11697 gl_cv_func_printf_flag_leftadjust=yes 11698 else 11699 gl_cv_func_printf_flag_leftadjust=no 11700 fi 11701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11702 conftest.$ac_objext conftest.beam conftest.$ac_ext 11703 fi 11704 11705 11706 fi 11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_flag_leftadjust" >&5 11708 $as_echo "$gl_cv_func_printf_flag_leftadjust" >&6; } 11709 11710 11711 11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the zero flag correctly" >&5 11713 $as_echo_n "checking whether printf supports the zero flag correctly... " >&6; } 11714 if ${gl_cv_func_printf_flag_zero+:} false; then : 11715 $as_echo_n "(cached) " >&6 11716 else 11717 11718 if test "$cross_compiling" = yes; then : 11719 11720 case "$host_os" in 11721 # Guess yes on glibc systems. 11722 *-gnu*) gl_cv_func_printf_flag_zero="guessing yes";; 11723 # Guess yes on BeOS. 11724 beos*) gl_cv_func_printf_flag_zero="guessing yes";; 11725 # If we don't know, assume the worst. 11726 *) gl_cv_func_printf_flag_zero="guessing no";; 11727 esac 11728 11729 else 11730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11731 /* end confdefs.h. */ 11732 11733 #include <stdio.h> 11734 #include <string.h> 11735 static char buf[100]; 11736 static double zero = 0.0; 11737 int main () 11738 { 11739 if (sprintf (buf, "%010f", 1.0 / zero, 33, 44, 55) < 0 11740 || (strcmp (buf, " inf") != 0 11741 && strcmp (buf, " infinity") != 0)) 11742 return 1; 11743 return 0; 11744 } 11745 _ACEOF 11746 if ac_fn_c_try_run "$LINENO"; then : 11747 gl_cv_func_printf_flag_zero=yes 11748 else 11749 gl_cv_func_printf_flag_zero=no 11750 fi 11751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11752 conftest.$ac_objext conftest.beam conftest.$ac_ext 11753 fi 11754 11755 11756 fi 11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_flag_zero" >&5 11758 $as_echo "$gl_cv_func_printf_flag_zero" >&6; } 11759 11760 11761 11762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports large precisions" >&5 11763 $as_echo_n "checking whether printf supports large precisions... " >&6; } 11764 if ${gl_cv_func_printf_precision+:} false; then : 11765 $as_echo_n "(cached) " >&6 11766 else 11767 11768 if test "$cross_compiling" = yes; then : 11769 11770 case "$host_os" in 11771 # Guess no only on Solaris, native Windows, and BeOS systems. 11772 solaris*) gl_cv_func_printf_precision="guessing no" ;; 11773 mingw* | pw*) gl_cv_func_printf_precision="guessing no" ;; 11774 beos*) gl_cv_func_printf_precision="guessing no" ;; 11775 *) gl_cv_func_printf_precision="guessing yes" ;; 11776 esac 11777 11778 else 11779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11780 /* end confdefs.h. */ 11781 11782 #include <stdio.h> 11783 #include <string.h> 11784 static char buf[5000]; 11785 int main () 11786 { 11787 int result = 0; 11788 #ifdef __BEOS__ 11789 /* On BeOS, this would crash and show a dialog box. Avoid the crash. */ 11790 return 1; 11791 #endif 11792 if (sprintf (buf, "%.4000d %d", 1, 33, 44) < 4000 + 3) 11793 result |= 1; 11794 if (sprintf (buf, "%.4000f %d", 1.0, 33, 44) < 4000 + 5) 11795 result |= 2; 11796 if (sprintf (buf, "%.511f %d", 1.0, 33, 44) < 511 + 5 11797 || buf[0] != '1') 11798 result |= 4; 11799 if (sprintf (buf, "%.999f %d", 1.0, 33, 44) < 999 + 5 11800 || buf[0] != '1') 11801 result |= 4; 11802 return result; 11803 } 11804 _ACEOF 11805 if ac_fn_c_try_run "$LINENO"; then : 11806 gl_cv_func_printf_precision=yes 11807 else 11808 gl_cv_func_printf_precision=no 11809 fi 11810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11811 conftest.$ac_objext conftest.beam conftest.$ac_ext 11812 fi 11813 11814 11815 fi 11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_precision" >&5 11817 $as_echo "$gl_cv_func_printf_precision" >&6; } 11818 11819 11820 gl_cv_c_multiarch=no 11821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11822 /* end confdefs.h. */ 11823 #ifndef __APPLE_CC__ 11824 not a universal capable compiler 11825 #endif 11826 typedef int dummy; 11827 11828 _ACEOF 11829 if ac_fn_c_try_compile "$LINENO"; then : 11830 11831 arch= 11832 prev= 11833 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do 11834 if test -n "$prev"; then 11835 case $word in 11836 i?86 | x86_64 | ppc | ppc64) 11837 if test -z "$arch" || test "$arch" = "$word"; then 11838 arch="$word" 11839 else 11840 gl_cv_c_multiarch=yes 11841 fi 11842 ;; 11843 esac 11844 prev= 11845 else 11846 if test "x$word" = "x-arch"; then 11847 prev=arch 11848 fi 11849 fi 11850 done 11851 11852 fi 11853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11854 if test $gl_cv_c_multiarch = yes; then 11855 APPLE_UNIVERSAL_BUILD=1 11856 else 11857 APPLE_UNIVERSAL_BUILD=0 11858 fi 11859 11860 11861 11862 11863 11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf survives out-of-memory conditions" >&5 11865 $as_echo_n "checking whether printf survives out-of-memory conditions... " >&6; } 11866 if ${gl_cv_func_printf_enomem+:} false; then : 11867 $as_echo_n "(cached) " >&6 11868 else 11869 11870 gl_cv_func_printf_enomem="guessing no" 11871 if test "$cross_compiling" = no; then 11872 if test $APPLE_UNIVERSAL_BUILD = 0; then 11873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11874 /* end confdefs.h. */ 11875 11876 11877 #include <stdlib.h> 11878 #if defined __MACH__ && defined __APPLE__ 11879 /* Avoid a crash on Mac OS X. */ 11880 #include <mach/mach.h> 11881 #include <mach/mach_error.h> 11882 #include <mach/thread_status.h> 11883 #include <mach/exception.h> 11884 #include <mach/task.h> 11885 #include <pthread.h> 11886 /* The exception port on which our thread listens. */ 11887 static mach_port_t our_exception_port; 11888 /* The main function of the thread listening for exceptions of type 11889 EXC_BAD_ACCESS. */ 11890 static void * 11891 mach_exception_thread (void *arg) 11892 { 11893 /* Buffer for a message to be received. */ 11894 struct { 11895 mach_msg_header_t head; 11896 mach_msg_body_t msgh_body; 11897 char data1024; 11898 } msg; 11899 mach_msg_return_t retval; 11900 /* Wait for a message on the exception port. */ 11901 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg), 11902 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL); 11903 if (retval != MACH_MSG_SUCCESS) 11904 abort (); 11905 exit (1); 11906 } 11907 static void 11908 nocrash_init (void) 11909 { 11910 mach_port_t self = mach_task_self (); 11911 /* Allocate a port on which the thread shall listen for exceptions. */ 11912 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port) 11913 == KERN_SUCCESS) { 11914 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */ 11915 if (mach_port_insert_right (self, our_exception_port, our_exception_port, 11916 MACH_MSG_TYPE_MAKE_SEND) 11917 == KERN_SUCCESS) { 11918 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting 11919 for us. */ 11920 exception_mask_t mask = EXC_MASK_BAD_ACCESS; 11921 /* Create the thread listening on the exception port. */ 11922 pthread_attr_t attr; 11923 pthread_t thread; 11924 if (pthread_attr_init (&attr) == 0 11925 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0 11926 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) { 11927 pthread_attr_destroy (&attr); 11928 /* Replace the exception port info for these exceptions with our own. 11929 Note that we replace the exception port for the entire task, not only 11930 for a particular thread. This has the effect that when our exception 11931 port gets the message, the thread specific exception port has already 11932 been asked, and we don't need to bother about it. 11933 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */ 11934 task_set_exception_ports (self, mask, our_exception_port, 11935 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE); 11936 } 11937 } 11938 } 11939 } 11940 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ 11941 /* Avoid a crash on native Windows. */ 11942 #define WIN32_LEAN_AND_MEAN 11943 #include <windows.h> 11944 #include <winerror.h> 11945 static LONG WINAPI 11946 exception_filter (EXCEPTION_POINTERS *ExceptionInfo) 11947 { 11948 switch (ExceptionInfo->ExceptionRecord->ExceptionCode) 11949 { 11950 case EXCEPTION_ACCESS_VIOLATION: 11951 case EXCEPTION_IN_PAGE_ERROR: 11952 case EXCEPTION_STACK_OVERFLOW: 11953 case EXCEPTION_GUARD_PAGE: 11954 case EXCEPTION_PRIV_INSTRUCTION: 11955 case EXCEPTION_ILLEGAL_INSTRUCTION: 11956 case EXCEPTION_DATATYPE_MISALIGNMENT: 11957 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED: 11958 case EXCEPTION_NONCONTINUABLE_EXCEPTION: 11959 exit (1); 11960 } 11961 return EXCEPTION_CONTINUE_SEARCH; 11962 } 11963 static void 11964 nocrash_init (void) 11965 { 11966 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter); 11967 } 11968 #else 11969 /* Avoid a crash on POSIX systems. */ 11970 #include <signal.h> 11971 /* A POSIX signal handler. */ 11972 static void 11973 exception_handler (int sig) 11974 { 11975 exit (1); 11976 } 11977 static void 11978 nocrash_init (void) 11979 { 11980 #ifdef SIGSEGV 11981 signal (SIGSEGV, exception_handler); 11982 #endif 11983 #ifdef SIGBUS 11984 signal (SIGBUS, exception_handler); 11985 #endif 11986 } 11987 #endif 11988 11989 #include <stdio.h> 11990 #include <sys/types.h> 11991 #include <sys/time.h> 11992 #include <sys/resource.h> 11993 #include <errno.h> 11994 int main() 11995 { 11996 struct rlimit limit; 11997 int ret; 11998 nocrash_init (); 11999 /* Some printf implementations allocate temporary space with malloc. */ 12000 /* On BSD systems, malloc() is limited by RLIMIT_DATA. */ 12001 #ifdef RLIMIT_DATA 12002 if (getrlimit (RLIMIT_DATA, &limit) < 0) 12003 return 77; 12004 if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000) 12005 limit.rlim_max = 5000000; 12006 limit.rlim_cur = limit.rlim_max; 12007 if (setrlimit (RLIMIT_DATA, &limit) < 0) 12008 return 77; 12009 #endif 12010 /* On Linux systems, malloc() is limited by RLIMIT_AS. */ 12011 #ifdef RLIMIT_AS 12012 if (getrlimit (RLIMIT_AS, &limit) < 0) 12013 return 77; 12014 if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000) 12015 limit.rlim_max = 5000000; 12016 limit.rlim_cur = limit.rlim_max; 12017 if (setrlimit (RLIMIT_AS, &limit) < 0) 12018 return 77; 12019 #endif 12020 /* Some printf implementations allocate temporary space on the stack. */ 12021 #ifdef RLIMIT_STACK 12022 if (getrlimit (RLIMIT_STACK, &limit) < 0) 12023 return 77; 12024 if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000) 12025 limit.rlim_max = 5000000; 12026 limit.rlim_cur = limit.rlim_max; 12027 if (setrlimit (RLIMIT_STACK, &limit) < 0) 12028 return 77; 12029 #endif 12030 ret = printf ("%.5000000f", 1.0); 12031 return !(ret == 5000002 || (ret < 0 && errno == ENOMEM)); 12032 } 12033 12034 _ACEOF 12035 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12036 (eval $ac_link) 2>&5 12037 ac_status=$? 12038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12039 test $ac_status = 0; } && test -s conftest$ac_exeext; then 12040 (./conftest 2>&5 12041 result=$? 12042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $result" >&5 12043 if test $result != 0 && test $result != 77; then result=1; fi 12044 exit $result 12045 ) >/dev/null 2>/dev/null 12046 case $? in 12047 0) gl_cv_func_printf_enomem="yes" ;; 12048 77) gl_cv_func_printf_enomem="guessing no" ;; 12049 *) gl_cv_func_printf_enomem="no" ;; 12050 esac 12051 else 12052 gl_cv_func_printf_enomem="guessing no" 12053 fi 12054 rm -fr conftest* 12055 else 12056 gl_cv_func_printf_enomem="guessing no" 12057 fi 12058 fi 12059 if test "$gl_cv_func_printf_enomem" = "guessing no"; then 12060 case "$host_os" in 12061 # Guess yes on glibc systems. 12062 *-gnu*) gl_cv_func_printf_enomem="guessing yes";; 12063 # Guess yes on Solaris. 12064 solaris*) gl_cv_func_printf_enomem="guessing yes";; 12065 # Guess yes on AIX. 12066 aix*) gl_cv_func_printf_enomem="guessing yes";; 12067 # Guess yes on HP-UX/hppa. 12068 hpux*) case "$host_cpu" in 12069 hppa*) gl_cv_func_printf_enomem="guessing yes";; 12070 *) gl_cv_func_printf_enomem="guessing no";; 12071 esac 12072 ;; 12073 # Guess yes on IRIX. 12074 irix*) gl_cv_func_printf_enomem="guessing yes";; 12075 # Guess yes on OSF/1. 12076 osf*) gl_cv_func_printf_enomem="guessing yes";; 12077 # Guess yes on BeOS. 12078 beos*) gl_cv_func_printf_enomem="guessing yes";; 12079 # Guess yes on Haiku. 12080 haiku*) gl_cv_func_printf_enomem="guessing yes";; 12081 # If we don't know, assume the worst. 12082 *) gl_cv_func_printf_enomem="guessing no";; 12083 esac 12084 fi 12085 12086 fi 12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_enomem" >&5 12088 $as_echo "$gl_cv_func_printf_enomem" >&6; } 12089 12090 12091 12092 case "$gl_cv_func_printf_long_double" in 12093 *yes) 12094 ;; 12095 *) 12096 12097 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h 12098 12099 ;; 12100 esac 12101 12102 12103 12104 12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 12106 $as_echo_n "checking for unsigned long long int... " >&6; } 12107 if ${ac_cv_type_unsigned_long_long_int+:} false; then : 12108 $as_echo_n "(cached) " >&6 12109 else 12110 ac_cv_type_unsigned_long_long_int=yes 12111 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 12112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12113 /* end confdefs.h. */ 12114 12115 /* For now, do not test the preprocessor; as of 2007 there are too many 12116 implementations with broken preprocessors. Perhaps this can 12117 be revisited in 2012. In the meantime, code should not expect 12118 #if to work with literals wider than 32 bits. */ 12119 /* Test literals. */ 12120 long long int ll = 9223372036854775807ll; 12121 long long int nll = -9223372036854775807LL; 12122 unsigned long long int ull = 18446744073709551615ULL; 12123 /* Test constant expressions. */ 12124 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 12125 ? 1 : -1)]; 12126 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 12127 ? 1 : -1)]; 12128 int i = 63; 12129 int 12130 main () 12131 { 12132 /* Test availability of runtime routines for shift and division. */ 12133 long long int llmax = 9223372036854775807ll; 12134 unsigned long long int ullmax = 18446744073709551615ull; 12135 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 12136 | (llmax / ll) | (llmax % ll) 12137 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 12138 | (ullmax / ull) | (ullmax % ull)); 12139 ; 12140 return 0; 12141 } 12142 12143 _ACEOF 12144 if ac_fn_c_try_link "$LINENO"; then : 12145 12146 else 12147 ac_cv_type_unsigned_long_long_int=no 12148 fi 12149 rm -f core conftest.err conftest.$ac_objext \ 12150 conftest$ac_exeext conftest.$ac_ext 12151 fi 12152 fi 12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 12154 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 12155 if test $ac_cv_type_unsigned_long_long_int = yes; then 12156 12157 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 12158 12159 fi 12160 12161 12162 12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 12164 $as_echo_n "checking for long long int... " >&6; } 12165 if ${ac_cv_type_long_long_int+:} false; then : 12166 $as_echo_n "(cached) " >&6 12167 else 12168 ac_cv_type_long_long_int=yes 12169 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 12170 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int 12171 if test $ac_cv_type_long_long_int = yes; then 12172 if test "$cross_compiling" = yes; then : 12173 : 12174 else 12175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12176 /* end confdefs.h. */ 12177 #include <limits.h> 12178 #ifndef LLONG_MAX 12179 # define HALF \ 12180 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 12181 # define LLONG_MAX (HALF - 1 + HALF) 12182 #endif 12183 int 12184 main () 12185 { 12186 long long int n = 1; 12187 int i; 12188 for (i = 0; ; i++) 12189 { 12190 long long int m = n << i; 12191 if (m >> i != n) 12192 return 1; 12193 if (LLONG_MAX / 2 < m) 12194 break; 12195 } 12196 return 0; 12197 ; 12198 return 0; 12199 } 12200 _ACEOF 12201 if ac_fn_c_try_run "$LINENO"; then : 12202 12203 else 12204 ac_cv_type_long_long_int=no 12205 fi 12206 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12207 conftest.$ac_objext conftest.beam conftest.$ac_ext 12208 fi 12209 12210 fi 12211 fi 12212 fi 12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 12214 $as_echo "$ac_cv_type_long_long_int" >&6; } 12215 if test $ac_cv_type_long_long_int = yes; then 12216 12217 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 12218 12219 fi 12220 12221 12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 12223 $as_echo_n "checking for wchar_t... " >&6; } 12224 if ${gt_cv_c_wchar_t+:} false; then : 12225 $as_echo_n "(cached) " >&6 12226 else 12227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12228 /* end confdefs.h. */ 12229 #include <stddef.h> 12230 wchar_t foo = (wchar_t)'\0'; 12231 int 12232 main () 12233 { 12234 12235 ; 12236 return 0; 12237 } 12238 _ACEOF 12239 if ac_fn_c_try_compile "$LINENO"; then : 12240 gt_cv_c_wchar_t=yes 12241 else 12242 gt_cv_c_wchar_t=no 12243 fi 12244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12245 fi 12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 12247 $as_echo "$gt_cv_c_wchar_t" >&6; } 12248 if test $gt_cv_c_wchar_t = yes; then 12249 12250 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h 12251 12252 fi 12253 12254 12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 12256 $as_echo_n "checking for wint_t... " >&6; } 12257 if ${gt_cv_c_wint_t+:} false; then : 12258 $as_echo_n "(cached) " >&6 12259 else 12260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12261 /* end confdefs.h. */ 12262 12263 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 12264 <wchar.h>. 12265 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included 12266 before <wchar.h>. */ 12267 #include <stddef.h> 12268 #include <stdio.h> 12269 #include <time.h> 12270 #include <wchar.h> 12271 wint_t foo = (wchar_t)'\0'; 12272 int 12273 main () 12274 { 12275 12276 ; 12277 return 0; 12278 } 12279 _ACEOF 12280 if ac_fn_c_try_compile "$LINENO"; then : 12281 gt_cv_c_wint_t=yes 12282 else 12283 gt_cv_c_wint_t=no 12284 fi 12285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12286 fi 12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 12288 $as_echo "$gt_cv_c_wint_t" >&6; } 12289 if test $gt_cv_c_wint_t = yes; then 12290 12291 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h 12292 12293 fi 12294 12295 12296 12297 12298 12299 if test $ac_cv_header_features_h = yes; then 12300 HAVE_FEATURES_H=1 12301 else 12302 HAVE_FEATURES_H=0 12303 fi 12304 12305 12306 12307 12308 12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 12310 $as_echo_n "checking for intmax_t... " >&6; } 12311 if ${gt_cv_c_intmax_t+:} false; then : 12312 $as_echo_n "(cached) " >&6 12313 else 12314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12315 /* end confdefs.h. */ 12316 12317 #include <stddef.h> 12318 #include <stdlib.h> 12319 #if HAVE_STDINT_H_WITH_UINTMAX 12320 #include <stdint.h> 12321 #endif 12322 #if HAVE_INTTYPES_H_WITH_UINTMAX 12323 #include <inttypes.h> 12324 #endif 12325 12326 int 12327 main () 12328 { 12329 intmax_t x = -1; return !x; 12330 ; 12331 return 0; 12332 } 12333 _ACEOF 12334 if ac_fn_c_try_compile "$LINENO"; then : 12335 gt_cv_c_intmax_t=yes 12336 else 12337 gt_cv_c_intmax_t=no 12338 fi 12339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12340 fi 12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5 12342 $as_echo "$gt_cv_c_intmax_t" >&6; } 12343 if test $gt_cv_c_intmax_t = yes; then 12344 12345 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h 12346 12347 else 12348 12349 test $ac_cv_type_long_long_int = yes \ 12350 && ac_type='long long' \ 12351 || ac_type='long' 12352 12353 cat >>confdefs.h <<_ACEOF 12354 #define intmax_t $ac_type 12355 _ACEOF 12356 12357 fi 12358 12359 12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5 12361 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; } 12362 if ${gl_cv_cc_double_expbit0+:} false; then : 12363 $as_echo_n "(cached) " >&6 12364 else 12365 12366 if test "$cross_compiling" = yes; then : 12367 12368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12369 /* end confdefs.h. */ 12370 12371 #if defined arm || defined __arm || defined __arm__ 12372 mixed_endianness 12373 #endif 12374 12375 _ACEOF 12376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12377 $EGREP "mixed_endianness" >/dev/null 2>&1; then : 12378 gl_cv_cc_double_expbit0="unknown" 12379 else 12380 12381 : 12382 if ${ac_cv_c_bigendian+:} false; then : 12383 $as_echo_n "(cached) " >&6 12384 else 12385 ac_cv_c_bigendian=unknown 12386 # See if we're dealing with a universal compiler. 12387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12388 /* end confdefs.h. */ 12389 #ifndef __APPLE_CC__ 12390 not a universal capable compiler 12391 #endif 12392 typedef int dummy; 12393 12394 _ACEOF 12395 if ac_fn_c_try_compile "$LINENO"; then : 12396 12397 # Check for potential -arch flags. It is not universal unless 12398 # there are at least two -arch flags with different values. 12399 ac_arch= 12400 ac_prev= 12401 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 12402 if test -n "$ac_prev"; then 12403 case $ac_word in 12404 i?86 | x86_64 | ppc | ppc64) 12405 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 12406 ac_arch=$ac_word 12407 else 12408 ac_cv_c_bigendian=universal 12409 break 12410 fi 12411 ;; 12412 esac 12413 ac_prev= 12414 elif test "x$ac_word" = "x-arch"; then 12415 ac_prev=arch 12416 fi 12417 done 12418 fi 12419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12420 if test $ac_cv_c_bigendian = unknown; then 12421 # See if sys/param.h defines the BYTE_ORDER macro. 12422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12423 /* end confdefs.h. */ 12424 #include <sys/types.h> 12425 #include <sys/param.h> 12426 12427 int 12428 main () 12429 { 12430 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 12431 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 12432 && LITTLE_ENDIAN) 12433 bogus endian macros 12434 #endif 12435 12436 ; 12437 return 0; 12438 } 12439 _ACEOF 12440 if ac_fn_c_try_compile "$LINENO"; then : 12441 # It does; now see whether it defined to BIG_ENDIAN or not. 12442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12443 /* end confdefs.h. */ 12444 #include <sys/types.h> 12445 #include <sys/param.h> 12446 12447 int 12448 main () 12449 { 12450 #if BYTE_ORDER != BIG_ENDIAN 12451 not big endian 12452 #endif 12453 12454 ; 12455 return 0; 12456 } 12457 _ACEOF 12458 if ac_fn_c_try_compile "$LINENO"; then : 12459 ac_cv_c_bigendian=yes 12460 else 12461 ac_cv_c_bigendian=no 12462 fi 12463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12464 fi 12465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12466 fi 12467 if test $ac_cv_c_bigendian = unknown; then 12468 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 12469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12470 /* end confdefs.h. */ 12471 #include <limits.h> 12472 12473 int 12474 main () 12475 { 12476 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 12477 bogus endian macros 12478 #endif 12479 12480 ; 12481 return 0; 12482 } 12483 _ACEOF 12484 if ac_fn_c_try_compile "$LINENO"; then : 12485 # It does; now see whether it defined to _BIG_ENDIAN or not. 12486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12487 /* end confdefs.h. */ 12488 #include <limits.h> 12489 12490 int 12491 main () 12492 { 12493 #ifndef _BIG_ENDIAN 12494 not big endian 12495 #endif 12496 12497 ; 12498 return 0; 12499 } 12500 _ACEOF 12501 if ac_fn_c_try_compile "$LINENO"; then : 12502 ac_cv_c_bigendian=yes 12503 else 12504 ac_cv_c_bigendian=no 12505 fi 12506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12507 fi 12508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12509 fi 12510 if test $ac_cv_c_bigendian = unknown; then 12511 # Compile a test program. 12512 if test "$cross_compiling" = yes; then : 12513 # Try to guess by grepping values from an object file. 12514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12515 /* end confdefs.h. */ 12516 short int ascii_mm[] = 12517 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 12518 short int ascii_ii[] = 12519 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 12520 int use_ascii (int i) { 12521 return ascii_mm[i] + ascii_ii[i]; 12522 } 12523 short int ebcdic_ii[] = 12524 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 12525 short int ebcdic_mm[] = 12526 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 12527 int use_ebcdic (int i) { 12528 return ebcdic_mm[i] + ebcdic_ii[i]; 12529 } 12530 extern int foo; 12531 12532 int 12533 main () 12534 { 12535 return use_ascii (foo) == use_ebcdic (foo); 12536 ; 12537 return 0; 12538 } 12539 _ACEOF 12540 if ac_fn_c_try_compile "$LINENO"; then : 12541 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 12542 ac_cv_c_bigendian=yes 12543 fi 12544 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 12545 if test "$ac_cv_c_bigendian" = unknown; then 12546 ac_cv_c_bigendian=no 12547 else 12548 # finding both strings is unlikely to happen, but who knows? 12549 ac_cv_c_bigendian=unknown 12550 fi 12551 fi 12552 fi 12553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12554 else 12555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12556 /* end confdefs.h. */ 12557 $ac_includes_default 12558 int 12559 main () 12560 { 12561 12562 /* Are we little or big endian? From Harbison&Steele. */ 12563 union 12564 { 12565 long int l; 12566 char c[sizeof (long int)]; 12567 } u; 12568 u.l = 1; 12569 return u.c[sizeof (long int) - 1] == 1; 12570 12571 ; 12572 return 0; 12573 } 12574 _ACEOF 12575 if ac_fn_c_try_run "$LINENO"; then : 12576 ac_cv_c_bigendian=no 12577 else 12578 ac_cv_c_bigendian=yes 12579 fi 12580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12581 conftest.$ac_objext conftest.beam conftest.$ac_ext 12582 fi 12583 12584 fi 12585 fi 12586 : 12587 case $ac_cv_c_bigendian in #( 12588 yes) 12589 gl_cv_cc_double_expbit0="word 0 bit 20";; #( 12590 no) 12591 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #( 12592 universal) 12593 12594 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 12595 12596 ;; #( 12597 *) 12598 gl_cv_cc_double_expbit0="unknown" ;; 12599 esac 12600 12601 12602 fi 12603 rm -f conftest* 12604 12605 12606 else 12607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12608 /* end confdefs.h. */ 12609 12610 #include <float.h> 12611 #include <stddef.h> 12612 #include <stdio.h> 12613 #include <string.h> 12614 #define NWORDS \ 12615 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int)) 12616 typedef union { double value; unsigned int word[NWORDS]; } memory_double; 12617 static unsigned int ored_words[NWORDS]; 12618 static unsigned int anded_words[NWORDS]; 12619 static void add_to_ored_words (double x) 12620 { 12621 memory_double m; 12622 size_t i; 12623 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */ 12624 memset (&m, 0, sizeof (memory_double)); 12625 m.value = x; 12626 for (i = 0; i < NWORDS; i++) 12627 { 12628 ored_words[i] |= m.word[i]; 12629 anded_words[i] &= m.word[i]; 12630 } 12631 } 12632 int main () 12633 { 12634 size_t j; 12635 FILE *fp = fopen ("conftest.out", "w"); 12636 if (fp == NULL) 12637 return 1; 12638 for (j = 0; j < NWORDS; j++) 12639 anded_words[j] = ~ (unsigned int) 0; 12640 add_to_ored_words (0.25); 12641 add_to_ored_words (0.5); 12642 add_to_ored_words (1.0); 12643 add_to_ored_words (2.0); 12644 add_to_ored_words (4.0); 12645 /* Remove bits that are common (e.g. if representation of the first mantissa 12646 bit is explicit). */ 12647 for (j = 0; j < NWORDS; j++) 12648 ored_words[j] &= ~anded_words[j]; 12649 /* Now find the nonzero word. */ 12650 for (j = 0; j < NWORDS; j++) 12651 if (ored_words[j] != 0) 12652 break; 12653 if (j < NWORDS) 12654 { 12655 size_t i; 12656 for (i = j + 1; i < NWORDS; i++) 12657 if (ored_words[i] != 0) 12658 { 12659 fprintf (fp, "unknown"); 12660 return (fclose (fp) != 0); 12661 } 12662 for (i = 0; ; i++) 12663 if ((ored_words[j] >> i) & 1) 12664 { 12665 fprintf (fp, "word %d bit %d", (int) j, (int) i); 12666 return (fclose (fp) != 0); 12667 } 12668 } 12669 fprintf (fp, "unknown"); 12670 return (fclose (fp) != 0); 12671 } 12672 12673 _ACEOF 12674 if ac_fn_c_try_run "$LINENO"; then : 12675 gl_cv_cc_double_expbit0=`cat conftest.out` 12676 else 12677 gl_cv_cc_double_expbit0="unknown" 12678 fi 12679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12680 conftest.$ac_objext conftest.beam conftest.$ac_ext 12681 fi 12682 12683 rm -f conftest.out 12684 12685 fi 12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5 12687 $as_echo "$gl_cv_cc_double_expbit0" >&6; } 12688 case "$gl_cv_cc_double_expbit0" in 12689 word*bit*) 12690 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'` 12691 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'` 12692 12693 cat >>confdefs.h <<_ACEOF 12694 #define DBL_EXPBIT0_WORD $word 12695 _ACEOF 12696 12697 12698 cat >>confdefs.h <<_ACEOF 12699 #define DBL_EXPBIT0_BIT $bit 12700 _ACEOF 12701 12702 ;; 12703 esac 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5 12714 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; } 12715 if ${gl_cv_func_snprintf_retval_c99+:} false; then : 12716 $as_echo_n "(cached) " >&6 12717 else 12718 12719 if test "$cross_compiling" = yes; then : 12720 12721 case "$host_os" in 12722 # Guess yes on glibc systems. 12723 *-gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";; 12724 # Guess yes on FreeBSD >= 5. 12725 freebsd[1-4]*) gl_cv_func_snprintf_retval_c99="guessing no";; 12726 freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";; 12727 # Guess yes on Mac OS X >= 10.3. 12728 darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";; 12729 darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";; 12730 # Guess yes on OpenBSD >= 3.9. 12731 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*) 12732 gl_cv_func_snprintf_retval_c99="guessing no";; 12733 openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";; 12734 # Guess yes on Solaris >= 2.10. 12735 solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";; 12736 solaris*) gl_cv_func_printf_sizes_c99="guessing no";; 12737 # Guess yes on AIX >= 4. 12738 aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";; 12739 aix*) gl_cv_func_snprintf_retval_c99="guessing yes";; 12740 # Guess yes on NetBSD >= 3. 12741 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*) 12742 gl_cv_func_snprintf_retval_c99="guessing no";; 12743 netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";; 12744 # Guess yes on BeOS. 12745 beos*) gl_cv_func_snprintf_retval_c99="guessing yes";; 12746 # If we don't know, assume the worst. 12747 *) gl_cv_func_snprintf_retval_c99="guessing no";; 12748 esac 12749 12750 else 12751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12752 /* end confdefs.h. */ 12753 12754 #include <stdio.h> 12755 #include <string.h> 12756 #if HAVE_SNPRINTF 12757 # define my_snprintf snprintf 12758 #else 12759 # include <stdarg.h> 12760 static int my_snprintf (char *buf, int size, const char *format, ...) 12761 { 12762 va_list args; 12763 int ret; 12764 va_start (args, format); 12765 ret = vsnprintf (buf, size, format, args); 12766 va_end (args); 12767 return ret; 12768 } 12769 #endif 12770 static char buf[100]; 12771 int main () 12772 { 12773 strcpy (buf, "ABCDEF"); 12774 if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7) 12775 return 1; 12776 if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7) 12777 return 2; 12778 if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7) 12779 return 3; 12780 return 0; 12781 } 12782 _ACEOF 12783 if ac_fn_c_try_run "$LINENO"; then : 12784 gl_cv_func_snprintf_retval_c99=yes 12785 else 12786 gl_cv_func_snprintf_retval_c99=no 12787 fi 12788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12789 conftest.$ac_objext conftest.beam conftest.$ac_ext 12790 fi 12791 12792 12793 fi 12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5 12795 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; } 12796 12797 12798 12799 12800 12801 12802 for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb 12803 do : 12804 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12805 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12806 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12807 cat >>confdefs.h <<_ACEOF 12808 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12809 _ACEOF 12810 12811 fi 12812 done 12813 12814 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h> 12815 " 12816 if test "x$ac_cv_have_decl__snprintf" = xyes; then : 12817 ac_have_decl=1 12818 else 12819 ac_have_decl=0 12820 fi 12821 12822 cat >>confdefs.h <<_ACEOF 12823 #define HAVE_DECL__SNPRINTF $ac_have_decl 12824 _ACEOF 12825 12826 12827 12828 case "$gl_cv_func_snprintf_retval_c99" in 12829 *yes) 12830 12831 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h 12832 12833 ;; 12834 esac 12835 12836 12837 GNULIB_ACOSF=0; 12838 GNULIB_ACOSL=0; 12839 GNULIB_ASINF=0; 12840 GNULIB_ASINL=0; 12841 GNULIB_ATANF=0; 12842 GNULIB_ATANL=0; 12843 GNULIB_ATAN2F=0; 12844 GNULIB_CBRT=0; 12845 GNULIB_CBRTF=0; 12846 GNULIB_CBRTL=0; 12847 GNULIB_CEIL=0; 12848 GNULIB_CEILF=0; 12849 GNULIB_CEILL=0; 12850 GNULIB_COPYSIGN=0; 12851 GNULIB_COPYSIGNF=0; 12852 GNULIB_COPYSIGNL=0; 12853 GNULIB_COSF=0; 12854 GNULIB_COSL=0; 12855 GNULIB_COSHF=0; 12856 GNULIB_EXPF=0; 12857 GNULIB_EXPL=0; 12858 GNULIB_EXP2=0; 12859 GNULIB_EXP2F=0; 12860 GNULIB_EXP2L=0; 12861 GNULIB_EXPM1=0; 12862 GNULIB_EXPM1F=0; 12863 GNULIB_EXPM1L=0; 12864 GNULIB_FABSF=0; 12865 GNULIB_FABSL=0; 12866 GNULIB_FLOOR=0; 12867 GNULIB_FLOORF=0; 12868 GNULIB_FLOORL=0; 12869 GNULIB_FMA=0; 12870 GNULIB_FMAF=0; 12871 GNULIB_FMAL=0; 12872 GNULIB_FMOD=0; 12873 GNULIB_FMODF=0; 12874 GNULIB_FMODL=0; 12875 GNULIB_FREXPF=0; 12876 GNULIB_FREXP=0; 12877 GNULIB_FREXPL=0; 12878 GNULIB_HYPOT=0; 12879 GNULIB_HYPOTF=0; 12880 GNULIB_HYPOTL=0; 12881 GNULIB_ILOGB=0; 12882 GNULIB_ILOGBF=0; 12883 GNULIB_ILOGBL=0; 12884 GNULIB_ISFINITE=0; 12885 GNULIB_ISINF=0; 12886 GNULIB_ISNAN=0; 12887 GNULIB_ISNANF=0; 12888 GNULIB_ISNAND=0; 12889 GNULIB_ISNANL=0; 12890 GNULIB_LDEXPF=0; 12891 GNULIB_LDEXPL=0; 12892 GNULIB_LOG=0; 12893 GNULIB_LOGF=0; 12894 GNULIB_LOGL=0; 12895 GNULIB_LOG10=0; 12896 GNULIB_LOG10F=0; 12897 GNULIB_LOG10L=0; 12898 GNULIB_LOG1P=0; 12899 GNULIB_LOG1PF=0; 12900 GNULIB_LOG1PL=0; 12901 GNULIB_LOG2=0; 12902 GNULIB_LOG2F=0; 12903 GNULIB_LOG2L=0; 12904 GNULIB_LOGB=0; 12905 GNULIB_LOGBF=0; 12906 GNULIB_LOGBL=0; 12907 GNULIB_MODF=0; 12908 GNULIB_MODFF=0; 12909 GNULIB_MODFL=0; 12910 GNULIB_POWF=0; 12911 GNULIB_REMAINDER=0; 12912 GNULIB_REMAINDERF=0; 12913 GNULIB_REMAINDERL=0; 12914 GNULIB_RINT=0; 12915 GNULIB_RINTF=0; 12916 GNULIB_RINTL=0; 12917 GNULIB_ROUND=0; 12918 GNULIB_ROUNDF=0; 12919 GNULIB_ROUNDL=0; 12920 GNULIB_SIGNBIT=0; 12921 GNULIB_SINF=0; 12922 GNULIB_SINL=0; 12923 GNULIB_SINHF=0; 12924 GNULIB_SQRTF=0; 12925 GNULIB_SQRTL=0; 12926 GNULIB_TANF=0; 12927 GNULIB_TANL=0; 12928 GNULIB_TANHF=0; 12929 GNULIB_TRUNC=0; 12930 GNULIB_TRUNCF=0; 12931 GNULIB_TRUNCL=0; 12932 HAVE_ACOSF=1; 12933 HAVE_ACOSL=1; 12934 HAVE_ASINF=1; 12935 HAVE_ASINL=1; 12936 HAVE_ATANF=1; 12937 HAVE_ATANL=1; 12938 HAVE_ATAN2F=1; 12939 HAVE_CBRT=1; 12940 HAVE_CBRTF=1; 12941 HAVE_CBRTL=1; 12942 HAVE_COPYSIGN=1; 12943 HAVE_COPYSIGNL=1; 12944 HAVE_COSF=1; 12945 HAVE_COSL=1; 12946 HAVE_COSHF=1; 12947 HAVE_EXPF=1; 12948 HAVE_EXPL=1; 12949 HAVE_EXPM1=1; 12950 HAVE_EXPM1F=1; 12951 HAVE_FABSF=1; 12952 HAVE_FABSL=1; 12953 HAVE_FMA=1; 12954 HAVE_FMAF=1; 12955 HAVE_FMAL=1; 12956 HAVE_FMODF=1; 12957 HAVE_FMODL=1; 12958 HAVE_FREXPF=1; 12959 HAVE_HYPOTF=1; 12960 HAVE_HYPOTL=1; 12961 HAVE_ILOGB=1; 12962 HAVE_ILOGBF=1; 12963 HAVE_ILOGBL=1; 12964 HAVE_ISNANF=1; 12965 HAVE_ISNAND=1; 12966 HAVE_ISNANL=1; 12967 HAVE_LDEXPF=1; 12968 HAVE_LOGF=1; 12969 HAVE_LOGL=1; 12970 HAVE_LOG10F=1; 12971 HAVE_LOG10L=1; 12972 HAVE_LOG1P=1; 12973 HAVE_LOG1PF=1; 12974 HAVE_LOG1PL=1; 12975 HAVE_LOGBF=1; 12976 HAVE_LOGBL=1; 12977 HAVE_MODFF=1; 12978 HAVE_MODFL=1; 12979 HAVE_POWF=1; 12980 HAVE_REMAINDER=1; 12981 HAVE_REMAINDERF=1; 12982 HAVE_RINT=1; 12983 HAVE_RINTL=1; 12984 HAVE_SINF=1; 12985 HAVE_SINL=1; 12986 HAVE_SINHF=1; 12987 HAVE_SQRTF=1; 12988 HAVE_SQRTL=1; 12989 HAVE_TANF=1; 12990 HAVE_TANL=1; 12991 HAVE_TANHF=1; 12992 HAVE_DECL_ACOSL=1; 12993 HAVE_DECL_ASINL=1; 12994 HAVE_DECL_ATANL=1; 12995 HAVE_DECL_CBRTF=1; 12996 HAVE_DECL_CBRTL=1; 12997 HAVE_DECL_CEILF=1; 12998 HAVE_DECL_CEILL=1; 12999 HAVE_DECL_COPYSIGNF=1; 13000 HAVE_DECL_COSL=1; 13001 HAVE_DECL_EXPL=1; 13002 HAVE_DECL_EXP2=1; 13003 HAVE_DECL_EXP2F=1; 13004 HAVE_DECL_EXP2L=1; 13005 HAVE_DECL_EXPM1L=1; 13006 HAVE_DECL_FLOORF=1; 13007 HAVE_DECL_FLOORL=1; 13008 HAVE_DECL_FREXPL=1; 13009 HAVE_DECL_LDEXPL=1; 13010 HAVE_DECL_LOGL=1; 13011 HAVE_DECL_LOG10L=1; 13012 HAVE_DECL_LOG2=1; 13013 HAVE_DECL_LOG2F=1; 13014 HAVE_DECL_LOG2L=1; 13015 HAVE_DECL_LOGB=1; 13016 HAVE_DECL_REMAINDER=1; 13017 HAVE_DECL_REMAINDERL=1; 13018 HAVE_DECL_RINTF=1; 13019 HAVE_DECL_ROUND=1; 13020 HAVE_DECL_ROUNDF=1; 13021 HAVE_DECL_ROUNDL=1; 13022 HAVE_DECL_SINL=1; 13023 HAVE_DECL_SQRTL=1; 13024 HAVE_DECL_TANL=1; 13025 HAVE_DECL_TRUNC=1; 13026 HAVE_DECL_TRUNCF=1; 13027 HAVE_DECL_TRUNCL=1; 13028 REPLACE_CBRTF=0; 13029 REPLACE_CBRTL=0; 13030 REPLACE_CEIL=0; 13031 REPLACE_CEILF=0; 13032 REPLACE_CEILL=0; 13033 REPLACE_EXPM1=0; 13034 REPLACE_EXPM1F=0; 13035 REPLACE_EXP2=0; 13036 REPLACE_EXP2L=0; 13037 REPLACE_FABSL=0; 13038 REPLACE_FLOOR=0; 13039 REPLACE_FLOORF=0; 13040 REPLACE_FLOORL=0; 13041 REPLACE_FMA=0; 13042 REPLACE_FMAF=0; 13043 REPLACE_FMAL=0; 13044 REPLACE_FMOD=0; 13045 REPLACE_FMODF=0; 13046 REPLACE_FMODL=0; 13047 REPLACE_FREXPF=0; 13048 REPLACE_FREXP=0; 13049 REPLACE_FREXPL=0; 13050 REPLACE_HUGE_VAL=0; 13051 REPLACE_HYPOT=0; 13052 REPLACE_HYPOTF=0; 13053 REPLACE_HYPOTL=0; 13054 REPLACE_ILOGB=0; 13055 REPLACE_ILOGBF=0; 13056 REPLACE_ISFINITE=0; 13057 REPLACE_ISINF=0; 13058 REPLACE_ISNAN=0; 13059 REPLACE_LDEXPL=0; 13060 REPLACE_LOG=0; 13061 REPLACE_LOGF=0; 13062 REPLACE_LOGL=0; 13063 REPLACE_LOG10=0; 13064 REPLACE_LOG10F=0; 13065 REPLACE_LOG10L=0; 13066 REPLACE_LOG1P=0; 13067 REPLACE_LOG1PF=0; 13068 REPLACE_LOG1PL=0; 13069 REPLACE_LOG2=0; 13070 REPLACE_LOG2F=0; 13071 REPLACE_LOG2L=0; 13072 REPLACE_LOGB=0; 13073 REPLACE_LOGBF=0; 13074 REPLACE_LOGBL=0; 13075 REPLACE_MODF=0; 13076 REPLACE_MODFF=0; 13077 REPLACE_MODFL=0; 13078 REPLACE_NAN=0; 13079 REPLACE_REMAINDER=0; 13080 REPLACE_REMAINDERF=0; 13081 REPLACE_REMAINDERL=0; 13082 REPLACE_ROUND=0; 13083 REPLACE_ROUNDF=0; 13084 REPLACE_ROUNDL=0; 13085 REPLACE_SIGNBIT=0; 13086 REPLACE_SIGNBIT_USING_GCC=0; 13087 REPLACE_SQRTL=0; 13088 REPLACE_TRUNC=0; 13089 REPLACE_TRUNCF=0; 13090 REPLACE_TRUNCL=0; 13091 13092 13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5 13094 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; } 13095 if ${gl_cv_func_frexp_no_libm+:} false; then : 13096 $as_echo_n "(cached) " >&6 13097 else 13098 13099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13100 /* end confdefs.h. */ 13101 #include <math.h> 13102 double x; 13103 int 13104 main () 13105 { 13106 int e; return frexp (x, &e) > 0; 13107 ; 13108 return 0; 13109 } 13110 _ACEOF 13111 if ac_fn_c_try_link "$LINENO"; then : 13112 gl_cv_func_frexp_no_libm=yes 13113 else 13114 gl_cv_func_frexp_no_libm=no 13115 fi 13116 rm -f core conftest.err conftest.$ac_objext \ 13117 conftest$ac_exeext conftest.$ac_ext 13118 13119 fi 13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5 13121 $as_echo "$gl_cv_func_frexp_no_libm" >&6; } 13122 13123 13124 13125 13126 13127 13128 GNULIB_FCHMODAT=0; 13129 GNULIB_FSTAT=0; 13130 GNULIB_FSTATAT=0; 13131 GNULIB_FUTIMENS=0; 13132 GNULIB_LCHMOD=0; 13133 GNULIB_LSTAT=0; 13134 GNULIB_MKDIRAT=0; 13135 GNULIB_MKFIFO=0; 13136 GNULIB_MKFIFOAT=0; 13137 GNULIB_MKNOD=0; 13138 GNULIB_MKNODAT=0; 13139 GNULIB_STAT=0; 13140 GNULIB_UTIMENSAT=0; 13141 HAVE_FCHMODAT=1; 13142 HAVE_FSTATAT=1; 13143 HAVE_FUTIMENS=1; 13144 HAVE_LCHMOD=1; 13145 HAVE_LSTAT=1; 13146 HAVE_MKDIRAT=1; 13147 HAVE_MKFIFO=1; 13148 HAVE_MKFIFOAT=1; 13149 HAVE_MKNOD=1; 13150 HAVE_MKNODAT=1; 13151 HAVE_UTIMENSAT=1; 13152 REPLACE_FSTAT=0; 13153 REPLACE_FSTATAT=0; 13154 REPLACE_FUTIMENS=0; 13155 REPLACE_LSTAT=0; 13156 REPLACE_MKDIR=0; 13157 REPLACE_MKFIFO=0; 13158 REPLACE_MKNOD=0; 13159 REPLACE_STAT=0; 13160 REPLACE_UTIMENSAT=0; 13161 13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 13163 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; } 13164 if ${ac_cv_header_stat_broken+:} false; then : 13165 $as_echo_n "(cached) " >&6 13166 else 13167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13168 /* end confdefs.h. */ 13169 #include <sys/types.h> 13170 #include <sys/stat.h> 13171 13172 #if defined S_ISBLK && defined S_IFDIR 13173 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; 13174 #endif 13175 13176 #if defined S_ISBLK && defined S_IFCHR 13177 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; 13178 #endif 13179 13180 #if defined S_ISLNK && defined S_IFREG 13181 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; 13182 #endif 13183 13184 #if defined S_ISSOCK && defined S_IFREG 13185 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; 13186 #endif 13187 13188 _ACEOF 13189 if ac_fn_c_try_compile "$LINENO"; then : 13190 ac_cv_header_stat_broken=no 13191 else 13192 ac_cv_header_stat_broken=yes 13193 fi 13194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13195 fi 13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 13197 $as_echo "$ac_cv_header_stat_broken" >&6; } 13198 if test $ac_cv_header_stat_broken = yes; then 13199 13200 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h 13201 13202 fi 13203 13204 13205 13206 13207 13208 case "$host_os" in 13209 mingw*) 13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5 13211 $as_echo_n "checking for 64-bit off_t... " >&6; } 13212 if ${gl_cv_type_off_t_64+:} false; then : 13213 $as_echo_n "(cached) " >&6 13214 else 13215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13216 /* end confdefs.h. */ 13217 #include <sys/types.h> 13218 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1]; 13219 13220 int 13221 main () 13222 { 13223 13224 ; 13225 return 0; 13226 } 13227 _ACEOF 13228 if ac_fn_c_try_compile "$LINENO"; then : 13229 gl_cv_type_off_t_64=yes 13230 else 13231 gl_cv_type_off_t_64=no 13232 fi 13233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13234 13235 fi 13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5 13237 $as_echo "$gl_cv_type_off_t_64" >&6; } 13238 if test $gl_cv_type_off_t_64 = no; then 13239 WINDOWS_64_BIT_OFF_T=1 13240 else 13241 WINDOWS_64_BIT_OFF_T=0 13242 fi 13243 WINDOWS_64_BIT_ST_SIZE=1 13244 ;; 13245 *) 13246 WINDOWS_64_BIT_OFF_T=0 13247 WINDOWS_64_BIT_ST_SIZE=0 13248 ;; 13249 esac 13250 13251 13252 13253 13254 13255 13256 13257 13258 13259 13260 13261 13262 13263 13264 13265 if test $gl_cv_have_include_next = yes; then 13266 gl_cv_next_sys_stat_h='<'sys/stat.h'>' 13267 else 13268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5 13269 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; } 13270 if ${gl_cv_next_sys_stat_h+:} false; then : 13271 $as_echo_n "(cached) " >&6 13272 else 13273 13274 if test $ac_cv_header_sys_stat_h = yes; then 13275 13276 13277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13278 /* end confdefs.h. */ 13279 #include <sys/stat.h> 13280 13281 _ACEOF 13282 case "$host_os" in 13283 aix*) gl_absname_cpp="$ac_cpp -C" ;; 13284 *) gl_absname_cpp="$ac_cpp" ;; 13285 esac 13286 13287 case "$host_os" in 13288 mingw*) 13289 gl_dirsep_regex='[/\\]' 13290 ;; 13291 *) 13292 gl_dirsep_regex='\/' 13293 ;; 13294 esac 13295 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 13296 13297 gl_header_literal_regex=`echo 'sys/stat.h' \ 13298 | sed -e "$gl_make_literal_regex_sed"` 13299 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 13300 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 13301 s|^/[^/]|//&| 13302 p 13303 q 13304 }' 13305 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 13306 sed -n "$gl_absolute_header_sed"`'"' 13307 else 13308 gl_cv_next_sys_stat_h='<'sys/stat.h'>' 13309 fi 13310 13311 13312 fi 13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5 13314 $as_echo "$gl_cv_next_sys_stat_h" >&6; } 13315 fi 13316 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h 13317 13318 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 13319 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 13320 gl_next_as_first_directive='<'sys/stat.h'>' 13321 else 13322 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 13323 gl_next_as_first_directive=$gl_cv_next_sys_stat_h 13324 fi 13325 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive 13326 13327 13328 13329 13330 13331 13332 13333 13334 13335 13336 13337 if test $WINDOWS_64_BIT_ST_SIZE = 1; then 13338 13339 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h 13340 13341 fi 13342 13343 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h> 13344 #include <sys/stat.h> 13345 " 13346 if test "x$ac_cv_type_nlink_t" = xyes; then : 13347 13348 else 13349 13350 $as_echo "#define nlink_t int" >>confdefs.h 13351 13352 fi 13353 13354 13355 13356 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do 13357 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 13358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 13359 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 13360 if eval \${$as_gl_Symbol+:} false; then : 13361 $as_echo_n "(cached) " >&6 13362 else 13363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13364 /* end confdefs.h. */ 13365 #include <sys/stat.h> 13366 13367 int 13368 main () 13369 { 13370 #undef $gl_func 13371 (void) $gl_func; 13372 ; 13373 return 0; 13374 } 13375 _ACEOF 13376 if ac_fn_c_try_compile "$LINENO"; then : 13377 eval "$as_gl_Symbol=yes" 13378 else 13379 eval "$as_gl_Symbol=no" 13380 fi 13381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13382 fi 13383 eval ac_res=\$$as_gl_Symbol 13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13385 $as_echo "$ac_res" >&6; } 13386 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 13387 cat >>confdefs.h <<_ACEOF 13388 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 13389 _ACEOF 13390 13391 eval ac_cv_have_decl_$gl_func=yes 13392 fi 13393 done 13394 13395 13396 ac_fn_c_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default" 13397 if test "x$ac_cv_have_decl_getdelim" = xyes; then : 13398 ac_have_decl=1 13399 else 13400 ac_have_decl=0 13401 fi 13402 13403 cat >>confdefs.h <<_ACEOF 13404 #define HAVE_DECL_GETDELIM $ac_have_decl 13405 _ACEOF 13406 13407 13408 13409 13410 13411 ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default" 13412 if test "x$ac_cv_have_decl_getline" = xyes; then : 13413 ac_have_decl=1 13414 else 13415 ac_have_decl=0 13416 fi 13417 13418 cat >>confdefs.h <<_ACEOF 13419 #define HAVE_DECL_GETLINE $ac_have_decl 13420 _ACEOF 13421 13422 13423 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436 13437 if test $gl_cv_have_include_next = yes; then 13438 gl_cv_next_getopt_h='<'getopt.h'>' 13439 else 13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5 13441 $as_echo_n "checking absolute name of <getopt.h>... " >&6; } 13442 if ${gl_cv_next_getopt_h+:} false; then : 13443 $as_echo_n "(cached) " >&6 13444 else 13445 13446 if test $ac_cv_header_getopt_h = yes; then 13447 13448 13449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13450 /* end confdefs.h. */ 13451 #include <getopt.h> 13452 13453 _ACEOF 13454 case "$host_os" in 13455 aix*) gl_absname_cpp="$ac_cpp -C" ;; 13456 *) gl_absname_cpp="$ac_cpp" ;; 13457 esac 13458 13459 case "$host_os" in 13460 mingw*) 13461 gl_dirsep_regex='[/\\]' 13462 ;; 13463 *) 13464 gl_dirsep_regex='\/' 13465 ;; 13466 esac 13467 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 13468 13469 gl_header_literal_regex=`echo 'getopt.h' \ 13470 | sed -e "$gl_make_literal_regex_sed"` 13471 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 13472 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 13473 s|^/[^/]|//&| 13474 p 13475 q 13476 }' 13477 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 13478 sed -n "$gl_absolute_header_sed"`'"' 13479 else 13480 gl_cv_next_getopt_h='<'getopt.h'>' 13481 fi 13482 13483 13484 fi 13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5 13486 $as_echo "$gl_cv_next_getopt_h" >&6; } 13487 fi 13488 NEXT_GETOPT_H=$gl_cv_next_getopt_h 13489 13490 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 13491 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 13492 gl_next_as_first_directive='<'getopt.h'>' 13493 else 13494 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 13495 gl_next_as_first_directive=$gl_cv_next_getopt_h 13496 fi 13497 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive 13498 13499 13500 13501 13502 if test $ac_cv_header_getopt_h = yes; then 13503 HAVE_GETOPT_H=1 13504 else 13505 HAVE_GETOPT_H=0 13506 fi 13507 13508 13509 gl_replace_getopt= 13510 13511 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then 13512 for ac_header in getopt.h 13513 do : 13514 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" 13515 if test "x$ac_cv_header_getopt_h" = xyes; then : 13516 cat >>confdefs.h <<_ACEOF 13517 #define HAVE_GETOPT_H 1 13518 _ACEOF 13519 13520 else 13521 gl_replace_getopt=yes 13522 fi 13523 13524 done 13525 13526 fi 13527 13528 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then 13529 for ac_func in getopt_long_only 13530 do : 13531 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only" 13532 if test "x$ac_cv_func_getopt_long_only" = xyes; then : 13533 cat >>confdefs.h <<_ACEOF 13534 #define HAVE_GETOPT_LONG_ONLY 1 13535 _ACEOF 13536 13537 else 13538 gl_replace_getopt=yes 13539 fi 13540 done 13541 13542 fi 13543 13544 if test -z "$gl_replace_getopt"; then 13545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5 13546 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; } 13547 if ${gl_cv_func_getopt_posix+:} false; then : 13548 $as_echo_n "(cached) " >&6 13549 else 13550 13551 if test $cross_compiling = no; then 13552 if test "$cross_compiling" = yes; then : 13553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13555 as_fn_error $? "cannot run test program while cross compiling 13556 See \`config.log' for more details" "$LINENO" 5; } 13557 else 13558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13559 /* end confdefs.h. */ 13560 13561 #include <unistd.h> 13562 #include <stdlib.h> 13563 #include <string.h> 13564 13565 int 13566 main () 13567 { 13568 static char program[] = "program"; 13569 static char a[] = "-a"; 13570 static char foo[] = "foo"; 13571 static char bar[] = "bar"; 13572 char *argv[] = { program, a, foo, bar, NULL }; 13573 int c; 13574 13575 c = getopt (4, argv, "ab"); 13576 if (!(c == 'a')) 13577 return 1; 13578 c = getopt (4, argv, "ab"); 13579 if (!(c == -1)) 13580 return 2; 13581 if (!(optind == 2)) 13582 return 3; 13583 return 0; 13584 } 13585 13586 _ACEOF 13587 if ac_fn_c_try_run "$LINENO"; then : 13588 gl_cv_func_getopt_posix=maybe 13589 else 13590 gl_cv_func_getopt_posix=no 13591 fi 13592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13593 conftest.$ac_objext conftest.beam conftest.$ac_ext 13594 fi 13595 13596 if test $gl_cv_func_getopt_posix = maybe; then 13597 if test "$cross_compiling" = yes; then : 13598 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13599 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13600 as_fn_error $? "cannot run test program while cross compiling 13601 See \`config.log' for more details" "$LINENO" 5; } 13602 else 13603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13604 /* end confdefs.h. */ 13605 13606 #include <unistd.h> 13607 #include <stdlib.h> 13608 #include <string.h> 13609 13610 int 13611 main () 13612 { 13613 static char program[] = "program"; 13614 static char donald[] = "donald"; 13615 static char p[] = "-p"; 13616 static char billy[] = "billy"; 13617 static char duck[] = "duck"; 13618 static char a[] = "-a"; 13619 static char bar[] = "bar"; 13620 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL }; 13621 int c; 13622 13623 c = getopt (7, argv, "+abp:q:"); 13624 if (!(c == -1)) 13625 return 4; 13626 if (!(strcmp (argv[0], "program") == 0)) 13627 return 5; 13628 if (!(strcmp (argv[1], "donald") == 0)) 13629 return 6; 13630 if (!(strcmp (argv[2], "-p") == 0)) 13631 return 7; 13632 if (!(strcmp (argv[3], "billy") == 0)) 13633 return 8; 13634 if (!(strcmp (argv[4], "duck") == 0)) 13635 return 9; 13636 if (!(strcmp (argv[5], "-a") == 0)) 13637 return 10; 13638 if (!(strcmp (argv[6], "bar") == 0)) 13639 return 11; 13640 if (!(optind == 1)) 13641 return 12; 13642 return 0; 13643 } 13644 13645 _ACEOF 13646 if ac_fn_c_try_run "$LINENO"; then : 13647 gl_cv_func_getopt_posix=maybe 13648 else 13649 gl_cv_func_getopt_posix=no 13650 fi 13651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13652 conftest.$ac_objext conftest.beam conftest.$ac_ext 13653 fi 13654 13655 fi 13656 if test $gl_cv_func_getopt_posix = maybe; then 13657 if test "$cross_compiling" = yes; then : 13658 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13660 as_fn_error $? "cannot run test program while cross compiling 13661 See \`config.log' for more details" "$LINENO" 5; } 13662 else 13663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13664 /* end confdefs.h. */ 13665 13666 #include <unistd.h> 13667 #include <stdlib.h> 13668 #include <string.h> 13669 13670 int 13671 main () 13672 { 13673 static char program[] = "program"; 13674 static char ab[] = "-ab"; 13675 char *argv[3] = { program, ab, NULL }; 13676 if (getopt (2, argv, "ab:") != 'a') 13677 return 13; 13678 if (getopt (2, argv, "ab:") != '?') 13679 return 14; 13680 if (optopt != 'b') 13681 return 15; 13682 if (optind != 2) 13683 return 16; 13684 return 0; 13685 } 13686 13687 _ACEOF 13688 if ac_fn_c_try_run "$LINENO"; then : 13689 gl_cv_func_getopt_posix=yes 13690 else 13691 gl_cv_func_getopt_posix=no 13692 fi 13693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13694 conftest.$ac_objext conftest.beam conftest.$ac_ext 13695 fi 13696 13697 fi 13698 else 13699 case "$host_os" in 13700 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";; 13701 *) gl_cv_func_getopt_posix="guessing yes";; 13702 esac 13703 fi 13704 13705 fi 13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5 13707 $as_echo "$gl_cv_func_getopt_posix" >&6; } 13708 case "$gl_cv_func_getopt_posix" in 13709 *no) gl_replace_getopt=yes ;; 13710 esac 13711 fi 13712 13713 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then 13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5 13715 $as_echo_n "checking for working GNU getopt function... " >&6; } 13716 if ${gl_cv_func_getopt_gnu+:} false; then : 13717 $as_echo_n "(cached) " >&6 13718 else 13719 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the 13720 # optstring is necessary for programs like m4 that have POSIX-mandated 13721 # semantics for supporting options interspersed with files. 13722 # Also, since getopt_long is a GNU extension, we require optind=0. 13723 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT; 13724 # so take care to revert to the correct (non-)export state. 13725 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }' 13726 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in 13727 xx) gl_had_POSIXLY_CORRECT=exported ;; 13728 x) gl_had_POSIXLY_CORRECT=yes ;; 13729 *) gl_had_POSIXLY_CORRECT= ;; 13730 esac 13731 POSIXLY_CORRECT=1 13732 export POSIXLY_CORRECT 13733 if test "$cross_compiling" = yes; then : 13734 gl_cv_func_getopt_gnu="guessing no" 13735 13736 else 13737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13738 /* end confdefs.h. */ 13739 #include <getopt.h> 13740 #include <stddef.h> 13741 #include <string.h> 13742 13743 #include <stdlib.h> 13744 #if defined __MACH__ && defined __APPLE__ 13745 /* Avoid a crash on Mac OS X. */ 13746 #include <mach/mach.h> 13747 #include <mach/mach_error.h> 13748 #include <mach/thread_status.h> 13749 #include <mach/exception.h> 13750 #include <mach/task.h> 13751 #include <pthread.h> 13752 /* The exception port on which our thread listens. */ 13753 static mach_port_t our_exception_port; 13754 /* The main function of the thread listening for exceptions of type 13755 EXC_BAD_ACCESS. */ 13756 static void * 13757 mach_exception_thread (void *arg) 13758 { 13759 /* Buffer for a message to be received. */ 13760 struct { 13761 mach_msg_header_t head; 13762 mach_msg_body_t msgh_body; 13763 char data[1024]; 13764 } msg; 13765 mach_msg_return_t retval; 13766 /* Wait for a message on the exception port. */ 13767 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg), 13768 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL); 13769 if (retval != MACH_MSG_SUCCESS) 13770 abort (); 13771 exit (1); 13772 } 13773 static void 13774 nocrash_init (void) 13775 { 13776 mach_port_t self = mach_task_self (); 13777 /* Allocate a port on which the thread shall listen for exceptions. */ 13778 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port) 13779 == KERN_SUCCESS) { 13780 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */ 13781 if (mach_port_insert_right (self, our_exception_port, our_exception_port, 13782 MACH_MSG_TYPE_MAKE_SEND) 13783 == KERN_SUCCESS) { 13784 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting 13785 for us. */ 13786 exception_mask_t mask = EXC_MASK_BAD_ACCESS; 13787 /* Create the thread listening on the exception port. */ 13788 pthread_attr_t attr; 13789 pthread_t thread; 13790 if (pthread_attr_init (&attr) == 0 13791 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0 13792 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) { 13793 pthread_attr_destroy (&attr); 13794 /* Replace the exception port info for these exceptions with our own. 13795 Note that we replace the exception port for the entire task, not only 13796 for a particular thread. This has the effect that when our exception 13797 port gets the message, the thread specific exception port has already 13798 been asked, and we don't need to bother about it. 13799 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */ 13800 task_set_exception_ports (self, mask, our_exception_port, 13801 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE); 13802 } 13803 } 13804 } 13805 } 13806 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ 13807 /* Avoid a crash on native Windows. */ 13808 #define WIN32_LEAN_AND_MEAN 13809 #include <windows.h> 13810 #include <winerror.h> 13811 static LONG WINAPI 13812 exception_filter (EXCEPTION_POINTERS *ExceptionInfo) 13813 { 13814 switch (ExceptionInfo->ExceptionRecord->ExceptionCode) 13815 { 13816 case EXCEPTION_ACCESS_VIOLATION: 13817 case EXCEPTION_IN_PAGE_ERROR: 13818 case EXCEPTION_STACK_OVERFLOW: 13819 case EXCEPTION_GUARD_PAGE: 13820 case EXCEPTION_PRIV_INSTRUCTION: 13821 case EXCEPTION_ILLEGAL_INSTRUCTION: 13822 case EXCEPTION_DATATYPE_MISALIGNMENT: 13823 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED: 13824 case EXCEPTION_NONCONTINUABLE_EXCEPTION: 13825 exit (1); 13826 } 13827 return EXCEPTION_CONTINUE_SEARCH; 13828 } 13829 static void 13830 nocrash_init (void) 13831 { 13832 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter); 13833 } 13834 #else 13835 /* Avoid a crash on POSIX systems. */ 13836 #include <signal.h> 13837 /* A POSIX signal handler. */ 13838 static void 13839 exception_handler (int sig) 13840 { 13841 exit (1); 13842 } 13843 static void 13844 nocrash_init (void) 13845 { 13846 #ifdef SIGSEGV 13847 signal (SIGSEGV, exception_handler); 13848 #endif 13849 #ifdef SIGBUS 13850 signal (SIGBUS, exception_handler); 13851 #endif 13852 } 13853 #endif 13854 13855 13856 int 13857 main () 13858 { 13859 13860 int result = 0; 13861 13862 nocrash_init(); 13863 13864 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw, 13865 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5, 13866 OSF/1 5.1, Solaris 10. */ 13867 { 13868 static char conftest[] = "conftest"; 13869 static char plus[] = "-+"; 13870 char *argv[3] = { conftest, plus, NULL }; 13871 opterr = 0; 13872 if (getopt (2, argv, "+a") != '?') 13873 result |= 1; 13874 } 13875 /* This code succeeds on glibc 2.8, mingw, 13876 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11, 13877 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */ 13878 { 13879 static char program[] = "program"; 13880 static char p[] = "-p"; 13881 static char foo[] = "foo"; 13882 static char bar[] = "bar"; 13883 char *argv[] = { program, p, foo, bar, NULL }; 13884 13885 optind = 1; 13886 if (getopt (4, argv, "p::") != 'p') 13887 result |= 2; 13888 else if (optarg != NULL) 13889 result |= 4; 13890 else if (getopt (4, argv, "p::") != -1) 13891 result |= 6; 13892 else if (optind != 2) 13893 result |= 8; 13894 } 13895 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */ 13896 { 13897 static char program[] = "program"; 13898 static char foo[] = "foo"; 13899 static char p[] = "-p"; 13900 char *argv[] = { program, foo, p, NULL }; 13901 optind = 0; 13902 if (getopt (3, argv, "-p") != 1) 13903 result |= 16; 13904 else if (getopt (3, argv, "-p") != 'p') 13905 result |= 16; 13906 } 13907 /* This code fails on glibc 2.11. */ 13908 { 13909 static char program[] = "program"; 13910 static char b[] = "-b"; 13911 static char a[] = "-a"; 13912 char *argv[] = { program, b, a, NULL }; 13913 optind = opterr = 0; 13914 if (getopt (3, argv, "+:a:b") != 'b') 13915 result |= 32; 13916 else if (getopt (3, argv, "+:a:b") != ':') 13917 result |= 32; 13918 } 13919 /* This code dumps core on glibc 2.14. */ 13920 { 13921 static char program[] = "program"; 13922 static char w[] = "-W"; 13923 static char dummy[] = "dummy"; 13924 char *argv[] = { program, w, dummy, NULL }; 13925 optind = opterr = 1; 13926 if (getopt (3, argv, "W;") != 'W') 13927 result |= 64; 13928 } 13929 return result; 13930 13931 ; 13932 return 0; 13933 } 13934 _ACEOF 13935 if ac_fn_c_try_run "$LINENO"; then : 13936 gl_cv_func_getopt_gnu=yes 13937 else 13938 gl_cv_func_getopt_gnu=no 13939 fi 13940 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13941 conftest.$ac_objext conftest.beam conftest.$ac_ext 13942 fi 13943 13944 case $gl_had_POSIXLY_CORRECT in 13945 exported) ;; 13946 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;; 13947 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;; 13948 esac 13949 13950 fi 13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5 13952 $as_echo "$gl_cv_func_getopt_gnu" >&6; } 13953 if test "$gl_cv_func_getopt_gnu" != yes; then 13954 gl_replace_getopt=yes 13955 else 13956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5 13957 $as_echo_n "checking for working GNU getopt_long function... " >&6; } 13958 if ${gl_cv_func_getopt_long_gnu+:} false; then : 13959 $as_echo_n "(cached) " >&6 13960 else 13961 if test "$cross_compiling" = yes; then : 13962 case "$host_os" in 13963 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";; 13964 *) gl_cv_func_getopt_long_gnu="guessing yes";; 13965 esac 13966 13967 else 13968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13969 /* end confdefs.h. */ 13970 #include <getopt.h> 13971 #include <stddef.h> 13972 #include <string.h> 13973 13974 int 13975 main () 13976 { 13977 static const struct option long_options[] = 13978 { 13979 { "xtremely-",no_argument, NULL, 1003 }, 13980 { "xtra", no_argument, NULL, 1001 }, 13981 { "xtreme", no_argument, NULL, 1002 }, 13982 { "xtremely", no_argument, NULL, 1003 }, 13983 { NULL, 0, NULL, 0 } 13984 }; 13985 /* This code fails on OpenBSD 5.0. */ 13986 { 13987 static char program[] = "program"; 13988 static char xtremel[] = "--xtremel"; 13989 char *argv[] = { program, xtremel, NULL }; 13990 int option_index; 13991 optind = 1; opterr = 0; 13992 if (getopt_long (2, argv, "", long_options, &option_index) != 1003) 13993 return 1; 13994 } 13995 return 0; 13996 13997 ; 13998 return 0; 13999 } 14000 _ACEOF 14001 if ac_fn_c_try_run "$LINENO"; then : 14002 gl_cv_func_getopt_long_gnu=yes 14003 else 14004 gl_cv_func_getopt_long_gnu=no 14005 fi 14006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14007 conftest.$ac_objext conftest.beam conftest.$ac_ext 14008 fi 14009 14010 14011 fi 14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5 14013 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; } 14014 case "$gl_cv_func_getopt_long_gnu" in 14015 *yes) ;; 14016 *) gl_replace_getopt=yes ;; 14017 esac 14018 fi 14019 fi 14020 14021 14022 14023 14024 14025 14026 REPLACE_GETOPT=0 14027 if test -n "$gl_replace_getopt"; then 14028 REPLACE_GETOPT=1 14029 fi 14030 14031 if test $REPLACE_GETOPT = 1; then 14032 14033 GETOPT_H=getopt.h 14034 14035 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h 14036 14037 14038 14039 fi 14040 14041 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default" 14042 if test "x$ac_cv_have_decl_getenv" = xyes; then : 14043 ac_have_decl=1 14044 else 14045 ac_have_decl=0 14046 fi 14047 14048 cat >>confdefs.h <<_ACEOF 14049 #define HAVE_DECL_GETENV $ac_have_decl 14050 _ACEOF 14051 14052 14053 14054 14055 14056 14057 14058 14059 if test $ac_cv_type_long_long_int = yes; then 14060 HAVE_LONG_LONG_INT=1 14061 else 14062 HAVE_LONG_LONG_INT=0 14063 fi 14064 14065 14066 if test $ac_cv_type_unsigned_long_long_int = yes; then 14067 HAVE_UNSIGNED_LONG_LONG_INT=1 14068 else 14069 HAVE_UNSIGNED_LONG_LONG_INT=0 14070 fi 14071 14072 14073 14074 if test $ac_cv_header_wchar_h = yes; then 14075 HAVE_WCHAR_H=1 14076 else 14077 HAVE_WCHAR_H=0 14078 fi 14079 14080 14081 if test $ac_cv_header_inttypes_h = yes; then 14082 HAVE_INTTYPES_H=1 14083 else 14084 HAVE_INTTYPES_H=0 14085 fi 14086 14087 14088 if test $ac_cv_header_sys_types_h = yes; then 14089 HAVE_SYS_TYPES_H=1 14090 else 14091 HAVE_SYS_TYPES_H=0 14092 fi 14093 14094 14095 14096 14097 14098 14099 14100 14101 14102 14103 14104 if test $gl_cv_have_include_next = yes; then 14105 gl_cv_next_stdint_h='<'stdint.h'>' 14106 else 14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5 14108 $as_echo_n "checking absolute name of <stdint.h>... " >&6; } 14109 if ${gl_cv_next_stdint_h+:} false; then : 14110 $as_echo_n "(cached) " >&6 14111 else 14112 14113 if test $ac_cv_header_stdint_h = yes; then 14114 14115 14116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14117 /* end confdefs.h. */ 14118 #include <stdint.h> 14119 14120 _ACEOF 14121 case "$host_os" in 14122 aix*) gl_absname_cpp="$ac_cpp -C" ;; 14123 *) gl_absname_cpp="$ac_cpp" ;; 14124 esac 14125 14126 case "$host_os" in 14127 mingw*) 14128 gl_dirsep_regex='[/\\]' 14129 ;; 14130 *) 14131 gl_dirsep_regex='\/' 14132 ;; 14133 esac 14134 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 14135 14136 gl_header_literal_regex=`echo 'stdint.h' \ 14137 | sed -e "$gl_make_literal_regex_sed"` 14138 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 14139 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 14140 s|^/[^/]|//&| 14141 p 14142 q 14143 }' 14144 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 14145 sed -n "$gl_absolute_header_sed"`'"' 14146 else 14147 gl_cv_next_stdint_h='<'stdint.h'>' 14148 fi 14149 14150 14151 fi 14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5 14153 $as_echo "$gl_cv_next_stdint_h" >&6; } 14154 fi 14155 NEXT_STDINT_H=$gl_cv_next_stdint_h 14156 14157 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 14158 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 14159 gl_next_as_first_directive='<'stdint.h'>' 14160 else 14161 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 14162 gl_next_as_first_directive=$gl_cv_next_stdint_h 14163 fi 14164 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive 14165 14166 14167 14168 14169 if test $ac_cv_header_stdint_h = yes; then 14170 HAVE_STDINT_H=1 14171 else 14172 HAVE_STDINT_H=0 14173 fi 14174 14175 14176 if test $ac_cv_header_stdint_h = yes; then 14177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5 14178 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; } 14179 if ${gl_cv_header_working_stdint_h+:} false; then : 14180 $as_echo_n "(cached) " >&6 14181 else 14182 gl_cv_header_working_stdint_h=no 14183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14184 /* end confdefs.h. */ 14185 14186 14187 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ 14188 #include <stdint.h> 14189 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */ 14190 #if !(defined WCHAR_MIN && defined WCHAR_MAX) 14191 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>" 14192 #endif 14193 14194 14195 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 14196 included before <wchar.h>. */ 14197 #include <stddef.h> 14198 #include <signal.h> 14199 #if HAVE_WCHAR_H 14200 # include <stdio.h> 14201 # include <time.h> 14202 # include <wchar.h> 14203 #endif 14204 14205 14206 #ifdef INT8_MAX 14207 int8_t a1 = INT8_MAX; 14208 int8_t a1min = INT8_MIN; 14209 #endif 14210 #ifdef INT16_MAX 14211 int16_t a2 = INT16_MAX; 14212 int16_t a2min = INT16_MIN; 14213 #endif 14214 #ifdef INT32_MAX 14215 int32_t a3 = INT32_MAX; 14216 int32_t a3min = INT32_MIN; 14217 #endif 14218 #ifdef INT64_MAX 14219 int64_t a4 = INT64_MAX; 14220 int64_t a4min = INT64_MIN; 14221 #endif 14222 #ifdef UINT8_MAX 14223 uint8_t b1 = UINT8_MAX; 14224 #else 14225 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1]; 14226 #endif 14227 #ifdef UINT16_MAX 14228 uint16_t b2 = UINT16_MAX; 14229 #endif 14230 #ifdef UINT32_MAX 14231 uint32_t b3 = UINT32_MAX; 14232 #endif 14233 #ifdef UINT64_MAX 14234 uint64_t b4 = UINT64_MAX; 14235 #endif 14236 int_least8_t c1 = INT8_C (0x7f); 14237 int_least8_t c1max = INT_LEAST8_MAX; 14238 int_least8_t c1min = INT_LEAST8_MIN; 14239 int_least16_t c2 = INT16_C (0x7fff); 14240 int_least16_t c2max = INT_LEAST16_MAX; 14241 int_least16_t c2min = INT_LEAST16_MIN; 14242 int_least32_t c3 = INT32_C (0x7fffffff); 14243 int_least32_t c3max = INT_LEAST32_MAX; 14244 int_least32_t c3min = INT_LEAST32_MIN; 14245 int_least64_t c4 = INT64_C (0x7fffffffffffffff); 14246 int_least64_t c4max = INT_LEAST64_MAX; 14247 int_least64_t c4min = INT_LEAST64_MIN; 14248 uint_least8_t d1 = UINT8_C (0xff); 14249 uint_least8_t d1max = UINT_LEAST8_MAX; 14250 uint_least16_t d2 = UINT16_C (0xffff); 14251 uint_least16_t d2max = UINT_LEAST16_MAX; 14252 uint_least32_t d3 = UINT32_C (0xffffffff); 14253 uint_least32_t d3max = UINT_LEAST32_MAX; 14254 uint_least64_t d4 = UINT64_C (0xffffffffffffffff); 14255 uint_least64_t d4max = UINT_LEAST64_MAX; 14256 int_fast8_t e1 = INT_FAST8_MAX; 14257 int_fast8_t e1min = INT_FAST8_MIN; 14258 int_fast16_t e2 = INT_FAST16_MAX; 14259 int_fast16_t e2min = INT_FAST16_MIN; 14260 int_fast32_t e3 = INT_FAST32_MAX; 14261 int_fast32_t e3min = INT_FAST32_MIN; 14262 int_fast64_t e4 = INT_FAST64_MAX; 14263 int_fast64_t e4min = INT_FAST64_MIN; 14264 uint_fast8_t f1 = UINT_FAST8_MAX; 14265 uint_fast16_t f2 = UINT_FAST16_MAX; 14266 uint_fast32_t f3 = UINT_FAST32_MAX; 14267 uint_fast64_t f4 = UINT_FAST64_MAX; 14268 #ifdef INTPTR_MAX 14269 intptr_t g = INTPTR_MAX; 14270 intptr_t gmin = INTPTR_MIN; 14271 #endif 14272 #ifdef UINTPTR_MAX 14273 uintptr_t h = UINTPTR_MAX; 14274 #endif 14275 intmax_t i = INTMAX_MAX; 14276 uintmax_t j = UINTMAX_MAX; 14277 14278 #include <limits.h> /* for CHAR_BIT */ 14279 #define TYPE_MINIMUM(t) \ 14280 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t))) 14281 #define TYPE_MAXIMUM(t) \ 14282 ((t) ((t) 0 < (t) -1 \ 14283 ? (t) -1 \ 14284 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1))) 14285 struct s { 14286 int check_PTRDIFF: 14287 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t) 14288 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t) 14289 ? 1 : -1; 14290 /* Detect bug in FreeBSD 6.0 / ia64. */ 14291 int check_SIG_ATOMIC: 14292 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t) 14293 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t) 14294 ? 1 : -1; 14295 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1; 14296 int check_WCHAR: 14297 WCHAR_MIN == TYPE_MINIMUM (wchar_t) 14298 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t) 14299 ? 1 : -1; 14300 /* Detect bug in mingw. */ 14301 int check_WINT: 14302 WINT_MIN == TYPE_MINIMUM (wint_t) 14303 && WINT_MAX == TYPE_MAXIMUM (wint_t) 14304 ? 1 : -1; 14305 14306 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */ 14307 int check_UINT8_C: 14308 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1; 14309 int check_UINT16_C: 14310 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1; 14311 14312 /* Detect bugs in OpenBSD 3.9 stdint.h. */ 14313 #ifdef UINT8_MAX 14314 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1; 14315 #endif 14316 #ifdef UINT16_MAX 14317 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1; 14318 #endif 14319 #ifdef UINT32_MAX 14320 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1; 14321 #endif 14322 #ifdef UINT64_MAX 14323 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1; 14324 #endif 14325 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1; 14326 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1; 14327 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1; 14328 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1; 14329 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1; 14330 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1; 14331 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1; 14332 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1; 14333 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1; 14334 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1; 14335 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1; 14336 }; 14337 14338 int 14339 main () 14340 { 14341 14342 ; 14343 return 0; 14344 } 14345 _ACEOF 14346 if ac_fn_c_try_compile "$LINENO"; then : 14347 if test "$cross_compiling" = yes; then : 14348 gl_cv_header_working_stdint_h=yes 14349 14350 else 14351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14352 /* end confdefs.h. */ 14353 14354 14355 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ 14356 #include <stdint.h> 14357 14358 14359 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 14360 included before <wchar.h>. */ 14361 #include <stddef.h> 14362 #include <signal.h> 14363 #if HAVE_WCHAR_H 14364 # include <stdio.h> 14365 # include <time.h> 14366 # include <wchar.h> 14367 #endif 14368 14369 14370 #include <stdio.h> 14371 #include <string.h> 14372 #define MVAL(macro) MVAL1(macro) 14373 #define MVAL1(expression) #expression 14374 static const char *macro_values[] = 14375 { 14376 #ifdef INT8_MAX 14377 MVAL (INT8_MAX), 14378 #endif 14379 #ifdef INT16_MAX 14380 MVAL (INT16_MAX), 14381 #endif 14382 #ifdef INT32_MAX 14383 MVAL (INT32_MAX), 14384 #endif 14385 #ifdef INT64_MAX 14386 MVAL (INT64_MAX), 14387 #endif 14388 #ifdef UINT8_MAX 14389 MVAL (UINT8_MAX), 14390 #endif 14391 #ifdef UINT16_MAX 14392 MVAL (UINT16_MAX), 14393 #endif 14394 #ifdef UINT32_MAX 14395 MVAL (UINT32_MAX), 14396 #endif 14397 #ifdef UINT64_MAX 14398 MVAL (UINT64_MAX), 14399 #endif 14400 NULL 14401 }; 14402 14403 int 14404 main () 14405 { 14406 14407 const char **mv; 14408 for (mv = macro_values; *mv != NULL; mv++) 14409 { 14410 const char *value = *mv; 14411 /* Test whether it looks like a cast expression. */ 14412 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0 14413 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0 14414 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0 14415 || strncmp (value, "((int)"/*)*/, 6) == 0 14416 || strncmp (value, "((signed short)"/*)*/, 15) == 0 14417 || strncmp (value, "((signed char)"/*)*/, 14) == 0) 14418 return mv - macro_values + 1; 14419 } 14420 return 0; 14421 14422 ; 14423 return 0; 14424 } 14425 _ACEOF 14426 if ac_fn_c_try_run "$LINENO"; then : 14427 gl_cv_header_working_stdint_h=yes 14428 fi 14429 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14430 conftest.$ac_objext conftest.beam conftest.$ac_ext 14431 fi 14432 14433 14434 fi 14435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14436 14437 fi 14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5 14439 $as_echo "$gl_cv_header_working_stdint_h" >&6; } 14440 fi 14441 if test "$gl_cv_header_working_stdint_h" = yes; then 14442 STDINT_H= 14443 else 14444 for ac_header in sys/inttypes.h sys/bitypes.h 14445 do : 14446 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14447 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14448 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14449 cat >>confdefs.h <<_ACEOF 14450 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14451 _ACEOF 14452 14453 fi 14454 14455 done 14456 14457 if test $ac_cv_header_sys_inttypes_h = yes; then 14458 HAVE_SYS_INTTYPES_H=1 14459 else 14460 HAVE_SYS_INTTYPES_H=0 14461 fi 14462 14463 if test $ac_cv_header_sys_bitypes_h = yes; then 14464 HAVE_SYS_BITYPES_H=1 14465 else 14466 HAVE_SYS_BITYPES_H=0 14467 fi 14468 14469 14470 14471 14472 if test $APPLE_UNIVERSAL_BUILD = 0; then 14473 14474 14475 for gltype in ptrdiff_t size_t ; do 14476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 14477 $as_echo_n "checking for bit size of $gltype... " >&6; } 14478 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then : 14479 $as_echo_n "(cached) " >&6 14480 else 14481 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " 14482 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 14483 included before <wchar.h>. */ 14484 #include <stddef.h> 14485 #include <signal.h> 14486 #if HAVE_WCHAR_H 14487 # include <stdio.h> 14488 # include <time.h> 14489 # include <wchar.h> 14490 #endif 14491 14492 #include <limits.h>"; then : 14493 14494 else 14495 result=unknown 14496 fi 14497 14498 eval gl_cv_bitsizeof_${gltype}=\$result 14499 14500 fi 14501 eval ac_res=\$gl_cv_bitsizeof_${gltype} 14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14503 $as_echo "$ac_res" >&6; } 14504 eval result=\$gl_cv_bitsizeof_${gltype} 14505 if test $result = unknown; then 14506 result=0 14507 fi 14508 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 14509 cat >>confdefs.h <<_ACEOF 14510 #define BITSIZEOF_${GLTYPE} $result 14511 _ACEOF 14512 14513 eval BITSIZEOF_${GLTYPE}=\$result 14514 done 14515 14516 14517 fi 14518 14519 14520 for gltype in sig_atomic_t wchar_t wint_t ; do 14521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 14522 $as_echo_n "checking for bit size of $gltype... " >&6; } 14523 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then : 14524 $as_echo_n "(cached) " >&6 14525 else 14526 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " 14527 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 14528 included before <wchar.h>. */ 14529 #include <stddef.h> 14530 #include <signal.h> 14531 #if HAVE_WCHAR_H 14532 # include <stdio.h> 14533 # include <time.h> 14534 # include <wchar.h> 14535 #endif 14536 14537 #include <limits.h>"; then : 14538 14539 else 14540 result=unknown 14541 fi 14542 14543 eval gl_cv_bitsizeof_${gltype}=\$result 14544 14545 fi 14546 eval ac_res=\$gl_cv_bitsizeof_${gltype} 14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14548 $as_echo "$ac_res" >&6; } 14549 eval result=\$gl_cv_bitsizeof_${gltype} 14550 if test $result = unknown; then 14551 result=0 14552 fi 14553 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 14554 cat >>confdefs.h <<_ACEOF 14555 #define BITSIZEOF_${GLTYPE} $result 14556 _ACEOF 14557 14558 eval BITSIZEOF_${GLTYPE}=\$result 14559 done 14560 14561 14562 14563 14564 for gltype in sig_atomic_t wchar_t wint_t ; do 14565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5 14566 $as_echo_n "checking whether $gltype is signed... " >&6; } 14567 if eval \${gl_cv_type_${gltype}_signed+:} false; then : 14568 $as_echo_n "(cached) " >&6 14569 else 14570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14571 /* end confdefs.h. */ 14572 14573 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 14574 included before <wchar.h>. */ 14575 #include <stddef.h> 14576 #include <signal.h> 14577 #if HAVE_WCHAR_H 14578 # include <stdio.h> 14579 # include <time.h> 14580 # include <wchar.h> 14581 #endif 14582 14583 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1]; 14584 int 14585 main () 14586 { 14587 14588 ; 14589 return 0; 14590 } 14591 _ACEOF 14592 if ac_fn_c_try_compile "$LINENO"; then : 14593 result=yes 14594 else 14595 result=no 14596 fi 14597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14598 eval gl_cv_type_${gltype}_signed=\$result 14599 14600 fi 14601 eval ac_res=\$gl_cv_type_${gltype}_signed 14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14603 $as_echo "$ac_res" >&6; } 14604 eval result=\$gl_cv_type_${gltype}_signed 14605 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 14606 if test "$result" = yes; then 14607 cat >>confdefs.h <<_ACEOF 14608 #define HAVE_SIGNED_${GLTYPE} 1 14609 _ACEOF 14610 14611 eval HAVE_SIGNED_${GLTYPE}=1 14612 else 14613 eval HAVE_SIGNED_${GLTYPE}=0 14614 fi 14615 done 14616 14617 14618 gl_cv_type_ptrdiff_t_signed=yes 14619 gl_cv_type_size_t_signed=no 14620 if test $APPLE_UNIVERSAL_BUILD = 0; then 14621 14622 14623 for gltype in ptrdiff_t size_t ; do 14624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 14625 $as_echo_n "checking for $gltype integer literal suffix... " >&6; } 14626 if eval \${gl_cv_type_${gltype}_suffix+:} false; then : 14627 $as_echo_n "(cached) " >&6 14628 else 14629 eval gl_cv_type_${gltype}_suffix=no 14630 eval result=\$gl_cv_type_${gltype}_signed 14631 if test "$result" = yes; then 14632 glsufu= 14633 else 14634 glsufu=u 14635 fi 14636 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do 14637 case $glsuf in 14638 '') gltype1='int';; 14639 l) gltype1='long int';; 14640 ll) gltype1='long long int';; 14641 i64) gltype1='__int64';; 14642 u) gltype1='unsigned int';; 14643 ul) gltype1='unsigned long int';; 14644 ull) gltype1='unsigned long long int';; 14645 ui64)gltype1='unsigned __int64';; 14646 esac 14647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14648 /* end confdefs.h. */ 14649 14650 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 14651 included before <wchar.h>. */ 14652 #include <stddef.h> 14653 #include <signal.h> 14654 #if HAVE_WCHAR_H 14655 # include <stdio.h> 14656 # include <time.h> 14657 # include <wchar.h> 14658 #endif 14659 14660 extern $gltype foo; 14661 extern $gltype1 foo; 14662 int 14663 main () 14664 { 14665 14666 ; 14667 return 0; 14668 } 14669 _ACEOF 14670 if ac_fn_c_try_compile "$LINENO"; then : 14671 eval gl_cv_type_${gltype}_suffix=\$glsuf 14672 fi 14673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14674 eval result=\$gl_cv_type_${gltype}_suffix 14675 test "$result" != no && break 14676 done 14677 fi 14678 eval ac_res=\$gl_cv_type_${gltype}_suffix 14679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14680 $as_echo "$ac_res" >&6; } 14681 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 14682 eval result=\$gl_cv_type_${gltype}_suffix 14683 test "$result" = no && result= 14684 eval ${GLTYPE}_SUFFIX=\$result 14685 cat >>confdefs.h <<_ACEOF 14686 #define ${GLTYPE}_SUFFIX $result 14687 _ACEOF 14688 14689 done 14690 14691 14692 fi 14693 14694 14695 for gltype in sig_atomic_t wchar_t wint_t ; do 14696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 14697 $as_echo_n "checking for $gltype integer literal suffix... " >&6; } 14698 if eval \${gl_cv_type_${gltype}_suffix+:} false; then : 14699 $as_echo_n "(cached) " >&6 14700 else 14701 eval gl_cv_type_${gltype}_suffix=no 14702 eval result=\$gl_cv_type_${gltype}_signed 14703 if test "$result" = yes; then 14704 glsufu= 14705 else 14706 glsufu=u 14707 fi 14708 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do 14709 case $glsuf in 14710 '') gltype1='int';; 14711 l) gltype1='long int';; 14712 ll) gltype1='long long int';; 14713 i64) gltype1='__int64';; 14714 u) gltype1='unsigned int';; 14715 ul) gltype1='unsigned long int';; 14716 ull) gltype1='unsigned long long int';; 14717 ui64)gltype1='unsigned __int64';; 14718 esac 14719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14720 /* end confdefs.h. */ 14721 14722 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 14723 included before <wchar.h>. */ 14724 #include <stddef.h> 14725 #include <signal.h> 14726 #if HAVE_WCHAR_H 14727 # include <stdio.h> 14728 # include <time.h> 14729 # include <wchar.h> 14730 #endif 14731 14732 extern $gltype foo; 14733 extern $gltype1 foo; 14734 int 14735 main () 14736 { 14737 14738 ; 14739 return 0; 14740 } 14741 _ACEOF 14742 if ac_fn_c_try_compile "$LINENO"; then : 14743 eval gl_cv_type_${gltype}_suffix=\$glsuf 14744 fi 14745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14746 eval result=\$gl_cv_type_${gltype}_suffix 14747 test "$result" != no && break 14748 done 14749 fi 14750 eval ac_res=\$gl_cv_type_${gltype}_suffix 14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14752 $as_echo "$ac_res" >&6; } 14753 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 14754 eval result=\$gl_cv_type_${gltype}_suffix 14755 test "$result" = no && result= 14756 eval ${GLTYPE}_SUFFIX=\$result 14757 cat >>confdefs.h <<_ACEOF 14758 #define ${GLTYPE}_SUFFIX $result 14759 _ACEOF 14760 14761 done 14762 14763 14764 14765 if test $BITSIZEOF_WINT_T -lt 32; then 14766 BITSIZEOF_WINT_T=32 14767 fi 14768 14769 STDINT_H=stdint.h 14770 fi 14771 14772 if test -n "$STDINT_H"; then 14773 GL_GENERATE_STDINT_H_TRUE= 14774 GL_GENERATE_STDINT_H_FALSE='#' 14775 else 14776 GL_GENERATE_STDINT_H_TRUE='#' 14777 GL_GENERATE_STDINT_H_FALSE= 14778 fi 14779 14780 14781 14782 14783 14784 GNULIB_IMAXABS=0; 14785 GNULIB_IMAXDIV=0; 14786 GNULIB_STRTOIMAX=0; 14787 GNULIB_STRTOUMAX=0; 14788 HAVE_DECL_IMAXABS=1; 14789 HAVE_DECL_IMAXDIV=1; 14790 HAVE_DECL_STRTOIMAX=1; 14791 HAVE_DECL_STRTOUMAX=1; 14792 REPLACE_STRTOIMAX=0; 14793 INT32_MAX_LT_INTMAX_MAX=1; 14794 INT64_MAX_EQ_LONG_MAX='defined _LP64'; 14795 PRI_MACROS_BROKEN=0; 14796 PRIPTR_PREFIX=__PRIPTR_PREFIX; 14797 UINT32_MAX_LT_UINTMAX_MAX=1; 14798 UINT64_MAX_EQ_ULONG_MAX='defined _LP64'; 14799 14800 14801 14802 14803 14804 14805 14806 14807 14808 14809 14810 14811 14812 14813 14814 if test $gl_cv_have_include_next = yes; then 14815 gl_cv_next_inttypes_h='<'inttypes.h'>' 14816 else 14817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5 14818 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; } 14819 if ${gl_cv_next_inttypes_h+:} false; then : 14820 $as_echo_n "(cached) " >&6 14821 else 14822 14823 if test $ac_cv_header_inttypes_h = yes; then 14824 14825 14826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14827 /* end confdefs.h. */ 14828 #include <inttypes.h> 14829 14830 _ACEOF 14831 case "$host_os" in 14832 aix*) gl_absname_cpp="$ac_cpp -C" ;; 14833 *) gl_absname_cpp="$ac_cpp" ;; 14834 esac 14835 14836 case "$host_os" in 14837 mingw*) 14838 gl_dirsep_regex='[/\\]' 14839 ;; 14840 *) 14841 gl_dirsep_regex='\/' 14842 ;; 14843 esac 14844 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 14845 14846 gl_header_literal_regex=`echo 'inttypes.h' \ 14847 | sed -e "$gl_make_literal_regex_sed"` 14848 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 14849 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 14850 s|^/[^/]|//&| 14851 p 14852 q 14853 }' 14854 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 14855 sed -n "$gl_absolute_header_sed"`'"' 14856 else 14857 gl_cv_next_inttypes_h='<'inttypes.h'>' 14858 fi 14859 14860 14861 fi 14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5 14863 $as_echo "$gl_cv_next_inttypes_h" >&6; } 14864 fi 14865 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h 14866 14867 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 14868 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 14869 gl_next_as_first_directive='<'inttypes.h'>' 14870 else 14871 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 14872 gl_next_as_first_directive=$gl_cv_next_inttypes_h 14873 fi 14874 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive 14875 14876 14877 14878 14879 14880 14881 14882 14883 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do 14884 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 14885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 14886 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 14887 if eval \${$as_gl_Symbol+:} false; then : 14888 $as_echo_n "(cached) " >&6 14889 else 14890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14891 /* end confdefs.h. */ 14892 #include <inttypes.h> 14893 14894 int 14895 main () 14896 { 14897 #undef $gl_func 14898 (void) $gl_func; 14899 ; 14900 return 0; 14901 } 14902 _ACEOF 14903 if ac_fn_c_try_compile "$LINENO"; then : 14904 eval "$as_gl_Symbol=yes" 14905 else 14906 eval "$as_gl_Symbol=no" 14907 fi 14908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14909 fi 14910 eval ac_res=\$$as_gl_Symbol 14911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14912 $as_echo "$ac_res" >&6; } 14913 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 14914 cat >>confdefs.h <<_ACEOF 14915 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 14916 _ACEOF 14917 14918 eval ac_cv_have_decl_$gl_func=yes 14919 fi 14920 done 14921 14922 14923 14924 for ac_header in inttypes.h 14925 do : 14926 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" 14927 if test "x$ac_cv_header_inttypes_h" = xyes; then : 14928 cat >>confdefs.h <<_ACEOF 14929 #define HAVE_INTTYPES_H 1 14930 _ACEOF 14931 14932 fi 14933 14934 done 14935 14936 if test $ac_cv_header_inttypes_h = yes; then 14937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5 14938 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } 14939 if ${gt_cv_inttypes_pri_broken+:} false; then : 14940 $as_echo_n "(cached) " >&6 14941 else 14942 14943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14944 /* end confdefs.h. */ 14945 14946 #include <inttypes.h> 14947 #ifdef PRId32 14948 char *p = PRId32; 14949 #endif 14950 14951 int 14952 main () 14953 { 14954 14955 ; 14956 return 0; 14957 } 14958 _ACEOF 14959 if ac_fn_c_try_compile "$LINENO"; then : 14960 gt_cv_inttypes_pri_broken=no 14961 else 14962 gt_cv_inttypes_pri_broken=yes 14963 fi 14964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14965 14966 fi 14967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5 14968 $as_echo "$gt_cv_inttypes_pri_broken" >&6; } 14969 fi 14970 if test "$gt_cv_inttypes_pri_broken" = yes; then 14971 14972 cat >>confdefs.h <<_ACEOF 14973 #define PRI_MACROS_BROKEN 1 14974 _ACEOF 14975 14976 PRI_MACROS_BROKEN=1 14977 else 14978 PRI_MACROS_BROKEN=0 14979 fi 14980 14981 14982 14983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'float'" >&5 14984 $as_echo_n "checking where to find the exponent in a 'float'... " >&6; } 14985 if ${gl_cv_cc_float_expbit0+:} false; then : 14986 $as_echo_n "(cached) " >&6 14987 else 14988 14989 if test "$cross_compiling" = yes; then : 14990 gl_cv_cc_float_expbit0="word 0 bit 23" 14991 else 14992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14993 /* end confdefs.h. */ 14994 14995 #include <float.h> 14996 #include <stddef.h> 14997 #include <stdio.h> 14998 #include <string.h> 14999 #define NWORDS \ 15000 ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int)) 15001 typedef union { float value; unsigned int word[NWORDS]; } memory_float; 15002 static unsigned int ored_words[NWORDS]; 15003 static unsigned int anded_words[NWORDS]; 15004 static void add_to_ored_words (float x) 15005 { 15006 memory_float m; 15007 size_t i; 15008 /* Clear it first, in case 15009 sizeof (float) < sizeof (memory_float). */ 15010 memset (&m, 0, sizeof (memory_float)); 15011 m.value = x; 15012 for (i = 0; i < NWORDS; i++) 15013 { 15014 ored_words[i] |= m.word[i]; 15015 anded_words[i] &= m.word[i]; 15016 } 15017 } 15018 int main () 15019 { 15020 size_t j; 15021 FILE *fp = fopen ("conftest.out", "w"); 15022 if (fp == NULL) 15023 return 1; 15024 for (j = 0; j < NWORDS; j++) 15025 anded_words[j] = ~ (unsigned int) 0; 15026 add_to_ored_words (0.25f); 15027 add_to_ored_words (0.5f); 15028 add_to_ored_words (1.0f); 15029 add_to_ored_words (2.0f); 15030 add_to_ored_words (4.0f); 15031 /* Remove bits that are common (e.g. if representation of the first mantissa 15032 bit is explicit). */ 15033 for (j = 0; j < NWORDS; j++) 15034 ored_words[j] &= ~anded_words[j]; 15035 /* Now find the nonzero word. */ 15036 for (j = 0; j < NWORDS; j++) 15037 if (ored_words[j] != 0) 15038 break; 15039 if (j < NWORDS) 15040 { 15041 size_t i; 15042 for (i = j + 1; i < NWORDS; i++) 15043 if (ored_words[i] != 0) 15044 { 15045 fprintf (fp, "unknown"); 15046 return (fclose (fp) != 0); 15047 } 15048 for (i = 0; ; i++) 15049 if ((ored_words[j] >> i) & 1) 15050 { 15051 fprintf (fp, "word %d bit %d", (int) j, (int) i); 15052 return (fclose (fp) != 0); 15053 } 15054 } 15055 fprintf (fp, "unknown"); 15056 return (fclose (fp) != 0); 15057 } 15058 15059 _ACEOF 15060 if ac_fn_c_try_run "$LINENO"; then : 15061 gl_cv_cc_float_expbit0=`cat conftest.out` 15062 else 15063 gl_cv_cc_float_expbit0="unknown" 15064 fi 15065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15066 conftest.$ac_objext conftest.beam conftest.$ac_ext 15067 fi 15068 15069 rm -f conftest.out 15070 15071 fi 15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_expbit0" >&5 15073 $as_echo "$gl_cv_cc_float_expbit0" >&6; } 15074 case "$gl_cv_cc_float_expbit0" in 15075 word*bit*) 15076 word=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word //' -e 's/ bit.*//'` 15077 bit=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word.*bit //'` 15078 15079 cat >>confdefs.h <<_ACEOF 15080 #define FLT_EXPBIT0_WORD $word 15081 _ACEOF 15082 15083 15084 cat >>confdefs.h <<_ACEOF 15085 #define FLT_EXPBIT0_BIT $bit 15086 _ACEOF 15087 15088 ;; 15089 esac 15090 15091 15092 15093 ISNANF_LIBM= 15094 15095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) can be used without linking with libm" >&5 15096 $as_echo_n "checking whether isnan(float) can be used without linking with libm... " >&6; } 15097 if ${gl_cv_func_isnanf_no_libm+:} false; then : 15098 $as_echo_n "(cached) " >&6 15099 else 15100 15101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15102 /* end confdefs.h. */ 15103 #include <math.h> 15104 #if __GNUC__ >= 4 15105 # undef isnanf 15106 # define isnanf(x) __builtin_isnanf ((float)(x)) 15107 #elif defined isnan 15108 # undef isnanf 15109 # define isnanf(x) isnan ((float)(x)) 15110 #endif 15111 float x; 15112 int 15113 main () 15114 { 15115 return isnanf (x); 15116 ; 15117 return 0; 15118 } 15119 _ACEOF 15120 if ac_fn_c_try_link "$LINENO"; then : 15121 gl_cv_func_isnanf_no_libm=yes 15122 else 15123 gl_cv_func_isnanf_no_libm=no 15124 fi 15125 rm -f core conftest.err conftest.$ac_objext \ 15126 conftest$ac_exeext conftest.$ac_ext 15127 15128 fi 15129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_no_libm" >&5 15130 $as_echo "$gl_cv_func_isnanf_no_libm" >&6; } 15131 15132 if test $gl_cv_func_isnanf_no_libm = no; then 15133 15134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) can be used with libm" >&5 15135 $as_echo_n "checking whether isnan(float) can be used with libm... " >&6; } 15136 if ${gl_cv_func_isnanf_in_libm+:} false; then : 15137 $as_echo_n "(cached) " >&6 15138 else 15139 15140 save_LIBS="$LIBS" 15141 LIBS="$LIBS -lm" 15142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15143 /* end confdefs.h. */ 15144 #include <math.h> 15145 #if __GNUC__ >= 4 15146 # undef isnanf 15147 # define isnanf(x) __builtin_isnanf ((float)(x)) 15148 #elif defined isnan 15149 # undef isnanf 15150 # define isnanf(x) isnan ((float)(x)) 15151 #endif 15152 float x; 15153 int 15154 main () 15155 { 15156 return isnanf (x); 15157 ; 15158 return 0; 15159 } 15160 _ACEOF 15161 if ac_fn_c_try_link "$LINENO"; then : 15162 gl_cv_func_isnanf_in_libm=yes 15163 else 15164 gl_cv_func_isnanf_in_libm=no 15165 fi 15166 rm -f core conftest.err conftest.$ac_objext \ 15167 conftest$ac_exeext conftest.$ac_ext 15168 LIBS="$save_LIBS" 15169 15170 fi 15171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_in_libm" >&5 15172 $as_echo "$gl_cv_func_isnanf_in_libm" >&6; } 15173 15174 if test $gl_cv_func_isnanf_in_libm = yes; then 15175 ISNANF_LIBM=-lm 15176 fi 15177 fi 15178 if test $gl_cv_func_isnanf_no_libm = yes \ 15179 || test $gl_cv_func_isnanf_in_libm = yes; then 15180 save_LIBS="$LIBS" 15181 LIBS="$LIBS $ISNANF_LIBM" 15182 15183 15184 15185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) works" >&5 15186 $as_echo_n "checking whether isnan(float) works... " >&6; } 15187 if ${gl_cv_func_isnanf_works+:} false; then : 15188 $as_echo_n "(cached) " >&6 15189 else 15190 15191 if test "$cross_compiling" = yes; then : 15192 case "$host_os" in 15193 irix* | solaris*) gl_cv_func_isnanf_works="guessing no";; 15194 *) gl_cv_func_isnanf_works="guessing yes";; 15195 esac 15196 15197 else 15198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15199 /* end confdefs.h. */ 15200 15201 #include <math.h> 15202 #if __GNUC__ >= 4 15203 # undef isnanf 15204 # define isnanf(x) __builtin_isnanf ((float)(x)) 15205 #elif defined isnan 15206 # undef isnanf 15207 # define isnanf(x) isnan ((float)(x)) 15208 #endif 15209 /* The Compaq (ex-DEC) C 6.4 compiler chokes on the expression 0.0 / 0.0. */ 15210 #ifdef __DECC 15211 static float 15212 NaN () 15213 { 15214 static float zero = 0.0f; 15215 return zero / zero; 15216 } 15217 #else 15218 # define NaN() (0.0f / 0.0f) 15219 #endif 15220 #define NWORDS \ 15221 ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int)) 15222 typedef union { unsigned int word[NWORDS]; float value; } memory_float; 15223 int main() 15224 { 15225 int result = 0; 15226 15227 if (isnanf (1.0f / 0.0f)) 15228 result |= 1; 15229 15230 if (!isnanf (NaN ())) 15231 result |= 2; 15232 15233 #if defined FLT_EXPBIT0_WORD && defined FLT_EXPBIT0_BIT 15234 /* The isnanf function should be immune against changes in the sign bit and 15235 in the mantissa bits. The xor operation twiddles a bit that can only be 15236 a sign bit or a mantissa bit. */ 15237 if (FLT_EXPBIT0_WORD == 0 && FLT_EXPBIT0_BIT > 0) 15238 { 15239 memory_float m; 15240 15241 m.value = NaN (); 15242 /* Set the bits below the exponent to 01111...111. */ 15243 m.word[0] &= -1U << FLT_EXPBIT0_BIT; 15244 m.word[0] |= 1U << (FLT_EXPBIT0_BIT - 1) - 1; 15245 if (!isnanf (m.value)) 15246 result |= 4; 15247 } 15248 #endif 15249 15250 return result; 15251 } 15252 _ACEOF 15253 if ac_fn_c_try_run "$LINENO"; then : 15254 gl_cv_func_isnanf_works=yes 15255 else 15256 gl_cv_func_isnanf_works=no 15257 fi 15258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15259 conftest.$ac_objext conftest.beam conftest.$ac_ext 15260 fi 15261 15262 15263 fi 15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_works" >&5 15265 $as_echo "$gl_cv_func_isnanf_works" >&6; } 15266 15267 LIBS="$save_LIBS" 15268 case "$gl_cv_func_isnanf_works" in 15269 *yes) gl_func_isnanf=yes ;; 15270 *) gl_func_isnanf=no; ISNANF_LIBM= ;; 15271 esac 15272 else 15273 gl_func_isnanf=no 15274 fi 15275 if test $gl_func_isnanf != yes; then 15276 HAVE_ISNANF=0 15277 fi 15278 15279 15280 15281 15282 ISNAND_LIBM= 15283 15284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5 15285 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; } 15286 if ${gl_cv_func_isnand_no_libm+:} false; then : 15287 $as_echo_n "(cached) " >&6 15288 else 15289 15290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15291 /* end confdefs.h. */ 15292 #include <math.h> 15293 #if __GNUC__ >= 4 15294 # undef isnand 15295 # define isnand(x) __builtin_isnan ((double)(x)) 15296 #else 15297 # undef isnand 15298 # define isnand(x) isnan ((double)(x)) 15299 #endif 15300 double x; 15301 int 15302 main () 15303 { 15304 return isnand (x); 15305 ; 15306 return 0; 15307 } 15308 _ACEOF 15309 if ac_fn_c_try_link "$LINENO"; then : 15310 gl_cv_func_isnand_no_libm=yes 15311 else 15312 gl_cv_func_isnand_no_libm=no 15313 fi 15314 rm -f core conftest.err conftest.$ac_objext \ 15315 conftest$ac_exeext conftest.$ac_ext 15316 15317 fi 15318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5 15319 $as_echo "$gl_cv_func_isnand_no_libm" >&6; } 15320 15321 if test $gl_cv_func_isnand_no_libm = no; then 15322 15323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used with libm" >&5 15324 $as_echo_n "checking whether isnan(double) can be used with libm... " >&6; } 15325 if ${gl_cv_func_isnand_in_libm+:} false; then : 15326 $as_echo_n "(cached) " >&6 15327 else 15328 15329 save_LIBS="$LIBS" 15330 LIBS="$LIBS -lm" 15331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15332 /* end confdefs.h. */ 15333 #include <math.h> 15334 #if __GNUC__ >= 4 15335 # undef isnand 15336 # define isnand(x) __builtin_isnan ((double)(x)) 15337 #elif defined isnan 15338 # undef isnand 15339 # define isnand(x) isnan ((double)(x)) 15340 #endif 15341 double x; 15342 int 15343 main () 15344 { 15345 return isnand (x); 15346 ; 15347 return 0; 15348 } 15349 _ACEOF 15350 if ac_fn_c_try_link "$LINENO"; then : 15351 gl_cv_func_isnand_in_libm=yes 15352 else 15353 gl_cv_func_isnand_in_libm=no 15354 fi 15355 rm -f core conftest.err conftest.$ac_objext \ 15356 conftest$ac_exeext conftest.$ac_ext 15357 LIBS="$save_LIBS" 15358 15359 fi 15360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_in_libm" >&5 15361 $as_echo "$gl_cv_func_isnand_in_libm" >&6; } 15362 15363 if test $gl_cv_func_isnand_in_libm = yes; then 15364 ISNAND_LIBM=-lm 15365 fi 15366 fi 15367 if test $gl_cv_func_isnand_no_libm = yes \ 15368 || test $gl_cv_func_isnand_in_libm = yes; then 15369 gl_func_isnand=yes 15370 else 15371 gl_func_isnand=no 15372 HAVE_ISNAND=0 15373 fi 15374 15375 15376 15377 15378 ISNANL_LIBM= 15379 15380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5 15381 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; } 15382 if ${gl_cv_func_isnanl_no_libm+:} false; then : 15383 $as_echo_n "(cached) " >&6 15384 else 15385 15386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15387 /* end confdefs.h. */ 15388 #include <math.h> 15389 #if __GNUC__ >= 4 15390 # undef isnanl 15391 # define isnanl(x) __builtin_isnanl ((long double)(x)) 15392 #elif defined isnan 15393 # undef isnanl 15394 # define isnanl(x) isnan ((long double)(x)) 15395 #endif 15396 long double x; 15397 int 15398 main () 15399 { 15400 return isnanl (x); 15401 ; 15402 return 0; 15403 } 15404 _ACEOF 15405 if ac_fn_c_try_link "$LINENO"; then : 15406 gl_cv_func_isnanl_no_libm=yes 15407 else 15408 gl_cv_func_isnanl_no_libm=no 15409 fi 15410 rm -f core conftest.err conftest.$ac_objext \ 15411 conftest$ac_exeext conftest.$ac_ext 15412 15413 fi 15414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5 15415 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; } 15416 15417 if test $gl_cv_func_isnanl_no_libm = no; then 15418 15419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used with libm" >&5 15420 $as_echo_n "checking whether isnan(long double) can be used with libm... " >&6; } 15421 if ${gl_cv_func_isnanl_in_libm+:} false; then : 15422 $as_echo_n "(cached) " >&6 15423 else 15424 15425 save_LIBS="$LIBS" 15426 LIBS="$LIBS -lm" 15427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15428 /* end confdefs.h. */ 15429 #include <math.h> 15430 #if __GNUC__ >= 4 15431 # undef isnanl 15432 # define isnanl(x) __builtin_isnanl ((long double)(x)) 15433 #elif defined isnan 15434 # undef isnanl 15435 # define isnanl(x) isnan ((long double)(x)) 15436 #endif 15437 long double x; 15438 int 15439 main () 15440 { 15441 return isnanl (x); 15442 ; 15443 return 0; 15444 } 15445 _ACEOF 15446 if ac_fn_c_try_link "$LINENO"; then : 15447 gl_cv_func_isnanl_in_libm=yes 15448 else 15449 gl_cv_func_isnanl_in_libm=no 15450 fi 15451 rm -f core conftest.err conftest.$ac_objext \ 15452 conftest$ac_exeext conftest.$ac_ext 15453 LIBS="$save_LIBS" 15454 15455 fi 15456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_in_libm" >&5 15457 $as_echo "$gl_cv_func_isnanl_in_libm" >&6; } 15458 15459 if test $gl_cv_func_isnanl_in_libm = yes; then 15460 ISNANL_LIBM=-lm 15461 fi 15462 fi 15463 if test $gl_cv_func_isnanl_no_libm = yes \ 15464 || test $gl_cv_func_isnanl_in_libm = yes; then 15465 save_LIBS="$LIBS" 15466 LIBS="$LIBS $ISNANL_LIBM" 15467 15468 15469 15470 15471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5 15472 $as_echo_n "checking whether isnanl works... " >&6; } 15473 if ${gl_cv_func_isnanl_works+:} false; then : 15474 $as_echo_n "(cached) " >&6 15475 else 15476 15477 if test "$cross_compiling" = yes; then : 15478 case "$host_cpu" in 15479 # Guess no on ia64, x86_64, i386. 15480 ia64 | x86_64 | i*86) gl_cv_func_isnanl_works="guessing no";; 15481 *) 15482 case "$host_os" in 15483 netbsd*) gl_cv_func_isnanl_works="guessing no";; 15484 *) gl_cv_func_isnanl_works="guessing yes";; 15485 esac 15486 ;; 15487 esac 15488 15489 else 15490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15491 /* end confdefs.h. */ 15492 15493 #include <float.h> 15494 #include <limits.h> 15495 #include <math.h> 15496 #if __GNUC__ >= 4 15497 # undef isnanl 15498 # define isnanl(x) __builtin_isnanl ((long double)(x)) 15499 #elif defined isnan 15500 # undef isnanl 15501 # define isnanl(x) isnan ((long double)(x)) 15502 #endif 15503 #define NWORDS \ 15504 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int)) 15505 typedef union { unsigned int word[NWORDS]; long double value; } 15506 memory_long_double; 15507 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the 15508 runtime type conversion. */ 15509 #ifdef __sgi 15510 static long double NaNl () 15511 { 15512 double zero = 0.0; 15513 return zero / zero; 15514 } 15515 #else 15516 # define NaNl() (0.0L / 0.0L) 15517 #endif 15518 int main () 15519 { 15520 int result = 0; 15521 15522 if (!isnanl (NaNl ())) 15523 result |= 1; 15524 15525 { 15526 memory_long_double m; 15527 unsigned int i; 15528 15529 /* The isnanl function should be immune against changes in the sign bit and 15530 in the mantissa bits. The xor operation twiddles a bit that can only be 15531 a sign bit or a mantissa bit (since the exponent never extends to 15532 bit 31). */ 15533 m.value = NaNl (); 15534 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1); 15535 for (i = 0; i < NWORDS; i++) 15536 m.word[i] |= 1; 15537 if (!isnanl (m.value)) 15538 result |= 1; 15539 } 15540 15541 #if ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_)) && !HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 15542 /* Representation of an 80-bit 'long double' as an initializer for a sequence 15543 of 'unsigned int' words. */ 15544 # ifdef WORDS_BIGENDIAN 15545 # define LDBL80_WORDS(exponent,manthi,mantlo) \ 15546 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \ 15547 ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16), \ 15548 (unsigned int) (mantlo) << 16 \ 15549 } 15550 # else 15551 # define LDBL80_WORDS(exponent,manthi,mantlo) \ 15552 { mantlo, manthi, exponent } 15553 # endif 15554 { /* Quiet NaN. */ 15555 static memory_long_double x = 15556 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) }; 15557 if (!isnanl (x.value)) 15558 result |= 2; 15559 } 15560 { 15561 /* Signalling NaN. */ 15562 static memory_long_double x = 15563 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) }; 15564 if (!isnanl (x.value)) 15565 result |= 2; 15566 } 15567 /* The isnanl function should recognize Pseudo-NaNs, Pseudo-Infinities, 15568 Pseudo-Zeroes, Unnormalized Numbers, and Pseudo-Denormals, as defined in 15569 Intel IA-64 Architecture Software Developer's Manual, Volume 1: 15570 Application Architecture. 15571 Table 5-2 "Floating-Point Register Encodings" 15572 Figure 5-6 "Memory to Floating-Point Register Data Translation" 15573 */ 15574 { /* Pseudo-NaN. */ 15575 static memory_long_double x = 15576 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) }; 15577 if (!isnanl (x.value)) 15578 result |= 4; 15579 } 15580 { /* Pseudo-Infinity. */ 15581 static memory_long_double x = 15582 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) }; 15583 if (!isnanl (x.value)) 15584 result |= 8; 15585 } 15586 { /* Pseudo-Zero. */ 15587 static memory_long_double x = 15588 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) }; 15589 if (!isnanl (x.value)) 15590 result |= 16; 15591 } 15592 { /* Unnormalized number. */ 15593 static memory_long_double x = 15594 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) }; 15595 if (!isnanl (x.value)) 15596 result |= 32; 15597 } 15598 { /* Pseudo-Denormal. */ 15599 static memory_long_double x = 15600 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) }; 15601 if (!isnanl (x.value)) 15602 result |= 64; 15603 } 15604 #endif 15605 15606 return result; 15607 } 15608 _ACEOF 15609 if ac_fn_c_try_run "$LINENO"; then : 15610 gl_cv_func_isnanl_works=yes 15611 else 15612 gl_cv_func_isnanl_works=no 15613 fi 15614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15615 conftest.$ac_objext conftest.beam conftest.$ac_ext 15616 fi 15617 15618 15619 fi 15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5 15621 $as_echo "$gl_cv_func_isnanl_works" >&6; } 15622 15623 LIBS="$save_LIBS" 15624 case "$gl_cv_func_isnanl_works" in 15625 *yes) gl_func_isnanl=yes ;; 15626 *) gl_func_isnanl=no; ISNANL_LIBM= ;; 15627 esac 15628 else 15629 gl_func_isnanl=no 15630 fi 15631 if test $gl_func_isnanl != yes; then 15632 HAVE_ISNANL=0 15633 fi 15634 15635 15636 15637 GNULIB_ISWBLANK=0; 15638 GNULIB_WCTYPE=0; 15639 GNULIB_ISWCTYPE=0; 15640 GNULIB_WCTRANS=0; 15641 GNULIB_TOWCTRANS=0; 15642 HAVE_ISWBLANK=1; 15643 HAVE_WCTYPE_T=1; 15644 HAVE_WCTRANS_T=1; 15645 REPLACE_ISWBLANK=0; 15646 15647 15648 15649 15650 15651 15652 15653 15654 15655 15656 if test $ac_cv_func_iswcntrl = yes; then 15657 HAVE_ISWCNTRL=1 15658 else 15659 HAVE_ISWCNTRL=0 15660 fi 15661 15662 15663 15664 if test $gt_cv_c_wint_t = yes; then 15665 HAVE_WINT_T=1 15666 else 15667 HAVE_WINT_T=0 15668 fi 15669 15670 15671 15672 15673 15674 15675 15676 15677 15678 15679 15680 if test $gl_cv_have_include_next = yes; then 15681 gl_cv_next_wctype_h='<'wctype.h'>' 15682 else 15683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5 15684 $as_echo_n "checking absolute name of <wctype.h>... " >&6; } 15685 if ${gl_cv_next_wctype_h+:} false; then : 15686 $as_echo_n "(cached) " >&6 15687 else 15688 15689 if test $ac_cv_header_wctype_h = yes; then 15690 15691 15692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15693 /* end confdefs.h. */ 15694 #include <wctype.h> 15695 15696 _ACEOF 15697 case "$host_os" in 15698 aix*) gl_absname_cpp="$ac_cpp -C" ;; 15699 *) gl_absname_cpp="$ac_cpp" ;; 15700 esac 15701 15702 case "$host_os" in 15703 mingw*) 15704 gl_dirsep_regex='[/\\]' 15705 ;; 15706 *) 15707 gl_dirsep_regex='\/' 15708 ;; 15709 esac 15710 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 15711 15712 gl_header_literal_regex=`echo 'wctype.h' \ 15713 | sed -e "$gl_make_literal_regex_sed"` 15714 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 15715 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 15716 s|^/[^/]|//&| 15717 p 15718 q 15719 }' 15720 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 15721 sed -n "$gl_absolute_header_sed"`'"' 15722 else 15723 gl_cv_next_wctype_h='<'wctype.h'>' 15724 fi 15725 15726 15727 fi 15728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5 15729 $as_echo "$gl_cv_next_wctype_h" >&6; } 15730 fi 15731 NEXT_WCTYPE_H=$gl_cv_next_wctype_h 15732 15733 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 15734 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 15735 gl_next_as_first_directive='<'wctype.h'>' 15736 else 15737 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 15738 gl_next_as_first_directive=$gl_cv_next_wctype_h 15739 fi 15740 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive 15741 15742 15743 15744 15745 if test $ac_cv_header_wctype_h = yes; then 15746 if test $ac_cv_func_iswcntrl = yes; then 15747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5 15748 $as_echo_n "checking whether iswcntrl works... " >&6; } 15749 if ${gl_cv_func_iswcntrl_works+:} false; then : 15750 $as_echo_n "(cached) " >&6 15751 else 15752 15753 if test "$cross_compiling" = yes; then : 15754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15755 /* end confdefs.h. */ 15756 #include <stdlib.h> 15757 #if __GNU_LIBRARY__ == 1 15758 Linux libc5 i18n is broken. 15759 #endif 15760 int 15761 main () 15762 { 15763 15764 ; 15765 return 0; 15766 } 15767 _ACEOF 15768 if ac_fn_c_try_compile "$LINENO"; then : 15769 gl_cv_func_iswcntrl_works="guessing yes" 15770 else 15771 gl_cv_func_iswcntrl_works="guessing no" 15772 fi 15773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15774 15775 else 15776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15777 /* end confdefs.h. */ 15778 15779 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be 15780 included before <wchar.h>. 15781 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> 15782 must be included before <wchar.h>. */ 15783 #include <stddef.h> 15784 #include <stdio.h> 15785 #include <time.h> 15786 #include <wchar.h> 15787 #include <wctype.h> 15788 int main () { return iswprint ('x') == 0; } 15789 15790 _ACEOF 15791 if ac_fn_c_try_run "$LINENO"; then : 15792 gl_cv_func_iswcntrl_works=yes 15793 else 15794 gl_cv_func_iswcntrl_works=no 15795 fi 15796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15797 conftest.$ac_objext conftest.beam conftest.$ac_ext 15798 fi 15799 15800 15801 fi 15802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5 15803 $as_echo "$gl_cv_func_iswcntrl_works" >&6; } 15804 fi 15805 HAVE_WCTYPE_H=1 15806 else 15807 HAVE_WCTYPE_H=0 15808 fi 15809 15810 15811 case "$gl_cv_func_iswcntrl_works" in 15812 *yes) REPLACE_ISWCNTRL=0 ;; 15813 *) REPLACE_ISWCNTRL=1 ;; 15814 esac 15815 15816 15817 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then 15818 : 15819 fi 15820 15821 if test $REPLACE_ISWCNTRL = 1; then 15822 REPLACE_TOWLOWER=1 15823 else 15824 for ac_func in towlower 15825 do : 15826 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower" 15827 if test "x$ac_cv_func_towlower" = xyes; then : 15828 cat >>confdefs.h <<_ACEOF 15829 #define HAVE_TOWLOWER 1 15830 _ACEOF 15831 15832 fi 15833 done 15834 15835 if test $ac_cv_func_towlower = yes; then 15836 REPLACE_TOWLOWER=0 15837 else 15838 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be 15839 included before <wchar.h>. 15840 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> 15841 must be included before <wchar.h>. */ 15842 #include <stddef.h> 15843 #include <stdio.h> 15844 #include <time.h> 15845 #include <wchar.h> 15846 #if HAVE_WCTYPE_H 15847 # include <wctype.h> 15848 #endif 15849 15850 " 15851 if test "x$ac_cv_have_decl_towlower" = xyes; then : 15852 ac_have_decl=1 15853 else 15854 ac_have_decl=0 15855 fi 15856 15857 cat >>confdefs.h <<_ACEOF 15858 #define HAVE_DECL_TOWLOWER $ac_have_decl 15859 _ACEOF 15860 15861 if test $ac_cv_have_decl_towlower = yes; then 15862 REPLACE_TOWLOWER=1 15863 else 15864 REPLACE_TOWLOWER=0 15865 fi 15866 fi 15867 fi 15868 15869 15870 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then 15871 : 15872 fi 15873 15874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5 15875 $as_echo_n "checking for wctype_t... " >&6; } 15876 if ${gl_cv_type_wctype_t+:} false; then : 15877 $as_echo_n "(cached) " >&6 15878 else 15879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15880 /* end confdefs.h. */ 15881 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be 15882 included before <wchar.h>. 15883 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> 15884 must be included before <wchar.h>. */ 15885 #include <stddef.h> 15886 #include <stdio.h> 15887 #include <time.h> 15888 #include <wchar.h> 15889 #if HAVE_WCTYPE_H 15890 # include <wctype.h> 15891 #endif 15892 wctype_t a; 15893 15894 int 15895 main () 15896 { 15897 15898 ; 15899 return 0; 15900 } 15901 _ACEOF 15902 if ac_fn_c_try_compile "$LINENO"; then : 15903 gl_cv_type_wctype_t=yes 15904 else 15905 gl_cv_type_wctype_t=no 15906 fi 15907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15908 15909 fi 15910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5 15911 $as_echo "$gl_cv_type_wctype_t" >&6; } 15912 if test $gl_cv_type_wctype_t = no; then 15913 HAVE_WCTYPE_T=0 15914 fi 15915 15916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5 15917 $as_echo_n "checking for wctrans_t... " >&6; } 15918 if ${gl_cv_type_wctrans_t+:} false; then : 15919 $as_echo_n "(cached) " >&6 15920 else 15921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15922 /* end confdefs.h. */ 15923 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be 15924 included before <wchar.h>. 15925 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> 15926 must be included before <wchar.h>. */ 15927 #include <stddef.h> 15928 #include <stdio.h> 15929 #include <time.h> 15930 #include <wchar.h> 15931 #include <wctype.h> 15932 wctrans_t a; 15933 15934 int 15935 main () 15936 { 15937 15938 ; 15939 return 0; 15940 } 15941 _ACEOF 15942 if ac_fn_c_try_compile "$LINENO"; then : 15943 gl_cv_type_wctrans_t=yes 15944 else 15945 gl_cv_type_wctrans_t=no 15946 fi 15947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15948 15949 fi 15950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5 15951 $as_echo "$gl_cv_type_wctrans_t" >&6; } 15952 if test $gl_cv_type_wctrans_t = no; then 15953 HAVE_WCTRANS_T=0 15954 fi 15955 15956 15957 for gl_func in wctype iswctype wctrans towctrans ; do 15958 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 15959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 15960 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 15961 if eval \${$as_gl_Symbol+:} false; then : 15962 $as_echo_n "(cached) " >&6 15963 else 15964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15965 /* end confdefs.h. */ 15966 15967 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 15968 <wchar.h>. 15969 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 15970 included before <wchar.h>. */ 15971 #if !(defined __GLIBC__ && !defined __UCLIBC__) 15972 # include <stddef.h> 15973 # include <stdio.h> 15974 # include <time.h> 15975 # include <wchar.h> 15976 #endif 15977 #include <wctype.h> 15978 15979 int 15980 main () 15981 { 15982 #undef $gl_func 15983 (void) $gl_func; 15984 ; 15985 return 0; 15986 } 15987 _ACEOF 15988 if ac_fn_c_try_compile "$LINENO"; then : 15989 eval "$as_gl_Symbol=yes" 15990 else 15991 eval "$as_gl_Symbol=no" 15992 fi 15993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15994 fi 15995 eval ac_res=\$$as_gl_Symbol 15996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15997 $as_echo "$ac_res" >&6; } 15998 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 15999 cat >>confdefs.h <<_ACEOF 16000 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 16001 _ACEOF 16002 16003 eval ac_cv_have_decl_$gl_func=yes 16004 fi 16005 done 16006 16007 16008 16009 16010 16011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ldexp() can be used without linking with libm" >&5 16012 $as_echo_n "checking whether ldexp() can be used without linking with libm... " >&6; } 16013 if ${gl_cv_func_ldexp_no_libm+:} false; then : 16014 $as_echo_n "(cached) " >&6 16015 else 16016 16017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16018 /* end confdefs.h. */ 16019 #ifndef __NO_MATH_INLINES 16020 # define __NO_MATH_INLINES 1 /* for glibc */ 16021 #endif 16022 #include <math.h> 16023 double (*funcptr) (double, int) = ldexp; 16024 double x; 16025 int 16026 main () 16027 { 16028 return ldexp (x, -1) > 0; 16029 ; 16030 return 0; 16031 } 16032 _ACEOF 16033 if ac_fn_c_try_link "$LINENO"; then : 16034 gl_cv_func_ldexp_no_libm=yes 16035 else 16036 gl_cv_func_ldexp_no_libm=no 16037 fi 16038 rm -f core conftest.err conftest.$ac_objext \ 16039 conftest$ac_exeext conftest.$ac_ext 16040 16041 fi 16042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ldexp_no_libm" >&5 16043 $as_echo "$gl_cv_func_ldexp_no_libm" >&6; } 16044 16045 16046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 16047 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 16048 if ${am_cv_langinfo_codeset+:} false; then : 16049 $as_echo_n "(cached) " >&6 16050 else 16051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16052 /* end confdefs.h. */ 16053 #include <langinfo.h> 16054 int 16055 main () 16056 { 16057 char* cs = nl_langinfo(CODESET); return !cs; 16058 ; 16059 return 0; 16060 } 16061 _ACEOF 16062 if ac_fn_c_try_link "$LINENO"; then : 16063 am_cv_langinfo_codeset=yes 16064 else 16065 am_cv_langinfo_codeset=no 16066 fi 16067 rm -f core conftest.err conftest.$ac_objext \ 16068 conftest$ac_exeext conftest.$ac_ext 16069 16070 fi 16071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 16072 $as_echo "$am_cv_langinfo_codeset" >&6; } 16073 if test $am_cv_langinfo_codeset = yes; then 16074 16075 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 16076 16077 fi 16078 16079 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default" 16080 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then : 16081 ac_have_decl=1 16082 else 16083 ac_have_decl=0 16084 fi 16085 16086 cat >>confdefs.h <<_ACEOF 16087 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl 16088 _ACEOF 16089 16090 16091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5 16092 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; } 16093 if ${ac_cv_gnu_library_2_1+:} false; then : 16094 $as_echo_n "(cached) " >&6 16095 else 16096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16097 /* end confdefs.h. */ 16098 16099 #include <features.h> 16100 #ifdef __GNU_LIBRARY__ 16101 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) 16102 Lucky GNU user 16103 #endif 16104 #endif 16105 #ifdef __UCLIBC__ 16106 Lucky user 16107 #endif 16108 16109 _ACEOF 16110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16111 $EGREP "Lucky" >/dev/null 2>&1; then : 16112 ac_cv_gnu_library_2_1=yes 16113 else 16114 ac_cv_gnu_library_2_1=no 16115 fi 16116 rm -f conftest* 16117 16118 16119 16120 fi 16121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 16122 $as_echo "$ac_cv_gnu_library_2_1" >&6; } 16123 16124 GLIBC21="$ac_cv_gnu_library_2_1" 16125 16126 16127 16128 if test "X$prefix" = "XNONE"; then 16129 acl_final_prefix="$ac_default_prefix" 16130 else 16131 acl_final_prefix="$prefix" 16132 fi 16133 if test "X$exec_prefix" = "XNONE"; then 16134 acl_final_exec_prefix='${prefix}' 16135 else 16136 acl_final_exec_prefix="$exec_prefix" 16137 fi 16138 acl_save_prefix="$prefix" 16139 prefix="$acl_final_prefix" 16140 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 16141 prefix="$acl_save_prefix" 16142 16143 16144 16145 # Check whether --with-gnu-ld was given. 16146 if test "${with_gnu_ld+set}" = set; then : 16147 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 16148 else 16149 with_gnu_ld=no 16150 fi 16151 16152 # Prepare PATH_SEPARATOR. 16153 # The user is always right. 16154 if test "${PATH_SEPARATOR+set}" != set; then 16155 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 16156 # contains only /bin. Note that ksh looks also at the FPATH variable, 16157 # so we have to set that as well for the test. 16158 PATH_SEPARATOR=: 16159 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 16160 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 16161 || PATH_SEPARATOR=';' 16162 } 16163 fi 16164 16165 ac_prog=ld 16166 if test "$GCC" = yes; then 16167 # Check if gcc -print-prog-name=ld gives a path. 16168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 16169 $as_echo_n "checking for ld used by $CC... " >&6; } 16170 case $host in 16171 *-*-mingw*) 16172 # gcc leaves a trailing carriage return which upsets mingw 16173 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 16174 *) 16175 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 16176 esac 16177 case $ac_prog in 16178 # Accept absolute paths. 16179 [\\/]* | ?:[\\/]*) 16180 re_direlt='/[^/][^/]*/\.\./' 16181 # Canonicalize the pathname of ld 16182 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` 16183 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do 16184 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 16185 done 16186 test -z "$LD" && LD="$ac_prog" 16187 ;; 16188 "") 16189 # If it fails, then pretend we aren't using GCC. 16190 ac_prog=ld 16191 ;; 16192 *) 16193 # If it is relative, then search for the first ld in PATH. 16194 with_gnu_ld=unknown 16195 ;; 16196 esac 16197 elif test "$with_gnu_ld" = yes; then 16198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 16199 $as_echo_n "checking for GNU ld... " >&6; } 16200 else 16201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 16202 $as_echo_n "checking for non-GNU ld... " >&6; } 16203 fi 16204 if ${acl_cv_path_LD+:} false; then : 16205 $as_echo_n "(cached) " >&6 16206 else 16207 if test -z "$LD"; then 16208 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 16209 for ac_dir in $PATH; do 16210 IFS="$acl_save_ifs" 16211 test -z "$ac_dir" && ac_dir=. 16212 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 16213 acl_cv_path_LD="$ac_dir/$ac_prog" 16214 # Check to see if the program is GNU ld. I'd rather use --version, 16215 # but apparently some variants of GNU ld only accept -v. 16216 # Break only if it was the GNU/non-GNU ld that we prefer. 16217 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in 16218 *GNU* | *'with BFD'*) 16219 test "$with_gnu_ld" != no && break 16220 ;; 16221 *) 16222 test "$with_gnu_ld" != yes && break 16223 ;; 16224 esac 16225 fi 16226 done 16227 IFS="$acl_save_ifs" 16228 else 16229 acl_cv_path_LD="$LD" # Let the user override the test with a path. 16230 fi 16231 fi 16232 16233 LD="$acl_cv_path_LD" 16234 if test -n "$LD"; then 16235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 16236 $as_echo "$LD" >&6; } 16237 else 16238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16239 $as_echo "no" >&6; } 16240 fi 16241 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 16242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 16243 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 16244 if ${acl_cv_prog_gnu_ld+:} false; then : 16245 $as_echo_n "(cached) " >&6 16246 else 16247 # I'd rather use --version here, but apparently some GNU lds only accept -v. 16248 case `$LD -v 2>&1 </dev/null` in 16249 *GNU* | *'with BFD'*) 16250 acl_cv_prog_gnu_ld=yes 16251 ;; 16252 *) 16253 acl_cv_prog_gnu_ld=no 16254 ;; 16255 esac 16256 fi 16257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 16258 $as_echo "$acl_cv_prog_gnu_ld" >&6; } 16259 with_gnu_ld=$acl_cv_prog_gnu_ld 16260 16261 16262 16263 16264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 16265 $as_echo_n "checking for shared library run path origin... " >&6; } 16266 if ${acl_cv_rpath+:} false; then : 16267 $as_echo_n "(cached) " >&6 16268 else 16269 16270 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 16271 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 16272 . ./conftest.sh 16273 rm -f ./conftest.sh 16274 acl_cv_rpath=done 16275 16276 fi 16277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 16278 $as_echo "$acl_cv_rpath" >&6; } 16279 wl="$acl_cv_wl" 16280 acl_libext="$acl_cv_libext" 16281 acl_shlibext="$acl_cv_shlibext" 16282 acl_libname_spec="$acl_cv_libname_spec" 16283 acl_library_names_spec="$acl_cv_library_names_spec" 16284 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 16285 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 16286 acl_hardcode_direct="$acl_cv_hardcode_direct" 16287 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 16288 # Check whether --enable-rpath was given. 16289 if test "${enable_rpath+set}" = set; then : 16290 enableval=$enable_rpath; : 16291 else 16292 enable_rpath=yes 16293 fi 16294 16295 16296 16297 16298 acl_libdirstem=lib 16299 acl_libdirstem2= 16300 case "$host_os" in 16301 solaris*) 16302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 16303 $as_echo_n "checking for 64-bit host... " >&6; } 16304 if ${gl_cv_solaris_64bit+:} false; then : 16305 $as_echo_n "(cached) " >&6 16306 else 16307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16308 /* end confdefs.h. */ 16309 16310 #ifdef _LP64 16311 sixtyfour bits 16312 #endif 16313 16314 _ACEOF 16315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16316 $EGREP "sixtyfour bits" >/dev/null 2>&1; then : 16317 gl_cv_solaris_64bit=yes 16318 else 16319 gl_cv_solaris_64bit=no 16320 fi 16321 rm -f conftest* 16322 16323 16324 fi 16325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 16326 $as_echo "$gl_cv_solaris_64bit" >&6; } 16327 if test $gl_cv_solaris_64bit = yes; then 16328 acl_libdirstem=lib/64 16329 case "$host_cpu" in 16330 sparc*) acl_libdirstem2=lib/sparcv9 ;; 16331 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; 16332 esac 16333 fi 16334 ;; 16335 *) 16336 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 16337 if test -n "$searchpath"; then 16338 acl_save_IFS="${IFS= }"; IFS=":" 16339 for searchdir in $searchpath; do 16340 if test -d "$searchdir"; then 16341 case "$searchdir" in 16342 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 16343 */../ | */.. ) 16344 # Better ignore directories of this form. They are misleading. 16345 ;; 16346 *) searchdir=`cd "$searchdir" && pwd` 16347 case "$searchdir" in 16348 */lib64 ) acl_libdirstem=lib64 ;; 16349 esac ;; 16350 esac 16351 fi 16352 done 16353 IFS="$acl_save_IFS" 16354 fi 16355 ;; 16356 esac 16357 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" 16358 16359 16360 16361 gl_threads_api=none 16362 LIBTHREAD= 16363 LTLIBTHREAD= 16364 LIBMULTITHREAD= 16365 LTLIBMULTITHREAD= 16366 if test "$gl_use_threads" != no; then 16367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 16368 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; } 16369 if ${gl_cv_have_weak+:} false; then : 16370 $as_echo_n "(cached) " >&6 16371 else 16372 gl_cv_have_weak=no 16373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16374 /* end confdefs.h. */ 16375 extern void xyzzy (); 16376 #pragma weak xyzzy 16377 int 16378 main () 16379 { 16380 xyzzy(); 16381 ; 16382 return 0; 16383 } 16384 _ACEOF 16385 if ac_fn_c_try_link "$LINENO"; then : 16386 gl_cv_have_weak=maybe 16387 fi 16388 rm -f core conftest.err conftest.$ac_objext \ 16389 conftest$ac_exeext conftest.$ac_ext 16390 if test $gl_cv_have_weak = maybe; then 16391 if test "$cross_compiling" = yes; then : 16392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16393 /* end confdefs.h. */ 16394 #ifdef __ELF__ 16395 Extensible Linking Format 16396 #endif 16397 16398 _ACEOF 16399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16400 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then : 16401 gl_cv_have_weak="guessing yes" 16402 else 16403 gl_cv_have_weak="guessing no" 16404 fi 16405 rm -f conftest* 16406 16407 16408 else 16409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16410 /* end confdefs.h. */ 16411 16412 #include <stdio.h> 16413 #pragma weak fputs 16414 int main () 16415 { 16416 return (fputs == NULL); 16417 } 16418 _ACEOF 16419 if ac_fn_c_try_run "$LINENO"; then : 16420 gl_cv_have_weak=yes 16421 else 16422 gl_cv_have_weak=no 16423 fi 16424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16425 conftest.$ac_objext conftest.beam conftest.$ac_ext 16426 fi 16427 16428 fi 16429 16430 fi 16431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 16432 $as_echo "$gl_cv_have_weak" >&6; } 16433 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then 16434 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that 16435 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY. 16436 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 16437 if test "x$ac_cv_header_pthread_h" = xyes; then : 16438 gl_have_pthread_h=yes 16439 else 16440 gl_have_pthread_h=no 16441 fi 16442 16443 16444 if test "$gl_have_pthread_h" = yes; then 16445 # Other possible tests: 16446 # -lpthreads (FSU threads, PCthreads) 16447 # -lgthreads 16448 gl_have_pthread= 16449 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist 16450 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but 16451 # the second one only in libpthread, and lock.c needs it. 16452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16453 /* end confdefs.h. */ 16454 #include <pthread.h> 16455 int 16456 main () 16457 { 16458 pthread_mutex_lock((pthread_mutex_t*)0); 16459 pthread_mutexattr_init((pthread_mutexattr_t*)0); 16460 ; 16461 return 0; 16462 } 16463 _ACEOF 16464 if ac_fn_c_try_link "$LINENO"; then : 16465 gl_have_pthread=yes 16466 fi 16467 rm -f core conftest.err conftest.$ac_objext \ 16468 conftest$ac_exeext conftest.$ac_ext 16469 # Test for libpthread by looking for pthread_kill. (Not pthread_self, 16470 # since it is defined as a macro on OSF/1.) 16471 if test -n "$gl_have_pthread"; then 16472 # The program links fine without libpthread. But it may actually 16473 # need to link with libpthread in order to create multiple threads. 16474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 16475 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; } 16476 if ${ac_cv_lib_pthread_pthread_kill+:} false; then : 16477 $as_echo_n "(cached) " >&6 16478 else 16479 ac_check_lib_save_LIBS=$LIBS 16480 LIBS="-lpthread $LIBS" 16481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16482 /* end confdefs.h. */ 16483 16484 /* Override any GCC internal prototype to avoid an error. 16485 Use char because int might match the return type of a GCC 16486 builtin and then its argument prototype would still apply. */ 16487 #ifdef __cplusplus 16488 extern "C" 16489 #endif 16490 char pthread_kill (); 16491 int 16492 main () 16493 { 16494 return pthread_kill (); 16495 ; 16496 return 0; 16497 } 16498 _ACEOF 16499 if ac_fn_c_try_link "$LINENO"; then : 16500 ac_cv_lib_pthread_pthread_kill=yes 16501 else 16502 ac_cv_lib_pthread_pthread_kill=no 16503 fi 16504 rm -f core conftest.err conftest.$ac_objext \ 16505 conftest$ac_exeext conftest.$ac_ext 16506 LIBS=$ac_check_lib_save_LIBS 16507 fi 16508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 16509 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } 16510 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : 16511 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread 16512 # On Solaris and HP-