1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.67 for renameutils 0.12.0. 4# 5# Report bugs to <oskar@osk.mine.nu>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94case $0 in #(( 95 *[\\/]* ) as_myself=$0 ;; 96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 97for as_dir in $PATH 98do 99 IFS=$as_save_IFS 100 test -z "$as_dir" && as_dir=. 101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 102 done 103IFS=$as_save_IFS 104 105 ;; 106esac 107# We did not find ourselves, most probably we were run as `sh COMMAND' 108# in which case we are not to be found in the path. 109if test "x$as_myself" = x; then 110 as_myself=$0 111fi 112if test ! -f "$as_myself"; then 113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114 exit 1 115fi 116 117# Unset variables that we do not need and which cause bugs (e.g. in 118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 119# suppresses any "Segmentation fault" message there. '((' could 120# trigger a bug in pdksh 5.2.14. 121for as_var in BASH_ENV ENV MAIL MAILPATH 122do eval test x\${$as_var+set} = xset \ 123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 124done 125PS1='$ ' 126PS2='> ' 127PS4='+ ' 128 129# NLS nuisances. 130LC_ALL=C 131export LC_ALL 132LANGUAGE=C 133export LANGUAGE 134 135# CDPATH. 136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137 138if test "x$CONFIG_SHELL" = x; then 139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 140 emulate sh 141 NULLCMD=: 142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 143 # is contrary to our usage. Disable this feature. 144 alias -g '\${1+\"\$@\"}'='\"\$@\"' 145 setopt NO_GLOB_SUBST 146else 147 case \`(set -o) 2>/dev/null\` in #( 148 *posix*) : 149 set -o posix ;; #( 150 *) : 151 ;; 152esac 153fi 154" 155 as_required="as_fn_return () { (exit \$1); } 156as_fn_success () { as_fn_return 0; } 157as_fn_failure () { as_fn_return 1; } 158as_fn_ret_success () { return 0; } 159as_fn_ret_failure () { return 1; } 160 161exitcode=0 162as_fn_success || { exitcode=1; echo as_fn_success failed.; } 163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 167 168else 169 exitcode=1; echo positional parameters were not saved. 170fi 171test x\$exitcode = x0 || exit 1" 172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 176test \$(( 1 + 1 )) = 2 || exit 1" 177 if (eval "$as_required") 2>/dev/null; then : 178 as_have_required=yes 179else 180 as_have_required=no 181fi 182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 183 184else 185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 186as_found=false 187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 188do 189 IFS=$as_save_IFS 190 test -z "$as_dir" && as_dir=. 191 as_found=: 192 case $as_dir in #( 193 /*) 194 for as_base in sh bash ksh sh5; do 195 # Try only shells that exist, to save several forks. 196 as_shell=$as_dir/$as_base 197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 199 CONFIG_SHELL=$as_shell as_have_required=yes 200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 201 break 2 202fi 203fi 204 done;; 205 esac 206 as_found=false 207done 208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 210 CONFIG_SHELL=$SHELL as_have_required=yes 211fi; } 212IFS=$as_save_IFS 213 214 215 if test "x$CONFIG_SHELL" != x; then : 216 # We cannot yet assume a decent shell, so we have to provide a 217 # neutralization value for shells without unset; and this also 218 # works around shells that cannot unset nonexistent variables. 219 BASH_ENV=/dev/null 220 ENV=/dev/null 221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 222 export CONFIG_SHELL 223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 224fi 225 226 if test x$as_have_required = xno; then : 227 $as_echo "$0: This script requires a shell more modern than all" 228 $as_echo "$0: the shells that I found on your system." 229 if test x${ZSH_VERSION+set} = xset ; then 230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 231 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 232 else 233 $as_echo "$0: Please tell bug-autoconf@gnu.org and oskar@osk.mine.nu 234$0: about your system, including any error possibly output 235$0: before this message. Then install a modern shell, or 236$0: manually run the script under such a shell if you do 237$0: have one." 238 fi 239 exit 1 240fi 241fi 242fi 243SHELL=${CONFIG_SHELL-/bin/sh} 244export SHELL 245# Unset more variables known to interfere with behavior of common tools. 246CLICOLOR_FORCE= GREP_OPTIONS= 247unset CLICOLOR_FORCE GREP_OPTIONS 248 249## --------------------- ## 250## M4sh Shell Functions. ## 251## --------------------- ## 252# as_fn_unset VAR 253# --------------- 254# Portably unset VAR. 255as_fn_unset () 256{ 257 { eval $1=; unset $1;} 258} 259as_unset=as_fn_unset 260 261# as_fn_set_status STATUS 262# ----------------------- 263# Set $? to STATUS, without forking. 264as_fn_set_status () 265{ 266 return $1 267} # as_fn_set_status 268 269# as_fn_exit STATUS 270# ----------------- 271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 272as_fn_exit () 273{ 274 set +e 275 as_fn_set_status $1 276 exit $1 277} # as_fn_exit 278 279# as_fn_mkdir_p 280# ------------- 281# Create "$as_dir" as a directory, including parents if necessary. 282as_fn_mkdir_p () 283{ 284 285 case $as_dir in #( 286 -*) as_dir=./$as_dir;; 287 esac 288 test -d "$as_dir" || eval $as_mkdir_p || { 289 as_dirs= 290 while :; do 291 case $as_dir in #( 292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 293 *) as_qdir=$as_dir;; 294 esac 295 as_dirs="'$as_qdir' $as_dirs" 296 as_dir=`$as_dirname -- "$as_dir" || 297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 298 X"$as_dir" : 'X\(//\)[^/]' \| \ 299 X"$as_dir" : 'X\(//\)$' \| \ 300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 301$as_echo X"$as_dir" | 302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 303 s//\1/ 304 q 305 } 306 /^X\(\/\/\)[^/].*/{ 307 s//\1/ 308 q 309 } 310 /^X\(\/\/\)$/{ 311 s//\1/ 312 q 313 } 314 /^X\(\/\).*/{ 315 s//\1/ 316 q 317 } 318 s/.*/./; q'` 319 test -d "$as_dir" && break 320 done 321 test -z "$as_dirs" || eval "mkdir $as_dirs" 322 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 323 324 325} # as_fn_mkdir_p 326# as_fn_append VAR VALUE 327# ---------------------- 328# Append the text in VALUE to the end of the definition contained in VAR. Take 329# advantage of any shell optimizations that allow amortized linear growth over 330# repeated appends, instead of the typical quadratic growth present in naive 331# implementations. 332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 333 eval 'as_fn_append () 334 { 335 eval $1+=\$2 336 }' 337else 338 as_fn_append () 339 { 340 eval $1=\$$1\$2 341 } 342fi # as_fn_append 343 344# as_fn_arith ARG... 345# ------------------ 346# Perform arithmetic evaluation on the ARGs, and store the result in the 347# global $as_val. Take advantage of shells that can avoid forks. The arguments 348# must be portable across $(()) and expr. 349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 350 eval 'as_fn_arith () 351 { 352 as_val=$(( $* )) 353 }' 354else 355 as_fn_arith () 356 { 357 as_val=`expr "$@" || test $? -eq 1` 358 } 359fi # as_fn_arith 360 361 362# as_fn_error STATUS ERROR [LINENO LOG_FD] 363# ---------------------------------------- 364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 366# script with STATUS, using 1 if that was 0. 367as_fn_error () 368{ 369 as_status=$1; test $as_status -eq 0 && as_status=1 370 if test "$4"; then 371 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 373 fi 374 $as_echo "$as_me: error: $2" >&2 375 as_fn_exit $as_status 376} # as_fn_error 377 378if expr a : '\(a\)' >/dev/null 2>&1 && 379 test "X`expr 00001 : '.*\(...\)'`" = X001; then 380 as_expr=expr 381else 382 as_expr=false 383fi 384 385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 386 as_basename=basename 387else 388 as_basename=false 389fi 390 391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 392 as_dirname=dirname 393else 394 as_dirname=false 395fi 396 397as_me=`$as_basename -- "$0" || 398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 399 X"$0" : 'X\(//\)$' \| \ 400 X"$0" : 'X\(/\)' \| . 2>/dev/null || 401$as_echo X/"$0" | 402 sed '/^.*\/\([^/][^/]*\)\/*$/{ 403 s//\1/ 404 q 405 } 406 /^X\/\(\/\/\)$/{ 407 s//\1/ 408 q 409 } 410 /^X\/\(\/\).*/{ 411 s//\1/ 412 q 413 } 414 s/.*/./; q'` 415 416# Avoid depending upon Character Ranges. 417as_cr_letters='abcdefghijklmnopqrstuvwxyz' 418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 419as_cr_Letters=$as_cr_letters$as_cr_LETTERS 420as_cr_digits='0123456789' 421as_cr_alnum=$as_cr_Letters$as_cr_digits 422 423 424 as_lineno_1=$LINENO as_lineno_1a=$LINENO 425 as_lineno_2=$LINENO as_lineno_2a=$LINENO 426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 429 sed -n ' 430 p 431 /[$]LINENO/= 432 ' <$as_myself | 433 sed ' 434 s/[$]LINENO.*/&-/ 435 t lineno 436 b 437 :lineno 438 N 439 :loop 440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 441 t loop 442 s/-\n.*// 443 ' >$as_me.lineno && 444 chmod +x "$as_me.lineno" || 445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 446 447 # Don't try to exec as it changes $[0], causing all sort of problems 448 # (the dirname of $[0] is not the place where we might find the 449 # original and so on. Autoconf is especially sensitive to this). 450 . "./$as_me.lineno" 451 # Exit status is that of the last command. 452 exit 453} 454 455ECHO_C= ECHO_N= ECHO_T= 456case `echo -n x` in #((((( 457-n*) 458 case `echo 'xy\c'` in 459 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 460 xy) ECHO_C='\c';; 461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 462 ECHO_T=' ';; 463 esac;; 464*) 465 ECHO_N='-n';; 466esac 467 468rm -f conf$$ conf$$.exe conf$$.file 469if test -d conf$$.dir; then 470 rm -f conf$$.dir/conf$$.file 471else 472 rm -f conf$$.dir 473 mkdir conf$$.dir 2>/dev/null 474fi 475if (echo >conf$$.file) 2>/dev/null; then 476 if ln -s conf$$.file conf$$ 2>/dev/null; then 477 as_ln_s='ln -s' 478 # ... but there are two gotchas: 479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 481 # In both cases, we have to default to `cp -p'. 482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 483 as_ln_s='cp -p' 484 elif ln conf$$.file conf$$ 2>/dev/null; then 485 as_ln_s=ln 486 else 487 as_ln_s='cp -p' 488 fi 489else 490 as_ln_s='cp -p' 491fi 492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 493rmdir conf$$.dir 2>/dev/null 494 495if mkdir -p . 2>/dev/null; then 496 as_mkdir_p='mkdir -p "$as_dir"' 497else 498 test -d ./-p && rmdir ./-p 499 as_mkdir_p=false 500fi 501 502if test -x / >/dev/null 2>&1; then 503 as_test_x='test -x' 504else 505 if ls -dL / >/dev/null 2>&1; then 506 as_ls_L_option=L 507 else 508 as_ls_L_option= 509 fi 510 as_test_x=' 511 eval sh -c '\'' 512 if test -d "$1"; then 513 test -d "$1/."; 514 else 515 case $1 in #( 516 -*)set "./$1";; 517 esac; 518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 519 ???[sx]*):;;*)false;;esac;fi 520 '\'' sh 521 ' 522fi 523as_executable_p=$as_test_x 524 525# Sed expression to map a string onto a valid CPP name. 526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 527 528# Sed expression to map a string onto a valid variable name. 529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 530 531 532test -n "$DJDIR" || exec 7<&0 </dev/null 533exec 6>&1 534 535# Name of the host. 536# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 537# so uname gets run too. 538ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 539 540# 541# Initializations. 542# 543ac_default_prefix=/usr/local 544ac_clean_files= 545ac_config_libobj_dir=. 546LIBOBJS= 547cross_compiling=no 548subdirs= 549MFLAGS= 550MAKEFLAGS= 551 552# Identity of this package. 553PACKAGE_NAME='renameutils' 554PACKAGE_TARNAME='renameutils' 555PACKAGE_VERSION='0.12.0' 556PACKAGE_STRING='renameutils 0.12.0' 557PACKAGE_BUGREPORT='oskar@osk.mine.nu' 558PACKAGE_URL='' 559 560ac_unique_file="src/qcmd.h" 561# Factoring default headers for most tests. 562ac_includes_default="\ 563#include <stdio.h> 564#ifdef HAVE_SYS_TYPES_H 565# include <sys/types.h> 566#endif 567#ifdef HAVE_SYS_STAT_H 568# include <sys/stat.h> 569#endif 570#ifdef STDC_HEADERS 571# include <stdlib.h> 572# include <stddef.h> 573#else 574# ifdef HAVE_STDLIB_H 575# include <stdlib.h> 576# endif 577#endif 578#ifdef HAVE_STRING_H 579# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 580# include <memory.h> 581# endif 582# include <string.h> 583#endif 584#ifdef HAVE_STRINGS_H 585# include <strings.h> 586#endif 587#ifdef HAVE_INTTYPES_H 588# include <inttypes.h> 589#endif 590#ifdef HAVE_STDINT_H 591# include <stdint.h> 592#endif 593#ifdef HAVE_UNISTD_H 594# include <unistd.h> 595#endif" 596 597gl_func_list= 598gl_header_list= 599gl_getopt_required=POSIX 600gl_getopt_required=POSIX 601gt_needs= 602ac_subst_vars='gltests_LTLIBOBJS 603gltests_LIBOBJS 604gl_LTLIBOBJS 605gl_LIBOBJS 606am__EXEEXT_FALSE 607am__EXEEXT_TRUE 608LTLIBOBJS 609LIBOBJS 610READLINE_LIBS 611POSUB 612INTLLIBS 613LTLIBICONV 614LIBICONV 615INTL_MACOSX_LIBS 616XGETTEXT_EXTRA_OPTIONS 617MSGMERGE 618XGETTEXT_015 619XGETTEXT 620GMSGFMT_015 621MSGFMT_015 622GMSGFMT 623MSGFMT 624GETTEXT_MACRO_VERSION 625USE_NLS 626LIBGNU_LTLIBDEPS 627LIBGNU_LIBDEPS 628gltests_WITNESS 629REPLACE_TOWLOWER 630REPLACE_ISWCNTRL 631HAVE_WCTYPE_H 632NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H 633NEXT_WCTYPE_H 634HAVE_ISWCNTRL 635REPLACE_ISWBLANK 636HAVE_WCTRANS_T 637HAVE_WCTYPE_T 638HAVE_ISWBLANK 639GNULIB_TOWCTRANS 640GNULIB_WCTRANS 641GNULIB_ISWCTYPE 642GNULIB_WCTYPE 643GNULIB_ISWBLANK 644HAVE_WINT_T 645NEXT_AS_FIRST_DIRECTIVE_WCHAR_H 646NEXT_WCHAR_H 647HAVE_FEATURES_H 648HAVE_UNISTD_H 649NEXT_AS_FIRST_DIRECTIVE_UNISTD_H 650NEXT_UNISTD_H 651PTHREAD_H_DEFINES_STRUCT_TIMESPEC 652SYS_TIME_H_DEFINES_STRUCT_TIMESPEC 653TIME_H_DEFINES_STRUCT_TIMESPEC 654NEXT_AS_FIRST_DIRECTIVE_TIME_H 655NEXT_TIME_H 656REPLACE_TIMEGM 657REPLACE_NANOSLEEP 658REPLACE_MKTIME 659REPLACE_LOCALTIME_R 660HAVE_TIMEGM 661HAVE_STRPTIME 662HAVE_NANOSLEEP 663HAVE_DECL_LOCALTIME_R 664GNULIB_TIME_R 665GNULIB_TIMEGM 666GNULIB_STRPTIME 667GNULIB_NANOSLEEP 668GNULIB_MKTIME 669WINDOWS_64_BIT_OFF_T 670NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H 671NEXT_SYS_TYPES_H 672WINDOWS_64_BIT_ST_SIZE 673NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H 674NEXT_SYS_STAT_H 675HAVE_STRINGS_H 676NEXT_AS_FIRST_DIRECTIVE_STRINGS_H 677NEXT_STRINGS_H 678NEXT_AS_FIRST_DIRECTIVE_STRING_H 679NEXT_STRING_H 680HAVE_DECL_STRNCASECMP 681HAVE_STRCASECMP 682HAVE_FFS 683GNULIB_FFS 684NEXT_AS_FIRST_DIRECTIVE_STDLIB_H 685NEXT_STDLIB_H 686NEXT_AS_FIRST_DIRECTIVE_STDIO_H 687NEXT_STDIO_H 688GL_GENERATE_STDINT_H_FALSE 689GL_GENERATE_STDINT_H_TRUE 690STDINT_H 691WINT_T_SUFFIX 692WCHAR_T_SUFFIX 693SIG_ATOMIC_T_SUFFIX 694SIZE_T_SUFFIX 695PTRDIFF_T_SUFFIX 696HAVE_SIGNED_WINT_T 697HAVE_SIGNED_WCHAR_T 698HAVE_SIGNED_SIG_ATOMIC_T 699BITSIZEOF_WINT_T 700BITSIZEOF_WCHAR_T 701BITSIZEOF_SIG_ATOMIC_T 702BITSIZEOF_SIZE_T 703BITSIZEOF_PTRDIFF_T 704HAVE_SYS_BITYPES_H 705HAVE_SYS_INTTYPES_H 706HAVE_STDINT_H 707NEXT_AS_FIRST_DIRECTIVE_STDINT_H 708NEXT_STDINT_H 709HAVE_SYS_TYPES_H 710HAVE_INTTYPES_H 711HAVE_WCHAR_H 712HAVE_UNSIGNED_LONG_LONG_INT 713HAVE_LONG_LONG_INT 714HAVE__BOOL 715GL_GENERATE_STDBOOL_H_FALSE 716GL_GENERATE_STDBOOL_H_TRUE 717STDBOOL_H 718GL_GENERATE_STDARG_H_FALSE 719GL_GENERATE_STDARG_H_TRUE 720STDARG_H 721NEXT_AS_FIRST_DIRECTIVE_STDARG_H 722NEXT_STDARG_H 723NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H 724NEXT_SIGNAL_H 725REPLACE_RAISE 726REPLACE_PTHREAD_SIGMASK 727HAVE_SIGHANDLER_T 728HAVE_TYPE_VOLATILE_SIG_ATOMIC_T 729HAVE_STRUCT_SIGACTION_SA_SIGACTION 730HAVE_SIGACTION 731HAVE_SIGINFO_T 732HAVE_SIGSET_T 733HAVE_RAISE 734HAVE_PTHREAD_SIGMASK 735HAVE_POSIX_SIGNALBLOCKING 736GNULIB_SIGACTION 737GNULIB_SIGPROCMASK 738GNULIB_SIGNAL_H_SIGPIPE 739GNULIB_RAISE 740GNULIB_PTHREAD_SIGMASK 741APPLE_UNIVERSAL_BUILD 742UNDEFINE_STRTOK_R 743REPLACE_STRTOK_R 744REPLACE_STRSIGNAL 745REPLACE_STRNLEN 746REPLACE_STRNDUP 747REPLACE_STRNCAT 748REPLACE_STRERROR_R 749REPLACE_STRERROR 750REPLACE_STRCHRNUL 751REPLACE_STRCASESTR 752REPLACE_STRSTR 753REPLACE_STRDUP 754REPLACE_STPNCPY 755REPLACE_MEMMEM 756REPLACE_MEMCHR 757HAVE_STRVERSCMP 758HAVE_DECL_STRSIGNAL 759HAVE_DECL_STRERROR_R 760HAVE_DECL_STRTOK_R 761HAVE_STRCASESTR 762HAVE_STRSEP 763HAVE_STRPBRK 764HAVE_DECL_STRNLEN 765HAVE_DECL_STRNDUP 766HAVE_DECL_STRDUP 767HAVE_STRCHRNUL 768HAVE_STPNCPY 769HAVE_STPCPY 770HAVE_RAWMEMCHR 771HAVE_DECL_MEMRCHR 772HAVE_MEMPCPY 773HAVE_DECL_MEMMEM 774HAVE_MEMCHR 775HAVE_FFSLL 776HAVE_FFSL 777HAVE_MBSLEN 778GNULIB_STRVERSCMP 779GNULIB_STRSIGNAL 780GNULIB_STRERROR_R 781GNULIB_STRERROR 782GNULIB_MBSTOK_R 783GNULIB_MBSSEP 784GNULIB_MBSSPN 785GNULIB_MBSPBRK 786GNULIB_MBSCSPN 787GNULIB_MBSCASESTR 788GNULIB_MBSPCASECMP 789GNULIB_MBSNCASECMP 790GNULIB_MBSCASECMP 791GNULIB_MBSSTR 792GNULIB_MBSRCHR 793GNULIB_MBSCHR 794GNULIB_MBSNLEN 795GNULIB_MBSLEN 796GNULIB_STRTOK_R 797GNULIB_STRCASESTR 798GNULIB_STRSTR 799GNULIB_STRSEP 800GNULIB_STRPBRK 801GNULIB_STRNLEN 802GNULIB_STRNDUP 803GNULIB_STRNCAT 804GNULIB_STRDUP 805GNULIB_STRCHRNUL 806GNULIB_STPNCPY 807GNULIB_STPCPY 808GNULIB_RAWMEMCHR 809GNULIB_MEMRCHR 810GNULIB_MEMPCPY 811GNULIB_MEMMEM 812GNULIB_MEMCHR 813GNULIB_FFSLL 814GNULIB_FFSL 815LOCALE_FR_UTF8 816LOCALE_ZH_CN 817LOCALE_JA 818REPLACE_WCTOMB 819REPLACE_UNSETENV 820REPLACE_STRTOD 821REPLACE_SETENV 822REPLACE_REALPATH 823REPLACE_REALLOC 824REPLACE_RANDOM_R 825REPLACE_PUTENV 826REPLACE_PTSNAME_R 827REPLACE_MKSTEMP 828REPLACE_MBTOWC 829REPLACE_MALLOC 830REPLACE_CANONICALIZE_FILE_NAME 831REPLACE_CALLOC 832HAVE_DECL_UNSETENV 833HAVE_UNLOCKPT 834HAVE_SYS_LOADAVG_H 835HAVE_STRUCT_RANDOM_DATA 836HAVE_STRTOULL 837HAVE_STRTOLL 838HAVE_STRTOD 839HAVE_DECL_SETENV 840HAVE_SETENV 841HAVE_RPMATCH 842HAVE_REALPATH 843HAVE_RANDOM_R 844HAVE_RANDOM_H 845HAVE_RANDOM 846HAVE_PTSNAME_R 847HAVE_PTSNAME 848HAVE_POSIX_OPENPT 849HAVE_MKSTEMPS 850HAVE_MKSTEMP 851HAVE_MKOSTEMPS 852HAVE_MKOSTEMP 853HAVE_MKDTEMP 854HAVE_GRANTPT 855HAVE_GETSUBOPT 856HAVE_DECL_GETLOADAVG 857HAVE_CANONICALIZE_FILE_NAME 858HAVE_ATOLL 859HAVE__EXIT 860GNULIB_WCTOMB 861GNULIB_UNSETENV 862GNULIB_UNLOCKPT 863GNULIB_SYSTEM_POSIX 864GNULIB_STRTOULL 865GNULIB_STRTOLL 866GNULIB_STRTOD 867GNULIB_SETENV 868GNULIB_RPMATCH 869GNULIB_REALPATH 870GNULIB_REALLOC_POSIX 871GNULIB_RANDOM_R 872GNULIB_RANDOM 873GNULIB_PUTENV 874GNULIB_PTSNAME_R 875GNULIB_PTSNAME 876GNULIB_POSIX_OPENPT 877GNULIB_MKSTEMPS 878GNULIB_MKSTEMP 879GNULIB_MKOSTEMPS 880GNULIB_MKOSTEMP 881GNULIB_MKDTEMP 882GNULIB_MBTOWC 883GNULIB_MALLOC_POSIX 884GNULIB_GRANTPT 885GNULIB_GETSUBOPT 886GNULIB_GETLOADAVG 887GNULIB_CANONICALIZE_FILE_NAME 888GNULIB_CALLOC_POSIX 889GNULIB_ATOLL 890GNULIB__EXIT 891REPLACE_UTIMENSAT 892REPLACE_STAT 893REPLACE_MKNOD 894REPLACE_MKFIFO 895REPLACE_MKDIR 896REPLACE_LSTAT 897REPLACE_FUTIMENS 898REPLACE_FSTATAT 899REPLACE_FSTAT 900HAVE_UTIMENSAT 901HAVE_MKNODAT 902HAVE_MKNOD 903HAVE_MKFIFOAT 904HAVE_MKFIFO 905HAVE_MKDIRAT 906HAVE_LSTAT 907HAVE_LCHMOD 908HAVE_FUTIMENS 909HAVE_FSTATAT 910HAVE_FCHMODAT 911GNULIB_UTIMENSAT 912GNULIB_STAT 913GNULIB_MKNODAT 914GNULIB_MKNOD 915GNULIB_MKFIFOAT 916GNULIB_MKFIFO 917GNULIB_MKDIRAT 918GNULIB_LSTAT 919GNULIB_LCHMOD 920GNULIB_FUTIMENS 921GNULIB_FSTATAT 922GNULIB_FSTAT 923GNULIB_FCHMODAT 924NEXT_AS_FIRST_DIRECTIVE_LOCALE_H 925NEXT_LOCALE_H 926HAVE_XLOCALE_H 927NEXT_AS_FIRST_DIRECTIVE_STDDEF_H 928NEXT_STDDEF_H 929GL_GENERATE_STDDEF_H_FALSE 930GL_GENERATE_STDDEF_H_TRUE 931STDDEF_H 932HAVE_WCHAR_T 933REPLACE_NULL 934REPLACE_STRUCT_LCONV 935REPLACE_DUPLOCALE 936REPLACE_SETLOCALE 937REPLACE_LOCALECONV 938HAVE_DUPLOCALE 939GNULIB_DUPLOCALE 940GNULIB_SETLOCALE 941GNULIB_LOCALECONV 942LOCALCHARSET_TESTS_ENVIRONMENT 943GLIBC21 944HAVE_LANGINFO_YESEXPR 945HAVE_LANGINFO_ERA 946HAVE_LANGINFO_T_FMT_AMPM 947HAVE_LANGINFO_CODESET 948HAVE_LANGINFO_H 949NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H 950NEXT_LANGINFO_H 951REPLACE_NL_LANGINFO 952HAVE_NL_LANGINFO 953GNULIB_NL_LANGINFO 954NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H 955NEXT_SYS_TIME_H 956REPLACE_STRUCT_TIMEVAL 957REPLACE_GETTIMEOFDAY 958HAVE_SYS_TIME_H 959HAVE_STRUCT_TIMEVAL 960HAVE_GETTIMEOFDAY 961GNULIB_GETTIMEOFDAY 962LTLIBINTL 963LIBINTL 964GNULIB_GL_UNISTD_H_GETOPT 965GETOPT_H 966HAVE_GETOPT_H 967NEXT_AS_FIRST_DIRECTIVE_GETOPT_H 968NEXT_GETOPT_H 969REPLACE_VSPRINTF 970REPLACE_VSNPRINTF 971REPLACE_VPRINTF 972REPLACE_VFPRINTF 973REPLACE_VDPRINTF 974REPLACE_VASPRINTF 975REPLACE_TMPFILE 976REPLACE_STDIO_WRITE_FUNCS 977REPLACE_STDIO_READ_FUNCS 978REPLACE_SPRINTF 979REPLACE_SNPRINTF 980REPLACE_RENAMEAT 981REPLACE_RENAME 982REPLACE_REMOVE 983REPLACE_PRINTF 984REPLACE_POPEN 985REPLACE_PERROR 986REPLACE_OBSTACK_PRINTF 987REPLACE_GETLINE 988REPLACE_GETDELIM 989REPLACE_FTELLO 990REPLACE_FTELL 991REPLACE_FSEEKO 992REPLACE_FSEEK 993REPLACE_FREOPEN 994REPLACE_FPURGE 995REPLACE_FPRINTF 996REPLACE_FOPEN 997REPLACE_FFLUSH 998REPLACE_FDOPEN 999REPLACE_FCLOSE 1000REPLACE_DPRINTF 1001HAVE_VDPRINTF 1002HAVE_VASPRINTF 1003HAVE_RENAMEAT 1004HAVE_POPEN 1005HAVE_PCLOSE 1006HAVE_FTELLO 1007HAVE_FSEEKO 1008HAVE_DPRINTF 1009HAVE_DECL_VSNPRINTF 1010HAVE_DECL_SNPRINTF 1011HAVE_DECL_OBSTACK_PRINTF 1012HAVE_DECL_GETLINE 1013HAVE_DECL_GETDELIM 1014HAVE_DECL_FTELLO 1015HAVE_DECL_FSEEKO 1016HAVE_DECL_FPURGE 1017GNULIB_VSPRINTF_POSIX 1018GNULIB_VSNPRINTF 1019GNULIB_VPRINTF_POSIX 1020GNULIB_VPRINTF 1021GNULIB_VFPRINTF_POSIX 1022GNULIB_VFPRINTF 1023GNULIB_VDPRINTF 1024GNULIB_VSCANF 1025GNULIB_VFSCANF 1026GNULIB_VASPRINTF 1027GNULIB_TMPFILE 1028GNULIB_STDIO_H_SIGPIPE 1029GNULIB_STDIO_H_NONBLOCKING 1030GNULIB_SPRINTF_POSIX 1031GNULIB_SNPRINTF 1032GNULIB_SCANF 1033GNULIB_RENAMEAT 1034GNULIB_RENAME 1035GNULIB_REMOVE 1036GNULIB_PUTS 1037GNULIB_PUTCHAR 1038GNULIB_PUTC 1039GNULIB_PRINTF_POSIX 1040GNULIB_PRINTF 1041GNULIB_POPEN 1042GNULIB_PERROR 1043GNULIB_PCLOSE 1044GNULIB_OBSTACK_PRINTF_POSIX 1045GNULIB_OBSTACK_PRINTF 1046GNULIB_GETLINE 1047GNULIB_GETDELIM 1048GNULIB_GETCHAR 1049GNULIB_GETC 1050GNULIB_FWRITE 1051GNULIB_FTELLO 1052GNULIB_FTELL 1053GNULIB_FSEEKO 1054GNULIB_FSEEK 1055GNULIB_FSCANF 1056GNULIB_FREOPEN 1057GNULIB_FREAD 1058GNULIB_FPUTS 1059GNULIB_FPUTC 1060GNULIB_FPURGE 1061GNULIB_FPRINTF_POSIX 1062GNULIB_FPRINTF 1063GNULIB_FOPEN 1064GNULIB_FGETS 1065GNULIB_FGETC 1066GNULIB_FFLUSH 1067GNULIB_FDOPEN 1068GNULIB_FCLOSE 1069GNULIB_DPRINTF 1070REPLACE_ITOLD 1071GL_GENERATE_FLOAT_H_FALSE 1072GL_GENERATE_FLOAT_H_TRUE 1073FLOAT_H 1074NEXT_AS_FIRST_DIRECTIVE_FLOAT_H 1075NEXT_FLOAT_H 1076NEXT_AS_FIRST_DIRECTIVE_FCNTL_H 1077NEXT_FCNTL_H 1078REPLACE_OPENAT 1079REPLACE_OPEN 1080REPLACE_FCNTL 1081HAVE_OPENAT 1082HAVE_FCNTL 1083GNULIB_OPENAT 1084GNULIB_OPEN 1085GNULIB_NONBLOCKING 1086GNULIB_FCNTL 1087EOVERFLOW_VALUE 1088EOVERFLOW_HIDDEN 1089ENOLINK_VALUE 1090ENOLINK_HIDDEN 1091EMULTIHOP_VALUE 1092EMULTIHOP_HIDDEN 1093GL_GENERATE_ERRNO_H_FALSE 1094GL_GENERATE_ERRNO_H_TRUE 1095ERRNO_H 1096NEXT_AS_FIRST_DIRECTIVE_ERRNO_H 1097NEXT_ERRNO_H 1098PRAGMA_COLUMNS 1099PRAGMA_SYSTEM_HEADER 1100INCLUDE_NEXT_AS_FIRST_DIRECTIVE 1101INCLUDE_NEXT 1102pkglibexecdir 1103lispdir 1104HAVE_WINSOCK2_H 1105HAVE_MSVC_INVALID_PARAMETER_HANDLER 1106UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS 1107UNISTD_H_HAVE_WINSOCK2_H 1108REPLACE_WRITE 1109REPLACE_USLEEP 1110REPLACE_UNLINKAT 1111REPLACE_UNLINK 1112REPLACE_TTYNAME_R 1113REPLACE_SYMLINK 1114REPLACE_SLEEP 1115REPLACE_RMDIR 1116REPLACE_READLINK 1117REPLACE_READ 1118REPLACE_PWRITE 1119REPLACE_PREAD 1120REPLACE_LSEEK 1121REPLACE_LINKAT 1122REPLACE_LINK 1123REPLACE_LCHOWN 1124REPLACE_ISATTY 1125REPLACE_GETPAGESIZE 1126REPLACE_GETGROUPS 1127REPLACE_GETLOGIN_R 1128REPLACE_GETDOMAINNAME 1129REPLACE_GETCWD 1130REPLACE_FTRUNCATE 1131REPLACE_FCHOWNAT 1132REPLACE_DUP2 1133REPLACE_DUP 1134REPLACE_CLOSE 1135REPLACE_CHOWN 1136HAVE_SYS_PARAM_H 1137HAVE_OS_H 1138HAVE_DECL_TTYNAME_R 1139HAVE_DECL_SETHOSTNAME 1140HAVE_DECL_GETUSERSHELL 1141HAVE_DECL_GETPAGESIZE 1142HAVE_DECL_GETLOGIN_R 1143HAVE_DECL_GETDOMAINNAME 1144HAVE_DECL_FDATASYNC 1145HAVE_DECL_FCHDIR 1146HAVE_DECL_ENVIRON 1147HAVE_USLEEP 1148HAVE_UNLINKAT 1149HAVE_SYMLINKAT 1150HAVE_SYMLINK 1151HAVE_SLEEP 1152HAVE_SETHOSTNAME 1153HAVE_READLINKAT 1154HAVE_READLINK 1155HAVE_PWRITE 1156HAVE_PREAD 1157HAVE_PIPE2 1158HAVE_PIPE 1159HAVE_LINKAT 1160HAVE_LINK 1161HAVE_LCHOWN 1162HAVE_GROUP_MEMBER 1163HAVE_GETPAGESIZE 1164HAVE_GETLOGIN 1165HAVE_GETHOSTNAME 1166HAVE_GETGROUPS 1167HAVE_GETDTABLESIZE 1168HAVE_FTRUNCATE 1169HAVE_FSYNC 1170HAVE_FDATASYNC 1171HAVE_FCHOWNAT 1172HAVE_FCHDIR 1173HAVE_FACCESSAT 1174HAVE_EUIDACCESS 1175HAVE_DUP3 1176HAVE_DUP2 1177HAVE_CHOWN 1178GNULIB_WRITE 1179GNULIB_USLEEP 1180GNULIB_UNLINKAT 1181GNULIB_UNLINK 1182GNULIB_UNISTD_H_SIGPIPE 1183GNULIB_UNISTD_H_NONBLOCKING 1184GNULIB_TTYNAME_R 1185GNULIB_SYMLINKAT 1186GNULIB_SYMLINK 1187GNULIB_SLEEP 1188GNULIB_SETHOSTNAME 1189GNULIB_RMDIR 1190GNULIB_READLINKAT 1191GNULIB_READLINK 1192GNULIB_READ 1193GNULIB_PWRITE 1194GNULIB_PREAD 1195GNULIB_PIPE2 1196GNULIB_PIPE 1197GNULIB_LSEEK 1198GNULIB_LINKAT 1199GNULIB_LINK 1200GNULIB_LCHOWN 1201GNULIB_ISATTY 1202GNULIB_GROUP_MEMBER 1203GNULIB_GETUSERSHELL 1204GNULIB_GETPAGESIZE 1205GNULIB_GETLOGIN_R 1206GNULIB_GETLOGIN 1207GNULIB_GETHOSTNAME 1208GNULIB_GETGROUPS 1209GNULIB_GETDTABLESIZE 1210GNULIB_GETDOMAINNAME 1211GNULIB_GETCWD 1212GNULIB_FTRUNCATE 1213GNULIB_FSYNC 1214GNULIB_FDATASYNC 1215GNULIB_FCHOWNAT 1216GNULIB_FCHDIR 1217GNULIB_FACCESSAT 1218GNULIB_EUIDACCESS 1219GNULIB_ENVIRON 1220GNULIB_DUP3 1221GNULIB_DUP2 1222GNULIB_DUP 1223GNULIB_CLOSE 1224GNULIB_CHOWN 1225GNULIB_CHDIR 1226LOCALE_FR 1227REPLACE_WCSWIDTH 1228REPLACE_WCWIDTH 1229REPLACE_WCSNRTOMBS 1230REPLACE_WCSRTOMBS 1231REPLACE_WCRTOMB 1232REPLACE_MBSNRTOWCS 1233REPLACE_MBSRTOWCS 1234REPLACE_MBRLEN 1235REPLACE_MBRTOWC 1236REPLACE_MBSINIT 1237REPLACE_WCTOB 1238REPLACE_BTOWC 1239REPLACE_MBSTATE_T 1240HAVE_DECL_WCWIDTH 1241HAVE_DECL_WCTOB 1242HAVE_WCSWIDTH 1243HAVE_WCSTOK 1244HAVE_WCSSTR 1245HAVE_WCSPBRK 1246HAVE_WCSSPN 1247HAVE_WCSCSPN 1248HAVE_WCSRCHR 1249HAVE_WCSCHR 1250HAVE_WCSDUP 1251HAVE_WCSXFRM 1252HAVE_WCSCOLL 1253HAVE_WCSNCASECMP 1254HAVE_WCSCASECMP 1255HAVE_WCSNCMP 1256HAVE_WCSCMP 1257HAVE_WCSNCAT 1258HAVE_WCSCAT 1259HAVE_WCPNCPY 1260HAVE_WCSNCPY 1261HAVE_WCPCPY 1262HAVE_WCSCPY 1263HAVE_WCSNLEN 1264HAVE_WCSLEN 1265HAVE_WMEMSET 1266HAVE_WMEMMOVE 1267HAVE_WMEMCPY 1268HAVE_WMEMCMP 1269HAVE_WMEMCHR 1270HAVE_WCSNRTOMBS 1271HAVE_WCSRTOMBS 1272HAVE_WCRTOMB 1273HAVE_MBSNRTOWCS 1274HAVE_MBSRTOWCS 1275HAVE_MBRLEN 1276HAVE_MBRTOWC 1277HAVE_MBSINIT 1278HAVE_BTOWC 1279GNULIB_WCSWIDTH 1280GNULIB_WCSTOK 1281GNULIB_WCSSTR 1282GNULIB_WCSPBRK 1283GNULIB_WCSSPN 1284GNULIB_WCSCSPN 1285GNULIB_WCSRCHR 1286GNULIB_WCSCHR 1287GNULIB_WCSDUP 1288GNULIB_WCSXFRM 1289GNULIB_WCSCOLL 1290GNULIB_WCSNCASECMP 1291GNULIB_WCSCASECMP 1292GNULIB_WCSNCMP 1293GNULIB_WCSCMP 1294GNULIB_WCSNCAT 1295GNULIB_WCSCAT 1296GNULIB_WCPNCPY 1297GNULIB_WCSNCPY 1298GNULIB_WCPCPY 1299GNULIB_WCSCPY 1300GNULIB_WCSNLEN 1301GNULIB_WCSLEN 1302GNULIB_WMEMSET 1303GNULIB_WMEMMOVE 1304GNULIB_WMEMCPY 1305GNULIB_WMEMCMP 1306GNULIB_WMEMCHR 1307GNULIB_WCWIDTH 1308GNULIB_WCSNRTOMBS 1309GNULIB_WCSRTOMBS 1310GNULIB_WCRTOMB 1311GNULIB_MBSNRTOWCS 1312GNULIB_MBSRTOWCS 1313GNULIB_MBRLEN 1314GNULIB_MBRTOWC 1315GNULIB_MBSINIT 1316GNULIB_WCTOB 1317GNULIB_BTOWC 1318GL_GENERATE_ALLOCA_H_FALSE 1319GL_GENERATE_ALLOCA_H_TRUE 1320ALLOCA_H 1321ALLOCA 1322GL_COND_LIBTOOL_FALSE 1323GL_COND_LIBTOOL_TRUE 1324LN_S 1325RANLIB 1326ARFLAGS 1327AR 1328EGREP 1329GREP 1330CPP 1331am__fastdepCC_FALSE 1332am__fastdepCC_TRUE 1333CCDEPMODE 1334AMDEPBACKSLASH 1335AMDEP_FALSE 1336AMDEP_TRUE 1337am__quote 1338am__include 1339DEPDIR 1340OBJEXT 1341EXEEXT 1342ac_ct_CC 1343CPPFLAGS 1344LDFLAGS 1345CFLAGS 1346CC 1347host_os 1348host_vendor 1349host_cpu 1350host 1351build_os 1352build_vendor 1353build_cpu 1354build 1355am__untar 1356am__tar 1357AMTAR 1358am__leading_dot 1359SET_MAKE 1360AWK 1361mkdir_p 1362MKDIR_P 1363INSTALL_STRIP_PROGRAM 1364STRIP 1365install_sh 1366MAKEINFO 1367AUTOHEADER 1368AUTOMAKE 1369AUTOCONF 1370ACLOCAL 1371VERSION 1372PACKAGE 1373CYGPATH_W 1374am__isrc 1375INSTALL_DATA 1376INSTALL_SCRIPT 1377INSTALL_PROGRAM 1378target_alias 1379host_alias 1380build_alias 1381LIBS 1382ECHO_T 1383ECHO_N 1384ECHO_C 1385DEFS 1386mandir 1387localedir 1388libdir 1389psdir 1390pdfdir 1391dvidir 1392htmldir 1393infodir 1394docdir 1395oldincludedir 1396includedir 1397localstatedir 1398sharedstatedir 1399sysconfdir 1400datadir 1401datarootdir 1402libexecdir 1403sbindir 1404bindir 1405program_transform_name 1406prefix 1407exec_prefix 1408PACKAGE_URL 1409PACKAGE_BUGREPORT 1410PACKAGE_STRING 1411PACKAGE_VERSION 1412PACKAGE_TARNAME 1413PACKAGE_NAME 1414PATH_SEPARATOR 1415SHELL' 1416ac_subst_files='' 1417ac_user_opts=' 1418enable_option_checking 1419enable_dependency_tracking 1420enable_largefile 1421with_included_regex 1422with_packager 1423with_packager_version 1424with_packager_bug_reports 1425enable_nls 1426with_gnu_ld 1427enable_rpath 1428with_libiconv_prefix 1429with_libintl_prefix 1430' 1431 ac_precious_vars='build_alias 1432host_alias 1433target_alias 1434CC 1435CFLAGS 1436LDFLAGS 1437LIBS 1438CPPFLAGS 1439CPP' 1440 1441 1442# Initialize some variables set by options. 1443ac_init_help= 1444ac_init_version=false 1445ac_unrecognized_opts= 1446ac_unrecognized_sep= 1447# The variables have the same names as the options, with 1448# dashes changed to underlines. 1449cache_file=/dev/null 1450exec_prefix=NONE 1451no_create= 1452no_recursion= 1453prefix=NONE 1454program_prefix=NONE 1455program_suffix=NONE 1456program_transform_name=s,x,x, 1457silent= 1458site= 1459srcdir= 1460verbose= 1461x_includes=NONE 1462x_libraries=NONE 1463 1464# Installation directory options. 1465# These are left unexpanded so users can "make install exec_prefix=/foo" 1466# and all the variables that are supposed to be based on exec_prefix 1467# by default will actually change. 1468# Use braces instead of parens because sh, perl, etc. also accept them. 1469# (The list follows the same order as the GNU Coding Standards.) 1470bindir='${exec_prefix}/bin' 1471sbindir='${exec_prefix}/sbin' 1472libexecdir='${exec_prefix}/libexec' 1473datarootdir='${prefix}/share' 1474datadir='${datarootdir}' 1475sysconfdir='${prefix}/etc' 1476sharedstatedir='${prefix}/com' 1477localstatedir='${prefix}/var' 1478includedir='${prefix}/include' 1479oldincludedir='/usr/include' 1480docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1481infodir='${datarootdir}/info' 1482htmldir='${docdir}' 1483dvidir='${docdir}' 1484pdfdir='${docdir}' 1485psdir='${docdir}' 1486libdir='${exec_prefix}/lib' 1487localedir='${datarootdir}/locale' 1488mandir='${datarootdir}/man' 1489 1490ac_prev= 1491ac_dashdash= 1492for ac_option 1493do 1494 # If the previous option needs an argument, assign it. 1495 if test -n "$ac_prev"; then 1496 eval $ac_prev=\$ac_option 1497 ac_prev= 1498 continue 1499 fi 1500 1501 case $ac_option in 1502 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1503 *=) ac_optarg= ;; 1504 *) ac_optarg=yes ;; 1505 esac 1506 1507 # Accept the important Cygnus configure options, so we can diagnose typos. 1508 1509 case $ac_dashdash$ac_option in 1510 --) 1511 ac_dashdash=yes ;; 1512 1513 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1514 ac_prev=bindir ;; 1515 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1516 bindir=$ac_optarg ;; 1517 1518 -build | --build | --buil | --bui | --bu) 1519 ac_prev=build_alias ;; 1520 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1521 build_alias=$ac_optarg ;; 1522 1523 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1524 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1525 ac_prev=cache_file ;; 1526 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1527 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1528 cache_file=$ac_optarg ;; 1529 1530 --config-cache | -C) 1531 cache_file=config.cache ;; 1532 1533 -datadir | --datadir | --datadi | --datad) 1534 ac_prev=datadir ;; 1535 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1536 datadir=$ac_optarg ;; 1537 1538 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1539 | --dataroo | --dataro | --datar) 1540 ac_prev=datarootdir ;; 1541 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1542 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1543 datarootdir=$ac_optarg ;; 1544 1545 -disable-* | --disable-*) 1546 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1547 # Reject names that are not valid shell variable names. 1548 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1549 as_fn_error $? "invalid feature name: $ac_useropt" 1550 ac_useropt_orig=$ac_useropt 1551 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1552 case $ac_user_opts in 1553 *" 1554"enable_$ac_useropt" 1555"*) ;; 1556 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1557 ac_unrecognized_sep=', ';; 1558 esac 1559 eval enable_$ac_useropt=no ;; 1560 1561 -docdir | --docdir | --docdi | --doc | --do) 1562 ac_prev=docdir ;; 1563 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1564 docdir=$ac_optarg ;; 1565 1566 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1567 ac_prev=dvidir ;; 1568 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1569 dvidir=$ac_optarg ;; 1570 1571 -enable-* | --enable-*) 1572 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1573 # Reject names that are not valid shell variable names. 1574 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1575 as_fn_error $? "invalid feature name: $ac_useropt" 1576 ac_useropt_orig=$ac_useropt 1577 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1578 case $ac_user_opts in 1579 *" 1580"enable_$ac_useropt" 1581"*) ;; 1582 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1583 ac_unrecognized_sep=', ';; 1584 esac 1585 eval enable_$ac_useropt=\$ac_optarg ;; 1586 1587 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1588 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1589 | --exec | --exe | --ex) 1590 ac_prev=exec_prefix ;; 1591 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1592 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1593 | --exec=* | --exe=* | --ex=*) 1594 exec_prefix=$ac_optarg ;; 1595 1596 -gas | --gas | --ga | --g) 1597 # Obsolete; use --with-gas. 1598 with_gas=yes ;; 1599 1600 -help | --help | --hel | --he | -h) 1601 ac_init_help=long ;; 1602 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1603 ac_init_help=recursive ;; 1604 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1605 ac_init_help=short ;; 1606 1607 -host | --host | --hos | --ho) 1608 ac_prev=host_alias ;; 1609 -host=* | --host=* | --hos=* | --ho=*) 1610 host_alias=$ac_optarg ;; 1611 1612 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1613 ac_prev=htmldir ;; 1614 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1615 | --ht=*) 1616 htmldir=$ac_optarg ;; 1617 1618 -includedir | --includedir | --includedi | --included | --include \ 1619 | --includ | --inclu | --incl | --inc) 1620 ac_prev=includedir ;; 1621 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1622 | --includ=* | --inclu=* | --incl=* | --inc=*) 1623 includedir=$ac_optarg ;; 1624 1625 -infodir | --infodir | --infodi | --infod | --info | --inf) 1626 ac_prev=infodir ;; 1627 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1628 infodir=$ac_optarg ;; 1629 1630 -libdir | --libdir | --libdi | --libd) 1631 ac_prev=libdir ;; 1632 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1633 libdir=$ac_optarg ;; 1634 1635 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1636 | --libexe | --libex | --libe) 1637 ac_prev=libexecdir ;; 1638 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1639 | --libexe=* | --libex=* | --libe=*) 1640 libexecdir=$ac_optarg ;; 1641 1642 -localedir | --localedir | --localedi | --localed | --locale) 1643 ac_prev=localedir ;; 1644 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1645 localedir=$ac_optarg ;; 1646 1647 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1648 | --localstate | --localstat | --localsta | --localst | --locals) 1649 ac_prev=localstatedir ;; 1650 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1651 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1652 localstatedir=$ac_optarg ;; 1653 1654 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1655 ac_prev=mandir ;; 1656 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1657 mandir=$ac_optarg ;; 1658 1659 -nfp | --nfp | --nf) 1660 # Obsolete; use --without-fp. 1661 with_fp=no ;; 1662 1663 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1664 | --no-cr | --no-c | -n) 1665 no_create=yes ;; 1666 1667 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1668 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1669 no_recursion=yes ;; 1670 1671 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1672 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1673 | --oldin | --oldi | --old | --ol | --o) 1674 ac_prev=oldincludedir ;; 1675 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1676 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1677 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1678 oldincludedir=$ac_optarg ;; 1679 1680 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1681 ac_prev=prefix ;; 1682 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1683 prefix=$ac_optarg ;; 1684 1685 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1686 | --program-pre | --program-pr | --program-p) 1687 ac_prev=program_prefix ;; 1688 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1689 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1690 program_prefix=$ac_optarg ;; 1691 1692 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1693 | --program-suf | --program-su | --program-s) 1694 ac_prev=program_suffix ;; 1695 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1696 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1697 program_suffix=$ac_optarg ;; 1698 1699 -program-transform-name | --program-transform-name \ 1700 | --program-transform-nam | --program-transform-na \ 1701 | --program-transform-n | --program-transform- \ 1702 | --program-transform | --program-transfor \ 1703 | --program-transfo | --program-transf \ 1704 | --program-trans | --program-tran \ 1705 | --progr-tra | --program-tr | --program-t) 1706 ac_prev=program_transform_name ;; 1707 -program-transform-name=* | --program-transform-name=* \ 1708 | --program-transform-nam=* | --program-transform-na=* \ 1709 | --program-transform-n=* | --program-transform-=* \ 1710 | --program-transform=* | --program-transfor=* \ 1711 | --program-transfo=* | --program-transf=* \ 1712 | --program-trans=* | --program-tran=* \ 1713 | --progr-tra=* | --program-tr=* | --program-t=*) 1714 program_transform_name=$ac_optarg ;; 1715 1716 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1717 ac_prev=pdfdir ;; 1718 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1719 pdfdir=$ac_optarg ;; 1720 1721 -psdir | --psdir | --psdi | --psd | --ps) 1722 ac_prev=psdir ;; 1723 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1724 psdir=$ac_optarg ;; 1725 1726 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1727 | -silent | --silent | --silen | --sile | --sil) 1728 silent=yes ;; 1729 1730 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1731 ac_prev=sbindir ;; 1732 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1733 | --sbi=* | --sb=*) 1734 sbindir=$ac_optarg ;; 1735 1736 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1737 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1738 | --sharedst | --shareds | --shared | --share | --shar \ 1739 | --sha | --sh) 1740 ac_prev=sharedstatedir ;; 1741 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1742 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1743 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1744 | --sha=* | --sh=*) 1745 sharedstatedir=$ac_optarg ;; 1746 1747 -site | --site | --sit) 1748 ac_prev=site ;; 1749 -site=* | --site=* | --sit=*) 1750 site=$ac_optarg ;; 1751 1752 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1753 ac_prev=srcdir ;; 1754 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1755 srcdir=$ac_optarg ;; 1756 1757 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1758 | --syscon | --sysco | --sysc | --sys | --sy) 1759 ac_prev=sysconfdir ;; 1760 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1761 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1762 sysconfdir=$ac_optarg ;; 1763 1764 -target | --target | --targe | --targ | --tar | --ta | --t) 1765 ac_prev=target_alias ;; 1766 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1767 target_alias=$ac_optarg ;; 1768 1769 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1770 verbose=yes ;; 1771 1772 -version | --version | --versio | --versi | --vers | -V) 1773 ac_init_version=: ;; 1774 1775 -with-* | --with-*) 1776 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1777 # Reject names that are not valid shell variable names. 1778 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1779 as_fn_error $? "invalid package name: $ac_useropt" 1780 ac_useropt_orig=$ac_useropt 1781 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1782 case $ac_user_opts in 1783 *" 1784"with_$ac_useropt" 1785"*) ;; 1786 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1787 ac_unrecognized_sep=', ';; 1788 esac 1789 eval with_$ac_useropt=\$ac_optarg ;; 1790 1791 -without-* | --without-*) 1792 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1793 # Reject names that are not valid shell variable names. 1794 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1795 as_fn_error $? "invalid package name: $ac_useropt" 1796 ac_useropt_orig=$ac_useropt 1797 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1798 case $ac_user_opts in 1799 *" 1800"with_$ac_useropt" 1801"*) ;; 1802 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1803 ac_unrecognized_sep=', ';; 1804 esac 1805 eval with_$ac_useropt=no ;; 1806 1807 --x) 1808 # Obsolete; use --with-x. 1809 with_x=yes ;; 1810 1811 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1812 | --x-incl | --x-inc | --x-in | --x-i) 1813 ac_prev=x_includes ;; 1814 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1815 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1816 x_includes=$ac_optarg ;; 1817 1818 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1819 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1820 ac_prev=x_libraries ;; 1821 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1822 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1823 x_libraries=$ac_optarg ;; 1824 1825 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1826Try \`$0 --help' for more information" 1827 ;; 1828 1829 *=*) 1830 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1831 # Reject names that are not valid shell variable names. 1832 case $ac_envvar in #( 1833 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1834 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1835 esac 1836 eval $ac_envvar=\$ac_optarg 1837 export $ac_envvar ;; 1838 1839 *) 1840 # FIXME: should be removed in autoconf 3.0. 1841 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1842 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1843 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1844 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1845 ;; 1846 1847 esac 1848done 1849 1850if test -n "$ac_prev"; then 1851 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1852 as_fn_error $? "missing argument to $ac_option" 1853fi 1854 1855if test -n "$ac_unrecognized_opts"; then 1856 case $enable_option_checking in 1857 no) ;; 1858 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1859 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1860 esac 1861fi 1862 1863# Check all directory arguments for consistency. 1864for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1865 datadir sysconfdir sharedstatedir localstatedir includedir \ 1866 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1867 libdir localedir mandir 1868do 1869 eval ac_val=\$$ac_var 1870 # Remove trailing slashes. 1871 case $ac_val in 1872 */ ) 1873 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1874 eval $ac_var=\$ac_val;; 1875 esac 1876 # Be sure to have absolute directory names. 1877 case $ac_val in 1878 [\\/$]* | ?:[\\/]* ) continue;; 1879 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1880 esac 1881 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1882done 1883 1884# There might be people who depend on the old broken behavior: `$host' 1885# used to hold the argument of --host etc. 1886# FIXME: To remove some day. 1887build=$build_alias 1888host=$host_alias 1889target=$target_alias 1890 1891# FIXME: To remove some day. 1892if test "x$host_alias" != x; then 1893 if test "x$build_alias" = x; then 1894 cross_compiling=maybe 1895 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1896 If a cross compiler is detected then cross compile mode will be used" >&2 1897 elif test "x$build_alias" != "x$host_alias"; then 1898 cross_compiling=yes 1899 fi 1900fi 1901 1902ac_tool_prefix= 1903test -n "$host_alias" && ac_tool_prefix=$host_alias- 1904 1905test "$silent" = yes && exec 6>/dev/null 1906 1907 1908ac_pwd=`pwd` && test -n "$ac_pwd" && 1909ac_ls_di=`ls -di .` && 1910ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1911 as_fn_error $? "working directory cannot be determined" 1912test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1913 as_fn_error $? "pwd does not report name of working directory" 1914 1915 1916# Find the source files, if location was not specified. 1917if test -z "$srcdir"; then 1918 ac_srcdir_defaulted=yes 1919 # Try the directory containing this script, then the parent directory. 1920 ac_confdir=`$as_dirname -- "$as_myself" || 1921$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1922 X"$as_myself" : 'X\(//\)[^/]' \| \ 1923 X"$as_myself" : 'X\(//\)$' \| \ 1924 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1925$as_echo X"$as_myself" | 1926 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1927 s//\1/ 1928 q 1929 } 1930 /^X\(\/\/\)[^/].*/{ 1931 s//\1/ 1932 q 1933 } 1934 /^X\(\/\/\)$/{ 1935 s//\1/ 1936 q 1937 } 1938 /^X\(\/\).*/{ 1939 s//\1/ 1940 q 1941 } 1942 s/.*/./; q'` 1943 srcdir=$ac_confdir 1944 if test ! -r "$srcdir/$ac_unique_file"; then 1945 srcdir=.. 1946 fi 1947else 1948 ac_srcdir_defaulted=no 1949fi 1950if test ! -r "$srcdir/$ac_unique_file"; then 1951 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1952 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1953fi 1954ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1955ac_abs_confdir=`( 1956 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1957 pwd)` 1958# When building in place, set srcdir=. 1959if test "$ac_abs_confdir" = "$ac_pwd"; then 1960 srcdir=. 1961fi 1962# Remove unnecessary trailing slashes from srcdir. 1963# Double slashes in file names in object file debugging info 1964# mess up M-x gdb in Emacs. 1965case $srcdir in 1966*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1967esac 1968for ac_var in $ac_precious_vars; do 1969 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1970 eval ac_env_${ac_var}_value=\$${ac_var} 1971 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1972 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1973done 1974 1975# 1976# Report the --help message. 1977# 1978if test "$ac_init_help" = "long"; then 1979 # Omit some internal or obsolete options to make the list less imposing. 1980 # This message is too long to be a string in the A/UX 3.1 sh. 1981 cat <<_ACEOF 1982\`configure' configures renameutils 0.12.0 to adapt to many kinds of systems. 1983 1984Usage: $0 [OPTION]... [VAR=VALUE]... 1985 1986To assign environment variables (e.g., CC, CFLAGS...), specify them as 1987VAR=VALUE. See below for descriptions of some of the useful variables. 1988 1989Defaults for the options are specified in brackets. 1990 1991Configuration: 1992 -h, --help display this help and exit 1993 --help=short display options specific to this package 1994 --help=recursive display the short help of all the included packages 1995 -V, --version display version information and exit 1996 -q, --quiet, --silent do not print \`checking ...' messages 1997 --cache-file=FILE cache test results in FILE [disabled] 1998 -C, --config-cache alias for \`--cache-file=config.cache' 1999 -n, --no-create do not create output files 2000 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 2001 2002Installation directories: 2003 --prefix=PREFIX install architecture-independent files in PREFIX 2004 [$ac_default_prefix] 2005 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 2006 [PREFIX] 2007 2008By default, \`make install' will install all the files in 2009\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 2010an installation prefix other than \`$ac_default_prefix' using \`--prefix', 2011for instance \`--prefix=\$HOME'. 2012 2013For better control, use the options below. 2014 2015Fine tuning of the installation directories: 2016 --bindir=DIR user executables [EPREFIX/bin] 2017 --sbindir=DIR system admin executables [EPREFIX/sbin] 2018 --libexecdir=DIR program executables [EPREFIX/libexec] 2019 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 2020 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 2021 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 2022 --libdir=DIR object code libraries [EPREFIX/lib] 2023 --includedir=DIR C header files [PREFIX/include] 2024 --oldincludedir=DIR C header files for non-gcc [/usr/include] 2025 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 2026 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 2027 --infodir=DIR info documentation [DATAROOTDIR/info] 2028 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 2029 --mandir=DIR man documentation [DATAROOTDIR/man] 2030 --docdir=DIR documentation root [DATAROOTDIR/doc/renameutils] 2031 --htmldir=DIR html documentation [DOCDIR] 2032 --dvidir=DIR dvi documentation [DOCDIR] 2033 --pdfdir=DIR pdf documentation [DOCDIR] 2034 --psdir=DIR ps documentation [DOCDIR] 2035_ACEOF 2036 2037 cat <<\_ACEOF 2038 2039Program names: 2040 --program-prefix=PREFIX prepend PREFIX to installed program names 2041 --program-suffix=SUFFIX append SUFFIX to installed program names 2042 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 2043 2044System types: 2045 --build=BUILD configure for building on BUILD [guessed] 2046 --host=HOST cross-compile to build programs to run on HOST [BUILD] 2047_ACEOF 2048fi 2049 2050if test -n "$ac_init_help"; then 2051 case $ac_init_help in 2052 short | recursive ) echo "Configuration of renameutils 0.12.0:";; 2053 esac 2054 cat <<\_ACEOF 2055 2056Optional Features: 2057 --disable-option-checking ignore unrecognized --enable/--with options 2058 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 2059 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 2060 --disable-dependency-tracking speeds up one-time build 2061 --enable-dependency-tracking do not reject slow dependency extractors 2062 --disable-largefile omit support for large files 2063 --disable-nls do not use Native Language Support 2064 --disable-rpath do not hardcode runtime library paths 2065 2066Optional Packages: 2067 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 2068 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 2069 --without-included-regex 2070 don't compile regex; this is the default on systems 2071 with recent-enough versions of the GNU C Library 2072 (use with caution on other systems). 2073 --with-packager String identifying the packager of this software 2074 --with-packager-version Packager-specific version information 2075 --with-packager-bug-reports 2076 Packager info for bug reports (URL/e-mail/...) 2077 --with-gnu-ld assume the C compiler uses GNU ld default=no 2078 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 2079 --without-libiconv-prefix don't search for libiconv in includedir and libdir 2080 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 2081 --without-libintl-prefix don't search for libintl in includedir and libdir 2082 2083Some influential environment variables: 2084 CC C compiler command 2085 CFLAGS C compiler flags 2086 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2087 nonstandard directory <lib dir> 2088 LIBS libraries to pass to the linker, e.g. -l<library> 2089 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2090 you have headers in a nonstandard directory <include dir> 2091 CPP C preprocessor 2092 2093Use these variables to override the choices made by `configure' or to help 2094it to find libraries and programs with nonstandard names/locations. 2095 2096Report bugs to <oskar@osk.mine.nu>. 2097_ACEOF 2098ac_status=$? 2099fi 2100 2101if test "$ac_init_help" = "recursive"; then 2102 # If there are subdirs, report their specific --help. 2103 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2104 test -d "$ac_dir" || 2105 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2106 continue 2107 ac_builddir=. 2108 2109case "$ac_dir" in 2110.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2111*) 2112 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2113 # A ".." for each directory in $ac_dir_suffix. 2114 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2115 case $ac_top_builddir_sub in 2116 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2117 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2118 esac ;; 2119esac 2120ac_abs_top_builddir=$ac_pwd 2121ac_abs_builddir=$ac_pwd$ac_dir_suffix 2122# for backward compatibility: 2123ac_top_builddir=$ac_top_build_prefix 2124 2125case $srcdir in 2126 .) # We are building in place. 2127 ac_srcdir=. 2128 ac_top_srcdir=$ac_top_builddir_sub 2129 ac_abs_top_srcdir=$ac_pwd ;; 2130 [\\/]* | ?:[\\/]* ) # Absolute name. 2131 ac_srcdir=$srcdir$ac_dir_suffix; 2132 ac_top_srcdir=$srcdir 2133 ac_abs_top_srcdir=$srcdir ;; 2134 *) # Relative name. 2135 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2136 ac_top_srcdir=$ac_top_build_prefix$srcdir 2137 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2138esac 2139ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2140 2141 cd "$ac_dir" || { ac_status=$?; continue; } 2142 # Check for guested configure. 2143 if test -f "$ac_srcdir/configure.gnu"; then 2144 echo && 2145 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2146 elif test -f "$ac_srcdir/configure"; then 2147 echo && 2148 $SHELL "$ac_srcdir/configure" --help=recursive 2149 else 2150 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2151 fi || ac_status=$? 2152 cd "$ac_pwd" || { ac_status=$?; break; } 2153 done 2154fi 2155 2156test -n "$ac_init_help" && exit $ac_status 2157if $ac_init_version; then 2158 cat <<\_ACEOF 2159renameutils configure 0.12.0 2160generated by GNU Autoconf 2.67 2161 2162Copyright (C) 2010 Free Software Foundation, Inc. 2163This configure script is free software; the Free Software Foundation 2164gives unlimited permission to copy, distribute and modify it. 2165_ACEOF 2166 exit 2167fi 2168 2169## ------------------------ ## 2170## Autoconf initialization. ## 2171## ------------------------ ## 2172 2173# ac_fn_c_try_compile LINENO 2174# -------------------------- 2175# Try to compile conftest.$ac_ext, and return whether this succeeded. 2176ac_fn_c_try_compile () 2177{ 2178 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2179 rm -f conftest.$ac_objext 2180 if { { ac_try="$ac_compile" 2181case "(($ac_try" in 2182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2183 *) ac_try_echo=$ac_try;; 2184esac 2185eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2186$as_echo "$ac_try_echo"; } >&5 2187 (eval "$ac_compile") 2>conftest.err 2188 ac_status=$? 2189 if test -s conftest.err; then 2190 grep -v '^ *+' conftest.err >conftest.er1 2191 cat conftest.er1 >&5 2192 mv -f conftest.er1 conftest.err 2193 fi 2194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2195 test $ac_status = 0; } && { 2196 test -z "$ac_c_werror_flag" || 2197 test ! -s conftest.err 2198 } && test -s conftest.$ac_objext; then : 2199 ac_retval=0 2200else 2201 $as_echo "$as_me: failed program was:" >&5 2202sed 's/^/| /' conftest.$ac_ext >&5 2203 2204 ac_retval=1 2205fi 2206 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2207 as_fn_set_status $ac_retval 2208 2209} # ac_fn_c_try_compile 2210 2211# ac_fn_c_try_cpp LINENO 2212# ---------------------- 2213# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2214ac_fn_c_try_cpp () 2215{ 2216 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2217 if { { ac_try="$ac_cpp conftest.$ac_ext" 2218case "(($ac_try" in 2219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2220 *) ac_try_echo=$ac_try;; 2221esac 2222eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2223$as_echo "$ac_try_echo"; } >&5 2224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2225 ac_status=$? 2226 if test -s conftest.err; then 2227 grep -v '^ *+' conftest.err >conftest.er1 2228 cat conftest.er1 >&5 2229 mv -f conftest.er1 conftest.err 2230 fi 2231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2232 test $ac_status = 0; } > conftest.i && { 2233 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2234 test ! -s conftest.err 2235 }; then : 2236 ac_retval=0 2237else 2238 $as_echo "$as_me: failed program was:" >&5 2239sed 's/^/| /' conftest.$ac_ext >&5 2240 2241 ac_retval=1 2242fi 2243 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2244 as_fn_set_status $ac_retval 2245 2246} # ac_fn_c_try_cpp 2247 2248# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2249# ------------------------------------------------------- 2250# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2251# the include files in INCLUDES and setting the cache variable VAR 2252# accordingly. 2253ac_fn_c_check_header_mongrel () 2254{ 2255 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2256 if eval "test \"\${$3+set}\"" = set; then : 2257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2258$as_echo_n "checking for $2... " >&6; } 2259if eval "test \"\${$3+set}\"" = set; then : 2260 $as_echo_n "(cached) " >&6 2261fi 2262eval ac_res=\$$3 2263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2264$as_echo "$ac_res" >&6; } 2265else 2266 # Is the header compilable? 2267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2268$as_echo_n "checking $2 usability... " >&6; } 2269cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2270/* end confdefs.h. */ 2271$4 2272#include <$2> 2273_ACEOF 2274if ac_fn_c_try_compile "$LINENO"; then : 2275 ac_header_compiler=yes 2276else 2277 ac_header_compiler=no 2278fi 2279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2281$as_echo "$ac_header_compiler" >&6; } 2282 2283# Is the header present? 2284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2285$as_echo_n "checking $2 presence... " >&6; } 2286cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2287/* end confdefs.h. */ 2288#include <$2> 2289_ACEOF 2290if ac_fn_c_try_cpp "$LINENO"; then : 2291 ac_header_preproc=yes 2292else 2293 ac_header_preproc=no 2294fi 2295rm -f conftest.err conftest.i conftest.$ac_ext 2296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2297$as_echo "$ac_header_preproc" >&6; } 2298 2299# So? What about this header? 2300case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2301 yes:no: ) 2302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2303$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2305$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2306 ;; 2307 no:yes:* ) 2308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2309$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2311$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2313$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2315$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2317$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2318( $as_echo "## -------------------------------- ## 2319## Report this to oskar@osk.mine.nu ## 2320## -------------------------------- ##" 2321 ) | sed "s/^/$as_me: WARNING: /" >&2 2322 ;; 2323esac 2324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2325$as_echo_n "checking for $2... " >&6; } 2326if eval "test \"\${$3+set}\"" = set; then : 2327 $as_echo_n "(cached) " >&6 2328else 2329 eval "$3=\$ac_header_compiler" 2330fi 2331eval ac_res=\$$3 2332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2333$as_echo "$ac_res" >&6; } 2334fi 2335 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2336 2337} # ac_fn_c_check_header_mongrel 2338 2339# ac_fn_c_try_run LINENO 2340# ---------------------- 2341# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2342# that executables *can* be run. 2343ac_fn_c_try_run () 2344{ 2345 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2346 if { { ac_try="$ac_link" 2347case "(($ac_try" in 2348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2349 *) ac_try_echo=$ac_try;; 2350esac 2351eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2352$as_echo "$ac_try_echo"; } >&5 2353 (eval "$ac_link") 2>&5 2354 ac_status=$? 2355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2356 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2357 { { case "(($ac_try" in 2358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2359 *) ac_try_echo=$ac_try;; 2360esac 2361eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2362$as_echo "$ac_try_echo"; } >&5 2363 (eval "$ac_try") 2>&5 2364 ac_status=$? 2365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2366 test $ac_status = 0; }; }; then : 2367 ac_retval=0 2368else 2369 $as_echo "$as_me: program exited with status $ac_status" >&5 2370 $as_echo "$as_me: failed program was:" >&5 2371sed 's/^/| /' conftest.$ac_ext >&5 2372 2373 ac_retval=$ac_status 2374fi 2375 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2376 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2377 as_fn_set_status $ac_retval 2378 2379} # ac_fn_c_try_run 2380 2381# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2382# ------------------------------------------------------- 2383# Tests whether HEADER exists and can be compiled using the include files in 2384# INCLUDES, setting the cache variable VAR accordingly. 2385ac_fn_c_check_header_compile () 2386{ 2387 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2389$as_echo_n "checking for $2... " >&6; } 2390if eval "test \"\${$3+set}\"" = set; then : 2391 $as_echo_n "(cached) " >&6 2392else 2393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2394/* end confdefs.h. */ 2395$4 2396#include <$2> 2397_ACEOF 2398if ac_fn_c_try_compile "$LINENO"; then : 2399 eval "$3=yes" 2400else 2401 eval "$3=no" 2402fi 2403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2404fi 2405eval ac_res=\$$3 2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2407$as_echo "$ac_res" >&6; } 2408 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2409 2410} # ac_fn_c_check_header_compile 2411 2412# ac_fn_c_try_link LINENO 2413# ----------------------- 2414# Try to link conftest.$ac_ext, and return whether this succeeded. 2415ac_fn_c_try_link () 2416{ 2417 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2418 rm -f conftest.$ac_objext conftest$ac_exeext 2419 if { { ac_try="$ac_link" 2420case "(($ac_try" in 2421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2422 *) ac_try_echo=$ac_try;; 2423esac 2424eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2425$as_echo "$ac_try_echo"; } >&5 2426 (eval "$ac_link") 2>conftest.err 2427 ac_status=$? 2428 if test -s conftest.err; then 2429 grep -v '^ *+' conftest.err >conftest.er1 2430 cat conftest.er1 >&5 2431 mv -f conftest.er1 conftest.err 2432 fi 2433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2434 test $ac_status = 0; } && { 2435 test -z "$ac_c_werror_flag" || 2436 test ! -s conftest.err 2437 } && test -s conftest$ac_exeext && { 2438 test "$cross_compiling" = yes || 2439 $as_test_x conftest$ac_exeext 2440 }; then : 2441 ac_retval=0 2442else 2443 $as_echo "$as_me: failed program was:" >&5 2444sed 's/^/| /' conftest.$ac_ext >&5 2445 2446 ac_retval=1 2447fi 2448 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2449 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2450 # interfere with the next link command; also delete a directory that is 2451 # left behind by Apple's compiler. We do this before executing the actions. 2452 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2453 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2454 as_fn_set_status $ac_retval 2455 2456} # ac_fn_c_try_link 2457 2458# ac_fn_c_check_func LINENO FUNC VAR 2459# ---------------------------------- 2460# Tests whether FUNC exists, setting the cache variable VAR accordingly 2461ac_fn_c_check_func () 2462{ 2463 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2465$as_echo_n "checking for $2... " >&6; } 2466if eval "test \"\${$3+set}\"" = set; then : 2467 $as_echo_n "(cached) " >&6 2468else 2469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2470/* end confdefs.h. */ 2471/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2472 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2473#define $2 innocuous_$2 2474 2475/* System header to define __stub macros and hopefully few prototypes, 2476 which can conflict with char $2 (); below. 2477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2478 <limits.h> exists even on freestanding compilers. */ 2479 2480#ifdef __STDC__ 2481# include <limits.h> 2482#else 2483# include <assert.h> 2484#endif 2485 2486#undef $2 2487 2488/* Override any GCC internal prototype to avoid an error. 2489 Use char because int might match the return type of a GCC 2490 builtin and then its argument prototype would still apply. */ 2491#ifdef __cplusplus 2492extern "C" 2493#endif 2494char $2 (); 2495/* The GNU C library defines this for functions which it implements 2496 to always fail with ENOSYS. Some functions are actually named 2497 something starting with __ and the normal name is an alias. */ 2498#if defined __stub_$2 || defined __stub___$2 2499choke me 2500#endif 2501 2502int 2503main () 2504{ 2505return $2 (); 2506 ; 2507 return 0; 2508} 2509_ACEOF 2510if ac_fn_c_try_link "$LINENO"; then : 2511 eval "$3=yes" 2512else 2513 eval "$3=no" 2514fi 2515rm -f core conftest.err conftest.$ac_objext \ 2516 conftest$ac_exeext conftest.$ac_ext 2517fi 2518eval ac_res=\$$3 2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2520$as_echo "$ac_res" >&6; } 2521 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2522 2523} # ac_fn_c_check_func 2524 2525# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2526# -------------------------------------------- 2527# Tries to find the compile-time value of EXPR in a program that includes 2528# INCLUDES, setting VAR accordingly. Returns whether the value could be 2529# computed 2530ac_fn_c_compute_int () 2531{ 2532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2533 if test "$cross_compiling" = yes; then 2534 # Depending upon the size, compute the lo and hi bounds. 2535cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2536/* end confdefs.h. */ 2537$4 2538int 2539main () 2540{ 2541static int test_array [1 - 2 * !(($2) >= 0)]; 2542test_array [0] = 0 2543 2544 ; 2545 return 0; 2546} 2547_ACEOF 2548if ac_fn_c_try_compile "$LINENO"; then : 2549 ac_lo=0 ac_mid=0 2550 while :; do 2551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2552/* end confdefs.h. */ 2553$4 2554int 2555main () 2556{ 2557static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2558test_array [0] = 0 2559 2560 ; 2561 return 0; 2562} 2563_ACEOF 2564if ac_fn_c_try_compile "$LINENO"; then : 2565 ac_hi=$ac_mid; break 2566else 2567 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2568 if test $ac_lo -le $ac_mid; then 2569 ac_lo= ac_hi= 2570 break 2571 fi 2572 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2573fi 2574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2575 done 2576else 2577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2578/* end confdefs.h. */ 2579$4 2580int 2581main () 2582{ 2583static int test_array [1 - 2 * !(($2) < 0)]; 2584test_array [0] = 0 2585 2586 ; 2587 return 0; 2588} 2589_ACEOF 2590if ac_fn_c_try_compile "$LINENO"; then : 2591 ac_hi=-1 ac_mid=-1 2592 while :; do 2593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2594/* end confdefs.h. */ 2595$4 2596int 2597main () 2598{ 2599static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2600test_array [0] = 0 2601 2602 ; 2603 return 0; 2604} 2605_ACEOF 2606if ac_fn_c_try_compile "$LINENO"; then : 2607 ac_lo=$ac_mid; break 2608else 2609 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2610 if test $ac_mid -le $ac_hi; then 2611 ac_lo= ac_hi= 2612 break 2613 fi 2614 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2615fi 2616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2617 done 2618else 2619 ac_lo= ac_hi= 2620fi 2621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2622fi 2623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2624# Binary search between lo and hi bounds. 2625while test "x$ac_lo" != "x$ac_hi"; do 2626 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2628/* end confdefs.h. */ 2629$4 2630int 2631main () 2632{ 2633static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2634test_array [0] = 0 2635 2636 ; 2637 return 0; 2638} 2639_ACEOF 2640if ac_fn_c_try_compile "$LINENO"; then : 2641 ac_hi=$ac_mid 2642else 2643 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2644fi 2645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2646done 2647case $ac_lo in #(( 2648?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2649'') ac_retval=1 ;; 2650esac 2651 else 2652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2653/* end confdefs.h. */ 2654$4 2655static long int longval () { return $2; } 2656static unsigned long int ulongval () { return $2; } 2657#include <stdio.h> 2658#include <stdlib.h> 2659int 2660main () 2661{ 2662 2663 FILE *f = fopen ("conftest.val", "w"); 2664 if (! f) 2665 return 1; 2666 if (($2) < 0) 2667 { 2668 long int i = longval (); 2669 if (i != ($2)) 2670 return 1; 2671 fprintf (f, "%ld", i); 2672 } 2673 else 2674 { 2675 unsigned long int i = ulongval (); 2676 if (i != ($2)) 2677 return 1; 2678 fprintf (f, "%lu", i); 2679 } 2680 /* Do not output a trailing newline, as this causes \r\n confusion 2681 on some platforms. */ 2682 return ferror (f) || fclose (f) != 0; 2683 2684 ; 2685 return 0; 2686} 2687_ACEOF 2688if ac_fn_c_try_run "$LINENO"; then : 2689 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2690else 2691 ac_retval=1 2692fi 2693rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2694 conftest.$ac_objext conftest.beam conftest.$ac_ext 2695rm -f conftest.val 2696 2697 fi 2698 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2699 as_fn_set_status $ac_retval 2700 2701} # ac_fn_c_compute_int 2702 2703# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2704# --------------------------------------------- 2705# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2706# accordingly. 2707ac_fn_c_check_decl () 2708{ 2709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2710 as_decl_name=`echo $2|sed 's/ *(.*//'` 2711 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2713$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2714if eval "test \"\${$3+set}\"" = set; then : 2715 $as_echo_n "(cached) " >&6 2716else 2717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2718/* end confdefs.h. */ 2719$4 2720int 2721main () 2722{ 2723#ifndef $as_decl_name 2724#ifdef __cplusplus 2725 (void) $as_decl_use; 2726#else 2727 (void) $as_decl_name; 2728#endif 2729#endif 2730 2731 ; 2732 return 0; 2733} 2734_ACEOF 2735if ac_fn_c_try_compile "$LINENO"; then : 2736 eval "$3=yes" 2737else 2738 eval "$3=no" 2739fi 2740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2741fi 2742eval ac_res=\$$3 2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2744$as_echo "$ac_res" >&6; } 2745 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2746 2747} # ac_fn_c_check_decl 2748 2749# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2750# ------------------------------------------- 2751# Tests whether TYPE exists after having included INCLUDES, setting cache 2752# variable VAR accordingly. 2753ac_fn_c_check_type () 2754{ 2755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2757$as_echo_n "checking for $2... " >&6; } 2758if eval "test \"\${$3+set}\"" = set; then : 2759 $as_echo_n "(cached) " >&6 2760else 2761 eval "$3=no" 2762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2763/* end confdefs.h. */ 2764$4 2765int 2766main () 2767{ 2768if (sizeof ($2)) 2769 return 0; 2770 ; 2771 return 0; 2772} 2773_ACEOF 2774if ac_fn_c_try_compile "$LINENO"; then : 2775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2776/* end confdefs.h. */ 2777$4 2778int 2779main () 2780{ 2781if (sizeof (($2))) 2782 return 0; 2783 ; 2784 return 0; 2785} 2786_ACEOF 2787if ac_fn_c_try_compile "$LINENO"; then : 2788 2789else 2790 eval "$3=yes" 2791fi 2792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2793fi 2794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2795fi 2796eval ac_res=\$$3 2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2798$as_echo "$ac_res" >&6; } 2799 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2800 2801} # ac_fn_c_check_type 2802 2803# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2804# ---------------------------------------------------- 2805# Tries to find if the field MEMBER exists in type AGGR, after including 2806# INCLUDES, setting cache variable VAR accordingly. 2807ac_fn_c_check_member () 2808{ 2809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2811$as_echo_n "checking for $2.$3... " >&6; } 2812if eval "test \"\${$4+set}\"" = set; then : 2813 $as_echo_n "(cached) " >&6 2814else 2815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2816/* end confdefs.h. */ 2817$5 2818int 2819main () 2820{ 2821static $2 ac_aggr; 2822if (ac_aggr.$3) 2823return 0; 2824 ; 2825 return 0; 2826} 2827_ACEOF 2828if ac_fn_c_try_compile "$LINENO"; then : 2829 eval "$4=yes" 2830else 2831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2832/* end confdefs.h. */ 2833$5 2834int 2835main () 2836{ 2837static $2 ac_aggr; 2838if (sizeof ac_aggr.$3) 2839return 0; 2840 ; 2841 return 0; 2842} 2843_ACEOF 2844if ac_fn_c_try_compile "$LINENO"; then : 2845 eval "$4=yes" 2846else 2847 eval "$4=no" 2848fi 2849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2850fi 2851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2852fi 2853eval ac_res=\$$4 2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2855$as_echo "$ac_res" >&6; } 2856 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2857 2858} # ac_fn_c_check_member 2859cat >config.log <<_ACEOF 2860This file contains any messages produced by compilers while 2861running configure, to aid debugging if configure makes a mistake. 2862 2863It was created by renameutils $as_me 0.12.0, which was 2864generated by GNU Autoconf 2.67. Invocation command line was 2865 2866 $ $0 $@ 2867 2868_ACEOF 2869exec 5>>config.log 2870{ 2871cat <<_ASUNAME 2872## --------- ## 2873## Platform. ## 2874## --------- ## 2875 2876hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2877uname -m = `(uname -m) 2>/dev/null || echo unknown` 2878uname -r = `(uname -r) 2>/dev/null || echo unknown` 2879uname -s = `(uname -s) 2>/dev/null || echo unknown` 2880uname -v = `(uname -v) 2>/dev/null || echo unknown` 2881 2882/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2883/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2884 2885/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2886/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2887/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2888/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2889/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2890/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2891/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2892 2893_ASUNAME 2894 2895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2896for as_dir in $PATH 2897do 2898 IFS=$as_save_IFS 2899 test -z "$as_dir" && as_dir=. 2900 $as_echo "PATH: $as_dir" 2901 done 2902IFS=$as_save_IFS 2903 2904} >&5 2905 2906cat >&5 <<_ACEOF 2907 2908 2909## ----------- ## 2910## Core tests. ## 2911## ----------- ## 2912 2913_ACEOF 2914 2915 2916# Keep a trace of the command line. 2917# Strip out --no-create and --no-recursion so they do not pile up. 2918# Strip out --silent because we don't want to record it for future runs. 2919# Also quote any args containing shell meta-characters. 2920# Make two passes to allow for proper duplicate-argument suppression. 2921ac_configure_args= 2922ac_configure_args0= 2923ac_configure_args1= 2924ac_must_keep_next=false 2925for ac_pass in 1 2 2926do 2927 for ac_arg 2928 do 2929 case $ac_arg in 2930 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2931 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2932 | -silent | --silent | --silen | --sile | --sil) 2933 continue ;; 2934 *\'*) 2935 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2936 esac 2937 case $ac_pass in 2938 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2939 2) 2940 as_fn_append ac_configure_args1 " '$ac_arg'" 2941 if test $ac_must_keep_next = true; then 2942 ac_must_keep_next=false # Got value, back to normal. 2943 else 2944 case $ac_arg in 2945 *=* | --config-cache | -C | -disable-* | --disable-* \ 2946 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2947 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2948 | -with-* | --with-* | -without-* | --without-* | --x) 2949 case "$ac_configure_args0 " in 2950 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2951 esac 2952 ;; 2953 -* ) ac_must_keep_next=true ;; 2954 esac 2955 fi 2956 as_fn_append ac_configure_args " '$ac_arg'" 2957 ;; 2958 esac 2959 done 2960done 2961{ ac_configure_args0=; unset ac_configure_args0;} 2962{ ac_configure_args1=; unset ac_configure_args1;} 2963 2964# When interrupted or exit'd, cleanup temporary files, and complete 2965# config.log. We remove comments because anyway the quotes in there 2966# would cause problems or look ugly. 2967# WARNING: Use '\'' to represent an apostrophe within the trap. 2968# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2969trap 'exit_status=$? 2970 # Save into config.log some information that might help in debugging. 2971 { 2972 echo 2973 2974 $as_echo "## ---------------- ## 2975## Cache variables. ## 2976## ---------------- ##" 2977 echo 2978 # The following way of writing the cache mishandles newlines in values, 2979( 2980 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2981 eval ac_val=\$$ac_var 2982 case $ac_val in #( 2983 *${as_nl}*) 2984 case $ac_var in #( 2985 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2986$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2987 esac 2988 case $ac_var in #( 2989 _ | IFS | as_nl) ;; #( 2990 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2991 *) { eval $ac_var=; unset $ac_var;} ;; 2992 esac ;; 2993 esac 2994 done 2995 (set) 2>&1 | 2996 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2997 *${as_nl}ac_space=\ *) 2998 sed -n \ 2999 "s/'\''/'\''\\\\'\'''\''/g; 3000 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3001 ;; #( 3002 *) 3003 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3004 ;; 3005 esac | 3006 sort 3007) 3008 echo 3009 3010 $as_echo "## ----------------- ## 3011## Output variables. ## 3012## ----------------- ##" 3013 echo 3014 for ac_var in $ac_subst_vars 3015 do 3016 eval ac_val=\$$ac_var 3017 case $ac_val in 3018 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3019 esac 3020 $as_echo "$ac_var='\''$ac_val'\''" 3021 done | sort 3022 echo 3023 3024 if test -n "$ac_subst_files"; then 3025 $as_echo "## ------------------- ## 3026## File substitutions. ## 3027## ------------------- ##" 3028 echo 3029 for ac_var in $ac_subst_files 3030 do 3031 eval ac_val=\$$ac_var 3032 case $ac_val in 3033 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3034 esac 3035 $as_echo "$ac_var='\''$ac_val'\''" 3036 done | sort 3037 echo 3038 fi 3039 3040 if test -s confdefs.h; then 3041 $as_echo "## ----------- ## 3042## confdefs.h. ## 3043## ----------- ##" 3044 echo 3045 cat confdefs.h 3046 echo 3047 fi 3048 test "$ac_signal" != 0 && 3049 $as_echo "$as_me: caught signal $ac_signal" 3050 $as_echo "$as_me: exit $exit_status" 3051 } >&5 3052 rm -f core *.core core.conftest.* && 3053 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3054 exit $exit_status 3055' 0 3056for ac_signal in 1 2 13 15; do 3057 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3058done 3059ac_signal=0 3060 3061# confdefs.h avoids OS command line length limits that DEFS can exceed. 3062rm -f -r conftest* confdefs.h 3063 3064$as_echo "/* confdefs.h */" > confdefs.h 3065 3066# Predefined preprocessor variables. 3067 3068cat >>confdefs.h <<_ACEOF 3069#define PACKAGE_NAME "$PACKAGE_NAME" 3070_ACEOF 3071 3072cat >>confdefs.h <<_ACEOF 3073#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3074_ACEOF 3075 3076cat >>confdefs.h <<_ACEOF 3077#define PACKAGE_VERSION "$PACKAGE_VERSION" 3078_ACEOF 3079 3080cat >>confdefs.h <<_ACEOF 3081#define PACKAGE_STRING "$PACKAGE_STRING" 3082_ACEOF 3083 3084cat >>confdefs.h <<_ACEOF 3085#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3086_ACEOF 3087 3088cat >>confdefs.h <<_ACEOF 3089#define PACKAGE_URL "$PACKAGE_URL" 3090_ACEOF 3091 3092 3093# Let the site file select an alternate cache file if it wants to. 3094# Prefer an explicitly selected file to automatically selected ones. 3095ac_site_file1=NONE 3096ac_site_file2=NONE 3097if test -n "$CONFIG_SITE"; then 3098 # We do not want a PATH search for config.site. 3099 case $CONFIG_SITE in #(( 3100 -*) ac_site_file1=./$CONFIG_SITE;; 3101 */*) ac_site_file1=$CONFIG_SITE;; 3102 *) ac_site_file1=./$CONFIG_SITE;; 3103 esac 3104elif test "x$prefix" != xNONE; then 3105 ac_site_file1=$prefix/share/config.site 3106 ac_site_file2=$prefix/etc/config.site 3107else 3108 ac_site_file1=$ac_default_prefix/share/config.site 3109 ac_site_file2=$ac_default_prefix/etc/config.site 3110fi 3111for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3112do 3113 test "x$ac_site_file" = xNONE && continue 3114 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3115 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3116$as_echo "$as_me: loading site script $ac_site_file" >&6;} 3117 sed 's/^/| /' "$ac_site_file" >&5 3118 . "$ac_site_file" \ 3119 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3120$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3121as_fn_error $? "failed to load site script $ac_site_file 3122See \`config.log' for more details" "$LINENO" 5 ; } 3123 fi 3124done 3125 3126if test -r "$cache_file"; then 3127 # Some versions of bash will fail to source /dev/null (special files 3128 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3129 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3130 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3131$as_echo "$as_me: loading cache $cache_file" >&6;} 3132 case $cache_file in 3133 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3134 *) . "./$cache_file";; 3135 esac 3136 fi 3137else 3138 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3139$as_echo "$as_me: creating cache $cache_file" >&6;} 3140 >$cache_file 3141fi 3142 3143gl_func_list="$gl_func_list btowc" 3144gl_func_list="$gl_func_list _set_invalid_parameter_handler" 3145gl_header_list="$gl_header_list sys/socket.h" 3146gl_func_list="$gl_func_list fcntl" 3147gl_header_list="$gl_header_list unistd.h" 3148gl_func_list="$gl_func_list symlink" 3149gl_func_list="$gl_func_list getdelim" 3150gl_func_list="$gl_func_list getdtablesize" 3151gl_getopt_required=GNU 3152gl_header_list="$gl_header_list getopt.h" 3153gl_header_list="$gl_header_list sys/time.h" 3154gl_func_list="$gl_func_list gettimeofday" 3155gl_header_list="$gl_header_list langinfo.h" 3156gl_header_list="$gl_header_list xlocale.h" 3157gl_func_list="$gl_func_list lstat" 3158gl_func_list="$gl_func_list mbsinit" 3159gl_func_list="$gl_func_list mbrtowc" 3160gl_header_list="$gl_header_list sys/mman.h" 3161gl_func_list="$gl_func_list mprotect" 3162gl_func_list="$gl_func_list nl_langinfo" 3163gl_header_list="$gl_header_list sys/param.h" 3164gl_func_list="$gl_func_list isblank" 3165gl_func_list="$gl_func_list iswctype" 3166gl_func_list="$gl_func_list wcscoll" 3167gl_header_list="$gl_header_list wchar.h" 3168gl_header_list="$gl_header_list stdint.h" 3169gl_func_list="$gl_func_list strdup" 3170gl_header_list="$gl_header_list strings.h" 3171gl_func_list="$gl_func_list strndup" 3172gl_header_list="$gl_header_list sys/stat.h" 3173gl_func_list="$gl_func_list vasnprintf" 3174gl_header_list="$gl_header_list features.h" 3175gl_func_list="$gl_func_list snprintf" 3176gl_func_list="$gl_func_list wcrtomb" 3177gl_func_list="$gl_func_list iswcntrl" 3178gl_header_list="$gl_header_list wctype.h" 3179gt_needs="$gt_needs " 3180# Check that the precious variables saved in the cache have kept the same 3181# value. 3182ac_cache_corrupted=false 3183for ac_var in $ac_precious_vars; do 3184 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3185 eval ac_new_set=\$ac_env_${ac_var}_set 3186 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3187 eval ac_new_val=\$ac_env_${ac_var}_value 3188 case $ac_old_set,$ac_new_set in 3189 set,) 3190 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3191$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3192 ac_cache_corrupted=: ;; 3193 ,set) 3194 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3195$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3196 ac_cache_corrupted=: ;; 3197 ,);; 3198 *) 3199 if test "x$ac_old_val" != "x$ac_new_val"; then 3200 # differences in whitespace do not lead to failure. 3201 ac_old_val_w=`echo x $ac_old_val` 3202 ac_new_val_w=`echo x $ac_new_val` 3203 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3204 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3205$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3206 ac_cache_corrupted=: 3207 else 3208 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3209$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3210 eval $ac_var=\$ac_old_val 3211 fi 3212 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3213$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3214 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3215$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3216 fi;; 3217 esac 3218 # Pass precious variables to config.status. 3219 if test "$ac_new_set" = set; then 3220 case $ac_new_val in 3221 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3222 *) ac_arg=$ac_var=$ac_new_val ;; 3223 esac 3224 case " $ac_configure_args " in 3225 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3226 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3227 esac 3228 fi 3229done 3230if $ac_cache_corrupted; then 3231 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3232$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3233 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3234$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3235 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3236fi 3237## -------------------- ## 3238## Main body of script. ## 3239## -------------------- ## 3240 3241ac_ext=c 3242ac_cpp='$CPP $CPPFLAGS' 3243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3245ac_compiler_gnu=$ac_cv_c_compiler_gnu 3246 3247 3248 # doesn't seem to have any effect at the moment 3249 3250ac_config_headers="$ac_config_headers config.h" 3251 3252ac_aux_dir= 3253for ac_dir in build-aux "$srcdir"/build-aux; do 3254 if test -f "$ac_dir/install-sh"; then 3255 ac_aux_dir=$ac_dir 3256 ac_install_sh="$ac_aux_dir/install-sh -c" 3257 break 3258 elif test -f "$ac_dir/install.sh"; then 3259 ac_aux_dir=$ac_dir 3260 ac_install_sh="$ac_aux_dir/install.sh -c" 3261 break 3262 elif test -f "$ac_dir/shtool"; then 3263 ac_aux_dir=$ac_dir 3264 ac_install_sh="$ac_aux_dir/shtool install -c" 3265 break 3266 fi 3267done 3268if test -z "$ac_aux_dir"; then 3269 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 3270fi 3271 3272# These three variables are undocumented and unsupported, 3273# and are intended to be withdrawn in a future Autoconf release. 3274# They can cause serious problems if a builder's source tree is in a directory 3275# whose full name contains unusual characters. 3276ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3277ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3278ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3279 3280 3281am__api_version='1.11' 3282 3283# Find a good install program. We prefer a C program (faster), 3284# so one script is as good as another. But avoid the broken or 3285# incompatible versions: 3286# SysV /etc/install, /usr/sbin/install 3287# SunOS /usr/etc/install 3288# IRIX /sbin/install 3289# AIX /bin/install 3290# AmigaOS /C/install, which installs bootblocks on floppy discs 3291# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3292# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3293# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3294# OS/2's system install, which has a completely different semantic 3295# ./install, which can be erroneously created by make from ./install.sh. 3296# Reject install programs that cannot install multiple files. 3297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3298$as_echo_n "checking for a BSD-compatible install... " >&6; } 3299if test -z "$INSTALL"; then 3300if test "${ac_cv_path_install+set}" = set; then : 3301 $as_echo_n "(cached) " >&6 3302else 3303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3304for as_dir in $PATH 3305do 3306 IFS=$as_save_IFS 3307 test -z "$as_dir" && as_dir=. 3308 # Account for people who put trailing slashes in PATH elements. 3309case $as_dir/ in #(( 3310 ./ | .// | /[cC]/* | \ 3311 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3312 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3313 /usr/ucb/* ) ;; 3314 *) 3315 # OSF1 and SCO ODT 3.0 have their own names for install. 3316 # Don't use installbsd from OSF since it installs stuff as root 3317 # by default. 3318 for ac_prog in ginstall scoinst install; do 3319 for ac_exec_ext in '' $ac_executable_extensions; do 3320 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3321 if test $ac_prog = install && 3322 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3323 # AIX install. It has an incompatible calling convention. 3324 : 3325 elif test $ac_prog = install && 3326 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3327 # program-specific install script used by HP pwplus--don't use. 3328 : 3329 else 3330 rm -rf conftest.one conftest.two conftest.dir 3331 echo one > conftest.one 3332 echo two > conftest.two 3333 mkdir conftest.dir 3334 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3335 test -s conftest.one && test -s conftest.two && 3336 test -s conftest.dir/conftest.one && 3337 test -s conftest.dir/conftest.two 3338 then 3339 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3340 break 3 3341 fi 3342 fi 3343 fi 3344 done 3345 done 3346 ;; 3347esac 3348 3349 done 3350IFS=$as_save_IFS 3351 3352rm -rf conftest.one conftest.two conftest.dir 3353 3354fi 3355 if test "${ac_cv_path_install+set}" = set; then 3356 INSTALL=$ac_cv_path_install 3357 else 3358 # As a last resort, use the slow shell script. Don't cache a 3359 # value for INSTALL within a source directory, because that will 3360 # break other packages using the cache if that directory is 3361 # removed, or if the value is a relative name. 3362 INSTALL=$ac_install_sh 3363 fi 3364fi 3365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3366$as_echo "$INSTALL" >&6; } 3367 3368# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3369# It thinks the first close brace ends the variable substitution. 3370test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3371 3372test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3373 3374test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3375 3376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3377$as_echo_n "checking whether build environment is sane... " >&6; } 3378# Just in case 3379sleep 1 3380echo timestamp > conftest.file 3381# Reject unsafe characters in $srcdir or the absolute working directory 3382# name. Accept space and tab only in the latter. 3383am_lf=' 3384' 3385case `pwd` in 3386 *[\\\"\#\$\&\'\`$am_lf]*) 3387 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;; 3388esac 3389case $srcdir in 3390 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3391 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;; 3392esac 3393 3394# Do `set' in a subshell so we don't clobber the current shell's 3395# arguments. Must try -L first in case configure is actually a 3396# symlink; some systems play weird games with the mod time of symlinks 3397# (eg FreeBSD returns the mod time of the symlink's containing 3398# directory). 3399if ( 3400 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3401 if test "$*" = "X"; then 3402 # -L didn't work. 3403 set X `ls -t "$srcdir/configure" conftest.file` 3404 fi 3405 rm -f conftest.file 3406 if test "$*" != "X $srcdir/configure conftest.file" \ 3407 && test "$*" != "X conftest.file $srcdir/configure"; then 3408 3409 # If neither matched, then we have a broken ls. This can happen 3410 # if, for instance, CONFIG_SHELL is bash and it inherits a 3411 # broken ls alias from the environment. This has actually 3412 # happened. Such a system could not be considered "sane". 3413 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3414alias in your environment" "$LINENO" 5 3415 fi 3416 3417 test "$2" = conftest.file 3418 ) 3419then 3420 # Ok. 3421 : 3422else 3423 as_fn_error $? "newly created file is older than distributed files! 3424Check your system clock" "$LINENO" 5 3425fi 3426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3427$as_echo "yes" >&6; } 3428test "$program_prefix" != NONE && 3429 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3430# Use a double $ so make ignores it. 3431test "$program_suffix" != NONE && 3432 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3433# Double any \ or $. 3434# By default was `s,x,x', remove it if useless. 3435ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3436program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3437 3438# expand $ac_aux_dir to an absolute path 3439am_aux_dir=`cd $ac_aux_dir && pwd` 3440 3441if test x"${MISSING+set}" != xset; then 3442 case $am_aux_dir in 3443 *\ * | *\ *) 3444 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3445 *) 3446 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3447 esac 3448fi 3449# Use eval to expand $SHELL 3450if eval "$MISSING --run true"; then 3451 am_missing_run="$MISSING --run " 3452else 3453 am_missing_run= 3454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 3455$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 3456fi 3457 3458if test x"${install_sh}" != xset; then 3459 case $am_aux_dir in 3460 *\ * | *\ *) 3461 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3462 *) 3463 install_sh="\${SHELL} $am_aux_dir/install-sh" 3464 esac 3465fi 3466 3467# Installed binaries are usually stripped using `strip' when the user 3468# run `make install-strip'. However `strip' might not be the right 3469# tool to use in cross-compilation environments, therefore Automake 3470# will honor the `STRIP' environment variable to overrule this program. 3471if test "$cross_compiling" != no; then 3472 if test -n "$ac_tool_prefix"; then 3473 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3474set dummy ${ac_tool_prefix}strip; ac_word=$2 3475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3476$as_echo_n "checking for $ac_word... " >&6; } 3477if test "${ac_cv_prog_STRIP+set}" = set; then : 3478 $as_echo_n "(cached) " >&6 3479else 3480 if test -n "$STRIP"; then 3481 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3482else 3483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3484for as_dir in $PATH 3485do 3486 IFS=$as_save_IFS 3487 test -z "$as_dir" && as_dir=. 3488 for ac_exec_ext in '' $ac_executable_extensions; do 3489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3490 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3492 break 2 3493 fi 3494done 3495 done 3496IFS=$as_save_IFS 3497 3498fi 3499fi 3500STRIP=$ac_cv_prog_STRIP 3501if test -n "$STRIP"; then 3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3503$as_echo "$STRIP" >&6; } 3504else 3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3506$as_echo "no" >&6; } 3507fi 3508 3509 3510fi 3511if test -z "$ac_cv_prog_STRIP"; then 3512 ac_ct_STRIP=$STRIP 3513 # Extract the first word of "strip", so it can be a program name with args. 3514set dummy strip; ac_word=$2 3515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3516$as_echo_n "checking for $ac_word... " >&6; } 3517if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 3518 $as_echo_n "(cached) " >&6 3519else 3520 if test -n "$ac_ct_STRIP"; then 3521 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3522else 3523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3524for as_dir in $PATH 3525do 3526 IFS=$as_save_IFS 3527 test -z "$as_dir" && as_dir=. 3528 for ac_exec_ext in '' $ac_executable_extensions; do 3529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3530 ac_cv_prog_ac_ct_STRIP="strip" 3531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3532 break 2 3533 fi 3534done 3535 done 3536IFS=$as_save_IFS 3537 3538fi 3539fi 3540ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3541if test -n "$ac_ct_STRIP"; then 3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3543$as_echo "$ac_ct_STRIP" >&6; } 3544else 3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3546$as_echo "no" >&6; } 3547fi 3548 3549 if test "x$ac_ct_STRIP" = x; then 3550 STRIP=":" 3551 else 3552 case $cross_compiling:$ac_tool_warned in 3553yes:) 3554{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3555$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3556ac_tool_warned=yes ;; 3557esac 3558 STRIP=$ac_ct_STRIP 3559 fi 3560else 3561 STRIP="$ac_cv_prog_STRIP" 3562fi 3563 3564fi 3565INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3566 3567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3568$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3569if test -z "$MKDIR_P"; then 3570 if test "${ac_cv_path_mkdir+set}" = set; then : 3571 $as_echo_n "(cached) " >&6 3572else 3573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3574for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3575do 3576 IFS=$as_save_IFS 3577 test -z "$as_dir" && as_dir=. 3578 for ac_prog in mkdir gmkdir; do 3579 for ac_exec_ext in '' $ac_executable_extensions; do 3580 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 3581 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3582 'mkdir (GNU coreutils) '* | \ 3583 'mkdir (coreutils) '* | \ 3584 'mkdir (fileutils) '4.1*) 3585 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3586 break 3;; 3587 esac 3588 done 3589 done 3590 done 3591IFS=$as_save_IFS 3592 3593fi 3594 3595 test -d ./--version && rmdir ./--version 3596 if test "${ac_cv_path_mkdir+set}" = set; then 3597 MKDIR_P="$ac_cv_path_mkdir -p" 3598 else 3599 # As a last resort, use the slow shell script. Don't cache a 3600 # value for MKDIR_P within a source directory, because that will 3601 # break other packages using the cache if that directory is 3602 # removed, or if the value is a relative name. 3603 MKDIR_P="$ac_install_sh -d" 3604 fi 3605fi 3606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3607$as_echo "$MKDIR_P" >&6; } 3608 3609 3610mkdir_p="$MKDIR_P" 3611case $mkdir_p in 3612 [\\/$]* | ?:[\\/]*) ;; 3613 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 3614esac 3615 3616for ac_prog in gawk mawk nawk awk 3617do 3618 # Extract the first word of "$ac_prog", so it can be a program name with args. 3619set dummy $ac_prog; ac_word=$2 3620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3621$as_echo_n "checking for $ac_word... " >&6; } 3622if test "${ac_cv_prog_AWK+set}" = set; then : 3623 $as_echo_n "(cached) " >&6 3624else 3625 if test -n "$AWK"; then 3626 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3627else 3628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3629for as_dir in $PATH 3630do 3631 IFS=$as_save_IFS 3632 test -z "$as_dir" && as_dir=. 3633 for ac_exec_ext in '' $ac_executable_extensions; do 3634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3635 ac_cv_prog_AWK="$ac_prog" 3636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3637 break 2 3638 fi 3639done 3640 done 3641IFS=$as_save_IFS 3642 3643fi 3644fi 3645AWK=$ac_cv_prog_AWK 3646if test -n "$AWK"; then 3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3648$as_echo "$AWK" >&6; } 3649else 3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3651$as_echo "no" >&6; } 3652fi 3653 3654 3655 test -n "$AWK" && break 3656done 3657 3658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3659$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3660set x ${MAKE-make} 3661ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3662if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : 3663 $as_echo_n "(cached) " >&6 3664else 3665 cat >conftest.make <<\_ACEOF 3666SHELL = /bin/sh 3667all: 3668 @echo '@@@%%%=$(MAKE)=@@@%%%' 3669_ACEOF 3670# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3671case `${MAKE-make} -f conftest.make 2>/dev/null` in 3672 *@@@%%%=?*=@@@%%%*) 3673 eval ac_cv_prog_make_${ac_make}_set=yes;; 3674 *) 3675 eval ac_cv_prog_make_${ac_make}_set=no;; 3676esac 3677rm -f conftest.make 3678fi 3679if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3681$as_echo "yes" >&6; } 3682 SET_MAKE= 3683else 3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3685$as_echo "no" >&6; } 3686 SET_MAKE="MAKE=${MAKE-make}" 3687fi 3688 3689rm -rf .tst 2>/dev/null 3690mkdir .tst 2>/dev/null 3691if test -d .tst; then 3692 am__leading_dot=. 3693else 3694 am__leading_dot=_ 3695fi 3696rmdir .tst 2>/dev/null 3697 3698if test "`cd $srcdir && pwd`" != "`pwd`"; then 3699 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3700 # is not polluted with repeated "-I." 3701 am__isrc=' -I$(srcdir)' 3702 # test to see if srcdir already configured 3703 if test -f $srcdir/config.status; then 3704 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3705 fi 3706fi 3707 3708# test whether we have cygpath 3709if test -z "$CYGPATH_W"; then 3710 if (cygpath --version) >/dev/null 2>/dev/null; then 3711 CYGPATH_W='cygpath -w' 3712 else 3713 CYGPATH_W=echo 3714 fi 3715fi 3716 3717 3718# Define the identity of the package. 3719 PACKAGE='renameutils' 3720 VERSION='0.12.0' 3721 3722 3723cat >>confdefs.h <<_ACEOF 3724#define PACKAGE "$PACKAGE" 3725_ACEOF 3726 3727 3728cat >>confdefs.h <<_ACEOF 3729#define VERSION "$VERSION" 3730_ACEOF 3731 3732# Some tools Automake needs. 3733 3734ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3735 3736 3737AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3738 3739 3740AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3741 3742 3743AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3744 3745 3746MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3747 3748# We need awk for the "check" target. The system "awk" is bad on 3749# some platforms. 3750# Always define AMTAR for backward compatibility. 3751 3752AMTAR=${AMTAR-"${am_missing_run}tar"} 3753 3754am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3755 3756 3757 3758 3759 3760 3761# Initialize config.h 3762# Make sure we can run config.sub. 3763$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3764 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3765 3766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3767$as_echo_n "checking build system type... " >&6; } 3768if test "${ac_cv_build+set}" = set; then : 3769 $as_echo_n "(cached) " >&6 3770else 3771 ac_build_alias=$build_alias 3772test "x$ac_build_alias" = x && 3773 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3774test "x$ac_build_alias" = x && 3775 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3776ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3777 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3778 3779fi 3780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3781$as_echo "$ac_cv_build" >&6; } 3782case $ac_cv_build in 3783*-*-*) ;; 3784*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;; 3785esac 3786build=$ac_cv_build 3787ac_save_IFS=$IFS; IFS='-' 3788set x $ac_cv_build 3789shift 3790build_cpu=$1 3791build_vendor=$2 3792shift; shift 3793# Remember, the first character of IFS is used to create $*, 3794# except with old shells: 3795build_os=$* 3796IFS=$ac_save_IFS 3797case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3798 3799 3800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3801$as_echo_n "checking host system type... " >&6; } 3802if test "${ac_cv_host+set}" = set; then : 3803 $as_echo_n "(cached) " >&6 3804else 3805 if test "x$host_alias" = x; then 3806 ac_cv_host=$ac_cv_build 3807else 3808 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3809 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3810fi 3811 3812fi 3813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3814$as_echo "$ac_cv_host" >&6; } 3815case $ac_cv_host in 3816*-*-*) ;; 3817*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;; 3818esac 3819host=$ac_cv_host 3820ac_save_IFS=$IFS; IFS='-' 3821set x $ac_cv_host 3822shift 3823host_cpu=$1 3824host_vendor=$2 3825shift; shift 3826# Remember, the first character of IFS is used to create $*, 3827# except with old shells: 3828host_os=$* 3829IFS=$ac_save_IFS 3830case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3831 3832 3833DEPDIR="${am__leading_dot}deps" 3834 3835ac_config_commands="$ac_config_commands depfiles" 3836 3837 3838am_make=${MAKE-make} 3839cat > confinc << 'END' 3840am__doit: 3841 @echo this is the am__doit target 3842.PHONY: am__doit 3843END 3844# If we don't find an include directive, just comment out the code. 3845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3846$as_echo_n "checking for style of include used by $am_make... " >&6; } 3847am__include="#" 3848am__quote= 3849_am_result=none 3850# First try GNU make style include. 3851echo "include confinc" > confmf 3852# Ignore all kinds of additional output from `make'. 3853case `$am_make -s -f confmf 2> /dev/null` in #( 3854*the\ am__doit\ target*) 3855 am__include=include 3856 am__quote= 3857 _am_result=GNU 3858 ;; 3859esac 3860# Now try BSD make style include. 3861if test "$am__include" = "#"; then 3862 echo '.include "confinc"' > confmf 3863 case `$am_make -s -f confmf 2> /dev/null` in #( 3864 *the\ am__doit\ target*) 3865 am__include=.include 3866 am__quote="\"" 3867 _am_result=BSD 3868 ;; 3869 esac 3870fi 3871 3872 3873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3874$as_echo "$_am_result" >&6; } 3875rm -f confinc confmf 3876 3877# Check whether --enable-dependency-tracking was given. 3878if test "${enable_dependency_tracking+set}" = set; then : 3879 enableval=$enable_dependency_tracking; 3880fi 3881 3882if test "x$enable_dependency_tracking" != xno; then 3883 am_depcomp="$ac_aux_dir/depcomp" 3884 AMDEPBACKSLASH='\' 3885fi 3886 if test "x$enable_dependency_tracking" != xno; then 3887 AMDEP_TRUE= 3888 AMDEP_FALSE='#' 3889else 3890 AMDEP_TRUE='#' 3891 AMDEP_FALSE= 3892fi 3893 3894 3895ac_ext=c 3896ac_cpp='$CPP $CPPFLAGS' 3897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3899ac_compiler_gnu=$ac_cv_c_compiler_gnu 3900if test -n "$ac_tool_prefix"; then 3901 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3902set dummy ${ac_tool_prefix}gcc; ac_word=$2 3903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3904$as_echo_n "checking for $ac_word... " >&6; } 3905if test "${ac_cv_prog_CC+set}" = set; then : 3906 $as_echo_n "(cached) " >&6 3907else 3908 if test -n "$CC"; then 3909 ac_cv_prog_CC="$CC" # Let the user override the test. 3910else 3911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3912for as_dir in $PATH 3913do 3914 IFS=$as_save_IFS 3915 test -z "$as_dir" && as_dir=. 3916 for ac_exec_ext in '' $ac_executable_extensions; do 3917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3918 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3920 break 2 3921 fi 3922done 3923 done 3924IFS=$as_save_IFS 3925 3926fi 3927fi 3928CC=$ac_cv_prog_CC 3929if test -n "$CC"; then 3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3931$as_echo "$CC" >&6; } 3932else 3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3934$as_echo "no" >&6; } 3935fi 3936 3937 3938fi 3939if test -z "$ac_cv_prog_CC"; then 3940 ac_ct_CC=$CC 3941 # Extract the first word of "gcc", so it can be a program name with args. 3942set dummy gcc; ac_word=$2 3943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3944$as_echo_n "checking for $ac_word... " >&6; } 3945if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3946 $as_echo_n "(cached) " >&6 3947else 3948 if test -n "$ac_ct_CC"; then 3949 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3950else 3951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3952for as_dir in $PATH 3953do 3954 IFS=$as_save_IFS 3955 test -z "$as_dir" && as_dir=. 3956 for ac_exec_ext in '' $ac_executable_extensions; do 3957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3958 ac_cv_prog_ac_ct_CC="gcc" 3959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3960 break 2 3961 fi 3962done 3963 done 3964IFS=$as_save_IFS 3965 3966fi 3967fi 3968ac_ct_CC=$ac_cv_prog_ac_ct_CC 3969if test -n "$ac_ct_CC"; then 3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3971$as_echo "$ac_ct_CC" >&6; } 3972else 3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3974$as_echo "no" >&6; } 3975fi 3976 3977 if test "x$ac_ct_CC" = x; then 3978 CC="" 3979 else 3980 case $cross_compiling:$ac_tool_warned in 3981yes:) 3982{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3983$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3984ac_tool_warned=yes ;; 3985esac 3986 CC=$ac_ct_CC 3987 fi 3988else 3989 CC="$ac_cv_prog_CC" 3990fi 3991 3992if test -z "$CC"; then 3993 if test -n "$ac_tool_prefix"; then 3994 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3995set dummy ${ac_tool_prefix}cc; ac_word=$2 3996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3997$as_echo_n "checking for $ac_word... " >&6; } 3998if test "${ac_cv_prog_CC+set}" = set; then : 3999 $as_echo_n "(cached) " >&6 4000else 4001 if test -n "$CC"; then 4002 ac_cv_prog_CC="$CC" # Let the user override the test. 4003else 4004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4005for as_dir in $PATH 4006do 4007 IFS=$as_save_IFS 4008 test -z "$as_dir" && as_dir=. 4009 for ac_exec_ext in '' $ac_executable_extensions; do 4010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4011 ac_cv_prog_CC="${ac_tool_prefix}cc" 4012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4013 break 2 4014 fi 4015done 4016 done 4017IFS=$as_save_IFS 4018 4019fi 4020fi 4021CC=$ac_cv_prog_CC 4022if test -n "$CC"; then 4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4024$as_echo "$CC" >&6; } 4025else 4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4027$as_echo "no" >&6; } 4028fi 4029 4030 4031 fi 4032fi 4033if test -z "$CC"; then 4034 # Extract the first word of "cc", so it can be a program name with args. 4035set dummy cc; ac_word=$2 4036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4037$as_echo_n "checking for $ac_word... " >&6; } 4038if test "${ac_cv_prog_CC+set}" = set; then : 4039 $as_echo_n "(cached) " >&6 4040else 4041 if test -n "$CC"; then 4042 ac_cv_prog_CC="$CC" # Let the user override the test. 4043else 4044 ac_prog_rejected=no 4045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4046for as_dir in $PATH 4047do 4048 IFS=$as_save_IFS 4049 test -z "$as_dir" && as_dir=. 4050 for ac_exec_ext in '' $ac_executable_extensions; do 4051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4052 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4053 ac_prog_rejected=yes 4054 continue 4055 fi 4056 ac_cv_prog_CC="cc" 4057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4058 break 2 4059 fi 4060done 4061 done 4062IFS=$as_save_IFS 4063 4064if test $ac_prog_rejected = yes; then 4065 # We found a bogon in the path, so make sure we never use it. 4066 set dummy $ac_cv_prog_CC 4067 shift 4068 if test $# != 0; then 4069 # We chose a different compiler from the bogus one. 4070 # However, it has the same basename, so the bogon will be chosen 4071 # first if we set CC to just the basename; use the full file name. 4072 shift 4073 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4074 fi 4075fi 4076fi 4077fi 4078CC=$ac_cv_prog_CC 4079if test -n "$CC"; then 4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4081$as_echo "$CC" >&6; } 4082else 4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4084$as_echo "no" >&6; } 4085fi 4086 4087 4088fi 4089if test -z "$CC"; then 4090 if test -n "$ac_tool_prefix"; then 4091 for ac_prog in cl.exe 4092 do 4093 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4094set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4096$as_echo_n "checking for $ac_word... " >&6; } 4097if test "${ac_cv_prog_CC+set}" = set; then : 4098 $as_echo_n "(cached) " >&6 4099else 4100 if test -n "$CC"; then 4101 ac_cv_prog_CC="$CC" # Let the user override the test. 4102else 4103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4104for as_dir in $PATH 4105do 4106 IFS=$as_save_IFS 4107 test -z "$as_dir" && as_dir=. 4108 for ac_exec_ext in '' $ac_executable_extensions; do 4109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4110 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4112 break 2 4113 fi 4114done 4115 done 4116IFS=$as_save_IFS 4117 4118fi 4119fi 4120CC=$ac_cv_prog_CC 4121if test -n "$CC"; then 4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4123$as_echo "$CC" >&6; } 4124else 4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4126$as_echo "no" >&6; } 4127fi 4128 4129 4130 test -n "$CC" && break 4131 done 4132fi 4133if test -z "$CC"; then 4134 ac_ct_CC=$CC 4135 for ac_prog in cl.exe 4136do 4137 # Extract the first word of "$ac_prog", so it can be a program name with args. 4138set dummy $ac_prog; ac_word=$2 4139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4140$as_echo_n "checking for $ac_word... " >&6; } 4141if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4142 $as_echo_n "(cached) " >&6 4143else 4144 if test -n "$ac_ct_CC"; then 4145 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4146else 4147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4148for as_dir in $PATH 4149do 4150 IFS=$as_save_IFS 4151 test -z "$as_dir" && as_dir=. 4152 for ac_exec_ext in '' $ac_executable_extensions; do 4153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4154 ac_cv_prog_ac_ct_CC="$ac_prog" 4155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4156 break 2 4157 fi 4158done 4159 done 4160IFS=$as_save_IFS 4161 4162fi 4163fi 4164ac_ct_CC=$ac_cv_prog_ac_ct_CC 4165if test -n "$ac_ct_CC"; then 4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4167$as_echo "$ac_ct_CC" >&6; } 4168else 4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4170$as_echo "no" >&6; } 4171fi 4172 4173 4174 test -n "$ac_ct_CC" && break 4175done 4176 4177 if test "x$ac_ct_CC" = x; then 4178 CC="" 4179 else 4180 case $cross_compiling:$ac_tool_warned in 4181yes:) 4182{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4183$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4184ac_tool_warned=yes ;; 4185esac 4186 CC=$ac_ct_CC 4187 fi 4188fi 4189 4190fi 4191 4192 4193test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4194$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4195as_fn_error $? "no acceptable C compiler found in \$PATH 4196See \`config.log' for more details" "$LINENO" 5 ; } 4197 4198# Provide some information about the compiler. 4199$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4200set X $ac_compile 4201ac_compiler=$2 4202for ac_option in --version -v -V -qversion; do 4203 { { ac_try="$ac_compiler $ac_option >&5" 4204case "(($ac_try" in 4205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4206 *) ac_try_echo=$ac_try;; 4207esac 4208eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4209$as_echo "$ac_try_echo"; } >&5 4210 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4211 ac_status=$? 4212 if test -s conftest.err; then 4213 sed '10a\ 4214... rest of stderr output deleted ... 4215 10q' conftest.err >conftest.er1 4216 cat conftest.er1 >&5 4217 fi 4218 rm -f conftest.er1 conftest.err 4219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4220 test $ac_status = 0; } 4221done 4222 4223cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4224/* end confdefs.h. */ 4225 4226int 4227main () 4228{ 4229 4230 ; 4231 return 0; 4232} 4233_ACEOF 4234ac_clean_files_save=$ac_clean_files 4235ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4236# Try to create an executable without -o first, disregard a.out. 4237# It will help us diagnose broken compilers, and finding out an intuition 4238# of exeext. 4239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4240$as_echo_n "checking whether the C compiler works... " >&6; } 4241ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4242 4243# The possible output files: 4244ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4245 4246ac_rmfiles= 4247for ac_file in $ac_files 4248do 4249 case $ac_file in 4250 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4251 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4252 esac 4253done 4254rm -f $ac_rmfiles 4255 4256if { { ac_try="$ac_link_default" 4257case "(($ac_try" in 4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4259 *) ac_try_echo=$ac_try;; 4260esac 4261eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4262$as_echo "$ac_try_echo"; } >&5 4263 (eval "$ac_link_default") 2>&5 4264 ac_status=$? 4265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4266 test $ac_status = 0; }; then : 4267 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4268# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4269# in a Makefile. We should not override ac_cv_exeext if it was cached, 4270# so that the user can short-circuit this test for compilers unknown to 4271# Autoconf. 4272for ac_file in $ac_files '' 4273do 4274 test -f "$ac_file" || continue 4275 case $ac_file in 4276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4277 ;; 4278 [ab].out ) 4279 # We found the default executable, but exeext='' is most 4280 # certainly right. 4281 break;; 4282 *.* ) 4283 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4284 then :; else 4285 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4286 fi 4287 # We set ac_cv_exeext here because the later test for it is not 4288 # safe: cross compilers may not add the suffix if given an `-o' 4289 # argument, so we may need to know it at that point already. 4290 # Even if this section looks crufty: it has the advantage of 4291 # actually working. 4292 break;; 4293 * ) 4294 break;; 4295 esac 4296done 4297test "$ac_cv_exeext" = no && ac_cv_exeext= 4298 4299else 4300 ac_file='' 4301fi 4302if test -z "$ac_file"; then : 4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4304$as_echo "no" >&6; } 4305$as_echo "$as_me: failed program was:" >&5 4306sed 's/^/| /' conftest.$ac_ext >&5 4307 4308{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4309$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4310as_fn_error 77 "C compiler cannot create executables 4311See \`config.log' for more details" "$LINENO" 5 ; } 4312else 4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4314$as_echo "yes" >&6; } 4315fi 4316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4317$as_echo_n "checking for C compiler default output file name... " >&6; } 4318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4319$as_echo "$ac_file" >&6; } 4320ac_exeext=$ac_cv_exeext 4321 4322rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4323ac_clean_files=$ac_clean_files_save 4324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4325$as_echo_n "checking for suffix of executables... " >&6; } 4326if { { ac_try="$ac_link" 4327case "(($ac_try" in 4328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4329 *) ac_try_echo=$ac_try;; 4330esac 4331eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4332$as_echo "$ac_try_echo"; } >&5 4333 (eval "$ac_link") 2>&5 4334 ac_status=$? 4335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4336 test $ac_status = 0; }; then : 4337 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4338# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4339# work properly (i.e., refer to `conftest.exe'), while it won't with 4340# `rm'. 4341for ac_file in conftest.exe conftest conftest.*; do 4342 test -f "$ac_file" || continue 4343 case $ac_file in 4344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4345 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4346 break;; 4347 * ) break;; 4348 esac 4349done 4350else 4351 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4352$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4353as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4354See \`config.log' for more details" "$LINENO" 5 ; } 4355fi 4356rm -f conftest conftest$ac_cv_exeext 4357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4358$as_echo "$ac_cv_exeext" >&6; } 4359 4360rm -f conftest.$ac_ext 4361EXEEXT=$ac_cv_exeext 4362ac_exeext=$EXEEXT 4363cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4364/* end confdefs.h. */ 4365#include <stdio.h> 4366int 4367main () 4368{ 4369FILE *f = fopen ("conftest.out", "w"); 4370 return ferror (f) || fclose (f) != 0; 4371 4372 ; 4373 return 0; 4374} 4375_ACEOF 4376ac_clean_files="$ac_clean_files conftest.out" 4377# Check that the compiler produces executables we can run. If not, either 4378# the compiler is broken, or we cross compile. 4379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4380$as_echo_n "checking whether we are cross compiling... " >&6; } 4381if test "$cross_compiling" != yes; then 4382 { { ac_try="$ac_link" 4383case "(($ac_try" in 4384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4385 *) ac_try_echo=$ac_try;; 4386esac 4387eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4388$as_echo "$ac_try_echo"; } >&5 4389 (eval "$ac_link") 2>&5 4390 ac_status=$? 4391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4392 test $ac_status = 0; } 4393 if { ac_try='./conftest$ac_cv_exeext' 4394 { { case "(($ac_try" in 4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4396 *) ac_try_echo=$ac_try;; 4397esac 4398eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4399$as_echo "$ac_try_echo"; } >&5 4400 (eval "$ac_try") 2>&5 4401 ac_status=$? 4402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4403 test $ac_status = 0; }; }; then 4404 cross_compiling=no 4405 else 4406 if test "$cross_compiling" = maybe; then 4407 cross_compiling=yes 4408 else 4409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4410$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4411as_fn_error $? "cannot run C compiled programs. 4412If you meant to cross compile, use \`--host'. 4413See \`config.log' for more details" "$LINENO" 5 ; } 4414 fi 4415 fi 4416fi 4417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4418$as_echo "$cross_compiling" >&6; } 4419 4420rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4421ac_clean_files=$ac_clean_files_save 4422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4423$as_echo_n "checking for suffix of object files... " >&6; } 4424if test "${ac_cv_objext+set}" = set; then : 4425 $as_echo_n "(cached) " >&6 4426else 4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4428/* end confdefs.h. */ 4429 4430int 4431main () 4432{ 4433 4434 ; 4435 return 0; 4436} 4437_ACEOF 4438rm -f conftest.o conftest.obj 4439if { { ac_try="$ac_compile" 4440case "(($ac_try" in 4441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4442 *) ac_try_echo=$ac_try;; 4443esac 4444eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4445$as_echo "$ac_try_echo"; } >&5 4446 (eval "$ac_compile") 2>&5 4447 ac_status=$? 4448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4449 test $ac_status = 0; }; then : 4450 for ac_file in conftest.o conftest.obj conftest.*; do 4451 test -f "$ac_file" || continue; 4452 case $ac_file in 4453 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4454 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4455 break;; 4456 esac 4457done 4458else 4459 $as_echo "$as_me: failed program was:" >&5 4460sed 's/^/| /' conftest.$ac_ext >&5 4461 4462{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4463$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4464as_fn_error $? "cannot compute suffix of object files: cannot compile 4465See \`config.log' for more details" "$LINENO" 5 ; } 4466fi 4467rm -f conftest.$ac_cv_objext conftest.$ac_ext 4468fi 4469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4470$as_echo "$ac_cv_objext" >&6; } 4471OBJEXT=$ac_cv_objext 4472ac_objext=$OBJEXT 4473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4474$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4475if test "${ac_cv_c_compiler_gnu+set}" = set; then : 4476 $as_echo_n "(cached) " >&6 4477else 4478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4479/* end confdefs.h. */ 4480 4481int 4482main () 4483{ 4484#ifndef __GNUC__ 4485 choke me 4486#endif 4487 4488 ; 4489 return 0; 4490} 4491_ACEOF 4492if ac_fn_c_try_compile "$LINENO"; then : 4493 ac_compiler_gnu=yes 4494else 4495 ac_compiler_gnu=no 4496fi 4497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4498ac_cv_c_compiler_gnu=$ac_compiler_gnu 4499 4500fi 4501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4502$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4503if test $ac_compiler_gnu = yes; then 4504 GCC=yes 4505else 4506 GCC= 4507fi 4508ac_test_CFLAGS=${CFLAGS+set} 4509ac_save_CFLAGS=$CFLAGS 4510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4511$as_echo_n "checking whether $CC accepts -g... " >&6; } 4512if test "${ac_cv_prog_cc_g+set}" = set; then : 4513 $as_echo_n "(cached) " >&6 4514else 4515 ac_save_c_werror_flag=$ac_c_werror_flag 4516 ac_c_werror_flag=yes 4517 ac_cv_prog_cc_g=no 4518 CFLAGS="-g" 4519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4520/* end confdefs.h. */ 4521 4522int 4523main () 4524{ 4525 4526 ; 4527 return 0; 4528} 4529_ACEOF 4530if ac_fn_c_try_compile "$LINENO"; then : 4531 ac_cv_prog_cc_g=yes 4532else 4533 CFLAGS="" 4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4535/* end confdefs.h. */ 4536 4537int 4538main () 4539{ 4540 4541 ; 4542 return 0; 4543} 4544_ACEOF 4545if ac_fn_c_try_compile "$LINENO"; then : 4546 4547else 4548 ac_c_werror_flag=$ac_save_c_werror_flag 4549 CFLAGS="-g" 4550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4551/* end confdefs.h. */ 4552 4553int 4554main () 4555{ 4556 4557 ; 4558 return 0; 4559} 4560_ACEOF 4561if ac_fn_c_try_compile "$LINENO"; then : 4562 ac_cv_prog_cc_g=yes 4563fi 4564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4565fi 4566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4567fi 4568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4569 ac_c_werror_flag=$ac_save_c_werror_flag 4570fi 4571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4572$as_echo "$ac_cv_prog_cc_g" >&6; } 4573if test "$ac_test_CFLAGS" = set; then 4574 CFLAGS=$ac_save_CFLAGS 4575elif test $ac_cv_prog_cc_g = yes; then 4576 if test "$GCC" = yes; then 4577 CFLAGS="-g -O2" 4578 else 4579 CFLAGS="-g" 4580 fi 4581else 4582 if test "$GCC" = yes; then 4583 CFLAGS="-O2" 4584 else 4585 CFLAGS= 4586 fi 4587fi 4588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4589$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4590if test "${ac_cv_prog_cc_c89+set}" = set; then : 4591 $as_echo_n "(cached) " >&6 4592else 4593 ac_cv_prog_cc_c89=no 4594ac_save_CC=$CC 4595cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4596/* end confdefs.h. */ 4597#include <stdarg.h> 4598#include <stdio.h> 4599#include <sys/types.h> 4600#include <sys/stat.h> 4601/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4602struct buf { int x; }; 4603FILE * (*rcsopen) (struct buf *, struct stat *, int); 4604static char *e (p, i) 4605 char **p; 4606 int i; 4607{ 4608 return p[i]; 4609} 4610static char *f (char * (*g) (char **, int), char **p, ...) 4611{ 4612 char *s; 4613 va_list v; 4614 va_start (v,p); 4615 s = g (p, va_arg (v,int)); 4616 va_end (v); 4617 return s; 4618} 4619 4620/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4621 function prototypes and stuff, but not '\xHH' hex character constants. 4622 These don't provoke an error unfortunately, instead are silently treated 4623 as 'x'. The following induces an error, until -std is added to get 4624 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4625 array size at least. It's necessary to write '\x00'==0 to get something 4626 that's true only with -std. */ 4627int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4628 4629/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4630 inside strings and character constants. */ 4631#define FOO(x) 'x' 4632int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4633 4634int test (int i, double x); 4635struct s1 {int (*f) (int a);}; 4636struct s2 {int (*f) (double a);}; 4637int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4638int argc; 4639char **argv; 4640int 4641main () 4642{ 4643return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4644 ; 4645 return 0; 4646} 4647_ACEOF 4648for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4649 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4650do 4651 CC="$ac_save_CC $ac_arg" 4652 if ac_fn_c_try_compile "$LINENO"; then : 4653 ac_cv_prog_cc_c89=$ac_arg 4654fi 4655rm -f core conftest.err conftest.$ac_objext 4656 test "x$ac_cv_prog_cc_c89" != "xno" && break 4657done 4658rm -f conftest.$ac_ext 4659CC=$ac_save_CC 4660 4661fi 4662# AC_CACHE_VAL 4663case "x$ac_cv_prog_cc_c89" in 4664 x) 4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4666$as_echo "none needed" >&6; } ;; 4667 xno) 4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4669$as_echo "unsupported" >&6; } ;; 4670 *) 4671 CC="$CC $ac_cv_prog_cc_c89" 4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4673$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4674esac 4675if test "x$ac_cv_prog_cc_c89" != xno; then : 4676 4677fi 4678 4679ac_ext=c 4680ac_cpp='$CPP $CPPFLAGS' 4681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4683ac_compiler_gnu=$ac_cv_c_compiler_gnu 4684 4685depcc="$CC" am_compiler_list= 4686 4687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4688$as_echo_n "checking dependency style of $depcc... " >&6; } 4689if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 4690 $as_echo_n "(cached) " >&6 4691else 4692 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4693 # We make a subdir and do the tests there. Otherwise we can end up 4694 # making bogus files that we don't know about and never remove. For 4695 # instance it was reported that on HP-UX the gcc test will end up 4696 # making a dummy file named `D' -- because `-MD' means `put the output 4697 # in D'. 4698 mkdir conftest.dir 4699 # Copy depcomp to subdir because otherwise we won't find it if we're 4700 # using a relative directory. 4701 cp "$am_depcomp" conftest.dir 4702 cd conftest.dir 4703 # We will build objects and dependencies in a subdirectory because 4704 # it helps to detect inapplicable dependency modes. For instance 4705 # both Tru64's cc and ICC support -MD to output dependencies as a 4706 # side effect of compilation, but ICC will put the dependencies in 4707 # the current directory while Tru64 will put them in the object 4708 # directory. 4709 mkdir sub 4710 4711 am_cv_CC_dependencies_compiler_type=none 4712 if test "$am_compiler_list" = ""; then 4713 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4714 fi 4715 am__universal=false 4716 case " $depcc " in #( 4717 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4718 esac 4719 4720 for depmode in $am_compiler_list; do 4721 # Setup a source with many dependencies, because some compilers 4722 # like to wrap large dependency lists on column 80 (with \), and 4723 # we should not choose a depcomp mode which is confused by this. 4724 # 4725 # We need to recreate these files for each test, as the compiler may 4726 # overwrite some of them when testing with obscure command lines. 4727 # This happens at least with the AIX C compiler. 4728 : > sub/conftest.c 4729 for i in 1 2 3 4 5 6; do 4730 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4731 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4732 # Solaris 8's {/usr,}/bin/sh. 4733 touch sub/conftst$i.h 4734 done 4735 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4736 4737 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4738 # mode. It turns out that the SunPro C++ compiler does not properly 4739 # handle `-M -o', and we need to detect this. Also, some Intel 4740 # versions had trouble with output in subdirs 4741 am__obj=sub/conftest.${OBJEXT-o} 4742 am__minus_obj="-o $am__obj" 4743 case $depmode in 4744 gcc) 4745 # This depmode causes a compiler race in universal mode. 4746 test "$am__universal" = false || continue 4747 ;; 4748 nosideeffect) 4749 # after this tag, mechanisms are not by side-effect, so they'll 4750 # only be used when explicitly requested 4751 if test "x$enable_dependency_tracking" = xyes; then 4752 continue 4753 else 4754 break 4755 fi 4756 ;; 4757 msvisualcpp | msvcmsys) 4758 # This compiler won't grok `-c -o', but also, the minuso test has 4759 # not run yet. These depmodes are late enough in the game, and 4760 # so weak that their functioning should not be impacted. 4761 am__obj=conftest.${OBJEXT-o} 4762 am__minus_obj= 4763 ;; 4764 none) break ;; 4765 esac 4766 if depmode=$depmode \ 4767 source=sub/conftest.c object=$am__obj \ 4768 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4769 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4770 >/dev/null 2>conftest.err && 4771 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4772 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4773 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4774 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4775 # icc doesn't choke on unknown options, it will just issue warnings 4776 # or remarks (even with -Werror). So we grep stderr for any message 4777 # that says an option was ignored or not supported. 4778 # When given -MP, icc 7.0 and 7.1 complain thusly: 4779 # icc: Command line warning: ignoring option '-M'; no argument required 4780 # The diagnosis changed in icc 8.0: 4781 # icc: Command line remark: option '-MP' not supported 4782 if (grep 'ignoring option' conftest.err || 4783 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4784 am_cv_CC_dependencies_compiler_type=$depmode 4785 break 4786 fi 4787 fi 4788 done 4789 4790 cd .. 4791 rm -rf conftest.dir 4792else 4793 am_cv_CC_dependencies_compiler_type=none 4794fi 4795 4796fi 4797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4798$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4799CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4800 4801 if 4802 test "x$enable_dependency_tracking" != xno \ 4803 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4804 am__fastdepCC_TRUE= 4805 am__fastdepCC_FALSE='#' 4806else 4807 am__fastdepCC_TRUE='#' 4808 am__fastdepCC_FALSE= 4809fi 4810 4811 4812 4813ac_ext=c 4814ac_cpp='$CPP $CPPFLAGS' 4815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4817ac_compiler_gnu=$ac_cv_c_compiler_gnu 4818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4819$as_echo_n "checking how to run the C preprocessor... " >&6; } 4820# On Suns, sometimes $CPP names a directory. 4821if test -n "$CPP" && test -d "$CPP"; then 4822 CPP= 4823fi 4824if test -z "$CPP"; then 4825 if test "${ac_cv_prog_CPP+set}" = set; then : 4826 $as_echo_n "(cached) " >&6 4827else 4828 # Double quotes because CPP needs to be expanded 4829 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4830 do 4831 ac_preproc_ok=false 4832for ac_c_preproc_warn_flag in '' yes 4833do 4834 # Use a header file that comes with gcc, so configuring glibc 4835 # with a fresh cross-compiler works. 4836 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4837 # <limits.h> exists even on freestanding compilers. 4838 # On the NeXT, cc -E runs the code through the compiler's parser, 4839 # not just through cpp. "Syntax error" is here to catch this case. 4840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4841/* end confdefs.h. */ 4842#ifdef __STDC__ 4843# include <limits.h> 4844#else 4845# include <assert.h> 4846#endif 4847 Syntax error 4848_ACEOF 4849if ac_fn_c_try_cpp "$LINENO"; then : 4850 4851else 4852 # Broken: fails on valid input. 4853continue 4854fi 4855rm -f conftest.err conftest.i conftest.$ac_ext 4856 4857 # OK, works on sane cases. Now check whether nonexistent headers 4858 # can be detected and how. 4859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4860/* end confdefs.h. */ 4861#include <ac_nonexistent.h> 4862_ACEOF 4863if ac_fn_c_try_cpp "$LINENO"; then : 4864 # Broken: success on invalid input. 4865continue 4866else 4867 # Passes both tests. 4868ac_preproc_ok=: 4869break 4870fi 4871rm -f conftest.err conftest.i conftest.$ac_ext 4872 4873done 4874# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4875rm -f conftest.i conftest.err conftest.$ac_ext 4876if $ac_preproc_ok; then : 4877 break 4878fi 4879 4880 done 4881 ac_cv_prog_CPP=$CPP 4882 4883fi 4884 CPP=$ac_cv_prog_CPP 4885else 4886 ac_cv_prog_CPP=$CPP 4887fi 4888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4889$as_echo "$CPP" >&6; } 4890ac_preproc_ok=false 4891for ac_c_preproc_warn_flag in '' yes 4892do 4893 # Use a header file that comes with gcc, so configuring glibc 4894 # with a fresh cross-compiler works. 4895 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4896 # <limits.h> exists even on freestanding compilers. 4897 # On the NeXT, cc -E runs the code through the compiler's parser, 4898 # not just through cpp. "Syntax error" is here to catch this case. 4899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4900/* end confdefs.h. */ 4901#ifdef __STDC__ 4902# include <limits.h> 4903#else 4904# include <assert.h> 4905#endif 4906 Syntax error 4907_ACEOF 4908if ac_fn_c_try_cpp "$LINENO"; then : 4909 4910else 4911 # Broken: fails on valid input. 4912continue 4913fi 4914rm -f conftest.err conftest.i conftest.$ac_ext 4915 4916 # OK, works on sane cases. Now check whether nonexistent headers 4917 # can be detected and how. 4918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4919/* end confdefs.h. */ 4920#include <ac_nonexistent.h> 4921_ACEOF 4922if ac_fn_c_try_cpp "$LINENO"; then : 4923 # Broken: success on invalid input. 4924continue 4925else 4926 # Passes both tests. 4927ac_preproc_ok=: 4928break 4929fi 4930rm -f conftest.err conftest.i conftest.$ac_ext 4931 4932done 4933# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4934rm -f conftest.i conftest.err conftest.$ac_ext 4935if $ac_preproc_ok; then : 4936 4937else 4938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4939$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4940as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4941See \`config.log' for more details" "$LINENO" 5 ; } 4942fi 4943 4944ac_ext=c 4945ac_cpp='$CPP $CPPFLAGS' 4946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4948ac_compiler_gnu=$ac_cv_c_compiler_gnu 4949 4950 4951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4952$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4953if test "${ac_cv_path_GREP+set}" = set; then : 4954 $as_echo_n "(cached) " >&6 4955else 4956 if test -z "$GREP"; then 4957 ac_path_GREP_found=false 4958 # Loop through the user's path and test for each of PROGNAME-LIST 4959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4960for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4961do 4962 IFS=$as_save_IFS 4963 test -z "$as_dir" && as_dir=. 4964 for ac_prog in grep ggrep; do 4965 for ac_exec_ext in '' $ac_executable_extensions; do 4966 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4967 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4968# Check for GNU ac_path_GREP and select it if it is found. 4969 # Check for GNU $ac_path_GREP 4970case `"$ac_path_GREP" --version 2>&1` in 4971*GNU*) 4972 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4973*) 4974 ac_count=0 4975 $as_echo_n 0123456789 >"conftest.in" 4976 while : 4977 do 4978 cat "conftest.in" "conftest.in" >"conftest.tmp" 4979 mv "conftest.tmp" "conftest.in" 4980 cp "conftest.in" "conftest.nl" 4981 $as_echo 'GREP' >> "conftest.nl" 4982 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4983 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4984 as_fn_arith $ac_count + 1 && ac_count=$as_val 4985 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4986 # Best one so far, save it but keep looking for a better one 4987 ac_cv_path_GREP="$ac_path_GREP" 4988 ac_path_GREP_max=$ac_count 4989 fi 4990 # 10*(2^10) chars as input seems more than enough 4991 test $ac_count -gt 10 && break 4992 done 4993 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4994esac 4995 4996 $ac_path_GREP_found && break 3 4997 done 4998 done 4999 done 5000IFS=$as_save_IFS 5001 if test -z "$ac_cv_path_GREP"; then 5002 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5003 fi 5004else 5005 ac_cv_path_GREP=$GREP 5006fi 5007 5008fi 5009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5010$as_echo "$ac_cv_path_GREP" >&6; } 5011 GREP="$ac_cv_path_GREP" 5012 5013 5014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5015$as_echo_n "checking for egrep... " >&6; } 5016if test "${ac_cv_path_EGREP+set}" = set; then : 5017 $as_echo_n "(cached) " >&6 5018else 5019 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5020 then ac_cv_path_EGREP="$GREP -E" 5021 else 5022 if test -z "$EGREP"; then 5023 ac_path_EGREP_found=false 5024 # Loop through the user's path and test for each of PROGNAME-LIST 5025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5026for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5027do 5028 IFS=$as_save_IFS 5029 test -z "$as_dir" && as_dir=. 5030 for ac_prog in egrep; do 5031 for ac_exec_ext in '' $ac_executable_extensions; do 5032 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5033 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 5034# Check for GNU ac_path_EGREP and select it if it is found. 5035 # Check for GNU $ac_path_EGREP 5036case `"$ac_path_EGREP" --version 2>&1` in 5037*GNU*) 5038 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5039*) 5040 ac_count=0 5041 $as_echo_n 0123456789 >"conftest.in" 5042 while : 5043 do 5044 cat "conftest.in" "conftest.in" >"conftest.tmp" 5045 mv "conftest.tmp" "conftest.in" 5046 cp "conftest.in" "conftest.nl" 5047 $as_echo 'EGREP' >> "conftest.nl" 5048 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5049 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5050 as_fn_arith $ac_count + 1 && ac_count=$as_val 5051 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5052 # Best one so far, save it but keep looking for a better one 5053 ac_cv_path_EGREP="$ac_path_EGREP" 5054 ac_path_EGREP_max=$ac_count 5055 fi 5056 # 10*(2^10) chars as input seems more than enough 5057 test $ac_count -gt 10 && break 5058 done 5059 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5060esac 5061 5062 $ac_path_EGREP_found && break 3 5063 done 5064 done 5065 done 5066IFS=$as_save_IFS 5067 if test -z "$ac_cv_path_EGREP"; then 5068 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5069 fi 5070else 5071 ac_cv_path_EGREP=$EGREP 5072fi 5073 5074 fi 5075fi 5076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5077$as_echo "$ac_cv_path_EGREP" >&6; } 5078 EGREP="$ac_cv_path_EGREP" 5079 5080 5081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5082$as_echo_n "checking for ANSI C header files... " >&6; } 5083if test "${ac_cv_header_stdc+set}" = set; then : 5084 $as_echo_n "(cached) " >&6 5085else 5086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5087/* end confdefs.h. */ 5088#include <stdlib.h> 5089#include <stdarg.h> 5090#include <string.h> 5091#include <float.h> 5092 5093int 5094main () 5095{ 5096 5097 ; 5098 return 0; 5099} 5100_ACEOF 5101if ac_fn_c_try_compile "$LINENO"; then : 5102 ac_cv_header_stdc=yes 5103else 5104 ac_cv_header_stdc=no 5105fi 5106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5107 5108if test $ac_cv_header_stdc = yes; then 5109 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5111/* end confdefs.h. */ 5112#include <string.h> 5113 5114_ACEOF 5115if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5116 $EGREP "memchr" >/dev/null 2>&1; then : 5117 5118else 5119 ac_cv_header_stdc=no 5120fi 5121rm -f conftest* 5122 5123fi 5124 5125if test $ac_cv_header_stdc = yes; then 5126 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5128/* end confdefs.h. */ 5129#include <stdlib.h> 5130 5131_ACEOF 5132if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5133 $EGREP "free" >/dev/null 2>&1; then : 5134 5135else 5136 ac_cv_header_stdc=no 5137fi 5138rm -f conftest* 5139 5140fi 5141 5142if test $ac_cv_header_stdc = yes; then 5143 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5144 if test "$cross_compiling" = yes; then : 5145 : 5146else 5147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5148/* end confdefs.h. */ 5149#include <ctype.h> 5150#include <stdlib.h> 5151#if ((' ' & 0x0FF) == 0x020) 5152# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5153# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5154#else 5155# define ISLOWER(c) \ 5156 (('a' <= (c) && (c) <= 'i') \ 5157 || ('j' <= (c) && (c) <= 'r') \ 5158 || ('s' <= (c) && (c) <= 'z')) 5159# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5160#endif 5161 5162#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5163int 5164main () 5165{ 5166 int i; 5167 for (i = 0; i < 256; i++) 5168 if (XOR (islower (i), ISLOWER (i)) 5169 || toupper (i) != TOUPPER (i)) 5170 return 2; 5171 return 0; 5172} 5173_ACEOF 5174if ac_fn_c_try_run "$LINENO"; then : 5175 5176else 5177 ac_cv_header_stdc=no 5178fi 5179rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5180 conftest.$ac_objext conftest.beam conftest.$ac_ext 5181fi 5182 5183fi 5184fi 5185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5186$as_echo "$ac_cv_header_stdc" >&6; } 5187if test $ac_cv_header_stdc = yes; then 5188 5189$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5190 5191fi 5192 5193# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5194for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5195 inttypes.h stdint.h unistd.h 5196do : 5197 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5198ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5199" 5200if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5201 cat >>confdefs.h <<_ACEOF 5202#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5203_ACEOF 5204 5205fi 5206 5207done 5208 5209 5210 5211 5212 5213 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5214if test "x$ac_cv_header_minix_config_h" = x""yes; then : 5215 MINIX=yes 5216else 5217 MINIX= 5218fi 5219 5220 5221 if test "$MINIX" = yes; then 5222 5223$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5224 5225 5226$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5227 5228 5229$as_echo "#define _MINIX 1" >>confdefs.h 5230 5231 fi 5232 5233 case "$host_os" in 5234 hpux*) 5235 5236$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h 5237 5238 ;; 5239 esac 5240 5241 5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5243$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5244if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : 5245 $as_echo_n "(cached) " >&6 5246else 5247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5248/* end confdefs.h. */ 5249 5250# define __EXTENSIONS__ 1 5251 $ac_includes_default 5252int 5253main () 5254{ 5255 5256 ; 5257 return 0; 5258} 5259_ACEOF 5260if ac_fn_c_try_compile "$LINENO"; then : 5261 ac_cv_safe_to_define___extensions__=yes 5262else 5263 ac_cv_safe_to_define___extensions__=no 5264fi 5265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5266fi 5267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5268$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5269 test $ac_cv_safe_to_define___extensions__ = yes && 5270 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5271 5272 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5273 5274 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h 5275 5276 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5277 5278 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5279 5280 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5281 5282 5283 5284 5285# Checks for programs, initialize Gnulib 5286ac_ext=c 5287ac_cpp='$CPP $CPPFLAGS' 5288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5290ac_compiler_gnu=$ac_cv_c_compiler_gnu 5291if test -n "$ac_tool_prefix"; then 5292 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 5293set dummy ${ac_tool_prefix}gcc; ac_word=$2 5294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5295$as_echo_n "checking for $ac_word... " >&6; } 5296if test "${ac_cv_prog_CC+set}" = set; then : 5297 $as_echo_n "(cached) " >&6 5298else 5299 if test -n "$CC"; then 5300 ac_cv_prog_CC="$CC" # Let the user override the test. 5301else 5302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5303for as_dir in $PATH 5304do 5305 IFS=$as_save_IFS 5306 test -z "$as_dir" && as_dir=. 5307 for ac_exec_ext in '' $ac_executable_extensions; do 5308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5309 ac_cv_prog_CC="${ac_tool_prefix}gcc" 5310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5311 break 2 5312 fi 5313done 5314 done 5315IFS=$as_save_IFS 5316 5317fi 5318fi 5319CC=$ac_cv_prog_CC 5320if test -n "$CC"; then 5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5322$as_echo "$CC" >&6; } 5323else 5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5325$as_echo "no" >&6; } 5326fi 5327 5328 5329fi 5330if test -z "$ac_cv_prog_CC"; then 5331 ac_ct_CC=$CC 5332 # Extract the first word of "gcc", so it can be a program name with args. 5333set dummy gcc; ac_word=$2 5334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5335$as_echo_n "checking for $ac_word... " >&6; } 5336if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 5337 $as_echo_n "(cached) " >&6 5338else 5339 if test -n "$ac_ct_CC"; then 5340 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5341else 5342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5343for as_dir in $PATH 5344do 5345 IFS=$as_save_IFS 5346 test -z "$as_dir" && as_dir=. 5347 for ac_exec_ext in '' $ac_executable_extensions; do 5348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5349 ac_cv_prog_ac_ct_CC="gcc" 5350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5351 break 2 5352 fi 5353done 5354 done 5355IFS=$as_save_IFS 5356 5357fi 5358fi 5359ac_ct_CC=$ac_cv_prog_ac_ct_CC 5360if test -n "$ac_ct_CC"; then 5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5362$as_echo "$ac_ct_CC" >&6; } 5363else 5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5365$as_echo "no" >&6; } 5366fi 5367 5368 if test "x$ac_ct_CC" = x; then 5369 CC="" 5370 else 5371 case $cross_compiling:$ac_tool_warned in 5372yes:) 5373{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5374$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5375ac_tool_warned=yes ;; 5376esac 5377 CC=$ac_ct_CC 5378 fi 5379else 5380 CC="$ac_cv_prog_CC" 5381fi 5382 5383if test -z "$CC"; then 5384 if test -n "$ac_tool_prefix"; then 5385 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5386set dummy ${ac_tool_prefix}cc; ac_word=$2 5387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5388$as_echo_n "checking for $ac_word... " >&6; } 5389if test "${ac_cv_prog_CC+set}" = set; then : 5390 $as_echo_n "(cached) " >&6 5391else 5392 if test -n "$CC"; then 5393 ac_cv_prog_CC="$CC" # Let the user override the test. 5394else 5395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5396for as_dir in $PATH 5397do 5398 IFS=$as_save_IFS 5399 test -z "$as_dir" && as_dir=. 5400 for ac_exec_ext in '' $ac_executable_extensions; do 5401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5402 ac_cv_prog_CC="${ac_tool_prefix}cc" 5403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5404 break 2 5405 fi 5406done 5407 done 5408IFS=$as_save_IFS 5409 5410fi 5411fi 5412CC=$ac_cv_prog_CC 5413if test -n "$CC"; then 5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5415$as_echo "$CC" >&6; } 5416else 5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5418$as_echo "no" >&6; } 5419fi 5420 5421 5422 fi 5423fi 5424if test -z "$CC"; then 5425 # Extract the first word of "cc", so it can be a program name with args. 5426set dummy cc; ac_word=$2 5427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5428$as_echo_n "checking for $ac_word... " >&6; } 5429if test "${ac_cv_prog_CC+set}" = set; then : 5430 $as_echo_n "(cached) " >&6 5431else 5432 if test -n "$CC"; then 5433 ac_cv_prog_CC="$CC" # Let the user override the test. 5434else 5435 ac_prog_rejected=no 5436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5437for as_dir in $PATH 5438do 5439 IFS=$as_save_IFS 5440 test -z "$as_dir" && as_dir=. 5441 for ac_exec_ext in '' $ac_executable_extensions; do 5442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5443 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5444 ac_prog_rejected=yes 5445 continue 5446 fi 5447 ac_cv_prog_CC="cc" 5448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5449 break 2 5450 fi 5451done 5452 done 5453IFS=$as_save_IFS 5454 5455if test $ac_prog_rejected = yes; then 5456 # We found a bogon in the path, so make sure we never use it. 5457 set dummy $ac_cv_prog_CC 5458 shift 5459 if test $# != 0; then 5460 # We chose a different compiler from the bogus one. 5461 # However, it has the same basename, so the bogon will be chosen 5462 # first if we set CC to just the basename; use the full file name. 5463 shift 5464 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 5465 fi 5466fi 5467fi 5468fi 5469CC=$ac_cv_prog_CC 5470if test -n "$CC"; then 5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5472$as_echo "$CC" >&6; } 5473else 5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5475$as_echo "no" >&6; } 5476fi 5477 5478 5479fi 5480if test -z "$CC"; then 5481 if test -n "$ac_tool_prefix"; then 5482 for ac_prog in cl.exe 5483 do 5484 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5485set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5487$as_echo_n "checking for $ac_word... " >&6; } 5488if test "${ac_cv_prog_CC+set}" = set; then : 5489 $as_echo_n "(cached) " >&6 5490else 5491 if test -n "$CC"; then 5492 ac_cv_prog_CC="$CC" # Let the user override the test. 5493else 5494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5495for as_dir in $PATH 5496do 5497 IFS=$as_save_IFS 5498 test -z "$as_dir" && as_dir=. 5499 for ac_exec_ext in '' $ac_executable_extensions; do 5500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5501 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5503 break 2 5504 fi 5505done 5506 done 5507IFS=$as_save_IFS 5508 5509fi 5510fi 5511CC=$ac_cv_prog_CC 5512if test -n "$CC"; then 5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5514$as_echo "$CC" >&6; } 5515else 5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5517$as_echo "no" >&6; } 5518fi 5519 5520 5521 test -n "$CC" && break 5522 done 5523fi 5524if test -z "$CC"; then 5525 ac_ct_CC=$CC 5526 for ac_prog in cl.exe 5527do 5528 # Extract the first word of "$ac_prog", so it can be a program name with args. 5529set dummy $ac_prog; ac_word=$2 5530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5531$as_echo_n "checking for $ac_word... " >&6; } 5532if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 5533 $as_echo_n "(cached) " >&6 5534else 5535 if test -n "$ac_ct_CC"; then 5536 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5537else 5538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5539for as_dir in $PATH 5540do 5541 IFS=$as_save_IFS 5542 test -z "$as_dir" && as_dir=. 5543 for ac_exec_ext in '' $ac_executable_extensions; do 5544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5545 ac_cv_prog_ac_ct_CC="$ac_prog" 5546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5547 break 2 5548 fi 5549done 5550 done 5551IFS=$as_save_IFS 5552 5553fi 5554fi 5555ac_ct_CC=$ac_cv_prog_ac_ct_CC 5556if test -n "$ac_ct_CC"; then 5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5558$as_echo "$ac_ct_CC" >&6; } 5559else 5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5561$as_echo "no" >&6; } 5562fi 5563 5564 5565 test -n "$ac_ct_CC" && break 5566done 5567 5568 if test "x$ac_ct_CC" = x; then 5569 CC="" 5570 else 5571 case $cross_compiling:$ac_tool_warned in 5572yes:) 5573{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5574$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5575ac_tool_warned=yes ;; 5576esac 5577 CC=$ac_ct_CC 5578 fi 5579fi 5580 5581fi 5582 5583 5584test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5585$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5586as_fn_error $? "no acceptable C compiler found in \$PATH 5587See \`config.log' for more details" "$LINENO" 5 ; } 5588 5589# Provide some information about the compiler. 5590$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5591set X $ac_compile 5592ac_compiler=$2 5593for ac_option in --version -v -V -qversion; do 5594 { { ac_try="$ac_compiler $ac_option >&5" 5595case "(($ac_try" in 5596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5597 *) ac_try_echo=$ac_try;; 5598esac 5599eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5600$as_echo "$ac_try_echo"; } >&5 5601 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5602 ac_status=$? 5603 if test -s conftest.err; then 5604 sed '10a\ 5605... rest of stderr output deleted ... 5606 10q' conftest.err >conftest.er1 5607 cat conftest.er1 >&5 5608 fi 5609 rm -f conftest.er1 conftest.err 5610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5611 test $ac_status = 0; } 5612done 5613 5614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5615$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5616if test "${ac_cv_c_compiler_gnu+set}" = set; then : 5617 $as_echo_n "(cached) " >&6 5618else 5619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5620/* end confdefs.h. */ 5621 5622int 5623main () 5624{ 5625#ifndef __GNUC__ 5626 choke me 5627#endif 5628 5629 ; 5630 return 0; 5631} 5632_ACEOF 5633if ac_fn_c_try_compile "$LINENO"; then : 5634 ac_compiler_gnu=yes 5635else 5636 ac_compiler_gnu=no 5637fi 5638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5639ac_cv_c_compiler_gnu=$ac_compiler_gnu 5640 5641fi 5642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5643$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5644if test $ac_compiler_gnu = yes; then 5645 GCC=yes 5646else 5647 GCC= 5648fi 5649ac_test_CFLAGS=${CFLAGS+set} 5650ac_save_CFLAGS=$CFLAGS 5651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5652$as_echo_n "checking whether $CC accepts -g... " >&6; } 5653if test "${ac_cv_prog_cc_g+set}" = set; then : 5654 $as_echo_n "(cached) " >&6 5655else 5656 ac_save_c_werror_flag=$ac_c_werror_flag 5657 ac_c_werror_flag=yes 5658 ac_cv_prog_cc_g=no 5659 CFLAGS="-g" 5660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5661/* end confdefs.h. */ 5662 5663int 5664main () 5665{ 5666 5667 ; 5668 return 0; 5669} 5670_ACEOF 5671if ac_fn_c_try_compile "$LINENO"; then : 5672 ac_cv_prog_cc_g=yes 5673else 5674 CFLAGS="" 5675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5676/* end confdefs.h. */ 5677 5678int 5679main () 5680{ 5681 5682 ; 5683 return 0; 5684} 5685_ACEOF 5686if ac_fn_c_try_compile "$LINENO"; then : 5687 5688else 5689 ac_c_werror_flag=$ac_save_c_werror_flag 5690 CFLAGS="-g" 5691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5692/* end confdefs.h. */ 5693 5694int 5695main () 5696{ 5697 5698 ; 5699 return 0; 5700} 5701_ACEOF 5702if ac_fn_c_try_compile "$LINENO"; then : 5703 ac_cv_prog_cc_g=yes 5704fi 5705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5706fi 5707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5708fi 5709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5710 ac_c_werror_flag=$ac_save_c_werror_flag 5711fi 5712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5713$as_echo "$ac_cv_prog_cc_g" >&6; } 5714if test "$ac_test_CFLAGS" = set; then 5715 CFLAGS=$ac_save_CFLAGS 5716elif test $ac_cv_prog_cc_g = yes; then 5717 if test "$GCC" = yes; then 5718 CFLAGS="-g -O2" 5719 else 5720 CFLAGS="-g" 5721 fi 5722else 5723 if test "$GCC" = yes; then 5724 CFLAGS="-O2" 5725 else 5726 CFLAGS= 5727 fi 5728fi 5729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5730$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5731if test "${ac_cv_prog_cc_c89+set}" = set; then : 5732 $as_echo_n "(cached) " >&6 5733else 5734 ac_cv_prog_cc_c89=no 5735ac_save_CC=$CC 5736cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5737/* end confdefs.h. */ 5738#include <stdarg.h> 5739#include <stdio.h> 5740#include <sys/types.h> 5741#include <sys/stat.h> 5742/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5743struct buf { int x; }; 5744FILE * (*rcsopen) (struct buf *, struct stat *, int); 5745static char *e (p, i) 5746 char **p; 5747 int i; 5748{ 5749 return p[i]; 5750} 5751static char *f (char * (*g) (char **, int), char **p, ...) 5752{ 5753 char *s; 5754 va_list v; 5755 va_start (v,p); 5756 s = g (p, va_arg (v,int)); 5757 va_end (v); 5758 return s; 5759} 5760 5761/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5762 function prototypes and stuff, but not '\xHH' hex character constants. 5763 These don't provoke an error unfortunately, instead are silently treated 5764 as 'x'. The following induces an error, until -std is added to get 5765 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5766 array size at least. It's necessary to write '\x00'==0 to get something 5767 that's true only with -std. */ 5768int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5769 5770/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5771 inside strings and character constants. */ 5772#define FOO(x) 'x' 5773int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5774 5775int test (int i, double x); 5776struct s1 {int (*f) (int a);}; 5777struct s2 {int (*f) (double a);}; 5778int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5779int argc; 5780char **argv; 5781int 5782main () 5783{ 5784return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5785 ; 5786 return 0; 5787} 5788_ACEOF 5789for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5790 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5791do 5792 CC="$ac_save_CC $ac_arg" 5793 if ac_fn_c_try_compile "$LINENO"; then : 5794 ac_cv_prog_cc_c89=$ac_arg 5795fi 5796rm -f core conftest.err conftest.$ac_objext 5797 test "x$ac_cv_prog_cc_c89" != "xno" && break 5798done 5799rm -f conftest.$ac_ext 5800CC=$ac_save_CC 5801 5802fi 5803# AC_CACHE_VAL 5804case "x$ac_cv_prog_cc_c89" in 5805 x) 5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5807$as_echo "none needed" >&6; } ;; 5808 xno) 5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5810$as_echo "unsupported" >&6; } ;; 5811 *) 5812 CC="$CC $ac_cv_prog_cc_c89" 5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5814$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5815esac 5816if test "x$ac_cv_prog_cc_c89" != xno; then : 5817 5818fi 5819 5820ac_ext=c 5821ac_cpp='$CPP $CPPFLAGS' 5822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5824ac_compiler_gnu=$ac_cv_c_compiler_gnu 5825 5826depcc="$CC" am_compiler_list= 5827 5828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5829$as_echo_n "checking dependency style of $depcc... " >&6; } 5830if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 5831 $as_echo_n "(cached) " >&6 5832else 5833 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5834 # We make a subdir and do the tests there. Otherwise we can end up 5835 # making bogus files that we don't know about and never remove. For 5836 # instance it was reported that on HP-UX the gcc test will end up 5837 # making a dummy file named `D' -- because `-MD' means `put the output 5838 # in D'. 5839 mkdir conftest.dir 5840 # Copy depcomp to subdir because otherwise we won't find it if we're 5841 # using a relative directory. 5842 cp "$am_depcomp" conftest.dir 5843 cd conftest.dir 5844 # We will build objects and dependencies in a subdirectory because 5845 # it helps to detect inapplicable dependency modes. For instance 5846 # both Tru64's cc and ICC support -MD to output dependencies as a 5847 # side effect of compilation, but ICC will put the dependencies in 5848 # the current directory while Tru64 will put them in the object 5849 # directory. 5850 mkdir sub 5851 5852 am_cv_CC_dependencies_compiler_type=none 5853 if test "$am_compiler_list" = ""; then 5854 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5855 fi 5856 am__universal=false 5857 case " $depcc " in #( 5858 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5859 esac 5860 5861 for depmode in $am_compiler_list; do 5862 # Setup a source with many dependencies, because some compilers 5863 # like to wrap large dependency lists on column 80 (with \), and 5864 # we should not choose a depcomp mode which is confused by this. 5865 # 5866 # We need to recreate these files for each test, as the compiler may 5867 # overwrite some of them when testing with obscure command lines. 5868 # This happens at least with the AIX C compiler. 5869 : > sub/conftest.c 5870 for i in 1 2 3 4 5 6; do 5871 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5872 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5873 # Solaris 8's {/usr,}/bin/sh. 5874 touch sub/conftst$i.h 5875 done 5876 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5877 5878 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5879 # mode. It turns out that the SunPro C++ compiler does not properly 5880 # handle `-M -o', and we need to detect this. Also, some Intel 5881 # versions had trouble with output in subdirs 5882 am__obj=sub/conftest.${OBJEXT-o} 5883 am__minus_obj="-o $am__obj" 5884 case $depmode in 5885 gcc) 5886 # This depmode causes a compiler race in universal mode. 5887 test "$am__universal" = false || continue 5888 ;; 5889 nosideeffect) 5890 # after this tag, mechanisms are not by side-effect, so they'll 5891 # only be used when explicitly requested 5892 if test "x$enable_dependency_tracking" = xyes; then 5893 continue 5894 else 5895 break 5896 fi 5897 ;; 5898 msvisualcpp | msvcmsys) 5899 # This compiler won't grok `-c -o', but also, the minuso test has 5900 # not run yet. These depmodes are late enough in the game, and 5901 # so weak that their functioning should not be impacted. 5902 am__obj=conftest.${OBJEXT-o} 5903 am__minus_obj= 5904 ;; 5905 none) break ;; 5906 esac 5907 if depmode=$depmode \ 5908 source=sub/conftest.c object=$am__obj \ 5909 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5910 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5911 >/dev/null 2>conftest.err && 5912 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5913 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5914 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5915 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5916 # icc doesn't choke on unknown options, it will just issue warnings 5917 # or remarks (even with -Werror). So we grep stderr for any message 5918 # that says an option was ignored or not supported. 5919 # When given -MP, icc 7.0 and 7.1 complain thusly: 5920 # icc: Command line warning: ignoring option '-M'; no argument required 5921 # The diagnosis changed in icc 8.0: 5922 # icc: Command line remark: option '-MP' not supported 5923 if (grep 'ignoring option' conftest.err || 5924 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5925 am_cv_CC_dependencies_compiler_type=$depmode 5926 break 5927 fi 5928 fi 5929 done 5930 5931 cd .. 5932 rm -rf conftest.dir 5933else 5934 am_cv_CC_dependencies_compiler_type=none 5935fi 5936 5937fi 5938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5939$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5940CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5941 5942 if 5943 test "x$enable_dependency_tracking" != xno \ 5944 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5945 am__fastdepCC_TRUE= 5946 am__fastdepCC_FALSE='#' 5947else 5948 am__fastdepCC_TRUE='#' 5949 am__fastdepCC_FALSE= 5950fi 5951 5952 5953 5954 5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5 5956$as_echo_n "checking for Minix Amsterdam compiler... " >&6; } 5957if test "${gl_cv_c_amsterdam_compiler+set}" = set; then : 5958 $as_echo_n "(cached) " >&6 5959else 5960 5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5962/* end confdefs.h. */ 5963 5964#ifdef __ACK__ 5965Amsterdam 5966#endif 5967 5968_ACEOF 5969if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5970 $EGREP "Amsterdam" >/dev/null 2>&1; then : 5971 gl_cv_c_amsterdam_compiler=yes 5972else 5973 gl_cv_c_amsterdam_compiler=no 5974fi 5975rm -f conftest* 5976 5977 5978fi 5979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5 5980$as_echo "$gl_cv_c_amsterdam_compiler" >&6; } 5981 if test -z "$AR"; then 5982 if test $gl_cv_c_amsterdam_compiler = yes; then 5983 AR='cc -c.a' 5984 if test -z "$ARFLAGS"; then 5985 ARFLAGS='-o' 5986 fi 5987 else 5988 if test -n "$ac_tool_prefix"; then 5989 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5990set dummy ${ac_tool_prefix}ar; ac_word=$2 5991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5992$as_echo_n "checking for $ac_word... " >&6; } 5993if test "${ac_cv_prog_AR+set}" = set; then : 5994 $as_echo_n "(cached) " >&6 5995else 5996 if test -n "$AR"; then 5997 ac_cv_prog_AR="$AR" # Let the user override the test. 5998else 5999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6000for as_dir in $PATH 6001do 6002 IFS=$as_save_IFS 6003 test -z "$as_dir" && as_dir=. 6004 for ac_exec_ext in '' $ac_executable_extensions; do 6005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6006 ac_cv_prog_AR="${ac_tool_prefix}ar" 6007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6008 break 2 6009 fi 6010done 6011 done 6012IFS=$as_save_IFS 6013 6014fi 6015fi 6016AR=$ac_cv_prog_AR 6017if test -n "$AR"; then 6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6019$as_echo "$AR" >&6; } 6020else 6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6022$as_echo "no" >&6; } 6023fi 6024 6025 6026fi 6027if test -z "$ac_cv_prog_AR"; then 6028 ac_ct_AR=$AR 6029 # Extract the first word of "ar", so it can be a program name with args. 6030set dummy ar; ac_word=$2 6031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6032$as_echo_n "checking for $ac_word... " >&6; } 6033if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 6034 $as_echo_n "(cached) " >&6 6035else 6036 if test -n "$ac_ct_AR"; then 6037 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6038else 6039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6040for as_dir in $PATH 6041do 6042 IFS=$as_save_IFS 6043 test -z "$as_dir" && as_dir=. 6044 for ac_exec_ext in '' $ac_executable_extensions; do 6045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6046 ac_cv_prog_ac_ct_AR="ar" 6047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6048 break 2 6049 fi 6050done 6051 done 6052IFS=$as_save_IFS 6053 6054fi 6055fi 6056ac_ct_AR=$ac_cv_prog_ac_ct_AR 6057if test -n "$ac_ct_AR"; then 6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6059$as_echo "$ac_ct_AR" >&6; } 6060else 6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6062$as_echo "no" >&6; } 6063fi 6064 6065 if test "x$ac_ct_AR" = x; then 6066 AR="ar" 6067 else 6068 case $cross_compiling:$ac_tool_warned in 6069yes:) 6070{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6071$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6072ac_tool_warned=yes ;; 6073esac 6074 AR=$ac_ct_AR 6075 fi 6076else 6077 AR="$ac_cv_prog_AR" 6078fi 6079 6080 if test -z "$ARFLAGS"; then 6081 ARFLAGS='cru' 6082 fi 6083 fi 6084 else 6085 if test -z "$ARFLAGS"; then 6086 ARFLAGS='cru' 6087 fi 6088 fi 6089 6090 6091 if test -z "$RANLIB"; then 6092 if test $gl_cv_c_amsterdam_compiler = yes; then 6093 RANLIB=':' 6094 else 6095 if test -n "$ac_tool_prefix"; then 6096 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6097set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6099$as_echo_n "checking for $ac_word... " >&6; } 6100if test "${ac_cv_prog_RANLIB+set}" = set; then : 6101 $as_echo_n "(cached) " >&6 6102else 6103 if test -n "$RANLIB"; then 6104 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6105else 6106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6107for as_dir in $PATH 6108do 6109 IFS=$as_save_IFS 6110 test -z "$as_dir" && as_dir=. 6111 for ac_exec_ext in '' $ac_executable_extensions; do 6112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6113 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6115 break 2 6116 fi 6117done 6118 done 6119IFS=$as_save_IFS 6120 6121fi 6122fi 6123RANLIB=$ac_cv_prog_RANLIB 6124if test -n "$RANLIB"; then 6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6126$as_echo "$RANLIB" >&6; } 6127else 6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6129$as_echo "no" >&6; } 6130fi 6131 6132 6133fi 6134if test -z "$ac_cv_prog_RANLIB"; then 6135 ac_ct_RANLIB=$RANLIB 6136 # Extract the first word of "ranlib", so it can be a program name with args. 6137set dummy ranlib; ac_word=$2 6138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6139$as_echo_n "checking for $ac_word... " >&6; } 6140if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 6141 $as_echo_n "(cached) " >&6 6142else 6143 if test -n "$ac_ct_RANLIB"; then 6144 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6145else 6146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6147for as_dir in $PATH 6148do 6149 IFS=$as_save_IFS 6150 test -z "$as_dir" && as_dir=. 6151 for ac_exec_ext in '' $ac_executable_extensions; do 6152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6153 ac_cv_prog_ac_ct_RANLIB="ranlib" 6154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6155 break 2 6156 fi 6157done 6158 done 6159IFS=$as_save_IFS 6160 6161fi 6162fi 6163ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6164if test -n "$ac_ct_RANLIB"; then 6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6166$as_echo "$ac_ct_RANLIB" >&6; } 6167else 6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6169$as_echo "no" >&6; } 6170fi 6171 6172 if test "x$ac_ct_RANLIB" = x; then 6173 RANLIB=":" 6174 else 6175 case $cross_compiling:$ac_tool_warned in 6176yes:) 6177{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6178$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6179ac_tool_warned=yes ;; 6180esac 6181 RANLIB=$ac_ct_RANLIB 6182 fi 6183else 6184 RANLIB="$ac_cv_prog_RANLIB" 6185fi 6186 6187 fi 6188 fi 6189 6190 6191 6192 6193 6194 6195 6196# Check whether --enable-largefile was given. 6197if test "${enable_largefile+set}" = set; then : 6198 enableval=$enable_largefile; 6199fi 6200 6201if test "$enable_largefile" != no; then 6202 6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 6204$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 6205if test "${ac_cv_sys_largefile_CC+set}" = set; then : 6206 $as_echo_n "(cached) " >&6 6207else 6208 ac_cv_sys_largefile_CC=no 6209 if test "$GCC" != yes; then 6210 ac_save_CC=$CC 6211 while :; do 6212 # IRIX 6.2 and later do not support large files by default, 6213 # so use the C compiler's -n32 option if that helps. 6214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6215/* end confdefs.h. */ 6216#include <sys/types.h> 6217 /* Check that off_t can represent 2**63 - 1 correctly. 6218 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6219 since some C++ compilers masquerading as C compilers 6220 incorrectly reject 9223372036854775807. */ 6221#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6222 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6223 && LARGE_OFF_T % 2147483647 == 1) 6224 ? 1 : -1]; 6225int 6226main () 6227{ 6228 6229 ; 6230 return 0; 6231} 6232_ACEOF 6233 if ac_fn_c_try_compile "$LINENO"; then : 6234 break 6235fi 6236rm -f core conftest.err conftest.$ac_objext 6237 CC="$CC -n32" 6238 if ac_fn_c_try_compile "$LINENO"; then : 6239 ac_cv_sys_largefile_CC=' -n32'; break 6240fi 6241rm -f core conftest.err conftest.$ac_objext 6242 break 6243 done 6244 CC=$ac_save_CC 6245 rm -f conftest.$ac_ext 6246 fi 6247fi 6248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 6249$as_echo "$ac_cv_sys_largefile_CC" >&6; } 6250 if test "$ac_cv_sys_largefile_CC" != no; then 6251 CC=$CC$ac_cv_sys_largefile_CC 6252 fi 6253 6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 6255$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 6256if test "${ac_cv_sys_file_offset_bits+set}" = set; then : 6257 $as_echo_n "(cached) " >&6 6258else 6259 while :; do 6260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6261/* end confdefs.h. */ 6262#include <sys/types.h> 6263 /* Check that off_t can represent 2**63 - 1 correctly. 6264 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6265 since some C++ compilers masquerading as C compilers 6266 incorrectly reject 9223372036854775807. */ 6267#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6268 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6269 && LARGE_OFF_T % 2147483647 == 1) 6270 ? 1 : -1]; 6271int 6272main () 6273{ 6274 6275 ; 6276 return 0; 6277} 6278_ACEOF 6279if ac_fn_c_try_compile "$LINENO"; then : 6280 ac_cv_sys_file_offset_bits=no; break 6281fi 6282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6284/* end confdefs.h. */ 6285#define _FILE_OFFSET_BITS 64 6286#include <sys/types.h> 6287 /* Check that off_t can represent 2**63 - 1 correctly. 6288 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6289 since some C++ compilers masquerading as C compilers 6290 incorrectly reject 9223372036854775807. */ 6291#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6292 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6293 && LARGE_OFF_T % 2147483647 == 1) 6294 ? 1 : -1]; 6295int 6296main () 6297{ 6298 6299 ; 6300 return 0; 6301} 6302_ACEOF 6303if ac_fn_c_try_compile "$LINENO"; then : 6304 ac_cv_sys_file_offset_bits=64; break 6305fi 6306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6307 ac_cv_sys_file_offset_bits=unknown 6308 break 6309done 6310fi 6311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 6312$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 6313case $ac_cv_sys_file_offset_bits in #( 6314 no | unknown) ;; 6315 *) 6316cat >>confdefs.h <<_ACEOF 6317#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 6318_ACEOF 6319;; 6320esac 6321rm -rf conftest* 6322 if test $ac_cv_sys_file_offset_bits = unknown; then 6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 6324$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 6325if test "${ac_cv_sys_large_files+set}" = set; then : 6326 $as_echo_n "(cached) " >&6 6327else 6328 while :; do 6329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6330/* end confdefs.h. */ 6331#include <sys/types.h> 6332 /* Check that off_t can represent 2**63 - 1 correctly. 6333 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6334 since some C++ compilers masquerading as C compilers 6335 incorrectly reject 9223372036854775807. */ 6336#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6337 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6338 && LARGE_OFF_T % 2147483647 == 1) 6339 ? 1 : -1]; 6340int 6341main () 6342{ 6343 6344 ; 6345 return 0; 6346} 6347_ACEOF 6348if ac_fn_c_try_compile "$LINENO"; then : 6349 ac_cv_sys_large_files=no; break 6350fi 6351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6353/* end confdefs.h. */ 6354#define _LARGE_FILES 1 6355#include <sys/types.h> 6356 /* Check that off_t can represent 2**63 - 1 correctly. 6357 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6358 since some C++ compilers masquerading as C compilers 6359 incorrectly reject 9223372036854775807. */ 6360#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6361 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6362 && LARGE_OFF_T % 2147483647 == 1) 6363 ? 1 : -1]; 6364int 6365main () 6366{ 6367 6368 ; 6369 return 0; 6370} 6371_ACEOF 6372if ac_fn_c_try_compile "$LINENO"; then : 6373 ac_cv_sys_large_files=1; break 6374fi 6375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6376 ac_cv_sys_large_files=unknown 6377 break 6378done 6379fi 6380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 6381$as_echo "$ac_cv_sys_large_files" >&6; } 6382case $ac_cv_sys_large_files in #( 6383 no | unknown) ;; 6384 *) 6385cat >>confdefs.h <<_ACEOF 6386#define _LARGE_FILES $ac_cv_sys_large_files 6387_ACEOF 6388;; 6389esac 6390rm -rf conftest* 6391 fi 6392 6393 6394fi 6395 6396 case $ac_cv_prog_cc_stdc in #( 6397 no) : 6398 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( 6399 *) : 6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 6401$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 6402if test "${ac_cv_prog_cc_c99+set}" = set; then : 6403 $as_echo_n "(cached) " >&6 6404else 6405 ac_cv_prog_cc_c99=no 6406ac_save_CC=$CC 6407cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6408/* end confdefs.h. */ 6409#include <stdarg.h> 6410#include <stdbool.h> 6411#include <stdlib.h> 6412#include <wchar.h> 6413#include <stdio.h> 6414 6415// Check varargs macros. These examples are taken from C99 6.10.3.5. 6416#define debug(...) fprintf (stderr, __VA_ARGS__) 6417#define showlist(...) puts (#__VA_ARGS__) 6418#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 6419static void 6420test_varargs_macros (void) 6421{ 6422 int x = 1234; 6423 int y = 5678; 6424 debug ("Flag"); 6425 debug ("X = %d\n", x); 6426 showlist (The first, second, and third items.); 6427 report (x>y, "x is %d but y is %d", x, y); 6428} 6429 6430// Check long long types. 6431#define BIG64 18446744073709551615ull 6432#define BIG32 4294967295ul 6433#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 6434#if !BIG_OK 6435 your preprocessor is broken; 6436#endif 6437#if BIG_OK 6438#else 6439 your preprocessor is broken; 6440#endif 6441static long long int bignum = -9223372036854775807LL; 6442static unsigned long long int ubignum = BIG64; 6443 6444struct incomplete_array 6445{ 6446 int datasize; 6447 double data[]; 6448}; 6449 6450struct named_init { 6451 int number; 6452 const wchar_t *name; 6453 double average; 6454}; 6455 6456typedef const char *ccp; 6457 6458static inline int 6459test_restrict (ccp restrict text) 6460{ 6461 // See if C++-style comments work. 6462 // Iterate through items via the restricted pointer. 6463 // Also check for declarations in for loops. 6464 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 6465 continue; 6466 return 0; 6467} 6468 6469// Check varargs and va_copy. 6470static void 6471test_varargs (const char *format, ...) 6472{ 6473 va_list args; 6474 va_start (args, format); 6475 va_list args_copy; 6476 va_copy (args_copy, args); 6477 6478 const char *str; 6479 int number; 6480 float fnumber; 6481 6482 while (*format) 6483 { 6484 switch (*format++) 6485 { 6486 case 's': // string 6487 str = va_arg (args_copy, const char *); 6488 break; 6489 case 'd': // int 6490 number = va_arg (args_copy, int); 6491 break; 6492 case 'f': // float 6493 fnumber = va_arg (args_copy, double); 6494 break; 6495 default: 6496 break; 6497 } 6498 } 6499 va_end (args_copy); 6500 va_end (args); 6501} 6502 6503int 6504main () 6505{ 6506 6507 // Check bool. 6508 _Bool success = false; 6509 6510 // Check restrict. 6511 if (test_restrict ("String literal") == 0) 6512 success = true; 6513 char *restrict newvar = "Another string"; 6514 6515 // Check varargs. 6516 test_varargs ("s, d' f .", "string", 65, 34.234); 6517 test_varargs_macros (); 6518 6519 // Check flexible array members. 6520 struct incomplete_array *ia = 6521 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 6522 ia->datasize = 10; 6523 for (int i = 0; i < ia->datasize; ++i) 6524 ia->data[i] = i * 1.234; 6525 6526 // Check named initializers. 6527 struct named_init ni = { 6528 .number = 34, 6529 .name = L"Test wide string", 6530 .average = 543.34343, 6531 }; 6532 6533 ni.number = 58; 6534 6535 int dynamic_array[ni.number]; 6536 dynamic_array[ni.number - 1] = 543; 6537 6538 // work around unused variable warnings 6539 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 6540 || dynamic_array[ni.number - 1] != 543); 6541 6542 ; 6543 return 0; 6544} 6545_ACEOF 6546for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 6547do 6548 CC="$ac_save_CC $ac_arg" 6549 if ac_fn_c_try_compile "$LINENO"; then : 6550 ac_cv_prog_cc_c99=$ac_arg 6551fi 6552rm -f core conftest.err conftest.$ac_objext 6553 test "x$ac_cv_prog_cc_c99" != "xno" && break 6554done 6555rm -f conftest.$ac_ext 6556CC=$ac_save_CC 6557 6558fi 6559# AC_CACHE_VAL 6560case "x$ac_cv_prog_cc_c99" in 6561 x) 6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6563$as_echo "none needed" >&6; } ;; 6564 xno) 6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6566$as_echo "unsupported" >&6; } ;; 6567 *) 6568 CC="$CC $ac_cv_prog_cc_c99" 6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 6570$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 6571esac 6572if test "x$ac_cv_prog_cc_c99" != xno; then : 6573 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 6574else 6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 6576$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 6577if test "${ac_cv_prog_cc_c89+set}" = set; then : 6578 $as_echo_n "(cached) " >&6 6579else 6580 ac_cv_prog_cc_c89=no 6581ac_save_CC=$CC 6582cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6583/* end confdefs.h. */ 6584#include <stdarg.h> 6585#include <stdio.h> 6586#include <sys/types.h> 6587#include <sys/stat.h> 6588/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 6589struct buf { int x; }; 6590FILE * (*rcsopen) (struct buf *, struct stat *, int); 6591static char *e (p, i) 6592 char **p; 6593 int i; 6594{ 6595 return p[i]; 6596} 6597static char *f (char * (*g) (char **, int), char **p, ...) 6598{ 6599 char *s; 6600 va_list v; 6601 va_start (v,p); 6602 s = g (p, va_arg (v,int)); 6603 va_end (v); 6604 return s; 6605} 6606 6607/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 6608 function prototypes and stuff, but not '\xHH' hex character constants. 6609 These don't provoke an error unfortunately, instead are silently treated 6610 as 'x'. The following induces an error, until -std is added to get 6611 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 6612 array size at least. It's necessary to write '\x00'==0 to get something 6613 that's true only with -std. */ 6614int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 6615 6616/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 6617 inside strings and character constants. */ 6618#define FOO(x) 'x' 6619int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 6620 6621int test (int i, double x); 6622struct s1 {int (*f) (int a);}; 6623struct s2 {int (*f) (double a);}; 6624int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 6625int argc; 6626char **argv; 6627int 6628main () 6629{ 6630return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 6631 ; 6632 return 0; 6633} 6634_ACEOF 6635for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 6636 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 6637do 6638 CC="$ac_save_CC $ac_arg" 6639 if ac_fn_c_try_compile "$LINENO"; then : 6640 ac_cv_prog_cc_c89=$ac_arg 6641fi 6642rm -f core conftest.err conftest.$ac_objext 6643 test "x$ac_cv_prog_cc_c89" != "xno" && break 6644done 6645rm -f conftest.$ac_ext 6646CC=$ac_save_CC 6647 6648fi 6649# AC_CACHE_VAL 6650case "x$ac_cv_prog_cc_c89" in 6651 x) 6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6653$as_echo "none needed" >&6; } ;; 6654 xno) 6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6656$as_echo "unsupported" >&6; } ;; 6657 *) 6658 CC="$CC $ac_cv_prog_cc_c89" 6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 6660$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 6661esac 6662if test "x$ac_cv_prog_cc_c89" != xno; then : 6663 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 6664else 6665 ac_cv_prog_cc_stdc=no 6666fi 6667 6668fi 6669 ;; 6670esac 6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 6672$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } 6673 if test "${ac_cv_prog_cc_stdc+set}" = set; then : 6674 $as_echo_n "(cached) " >&6 6675fi 6676 6677 case $ac_cv_prog_cc_stdc in #( 6678 no) : 6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6680$as_echo "unsupported" >&6; } ;; #( 6681 '') : 6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6683$as_echo "none needed" >&6; } ;; #( 6684 *) : 6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 6686$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; 6687esac 6688 6689 6690 6691 # Code from module alloca-opt: 6692 # Code from module btowc: 6693 # Code from module c-ctype: 6694 # Code from module c-strcase: 6695 # Code from module c-strcaseeq: 6696 # Code from module close: 6697 # Code from module configmake: 6698 # Code from module dirname: 6699 # Code from module dirname-lgpl: 6700 # Code from module dosname: 6701 # Code from module double-slash-root: 6702 # Code from module dup2: 6703 # Code from module errno: 6704 # Code from module error: 6705 # Code from module exitfail: 6706 # Code from module extensions: 6707 6708 # Code from module fcntl: 6709 # Code from module fcntl-h: 6710 # Code from module fd-hook: 6711 # Code from module float: 6712 # Code from module getdelim: 6713 # Code from module getdtablesize: 6714 # Code from module getline: 6715 # Code from module getopt-gnu: 6716 # Code from module getopt-posix: 6717 # Code from module gettext: 6718 # Code from module gettext-h: 6719 # Code from module gettimeofday: 6720 # Code from module havelib: 6721 # Code from module include_next: 6722 # Code from module inline: 6723 # Code from module intprops: 6724 # Code from module langinfo: 6725 # Code from module largefile: 6726 6727 # Code from module localcharset: 6728 # Code from module locale: 6729 # Code from module localeconv: 6730 # Code from module lstat: 6731 # Code from module malloc-gnu: 6732 # Code from module malloc-posix: 6733 # Code from module mbrtowc: 6734 # Code from module mbsinit: 6735 # Code from module mbtowc: 6736 # Code from module memchr: 6737 # Code from module minmax: 6738 # Code from module msvc-inval: 6739 # Code from module msvc-nothrow: 6740 # Code from module multiarch: 6741 # Code from module nl_langinfo: 6742 # Code from module nocrash: 6743 # Code from module pathmax: 6744 # Code from module progname: 6745 # Code from module quote: 6746 # Code from module quotearg: 6747 # Code from module quotearg-simple: 6748 # Code from module realloc-gnu: 6749 # Code from module realloc-posix: 6750 # Code from module regex: 6751 # Code from module rpmatch: 6752 # Code from module signal: 6753 # Code from module signal-h: 6754 # Code from module size_max: 6755 # Code from module snippet/_Noreturn: 6756 # Code from module snippet/arg-nonnull: 6757 # Code from module snippet/c++defs: 6758 # Code from module snippet/warn-on-use: 6759 # Code from module ssize_t: 6760 # Code from module stat: 6761 # Code from module stdarg: 6762 6763 6764 6765 # Code from module stdbool: 6766 # Code from module stddef: 6767 # Code from module stdint: 6768 # Code from module stdio: 6769 # Code from module stdlib: 6770 # Code from module strcase: 6771 # Code from module strdup-posix: 6772 # Code from module streq: 6773 # Code from module strerror: 6774 # Code from module strerror-override: 6775 # Code from module string: 6776 # Code from module strings: 6777 # Code from module strndup: 6778 # Code from module strnlen: 6779 # Code from module sys_stat: 6780 # Code from module sys_time: 6781 # Code from module sys_types: 6782 # Code from module time: 6783 # Code from module unistd: 6784 # Code from module vasnprintf: 6785 # Code from module vasprintf: 6786 # Code from module verify: 6787 # Code from module version-etc: 6788 # Code from module wchar: 6789 # Code from module wcrtomb: 6790 # Code from module wctype-h: 6791 # Code from module xalloc: 6792 # Code from module xalloc-die: 6793 # Code from module xalloc-oversized: 6794 # Code from module xsize: 6795 # Code from module xstrndup: 6796 # Code from module xvasprintf: 6797 # Code from module yesno: 6798 6799 6800#AC_PROG_MAKE_SET 6801if test -n "$ac_tool_prefix"; then 6802 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6803set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6805$as_echo_n "checking for $ac_word... " >&6; } 6806if test "${ac_cv_prog_RANLIB+set}" = set; then : 6807 $as_echo_n "(cached) " >&6 6808else 6809 if test -n "$RANLIB"; then 6810 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6811else 6812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6813for as_dir in $PATH 6814do 6815 IFS=$as_save_IFS 6816 test -z "$as_dir" && as_dir=. 6817 for ac_exec_ext in '' $ac_executable_extensions; do 6818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6819 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6821 break 2 6822 fi 6823done 6824 done 6825IFS=$as_save_IFS 6826 6827fi 6828fi 6829RANLIB=$ac_cv_prog_RANLIB 6830if test -n "$RANLIB"; then 6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6832$as_echo "$RANLIB" >&6; } 6833else 6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6835$as_echo "no" >&6; } 6836fi 6837 6838 6839fi 6840if test -z "$ac_cv_prog_RANLIB"; then 6841 ac_ct_RANLIB=$RANLIB 6842 # Extract the first word of "ranlib", so it can be a program name with args. 6843set dummy ranlib; ac_word=$2 6844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6845$as_echo_n "checking for $ac_word... " >&6; } 6846if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 6847 $as_echo_n "(cached) " >&6 6848else 6849 if test -n "$ac_ct_RANLIB"; then 6850 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6851else 6852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6853for as_dir in $PATH 6854do 6855 IFS=$as_save_IFS 6856 test -z "$as_dir" && as_dir=. 6857 for ac_exec_ext in '' $ac_executable_extensions; do 6858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6859 ac_cv_prog_ac_ct_RANLIB="ranlib" 6860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6861 break 2 6862 fi 6863done 6864 done 6865IFS=$as_save_IFS 6866 6867fi 6868fi 6869ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6870if test -n "$ac_ct_RANLIB"; then 6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6872$as_echo "$ac_ct_RANLIB" >&6; } 6873else 6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6875$as_echo "no" >&6; } 6876fi 6877 6878 if test "x$ac_ct_RANLIB" = x; then 6879 RANLIB=":" 6880 else 6881 case $cross_compiling:$ac_tool_warned in 6882yes:) 6883{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6884$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6885ac_tool_warned=yes ;; 6886esac 6887 RANLIB=$ac_ct_RANLIB 6888 fi 6889else 6890 RANLIB="$ac_cv_prog_RANLIB" 6891fi 6892 6893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6894$as_echo_n "checking whether ln -s works... " >&6; } 6895LN_S=$as_ln_s 6896if test "$LN_S" = "ln -s"; then 6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6898$as_echo "yes" >&6; } 6899else 6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6901$as_echo "no, using $LN_S" >&6; } 6902fi 6903 6904 6905 6906 6907 6908 6909 LIBC_FATAL_STDERR_=1 6910 export LIBC_FATAL_STDERR_ 6911 6912# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 6913# for constant arguments. Useless! 6914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 6915$as_echo_n "checking for working alloca.h... " >&6; } 6916if test "${ac_cv_working_alloca_h+set}" = set; then : 6917 $as_echo_n "(cached) " >&6 6918else 6919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6920/* end confdefs.h. */ 6921#include <alloca.h> 6922int 6923main () 6924{ 6925char *p = (char *) alloca (2 * sizeof (int)); 6926 if (p) return 0; 6927 ; 6928 return 0; 6929} 6930_ACEOF 6931if ac_fn_c_try_link "$LINENO"; then : 6932 ac_cv_working_alloca_h=yes 6933else 6934 ac_cv_working_alloca_h=no 6935fi 6936rm -f core conftest.err conftest.$ac_objext \ 6937 conftest$ac_exeext conftest.$ac_ext 6938fi 6939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 6940$as_echo "$ac_cv_working_alloca_h" >&6; } 6941if test $ac_cv_working_alloca_h = yes; then 6942 6943$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 6944 6945fi 6946 6947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 6948$as_echo_n "checking for alloca... " >&6; } 6949if test "${ac_cv_func_alloca_works+set}" = set; then : 6950 $as_echo_n "(cached) " >&6 6951else 6952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6953/* end confdefs.h. */ 6954#ifdef __GNUC__ 6955# define alloca __builtin_alloca 6956#else 6957# ifdef _MSC_VER 6958# include <malloc.h> 6959# define alloca _alloca 6960# else 6961# ifdef HAVE_ALLOCA_H 6962# include <alloca.h> 6963# else 6964# ifdef _AIX 6965 #pragma alloca 6966# else 6967# ifndef alloca /* predefined by HP cc +Olibcalls */ 6968char *alloca (); 6969# endif 6970# endif 6971# endif 6972# endif 6973#endif 6974 6975int 6976main () 6977{ 6978char *p = (char *) alloca (1); 6979 if (p) return 0; 6980 ; 6981 return 0; 6982} 6983_ACEOF 6984if ac_fn_c_try_link "$LINENO"; then : 6985 ac_cv_func_alloca_works=yes 6986else 6987 ac_cv_func_alloca_works=no 6988fi 6989rm -f core conftest.err conftest.$ac_objext \ 6990 conftest$ac_exeext conftest.$ac_ext 6991fi 6992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 6993$as_echo "$ac_cv_func_alloca_works" >&6; } 6994 6995if test $ac_cv_func_alloca_works = yes; then 6996 6997$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 6998 6999else 7000 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 7001# that cause trouble. Some versions do not even contain alloca or 7002# contain a buggy version. If you still want to use their alloca, 7003# use ar to extract alloca.o from them instead of compiling alloca.c. 7004 7005 7006 7007 7008 7009ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 7010 7011$as_echo "#define C_ALLOCA 1" >>confdefs.h 7012 7013 7014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5 7015$as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; } 7016if test "${ac_cv_os_cray+set}" = set; then : 7017 $as_echo_n "(cached) " >&6 7018else 7019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7020/* end confdefs.h. */ 7021#if defined CRAY && ! defined CRAY2 7022webecray 7023#else 7024wenotbecray 7025#endif 7026 7027_ACEOF 7028if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7029 $EGREP "webecray" >/dev/null 2>&1; then : 7030 ac_cv_os_cray=yes 7031else 7032 ac_cv_os_cray=no 7033fi 7034rm -f conftest* 7035 7036fi 7037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 7038$as_echo "$ac_cv_os_cray" >&6; } 7039if test $ac_cv_os_cray = yes; then 7040 for ac_func in _getb67 GETB67 getb67; do 7041 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7042ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7043if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 7044 7045cat >>confdefs.h <<_ACEOF 7046#define CRAY_STACKSEG_END $ac_func 7047_ACEOF 7048 7049 break 7050fi 7051 7052 done 7053fi 7054 7055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 7056$as_echo_n "checking stack direction for C alloca... " >&6; } 7057if test "${ac_cv_c_stack_direction+set}" = set; then : 7058 $as_echo_n "(cached) " >&6 7059else 7060 if test "$cross_compiling" = yes; then : 7061 ac_cv_c_stack_direction=0 7062else 7063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7064/* end confdefs.h. */ 7065$ac_includes_default 7066int 7067find_stack_direction (int *addr, int depth) 7068{ 7069 int dir, dummy = 0; 7070 if (! addr) 7071 addr = &dummy; 7072 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 7073 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 7074 return dir + dummy; 7075} 7076 7077int 7078main (int argc, char **argv) 7079{ 7080 return find_stack_direction (0, argc + !argv + 20) < 0; 7081} 7082_ACEOF 7083if ac_fn_c_try_run "$LINENO"; then : 7084 ac_cv_c_stack_direction=1 7085else 7086 ac_cv_c_stack_direction=-1 7087fi 7088rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7089 conftest.$ac_objext conftest.beam conftest.$ac_ext 7090fi 7091 7092fi 7093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 7094$as_echo "$ac_cv_c_stack_direction" >&6; } 7095cat >>confdefs.h <<_ACEOF 7096#define STACK_DIRECTION $ac_cv_c_stack_direction 7097_ACEOF 7098 7099 7100fi 7101 7102 7103 GNULIB_BTOWC=0; 7104 GNULIB_WCTOB=0; 7105 GNULIB_MBSINIT=0; 7106 GNULIB_MBRTOWC=0; 7107 GNULIB_MBRLEN=0; 7108 GNULIB_MBSRTOWCS=0; 7109 GNULIB_MBSNRTOWCS=0; 7110 GNULIB_WCRTOMB=0; 7111 GNULIB_WCSRTOMBS=0; 7112 GNULIB_WCSNRTOMBS=0; 7113 GNULIB_WCWIDTH=0; 7114 GNULIB_WMEMCHR=0; 7115 GNULIB_WMEMCMP=0; 7116 GNULIB_WMEMCPY=0; 7117 GNULIB_WMEMMOVE=0; 7118 GNULIB_WMEMSET=0; 7119 GNULIB_WCSLEN=0; 7120 GNULIB_WCSNLEN=0; 7121 GNULIB_WCSCPY=0; 7122 GNULIB_WCPCPY=0; 7123 GNULIB_WCSNCPY=0; 7124 GNULIB_WCPNCPY=0; 7125 GNULIB_WCSCAT=0; 7126 GNULIB_WCSNCAT=0; 7127 GNULIB_WCSCMP=0; 7128 GNULIB_WCSNCMP=0; 7129 GNULIB_WCSCASECMP=0; 7130 GNULIB_WCSNCASECMP=0; 7131 GNULIB_WCSCOLL=0; 7132 GNULIB_WCSXFRM=0; 7133 GNULIB_WCSDUP=0; 7134 GNULIB_WCSCHR=0; 7135 GNULIB_WCSRCHR=0; 7136 GNULIB_WCSCSPN=0; 7137 GNULIB_WCSSPN=0; 7138 GNULIB_WCSPBRK=0; 7139 GNULIB_WCSSTR=0; 7140 GNULIB_WCSTOK=0; 7141 GNULIB_WCSWIDTH=0; 7142 HAVE_BTOWC=1; 7143 HAVE_MBSINIT=1; 7144 HAVE_MBRTOWC=1; 7145 HAVE_MBRLEN=1; 7146 HAVE_MBSRTOWCS=1; 7147 HAVE_MBSNRTOWCS=1; 7148 HAVE_WCRTOMB=1; 7149 HAVE_WCSRTOMBS=1; 7150 HAVE_WCSNRTOMBS=1; 7151 HAVE_WMEMCHR=1; 7152 HAVE_WMEMCMP=1; 7153 HAVE_WMEMCPY=1; 7154 HAVE_WMEMMOVE=1; 7155 HAVE_WMEMSET=1; 7156 HAVE_WCSLEN=1; 7157 HAVE_WCSNLEN=1; 7158 HAVE_WCSCPY=1; 7159 HAVE_WCPCPY=1; 7160 HAVE_WCSNCPY=1; 7161 HAVE_WCPNCPY=1; 7162 HAVE_WCSCAT=1; 7163 HAVE_WCSNCAT=1; 7164 HAVE_WCSCMP=1; 7165 HAVE_WCSNCMP=1; 7166 HAVE_WCSCASECMP=1; 7167 HAVE_WCSNCASECMP=1; 7168 HAVE_WCSCOLL=1; 7169 HAVE_WCSXFRM=1; 7170 HAVE_WCSDUP=1; 7171 HAVE_WCSCHR=1; 7172 HAVE_WCSRCHR=1; 7173 HAVE_WCSCSPN=1; 7174 HAVE_WCSSPN=1; 7175 HAVE_WCSPBRK=1; 7176 HAVE_WCSSTR=1; 7177 HAVE_WCSTOK=1; 7178 HAVE_WCSWIDTH=1; 7179 HAVE_DECL_WCTOB=1; 7180 HAVE_DECL_WCWIDTH=1; 7181 REPLACE_MBSTATE_T=0; 7182 REPLACE_BTOWC=0; 7183 REPLACE_WCTOB=0; 7184 REPLACE_MBSINIT=0; 7185 REPLACE_MBRTOWC=0; 7186 REPLACE_MBRLEN=0; 7187 REPLACE_MBSRTOWCS=0; 7188 REPLACE_MBSNRTOWCS=0; 7189 REPLACE_WCRTOMB=0; 7190 REPLACE_WCSRTOMBS=0; 7191 REPLACE_WCSNRTOMBS=0; 7192 REPLACE_WCWIDTH=0; 7193 REPLACE_WCSWIDTH=0; 7194 7195 7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5 7197$as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; } 7198if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then : 7199 $as_echo_n "(cached) " >&6 7200else 7201 gl_cv_header_wchar_h_correct_inline=yes 7202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7203/* end confdefs.h. */ 7204 7205 #define wcstod renamed_wcstod 7206/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 7207 <wchar.h>. 7208 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 7209 included before <wchar.h>. */ 7210#include <stddef.h> 7211#include <stdio.h> 7212#include <time.h> 7213#include <wchar.h> 7214extern int zero (void); 7215int main () { return zero(); } 7216 7217_ACEOF 7218 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7219 (eval $ac_compile) 2>&5 7220 ac_status=$? 7221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7222 test $ac_status = 0; }; then 7223 mv conftest.$ac_objext conftest1.$ac_objext 7224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7225/* end confdefs.h. */ 7226 7227 #define wcstod renamed_wcstod 7228/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 7229 <wchar.h>. 7230 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 7231 included before <wchar.h>. */ 7232#include <stddef.h> 7233#include <stdio.h> 7234#include <time.h> 7235#include <wchar.h> 7236int zero (void) { return 0; } 7237 7238_ACEOF 7239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7240 (eval $ac_compile) 2>&5 7241 ac_status=$? 7242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7243 test $ac_status = 0; }; then 7244 mv conftest.$ac_objext conftest2.$ac_objext 7245 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then 7246 : 7247 else 7248 gl_cv_header_wchar_h_correct_inline=no 7249 fi 7250 fi 7251 fi 7252 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext 7253 7254fi 7255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5 7256$as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; } 7257 if test $gl_cv_header_wchar_h_correct_inline = no; then 7258 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS). 7259This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in 7260C99 mode. You have four options: 7261 - Add the flag -fgnu89-inline to CC and reconfigure, or 7262 - Fix your include files, using parts of 7263 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or 7264 - Use a gcc version older than 4.3, or 7265 - Don't use the flags -std=c99 or -std=gnu99. 7266Configuration aborted." "$LINENO" 5 7267 fi 7268 7269 7270 7271 7272 7273 for ac_func in $gl_func_list 7274do : 7275 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7276ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7277if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 7278 cat >>confdefs.h <<_ACEOF 7279#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7280_ACEOF 7281 7282fi 7283done 7284 7285 7286 7287 7288 7289 7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 7291$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 7292if test "${am_cv_langinfo_codeset+set}" = set; then : 7293 $as_echo_n "(cached) " >&6 7294else 7295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7296/* end confdefs.h. */ 7297#include <langinfo.h> 7298int 7299main () 7300{ 7301char* cs = nl_langinfo(CODESET); return !cs; 7302 ; 7303 return 0; 7304} 7305_ACEOF 7306if ac_fn_c_try_link "$LINENO"; then : 7307 am_cv_langinfo_codeset=yes 7308else 7309 am_cv_langinfo_codeset=no 7310fi 7311rm -f core conftest.err conftest.$ac_objext \ 7312 conftest$ac_exeext conftest.$ac_ext 7313 7314fi 7315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 7316$as_echo "$am_cv_langinfo_codeset" >&6; } 7317 if test $am_cv_langinfo_codeset = yes; then 7318 7319$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 7320 7321 fi 7322 7323 7324 7325 7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5 7327$as_echo_n "checking for a traditional french locale... " >&6; } 7328if test "${gt_cv_locale_fr+set}" = set; then : 7329 $as_echo_n "(cached) " >&6 7330else 7331 7332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7333/* end confdefs.h. */ 7334 7335#include <locale.h> 7336#include <time.h> 7337#if HAVE_LANGINFO_CODESET 7338# include <langinfo.h> 7339#endif 7340#include <stdlib.h> 7341#include <string.h> 7342struct tm t; 7343char buf[16]; 7344int main () { 7345 /* Check whether the given locale name is recognized by the system. */ 7346#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__ 7347 /* On native Windows, setlocale(category, "") looks at the system settings, 7348 not at the environment variables. Also, when an encoding suffix such 7349 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 7350 category of the locale to "C". */ 7351 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 7352 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 7353 return 1; 7354#else 7355 if (setlocale (LC_ALL, "") == NULL) return 1; 7356#endif 7357 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 7358 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 7359 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 7360 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 7361 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 7362 some unit tests fail. 7363 On MirBSD 10, when an unsupported locale is specified, setlocale() 7364 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 7365#if HAVE_LANGINFO_CODESET 7366 { 7367 const char *cs = nl_langinfo (CODESET); 7368 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 7369 || strcmp (cs, "UTF-8") == 0) 7370 return 1; 7371 } 7372#endif 7373#ifdef __CYGWIN__ 7374 /* On Cygwin, avoid locale names without encoding suffix, because the 7375 locale_charset() function relies on the encoding suffix. Note that 7376 LC_ALL is set on the command line. */ 7377 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 7378#endif 7379 /* Check whether in the abbreviation of the second month, the second 7380 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only 7381 one byte long. This excludes the UTF-8 encoding. */ 7382 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 7383 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1; 7384#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ 7385 /* Check whether the decimal separator is a comma. 7386 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point 7387 are nl_langinfo(RADIXCHAR) are both ".". */ 7388 if (localeconv () ->decimal_point[0] != ',') return 1; 7389#endif 7390 return 0; 7391} 7392 7393_ACEOF 7394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7395 (eval $ac_link) 2>&5 7396 ac_status=$? 7397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7398 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7399 case "$host_os" in 7400 # Handle native Windows specially, because there setlocale() interprets 7401 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 7402 # "fr" or "fra" as "French" or "French_France.1252", 7403 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 7404 # "ja" as "Japanese" or "Japanese_Japan.932", 7405 # and similar. 7406 mingw*) 7407 # Test for the native Windows locale name. 7408 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 7409 gt_cv_locale_fr=French_France.1252 7410 else 7411 # None found. 7412 gt_cv_locale_fr=none 7413 fi 7414 ;; 7415 *) 7416 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 7417 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the 7418 # configure script would override the LC_ALL setting. Likewise for 7419 # LC_CTYPE, which is also set at the beginning of the configure script. 7420 # Test for the usual locale name. 7421 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 7422 gt_cv_locale_fr=fr_FR 7423 else 7424 # Test for the locale name with explicit encoding suffix. 7425 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 7426 gt_cv_locale_fr=fr_FR.ISO-8859-1 7427 else 7428 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name. 7429 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 7430 gt_cv_locale_fr=fr_FR.ISO8859-1 7431 else 7432 # Test for the HP-UX locale name. 7433 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 7434 gt_cv_locale_fr=fr_FR.iso88591 7435 else 7436 # Test for the Solaris 7 locale name. 7437 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 7438 gt_cv_locale_fr=fr 7439 else 7440 # None found. 7441 gt_cv_locale_fr=none 7442 fi 7443 fi 7444 fi 7445 fi 7446 fi 7447 ;; 7448 esac 7449 fi 7450 rm -fr conftest* 7451 7452fi 7453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5 7454$as_echo "$gt_cv_locale_fr" >&6; } 7455 LOCALE_FR=$gt_cv_locale_fr 7456 7457 7458 7459 GNULIB_CHDIR=0; 7460 GNULIB_CHOWN=0; 7461 GNULIB_CLOSE=0; 7462 GNULIB_DUP=0; 7463 GNULIB_DUP2=0; 7464 GNULIB_DUP3=0; 7465 GNULIB_ENVIRON=0; 7466 GNULIB_EUIDACCESS=0; 7467 GNULIB_FACCESSAT=0; 7468 GNULIB_FCHDIR=0; 7469 GNULIB_FCHOWNAT=0; 7470 GNULIB_FDATASYNC=0; 7471 GNULIB_FSYNC=0; 7472 GNULIB_FTRUNCATE=0; 7473 GNULIB_GETCWD=0; 7474 GNULIB_GETDOMAINNAME=0; 7475 GNULIB_GETDTABLESIZE=0; 7476 GNULIB_GETGROUPS=0; 7477 GNULIB_GETHOSTNAME=0; 7478 GNULIB_GETLOGIN=0; 7479 GNULIB_GETLOGIN_R=0; 7480 GNULIB_GETPAGESIZE=0; 7481 GNULIB_GETUSERSHELL=0; 7482 GNULIB_GROUP_MEMBER=0; 7483 GNULIB_ISATTY=0; 7484 GNULIB_LCHOWN=0; 7485 GNULIB_LINK=0; 7486 GNULIB_LINKAT=0; 7487 GNULIB_LSEEK=0; 7488 GNULIB_PIPE=0; 7489 GNULIB_PIPE2=0; 7490 GNULIB_PREAD=0; 7491 GNULIB_PWRITE=0; 7492 GNULIB_READ=0; 7493 GNULIB_READLINK=0; 7494 GNULIB_READLINKAT=0; 7495 GNULIB_RMDIR=0; 7496 GNULIB_SETHOSTNAME=0; 7497 GNULIB_SLEEP=0; 7498 GNULIB_SYMLINK=0; 7499 GNULIB_SYMLINKAT=0; 7500 GNULIB_TTYNAME_R=0; 7501 GNULIB_UNISTD_H_NONBLOCKING=0; 7502 GNULIB_UNISTD_H_SIGPIPE=0; 7503 GNULIB_UNLINK=0; 7504 GNULIB_UNLINKAT=0; 7505 GNULIB_USLEEP=0; 7506 GNULIB_WRITE=0; 7507 HAVE_CHOWN=1; 7508 HAVE_DUP2=1; 7509 HAVE_DUP3=1; 7510 HAVE_EUIDACCESS=1; 7511 HAVE_FACCESSAT=1; 7512 HAVE_FCHDIR=1; 7513 HAVE_FCHOWNAT=1; 7514 HAVE_FDATASYNC=1; 7515 HAVE_FSYNC=1; 7516 HAVE_FTRUNCATE=1; 7517 HAVE_GETDTABLESIZE=1; 7518 HAVE_GETGROUPS=1; 7519 HAVE_GETHOSTNAME=1; 7520 HAVE_GETLOGIN=1; 7521 HAVE_GETPAGESIZE=1; 7522 HAVE_GROUP_MEMBER=1; 7523 HAVE_LCHOWN=1; 7524 HAVE_LINK=1; 7525 HAVE_LINKAT=1; 7526 HAVE_PIPE=1; 7527 HAVE_PIPE2=1; 7528 HAVE_PREAD=1; 7529 HAVE_PWRITE=1; 7530 HAVE_READLINK=1; 7531 HAVE_READLINKAT=1; 7532 HAVE_SETHOSTNAME=1; 7533 HAVE_SLEEP=1; 7534 HAVE_SYMLINK=1; 7535 HAVE_SYMLINKAT=1; 7536 HAVE_UNLINKAT=1; 7537 HAVE_USLEEP=1; 7538 HAVE_DECL_ENVIRON=1; 7539 HAVE_DECL_FCHDIR=1; 7540 HAVE_DECL_FDATASYNC=1; 7541 HAVE_DECL_GETDOMAINNAME=1; 7542 HAVE_DECL_GETLOGIN_R=1; 7543 HAVE_DECL_GETPAGESIZE=1; 7544 HAVE_DECL_GETUSERSHELL=1; 7545 HAVE_DECL_SETHOSTNAME=1; 7546 HAVE_DECL_TTYNAME_R=1; 7547 HAVE_OS_H=0; 7548 HAVE_SYS_PARAM_H=0; 7549 REPLACE_CHOWN=0; 7550 REPLACE_CLOSE=0; 7551 REPLACE_DUP=0; 7552 REPLACE_DUP2=0; 7553 REPLACE_FCHOWNAT=0; 7554 REPLACE_FTRUNCATE=0; 7555 REPLACE_GETCWD=0; 7556 REPLACE_GETDOMAINNAME=0; 7557 REPLACE_GETLOGIN_R=0; 7558 REPLACE_GETGROUPS=0; 7559 REPLACE_GETPAGESIZE=0; 7560 REPLACE_ISATTY=0; 7561 REPLACE_LCHOWN=0; 7562 REPLACE_LINK=0; 7563 REPLACE_LINKAT=0; 7564 REPLACE_LSEEK=0; 7565 REPLACE_PREAD=0; 7566 REPLACE_PWRITE=0; 7567 REPLACE_READ=0; 7568 REPLACE_READLINK=0; 7569 REPLACE_RMDIR=0; 7570 REPLACE_SLEEP=0; 7571 REPLACE_SYMLINK=0; 7572 REPLACE_TTYNAME_R=0; 7573 REPLACE_UNLINK=0; 7574 REPLACE_UNLINKAT=0; 7575 REPLACE_USLEEP=0; 7576 REPLACE_WRITE=0; 7577 UNISTD_H_HAVE_WINSOCK2_H=0; 7578 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0; 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 : 7589 7590 7591 7592 7593 7594 if test $ac_cv_func__set_invalid_parameter_handler = yes; then 7595 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1 7596 7597$as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h 7598 7599 else 7600 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0 7601 fi 7602 7603 7604 7605 7606 7607 7608 for ac_header in $gl_header_list 7609do : 7610 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7611ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 7612if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7613 cat >>confdefs.h <<_ACEOF 7614#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7615_ACEOF 7616 7617fi 7618 7619done 7620 7621 7622 7623 7624 7625 7626 7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5 7628$as_echo_n "checking whether // is distinct from /... " >&6; } 7629if test "${gl_cv_double_slash_root+set}" = set; then : 7630 $as_echo_n "(cached) " >&6 7631else 7632 if test x"$cross_compiling" = xyes ; then 7633 # When cross-compiling, there is no way to tell whether // is special 7634 # short of a list of hosts. However, the only known hosts to date 7635 # that have a distinct // are Apollo DomainOS (too old to port to), 7636 # Cygwin, and z/OS. If anyone knows of another system for which // has 7637 # special semantics and is distinct from /, please report it to 7638 # <bug-gnulib@gnu.org>. 7639 case $host in 7640 *-cygwin | i370-ibm-openedition) 7641 gl_cv_double_slash_root=yes ;; 7642 *) 7643 # Be optimistic and assume that / and // are the same when we 7644 # don't know. 7645 gl_cv_double_slash_root='unknown, assuming no' ;; 7646 esac 7647 else 7648 set x `ls -di / // 2>/dev/null` 7649 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then 7650 gl_cv_double_slash_root=no 7651 else 7652 gl_cv_double_slash_root=yes 7653 fi 7654 fi 7655fi 7656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5 7657$as_echo "$gl_cv_double_slash_root" >&6; } 7658 if test "$gl_cv_double_slash_root" = yes; then 7659 7660$as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h 7661 7662 fi 7663 7664 7665 7666 7667 7668 7669 7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5 7671$as_echo_n "checking whether the preprocessor supports include_next... " >&6; } 7672if test "${gl_cv_have_include_next+set}" = set; then : 7673 $as_echo_n "(cached) " >&6 7674else 7675 rm -rf conftestd1a conftestd1b conftestd2 7676 mkdir conftestd1a conftestd1b conftestd2 7677 cat <<EOF > conftestd1a/conftest.h 7678#define DEFINED_IN_CONFTESTD1 7679#include_next <conftest.h> 7680#ifdef DEFINED_IN_CONFTESTD2 7681int foo; 7682#else 7683#error "include_next doesn't work" 7684#endif 7685EOF 7686 cat <<EOF > conftestd1b/conftest.h 7687#define DEFINED_IN_CONFTESTD1 7688#include <stdio.h> 7689#include_next <conftest.h> 7690#ifdef DEFINED_IN_CONFTESTD2 7691int foo; 7692#else 7693#error "include_next doesn't work" 7694#endif 7695EOF 7696 cat <<EOF > conftestd2/conftest.h 7697#ifndef DEFINED_IN_CONFTESTD1 7698#error "include_next test doesn't work" 7699#endif 7700#define DEFINED_IN_CONFTESTD2 7701EOF 7702 gl_save_CPPFLAGS="$CPPFLAGS" 7703 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2" 7704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7705/* end confdefs.h. */ 7706#include <conftest.h> 7707_ACEOF 7708if ac_fn_c_try_compile "$LINENO"; then : 7709 gl_cv_have_include_next=yes 7710else 7711 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2" 7712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7713/* end confdefs.h. */ 7714#include <conftest.h> 7715_ACEOF 7716if ac_fn_c_try_compile "$LINENO"; then : 7717 gl_cv_have_include_next=buggy 7718else 7719 gl_cv_have_include_next=no 7720fi 7721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7722 7723fi 7724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7725 CPPFLAGS="$gl_save_CPPFLAGS" 7726 rm -rf conftestd1a conftestd1b conftestd2 7727 7728fi 7729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5 7730$as_echo "$gl_cv_have_include_next" >&6; } 7731 PRAGMA_SYSTEM_HEADER= 7732 if test $gl_cv_have_include_next = yes; then 7733 INCLUDE_NEXT=include_next 7734 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next 7735 if test -n "$GCC"; then 7736 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header' 7737 fi 7738 else 7739 if test $gl_cv_have_include_next = buggy; then 7740 INCLUDE_NEXT=include 7741 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next 7742 else 7743 INCLUDE_NEXT=include 7744 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include 7745 fi 7746 fi 7747 7748 7749 7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5 7751$as_echo_n "checking whether system header files limit the line length... " >&6; } 7752if test "${gl_cv_pragma_columns+set}" = set; then : 7753 $as_echo_n "(cached) " >&6 7754else 7755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7756/* end confdefs.h. */ 7757 7758#ifdef __TANDEM 7759choke me 7760#endif 7761 7762_ACEOF 7763if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7764 $EGREP "choke me" >/dev/null 2>&1; then : 7765 gl_cv_pragma_columns=yes 7766else 7767 gl_cv_pragma_columns=no 7768fi 7769rm -f conftest* 7770 7771 7772fi 7773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5 7774$as_echo "$gl_cv_pragma_columns" >&6; } 7775 if test $gl_cv_pragma_columns = yes; then 7776 PRAGMA_COLUMNS="#pragma COLUMNS 10000" 7777 else 7778 PRAGMA_COLUMNS= 7779 fi 7780 7781 7782 7783 7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5 7785$as_echo_n "checking for complete errno.h... " >&6; } 7786if test "${gl_cv_header_errno_h_complete+set}" = set; then : 7787 $as_echo_n "(cached) " >&6 7788else 7789 7790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7791/* end confdefs.h. */ 7792 7793#include <errno.h> 7794#if !defined ENOMSG 7795booboo 7796#endif 7797#if !defined EIDRM 7798booboo 7799#endif 7800#if !defined ENOLINK 7801booboo 7802#endif 7803#if !defined EPROTO 7804booboo 7805#endif 7806#if !defined EMULTIHOP 7807booboo 7808#endif 7809#if !defined EBADMSG 7810booboo 7811#endif 7812#if !defined EOVERFLOW 7813booboo 7814#endif 7815#if !defined ENOTSUP 7816booboo 7817#endif 7818#if !defined ENETRESET 7819booboo 7820#endif 7821#if !defined ECONNABORTED 7822booboo 7823#endif 7824#if !defined ESTALE 7825booboo 7826#endif 7827#if !defined EDQUOT 7828booboo 7829#endif 7830#if !defined ECANCELED 7831booboo 7832#endif 7833 7834_ACEOF 7835if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7836 $EGREP "booboo" >/dev/null 2>&1; then : 7837 gl_cv_header_errno_h_complete=no 7838else 7839 gl_cv_header_errno_h_complete=yes 7840fi 7841rm -f conftest* 7842 7843 7844fi 7845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5 7846$as_echo "$gl_cv_header_errno_h_complete" >&6; } 7847 if test $gl_cv_header_errno_h_complete = yes; then 7848 ERRNO_H='' 7849 else 7850 7851 7852 7853 7854 7855 7856 7857 7858 if test $gl_cv_have_include_next = yes; then 7859 gl_cv_next_errno_h='<'errno.h'>' 7860 else 7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5 7862$as_echo_n "checking absolute name of <errno.h>... " >&6; } 7863if test "${gl_cv_next_errno_h+set}" = set; then : 7864 $as_echo_n "(cached) " >&6 7865else 7866 7867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7868/* end confdefs.h. */ 7869#include <errno.h> 7870 7871_ACEOF 7872 case "$host_os" in 7873 aix*) gl_absname_cpp="$ac_cpp -C" ;; 7874 *) gl_absname_cpp="$ac_cpp" ;; 7875 esac 7876 7877 case "$host_os" in 7878 mingw*) 7879 gl_dirsep_regex='[/\\]' 7880 ;; 7881 *) 7882 gl_dirsep_regex='\/' 7883 ;; 7884 esac 7885 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 7886 7887 gl_header_literal_regex=`echo 'errno.h' \ 7888 | sed -e "$gl_make_literal_regex_sed"` 7889 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 7890 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 7891 s|^/[^/]|//&| 7892 p 7893 q 7894 }' 7895 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 7896 sed -n "$gl_absolute_header_sed"`'"' 7897 7898 7899fi 7900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5 7901$as_echo "$gl_cv_next_errno_h" >&6; } 7902 fi 7903 NEXT_ERRNO_H=$gl_cv_next_errno_h 7904 7905 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 7906 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 7907 gl_next_as_first_directive='<'errno.h'>' 7908 else 7909 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 7910 gl_next_as_first_directive=$gl_cv_next_errno_h 7911 fi 7912 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive 7913 7914 7915 7916 7917 ERRNO_H='errno.h' 7918 fi 7919 7920 if test -n "$ERRNO_H"; then 7921 GL_GENERATE_ERRNO_H_TRUE= 7922 GL_GENERATE_ERRNO_H_FALSE='#' 7923else 7924 GL_GENERATE_ERRNO_H_TRUE='#' 7925 GL_GENERATE_ERRNO_H_FALSE= 7926fi 7927 7928 7929 if test -n "$ERRNO_H"; then 7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5 7931$as_echo_n "checking for EMULTIHOP value... " >&6; } 7932if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then : 7933 $as_echo_n "(cached) " >&6 7934else 7935 7936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7937/* end confdefs.h. */ 7938 7939#include <errno.h> 7940#ifdef EMULTIHOP 7941yes 7942#endif 7943 7944_ACEOF 7945if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7946 $EGREP "yes" >/dev/null 2>&1; then : 7947 gl_cv_header_errno_h_EMULTIHOP=yes 7948else 7949 gl_cv_header_errno_h_EMULTIHOP=no 7950fi 7951rm -f conftest* 7952 7953 if test $gl_cv_header_errno_h_EMULTIHOP = no; then 7954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7955/* end confdefs.h. */ 7956 7957#define _XOPEN_SOURCE_EXTENDED 1 7958#include <errno.h> 7959#ifdef EMULTIHOP 7960yes 7961#endif 7962 7963_ACEOF 7964if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7965 $EGREP "yes" >/dev/null 2>&1; then : 7966 gl_cv_header_errno_h_EMULTIHOP=hidden 7967fi 7968rm -f conftest* 7969 7970 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then 7971 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" " 7972#define _XOPEN_SOURCE_EXTENDED 1 7973#include <errno.h> 7974/* The following two lines are a workaround against an autoconf-2.52 bug. */ 7975#include <stdio.h> 7976#include <stdlib.h> 7977"; then : 7978 7979fi 7980 7981 fi 7982 fi 7983 7984fi 7985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5 7986$as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; } 7987 case $gl_cv_header_errno_h_EMULTIHOP in 7988 yes | no) 7989 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE= 7990 ;; 7991 *) 7992 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP" 7993 ;; 7994 esac 7995 7996 7997 fi 7998 7999 8000 if test -n "$ERRNO_H"; then 8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5 8002$as_echo_n "checking for ENOLINK value... " >&6; } 8003if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then : 8004 $as_echo_n "(cached) " >&6 8005else 8006 8007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8008/* end confdefs.h. */ 8009 8010#include <errno.h> 8011#ifdef ENOLINK 8012yes 8013#endif 8014 8015_ACEOF 8016if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8017 $EGREP "yes" >/dev/null 2>&1; then : 8018 gl_cv_header_errno_h_ENOLINK=yes 8019else 8020 gl_cv_header_errno_h_ENOLINK=no 8021fi 8022rm -f conftest* 8023 8024 if test $gl_cv_header_errno_h_ENOLINK = no; then 8025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8026/* end confdefs.h. */ 8027 8028#define _XOPEN_SOURCE_EXTENDED 1 8029#include <errno.h> 8030#ifdef ENOLINK 8031yes 8032#endif 8033 8034_ACEOF 8035if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8036 $EGREP "yes" >/dev/null 2>&1; then : 8037 gl_cv_header_errno_h_ENOLINK=hidden 8038fi 8039rm -f conftest* 8040 8041 if test $gl_cv_header_errno_h_ENOLINK = hidden; then 8042 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" " 8043#define _XOPEN_SOURCE_EXTENDED 1 8044#include <errno.h> 8045/* The following two lines are a workaround against an autoconf-2.52 bug. */ 8046#include <stdio.h> 8047#include <stdlib.h> 8048"; then : 8049 8050fi 8051 8052 fi 8053 fi 8054 8055fi 8056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5 8057$as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; } 8058 case $gl_cv_header_errno_h_ENOLINK in 8059 yes | no) 8060 ENOLINK_HIDDEN=0; ENOLINK_VALUE= 8061 ;; 8062 *) 8063 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK" 8064 ;; 8065 esac 8066 8067 8068 fi 8069 8070 8071 if test -n "$ERRNO_H"; then 8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5 8073$as_echo_n "checking for EOVERFLOW value... " >&6; } 8074if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then : 8075 $as_echo_n "(cached) " >&6 8076else 8077 8078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8079/* end confdefs.h. */ 8080 8081#include <errno.h> 8082#ifdef EOVERFLOW 8083yes 8084#endif 8085 8086_ACEOF 8087if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8088 $EGREP "yes" >/dev/null 2>&1; then : 8089 gl_cv_header_errno_h_EOVERFLOW=yes 8090else 8091 gl_cv_header_errno_h_EOVERFLOW=no 8092fi 8093rm -f conftest* 8094 8095 if test $gl_cv_header_errno_h_EOVERFLOW = no; then 8096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8097/* end confdefs.h. */ 8098 8099#define _XOPEN_SOURCE_EXTENDED 1 8100#include <errno.h> 8101#ifdef EOVERFLOW 8102yes 8103#endif 8104 8105_ACEOF 8106if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8107 $EGREP "yes" >/dev/null 2>&1; then : 8108 gl_cv_header_errno_h_EOVERFLOW=hidden 8109fi 8110rm -f conftest* 8111 8112 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then 8113 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" " 8114#define _XOPEN_SOURCE_EXTENDED 1 8115#include <errno.h> 8116/* The following two lines are a workaround against an autoconf-2.52 bug. */ 8117#include <stdio.h> 8118#include <stdlib.h> 8119"; then : 8120 8121fi 8122 8123 fi 8124 fi 8125 8126fi 8127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5 8128$as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; } 8129 case $gl_cv_header_errno_h_EOVERFLOW in 8130 yes | no) 8131 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE= 8132 ;; 8133 *) 8134 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW" 8135 ;; 8136 esac 8137 8138 8139 fi 8140 8141 8142ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" 8143if test "x$ac_cv_have_decl_strerror_r" = x""yes; then : 8144 ac_have_decl=1 8145else 8146 ac_have_decl=0 8147fi 8148 8149cat >>confdefs.h <<_ACEOF 8150#define HAVE_DECL_STRERROR_R $ac_have_decl 8151_ACEOF 8152 8153for ac_func in strerror_r 8154do : 8155 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" 8156if test "x$ac_cv_func_strerror_r" = x""yes; then : 8157 cat >>confdefs.h <<_ACEOF 8158#define HAVE_STRERROR_R 1 8159_ACEOF 8160 8161fi 8162done 8163 8164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 8165$as_echo_n "checking whether strerror_r returns char *... " >&6; } 8166if test "${ac_cv_func_strerror_r_char_p+set}" = set; then : 8167 $as_echo_n "(cached) " >&6 8168else 8169 8170 ac_cv_func_strerror_r_char_p=no 8171 if test $ac_cv_have_decl_strerror_r = yes; then 8172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8173/* end confdefs.h. */ 8174$ac_includes_default 8175int 8176main () 8177{ 8178 8179 char buf[100]; 8180 char x = *strerror_r (0, buf, sizeof buf); 8181 char *p = strerror_r (0, buf, sizeof buf); 8182 return !p || x; 8183 8184 ; 8185 return 0; 8186} 8187_ACEOF 8188if ac_fn_c_try_compile "$LINENO"; then : 8189 ac_cv_func_strerror_r_char_p=yes 8190fi 8191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8192 else 8193 # strerror_r is not declared. Choose between 8194 # systems that have relatively inaccessible declarations for the 8195 # function. BeOS and DEC UNIX 4.0 fall in this category, but the 8196 # former has a strerror_r that returns char*, while the latter 8197 # has a strerror_r that returns `int'. 8198 # This test should segfault on the DEC system. 8199 if test "$cross_compiling" = yes; then : 8200 : 8201else 8202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8203/* end confdefs.h. */ 8204$ac_includes_default 8205 extern char *strerror_r (); 8206int 8207main () 8208{ 8209char buf[100]; 8210 char x = *strerror_r (0, buf, sizeof buf); 8211 return ! isalpha (x); 8212 ; 8213 return 0; 8214} 8215_ACEOF 8216if ac_fn_c_try_run "$LINENO"; then : 8217 ac_cv_func_strerror_r_char_p=yes 8218fi 8219rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8220 conftest.$ac_objext conftest.beam conftest.$ac_ext 8221fi 8222 8223 fi 8224 8225fi 8226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 8227$as_echo "$ac_cv_func_strerror_r_char_p" >&6; } 8228if test $ac_cv_func_strerror_r_char_p = yes; then 8229 8230$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h 8231 8232fi 8233 8234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 8235$as_echo_n "checking for inline... " >&6; } 8236if test "${ac_cv_c_inline+set}" = set; then : 8237 $as_echo_n "(cached) " >&6 8238else 8239 ac_cv_c_inline=no 8240for ac_kw in inline __inline__ __inline; do 8241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8242/* end confdefs.h. */ 8243#ifndef __cplusplus 8244typedef int foo_t; 8245static $ac_kw foo_t static_foo () {return 0; } 8246$ac_kw foo_t foo () {return 0; } 8247#endif 8248 8249_ACEOF 8250if ac_fn_c_try_compile "$LINENO"; then : 8251 ac_cv_c_inline=$ac_kw 8252fi 8253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8254 test "$ac_cv_c_inline" != no && break 8255done 8256 8257fi 8258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 8259$as_echo "$ac_cv_c_inline" >&6; } 8260 8261case $ac_cv_c_inline in 8262 inline | yes) ;; 8263 *) 8264 case $ac_cv_c_inline in 8265 no) ac_val=;; 8266 *) ac_val=$ac_cv_c_inline;; 8267 esac 8268 cat >>confdefs.h <<_ACEOF 8269#ifndef __cplusplus 8270#define inline $ac_val 8271#endif 8272_ACEOF 8273 ;; 8274esac 8275 8276 8277 XGETTEXT_EXTRA_OPTIONS= 8278 8279 8280 GNULIB_FCNTL=0; 8281 GNULIB_NONBLOCKING=0; 8282 GNULIB_OPEN=0; 8283 GNULIB_OPENAT=0; 8284 HAVE_FCNTL=1; 8285 HAVE_OPENAT=1; 8286 REPLACE_FCNTL=0; 8287 REPLACE_OPEN=0; 8288 REPLACE_OPENAT=0; 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 : 8310 8311 8312 8313 8314 8315 8316 : 8317 8318 8319 8320 8321 8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5 8323$as_echo_n "checking for working fcntl.h... " >&6; } 8324if test "${gl_cv_header_working_fcntl_h+set}" = set; then : 8325 $as_echo_n "(cached) " >&6 8326else 8327 if test "$cross_compiling" = yes; then : 8328 gl_cv_header_working_fcntl_h=cross-compiling 8329else 8330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8331/* end confdefs.h. */ 8332#include <sys/types.h> 8333 #include <sys/stat.h> 8334 #if HAVE_UNISTD_H 8335 # include <unistd.h> 8336 #else /* on Windows with MSVC */ 8337 # include <io.h> 8338 # include <stdlib.h> 8339 # defined sleep(n) _sleep ((n) * 1000) 8340 #endif 8341 #include <fcntl.h> 8342 #ifndef O_NOATIME 8343 #define O_NOATIME 0 8344 #endif 8345 #ifndef O_NOFOLLOW 8346 #define O_NOFOLLOW 0 8347 #endif 8348 static int const constants[] = 8349 { 8350 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND, 8351 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY 8352 }; 8353 8354int 8355main () 8356{ 8357 8358 int result = !constants; 8359 #if HAVE_SYMLINK 8360 { 8361 static char const sym[] = "conftest.sym"; 8362 if (symlink (".", sym) != 0) 8363 result |= 2; 8364 else 8365 { 8366 int fd = open (sym, O_RDONLY | O_NOFOLLOW); 8367 if (fd >= 0) 8368 { 8369 close (fd); 8370 result |= 4; 8371 } 8372 } 8373 unlink (sym); 8374 } 8375 #endif 8376 { 8377 static char const file[] = "confdefs.h"; 8378 int fd = open (file, O_RDONLY | O_NOATIME); 8379 if (fd < 0) 8380 result |= 8; 8381 else 8382 { 8383 struct stat st0; 8384 if (fstat (fd, &st0) != 0) 8385 result |= 16; 8386 else 8387 { 8388 char c; 8389 sleep (1); 8390 if (read (fd, &c, 1) != 1) 8391 result |= 24; 8392 else 8393 { 8394 if (close (fd) != 0) 8395 result |= 32; 8396 else 8397 { 8398 struct stat st1; 8399 if (stat (file, &st1) != 0) 8400 result |= 40; 8401 else 8402 if (st0.st_atime != st1.st_atime) 8403 result |= 64; 8404 } 8405 } 8406 } 8407 } 8408 } 8409 return result; 8410 ; 8411 return 0; 8412} 8413_ACEOF 8414if ac_fn_c_try_run "$LINENO"; then : 8415 gl_cv_header_working_fcntl_h=yes 8416else 8417 case $? in #( 8418 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #( 8419 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #( 8420 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #( 8421 *) gl_cv_header_working_fcntl_h='no';; 8422 esac 8423fi 8424rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8425 conftest.$ac_objext conftest.beam conftest.$ac_ext 8426fi 8427 8428fi 8429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5 8430$as_echo "$gl_cv_header_working_fcntl_h" >&6; } 8431 8432 case $gl_cv_header_working_fcntl_h in #( 8433 *O_NOATIME* | no | cross-compiling) ac_val=0;; #( 8434 *) ac_val=1;; 8435 esac 8436 8437cat >>confdefs.h <<_ACEOF 8438#define HAVE_WORKING_O_NOATIME $ac_val 8439_ACEOF 8440 8441 8442 case $gl_cv_header_working_fcntl_h in #( 8443 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #( 8444 *) ac_val=1;; 8445 esac 8446 8447cat >>confdefs.h <<_ACEOF 8448#define HAVE_WORKING_O_NOFOLLOW $ac_val 8449_ACEOF 8450 8451 8452ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 8453if test "x$ac_cv_type_pid_t" = x""yes; then : 8454 8455else 8456 8457cat >>confdefs.h <<_ACEOF 8458#define pid_t int 8459_ACEOF 8460 8461fi 8462 8463ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 8464if test "x$ac_cv_type_mode_t" = x""yes; then : 8465 8466else 8467 8468cat >>confdefs.h <<_ACEOF 8469#define mode_t int 8470_ACEOF 8471 8472fi 8473 8474 8475 GNULIB_DPRINTF=0; 8476 GNULIB_FCLOSE=0; 8477 GNULIB_FDOPEN=0; 8478 GNULIB_FFLUSH=0; 8479 GNULIB_FGETC=0; 8480 GNULIB_FGETS=0; 8481 GNULIB_FOPEN=0; 8482 GNULIB_FPRINTF=0; 8483 GNULIB_FPRINTF_POSIX=0; 8484 GNULIB_FPURGE=0; 8485 GNULIB_FPUTC=0; 8486 GNULIB_FPUTS=0; 8487 GNULIB_FREAD=0; 8488 GNULIB_FREOPEN=0; 8489 GNULIB_FSCANF=0; 8490 GNULIB_FSEEK=0; 8491 GNULIB_FSEEKO=0; 8492 GNULIB_FTELL=0; 8493 GNULIB_FTELLO=0; 8494 GNULIB_FWRITE=0; 8495 GNULIB_GETC=0; 8496 GNULIB_GETCHAR=0; 8497 GNULIB_GETDELIM=0; 8498 GNULIB_GETLINE=0; 8499 GNULIB_OBSTACK_PRINTF=0; 8500 GNULIB_OBSTACK_PRINTF_POSIX=0; 8501 GNULIB_PCLOSE=0; 8502 GNULIB_PERROR=0; 8503 GNULIB_POPEN=0; 8504 GNULIB_PRINTF=0; 8505 GNULIB_PRINTF_POSIX=0; 8506 GNULIB_PUTC=0; 8507 GNULIB_PUTCHAR=0; 8508 GNULIB_PUTS=0; 8509 GNULIB_REMOVE=0; 8510 GNULIB_RENAME=0; 8511 GNULIB_RENAMEAT=0; 8512 GNULIB_SCANF=0; 8513 GNULIB_SNPRINTF=0; 8514 GNULIB_SPRINTF_POSIX=0; 8515 GNULIB_STDIO_H_NONBLOCKING=0; 8516 GNULIB_STDIO_H_SIGPIPE=0; 8517 GNULIB_TMPFILE=0; 8518 GNULIB_VASPRINTF=0; 8519 GNULIB_VFSCANF=0; 8520 GNULIB_VSCANF=0; 8521 GNULIB_VDPRINTF=0; 8522 GNULIB_VFPRINTF=0; 8523 GNULIB_VFPRINTF_POSIX=0; 8524 GNULIB_VPRINTF=0; 8525 GNULIB_VPRINTF_POSIX=0; 8526 GNULIB_VSNPRINTF=0; 8527 GNULIB_VSPRINTF_POSIX=0; 8528 HAVE_DECL_FPURGE=1; 8529 HAVE_DECL_FSEEKO=1; 8530 HAVE_DECL_FTELLO=1; 8531 HAVE_DECL_GETDELIM=1; 8532 HAVE_DECL_GETLINE=1; 8533 HAVE_DECL_OBSTACK_PRINTF=1; 8534 HAVE_DECL_SNPRINTF=1; 8535 HAVE_DECL_VSNPRINTF=1; 8536 HAVE_DPRINTF=1; 8537 HAVE_FSEEKO=1; 8538 HAVE_FTELLO=1; 8539 HAVE_PCLOSE=1; 8540 HAVE_POPEN=1; 8541 HAVE_RENAMEAT=1; 8542 HAVE_VASPRINTF=1; 8543 HAVE_VDPRINTF=1; 8544 REPLACE_DPRINTF=0; 8545 REPLACE_FCLOSE=0; 8546 REPLACE_FDOPEN=0; 8547 REPLACE_FFLUSH=0; 8548 REPLACE_FOPEN=0; 8549 REPLACE_FPRINTF=0; 8550 REPLACE_FPURGE=0; 8551 REPLACE_FREOPEN=0; 8552 REPLACE_FSEEK=0; 8553 REPLACE_FSEEKO=0; 8554 REPLACE_FTELL=0; 8555 REPLACE_FTELLO=0; 8556 REPLACE_GETDELIM=0; 8557 REPLACE_GETLINE=0; 8558 REPLACE_OBSTACK_PRINTF=0; 8559 REPLACE_PERROR=0; 8560 REPLACE_POPEN=0; 8561 REPLACE_PRINTF=0; 8562 REPLACE_REMOVE=0; 8563 REPLACE_RENAME=0; 8564 REPLACE_RENAMEAT=0; 8565 REPLACE_SNPRINTF=0; 8566 REPLACE_SPRINTF=0; 8567 REPLACE_STDIO_READ_FUNCS=0; 8568 REPLACE_STDIO_WRITE_FUNCS=0; 8569 REPLACE_TMPFILE=0; 8570 REPLACE_VASPRINTF=0; 8571 REPLACE_VDPRINTF=0; 8572 REPLACE_VFPRINTF=0; 8573 REPLACE_VPRINTF=0; 8574 REPLACE_VSNPRINTF=0; 8575 REPLACE_VSPRINTF=0; 8576 8577 8578 ac_fn_c_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default" 8579if test "x$ac_cv_have_decl_getdelim" = x""yes; then : 8580 ac_have_decl=1 8581else 8582 ac_have_decl=0 8583fi 8584 8585cat >>confdefs.h <<_ACEOF 8586#define HAVE_DECL_GETDELIM $ac_have_decl 8587_ACEOF 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default" 8602if test "x$ac_cv_have_decl_getline" = x""yes; then : 8603 ac_have_decl=1 8604else 8605 ac_have_decl=0 8606fi 8607 8608cat >>confdefs.h <<_ACEOF 8609#define HAVE_DECL_GETLINE $ac_have_decl 8610_ACEOF 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 : 8629 8630 8631 8632 8633 8634 8635 8636 8637 if test $gl_cv_have_include_next = yes; then 8638 gl_cv_next_getopt_h='<'getopt.h'>' 8639 else 8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5 8641$as_echo_n "checking absolute name of <getopt.h>... " >&6; } 8642if test "${gl_cv_next_getopt_h+set}" = set; then : 8643 $as_echo_n "(cached) " >&6 8644else 8645 8646 if test $ac_cv_header_getopt_h = yes; then 8647 8648 8649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8650/* end confdefs.h. */ 8651#include <getopt.h> 8652 8653_ACEOF 8654 case "$host_os" in 8655 aix*) gl_absname_cpp="$ac_cpp -C" ;; 8656 *) gl_absname_cpp="$ac_cpp" ;; 8657 esac 8658 8659 case "$host_os" in 8660 mingw*) 8661 gl_dirsep_regex='[/\\]' 8662 ;; 8663 *) 8664 gl_dirsep_regex='\/' 8665 ;; 8666 esac 8667 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 8668 8669 gl_header_literal_regex=`echo 'getopt.h' \ 8670 | sed -e "$gl_make_literal_regex_sed"` 8671 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 8672 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 8673 s|^/[^/]|//&| 8674 p 8675 q 8676 }' 8677 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 8678 sed -n "$gl_absolute_header_sed"`'"' 8679 else 8680 gl_cv_next_getopt_h='<'getopt.h'>' 8681 fi 8682 8683 8684fi 8685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5 8686$as_echo "$gl_cv_next_getopt_h" >&6; } 8687 fi 8688 NEXT_GETOPT_H=$gl_cv_next_getopt_h 8689 8690 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 8691 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 8692 gl_next_as_first_directive='<'getopt.h'>' 8693 else 8694 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 8695 gl_next_as_first_directive=$gl_cv_next_getopt_h 8696 fi 8697 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive 8698 8699 8700 8701 8702 if test $ac_cv_header_getopt_h = yes; then 8703 HAVE_GETOPT_H=1 8704 else 8705 HAVE_GETOPT_H=0 8706 fi 8707 8708 8709 gl_replace_getopt= 8710 8711 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then 8712 for ac_header in getopt.h 8713do : 8714 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" 8715if test "x$ac_cv_header_getopt_h" = x""yes; then : 8716 cat >>confdefs.h <<_ACEOF 8717#define HAVE_GETOPT_H 1 8718_ACEOF 8719 8720else 8721 gl_replace_getopt=yes 8722fi 8723 8724done 8725 8726 fi 8727 8728 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then 8729 for ac_func in getopt_long_only 8730do : 8731 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only" 8732if test "x$ac_cv_func_getopt_long_only" = x""yes; then : 8733 cat >>confdefs.h <<_ACEOF 8734#define HAVE_GETOPT_LONG_ONLY 1 8735_ACEOF 8736 8737else 8738 gl_replace_getopt=yes 8739fi 8740done 8741 8742 fi 8743 8744 if test -z "$gl_replace_getopt"; then 8745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5 8746$as_echo_n "checking whether getopt is POSIX compatible... " >&6; } 8747if test "${gl_cv_func_getopt_posix+set}" = set; then : 8748 $as_echo_n "(cached) " >&6 8749else 8750 8751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8752/* end confdefs.h. */ 8753#include <unistd.h> 8754int 8755main () 8756{ 8757int *p = &optreset; return optreset; 8758 ; 8759 return 0; 8760} 8761_ACEOF 8762if ac_fn_c_try_link "$LINENO"; then : 8763 gl_optind_min=1 8764else 8765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8766/* end confdefs.h. */ 8767#include <getopt.h> 8768int 8769main () 8770{ 8771return !getopt_clip; 8772 ; 8773 return 0; 8774} 8775_ACEOF 8776if ac_fn_c_try_compile "$LINENO"; then : 8777 gl_optind_min=1 8778else 8779 gl_optind_min=0 8780fi 8781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8782fi 8783rm -f core conftest.err conftest.$ac_objext \ 8784 conftest$ac_exeext conftest.$ac_ext 8785 8786 gl_save_CPPFLAGS=$CPPFLAGS 8787 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min" 8788 if test "$cross_compiling" = yes; then : 8789 case "$host_os" in 8790 mingw*) gl_cv_func_getopt_posix="guessing no";; 8791 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";; 8792 *) gl_cv_func_getopt_posix="guessing yes";; 8793 esac 8794 8795else 8796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8797/* end confdefs.h. */ 8798 8799#include <unistd.h> 8800#include <stdlib.h> 8801#include <string.h> 8802 8803int 8804main () 8805{ 8806 { 8807 static char program[] = "program"; 8808 static char a[] = "-a"; 8809 static char foo[] = "foo"; 8810 static char bar[] = "bar"; 8811 char *argv[] = { program, a, foo, bar, NULL }; 8812 int c; 8813 8814 optind = OPTIND_MIN; 8815 opterr = 0; 8816 8817 c = getopt (4, argv, "ab"); 8818 if (!(c == 'a')) 8819 return 1; 8820 c = getopt (4, argv, "ab"); 8821 if (!(c == -1)) 8822 return 2; 8823 if (!(optind == 2)) 8824 return 3; 8825 } 8826 /* Some internal state exists at this point. */ 8827 { 8828 static char program[] = "program"; 8829 static char donald[] = "donald"; 8830 static char p[] = "-p"; 8831 static char billy[] = "billy"; 8832 static char duck[] = "duck"; 8833 static char a[] = "-a"; 8834 static char bar[] = "bar"; 8835 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL }; 8836 int c; 8837 8838 optind = OPTIND_MIN; 8839 opterr = 0; 8840 8841 c = getopt (7, argv, "+abp:q:"); 8842 if (!(c == -1)) 8843 return 4; 8844 if (!(strcmp (argv[0], "program") == 0)) 8845 return 5; 8846 if (!(strcmp (argv[1], "donald") == 0)) 8847 return 6; 8848 if (!(strcmp (argv[2], "-p") == 0)) 8849 return 7; 8850 if (!(strcmp (argv[3], "billy") == 0)) 8851 return 8; 8852 if (!(strcmp (argv[4], "duck") == 0)) 8853 return 9; 8854 if (!(strcmp (argv[5], "-a") == 0)) 8855 return 10; 8856 if (!(strcmp (argv[6], "bar") == 0)) 8857 return 11; 8858 if (!(optind == 1)) 8859 return 12; 8860 } 8861 /* Detect MacOS 10.5, AIX 7.1 bug. */ 8862 { 8863 static char program[] = "program"; 8864 static char ab[] = "-ab"; 8865 char *argv[3] = { program, ab, NULL }; 8866 optind = OPTIND_MIN; 8867 opterr = 0; 8868 if (getopt (2, argv, "ab:") != 'a') 8869 return 13; 8870 if (getopt (2, argv, "ab:") != '?') 8871 return 14; 8872 if (optopt != 'b') 8873 return 15; 8874 if (optind != 2) 8875 return 16; 8876 } 8877 8878 return 0; 8879} 8880 8881_ACEOF 8882if ac_fn_c_try_run "$LINENO"; then : 8883 gl_cv_func_getopt_posix=yes 8884else 8885 gl_cv_func_getopt_posix=no 8886fi 8887rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8888 conftest.$ac_objext conftest.beam conftest.$ac_ext 8889fi 8890 8891 CPPFLAGS=$gl_save_CPPFLAGS 8892 8893fi 8894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5 8895$as_echo "$gl_cv_func_getopt_posix" >&6; } 8896 case "$gl_cv_func_getopt_posix" in 8897 *no) gl_replace_getopt=yes ;; 8898 esac 8899 fi 8900 8901 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then 8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5 8903$as_echo_n "checking for working GNU getopt function... " >&6; } 8904if test "${gl_cv_func_getopt_gnu+set}" = set; then : 8905 $as_echo_n "(cached) " >&6 8906else 8907 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the 8908 # optstring is necessary for programs like m4 that have POSIX-mandated 8909 # semantics for supporting options interspersed with files. 8910 # Also, since getopt_long is a GNU extension, we require optind=0. 8911 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT; 8912 # so take care to revert to the correct (non-)export state. 8913 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }' 8914 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in 8915 xx) gl_had_POSIXLY_CORRECT=exported ;; 8916 x) gl_had_POSIXLY_CORRECT=yes ;; 8917 *) gl_had_POSIXLY_CORRECT= ;; 8918 esac 8919 POSIXLY_CORRECT=1 8920 export POSIXLY_CORRECT 8921 if test "$cross_compiling" = yes; then : 8922 case $host_os:$ac_cv_have_decl_optreset in 8923 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;; 8924 *:yes) gl_cv_func_getopt_gnu=no;; 8925 *) gl_cv_func_getopt_gnu=yes;; 8926 esac 8927 8928else 8929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8930/* end confdefs.h. */ 8931#include <getopt.h> 8932 #include <stddef.h> 8933 #include <string.h> 8934 8935#include <stdlib.h> 8936#if defined __MACH__ && defined __APPLE__ 8937/* Avoid a crash on MacOS X. */ 8938#include <mach/mach.h> 8939#include <mach/mach_error.h> 8940#include <mach/thread_status.h> 8941#include <mach/exception.h> 8942#include <mach/task.h> 8943#include <pthread.h> 8944/* The exception port on which our thread listens. */ 8945static mach_port_t our_exception_port; 8946/* The main function of the thread listening for exceptions of type 8947 EXC_BAD_ACCESS. */ 8948static void * 8949mach_exception_thread (void *arg) 8950{ 8951 /* Buffer for a message to be received. */ 8952 struct { 8953 mach_msg_header_t head; 8954 mach_msg_body_t msgh_body; 8955 char data[1024]; 8956 } msg; 8957 mach_msg_return_t retval; 8958 /* Wait for a message on the exception port. */ 8959 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg), 8960 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL); 8961 if (retval != MACH_MSG_SUCCESS) 8962 abort (); 8963 exit (1); 8964} 8965static void 8966nocrash_init (void) 8967{ 8968 mach_port_t self = mach_task_self (); 8969 /* Allocate a port on which the thread shall listen for exceptions. */ 8970 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port) 8971 == KERN_SUCCESS) { 8972 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */ 8973 if (mach_port_insert_right (self, our_exception_port, our_exception_port, 8974 MACH_MSG_TYPE_MAKE_SEND) 8975 == KERN_SUCCESS) { 8976 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting 8977 for us. */ 8978 exception_mask_t mask = EXC_MASK_BAD_ACCESS; 8979 /* Create the thread listening on the exception port. */ 8980 pthread_attr_t attr; 8981 pthread_t thread; 8982 if (pthread_attr_init (&attr) == 0 8983 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0 8984 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) { 8985 pthread_attr_destroy (&attr); 8986 /* Replace the exception port info for these exceptions with our own. 8987 Note that we replace the exception port for the entire task, not only 8988 for a particular thread. This has the effect that when our exception 8989 port gets the message, the thread specific exception port has already 8990 been asked, and we don't need to bother about it. 8991 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */ 8992 task_set_exception_ports (self, mask, our_exception_port, 8993 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE); 8994 } 8995 } 8996 } 8997} 8998#elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ 8999/* Avoid a crash on native Windows. */ 9000#define WIN32_LEAN_AND_MEAN 9001#include <windows.h> 9002#include <winerror.h> 9003static LONG WINAPI 9004exception_filter (EXCEPTION_POINTERS *ExceptionInfo) 9005{ 9006 switch (ExceptionInfo->ExceptionRecord->ExceptionCode) 9007 { 9008 case EXCEPTION_ACCESS_VIOLATION: 9009 case EXCEPTION_IN_PAGE_ERROR: 9010 case EXCEPTION_STACK_OVERFLOW: 9011 case EXCEPTION_GUARD_PAGE: 9012 case EXCEPTION_PRIV_INSTRUCTION: 9013 case EXCEPTION_ILLEGAL_INSTRUCTION: 9014 case EXCEPTION_DATATYPE_MISALIGNMENT: 9015 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED: 9016 case EXCEPTION_NONCONTINUABLE_EXCEPTION: 9017 exit (1); 9018 } 9019 return EXCEPTION_CONTINUE_SEARCH; 9020} 9021static void 9022nocrash_init (void) 9023{ 9024 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter); 9025} 9026#else 9027/* Avoid a crash on POSIX systems. */ 9028#include <signal.h> 9029/* A POSIX signal handler. */ 9030static void 9031exception_handler (int sig) 9032{ 9033 exit (1); 9034} 9035static void 9036nocrash_init (void) 9037{ 9038#ifdef SIGSEGV 9039 signal (SIGSEGV, exception_handler); 9040#endif 9041#ifdef SIGBUS 9042 signal (SIGBUS, exception_handler); 9043#endif 9044} 9045#endif 9046 9047 9048int 9049main () 9050{ 9051 9052 int result = 0; 9053 9054 nocrash_init(); 9055 9056 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw, 9057 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5, 9058 OSF/1 5.1, Solaris 10. */ 9059 { 9060 static char conftest[] = "conftest"; 9061 static char plus[] = "-+"; 9062 char *argv[3] = { conftest, plus, NULL }; 9063 opterr = 0; 9064 if (getopt (2, argv, "+a") != '?') 9065 result |= 1; 9066 } 9067 /* This code succeeds on glibc 2.8, mingw, 9068 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11, 9069 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */ 9070 { 9071 static char program[] = "program"; 9072 static char p[] = "-p"; 9073 static char foo[] = "foo"; 9074 static char bar[] = "bar"; 9075 char *argv[] = { program, p, foo, bar, NULL }; 9076 9077 optind = 1; 9078 if (getopt (4, argv, "p::") != 'p') 9079 result |= 2; 9080 else if (optarg != NULL) 9081 result |= 4; 9082 else if (getopt (4, argv, "p::") != -1) 9083 result |= 6; 9084 else if (optind != 2) 9085 result |= 8; 9086 } 9087 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */ 9088 { 9089 static char program[] = "program"; 9090 static char foo[] = "foo"; 9091 static char p[] = "-p"; 9092 char *argv[] = { program, foo, p, NULL }; 9093 optind = 0; 9094 if (getopt (3, argv, "-p") != 1) 9095 result |= 16; 9096 else if (getopt (3, argv, "-p") != 'p') 9097 result |= 32; 9098 } 9099 /* This code fails on glibc 2.11. */ 9100 { 9101 static char program[] = "program"; 9102 static char b[] = "-b"; 9103 static char a[] = "-a"; 9104 char *argv[] = { program, b, a, NULL }; 9105 optind = opterr = 0; 9106 if (getopt (3, argv, "+:a:b") != 'b') 9107 result |= 64; 9108 else if (getopt (3, argv, "+:a:b") != ':') 9109 result |= 64; 9110 } 9111 /* This code dumps core on glibc 2.14. */ 9112 { 9113 static char program[] = "program"; 9114 static char w[] = "-W"; 9115 static char dummy[] = "dummy"; 9116 char *argv[] = { program, w, dummy, NULL }; 9117 optind = opterr = 1; 9118 if (getopt (3, argv, "W;") != 'W') 9119 result |= 128; 9120 } 9121 return result; 9122 9123 ; 9124 return 0; 9125} 9126_ACEOF 9127if ac_fn_c_try_run "$LINENO"; then : 9128 gl_cv_func_getopt_gnu=yes 9129else 9130 gl_cv_func_getopt_gnu=no 9131fi 9132rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9133 conftest.$ac_objext conftest.beam conftest.$ac_ext 9134fi 9135 9136 case $gl_had_POSIXLY_CORRECT in 9137 exported) ;; 9138 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;; 9139 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;; 9140 esac 9141 9142fi 9143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5 9144$as_echo "$gl_cv_func_getopt_gnu" >&6; } 9145 if test "$gl_cv_func_getopt_gnu" = "no"; then 9146 gl_replace_getopt=yes 9147 fi 9148 fi 9149 9150 9151 9152 9153 9154 REPLACE_GETOPT=0 9155 9156 9157 if test -n "$gl_replace_getopt"; then : 9158 9159 REPLACE_GETOPT=1 9160 9161fi 9162 9163 9164 if test $REPLACE_GETOPT = 1; then 9165 9166 GETOPT_H=getopt.h 9167 9168$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h 9169 9170 9171 9172 fi 9173 9174 9175 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default" 9176if test "x$ac_cv_have_decl_getenv" = x""yes; then : 9177 ac_have_decl=1 9178else 9179 ac_have_decl=0 9180fi 9181 9182cat >>confdefs.h <<_ACEOF 9183#define HAVE_DECL_GETENV $ac_have_decl 9184_ACEOF 9185 9186 9187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 9188$as_echo_n "checking for C/C++ restrict keyword... " >&6; } 9189if test "${ac_cv_c_restrict+set}" = set; then : 9190 $as_echo_n "(cached) " >&6 9191else 9192 ac_cv_c_restrict=no 9193 # The order here caters to the fact that C++ does not require restrict. 9194 for ac_kw in __restrict __restrict__ _Restrict restrict; do 9195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9196/* end confdefs.h. */ 9197typedef int * int_ptr; 9198 int foo (int_ptr $ac_kw ip) { 9199 return ip[0]; 9200 } 9201int 9202main () 9203{ 9204int s[1]; 9205 int * $ac_kw t = s; 9206 t[0] = 0; 9207 return foo(t) 9208 ; 9209 return 0; 9210} 9211_ACEOF 9212if ac_fn_c_try_compile "$LINENO"; then : 9213 ac_cv_c_restrict=$ac_kw 9214fi 9215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9216 test "$ac_cv_c_restrict" != no && break 9217 done 9218 9219fi 9220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 9221$as_echo "$ac_cv_c_restrict" >&6; } 9222 9223 case $ac_cv_c_restrict in 9224 restrict) ;; 9225 no) $as_echo "#define restrict /**/" >>confdefs.h 9226 ;; 9227 *) cat >>confdefs.h <<_ACEOF 9228#define restrict $ac_cv_c_restrict 9229_ACEOF 9230 ;; 9231 esac 9232 9233 9234 GNULIB_GETTIMEOFDAY=0; 9235 HAVE_GETTIMEOFDAY=1; 9236 HAVE_STRUCT_TIMEVAL=1; 9237 HAVE_SYS_TIME_H=1; 9238 REPLACE_GETTIMEOFDAY=0; 9239 REPLACE_STRUCT_TIMEVAL=0; 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 : 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 : 9263 9264 9265 9266 9267 9268 9269 9270 9271 if test $gl_cv_have_include_next = yes; then 9272 gl_cv_next_sys_time_h='<'sys/time.h'>' 9273 else 9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5 9275$as_echo_n "checking absolute name of <sys/time.h>... " >&6; } 9276if test "${gl_cv_next_sys_time_h+set}" = set; then : 9277 $as_echo_n "(cached) " >&6 9278else 9279 9280 if test $ac_cv_header_sys_time_h = yes; then 9281 9282 9283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9284/* end confdefs.h. */ 9285#include <sys/time.h> 9286 9287_ACEOF 9288 case "$host_os" in 9289 aix*) gl_absname_cpp="$ac_cpp -C" ;; 9290 *) gl_absname_cpp="$ac_cpp" ;; 9291 esac 9292 9293 case "$host_os" in 9294 mingw*) 9295 gl_dirsep_regex='[/\\]' 9296 ;; 9297 *) 9298 gl_dirsep_regex='\/' 9299 ;; 9300 esac 9301 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 9302 9303 gl_header_literal_regex=`echo 'sys/time.h' \ 9304 | sed -e "$gl_make_literal_regex_sed"` 9305 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 9306 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 9307 s|^/[^/]|//&| 9308 p 9309 q 9310 }' 9311 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 9312 sed -n "$gl_absolute_header_sed"`'"' 9313 else 9314 gl_cv_next_sys_time_h='<'sys/time.h'>' 9315 fi 9316 9317 9318fi 9319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5 9320$as_echo "$gl_cv_next_sys_time_h" >&6; } 9321 fi 9322 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h 9323 9324 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 9325 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 9326 gl_next_as_first_directive='<'sys/time.h'>' 9327 else 9328 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 9329 gl_next_as_first_directive=$gl_cv_next_sys_time_h 9330 fi 9331 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive 9332 9333 9334 9335 9336 9337 if test $ac_cv_header_sys_time_h != yes; then 9338 HAVE_SYS_TIME_H=0 9339 fi 9340 9341 9342 9343 9344 9345 : 9346 9347 9348 9349 9350 9351 if test $ac_cv_header_sys_socket_h != yes; then 9352 for ac_header in winsock2.h 9353do : 9354 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 9355if test "x$ac_cv_header_winsock2_h" = x""yes; then : 9356 cat >>confdefs.h <<_ACEOF 9357#define HAVE_WINSOCK2_H 1 9358_ACEOF 9359 9360fi 9361 9362done 9363 9364 fi 9365 if test "$ac_cv_header_winsock2_h" = yes; then 9366 HAVE_WINSOCK2_H=1 9367 UNISTD_H_HAVE_WINSOCK2_H=1 9368 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 9369 else 9370 HAVE_WINSOCK2_H=0 9371 fi 9372 9373 9374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 9375$as_echo_n "checking for struct timeval... " >&6; } 9376if test "${gl_cv_sys_struct_timeval+set}" = set; then : 9377 $as_echo_n "(cached) " >&6 9378else 9379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9380/* end confdefs.h. */ 9381#if HAVE_SYS_TIME_H 9382 #include <sys/time.h> 9383 #endif 9384 #include <time.h> 9385 #if HAVE_WINSOCK2_H 9386 # include <winsock2.h> 9387 #endif 9388 9389int 9390main () 9391{ 9392static struct timeval x; x.tv_sec = x.tv_usec; 9393 ; 9394 return 0; 9395} 9396_ACEOF 9397if ac_fn_c_try_compile "$LINENO"; then : 9398 gl_cv_sys_struct_timeval=yes 9399else 9400 gl_cv_sys_struct_timeval=no 9401fi 9402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9403 9404fi 9405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5 9406$as_echo "$gl_cv_sys_struct_timeval" >&6; } 9407 if test $gl_cv_sys_struct_timeval != yes; then 9408 HAVE_STRUCT_TIMEVAL=0 9409 else 9410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct struct timeval.tv_sec member" >&5 9411$as_echo_n "checking for correct struct timeval.tv_sec member... " >&6; } 9412if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then : 9413 $as_echo_n "(cached) " >&6 9414else 9415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9416/* end confdefs.h. */ 9417#if HAVE_SYS_TIME_H 9418 #include <sys/time.h> 9419 #endif 9420 #include <time.h> 9421 #if HAVE_WINSOCK2_H 9422 # include <winsock2.h> 9423 #endif 9424 9425int 9426main () 9427{ 9428static struct timeval x; 9429 typedef int verify_tv_sec_type[sizeof (x.tv_sec) == sizeof (time_t) ? 1 : -1]; 9430 9431 ; 9432 return 0; 9433} 9434_ACEOF 9435if ac_fn_c_try_compile "$LINENO"; then : 9436 gl_cv_sys_struct_timeval_tv_sec=yes 9437else 9438 gl_cv_sys_struct_timeval_tv_sec=no 9439fi 9440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9441 9442fi 9443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5 9444$as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; } 9445 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then 9446 REPLACE_STRUCT_TIMEVAL=1 9447 fi 9448 fi 9449 9450 9451 for gl_func in gettimeofday; do 9452 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 9453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 9454$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 9455if eval "test \"\${$as_gl_Symbol+set}\"" = set; then : 9456 $as_echo_n "(cached) " >&6 9457else 9458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9459/* end confdefs.h. */ 9460 9461#if HAVE_SYS_TIME_H 9462# include <sys/time.h> 9463#endif 9464#include <time.h> 9465 9466int 9467main () 9468{ 9469#undef $gl_func 9470 (void) $gl_func; 9471 ; 9472 return 0; 9473} 9474_ACEOF 9475if ac_fn_c_try_compile "$LINENO"; then : 9476 eval "$as_gl_Symbol=yes" 9477else 9478 eval "$as_gl_Symbol=no" 9479fi 9480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9481fi 9482eval ac_res=\$$as_gl_Symbol 9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9484$as_echo "$ac_res" >&6; } 9485 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 9486 cat >>confdefs.h <<_ACEOF 9487#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 9488_ACEOF 9489 9490 eval ac_cv_have_decl_$gl_func=yes 9491fi 9492 done 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 GNULIB_NL_LANGINFO=0; 9505 HAVE_NL_LANGINFO=1; 9506 REPLACE_NL_LANGINFO=0; 9507 9508 9509 9510 9511 9512 9513 9514 9515 case "$host_os" in 9516 mingw*) 9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5 9518$as_echo_n "checking for 64-bit off_t... " >&6; } 9519if test "${gl_cv_type_off_t_64+set}" = set; then : 9520 $as_echo_n "(cached) " >&6 9521else 9522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9523/* end confdefs.h. */ 9524#include <sys/types.h> 9525 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1]; 9526 9527int 9528main () 9529{ 9530 9531 ; 9532 return 0; 9533} 9534_ACEOF 9535if ac_fn_c_try_compile "$LINENO"; then : 9536 gl_cv_type_off_t_64=yes 9537else 9538 gl_cv_type_off_t_64=no 9539fi 9540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9541 9542fi 9543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5 9544$as_echo "$gl_cv_type_off_t_64" >&6; } 9545 if test $gl_cv_type_off_t_64 = no; then 9546 WINDOWS_64_BIT_OFF_T=1 9547 else 9548 WINDOWS_64_BIT_OFF_T=0 9549 fi 9550 WINDOWS_64_BIT_ST_SIZE=1 9551 ;; 9552 *) 9553 WINDOWS_64_BIT_OFF_T=0 9554 WINDOWS_64_BIT_ST_SIZE=0 9555 ;; 9556 esac 9557 9558 9559 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default" 9560if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then : 9561 ac_have_decl=1 9562else 9563 ac_have_decl=0 9564fi 9565 9566cat >>confdefs.h <<_ACEOF 9567#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl 9568_ACEOF 9569 9570 9571 9572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5 9573$as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; } 9574if test "${ac_cv_gnu_library_2_1+set}" = set; then : 9575 $as_echo_n "(cached) " >&6 9576else 9577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9578/* end confdefs.h. */ 9579 9580#include <features.h> 9581#ifdef __GNU_LIBRARY__ 9582 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) 9583 Lucky GNU user 9584 #endif 9585#endif 9586#ifdef __UCLIBC__ 9587 Lucky user 9588#endif 9589 9590_ACEOF 9591if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9592 $EGREP "Lucky" >/dev/null 2>&1; then : 9593 ac_cv_gnu_library_2_1=yes 9594else 9595 ac_cv_gnu_library_2_1=no 9596fi 9597rm -f conftest* 9598 9599 9600 9601fi 9602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 9603$as_echo "$ac_cv_gnu_library_2_1" >&6; } 9604 9605 GLIBC21="$ac_cv_gnu_library_2_1" 9606 9607 9608 9609 GNULIB_LOCALECONV=0; 9610 GNULIB_SETLOCALE=0; 9611 GNULIB_DUPLOCALE=0; 9612 HAVE_DUPLOCALE=1; 9613 REPLACE_LOCALECONV=0; 9614 REPLACE_SETLOCALE=0; 9615 REPLACE_DUPLOCALE=0; 9616 REPLACE_STRUCT_LCONV=0; 9617 9618 9619 REPLACE_NULL=0; 9620 HAVE_WCHAR_T=1; 9621 9622 9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 9624$as_echo_n "checking for wchar_t... " >&6; } 9625if test "${gt_cv_c_wchar_t+set}" = set; then : 9626 $as_echo_n "(cached) " >&6 9627else 9628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9629/* end confdefs.h. */ 9630#include <stddef.h> 9631 wchar_t foo = (wchar_t)'\0'; 9632int 9633main () 9634{ 9635 9636 ; 9637 return 0; 9638} 9639_ACEOF 9640if ac_fn_c_try_compile "$LINENO"; then : 9641 gt_cv_c_wchar_t=yes 9642else 9643 gt_cv_c_wchar_t=no 9644fi 9645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9646fi 9647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 9648$as_echo "$gt_cv_c_wchar_t" >&6; } 9649 if test $gt_cv_c_wchar_t = yes; then 9650 9651$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h 9652 9653 fi 9654 9655 9656 9657 9658 STDDEF_H= 9659 if test $gt_cv_c_wchar_t = no; then 9660 HAVE_WCHAR_T=0 9661 STDDEF_H=stddef.h 9662 fi 9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5 9664$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; } 9665if test "${gl_cv_decl_null_works+set}" = set; then : 9666 $as_echo_n "(cached) " >&6 9667else 9668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9669/* end confdefs.h. */ 9670#include <stddef.h> 9671 int test[2 * (sizeof NULL == sizeof (void *)) -1]; 9672 9673int 9674main () 9675{ 9676 9677 ; 9678 return 0; 9679} 9680_ACEOF 9681if ac_fn_c_try_compile "$LINENO"; then : 9682 gl_cv_decl_null_works=yes 9683else 9684 gl_cv_decl_null_works=no 9685fi 9686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9687fi 9688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5 9689$as_echo "$gl_cv_decl_null_works" >&6; } 9690 if test $gl_cv_decl_null_works = no; then 9691 REPLACE_NULL=1 9692 STDDEF_H=stddef.h 9693 fi 9694 9695 if test -n "$STDDEF_H"; then 9696 GL_GENERATE_STDDEF_H_TRUE= 9697 GL_GENERATE_STDDEF_H_FALSE='#' 9698else 9699 GL_GENERATE_STDDEF_H_TRUE='#' 9700 GL_GENERATE_STDDEF_H_FALSE= 9701fi 9702 9703 if test -n "$STDDEF_H"; then 9704 9705 9706 9707 9708 9709 9710 9711 9712 if test $gl_cv_have_include_next = yes; then 9713 gl_cv_next_stddef_h='<'stddef.h'>' 9714 else 9715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5 9716$as_echo_n "checking absolute name of <stddef.h>... " >&6; } 9717if test "${gl_cv_next_stddef_h+set}" = set; then : 9718 $as_echo_n "(cached) " >&6 9719else 9720 9721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9722/* end confdefs.h. */ 9723#include <stddef.h> 9724 9725_ACEOF 9726 case "$host_os" in 9727 aix*) gl_absname_cpp="$ac_cpp -C" ;; 9728 *) gl_absname_cpp="$ac_cpp" ;; 9729 esac 9730 9731 case "$host_os" in 9732 mingw*) 9733 gl_dirsep_regex='[/\\]' 9734 ;; 9735 *) 9736 gl_dirsep_regex='\/' 9737 ;; 9738 esac 9739 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 9740 9741 gl_header_literal_regex=`echo 'stddef.h' \ 9742 | sed -e "$gl_make_literal_regex_sed"` 9743 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 9744 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 9745 s|^/[^/]|//&| 9746 p 9747 q 9748 }' 9749 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 9750 sed -n "$gl_absolute_header_sed"`'"' 9751 9752 9753fi 9754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5 9755$as_echo "$gl_cv_next_stddef_h" >&6; } 9756 fi 9757 NEXT_STDDEF_H=$gl_cv_next_stddef_h 9758 9759 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 9760 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 9761 gl_next_as_first_directive='<'stddef.h'>' 9762 else 9763 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 9764 gl_next_as_first_directive=$gl_cv_next_stddef_h 9765 fi 9766 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive 9767 9768 9769 9770 9771 fi 9772 9773 9774 9775 9776 9777 9778 9779 GNULIB_FCHMODAT=0; 9780 GNULIB_FSTAT=0; 9781 GNULIB_FSTATAT=0; 9782 GNULIB_FUTIMENS=0; 9783 GNULIB_LCHMOD=0; 9784 GNULIB_LSTAT=0; 9785 GNULIB_MKDIRAT=0; 9786 GNULIB_MKFIFO=0; 9787 GNULIB_MKFIFOAT=0; 9788 GNULIB_MKNOD=0; 9789 GNULIB_MKNODAT=0; 9790 GNULIB_STAT=0; 9791 GNULIB_UTIMENSAT=0; 9792 HAVE_FCHMODAT=1; 9793 HAVE_FSTATAT=1; 9794 HAVE_FUTIMENS=1; 9795 HAVE_LCHMOD=1; 9796 HAVE_LSTAT=1; 9797 HAVE_MKDIRAT=1; 9798 HAVE_MKFIFO=1; 9799 HAVE_MKFIFOAT=1; 9800 HAVE_MKNOD=1; 9801 HAVE_MKNODAT=1; 9802 HAVE_UTIMENSAT=1; 9803 REPLACE_FSTAT=0; 9804 REPLACE_FSTATAT=0; 9805 REPLACE_FUTIMENS=0; 9806 REPLACE_LSTAT=0; 9807 REPLACE_MKDIR=0; 9808 REPLACE_MKFIFO=0; 9809 REPLACE_MKNOD=0; 9810 REPLACE_STAT=0; 9811 REPLACE_UTIMENSAT=0; 9812 9813 9814 9815 9816 9817 9818 9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 9820$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } 9821if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then : 9822 $as_echo_n "(cached) " >&6 9823else 9824 rm -f conftest.sym conftest.file 9825 echo >conftest.file 9826 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then 9827 if test "$cross_compiling" = yes; then : 9828 # When cross-compiling, be pessimistic so we will end up using the 9829 # replacement version of lstat that checks for trailing slashes and 9830 # calls lstat a second time when necessary. 9831 gl_cv_func_lstat_dereferences_slashed_symlink=no 9832 9833else 9834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9835/* end confdefs.h. */ 9836$ac_includes_default 9837int 9838main () 9839{ 9840struct stat sbuf; 9841 /* Linux will dereference the symlink and fail, as required by 9842 POSIX. That is better in the sense that it means we will not 9843 have to compile and use the lstat wrapper. */ 9844 return lstat ("conftest.sym/", &sbuf) == 0; 9845 9846 ; 9847 return 0; 9848} 9849_ACEOF 9850if ac_fn_c_try_run "$LINENO"; then : 9851 gl_cv_func_lstat_dereferences_slashed_symlink=yes 9852else 9853 gl_cv_func_lstat_dereferences_slashed_symlink=no 9854fi 9855rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9856 conftest.$ac_objext conftest.beam conftest.$ac_ext 9857fi 9858 9859 else 9860 # If the 'ln -s' command failed, then we probably don't even 9861 # have an lstat function. 9862 gl_cv_func_lstat_dereferences_slashed_symlink=no 9863 fi 9864 rm -f conftest.sym conftest.file 9865 9866fi 9867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5 9868$as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; } 9869 test $gl_cv_func_lstat_dereferences_slashed_symlink = yes && 9870 9871cat >>confdefs.h <<_ACEOF 9872#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 9873_ACEOF 9874 9875 9876 9877 GNULIB__EXIT=0; 9878 GNULIB_ATOLL=0; 9879 GNULIB_CALLOC_POSIX=0; 9880 GNULIB_CANONICALIZE_FILE_NAME=0; 9881 GNULIB_GETLOADAVG=0; 9882 GNULIB_GETSUBOPT=0; 9883 GNULIB_GRANTPT=0; 9884 GNULIB_MALLOC_POSIX=0; 9885 GNULIB_MBTOWC=0; 9886 GNULIB_MKDTEMP=0; 9887 GNULIB_MKOSTEMP=0; 9888 GNULIB_MKOSTEMPS=0; 9889 GNULIB_MKSTEMP=0; 9890 GNULIB_MKSTEMPS=0; 9891 GNULIB_POSIX_OPENPT=0; 9892 GNULIB_PTSNAME=0; 9893 GNULIB_PTSNAME_R=0; 9894 GNULIB_PUTENV=0; 9895 GNULIB_RANDOM=0; 9896 GNULIB_RANDOM_R=0; 9897 GNULIB_REALLOC_POSIX=0; 9898 GNULIB_REALPATH=0; 9899 GNULIB_RPMATCH=0; 9900 GNULIB_SETENV=0; 9901 GNULIB_STRTOD=0; 9902 GNULIB_STRTOLL=0; 9903 GNULIB_STRTOULL=0; 9904 GNULIB_SYSTEM_POSIX=0; 9905 GNULIB_UNLOCKPT=0; 9906 GNULIB_UNSETENV=0; 9907 GNULIB_WCTOMB=0; 9908 HAVE__EXIT=1; 9909 HAVE_ATOLL=1; 9910 HAVE_CANONICALIZE_FILE_NAME=1; 9911 HAVE_DECL_GETLOADAVG=1; 9912 HAVE_GETSUBOPT=1; 9913 HAVE_GRANTPT=1; 9914 HAVE_MKDTEMP=1; 9915 HAVE_MKOSTEMP=1; 9916 HAVE_MKOSTEMPS=1; 9917 HAVE_MKSTEMP=1; 9918 HAVE_MKSTEMPS=1; 9919 HAVE_POSIX_OPENPT=1; 9920 HAVE_PTSNAME=1; 9921 HAVE_PTSNAME_R=1; 9922 HAVE_RANDOM=1; 9923 HAVE_RANDOM_H=1; 9924 HAVE_RANDOM_R=1; 9925 HAVE_REALPATH=1; 9926 HAVE_RPMATCH=1; 9927 HAVE_SETENV=1; 9928 HAVE_DECL_SETENV=1; 9929 HAVE_STRTOD=1; 9930 HAVE_STRTOLL=1; 9931 HAVE_STRTOULL=1; 9932 HAVE_STRUCT_RANDOM_DATA=1; 9933 HAVE_SYS_LOADAVG_H=0; 9934 HAVE_UNLOCKPT=1; 9935 HAVE_DECL_UNSETENV=1; 9936 REPLACE_CALLOC=0; 9937 REPLACE_CANONICALIZE_FILE_NAME=0; 9938 REPLACE_MALLOC=0; 9939 REPLACE_MBTOWC=0; 9940 REPLACE_MKSTEMP=0; 9941 REPLACE_PTSNAME_R=0; 9942 REPLACE_PUTENV=0; 9943 REPLACE_RANDOM_R=0; 9944 REPLACE_REALLOC=0; 9945 REPLACE_REALPATH=0; 9946 REPLACE_SETENV=0; 9947 REPLACE_STRTOD=0; 9948 REPLACE_UNSETENV=0; 9949 REPLACE_WCTOMB=0; 9950 9951 9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5 9953$as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; } 9954if test "${gl_cv_func_malloc_posix+set}" = set; then : 9955 $as_echo_n "(cached) " >&6 9956else 9957 9958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9959/* end confdefs.h. */ 9960 9961int 9962main () 9963{ 9964#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ 9965 choke me 9966 #endif 9967 9968 ; 9969 return 0; 9970} 9971_ACEOF 9972if ac_fn_c_try_compile "$LINENO"; then : 9973 gl_cv_func_malloc_posix=yes 9974else 9975 gl_cv_func_malloc_posix=no 9976fi 9977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9978 9979fi 9980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5 9981$as_echo "$gl_cv_func_malloc_posix" >&6; } 9982 9983 9984 9985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 9986$as_echo_n "checking for mbstate_t... " >&6; } 9987if test "${ac_cv_type_mbstate_t+set}" = set; then : 9988 $as_echo_n "(cached) " >&6 9989else 9990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9991/* end confdefs.h. */ 9992$ac_includes_default 9993/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 9994 <wchar.h>. 9995 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 9996 included before <wchar.h>. */ 9997#include <stddef.h> 9998#include <stdio.h> 9999#include <time.h> 10000#include <wchar.h> 10001int 10002main () 10003{ 10004mbstate_t x; return sizeof x; 10005 ; 10006 return 0; 10007} 10008_ACEOF 10009if ac_fn_c_try_compile "$LINENO"; then : 10010 ac_cv_type_mbstate_t=yes 10011else 10012 ac_cv_type_mbstate_t=no 10013fi 10014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10015fi 10016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 10017$as_echo "$ac_cv_type_mbstate_t" >&6; } 10018 if test $ac_cv_type_mbstate_t = yes; then 10019 10020$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h 10021 10022 else 10023 10024$as_echo "#define mbstate_t int" >>confdefs.h 10025 10026 fi 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5 10042$as_echo_n "checking for a traditional japanese locale... " >&6; } 10043if test "${gt_cv_locale_ja+set}" = set; then : 10044 $as_echo_n "(cached) " >&6 10045else 10046 10047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10048/* end confdefs.h. */ 10049 10050#include <locale.h> 10051#include <time.h> 10052#if HAVE_LANGINFO_CODESET 10053# include <langinfo.h> 10054#endif 10055#include <stdlib.h> 10056#include <string.h> 10057struct tm t; 10058char buf[16]; 10059int main () 10060{ 10061 const char *p; 10062 /* Check whether the given locale name is recognized by the system. */ 10063#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__ 10064 /* On native Windows, setlocale(category, "") looks at the system settings, 10065 not at the environment variables. Also, when an encoding suffix such 10066 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 10067 category of the locale to "C". */ 10068 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 10069 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 10070 return 1; 10071#else 10072 if (setlocale (LC_ALL, "") == NULL) return 1; 10073#endif 10074 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 10075 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 10076 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 10077 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 10078 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 10079 some unit tests fail. 10080 On MirBSD 10, when an unsupported locale is specified, setlocale() 10081 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 10082#if HAVE_LANGINFO_CODESET 10083 { 10084 const char *cs = nl_langinfo (CODESET); 10085 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 10086 || strcmp (cs, "UTF-8") == 0) 10087 return 1; 10088 } 10089#endif 10090#ifdef __CYGWIN__ 10091 /* On Cygwin, avoid locale names without encoding suffix, because the 10092 locale_charset() function relies on the encoding suffix. Note that 10093 LC_ALL is set on the command line. */ 10094 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 10095#endif 10096 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales 10097 on Cygwin 1.5.x. */ 10098 if (MB_CUR_MAX == 1) 10099 return 1; 10100 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. 10101 This excludes the UTF-8 encoding (except on MirBSD). */ 10102 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 10103 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; 10104 for (p = buf; *p != '\0'; p++) 10105 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) 10106 return 1; 10107 return 0; 10108} 10109 10110_ACEOF 10111 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10112 (eval $ac_link) 2>&5 10113 ac_status=$? 10114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10115 test $ac_status = 0; } && test -s conftest$ac_exeext; then 10116 case "$host_os" in 10117 # Handle native Windows specially, because there setlocale() interprets 10118 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 10119 # "fr" or "fra" as "French" or "French_France.1252", 10120 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 10121 # "ja" as "Japanese" or "Japanese_Japan.932", 10122 # and similar. 10123 mingw*) 10124 # Note that on native Windows, the Japanese locale is 10125 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we 10126 # cannot use it here. 10127 gt_cv_locale_ja=none 10128 ;; 10129 *) 10130 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 10131 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the 10132 # configure script would override the LC_ALL setting. Likewise for 10133 # LC_CTYPE, which is also set at the beginning of the configure script. 10134 # Test for the AIX locale name. 10135 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 10136 gt_cv_locale_ja=ja_JP 10137 else 10138 # Test for the locale name with explicit encoding suffix. 10139 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 10140 gt_cv_locale_ja=ja_JP.EUC-JP 10141 else 10142 # Test for the HP-UX, OSF/1, NetBSD locale name. 10143 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 10144 gt_cv_locale_ja=ja_JP.eucJP 10145 else 10146 # Test for the IRIX, FreeBSD locale name. 10147 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 10148 gt_cv_locale_ja=ja_JP.EUC 10149 else 10150 # Test for the Solaris 7 locale name. 10151 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 10152 gt_cv_locale_ja=ja 10153 else 10154 # Special test for NetBSD 1.6. 10155 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then 10156 gt_cv_locale_ja=ja_JP.eucJP 10157 else 10158 # None found. 10159 gt_cv_locale_ja=none 10160 fi 10161 fi 10162 fi 10163 fi 10164 fi 10165 fi 10166 ;; 10167 esac 10168 fi 10169 rm -fr conftest* 10170 10171fi 10172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5 10173$as_echo "$gt_cv_locale_ja" >&6; } 10174 LOCALE_JA=$gt_cv_locale_ja 10175 10176 10177 10178 10179 10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5 10181$as_echo_n "checking for a transitional chinese locale... " >&6; } 10182if test "${gt_cv_locale_zh_CN+set}" = set; then : 10183 $as_echo_n "(cached) " >&6 10184else 10185 10186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10187/* end confdefs.h. */ 10188 10189#include <locale.h> 10190#include <stdlib.h> 10191#include <time.h> 10192#if HAVE_LANGINFO_CODESET 10193# include <langinfo.h> 10194#endif 10195#include <stdlib.h> 10196#include <string.h> 10197struct tm t; 10198char buf[16]; 10199int main () 10200{ 10201 const char *p; 10202 /* Check whether the given locale name is recognized by the system. */ 10203#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__ 10204 /* On native Windows, setlocale(category, "") looks at the system settings, 10205 not at the environment variables. Also, when an encoding suffix such 10206 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 10207 category of the locale to "C". */ 10208 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 10209 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 10210 return 1; 10211#else 10212 if (setlocale (LC_ALL, "") == NULL) return 1; 10213#endif 10214 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 10215 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 10216 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 10217 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 10218 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 10219 some unit tests fail. 10220 On MirBSD 10, when an unsupported locale is specified, setlocale() 10221 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 10222#if HAVE_LANGINFO_CODESET 10223 { 10224 const char *cs = nl_langinfo (CODESET); 10225 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 10226 || strcmp (cs, "UTF-8") == 0) 10227 return 1; 10228 } 10229#endif 10230#ifdef __CYGWIN__ 10231 /* On Cygwin, avoid locale names without encoding suffix, because the 10232 locale_charset() function relies on the encoding suffix. Note that 10233 LC_ALL is set on the command line. */ 10234 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 10235#endif 10236 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. 10237 This excludes the UTF-8 encoding (except on MirBSD). */ 10238 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 10239 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; 10240 for (p = buf; *p != '\0'; p++) 10241 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) 10242 return 1; 10243 /* Check whether a typical GB18030 multibyte sequence is recognized as a 10244 single wide character. This excludes the GB2312 and GBK encodings. */ 10245 if (mblen ("\203\062\332\066", 5) != 4) 10246 return 1; 10247 return 0; 10248} 10249 10250_ACEOF 10251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10252 (eval $ac_link) 2>&5 10253 ac_status=$? 10254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10255 test $ac_status = 0; } && test -s conftest$ac_exeext; then 10256 case "$host_os" in 10257 # Handle native Windows specially, because there setlocale() interprets 10258 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 10259 # "fr" or "fra" as "French" or "French_France.1252", 10260 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 10261 # "ja" as "Japanese" or "Japanese_Japan.932", 10262 # and similar. 10263 mingw*) 10264 # Test for the hypothetical native Windows locale name. 10265 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 10266 gt_cv_locale_zh_CN=Chinese_China.54936 10267 else 10268 # None found. 10269 gt_cv_locale_zh_CN=none 10270 fi 10271 ;; 10272 solaris2.8) 10273 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are 10274 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK. 10275 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core. 10276 gt_cv_locale_zh_CN=none 10277 ;; 10278 *) 10279 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 10280 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the 10281 # configure script would override the LC_ALL setting. Likewise for 10282 # LC_CTYPE, which is also set at the beginning of the configure script. 10283 # Test for the locale name without encoding suffix. 10284 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 10285 gt_cv_locale_zh_CN=zh_CN 10286 else 10287 # Test for the locale name with explicit encoding suffix. 10288 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 10289 gt_cv_locale_zh_CN=zh_CN.GB18030 10290 else 10291 # None found. 10292 gt_cv_locale_zh_CN=none 10293 fi 10294 fi 10295 ;; 10296 esac 10297 else 10298 # If there was a link error, due to mblen(), the system is so old that 10299 # it certainly doesn't have a chinese locale. 10300 gt_cv_locale_zh_CN=none 10301 fi 10302 rm -fr conftest* 10303 10304fi 10305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5 10306$as_echo "$gt_cv_locale_zh_CN" >&6; } 10307 LOCALE_ZH_CN=$gt_cv_locale_zh_CN 10308 10309 10310 10311 10312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5 10313$as_echo_n "checking for a french Unicode locale... " >&6; } 10314if test "${gt_cv_locale_fr_utf8+set}" = set; then : 10315 $as_echo_n "(cached) " >&6 10316else 10317 10318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10319/* end confdefs.h. */ 10320 10321#include <locale.h> 10322#include <time.h> 10323#if HAVE_LANGINFO_CODESET 10324# include <langinfo.h> 10325#endif 10326#include <stdlib.h> 10327#include <string.h> 10328struct tm t; 10329char buf[16]; 10330int main () { 10331 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 10332 imitates locale dependent behaviour by looking at the environment 10333 variables, and all locales use the UTF-8 encoding. */ 10334#if !(defined __BEOS__ || defined __HAIKU__) 10335 /* Check whether the given locale name is recognized by the system. */ 10336# if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__ 10337 /* On native Windows, setlocale(category, "") looks at the system settings, 10338 not at the environment variables. Also, when an encoding suffix such 10339 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 10340 category of the locale to "C". */ 10341 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 10342 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 10343 return 1; 10344# else 10345 if (setlocale (LC_ALL, "") == NULL) return 1; 10346# endif 10347 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 10348 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 10349 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 10350 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 10351 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 10352 some unit tests fail. */ 10353# if HAVE_LANGINFO_CODESET 10354 { 10355 const char *cs = nl_langinfo (CODESET); 10356 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) 10357 return 1; 10358 } 10359# endif 10360# ifdef __CYGWIN__ 10361 /* On Cygwin, avoid locale names without encoding suffix, because the 10362 locale_charset() function relies on the encoding suffix. Note that 10363 LC_ALL is set on the command line. */ 10364 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 10365# endif 10366 /* Check whether in the abbreviation of the second month, the second 10367 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is 10368 two bytes long, with UTF-8 encoding. */ 10369 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 10370 if (strftime (buf, sizeof (buf), "%b", &t) < 4 10371 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v') 10372 return 1; 10373#endif 10374#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ 10375 /* Check whether the decimal separator is a comma. 10376 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point 10377 are nl_langinfo(RADIXCHAR) are both ".". */ 10378 if (localeconv () ->decimal_point[0] != ',') return 1; 10379#endif 10380 return 0; 10381} 10382 10383_ACEOF 10384 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10385 (eval $ac_link) 2>&5 10386 ac_status=$? 10387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10388 test $ac_status = 0; } && test -s conftest$ac_exeext; then 10389 case "$host_os" in 10390 # Handle native Windows specially, because there setlocale() interprets 10391 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 10392 # "fr" or "fra" as "French" or "French_France.1252", 10393 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 10394 # "ja" as "Japanese" or "Japanese_Japan.932", 10395 # and similar. 10396 mingw*) 10397 # Test for the hypothetical native Windows locale name. 10398 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 10399 gt_cv_locale_fr_utf8=French_France.65001 10400 else 10401 # None found. 10402 gt_cv_locale_fr_utf8=none 10403 fi 10404 ;; 10405 *) 10406 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 10407 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the 10408 # configure script would override the LC_ALL setting. Likewise for 10409 # LC_CTYPE, which is also set at the beginning of the configure script. 10410 # Test for the usual locale name. 10411 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 10412 gt_cv_locale_fr_utf8=fr_FR 10413 else 10414 # Test for the locale name with explicit encoding suffix. 10415 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 10416 gt_cv_locale_fr_utf8=fr_FR.UTF-8 10417 else 10418 # Test for the Solaris 7 locale name. 10419 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 10420 gt_cv_locale_fr_utf8=fr.UTF-8 10421 else 10422 # None found. 10423 gt_cv_locale_fr_utf8=none 10424 fi 10425 fi 10426 fi 10427 ;; 10428 esac 10429 fi 10430 rm -fr conftest* 10431 10432fi 10433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5 10434$as_echo "$gt_cv_locale_fr_utf8" >&6; } 10435 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 GNULIB_FFSL=0; 10450 GNULIB_FFSLL=0; 10451 GNULIB_MEMCHR=0; 10452 GNULIB_MEMMEM=0; 10453 GNULIB_MEMPCPY=0; 10454 GNULIB_MEMRCHR=0; 10455 GNULIB_RAWMEMCHR=0; 10456 GNULIB_STPCPY=0; 10457 GNULIB_STPNCPY=0; 10458 GNULIB_STRCHRNUL=0; 10459 GNULIB_STRDUP=0; 10460 GNULIB_STRNCAT=0; 10461 GNULIB_STRNDUP=0; 10462 GNULIB_STRNLEN=0; 10463 GNULIB_STRPBRK=0; 10464 GNULIB_STRSEP=0; 10465 GNULIB_STRSTR=0; 10466 GNULIB_STRCASESTR=0; 10467 GNULIB_STRTOK_R=0; 10468 GNULIB_MBSLEN=0; 10469 GNULIB_MBSNLEN=0; 10470 GNULIB_MBSCHR=0; 10471 GNULIB_MBSRCHR=0; 10472 GNULIB_MBSSTR=0; 10473 GNULIB_MBSCASECMP=0; 10474 GNULIB_MBSNCASECMP=0; 10475 GNULIB_MBSPCASECMP=0; 10476 GNULIB_MBSCASESTR=0; 10477 GNULIB_MBSCSPN=0; 10478 GNULIB_MBSPBRK=0; 10479 GNULIB_MBSSPN=0; 10480 GNULIB_MBSSEP=0; 10481 GNULIB_MBSTOK_R=0; 10482 GNULIB_STRERROR=0; 10483 GNULIB_STRERROR_R=0; 10484 GNULIB_STRSIGNAL=0; 10485 GNULIB_STRVERSCMP=0; 10486 HAVE_MBSLEN=0; 10487 HAVE_FFSL=1; 10488 HAVE_FFSLL=1; 10489 HAVE_MEMCHR=1; 10490 HAVE_DECL_MEMMEM=1; 10491 HAVE_MEMPCPY=1; 10492 HAVE_DECL_MEMRCHR=1; 10493 HAVE_RAWMEMCHR=1; 10494 HAVE_STPCPY=1; 10495 HAVE_STPNCPY=1; 10496 HAVE_STRCHRNUL=1; 10497 HAVE_DECL_STRDUP=1; 10498 HAVE_DECL_STRNDUP=1; 10499 HAVE_DECL_STRNLEN=1; 10500 HAVE_STRPBRK=1; 10501 HAVE_STRSEP=1; 10502 HAVE_STRCASESTR=1; 10503 HAVE_DECL_STRTOK_R=1; 10504 HAVE_DECL_STRERROR_R=1; 10505 HAVE_DECL_STRSIGNAL=1; 10506 HAVE_STRVERSCMP=1; 10507 REPLACE_MEMCHR=0; 10508 REPLACE_MEMMEM=0; 10509 REPLACE_STPNCPY=0; 10510 REPLACE_STRDUP=0; 10511 REPLACE_STRSTR=0; 10512 REPLACE_STRCASESTR=0; 10513 REPLACE_STRCHRNUL=0; 10514 REPLACE_STRERROR=0; 10515 REPLACE_STRERROR_R=0; 10516 REPLACE_STRNCAT=0; 10517 REPLACE_STRNDUP=0; 10518 REPLACE_STRNLEN=0; 10519 REPLACE_STRSIGNAL=0; 10520 REPLACE_STRTOK_R=0; 10521 UNDEFINE_STRTOK_R=0; 10522 10523 10524 10525 10526 10527 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it 10528 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is 10529 # irrelevant for anonymous mappings. 10530 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" 10531if test "x$ac_cv_func_mmap" = x""yes; then : 10532 gl_have_mmap=yes 10533else 10534 gl_have_mmap=no 10535fi 10536 10537 10538 # Try to allow MAP_ANONYMOUS. 10539 gl_have_mmap_anonymous=no 10540 if test $gl_have_mmap = yes; then 10541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5 10542$as_echo_n "checking for MAP_ANONYMOUS... " >&6; } 10543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10544/* end confdefs.h. */ 10545 10546#include <sys/mman.h> 10547#ifdef MAP_ANONYMOUS 10548 I cant identify this map 10549#endif 10550 10551_ACEOF 10552if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10553 $EGREP "I cant identify this map" >/dev/null 2>&1; then : 10554 gl_have_mmap_anonymous=yes 10555fi 10556rm -f conftest* 10557 10558 if test $gl_have_mmap_anonymous != yes; then 10559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10560/* end confdefs.h. */ 10561 10562#include <sys/mman.h> 10563#ifdef MAP_ANON 10564 I cant identify this map 10565#endif 10566 10567_ACEOF 10568if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10569 $EGREP "I cant identify this map" >/dev/null 2>&1; then : 10570 10571$as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h 10572 10573 gl_have_mmap_anonymous=yes 10574fi 10575rm -f conftest* 10576 10577 fi 10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5 10579$as_echo "$gl_have_mmap_anonymous" >&6; } 10580 if test $gl_have_mmap_anonymous = yes; then 10581 10582$as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h 10583 10584 fi 10585 fi 10586 10587 10588 : 10589 10590 10591 10592 10593 10594 10595 : 10596 10597 10598 10599 10600 10601 10602 10603 10604 if test $HAVE_MEMCHR = 1; then 10605 # Detect platform-specific bugs in some versions of glibc: 10606 # memchr should not dereference anything with length 0 10607 # http://bugzilla.redhat.com/499689 10608 # memchr should not dereference overestimated length after a match 10609 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737 10610 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162 10611 # Assume that memchr works on platforms that lack mprotect. 10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5 10613$as_echo_n "checking whether memchr works... " >&6; } 10614if test "${gl_cv_func_memchr_works+set}" = set; then : 10615 $as_echo_n "(cached) " >&6 10616else 10617 if test "$cross_compiling" = yes; then : 10618 gl_cv_func_memchr_works="guessing no" 10619else 10620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10621/* end confdefs.h. */ 10622 10623#include <string.h> 10624#if HAVE_SYS_MMAN_H 10625# include <fcntl.h> 10626# include <unistd.h> 10627# include <sys/types.h> 10628# include <sys/mman.h> 10629# ifndef MAP_FILE 10630# define MAP_FILE 0 10631# endif 10632#endif 10633 10634int 10635main () 10636{ 10637 10638 int result = 0; 10639 char *fence = NULL; 10640#if HAVE_SYS_MMAN_H && HAVE_MPROTECT 10641# if HAVE_MAP_ANONYMOUS 10642 const int flags = MAP_ANONYMOUS | MAP_PRIVATE; 10643 const int fd = -1; 10644# else /* !HAVE_MAP_ANONYMOUS */ 10645 const int flags = MAP_FILE | MAP_PRIVATE; 10646 int fd = open ("/dev/zero", O_RDONLY, 0666); 10647 if (fd >= 0) 10648# endif 10649 { 10650 int pagesize = getpagesize (); 10651 char *two_pages = 10652 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE, 10653 flags, fd, 0); 10654 if (two_pages != (char *)(-1) 10655 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0) 10656 fence = two_pages + pagesize; 10657 } 10658#endif 10659 if (fence) 10660 { 10661 if (memchr (fence, 0, 0)) 10662 result |= 1; 10663 strcpy (fence - 9, "12345678"); 10664 if (memchr (fence - 9, 0, 79) != fence - 1) 10665 result |= 2; 10666 if (memchr (fence - 1, 0, 3) != fence - 1) 10667 result |= 4; 10668 } 10669 return result; 10670 10671 ; 10672 return 0; 10673} 10674_ACEOF 10675if ac_fn_c_try_run "$LINENO"; then : 10676 gl_cv_func_memchr_works=yes 10677else 10678 gl_cv_func_memchr_works=no 10679fi 10680rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10681 conftest.$ac_objext conftest.beam conftest.$ac_ext 10682fi 10683 10684fi 10685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5 10686$as_echo "$gl_cv_func_memchr_works" >&6; } 10687 if test "$gl_cv_func_memchr_works" != yes; then 10688 REPLACE_MEMCHR=1 10689 fi 10690 fi 10691 10692 10693 10694 10695 10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5 10697$as_echo_n "checking whether <limits.h> defines MIN and MAX... " >&6; } 10698if test "${gl_cv_minmax_in_limits_h+set}" = set; then : 10699 $as_echo_n "(cached) " >&6 10700else 10701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10702/* end confdefs.h. */ 10703#include <limits.h> 10704 int x = MIN (42, 17); 10705int 10706main () 10707{ 10708 10709 ; 10710 return 0; 10711} 10712_ACEOF 10713if ac_fn_c_try_compile "$LINENO"; then : 10714 gl_cv_minmax_in_limits_h=yes 10715else 10716 gl_cv_minmax_in_limits_h=no 10717fi 10718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10719fi 10720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5 10721$as_echo "$gl_cv_minmax_in_limits_h" >&6; } 10722 if test $gl_cv_minmax_in_limits_h = yes; then 10723 10724$as_echo "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h 10725 10726 fi 10727 10728 10729 10730 10731 10732 10733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5 10734$as_echo_n "checking whether <sys/param.h> defines MIN and MAX... " >&6; } 10735if test "${gl_cv_minmax_in_sys_param_h+set}" = set; then : 10736 $as_echo_n "(cached) " >&6 10737else 10738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10739/* end confdefs.h. */ 10740#include <sys/param.h> 10741 int x = MIN (42, 17); 10742int 10743main () 10744{ 10745 10746 ; 10747 return 0; 10748} 10749_ACEOF 10750if ac_fn_c_try_compile "$LINENO"; then : 10751 gl_cv_minmax_in_sys_param_h=yes 10752else 10753 gl_cv_minmax_in_sys_param_h=no 10754fi 10755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10756fi 10757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5 10758$as_echo "$gl_cv_minmax_in_sys_param_h" >&6; } 10759 if test $gl_cv_minmax_in_sys_param_h = yes; then 10760 10761$as_echo "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h 10762 10763 fi 10764 10765 10766 10767 10768 10769 gl_cv_c_multiarch=no 10770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10771/* end confdefs.h. */ 10772#ifndef __APPLE_CC__ 10773 not a universal capable compiler 10774 #endif 10775 typedef int dummy; 10776 10777_ACEOF 10778if ac_fn_c_try_compile "$LINENO"; then : 10779 10780 arch= 10781 prev= 10782 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do 10783 if test -n "$prev"; then 10784 case $word in 10785 i?86 | x86_64 | ppc | ppc64) 10786 if test -z "$arch" || test "$arch" = "$word"; then 10787 arch="$word" 10788 else 10789 gl_cv_c_multiarch=yes 10790 fi 10791 ;; 10792 esac 10793 prev= 10794 else 10795 if test "x$word" = "x-arch"; then 10796 prev=arch 10797 fi 10798 fi 10799 done 10800 10801fi 10802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10803 if test $gl_cv_c_multiarch = yes; then 10804 APPLE_UNIVERSAL_BUILD=1 10805 else 10806 APPLE_UNIVERSAL_BUILD=0 10807 fi 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 GNULIB_PTHREAD_SIGMASK=0; 10837 GNULIB_RAISE=0; 10838 GNULIB_SIGNAL_H_SIGPIPE=0; 10839 GNULIB_SIGPROCMASK=0; 10840 GNULIB_SIGACTION=0; 10841 HAVE_POSIX_SIGNALBLOCKING=1; 10842 HAVE_PTHREAD_SIGMASK=1; 10843 HAVE_RAISE=1; 10844 HAVE_SIGSET_T=1; 10845 HAVE_SIGINFO_T=1; 10846 HAVE_SIGACTION=1; 10847 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1; 10848 10849 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1; 10850 10851 HAVE_SIGHANDLER_T=1; 10852 REPLACE_PTHREAD_SIGMASK=0; 10853 REPLACE_RAISE=0; 10854 10855 10856 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" " 10857 #include <signal.h> 10858 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */ 10859 #include <sys/types.h> 10860 10861" 10862if test "x$ac_cv_type_sigset_t" = x""yes; then : 10863 10864cat >>confdefs.h <<_ACEOF 10865#define HAVE_SIGSET_T 1 10866_ACEOF 10867 10868gl_cv_type_sigset_t=yes 10869else 10870 gl_cv_type_sigset_t=no 10871fi 10872 10873 if test $gl_cv_type_sigset_t != yes; then 10874 HAVE_SIGSET_T=0 10875 fi 10876 10877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 10878$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 10879if test "${ac_cv_type_uid_t+set}" = set; then : 10880 $as_echo_n "(cached) " >&6 10881else 10882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10883/* end confdefs.h. */ 10884#include <sys/types.h> 10885 10886_ACEOF 10887if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10888 $EGREP "uid_t" >/dev/null 2>&1; then : 10889 ac_cv_type_uid_t=yes 10890else 10891 ac_cv_type_uid_t=no 10892fi 10893rm -f conftest* 10894 10895fi 10896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 10897$as_echo "$ac_cv_type_uid_t" >&6; } 10898if test $ac_cv_type_uid_t = no; then 10899 10900$as_echo "#define uid_t int" >>confdefs.h 10901 10902 10903$as_echo "#define gid_t int" >>confdefs.h 10904 10905fi 10906 10907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 10908$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 10909if test "${ac_cv_header_stdbool_h+set}" = set; then : 10910 $as_echo_n "(cached) " >&6 10911else 10912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10913/* end confdefs.h. */ 10914 10915 #include <stdbool.h> 10916 #ifndef bool 10917 "error: bool is not defined" 10918 #endif 10919 #ifndef false 10920 "error: false is not defined" 10921 #endif 10922 #if false 10923 "error: false is not 0" 10924 #endif 10925 #ifndef true 10926 "error: true is not defined" 10927 #endif 10928 #if true != 1 10929 "error: true is not 1" 10930 #endif 10931 #ifndef __bool_true_false_are_defined 10932 "error: __bool_true_false_are_defined is not defined" 10933 #endif 10934 10935 struct s { _Bool s: 1; _Bool t; } s; 10936 10937 char a[true == 1 ? 1 : -1]; 10938 char b[false == 0 ? 1 : -1]; 10939 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 10940 char d[(bool) 0.5 == true ? 1 : -1]; 10941 /* See body of main program for 'e'. */ 10942 char f[(_Bool) 0.0 == false ? 1 : -1]; 10943 char g[true]; 10944 char h[sizeof (_Bool)]; 10945 char i[sizeof s.t]; 10946 enum { j = false, k = true, l = false * true, m = true * 256 }; 10947 /* The following fails for 10948 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 10949 _Bool n[m]; 10950 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 10951 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 10952 /* Catch a bug in an HP-UX C compiler. See 10953 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 10954 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 10955 */ 10956 _Bool q = true; 10957 _Bool *pq = &q; 10958 10959int 10960main () 10961{ 10962 10963 bool e = &s; 10964 *pq |= q; 10965 *pq |= ! q; 10966 /* Refer to every declared value, to avoid compiler optimizations. */ 10967 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 10968 + !m + !n + !o + !p + !q + !pq); 10969 10970 ; 10971 return 0; 10972} 10973_ACEOF 10974if ac_fn_c_try_compile "$LINENO"; then : 10975 ac_cv_header_stdbool_h=yes 10976else 10977 ac_cv_header_stdbool_h=no 10978fi 10979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10980fi 10981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 10982$as_echo "$ac_cv_header_stdbool_h" >&6; } 10983 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 10984if test "x$ac_cv_type__Bool" = x""yes; then : 10985 10986cat >>confdefs.h <<_ACEOF 10987#define HAVE__BOOL 1 10988_ACEOF 10989 10990 10991fi 10992 10993 10994 10995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 10996$as_echo_n "checking for unsigned long long int... " >&6; } 10997if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then : 10998 $as_echo_n "(cached) " >&6 10999else 11000 ac_cv_type_unsigned_long_long_int=yes 11001 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 11002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11003/* end confdefs.h. */ 11004 11005 /* For now, do not test the preprocessor; as of 2007 there are too many 11006 implementations with broken preprocessors. Perhaps this can 11007 be revisited in 2012. In the meantime, code should not expect 11008 #if to work with literals wider than 32 bits. */ 11009 /* Test literals. */ 11010 long long int ll = 9223372036854775807ll; 11011 long long int nll = -9223372036854775807LL; 11012 unsigned long long int ull = 18446744073709551615ULL; 11013 /* Test constant expressions. */ 11014 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 11015 ? 1 : -1)]; 11016 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 11017 ? 1 : -1)]; 11018 int i = 63; 11019int 11020main () 11021{ 11022/* Test availability of runtime routines for shift and division. */ 11023 long long int llmax = 9223372036854775807ll; 11024 unsigned long long int ullmax = 18446744073709551615ull; 11025 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 11026 | (llmax / ll) | (llmax % ll) 11027 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 11028 | (ullmax / ull) | (ullmax % ull)); 11029 ; 11030 return 0; 11031} 11032 11033_ACEOF 11034if ac_fn_c_try_link "$LINENO"; then : 11035 11036else 11037 ac_cv_type_unsigned_long_long_int=no 11038fi 11039rm -f core conftest.err conftest.$ac_objext \ 11040 conftest$ac_exeext conftest.$ac_ext 11041 fi 11042fi 11043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 11044$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 11045 if test $ac_cv_type_unsigned_long_long_int = yes; then 11046 11047$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 11048 11049 fi 11050 11051 11052 11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 11054$as_echo_n "checking for long long int... " >&6; } 11055if test "${ac_cv_type_long_long_int+set}" = set; then : 11056 $as_echo_n "(cached) " >&6 11057else 11058 ac_cv_type_long_long_int=yes 11059 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 11060 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int 11061 if test $ac_cv_type_long_long_int = yes; then 11062 if test "$cross_compiling" = yes; then : 11063 : 11064else 11065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11066/* end confdefs.h. */ 11067#include <limits.h> 11068 #ifndef LLONG_MAX 11069 # define HALF \ 11070 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 11071 # define LLONG_MAX (HALF - 1 + HALF) 11072 #endif 11073int 11074main () 11075{ 11076long long int n = 1; 11077 int i; 11078 for (i = 0; ; i++) 11079 { 11080 long long int m = n << i; 11081 if (m >> i != n) 11082 return 1; 11083 if (LLONG_MAX / 2 < m) 11084 break; 11085 } 11086 return 0; 11087 ; 11088 return 0; 11089} 11090_ACEOF 11091if ac_fn_c_try_run "$LINENO"; then : 11092 11093else 11094 ac_cv_type_long_long_int=no 11095fi 11096rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11097 conftest.$ac_objext conftest.beam conftest.$ac_ext 11098fi 11099 11100 fi 11101 fi 11102fi 11103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 11104$as_echo "$ac_cv_type_long_long_int" >&6; } 11105 if test $ac_cv_type_long_long_int = yes; then 11106 11107$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 11108 11109 fi 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 if test $ac_cv_type_long_long_int = yes; then 11125 HAVE_LONG_LONG_INT=1 11126 else 11127 HAVE_LONG_LONG_INT=0 11128 fi 11129 11130 11131 if test $ac_cv_type_unsigned_long_long_int = yes; then 11132 HAVE_UNSIGNED_LONG_LONG_INT=1 11133 else 11134 HAVE_UNSIGNED_LONG_LONG_INT=0 11135 fi 11136 11137 11138 11139 : 11140 11141 11142 11143 11144 11145 if test $ac_cv_header_wchar_h = yes; then 11146 HAVE_WCHAR_H=1 11147 else 11148 HAVE_WCHAR_H=0 11149 fi 11150 11151 11152 if test $ac_cv_header_inttypes_h = yes; then 11153 HAVE_INTTYPES_H=1 11154 else 11155 HAVE_INTTYPES_H=0 11156 fi 11157 11158 11159 if test $ac_cv_header_sys_types_h = yes; then 11160 HAVE_SYS_TYPES_H=1 11161 else 11162 HAVE_SYS_TYPES_H=0 11163 fi 11164 11165 11166 11167 11168 11169 11170 11171 11172 : 11173 11174 11175 11176 11177 11178 11179 11180 11181 if test $gl_cv_have_include_next = yes; then 11182 gl_cv_next_stdint_h='<'stdint.h'>' 11183 else 11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5 11185$as_echo_n "checking absolute name of <stdint.h>... " >&6; } 11186if test "${gl_cv_next_stdint_h+set}" = set; then : 11187 $as_echo_n "(cached) " >&6 11188else 11189 11190 if test $ac_cv_header_stdint_h = yes; then 11191 11192 11193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11194/* end confdefs.h. */ 11195#include <stdint.h> 11196 11197_ACEOF 11198 case "$host_os" in 11199 aix*) gl_absname_cpp="$ac_cpp -C" ;; 11200 *) gl_absname_cpp="$ac_cpp" ;; 11201 esac 11202 11203 case "$host_os" in 11204 mingw*) 11205 gl_dirsep_regex='[/\\]' 11206 ;; 11207 *) 11208 gl_dirsep_regex='\/' 11209 ;; 11210 esac 11211 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 11212 11213 gl_header_literal_regex=`echo 'stdint.h' \ 11214 | sed -e "$gl_make_literal_regex_sed"` 11215 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 11216 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 11217 s|^/[^/]|//&| 11218 p 11219 q 11220 }' 11221 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 11222 sed -n "$gl_absolute_header_sed"`'"' 11223 else 11224 gl_cv_next_stdint_h='<'stdint.h'>' 11225 fi 11226 11227 11228fi 11229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5 11230$as_echo "$gl_cv_next_stdint_h" >&6; } 11231 fi 11232 NEXT_STDINT_H=$gl_cv_next_stdint_h 11233 11234 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 11235 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 11236 gl_next_as_first_directive='<'stdint.h'>' 11237 else 11238 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 11239 gl_next_as_first_directive=$gl_cv_next_stdint_h 11240 fi 11241 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive 11242 11243 11244 11245 11246 if test $ac_cv_header_stdint_h = yes; then 11247 HAVE_STDINT_H=1 11248 else 11249 HAVE_STDINT_H=0 11250 fi 11251 11252 11253 if test $ac_cv_header_stdint_h = yes; then 11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5 11255$as_echo_n "checking whether stdint.h conforms to C99... " >&6; } 11256if test "${gl_cv_header_working_stdint_h+set}" = set; then : 11257 $as_echo_n "(cached) " >&6 11258else 11259 gl_cv_header_working_stdint_h=no 11260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11261/* end confdefs.h. */ 11262 11263 11264#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ 11265#include <stdint.h> 11266/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */ 11267#if !(defined WCHAR_MIN && defined WCHAR_MAX) 11268#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>" 11269#endif 11270 11271 11272 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 11273 included before <wchar.h>. */ 11274 #include <stddef.h> 11275 #include <signal.h> 11276 #if HAVE_WCHAR_H 11277 # include <stdio.h> 11278 # include <time.h> 11279 # include <wchar.h> 11280 #endif 11281 11282 11283#ifdef INT8_MAX 11284int8_t a1 = INT8_MAX; 11285int8_t a1min = INT8_MIN; 11286#endif 11287#ifdef INT16_MAX 11288int16_t a2 = INT16_MAX; 11289int16_t a2min = INT16_MIN; 11290#endif 11291#ifdef INT32_MAX 11292int32_t a3 = INT32_MAX; 11293int32_t a3min = INT32_MIN; 11294#endif 11295#ifdef INT64_MAX 11296int64_t a4 = INT64_MAX; 11297int64_t a4min = INT64_MIN; 11298#endif 11299#ifdef UINT8_MAX 11300uint8_t b1 = UINT8_MAX; 11301#else 11302typedef int b1[(unsigned char) -1 != 255 ? 1 : -1]; 11303#endif 11304#ifdef UINT16_MAX 11305uint16_t b2 = UINT16_MAX; 11306#endif 11307#ifdef UINT32_MAX 11308uint32_t b3 = UINT32_MAX; 11309#endif 11310#ifdef UINT64_MAX 11311uint64_t b4 = UINT64_MAX; 11312#endif 11313int_least8_t c1 = INT8_C (0x7f); 11314int_least8_t c1max = INT_LEAST8_MAX; 11315int_least8_t c1min = INT_LEAST8_MIN; 11316int_least16_t c2 = INT16_C (0x7fff); 11317int_least16_t c2max = INT_LEAST16_MAX; 11318int_least16_t c2min = INT_LEAST16_MIN; 11319int_least32_t c3 = INT32_C (0x7fffffff); 11320int_least32_t c3max = INT_LEAST32_MAX; 11321int_least32_t c3min = INT_LEAST32_MIN; 11322int_least64_t c4 = INT64_C (0x7fffffffffffffff); 11323int_least64_t c4max = INT_LEAST64_MAX; 11324int_least64_t c4min = INT_LEAST64_MIN; 11325uint_least8_t d1 = UINT8_C (0xff); 11326uint_least8_t d1max = UINT_LEAST8_MAX; 11327uint_least16_t d2 = UINT16_C (0xffff); 11328uint_least16_t d2max = UINT_LEAST16_MAX; 11329uint_least32_t d3 = UINT32_C (0xffffffff); 11330uint_least32_t d3max = UINT_LEAST32_MAX; 11331uint_least64_t d4 = UINT64_C (0xffffffffffffffff); 11332uint_least64_t d4max = UINT_LEAST64_MAX; 11333int_fast8_t e1 = INT_FAST8_MAX; 11334int_fast8_t e1min = INT_FAST8_MIN; 11335int_fast16_t e2 = INT_FAST16_MAX; 11336int_fast16_t e2min = INT_FAST16_MIN; 11337int_fast32_t e3 = INT_FAST32_MAX; 11338int_fast32_t e3min = INT_FAST32_MIN; 11339int_fast64_t e4 = INT_FAST64_MAX; 11340int_fast64_t e4min = INT_FAST64_MIN; 11341uint_fast8_t f1 = UINT_FAST8_MAX; 11342uint_fast16_t f2 = UINT_FAST16_MAX; 11343uint_fast32_t f3 = UINT_FAST32_MAX; 11344uint_fast64_t f4 = UINT_FAST64_MAX; 11345#ifdef INTPTR_MAX 11346intptr_t g = INTPTR_MAX; 11347intptr_t gmin = INTPTR_MIN; 11348#endif 11349#ifdef UINTPTR_MAX 11350uintptr_t h = UINTPTR_MAX; 11351#endif 11352intmax_t i = INTMAX_MAX; 11353uintmax_t j = UINTMAX_MAX; 11354 11355#include <limits.h> /* for CHAR_BIT */ 11356#define TYPE_MINIMUM(t) \ 11357 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t))) 11358#define TYPE_MAXIMUM(t) \ 11359 ((t) ((t) 0 < (t) -1 \ 11360 ? (t) -1 \ 11361 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1))) 11362struct s { 11363 int check_PTRDIFF: 11364 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t) 11365 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t) 11366 ? 1 : -1; 11367 /* Detect bug in FreeBSD 6.0 / ia64. */ 11368 int check_SIG_ATOMIC: 11369 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t) 11370 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t) 11371 ? 1 : -1; 11372 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1; 11373 int check_WCHAR: 11374 WCHAR_MIN == TYPE_MINIMUM (wchar_t) 11375 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t) 11376 ? 1 : -1; 11377 /* Detect bug in mingw. */ 11378 int check_WINT: 11379 WINT_MIN == TYPE_MINIMUM (wint_t) 11380 && WINT_MAX == TYPE_MAXIMUM (wint_t) 11381 ? 1 : -1; 11382 11383 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */ 11384 int check_UINT8_C: 11385 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1; 11386 int check_UINT16_C: 11387 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1; 11388 11389 /* Detect bugs in OpenBSD 3.9 stdint.h. */ 11390#ifdef UINT8_MAX 11391 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1; 11392#endif 11393#ifdef UINT16_MAX 11394 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1; 11395#endif 11396#ifdef UINT32_MAX 11397 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1; 11398#endif 11399#ifdef UINT64_MAX 11400 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1; 11401#endif 11402 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1; 11403 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1; 11404 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1; 11405 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1; 11406 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1; 11407 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1; 11408 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1; 11409 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1; 11410 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1; 11411 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1; 11412 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1; 11413}; 11414 11415int 11416main () 11417{ 11418 11419 ; 11420 return 0; 11421} 11422_ACEOF 11423if ac_fn_c_try_compile "$LINENO"; then : 11424 if test "$cross_compiling" = yes; then : 11425 gl_cv_header_working_stdint_h=yes 11426 11427else 11428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11429/* end confdefs.h. */ 11430 11431 11432#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ 11433#include <stdint.h> 11434 11435 11436 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 11437 included before <wchar.h>. */ 11438 #include <stddef.h> 11439 #include <signal.h> 11440 #if HAVE_WCHAR_H 11441 # include <stdio.h> 11442 # include <time.h> 11443 # include <wchar.h> 11444 #endif 11445 11446 11447#include <stdio.h> 11448#include <string.h> 11449#define MVAL(macro) MVAL1(macro) 11450#define MVAL1(expression) #expression 11451static const char *macro_values[] = 11452 { 11453#ifdef INT8_MAX 11454 MVAL (INT8_MAX), 11455#endif 11456#ifdef INT16_MAX 11457 MVAL (INT16_MAX), 11458#endif 11459#ifdef INT32_MAX 11460 MVAL (INT32_MAX), 11461#endif 11462#ifdef INT64_MAX 11463 MVAL (INT64_MAX), 11464#endif 11465#ifdef UINT8_MAX 11466 MVAL (UINT8_MAX), 11467#endif 11468#ifdef UINT16_MAX 11469 MVAL (UINT16_MAX), 11470#endif 11471#ifdef UINT32_MAX 11472 MVAL (UINT32_MAX), 11473#endif 11474#ifdef UINT64_MAX 11475 MVAL (UINT64_MAX), 11476#endif 11477 NULL 11478 }; 11479 11480int 11481main () 11482{ 11483 11484 const char **mv; 11485 for (mv = macro_values; *mv != NULL; mv++) 11486 { 11487 const char *value = *mv; 11488 /* Test whether it looks like a cast expression. */ 11489 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0 11490 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0 11491 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0 11492 || strncmp (value, "((int)"/*)*/, 6) == 0 11493 || strncmp (value, "((signed short)"/*)*/, 15) == 0 11494 || strncmp (value, "((signed char)"/*)*/, 14) == 0) 11495 return mv - macro_values + 1; 11496 } 11497 return 0; 11498 11499 ; 11500 return 0; 11501} 11502_ACEOF 11503if ac_fn_c_try_run "$LINENO"; then : 11504 gl_cv_header_working_stdint_h=yes 11505fi 11506rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11507 conftest.$ac_objext conftest.beam conftest.$ac_ext 11508fi 11509 11510 11511fi 11512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11513 11514fi 11515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5 11516$as_echo "$gl_cv_header_working_stdint_h" >&6; } 11517 fi 11518 if test "$gl_cv_header_working_stdint_h" = yes; then 11519 STDINT_H= 11520 else 11521 for ac_header in sys/inttypes.h sys/bitypes.h 11522do : 11523 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11524ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 11525if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 11526 cat >>confdefs.h <<_ACEOF 11527#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11528_ACEOF 11529 11530fi 11531 11532done 11533 11534 if test $ac_cv_header_sys_inttypes_h = yes; then 11535 HAVE_SYS_INTTYPES_H=1 11536 else 11537 HAVE_SYS_INTTYPES_H=0 11538 fi 11539 11540 if test $ac_cv_header_sys_bitypes_h = yes; then 11541 HAVE_SYS_BITYPES_H=1 11542 else 11543 HAVE_SYS_BITYPES_H=0 11544 fi 11545 11546 11547 11548 11549 if test $APPLE_UNIVERSAL_BUILD = 0; then 11550 11551 11552 for gltype in ptrdiff_t size_t ; do 11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 11554$as_echo_n "checking for bit size of $gltype... " >&6; } 11555if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\"" = set; then : 11556 $as_echo_n "(cached) " >&6 11557else 11558 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " 11559 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 11560 included before <wchar.h>. */ 11561 #include <stddef.h> 11562 #include <signal.h> 11563 #if HAVE_WCHAR_H 11564 # include <stdio.h> 11565 # include <time.h> 11566 # include <wchar.h> 11567 #endif 11568 11569#include <limits.h>"; then : 11570 11571else 11572 result=unknown 11573fi 11574 11575 eval gl_cv_bitsizeof_${gltype}=\$result 11576 11577fi 11578eval ac_res=\$gl_cv_bitsizeof_${gltype} 11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11580$as_echo "$ac_res" >&6; } 11581 eval result=\$gl_cv_bitsizeof_${gltype} 11582 if test $result = unknown; then 11583 result=0 11584 fi 11585 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 11586 cat >>confdefs.h <<_ACEOF 11587#define BITSIZEOF_${GLTYPE} $result 11588_ACEOF 11589 11590 eval BITSIZEOF_${GLTYPE}=\$result 11591 done 11592 11593 11594 fi 11595 11596 11597 for gltype in sig_atomic_t wchar_t wint_t ; do 11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 11599$as_echo_n "checking for bit size of $gltype... " >&6; } 11600if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\"" = set; then : 11601 $as_echo_n "(cached) " >&6 11602else 11603 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " 11604 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 11605 included before <wchar.h>. */ 11606 #include <stddef.h> 11607 #include <signal.h> 11608 #if HAVE_WCHAR_H 11609 # include <stdio.h> 11610 # include <time.h> 11611 # include <wchar.h> 11612 #endif 11613 11614#include <limits.h>"; then : 11615 11616else 11617 result=unknown 11618fi 11619 11620 eval gl_cv_bitsizeof_${gltype}=\$result 11621 11622fi 11623eval ac_res=\$gl_cv_bitsizeof_${gltype} 11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11625$as_echo "$ac_res" >&6; } 11626 eval result=\$gl_cv_bitsizeof_${gltype} 11627 if test $result = unknown; then 11628 result=0 11629 fi 11630 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 11631 cat >>confdefs.h <<_ACEOF 11632#define BITSIZEOF_${GLTYPE} $result 11633_ACEOF 11634 11635 eval BITSIZEOF_${GLTYPE}=\$result 11636 done 11637 11638 11639 11640 11641 for gltype in sig_atomic_t wchar_t wint_t ; do 11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5 11643$as_echo_n "checking whether $gltype is signed... " >&6; } 11644if eval "test \"\${gl_cv_type_${gltype}_signed+set}\"" = set; then : 11645 $as_echo_n "(cached) " >&6 11646else 11647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11648/* end confdefs.h. */ 11649 11650 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 11651 included before <wchar.h>. */ 11652 #include <stddef.h> 11653 #include <signal.h> 11654 #if HAVE_WCHAR_H 11655 # include <stdio.h> 11656 # include <time.h> 11657 # include <wchar.h> 11658 #endif 11659 11660 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1]; 11661int 11662main () 11663{ 11664 11665 ; 11666 return 0; 11667} 11668_ACEOF 11669if ac_fn_c_try_compile "$LINENO"; then : 11670 result=yes 11671else 11672 result=no 11673fi 11674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11675 eval gl_cv_type_${gltype}_signed=\$result 11676 11677fi 11678eval ac_res=\$gl_cv_type_${gltype}_signed 11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11680$as_echo "$ac_res" >&6; } 11681 eval result=\$gl_cv_type_${gltype}_signed 11682 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 11683 if test "$result" = yes; then 11684 cat >>confdefs.h <<_ACEOF 11685#define HAVE_SIGNED_${GLTYPE} 1 11686_ACEOF 11687 11688 eval HAVE_SIGNED_${GLTYPE}=1 11689 else 11690 eval HAVE_SIGNED_${GLTYPE}=0 11691 fi 11692 done 11693 11694 11695 gl_cv_type_ptrdiff_t_signed=yes 11696 gl_cv_type_size_t_signed=no 11697 if test $APPLE_UNIVERSAL_BUILD = 0; then 11698 11699 11700 for gltype in ptrdiff_t size_t ; do 11701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 11702$as_echo_n "checking for $gltype integer literal suffix... " >&6; } 11703if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\"" = set; then : 11704 $as_echo_n "(cached) " >&6 11705else 11706 eval gl_cv_type_${gltype}_suffix=no 11707 eval result=\$gl_cv_type_${gltype}_signed 11708 if test "$result" = yes; then 11709 glsufu= 11710 else 11711 glsufu=u 11712 fi 11713 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do 11714 case $glsuf in 11715 '') gltype1='int';; 11716 l) gltype1='long int';; 11717 ll) gltype1='long long int';; 11718 i64) gltype1='__int64';; 11719 u) gltype1='unsigned int';; 11720 ul) gltype1='unsigned long int';; 11721 ull) gltype1='unsigned long long int';; 11722 ui64)gltype1='unsigned __int64';; 11723 esac 11724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11725/* end confdefs.h. */ 11726 11727 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 11728 included before <wchar.h>. */ 11729 #include <stddef.h> 11730 #include <signal.h> 11731 #if HAVE_WCHAR_H 11732 # include <stdio.h> 11733 # include <time.h> 11734 # include <wchar.h> 11735 #endif 11736 11737 extern $gltype foo; 11738 extern $gltype1 foo; 11739int 11740main () 11741{ 11742 11743 ; 11744 return 0; 11745} 11746_ACEOF 11747if ac_fn_c_try_compile "$LINENO"; then : 11748 eval gl_cv_type_${gltype}_suffix=\$glsuf 11749fi 11750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11751 eval result=\$gl_cv_type_${gltype}_suffix 11752 test "$result" != no && break 11753 done 11754fi 11755eval ac_res=\$gl_cv_type_${gltype}_suffix 11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11757$as_echo "$ac_res" >&6; } 11758 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 11759 eval result=\$gl_cv_type_${gltype}_suffix 11760 test "$result" = no && result= 11761 eval ${GLTYPE}_SUFFIX=\$result 11762 cat >>confdefs.h <<_ACEOF 11763#define ${GLTYPE}_SUFFIX $result 11764_ACEOF 11765 11766 done 11767 11768 11769 fi 11770 11771 11772 for gltype in sig_atomic_t wchar_t wint_t ; do 11773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 11774$as_echo_n "checking for $gltype integer literal suffix... " >&6; } 11775if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\"" = set; then : 11776 $as_echo_n "(cached) " >&6 11777else 11778 eval gl_cv_type_${gltype}_suffix=no 11779 eval result=\$gl_cv_type_${gltype}_signed 11780 if test "$result" = yes; then 11781 glsufu= 11782 else 11783 glsufu=u 11784 fi 11785 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do 11786 case $glsuf in 11787 '') gltype1='int';; 11788 l) gltype1='long int';; 11789 ll) gltype1='long long int';; 11790 i64) gltype1='__int64';; 11791 u) gltype1='unsigned int';; 11792 ul) gltype1='unsigned long int';; 11793 ull) gltype1='unsigned long long int';; 11794 ui64)gltype1='unsigned __int64';; 11795 esac 11796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11797/* end confdefs.h. */ 11798 11799 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 11800 included before <wchar.h>. */ 11801 #include <stddef.h> 11802 #include <signal.h> 11803 #if HAVE_WCHAR_H 11804 # include <stdio.h> 11805 # include <time.h> 11806 # include <wchar.h> 11807 #endif 11808 11809 extern $gltype foo; 11810 extern $gltype1 foo; 11811int 11812main () 11813{ 11814 11815 ; 11816 return 0; 11817} 11818_ACEOF 11819if ac_fn_c_try_compile "$LINENO"; then : 11820 eval gl_cv_type_${gltype}_suffix=\$glsuf 11821fi 11822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11823 eval result=\$gl_cv_type_${gltype}_suffix 11824 test "$result" != no && break 11825 done 11826fi 11827eval ac_res=\$gl_cv_type_${gltype}_suffix 11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11829$as_echo "$ac_res" >&6; } 11830 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 11831 eval result=\$gl_cv_type_${gltype}_suffix 11832 test "$result" = no && result= 11833 eval ${GLTYPE}_SUFFIX=\$result 11834 cat >>confdefs.h <<_ACEOF 11835#define ${GLTYPE}_SUFFIX $result 11836_ACEOF 11837 11838 done 11839 11840 11841 11842 if test $BITSIZEOF_WINT_T -lt 32; then 11843 BITSIZEOF_WINT_T=32 11844 fi 11845 11846 STDINT_H=stdint.h 11847 fi 11848 11849 if test -n "$STDINT_H"; then 11850 GL_GENERATE_STDINT_H_TRUE= 11851 GL_GENERATE_STDINT_H_FALSE='#' 11852else 11853 GL_GENERATE_STDINT_H_TRUE='#' 11854 GL_GENERATE_STDINT_H_FALSE= 11855fi 11856 11857 11858 11859 GNULIB_FFS=0; 11860 HAVE_FFS=1; 11861 HAVE_STRCASECMP=1; 11862 HAVE_DECL_STRNCASECMP=1; 11863 11864 11865 11866 11867 11868 11869 11870 ac_fn_c_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default" 11871if test "x$ac_cv_have_decl_strdup" = x""yes; then : 11872 ac_have_decl=1 11873else 11874 ac_have_decl=0 11875fi 11876 11877cat >>confdefs.h <<_ACEOF 11878#define HAVE_DECL_STRDUP $ac_have_decl 11879_ACEOF 11880 11881 11882 11883 REPLACE_STRERROR_0=0 11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5 11885$as_echo_n "checking whether strerror(0) succeeds... " >&6; } 11886if test "${gl_cv_func_strerror_0_works+set}" = set; then : 11887 $as_echo_n "(cached) " >&6 11888else 11889 if test "$cross_compiling" = yes; then : 11890 gl_cv_func_strerror_0_works="guessing no" 11891else 11892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11893/* end confdefs.h. */ 11894#include <string.h> 11895 #include <errno.h> 11896 11897int 11898main () 11899{ 11900int result = 0; 11901 char *str; 11902 errno = 0; 11903 str = strerror (0); 11904 if (!*str) result |= 1; 11905 if (errno) result |= 2; 11906 if (strstr (str, "nknown") || strstr (str, "ndefined")) 11907 result |= 4; 11908 return result; 11909 ; 11910 return 0; 11911} 11912_ACEOF 11913if ac_fn_c_try_run "$LINENO"; then : 11914 gl_cv_func_strerror_0_works=yes 11915else 11916 gl_cv_func_strerror_0_works=no 11917fi 11918rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11919 conftest.$ac_objext conftest.beam conftest.$ac_ext 11920fi 11921 11922 11923fi 11924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5 11925$as_echo "$gl_cv_func_strerror_0_works" >&6; } 11926 if test "$gl_cv_func_strerror_0_works" != yes; then 11927 REPLACE_STRERROR_0=1 11928 11929$as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h 11930 11931 fi 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 if test $gl_cv_have_include_next = yes; then 11945 gl_cv_next_string_h='<'string.h'>' 11946 else 11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5 11948$as_echo_n "checking absolute name of <string.h>... " >&6; } 11949if test "${gl_cv_next_string_h+set}" = set; then : 11950 $as_echo_n "(cached) " >&6 11951else 11952 11953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11954/* end confdefs.h. */ 11955#include <string.h> 11956 11957_ACEOF 11958 case "$host_os" in 11959 aix*) gl_absname_cpp="$ac_cpp -C" ;; 11960 *) gl_absname_cpp="$ac_cpp" ;; 11961 esac 11962 11963 case "$host_os" in 11964 mingw*) 11965 gl_dirsep_regex='[/\\]' 11966 ;; 11967 *) 11968 gl_dirsep_regex='\/' 11969 ;; 11970 esac 11971 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 11972 11973 gl_header_literal_regex=`echo 'string.h' \ 11974 | sed -e "$gl_make_literal_regex_sed"` 11975 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 11976 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 11977 s|^/[^/]|//&| 11978 p 11979 q 11980 }' 11981 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 11982 sed -n "$gl_absolute_header_sed"`'"' 11983 11984 11985fi 11986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5 11987$as_echo "$gl_cv_next_string_h" >&6; } 11988 fi 11989 NEXT_STRING_H=$gl_cv_next_string_h 11990 11991 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 11992 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 11993 gl_next_as_first_directive='<'string.h'>' 11994 else 11995 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 11996 gl_next_as_first_directive=$gl_cv_next_string_h 11997 fi 11998 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive 11999 12000 12001 12002 12003 12004 12005 for gl_func in ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strerror_r strsignal strverscmp; do 12006 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 12008$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 12009if eval "test \"\${$as_gl_Symbol+set}\"" = set; then : 12010 $as_echo_n "(cached) " >&6 12011else 12012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12013/* end confdefs.h. */ 12014#include <string.h> 12015 12016int 12017main () 12018{ 12019#undef $gl_func 12020 (void) $gl_func; 12021 ; 12022 return 0; 12023} 12024_ACEOF 12025if ac_fn_c_try_compile "$LINENO"; then : 12026 eval "$as_gl_Symbol=yes" 12027else 12028 eval "$as_gl_Symbol=no" 12029fi 12030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12031fi 12032eval ac_res=\$$as_gl_Symbol 12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12034$as_echo "$ac_res" >&6; } 12035 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 12036 cat >>confdefs.h <<_ACEOF 12037#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 12038_ACEOF 12039 12040 eval ac_cv_have_decl_$gl_func=yes 12041fi 12042 done 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 : 12060 12061 12062 12063 12064 12065 12066 12067 12068 if test $gl_cv_have_include_next = yes; then 12069 gl_cv_next_strings_h='<'strings.h'>' 12070 else 12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <strings.h>" >&5 12072$as_echo_n "checking absolute name of <strings.h>... " >&6; } 12073if test "${gl_cv_next_strings_h+set}" = set; then : 12074 $as_echo_n "(cached) " >&6 12075else 12076 12077 if test $ac_cv_header_strings_h = yes; then 12078 12079 12080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12081/* end confdefs.h. */ 12082#include <strings.h> 12083 12084_ACEOF 12085 case "$host_os" in 12086 aix*) gl_absname_cpp="$ac_cpp -C" ;; 12087 *) gl_absname_cpp="$ac_cpp" ;; 12088 esac 12089 12090 case "$host_os" in 12091 mingw*) 12092 gl_dirsep_regex='[/\\]' 12093 ;; 12094 *) 12095 gl_dirsep_regex='\/' 12096 ;; 12097 esac 12098 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 12099 12100 gl_header_literal_regex=`echo 'strings.h' \ 12101 | sed -e "$gl_make_literal_regex_sed"` 12102 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 12103 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 12104 s|^/[^/]|//&| 12105 p 12106 q 12107 }' 12108 gl_cv_next_strings_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 12109 sed -n "$gl_absolute_header_sed"`'"' 12110 else 12111 gl_cv_next_strings_h='<'strings.h'>' 12112 fi 12113 12114 12115fi 12116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_strings_h" >&5 12117$as_echo "$gl_cv_next_strings_h" >&6; } 12118 fi 12119 NEXT_STRINGS_H=$gl_cv_next_strings_h 12120 12121 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 12122 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 12123 gl_next_as_first_directive='<'strings.h'>' 12124 else 12125 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 12126 gl_next_as_first_directive=$gl_cv_next_strings_h 12127 fi 12128 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H=$gl_next_as_first_directive 12129 12130 12131 12132 12133 if test $ac_cv_header_strings_h = yes; then 12134 HAVE_STRINGS_H=1 12135 else 12136 HAVE_STRINGS_H=0 12137 fi 12138 12139 12140 12141 for gl_func in ffs strcasecmp strncasecmp; do 12142 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 12144$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 12145if eval "test \"\${$as_gl_Symbol+set}\"" = set; then : 12146 $as_echo_n "(cached) " >&6 12147else 12148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12149/* end confdefs.h. */ 12150 12151 /* Minix 3.1.8 has a bug: <sys/types.h> must be included before 12152 <strings.h>. */ 12153 #include <sys/types.h> 12154 #include <strings.h> 12155 12156int 12157main () 12158{ 12159#undef $gl_func 12160 (void) $gl_func; 12161 ; 12162 return 0; 12163} 12164_ACEOF 12165if ac_fn_c_try_compile "$LINENO"; then : 12166 eval "$as_gl_Symbol=yes" 12167else 12168 eval "$as_gl_Symbol=no" 12169fi 12170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12171fi 12172eval ac_res=\$$as_gl_Symbol 12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12174$as_echo "$ac_res" >&6; } 12175 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 12176 cat >>confdefs.h <<_ACEOF 12177#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 12178_ACEOF 12179 12180 eval ac_cv_have_decl_$gl_func=yes 12181fi 12182 done 12183 12184 12185 12186 ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default" 12187if test "x$ac_cv_have_decl_strndup" = x""yes; then : 12188 ac_have_decl=1 12189else 12190 ac_have_decl=0 12191fi 12192 12193cat >>confdefs.h <<_ACEOF 12194#define HAVE_DECL_STRNDUP $ac_have_decl 12195_ACEOF 12196 12197 12198 12199 12200 12201 12202 12203 12204 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default" 12205if test "x$ac_cv_have_decl_strnlen" = x""yes; then : 12206 ac_have_decl=1 12207else 12208 ac_have_decl=0 12209fi 12210 12211cat >>confdefs.h <<_ACEOF 12212#define HAVE_DECL_STRNLEN $ac_have_decl 12213_ACEOF 12214 12215 12216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 12217$as_echo_n "checking whether stat file-mode macros are broken... " >&6; } 12218if test "${ac_cv_header_stat_broken+set}" = set; then : 12219 $as_echo_n "(cached) " >&6 12220else 12221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12222/* end confdefs.h. */ 12223#include <sys/types.h> 12224#include <sys/stat.h> 12225 12226#if defined S_ISBLK && defined S_IFDIR 12227extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; 12228#endif 12229 12230#if defined S_ISBLK && defined S_IFCHR 12231extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; 12232#endif 12233 12234#if defined S_ISLNK && defined S_IFREG 12235extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; 12236#endif 12237 12238#if defined S_ISSOCK && defined S_IFREG 12239extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; 12240#endif 12241 12242_ACEOF 12243if ac_fn_c_try_compile "$LINENO"; then : 12244 ac_cv_header_stat_broken=no 12245else 12246 ac_cv_header_stat_broken=yes 12247fi 12248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12249fi 12250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 12251$as_echo "$ac_cv_header_stat_broken" >&6; } 12252if test $ac_cv_header_stat_broken = yes; then 12253 12254$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h 12255 12256fi 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 GNULIB_MKTIME=0; 12267 GNULIB_NANOSLEEP=0; 12268 GNULIB_STRPTIME=0; 12269 GNULIB_TIMEGM=0; 12270 GNULIB_TIME_R=0; 12271 HAVE_DECL_LOCALTIME_R=1; 12272 HAVE_NANOSLEEP=1; 12273 HAVE_STRPTIME=1; 12274 HAVE_TIMEGM=1; 12275 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK; 12276 REPLACE_MKTIME=GNULIB_PORTCHECK; 12277 REPLACE_NANOSLEEP=GNULIB_PORTCHECK; 12278 REPLACE_TIMEGM=GNULIB_PORTCHECK; 12279 12280 12281 12282 : 12283 12284 12285 12286 12287 12288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5 12289$as_echo_n "checking for struct timespec in <time.h>... " >&6; } 12290if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then : 12291 $as_echo_n "(cached) " >&6 12292else 12293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12294/* end confdefs.h. */ 12295#include <time.h> 12296 12297int 12298main () 12299{ 12300static struct timespec x; x.tv_sec = x.tv_nsec; 12301 ; 12302 return 0; 12303} 12304_ACEOF 12305if ac_fn_c_try_compile "$LINENO"; then : 12306 gl_cv_sys_struct_timespec_in_time_h=yes 12307else 12308 gl_cv_sys_struct_timespec_in_time_h=no 12309fi 12310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12311fi 12312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5 12313$as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; } 12314 12315 TIME_H_DEFINES_STRUCT_TIMESPEC=0 12316 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0 12317 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0 12318 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then 12319 TIME_H_DEFINES_STRUCT_TIMESPEC=1 12320 else 12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5 12322$as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; } 12323if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then : 12324 $as_echo_n "(cached) " >&6 12325else 12326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12327/* end confdefs.h. */ 12328#include <sys/time.h> 12329 12330int 12331main () 12332{ 12333static struct timespec x; x.tv_sec = x.tv_nsec; 12334 ; 12335 return 0; 12336} 12337_ACEOF 12338if ac_fn_c_try_compile "$LINENO"; then : 12339 gl_cv_sys_struct_timespec_in_sys_time_h=yes 12340else 12341 gl_cv_sys_struct_timespec_in_sys_time_h=no 12342fi 12343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12344fi 12345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5 12346$as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; } 12347 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then 12348 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1 12349 else 12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5 12351$as_echo_n "checking for struct timespec in <pthread.h>... " >&6; } 12352if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then : 12353 $as_echo_n "(cached) " >&6 12354else 12355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12356/* end confdefs.h. */ 12357#include <pthread.h> 12358 12359int 12360main () 12361{ 12362static struct timespec x; x.tv_sec = x.tv_nsec; 12363 ; 12364 return 0; 12365} 12366_ACEOF 12367if ac_fn_c_try_compile "$LINENO"; then : 12368 gl_cv_sys_struct_timespec_in_pthread_h=yes 12369else 12370 gl_cv_sys_struct_timespec_in_pthread_h=no 12371fi 12372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12373fi 12374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5 12375$as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; } 12376 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then 12377 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1 12378 fi 12379 fi 12380 fi 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 if test $gl_cv_have_include_next = yes; then 12397 gl_cv_next_time_h='<'time.h'>' 12398 else 12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5 12400$as_echo_n "checking absolute name of <time.h>... " >&6; } 12401if test "${gl_cv_next_time_h+set}" = set; then : 12402 $as_echo_n "(cached) " >&6 12403else 12404 12405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12406/* end confdefs.h. */ 12407#include <time.h> 12408 12409_ACEOF 12410 case "$host_os" in 12411 aix*) gl_absname_cpp="$ac_cpp -C" ;; 12412 *) gl_absname_cpp="$ac_cpp" ;; 12413 esac 12414 12415 case "$host_os" in 12416 mingw*) 12417 gl_dirsep_regex='[/\\]' 12418 ;; 12419 *) 12420 gl_dirsep_regex='\/' 12421 ;; 12422 esac 12423 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 12424 12425 gl_header_literal_regex=`echo 'time.h' \ 12426 | sed -e "$gl_make_literal_regex_sed"` 12427 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 12428 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 12429 s|^/[^/]|//&| 12430 p 12431 q 12432 }' 12433 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 12434 sed -n "$gl_absolute_header_sed"`'"' 12435 12436 12437fi 12438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5 12439$as_echo "$gl_cv_next_time_h" >&6; } 12440 fi 12441 NEXT_TIME_H=$gl_cv_next_time_h 12442 12443 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 12444 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 12445 gl_next_as_first_directive='<'time.h'>' 12446 else 12447 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 12448 gl_next_as_first_directive=$gl_cv_next_time_h 12449 fi 12450 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 12464$as_echo_n "checking for wint_t... " >&6; } 12465if test "${gt_cv_c_wint_t+set}" = set; then : 12466 $as_echo_n "(cached) " >&6 12467else 12468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12469/* end confdefs.h. */ 12470 12471/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 12472 <wchar.h>. 12473 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included 12474 before <wchar.h>. */ 12475#include <stddef.h> 12476#include <stdio.h> 12477#include <time.h> 12478#include <wchar.h> 12479 wint_t foo = (wchar_t)'\0'; 12480int 12481main () 12482{ 12483 12484 ; 12485 return 0; 12486} 12487_ACEOF 12488if ac_fn_c_try_compile "$LINENO"; then : 12489 gt_cv_c_wint_t=yes 12490else 12491 gt_cv_c_wint_t=no 12492fi 12493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12494fi 12495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 12496$as_echo "$gt_cv_c_wint_t" >&6; } 12497 if test $gt_cv_c_wint_t = yes; then 12498 12499$as_echo "#define HAVE_WINT_T 1" >>confdefs.h 12500 12501 fi 12502 12503 12504 12505 12506 12507 12508 12509 12510 : 12511 12512 12513 12514 12515 12516 if test $ac_cv_header_features_h = yes; then 12517 HAVE_FEATURES_H=1 12518 else 12519 HAVE_FEATURES_H=0 12520 fi 12521 12522 12523ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 12524if test "x$ac_cv_type_size_t" = x""yes; then : 12525 12526else 12527 12528cat >>confdefs.h <<_ACEOF 12529#define size_t unsigned int 12530_ACEOF 12531 12532fi 12533 12534 12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 12536$as_echo_n "checking for inttypes.h... " >&6; } 12537if test "${gl_cv_header_inttypes_h+set}" = set; then : 12538 $as_echo_n "(cached) " >&6 12539else 12540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12541/* end confdefs.h. */ 12542 12543#include <sys/types.h> 12544#include <inttypes.h> 12545 12546int 12547main () 12548{ 12549uintmax_t i = (uintmax_t) -1; return !i; 12550 ; 12551 return 0; 12552} 12553_ACEOF 12554if ac_fn_c_try_compile "$LINENO"; then : 12555 gl_cv_header_inttypes_h=yes 12556else 12557 gl_cv_header_inttypes_h=no 12558fi 12559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12560fi 12561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5 12562$as_echo "$gl_cv_header_inttypes_h" >&6; } 12563 if test $gl_cv_header_inttypes_h = yes; then 12564 12565cat >>confdefs.h <<_ACEOF 12566#define HAVE_INTTYPES_H_WITH_UINTMAX 1 12567_ACEOF 12568 12569 fi 12570 12571 12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 12573$as_echo_n "checking for stdint.h... " >&6; } 12574if test "${gl_cv_header_stdint_h+set}" = set; then : 12575 $as_echo_n "(cached) " >&6 12576else 12577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12578/* end confdefs.h. */ 12579#include <sys/types.h> 12580 #include <stdint.h> 12581int 12582main () 12583{ 12584uintmax_t i = (uintmax_t) -1; return !i; 12585 ; 12586 return 0; 12587} 12588_ACEOF 12589if ac_fn_c_try_compile "$LINENO"; then : 12590 gl_cv_header_stdint_h=yes 12591else 12592 gl_cv_header_stdint_h=no 12593fi 12594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12595fi 12596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5 12597$as_echo "$gl_cv_header_stdint_h" >&6; } 12598 if test $gl_cv_header_stdint_h = yes; then 12599 12600cat >>confdefs.h <<_ACEOF 12601#define HAVE_STDINT_H_WITH_UINTMAX 1 12602_ACEOF 12603 12604 fi 12605 12606 12607 12608 12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 12610$as_echo_n "checking for intmax_t... " >&6; } 12611if test "${gt_cv_c_intmax_t+set}" = set; then : 12612 $as_echo_n "(cached) " >&6 12613else 12614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12615/* end confdefs.h. */ 12616 12617#include <stddef.h> 12618#include <stdlib.h> 12619#if HAVE_STDINT_H_WITH_UINTMAX 12620#include <stdint.h> 12621#endif 12622#if HAVE_INTTYPES_H_WITH_UINTMAX 12623#include <inttypes.h> 12624#endif 12625 12626int 12627main () 12628{ 12629intmax_t x = -1; return !x; 12630 ; 12631 return 0; 12632} 12633_ACEOF 12634if ac_fn_c_try_compile "$LINENO"; then : 12635 gt_cv_c_intmax_t=yes 12636else 12637 gt_cv_c_intmax_t=no 12638fi 12639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12640fi 12641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5 12642$as_echo "$gt_cv_c_intmax_t" >&6; } 12643 if test $gt_cv_c_intmax_t = yes; then 12644 12645$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h 12646 12647 else 12648 12649 test $ac_cv_type_long_long_int = yes \ 12650 && ac_type='long long' \ 12651 || ac_type='long' 12652 12653cat >>confdefs.h <<_ACEOF 12654#define intmax_t $ac_type 12655_ACEOF 12656 12657 fi 12658 12659 12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5 12661$as_echo_n "checking where to find the exponent in a 'double'... " >&6; } 12662if test "${gl_cv_cc_double_expbit0+set}" = set; then : 12663 $as_echo_n "(cached) " >&6 12664else 12665 12666 if test "$cross_compiling" = yes; then : 12667 12668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12669/* end confdefs.h. */ 12670 12671#if defined arm || defined __arm || defined __arm__ 12672 mixed_endianness 12673#endif 12674 12675_ACEOF 12676if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12677 $EGREP "mixed_endianness" >/dev/null 2>&1; then : 12678 gl_cv_cc_double_expbit0="unknown" 12679else 12680 12681 : 12682if test "${ac_cv_c_bigendian+set}" = set; then : 12683 $as_echo_n "(cached) " >&6 12684else 12685 ac_cv_c_bigendian=unknown 12686 # See if we're dealing with a universal compiler. 12687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12688/* end confdefs.h. */ 12689#ifndef __APPLE_CC__ 12690 not a universal capable compiler 12691 #endif 12692 typedef int dummy; 12693 12694_ACEOF 12695if ac_fn_c_try_compile "$LINENO"; then : 12696 12697 # Check for potential -arch flags. It is not universal unless 12698 # there are at least two -arch flags with different values. 12699 ac_arch= 12700 ac_prev= 12701 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 12702 if test -n "$ac_prev"; then 12703 case $ac_word in 12704 i?86 | x86_64 | ppc | ppc64) 12705 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 12706 ac_arch=$ac_word 12707 else 12708 ac_cv_c_bigendian=universal 12709 break 12710 fi 12711 ;; 12712 esac 12713 ac_prev= 12714 elif test "x$ac_word" = "x-arch"; then 12715 ac_prev=arch 12716 fi 12717 done 12718fi 12719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12720 if test $ac_cv_c_bigendian = unknown; then 12721 # See if sys/param.h defines the BYTE_ORDER macro. 12722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12723/* end confdefs.h. */ 12724#include <sys/types.h> 12725 #include <sys/param.h> 12726 12727int 12728main () 12729{ 12730#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 12731 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 12732 && LITTLE_ENDIAN) 12733 bogus endian macros 12734 #endif 12735 12736 ; 12737 return 0; 12738} 12739_ACEOF 12740if ac_fn_c_try_compile "$LINENO"; then : 12741 # It does; now see whether it defined to BIG_ENDIAN or not. 12742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12743/* end confdefs.h. */ 12744#include <sys/types.h> 12745 #include <sys/param.h> 12746 12747int 12748main () 12749{ 12750#if BYTE_ORDER != BIG_ENDIAN 12751 not big endian 12752 #endif 12753 12754 ; 12755 return 0; 12756} 12757_ACEOF 12758if ac_fn_c_try_compile "$LINENO"; then : 12759 ac_cv_c_bigendian=yes 12760else 12761 ac_cv_c_bigendian=no 12762fi 12763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12764fi 12765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12766 fi 12767 if test $ac_cv_c_bigendian = unknown; then 12768 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 12769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12770/* end confdefs.h. */ 12771#include <limits.h> 12772 12773int 12774main () 12775{ 12776#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 12777 bogus endian macros 12778 #endif 12779 12780 ; 12781 return 0; 12782} 12783_ACEOF 12784if ac_fn_c_try_compile "$LINENO"; then : 12785 # It does; now see whether it defined to _BIG_ENDIAN or not. 12786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12787/* end confdefs.h. */ 12788#include <limits.h> 12789 12790int 12791main () 12792{ 12793#ifndef _BIG_ENDIAN 12794 not big endian 12795 #endif 12796 12797 ; 12798 return 0; 12799} 12800_ACEOF 12801if ac_fn_c_try_compile "$LINENO"; then : 12802 ac_cv_c_bigendian=yes 12803else 12804 ac_cv_c_bigendian=no 12805fi 12806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12807fi 12808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12809 fi 12810 if test $ac_cv_c_bigendian = unknown; then 12811 # Compile a test program. 12812 if test "$cross_compiling" = yes; then : 12813 # Try to guess by grepping values from an object file. 12814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12815/* end confdefs.h. */ 12816short int ascii_mm[] = 12817 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 12818 short int ascii_ii[] = 12819 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 12820 int use_ascii (int i) { 12821 return ascii_mm[i] + ascii_ii[i]; 12822 } 12823 short int ebcdic_ii[] = 12824 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 12825 short int ebcdic_mm[] = 12826 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 12827 int use_ebcdic (int i) { 12828 return ebcdic_mm[i] + ebcdic_ii[i]; 12829 } 12830 extern int foo; 12831 12832int 12833main () 12834{ 12835return use_ascii (foo) == use_ebcdic (foo); 12836 ; 12837 return 0; 12838} 12839_ACEOF 12840if ac_fn_c_try_compile "$LINENO"; then : 12841 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 12842 ac_cv_c_bigendian=yes 12843 fi 12844 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 12845 if test "$ac_cv_c_bigendian" = unknown; then 12846 ac_cv_c_bigendian=no 12847 else 12848 # finding both strings is unlikely to happen, but who knows? 12849 ac_cv_c_bigendian=unknown 12850 fi 12851 fi 12852fi 12853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12854else 12855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12856/* end confdefs.h. */ 12857$ac_includes_default 12858int 12859main () 12860{ 12861 12862 /* Are we little or big endian? From Harbison&Steele. */ 12863 union 12864 { 12865 long int l; 12866 char c[sizeof (long int)]; 12867 } u; 12868 u.l = 1; 12869 return u.c[sizeof (long int) - 1] == 1; 12870 12871 ; 12872 return 0; 12873} 12874_ACEOF 12875if ac_fn_c_try_run "$LINENO"; then : 12876 ac_cv_c_bigendian=no 12877else 12878 ac_cv_c_bigendian=yes 12879fi 12880rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12881 conftest.$ac_objext conftest.beam conftest.$ac_ext 12882fi 12883 12884 fi 12885fi 12886: 12887 case $ac_cv_c_bigendian in #( 12888 yes) 12889 gl_cv_cc_double_expbit0="word 0 bit 20";; #( 12890 no) 12891 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #( 12892 universal) 12893 12894$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 12895 12896 ;; #( 12897 *) 12898 gl_cv_cc_double_expbit0="unknown" ;; 12899 esac 12900 12901 12902fi 12903rm -f conftest* 12904 12905 12906else 12907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12908/* end confdefs.h. */ 12909 12910#include <float.h> 12911#include <stddef.h> 12912#include <stdio.h> 12913#include <string.h> 12914#define NWORDS \ 12915 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int)) 12916typedef union { double value; unsigned int word[NWORDS]; } memory_double; 12917static unsigned int ored_words[NWORDS]; 12918static unsigned int anded_words[NWORDS]; 12919static void add_to_ored_words (double x) 12920{ 12921 memory_double m; 12922 size_t i; 12923 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */ 12924 memset (&m, 0, sizeof (memory_double)); 12925 m.value = x; 12926 for (i = 0; i < NWORDS; i++) 12927 { 12928 ored_words[i] |= m.word[i]; 12929 anded_words[i] &= m.word[i]; 12930 } 12931} 12932int main () 12933{ 12934 size_t j; 12935 FILE *fp = fopen ("conftest.out", "w"); 12936 if (fp == NULL) 12937 return 1; 12938 for (j = 0; j < NWORDS; j++) 12939 anded_words[j] = ~ (unsigned int) 0; 12940 add_to_ored_words (0.25); 12941 add_to_ored_words (0.5); 12942 add_to_ored_words (1.0); 12943 add_to_ored_words (2.0); 12944 add_to_ored_words (4.0); 12945 /* Remove bits that are common (e.g. if representation of the first mantissa 12946 bit is explicit). */ 12947 for (j = 0; j < NWORDS; j++) 12948 ored_words[j] &= ~anded_words[j]; 12949 /* Now find the nonzero word. */ 12950 for (j = 0; j < NWORDS; j++) 12951 if (ored_words[j] != 0) 12952 break; 12953 if (j < NWORDS) 12954 { 12955 size_t i; 12956 for (i = j + 1; i < NWORDS; i++) 12957 if (ored_words[i] != 0) 12958 { 12959 fprintf (fp, "unknown"); 12960 return (fclose (fp) != 0); 12961 } 12962 for (i = 0; ; i++) 12963 if ((ored_words[j] >> i) & 1) 12964 { 12965 fprintf (fp, "word %d bit %d", (int) j, (int) i); 12966 return (fclose (fp) != 0); 12967 } 12968 } 12969 fprintf (fp, "unknown"); 12970 return (fclose (fp) != 0); 12971} 12972 12973_ACEOF 12974if ac_fn_c_try_run "$LINENO"; then : 12975 gl_cv_cc_double_expbit0=`cat conftest.out` 12976else 12977 gl_cv_cc_double_expbit0="unknown" 12978fi 12979rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12980 conftest.$ac_objext conftest.beam conftest.$ac_ext 12981fi 12982 12983 rm -f conftest.out 12984 12985fi 12986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5 12987$as_echo "$gl_cv_cc_double_expbit0" >&6; } 12988 case "$gl_cv_cc_double_expbit0" in 12989 word*bit*) 12990 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'` 12991 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'` 12992 12993cat >>confdefs.h <<_ACEOF 12994#define DBL_EXPBIT0_WORD $word 12995_ACEOF 12996 12997 12998cat >>confdefs.h <<_ACEOF 12999#define DBL_EXPBIT0_BIT $bit 13000_ACEOF 13001 13002 ;; 13003 esac 13004 13005 13006 13007 13008 13009 13010 13011 13012 : 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5 13023$as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; } 13024if test "${gl_cv_func_snprintf_retval_c99+set}" = set; then : 13025 $as_echo_n "(cached) " >&6 13026else 13027 13028 if test "$cross_compiling" = yes; then : 13029 13030 case "$host_os" in 13031 # Guess yes on glibc systems. 13032 *-gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";; 13033 # Guess yes on FreeBSD >= 5. 13034 freebsd[1-4]*) gl_cv_func_snprintf_retval_c99="guessing no";; 13035 freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";; 13036 # Guess yes on MacOS X >= 10.3. 13037 darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";; 13038 darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";; 13039 # Guess yes on OpenBSD >= 3.9. 13040 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*) 13041 gl_cv_func_snprintf_retval_c99="guessing no";; 13042 openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";; 13043 # Guess yes on Solaris >= 2.10. 13044 solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";; 13045 solaris*) gl_cv_func_printf_sizes_c99="guessing no";; 13046 # Guess yes on AIX >= 4. 13047 aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";; 13048 aix*) gl_cv_func_snprintf_retval_c99="guessing yes";; 13049 # Guess yes on NetBSD >= 3. 13050 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*) 13051 gl_cv_func_snprintf_retval_c99="guessing no";; 13052 netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";; 13053 # Guess yes on BeOS. 13054 beos*) gl_cv_func_snprintf_retval_c99="guessing yes";; 13055 # If we don't know, assume the worst. 13056 *) gl_cv_func_snprintf_retval_c99="guessing no";; 13057 esac 13058 13059else 13060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13061/* end confdefs.h. */ 13062 13063#include <stdio.h> 13064#include <string.h> 13065#if HAVE_SNPRINTF 13066# define my_snprintf snprintf 13067#else 13068# include <stdarg.h> 13069static int my_snprintf (char *buf, int size, const char *format, ...) 13070{ 13071 va_list args; 13072 int ret; 13073 va_start (args, format); 13074 ret = vsnprintf (buf, size, format, args); 13075 va_end (args); 13076 return ret; 13077} 13078#endif 13079static char buf[100]; 13080int main () 13081{ 13082 strcpy (buf, "ABCDEF"); 13083 if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7) 13084 return 1; 13085 if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7) 13086 return 2; 13087 if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7) 13088 return 3; 13089 return 0; 13090} 13091_ACEOF 13092if ac_fn_c_try_run "$LINENO"; then : 13093 gl_cv_func_snprintf_retval_c99=yes 13094else 13095 gl_cv_func_snprintf_retval_c99=no 13096fi 13097rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13098 conftest.$ac_objext conftest.beam conftest.$ac_ext 13099fi 13100 13101 13102fi 13103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5 13104$as_echo "$gl_cv_func_snprintf_retval_c99" >&6; } 13105 13106 13107 13108 13109 13110 13111 13112 for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb 13113do : 13114 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13115ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13116if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13117 cat >>confdefs.h <<_ACEOF 13118#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13119_ACEOF 13120 13121fi 13122done 13123 13124 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h> 13125" 13126if test "x$ac_cv_have_decl__snprintf" = x""yes; then : 13127 ac_have_decl=1 13128else 13129 ac_have_decl=0 13130fi 13131 13132cat >>confdefs.h <<_ACEOF 13133#define HAVE_DECL__SNPRINTF $ac_have_decl 13134_ACEOF 13135 13136 13137 13138 case "$gl_cv_func_snprintf_retval_c99" in 13139 *yes) 13140 13141$as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h 13142 13143 ;; 13144 esac 13145 13146 13147 13148 13149 13150 13151 13152 GNULIB_ISWBLANK=0; 13153 GNULIB_WCTYPE=0; 13154 GNULIB_ISWCTYPE=0; 13155 GNULIB_WCTRANS=0; 13156 GNULIB_TOWCTRANS=0; 13157 HAVE_ISWBLANK=1; 13158 HAVE_WCTYPE_T=1; 13159 HAVE_WCTRANS_T=1; 13160 REPLACE_ISWBLANK=0; 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 if false; then 13174 GL_COND_LIBTOOL_TRUE= 13175 GL_COND_LIBTOOL_FALSE='#' 13176else 13177 GL_COND_LIBTOOL_TRUE='#' 13178 GL_COND_LIBTOOL_FALSE= 13179fi 13180 13181 gl_cond_libtool=false 13182 gl_libdeps= 13183 gl_ltlibdeps= 13184 gl_m4_base='gnulib-m4' 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 gl_source_base='gnulib-lib' 13195 13196 13197 if test $ac_cv_func_alloca_works = no; then 13198 : 13199 fi 13200 13201 # Define an additional variable used in the Makefile substitution. 13202 if test $ac_cv_working_alloca_h = yes; then 13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5 13204$as_echo_n "checking for alloca as a compiler built-in... " >&6; } 13205if test "${gl_cv_rpl_alloca+set}" = set; then : 13206 $as_echo_n "(cached) " >&6 13207else 13208 13209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13210/* end confdefs.h. */ 13211 13212#if defined __GNUC__ || defined _AIX || defined _MSC_VER 13213 Need own alloca 13214#endif 13215 13216_ACEOF 13217if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13218 $EGREP "Need own alloca" >/dev/null 2>&1; then : 13219 gl_cv_rpl_alloca=yes 13220else 13221 gl_cv_rpl_alloca=no 13222fi 13223rm -f conftest* 13224 13225 13226fi 13227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5 13228$as_echo "$gl_cv_rpl_alloca" >&6; } 13229 if test $gl_cv_rpl_alloca = yes; then 13230 13231$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 13232 13233 ALLOCA_H=alloca.h 13234 else 13235 ALLOCA_H= 13236 fi 13237 else 13238 ALLOCA_H=alloca.h 13239 fi 13240 13241 if test -n "$ALLOCA_H"; then 13242 GL_GENERATE_ALLOCA_H_TRUE= 13243 GL_GENERATE_ALLOCA_H_FALSE='#' 13244else 13245 GL_GENERATE_ALLOCA_H_TRUE='#' 13246 GL_GENERATE_ALLOCA_H_FALSE= 13247fi 13248 13249 13250 13251 13252 13253 13254 13255 13256 : 13257 13258 13259 13260 13261 13262 if test $ac_cv_func_btowc = no; then 13263 HAVE_BTOWC=0 13264 else 13265 13266 13267 13268 13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5 13270$as_echo_n "checking whether btowc(0) is correct... " >&6; } 13271if test "${gl_cv_func_btowc_nul+set}" = set; then : 13272 $as_echo_n "(cached) " >&6 13273else 13274 13275 if test "$cross_compiling" = yes; then : 13276 13277 case "$host_os" in 13278 # Guess no on Cygwin. 13279 cygwin*) gl_cv_func_btowc_nul="guessing no" ;; 13280 # Guess yes otherwise. 13281 *) gl_cv_func_btowc_nul="guessing yes" ;; 13282 esac 13283 13284else 13285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13286/* end confdefs.h. */ 13287 13288#include <string.h> 13289/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 13290 <wchar.h>. 13291 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 13292 included before <wchar.h>. */ 13293#include <stddef.h> 13294#include <stdio.h> 13295#include <time.h> 13296#include <wchar.h> 13297int main () 13298{ 13299 if (btowc ('\0') != 0) 13300 return 1; 13301 return 0; 13302} 13303_ACEOF 13304if ac_fn_c_try_run "$LINENO"; then : 13305 gl_cv_func_btowc_nul=yes 13306else 13307 gl_cv_func_btowc_nul=no 13308fi 13309rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13310 conftest.$ac_objext conftest.beam conftest.$ac_ext 13311fi 13312 13313 13314fi 13315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5 13316$as_echo "$gl_cv_func_btowc_nul" >&6; } 13317 13318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5 13319$as_echo_n "checking whether btowc(EOF) is correct... " >&6; } 13320if test "${gl_cv_func_btowc_eof+set}" = set; then : 13321 $as_echo_n "(cached) " >&6 13322else 13323 13324 case "$host_os" in 13325 # Guess no on IRIX. 13326 irix*) gl_cv_func_btowc_eof="guessing no" ;; 13327 # Guess yes otherwise. 13328 *) gl_cv_func_btowc_eof="guessing yes" ;; 13329 esac 13330 if test $LOCALE_FR != none; then 13331 if test "$cross_compiling" = yes; then : 13332 : 13333else 13334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13335/* end confdefs.h. */ 13336 13337#include <locale.h> 13338#include <string.h> 13339/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 13340 <wchar.h>. 13341 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 13342 included before <wchar.h>. */ 13343#include <stddef.h> 13344#include <stdio.h> 13345#include <time.h> 13346#include <wchar.h> 13347int main () 13348{ 13349 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL) 13350 { 13351 if (btowc (EOF) != WEOF) 13352 return 1; 13353 } 13354 return 0; 13355} 13356_ACEOF 13357if ac_fn_c_try_run "$LINENO"; then : 13358 gl_cv_func_btowc_eof=yes 13359else 13360 gl_cv_func_btowc_eof=no 13361fi 13362rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13363 conftest.$ac_objext conftest.beam conftest.$ac_ext 13364fi 13365 13366 fi 13367 13368fi 13369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5 13370$as_echo "$gl_cv_func_btowc_eof" >&6; } 13371 13372 case "$gl_cv_func_btowc_nul" in 13373 *yes) ;; 13374 *) REPLACE_BTOWC=1 ;; 13375 esac 13376 case "$gl_cv_func_btowc_eof" in 13377 *yes) ;; 13378 *) REPLACE_BTOWC=1 ;; 13379 esac 13380 fi 13381 13382if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then 13383 13384 13385 13386 13387 13388 13389 13390 13391 gl_LIBOBJS="$gl_LIBOBJS btowc.$ac_objext" 13392 13393 13394 : 13395 13396fi 13397 13398 13399 13400 13401 13402 GNULIB_BTOWC=1 13403 13404 13405 13406 13407 13408$as_echo "#define GNULIB_TEST_BTOWC 1" >>confdefs.h 13409 13410 13411 13412 13413 13414 13415 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 13416 REPLACE_CLOSE=1 13417 fi 13418 13419 13420 13421 13422 13423 : 13424 13425 13426 13427 13428 13429 if test $ac_cv_header_sys_socket_h != yes; then 13430 for ac_header in winsock2.h 13431do : 13432 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 13433if test "x$ac_cv_header_winsock2_h" = x""yes; then : 13434 cat >>confdefs.h <<_ACEOF 13435#define HAVE_WINSOCK2_H 1 13436_ACEOF 13437 13438fi 13439 13440done 13441 13442 fi 13443 if test "$ac_cv_header_winsock2_h" = yes; then 13444 HAVE_WINSOCK2_H=1 13445 UNISTD_H_HAVE_WINSOCK2_H=1 13446 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 13447 else 13448 HAVE_WINSOCK2_H=0 13449 fi 13450 13451 13452 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then 13453 REPLACE_CLOSE=1 13454 fi 13455 13456 13457 13458if test $REPLACE_CLOSE = 1; then 13459 13460 13461 13462 13463 13464 13465 13466 13467 gl_LIBOBJS="$gl_LIBOBJS close.$ac_objext" 13468 13469fi 13470 13471 13472 13473 13474 13475 GNULIB_CLOSE=1 13476 13477 13478 13479 13480 13481$as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h 13482 13483 13484 13485 13486 if test "x$datarootdir" = x; then 13487 datarootdir='${datadir}' 13488 13489 fi 13490 if test "x$docdir" = x; then 13491 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 13492 13493 fi 13494 if test "x$htmldir" = x; then 13495 htmldir='${docdir}' 13496 13497 fi 13498 if test "x$dvidir" = x; then 13499 dvidir='${docdir}' 13500 13501 fi 13502 if test "x$pdfdir" = x; then 13503 pdfdir='${docdir}' 13504 13505 fi 13506 if test "x$psdir" = x; then 13507 psdir='${docdir}' 13508 13509 fi 13510 if test "x$lispdir" = x; then 13511 lispdir='${datarootdir}/emacs/site-lisp' 13512 13513 fi 13514 if test "x$localedir" = x; then 13515 localedir='${datarootdir}/locale' 13516 13517 fi 13518 13519 pkglibexecdir='${libexecdir}/${PACKAGE}' 13520 13521 13522 13523 13524 13525 13526 13527cat >>confdefs.h <<_ACEOF 13528#define GNULIB_DIRNAME 1 13529_ACEOF 13530 13531 13532 13533 13534 13535 13536 13537 13538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5 13539$as_echo_n "checking whether // is distinct from /... " >&6; } 13540if test "${gl_cv_double_slash_root+set}" = set; then : 13541 $as_echo_n "(cached) " >&6 13542else 13543 if test x"$cross_compiling" = xyes ; then 13544 # When cross-compiling, there is no way to tell whether // is special 13545 # short of a list of hosts. However, the only known hosts to date 13546 # that have a distinct // are Apollo DomainOS (too old to port to), 13547 # Cygwin, and z/OS. If anyone knows of another system for which // has 13548 # special semantics and is distinct from /, please report it to 13549 # <bug-gnulib@gnu.org>. 13550 case $host in 13551 *-cygwin | i370-ibm-openedition) 13552 gl_cv_double_slash_root=yes ;; 13553 *) 13554 # Be optimistic and assume that / and // are the same when we 13555 # don't know. 13556 gl_cv_double_slash_root='unknown, assuming no' ;; 13557 esac 13558 else 13559 set x `ls -di / // 2>/dev/null` 13560 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then 13561 gl_cv_double_slash_root=no 13562 else 13563 gl_cv_double_slash_root=yes 13564 fi 13565 fi 13566fi 13567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5 13568$as_echo "$gl_cv_double_slash_root" >&6; } 13569 if test "$gl_cv_double_slash_root" = yes; then 13570 13571$as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h 13572 13573 fi 13574 13575 13576 13577 13578 13579 13580$as_echo "#define HAVE_DUP2 1" >>confdefs.h 13581 13582 13583 if test $HAVE_DUP2 = 1; then 13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5 13585$as_echo_n "checking whether dup2 works... " >&6; } 13586if test "${gl_cv_func_dup2_works+set}" = set; then : 13587 $as_echo_n "(cached) " >&6 13588else 13589 if test "$cross_compiling" = yes; then : 13590 case "$host_os" in 13591 mingw*) # on this platform, dup2 always returns 0 for success 13592 gl_cv_func_dup2_works=no;; 13593 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0 13594 gl_cv_func_dup2_works=no;; 13595 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a 13596 # closed fd may yield -EBADF instead of -1 / errno=EBADF. 13597 gl_cv_func_dup2_works=no;; 13598 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF. 13599 gl_cv_func_dup2_works=no;; 13600 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC. 13601 gl_cv_func_dup2_works=no;; 13602 *) gl_cv_func_dup2_works=yes;; 13603 esac 13604else 13605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13606/* end confdefs.h. */ 13607 13608 #include <unistd.h> 13609#include <fcntl.h> 13610#include <errno.h> 13611int 13612main () 13613{ 13614int result = 0; 13615#ifdef FD_CLOEXEC 13616 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1) 13617 result |= 1; 13618#endif 13619 if (dup2 (1, 1) == 0) 13620 result |= 2; 13621#ifdef FD_CLOEXEC 13622 if (fcntl (1, F_GETFD) != FD_CLOEXEC) 13623 result |= 4; 13624#endif 13625 close (0); 13626 if (dup2 (0, 0) != -1) 13627 result |= 8; 13628 /* Many gnulib modules require POSIX conformance of EBADF. */ 13629 if (dup2 (2, 1000000) == -1 && errno != EBADF) 13630 result |= 16; 13631 return result; 13632 13633 ; 13634 return 0; 13635} 13636 13637_ACEOF 13638if ac_fn_c_try_run "$LINENO"; then : 13639 gl_cv_func_dup2_works=yes 13640else 13641 gl_cv_func_dup2_works=no 13642fi 13643rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13644 conftest.$ac_objext conftest.beam conftest.$ac_ext 13645fi 13646 13647 13648fi 13649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5 13650$as_echo "$gl_cv_func_dup2_works" >&6; } 13651 if test "$gl_cv_func_dup2_works" = no; then 13652 REPLACE_DUP2=1 13653 fi 13654 fi 13655 13656 13657if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then 13658 13659 13660 13661 13662 13663 13664 13665 13666 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext" 13667 13668 13669fi 13670 13671 13672 13673 13674 13675 GNULIB_DUP2=1 13676 13677 13678 13679 13680 13681$as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h 13682 13683 13684 13685 13686 13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5 13688$as_echo_n "checking for error_at_line... " >&6; } 13689if test "${ac_cv_lib_error_at_line+set}" = set; then : 13690 $as_echo_n "(cached) " >&6 13691else 13692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13693/* end confdefs.h. */ 13694#include <error.h> 13695int 13696main () 13697{ 13698error_at_line (0, 0, "", 0, "an error occurred"); 13699 ; 13700 return 0; 13701} 13702_ACEOF 13703if ac_fn_c_try_link "$LINENO"; then : 13704 ac_cv_lib_error_at_line=yes 13705else 13706 ac_cv_lib_error_at_line=no 13707fi 13708rm -f core conftest.err conftest.$ac_objext \ 13709 conftest$ac_exeext conftest.$ac_ext 13710fi 13711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5 13712$as_echo "$ac_cv_lib_error_at_line" >&6; } 13713 13714if test $ac_cv_lib_error_at_line = no; then 13715 13716 13717 13718 13719 13720 13721 13722 13723 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext" 13724 13725 13726 13727 13728 : 13729 13730fi 13731 13732 13733 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format" 13734 13735 13736 13737 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format" 13738 13739 13740 13741 13742 13743 13744 : 13745 13746 13747 13748 13749 13750 if test $ac_cv_func_fcntl = no; then 13751 13752 13753 13754 : 13755 13756 13757 13758 13759 13760 if test $ac_cv_func_fcntl = no; then 13761 HAVE_FCNTL=0 13762 else 13763 REPLACE_FCNTL=1 13764 fi 13765 13766 else 13767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5 13768$as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; } 13769if test "${gl_cv_func_fcntl_f_dupfd_works+set}" = set; then : 13770 $as_echo_n "(cached) " >&6 13771else 13772 if test "$cross_compiling" = yes; then : 13773 # Guess that it works on glibc systems 13774 case $host_os in #(( 13775 *-gnu*) gl_cv_func_fcntl_f_dupfd_works="guessing yes";; 13776 *) gl_cv_func_fcntl_f_dupfd_works="guessing no";; 13777 esac 13778else 13779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13780/* end confdefs.h. */ 13781 13782#include <fcntl.h> 13783#include <errno.h> 13784 13785int 13786main () 13787{ 13788int result = 0; 13789 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1; 13790 if (errno != EINVAL) result |= 2; 13791 return result; 13792 13793 ; 13794 return 0; 13795} 13796_ACEOF 13797if ac_fn_c_try_run "$LINENO"; then : 13798 gl_cv_func_fcntl_f_dupfd_works=yes 13799else 13800 gl_cv_func_fcntl_f_dupfd_works=no 13801fi 13802rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13803 conftest.$ac_objext conftest.beam conftest.$ac_ext 13804fi 13805 13806fi 13807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5 13808$as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; } 13809 case $gl_cv_func_fcntl_f_dupfd_works in 13810 *yes) ;; 13811 *) 13812 13813 13814 : 13815 13816 13817 13818 13819 13820 if test $ac_cv_func_fcntl = no; then 13821 HAVE_FCNTL=0 13822 else 13823 REPLACE_FCNTL=1 13824 fi 13825 13826 13827$as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h 13828 ;; 13829 esac 13830 13831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5 13832$as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; } 13833if test "${gl_cv_func_fcntl_f_dupfd_cloexec+set}" = set; then : 13834 $as_echo_n "(cached) " >&6 13835else 13836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13837/* end confdefs.h. */ 13838 13839#include <fcntl.h> 13840#ifndef F_DUPFD_CLOEXEC 13841choke me 13842#endif 13843 13844int 13845main () 13846{ 13847 13848 ; 13849 return 0; 13850} 13851_ACEOF 13852if ac_fn_c_try_compile "$LINENO"; then : 13853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13854/* end confdefs.h. */ 13855 13856#ifdef __linux__ 13857/* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace 13858 it to support the semantics on older kernels that failed with EINVAL. */ 13859choke me 13860#endif 13861 13862int 13863main () 13864{ 13865 13866 ; 13867 return 0; 13868} 13869_ACEOF 13870if ac_fn_c_try_compile "$LINENO"; then : 13871 gl_cv_func_fcntl_f_dupfd_cloexec=yes 13872else 13873 gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check" 13874fi 13875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13876else 13877 gl_cv_func_fcntl_f_dupfd_cloexec=no 13878fi 13879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13880fi 13881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5 13882$as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; } 13883 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then 13884 13885 13886 13887 : 13888 13889 13890 13891 13892 13893 if test $ac_cv_func_fcntl = no; then 13894 HAVE_FCNTL=0 13895 else 13896 REPLACE_FCNTL=1 13897 fi 13898 13899 fi 13900 fi 13901 13902 13903if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then 13904 13905 13906 13907 13908 13909 13910 13911 13912 gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext" 13913 13914fi 13915 13916 13917 13918 13919 13920 GNULIB_FCNTL=1 13921 13922 13923 13924 13925 13926$as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h 13927 13928 13929 13930 13931 13932 13933 13934 13935 13936 13937 13938 13939 13940 13941 if test $gl_cv_have_include_next = yes; then 13942 gl_cv_next_fcntl_h='<'fcntl.h'>' 13943 else 13944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5 13945$as_echo_n "checking absolute name of <fcntl.h>... " >&6; } 13946if test "${gl_cv_next_fcntl_h+set}" = set; then : 13947 $as_echo_n "(cached) " >&6 13948else 13949 13950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13951/* end confdefs.h. */ 13952#include <fcntl.h> 13953 13954_ACEOF 13955 case "$host_os" in 13956 aix*) gl_absname_cpp="$ac_cpp -C" ;; 13957 *) gl_absname_cpp="$ac_cpp" ;; 13958 esac 13959 13960 case "$host_os" in 13961 mingw*) 13962 gl_dirsep_regex='[/\\]' 13963 ;; 13964 *) 13965 gl_dirsep_regex='\/' 13966 ;; 13967 esac 13968 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 13969 13970 gl_header_literal_regex=`echo 'fcntl.h' \ 13971 | sed -e "$gl_make_literal_regex_sed"` 13972 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 13973 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 13974 s|^/[^/]|//&| 13975 p 13976 q 13977 }' 13978 gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 13979 sed -n "$gl_absolute_header_sed"`'"' 13980 13981 13982fi 13983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5 13984$as_echo "$gl_cv_next_fcntl_h" >&6; } 13985 fi 13986 NEXT_FCNTL_H=$gl_cv_next_fcntl_h 13987 13988 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 13989 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 13990 gl_next_as_first_directive='<'fcntl.h'>' 13991 else 13992 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 13993 gl_next_as_first_directive=$gl_cv_next_fcntl_h 13994 fi 13995 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive 13996 13997 13998 13999 14000 14001 14002 14003 14004 14005 14006 for gl_func in fcntl openat; do 14007 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 14009$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 14010if eval "test \"\${$as_gl_Symbol+set}\"" = set; then : 14011 $as_echo_n "(cached) " >&6 14012else 14013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14014/* end confdefs.h. */ 14015#include <fcntl.h> 14016 14017int 14018main () 14019{ 14020#undef $gl_func 14021 (void) $gl_func; 14022 ; 14023 return 0; 14024} 14025_ACEOF 14026if ac_fn_c_try_compile "$LINENO"; then : 14027 eval "$as_gl_Symbol=yes" 14028else 14029 eval "$as_gl_Symbol=no" 14030fi 14031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14032fi 14033eval ac_res=\$$as_gl_Symbol 14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14035$as_echo "$ac_res" >&6; } 14036 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 14037 cat >>confdefs.h <<_ACEOF 14038#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 14039_ACEOF 14040 14041 eval ac_cv_have_decl_$gl_func=yes 14042fi 14043 done 14044 14045 14046 14047 14048 14049 FLOAT_H= 14050 REPLACE_FLOAT_LDBL=0 14051 case "$host_os" in 14052 aix* | beos* | openbsd* | mirbsd* | irix*) 14053 FLOAT_H=float.h 14054 ;; 14055 freebsd*) 14056 case "$host_cpu" in 14057 i[34567]86 ) 14058 FLOAT_H=float.h 14059 ;; 14060 x86_64 ) 14061 # On x86_64 systems, the C compiler may still be generating 14062 # 32-bit code. 14063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14064/* end confdefs.h. */ 14065#if defined __LP64__ || defined __x86_64__ || defined __amd64__ 14066 yes 14067 #endif 14068_ACEOF 14069if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14070 $EGREP "yes" >/dev/null 2>&1; then : 14071 14072else 14073 FLOAT_H=float.h 14074fi 14075rm -f conftest* 14076 14077 ;; 14078 esac 14079 ;; 14080 linux*) 14081 case "$host_cpu" in 14082 powerpc*) 14083 FLOAT_H=float.h 14084 ;; 14085 esac 14086 ;; 14087 esac 14088 case "$host_os" in 14089 aix* | freebsd* | linux*) 14090 if test -n "$FLOAT_H"; then 14091 REPLACE_FLOAT_LDBL=1 14092 fi 14093 ;; 14094 esac 14095 14096 REPLACE_ITOLD=0 14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5 14098$as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; } 14099if test "${gl_cv_func_itold_works+set}" = set; then : 14100 $as_echo_n "(cached) " >&6 14101else 14102 14103 if test "$cross_compiling" = yes; then : 14104 case "$host" in 14105 sparc*-*-linux*) 14106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14107/* end confdefs.h. */ 14108#if defined __LP64__ || defined __arch64__ 14109 yes 14110 #endif 14111_ACEOF 14112if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14113 $EGREP "yes" >/dev/null 2>&1; then : 14114 gl_cv_func_itold_works="guessing no" 14115else 14116 gl_cv_func_itold_works="guessing yes" 14117fi 14118rm -f conftest* 14119 14120 ;; 14121 *) gl_cv_func_itold_works="guessing yes" ;; 14122 esac 14123 14124else 14125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14126/* end confdefs.h. */ 14127 14128int i = -1; 14129volatile long double ld; 14130int main () 14131{ 14132 ld += i * 1.0L; 14133 if (ld > 0) 14134 return 1; 14135 return 0; 14136} 14137_ACEOF 14138if ac_fn_c_try_run "$LINENO"; then : 14139 gl_cv_func_itold_works=yes 14140else 14141 gl_cv_func_itold_works=no 14142fi 14143rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14144 conftest.$ac_objext conftest.beam conftest.$ac_ext 14145fi 14146 14147 14148fi 14149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5 14150$as_echo "$gl_cv_func_itold_works" >&6; } 14151 case "$gl_cv_func_itold_works" in 14152 *no) 14153 REPLACE_ITOLD=1 14154 FLOAT_H=float.h 14155 ;; 14156 esac 14157 14158 if test -n "$FLOAT_H"; then 14159 14160 14161 14162 14163 14164 14165 14166 14167 if test $gl_cv_have_include_next = yes; then 14168 gl_cv_next_float_h='<'float.h'>' 14169 else 14170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5 14171$as_echo_n "checking absolute name of <float.h>... " >&6; } 14172if test "${gl_cv_next_float_h+set}" = set; then : 14173 $as_echo_n "(cached) " >&6 14174else 14175 14176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14177/* end confdefs.h. */ 14178#include <float.h> 14179 14180_ACEOF 14181 case "$host_os" in 14182 aix*) gl_absname_cpp="$ac_cpp -C" ;; 14183 *) gl_absname_cpp="$ac_cpp" ;; 14184 esac 14185 14186 case "$host_os" in 14187 mingw*) 14188 gl_dirsep_regex='[/\\]' 14189 ;; 14190 *) 14191 gl_dirsep_regex='\/' 14192 ;; 14193 esac 14194 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 14195 14196 gl_header_literal_regex=`echo 'float.h' \ 14197 | sed -e "$gl_make_literal_regex_sed"` 14198 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 14199 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 14200 s|^/[^/]|//&| 14201 p 14202 q 14203 }' 14204 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 14205 sed -n "$gl_absolute_header_sed"`'"' 14206 14207 14208fi 14209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5 14210$as_echo "$gl_cv_next_float_h" >&6; } 14211 fi 14212 NEXT_FLOAT_H=$gl_cv_next_float_h 14213 14214 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 14215 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 14216 gl_next_as_first_directive='<'float.h'>' 14217 else 14218 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 14219 gl_next_as_first_directive=$gl_cv_next_float_h 14220 fi 14221 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive 14222 14223 14224 14225 14226 fi 14227 14228 if test -n "$FLOAT_H"; then 14229 GL_GENERATE_FLOAT_H_TRUE= 14230 GL_GENERATE_FLOAT_H_FALSE='#' 14231else 14232 GL_GENERATE_FLOAT_H_TRUE='#' 14233 GL_GENERATE_FLOAT_H_FALSE= 14234fi 14235 14236 14237 14238if test $REPLACE_FLOAT_LDBL = 1; then 14239 14240 14241 14242 14243 14244 14245 14246 14247 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext" 14248 14249fi 14250if test $REPLACE_ITOLD = 1; then 14251 14252 14253 14254 14255 14256 14257 14258 14259 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext" 14260 14261fi 14262 14263 14264 14265 14266 14267 14268 : 14269 14270 14271 14272 14273 14274 14275 14276 : 14277 14278 14279 14280 14281 14282 if test $ac_cv_func_getdelim = yes; then 14283 HAVE_GETDELIM=1 14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5 14285$as_echo_n "checking for working getdelim function... " >&6; } 14286if test "${gl_cv_func_working_getdelim+set}" = set; then : 14287 $as_echo_n "(cached) " >&6 14288else 14289 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data 14290 if test "$cross_compiling" = yes; then : 14291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14292/* end confdefs.h. */ 14293 14294#include <features.h> 14295#ifdef __GNU_LIBRARY__ 14296 #if (__GLIBC__ >= 2) && !defined __UCLIBC__ 14297 Lucky GNU user 14298 #endif 14299#endif 14300 14301_ACEOF 14302if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14303 $EGREP "Lucky GNU user" >/dev/null 2>&1; then : 14304 gl_cv_func_working_getdelim=yes 14305else 14306 gl_cv_func_working_getdelim=no 14307fi 14308rm -f conftest* 14309 14310 14311else 14312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14313/* end confdefs.h. */ 14314 14315# include <stdio.h> 14316# include <stdlib.h> 14317# include <string.h> 14318 int main () 14319 { 14320 FILE *in = fopen ("./conftest.data", "r"); 14321 if (!in) 14322 return 1; 14323 { 14324 /* Test result for a NULL buffer and a zero size. 14325 Based on a test program from Karl Heuer. */ 14326 char *line = NULL; 14327 size_t siz = 0; 14328 int len = getdelim (&line, &siz, '\n', in); 14329 if (!(len == 4 && line && strcmp (line, "foo\n") == 0)) 14330 return 2; 14331 } 14332 { 14333 /* Test result for a NULL buffer and a non-zero size. 14334 This crashes on FreeBSD 8.0. */ 14335 char *line = NULL; 14336 size_t siz = (size_t)(~0) / 4; 14337 if (getdelim (&line, &siz, '\n', in) == -1) 14338 return 3; 14339 } 14340 return 0; 14341 } 14342 14343_ACEOF 14344if ac_fn_c_try_run "$LINENO"; then : 14345 gl_cv_func_working_getdelim=yes 14346else 14347 gl_cv_func_working_getdelim=no 14348fi 14349rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14350 conftest.$ac_objext conftest.beam conftest.$ac_ext 14351fi 14352 14353fi 14354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5 14355$as_echo "$gl_cv_func_working_getdelim" >&6; } 14356 if test $gl_cv_func_working_getdelim = no; then 14357 REPLACE_GETDELIM=1 14358 fi 14359 else 14360 HAVE_GETDELIM=0 14361 fi 14362 14363 if test $ac_cv_have_decl_getdelim = no; then 14364 HAVE_DECL_GETDELIM=0 14365 fi 14366 14367if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then 14368 14369 14370 14371 14372 14373 14374 14375 14376 gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext" 14377 14378 14379 for ac_func in flockfile funlockfile 14380do : 14381 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14382ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14383if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14384 cat >>confdefs.h <<_ACEOF 14385#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14386_ACEOF 14387 14388fi 14389done 14390 14391 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default" 14392if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then : 14393 ac_have_decl=1 14394else 14395 ac_have_decl=0 14396fi 14397 14398cat >>confdefs.h <<_ACEOF 14399#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl 14400_ACEOF 14401 14402 14403fi 14404 14405 14406 14407 14408 14409 GNULIB_GETDELIM=1 14410 14411 14412 14413 14414 14415$as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h 14416 14417 14418 14419 14420 14421 14422 : 14423 14424 14425 14426 14427 14428 if test $ac_cv_func_getdtablesize != yes; then 14429 HAVE_GETDTABLESIZE=0 14430 fi 14431 14432if test $HAVE_GETDTABLESIZE = 0; then 14433 14434 14435 14436 14437 14438 14439 14440 14441 gl_LIBOBJS="$gl_LIBOBJS getdtablesize.$ac_objext" 14442 14443 14444 14445 14446fi 14447 14448 14449 14450 14451 14452 GNULIB_GETDTABLESIZE=1 14453 14454 14455 14456 14457 14458$as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h 14459 14460 14461 14462 14463 14464 14465 14466 14467 14468 : 14469 14470 14471 14472 14473 14474 14475 gl_getline_needs_run_time_check=no 14476 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline" 14477if test "x$ac_cv_func_getline" = x""yes; then : 14478 gl_getline_needs_run_time_check=yes 14479else 14480 am_cv_func_working_getline=no 14481fi 14482 14483 if test $gl_getline_needs_run_time_check = yes; then 14484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5 14485$as_echo_n "checking for working getline function... " >&6; } 14486if test "${am_cv_func_working_getline+set}" = set; then : 14487 $as_echo_n "(cached) " >&6 14488else 14489 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data 14490 if test "$cross_compiling" = yes; then : 14491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14492/* end confdefs.h. */ 14493 14494#include <features.h> 14495#ifdef __GNU_LIBRARY__ 14496 #if (__GLIBC__ >= 2) && !defined __UCLIBC__ 14497 Lucky GNU user 14498 #endif 14499#endif 14500 14501_ACEOF 14502if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14503 $EGREP "Lucky GNU user" >/dev/null 2>&1; then : 14504 am_cv_func_working_getline=yes 14505else 14506 am_cv_func_working_getline=no 14507fi 14508rm -f conftest* 14509 14510 14511else 14512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14513/* end confdefs.h. */ 14514 14515# include <stdio.h> 14516# include <stdlib.h> 14517# include <string.h> 14518 int main () 14519 { 14520 FILE *in = fopen ("./conftest.data", "r"); 14521 if (!in) 14522 return 1; 14523 { 14524 /* Test result for a NULL buffer and a zero size. 14525 Based on a test program from Karl Heuer. */ 14526 char *line = NULL; 14527 size_t siz = 0; 14528 int len = getline (&line, &siz, in); 14529 if (!(len == 4 && line && strcmp (line, "foo\n") == 0)) 14530 return 2; 14531 } 14532 { 14533 /* Test result for a NULL buffer and a non-zero size. 14534 This crashes on FreeBSD 8.0. */ 14535 char *line = NULL; 14536 size_t siz = (size_t)(~0) / 4; 14537 if (getline (&line, &siz, in) == -1) 14538 return 3; 14539 } 14540 return 0; 14541 } 14542 14543_ACEOF 14544if ac_fn_c_try_run "$LINENO"; then : 14545 am_cv_func_working_getline=yes 14546else 14547 am_cv_func_working_getline=no 14548fi 14549rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14550 conftest.$ac_objext conftest.beam conftest.$ac_ext 14551fi 14552 14553fi 14554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5 14555$as_echo "$am_cv_func_working_getline" >&6; } 14556 fi 14557 14558 if test $ac_cv_have_decl_getline = no; then 14559 HAVE_DECL_GETLINE=0 14560 fi 14561 14562 if test $am_cv_func_working_getline = no; then 14563 REPLACE_GETLINE=1 14564 fi 14565 14566if test $REPLACE_GETLINE = 1; then 14567 14568 14569 14570 14571 14572 14573 14574 14575 gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext" 14576 14577 14578 : 14579 14580fi 14581 14582 14583 14584 14585 14586 GNULIB_GETLINE=1 14587 14588 14589 14590 14591 14592$as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h 14593 14594 14595 14596 14597 14598 14599 14600 14601if test $REPLACE_GETOPT = 1; then 14602 14603 14604 14605 14606 14607 14608 14609 14610 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext" 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext" 14621 14622 14623 14624 : 14625 14626 14627 14628 14629 14630 14631 GNULIB_GL_UNISTD_H_GETOPT=1 14632fi 14633 14634 14635 14636$as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h 14637 14638 14639 14640 14641 14642 14643 REPLACE_GETOPT=0 14644 14645 14646 if test -n "$gl_replace_getopt"; then : 14647 14648 REPLACE_GETOPT=1 14649 14650fi 14651 14652 14653 if test $REPLACE_GETOPT = 1; then 14654 14655 GETOPT_H=getopt.h 14656 14657$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h 14658 14659 14660 14661 fi 14662 14663if test $REPLACE_GETOPT = 1; then 14664 14665 14666 14667 14668 14669 14670 14671 14672 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext" 14673 14674 14675 14676 14677 14678 14679 14680 14681 14682 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext" 14683 14684 14685 14686 : 14687 14688 14689 14690 14691 14692 14693 GNULIB_GL_UNISTD_H_GETOPT=1 14694fi 14695 14696 14697 14698 14699 14700 14701 14702 14703 14704 : 14705 14706 14707 14708 14709 14710 14711 gl_gettimeofday_timezone=void 14712 if test $ac_cv_func_gettimeofday != yes; then 14713 HAVE_GETTIMEOFDAY=0 14714 else 14715 14716 14717 14718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5 14719$as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; } 14720if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then : 14721 $as_echo_n "(cached) " >&6 14722else 14723 if test "$cross_compiling" = yes; then : 14724 gl_cv_func_gettimeofday_clobber=yes 14725else 14726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14727/* end confdefs.h. */ 14728#include <string.h> 14729 #include <sys/time.h> 14730 #include <time.h> 14731 #include <stdlib.h> 14732 14733int 14734main () 14735{ 14736 14737 time_t t = 0; 14738 struct tm *lt; 14739 struct tm saved_lt; 14740 struct timeval tv; 14741 lt = localtime (&t); 14742 saved_lt = *lt; 14743 gettimeofday (&tv, NULL); 14744 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0; 14745 14746 ; 14747 return 0; 14748} 14749_ACEOF 14750if ac_fn_c_try_run "$LINENO"; then : 14751 gl_cv_func_gettimeofday_clobber=no 14752else 14753 gl_cv_func_gettimeofday_clobber=yes 14754fi 14755rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14756 conftest.$ac_objext conftest.beam conftest.$ac_ext 14757fi 14758 14759fi 14760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5 14761$as_echo "$gl_cv_func_gettimeofday_clobber" >&6; } 14762 14763 if test $gl_cv_func_gettimeofday_clobber = yes; then 14764 REPLACE_GETTIMEOFDAY=1 14765 14766 14767$as_echo "#define gmtime rpl_gmtime" >>confdefs.h 14768 14769 14770$as_echo "#define localtime rpl_localtime" >>confdefs.h 14771 14772 14773 14774$as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h 14775 14776 fi 14777 14778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5 14779$as_echo_n "checking for gettimeofday with POSIX signature... " >&6; } 14780if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then : 14781 $as_echo_n "(cached) " >&6 14782else 14783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14784/* end confdefs.h. */ 14785#include <sys/time.h> 14786 struct timeval c; 14787 int gettimeofday (struct timeval *restrict, void *restrict); 14788 14789int 14790main () 14791{ 14792/* glibc uses struct timezone * rather than the POSIX void * 14793 if _GNU_SOURCE is defined. However, since the only portable 14794 use of gettimeofday uses NULL as the second parameter, and 14795 since the glibc definition is actually more typesafe, it is 14796 not worth wrapping this to get a compliant signature. */ 14797 int (*f) (struct timeval *restrict, void *restrict) 14798 = gettimeofday; 14799 int x = f (&c, 0); 14800 return !(x | c.tv_sec | c.tv_usec); 14801 14802 ; 14803 return 0; 14804} 14805_ACEOF 14806if ac_fn_c_try_compile "$LINENO"; then : 14807 gl_cv_func_gettimeofday_posix_signature=yes 14808else 14809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14810/* end confdefs.h. */ 14811#include <sys/time.h> 14812int gettimeofday (struct timeval *restrict, struct timezone *restrict); 14813 14814int 14815main () 14816{ 14817 14818 ; 14819 return 0; 14820} 14821_ACEOF 14822if ac_fn_c_try_compile "$LINENO"; then : 14823 gl_cv_func_gettimeofday_posix_signature=almost 14824else 14825 gl_cv_func_gettimeofday_posix_signature=no 14826fi 14827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14828fi 14829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14830fi 14831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5 14832$as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; } 14833 if test $gl_cv_func_gettimeofday_posix_signature = almost; then 14834 gl_gettimeofday_timezone='struct timezone' 14835 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then 14836 REPLACE_GETTIMEOFDAY=1 14837 fi 14838 if test $REPLACE_STRUCT_TIMEVAL = 1; then 14839 REPLACE_GETTIMEOFDAY=1 14840 fi 14841 14842 fi 14843 14844cat >>confdefs.h <<_ACEOF 14845#define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone 14846_ACEOF 14847 14848 14849if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then 14850 14851 14852 14853 14854 14855 14856 14857 14858 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext" 14859 14860 14861 for ac_header in sys/timeb.h 14862do : 14863 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default" 14864if test "x$ac_cv_header_sys_timeb_h" = x""yes; then : 14865 cat >>confdefs.h <<_ACEOF 14866#define HAVE_SYS_TIMEB_H 1 14867_ACEOF 14868 14869fi 14870 14871done 14872 14873 for ac_func in _ftime 14874do : 14875 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime" 14876if test "x$ac_cv_func__ftime" = x""yes; then : 14877 cat >>confdefs.h <<_ACEOF 14878#define HAVE__FTIME 1 14879_ACEOF 14880 14881fi 14882done 14883 14884 14885fi 14886 14887 14888 14889 14890 14891 GNULIB_GETTIMEOFDAY=1 14892 14893 14894 14895 14896 14897$as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h 14898 14899 14900 14901 14902 14903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler generally respects inline" >&5 14904$as_echo_n "checking whether the compiler generally respects inline... " >&6; } 14905if test "${gl_cv_c_inline_effective+set}" = set; then : 14906 $as_echo_n "(cached) " >&6 14907else 14908 if test $ac_cv_c_inline = no; then 14909 gl_cv_c_inline_effective=no 14910 else 14911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14912/* end confdefs.h. */ 14913 14914int 14915main () 14916{ 14917#ifdef __NO_INLINE__ 14918 #error "inline is not effective" 14919 #endif 14920 ; 14921 return 0; 14922} 14923_ACEOF 14924if ac_fn_c_try_compile "$LINENO"; then : 14925 gl_cv_c_inline_effective=yes 14926else 14927 gl_cv_c_inline_effective=no 14928fi 14929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14930 fi 14931 14932fi 14933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_inline_effective" >&5 14934$as_echo "$gl_cv_c_inline_effective" >&6; } 14935 if test $gl_cv_c_inline_effective = yes; then 14936 14937$as_echo "#define HAVE_INLINE 1" >>confdefs.h 14938 14939 fi 14940 14941 14942 14943 14944 14945 14946 14947 14948 14949 14950 14951 14952 : 14953 14954 14955 14956 14957 14958 14959 14960 14961 if test $gl_cv_have_include_next = yes; then 14962 gl_cv_next_langinfo_h='<'langinfo.h'>' 14963 else 14964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <langinfo.h>" >&5 14965$as_echo_n "checking absolute name of <langinfo.h>... " >&6; } 14966if test "${gl_cv_next_langinfo_h+set}" = set; then : 14967 $as_echo_n "(cached) " >&6 14968else 14969 14970 if test $ac_cv_header_langinfo_h = yes; then 14971 14972 14973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14974/* end confdefs.h. */ 14975#include <langinfo.h> 14976 14977_ACEOF 14978 case "$host_os" in 14979 aix*) gl_absname_cpp="$ac_cpp -C" ;; 14980 *) gl_absname_cpp="$ac_cpp" ;; 14981 esac 14982 14983 case "$host_os" in 14984 mingw*) 14985 gl_dirsep_regex='[/\\]' 14986 ;; 14987 *) 14988 gl_dirsep_regex='\/' 14989 ;; 14990 esac 14991 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 14992 14993 gl_header_literal_regex=`echo 'langinfo.h' \ 14994 | sed -e "$gl_make_literal_regex_sed"` 14995 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 14996 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 14997 s|^/[^/]|//&| 14998 p 14999 q 15000 }' 15001 gl_cv_next_langinfo_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 15002 sed -n "$gl_absolute_header_sed"`'"' 15003 else 15004 gl_cv_next_langinfo_h='<'langinfo.h'>' 15005 fi 15006 15007 15008fi 15009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5 15010$as_echo "$gl_cv_next_langinfo_h" >&6; } 15011 fi 15012 NEXT_LANGINFO_H=$gl_cv_next_langinfo_h 15013 15014 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 15015 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 15016 gl_next_as_first_directive='<'langinfo.h'>' 15017 else 15018 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 15019 gl_next_as_first_directive=$gl_cv_next_langinfo_h 15020 fi 15021 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive 15022 15023 15024 15025 15026 15027 HAVE_LANGINFO_CODESET=0 15028 HAVE_LANGINFO_T_FMT_AMPM=0 15029 HAVE_LANGINFO_ERA=0 15030 HAVE_LANGINFO_YESEXPR=0 15031 15032 : 15033 15034 15035 15036 15037 15038 if test $ac_cv_header_langinfo_h = yes; then 15039 HAVE_LANGINFO_H=1 15040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5 15041$as_echo_n "checking whether langinfo.h defines CODESET... " >&6; } 15042if test "${gl_cv_header_langinfo_codeset+set}" = set; then : 15043 $as_echo_n "(cached) " >&6 15044else 15045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15046/* end confdefs.h. */ 15047#include <langinfo.h> 15048int a = CODESET; 15049 15050int 15051main () 15052{ 15053 15054 ; 15055 return 0; 15056} 15057_ACEOF 15058if ac_fn_c_try_compile "$LINENO"; then : 15059 gl_cv_header_langinfo_codeset=yes 15060else 15061 gl_cv_header_langinfo_codeset=no 15062fi 15063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15064 15065fi 15066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5 15067$as_echo "$gl_cv_header_langinfo_codeset" >&6; } 15068 if test $gl_cv_header_langinfo_codeset = yes; then 15069 HAVE_LANGINFO_CODESET=1 15070 fi 15071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines T_FMT_AMPM" >&5 15072$as_echo_n "checking whether langinfo.h defines T_FMT_AMPM... " >&6; } 15073if test "${gl_cv_header_langinfo_t_fmt_ampm+set}" = set; then : 15074 $as_echo_n "(cached) " >&6 15075else 15076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15077/* end confdefs.h. */ 15078#include <langinfo.h> 15079int a = T_FMT_AMPM; 15080 15081int 15082main () 15083{ 15084 15085 ; 15086 return 0; 15087} 15088_ACEOF 15089if ac_fn_c_try_compile "$LINENO"; then : 15090 gl_cv_header_langinfo_t_fmt_ampm=yes 15091else 15092 gl_cv_header_langinfo_t_fmt_ampm=no 15093fi 15094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15095 15096fi 15097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_t_fmt_ampm" >&5 15098$as_echo "$gl_cv_header_langinfo_t_fmt_ampm" >&6; } 15099 if test $gl_cv_header_langinfo_t_fmt_ampm = yes; then 15100 HAVE_LANGINFO_T_FMT_AMPM=1 15101 fi 15102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5 15103$as_echo_n "checking whether langinfo.h defines ERA... " >&6; } 15104if test "${gl_cv_header_langinfo_era+set}" = set; then : 15105 $as_echo_n "(cached) " >&6 15106else 15107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15108/* end confdefs.h. */ 15109#include <langinfo.h> 15110int a = ERA; 15111 15112int 15113main () 15114{ 15115 15116 ; 15117 return 0; 15118} 15119_ACEOF 15120if ac_fn_c_try_compile "$LINENO"; then : 15121 gl_cv_header_langinfo_era=yes 15122else 15123 gl_cv_header_langinfo_era=no 15124fi 15125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15126 15127fi 15128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5 15129$as_echo "$gl_cv_header_langinfo_era" >&6; } 15130 if test $gl_cv_header_langinfo_era = yes; then 15131 HAVE_LANGINFO_ERA=1 15132 fi 15133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines YESEXPR" >&5 15134$as_echo_n "checking whether langinfo.h defines YESEXPR... " >&6; } 15135if test "${gl_cv_header_langinfo_yesexpr+set}" = set; then : 15136 $as_echo_n "(cached) " >&6 15137else 15138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15139/* end confdefs.h. */ 15140#include <langinfo.h> 15141int a = YESEXPR; 15142 15143int 15144main () 15145{ 15146 15147 ; 15148 return 0; 15149} 15150_ACEOF 15151if ac_fn_c_try_compile "$LINENO"; then : 15152 gl_cv_header_langinfo_yesexpr=yes 15153else 15154 gl_cv_header_langinfo_yesexpr=no 15155fi 15156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15157 15158fi 15159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_yesexpr" >&5 15160$as_echo "$gl_cv_header_langinfo_yesexpr" >&6; } 15161 if test $gl_cv_header_langinfo_yesexpr = yes; then 15162 HAVE_LANGINFO_YESEXPR=1 15163 fi 15164 else 15165 HAVE_LANGINFO_H=0 15166 fi 15167 15168 15169 15170 15171 15172 15173 15174 for gl_func in nl_langinfo; do 15175 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 15176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 15177$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 15178if eval "test \"\${$as_gl_Symbol+set}\"" = set; then : 15179 $as_echo_n "(cached) " >&6 15180else 15181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15182/* end confdefs.h. */ 15183#include <langinfo.h> 15184 15185int 15186main () 15187{ 15188#undef $gl_func 15189 (void) $gl_func; 15190 ; 15191 return 0; 15192} 15193_ACEOF 15194if ac_fn_c_try_compile "$LINENO"; then : 15195 eval "$as_gl_Symbol=yes" 15196else 15197 eval "$as_gl_Symbol=no" 15198fi 15199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15200fi 15201eval ac_res=\$$as_gl_Symbol 15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15203$as_echo "$ac_res" >&6; } 15204 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 15205 cat >>confdefs.h <<_ACEOF 15206#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 15207_ACEOF 15208 15209 eval ac_cv_have_decl_$gl_func=yes 15210fi 15211 done 15212 15213 15214 15215 15216 15217 15218 15219 : 15220 15221 15222 15223 15224 15225 15226 15227 15228 15229LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\"" 15230 15231 15232 15233 15234 15235 15236 15237 15238 15239 case "$host_os" in 15240 solaris*) 15241 15242$as_echo "#define _LCONV_C99 1" >>confdefs.h 15243 15244 ;; 15245 esac 15246 15247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5 15248$as_echo_n "checking whether locale.h conforms to POSIX:2001... " >&6; } 15249if test "${gl_cv_header_locale_h_posix2001+set}" = set; then : 15250 $as_echo_n "(cached) " >&6 15251else 15252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15253/* end confdefs.h. */ 15254#include <locale.h> 15255 int x = LC_MESSAGES; 15256 int y = sizeof (((struct lconv *) 0)->decimal_point); 15257int 15258main () 15259{ 15260 15261 ; 15262 return 0; 15263} 15264_ACEOF 15265if ac_fn_c_try_compile "$LINENO"; then : 15266 gl_cv_header_locale_h_posix2001=yes 15267else 15268 gl_cv_header_locale_h_posix2001=no 15269fi 15270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15271fi 15272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5 15273$as_echo "$gl_cv_header_locale_h_posix2001" >&6; } 15274 15275 15276 : 15277 15278 15279 15280 15281 15282 if test $ac_cv_header_xlocale_h = yes; then 15283 HAVE_XLOCALE_H=1 15284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5 15285$as_echo_n "checking whether locale.h defines locale_t... " >&6; } 15286if test "${gl_cv_header_locale_has_locale_t+set}" = set; then : 15287 $as_echo_n "(cached) " >&6 15288else 15289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15290/* end confdefs.h. */ 15291#include <locale.h> 15292 locale_t x; 15293int 15294main () 15295{ 15296 15297 ; 15298 return 0; 15299} 15300_ACEOF 15301if ac_fn_c_try_compile "$LINENO"; then : 15302 gl_cv_header_locale_has_locale_t=yes 15303else 15304 gl_cv_header_locale_has_locale_t=no 15305fi 15306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15307 15308fi 15309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5 15310$as_echo "$gl_cv_header_locale_has_locale_t" >&6; } 15311 if test $gl_cv_header_locale_has_locale_t = yes; then 15312 gl_cv_header_locale_h_needs_xlocale_h=no 15313 else 15314 gl_cv_header_locale_h_needs_xlocale_h=yes 15315 fi 15316 else 15317 HAVE_XLOCALE_H=0 15318 gl_cv_header_locale_h_needs_xlocale_h=no 15319 fi 15320 15321 15322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5 15323$as_echo_n "checking whether struct lconv is properly defined... " >&6; } 15324if test "${gl_cv_sys_struct_lconv_ok+set}" = set; then : 15325 $as_echo_n "(cached) " >&6 15326else 15327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15328/* end confdefs.h. */ 15329#include <locale.h> 15330 struct lconv l; 15331 int x = sizeof (l.decimal_point); 15332 int y = sizeof (l.int_p_cs_precedes); 15333int 15334main () 15335{ 15336 15337 ; 15338 return 0; 15339} 15340_ACEOF 15341if ac_fn_c_try_compile "$LINENO"; then : 15342 gl_cv_sys_struct_lconv_ok=yes 15343else 15344 gl_cv_sys_struct_lconv_ok=no 15345fi 15346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15347 15348fi 15349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5 15350$as_echo "$gl_cv_sys_struct_lconv_ok" >&6; } 15351 if test $gl_cv_sys_struct_lconv_ok = no; then 15352 REPLACE_STRUCT_LCONV=1 15353 fi 15354 15355 15356 15357 15358 15359 15360 15361 15362 15363 if test $gl_cv_have_include_next = yes; then 15364 gl_cv_next_locale_h='<'locale.h'>' 15365 else 15366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5 15367$as_echo_n "checking absolute name of <locale.h>... " >&6; } 15368if test "${gl_cv_next_locale_h+set}" = set; then : 15369 $as_echo_n "(cached) " >&6 15370else 15371 15372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15373/* end confdefs.h. */ 15374#include <locale.h> 15375 15376_ACEOF 15377 case "$host_os" in 15378 aix*) gl_absname_cpp="$ac_cpp -C" ;; 15379 *) gl_absname_cpp="$ac_cpp" ;; 15380 esac 15381 15382 case "$host_os" in 15383 mingw*) 15384 gl_dirsep_regex='[/\\]' 15385 ;; 15386 *) 15387 gl_dirsep_regex='\/' 15388 ;; 15389 esac 15390 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 15391 15392 gl_header_literal_regex=`echo 'locale.h' \ 15393 | sed -e "$gl_make_literal_regex_sed"` 15394 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 15395 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 15396 s|^/[^/]|//&| 15397 p 15398 q 15399 }' 15400 gl_cv_next_locale_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 15401 sed -n "$gl_absolute_header_sed"`'"' 15402 15403 15404fi 15405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5 15406$as_echo "$gl_cv_next_locale_h" >&6; } 15407 fi 15408 NEXT_LOCALE_H=$gl_cv_next_locale_h 15409 15410 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 15411 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 15412 gl_next_as_first_directive='<'locale.h'>' 15413 else 15414 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 15415 gl_next_as_first_directive=$gl_cv_next_locale_h 15416 fi 15417 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H=$gl_next_as_first_directive 15418 15419 15420 15421 15422 15423 15424 for gl_func in setlocale duplocale; do 15425 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 15426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 15427$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 15428if eval "test \"\${$as_gl_Symbol+set}\"" = set; then : 15429 $as_echo_n "(cached) " >&6 15430else 15431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15432/* end confdefs.h. */ 15433#include <locale.h> 15434/* Some systems provide declarations in a non-standard header. */ 15435#if HAVE_XLOCALE_H 15436# include <xlocale.h> 15437#endif 15438 15439int 15440main () 15441{ 15442#undef $gl_func 15443 (void) $gl_func; 15444 ; 15445 return 0; 15446} 15447_ACEOF 15448if ac_fn_c_try_compile "$LINENO"; then : 15449 eval "$as_gl_Symbol=yes" 15450else 15451 eval "$as_gl_Symbol=no" 15452fi 15453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15454fi 15455eval ac_res=\$$as_gl_Symbol 15456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15457$as_echo "$ac_res" >&6; } 15458 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 15459 cat >>confdefs.h <<_ACEOF 15460#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 15461_ACEOF 15462 15463 eval ac_cv_have_decl_$gl_func=yes 15464fi 15465 done 15466 15467 15468 15469 15470 15471 15472 if test $REPLACE_STRUCT_LCONV = 1; then 15473 REPLACE_LOCALECONV=1 15474 fi 15475 15476if test $REPLACE_LOCALECONV = 1; then 15477 15478 15479 15480 15481 15482 15483 15484 15485 gl_LIBOBJS="$gl_LIBOBJS localeconv.$ac_objext" 15486 15487 15488 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h> 15489" 15490if test "x$ac_cv_member_struct_lconv_decimal_point" = x""yes; then : 15491 15492cat >>confdefs.h <<_ACEOF 15493#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1 15494_ACEOF 15495 15496 15497fi 15498 15499 15500fi 15501 15502 15503 15504 15505 15506 GNULIB_LOCALECONV=1 15507 15508 15509 15510 15511 15512$as_echo "#define GNULIB_TEST_LOCALECONV 1" >>confdefs.h 15513 15514 15515 15516 15517 15518 15519 : 15520 15521 15522 15523 15524 15525 if test $ac_cv_func_lstat = yes; then 15526 15527 if test $gl_cv_func_lstat_dereferences_slashed_symlink = no; then 15528 REPLACE_LSTAT=1 15529 fi 15530 else 15531 HAVE_LSTAT=0 15532 fi 15533 15534if test $REPLACE_LSTAT = 1; then 15535 15536 15537 15538 15539 15540 15541 15542 15543 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext" 15544 15545 15546 15547 : 15548 15549fi 15550 15551 15552 15553 15554 15555 GNULIB_LSTAT=1 15556 15557 15558 15559 15560 15561$as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h 15562 15563 15564 15565 15566 15567 for ac_header in stdlib.h 15568do : 15569 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 15570if test "x$ac_cv_header_stdlib_h" = x""yes; then : 15571 cat >>confdefs.h <<_ACEOF 15572#define HAVE_STDLIB_H 1 15573_ACEOF 15574 15575fi 15576 15577done 15578 15579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 15580$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 15581if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then : 15582 $as_echo_n "(cached) " >&6 15583else 15584 if test "$cross_compiling" = yes; then : 15585 ac_cv_func_malloc_0_nonnull=no 15586else 15587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15588/* end confdefs.h. */ 15589#if defined STDC_HEADERS || defined HAVE_STDLIB_H 15590# include <stdlib.h> 15591#else 15592char *malloc (); 15593#endif 15594 15595int 15596main () 15597{ 15598return ! malloc (0); 15599 ; 15600 return 0; 15601} 15602_ACEOF 15603if ac_fn_c_try_run "$LINENO"; then : 15604 ac_cv_func_malloc_0_nonnull=yes 15605else 15606 ac_cv_func_malloc_0_nonnull=no 15607fi 15608rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15609 conftest.$ac_objext conftest.beam conftest.$ac_ext 15610fi 15611 15612fi 15613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 15614$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } 15615if test $ac_cv_func_malloc_0_nonnull = yes; then : 15616 15617$as_echo "#define HAVE_MALLOC_GNU 1" >>confdefs.h 15618 15619else 15620 $as_echo "#define HAVE_MALLOC_GNU 0" >>confdefs.h 15621 15622 REPLACE_MALLOC=1 15623 15624fi 15625 15626 15627if test $REPLACE_MALLOC = 1; then 15628 15629 15630 15631 15632 15633 15634 15635 15636 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext" 15637 15638fi 15639 15640 15641cat >>confdefs.h <<_ACEOF 15642#define GNULIB_MALLOC_GNU 1 15643_ACEOF 15644 15645 15646 15647 15648 15649 if test $gl_cv_func_malloc_posix = yes; then 15650 15651$as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h 15652 15653 else 15654 REPLACE_MALLOC=1 15655 fi 15656 15657if test $REPLACE_MALLOC = 1; then 15658 15659 15660 15661 15662 15663 15664 15665 15666 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext" 15667 15668fi 15669 15670 15671 15672 15673 15674 GNULIB_MALLOC_POSIX=1 15675 15676 15677 15678 15679 15680$as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h 15681 15682 15683 15684 15685 15686 15687 15688 15689 15690 15691 15692 15693 : 15694 15695 15696 15697 15698 15699 15700 : 15701 15702 15703 15704 15705 15706 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then 15707 15708 15709 15710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5 15711$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; } 15712if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then : 15713 $as_echo_n "(cached) " >&6 15714else 15715 15716 case "$host_os" in 15717 # Guess no on AIX and OSF/1. 15718 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;; 15719 # Guess yes otherwise. 15720 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;; 15721 esac 15722 if test $LOCALE_JA != none; then 15723 if test "$cross_compiling" = yes; then : 15724 : 15725else 15726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15727/* end confdefs.h. */ 15728 15729#include <locale.h> 15730#include <string.h> 15731/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 15732 <wchar.h>. 15733 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 15734 included before <wchar.h>. */ 15735#include <stddef.h> 15736#include <stdio.h> 15737#include <time.h> 15738#include <wchar.h> 15739int main () 15740{ 15741 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) 15742 { 15743 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ 15744 mbstate_t state; 15745 wchar_t wc; 15746 15747 memset (&state, '\0', sizeof (mbstate_t)); 15748 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 15749 if (mbsinit (&state)) 15750 return 1; 15751 } 15752 return 0; 15753} 15754_ACEOF 15755if ac_fn_c_try_run "$LINENO"; then : 15756 gl_cv_func_mbrtowc_incomplete_state=yes 15757else 15758 gl_cv_func_mbrtowc_incomplete_state=no 15759fi 15760rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15761 conftest.$ac_objext conftest.beam conftest.$ac_ext 15762fi 15763 15764 fi 15765 15766fi 15767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5 15768$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; } 15769 15770 15771 15772 15773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5 15774$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; } 15775if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then : 15776 $as_echo_n "(cached) " >&6 15777else 15778 15779 case "$host_os" in 15780 # Guess no on Solaris 8. 15781 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;; 15782 # Guess yes otherwise. 15783 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;; 15784 esac 15785 if test $LOCALE_ZH_CN != none; then 15786 if test "$cross_compiling" = yes; then : 15787 : 15788else 15789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15790/* end confdefs.h. */ 15791 15792#include <locale.h> 15793#include <stdlib.h> 15794#include <string.h> 15795/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 15796 <wchar.h>. 15797 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 15798 included before <wchar.h>. */ 15799#include <stddef.h> 15800#include <stdio.h> 15801#include <time.h> 15802#include <wchar.h> 15803int main () 15804{ 15805 /* This fails on Solaris 8: 15806 mbrtowc returns 2, and sets wc to 0x00F0. 15807 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */ 15808 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) 15809 { 15810 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */ 15811 mbstate_t state; 15812 wchar_t wc; 15813 15814 memset (&state, '\0', sizeof (mbstate_t)); 15815 if (mbrtowc (&wc, input + 3, 6, &state) != 4 15816 && mbtowc (&wc, input + 3, 6) == 4) 15817 return 1; 15818 } 15819 return 0; 15820} 15821_ACEOF 15822if ac_fn_c_try_run "$LINENO"; then : 15823 gl_cv_func_mbrtowc_sanitycheck=yes 15824else 15825 gl_cv_func_mbrtowc_sanitycheck=no 15826fi 15827rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15828 conftest.$ac_objext conftest.beam conftest.$ac_ext 15829fi 15830 15831 fi 15832 15833fi 15834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5 15835$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; } 15836 15837 REPLACE_MBSTATE_T=0 15838 case "$gl_cv_func_mbrtowc_incomplete_state" in 15839 *yes) ;; 15840 *) REPLACE_MBSTATE_T=1 ;; 15841 esac 15842 case "$gl_cv_func_mbrtowc_sanitycheck" in 15843 *yes) ;; 15844 *) REPLACE_MBSTATE_T=1 ;; 15845 esac 15846 else 15847 REPLACE_MBSTATE_T=1 15848 fi 15849 15850 15851 15852 : 15853 15854 15855 15856 15857 15858 if test $ac_cv_func_mbrtowc = no; then 15859 HAVE_MBRTOWC=0 15860 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" " 15861/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 15862 <wchar.h>. 15863 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 15864 included before <wchar.h>. */ 15865#include <stddef.h> 15866#include <stdio.h> 15867#include <time.h> 15868#include <wchar.h> 15869 15870" 15871if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then : 15872 ac_have_decl=1 15873else 15874 ac_have_decl=0 15875fi 15876 15877cat >>confdefs.h <<_ACEOF 15878#define HAVE_DECL_MBRTOWC $ac_have_decl 15879_ACEOF 15880 15881 if test $ac_cv_have_decl_mbrtowc = yes; then 15882 REPLACE_MBRTOWC=1 15883 fi 15884 else 15885 if test $REPLACE_MBSTATE_T = 1; then 15886 REPLACE_MBRTOWC=1 15887 else 15888 15889 15890 15891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5 15892$as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; } 15893if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then : 15894 $as_echo_n "(cached) " >&6 15895else 15896 15897 case "$host_os" in 15898 # Guess no on Solaris. 15899 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;; 15900 # Guess yes otherwise. 15901 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;; 15902 esac 15903 if test $LOCALE_FR_UTF8 != none; then 15904 if test "$cross_compiling" = yes; then : 15905 : 15906else 15907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15908/* end confdefs.h. */ 15909 15910#include <locale.h> 15911#include <stdlib.h> 15912#include <string.h> 15913/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 15914 <wchar.h>. 15915 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 15916 included before <wchar.h>. */ 15917#include <stddef.h> 15918#include <stdio.h> 15919#include <time.h> 15920#include <wchar.h> 15921int main () 15922{ 15923 int result = 0; 15924 15925 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 15926 { 15927 char input[] = "\303\237er"; 15928 mbstate_t state; 15929 wchar_t wc; 15930 size_t ret; 15931 15932 memset (&state, '\0', sizeof (mbstate_t)); 15933 wc = (wchar_t) 0xBADFACE; 15934 ret = mbrtowc (&wc, input, 5, &state); 15935 if (ret != 2) 15936 result |= 1; 15937 if (!mbsinit (&state)) 15938 result |= 2; 15939 15940 memset (&state, '\0', sizeof (mbstate_t)); 15941 ret = mbrtowc (NULL, input, 5, &state); 15942 if (ret != 2) /* Solaris 7 fails here: ret is -1. */ 15943 result |= 4; 15944 if (!mbsinit (&state)) 15945 result |= 8; 15946 } 15947 return result; 15948} 15949_ACEOF 15950if ac_fn_c_try_run "$LINENO"; then : 15951 gl_cv_func_mbrtowc_null_arg1=yes 15952else 15953 gl_cv_func_mbrtowc_null_arg1=no 15954fi 15955rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15956 conftest.$ac_objext conftest.beam conftest.$ac_ext 15957fi 15958 15959 fi 15960 15961fi 15962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5 15963$as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; } 15964 15965 15966 15967 15968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5 15969$as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; } 15970if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then : 15971 $as_echo_n "(cached) " >&6 15972else 15973 15974 case "$host_os" in 15975 # Guess no on OSF/1. 15976 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;; 15977 # Guess yes otherwise. 15978 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;; 15979 esac 15980 if test $LOCALE_FR_UTF8 != none; then 15981 if test "$cross_compiling" = yes; then : 15982 : 15983else 15984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15985/* end confdefs.h. */ 15986 15987#include <locale.h> 15988#include <string.h> 15989/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 15990 <wchar.h>. 15991 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 15992 included before <wchar.h>. */ 15993#include <stddef.h> 15994#include <stdio.h> 15995#include <time.h> 15996#include <wchar.h> 15997int main () 15998{ 15999 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 16000 { 16001 mbstate_t state; 16002 wchar_t wc; 16003 int ret; 16004 16005 memset (&state, '\0', sizeof (mbstate_t)); 16006 wc = (wchar_t) 0xBADFACE; 16007 mbrtowc (&wc, NULL, 5, &state); 16008 /* Check that wc was not modified. */ 16009 if (wc != (wchar_t) 0xBADFACE) 16010 return 1; 16011 } 16012 return 0; 16013} 16014_ACEOF 16015if ac_fn_c_try_run "$LINENO"; then : 16016 gl_cv_func_mbrtowc_null_arg2=yes 16017else 16018 gl_cv_func_mbrtowc_null_arg2=no 16019fi 16020rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16021 conftest.$ac_objext conftest.beam conftest.$ac_ext 16022fi 16023 16024 fi 16025 16026fi 16027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5 16028$as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; } 16029 16030 16031 16032 16033 16034 16035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5 16036$as_echo_n "checking whether mbrtowc has a correct return value... " >&6; } 16037if test "${gl_cv_func_mbrtowc_retval+set}" = set; then : 16038 $as_echo_n "(cached) " >&6 16039else 16040 16041 case "$host_os" in 16042 # Guess no on HP-UX, Solaris, native Windows. 16043 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;; 16044 # Guess yes otherwise. 16045 *) gl_cv_func_mbrtowc_retval="guessing yes" ;; 16046 esac 16047 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \ 16048 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then 16049 if test "$cross_compiling" = yes; then : 16050 : 16051else 16052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16053/* end confdefs.h. */ 16054 16055#include <locale.h> 16056#include <string.h> 16057/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 16058 <wchar.h>. 16059 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 16060 included before <wchar.h>. */ 16061#include <stddef.h> 16062#include <stdio.h> 16063#include <time.h> 16064#include <wchar.h> 16065int main () 16066{ 16067 int result = 0; 16068 int found_some_locale = 0; 16069 /* This fails on Solaris. */ 16070 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 16071 { 16072 char input[] = "B\303\274\303\237er"; /* "Büßer" */ 16073 mbstate_t state; 16074 wchar_t wc; 16075 16076 memset (&state, '\0', sizeof (mbstate_t)); 16077 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 16078 { 16079 input[1] = '\0'; 16080 if (mbrtowc (&wc, input + 2, 5, &state) != 1) 16081 result |= 1; 16082 } 16083 found_some_locale = 1; 16084 } 16085 /* This fails on HP-UX 11.11. */ 16086 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) 16087 { 16088 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ 16089 mbstate_t state; 16090 wchar_t wc; 16091 16092 memset (&state, '\0', sizeof (mbstate_t)); 16093 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 16094 { 16095 input[1] = '\0'; 16096 if (mbrtowc (&wc, input + 2, 5, &state) != 2) 16097 result |= 2; 16098 } 16099 found_some_locale = 1; 16100 } 16101 /* This fails on native Windows. */ 16102 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL) 16103 { 16104 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */ 16105 mbstate_t state; 16106 wchar_t wc; 16107 16108 memset (&state, '\0', sizeof (mbstate_t)); 16109 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2)) 16110 { 16111 input[3] = '\0'; 16112 if (mbrtowc (&wc, input + 4, 4, &state) != 1) 16113 result |= 4; 16114 } 16115 found_some_locale = 1; 16116 } 16117 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL) 16118 { 16119 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */ 16120 mbstate_t state; 16121 wchar_t wc; 16122 16123 memset (&state, '\0', sizeof (mbstate_t)); 16124 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2)) 16125 { 16126 input[3] = '\0'; 16127 if (mbrtowc (&wc, input + 4, 4, &state) != 1) 16128 result |= 8; 16129 } 16130 found_some_locale = 1; 16131 } 16132 if (setlocale (LC_ALL, "Chinese_China.936") != NULL) 16133 { 16134 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */ 16135 mbstate_t state; 16136 wchar_t wc; 16137 16138 memset (&state, '\0', sizeof (mbstate_t)); 16139 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2)) 16140 { 16141 input[3] = '\0'; 16142 if (mbrtowc (&wc, input + 4, 4, &state) != 1) 16143 result |= 16; 16144 } 16145 found_some_locale = 1; 16146 } 16147 return (found_some_locale ? result : 77); 16148} 16149_ACEOF 16150if ac_fn_c_try_run "$LINENO"; then : 16151 gl_cv_func_mbrtowc_retval=yes 16152else 16153 if test $? != 77; then 16154 gl_cv_func_mbrtowc_retval=no 16155 fi 16156 16157fi 16158rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16159 conftest.$ac_objext conftest.beam conftest.$ac_ext 16160fi 16161 16162 fi 16163 16164fi 16165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5 16166$as_echo "$gl_cv_func_mbrtowc_retval" >&6; } 16167 16168 16169 16170 16171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5 16172$as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; } 16173if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then : 16174 $as_echo_n "(cached) " >&6 16175else 16176 16177 case "$host_os" in 16178 # Guess no on Solaris 8 and 9. 16179 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;; 16180 # Guess yes otherwise. 16181 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;; 16182 esac 16183 if test $LOCALE_ZH_CN != none; then 16184 if test "$cross_compiling" = yes; then : 16185 : 16186else 16187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16188/* end confdefs.h. */ 16189 16190#include <locale.h> 16191#include <string.h> 16192/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 16193 <wchar.h>. 16194 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 16195 included before <wchar.h>. */ 16196#include <stddef.h> 16197#include <stdio.h> 16198#include <time.h> 16199#include <wchar.h> 16200int main () 16201{ 16202 /* This fails on Solaris 8 and 9. */ 16203 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) 16204 { 16205 mbstate_t state; 16206 wchar_t wc; 16207 16208 memset (&state, '\0', sizeof (mbstate_t)); 16209 if (mbrtowc (&wc, "", 1, &state) != 0) 16210 return 1; 16211 } 16212 return 0; 16213} 16214_ACEOF 16215if ac_fn_c_try_run "$LINENO"; then : 16216 gl_cv_func_mbrtowc_nul_retval=yes 16217else 16218 gl_cv_func_mbrtowc_nul_retval=no 16219fi 16220rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16221 conftest.$ac_objext conftest.beam conftest.$ac_ext 16222fi 16223 16224 fi 16225 16226fi 16227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5 16228$as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; } 16229 16230 case "$gl_cv_func_mbrtowc_null_arg1" in 16231 *yes) ;; 16232 *) 16233$as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h 16234 16235 REPLACE_MBRTOWC=1 16236 ;; 16237 esac 16238 case "$gl_cv_func_mbrtowc_null_arg2" in 16239 *yes) ;; 16240 *) 16241$as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h 16242 16243 REPLACE_MBRTOWC=1 16244 ;; 16245 esac 16246 case "$gl_cv_func_mbrtowc_retval" in 16247 *yes) ;; 16248 *) 16249$as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h 16250 16251 REPLACE_MBRTOWC=1 16252 ;; 16253 esac 16254 case "$gl_cv_func_mbrtowc_nul_retval" in 16255 *yes) ;; 16256 *) 16257$as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h 16258 16259 REPLACE_MBRTOWC=1 16260 ;; 16261 esac 16262 fi 16263 fi 16264 16265if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then 16266 16267 16268 16269 16270 16271 16272 16273 16274 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext" 16275 16276 16277 : 16278 16279fi 16280 16281 16282 16283 16284 16285 GNULIB_MBRTOWC=1 16286 16287 16288 16289 16290 16291$as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h 16292 16293 16294 16295 16296 16297 16298 16299 16300 16301 16302 16303 16304 16305 : 16306 16307 16308 16309 16310 16311 16312 : 16313 16314 16315 16316 16317 16318 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then 16319 16320 16321 16322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5 16323$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; } 16324if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then : 16325 $as_echo_n "(cached) " >&6 16326else 16327 16328 case "$host_os" in 16329 # Guess no on AIX and OSF/1. 16330 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;; 16331 # Guess yes otherwise. 16332 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;; 16333 esac 16334 if test $LOCALE_JA != none; then 16335 if test "$cross_compiling" = yes; then : 16336 : 16337else 16338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16339/* end confdefs.h. */ 16340 16341#include <locale.h> 16342#include <string.h> 16343/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 16344 <wchar.h>. 16345 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 16346 included before <wchar.h>. */ 16347#include <stddef.h> 16348#include <stdio.h> 16349#include <time.h> 16350#include <wchar.h> 16351int main () 16352{ 16353 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) 16354 { 16355 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ 16356 mbstate_t state; 16357 wchar_t wc; 16358 16359 memset (&state, '\0', sizeof (mbstate_t)); 16360 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 16361 if (mbsinit (&state)) 16362 return 1; 16363 } 16364 return 0; 16365} 16366_ACEOF 16367if ac_fn_c_try_run "$LINENO"; then : 16368 gl_cv_func_mbrtowc_incomplete_state=yes 16369else 16370 gl_cv_func_mbrtowc_incomplete_state=no 16371fi 16372rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16373 conftest.$ac_objext conftest.beam conftest.$ac_ext 16374fi 16375 16376 fi 16377 16378fi 16379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5 16380$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; } 16381 16382 16383 16384 16385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5 16386$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; } 16387if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then : 16388 $as_echo_n "(cached) " >&6 16389else 16390 16391 case "$host_os" in 16392 # Guess no on Solaris 8. 16393 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;; 16394 # Guess yes otherwise. 16395 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;; 16396 esac 16397 if test $LOCALE_ZH_CN != none; then 16398 if test "$cross_compiling" = yes; then : 16399 : 16400else 16401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16402/* end confdefs.h. */ 16403 16404#include <locale.h> 16405#include <stdlib.h> 16406#include <string.h> 16407/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 16408 <wchar.h>. 16409 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 16410 included before <wchar.h>. */ 16411#include <stddef.h> 16412#include <stdio.h> 16413#include <time.h> 16414#include <wchar.h> 16415int main () 16416{ 16417 /* This fails on Solaris 8: 16418 mbrtowc returns 2, and sets wc to 0x00F0. 16419 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */ 16420 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) 16421 { 16422 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */ 16423 mbstate_t state; 16424 wchar_t wc; 16425 16426 memset (&state, '\0', sizeof (mbstate_t)); 16427 if (mbrtowc (&wc, input + 3, 6, &state) != 4 16428 && mbtowc (&wc, input + 3, 6) == 4) 16429 return 1; 16430 } 16431 return 0; 16432} 16433_ACEOF 16434if ac_fn_c_try_run "$LINENO"; then : 16435 gl_cv_func_mbrtowc_sanitycheck=yes 16436else 16437 gl_cv_func_mbrtowc_sanitycheck=no 16438fi 16439rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16440 conftest.$ac_objext conftest.beam conftest.$ac_ext 16441fi 16442 16443 fi 16444 16445fi 16446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5 16447$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; } 16448 16449 REPLACE_MBSTATE_T=0 16450 case "$gl_cv_func_mbrtowc_incomplete_state" in 16451 *yes) ;; 16452 *) REPLACE_MBSTATE_T=1 ;; 16453 esac 16454 case "$gl_cv_func_mbrtowc_sanitycheck" in 16455 *yes) ;; 16456 *) REPLACE_MBSTATE_T=1 ;; 16457 esac 16458 else 16459 REPLACE_MBSTATE_T=1 16460 fi 16461 16462 16463 16464 : 16465 16466 16467 16468 16469 16470 if test $ac_cv_func_mbsinit = no; then 16471 HAVE_MBSINIT=0 16472 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" " 16473/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 16474 <wchar.h>. 16475 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 16476 included before <wchar.h>. */ 16477#include <stddef.h> 16478#include <stdio.h> 16479#include <time.h> 16480#include <wchar.h> 16481 16482" 16483if test "x$ac_cv_have_decl_mbsinit" = x""yes; then : 16484 ac_have_decl=1 16485else 16486 ac_have_decl=0 16487fi 16488 16489cat >>confdefs.h <<_ACEOF 16490#define HAVE_DECL_MBSINIT $ac_have_decl 16491_ACEOF 16492 16493 if test $ac_cv_have_decl_mbsinit = yes; then 16494 REPLACE_MBSINIT=1 16495 fi 16496 else 16497 if test $REPLACE_MBSTATE_T = 1; then 16498 REPLACE_MBSINIT=1 16499 else 16500 case "$host_os" in 16501 mingw*) REPLACE_MBSINIT=1 ;; 16502 esac 16503 fi 16504 fi 16505 16506if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then 16507 16508 16509 16510 16511 16512 16513 16514 16515 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext" 16516 16517 16518 : 16519 16520fi 16521 16522 16523 16524 16525 16526 GNULIB_MBSINIT=1 16527 16528 16529 16530 16531 16532$as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h 16533 16534 16535 16536 16537 16538 16539 if false; then 16540 REPLACE_MBTOWC=1 16541 fi 16542 16543if test $REPLACE_MBTOWC = 1; then 16544 16545 16546 16547 16548 16549 16550 16551 16552 gl_LIBOBJS="$gl_LIBOBJS mbtowc.$ac_objext" 16553 16554 16555 : 16556 16557fi 16558 16559 16560 16561 16562 16563 GNULIB_MBTOWC=1 16564 16565 16566 16567 16568 16569$as_echo "#define GNULIB_TEST_MBTOWC 1" >>confdefs.h 16570 16571 16572 16573 16574if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then 16575 16576 16577 16578 16579 16580 16581 16582 16583 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext" 16584 16585 16586 for ac_header in bp-sym.h 16587do : 16588 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default" 16589if test "x$ac_cv_header_bp_sym_h" = x""yes; then : 16590 cat >>confdefs.h <<_ACEOF 16591#define HAVE_BP_SYM_H 1 16592_ACEOF 16593 16594fi 16595 16596done 16597 16598 16599fi 16600 16601 16602 16603 16604 16605 GNULIB_MEMCHR=1 16606 16607 16608 16609 16610 16611$as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h 16612 16613 16614 16615 16616 16617 16618 16619 16620 : 16621 16622 16623 16624 16625 16626 if test $ac_cv_func__set_invalid_parameter_handler = yes; then 16627 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1 16628 16629$as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h 16630 16631 else 16632 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0 16633 fi 16634 16635 16636if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 16637 16638 16639 16640 16641 16642 16643 16644 16645 gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext" 16646 16647fi 16648 16649 16650 16651if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 16652 16653 16654 16655 16656 16657 16658 16659 16660 gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext" 16661 16662fi 16663 16664 16665 16666 16667 16668 : 16669 16670 16671 16672 16673 16674 if test $ac_cv_func_nl_langinfo = yes; then 16675 # On Irix 6.5, YESEXPR is defined, but nl_langinfo(YESEXPR) is broken. 16676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether YESEXPR works" >&5 16677$as_echo_n "checking whether YESEXPR works... " >&6; } 16678if test "${gl_cv_func_nl_langinfo_yesexpr_works+set}" = set; then : 16679 $as_echo_n "(cached) " >&6 16680else 16681 if test "$cross_compiling" = yes; then : 16682 16683 case "$host_os" in 16684 # Guess no on irix systems. 16685 irix*) gl_cv_func_nl_langinfo_yesexpr_works="guessing no";; 16686 # Guess yes elsewhere. 16687 *) gl_cv_func_nl_langinfo_yesexpr_works="guessing yes";; 16688 esac 16689 16690else 16691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16692/* end confdefs.h. */ 16693#include <langinfo.h> 16694 16695int 16696main () 16697{ 16698return !*nl_langinfo(YESEXPR); 16699 16700 ; 16701 return 0; 16702} 16703_ACEOF 16704if ac_fn_c_try_run "$LINENO"; then : 16705 gl_cv_func_nl_langinfo_yesexpr_works=yes 16706else 16707 gl_cv_func_nl_langinfo_yesexpr_works=no 16708fi 16709rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16710 conftest.$ac_objext conftest.beam conftest.$ac_ext 16711fi 16712 16713 16714fi 16715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_nl_langinfo_yesexpr_works" >&5 16716$as_echo "$gl_cv_func_nl_langinfo_yesexpr_works" >&6; } 16717 case $gl_cv_func_nl_langinfo_yesexpr_works in 16718 *yes) FUNC_NL_LANGINFO_YESEXPR_WORKS=1 ;; 16719 *) FUNC_NL_LANGINFO_YESEXPR_WORKS=0 ;; 16720 esac 16721 16722cat >>confdefs.h <<_ACEOF 16723#define FUNC_NL_LANGINFO_YESEXPR_WORKS $FUNC_NL_LANGINFO_YESEXPR_WORKS 16724_ACEOF 16725 16726 if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1 \ 16727 && test $FUNC_NL_LANGINFO_YESEXPR_WORKS = 1; then 16728 : 16729 else 16730 REPLACE_NL_LANGINFO=1 16731 16732$as_echo "#define REPLACE_NL_LANGINFO 1" >>confdefs.h 16733 16734 fi 16735 else 16736 HAVE_NL_LANGINFO=0 16737 fi 16738 16739if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then 16740 16741 16742 16743 16744 16745 16746 16747 16748 gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext" 16749 16750fi 16751 16752 16753 16754 16755 16756 GNULIB_NL_LANGINFO=1 16757 16758 16759 16760 16761 16762$as_echo "#define GNULIB_TEST_NL_LANGINFO 1" >>confdefs.h 16763 16764 16765 16766 16767 16768 : 16769 16770 16771 16772 16773 16774 16775ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h> 16776" 16777if test "x$ac_cv_have_decl_program_invocation_name" = x""yes; then : 16778 ac_have_decl=1 16779else 16780 ac_have_decl=0 16781fi 16782 16783cat >>confdefs.h <<_ACEOF 16784#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl 16785_ACEOF 16786 16787ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h> 16788" 16789if test "x$ac_cv_have_decl_program_invocation_short_name" = x""yes; then : 16790 ac_have_decl=1 16791else 16792 ac_have_decl=0 16793fi 16794 16795cat >>confdefs.h <<_ACEOF 16796#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl 16797_ACEOF 16798 16799 16800 : 16801 16802 16803 : 16804 16805 16806 16807 for ac_header in stdlib.h 16808do : 16809 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 16810if test "x$ac_cv_header_stdlib_h" = x""yes; then : 16811 cat >>confdefs.h <<_ACEOF 16812#define HAVE_STDLIB_H 1 16813_ACEOF 16814 16815fi 16816 16817done 16818 16819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 16820$as_echo_n "checking for GNU libc compatible realloc... " >&6; } 16821if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then : 16822 $as_echo_n "(cached) " >&6 16823else 16824 if test "$cross_compiling" = yes; then : 16825 ac_cv_func_realloc_0_nonnull=no 16826else 16827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16828/* end confdefs.h. */ 16829#if defined STDC_HEADERS || defined HAVE_STDLIB_H 16830# include <stdlib.h> 16831#else 16832char *realloc (); 16833#endif 16834 16835int 16836main () 16837{ 16838return ! realloc (0, 0); 16839 ; 16840 return 0; 16841} 16842_ACEOF 16843if ac_fn_c_try_run "$LINENO"; then : 16844 ac_cv_func_realloc_0_nonnull=yes 16845else 16846 ac_cv_func_realloc_0_nonnull=no 16847fi 16848rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16849 conftest.$ac_objext conftest.beam conftest.$ac_ext 16850fi 16851 16852fi 16853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 16854$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } 16855if test $ac_cv_func_realloc_0_nonnull = yes; then : 16856 16857$as_echo "#define HAVE_REALLOC_GNU 1" >>confdefs.h 16858 16859else 16860 $as_echo "#define HAVE_REALLOC_GNU 0" >>confdefs.h 16861 16862 REPLACE_REALLOC=1 16863 16864fi 16865 16866 16867if test $REPLACE_REALLOC = 1; then 16868 16869 16870 16871 16872 16873 16874 16875 16876 gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext" 16877 16878fi 16879 16880 16881cat >>confdefs.h <<_ACEOF 16882#define GNULIB_REALLOC_GNU 1 16883_ACEOF 16884 16885 16886 16887 16888 16889 if test $gl_cv_func_malloc_posix = yes; then 16890 16891$as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h 16892 16893 else 16894 REPLACE_REALLOC=1 16895 fi 16896 16897if test $REPLACE_REALLOC = 1; then 16898 16899 16900 16901 16902 16903 16904 16905 16906 gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext" 16907 16908fi 16909 16910 16911 16912 16913 16914 GNULIB_REALLOC_POSIX=1 16915 16916 16917 16918 16919 16920$as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h 16921 16922 16923 16924 16925 16926# Check whether --with-included-regex was given. 16927if test "${with_included_regex+set}" = set; then : 16928 withval=$with_included_regex; 16929fi 16930 16931 16932 case $with_included_regex in #( 16933 yes|no) ac_use_included_regex=$with_included_regex 16934 ;; 16935 '') 16936 # If the system regex support is good enough that it passes the 16937 # following run test, then default to *not* using the included regex.c. 16938 # If cross compiling, assume the test would fail and use the included 16939 # regex.c. 16940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working re_compile_pattern" >&5 16941$as_echo_n "checking for working re_compile_pattern... " >&6; } 16942if test "${gl_cv_func_re_compile_pattern_working+set}" = set; then : 16943 $as_echo_n "(cached) " >&6 16944else 16945 if test "$cross_compiling" = yes; then : 16946 gl_cv_func_re_compile_pattern_working=no 16947else 16948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16949/* end confdefs.h. */ 16950$ac_includes_default 16951 #include <locale.h> 16952 #include <limits.h> 16953 #include <regex.h> 16954 16955int 16956main () 16957{ 16958int result = 0; 16959 static struct re_pattern_buffer regex; 16960 unsigned char folded_chars[UCHAR_MAX + 1]; 16961 int i; 16962 const char *s; 16963 struct re_registers regs; 16964 16965 /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html 16966 This test needs valgrind to catch the bug on Debian 16967 GNU/Linux 3.1 x86, but it might catch the bug better 16968 on other platforms and it shouldn't hurt to try the 16969 test here. */ 16970 if (setlocale (LC_ALL, "en_US.UTF-8")) 16971 { 16972 static char const pat[] = "insert into"; 16973 static char const data[] = 16974 "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK"; 16975 re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE 16976 | RE_ICASE); 16977 memset (®ex, 0, sizeof regex); 16978 s = re_compile_pattern (pat, sizeof pat - 1, ®ex); 16979 if (s) 16980 result |= 1; 16981 else if (re_search (®ex, data, sizeof data - 1, 16982 0, sizeof data - 1, ®s) 16983 != -1) 16984 result |= 1; 16985 if (! setlocale (LC_ALL, "C")) 16986 return 1; 16987 } 16988 16989 /* This test is from glibc bug 3957, reported by Andrew Mackey. */ 16990 re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE); 16991 memset (®ex, 0, sizeof regex); 16992 s = re_compile_pattern ("a[^x]b", 6, ®ex); 16993 if (s) 16994 result |= 2; 16995 /* This should fail, but succeeds for glibc-2.5. */ 16996 else if (re_search (®ex, "a\nb", 3, 0, 3, ®s) != -1) 16997 result |= 2; 16998 16999 /* This regular expression is from Spencer ere test number 75 17000 in grep-2.3. */ 17001 re_set_syntax (RE_SYNTAX_POSIX_EGREP); 17002 memset (®ex, 0, sizeof regex); 17003 for (i = 0; i <= UCHAR_MAX; i++) 17004 folded_chars[i] = i; 17005 regex.translate = folded_chars; 17006 s = re_compile_pattern ("a[[:]:]]b\n", 11, ®ex); 17007 /* This should fail with _Invalid character class name_ error. */ 17008 if (!s) 17009 result |= 4; 17010 17011 /* Ensure that [b-a] is diagnosed as invalid, when 17012 using RE_NO_EMPTY_RANGES. */ 17013 re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES); 17014 memset (®ex, 0, sizeof regex); 17015 s = re_compile_pattern ("a[b-a]", 6, ®ex); 17016 if (s == 0) 17017 result |= 8; 17018 17019 /* This should succeed, but does not for glibc-2.1.3. */ 17020 memset (®ex, 0, sizeof regex); 17021 s = re_compile_pattern ("{1", 2, ®ex); 17022 if (s) 17023 result |= 8; 17024 17025 /* The following example is derived from a problem report 17026 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */ 17027 memset (®ex, 0, sizeof regex); 17028 s = re_compile_pattern ("[an\371]*n", 7, ®ex); 17029 if (s) 17030 result |= 8; 17031 /* This should match, but does not for glibc-2.2.1. */ 17032 else if (re_match (®ex, "an", 2, 0, ®s) != 2) 17033 result |= 8; 17034 17035 memset (®ex, 0, sizeof regex); 17036 s = re_compile_pattern ("x", 1, ®ex); 17037 if (s) 17038 result |= 8; 17039 /* glibc-2.2.93 does not work with a negative RANGE argument. */ 17040 else if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1) 17041 result |= 8; 17042 17043 /* The version of regex.c in older versions of gnulib 17044 ignored RE_ICASE. Detect that problem too. */ 17045 re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE); 17046 memset (®ex, 0, sizeof regex); 17047 s = re_compile_pattern ("x", 1, ®ex); 17048 if (s) 17049 result |= 16; 17050 else if (re_search (®ex, "WXY", 3, 0, 3, ®s) < 0) 17051 result |= 16; 17052 17053 /* Catch a bug reported by Vin Shelton in 17054 http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html 17055 */ 17056 re_set_syntax (RE_SYNTAX_POSIX_BASIC 17057 & ~RE_CONTEXT_INVALID_DUP 17058 & ~RE_NO_EMPTY_RANGES); 17059 memset (®ex, 0, sizeof regex); 17060 s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, ®ex); 17061 if (s) 17062 result |= 32; 17063 17064 /* REG_STARTEND was added to glibc on 2004-01-15. 17065 Reject older versions. */ 17066 if (! REG_STARTEND) 17067 result |= 64; 17068 17069#if 0 17070 /* It would be nice to reject hosts whose regoff_t values are too 17071 narrow (including glibc on hosts with 64-bit ptrdiff_t and 17072 32-bit int), but we should wait until glibc implements this 17073 feature. Otherwise, support for equivalence classes and 17074 multibyte collation symbols would always be broken except 17075 when compiling --without-included-regex. */ 17076 if (sizeof (regoff_t) < sizeof (ptrdiff_t) 17077 || sizeof (regoff_t) < sizeof (ssize_t)) 17078 result |= 64; 17079#endif 17080 17081 return result; 17082 17083 ; 17084 return 0; 17085} 17086_ACEOF 17087if ac_fn_c_try_run "$LINENO"; then : 17088 gl_cv_func_re_compile_pattern_working=yes 17089else 17090 gl_cv_func_re_compile_pattern_working=no 17091fi 17092rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17093 conftest.$ac_objext conftest.beam conftest.$ac_ext 17094fi 17095 17096fi 17097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_re_compile_pattern_working" >&5 17098$as_echo "$gl_cv_func_re_compile_pattern_working" >&6; } 17099 case $gl_cv_func_re_compile_pattern_working in #( 17100 yes) ac_use_included_regex=no;; #( 17101 no) ac_use_included_regex=yes;; 17102 esac 17103 ;; 17104 *) as_fn_error $? "Invalid value for --with-included-regex: $with_included_regex" "$LINENO" 5 17105 ;; 17106 esac 17107 17108 if test $ac_use_included_regex = yes; then 17109 17110$as_echo "#define _REGEX_INCLUDE_LIMITS_H 1" >>confdefs.h 17111 17112 17113$as_echo "#define _REGEX_LARGE_OFFSETS 1" >>confdefs.h 17114 17115 17116$as_echo "#define re_syntax_options rpl_re_syntax_options" >>confdefs.h 17117 17118 17119$as_echo "#define re_set_syntax rpl_re_set_syntax" >>confdefs.h 17120 17121 17122$as_echo "#define re_compile_pattern rpl_re_compile_pattern" >>confdefs.h 17123 17124 17125$as_echo "#define re_compile_fastmap rpl_re_compile_fastmap" >>confdefs.h 17126 17127 17128$as_echo "#define re_search rpl_re_search" >>confdefs.h 17129 17130 17131$as_echo "#define re_search_2 rpl_re_search_2" >>confdefs.h 17132 17133 17134$as_echo "#define re_match rpl_re_match" >>confdefs.h 17135 17136 17137$as_echo "#define re_match_2 rpl_re_match_2" >>confdefs.h 17138 17139 17140$as_echo "#define re_set_registers rpl_re_set_registers" >>confdefs.h 17141 17142 17143$as_echo "#define re_comp rpl_re_comp" >>confdefs.h 17144 17145 17146$as_echo "#define re_exec rpl_re_exec" >>confdefs.h 17147 17148 17149$as_echo "#define regcomp rpl_regcomp" >>confdefs.h 17150 17151 17152$as_echo "#define regexec rpl_regexec" >>confdefs.h 17153 17154 17155$as_echo "#define regerror rpl_regerror" >>confdefs.h 17156 17157 17158$as_echo "#define regfree rpl_regfree" >>confdefs.h 17159 17160 fi 17161 17162if test $ac_use_included_regex = yes; then 17163 17164 17165 17166 17167 17168 17169 17170 17171 gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext" 17172 17173 17174 17175 17176 17177 17178 for ac_header in libintl.h 17179do : 17180 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" 17181if test "x$ac_cv_header_libintl_h" = x""yes; then : 17182 cat >>confdefs.h <<_ACEOF 17183#define HAVE_LIBINTL_H 1 17184_ACEOF 17185 17186fi 17187 17188done 17189 17190 17191 : 17192 17193 17194 17195 17196 17197 17198 17199 17200 17201 17202 17203 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h> 17204" 17205if test "x$ac_cv_have_decl_isblank" = x""yes; then : 17206 ac_have_decl=1 17207else 17208 ac_have_decl=0 17209fi 17210 17211cat >>confdefs.h <<_ACEOF 17212#define HAVE_DECL_ISBLANK $ac_have_decl 17213_ACEOF 17214 17215 17216fi 17217 17218 17219 17220 17221 for ac_func in rpmatch 17222do : 17223 ac_fn_c_check_func "$LINENO" "rpmatch" "ac_cv_func_rpmatch" 17224if test "x$ac_cv_func_rpmatch" = x""yes; then : 17225 cat >>confdefs.h <<_ACEOF 17226#define HAVE_RPMATCH 1 17227_ACEOF 17228 17229fi 17230done 17231 17232 if test $ac_cv_func_rpmatch = no; then 17233 HAVE_RPMATCH=0 17234 fi 17235 17236if test $HAVE_RPMATCH = 0; then 17237 17238 17239 17240 17241 17242 17243 17244 17245 gl_LIBOBJS="$gl_LIBOBJS rpmatch.$ac_objext" 17246 17247 17248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and YESEXPR" >&5 17249$as_echo_n "checking for nl_langinfo and YESEXPR... " >&6; } 17250if test "${gl_cv_langinfo_yesexpr+set}" = set; then : 17251 $as_echo_n "(cached) " >&6 17252else 17253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17254/* end confdefs.h. */ 17255#include <langinfo.h> 17256int 17257main () 17258{ 17259char* cs = nl_langinfo(YESEXPR); return !cs; 17260 ; 17261 return 0; 17262} 17263_ACEOF 17264if ac_fn_c_try_link "$LINENO"; then : 17265 gl_cv_langinfo_yesexpr=yes 17266else 17267 gl_cv_langinfo_yesexpr=no 17268fi 17269rm -f core conftest.err conftest.$ac_objext \ 17270 conftest$ac_exeext conftest.$ac_ext 17271 17272fi 17273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_langinfo_yesexpr" >&5 17274$as_echo "$gl_cv_langinfo_yesexpr" >&6; } 17275 if test $gl_cv_langinfo_yesexpr = yes; then 17276 17277$as_echo "#define HAVE_LANGINFO_YESEXPR 1" >>confdefs.h 17278 17279 fi 17280 17281fi 17282 17283 17284 17285 17286 17287 GNULIB_RPMATCH=1 17288 17289 17290 17291 17292 17293$as_echo "#define GNULIB_TEST_RPMATCH 1" >>confdefs.h 17294 17295 17296 17297 17298 17299 17300 17301 17302 17303 17304 17305 17306 17307 17308 if test $gl_cv_have_include_next = yes; then 17309 gl_cv_next_signal_h='<'signal.h'>' 17310 else 17311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5 17312$as_echo_n "checking absolute name of <signal.h>... " >&6; } 17313if test "${gl_cv_next_signal_h+set}" = set; then : 17314 $as_echo_n "(cached) " >&6 17315else 17316 17317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17318/* end confdefs.h. */ 17319#include <signal.h> 17320 17321_ACEOF 17322 case "$host_os" in 17323 aix*) gl_absname_cpp="$ac_cpp -C" ;; 17324 *) gl_absname_cpp="$ac_cpp" ;; 17325 esac 17326 17327 case "$host_os" in 17328 mingw*) 17329 gl_dirsep_regex='[/\\]' 17330 ;; 17331 *) 17332 gl_dirsep_regex='\/' 17333 ;; 17334 esac 17335 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 17336 17337 gl_header_literal_regex=`echo 'signal.h' \ 17338 | sed -e "$gl_make_literal_regex_sed"` 17339 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 17340 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 17341 s|^/[^/]|//&| 17342 p 17343 q 17344 }' 17345 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 17346 sed -n "$gl_absolute_header_sed"`'"' 17347 17348 17349fi 17350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5 17351$as_echo "$gl_cv_next_signal_h" >&6; } 17352 fi 17353 NEXT_SIGNAL_H=$gl_cv_next_signal_h 17354 17355 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 17356 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 17357 gl_next_as_first_directive='<'signal.h'>' 17358 else 17359 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 17360 gl_next_as_first_directive=$gl_cv_next_signal_h 17361 fi 17362 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive 17363 17364 17365 17366 17367 17368# AIX declares sig_atomic_t to already include volatile, and C89 compilers 17369# then choke on 'volatile sig_atomic_t'. C99 requires that it compile. 17370 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" " 17371#include <signal.h> 17372 17373" 17374if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then : 17375 17376else 17377 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0 17378fi 17379 17380 17381 17382 17383 17384 17385 17386 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" " 17387#include <signal.h> 17388 17389" 17390if test "x$ac_cv_type_sighandler_t" = x""yes; then : 17391 17392else 17393 HAVE_SIGHANDLER_T=0 17394fi 17395 17396 17397 17398 for gl_func in pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask; do 17399 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 17400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 17401$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 17402if eval "test \"\${$as_gl_Symbol+set}\"" = set; then : 17403 $as_echo_n "(cached) " >&6 17404else 17405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17406/* end confdefs.h. */ 17407#include <signal.h> 17408 17409int 17410main () 17411{ 17412#undef $gl_func 17413 (void) $gl_func; 17414 ; 17415 return 0; 17416} 17417_ACEOF 17418if ac_fn_c_try_compile "$LINENO"; then : 17419 eval "$as_gl_Symbol=yes" 17420else 17421 eval "$as_gl_Symbol=no" 17422fi 17423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17424fi 17425eval ac_res=\$$as_gl_Symbol 17426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17427$as_echo "$ac_res" >&6; } 17428 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 17429 cat >>confdefs.h <<_ACEOF 17430#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 17431_ACEOF 17432 17433 eval ac_cv_have_decl_$gl_func=yes 17434fi 17435 done 17436 17437 17438 17439 for ac_header in stdint.h 17440do : 17441 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 17442if test "x$ac_cv_header_stdint_h" = x""yes; then : 17443 cat >>confdefs.h <<_ACEOF 17444#define HAVE_STDINT_H 1 17445_ACEOF 17446 17447fi 17448 17449done 17450 17451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5 17452$as_echo_n "checking for SIZE_MAX... " >&6; } 17453if test "${gl_cv_size_max+set}" = set; then : 17454 $as_echo_n "(cached) " >&6 17455else 17456 17457 gl_cv_size_max= 17458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17459/* end confdefs.h. */ 17460 17461#include <limits.h> 17462#if HAVE_STDINT_H 17463#include <stdint.h> 17464#endif 17465#ifdef SIZE_MAX 17466Found it 17467#endif 17468 17469_ACEOF 17470if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17471 $EGREP "Found it" >/dev/null 2>&1; then : 17472 gl_cv_size_max=yes 17473fi 17474rm -f conftest* 17475 17476 if test -z "$gl_cv_size_max"; then 17477 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h> 17478#include <limits.h>"; then : 17479 17480else 17481 size_t_bits_minus_1= 17482fi 17483 17484 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then : 17485 17486else 17487 fits_in_uint= 17488fi 17489 17490 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then 17491 if test $fits_in_uint = 1; then 17492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17493/* end confdefs.h. */ 17494#include <stddef.h> 17495 extern size_t foo; 17496 extern unsigned long foo; 17497 17498int 17499main () 17500{ 17501 17502 ; 17503 return 0; 17504} 17505_ACEOF 17506if ac_fn_c_try_compile "$LINENO"; then : 17507 fits_in_uint=0 17508fi 17509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17510 fi 17511 if test $fits_in_uint = 1; then 17512 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" 17513 else 17514 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" 17515 fi 17516 else 17517 gl_cv_size_max='((size_t)~(size_t)0)' 17518 fi 17519 fi 17520 17521fi 17522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5 17523$as_echo "$gl_cv_size_max" >&6; } 17524 if test "$gl_cv_size_max" != yes; then 17525 17526cat >>confdefs.h <<_ACEOF 17527#define SIZE_MAX $gl_cv_size_max 17528_ACEOF 17529 17530 fi 17531 17532 17533 17534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 17535$as_echo_n "checking for ssize_t... " >&6; } 17536if test "${gt_cv_ssize_t+set}" = set; then : 17537 $as_echo_n "(cached) " >&6 17538else 17539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17540/* end confdefs.h. */ 17541#include <sys/types.h> 17542int 17543main () 17544{ 17545int x = sizeof (ssize_t *) + sizeof (ssize_t); 17546 return !x; 17547 ; 17548 return 0; 17549} 17550_ACEOF 17551if ac_fn_c_try_compile "$LINENO"; then : 17552 gt_cv_ssize_t=yes 17553else 17554 gt_cv_ssize_t=no 17555fi 17556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17557fi 17558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5 17559$as_echo "$gt_cv_ssize_t" >&6; } 17560 if test $gt_cv_ssize_t = no; then 17561 17562$as_echo "#define ssize_t int" >>confdefs.h 17563 17564 fi 17565 17566 17567 17568 17569 : 17570 17571 17572 17573 17574 17575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5 17576$as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; } 17577if test "${gl_cv_func_stat_dir_slash+set}" = set; then : 17578 $as_echo_n "(cached) " >&6 17579else 17580 if test "$cross_compiling" = yes; then : 17581 case $host_os in 17582 mingw*) gl_cv_func_stat_dir_slash="guessing no";; 17583 *) gl_cv_func_stat_dir_slash="guessing yes";; 17584 esac 17585else 17586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17587/* end confdefs.h. */ 17588#include <sys/stat.h> 17589 17590int 17591main () 17592{ 17593struct stat st; return stat (".", &st) != stat ("./", &st); 17594 ; 17595 return 0; 17596} 17597_ACEOF 17598if ac_fn_c_try_run "$LINENO"; then : 17599 gl_cv_func_stat_dir_slash=yes 17600else 17601 gl_cv_func_stat_dir_slash=no 17602fi 17603rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17604 conftest.$ac_objext conftest.beam conftest.$ac_ext 17605fi 17606 17607fi 17608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5 17609$as_echo "$gl_cv_func_stat_dir_slash" >&6; } 17610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5 17611$as_echo_n "checking whether stat handles trailing slashes on files... " >&6; } 17612if test "${gl_cv_func_stat_file_slash+set}" = set; then : 17613 $as_echo_n "(cached) " >&6 17614else 17615 touch conftest.tmp 17616 # Assume that if we have lstat, we can also check symlinks. 17617 if test $ac_cv_func_lstat = yes; then 17618 ln -s conftest.tmp conftest.lnk 17619 fi 17620 if test "$cross_compiling" = yes; then : 17621 gl_cv_func_stat_file_slash="guessing no" 17622else 17623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17624/* end confdefs.h. */ 17625#include <sys/stat.h> 17626 17627int 17628main () 17629{ 17630int result = 0; 17631 struct stat st; 17632 if (!stat ("conftest.tmp/", &st)) 17633 result |= 1; 17634#if HAVE_LSTAT 17635 if (!stat ("conftest.lnk/", &st)) 17636 result |= 2; 17637#endif 17638 return result; 17639 17640 ; 17641 return 0; 17642} 17643_ACEOF 17644if ac_fn_c_try_run "$LINENO"; then : 17645 gl_cv_func_stat_file_slash=yes 17646else 17647 gl_cv_func_stat_file_slash=no 17648fi 17649rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17650 conftest.$ac_objext conftest.beam conftest.$ac_ext 17651fi 17652 17653 rm -f conftest.tmp conftest.lnk 17654fi 17655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5 17656$as_echo "$gl_cv_func_stat_file_slash" >&6; } 17657 case $gl_cv_func_stat_dir_slash in 17658 *no) REPLACE_STAT=1 17659 17660$as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h 17661;; 17662 esac 17663 case $gl_cv_func_stat_file_slash in 17664 *no) REPLACE_STAT=1 17665 17666$as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h 17667;; 17668 esac 17669 17670if test $REPLACE_STAT = 1; then 17671 17672 17673 17674 17675 17676 17677 17678 17679 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext" 17680 17681 17682 17683 : 17684 17685fi 17686 17687 17688 17689 17690 17691 GNULIB_STAT=1 17692 17693 17694 17695 17696 17697$as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h 17698 17699 17700 17701 17702 STDARG_H='' 17703 NEXT_STDARG_H='<stdarg.h>' 17704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5 17705$as_echo_n "checking for va_copy... " >&6; } 17706 if test "${gl_cv_func_va_copy+set}" = set; then : 17707 $as_echo_n "(cached) " >&6 17708else 17709 17710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17711/* end confdefs.h. */ 17712#include <stdarg.h> 17713int 17714main () 17715{ 17716 17717#ifndef va_copy 17718void (*func) (va_list, va_list) = va_copy; 17719#endif 17720 17721 ; 17722 return 0; 17723} 17724_ACEOF 17725if ac_fn_c_try_compile "$LINENO"; then : 17726 gl_cv_func_va_copy=yes 17727else 17728 gl_cv_func_va_copy=no 17729fi 17730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17731fi 17732 17733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5 17734$as_echo "$gl_cv_func_va_copy" >&6; } 17735 if test $gl_cv_func_va_copy = no; then 17736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17737/* end confdefs.h. */ 17738#if defined _AIX && !defined __GNUC__ 17739 AIX vaccine 17740 #endif 17741 17742_ACEOF 17743if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17744 $EGREP "vaccine" >/dev/null 2>&1; then : 17745 gl_aixcc=yes 17746else 17747 gl_aixcc=no 17748fi 17749rm -f conftest* 17750 17751 if test $gl_aixcc = yes; then 17752 STDARG_H=stdarg.h 17753 17754 17755 17756 17757 17758 17759 17760 17761 if test $gl_cv_have_include_next = yes; then 17762 gl_cv_next_stdarg_h='<'stdarg.h'>' 17763 else 17764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5 17765$as_echo_n "checking absolute name of <stdarg.h>... " >&6; } 17766if test "${gl_cv_next_stdarg_h+set}" = set; then : 17767 $as_echo_n "(cached) " >&6 17768else 17769 17770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17771/* end confdefs.h. */ 17772#include <stdarg.h> 17773 17774_ACEOF 17775 case "$host_os" in 17776 aix*) gl_absname_cpp="$ac_cpp -C" ;; 17777 *) gl_absname_cpp="$ac_cpp" ;; 17778 esac 17779 17780 case "$host_os" in 17781 mingw*) 17782 gl_dirsep_regex='[/\\]' 17783 ;; 17784 *) 17785 gl_dirsep_regex='\/' 17786 ;; 17787 esac 17788 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 17789 17790 gl_header_literal_regex=`echo 'stdarg.h' \ 17791 | sed -e "$gl_make_literal_regex_sed"` 17792 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 17793 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 17794 s|^/[^/]|//&| 17795 p 17796 q 17797 }' 17798 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 17799 sed -n "$gl_absolute_header_sed"`'"' 17800 17801 17802fi 17803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5 17804$as_echo "$gl_cv_next_stdarg_h" >&6; } 17805 fi 17806 NEXT_STDARG_H=$gl_cv_next_stdarg_h 17807 17808 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 17809 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 17810 gl_next_as_first_directive='<'stdarg.h'>' 17811 else 17812 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 17813 gl_next_as_first_directive=$gl_cv_next_stdarg_h 17814 fi 17815 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive 17816 17817 17818 17819 17820 if test "$gl_cv_next_stdarg_h" = '""'; then 17821 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"' 17822 NEXT_STDARG_H="$gl_cv_next_stdarg_h" 17823 fi 17824 else 17825 17826 saved_as_echo_n="$as_echo_n" 17827 as_echo_n=':' 17828 if test "${gl_cv_func___va_copy+set}" = set; then : 17829 $as_echo_n "(cached) " >&6 17830else 17831 17832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17833/* end confdefs.h. */ 17834#include <stdarg.h> 17835int 17836main () 17837{ 17838 17839#ifndef __va_copy 17840error, bail out 17841#endif 17842 17843 ; 17844 return 0; 17845} 17846_ACEOF 17847if ac_fn_c_try_compile "$LINENO"; then : 17848 gl_cv_func___va_copy=yes 17849else 17850 gl_cv_func___va_copy=no 17851fi 17852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17853fi 17854 17855 as_echo_n="$saved_as_echo_n" 17856 17857 if test $gl_cv_func___va_copy = yes; then 17858 17859$as_echo "#define va_copy __va_copy" >>confdefs.h 17860 17861 else 17862 17863 17864$as_echo "#define va_copy gl_va_copy" >>confdefs.h 17865 17866 fi 17867 fi 17868 fi 17869 17870 if test -n "$STDARG_H"; then 17871 GL_GENERATE_STDARG_H_TRUE= 17872 GL_GENERATE_STDARG_H_FALSE='#' 17873else 17874 GL_GENERATE_STDARG_H_TRUE='#' 17875 GL_GENERATE_STDARG_H_FALSE= 17876fi 17877 17878 17879 17880 17881 17882 17883 # Define two additional variables used in the Makefile substitution. 17884 17885 if test "$ac_cv_header_stdbool_h" = yes; then 17886 STDBOOL_H='' 17887 else 17888 STDBOOL_H='stdbool.h' 17889 fi 17890 17891 if test -n "$STDBOOL_H"; then 17892 GL_GENERATE_STDBOOL_H_TRUE= 17893 GL_GENERATE_STDBOOL_H_FALSE='#' 17894else 17895 GL_GENERATE_STDBOOL_H_TRUE='#' 17896 GL_GENERATE_STDBOOL_H_FALSE= 17897fi 17898 17899 17900 if test "$ac_cv_type__Bool" = yes; then 17901 HAVE__BOOL=1 17902 else 17903 HAVE__BOOL=0 17904 fi 17905 17906 17907 17908 17909 17910 STDDEF_H= 17911 if test $gt_cv_c_wchar_t = no; then 17912 HAVE_WCHAR_T=0 17913 STDDEF_H=stddef.h 17914 fi 17915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5 17916$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; } 17917if test "${gl_cv_decl_null_works+set}" = set; then : 17918 $as_echo_n "(cached) " >&6 17919else 17920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17921/* end confdefs.h. */ 17922#include <stddef.h> 17923 int test[2 * (sizeof NULL == sizeof (void *)) -1]; 17924 17925int 17926main () 17927{ 17928 17929 ; 17930 return 0; 17931} 17932_ACEOF 17933if ac_fn_c_try_compile "$LINENO"; then : 17934 gl_cv_decl_null_works=yes 17935else 17936 gl_cv_decl_null_works=no 17937fi 17938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17939fi 17940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5 17941$as_echo "$gl_cv_decl_null_works" >&6; } 17942 if test $gl_cv_decl_null_works = no; then 17943 REPLACE_NULL=1 17944 STDDEF_H=stddef.h 17945 fi 17946 17947 if test -n "$STDDEF_H"; then 17948 GL_GENERATE_STDDEF_H_TRUE= 17949 GL_GENERATE_STDDEF_H_FALSE='#' 17950else 17951 GL_GENERATE_STDDEF_H_TRUE='#' 17952 GL_GENERATE_STDDEF_H_FALSE= 17953fi 17954 17955 if test -n "$STDDEF_H"; then 17956 17957 17958 17959 17960 17961 17962 17963 17964 if test $gl_cv_have_include_next = yes; then 17965 gl_cv_next_stddef_h='<'stddef.h'>' 17966 else 17967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5 17968$as_echo_n "checking absolute name of <stddef.h>... " >&6; } 17969if test "${gl_cv_next_stddef_h+set}" = set; then : 17970 $as_echo_n "(cached) " >&6 17971else 17972 17973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17974/* end confdefs.h. */ 17975#include <stddef.h> 17976 17977_ACEOF 17978 case "$host_os" in 17979 aix*) gl_absname_cpp="$ac_cpp -C" ;; 17980 *) gl_absname_cpp="$ac_cpp" ;; 17981 esac 17982 17983 case "$host_os" in 17984 mingw*) 17985 gl_dirsep_regex='[/\\]' 17986 ;; 17987 *) 17988 gl_dirsep_regex='\/' 17989 ;; 17990 esac 17991 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 17992 17993 gl_header_literal_regex=`echo 'stddef.h' \ 17994 | sed -e "$gl_make_literal_regex_sed"` 17995 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 17996 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 17997 s|^/[^/]|//&| 17998 p 17999 q 18000 }' 18001 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 18002 sed -n "$gl_absolute_header_sed"`'"' 18003 18004 18005fi 18006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5 18007$as_echo "$gl_cv_next_stddef_h" >&6; } 18008 fi 18009 NEXT_STDDEF_H=$gl_cv_next_stddef_h 18010 18011 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 18012 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 18013 gl_next_as_first_directive='<'stddef.h'>' 18014 else 18015 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 18016 gl_next_as_first_directive=$gl_cv_next_stddef_h 18017 fi 18018 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive 18019 18020 18021 18022 18023 fi 18024 18025 18026 18027 18028 18029 18030 18031 18032 18033 18034 18035 18036 18037 if test $gl_cv_have_include_next = yes; then 18038 gl_cv_next_stdio_h='<'stdio.h'>' 18039 else 18040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5 18041$as_echo_n "checking absolute name of <stdio.h>... " >&6; } 18042if test "${gl_cv_next_stdio_h+set}" = set; then : 18043 $as_echo_n "(cached) " >&6 18044else 18045 18046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18047/* end confdefs.h. */ 18048#include <stdio.h> 18049 18050_ACEOF 18051 case "$host_os" in 18052 aix*) gl_absname_cpp="$ac_cpp -C" ;; 18053 *) gl_absname_cpp="$ac_cpp" ;; 18054 esac 18055 18056 case "$host_os" in 18057 mingw*) 18058 gl_dirsep_regex='[/\\]' 18059 ;; 18060 *) 18061 gl_dirsep_regex='\/' 18062 ;; 18063 esac 18064 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 18065 18066 gl_header_literal_regex=`echo 'stdio.h' \ 18067 | sed -e "$gl_make_literal_regex_sed"` 18068 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 18069 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 18070 s|^/[^/]|//&| 18071 p 18072 q 18073 }' 18074 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 18075 sed -n "$gl_absolute_header_sed"`'"' 18076 18077 18078fi 18079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5 18080$as_echo "$gl_cv_next_stdio_h" >&6; } 18081 fi 18082 NEXT_STDIO_H=$gl_cv_next_stdio_h 18083 18084 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 18085 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 18086 gl_next_as_first_directive='<'stdio.h'>' 18087 else 18088 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 18089 gl_next_as_first_directive=$gl_cv_next_stdio_h 18090 fi 18091 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive 18092 18093 18094 18095 18096 18097 GNULIB_FSCANF=1 18098 GNULIB_SCANF=1 18099 GNULIB_FGETC=1 18100 GNULIB_GETC=1 18101 GNULIB_GETCHAR=1 18102 GNULIB_FGETS=1 18103 GNULIB_FREAD=1 18104 18105 18106 GNULIB_FPRINTF=1 18107 GNULIB_PRINTF=1 18108 GNULIB_VFPRINTF=1 18109 GNULIB_VPRINTF=1 18110 GNULIB_FPUTC=1 18111 GNULIB_PUTC=1 18112 GNULIB_PUTCHAR=1 18113 GNULIB_FPUTS=1 18114 GNULIB_PUTS=1 18115 GNULIB_FWRITE=1 18116 18117 18118 18119 18120 for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do 18121 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 18122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 18123$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 18124if eval "test \"\${$as_gl_Symbol+set}\"" = set; then : 18125 $as_echo_n "(cached) " >&6 18126else 18127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18128/* end confdefs.h. */ 18129#include <stdio.h> 18130 18131int 18132main () 18133{ 18134#undef $gl_func 18135 (void) $gl_func; 18136 ; 18137 return 0; 18138} 18139_ACEOF 18140if ac_fn_c_try_compile "$LINENO"; then : 18141 eval "$as_gl_Symbol=yes" 18142else 18143 eval "$as_gl_Symbol=no" 18144fi 18145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18146fi 18147eval ac_res=\$$as_gl_Symbol 18148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18149$as_echo "$ac_res" >&6; } 18150 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 18151 cat >>confdefs.h <<_ACEOF 18152#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 18153_ACEOF 18154 18155 eval ac_cv_have_decl_$gl_func=yes 18156fi 18157 done 18158 18159 18160 18161 18162 18163 18164 18165 18166 18167 18168 18169 18170 if test $gl_cv_have_include_next = yes; then 18171 gl_cv_next_stdlib_h='<'stdlib.h'>' 18172 else 18173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5 18174$as_echo_n "checking absolute name of <stdlib.h>... " >&6; } 18175if test "${gl_cv_next_stdlib_h+set}" = set; then : 18176 $as_echo_n "(cached) " >&6 18177else 18178 18179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18180/* end confdefs.h. */ 18181#include <stdlib.h> 18182 18183_ACEOF 18184 case "$host_os" in 18185 aix*) gl_absname_cpp="$ac_cpp -C" ;; 18186 *) gl_absname_cpp="$ac_cpp" ;; 18187 esac 18188 18189 case "$host_os" in 18190 mingw*) 18191 gl_dirsep_regex='[/\\]' 18192 ;; 18193 *) 18194 gl_dirsep_regex='\/' 18195 ;; 18196 esac 18197 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 18198 18199 gl_header_literal_regex=`echo 'stdlib.h' \ 18200 | sed -e "$gl_make_literal_regex_sed"` 18201 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 18202 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 18203 s|^/[^/]|//&| 18204 p 18205 q 18206 }' 18207 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 18208 sed -n "$gl_absolute_header_sed"`'"' 18209 18210 18211fi 18212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5 18213$as_echo "$gl_cv_next_stdlib_h" >&6; } 18214 fi 18215 NEXT_STDLIB_H=$gl_cv_next_stdlib_h 18216 18217 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 18218 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 18219 gl_next_as_first_directive='<'stdlib.h'>' 18220 else 18221 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 18222 gl_next_as_first_directive=$gl_cv_next_stdlib_h 18223 fi 18224 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive 18225 18226 18227 18228 18229 18230 18231 for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps posix_openpt ptsname ptsname_r random random_r realpath rpmatch setenv setstate setstate_r srandom srandom_r strtod strtoll strtoull unlockpt unsetenv; do 18232 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 18233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 18234$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 18235if eval "test \"\${$as_gl_Symbol+set}\"" = set; then : 18236 $as_echo_n "(cached) " >&6 18237else 18238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18239/* end confdefs.h. */ 18240#include <stdlib.h> 18241#if HAVE_SYS_LOADAVG_H 18242# include <sys/loadavg.h> 18243#endif 18244#if HAVE_RANDOM_H 18245# include <random.h> 18246#endif 18247 18248int 18249main () 18250{ 18251#undef $gl_func 18252 (void) $gl_func; 18253 ; 18254 return 0; 18255} 18256_ACEOF 18257if ac_fn_c_try_compile "$LINENO"; then : 18258 eval "$as_gl_Symbol=yes" 18259else 18260 eval "$as_gl_Symbol=no" 18261fi 18262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18263fi 18264eval ac_res=\$$as_gl_Symbol 18265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18266$as_echo "$ac_res" >&6; } 18267 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 18268 cat >>confdefs.h <<_ACEOF 18269#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 18270_ACEOF 18271 18272 eval ac_cv_have_decl_$gl_func=yes 18273fi 18274 done 18275 18276 18277 18278 18279 18280 for ac_func in strcasecmp 18281do : 18282 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 18283if test "x$ac_cv_func_strcasecmp" = x""yes; then : 18284 cat >>confdefs.h <<_ACEOF 18285#define HAVE_STRCASECMP 1 18286_ACEOF 18287 18288fi 18289done 18290 18291 if test $ac_cv_func_strcasecmp = no; then 18292 HAVE_STRCASECMP=0 18293 fi 18294 18295 18296 18297 for ac_func in strncasecmp 18298do : 18299 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp" 18300if test "x$ac_cv_func_strncasecmp" = x""yes; then : 18301 cat >>confdefs.h <<_ACEOF 18302#define HAVE_STRNCASECMP 1 18303_ACEOF 18304 18305fi 18306done 18307 18308 if test $ac_cv_func_strncasecmp = yes; then 18309 HAVE_STRNCASECMP=1 18310 else 18311 HAVE_STRNCASECMP=0 18312 fi 18313 ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default" 18314if test "x$ac_cv_have_decl_strncasecmp" = x""yes; then : 18315 ac_have_decl=1 18316else 18317 ac_have_decl=0 18318fi 18319 18320cat >>confdefs.h <<_ACEOF 18321#define HAVE_DECL_STRNCASECMP $ac_have_decl 18322_ACEOF 18323 18324 if test $ac_cv_have_decl_strncasecmp = no; then 18325 HAVE_DECL_STRNCASECMP=0 18326 fi 18327 18328 18329if test $HAVE_STRCASECMP = 0; then 18330 18331 18332 18333 18334 18335 18336 18337 18338 gl_LIBOBJS="$gl_LIBOBJS strcasecmp.$ac_objext" 18339 18340 18341 : 18342 18343fi 18344if test $HAVE_STRNCASECMP = 0; then 18345 18346 18347 18348 18349 18350 18351 18352 18353 gl_LIBOBJS="$gl_LIBOBJS strncasecmp.$ac_objext" 18354 18355 18356 : 18357 18358fi 18359 18360 18361 18362 18363 : 18364 18365 18366 18367 18368 18369 if test $ac_cv_func_strdup = yes; then 18370 if test $gl_cv_func_malloc_posix != yes; then 18371 REPLACE_STRDUP=1 18372 fi 18373 fi 18374 18375 : 18376 18377 18378 18379 18380 18381 if test $ac_cv_have_decl_strdup = no; then 18382 HAVE_DECL_STRDUP=0 18383 fi 18384 18385if test $ac_cv_func_strdup = no || test $REPLACE_STRDUP = 1; then 18386 18387 18388 18389 18390 18391 18392 18393 18394 gl_LIBOBJS="$gl_LIBOBJS strdup.$ac_objext" 18395 18396 : 18397fi 18398 18399 18400 18401 18402 18403 GNULIB_STRDUP=1 18404 18405 18406 18407 18408 18409$as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h 18410 18411 18412 18413 18414 18415 18416 18417 18418 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then 18419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5 18420$as_echo_n "checking for working strerror function... " >&6; } 18421if test "${gl_cv_func_working_strerror+set}" = set; then : 18422 $as_echo_n "(cached) " >&6 18423else 18424 if test "$cross_compiling" = yes; then : 18425 gl_cv_func_working_strerror="guessing no" 18426else 18427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18428/* end confdefs.h. */ 18429#include <string.h> 18430 18431int 18432main () 18433{ 18434if (!*strerror (-2)) return 1; 18435 ; 18436 return 0; 18437} 18438_ACEOF 18439if ac_fn_c_try_run "$LINENO"; then : 18440 gl_cv_func_working_strerror=yes 18441else 18442 gl_cv_func_working_strerror=no 18443fi 18444rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18445 conftest.$ac_objext conftest.beam conftest.$ac_ext 18446fi 18447 18448 18449fi 18450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5 18451$as_echo "$gl_cv_func_working_strerror" >&6; } 18452 if test "$gl_cv_func_working_strerror" != yes; then 18453 REPLACE_STRERROR=1 18454 fi 18455 18456 else 18457 REPLACE_STRERROR=1 18458 fi 18459 18460if test $REPLACE_STRERROR = 1; then 18461 18462 18463 18464 18465 18466 18467 18468 18469 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext" 18470 18471fi 18472 18473 18474cat >>confdefs.h <<_ACEOF 18475#define GNULIB_STRERROR 1 18476_ACEOF 18477 18478 18479 18480 18481 18482 18483 18484 GNULIB_STRERROR=1 18485 18486 18487 18488 18489 18490$as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h 18491 18492 18493 18494 18495 18496if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then 18497 18498 18499 18500 18501 18502 18503 18504 18505 gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext" 18506 18507 18508 18509 18510 18511 : 18512 18513 18514 18515 18516 18517 if test $ac_cv_header_sys_socket_h != yes; then 18518 for ac_header in winsock2.h 18519do : 18520 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 18521if test "x$ac_cv_header_winsock2_h" = x""yes; then : 18522 cat >>confdefs.h <<_ACEOF 18523#define HAVE_WINSOCK2_H 1 18524_ACEOF 18525 18526fi 18527 18528done 18529 18530 fi 18531 if test "$ac_cv_header_winsock2_h" = yes; then 18532 HAVE_WINSOCK2_H=1 18533 UNISTD_H_HAVE_WINSOCK2_H=1 18534 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 18535 else 18536 HAVE_WINSOCK2_H=0 18537 fi 18538 18539 18540fi 18541 18542 18543 18544 18545 18546 18547 18548 18549 18550 18551 18552 : 18553 18554 18555 18556 18557 18558 18559 : 18560 18561 18562 18563 18564 18565 if test $ac_cv_have_decl_strndup = no; then 18566 HAVE_DECL_STRNDUP=0 18567 fi 18568 18569 if test $ac_cv_func_strndup = yes; then 18570 HAVE_STRNDUP=1 18571 # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'. 18572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5 18573$as_echo_n "checking for working strndup... " >&6; } 18574if test "${gl_cv_func_strndup_works+set}" = set; then : 18575 $as_echo_n "(cached) " >&6 18576else 18577 if test "$cross_compiling" = yes; then : 18578 18579 case $host_os in 18580 aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";; 18581 *) gl_cv_func_strndup_works="guessing yes";; 18582 esac 18583 18584else 18585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18586/* end confdefs.h. */ 18587 18588 #include <string.h> 18589 #include <stdlib.h> 18590int 18591main () 18592{ 18593 18594#ifndef HAVE_DECL_STRNDUP 18595 extern 18596 #ifdef __cplusplus 18597 "C" 18598 #endif 18599 char *strndup (const char *, size_t); 18600#endif 18601 char *s; 18602 s = strndup ("some longer string", 15); 18603 free (s); 18604 s = strndup ("shorter string", 13); 18605 return s[13] != '\0'; 18606 ; 18607 return 0; 18608} 18609_ACEOF 18610if ac_fn_c_try_run "$LINENO"; then : 18611 gl_cv_func_strndup_works=yes 18612else 18613 gl_cv_func_strndup_works=no 18614fi 18615rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18616 conftest.$ac_objext conftest.beam conftest.$ac_ext 18617fi 18618 18619fi 18620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5 18621$as_echo "$gl_cv_func_strndup_works" >&6; } 18622 case $gl_cv_func_strndup_works in 18623 *no) REPLACE_STRNDUP=1 ;; 18624 esac 18625 else 18626 HAVE_STRNDUP=0 18627 fi 18628 18629if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then 18630 18631 18632 18633 18634 18635 18636 18637 18638 gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext" 18639 18640fi 18641 18642 18643 18644 18645 18646 GNULIB_STRNDUP=1 18647 18648 18649 18650 18651 18652$as_echo "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h 18653 18654 18655 18656 18657 18658 18659 18660 18661 18662 : 18663 18664 18665 18666 18667 18668 if test $ac_cv_have_decl_strnlen = no; then 18669 HAVE_DECL_STRNLEN=0 18670 else 18671 18672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5 18673$as_echo_n "checking for working strnlen... " >&6; } 18674if test "${ac_cv_func_strnlen_working+set}" = set; then : 18675 $as_echo_n "(cached) " >&6 18676else 18677 if test "$cross_compiling" = yes; then : 18678 ac_cv_func_strnlen_working=no 18679else 18680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18681/* end confdefs.h. */ 18682$ac_includes_default 18683int 18684main () 18685{ 18686 18687#define S "foobar" 18688#define S_LEN (sizeof S - 1) 18689 18690 /* At least one implementation is buggy: that of AIX 4.3 would 18691 give strnlen (S, 1) == 3. */ 18692 18693 int i; 18694 for (i = 0; i < S_LEN + 1; ++i) 18695 { 18696 int expected = i <= S_LEN ? i : S_LEN; 18697 if (strnlen (S, i) != expected) 18698 return 1; 18699 } 18700 return 0; 18701 18702 ; 18703 return 0; 18704} 18705_ACEOF 18706if ac_fn_c_try_run "$LINENO"; then : 18707 ac_cv_func_strnlen_working=yes 18708else 18709 ac_cv_func_strnlen_working=no 18710fi 18711rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18712 conftest.$ac_objext conftest.beam conftest.$ac_ext 18713fi 18714 18715fi 18716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5 18717$as_echo "$ac_cv_func_strnlen_working" >&6; } 18718test $ac_cv_func_strnlen_working = no && : 18719 18720 18721 if test $ac_cv_func_strnlen_working = no; then 18722 REPLACE_STRNLEN=1 18723 fi 18724 fi 18725 18726if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then 18727 18728 18729 18730 18731 18732 18733 18734 18735 gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext" 18736 18737 : 18738fi 18739 18740 18741 18742 18743 18744 GNULIB_STRNLEN=1 18745 18746 18747 18748 18749 18750$as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h 18751 18752 18753 18754 18755 18756 18757 18758 18759 18760 18761 18762 18763 18764 18765 18766 18767 : 18768 18769 18770 18771 18772 18773 18774 18775 18776 if test $gl_cv_have_include_next = yes; then 18777 gl_cv_next_sys_stat_h='<'sys/stat.h'>' 18778 else 18779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5 18780$as_echo_n "checking absolute name of <sys/stat.h>... " >&6; } 18781if test "${gl_cv_next_sys_stat_h+set}" = set; then : 18782 $as_echo_n "(cached) " >&6 18783else 18784 18785 if test $ac_cv_header_sys_stat_h = yes; then 18786 18787 18788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18789/* end confdefs.h. */ 18790#include <sys/stat.h> 18791 18792_ACEOF 18793 case "$host_os" in 18794 aix*) gl_absname_cpp="$ac_cpp -C" ;; 18795 *) gl_absname_cpp="$ac_cpp" ;; 18796 esac 18797 18798 case "$host_os" in 18799 mingw*) 18800 gl_dirsep_regex='[/\\]' 18801 ;; 18802 *) 18803 gl_dirsep_regex='\/' 18804 ;; 18805 esac 18806 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 18807 18808 gl_header_literal_regex=`echo 'sys/stat.h' \ 18809 | sed -e "$gl_make_literal_regex_sed"` 18810 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 18811 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 18812 s|^/[^/]|//&| 18813 p 18814 q 18815 }' 18816 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 18817 sed -n "$gl_absolute_header_sed"`'"' 18818 else 18819 gl_cv_next_sys_stat_h='<'sys/stat.h'>' 18820 fi 18821 18822 18823fi 18824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5 18825$as_echo "$gl_cv_next_sys_stat_h" >&6; } 18826 fi 18827 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h 18828 18829 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 18830 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 18831 gl_next_as_first_directive='<'sys/stat.h'>' 18832 else 18833 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 18834 gl_next_as_first_directive=$gl_cv_next_sys_stat_h 18835 fi 18836 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive 18837 18838 18839 18840 18841 18842 18843 18844 18845 18846 18847 18848 if test $WINDOWS_64_BIT_ST_SIZE = 1; then 18849 18850$as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h 18851 18852 fi 18853 18854 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h> 18855 #include <sys/stat.h> 18856" 18857if test "x$ac_cv_type_nlink_t" = x""yes; then : 18858 18859else 18860 18861$as_echo "#define nlink_t int" >>confdefs.h 18862 18863fi 18864 18865 18866 18867 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do 18868 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 18869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 18870$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 18871if eval "test \"\${$as_gl_Symbol+set}\"" = set; then : 18872 $as_echo_n "(cached) " >&6 18873else 18874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18875/* end confdefs.h. */ 18876#include <sys/stat.h> 18877 18878int 18879main () 18880{ 18881#undef $gl_func 18882 (void) $gl_func; 18883 ; 18884 return 0; 18885} 18886_ACEOF 18887if ac_fn_c_try_compile "$LINENO"; then : 18888 eval "$as_gl_Symbol=yes" 18889else 18890 eval "$as_gl_Symbol=no" 18891fi 18892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18893fi 18894eval ac_res=\$$as_gl_Symbol 18895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18896$as_echo "$ac_res" >&6; } 18897 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 18898 cat >>confdefs.h <<_ACEOF 18899#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 18900_ACEOF 18901 18902 eval ac_cv_have_decl_$gl_func=yes 18903fi 18904 done 18905 18906 18907 18908 18909 18910 18911 18912 18913 18914 18915 18916 18917 18918 18919 18920 18921 18922 if test $gl_cv_have_include_next = yes; then 18923 gl_cv_next_sys_types_h='<'sys/types.h'>' 18924 else 18925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5 18926$as_echo_n "checking absolute name of <sys/types.h>... " >&6; } 18927if test "${gl_cv_next_sys_types_h+set}" = set; then : 18928 $as_echo_n "(cached) " >&6 18929else 18930 18931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18932/* end confdefs.h. */ 18933#include <sys/types.h> 18934 18935_ACEOF 18936 case "$host_os" in 18937 aix*) gl_absname_cpp="$ac_cpp -C" ;; 18938 *) gl_absname_cpp="$ac_cpp" ;; 18939 esac 18940 18941 case "$host_os" in 18942 mingw*) 18943 gl_dirsep_regex='[/\\]' 18944 ;; 18945 *) 18946 gl_dirsep_regex='\/' 18947 ;; 18948 esac 18949 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 18950 18951 gl_header_literal_regex=`echo 'sys/types.h' \ 18952 | sed -e "$gl_make_literal_regex_sed"` 18953 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 18954 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 18955 s|^/[^/]|//&| 18956 p 18957 q 18958 }' 18959 gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 18960 sed -n "$gl_absolute_header_sed"`'"' 18961 18962 18963fi 18964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5 18965$as_echo "$gl_cv_next_sys_types_h" >&6; } 18966 fi 18967 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h 18968 18969 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 18970 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 18971 gl_next_as_first_directive='<'sys/types.h'>' 18972 else 18973 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 18974 gl_next_as_first_directive=$gl_cv_next_sys_types_h 18975 fi 18976 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive 18977 18978 18979 18980 18981 18982 18983 18984 18985 18986 18987 18988 18989 18990 18991 18992 18993 18994 18995 18996 18997 18998 18999 19000 19001 19002 19003 19004 19005 : 19006 19007 19008 19009 19010 19011 19012 19013 19014 if test $gl_cv_have_include_next = yes; then 19015 gl_cv_next_unistd_h='<'unistd.h'>' 19016 else 19017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5 19018$as_echo_n "checking absolute name of <unistd.h>... " >&6; } 19019if test "${gl_cv_next_unistd_h+set}" = set; then : 19020 $as_echo_n "(cached) " >&6 19021else 19022 19023 if test $ac_cv_header_unistd_h = yes; then 19024 19025 19026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19027/* end confdefs.h. */ 19028#include <unistd.h> 19029 19030_ACEOF 19031 case "$host_os" in 19032 aix*) gl_absname_cpp="$ac_cpp -C" ;; 19033 *) gl_absname_cpp="$ac_cpp" ;; 19034 esac 19035 19036 case "$host_os" in 19037 mingw*) 19038 gl_dirsep_regex='[/\\]' 19039 ;; 19040 *) 19041 gl_dirsep_regex='\/' 19042 ;; 19043 esac 19044 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 19045 19046 gl_header_literal_regex=`echo 'unistd.h' \ 19047 | sed -e "$gl_make_literal_regex_sed"` 19048 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 19049 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 19050 s|^/[^/]|//&| 19051 p 19052 q 19053 }' 19054 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 19055 sed -n "$gl_absolute_header_sed"`'"' 19056 else 19057 gl_cv_next_unistd_h='<'unistd.h'>' 19058 fi 19059 19060 19061fi 19062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5 19063$as_echo "$gl_cv_next_unistd_h" >&6; } 19064 fi 19065 NEXT_UNISTD_H=$gl_cv_next_unistd_h 19066 19067 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 19068 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 19069 gl_next_as_first_directive='<'unistd.h'>' 19070 else 19071 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 19072 gl_next_as_first_directive=$gl_cv_next_unistd_h 19073 fi 19074 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive 19075 19076 19077 19078 19079 if test $ac_cv_header_unistd_h = yes; then 19080 HAVE_UNISTD_H=1 19081 else 19082 HAVE_UNISTD_H=0 19083 fi 19084 19085 19086 19087 19088 19089 19090 19091 for gl_func in chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite readlink readlinkat rmdir sethostname sleep symlink symlinkat ttyname_r unlink unlinkat usleep; do 19092 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 19093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 19094$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 19095if eval "test \"\${$as_gl_Symbol+set}\"" = set; then : 19096 $as_echo_n "(cached) " >&6 19097else 19098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19099/* end confdefs.h. */ 19100 19101#if HAVE_UNISTD_H 19102# include <unistd.h> 19103#endif 19104/* Some systems declare various items in the wrong headers. */ 19105#if !(defined __GLIBC__ && !defined __UCLIBC__) 19106# include <fcntl.h> 19107# include <stdio.h> 19108# include <stdlib.h> 19109# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ 19110# include <io.h> 19111# endif 19112#endif 19113 19114int 19115main () 19116{ 19117#undef $gl_func 19118 (void) $gl_func; 19119 ; 19120 return 0; 19121} 19122_ACEOF 19123if ac_fn_c_try_compile "$LINENO"; then : 19124 eval "$as_gl_Symbol=yes" 19125else 19126 eval "$as_gl_Symbol=no" 19127fi 19128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19129fi 19130eval ac_res=\$$as_gl_Symbol 19131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19132$as_echo "$ac_res" >&6; } 19133 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 19134 cat >>confdefs.h <<_ACEOF 19135#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 19136_ACEOF 19137 19138 eval ac_cv_have_decl_$gl_func=yes 19139fi 19140 done 19141 19142 19143 19144 19145 : 19146 19147 19148 19149 19150 19151 if test $ac_cv_func_vasnprintf = no; then 19152 19153 19154 : 19155 19156 19157 19158 19159 19160 19161 19162 19163 19164 19165 19166 19167 19168 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext" 19169 19170 19171 19172 19173 19174 19175 19176 19177 19178 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext" 19179 19180 19181 19182 19183 19184 19185 19186 19187 19188 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext" 19189 19190 19191 19192 19193 19194 19195 19196 19197 19198 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext" 19199 19200 if test $ac_cv_func_vasnprintf = yes; then 19201 19202$as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h 19203 19204 fi 19205 19206 19207 19208 19209 19210 19211 19212 19213 19214 19215 19216 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 19217if test "x$ac_cv_type_ptrdiff_t" = x""yes; then : 19218 19219else 19220 19221$as_echo "#define ptrdiff_t long" >>confdefs.h 19222 19223 19224fi 19225 19226 19227 19228 19229 19230 19231 19232 fi 19233 19234 19235 for ac_func in vasprintf 19236do : 19237 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" 19238if test "x$ac_cv_func_vasprintf" = x""yes; then : 19239 cat >>confdefs.h <<_ACEOF 19240#define HAVE_VASPRINTF 1 19241_ACEOF 19242 19243fi 19244done 19245 19246 if test $ac_cv_func_vasprintf = no; then 19247 19248 19249 19250 19251 19252 19253 19254 19255 19256 gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext" 19257 19258 19259 19260 19261 19262 19263 19264 19265 19266 gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext" 19267 19268 19269 if test $ac_cv_func_vasprintf = yes; then 19270 REPLACE_VASPRINTF=1 19271 else 19272 HAVE_VASPRINTF=0 19273 fi 19274 19275 19276 19277 19278 19279 19280 19281 19282 fi 19283 19284 19285 19286 19287 19288 19289 GNULIB_VASPRINTF=1 19290 19291 19292 19293 19294 19295$as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h 19296 19297 19298 19299 19300 19301 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format" 19302 19303 19304 19305 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format" 19306 19307 19308# Check whether --with-packager was given. 19309if test "${with_packager+set}" = set; then : 19310 withval=$with_packager; case $withval in 19311 yes|no) ;; 19312 *) 19313cat >>confdefs.h <<_ACEOF 19314#define PACKAGE_PACKAGER "$withval" 19315_ACEOF 19316 ;; 19317 esac 19318 19319fi 19320 19321 19322 19323# Check whether --with-packager-version was given. 19324if test "${with_packager_version+set}" = set; then : 19325 withval=$with_packager_version; case $withval in 19326 yes|no) ;; 19327 *) 19328cat >>confdefs.h <<_ACEOF 19329#define PACKAGE_PACKAGER_VERSION "$withval" 19330_ACEOF 19331 ;; 19332 esac 19333 19334fi 19335 19336 19337 19338# Check whether --with-packager-bug-reports was given. 19339if test "${with_packager_bug_reports+set}" = set; then : 19340 withval=$with_packager_bug_reports; case $withval in 19341 yes|no) ;; 19342 *) 19343cat >>confdefs.h <<_ACEOF 19344#define PACKAGE_PACKAGER_BUG_REPORTS "$withval" 19345_ACEOF 19346 ;; 19347 esac 19348 19349fi 19350 19351 19352 if test "X$with_packager" = "X" && \ 19353 test "X$with_packager_version$with_packager_bug_reports" != "X" 19354 then 19355 as_fn_error $? "The --with-packager-{bug-reports,version} options require --with-packager" "$LINENO" 5 19356 fi 19357 19358 19359 19360 19361 19362 19363 19364 19365 19366 19367 : 19368 19369 19370 19371 19372 19373 19374 19375 19376 if test $gl_cv_have_include_next = yes; then 19377 gl_cv_next_wchar_h='<'wchar.h'>' 19378 else 19379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5 19380$as_echo_n "checking absolute name of <wchar.h>... " >&6; } 19381if test "${gl_cv_next_wchar_h+set}" = set; then : 19382 $as_echo_n "(cached) " >&6 19383else 19384 19385 if test $ac_cv_header_wchar_h = yes; then 19386 19387 19388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19389/* end confdefs.h. */ 19390#include <wchar.h> 19391 19392_ACEOF 19393 case "$host_os" in 19394 aix*) gl_absname_cpp="$ac_cpp -C" ;; 19395 *) gl_absname_cpp="$ac_cpp" ;; 19396 esac 19397 19398 case "$host_os" in 19399 mingw*) 19400 gl_dirsep_regex='[/\\]' 19401 ;; 19402 *) 19403 gl_dirsep_regex='\/' 19404 ;; 19405 esac 19406 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 19407 19408 gl_header_literal_regex=`echo 'wchar.h' \ 19409 | sed -e "$gl_make_literal_regex_sed"` 19410 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 19411 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 19412 s|^/[^/]|//&| 19413 p 19414 q 19415 }' 19416 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 19417 sed -n "$gl_absolute_header_sed"`'"' 19418 else 19419 gl_cv_next_wchar_h='<'wchar.h'>' 19420 fi 19421 19422 19423fi 19424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5 19425$as_echo "$gl_cv_next_wchar_h" >&6; } 19426 fi 19427 NEXT_WCHAR_H=$gl_cv_next_wchar_h 19428 19429 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 19430 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 19431 gl_next_as_first_directive='<'wchar.h'>' 19432 else 19433 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 19434 gl_next_as_first_directive=$gl_cv_next_wchar_h 19435 fi 19436 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive 19437 19438 19439 19440 19441 if test $ac_cv_header_wchar_h = yes; then 19442 HAVE_WCHAR_H=1 19443 else 19444 HAVE_WCHAR_H=0 19445 fi 19446 19447 19448 19449 19450 19451 if test $gt_cv_c_wint_t = yes; then 19452 HAVE_WINT_T=1 19453 else 19454 HAVE_WINT_T=0 19455 fi 19456 19457 19458 19459 for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth ; do 19460 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 19461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 19462$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 19463if eval "test \"\${$as_gl_Symbol+set}\"" = set; then : 19464 $as_echo_n "(cached) " >&6 19465else 19466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19467/* end confdefs.h. */ 19468 19469/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 19470 <wchar.h>. 19471 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 19472 included before <wchar.h>. */ 19473#if !(defined __GLIBC__ && !defined __UCLIBC__) 19474# include <stddef.h> 19475# include <stdio.h> 19476# include <time.h> 19477#endif 19478#include <wchar.h> 19479 19480int 19481main () 19482{ 19483#undef $gl_func 19484 (void) $gl_func; 19485 ; 19486 return 0; 19487} 19488_ACEOF 19489if ac_fn_c_try_compile "$LINENO"; then : 19490 eval "$as_gl_Symbol=yes" 19491else 19492 eval "$as_gl_Symbol=no" 19493fi 19494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19495fi 19496eval ac_res=\$$as_gl_Symbol 19497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19498$as_echo "$ac_res" >&6; } 19499 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 19500 cat >>confdefs.h <<_ACEOF 19501#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 19502_ACEOF 19503 19504 eval ac_cv_have_decl_$gl_func=yes 19505fi 19506 done 19507 19508 19509 19510 19511 19512 19513 19514 19515 19516 19517 19518 : 19519 19520 19521 19522 19523 19524 19525 : 19526 19527 19528 19529 19530 19531 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then 19532 19533 19534 19535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5 19536$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; } 19537if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then : 19538 $as_echo_n "(cached) " >&6 19539else 19540 19541 case "$host_os" in 19542 # Guess no on AIX and OSF/1. 19543 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;; 19544 # Guess yes otherwise. 19545 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;; 19546 esac 19547 if test $LOCALE_JA != none; then 19548 if test "$cross_compiling" = yes; then : 19549 : 19550else 19551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19552/* end confdefs.h. */ 19553 19554#include <locale.h> 19555#include <string.h> 19556/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 19557 <wchar.h>. 19558 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 19559 included before <wchar.h>. */ 19560#include <stddef.h> 19561#include <stdio.h> 19562#include <time.h> 19563#include <wchar.h> 19564int main () 19565{ 19566 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) 19567 { 19568 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ 19569 mbstate_t state; 19570 wchar_t wc; 19571 19572 memset (&state, '\0', sizeof (mbstate_t)); 19573 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 19574 if (mbsinit (&state)) 19575 return 1; 19576 } 19577 return 0; 19578} 19579_ACEOF 19580if ac_fn_c_try_run "$LINENO"; then : 19581 gl_cv_func_mbrtowc_incomplete_state=yes 19582else 19583 gl_cv_func_mbrtowc_incomplete_state=no 19584fi 19585rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19586 conftest.$ac_objext conftest.beam conftest.$ac_ext 19587fi 19588 19589 fi 19590 19591fi 19592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5 19593$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; } 19594 19595 19596 19597 19598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5 19599$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; } 19600if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then : 19601 $as_echo_n "(cached) " >&6 19602else 19603 19604 case "$host_os" in 19605 # Guess no on Solaris 8. 19606 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;; 19607 # Guess yes otherwise. 19608 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;; 19609 esac 19610 if test $LOCALE_ZH_CN != none; then 19611 if test "$cross_compiling" = yes; then : 19612 : 19613else 19614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19615/* end confdefs.h. */ 19616 19617#include <locale.h> 19618#include <stdlib.h> 19619#include <string.h> 19620/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 19621 <wchar.h>. 19622 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 19623 included before <wchar.h>. */ 19624#include <stddef.h> 19625#include <stdio.h> 19626#include <time.h> 19627#include <wchar.h> 19628int main () 19629{ 19630 /* This fails on Solaris 8: 19631 mbrtowc returns 2, and sets wc to 0x00F0. 19632 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */ 19633 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) 19634 { 19635 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */ 19636 mbstate_t state; 19637 wchar_t wc; 19638 19639 memset (&state, '\0', sizeof (mbstate_t)); 19640 if (mbrtowc (&wc, input + 3, 6, &state) != 4 19641 && mbtowc (&wc, input + 3, 6) == 4) 19642 return 1; 19643 } 19644 return 0; 19645} 19646_ACEOF 19647if ac_fn_c_try_run "$LINENO"; then : 19648 gl_cv_func_mbrtowc_sanitycheck=yes 19649else 19650 gl_cv_func_mbrtowc_sanitycheck=no 19651fi 19652rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19653 conftest.$ac_objext conftest.beam conftest.$ac_ext 19654fi 19655 19656 fi 19657 19658fi 19659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5 19660$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; } 19661 19662 REPLACE_MBSTATE_T=0 19663 case "$gl_cv_func_mbrtowc_incomplete_state" in 19664 *yes) ;; 19665 *) REPLACE_MBSTATE_T=1 ;; 19666 esac 19667 case "$gl_cv_func_mbrtowc_sanitycheck" in 19668 *yes) ;; 19669 *) REPLACE_MBSTATE_T=1 ;; 19670 esac 19671 else 19672 REPLACE_MBSTATE_T=1 19673 fi 19674 19675 19676 19677 : 19678 19679 19680 19681 19682 19683 if test $ac_cv_func_wcrtomb = no; then 19684 HAVE_WCRTOMB=0 19685 ac_fn_c_check_decl "$LINENO" "wcrtomb" "ac_cv_have_decl_wcrtomb" " 19686/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 19687 <wchar.h>. 19688 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 19689 included before <wchar.h>. */ 19690#include <stddef.h> 19691#include <stdio.h> 19692#include <time.h> 19693#include <wchar.h> 19694 19695" 19696if test "x$ac_cv_have_decl_wcrtomb" = x""yes; then : 19697 ac_have_decl=1 19698else 19699 ac_have_decl=0 19700fi 19701 19702cat >>confdefs.h <<_ACEOF 19703#define HAVE_DECL_WCRTOMB $ac_have_decl 19704_ACEOF 19705 19706 if test $ac_cv_have_decl_wcrtomb = yes; then 19707 REPLACE_WCRTOMB=1 19708 fi 19709 else 19710 if test $REPLACE_MBSTATE_T = 1; then 19711 REPLACE_WCRTOMB=1 19712 else 19713 19714 19715 19716 19717 19718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb return value is correct" >&5 19719$as_echo_n "checking whether wcrtomb return value is correct... " >&6; } 19720if test "${gl_cv_func_wcrtomb_retval+set}" = set; then : 19721 $as_echo_n "(cached) " >&6 19722else 19723 19724 case "$host_os" in 19725 # Guess no on AIX 4, OSF/1 and Solaris. 19726 aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;; 19727 # Guess yes otherwise. 19728 *) gl_cv_func_wcrtomb_retval="guessing yes" ;; 19729 esac 19730 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then 19731 if test "$cross_compiling" = yes; then : 19732 : 19733else 19734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19735/* end confdefs.h. */ 19736 19737#include <locale.h> 19738#include <string.h> 19739/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 19740 <wchar.h>. 19741 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 19742 included before <wchar.h>. */ 19743#include <stddef.h> 19744#include <stdio.h> 19745#include <time.h> 19746#include <wchar.h> 19747int main () 19748{ 19749 int result = 0; 19750 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL) 19751 { 19752 if (wcrtomb (NULL, 0, NULL) != 1) 19753 result |= 1; 19754 } 19755 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 19756 { 19757 if (wcrtomb (NULL, 0, NULL) != 1) 19758 result |= 2; 19759 } 19760 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) 19761 { 19762 if (wcrtomb (NULL, 0, NULL) != 1) 19763 result |= 4; 19764 } 19765 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) 19766 { 19767 if (wcrtomb (NULL, 0, NULL) != 1) 19768 result |= 8; 19769 } 19770 return result; 19771} 19772_ACEOF 19773if ac_fn_c_try_run "$LINENO"; then : 19774 gl_cv_func_wcrtomb_retval=yes 19775else 19776 gl_cv_func_wcrtomb_retval=no 19777fi 19778rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19779 conftest.$ac_objext conftest.beam conftest.$ac_ext 19780fi 19781 19782 fi 19783 19784fi 19785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_retval" >&5 19786$as_echo "$gl_cv_func_wcrtomb_retval" >&6; } 19787 case "$gl_cv_func_wcrtomb_retval" in 19788 *yes) ;; 19789 *) REPLACE_WCRTOMB=1 ;; 19790 esac 19791 fi 19792 fi 19793 19794if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then 19795 19796 19797 19798 19799 19800 19801 19802 19803 gl_LIBOBJS="$gl_LIBOBJS wcrtomb.$ac_objext" 19804 19805 19806 : 19807 19808fi 19809 19810 19811 19812 19813 19814 GNULIB_WCRTOMB=1 19815 19816 19817 19818 19819 19820$as_echo "#define GNULIB_TEST_WCRTOMB 1" >>confdefs.h 19821 19822 19823 19824 19825 19826 19827 19828 19829 : 19830 19831 19832 19833 19834 19835 if test $ac_cv_func_iswcntrl = yes; then 19836 HAVE_ISWCNTRL=1 19837 else 19838 HAVE_ISWCNTRL=0 19839 fi 19840 19841 19842 19843 19844 19845 if test $gt_cv_c_wint_t = yes; then 19846 HAVE_WINT_T=1 19847 else 19848 HAVE_WINT_T=0 19849 fi 19850 19851 19852 19853 19854 19855 19856 19857 19858 : 19859 19860 19861 19862 19863 19864 19865 19866 19867 if test $gl_cv_have_include_next = yes; then 19868 gl_cv_next_wctype_h='<'wctype.h'>' 19869 else 19870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5 19871$as_echo_n "checking absolute name of <wctype.h>... " >&6; } 19872if test "${gl_cv_next_wctype_h+set}" = set; then : 19873 $as_echo_n "(cached) " >&6 19874else 19875 19876 if test $ac_cv_header_wctype_h = yes; then 19877 19878 19879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19880/* end confdefs.h. */ 19881#include <wctype.h> 19882 19883_ACEOF 19884 case "$host_os" in 19885 aix*) gl_absname_cpp="$ac_cpp -C" ;; 19886 *) gl_absname_cpp="$ac_cpp" ;; 19887 esac 19888 19889 case "$host_os" in 19890 mingw*) 19891 gl_dirsep_regex='[/\\]' 19892 ;; 19893 *) 19894 gl_dirsep_regex='\/' 19895 ;; 19896 esac 19897 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 19898 19899 gl_header_literal_regex=`echo 'wctype.h' \ 19900 | sed -e "$gl_make_literal_regex_sed"` 19901 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 19902 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 19903 s|^/[^/]|//&| 19904 p 19905 q 19906 }' 19907 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 19908 sed -n "$gl_absolute_header_sed"`'"' 19909 else 19910 gl_cv_next_wctype_h='<'wctype.h'>' 19911 fi 19912 19913 19914fi 19915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5 19916$as_echo "$gl_cv_next_wctype_h" >&6; } 19917 fi 19918 NEXT_WCTYPE_H=$gl_cv_next_wctype_h 19919 19920 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 19921 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 19922 gl_next_as_first_directive='<'wctype.h'>' 19923 else 19924 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 19925 gl_next_as_first_directive=$gl_cv_next_wctype_h 19926 fi 19927 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive 19928 19929 19930 19931 19932 if test $ac_cv_header_wctype_h = yes; then 19933 if test $ac_cv_func_iswcntrl = yes; then 19934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5 19935$as_echo_n "checking whether iswcntrl works... " >&6; } 19936if test "${gl_cv_func_iswcntrl_works+set}" = set; then : 19937 $as_echo_n "(cached) " >&6 19938else 19939 19940 if test "$cross_compiling" = yes; then : 19941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19942/* end confdefs.h. */ 19943#include <stdlib.h> 19944 #if __GNU_LIBRARY__ == 1 19945 Linux libc5 i18n is broken. 19946 #endif 19947int 19948main () 19949{ 19950 19951 ; 19952 return 0; 19953} 19954_ACEOF 19955if ac_fn_c_try_compile "$LINENO"; then : 19956 gl_cv_func_iswcntrl_works=yes 19957else 19958 gl_cv_func_iswcntrl_works=no 19959fi 19960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19961 19962else 19963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19964/* end confdefs.h. */ 19965 19966 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be 19967 included before <wchar.h>. 19968 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> 19969 must be included before <wchar.h>. */ 19970 #include <stddef.h> 19971 #include <stdio.h> 19972 #include <time.h> 19973 #include <wchar.h> 19974 #include <wctype.h> 19975 int main () { return iswprint ('x') == 0; } 19976 19977_ACEOF 19978if ac_fn_c_try_run "$LINENO"; then : 19979 gl_cv_func_iswcntrl_works=yes 19980else 19981 gl_cv_func_iswcntrl_works=no 19982fi 19983rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19984 conftest.$ac_objext conftest.beam conftest.$ac_ext 19985fi 19986 19987 19988fi 19989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5 19990$as_echo "$gl_cv_func_iswcntrl_works" >&6; } 19991 fi 19992 HAVE_WCTYPE_H=1 19993 else 19994 HAVE_WCTYPE_H=0 19995 fi 19996 19997 19998 if test "$gl_cv_func_iswcntrl_works" = no; then 19999 REPLACE_ISWCNTRL=1 20000 else 20001 REPLACE_ISWCNTRL=0 20002 fi 20003 20004 20005 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then 20006 : 20007 fi 20008 20009 if test $REPLACE_ISWCNTRL = 1; then 20010 REPLACE_TOWLOWER=1 20011 else 20012 for ac_func in towlower 20013do : 20014 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower" 20015if test "x$ac_cv_func_towlower" = x""yes; then : 20016 cat >>confdefs.h <<_ACEOF 20017#define HAVE_TOWLOWER 1 20018_ACEOF 20019 20020fi 20021done 20022 20023 if test $ac_cv_func_towlower = yes; then 20024 REPLACE_TOWLOWER=0 20025 else 20026 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be 20027 included before <wchar.h>. 20028 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> 20029 must be included before <wchar.h>. */ 20030 #include <stddef.h> 20031 #include <stdio.h> 20032 #include <time.h> 20033 #include <wchar.h> 20034 #if HAVE_WCTYPE_H 20035 # include <wctype.h> 20036 #endif 20037 20038" 20039if test "x$ac_cv_have_decl_towlower" = x""yes; then : 20040 ac_have_decl=1 20041else 20042 ac_have_decl=0 20043fi 20044 20045cat >>confdefs.h <<_ACEOF 20046#define HAVE_DECL_TOWLOWER $ac_have_decl 20047_ACEOF 20048 20049 if test $ac_cv_have_decl_towlower = yes; then 20050 REPLACE_TOWLOWER=1 20051 else 20052 REPLACE_TOWLOWER=0 20053 fi 20054 fi 20055 fi 20056 20057 20058 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then 20059 : 20060 fi 20061 20062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5 20063$as_echo_n "checking for wctype_t... " >&6; } 20064if test "${gl_cv_type_wctype_t+set}" = set; then : 20065 $as_echo_n "(cached) " >&6 20066else 20067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20068/* end confdefs.h. */ 20069/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be 20070 included before <wchar.h>. 20071 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> 20072 must be included before <wchar.h>. */ 20073 #include <stddef.h> 20074 #include <stdio.h> 20075 #include <time.h> 20076 #include <wchar.h> 20077 #if HAVE_WCTYPE_H 20078 # include <wctype.h> 20079 #endif 20080 wctype_t a; 20081 20082int 20083main () 20084{ 20085 20086 ; 20087 return 0; 20088} 20089_ACEOF 20090if ac_fn_c_try_compile "$LINENO"; then : 20091 gl_cv_type_wctype_t=yes 20092else 20093 gl_cv_type_wctype_t=no 20094fi 20095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20096 20097fi 20098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5 20099$as_echo "$gl_cv_type_wctype_t" >&6; } 20100 if test $gl_cv_type_wctype_t = no; then 20101 HAVE_WCTYPE_T=0 20102 fi 20103 20104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5 20105$as_echo_n "checking for wctrans_t... " >&6; } 20106if test "${gl_cv_type_wctrans_t+set}" = set; then : 20107 $as_echo_n "(cached) " >&6 20108else 20109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20110/* end confdefs.h. */ 20111/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be 20112 included before <wchar.h>. 20113 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> 20114 must be included before <wchar.h>. */ 20115 #include <stddef.h> 20116 #include <stdio.h> 20117 #include <time.h> 20118 #include <wchar.h> 20119 #include <wctype.h> 20120 wctrans_t a; 20121 20122int 20123main () 20124{ 20125 20126 ; 20127 return 0; 20128} 20129_ACEOF 20130if ac_fn_c_try_compile "$LINENO"; then : 20131 gl_cv_type_wctrans_t=yes 20132else 20133 gl_cv_type_wctrans_t=no 20134fi 20135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20136 20137fi 20138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5 20139$as_echo "$gl_cv_type_wctrans_t" >&6; } 20140 if test $gl_cv_type_wctrans_t = no; then 20141 HAVE_WCTRANS_T=0 20142 fi 20143 20144 20145 for gl_func in wctype iswctype wctrans towctrans ; do 20146 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 20147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 20148$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 20149if eval "test \"\${$as_gl_Symbol+set}\"" = set; then : 20150 $as_echo_n "(cached) " >&6 20151else 20152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20153/* end confdefs.h. */ 20154 20155/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 20156 <wchar.h>. 20157 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 20158 included before <wchar.h>. */ 20159#if !(defined __GLIBC__ && !defined __UCLIBC__) 20160# include <stddef.h> 20161# include <stdio.h> 20162# include <time.h> 20163# include <wchar.h> 20164#endif 20165#include <wctype.h> 20166 20167int 20168main () 20169{ 20170#undef $gl_func 20171 (void) $gl_func; 20172 ; 20173 return 0; 20174} 20175_ACEOF 20176if ac_fn_c_try_compile "$LINENO"; then : 20177 eval "$as_gl_Symbol=yes" 20178else 20179 eval "$as_gl_Symbol=no" 20180fi 20181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20182fi 20183eval ac_res=\$$as_gl_Symbol 20184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 20185$as_echo "$ac_res" >&6; } 20186 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 20187 cat >>confdefs.h <<_ACEOF 20188#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 20189_ACEOF 20190 20191 eval ac_cv_have_decl_$gl_func=yes 20192fi 20193 done 20194 20195 20196 20197 20198 20199 : 20200 20201 20202 : 20203 20204 20205 20206 20207 20208 for ac_header in stdint.h 20209do : 20210 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 20211if test "x$ac_cv_header_stdint_h" = x""yes; then : 20212 cat >>confdefs.h <<_ACEOF 20213#define HAVE_STDINT_H 1 20214_ACEOF 20215 20216fi 20217 20218done 20219 20220 20221 20222 20223 : 20224 20225 20226 20227 20228 20229 20230 20231 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format" 20232 20233 20234 : 20235 20236 # End of code from modules 20237 20238 20239 20240 20241 20242 20243 20244 20245 20246 gltests_libdeps= 20247 gltests_ltlibdeps= 20248 20249 20250 20251 20252 20253 20254 20255 20256 20257 gl_source_base='tests' 20258 gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS 20259 20260 gl_module_indicator_condition=$gltests_WITNESS 20261 20262 20263 20264 20265 20266 20267 20268 20269 20270 LIBGNU_LIBDEPS="$gl_libdeps" 20271 20272 LIBGNU_LTLIBDEPS="$gl_ltlibdeps" 20273 20274 20275 20276# Gettext 20277 20278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 20279$as_echo_n "checking whether NLS is requested... " >&6; } 20280 # Check whether --enable-nls was given. 20281if test "${enable_nls+set}" = set; then : 20282 enableval=$enable_nls; USE_NLS=$enableval 20283else 20284 USE_NLS=yes 20285fi 20286 20287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 20288$as_echo "$USE_NLS" >&6; } 20289 20290 20291 20292 20293 GETTEXT_MACRO_VERSION=0.18 20294 20295 20296 20297 20298# Prepare PATH_SEPARATOR. 20299# The user is always right. 20300if test "${PATH_SEPARATOR+set}" != set; then 20301 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 20302 # contains only /bin. Note that ksh looks also at the FPATH variable, 20303 # so we have to set that as well for the test. 20304 PATH_SEPARATOR=: 20305 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 20306 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 20307 || PATH_SEPARATOR=';' 20308 } 20309fi 20310 20311# Find out how to test for executable files. Don't use a zero-byte file, 20312# as systems may use methods other than mode bits to determine executability. 20313cat >conf$$.file <<_ASEOF 20314#! /bin/sh 20315exit 0 20316_ASEOF 20317chmod +x conf$$.file 20318if test -x conf$$.file >/dev/null 2>&1; then 20319 ac_executable_p="test -x" 20320else 20321 ac_executable_p="test -f" 20322fi 20323rm -f conf$$.file 20324 20325# Extract the first word of "msgfmt", so it can be a program name with args. 20326set dummy msgfmt; ac_word=$2 20327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20328$as_echo_n "checking for $ac_word... " >&6; } 20329if test "${ac_cv_path_MSGFMT+set}" = set; then : 20330 $as_echo_n "(cached) " >&6 20331else 20332 case "$MSGFMT" in 20333 [\\/]* | ?:[\\/]*) 20334 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 20335 ;; 20336 *) 20337 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 20338 for ac_dir in $PATH; do 20339 IFS="$ac_save_IFS" 20340 test -z "$ac_dir" && ac_dir=. 20341 for ac_exec_ext in '' $ac_executable_extensions; do 20342 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 20343 echo "$as_me: trying $ac_dir/$ac_word..." >&5 20344 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && 20345 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 20346 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 20347 break 2 20348 fi 20349 fi 20350 done 20351 done 20352 IFS="$ac_save_IFS" 20353 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 20354 ;; 20355esac 20356fi 20357MSGFMT="$ac_cv_path_MSGFMT" 20358if test "$MSGFMT" != ":"; then 20359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 20360$as_echo "$MSGFMT" >&6; } 20361else 20362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20363$as_echo "no" >&6; } 20364fi 20365 20366 # Extract the first word of "gmsgfmt", so it can be a program name with args. 20367set dummy gmsgfmt; ac_word=$2 20368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20369$as_echo_n "checking for $ac_word... " >&6; } 20370if test "${ac_cv_path_GMSGFMT+set}" = set; then : 20371 $as_echo_n "(cached) " >&6 20372else 20373 case $GMSGFMT in 20374 [\\/]* | ?:[\\/]*) 20375 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 20376 ;; 20377 *) 20378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20379for as_dir in $PATH 20380do 20381 IFS=$as_save_IFS 20382 test -z "$as_dir" && as_dir=. 20383 for ac_exec_ext in '' $ac_executable_extensions; do 20384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20385 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 20386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20387 break 2 20388 fi 20389done 20390 done 20391IFS=$as_save_IFS 20392 20393 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 20394 ;; 20395esac 20396fi 20397GMSGFMT=$ac_cv_path_GMSGFMT 20398if test -n "$GMSGFMT"; then 20399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 20400$as_echo "$GMSGFMT" >&6; } 20401else 20402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20403$as_echo "no" >&6; } 20404fi 20405 20406 20407 20408 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 20409 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; 20410 *) MSGFMT_015=$MSGFMT ;; 20411 esac 20412 20413 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 20414 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; 20415 *) GMSGFMT_015=$GMSGFMT ;; 20416 esac 20417 20418 20419 20420# Prepare PATH_SEPARATOR. 20421# The user is always right. 20422if test "${PATH_SEPARATOR+set}" != set; then 20423 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 20424 # contains only /bin. Note that ksh looks also at the FPATH variable, 20425 # so we have to set that as well for the test. 20426 PATH_SEPARATOR=: 20427 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 20428 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 20429 || PATH_SEPARATOR=';' 20430 } 20431fi 20432 20433# Find out how to test for executable files. Don't use a zero-byte file, 20434# as systems may use methods other than mode bits to determine executability. 20435cat >conf$$.file <<_ASEOF 20436#! /bin/sh 20437exit 0 20438_ASEOF 20439chmod +x conf$$.file 20440if test -x conf$$.file >/dev/null 2>&1; then 20441 ac_executable_p="test -x" 20442else 20443 ac_executable_p="test -f" 20444fi 20445rm -f conf$$.file 20446 20447# Extract the first word of "xgettext", so it can be a program name with args. 20448set dummy xgettext; ac_word=$2 20449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20450$as_echo_n "checking for $ac_word... " >&6; } 20451if test "${ac_cv_path_XGETTEXT+set}" = set; then : 20452 $as_echo_n "(cached) " >&6 20453else 20454 case "$XGETTEXT" in 20455 [\\/]* | ?:[\\/]*) 20456 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 20457 ;; 20458 *) 20459 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 20460 for ac_dir in $PATH; do 20461 IFS="$ac_save_IFS" 20462 test -z "$ac_dir" && ac_dir=. 20463 for ac_exec_ext in '' $ac_executable_extensions; do 20464 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 20465 echo "$as_me: trying $ac_dir/$ac_word..." >&5 20466 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && 20467 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 20468 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 20469 break 2 20470 fi 20471 fi 20472 done 20473 done 20474 IFS="$ac_save_IFS" 20475 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 20476 ;; 20477esac 20478fi 20479XGETTEXT="$ac_cv_path_XGETTEXT" 20480if test "$XGETTEXT" != ":"; then 20481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 20482$as_echo "$XGETTEXT" >&6; } 20483else 20484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20485$as_echo "no" >&6; } 20486fi 20487 20488 rm -f messages.po 20489 20490 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 20491 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; 20492 *) XGETTEXT_015=$XGETTEXT ;; 20493 esac 20494 20495 20496 20497# Prepare PATH_SEPARATOR. 20498# The user is always right. 20499if test "${PATH_SEPARATOR+set}" != set; then 20500 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 20501 # contains only /bin. Note that ksh looks also at the FPATH variable, 20502 # so we have to set that as well for the test. 20503 PATH_SEPARATOR=: 20504 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 20505 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 20506 || PATH_SEPARATOR=';' 20507 } 20508fi 20509 20510# Find out how to test for executable files. Don't use a zero-byte file, 20511# as systems may use methods other than mode bits to determine executability. 20512cat >conf$$.file <<_ASEOF 20513#! /bin/sh 20514exit 0 20515_ASEOF 20516chmod +x conf$$.file 20517if test -x conf$$.file >/dev/null 2>&1; then 20518 ac_executable_p="test -x" 20519else 20520 ac_executable_p="test -f" 20521fi 20522rm -f conf$$.file 20523 20524# Extract the first word of "msgmerge", so it can be a program name with args. 20525set dummy msgmerge; ac_word=$2 20526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20527$as_echo_n "checking for $ac_word... " >&6; } 20528if test "${ac_cv_path_MSGMERGE+set}" = set; then : 20529 $as_echo_n "(cached) " >&6 20530else 20531 case "$MSGMERGE" in 20532 [\\/]* | ?:[\\/]*) 20533 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 20534 ;; 20535 *) 20536 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 20537 for ac_dir in $PATH; do 20538 IFS="$ac_save_IFS" 20539 test -z "$ac_dir" && ac_dir=. 20540 for ac_exec_ext in '' $ac_executable_extensions; do 20541 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 20542 echo "$as_me: trying $ac_dir/$ac_word..." >&5 20543 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then 20544 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 20545 break 2 20546 fi 20547 fi 20548 done 20549 done 20550 IFS="$ac_save_IFS" 20551 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 20552 ;; 20553esac 20554fi 20555MSGMERGE="$ac_cv_path_MSGMERGE" 20556if test "$MSGMERGE" != ":"; then 20557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 20558$as_echo "$MSGMERGE" >&6; } 20559else 20560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20561$as_echo "no" >&6; } 20562fi 20563 20564 20565 test -n "$localedir" || localedir='${datadir}/locale' 20566 20567 20568 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= 20569 20570 20571 ac_config_commands="$ac_config_commands po-directories" 20572 20573 20574 20575 if test "X$prefix" = "XNONE"; then 20576 acl_final_prefix="$ac_default_prefix" 20577 else 20578 acl_final_prefix="$prefix" 20579 fi 20580 if test "X$exec_prefix" = "XNONE"; then 20581 acl_final_exec_prefix='${prefix}' 20582 else 20583 acl_final_exec_prefix="$exec_prefix" 20584 fi 20585 acl_save_prefix="$prefix" 20586 prefix="$acl_final_prefix" 20587 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 20588 prefix="$acl_save_prefix" 20589 20590 20591# Check whether --with-gnu-ld was given. 20592if test "${with_gnu_ld+set}" = set; then : 20593 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 20594else 20595 with_gnu_ld=no 20596fi 20597 20598# Prepare PATH_SEPARATOR. 20599# The user is always right. 20600if test "${PATH_SEPARATOR+set}" != set; then 20601 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 20602 # contains only /bin. Note that ksh looks also at the FPATH variable, 20603 # so we have to set that as well for the test. 20604 PATH_SEPARATOR=: 20605 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 20606 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 20607 || PATH_SEPARATOR=';' 20608 } 20609fi 20610ac_prog=ld 20611if test "$GCC" = yes; then 20612 # Check if gcc -print-prog-name=ld gives a path. 20613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 20614$as_echo_n "checking for ld used by GCC... " >&6; } 20615 case $host in 20616 *-*-mingw*) 20617 # gcc leaves a trailing carriage return which upsets mingw 20618 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 20619 *) 20620 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 20621 esac 20622 case $ac_prog in 20623 # Accept absolute paths. 20624 [\\/]* | [A-Za-z]:[\\/]*) 20625 re_direlt='/[^/][^/]*/\.\./' 20626 # Canonicalize the path of ld 20627 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 20628 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 20629 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 20630 done 20631 test -z "$LD" && LD="$ac_prog" 20632 ;; 20633 "") 20634 # If it fails, then pretend we aren't using GCC. 20635 ac_prog=ld 20636 ;; 20637 *) 20638 # If it is relative, then search for the first ld in PATH. 20639 with_gnu_ld=unknown 20640 ;; 20641 esac 20642elif test "$with_gnu_ld" = yes; then 20643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 20644$as_echo_n "checking for GNU ld... " >&6; } 20645else 20646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 20647$as_echo_n "checking for non-GNU ld... " >&6; } 20648fi 20649if test "${acl_cv_path_LD+set}" = set; then : 20650 $as_echo_n "(cached) " >&6 20651else 20652 if test -z "$LD"; then 20653 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 20654 for ac_dir in $PATH; do 20655 test -z "$ac_dir" && ac_dir=. 20656 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 20657 acl_cv_path_LD="$ac_dir/$ac_prog" 20658 # Check to see if the program is GNU ld. I'd rather use --version, 20659 # but apparently some GNU ld's only accept -v. 20660 # Break only if it was the GNU/non-GNU ld that we prefer. 20661 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 20662 *GNU* | *'with BFD'*) 20663 test "$with_gnu_ld" != no && break ;; 20664 *) 20665 test "$with_gnu_ld" != yes && break ;; 20666 esac 20667 fi 20668 done 20669 IFS="$ac_save_ifs" 20670else 20671 acl_cv_path_LD="$LD" # Let the user override the test with a path. 20672fi 20673fi 20674 20675LD="$acl_cv_path_LD" 20676if test -n "$LD"; then 20677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 20678$as_echo "$LD" >&6; } 20679else 20680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20681$as_echo "no" >&6; } 20682fi 20683test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 20684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 20685$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 20686if test "${acl_cv_prog_gnu_ld+set}" = set; then : 20687 $as_echo_n "(cached) " >&6 20688else 20689 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 20690case `$LD -v 2>&1 </dev/null` in 20691*GNU* | *'with BFD'*) 20692 acl_cv_prog_gnu_ld=yes ;; 20693*) 20694 acl_cv_prog_gnu_ld=no ;; 20695esac 20696fi 20697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 20698$as_echo "$acl_cv_prog_gnu_ld" >&6; } 20699with_gnu_ld=$acl_cv_prog_gnu_ld 20700 20701 20702 20703 20704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 20705$as_echo_n "checking for shared library run path origin... " >&6; } 20706if test "${acl_cv_rpath+set}" = set; then : 20707 $as_echo_n "(cached) " >&6 20708else 20709 20710 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 20711 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 20712 . ./conftest.sh 20713 rm -f ./conftest.sh 20714 acl_cv_rpath=done 20715 20716fi 20717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 20718$as_echo "$acl_cv_rpath" >&6; } 20719 wl="$acl_cv_wl" 20720 acl_libext="$acl_cv_libext" 20721 acl_shlibext="$acl_cv_shlibext" 20722 acl_libname_spec="$acl_cv_libname_spec" 20723 acl_library_names_spec="$acl_cv_library_names_spec" 20724 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 20725 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 20726 acl_hardcode_direct="$acl_cv_hardcode_direct" 20727 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 20728 # Check whether --enable-rpath was given. 20729if test "${enable_rpath+set}" = set; then : 20730 enableval=$enable_rpath; : 20731else 20732 enable_rpath=yes 20733fi 20734 20735 20736 20737 20738 acl_libdirstem=lib 20739 acl_libdirstem2= 20740 case "$host_os" in 20741 solaris*) 20742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 20743$as_echo_n "checking for 64-bit host... " >&6; } 20744if test "${gl_cv_solaris_64bit+set}" = set; then : 20745 $as_echo_n "(cached) " >&6 20746else 20747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20748/* end confdefs.h. */ 20749 20750#ifdef _LP64 20751sixtyfour bits 20752#endif 20753 20754_ACEOF 20755if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20756 $EGREP "sixtyfour bits" >/dev/null 2>&1; then : 20757 gl_cv_solaris_64bit=yes 20758else 20759 gl_cv_solaris_64bit=no 20760fi 20761rm -f conftest* 20762 20763 20764fi 20765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 20766$as_echo "$gl_cv_solaris_64bit" >&6; } 20767 if test $gl_cv_solaris_64bit = yes; then 20768 acl_libdirstem=lib/64 20769 case "$host_cpu" in 20770 sparc*) acl_libdirstem2=lib/sparcv9 ;; 20771 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; 20772 esac 20773 fi 20774 ;; 20775 *) 20776 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 20777 if test -n "$searchpath"; then 20778 acl_save_IFS="${IFS= }"; IFS=":" 20779 for searchdir in $searchpath; do 20780 if test -d "$searchdir"; then 20781 case "$searchdir" in 20782 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 20783 */../ | */.. ) 20784 # Better ignore directories of this form. They are misleading. 20785 ;; 20786 *) searchdir=`cd "$searchdir" && pwd` 20787 case "$searchdir" in 20788 */lib64 ) acl_libdirstem=lib64 ;; 20789 esac ;; 20790 esac 20791 fi 20792 done 20793 IFS="$acl_save_IFS" 20794 fi 20795 ;; 20796 esac 20797 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" 20798 20799 20800 20801 20802 20803 20804 20805 20806 20807 20808 20809 20810 use_additional=yes 20811 20812 acl_save_prefix="$prefix" 20813 prefix="$acl_final_prefix" 20814 acl_save_exec_prefix="$exec_prefix" 20815 exec_prefix="$acl_final_exec_prefix" 20816 20817 eval additional_includedir=\"$includedir\" 20818 eval additional_libdir=\"$libdir\" 20819 20820 exec_prefix="$acl_save_exec_prefix" 20821 prefix="$acl_save_prefix" 20822 20823 20824# Check whether --with-libiconv-prefix was given. 20825if test "${with_libiconv_prefix+set}" = set; then : 20826 withval=$with_libiconv_prefix; 20827 if test "X$withval" = "Xno"; then 20828 use_additional=no 20829 else 20830 if test "X$withval" = "X"; then 20831 20832 acl_save_prefix="$prefix" 20833 prefix="$acl_final_prefix" 20834 acl_save_exec_prefix="$exec_prefix" 20835 exec_prefix="$acl_final_exec_prefix" 20836 20837 eval additional_includedir=\"$includedir\" 20838 eval additional_libdir=\"$libdir\" 20839 20840 exec_prefix="$acl_save_exec_prefix" 20841 prefix="$acl_save_prefix" 20842 20843 else 20844 additional_includedir="$withval/include" 20845 additional_libdir="$withval/$acl_libdirstem" 20846 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 20847 && ! test -d "$withval/$acl_libdirstem"; then 20848 additional_libdir="$withval/$acl_libdirstem2" 20849 fi 20850 fi 20851 fi 20852 20853fi 20854 20855 LIBICONV= 20856 LTLIBICONV= 20857 INCICONV= 20858 LIBICONV_PREFIX= 20859 HAVE_LIBICONV= 20860 rpathdirs= 20861 ltrpathdirs= 20862 names_already_handled= 20863 names_next_round='iconv ' 20864 while test -n "$names_next_round"; do 20865 names_this_round="$names_next_round" 20866 names_next_round= 20867 for name in $names_this_round; do 20868 already_handled= 20869 for n in $names_already_handled; do 20870 if test "$n" = "$name"; then 20871 already_handled=yes 20872 break 20873 fi 20874 done 20875 if test -z "$already_handled"; then 20876 names_already_handled="$names_already_handled $name" 20877 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 20878 eval value=\"\$HAVE_LIB$uppername\" 20879 if test -n "$value"; then 20880 if test "$value" = yes; then 20881 eval value=\"\$LIB$uppername\" 20882 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 20883 eval value=\"\$LTLIB$uppername\" 20884 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 20885 else 20886 : 20887 fi 20888 else 20889 found_dir= 20890 found_la= 20891 found_so= 20892 found_a= 20893 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 20894 if test -n "$acl_shlibext"; then 20895 shrext=".$acl_shlibext" # typically: shrext=.so 20896 else 20897 shrext= 20898 fi 20899 if test $use_additional = yes; then 20900 dir="$additional_libdir" 20901 if test -n "$acl_shlibext"; then 20902 if test -f "$dir/$libname$shrext"; then 20903 found_dir="$dir" 20904 found_so="$dir/$libname$shrext" 20905 else 20906 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 20907 ver=`(cd "$dir" && \ 20908 for f in "$libname$shrext".*; do echo "$f"; done \ 20909 | sed -e "s,^$libname$shrext\\\\.,," \ 20910 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 20911 | sed 1q ) 2>/dev/null` 20912 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 20913 found_dir="$dir" 20914 found_so="$dir/$libname$shrext.$ver" 20915 fi 20916 else 20917 eval library_names=\"$acl_library_names_spec\" 20918 for f in $library_names; do 20919 if test -f "$dir/$f"; then 20920 found_dir="$dir" 20921 found_so="$dir/$f" 20922 break 20923 fi 20924 done 20925 fi 20926 fi 20927 fi 20928 if test "X$found_dir" = "X"; then 20929 if test -f "$dir/$libname.$acl_libext"; then 20930 found_dir="$dir" 20931 found_a="$dir/$libname.$acl_libext" 20932 fi 20933 fi 20934 if test "X$found_dir" != "X"; then 20935 if test -f "$dir/$libname.la"; then 20936 found_la="$dir/$libname.la" 20937 fi 20938 fi 20939 fi 20940 if test "X$found_dir" = "X"; then 20941 for x in $LDFLAGS $LTLIBICONV; do 20942 20943 acl_save_prefix="$prefix" 20944 prefix="$acl_final_prefix" 20945 acl_save_exec_prefix="$exec_prefix" 20946 exec_prefix="$acl_final_exec_prefix" 20947 eval x=\"$x\" 20948 exec_prefix="$acl_save_exec_prefix" 20949 prefix="$acl_save_prefix" 20950 20951 case "$x" in 20952 -L*) 20953 dir=`echo "X$x" | sed -e 's/^X-L//'` 20954 if test -n "$acl_shlibext"; then 20955 if test -f "$dir/$libname$shrext"; then 20956 found_dir="$dir" 20957 found_so="$dir/$libname$shrext" 20958 else 20959 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 20960 ver=`(cd "$dir" && \ 20961 for f in "$libname$shrext".*; do echo "$f"; done \ 20962 | sed -e "s,^$libname$shrext\\\\.,," \ 20963 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 20964 | sed 1q ) 2>/dev/null` 20965 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 20966 found_dir="$dir" 20967 found_so="$dir/$libname$shrext.$ver" 20968 fi 20969 else 20970 eval library_names=\"$acl_library_names_spec\" 20971 for f in $library_names; do 20972 if test -f "$dir/$f"; then 20973 found_dir="$dir" 20974 found_so="$dir/$f" 20975 break 20976 fi 20977 done 20978 fi 20979 fi 20980 fi 20981 if test "X$found_dir" = "X"; then 20982 if test -f "$dir/$libname.$acl_libext"; then 20983 found_dir="$dir" 20984 found_a="$dir/$libname.$acl_libext" 20985 fi 20986 fi 20987 if test "X$found_dir" != "X"; then 20988 if test -f "$dir/$libname.la"; then 20989 found_la="$dir/$libname.la" 20990 fi 20991 fi 20992 ;; 20993 esac 20994 if test "X$found_dir" != "X"; then 20995 break 20996 fi 20997 done 20998 fi 20999 if test "X$found_dir" != "X"; then 21000 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 21001 if test "X$found_so" != "X"; then 21002 if test "$enable_rpath" = no \ 21003 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 21004 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 21005 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 21006 else 21007 haveit= 21008 for x in $ltrpathdirs; do 21009 if test "X$x" = "X$found_dir"; then 21010 haveit=yes 21011 break 21012 fi 21013 done 21014 if test -z "$haveit"; then 21015 ltrpathdirs="$ltrpathdirs $found_dir" 21016 fi 21017 if test "$acl_hardcode_direct" = yes; then 21018 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 21019 else 21020 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 21021 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 21022 haveit= 21023 for x in $rpathdirs; do 21024 if test "X$x" = "X$found_dir"; then 21025 haveit=yes 21026 break 21027 fi 21028 done 21029 if test -z "$haveit"; then 21030 rpathdirs="$rpathdirs $found_dir" 21031 fi 21032 else 21033 haveit= 21034 for x in $LDFLAGS $LIBICONV; do 21035 21036 acl_save_prefix="$prefix" 21037 prefix="$acl_final_prefix" 21038 acl_save_exec_prefix="$exec_prefix" 21039 exec_prefix="$acl_final_exec_prefix" 21040 eval x=\"$x\" 21041 exec_prefix="$acl_save_exec_prefix" 21042 prefix="$acl_save_prefix" 21043 21044 if test "X$x" = "X-L$found_dir"; then 21045 haveit=yes 21046 break 21047 fi 21048 done 21049 if test -z "$haveit"; then 21050 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 21051 fi 21052 if test "$acl_hardcode_minus_L" != no; then 21053 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 21054 else 21055 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 21056 fi 21057 fi 21058 fi 21059 fi 21060 else 21061 if test "X$found_a" != "X"; then 21062 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 21063 else 21064 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 21065 fi 21066 fi 21067 additional_includedir= 21068 case "$found_dir" in 21069 */$acl_libdirstem | */$acl_libdirstem/) 21070 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 21071 if test "$name" = 'iconv'; then 21072 LIBICONV_PREFIX="$basedir" 21073 fi 21074 additional_includedir="$basedir/include" 21075 ;; 21076 */$acl_libdirstem2 | */$acl_libdirstem2/) 21077 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 21078 if test "$name" = 'iconv'; then 21079 LIBICONV_PREFIX="$basedir" 21080 fi 21081 additional_includedir="$basedir/include" 21082 ;; 21083 esac 21084 if test "X$additional_includedir" != "X"; then 21085 if test "X$additional_includedir" != "X/usr/include"; then 21086 haveit= 21087 if test "X$additional_includedir" = "X/usr/local/include"; then 21088 if test -n "$GCC"; then 21089 case $host_os in 21090 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 21091 esac 21092 fi 21093 fi 21094 if test -z "$haveit"; then 21095 for x in $CPPFLAGS $INCICONV; do 21096 21097 acl_save_prefix="$prefix" 21098 prefix="$acl_final_prefix" 21099 acl_save_exec_prefix="$exec_prefix" 21100 exec_prefix="$acl_final_exec_prefix" 21101 eval x=\"$x\" 21102 exec_prefix="$acl_save_exec_prefix" 21103 prefix="$acl_save_prefix" 21104 21105 if test "X$x" = "X-I$additional_includedir"; then 21106 haveit=yes 21107 break 21108 fi 21109 done 21110 if test -z "$haveit"; then 21111 if test -d "$additional_includedir"; then 21112 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 21113 fi 21114 fi 21115 fi 21116 fi 21117 fi 21118 if test -n "$found_la"; then 21119 save_libdir="$libdir" 21120 case "$found_la" in 21121 */* | *\\*) . "$found_la" ;; 21122 *) . "./$found_la" ;; 21123 esac 21124 libdir="$save_libdir" 21125 for dep in $dependency_libs; do 21126 case "$dep" in 21127 -L*) 21128 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 21129 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 21130 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 21131 haveit= 21132 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 21133 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 21134 if test -n "$GCC"; then 21135 case $host_os in 21136 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 21137 esac 21138 fi 21139 fi 21140 if test -z "$haveit"; then 21141 haveit= 21142 for x in $LDFLAGS $LIBICONV; do 21143 21144 acl_save_prefix="$prefix" 21145 prefix="$acl_final_prefix" 21146 acl_save_exec_prefix="$exec_prefix" 21147 exec_prefix="$acl_final_exec_prefix" 21148 eval x=\"$x\" 21149 exec_prefix="$acl_save_exec_prefix" 21150 prefix="$acl_save_prefix" 21151 21152 if test "X$x" = "X-L$additional_libdir"; then 21153 haveit=yes 21154 break 21155 fi 21156 done 21157 if test -z "$haveit"; then 21158 if test -d "$additional_libdir"; then 21159 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 21160 fi 21161 fi 21162 haveit= 21163 for x in $LDFLAGS $LTLIBICONV; do 21164 21165 acl_save_prefix="$prefix" 21166 prefix="$acl_final_prefix" 21167 acl_save_exec_prefix="$exec_prefix" 21168 exec_prefix="$acl_final_exec_prefix" 21169 eval x=\"$x\" 21170 exec_prefix="$acl_save_exec_prefix" 21171 prefix="$acl_save_prefix" 21172 21173 if test "X$x" = "X-L$additional_libdir"; then 21174 haveit=yes 21175 break 21176 fi 21177 done 21178 if test -z "$haveit"; then 21179 if test -d "$additional_libdir"; then 21180 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 21181 fi 21182 fi 21183 fi 21184 fi 21185 ;; 21186 -R*) 21187 dir=`echo "X$dep" | sed -e 's/^X-R//'` 21188 if test "$enable_rpath" != no; then 21189 haveit= 21190 for x in $rpathdirs; do 21191 if test "X$x" = "X$dir"; then 21192 haveit=yes 21193 break 21194 fi 21195 done 21196 if test -z "$haveit"; then 21197 rpathdirs="$rpathdirs $dir" 21198 fi 21199 haveit= 21200 for x in $ltrpathdirs; do 21201 if test "X$x" = "X$dir"; then 21202 haveit=yes 21203 break 21204 fi 21205 done 21206 if test -z "$haveit"; then 21207 ltrpathdirs="$ltrpathdirs $dir" 21208 fi 21209 fi 21210 ;; 21211 -l*) 21212 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 21213 ;; 21214 *.la) 21215 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 21216 ;; 21217 *) 21218 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 21219 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 21220 ;; 21221 esac 21222 done 21223 fi 21224 else 21225 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 21226 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 21227 fi 21228 fi 21229 fi 21230 done 21231 done 21232 if test "X$rpathdirs" != "X"; then 21233 if test -n "$acl_hardcode_libdir_separator"; then 21234 alldirs= 21235 for found_dir in $rpathdirs; do 21236 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 21237 done 21238 acl_save_libdir="$libdir" 21239 libdir="$alldirs" 21240 eval flag=\"$acl_hardcode_libdir_flag_spec\" 21241 libdir="$acl_save_libdir" 21242 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 21243 else 21244 for found_dir in $rpathdirs; do 21245 acl_save_libdir="$libdir" 21246 libdir="$found_dir" 21247 eval flag=\"$acl_hardcode_libdir_flag_spec\" 21248 libdir="$acl_save_libdir" 21249 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 21250 done 21251 fi 21252 fi 21253 if test "X$ltrpathdirs" != "X"; then 21254 for found_dir in $ltrpathdirs; do 21255 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 21256 done 21257 fi 21258 21259 21260 21261 21262 21263 21264 21265 21266 21267 21268 21269 21270 21271 21272 21273 21274 21275 21276 21277 21278 21279 21280 21281 21282 21283 21284 21285 21286 21287 21288 21289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 21290$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } 21291if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then : 21292 $as_echo_n "(cached) " >&6 21293else 21294 gt_save_LIBS="$LIBS" 21295 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 21296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21297/* end confdefs.h. */ 21298#include <CoreFoundation/CFPreferences.h> 21299int 21300main () 21301{ 21302CFPreferencesCopyAppValue(NULL, NULL) 21303 ; 21304 return 0; 21305} 21306_ACEOF 21307if ac_fn_c_try_link "$LINENO"; then : 21308 gt_cv_func_CFPreferencesCopyAppValue=yes 21309else 21310 gt_cv_func_CFPreferencesCopyAppValue=no 21311fi 21312rm -f core conftest.err conftest.$ac_objext \ 21313 conftest$ac_exeext conftest.$ac_ext 21314 LIBS="$gt_save_LIBS" 21315fi 21316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 21317$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 21318 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 21319 21320$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 21321 21322 fi 21323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 21324$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } 21325if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then : 21326 $as_echo_n "(cached) " >&6 21327else 21328 gt_save_LIBS="$LIBS" 21329 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 21330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21331/* end confdefs.h. */ 21332#include <CoreFoundation/CFLocale.h> 21333int 21334main () 21335{ 21336CFLocaleCopyCurrent(); 21337 ; 21338 return 0; 21339} 21340_ACEOF 21341if ac_fn_c_try_link "$LINENO"; then : 21342 gt_cv_func_CFLocaleCopyCurrent=yes 21343else 21344 gt_cv_func_CFLocaleCopyCurrent=no 21345fi 21346rm -f core conftest.err conftest.$ac_objext \ 21347 conftest$ac_exeext conftest.$ac_ext 21348 LIBS="$gt_save_LIBS" 21349fi 21350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 21351$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } 21352 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then 21353 21354$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h 21355 21356 fi 21357 INTL_MACOSX_LIBS= 21358 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 21359 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 21360 fi 21361 21362 21363 21364 21365 21366 21367 LIBINTL= 21368 LTLIBINTL= 21369 POSUB= 21370 21371 case " $gt_needs " in 21372 *" need-formatstring-macros "*) gt_api_version=3 ;; 21373 *" need-ngettext "*) gt_api_version=2 ;; 21374 *) gt_api_version=1 ;; 21375 esac 21376 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 21377 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 21378 21379 if test "$USE_NLS" = "yes"; then 21380 gt_use_preinstalled_gnugettext=no 21381 21382 21383 if test $gt_api_version -ge 3; then 21384 gt_revision_test_code=' 21385#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 21386#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 21387#endif 21388typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 21389' 21390 else 21391 gt_revision_test_code= 21392 fi 21393 if test $gt_api_version -ge 2; then 21394 gt_expression_test_code=' + * ngettext ("", "", 0)' 21395 else 21396 gt_expression_test_code= 21397 fi 21398 21399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 21400$as_echo_n "checking for GNU gettext in libc... " >&6; } 21401if eval "test \"\${$gt_func_gnugettext_libc+set}\"" = set; then : 21402 $as_echo_n "(cached) " >&6 21403else 21404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21405/* end confdefs.h. */ 21406 21407#include <libintl.h> 21408$gt_revision_test_code 21409extern int _nl_msg_cat_cntr; 21410extern int *_nl_domain_bindings; 21411 21412int 21413main () 21414{ 21415 21416bindtextdomain ("", ""); 21417return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings 21418 21419 ; 21420 return 0; 21421} 21422_ACEOF 21423if ac_fn_c_try_link "$LINENO"; then : 21424 eval "$gt_func_gnugettext_libc=yes" 21425else 21426 eval "$gt_func_gnugettext_libc=no" 21427fi 21428rm -f core conftest.err conftest.$ac_objext \ 21429 conftest$ac_exeext conftest.$ac_ext 21430fi 21431eval ac_res=\$$gt_func_gnugettext_libc 21432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 21433$as_echo "$ac_res" >&6; } 21434 21435 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 21436 21437 21438 21439 21440 21441 am_save_CPPFLAGS="$CPPFLAGS" 21442 21443 for element in $INCICONV; do 21444 haveit= 21445 for x in $CPPFLAGS; do 21446 21447 acl_save_prefix="$prefix" 21448 prefix="$acl_final_prefix" 21449 acl_save_exec_prefix="$exec_prefix" 21450 exec_prefix="$acl_final_exec_prefix" 21451 eval x=\"$x\" 21452 exec_prefix="$acl_save_exec_prefix" 21453 prefix="$acl_save_prefix" 21454 21455 if test "X$x" = "X$element"; then 21456 haveit=yes 21457 break 21458 fi 21459 done 21460 if test -z "$haveit"; then 21461 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 21462 fi 21463 done 21464 21465 21466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 21467$as_echo_n "checking for iconv... " >&6; } 21468if test "${am_cv_func_iconv+set}" = set; then : 21469 $as_echo_n "(cached) " >&6 21470else 21471 21472 am_cv_func_iconv="no, consider installing GNU libiconv" 21473 am_cv_lib_iconv=no 21474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21475/* end confdefs.h. */ 21476 21477#include <stdlib.h> 21478#include <iconv.h> 21479 21480int 21481main () 21482{ 21483iconv_t cd = iconv_open("",""); 21484 iconv(cd,NULL,NULL,NULL,NULL); 21485 iconv_close(cd); 21486 ; 21487 return 0; 21488} 21489_ACEOF 21490if ac_fn_c_try_link "$LINENO"; then : 21491 am_cv_func_iconv=yes 21492fi 21493rm -f core conftest.err conftest.$ac_objext \ 21494 conftest$ac_exeext conftest.$ac_ext 21495 if test "$am_cv_func_iconv" != yes; then 21496 am_save_LIBS="$LIBS" 21497 LIBS="$LIBS $LIBICONV" 21498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21499/* end confdefs.h. */ 21500 21501#include <stdlib.h> 21502#include <iconv.h> 21503 21504int 21505main () 21506{ 21507iconv_t cd = iconv_open("",""); 21508 iconv(cd,NULL,NULL,NULL,NULL); 21509 iconv_close(cd); 21510 ; 21511 return 0; 21512} 21513_ACEOF 21514if ac_fn_c_try_link "$LINENO"; then : 21515 am_cv_lib_iconv=yes 21516 am_cv_func_iconv=yes 21517fi 21518rm -f core conftest.err conftest.$ac_objext \ 21519 conftest$ac_exeext conftest.$ac_ext 21520 LIBS="$am_save_LIBS" 21521 fi 21522 21523fi 21524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 21525$as_echo "$am_cv_func_iconv" >&6; } 21526 if test "$am_cv_func_iconv" = yes; then 21527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 21528$as_echo_n "checking for working iconv... " >&6; } 21529if test "${am_cv_func_iconv_works+set}" = set; then : 21530 $as_echo_n "(cached) " >&6 21531else 21532 21533 am_save_LIBS="$LIBS" 21534 if test $am_cv_lib_iconv = yes; then 21535 LIBS="$LIBS $LIBICONV" 21536 fi 21537 if test "$cross_compiling" = yes; then : 21538 21539 case "$host_os" in 21540 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 21541 *) am_cv_func_iconv_works="guessing yes" ;; 21542 esac 21543 21544else 21545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21546/* end confdefs.h. */ 21547 21548#include <iconv.h> 21549#include <string.h> 21550int main () 21551{ 21552 int result = 0; 21553 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 21554 returns. */ 21555 { 21556 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 21557 if (cd_utf8_to_88591 != (iconv_t)(-1)) 21558 { 21559 static const char input[] = "\342\202\254"; /* EURO SIGN */ 21560 char buf[10]; 21561 const char *inptr = input; 21562 size_t inbytesleft = strlen (input); 21563 char *outptr = buf; 21564 size_t outbytesleft = sizeof (buf); 21565 size_t res = iconv (cd_utf8_to_88591, 21566 (char **) &inptr, &inbytesleft, 21567 &outptr, &outbytesleft); 21568 if (res == 0) 21569 result |= 1; 21570 iconv_close (cd_utf8_to_88591); 21571 } 21572 } 21573 /* Test against Solaris 10 bug: Failures are not distinguishable from 21574 successful returns. */ 21575 { 21576 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 21577 if (cd_ascii_to_88591 != (iconv_t)(-1)) 21578 { 21579 static const char input[] = "\263"; 21580 char buf[10]; 21581 const char *inptr = input; 21582 size_t inbytesleft = strlen (input); 21583 char *outptr = buf; 21584 size_t outbytesleft = sizeof (buf); 21585 size_t res = iconv (cd_ascii_to_88591, 21586 (char **) &inptr, &inbytesleft, 21587 &outptr, &outbytesleft); 21588 if (res == 0) 21589 result |= 2; 21590 iconv_close (cd_ascii_to_88591); 21591 } 21592 } 21593 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ 21594 { 21595 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); 21596 if (cd_88591_to_utf8 != (iconv_t)(-1)) 21597 { 21598 static const char input[] = "\304"; 21599 static char buf[2] = { (char)0xDE, (char)0xAD }; 21600 const char *inptr = input; 21601 size_t inbytesleft = 1; 21602 char *outptr = buf; 21603 size_t outbytesleft = 1; 21604 size_t res = iconv (cd_88591_to_utf8, 21605 (char **) &inptr, &inbytesleft, 21606 &outptr, &outbytesleft); 21607 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) 21608 result |= 4; 21609 iconv_close (cd_88591_to_utf8); 21610 } 21611 } 21612#if 0 /* This bug could be worked around by the caller. */ 21613 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 21614 { 21615 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 21616 if (cd_88591_to_utf8 != (iconv_t)(-1)) 21617 { 21618 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 21619 char buf[50]; 21620 const char *inptr = input; 21621 size_t inbytesleft = strlen (input); 21622 char *outptr = buf; 21623 size_t outbytesleft = sizeof (buf); 21624 size_t res = iconv (cd_88591_to_utf8, 21625 (char **) &inptr, &inbytesleft, 21626 &outptr, &outbytesleft); 21627 if ((int)res > 0) 21628 result |= 8; 21629 iconv_close (cd_88591_to_utf8); 21630 } 21631 } 21632#endif 21633 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 21634 provided. */ 21635 if (/* Try standardized names. */ 21636 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) 21637 /* Try IRIX, OSF/1 names. */ 21638 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) 21639 /* Try AIX names. */ 21640 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) 21641 /* Try HP-UX names. */ 21642 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) 21643 result |= 16; 21644 return result; 21645} 21646_ACEOF 21647if ac_fn_c_try_run "$LINENO"; then : 21648 am_cv_func_iconv_works=yes 21649else 21650 am_cv_func_iconv_works=no 21651fi 21652rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21653 conftest.$ac_objext conftest.beam conftest.$ac_ext 21654fi 21655 21656 LIBS="$am_save_LIBS" 21657 21658fi 21659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 21660$as_echo "$am_cv_func_iconv_works" >&6; } 21661 case "$am_cv_func_iconv_works" in 21662 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 21663 *) am_func_iconv=yes ;; 21664 esac 21665 else 21666 am_func_iconv=no am_cv_lib_iconv=no 21667 fi 21668 if test "$am_func_iconv" = yes; then 21669 21670$as_echo "#define HAVE_ICONV 1" >>confdefs.h 21671 21672 fi 21673 if test "$am_cv_lib_iconv" = yes; then 21674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 21675$as_echo_n "checking how to link with libiconv... " >&6; } 21676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 21677$as_echo "$LIBICONV" >&6; } 21678 else 21679 CPPFLAGS="$am_save_CPPFLAGS" 21680 LIBICONV= 21681 LTLIBICONV= 21682 fi 21683 21684 21685 21686 21687 21688 21689 21690 21691 21692 21693 21694 use_additional=yes 21695 21696 acl_save_prefix="$prefix" 21697 prefix="$acl_final_prefix" 21698 acl_save_exec_prefix="$exec_prefix" 21699 exec_prefix="$acl_final_exec_prefix" 21700 21701 eval additional_includedir=\"$includedir\" 21702 eval additional_libdir=\"$libdir\" 21703 21704 exec_prefix="$acl_save_exec_prefix" 21705 prefix="$acl_save_prefix" 21706 21707 21708# Check whether --with-libintl-prefix was given. 21709if test "${with_libintl_prefix+set}" = set; then : 21710 withval=$with_libintl_prefix; 21711 if test "X$withval" = "Xno"; then 21712 use_additional=no 21713 else 21714 if test "X$withval" = "X"; then 21715 21716 acl_save_prefix="$prefix" 21717 prefix="$acl_final_prefix" 21718 acl_save_exec_prefix="$exec_prefix" 21719 exec_prefix="$acl_final_exec_prefix" 21720 21721 eval additional_includedir=\"$includedir\" 21722 eval additional_libdir=\"$libdir\" 21723 21724 exec_prefix="$acl_save_exec_prefix" 21725 prefix="$acl_save_prefix" 21726 21727 else 21728 additional_includedir="$withval/include" 21729 additional_libdir="$withval/$acl_libdirstem" 21730 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 21731 && ! test -d "$withval/$acl_libdirstem"; then 21732 additional_libdir="$withval/$acl_libdirstem2" 21733 fi 21734 fi 21735 fi 21736 21737fi 21738 21739 LIBINTL= 21740 LTLIBINTL= 21741 INCINTL= 21742 LIBINTL_PREFIX= 21743 HAVE_LIBINTL= 21744 rpathdirs= 21745 ltrpathdirs= 21746 names_already_handled= 21747 names_next_round='intl ' 21748 while test -n "$names_next_round"; do 21749 names_this_round="$names_next_round" 21750 names_next_round= 21751 for name in $names_this_round; do 21752 already_handled= 21753 for n in $names_already_handled; do 21754 if test "$n" = "$name"; then 21755 already_handled=yes 21756 break 21757 fi 21758 done 21759 if test -z "$already_handled"; then 21760 names_already_handled="$names_already_handled $name" 21761 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 21762 eval value=\"\$HAVE_LIB$uppername\" 21763 if test -n "$value"; then 21764 if test "$value" = yes; then 21765 eval value=\"\$LIB$uppername\" 21766 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 21767 eval value=\"\$LTLIB$uppername\" 21768 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 21769 else 21770 : 21771 fi 21772 else 21773 found_dir= 21774 found_la= 21775 found_so= 21776 found_a= 21777 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 21778 if test -n "$acl_shlibext"; then 21779 shrext=".$acl_shlibext" # typically: shrext=.so 21780 else 21781 shrext= 21782 fi 21783 if test $use_additional = yes; then 21784 dir="$additional_libdir" 21785 if test -n "$acl_shlibext"; then 21786 if test -f "$dir/$libname$shrext"; then 21787 found_dir="$dir" 21788 found_so="$dir/$libname$shrext" 21789 else 21790 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 21791 ver=`(cd "$dir" && \ 21792 for f in "$libname$shrext".*; do echo "$f"; done \ 21793 | sed -e "s,^$libname$shrext\\\\.,," \ 21794 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 21795 | sed 1q ) 2>/dev/null` 21796 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 21797 found_dir="$dir" 21798 found_so="$dir/$libname$shrext.$ver" 21799 fi 21800 else 21801 eval library_names=\"$acl_library_names_spec\" 21802 for f in $library_names; do 21803 if test -f "$dir/$f"; then 21804 found_dir="$dir" 21805 found_so="$dir/$f" 21806 break 21807 fi 21808 done 21809 fi 21810 fi 21811 fi 21812 if test "X$found_dir" = "X"; then 21813 if test -f "$dir/$libname.$acl_libext"; then 21814 found_dir="$dir" 21815 found_a="$dir/$libname.$acl_libext" 21816 fi 21817 fi 21818 if test "X$found_dir" != "X"; then 21819 if test -f "$dir/$libname.la"; then 21820 found_la="$dir/$libname.la" 21821 fi 21822 fi 21823 fi 21824 if test "X$found_dir" = "X"; then 21825 for x in $LDFLAGS $LTLIBINTL; do 21826 21827 acl_save_prefix="$prefix" 21828 prefix="$acl_final_prefix" 21829 acl_save_exec_prefix="$exec_prefix" 21830 exec_prefix="$acl_final_exec_prefix" 21831 eval x=\"$x\" 21832 exec_prefix="$acl_save_exec_prefix" 21833 prefix="$acl_save_prefix" 21834 21835 case "$x" in 21836 -L*) 21837 dir=`echo "X$x" | sed -e 's/^X-L//'` 21838 if test -n "$acl_shlibext"; then 21839 if test -f "$dir/$libname$shrext"; then 21840 found_dir="$dir" 21841 found_so="$dir/$libname$shrext" 21842 else 21843 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 21844 ver=`(cd "$dir" && \ 21845 for f in "$libname$shrext".*; do echo "$f"; done \ 21846 | sed -e "s,^$libname$shrext\\\\.,," \ 21847 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 21848 | sed 1q ) 2>/dev/null` 21849 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 21850 found_dir="$dir" 21851 found_so="$dir/$libname$shrext.$ver" 21852 fi 21853 else 21854 eval library_names=\"$acl_library_names_spec\" 21855 for f in $library_names; do 21856 if test -f "$dir/$f"; then 21857 found_dir="$dir" 21858 found_so="$dir/$f" 21859 break 21860 fi 21861 done 21862 fi 21863 fi 21864 fi 21865 if test "X$found_dir" = "X"; then 21866 if test -f "$dir/$libname.$acl_libext"; then 21867 found_dir="$dir" 21868 found_a="$dir/$libname.$acl_libext" 21869 fi 21870 fi 21871 if test "X$found_dir" != "X"; then 21872 if test -f "$dir/$libname.la"; then 21873 found_la="$dir/$libname.la" 21874 fi 21875 fi 21876 ;; 21877 esac 21878 if test "X$found_dir" != "X"; then 21879 break 21880 fi 21881 done 21882 fi 21883 if test "X$found_dir" != "X"; then 21884 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 21885 if test "X$found_so" != "X"; then 21886 if test "$enable_rpath" = no \ 21887 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 21888 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 21889 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 21890 else 21891 haveit= 21892 for x in $ltrpathdirs; do 21893 if test "X$x" = "X$found_dir"; then 21894 haveit=yes 21895 break 21896 fi 21897 done 21898 if test -z "$haveit"; then 21899 ltrpathdirs="$ltrpathdirs $found_dir" 21900 fi 21901 if test "$acl_hardcode_direct" = yes; then 21902 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 21903 else 21904 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 21905 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 21906 haveit= 21907 for x in $rpathdirs; do 21908 if test "X$x" = "X$found_dir"; then 21909 haveit=yes 21910 break 21911 fi 21912 done 21913 if test -z "$haveit"; then 21914 rpathdirs="$rpathdirs $found_dir" 21915 fi 21916 else 21917 haveit= 21918 for x in $LDFLAGS $LIBINTL; do 21919 21920 acl_save_prefix="$prefix" 21921 prefix="$acl_final_prefix" 21922 acl_save_exec_prefix="$exec_prefix" 21923 exec_prefix="$acl_final_exec_prefix" 21924 eval x=\"$x\" 21925 exec_prefix="$acl_save_exec_prefix" 21926 prefix="$acl_save_prefix" 21927 21928 if test "X$x" = "X-L$found_dir"; then 21929 haveit=yes 21930 break 21931 fi 21932 done 21933 if test -z "$haveit"; then 21934 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 21935 fi 21936 if test "$acl_hardcode_minus_L" != no; then 21937 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 21938 else 21939 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 21940 fi 21941 fi 21942 fi 21943 fi 21944 else 21945 if test "X$found_a" != "X"; then 21946 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 21947 else 21948 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 21949 fi 21950 fi 21951 additional_includedir= 21952 case "$found_dir" in 21953 */$acl_libdirstem | */$acl_libdirstem/) 21954 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 21955 if test "$name" = 'intl'; then 21956 LIBINTL_PREFIX="$basedir" 21957 fi 21958 additional_includedir="$basedir/include" 21959 ;; 21960 */$acl_libdirstem2 | */$acl_libdirstem2/) 21961 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 21962 if test "$name" = 'intl'; then 21963 LIBINTL_PREFIX="$basedir" 21964 fi 21965 additional_includedir="$basedir/include" 21966 ;; 21967 esac 21968 if test "X$additional_includedir" != "X"; then 21969 if test "X$additional_includedir" != "X/usr/include"; then 21970 haveit= 21971 if test "X$additional_includedir" = "X/usr/local/include"; then 21972 if test -n "$GCC"; then 21973 case $host_os in 21974 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 21975 esac 21976 fi 21977 fi 21978 if test -z "$haveit"; then 21979 for x in $CPPFLAGS $INCINTL; do 21980 21981 acl_save_prefix="$prefix" 21982 prefix="$acl_final_prefix" 21983 acl_save_exec_prefix="$exec_prefix" 21984 exec_prefix="$acl_final_exec_prefix" 21985 eval x=\"$x\" 21986 exec_prefix="$acl_save_exec_prefix" 21987 prefix="$acl_save_prefix" 21988 21989 if test "X$x" = "X-I$additional_includedir"; then 21990 haveit=yes 21991 break 21992 fi 21993 done 21994 if test -z "$haveit"; then 21995 if test -d "$additional_includedir"; then 21996 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 21997 fi 21998 fi 21999 fi 22000 fi 22001 fi 22002 if test -n "$found_la"; then 22003 save_libdir="$libdir" 22004 case "$found_la" in 22005 */* | *\\*) . "$found_la" ;; 22006 *) . "./$found_la" ;; 22007 esac 22008 libdir="$save_libdir" 22009 for dep in $dependency_libs; do 22010 case "$dep" in 22011 -L*) 22012 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 22013 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 22014 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 22015 haveit= 22016 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 22017 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 22018 if test -n "$GCC"; then 22019 case $host_os in 22020 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 22021 esac 22022 fi 22023 fi 22024 if test -z "$haveit"; then 22025 haveit= 22026 for x in $LDFLAGS $LIBINTL; do 22027 22028 acl_save_prefix="$prefix" 22029 prefix="$acl_final_prefix" 22030 acl_save_exec_prefix="$exec_prefix" 22031 exec_prefix="$acl_final_exec_prefix" 22032 eval x=\"$x\" 22033 exec_prefix="$acl_save_exec_prefix" 22034 prefix="$acl_save_prefix" 22035 22036 if test "X$x" = "X-L$additional_libdir"; then 22037 haveit=yes 22038 break 22039 fi 22040 done 22041 if test -z "$haveit"; then 22042 if test -d "$additional_libdir"; then 22043 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 22044 fi 22045 fi 22046 haveit= 22047 for x in $LDFLAGS $LTLIBINTL; do 22048 22049 acl_save_prefix="$prefix" 22050 prefix="$acl_final_prefix" 22051 acl_save_exec_prefix="$exec_prefix" 22052 exec_prefix="$acl_final_exec_prefix" 22053 eval x=\"$x\" 22054 exec_prefix="$acl_save_exec_prefix" 22055 prefix="$acl_save_prefix" 22056 22057 if test "X$x" = "X-L$additional_libdir"; then 22058 haveit=yes 22059 break 22060 fi 22061 done 22062 if test -z "$haveit"; then 22063 if test -d "$additional_libdir"; then 22064 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 22065 fi 22066 fi 22067 fi 22068 fi 22069 ;; 22070 -R*) 22071 dir=`echo "X$dep" | sed -e 's/^X-R//'` 22072 if test "$enable_rpath" != no; then 22073 haveit= 22074 for x in $rpathdirs; do 22075 if test "X$x" = "X$dir"; then 22076 haveit=yes 22077 break 22078 fi 22079 done 22080 if test -z "$haveit"; then 22081 rpathdirs="$rpathdirs $dir" 22082 fi 22083 haveit= 22084 for x in $ltrpathdirs; do 22085 if test "X$x" = "X$dir"; then 22086 haveit=yes 22087 break 22088 fi 22089 done 22090 if test -z "$haveit"; then 22091 ltrpathdirs="$ltrpathdirs $dir" 22092 fi 22093 fi 22094 ;; 22095 -l*) 22096 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 22097 ;; 22098 *.la) 22099 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 22100 ;; 22101 *) 22102 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 22103 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 22104 ;; 22105 esac 22106 done 22107 fi 22108 else 22109 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 22110 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 22111 fi 22112 fi 22113 fi 22114 done 22115 done 22116 if test "X$rpathdirs" != "X"; then 22117 if test -n "$acl_hardcode_libdir_separator"; then 22118 alldirs= 22119 for found_dir in $rpathdirs; do 22120 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 22121 done 22122 acl_save_libdir="$libdir" 22123 libdir="$alldirs" 22124 eval flag=\"$acl_hardcode_libdir_flag_spec\" 22125 libdir="$acl_save_libdir" 22126 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 22127 else 22128 for found_dir in $rpathdirs; do 22129 acl_save_libdir="$libdir" 22130 libdir="$found_dir" 22131 eval flag=\"$acl_hardcode_libdir_flag_spec\" 22132 libdir="$acl_save_libdir" 22133 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 22134 done 22135 fi 22136 fi 22137 if test "X$ltrpathdirs" != "X"; then 22138 for found_dir in $ltrpathdirs; do 22139 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 22140 done 22141 fi 22142 22143 22144 22145 22146 22147 22148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 22149$as_echo_n "checking for GNU gettext in libintl... " >&6; } 22150if eval "test \"\${$gt_func_gnugettext_libintl+set}\"" = set; then : 22151 $as_echo_n "(cached) " >&6 22152else 22153 gt_save_CPPFLAGS="$CPPFLAGS" 22154 CPPFLAGS="$CPPFLAGS $INCINTL" 22155 gt_save_LIBS="$LIBS" 22156 LIBS="$LIBS $LIBINTL" 22157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22158/* end confdefs.h. */ 22159 22160#include <libintl.h> 22161$gt_revision_test_code 22162extern int _nl_msg_cat_cntr; 22163extern 22164#ifdef __cplusplus 22165"C" 22166#endif 22167const char *_nl_expand_alias (const char *); 22168 22169int 22170main () 22171{ 22172 22173bindtextdomain ("", ""); 22174return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 22175 22176 ; 22177 return 0; 22178} 22179_ACEOF 22180if ac_fn_c_try_link "$LINENO"; then : 22181 eval "$gt_func_gnugettext_libintl=yes" 22182else 22183 eval "$gt_func_gnugettext_libintl=no" 22184fi 22185rm -f core conftest.err conftest.$ac_objext \ 22186 conftest$ac_exeext conftest.$ac_ext 22187 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 22188 LIBS="$LIBS $LIBICONV" 22189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22190/* end confdefs.h. */ 22191 22192#include <libintl.h> 22193$gt_revision_test_code 22194extern int _nl_msg_cat_cntr; 22195extern 22196#ifdef __cplusplus 22197"C" 22198#endif 22199const char *_nl_expand_alias (const char *); 22200 22201int 22202main () 22203{ 22204 22205bindtextdomain ("", ""); 22206return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 22207 22208 ; 22209 return 0; 22210} 22211_ACEOF 22212if ac_fn_c_try_link "$LINENO"; then : 22213 LIBINTL="$LIBINTL $LIBICONV" 22214 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 22215 eval "$gt_func_gnugettext_libintl=yes" 22216 22217fi 22218rm -f core conftest.err conftest.$ac_objext \ 22219 conftest$ac_exeext conftest.$ac_ext 22220 fi 22221 CPPFLAGS="$gt_save_CPPFLAGS" 22222 LIBS="$gt_save_LIBS" 22223fi 22224eval ac_res=\$$gt_func_gnugettext_libintl 22225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 22226$as_echo "$ac_res" >&6; } 22227 fi 22228 22229 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 22230 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 22231 && test "$PACKAGE" != gettext-runtime \ 22232 && test "$PACKAGE" != gettext-tools; }; then 22233 gt_use_preinstalled_gnugettext=yes 22234 else 22235 LIBINTL= 22236 LTLIBINTL= 22237 INCINTL= 22238 fi 22239 22240 22241 22242 if test -n "$INTL_MACOSX_LIBS"; then 22243 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 22244 || test "$nls_cv_use_gnu_gettext" = "yes"; then 22245 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 22246 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 22247 fi 22248 fi 22249 22250 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 22251 || test "$nls_cv_use_gnu_gettext" = "yes"; then 22252 22253$as_echo "#define ENABLE_NLS 1" >>confdefs.h 22254 22255 else 22256 USE_NLS=no 22257 fi 22258 fi 22259 22260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 22261$as_echo_n "checking whether to use NLS... " >&6; } 22262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 22263$as_echo "$USE_NLS" >&6; } 22264 if test "$USE_NLS" = "yes"; then 22265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 22266$as_echo_n "checking where the gettext function comes from... " >&6; } 22267 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 22268 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 22269 gt_source="external libintl" 22270 else 22271 gt_source="libc" 22272 fi 22273 else 22274 gt_source="included intl directory" 22275 fi 22276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 22277$as_echo "$gt_source" >&6; } 22278 fi 22279 22280 if test "$USE_NLS" = "yes"; then 22281 22282 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 22283 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 22284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 22285$as_echo_n "checking how to link with libintl... " >&6; } 22286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 22287$as_echo "$LIBINTL" >&6; } 22288 22289 for element in $INCINTL; do 22290 haveit= 22291 for x in $CPPFLAGS; do 22292 22293 acl_save_prefix="$prefix" 22294 prefix="$acl_final_prefix" 22295 acl_save_exec_prefix="$exec_prefix" 22296 exec_prefix="$acl_final_exec_prefix" 22297 eval x=\"$x\" 22298 exec_prefix="$acl_save_exec_prefix" 22299 prefix="$acl_save_prefix" 22300 22301 if test "X$x" = "X$element"; then 22302 haveit=yes 22303 break 22304 fi 22305 done 22306 if test -z "$haveit"; then 22307 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 22308 fi 22309 done 22310 22311 fi 22312 22313 22314$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 22315 22316 22317$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 22318 22319 fi 22320 22321 POSUB=po 22322 fi 22323 22324 22325 22326 INTLLIBS="$LIBINTL" 22327 22328 22329 22330 22331 22332 22333 22334# Checks for libraries. 22335 22336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5 22337$as_echo_n "checking for a readline compatible library... " >&6; } 22338if test "${ol_cv_lib_readline+set}" = set; then : 22339 $as_echo_n "(cached) " >&6 22340else 22341 22342 ORIG_LIBS="$LIBS" 22343 for readline_lib in readline edit editline; do 22344 for termcap_lib in "" termcap curses ncurses; do 22345 if test -z "$termcap_lib"; then 22346 TRY_LIB="-l$readline_lib" 22347 else 22348 TRY_LIB="-l$readline_lib -l$termcap_lib" 22349 fi 22350 LIBS="$ORIG_LIBS $TRY_LIB" 22351 readline_libs="$ol_cv_lib_readline" 22352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22353/* end confdefs.h. */ 22354 22355/* Override any GCC internal prototype to avoid an error. 22356 Use char because int might match the return type of a GCC 22357 builtin and then its argument prototype would still apply. */ 22358#ifdef __cplusplus 22359extern "C" 22360#endif 22361char readline (); 22362int 22363main () 22364{ 22365return readline (); 22366 ; 22367 return 0; 22368} 22369_ACEOF 22370if ac_fn_c_try_link "$LINENO"; then : 22371 readline_libs="$TRY_LIB" 22372fi 22373rm -f core conftest.err conftest.$ac_objext \ 22374 conftest$ac_exeext conftest.$ac_ext 22375 if test -n "$readline_libs"; then 22376 break 22377 fi 22378 done 22379 if test -n "$readline_libs"; then 22380 break 22381 fi 22382 done 22383 22384 if test -z "$readline_libs"; then 22385 ol_cv_lib_readline="no" 22386 else 22387 history_libs="" 22388 LIBS="$ORIG_LIBS -lhistory" 22389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22390/* end confdefs.h. */ 22391 22392/* Override any GCC internal prototype to avoid an error. 22393 Use char because int might match the return type of a GCC 22394 builtin and then its argument prototype would still apply. */ 22395#ifdef __cplusplus 22396extern "C" 22397#endif 22398char add_history (); 22399int 22400main () 22401{ 22402return add_history (); 22403 ; 22404 return 0; 22405} 22406_ACEOF 22407if ac_fn_c_try_link "$LINENO"; then : 22408 history_libs="-lhistory" 22409fi 22410rm -f core conftest.err conftest.$ac_objext \ 22411 conftest$ac_exeext conftest.$ac_ext 22412 ol_cv_lib_readline="$readline_libs $history_libs" 22413 fi 22414 LIBS="$ORIG_LIBS" 22415 22416fi 22417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_lib_readline" >&5 22418$as_echo "$ol_cv_lib_readline" >&6; } 22419 22420 if test "$ol_cv_lib_readline" = "no"; then 22421 READLINE_LIBS="" 22422 22423 else 22424 READLINE_LIBS="$ol_cv_lib_readline" 22425 22426 22427$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h 22428 22429 for ac_header in readline.h readline/readline.h 22430do : 22431 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 22432ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 22433if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 22434 cat >>confdefs.h <<_ACEOF 22435#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 22436_ACEOF 22437 22438fi 22439 22440done 22441 22442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5 22443$as_echo_n "checking whether readline supports history... " >&6; } 22444if test "${ol_cv_lib_readline_history+set}" = set; then : 22445 $as_echo_n "(cached) " >&6 22446else 22447 22448 ol_cv_lib_readline_history="no" 22449 LIBS="$READLINE_LIBS" 22450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22451/* end confdefs.h. */ 22452 22453/* Override any GCC internal prototype to avoid an error. 22454 Use char because int might match the return type of a GCC 22455 builtin and then its argument prototype would still apply. */ 22456#ifdef __cplusplus 22457extern "C" 22458#endif 22459char add_history (); 22460int 22461main () 22462{ 22463return add_history (); 22464 ; 22465 return 0; 22466} 22467_ACEOF 22468if ac_fn_c_try_link "$LINENO"; then : 22469 ol_cv_lib_readline_history="yes" 22470fi 22471rm -f core conftest.err conftest.$ac_objext \ 22472 conftest$ac_exeext conftest.$ac_ext 22473 LIBS="$ORIG_LIBS" 22474 22475fi 22476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_lib_readline_history" >&5 22477$as_echo "$ol_cv_lib_readline_history" >&6; } 22478 if test "$ol_cv_lib_readline_history" = "yes"; then 22479 22480$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h 22481 22482 for ac_header in history.h readline/history.h 22483do : 22484 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 22485ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 22486if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 22487 cat >>confdefs.h <<_ACEOF 22488#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 22489_ACEOF 22490 22491fi 22492 22493done 22494 22495 fi 22496 fi 22497 22498if test "$ol_cv_lib_readline" = ""; then 22499 as_fn_error $? "cannot find a readline compatible library" "$LINENO" 5 22500fi 22501ORIG_LIBS="$LIBS" 22502LIBS="$LIBS $READLINE_LIBS" 22503ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches" 22504if test "x$ac_cv_func_rl_completion_matches" = x""yes; then : 22505 22506else 22507 22508 ac_fn_c_check_func "$LINENO" "completion_matches" "ac_cv_func_completion_matches" 22509if test "x$ac_cv_func_completion_matches" = x""yes; then : 22510 22511 22512$as_echo "#define rl_completion_matches completion_matches" >>confdefs.h 22513 22514 22515else 22516 22517 as_fn_error $? "readline library not found, or readline is too old. 4.2 or above is required." "$LINENO" 5 22518 22519fi 22520 22521 22522fi 22523 22524LIBS="$ORIG_LIBS" 22525 22526# Checks for header files. 22527ac_header_dirent=no 22528for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 22529 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 22530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 22531$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 22532if eval "test \"\${$as_ac_Header+set}\"" = set; then : 22533 $as_echo_n "(cached) " >&6 22534else 22535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22536/* end confdefs.h. */ 22537#include <sys/types.h> 22538#include <$ac_hdr> 22539 22540int 22541main () 22542{ 22543if ((DIR *) 0) 22544return 0; 22545 ; 22546 return 0; 22547} 22548_ACEOF 22549if ac_fn_c_try_compile "$LINENO"; then : 22550 eval "$as_ac_Header=yes" 22551else 22552 eval "$as_ac_Header=no" 22553fi 22554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22555fi 22556eval ac_res=\$$as_ac_Header 22557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 22558$as_echo "$ac_res" >&6; } 22559if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 22560 cat >>confdefs.h <<_ACEOF 22561#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 22562_ACEOF 22563 22564ac_header_dirent=$ac_hdr; break 22565fi 22566 22567done 22568# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 22569if test $ac_header_dirent = dirent.h; then 22570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 22571$as_echo_n "checking for library containing opendir... " >&6; } 22572if test "${ac_cv_search_opendir+set}" = set; then : 22573 $as_echo_n "(cached) " >&6 22574else 22575 ac_func_search_save_LIBS=$LIBS 22576cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22577/* end confdefs.h. */ 22578 22579/* Override any GCC internal prototype to avoid an error. 22580 Use char because int might match the return type of a GCC 22581 builtin and then its argument prototype would still apply. */ 22582#ifdef __cplusplus 22583extern "C" 22584#endif 22585char opendir (); 22586int 22587main () 22588{ 22589return opendir (); 22590 ; 22591 return 0; 22592} 22593_ACEOF 22594for ac_lib in '' dir; do 22595 if test -z "$ac_lib"; then 22596 ac_res="none required" 22597 else 22598 ac_res=-l$ac_lib 22599 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22600 fi 22601 if ac_fn_c_try_link "$LINENO"; then : 22602 ac_cv_search_opendir=$ac_res 22603fi 22604rm -f core conftest.err conftest.$ac_objext \ 22605 conftest$ac_exeext 22606 if test "${ac_cv_search_opendir+set}" = set; then : 22607 break 22608fi 22609done 22610if test "${ac_cv_search_opendir+set}" = set; then : 22611 22612else 22613 ac_cv_search_opendir=no 22614fi 22615rm conftest.$ac_ext 22616LIBS=$ac_func_search_save_LIBS 22617fi 22618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 22619$as_echo "$ac_cv_search_opendir" >&6; } 22620ac_res=$ac_cv_search_opendir 22621if test "$ac_res" != no; then : 22622 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22623 22624fi 22625 22626else 22627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 22628$as_echo_n "checking for library containing opendir... " >&6; } 22629if test "${ac_cv_search_opendir+set}" = set; then : 22630 $as_echo_n "(cached) " >&6 22631else 22632 ac_func_search_save_LIBS=$LIBS 22633cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22634/* end confdefs.h. */ 22635 22636/* Override any GCC internal prototype to avoid an error. 22637 Use char because int might match the return type of a GCC 22638 builtin and then its argument prototype would still apply. */ 22639#ifdef __cplusplus 22640extern "C" 22641#endif 22642char opendir (); 22643int 22644main () 22645{ 22646return opendir (); 22647 ; 22648 return 0; 22649} 22650_ACEOF 22651for ac_lib in '' x; do 22652 if test -z "$ac_lib"; then 22653 ac_res="none required" 22654 else 22655 ac_res=-l$ac_lib 22656 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22657 fi 22658 if ac_fn_c_try_link "$LINENO"; then : 22659 ac_cv_search_opendir=$ac_res 22660fi 22661rm -f core conftest.err conftest.$ac_objext \ 22662 conftest$ac_exeext 22663 if test "${ac_cv_search_opendir+set}" = set; then : 22664 break 22665fi 22666done 22667if test "${ac_cv_search_opendir+set}" = set; then : 22668 22669else 22670 ac_cv_search_opendir=no 22671fi 22672rm conftest.$ac_ext 22673LIBS=$ac_func_search_save_LIBS 22674fi 22675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 22676$as_echo "$ac_cv_search_opendir" >&6; } 22677ac_res=$ac_cv_search_opendir 22678if test "$ac_res" != no; then : 22679 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22680 22681fi 22682 22683fi 22684 22685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 22686$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 22687if test "${ac_cv_header_sys_wait_h+set}" = set; then : 22688 $as_echo_n "(cached) " >&6 22689else 22690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22691/* end confdefs.h. */ 22692#include <sys/types.h> 22693#include <sys/wait.h> 22694#ifndef WEXITSTATUS 22695# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 22696#endif 22697#ifndef WIFEXITED 22698# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 22699#endif 22700 22701int 22702main () 22703{ 22704 int s; 22705 wait (&s); 22706 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 22707 ; 22708 return 0; 22709} 22710_ACEOF 22711if ac_fn_c_try_compile "$LINENO"; then : 22712 ac_cv_header_sys_wait_h=yes 22713else 22714 ac_cv_header_sys_wait_h=no 22715fi 22716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22717fi 22718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 22719$as_echo "$ac_cv_header_sys_wait_h" >&6; } 22720if test $ac_cv_header_sys_wait_h = yes; then 22721 22722$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 22723 22724fi 22725 22726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 22727$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 22728if test "${ac_cv_header_time+set}" = set; then : 22729 $as_echo_n "(cached) " >&6 22730else 22731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22732/* end confdefs.h. */ 22733#include <sys/types.h> 22734#include <sys/time.h> 22735#include <time.h> 22736 22737int 22738main () 22739{ 22740if ((struct tm *) 0) 22741return 0; 22742 ; 22743 return 0; 22744} 22745_ACEOF 22746if ac_fn_c_try_compile "$LINENO"; then : 22747 ac_cv_header_time=yes 22748else 22749 ac_cv_header_time=no 22750fi 22751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22752fi 22753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 22754$as_echo "$ac_cv_header_time" >&6; } 22755if test $ac_cv_header_time = yes; then 22756 22757$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 22758 22759fi 22760 22761for ac_header in fcntl.h stdint.h unistd.h regex.h wordexp.h sys/time.h 22762do : 22763 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 22764ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 22765if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 22766 cat >>confdefs.h <<_ACEOF 22767#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 22768_ACEOF 22769 22770fi 22771 22772done 22773 22774# AC_HEADER_DIRENT: AC_CHECK_HEADERS([dirent.h]) 22775# AC_HEADER_SYS_WAIT: AC_CHECK_HEADERS([sys/wait.h]) 22776# always available (?): AC_CHECK_HEADERS([sys/stat.h sys/types.h]) 22777# c89: AC_HEADER_STDC 22778# c89: AC_CHECK_HEADERS([stdint.h stdlib.h string.h locale.h]) 22779 22780# Checks for typedefs, structures, and compiler characteristics. 22781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 22782$as_echo_n "checking for inline... " >&6; } 22783if test "${ac_cv_c_inline+set}" = set; then : 22784 $as_echo_n "(cached) " >&6 22785else 22786 ac_cv_c_inline=no 22787for ac_kw in inline __inline__ __inline; do 22788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22789/* end confdefs.h. */ 22790#ifndef __cplusplus 22791typedef int foo_t; 22792static $ac_kw foo_t static_foo () {return 0; } 22793$ac_kw foo_t foo () {return 0; } 22794#endif 22795 22796_ACEOF 22797if ac_fn_c_try_compile "$LINENO"; then : 22798 ac_cv_c_inline=$ac_kw 22799fi 22800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22801 test "$ac_cv_c_inline" != no && break 22802done 22803 22804fi 22805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 22806$as_echo "$ac_cv_c_inline" >&6; } 22807 22808case $ac_cv_c_inline in 22809 inline | yes) ;; 22810 *) 22811 case $ac_cv_c_inline in 22812 no) ac_val=;; 22813 *) ac_val=$ac_cv_c_inline;; 22814 esac 22815 cat >>confdefs.h <<_ACEOF 22816#ifndef __cplusplus 22817#define inline $ac_val 22818#endif 22819_ACEOF 22820 ;; 22821esac 22822 22823ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 22824if test "x$ac_cv_type_mode_t" = x""yes; then : 22825 22826else 22827 22828cat >>confdefs.h <<_ACEOF 22829#define mode_t int 22830_ACEOF 22831 22832fi 22833 22834ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 22835if test "x$ac_cv_type_off_t" = x""yes; then : 22836 22837else 22838 22839cat >>confdefs.h <<_ACEOF 22840#define off_t long int 22841_ACEOF 22842 22843fi 22844 22845ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 22846if test "x$ac_cv_type_pid_t" = x""yes; then : 22847 22848else 22849 22850cat >>confdefs.h <<_ACEOF 22851#define pid_t int 22852_ACEOF 22853 22854fi 22855 22856# c89: AC_TYPE_SIZE_T 22857# c89: AC_C_CONST 22858# gnulib: AC_HEADER_STDBOOL 22859ac_fn_c_check_type "$LINENO" "comparison_fn_t" "ac_cv_type_comparison_fn_t" "$ac_includes_default" 22860if test "x$ac_cv_type_comparison_fn_t" = x""yes; then : 22861 22862cat >>confdefs.h <<_ACEOF 22863#define HAVE_COMPARISON_FN_T 1 22864_ACEOF 22865 22866 22867fi 22868 22869 22870# Checks for library functions. 22871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 22872$as_echo_n "checking whether closedir returns void... " >&6; } 22873if test "${ac_cv_func_closedir_void+set}" = set; then : 22874 $as_echo_n "(cached) " >&6 22875else 22876 if test "$cross_compiling" = yes; then : 22877 ac_cv_func_closedir_void=yes 22878else 22879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22880/* end confdefs.h. */ 22881$ac_includes_default 22882#include <$ac_header_dirent> 22883#ifndef __cplusplus 22884int closedir (); 22885#endif 22886 22887int 22888main () 22889{ 22890return closedir (opendir (".")) != 0; 22891 ; 22892 return 0; 22893} 22894_ACEOF 22895if ac_fn_c_try_run "$LINENO"; then : 22896 ac_cv_func_closedir_void=no 22897else 22898 ac_cv_func_closedir_void=yes 22899fi 22900rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22901 conftest.$ac_objext conftest.beam conftest.$ac_ext 22902fi 22903 22904fi 22905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5 22906$as_echo "$ac_cv_func_closedir_void" >&6; } 22907if test $ac_cv_func_closedir_void = yes; then 22908 22909$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h 22910 22911fi 22912 22913for ac_header in vfork.h 22914do : 22915 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 22916if test "x$ac_cv_header_vfork_h" = x""yes; then : 22917 cat >>confdefs.h <<_ACEOF 22918#define HAVE_VFORK_H 1 22919_ACEOF 22920 22921fi 22922 22923done 22924 22925for ac_func in fork vfork 22926do : 22927 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22928ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 22929if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 22930 cat >>confdefs.h <<_ACEOF 22931#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 22932_ACEOF 22933 22934fi 22935done 22936 22937if test "x$ac_cv_func_fork" = xyes; then 22938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 22939$as_echo_n "checking for working fork... " >&6; } 22940if test "${ac_cv_func_fork_works+set}" = set; then : 22941 $as_echo_n "(cached) " >&6 22942else 22943 if test "$cross_compiling" = yes; then : 22944 ac_cv_func_fork_works=cross 22945else 22946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22947/* end confdefs.h. */ 22948$ac_includes_default 22949int 22950main () 22951{ 22952 22953 /* By Ruediger Kuhlmann. */ 22954 return fork () < 0; 22955 22956 ; 22957 return 0; 22958} 22959_ACEOF 22960if ac_fn_c_try_run "$LINENO"; then : 22961 ac_cv_func_fork_works=yes 22962else 22963 ac_cv_func_fork_works=no 22964fi 22965rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22966 conftest.$ac_objext conftest.beam conftest.$ac_ext 22967fi 22968 22969fi 22970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 22971$as_echo "$ac_cv_func_fork_works" >&6; } 22972 22973else 22974 ac_cv_func_fork_works=$ac_cv_func_fork 22975fi 22976if test "x$ac_cv_func_fork_works" = xcross; then 22977 case $host in 22978 *-*-amigaos* | *-*-msdosdjgpp*) 22979 # Override, as these systems have only a dummy fork() stub 22980 ac_cv_func_fork_works=no 22981 ;; 22982 *) 22983 ac_cv_func_fork_works=yes 22984 ;; 22985 esac 22986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 22987$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 22988fi 22989ac_cv_func_vfork_works=$ac_cv_func_vfork 22990if test "x$ac_cv_func_vfork" = xyes; then 22991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 22992$as_echo_n "checking for working vfork... " >&6; } 22993if test "${ac_cv_func_vfork_works+set}" = set; then : 22994 $as_echo_n "(cached) " >&6 22995else 22996 if test "$cross_compiling" = yes; then : 22997 ac_cv_func_vfork_works=cross 22998else 22999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23000/* end confdefs.h. */ 23001/* Thanks to Paul Eggert for this test. */ 23002$ac_includes_default 23003#include <sys/wait.h> 23004#ifdef HAVE_VFORK_H 23005# include <vfork.h> 23006#endif 23007/* On some sparc systems, changes by the child to local and incoming 23008 argument registers are propagated back to the parent. The compiler 23009 is told about this with #include <vfork.h>, but some compilers 23010 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 23011 static variable whose address is put into a register that is 23012 clobbered by the vfork. */ 23013static void 23014#ifdef __cplusplus 23015sparc_address_test (int arg) 23016# else 23017sparc_address_test (arg) int arg; 23018#endif 23019{ 23020 static pid_t child; 23021 if (!child) { 23022 child = vfork (); 23023 if (child < 0) { 23024 perror ("vfork"); 23025 _exit(2); 23026 } 23027 if (!child) { 23028 arg = getpid(); 23029 write(-1, "", 0); 23030 _exit (arg); 23031 } 23032 } 23033} 23034 23035int 23036main () 23037{ 23038 pid_t parent = getpid (); 23039 pid_t child; 23040 23041 sparc_address_test (0); 23042 23043 child = vfork (); 23044 23045 if (child == 0) { 23046 /* Here is another test for sparc vfork register problems. This 23047 test uses lots of local variables, at least as many local 23048 variables as main has allocated so far including compiler 23049 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 23050 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 23051 reuse the register of parent for one of the local variables, 23052 since it will think that parent can't possibly be used any more 23053 in this routine. Assigning to the local variable will thus 23054 munge parent in the parent process. */ 23055 pid_t 23056 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 23057 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 23058 /* Convince the compiler that p..p7 are live; otherwise, it might 23059 use the same hardware register for all 8 local variables. */ 23060 if (p != p1 || p != p2 || p != p3 || p != p4 23061 || p != p5 || p != p6 || p != p7) 23062 _exit(1); 23063 23064 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 23065 from child file descriptors. If the child closes a descriptor 23066 before it execs or exits, this munges the parent's descriptor 23067 as well. Test for this by closing stdout in the child. */ 23068 _exit(close(fileno(stdout)) != 0); 23069 } else { 23070 int status; 23071 struct stat st; 23072 23073 while (wait(&status) != child) 23074 ; 23075 return ( 23076 /* Was there some problem with vforking? */ 23077 child < 0 23078 23079 /* Did the child fail? (This shouldn't happen.) */ 23080 || status 23081 23082 /* Did the vfork/compiler bug occur? */ 23083 || parent != getpid() 23084 23085 /* Did the file descriptor bug occur? */ 23086 || fstat(fileno(stdout), &st) != 0 23087 ); 23088 } 23089} 23090_ACEOF 23091if ac_fn_c_try_run "$LINENO"; then : 23092 ac_cv_func_vfork_works=yes 23093else 23094 ac_cv_func_vfork_works=no 23095fi 23096rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23097 conftest.$ac_objext conftest.beam conftest.$ac_ext 23098fi 23099 23100fi 23101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 23102$as_echo "$ac_cv_func_vfork_works" >&6; } 23103 23104fi; 23105if test "x$ac_cv_func_fork_works" = xcross; then 23106 ac_cv_func_vfork_works=$ac_cv_func_vfork 23107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 23108$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 23109fi 23110 23111if test "x$ac_cv_func_vfork_works" = xyes; then 23112 23113$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 23114 23115else 23116 23117$as_echo "#define vfork fork" >>confdefs.h 23118 23119fi 23120if test "x$ac_cv_func_fork_works" = xyes; then 23121 23122$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 23123 23124fi 23125 23126for ac_func in fchdir lstat64 23127do : 23128 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 23129ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 23130if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 23131 cat >>confdefs.h <<_ACEOF 23132#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 23133_ACEOF 23134 23135fi 23136done 23137 23138# c89: AC_FUNC_VPRINTF 23139# c89: AC_CHECK_FUNCS([strchr strrchr setlocale]) 23140# gnulib: AC_FUNC_LSTAT 23141# gnulib: AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK 23142# gnulib: AC_FUNC_MALLOC 23143# gnulib: AC_FUNC_REALLOC 23144# gnulib: AC_FUNC_STAT 23145# gnulib: AC_CHECK_FUNCS([dup2 gettimeofday memmove strcasecmp strdup strerror strndup strstr]) 23146# Check whether --enable-largefile was given. 23147if test "${enable_largefile+set}" = set; then : 23148 enableval=$enable_largefile; 23149fi 23150 23151if test "$enable_largefile" != no; then 23152 23153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 23154$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 23155if test "${ac_cv_sys_largefile_CC+set}" = set; then : 23156 $as_echo_n "(cached) " >&6 23157else 23158 ac_cv_sys_largefile_CC=no 23159 if test "$GCC" != yes; then 23160 ac_save_CC=$CC 23161 while :; do 23162 # IRIX 6.2 and later do not support large files by default, 23163 # so use the C compiler's -n32 option if that helps. 23164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23165/* end confdefs.h. */ 23166#include <sys/types.h> 23167 /* Check that off_t can represent 2**63 - 1 correctly. 23168 We can't simply define LARGE_OFF_T to be 9223372036854775807, 23169 since some C++ compilers masquerading as C compilers 23170 incorrectly reject 9223372036854775807. */ 23171#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 23172 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 23173 && LARGE_OFF_T % 2147483647 == 1) 23174 ? 1 : -1]; 23175int 23176main () 23177{ 23178 23179 ; 23180 return 0; 23181} 23182_ACEOF 23183 if ac_fn_c_try_compile "$LINENO"; then : 23184 break 23185fi 23186rm -f core conftest.err conftest.$ac_objext 23187 CC="$CC -n32" 23188 if ac_fn_c_try_compile "$LINENO"; then : 23189 ac_cv_sys_largefile_CC=' -n32'; break 23190fi 23191rm -f core conftest.err conftest.$ac_objext 23192 break 23193 done 23194 CC=$ac_save_CC 23195 rm -f conftest.$ac_ext 23196 fi 23197fi 23198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 23199$as_echo "$ac_cv_sys_largefile_CC" >&6; } 23200 if test "$ac_cv_sys_largefile_CC" != no; then 23201 CC=$CC$ac_cv_sys_largefile_CC 23202 fi 23203 23204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 23205$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 23206if test "${ac_cv_sys_file_offset_bits+set}" = set; then : 23207 $as_echo_n "(cached) " >&6 23208else 23209 while :; do 23210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23211/* end confdefs.h. */ 23212#include <sys/types.h> 23213 /* Check that off_t can represent 2**63 - 1 correctly. 23214 We can't simply define LARGE_OFF_T to be 9223372036854775807, 23215 since some C++ compilers masquerading as C compilers 23216 incorrectly reject 9223372036854775807. */ 23217#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 23218 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 23219 && LARGE_OFF_T % 2147483647 == 1) 23220 ? 1 : -1]; 23221int 23222main () 23223{ 23224 23225 ; 23226 return 0; 23227} 23228_ACEOF 23229if ac_fn_c_try_compile "$LINENO"; then : 23230 ac_cv_sys_file_offset_bits=no; break 23231fi 23232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23234/* end confdefs.h. */ 23235#define _FILE_OFFSET_BITS 64 23236#include <sys/types.h> 23237 /* Check that off_t can represent 2**63 - 1 correctly. 23238 We can't simply define LARGE_OFF_T to be 9223372036854775807, 23239 since some C++ compilers masquerading as C compilers 23240 incorrectly reject 9223372036854775807. */ 23241#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 23242 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 23243 && LARGE_OFF_T % 2147483647 == 1) 23244 ? 1 : -1]; 23245int 23246main () 23247{ 23248 23249 ; 23250 return 0; 23251} 23252_ACEOF 23253if ac_fn_c_try_compile "$LINENO"; then : 23254 ac_cv_sys_file_offset_bits=64; break 23255fi 23256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23257 ac_cv_sys_file_offset_bits=unknown 23258 break 23259done 23260fi 23261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 23262$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 23263case $ac_cv_sys_file_offset_bits in #( 23264 no | unknown) ;; 23265 *) 23266cat >>confdefs.h <<_ACEOF 23267#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 23268_ACEOF 23269;; 23270esac 23271rm -rf conftest* 23272 if test $ac_cv_sys_file_offset_bits = unknown; then 23273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 23274$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 23275if test "${ac_cv_sys_large_files+set}" = set; then : 23276 $as_echo_n "(cached) " >&6 23277else 23278 while :; do 23279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23280/* end confdefs.h. */ 23281#include <sys/types.h> 23282 /* Check that off_t can represent 2**63 - 1 correctly. 23283 We can't simply define LARGE_OFF_T to be 9223372036854775807, 23284 since some C++ compilers masquerading as C compilers 23285 incorrectly reject 9223372036854775807. */ 23286#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 23287 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 23288 && LARGE_OFF_T % 2147483647 == 1) 23289 ? 1 : -1]; 23290int 23291main () 23292{ 23293 23294 ; 23295 return 0; 23296} 23297_ACEOF 23298if ac_fn_c_try_compile "$LINENO"; then : 23299 ac_cv_sys_large_files=no; break 23300fi 23301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23303/* end confdefs.h. */ 23304#define _LARGE_FILES 1 23305#include <sys/types.h> 23306 /* Check that off_t can represent 2**63 - 1 correctly. 23307 We can't simply define LARGE_OFF_T to be 9223372036854775807, 23308 since some C++ compilers masquerading as C compilers 23309 incorrectly reject 9223372036854775807. */ 23310#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 23311 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 23312 && LARGE_OFF_T % 2147483647 == 1) 23313 ? 1 : -1]; 23314int 23315main () 23316{ 23317 23318 ; 23319 return 0; 23320} 23321_ACEOF 23322if ac_fn_c_try_compile "$LINENO"; then : 23323 ac_cv_sys_large_files=1; break 23324fi 23325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23326 ac_cv_sys_large_files=unknown 23327 break 23328done 23329fi 23330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 23331$as_echo "$ac_cv_sys_large_files" >&6; } 23332case $ac_cv_sys_large_files in #( 23333 no | unknown) ;; 23334 *) 23335cat >>confdefs.h <<_ACEOF 23336#define _LARGE_FILES $ac_cv_sys_large_files 23337_ACEOF 23338;; 23339esac 23340rm -rf conftest* 23341 fi 23342 23343 23344fi 23345 23346 23347ac_config_files="$ac_config_files Makefile po/Makefile.in gnulib-po/Makefile.in gnulib-lib/Makefile src/Makefile src/common/Makefile src/editformats/Makefile renameutils.spec" 23348 23349cat >confcache <<\_ACEOF 23350# This file is a shell script that caches the results of configure 23351# tests run on this system so they can be shared between configure 23352# scripts and configure runs, see configure's option --config-cache. 23353# It is not useful on other systems. If it contains results you don't 23354# want to keep, you may remove or edit it. 23355# 23356# config.status only pays attention to the cache file if you give it 23357# the --recheck option to rerun configure. 23358# 23359# `ac_cv_env_foo' variables (set or unset) will be overridden when 23360# loading this file, other *unset* `ac_cv_foo' will be assigned the 23361# following values. 23362 23363_ACEOF 23364 23365# The following way of writing the cache mishandles newlines in values, 23366# but we know of no workaround that is simple, portable, and efficient. 23367# So, we kill variables containing newlines. 23368# Ultrix sh set writes to stderr and can't be redirected directly, 23369# and sets the high bit in the cache file unless we assign to the vars. 23370( 23371 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 23372 eval ac_val=\$$ac_var 23373 case $ac_val in #( 23374 *${as_nl}*) 23375 case $ac_var in #( 23376 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 23377$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 23378 esac 23379 case $ac_var in #( 23380 _ | IFS | as_nl) ;; #( 23381 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 23382 *) { eval $ac_var=; unset $ac_var;} ;; 23383 esac ;; 23384 esac 23385 done 23386 23387 (set) 2>&1 | 23388 case $as_nl`(ac_space=' '; set) 2>&1` in #( 23389 *${as_nl}ac_space=\ *) 23390 # `set' does not quote correctly, so add quotes: double-quote 23391 # substitution turns \\\\ into \\, and sed turns \\ into \. 23392 sed -n \ 23393 "s/'/'\\\\''/g; 23394 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 23395 ;; #( 23396 *) 23397 # `set' quotes correctly as required by POSIX, so do not add quotes. 23398 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 23399 ;; 23400 esac | 23401 sort 23402) | 23403 sed ' 23404 /^ac_cv_env_/b end 23405 t clear 23406 :clear 23407 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 23408 t end 23409 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 23410 :end' >>confcache 23411if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 23412 if test -w "$cache_file"; then 23413 test "x$cache_file" != "x/dev/null" && 23414 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 23415$as_echo "$as_me: updating cache $cache_file" >&6;} 23416 cat confcache >$cache_file 23417 else 23418 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 23419$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 23420 fi 23421fi 23422rm -f confcache 23423 23424test "x$prefix" = xNONE && prefix=$ac_default_prefix 23425# Let make expand exec_prefix. 23426test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 23427 23428DEFS=-DHAVE_CONFIG_H 23429 23430ac_libobjs= 23431ac_ltlibobjs= 23432U= 23433for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 23434 # 1. Remove the extension, and $U if already installed. 23435 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 23436 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 23437 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 23438 # will be set to the directory where LIBOBJS objects are built. 23439 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 23440 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 23441done 23442LIBOBJS=$ac_libobjs 23443 23444LTLIBOBJS=$ac_ltlibobjs 23445 23446 23447 if test -n "$EXEEXT"; then 23448 am__EXEEXT_TRUE= 23449 am__EXEEXT_FALSE='#' 23450else 23451 am__EXEEXT_TRUE='#' 23452 am__EXEEXT_FALSE= 23453fi 23454 23455if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 23456 as_fn_error $? "conditional \"AMDEP\" was never defined. 23457Usually this means the macro was only invoked conditionally." "$LINENO" 5 23458fi 23459if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 23460 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 23461Usually this means the macro was only invoked conditionally." "$LINENO" 5 23462fi 23463if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 23464 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 23465Usually this means the macro was only invoked conditionally." "$LINENO" 5 23466fi 23467if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then 23468 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined. 23469Usually this means the macro was only invoked conditionally." "$LINENO" 5 23470fi 23471if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then 23472 as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined. 23473Usually this means the macro was only invoked conditionally." "$LINENO" 5 23474fi 23475if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then 23476 as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined. 23477Usually this means the macro was only invoked conditionally." "$LINENO" 5 23478fi 23479if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then 23480 as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined. 23481Usually this means the macro was only invoked conditionally." "$LINENO" 5 23482fi 23483if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then 23484 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined. 23485Usually this means the macro was only invoked conditionally." "$LINENO" 5 23486fi 23487if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then 23488 as_fn_error $? "conditional \"GL_GENERATE_STDARG_H\" was never defined. 23489Usually this means the macro was only invoked conditionally." "$LINENO" 5 23490fi 23491if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then 23492 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined. 23493Usually this means the macro was only invoked conditionally." "$LINENO" 5 23494fi 23495if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then 23496 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined. 23497Usually this means the macro was only invoked conditionally." "$LINENO" 5 23498fi 23499if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then 23500 as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined. 23501Usually this means the macro was only invoked conditionally." "$LINENO" 5 23502fi 23503 23504 23505 gl_libobjs= 23506 gl_ltlibobjs= 23507 if test -n "$gl_LIBOBJS"; then 23508 # Remove the extension. 23509 sed_drop_objext='s/\.o$//;s/\.obj$//' 23510 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do 23511 gl_libobjs="$gl_libobjs $i.$ac_objext" 23512 gl_ltlibobjs="$gl_ltlibobjs $i.lo" 23513 done 23514 fi 23515 gl_LIBOBJS=$gl_libobjs 23516 23517 gl_LTLIBOBJS=$gl_ltlibobjs 23518 23519 23520 23521 gltests_libobjs= 23522 gltests_ltlibobjs= 23523 if test -n "$gltests_LIBOBJS"; then 23524 # Remove the extension. 23525 sed_drop_objext='s/\.o$//;s/\.obj$//' 23526 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do 23527 gltests_libobjs="$gltests_libobjs $i.$ac_objext" 23528 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo" 23529 done 23530 fi 23531 gltests_LIBOBJS=$gltests_libobjs 23532 23533 gltests_LTLIBOBJS=$gltests_ltlibobjs 23534 23535 23536 23537: ${CONFIG_STATUS=./config.status} 23538ac_write_fail=0 23539ac_clean_files_save=$ac_clean_files 23540ac_clean_files="$ac_clean_files $CONFIG_STATUS" 23541{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 23542$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 23543as_write_fail=0 23544cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 23545#! $SHELL 23546# Generated by $as_me. 23547# Run this file to recreate the current configuration. 23548# Compiler output produced by configure, useful for debugging 23549# configure, is in config.log if it exists. 23550 23551debug=false 23552ac_cs_recheck=false 23553ac_cs_silent=false 23554 23555SHELL=\${CONFIG_SHELL-$SHELL} 23556export SHELL 23557_ASEOF 23558cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 23559## -------------------- ## 23560## M4sh Initialization. ## 23561## -------------------- ## 23562 23563# Be more Bourne compatible 23564DUALCASE=1; export DUALCASE # for MKS sh 23565if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 23566 emulate sh 23567 NULLCMD=: 23568 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23569 # is contrary to our usage. Disable this feature. 23570 alias -g '${1+"$@"}'='"$@"' 23571 setopt NO_GLOB_SUBST 23572else 23573 case `(set -o) 2>/dev/null` in #( 23574 *posix*) : 23575 set -o posix ;; #( 23576 *) : 23577 ;; 23578esac 23579fi 23580 23581 23582as_nl=' 23583' 23584export as_nl 23585# Printing a long string crashes Solaris 7 /usr/bin/printf. 23586as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 23587as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 23588as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 23589# Prefer a ksh shell builtin over an external printf program on Solaris, 23590# but without wasting forks for bash or zsh. 23591if test -z "$BASH_VERSION$ZSH_VERSION" \ 23592 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 23593 as_echo='print -r --' 23594 as_echo_n='print -rn --' 23595elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 23596 as_echo='printf %s\n' 23597 as_echo_n='printf %s' 23598else 23599 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 23600 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 23601 as_echo_n='/usr/ucb/echo -n' 23602 else 23603 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 23604 as_echo_n_body='eval 23605 arg=$1; 23606 case $arg in #( 23607 *"$as_nl"*) 23608 expr "X$arg" : "X\\(.*\\)$as_nl"; 23609 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 23610 esac; 23611 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 23612 ' 23613 export as_echo_n_body 23614 as_echo_n='sh -c $as_echo_n_body as_echo' 23615 fi 23616 export as_echo_body 23617 as_echo='sh -c $as_echo_body as_echo' 23618fi 23619 23620# The user is always right. 23621if test "${PATH_SEPARATOR+set}" != set; then 23622 PATH_SEPARATOR=: 23623 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 23624 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 23625 PATH_SEPARATOR=';' 23626 } 23627fi 23628 23629 23630# IFS 23631# We need space, tab and new line, in precisely that order. Quoting is 23632# there to prevent editors from complaining about space-tab. 23633# (If _AS_PATH_WALK were called with IFS unset, it would disable word 23634# splitting by setting IFS to empty value.) 23635IFS=" "" $as_nl" 23636 23637# Find who we are. Look in the path if we contain no directory separator. 23638case $0 in #(( 23639 *[\\/]* ) as_myself=$0 ;; 23640 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23641for as_dir in $PATH 23642do 23643 IFS=$as_save_IFS 23644 test -z "$as_dir" && as_dir=. 23645 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 23646 done 23647IFS=$as_save_IFS 23648 23649 ;; 23650esac 23651# We did not find ourselves, most probably we were run as `sh COMMAND' 23652# in which case we are not to be found in the path. 23653if test "x$as_myself" = x; then 23654 as_myself=$0 23655fi 23656if test ! -f "$as_myself"; then 23657 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 23658 exit 1 23659fi 23660 23661# Unset variables that we do not need and which cause bugs (e.g. in 23662# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 23663# suppresses any "Segmentation fault" message there. '((' could 23664# trigger a bug in pdksh 5.2.14. 23665for as_var in BASH_ENV ENV MAIL MAILPATH 23666do eval test x\${$as_var+set} = xset \ 23667 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 23668done 23669PS1='$ ' 23670PS2='> ' 23671PS4='+ ' 23672 23673# NLS nuisances. 23674LC_ALL=C 23675export LC_ALL 23676LANGUAGE=C 23677export LANGUAGE 23678 23679# CDPATH. 23680(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 23681 23682 23683# as_fn_error STATUS ERROR [LINENO LOG_FD] 23684# ---------------------------------------- 23685# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 23686# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 23687# script with STATUS, using 1 if that was 0. 23688as_fn_error () 23689{ 23690 as_status=$1; test $as_status -eq 0 && as_status=1 23691 if test "$4"; then 23692 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 23693 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 23694 fi 23695 $as_echo "$as_me: error: $2" >&2 23696 as_fn_exit $as_status 23697} # as_fn_error 23698 23699 23700# as_fn_set_status STATUS 23701# ----------------------- 23702# Set $? to STATUS, without forking. 23703as_fn_set_status () 23704{ 23705 return $1 23706} # as_fn_set_status 23707 23708# as_fn_exit STATUS 23709# ----------------- 23710# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 23711as_fn_exit () 23712{ 23713 set +e 23714 as_fn_set_status $1 23715 exit $1 23716} # as_fn_exit 23717 23718# as_fn_unset VAR 23719# --------------- 23720# Portably unset VAR. 23721as_fn_unset () 23722{ 23723 { eval $1=; unset $1;} 23724} 23725as_unset=as_fn_unset 23726# as_fn_append VAR VALUE 23727# ---------------------- 23728# Append the text in VALUE to the end of the definition contained in VAR. Take 23729# advantage of any shell optimizations that allow amortized linear growth over 23730# repeated appends, instead of the typical quadratic growth present in naive 23731# implementations. 23732if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 23733 eval 'as_fn_append () 23734 { 23735 eval $1+=\$2 23736 }' 23737else 23738 as_fn_append () 23739 { 23740 eval $1=\$$1\$2 23741 } 23742fi # as_fn_append 23743 23744# as_fn_arith ARG... 23745# ------------------ 23746# Perform arithmetic evaluation on the ARGs, and store the result in the 23747# global $as_val. Take advantage of shells that can avoid forks. The arguments 23748# must be portable across $(()) and expr. 23749if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 23750 eval 'as_fn_arith () 23751 { 23752 as_val=$(( $* )) 23753 }' 23754else 23755 as_fn_arith () 23756 { 23757 as_val=`expr "$@" || test $? -eq 1` 23758 } 23759fi # as_fn_arith 23760 23761 23762if expr a : '\(a\)' >/dev/null 2>&1 && 23763 test "X`expr 00001 : '.*\(...\)'`" = X001; then 23764 as_expr=expr 23765else 23766 as_expr=false 23767fi 23768 23769if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 23770 as_basename=basename 23771else 23772 as_basename=false 23773fi 23774 23775if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 23776 as_dirname=dirname 23777else 23778 as_dirname=false 23779fi 23780 23781as_me=`$as_basename -- "$0" || 23782$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 23783 X"$0" : 'X\(//\)$' \| \ 23784 X"$0" : 'X\(/\)' \| . 2>/dev/null || 23785$as_echo X/"$0" | 23786 sed '/^.*\/\([^/][^/]*\)\/*$/{ 23787 s//\1/ 23788 q 23789 } 23790 /^X\/\(\/\/\)$/{ 23791 s//\1/ 23792 q 23793 } 23794 /^X\/\(\/\).*/{ 23795 s//\1/ 23796 q 23797 } 23798 s/.*/./; q'` 23799 23800# Avoid depending upon Character Ranges. 23801as_cr_letters='abcdefghijklmnopqrstuvwxyz' 23802as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 23803as_cr_Letters=$as_cr_letters$as_cr_LETTERS 23804as_cr_digits='0123456789' 23805as_cr_alnum=$as_cr_Letters$as_cr_digits 23806 23807ECHO_C= ECHO_N= ECHO_T= 23808case `echo -n x` in #((((( 23809-n*) 23810 case `echo 'xy\c'` in 23811 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 23812 xy) ECHO_C='\c';; 23813 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 23814 ECHO_T=' ';; 23815 esac;; 23816*) 23817 ECHO_N='-n';; 23818esac 23819 23820rm -f conf$$ conf$$.exe conf$$.file 23821if test -d conf$$.dir; then 23822 rm -f conf$$.dir/conf$$.file 23823else 23824 rm -f conf$$.dir 23825 mkdir conf$$.dir 2>/dev/null 23826fi 23827if (echo >conf$$.file) 2>/dev/null; then 23828 if ln -s conf$$.file conf$$ 2>/dev/null; then 23829 as_ln_s='ln -s' 23830 # ... but there are two gotchas: 23831 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 23832 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 23833 # In both cases, we have to default to `cp -p'. 23834 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 23835 as_ln_s='cp -p' 23836 elif ln conf$$.file conf$$ 2>/dev/null; then 23837 as_ln_s=ln 23838 else 23839 as_ln_s='cp -p' 23840 fi 23841else 23842 as_ln_s='cp -p' 23843fi 23844rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 23845rmdir conf$$.dir 2>/dev/null 23846 23847 23848# as_fn_mkdir_p 23849# ------------- 23850# Create "$as_dir" as a directory, including parents if necessary. 23851as_fn_mkdir_p () 23852{ 23853 23854 case $as_dir in #( 23855 -*) as_dir=./$as_dir;; 23856 esac 23857 test -d "$as_dir" || eval $as_mkdir_p || { 23858 as_dirs= 23859 while :; do 23860 case $as_dir in #( 23861 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 23862 *) as_qdir=$as_dir;; 23863 esac 23864 as_dirs="'$as_qdir' $as_dirs" 23865 as_dir=`$as_dirname -- "$as_dir" || 23866$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23867 X"$as_dir" : 'X\(//\)[^/]' \| \ 23868 X"$as_dir" : 'X\(//\)$' \| \ 23869 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23870$as_echo X"$as_dir" | 23871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23872 s//\1/ 23873 q 23874 } 23875 /^X\(\/\/\)[^/].*/{ 23876 s//\1/ 23877 q 23878 } 23879 /^X\(\/\/\)$/{ 23880 s//\1/ 23881 q 23882 } 23883 /^X\(\/\).*/{ 23884 s//\1/ 23885 q 23886 } 23887 s/.*/./; q'` 23888 test -d "$as_dir" && break 23889 done 23890 test -z "$as_dirs" || eval "mkdir $as_dirs" 23891 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 23892 23893 23894} # as_fn_mkdir_p 23895if mkdir -p . 2>/dev/null; then 23896 as_mkdir_p='mkdir -p "$as_dir"' 23897else 23898 test -d ./-p && rmdir ./-p 23899 as_mkdir_p=false 23900fi 23901 23902if test -x / >/dev/null 2>&1; then 23903 as_test_x='test -x' 23904else 23905 if ls -dL / >/dev/null 2>&1; then 23906 as_ls_L_option=L 23907 else 23908 as_ls_L_option= 23909 fi 23910 as_test_x=' 23911 eval sh -c '\'' 23912 if test -d "$1"; then 23913 test -d "$1/."; 23914 else 23915 case $1 in #( 23916 -*)set "./$1";; 23917 esac; 23918 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 23919 ???[sx]*):;;*)false;;esac;fi 23920 '\'' sh 23921 ' 23922fi 23923as_executable_p=$as_test_x 23924 23925# Sed expression to map a string onto a valid CPP name. 23926as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 23927 23928# Sed expression to map a string onto a valid variable name. 23929as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 23930 23931 23932exec 6>&1 23933## ----------------------------------- ## 23934## Main body of $CONFIG_STATUS script. ## 23935## ----------------------------------- ## 23936_ASEOF 23937test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 23938 23939cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23940# Save the log message, to keep $0 and so on meaningful, and to 23941# report actual input values of CONFIG_FILES etc. instead of their 23942# values after options handling. 23943ac_log=" 23944This file was extended by renameutils $as_me 0.12.0, which was 23945generated by GNU Autoconf 2.67. Invocation command line was 23946 23947 CONFIG_FILES = $CONFIG_FILES 23948 CONFIG_HEADERS = $CONFIG_HEADERS 23949 CONFIG_LINKS = $CONFIG_LINKS 23950 CONFIG_COMMANDS = $CONFIG_COMMANDS 23951 $ $0 $@ 23952 23953on `(hostname || uname -n) 2>/dev/null | sed 1q` 23954" 23955 23956_ACEOF 23957 23958case $ac_config_files in *" 23959"*) set x $ac_config_files; shift; ac_config_files=$*;; 23960esac 23961 23962case $ac_config_headers in *" 23963"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 23964esac 23965 23966 23967cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23968# Files that config.status was made for. 23969config_files="$ac_config_files" 23970config_headers="$ac_config_headers" 23971config_commands="$ac_config_commands" 23972 23973_ACEOF 23974 23975cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23976ac_cs_usage="\ 23977\`$as_me' instantiates files and other configuration actions 23978from templates according to the current configuration. Unless the files 23979and actions are specified as TAGs, all are instantiated by default. 23980 23981Usage: $0 [OPTION]... [TAG]... 23982 23983 -h, --help print this help, then exit 23984 -V, --version print version number and configuration settings, then exit 23985 --config print configuration, then exit 23986 -q, --quiet, --silent 23987 do not print progress messages 23988 -d, --debug don't remove temporary files 23989 --recheck update $as_me by reconfiguring in the same conditions 23990 --file=FILE[:TEMPLATE] 23991 instantiate the configuration file FILE 23992 --header=FILE[:TEMPLATE] 23993 instantiate the configuration header FILE 23994 23995Configuration files: 23996$config_files 23997 23998Configuration headers: 23999$config_headers 24000 24001Configuration commands: 24002$config_commands 24003 24004Report bugs to <oskar@osk.mine.nu>." 24005 24006_ACEOF 24007cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24008ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 24009ac_cs_version="\\ 24010renameutils config.status 0.12.0 24011configured by $0, generated by GNU Autoconf 2.67, 24012 with options \\"\$ac_cs_config\\" 24013 24014Copyright (C) 2010 Free Software Foundation, Inc. 24015This config.status script is free software; the Free Software Foundation 24016gives unlimited permission to copy, distribute and modify it." 24017 24018ac_pwd='$ac_pwd' 24019srcdir='$srcdir' 24020INSTALL='$INSTALL' 24021MKDIR_P='$MKDIR_P' 24022AWK='$AWK' 24023test -n "\$AWK" || AWK=awk 24024_ACEOF 24025 24026cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24027# The default lists apply if the user does not specify any file. 24028ac_need_defaults=: 24029while test $# != 0 24030do 24031 case $1 in 24032 --*=?*) 24033 ac_option=`expr "X$1" : 'X\([^=]*\)='` 24034 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 24035 ac_shift=: 24036 ;; 24037 --*=) 24038 ac_option=`expr "X$1" : 'X\([^=]*\)='` 24039 ac_optarg= 24040 ac_shift=: 24041 ;; 24042 *) 24043 ac_option=$1 24044 ac_optarg=$2 24045 ac_shift=shift 24046 ;; 24047 esac 24048 24049 case $ac_option in 24050 # Handling of the options. 24051 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 24052 ac_cs_recheck=: ;; 24053 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 24054 $as_echo "$ac_cs_version"; exit ;; 24055 --config | --confi | --conf | --con | --co | --c ) 24056 $as_echo "$ac_cs_config"; exit ;; 24057 --debug | --debu | --deb | --de | --d | -d ) 24058 debug=: ;; 24059 --file | --fil | --fi | --f ) 24060 $ac_shift 24061 case $ac_optarg in 24062 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 24063 '') as_fn_error $? "missing file argument" ;; 24064 esac 24065 as_fn_append CONFIG_FILES " '$ac_optarg'" 24066 ac_need_defaults=false;; 24067 --header | --heade | --head | --hea ) 24068 $ac_shift 24069 case $ac_optarg in 24070 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 24071 esac 24072 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 24073 ac_need_defaults=false;; 24074 --he | --h) 24075 # Conflict between --help and --header 24076 as_fn_error $? "ambiguous option: \`$1' 24077Try \`$0 --help' for more information.";; 24078 --help | --hel | -h ) 24079 $as_echo "$ac_cs_usage"; exit ;; 24080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 24081 | -silent | --silent | --silen | --sile | --sil | --si | --s) 24082 ac_cs_silent=: ;; 24083 24084 # This is an error. 24085 -*) as_fn_error $? "unrecognized option: \`$1' 24086Try \`$0 --help' for more information." ;; 24087 24088 *) as_fn_append ac_config_targets " $1" 24089 ac_need_defaults=false ;; 24090 24091 esac 24092 shift 24093done 24094 24095ac_configure_extra_args= 24096 24097if $ac_cs_silent; then 24098 exec 6>/dev/null 24099 ac_configure_extra_args="$ac_configure_extra_args --silent" 24100fi 24101 24102_ACEOF 24103cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24104if \$ac_cs_recheck; then 24105 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 24106 shift 24107 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 24108 CONFIG_SHELL='$SHELL' 24109 export CONFIG_SHELL 24110 exec "\$@" 24111fi 24112 24113_ACEOF 24114cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24115exec 5>>config.log 24116{ 24117 echo 24118 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 24119## Running $as_me. ## 24120_ASBOX 24121 $as_echo "$ac_log" 24122} >&5 24123 24124_ACEOF 24125cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24126# 24127# INIT-COMMANDS 24128# 24129AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 24130# Capture the value of obsolete ALL_LINGUAS because we need it to compute 24131 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 24132 # from automake < 1.5. 24133 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 24134 # Capture the value of LINGUAS because we need it to compute CATALOGS. 24135 LINGUAS="${LINGUAS-%UNSET%}" 24136 24137 24138_ACEOF 24139 24140cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24141 24142# Handling of arguments. 24143for ac_config_target in $ac_config_targets 24144do 24145 case $ac_config_target in 24146 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 24147 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 24148 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; 24149 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 24150 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 24151 "gnulib-po/Makefile.in") CONFIG_FILES="$CONFIG_FILES gnulib-po/Makefile.in" ;; 24152 "gnulib-lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib-lib/Makefile" ;; 24153 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 24154 "src/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;; 24155 "src/editformats/Makefile") CONFIG_FILES="$CONFIG_FILES src/editformats/Makefile" ;; 24156 "renameutils.spec") CONFIG_FILES="$CONFIG_FILES renameutils.spec" ;; 24157 24158 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; 24159 esac 24160done 24161 24162 24163# If the user did not use the arguments to specify the items to instantiate, 24164# then the envvar interface is used. Set only those that are not. 24165# We use the long form for the default assignment because of an extremely 24166# bizarre bug on SunOS 4.1.3. 24167if $ac_need_defaults; then 24168 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 24169 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 24170 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 24171fi 24172 24173# Have a temporary directory for convenience. Make it in the build tree 24174# simply because there is no reason against having it here, and in addition, 24175# creating and moving files from /tmp can sometimes cause problems. 24176# Hook for its removal unless debugging. 24177# Note that there is a small window in which the directory will not be cleaned: 24178# after its creation but before its name has been assigned to `$tmp'. 24179$debug || 24180{ 24181 tmp= 24182 trap 'exit_status=$? 24183 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 24184' 0 24185 trap 'as_fn_exit 1' 1 2 13 15 24186} 24187# Create a (secure) tmp directory for tmp files. 24188 24189{ 24190 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 24191 test -n "$tmp" && test -d "$tmp" 24192} || 24193{ 24194 tmp=./conf$$-$RANDOM 24195 (umask 077 && mkdir "$tmp") 24196} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 24197 24198# Set up the scripts for CONFIG_FILES section. 24199# No need to generate them if there are no CONFIG_FILES. 24200# This happens for instance with `./config.status config.h'. 24201if test -n "$CONFIG_FILES"; then 24202 24203 24204ac_cr=`echo X | tr X '\015'` 24205# On cygwin, bash can eat \r inside `` if the user requested igncr. 24206# But we know of no other shell where ac_cr would be empty at this 24207# point, so we can use a bashism as a fallback. 24208if test "x$ac_cr" = x; then 24209 eval ac_cr=\$\'\\r\' 24210fi 24211ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 24212if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 24213 ac_cs_awk_cr='\\r' 24214else 24215 ac_cs_awk_cr=$ac_cr 24216fi 24217 24218echo 'BEGIN {' >"$tmp/subs1.awk" && 24219_ACEOF 24220 24221 24222{ 24223 echo "cat >conf$$subs.awk <<_ACEOF" && 24224 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 24225 echo "_ACEOF" 24226} >conf$$subs.sh || 24227 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 24228ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 24229ac_delim='%!_!# ' 24230for ac_last_try in false false false false false :; do 24231 . ./conf$$subs.sh || 24232 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 24233 24234 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 24235 if test $ac_delim_n = $ac_delim_num; then 24236 break 24237 elif $ac_last_try; then 24238 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 24239 else 24240 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 24241 fi 24242done 24243rm -f conf$$subs.sh 24244 24245cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24246cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 24247_ACEOF 24248sed -n ' 24249h 24250s/^/S["/; s/!.*/"]=/ 24251p 24252g 24253s/^[^!]*!// 24254:repl 24255t repl 24256s/'"$ac_delim"'$// 24257t delim 24258:nl 24259h 24260s/\(.\{148\}\)..*/\1/ 24261t more1 24262s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 24263p 24264n 24265b repl 24266:more1 24267s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 24268p 24269g 24270s/.\{148\}// 24271t nl 24272:delim 24273h 24274s/\(.\{148\}\)..*/\1/ 24275t more2 24276s/["\\]/\\&/g; s/^/"/; s/$/"/ 24277p 24278b 24279:more2 24280s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 24281p 24282g 24283s/.\{148\}// 24284t delim 24285' <conf$$subs.awk | sed ' 24286/^[^""]/{ 24287 N 24288 s/\n// 24289} 24290' >>$CONFIG_STATUS || ac_write_fail=1 24291rm -f conf$$subs.awk 24292cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24293_ACAWK 24294cat >>"\$tmp/subs1.awk" <<_ACAWK && 24295 for (key in S) S_is_set[key] = 1 24296 FS = "" 24297 24298} 24299{ 24300 line = $ 0 24301 nfields = split(line, field, "@") 24302 substed = 0 24303 len = length(field[1]) 24304 for (i = 2; i < nfields; i++) { 24305 key = field[i] 24306 keylen = length(key) 24307 if (S_is_set[key]) { 24308 value = S[key] 24309 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 24310 len += length(value) + length(field[++i]) 24311 substed = 1 24312 } else 24313 len += 1 + keylen 24314 } 24315 24316 print line 24317} 24318 24319_ACAWK 24320_ACEOF 24321cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24322if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 24323 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 24324else 24325 cat 24326fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 24327 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 24328_ACEOF 24329 24330# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 24331# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 24332# trailing colons and then remove the whole line if VPATH becomes empty 24333# (actually we leave an empty line to preserve line numbers). 24334if test "x$srcdir" = x.; then 24335 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 24336h 24337s/// 24338s/^/:/ 24339s/[ ]*$/:/ 24340s/:\$(srcdir):/:/g 24341s/:\${srcdir}:/:/g 24342s/:@srcdir@:/:/g 24343s/^:*// 24344s/:*$// 24345x 24346s/\(=[ ]*\).*/\1/ 24347G 24348s/\n// 24349s/^[^=]*=[ ]*$// 24350}' 24351fi 24352 24353cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24354fi # test -n "$CONFIG_FILES" 24355 24356# Set up the scripts for CONFIG_HEADERS section. 24357# No need to generate them if there are no CONFIG_HEADERS. 24358# This happens for instance with `./config.status Makefile'. 24359if test -n "$CONFIG_HEADERS"; then 24360cat >"$tmp/defines.awk" <<\_ACAWK || 24361BEGIN { 24362_ACEOF 24363 24364# Transform confdefs.h into an awk script `defines.awk', embedded as 24365# here-document in config.status, that substitutes the proper values into 24366# config.h.in to produce config.h. 24367 24368# Create a delimiter string that does not exist in confdefs.h, to ease 24369# handling of long lines. 24370ac_delim='%!_!# ' 24371for ac_last_try in false false :; do 24372 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 24373 if test -z "$ac_t"; then 24374 break 24375 elif $ac_last_try; then 24376 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 24377 else 24378 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 24379 fi 24380done 24381 24382# For the awk script, D is an array of macro values keyed by name, 24383# likewise P contains macro parameters if any. Preserve backslash 24384# newline sequences. 24385 24386ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 24387sed -n ' 24388s/.\{148\}/&'"$ac_delim"'/g 24389t rset 24390:rset 24391s/^[ ]*#[ ]*define[ ][ ]*/ / 24392t def 24393d 24394:def 24395s/\\$// 24396t bsnl 24397s/["\\]/\\&/g 24398s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 24399D["\1"]=" \3"/p 24400s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 24401d 24402:bsnl 24403s/["\\]/\\&/g 24404s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 24405D["\1"]=" \3\\\\\\n"\\/p 24406t cont 24407s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 24408t cont 24409d 24410:cont 24411n 24412s/.\{148\}/&'"$ac_delim"'/g 24413t clear 24414:clear 24415s/\\$// 24416t bsnlc 24417s/["\\]/\\&/g; s/^/"/; s/$/"/p 24418d 24419:bsnlc 24420s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 24421b cont 24422' <confdefs.h | sed ' 24423s/'"$ac_delim"'/"\\\ 24424"/g' >>$CONFIG_STATUS || ac_write_fail=1 24425 24426cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24427 for (key in D) D_is_set[key] = 1 24428 FS = "" 24429} 24430/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 24431 line = \$ 0 24432 split(line, arg, " ") 24433 if (arg[1] == "#") { 24434 defundef = arg[2] 24435 mac1 = arg[3] 24436 } else { 24437 defundef = substr(arg[1], 2) 24438 mac1 = arg[2] 24439 } 24440 split(mac1, mac2, "(") #) 24441 macro = mac2[1] 24442 prefix = substr(line, 1, index(line, defundef) - 1) 24443 if (D_is_set[macro]) { 24444 # Preserve the white space surrounding the "#". 24445 print prefix "define", macro P[macro] D[macro] 24446 next 24447 } else { 24448 # Replace #undef with comments. This is necessary, for example, 24449 # in the case of _POSIX_SOURCE, which is predefined and required 24450 # on some systems where configure will not decide to define it. 24451 if (defundef == "undef") { 24452 print "/*", prefix defundef, macro, "*/" 24453 next 24454 } 24455 } 24456} 24457{ print } 24458_ACAWK 24459_ACEOF 24460cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24461 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 24462fi # test -n "$CONFIG_HEADERS" 24463 24464 24465eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 24466shift 24467for ac_tag 24468do 24469 case $ac_tag in 24470 :[FHLC]) ac_mode=$ac_tag; continue;; 24471 esac 24472 case $ac_mode$ac_tag in 24473 :[FHL]*:*);; 24474 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; 24475 :[FH]-) ac_tag=-:-;; 24476 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 24477 esac 24478 ac_save_IFS=$IFS 24479 IFS=: 24480 set x $ac_tag 24481 IFS=$ac_save_IFS 24482 shift 24483 ac_file=$1 24484 shift 24485 24486 case $ac_mode in 24487 :L) ac_source=$1;; 24488 :[FH]) 24489 ac_file_inputs= 24490 for ac_f 24491 do 24492 case $ac_f in 24493 -) ac_f="$tmp/stdin";; 24494 *) # Look for the file first in the build tree, then in the source tree 24495 # (if the path is not absolute). The absolute path cannot be DOS-style, 24496 # because $ac_f cannot contain `:'. 24497 test -f "$ac_f" || 24498 case $ac_f in 24499 [\\/$]*) false;; 24500 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 24501 esac || 24502 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; 24503 esac 24504 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 24505 as_fn_append ac_file_inputs " '$ac_f'" 24506 done 24507 24508 # Let's still pretend it is `configure' which instantiates (i.e., don't 24509 # use $as_me), people would be surprised to read: 24510 # /* config.h. Generated by config.status. */ 24511 configure_input='Generated from '` 24512 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 24513 `' by configure.' 24514 if test x"$ac_file" != x-; then 24515 configure_input="$ac_file. $configure_input" 24516 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 24517$as_echo "$as_me: creating $ac_file" >&6;} 24518 fi 24519 # Neutralize special characters interpreted by sed in replacement strings. 24520 case $configure_input in #( 24521 *\&* | *\|* | *\\* ) 24522 ac_sed_conf_input=`$as_echo "$configure_input" | 24523 sed 's/[\\\\&|]/\\\\&/g'`;; #( 24524 *) ac_sed_conf_input=$configure_input;; 24525 esac 24526 24527 case $ac_tag in 24528 *:-:* | *:-) cat >"$tmp/stdin" \ 24529 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 24530 esac 24531 ;; 24532 esac 24533 24534 ac_dir=`$as_dirname -- "$ac_file" || 24535$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24536 X"$ac_file" : 'X\(//\)[^/]' \| \ 24537 X"$ac_file" : 'X\(//\)$' \| \ 24538 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 24539$as_echo X"$ac_file" | 24540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24541 s//\1/ 24542 q 24543 } 24544 /^X\(\/\/\)[^/].*/{ 24545 s//\1/ 24546 q 24547 } 24548 /^X\(\/\/\)$/{ 24549 s//\1/ 24550 q 24551 } 24552 /^X\(\/\).*/{ 24553 s//\1/ 24554 q 24555 } 24556 s/.*/./; q'` 24557 as_dir="$ac_dir"; as_fn_mkdir_p 24558 ac_builddir=. 24559 24560case "$ac_dir" in 24561.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 24562*) 24563 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 24564 # A ".." for each directory in $ac_dir_suffix. 24565 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 24566 case $ac_top_builddir_sub in 24567 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 24568 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 24569 esac ;; 24570esac 24571ac_abs_top_builddir=$ac_pwd 24572ac_abs_builddir=$ac_pwd$ac_dir_suffix 24573# for backward compatibility: 24574ac_top_builddir=$ac_top_build_prefix 24575 24576case $srcdir in 24577 .) # We are building in place. 24578 ac_srcdir=. 24579 ac_top_srcdir=$ac_top_builddir_sub 24580 ac_abs_top_srcdir=$ac_pwd ;; 24581 [\\/]* | ?:[\\/]* ) # Absolute name. 24582 ac_srcdir=$srcdir$ac_dir_suffix; 24583 ac_top_srcdir=$srcdir 24584 ac_abs_top_srcdir=$srcdir ;; 24585 *) # Relative name. 24586 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 24587 ac_top_srcdir=$ac_top_build_prefix$srcdir 24588 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 24589esac 24590ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 24591 24592 24593 case $ac_mode in 24594 :F) 24595 # 24596 # CONFIG_FILE 24597 # 24598 24599 case $INSTALL in 24600 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 24601 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 24602 esac 24603 ac_MKDIR_P=$MKDIR_P 24604 case $MKDIR_P in 24605 [\\/$]* | ?:[\\/]* ) ;; 24606 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 24607 esac 24608_ACEOF 24609 24610cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24611# If the template does not know about datarootdir, expand it. 24612# FIXME: This hack should be removed a few years after 2.60. 24613ac_datarootdir_hack=; ac_datarootdir_seen= 24614ac_sed_dataroot=' 24615/datarootdir/ { 24616 p 24617 q 24618} 24619/@datadir@/p 24620/@docdir@/p 24621/@infodir@/p 24622/@localedir@/p 24623/@mandir@/p' 24624case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 24625*datarootdir*) ac_datarootdir_seen=yes;; 24626*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 24627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 24628$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 24629_ACEOF 24630cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24631 ac_datarootdir_hack=' 24632 s&@datadir@&$datadir&g 24633 s&@docdir@&$docdir&g 24634 s&@infodir@&$infodir&g 24635 s&@localedir@&$localedir&g 24636 s&@mandir@&$mandir&g 24637 s&\\\${datarootdir}&$datarootdir&g' ;; 24638esac 24639_ACEOF 24640 24641# Neutralize VPATH when `$srcdir' = `.'. 24642# Shell code in configure.ac might set extrasub. 24643# FIXME: do we really want to maintain this feature? 24644cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24645ac_sed_extra="$ac_vpsub 24646$extrasub 24647_ACEOF 24648cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24649:t 24650/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 24651s|@configure_input@|$ac_sed_conf_input|;t t 24652s&@top_builddir@&$ac_top_builddir_sub&;t t 24653s&@top_build_prefix@&$ac_top_build_prefix&;t t 24654s&@srcdir@&$ac_srcdir&;t t 24655s&@abs_srcdir@&$ac_abs_srcdir&;t t 24656s&@top_srcdir@&$ac_top_srcdir&;t t 24657s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 24658s&@builddir@&$ac_builddir&;t t 24659s&@abs_builddir@&$ac_abs_builddir&;t t 24660s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 24661s&@INSTALL@&$ac_INSTALL&;t t 24662s&@MKDIR_P@&$ac_MKDIR_P&;t t 24663$ac_datarootdir_hack 24664" 24665eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 24666 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24667 24668test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 24669 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 24670 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 24671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24672which seems to be undefined. Please make sure it is defined" >&5 24673$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24674which seems to be undefined. Please make sure it is defined" >&2;} 24675 24676 rm -f "$tmp/stdin" 24677 case $ac_file in 24678 -) cat "$tmp/out" && rm -f "$tmp/out";; 24679 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 24680 esac \ 24681 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24682 ;; 24683 :H) 24684 # 24685 # CONFIG_HEADER 24686 # 24687 if test x"$ac_file" != x-; then 24688 { 24689 $as_echo "/* $configure_input */" \ 24690 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 24691 } >"$tmp/config.h" \ 24692 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24693 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 24694 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 24695$as_echo "$as_me: $ac_file is unchanged" >&6;} 24696 else 24697 rm -f "$ac_file" 24698 mv "$tmp/config.h" "$ac_file" \ 24699 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24700 fi 24701 else 24702 $as_echo "/* $configure_input */" \ 24703 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 24704 || as_fn_error $? "could not create -" "$LINENO" 5 24705 fi 24706# Compute "$ac_file"'s index in $config_headers. 24707_am_arg="$ac_file" 24708_am_stamp_count=1 24709for _am_header in $config_headers :; do 24710 case $_am_header in 24711 $_am_arg | $_am_arg:* ) 24712 break ;; 24713 * ) 24714 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 24715 esac 24716done 24717echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 24718$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24719 X"$_am_arg" : 'X\(//\)[^/]' \| \ 24720 X"$_am_arg" : 'X\(//\)$' \| \ 24721 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 24722$as_echo X"$_am_arg" | 24723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24724 s//\1/ 24725 q 24726 } 24727 /^X\(\/\/\)[^/].*/{ 24728 s//\1/ 24729 q 24730 } 24731 /^X\(\/\/\)$/{ 24732 s//\1/ 24733 q 24734 } 24735 /^X\(\/\).*/{ 24736 s//\1/ 24737 q 24738 } 24739 s/.*/./; q'`/stamp-h$_am_stamp_count 24740 ;; 24741 24742 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 24743$as_echo "$as_me: executing $ac_file commands" >&6;} 24744 ;; 24745 esac 24746 24747 24748 case $ac_file$ac_mode in 24749 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 24750 # Autoconf 2.62 quotes --file arguments for eval, but not when files 24751 # are listed without --file. Let's play safe and only enable the eval 24752 # if we detect the quoting. 24753 case $CONFIG_FILES in 24754 *\'*) eval set x "$CONFIG_FILES" ;; 24755 *) set x $CONFIG_FILES ;; 24756 esac 24757 shift 24758 for mf 24759 do 24760 # Strip MF so we end up with the name of the file. 24761 mf=`echo "$mf" | sed -e 's/:.*$//'` 24762 # Check whether this is an Automake generated Makefile or not. 24763 # We used to match only the files named `Makefile.in', but 24764 # some people rename them; so instead we look at the file content. 24765 # Grep'ing the first line is not enough: some people post-process 24766 # each Makefile.in and add a new line on top of each file to say so. 24767 # Grep'ing the whole file is not good either: AIX grep has a line 24768 # limit of 2048, but all sed's we know have understand at least 4000. 24769 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 24770 dirpart=`$as_dirname -- "$mf" || 24771$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24772 X"$mf" : 'X\(//\)[^/]' \| \ 24773 X"$mf" : 'X\(//\)$' \| \ 24774 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 24775$as_echo X"$mf" | 24776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24777 s//\1/ 24778 q 24779 } 24780 /^X\(\/\/\)[^/].*/{ 24781 s//\1/ 24782 q 24783 } 24784 /^X\(\/\/\)$/{ 24785 s//\1/ 24786 q 24787 } 24788 /^X\(\/\).*/{ 24789 s//\1/ 24790 q 24791 } 24792 s/.*/./; q'` 24793 else 24794 continue 24795 fi 24796 # Extract the definition of DEPDIR, am__include, and am__quote 24797 # from the Makefile without running `make'. 24798 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 24799 test -z "$DEPDIR" && continue 24800 am__include=`sed -n 's/^am__include = //p' < "$mf"` 24801 test -z "am__include" && continue 24802 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 24803 # When using ansi2knr, U may be empty or an underscore; expand it 24804 U=`sed -n 's/^U = //p' < "$mf"` 24805 # Find all dependency output files, they are included files with 24806 # $(DEPDIR) in their names. We invoke sed twice because it is the 24807 # simplest approach to changing $(DEPDIR) to its actual value in the 24808 # expansion. 24809 for file in `sed -n " 24810 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 24811 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 24812 # Make sure the directory exists. 24813 test -f "$dirpart/$file" && continue 24814 fdir=`$as_dirname -- "$file" || 24815$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24816 X"$file" : 'X\(//\)[^/]' \| \ 24817 X"$file" : 'X\(//\)$' \| \ 24818 X"$file" : 'X\(/\)' \| . 2>/dev/null || 24819$as_echo X"$file" | 24820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24821 s//\1/ 24822 q 24823 } 24824 /^X\(\/\/\)[^/].*/{ 24825 s//\1/ 24826 q 24827 } 24828 /^X\(\/\/\)$/{ 24829 s//\1/ 24830 q 24831 } 24832 /^X\(\/\).*/{ 24833 s//\1/ 24834 q 24835 } 24836 s/.*/./; q'` 24837 as_dir=$dirpart/$fdir; as_fn_mkdir_p 24838 # echo "creating $dirpart/$file" 24839 echo '# dummy' > "$dirpart/$file" 24840 done 24841 done 24842} 24843 ;; 24844 "po-directories":C) 24845 for ac_file in $CONFIG_FILES; do 24846 # Support "outfile[:infile[:infile...]]" 24847 case "$ac_file" in 24848 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 24849 esac 24850 # PO directories have a Makefile.in generated from Makefile.in.in. 24851 case "$ac_file" in */Makefile.in) 24852 # Adjust a relative srcdir. 24853 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 24854 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 24855 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 24856 # In autoconf-2.13 it is called $ac_given_srcdir. 24857 # In autoconf-2.50 it is called $srcdir. 24858 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 24859 case "$ac_given_srcdir" in 24860 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 24861 /*) top_srcdir="$ac_given_srcdir" ;; 24862 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 24863 esac 24864 # Treat a directory as a PO directory if and only if it has a 24865 # POTFILES.in file. This allows packages to have multiple PO 24866 # directories under different names or in different locations. 24867 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 24868 rm -f "$ac_dir/POTFILES" 24869 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 24870 gt_tab=`printf '\t'` 24871 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 24872 POMAKEFILEDEPS="POTFILES.in" 24873 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 24874 # on $ac_dir but don't depend on user-specified configuration 24875 # parameters. 24876 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 24877 # The LINGUAS file contains the set of available languages. 24878 if test -n "$OBSOLETE_ALL_LINGUAS"; then 24879 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 24880 fi 24881 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 24882 # Hide the ALL_LINGUAS assignment from automake < 1.5. 24883 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 24884 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 24885 else 24886 # The set of available languages was given in configure.in. 24887 # Hide the ALL_LINGUAS assignment from automake < 1.5. 24888 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 24889 fi 24890 # Compute POFILES 24891 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 24892 # Compute UPDATEPOFILES 24893 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 24894 # Compute DUMMYPOFILES 24895 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 24896 # Compute GMOFILES 24897 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 24898 case "$ac_given_srcdir" in 24899 .) srcdirpre= ;; 24900 *) srcdirpre='$(srcdir)/' ;; 24901 esac 24902 POFILES= 24903 UPDATEPOFILES= 24904 DUMMYPOFILES= 24905 GMOFILES= 24906 for lang in $ALL_LINGUAS; do 24907 POFILES="$POFILES $srcdirpre$lang.po" 24908 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 24909 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 24910 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 24911 done 24912 # CATALOGS depends on both $ac_dir and the user's LINGUAS 24913 # environment variable. 24914 INST_LINGUAS= 24915 if test -n "$ALL_LINGUAS"; then 24916 for presentlang in $ALL_LINGUAS; do 24917 useit=no 24918 if test "%UNSET%" != "$LINGUAS"; then 24919 desiredlanguages="$LINGUAS" 24920 else 24921 desiredlanguages="$ALL_LINGUAS" 24922 fi 24923 for desiredlang in $desiredlanguages; do 24924 # Use the presentlang catalog if desiredlang is 24925 # a. equal to presentlang, or 24926 # b. a variant of presentlang (because in this case, 24927 # presentlang can be used as a fallback for messages 24928 # which are not translated in the desiredlang catalog). 24929 case "$desiredlang" in 24930 "$presentlang"*) useit=yes;; 24931 esac 24932 done 24933 if test $useit = yes; then 24934 INST_LINGUAS="$INST_LINGUAS $presentlang" 24935 fi 24936 done 24937 fi 24938 CATALOGS= 24939 if test -n "$INST_LINGUAS"; then 24940 for lang in $INST_LINGUAS; do 24941 CATALOGS="$CATALOGS $lang.gmo" 24942 done 24943 fi 24944 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 24945 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 24946 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 24947 if test -f "$f"; then 24948 case "$f" in 24949 *.orig | *.bak | *~) ;; 24950 *) cat "$f" >> "$ac_dir/Makefile" ;; 24951 esac 24952 fi 24953 done 24954 fi 24955 ;; 24956 esac 24957 done ;; 24958 24959 esac 24960done # for ac_tag 24961 24962 24963as_fn_exit 0 24964_ACEOF 24965ac_clean_files=$ac_clean_files_save 24966 24967test $ac_write_fail = 0 || 24968 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 24969 24970 24971# configure is writing to config.log, and then calls config.status. 24972# config.status does its own redirection, appending to config.log. 24973# Unfortunately, on DOS this fails, as config.log is still kept open 24974# by configure, so config.status won't be able to write to it; its 24975# output is simply discarded. So we exec the FD to /dev/null, 24976# effectively closing config.log, so it can be properly (re)opened and 24977# appended to by config.status. When coming back to configure, we 24978# need to make the FD available again. 24979if test "$no_create" != yes; then 24980 ac_cs_success=: 24981 ac_config_status_args= 24982 test "$silent" = yes && 24983 ac_config_status_args="$ac_config_status_args --quiet" 24984 exec 5>/dev/null 24985 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24986 exec 5>>config.log 24987 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24988 # would make configure fail if this is the last instruction. 24989 $ac_cs_success || as_fn_exit 1 24990fi 24991if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 24992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 24993$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 24994fi 24995 24996