1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.59 for GNU Texinfo 4.8. 4 # 5 # Copyright (C) 2003 Free Software Foundation, Inc. 6 # This configure script is free software; the Free Software Foundation 7 # gives unlimited permission to copy, distribute and modify it. 8 ## --------------------- ## 9 ## M4sh Initialization. ## 10 ## --------------------- ## 11 12 # Be Bourne compatible 13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14 emulate sh 15 NULLCMD=: 16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 17 # is contrary to our usage. Disable this feature. 18 alias -g '${1+"$@"}'='"$@"' 19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20 set -o posix 21 fi 22 DUALCASE=1; export DUALCASE # for MKS sh 23 24 # Support unset when possible. 25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26 as_unset=unset 27 else 28 as_unset=false 29 fi 30 31 32 # Work around bugs in pre-3.0 UWIN ksh. 33 $as_unset ENV MAIL MAILPATH 34 PS1='$ ' 35 PS2='> ' 36 PS4='+ ' 37 38 # NLS nuisances. 39 for as_var in \ 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 LC_TELEPHONE LC_TIME 43 do 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 46 else 47 $as_unset $as_var 48 fi 49 done 50 51 # Required to use basename. 52 if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54 else 55 as_expr=false 56 fi 57 58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60 else 61 as_basename=false 62 fi 63 64 65 # Name of the executable. 66 as_me=`$as_basename "$0" || 67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71 echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78 # PATH needs CR, and LINENO needs CR and PATH. 79 # Avoid depending upon Character Ranges. 80 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 83 as_cr_digits='0123456789' 84 as_cr_alnum=$as_cr_Letters$as_cr_digits 85 86 # The user is always right. 87 if test "${PATH_SEPARATOR+set}" != set; then 88 echo "#! /bin/sh" >conf$$.sh 89 echo "exit 0" >>conf$$.sh 90 chmod +x conf$$.sh 91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 92 PATH_SEPARATOR=';' 93 else 94 PATH_SEPARATOR=: 95 fi 96 rm -f conf$$.sh 97 fi 98 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 test "x$as_lineno_1" != "x$as_lineno_2" && 104 test "x$as_lineno_3" = "x$as_lineno_2" || { 105 # Find who we are. Look in the path if we contain no path at all 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110 for as_dir in $PATH 111 do 112 IFS=$as_save_IFS 113 test -z "$as_dir" && as_dir=. 114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115 done 116 117 ;; 118 esac 119 # We did not find ourselves, most probably we were run as `sh COMMAND' 120 # in which case we are not to be found in the path. 121 if test "x$as_myself" = x; then 122 as_myself=$0 123 fi 124 if test ! -f "$as_myself"; then 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 { (exit 1); exit 1; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132 do 133 IFS=$as_save_IFS 134 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 137 /*) 138 if ("$as_dir/$as_base" -c ' 139 as_lineno_1=$LINENO 140 as_lineno_2=$LINENO 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 142 test "x$as_lineno_1" != "x$as_lineno_2" && 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 CONFIG_SHELL=$as_dir/$as_base 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152 done 153 ;; 154 esac 155 156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 # uniformly replaced by the line number. The first 'sed' inserts a 158 # line-number line before each line; the second 'sed' does the real 159 # work. The second script uses 'N' to pair each line-number line 160 # with the numbered line, and appends trailing '-' during 161 # substitution so that $LINENO is not a special case at line end. 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 sed '=' <$as_myself | 165 sed ' 166 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 170 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 173 ' >$as_me.lineno && 174 chmod +x $as_me.lineno || 175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 { (exit 1); exit 1; }; } 177 178 # Don't try to exec as it changes $[0], causing all sort of problems 179 # (the dirname of $[0] is not the place where we might find the 180 # original and so on. Autoconf is especially sensible to this). 181 . ./$as_me.lineno 182 # Exit status is that of the last command. 183 exit 184 } 185 186 187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189 ' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 192 esac 193 194 if expr a : '\(a\)' >/dev/null 2>&1; then 195 as_expr=expr 196 else 197 as_expr=false 198 fi 199 200 rm -f conf$$ conf$$.exe conf$$.file 201 echo >conf$$.file 202 if ln -s conf$$.file conf$$ 2>/dev/null; then 203 # We could just check for DJGPP; but this test a) works b) is more generic 204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 205 if test -f conf$$.exe; then 206 # Don't use ln at all; we don't have any links 207 as_ln_s='cp -p' 208 else 209 as_ln_s='ln -s' 210 fi 211 elif ln conf$$.file conf$$ 2>/dev/null; then 212 as_ln_s=ln 213 else 214 as_ln_s='cp -p' 215 fi 216 rm -f conf$$ conf$$.exe conf$$.file 217 218 if mkdir -p . 2>/dev/null; then 219 as_mkdir_p=: 220 else 221 test -d ./-p && rmdir ./-p 222 as_mkdir_p=false 223 fi 224 225 as_executable_p="test -f" 226 227 # Sed expression to map a string onto a valid CPP name. 228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 229 230 # Sed expression to map a string onto a valid variable name. 231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 232 233 234 # IFS 235 # We need space, tab and new line, in precisely that order. 236 as_nl=' 237 ' 238 IFS=" $as_nl" 239 240 # CDPATH. 241 $as_unset CDPATH 242 243 244 # Name of the host. 245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 246 # so uname gets run too. 247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 248 249 exec 6>&1 250 251 # 252 # Initializations. 253 # 254 ac_default_prefix=/usr/local 255 ac_config_libobj_dir=. 256 cross_compiling=no 257 subdirs= 258 MFLAGS= 259 MAKEFLAGS= 260 SHELL=${CONFIG_SHELL-/bin/sh} 261 262 # Maximum number of lines to put in a shell here document. 263 # This variable seems obsolete. It should probably be removed, and 264 # only ac_max_sed_lines should be used. 265 : ${ac_max_here_lines=38} 266 267 # Identity of this package. 268 PACKAGE_NAME='GNU Texinfo' 269 PACKAGE_TARNAME='texinfo' 270 PACKAGE_VERSION='4.8' 271 PACKAGE_STRING='GNU Texinfo 4.8' 272 PACKAGE_BUGREPORT='' 273 274 ac_unique_file="makeinfo/makeinfo.c" 275 # Factoring default headers for most tests. 276 ac_includes_default="\ 277 #include <stdio.h> 278 #if HAVE_SYS_TYPES_H 279 # include <sys/types.h> 280 #endif 281 #if HAVE_SYS_STAT_H 282 # include <sys/stat.h> 283 #endif 284 #if STDC_HEADERS 285 # include <stdlib.h> 286 # include <stddef.h> 287 #else 288 # if HAVE_STDLIB_H 289 # include <stdlib.h> 290 # endif 291 #endif 292 #if HAVE_STRING_H 293 # if !STDC_HEADERS && HAVE_MEMORY_H 294 # include <memory.h> 295 # endif 296 # include <string.h> 297 #endif 298 #if HAVE_STRINGS_H 299 # include <strings.h> 300 #endif 301 #if HAVE_INTTYPES_H 302 # include <inttypes.h> 303 #else 304 # if HAVE_STDINT_H 305 # include <stdint.h> 306 # endif 307 #endif 308 #if HAVE_UNISTD_H 309 # include <unistd.h> 310 #endif" 311 312 gl_header_list= 313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP RANLIB ac_ct_RANLIB HELP2MAN ALLOCA LIBOBJS build build_cpu build_vendor build_os native_tools TOOLS_ONLY_TRUE TOOLS_ONLY_FALSE TERMLIBS host host_cpu host_vendor host_os INSTALL_WARNINGS_TRUE INSTALL_WARNINGS_FALSE MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB LTLIBOBJS' 314 ac_subst_files='' 315 316 # Initialize some variables set by options. 317 ac_init_help= 318 ac_init_version=false 319 # The variables have the same names as the options, with 320 # dashes changed to underlines. 321 cache_file=/dev/null 322 exec_prefix=NONE 323 no_create= 324 no_recursion= 325 prefix=NONE 326 program_prefix=NONE 327 program_suffix=NONE 328 program_transform_name=s,x,x, 329 silent= 330 site= 331 srcdir= 332 verbose= 333 x_includes=NONE 334 x_libraries=NONE 335 336 # Installation directory options. 337 # These are left unexpanded so users can "make install exec_prefix=/foo" 338 # and all the variables that are supposed to be based on exec_prefix 339 # by default will actually change. 340 # Use braces instead of parens because sh, perl, etc. also accept them. 341 bindir='${exec_prefix}/bin' 342 sbindir='${exec_prefix}/sbin' 343 libexecdir='${exec_prefix}/libexec' 344 datadir='${prefix}/share' 345 sysconfdir='${prefix}/etc' 346 sharedstatedir='${prefix}/com' 347 localstatedir='${prefix}/var' 348 libdir='${exec_prefix}/lib' 349 includedir='${prefix}/include' 350 oldincludedir='/usr/include' 351 infodir='${prefix}/info' 352 mandir='${prefix}/man' 353 354 ac_prev= 355 for ac_option 356 do 357 # If the previous option needs an argument, assign it. 358 if test -n "$ac_prev"; then 359 eval "$ac_prev=\$ac_option" 360 ac_prev= 361 continue 362 fi 363 364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 365 366 # Accept the important Cygnus configure options, so we can diagnose typos. 367 368 case $ac_option in 369 370 -bindir | --bindir | --bindi | --bind | --bin | --bi) 371 ac_prev=bindir ;; 372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 373 bindir=$ac_optarg ;; 374 375 -build | --build | --buil | --bui | --bu) 376 ac_prev=build_alias ;; 377 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 378 build_alias=$ac_optarg ;; 379 380 -cache-file | --cache-file | --cache-fil | --cache-fi \ 381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 382 ac_prev=cache_file ;; 383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 385 cache_file=$ac_optarg ;; 386 387 --config-cache | -C) 388 cache_file=config.cache ;; 389 390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 391 ac_prev=datadir ;; 392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 393 | --da=*) 394 datadir=$ac_optarg ;; 395 396 -disable-* | --disable-*) 397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 398 # Reject names that are not valid shell variable names. 399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 401 { (exit 1); exit 1; }; } 402 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 403 eval "enable_$ac_feature=no" ;; 404 405 -enable-* | --enable-*) 406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 407 # Reject names that are not valid shell variable names. 408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 410 { (exit 1); exit 1; }; } 411 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 412 case $ac_option in 413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 414 *) ac_optarg=yes ;; 415 esac 416 eval "enable_$ac_feature='$ac_optarg'" ;; 417 418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 420 | --exec | --exe | --ex) 421 ac_prev=exec_prefix ;; 422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 424 | --exec=* | --exe=* | --ex=*) 425 exec_prefix=$ac_optarg ;; 426 427 -gas | --gas | --ga | --g) 428 # Obsolete; use --with-gas. 429 with_gas=yes ;; 430 431 -help | --help | --hel | --he | -h) 432 ac_init_help=long ;; 433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 434 ac_init_help=recursive ;; 435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 436 ac_init_help=short ;; 437 438 -host | --host | --hos | --ho) 439 ac_prev=host_alias ;; 440 -host=* | --host=* | --hos=* | --ho=*) 441 host_alias=$ac_optarg ;; 442 443 -includedir | --includedir | --includedi | --included | --include \ 444 | --includ | --inclu | --incl | --inc) 445 ac_prev=includedir ;; 446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 447 | --includ=* | --inclu=* | --incl=* | --inc=*) 448 includedir=$ac_optarg ;; 449 450 -infodir | --infodir | --infodi | --infod | --info | --inf) 451 ac_prev=infodir ;; 452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 453 infodir=$ac_optarg ;; 454 455 -libdir | --libdir | --libdi | --libd) 456 ac_prev=libdir ;; 457 -libdir=* | --libdir=* | --libdi=* | --libd=*) 458 libdir=$ac_optarg ;; 459 460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 461 | --libexe | --libex | --libe) 462 ac_prev=libexecdir ;; 463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 464 | --libexe=* | --libex=* | --libe=*) 465 libexecdir=$ac_optarg ;; 466 467 -localstatedir | --localstatedir | --localstatedi | --localstated \ 468 | --localstate | --localstat | --localsta | --localst \ 469 | --locals | --local | --loca | --loc | --lo) 470 ac_prev=localstatedir ;; 471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 474 localstatedir=$ac_optarg ;; 475 476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 477 ac_prev=mandir ;; 478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 479 mandir=$ac_optarg ;; 480 481 -nfp | --nfp | --nf) 482 # Obsolete; use --without-fp. 483 with_fp=no ;; 484 485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 486 | --no-cr | --no-c | -n) 487 no_create=yes ;; 488 489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 491 no_recursion=yes ;; 492 493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 495 | --oldin | --oldi | --old | --ol | --o) 496 ac_prev=oldincludedir ;; 497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 500 oldincludedir=$ac_optarg ;; 501 502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 503 ac_prev=prefix ;; 504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 505 prefix=$ac_optarg ;; 506 507 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 508 | --program-pre | --program-pr | --program-p) 509 ac_prev=program_prefix ;; 510 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 512 program_prefix=$ac_optarg ;; 513 514 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 515 | --program-suf | --program-su | --program-s) 516 ac_prev=program_suffix ;; 517 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 519 program_suffix=$ac_optarg ;; 520 521 -program-transform-name | --program-transform-name \ 522 | --program-transform-nam | --program-transform-na \ 523 | --program-transform-n | --program-transform- \ 524 | --program-transform | --program-transfor \ 525 | --program-transfo | --program-transf \ 526 | --program-trans | --program-tran \ 527 | --progr-tra | --program-tr | --program-t) 528 ac_prev=program_transform_name ;; 529 -program-transform-name=* | --program-transform-name=* \ 530 | --program-transform-nam=* | --program-transform-na=* \ 531 | --program-transform-n=* | --program-transform-=* \ 532 | --program-transform=* | --program-transfor=* \ 533 | --program-transfo=* | --program-transf=* \ 534 | --program-trans=* | --program-tran=* \ 535 | --progr-tra=* | --program-tr=* | --program-t=*) 536 program_transform_name=$ac_optarg ;; 537 538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 539 | -silent | --silent | --silen | --sile | --sil) 540 silent=yes ;; 541 542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 543 ac_prev=sbindir ;; 544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 545 | --sbi=* | --sb=*) 546 sbindir=$ac_optarg ;; 547 548 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 550 | --sharedst | --shareds | --shared | --share | --shar \ 551 | --sha | --sh) 552 ac_prev=sharedstatedir ;; 553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 556 | --sha=* | --sh=*) 557 sharedstatedir=$ac_optarg ;; 558 559 -site | --site | --sit) 560 ac_prev=site ;; 561 -site=* | --site=* | --sit=*) 562 site=$ac_optarg ;; 563 564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 565 ac_prev=srcdir ;; 566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 567 srcdir=$ac_optarg ;; 568 569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 570 | --syscon | --sysco | --sysc | --sys | --sy) 571 ac_prev=sysconfdir ;; 572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 574 sysconfdir=$ac_optarg ;; 575 576 -target | --target | --targe | --targ | --tar | --ta | --t) 577 ac_prev=target_alias ;; 578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 579 target_alias=$ac_optarg ;; 580 581 -v | -verbose | --verbose | --verbos | --verbo | --verb) 582 verbose=yes ;; 583 584 -version | --version | --versio | --versi | --vers | -V) 585 ac_init_version=: ;; 586 587 -with-* | --with-*) 588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 589 # Reject names that are not valid shell variable names. 590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 591 { echo "$as_me: error: invalid package name: $ac_package" >&2 592 { (exit 1); exit 1; }; } 593 ac_package=`echo $ac_package| sed 's/-/_/g'` 594 case $ac_option in 595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 596 *) ac_optarg=yes ;; 597 esac 598 eval "with_$ac_package='$ac_optarg'" ;; 599 600 -without-* | --without-*) 601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 602 # Reject names that are not valid shell variable names. 603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 604 { echo "$as_me: error: invalid package name: $ac_package" >&2 605 { (exit 1); exit 1; }; } 606 ac_package=`echo $ac_package | sed 's/-/_/g'` 607 eval "with_$ac_package=no" ;; 608 609 --x) 610 # Obsolete; use --with-x. 611 with_x=yes ;; 612 613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 614 | --x-incl | --x-inc | --x-in | --x-i) 615 ac_prev=x_includes ;; 616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 618 x_includes=$ac_optarg ;; 619 620 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 622 ac_prev=x_libraries ;; 623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 625 x_libraries=$ac_optarg ;; 626 627 -*) { echo "$as_me: error: unrecognized option: $ac_option 628 Try \`$0 --help' for more information." >&2 629 { (exit 1); exit 1; }; } 630 ;; 631 632 *=*) 633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 634 # Reject names that are not valid shell variable names. 635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 637 { (exit 1); exit 1; }; } 638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 639 eval "$ac_envvar='$ac_optarg'" 640 export $ac_envvar ;; 641 642 *) 643 # FIXME: should be removed in autoconf 3.0. 644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 648 ;; 649 650 esac 651 done 652 653 if test -n "$ac_prev"; then 654 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 655 { echo "$as_me: error: missing argument to $ac_option" >&2 656 { (exit 1); exit 1; }; } 657 fi 658 659 # Be sure to have absolute paths. 660 for ac_var in exec_prefix prefix 661 do 662 eval ac_val=$`echo $ac_var` 663 case $ac_val in 664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 666 { (exit 1); exit 1; }; };; 667 esac 668 done 669 670 # Be sure to have absolute paths. 671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 672 localstatedir libdir includedir oldincludedir infodir mandir 673 do 674 eval ac_val=$`echo $ac_var` 675 case $ac_val in 676 [\\/$]* | ?:[\\/]* ) ;; 677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 678 { (exit 1); exit 1; }; };; 679 esac 680 done 681 682 # There might be people who depend on the old broken behavior: `$host' 683 # used to hold the argument of --host etc. 684 # FIXME: To remove some day. 685 build=$build_alias 686 host=$host_alias 687 target=$target_alias 688 689 # FIXME: To remove some day. 690 if test "x$host_alias" != x; then 691 if test "x$build_alias" = x; then 692 cross_compiling=maybe 693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 694 If a cross compiler is detected then cross compile mode will be used." >&2 695 elif test "x$build_alias" != "x$host_alias"; then 696 cross_compiling=yes 697 fi 698 fi 699 700 ac_tool_prefix= 701 test -n "$host_alias" && ac_tool_prefix=$host_alias- 702 703 test "$silent" = yes && exec 6>/dev/null 704 705 706 # Find the source files, if location was not specified. 707 if test -z "$srcdir"; then 708 ac_srcdir_defaulted=yes 709 # Try the directory containing this script, then its parent. 710 ac_confdir=`(dirname "$0") 2>/dev/null || 711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 712 X"$0" : 'X\(//\)[^/]' \| \ 713 X"$0" : 'X\(//\)$' \| \ 714 X"$0" : 'X\(/\)' \| \ 715 . : '\(.\)' 2>/dev/null || 716 echo X"$0" | 717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 718 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 719 /^X\(\/\/\)$/{ s//\1/; q; } 720 /^X\(\/\).*/{ s//\1/; q; } 721 s/.*/./; q'` 722 srcdir=$ac_confdir 723 if test ! -r $srcdir/$ac_unique_file; then 724 srcdir=.. 725 fi 726 else 727 ac_srcdir_defaulted=no 728 fi 729 if test ! -r $srcdir/$ac_unique_file; then 730 if test "$ac_srcdir_defaulted" = yes; then 731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 732 { (exit 1); exit 1; }; } 733 else 734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 735 { (exit 1); exit 1; }; } 736 fi 737 fi 738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 740 { (exit 1); exit 1; }; } 741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 742 ac_env_build_alias_set=${build_alias+set} 743 ac_env_build_alias_value=$build_alias 744 ac_cv_env_build_alias_set=${build_alias+set} 745 ac_cv_env_build_alias_value=$build_alias 746 ac_env_host_alias_set=${host_alias+set} 747 ac_env_host_alias_value=$host_alias 748 ac_cv_env_host_alias_set=${host_alias+set} 749 ac_cv_env_host_alias_value=$host_alias 750 ac_env_target_alias_set=${target_alias+set} 751 ac_env_target_alias_value=$target_alias 752 ac_cv_env_target_alias_set=${target_alias+set} 753 ac_cv_env_target_alias_value=$target_alias 754 ac_env_CC_set=${CC+set} 755 ac_env_CC_value=$CC 756 ac_cv_env_CC_set=${CC+set} 757 ac_cv_env_CC_value=$CC 758 ac_env_CFLAGS_set=${CFLAGS+set} 759 ac_env_CFLAGS_value=$CFLAGS 760 ac_cv_env_CFLAGS_set=${CFLAGS+set} 761 ac_cv_env_CFLAGS_value=$CFLAGS 762 ac_env_LDFLAGS_set=${LDFLAGS+set} 763 ac_env_LDFLAGS_value=$LDFLAGS 764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 765 ac_cv_env_LDFLAGS_value=$LDFLAGS 766 ac_env_CPPFLAGS_set=${CPPFLAGS+set} 767 ac_env_CPPFLAGS_value=$CPPFLAGS 768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS 770 ac_env_CPP_set=${CPP+set} 771 ac_env_CPP_value=$CPP 772 ac_cv_env_CPP_set=${CPP+set} 773 ac_cv_env_CPP_value=$CPP 774 775 # 776 # Report the --help message. 777 # 778 if test "$ac_init_help" = "long"; then 779 # Omit some internal or obsolete options to make the list less imposing. 780 # This message is too long to be a string in the A/UX 3.1 sh. 781 cat <<_ACEOF 782 \`configure' configures GNU Texinfo 4.8 to adapt to many kinds of systems. 783 784 Usage: $0 [OPTION]... [VAR=VALUE]... 785 786 To assign environment variables (e.g., CC, CFLAGS...), specify them as 787 VAR=VALUE. See below for descriptions of some of the useful variables. 788 789 Defaults for the options are specified in brackets. 790 791 Configuration: 792 -h, --help display this help and exit 793 --help=short display options specific to this package 794 --help=recursive display the short help of all the included packages 795 -V, --version display version information and exit 796 -q, --quiet, --silent do not print \`checking...' messages 797 --cache-file=FILE cache test results in FILE [disabled] 798 -C, --config-cache alias for \`--cache-file=config.cache' 799 -n, --no-create do not create output files 800 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 801 802 _ACEOF 803 804 cat <<_ACEOF 805 Installation directories: 806 --prefix=PREFIX install architecture-independent files in PREFIX 807 [$ac_default_prefix] 808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 809 [PREFIX] 810 811 By default, \`make install' will install all the files in 812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 813 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 814 for instance \`--prefix=\$HOME'. 815 816 For better control, use the options below. 817 818 Fine tuning of the installation directories: 819 --bindir=DIR user executables [EPREFIX/bin] 820 --sbindir=DIR system admin executables [EPREFIX/sbin] 821 --libexecdir=DIR program executables [EPREFIX/libexec] 822 --datadir=DIR read-only architecture-independent data [PREFIX/share] 823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 825 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 826 --libdir=DIR object code libraries [EPREFIX/lib] 827 --includedir=DIR C header files [PREFIX/include] 828 --oldincludedir=DIR C header files for non-gcc [/usr/include] 829 --infodir=DIR info documentation [PREFIX/info] 830 --mandir=DIR man documentation [PREFIX/man] 831 _ACEOF 832 833 cat <<\_ACEOF 834 835 Program names: 836 --program-prefix=PREFIX prepend PREFIX to installed program names 837 --program-suffix=SUFFIX append SUFFIX to installed program names 838 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 839 840 System types: 841 --build=BUILD configure for building on BUILD [guessed] 842 --host=HOST cross-compile to build programs to run on HOST [BUILD] 843 _ACEOF 844 fi 845 846 if test -n "$ac_init_help"; then 847 case $ac_init_help in 848 short | recursive ) echo "Configuration of GNU Texinfo 4.8:";; 849 esac 850 cat <<\_ACEOF 851 852 Optional Features: 853 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 854 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 855 --enable-maintainer-mode enable make rules and dependencies not useful 856 (and sometimes confusing) to the casual installer 857 --disable-dependency-tracking speeds up one-time build 858 --enable-dependency-tracking do not reject slow dependency extractors 859 --enable-multiplatform put executables in bin/PLATFORM 860 --disable-install-warnings omit make install warnings about TeX files 861 --disable-nls do not use Native Language Support 862 --disable-rpath do not hardcode runtime library paths 863 864 Optional Packages: 865 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 866 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 867 --with-gnu-ld assume the C compiler uses GNU ld default=no 868 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 869 --without-libiconv-prefix don't search for libiconv in includedir and libdir 870 --with-included-gettext use the GNU gettext library included here 871 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 872 --without-libintl-prefix don't search for libintl in includedir and libdir 873 874 Some influential environment variables: 875 CC C compiler command 876 CFLAGS C compiler flags 877 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 878 nonstandard directory <lib dir> 879 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 880 headers in a nonstandard directory <include dir> 881 CPP C preprocessor 882 883 Use these variables to override the choices made by `configure' or to help 884 it to find libraries and programs with nonstandard names/locations. 885 886 _ACEOF 887 fi 888 889 if test "$ac_init_help" = "recursive"; then 890 # If there are subdirs, report their specific --help. 891 ac_popdir=`pwd` 892 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 893 test -d $ac_dir || continue 894 ac_builddir=. 895 896 if test "$ac_dir" != .; then 897 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 898 # A "../" for each directory in $ac_dir_suffix. 899 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 900 else 901 ac_dir_suffix= ac_top_builddir= 902 fi 903 904 case $srcdir in 905 .) # No --srcdir option. We are building in place. 906 ac_srcdir=. 907 if test -z "$ac_top_builddir"; then 908 ac_top_srcdir=. 909 else 910 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 911 fi ;; 912 [\\/]* | ?:[\\/]* ) # Absolute path. 913 ac_srcdir=$srcdir$ac_dir_suffix; 914 ac_top_srcdir=$srcdir ;; 915 *) # Relative path. 916 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 917 ac_top_srcdir=$ac_top_builddir$srcdir ;; 918 esac 919 920 # Do not use `cd foo && pwd` to compute absolute paths, because 921 # the directories may not exist. 922 case `pwd` in 923 .) ac_abs_builddir="$ac_dir";; 924 *) 925 case "$ac_dir" in 926 .) ac_abs_builddir=`pwd`;; 927 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 928 *) ac_abs_builddir=`pwd`/"$ac_dir";; 929 esac;; 930 esac 931 case $ac_abs_builddir in 932 .) ac_abs_top_builddir=${ac_top_builddir}.;; 933 *) 934 case ${ac_top_builddir}. in 935 .) ac_abs_top_builddir=$ac_abs_builddir;; 936 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 937 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 938 esac;; 939 esac 940 case $ac_abs_builddir in 941 .) ac_abs_srcdir=$ac_srcdir;; 942 *) 943 case $ac_srcdir in 944 .) ac_abs_srcdir=$ac_abs_builddir;; 945 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 946 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 947 esac;; 948 esac 949 case $ac_abs_builddir in 950 .) ac_abs_top_srcdir=$ac_top_srcdir;; 951 *) 952 case $ac_top_srcdir in 953 .) ac_abs_top_srcdir=$ac_abs_builddir;; 954 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 955 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 956 esac;; 957 esac 958 959 cd $ac_dir 960 # Check for guested configure; otherwise get Cygnus style configure. 961 if test -f $ac_srcdir/configure.gnu; then 962 echo 963 $SHELL $ac_srcdir/configure.gnu --help=recursive 964 elif test -f $ac_srcdir/configure; then 965 echo 966 $SHELL $ac_srcdir/configure --help=recursive 967 elif test -f $ac_srcdir/configure.ac || 968 test -f $ac_srcdir/configure.in; then 969 echo 970 $ac_configure --help 971 else 972 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 973 fi 974 cd $ac_popdir 975 done 976 fi 977 978 test -n "$ac_init_help" && exit 0 979 if $ac_init_version; then 980 cat <<\_ACEOF 981 GNU Texinfo configure 4.8 982 generated by GNU Autoconf 2.59 983 984 Copyright (C) 2003 Free Software Foundation, Inc. 985 This configure script is free software; the Free Software Foundation 986 gives unlimited permission to copy, distribute and modify it. 987 _ACEOF 988 exit 0 989 fi 990 exec 5>config.log 991 cat >&5 <<_ACEOF 992 This file contains any messages produced by compilers while 993 running configure, to aid debugging if configure makes a mistake. 994 995 It was created by GNU Texinfo $as_me 4.8, which was 996 generated by GNU Autoconf 2.59. Invocation command line was 997 998 $ $0 $@ 999 1000 _ACEOF 1001 { 1002 cat <<_ASUNAME 1003 ## --------- ## 1004 ## Platform. ## 1005 ## --------- ## 1006 1007 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1008 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1009 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1010 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1011 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1012 1013 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1014 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1015 1016 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1017 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1018 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1019 hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1020 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1021 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1022 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1023 1024 _ASUNAME 1025 1026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1027 for as_dir in $PATH 1028 do 1029 IFS=$as_save_IFS 1030 test -z "$as_dir" && as_dir=. 1031 echo "PATH: $as_dir" 1032 done 1033 1034 } >&5 1035 1036 cat >&5 <<_ACEOF 1037 1038 1039 ## ----------- ## 1040 ## Core tests. ## 1041 ## ----------- ## 1042 1043 _ACEOF 1044 1045 1046 # Keep a trace of the command line. 1047 # Strip out --no-create and --no-recursion so they do not pile up. 1048 # Strip out --silent because we don't want to record it for future runs. 1049 # Also quote any args containing shell meta-characters. 1050 # Make two passes to allow for proper duplicate-argument suppression. 1051 ac_configure_args= 1052 ac_configure_args0= 1053 ac_configure_args1= 1054 ac_sep= 1055 ac_must_keep_next=false 1056 for ac_pass in 1 2 1057 do 1058 for ac_arg 1059 do 1060 case $ac_arg in 1061 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1063 | -silent | --silent | --silen | --sile | --sil) 1064 continue ;; 1065 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1066 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1067 esac 1068 case $ac_pass in 1069 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1070 2) 1071 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1072 if test $ac_must_keep_next = true; then 1073 ac_must_keep_next=false # Got value, back to normal. 1074 else 1075 case $ac_arg in 1076 *=* | --config-cache | -C | -disable-* | --disable-* \ 1077 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1078 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1079 | -with-* | --with-* | -without-* | --without-* | --x) 1080 case "$ac_configure_args0 " in 1081 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1082 esac 1083 ;; 1084 -* ) ac_must_keep_next=true ;; 1085 esac 1086 fi 1087 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1088 # Get rid of the leading space. 1089 ac_sep=" " 1090 ;; 1091 esac 1092 done 1093 done 1094 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1095 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1096 1097 # When interrupted or exit'd, cleanup temporary files, and complete 1098 # config.log. We remove comments because anyway the quotes in there 1099 # would cause problems or look ugly. 1100 # WARNING: Be sure not to use single quotes in there, as some shells, 1101 # such as our DU 5.0 friend, will then `close' the trap. 1102 trap 'exit_status=$? 1103 # Save into config.log some information that might help in debugging. 1104 { 1105 echo 1106 1107 cat <<\_ASBOX 1108 ## ---------------- ## 1109 ## Cache variables. ## 1110 ## ---------------- ## 1111 _ASBOX 1112 echo 1113 # The following way of writing the cache mishandles newlines in values, 1114 { 1115 (set) 2>&1 | 1116 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1117 *ac_space=\ *) 1118 sed -n \ 1119 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1120 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1121 ;; 1122 *) 1123 sed -n \ 1124 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1125 ;; 1126 esac; 1127 } 1128 echo 1129 1130 cat <<\_ASBOX 1131 ## ----------------- ## 1132 ## Output variables. ## 1133 ## ----------------- ## 1134 _ASBOX 1135 echo 1136 for ac_var in $ac_subst_vars 1137 do 1138 eval ac_val=$`echo $ac_var` 1139 echo "$ac_var='"'"'$ac_val'"'"'" 1140 done | sort 1141 echo 1142 1143 if test -n "$ac_subst_files"; then 1144 cat <<\_ASBOX 1145 ## ------------- ## 1146 ## Output files. ## 1147 ## ------------- ## 1148 _ASBOX 1149 echo 1150 for ac_var in $ac_subst_files 1151 do 1152 eval ac_val=$`echo $ac_var` 1153 echo "$ac_var='"'"'$ac_val'"'"'" 1154 done | sort 1155 echo 1156 fi 1157 1158 if test -s confdefs.h; then 1159 cat <<\_ASBOX 1160 ## ----------- ## 1161 ## confdefs.h. ## 1162 ## ----------- ## 1163 _ASBOX 1164 echo 1165 sed "/^$/d" confdefs.h | sort 1166 echo 1167 fi 1168 test "$ac_signal" != 0 && 1169 echo "$as_me: caught signal $ac_signal" 1170 echo "$as_me: exit $exit_status" 1171 } >&5 1172 rm -f core *.core && 1173 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1174 exit $exit_status 1175 ' 0 1176 for ac_signal in 1 2 13 15; do 1177 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1178 done 1179 ac_signal=0 1180 1181 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1182 rm -rf conftest* confdefs.h 1183 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 1184 echo >confdefs.h 1185 1186 # Predefined preprocessor variables. 1187 1188 cat >>confdefs.h <<_ACEOF 1189 #define PACKAGE_NAME "$PACKAGE_NAME" 1190 _ACEOF 1191 1192 1193 cat >>confdefs.h <<_ACEOF 1194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1195 _ACEOF 1196 1197 1198 cat >>confdefs.h <<_ACEOF 1199 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1200 _ACEOF 1201 1202 1203 cat >>confdefs.h <<_ACEOF 1204 #define PACKAGE_STRING "$PACKAGE_STRING" 1205 _ACEOF 1206 1207 1208 cat >>confdefs.h <<_ACEOF 1209 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1210 _ACEOF 1211 1212 1213 # Let the site file select an alternate cache file if it wants to. 1214 # Prefer explicitly selected file to automatically selected ones. 1215 if test -z "$CONFIG_SITE"; then 1216 if test "x$prefix" != xNONE; then 1217 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1218 else 1219 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1220 fi 1221 fi 1222 for ac_site_file in $CONFIG_SITE; do 1223 if test -r "$ac_site_file"; then 1224 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1225 echo "$as_me: loading site script $ac_site_file" >&6;} 1226 sed 's/^/| /' "$ac_site_file" >&5 1227 . "$ac_site_file" 1228 fi 1229 done 1230 1231 if test -r "$cache_file"; then 1232 # Some versions of bash will fail to source /dev/null (special 1233 # files actually), so we avoid doing that. 1234 if test -f "$cache_file"; then 1235 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1236 echo "$as_me: loading cache $cache_file" >&6;} 1237 case $cache_file in 1238 [\\/]* | ?:[\\/]* ) . $cache_file;; 1239 *) . ./$cache_file;; 1240 esac 1241 fi 1242 else 1243 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1244 echo "$as_me: creating cache $cache_file" >&6;} 1245 >$cache_file 1246 fi 1247 1248 # Check that the precious variables saved in the cache have kept the same 1249 # value. 1250 ac_cache_corrupted=false 1251 for ac_var in `(set) 2>&1 | 1252 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1253 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1254 eval ac_new_set=\$ac_env_${ac_var}_set 1255 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1256 eval ac_new_val="\$ac_env_${ac_var}_value" 1257 case $ac_old_set,$ac_new_set in 1258 set,) 1259 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1260 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1261 ac_cache_corrupted=: ;; 1262 ,set) 1263 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1264 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1265 ac_cache_corrupted=: ;; 1266 ,);; 1267 *) 1268 if test "x$ac_old_val" != "x$ac_new_val"; then 1269 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1270 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1271 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1272 echo "$as_me: former value: $ac_old_val" >&2;} 1273 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1274 echo "$as_me: current value: $ac_new_val" >&2;} 1275 ac_cache_corrupted=: 1276 fi;; 1277 esac 1278 # Pass precious variables to config.status. 1279 if test "$ac_new_set" = set; then 1280 case $ac_new_val in 1281 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1282 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1283 *) ac_arg=$ac_var=$ac_new_val ;; 1284 esac 1285 case " $ac_configure_args " in 1286 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1287 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1288 esac 1289 fi 1290 done 1291 if $ac_cache_corrupted; then 1292 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1293 echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1294 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1295 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1296 { (exit 1); exit 1; }; } 1297 fi 1298 1299 ac_ext=c 1300 ac_cpp='$CPP $CPPFLAGS' 1301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1303 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1304 1305 1306 gl_header_list="$gl_header_list fcntl.h" 1307 gl_header_list="$gl_header_list sys/time.h" 1308 gl_header_list="$gl_header_list unistd.h" 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 ac_config_headers="$ac_config_headers config.h:config.in" 1335 # Keep filename to 8.3 for MS-DOS. 1336 1337 am__api_version="1.9" 1338 ac_aux_dir= 1339 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1340 if test -f $ac_dir/install-sh; then 1341 ac_aux_dir=$ac_dir 1342 ac_install_sh="$ac_aux_dir/install-sh -c" 1343 break 1344 elif test -f $ac_dir/install.sh; then 1345 ac_aux_dir=$ac_dir 1346 ac_install_sh="$ac_aux_dir/install.sh -c" 1347 break 1348 elif test -f $ac_dir/shtool; then 1349 ac_aux_dir=$ac_dir 1350 ac_install_sh="$ac_aux_dir/shtool install -c" 1351 break 1352 fi 1353 done 1354 if test -z "$ac_aux_dir"; then 1355 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1356 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1357 { (exit 1); exit 1; }; } 1358 fi 1359 ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1360 ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1361 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1362 1363 # Find a good install program. We prefer a C program (faster), 1364 # so one script is as good as another. But avoid the broken or 1365 # incompatible versions: 1366 # SysV /etc/install, /usr/sbin/install 1367 # SunOS /usr/etc/install 1368 # IRIX /sbin/install 1369 # AIX /bin/install 1370 # AmigaOS /C/install, which installs bootblocks on floppy discs 1371 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1372 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 1373 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1374 # OS/2's system install, which has a completely different semantic 1375 # ./install, which can be erroneously created by make from ./install.sh. 1376 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1377 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1378 if test -z "$INSTALL"; then 1379 if test "${ac_cv_path_install+set}" = set; then 1380 echo $ECHO_N "(cached) $ECHO_C" >&6 1381 else 1382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1383 for as_dir in $PATH 1384 do 1385 IFS=$as_save_IFS 1386 test -z "$as_dir" && as_dir=. 1387 # Account for people who put trailing slashes in PATH elements. 1388 case $as_dir/ in 1389 ./ | .// | /cC/* | \ 1390 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1391 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1392 /usr/ucb/* ) ;; 1393 *) 1394 # OSF1 and SCO ODT 3.0 have their own names for install. 1395 # Don't use installbsd from OSF since it installs stuff as root 1396 # by default. 1397 for ac_prog in ginstall scoinst install; do 1398 for ac_exec_ext in '' $ac_executable_extensions; do 1399 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1400 if test $ac_prog = install && 1401 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1402 # AIX install. It has an incompatible calling convention. 1403 : 1404 elif test $ac_prog = install && 1405 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1406 # program-specific install script used by HP pwplus--don't use. 1407 : 1408 else 1409 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1410 break 3 1411 fi 1412 fi 1413 done 1414 done 1415 ;; 1416 esac 1417 done 1418 1419 1420 fi 1421 if test "${ac_cv_path_install+set}" = set; then 1422 INSTALL=$ac_cv_path_install 1423 else 1424 # As a last resort, use the slow shell script. We don't cache a 1425 # path for INSTALL within a source directory, because that will 1426 # break other packages using the cache if that directory is 1427 # removed, or if the path is relative. 1428 INSTALL=$ac_install_sh 1429 fi 1430 fi 1431 echo "$as_me:$LINENO: result: $INSTALL" >&5 1432 echo "${ECHO_T}$INSTALL" >&6 1433 1434 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1435 # It thinks the first close brace ends the variable substitution. 1436 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1437 1438 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1439 1440 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1441 1442 echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1443 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1444 # Just in case 1445 sleep 1 1446 echo timestamp > conftest.file 1447 # Do `set' in a subshell so we don't clobber the current shell's 1448 # arguments. Must try -L first in case configure is actually a 1449 # symlink; some systems play weird games with the mod time of symlinks 1450 # (eg FreeBSD returns the mod time of the symlink's containing 1451 # directory). 1452 if ( 1453 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1454 if test "$*" = "X"; then 1455 # -L didn't work. 1456 set X `ls -t $srcdir/configure conftest.file` 1457 fi 1458 rm -f conftest.file 1459 if test "$*" != "X $srcdir/configure conftest.file" \ 1460 && test "$*" != "X conftest.file $srcdir/configure"; then 1461 1462 # If neither matched, then we have a broken ls. This can happen 1463 # if, for instance, CONFIG_SHELL is bash and it inherits a 1464 # broken ls alias from the environment. This has actually 1465 # happened. Such a system could not be considered "sane". 1466 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1467 alias in your environment" >&5 1468 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1469 alias in your environment" >&2;} 1470 { (exit 1); exit 1; }; } 1471 fi 1472 1473 test "$2" = conftest.file 1474 ) 1475 then 1476 # Ok. 1477 : 1478 else 1479 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1480 Check your system clock" >&5 1481 echo "$as_me: error: newly created file is older than distributed files! 1482 Check your system clock" >&2;} 1483 { (exit 1); exit 1; }; } 1484 fi 1485 echo "$as_me:$LINENO: result: yes" >&5 1486 echo "${ECHO_T}yes" >&6 1487 test "$program_prefix" != NONE && 1488 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1489 # Use a double $ so make ignores it. 1490 test "$program_suffix" != NONE && 1491 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1492 # Double any \ or $. echo might interpret backslashes. 1493 # By default was `s,x,x', remove it if useless. 1494 cat <<\_ACEOF >conftest.sed 1495 s/[\\$]/&&/g;s/;s,x,x,$// 1496 _ACEOF 1497 program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1498 rm conftest.sed 1499 1500 # expand $ac_aux_dir to an absolute path 1501 am_aux_dir=`cd $ac_aux_dir && pwd` 1502 1503 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1504 # Use eval to expand $SHELL 1505 if eval "$MISSING --run true"; then 1506 am_missing_run="$MISSING --run " 1507 else 1508 am_missing_run= 1509 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1510 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1511 fi 1512 1513 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 1514 # We used to keeping the `.' as first argument, in order to 1515 # allow $(mkdir_p) to be used without argument. As in 1516 # $(mkdir_p) $(somedir) 1517 # where $(somedir) is conditionally defined. However this is wrong 1518 # for two reasons: 1519 # 1. if the package is installed by a user who cannot write `.' 1520 # make install will fail, 1521 # 2. the above comment should most certainly read 1522 # $(mkdir_p) $(DESTDIR)$(somedir) 1523 # so it does not work when $(somedir) is undefined and 1524 # $(DESTDIR) is not. 1525 # To support the latter case, we have to write 1526 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 1527 # so the `.' trick is pointless. 1528 mkdir_p='mkdir -p --' 1529 else 1530 # On NextStep and OpenStep, the `mkdir' command does not 1531 # recognize any option. It will interpret all options as 1532 # directories to create, and then abort because `.' already 1533 # exists. 1534 for d in ./-p ./--version; 1535 do 1536 test -d $d && rmdir $d 1537 done 1538 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 1539 if test -f "$ac_aux_dir/mkinstalldirs"; then 1540 mkdir_p='$(mkinstalldirs)' 1541 else 1542 mkdir_p='$(install_sh) -d' 1543 fi 1544 fi 1545 1546 for ac_prog in gawk mawk nawk awk 1547 do 1548 # Extract the first word of "$ac_prog", so it can be a program name with args. 1549 set dummy $ac_prog; ac_word=$2 1550 echo "$as_me:$LINENO: checking for $ac_word" >&5 1551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1552 if test "${ac_cv_prog_AWK+set}" = set; then 1553 echo $ECHO_N "(cached) $ECHO_C" >&6 1554 else 1555 if test -n "$AWK"; then 1556 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1557 else 1558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1559 for as_dir in $PATH 1560 do 1561 IFS=$as_save_IFS 1562 test -z "$as_dir" && as_dir=. 1563 for ac_exec_ext in '' $ac_executable_extensions; do 1564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1565 ac_cv_prog_AWK="$ac_prog" 1566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1567 break 2 1568 fi 1569 done 1570 done 1571 1572 fi 1573 fi 1574 AWK=$ac_cv_prog_AWK 1575 if test -n "$AWK"; then 1576 echo "$as_me:$LINENO: result: $AWK" >&5 1577 echo "${ECHO_T}$AWK" >&6 1578 else 1579 echo "$as_me:$LINENO: result: no" >&5 1580 echo "${ECHO_T}no" >&6 1581 fi 1582 1583 test -n "$AWK" && break 1584 done 1585 1586 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1587 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1588 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1589 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1590 echo $ECHO_N "(cached) $ECHO_C" >&6 1591 else 1592 cat >conftest.make <<\_ACEOF 1593 all: 1594 @echo 'ac_maketemp="$(MAKE)"' 1595 _ACEOF 1596 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1597 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1598 if test -n "$ac_maketemp"; then 1599 eval ac_cv_prog_make_${ac_make}_set=yes 1600 else 1601 eval ac_cv_prog_make_${ac_make}_set=no 1602 fi 1603 rm -f conftest.make 1604 fi 1605 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1606 echo "$as_me:$LINENO: result: yes" >&5 1607 echo "${ECHO_T}yes" >&6 1608 SET_MAKE= 1609 else 1610 echo "$as_me:$LINENO: result: no" >&5 1611 echo "${ECHO_T}no" >&6 1612 SET_MAKE="MAKE=${MAKE-make}" 1613 fi 1614 1615 rm -rf .tst 2>/dev/null 1616 mkdir .tst 2>/dev/null 1617 if test -d .tst; then 1618 am__leading_dot=. 1619 else 1620 am__leading_dot=_ 1621 fi 1622 rmdir .tst 2>/dev/null 1623 1624 # test to see if srcdir already configured 1625 if test "`cd $srcdir && pwd`" != "`pwd`" && 1626 test -f $srcdir/config.status; then 1627 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1628 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1629 { (exit 1); exit 1; }; } 1630 fi 1631 1632 # test whether we have cygpath 1633 if test -z "$CYGPATH_W"; then 1634 if (cygpath --version) >/dev/null 2>/dev/null; then 1635 CYGPATH_W='cygpath -w' 1636 else 1637 CYGPATH_W=echo 1638 fi 1639 fi 1640 1641 1642 # Define the identity of the package. 1643 PACKAGE='texinfo' 1644 VERSION='4.8' 1645 1646 1647 cat >>confdefs.h <<_ACEOF 1648 #define PACKAGE "$PACKAGE" 1649 _ACEOF 1650 1651 1652 cat >>confdefs.h <<_ACEOF 1653 #define VERSION "$VERSION" 1654 _ACEOF 1655 1656 # Some tools Automake needs. 1657 1658 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1659 1660 1661 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1662 1663 1664 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1665 1666 1667 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1668 1669 1670 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1671 1672 install_sh=${install_sh-"$am_aux_dir/install-sh"} 1673 1674 # Installed binaries are usually stripped using `strip' when the user 1675 # run `make install-strip'. However `strip' might not be the right 1676 # tool to use in cross-compilation environments, therefore Automake 1677 # will honor the `STRIP' environment variable to overrule this program. 1678 if test "$cross_compiling" != no; then 1679 if test -n "$ac_tool_prefix"; then 1680 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1681 set dummy ${ac_tool_prefix}strip; ac_word=$2 1682 echo "$as_me:$LINENO: checking for $ac_word" >&5 1683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1684 if test "${ac_cv_prog_STRIP+set}" = set; then 1685 echo $ECHO_N "(cached) $ECHO_C" >&6 1686 else 1687 if test -n "$STRIP"; then 1688 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1689 else 1690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1691 for as_dir in $PATH 1692 do 1693 IFS=$as_save_IFS 1694 test -z "$as_dir" && as_dir=. 1695 for ac_exec_ext in '' $ac_executable_extensions; do 1696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1697 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1699 break 2 1700 fi 1701 done 1702 done 1703 1704 fi 1705 fi 1706 STRIP=$ac_cv_prog_STRIP 1707 if test -n "$STRIP"; then 1708 echo "$as_me:$LINENO: result: $STRIP" >&5 1709 echo "${ECHO_T}$STRIP" >&6 1710 else 1711 echo "$as_me:$LINENO: result: no" >&5 1712 echo "${ECHO_T}no" >&6 1713 fi 1714 1715 fi 1716 if test -z "$ac_cv_prog_STRIP"; then 1717 ac_ct_STRIP=$STRIP 1718 # Extract the first word of "strip", so it can be a program name with args. 1719 set dummy strip; ac_word=$2 1720 echo "$as_me:$LINENO: checking for $ac_word" >&5 1721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1722 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1723 echo $ECHO_N "(cached) $ECHO_C" >&6 1724 else 1725 if test -n "$ac_ct_STRIP"; then 1726 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1727 else 1728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1729 for as_dir in $PATH 1730 do 1731 IFS=$as_save_IFS 1732 test -z "$as_dir" && as_dir=. 1733 for ac_exec_ext in '' $ac_executable_extensions; do 1734 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1735 ac_cv_prog_ac_ct_STRIP="strip" 1736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1737 break 2 1738 fi 1739 done 1740 done 1741 1742 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1743 fi 1744 fi 1745 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1746 if test -n "$ac_ct_STRIP"; then 1747 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1748 echo "${ECHO_T}$ac_ct_STRIP" >&6 1749 else 1750 echo "$as_me:$LINENO: result: no" >&5 1751 echo "${ECHO_T}no" >&6 1752 fi 1753 1754 STRIP=$ac_ct_STRIP 1755 else 1756 STRIP="$ac_cv_prog_STRIP" 1757 fi 1758 1759 fi 1760 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1761 1762 # We need awk for the "check" target. The system "awk" is bad on 1763 # some platforms. 1764 # Always define AMTAR for backward compatibility. 1765 1766 AMTAR=${AMTAR-"${am_missing_run}tar"} 1767 1768 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 1769 1770 1771 1772 1773 1774 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 1775 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 1776 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 1777 if test "${enable_maintainer_mode+set}" = set; then 1778 enableval="$enable_maintainer_mode" 1779 USE_MAINTAINER_MODE=$enableval 1780 else 1781 USE_MAINTAINER_MODE=no 1782 fi; 1783 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 1784 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 1785 1786 1787 if test $USE_MAINTAINER_MODE = yes; then 1788 MAINTAINER_MODE_TRUE= 1789 MAINTAINER_MODE_FALSE='#' 1790 else 1791 MAINTAINER_MODE_TRUE='#' 1792 MAINTAINER_MODE_FALSE= 1793 fi 1794 1795 MAINT=$MAINTAINER_MODE_TRUE 1796 1797 1798 1799 # When the Texinfo source is imported into other repositories 1800 # (NetBSD and TeX Live), timestamps are generally not preserved. This 1801 # causes lots of annoyance, so --enable-maintainer-mode. Sorry. 1802 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 1803 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 1804 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 1805 if test "${enable_maintainer_mode+set}" = set; then 1806 enableval="$enable_maintainer_mode" 1807 USE_MAINTAINER_MODE=$enableval 1808 else 1809 USE_MAINTAINER_MODE=no 1810 fi; 1811 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 1812 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 1813 1814 1815 if test $USE_MAINTAINER_MODE = yes; then 1816 MAINTAINER_MODE_TRUE= 1817 MAINTAINER_MODE_FALSE='#' 1818 else 1819 MAINTAINER_MODE_TRUE='#' 1820 MAINTAINER_MODE_FALSE= 1821 fi 1822 1823 MAINT=$MAINTAINER_MODE_TRUE 1824 1825 1826 1827 # Checks for programs. 1828 ac_ext=c 1829 ac_cpp='$CPP $CPPFLAGS' 1830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1832 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1833 if test -n "$ac_tool_prefix"; then 1834 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1835 set dummy ${ac_tool_prefix}gcc; ac_word=$2 1836 echo "$as_me:$LINENO: checking for $ac_word" >&5 1837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1838 if test "${ac_cv_prog_CC+set}" = set; then 1839 echo $ECHO_N "(cached) $ECHO_C" >&6 1840 else 1841 if test -n "$CC"; then 1842 ac_cv_prog_CC="$CC" # Let the user override the test. 1843 else 1844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1845 for as_dir in $PATH 1846 do 1847 IFS=$as_save_IFS 1848 test -z "$as_dir" && as_dir=. 1849 for ac_exec_ext in '' $ac_executable_extensions; do 1850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1851 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1853 break 2 1854 fi 1855 done 1856 done 1857 1858 fi 1859 fi 1860 CC=$ac_cv_prog_CC 1861 if test -n "$CC"; then 1862 echo "$as_me:$LINENO: result: $CC" >&5 1863 echo "${ECHO_T}$CC" >&6 1864 else 1865 echo "$as_me:$LINENO: result: no" >&5 1866 echo "${ECHO_T}no" >&6 1867 fi 1868 1869 fi 1870 if test -z "$ac_cv_prog_CC"; then 1871 ac_ct_CC=$CC 1872 # Extract the first word of "gcc", so it can be a program name with args. 1873 set dummy gcc; ac_word=$2 1874 echo "$as_me:$LINENO: checking for $ac_word" >&5 1875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1876 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1877 echo $ECHO_N "(cached) $ECHO_C" >&6 1878 else 1879 if test -n "$ac_ct_CC"; then 1880 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1881 else 1882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1883 for as_dir in $PATH 1884 do 1885 IFS=$as_save_IFS 1886 test -z "$as_dir" && as_dir=. 1887 for ac_exec_ext in '' $ac_executable_extensions; do 1888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1889 ac_cv_prog_ac_ct_CC="gcc" 1890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1891 break 2 1892 fi 1893 done 1894 done 1895 1896 fi 1897 fi 1898 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1899 if test -n "$ac_ct_CC"; then 1900 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1901 echo "${ECHO_T}$ac_ct_CC" >&6 1902 else 1903 echo "$as_me:$LINENO: result: no" >&5 1904 echo "${ECHO_T}no" >&6 1905 fi 1906 1907 CC=$ac_ct_CC 1908 else 1909 CC="$ac_cv_prog_CC" 1910 fi 1911 1912 if test -z "$CC"; then 1913 if test -n "$ac_tool_prefix"; then 1914 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1915 set dummy ${ac_tool_prefix}cc; ac_word=$2 1916 echo "$as_me:$LINENO: checking for $ac_word" >&5 1917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1918 if test "${ac_cv_prog_CC+set}" = set; then 1919 echo $ECHO_N "(cached) $ECHO_C" >&6 1920 else 1921 if test -n "$CC"; then 1922 ac_cv_prog_CC="$CC" # Let the user override the test. 1923 else 1924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1925 for as_dir in $PATH 1926 do 1927 IFS=$as_save_IFS 1928 test -z "$as_dir" && as_dir=. 1929 for ac_exec_ext in '' $ac_executable_extensions; do 1930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1931 ac_cv_prog_CC="${ac_tool_prefix}cc" 1932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1933 break 2 1934 fi 1935 done 1936 done 1937 1938 fi 1939 fi 1940 CC=$ac_cv_prog_CC 1941 if test -n "$CC"; then 1942 echo "$as_me:$LINENO: result: $CC" >&5 1943 echo "${ECHO_T}$CC" >&6 1944 else 1945 echo "$as_me:$LINENO: result: no" >&5 1946 echo "${ECHO_T}no" >&6 1947 fi 1948 1949 fi 1950 if test -z "$ac_cv_prog_CC"; then 1951 ac_ct_CC=$CC 1952 # Extract the first word of "cc", so it can be a program name with args. 1953 set dummy cc; ac_word=$2 1954 echo "$as_me:$LINENO: checking for $ac_word" >&5 1955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1956 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1957 echo $ECHO_N "(cached) $ECHO_C" >&6 1958 else 1959 if test -n "$ac_ct_CC"; then 1960 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1961 else 1962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1963 for as_dir in $PATH 1964 do 1965 IFS=$as_save_IFS 1966 test -z "$as_dir" && as_dir=. 1967 for ac_exec_ext in '' $ac_executable_extensions; do 1968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1969 ac_cv_prog_ac_ct_CC="cc" 1970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1971 break 2 1972 fi 1973 done 1974 done 1975 1976 fi 1977 fi 1978 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1979 if test -n "$ac_ct_CC"; then 1980 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1981 echo "${ECHO_T}$ac_ct_CC" >&6 1982 else 1983 echo "$as_me:$LINENO: result: no" >&5 1984 echo "${ECHO_T}no" >&6 1985 fi 1986 1987 CC=$ac_ct_CC 1988 else 1989 CC="$ac_cv_prog_CC" 1990 fi 1991 1992 fi 1993 if test -z "$CC"; then 1994 # Extract the first word of "cc", so it can be a program name with args. 1995 set dummy cc; ac_word=$2 1996 echo "$as_me:$LINENO: checking for $ac_word" >&5 1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1998 if test "${ac_cv_prog_CC+set}" = set; then 1999 echo $ECHO_N "(cached) $ECHO_C" >&6 2000 else 2001 if test -n "$CC"; then 2002 ac_cv_prog_CC="$CC" # Let the user override the test. 2003 else 2004 ac_prog_rejected=no 2005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2006 for as_dir in $PATH 2007 do 2008 IFS=$as_save_IFS 2009 test -z "$as_dir" && as_dir=. 2010 for ac_exec_ext in '' $ac_executable_extensions; do 2011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2012 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2013 ac_prog_rejected=yes 2014 continue 2015 fi 2016 ac_cv_prog_CC="cc" 2017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2018 break 2 2019 fi 2020 done 2021 done 2022 2023 if test $ac_prog_rejected = yes; then 2024 # We found a bogon in the path, so make sure we never use it. 2025 set dummy $ac_cv_prog_CC 2026 shift 2027 if test $# != 0; then 2028 # We chose a different compiler from the bogus one. 2029 # However, it has the same basename, so the bogon will be chosen 2030 # first if we set CC to just the basename; use the full file name. 2031 shift 2032 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2033 fi 2034 fi 2035 fi 2036 fi 2037 CC=$ac_cv_prog_CC 2038 if test -n "$CC"; then 2039 echo "$as_me:$LINENO: result: $CC" >&5 2040 echo "${ECHO_T}$CC" >&6 2041 else 2042 echo "$as_me:$LINENO: result: no" >&5 2043 echo "${ECHO_T}no" >&6 2044 fi 2045 2046 fi 2047 if test -z "$CC"; then 2048 if test -n "$ac_tool_prefix"; then 2049 for ac_prog in cl 2050 do 2051 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2052 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2053 echo "$as_me:$LINENO: checking for $ac_word" >&5 2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2055 if test "${ac_cv_prog_CC+set}" = set; then 2056 echo $ECHO_N "(cached) $ECHO_C" >&6 2057 else 2058 if test -n "$CC"; then 2059 ac_cv_prog_CC="$CC" # Let the user override the test. 2060 else 2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2062 for as_dir in $PATH 2063 do 2064 IFS=$as_save_IFS 2065 test -z "$as_dir" && as_dir=. 2066 for ac_exec_ext in '' $ac_executable_extensions; do 2067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2068 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2070 break 2 2071 fi 2072 done 2073 done 2074 2075 fi 2076 fi 2077 CC=$ac_cv_prog_CC 2078 if test -n "$CC"; then 2079 echo "$as_me:$LINENO: result: $CC" >&5 2080 echo "${ECHO_T}$CC" >&6 2081 else 2082 echo "$as_me:$LINENO: result: no" >&5 2083 echo "${ECHO_T}no" >&6 2084 fi 2085 2086 test -n "$CC" && break 2087 done 2088 fi 2089 if test -z "$CC"; then 2090 ac_ct_CC=$CC 2091 for ac_prog in cl 2092 do 2093 # Extract the first word of "$ac_prog", so it can be a program name with args. 2094 set dummy $ac_prog; ac_word=$2 2095 echo "$as_me:$LINENO: checking for $ac_word" >&5 2096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2097 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2098 echo $ECHO_N "(cached) $ECHO_C" >&6 2099 else 2100 if test -n "$ac_ct_CC"; then 2101 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2102 else 2103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2104 for as_dir in $PATH 2105 do 2106 IFS=$as_save_IFS 2107 test -z "$as_dir" && as_dir=. 2108 for ac_exec_ext in '' $ac_executable_extensions; do 2109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2110 ac_cv_prog_ac_ct_CC="$ac_prog" 2111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2112 break 2 2113 fi 2114 done 2115 done 2116 2117 fi 2118 fi 2119 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2120 if test -n "$ac_ct_CC"; then 2121 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2122 echo "${ECHO_T}$ac_ct_CC" >&6 2123 else 2124 echo "$as_me:$LINENO: result: no" >&5 2125 echo "${ECHO_T}no" >&6 2126 fi 2127 2128 test -n "$ac_ct_CC" && break 2129 done 2130 2131 CC=$ac_ct_CC 2132 fi 2133 2134 fi 2135 2136 2137 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2138 See \`config.log' for more details." >&5 2139 echo "$as_me: error: no acceptable C compiler found in \$PATH 2140 See \`config.log' for more details." >&2;} 2141 { (exit 1); exit 1; }; } 2142 2143 # Provide some information about the compiler. 2144 echo "$as_me:$LINENO:" \ 2145 "checking for C compiler version" >&5 2146 ac_compiler=`set X $ac_compile; echo $2` 2147 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2148 (eval $ac_compiler --version </dev/null >&5) 2>&5 2149 ac_status=$? 2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2151 (exit $ac_status); } 2152 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2153 (eval $ac_compiler -v </dev/null >&5) 2>&5 2154 ac_status=$? 2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2156 (exit $ac_status); } 2157 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2158 (eval $ac_compiler -V </dev/null >&5) 2>&5 2159 ac_status=$? 2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2161 (exit $ac_status); } 2162 2163 cat >conftest.$ac_ext <<_ACEOF 2164 /* confdefs.h. */ 2165 _ACEOF 2166 cat confdefs.h >>conftest.$ac_ext 2167 cat >>conftest.$ac_ext <<_ACEOF 2168 /* end confdefs.h. */ 2169 2170 int 2171 main () 2172 { 2173 2174 ; 2175 return 0; 2176 } 2177 _ACEOF 2178 ac_clean_files_save=$ac_clean_files 2179 ac_clean_files="$ac_clean_files a.out a.exe b.out" 2180 # Try to create an executable without -o first, disregard a.out. 2181 # It will help us diagnose broken compilers, and finding out an intuition 2182 # of exeext. 2183 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2184 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2185 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2186 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2187 (eval $ac_link_default) 2>&5 2188 ac_status=$? 2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2190 (exit $ac_status); }; then 2191 # Find the output, starting from the most likely. This scheme is 2192 # not robust to junk in `.', hence go to wildcards (a.*) only as a last 2193 # resort. 2194 2195 # Be careful to initialize this variable, since it used to be cached. 2196 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2197 ac_cv_exeext= 2198 # b.out is created by i960 compilers. 2199 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2200 do 2201 test -f "$ac_file" || continue 2202 case $ac_file in 2203 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2204 ;; 2205 conftest.$ac_ext ) 2206 # This is the source file. 2207 ;; 2208 [ab].out ) 2209 # We found the default executable, but exeext='' is most 2210 # certainly right. 2211 break;; 2212 *.* ) 2213 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2214 # FIXME: I believe we export ac_cv_exeext for Libtool, 2215 # but it would be cool to find out if it's true. Does anybody 2216 # maintain Libtool? --akim. 2217 export ac_cv_exeext 2218 break;; 2219 * ) 2220 break;; 2221 esac 2222 done 2223 else 2224 echo "$as_me: failed program was:" >&5 2225 sed 's/^/| /' conftest.$ac_ext >&5 2226 2227 { { echo "$as_me:$LINENO: error: C compiler cannot create executables 2228 See \`config.log' for more details." >&5 2229 echo "$as_me: error: C compiler cannot create executables 2230 See \`config.log' for more details." >&2;} 2231 { (exit 77); exit 77; }; } 2232 fi 2233 2234 ac_exeext=$ac_cv_exeext 2235 echo "$as_me:$LINENO: result: $ac_file" >&5 2236 echo "${ECHO_T}$ac_file" >&6 2237 2238 # Check the compiler produces executables we can run. If not, either 2239 # the compiler is broken, or we cross compile. 2240 echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2241 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2242 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2243 # If not cross compiling, check that we can run a simple program. 2244 if test "$cross_compiling" != yes; then 2245 if { ac_try='./$ac_file' 2246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2247 (eval $ac_try) 2>&5 2248 ac_status=$? 2249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2250 (exit $ac_status); }; }; then 2251 cross_compiling=no 2252 else 2253 if test "$cross_compiling" = maybe; then 2254 cross_compiling=yes 2255 else 2256 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2257 If you meant to cross compile, use \`--host'. 2258 See \`config.log' for more details." >&5 2259 echo "$as_me: error: cannot run C compiled programs. 2260 If you meant to cross compile, use \`--host'. 2261 See \`config.log' for more details." >&2;} 2262 { (exit 1); exit 1; }; } 2263 fi 2264 fi 2265 fi 2266 echo "$as_me:$LINENO: result: yes" >&5 2267 echo "${ECHO_T}yes" >&6 2268 2269 rm -f a.out a.exe conftest$ac_cv_exeext b.out 2270 ac_clean_files=$ac_clean_files_save 2271 # Check the compiler produces executables we can run. If not, either 2272 # the compiler is broken, or we cross compile. 2273 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2274 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2275 echo "$as_me:$LINENO: result: $cross_compiling" >&5 2276 echo "${ECHO_T}$cross_compiling" >&6 2277 2278 echo "$as_me:$LINENO: checking for suffix of executables" >&5 2279 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2281 (eval $ac_link) 2>&5 2282 ac_status=$? 2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2284 (exit $ac_status); }; then 2285 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2286 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2287 # work properly (i.e., refer to `conftest.exe'), while it won't with 2288 # `rm'. 2289 for ac_file in conftest.exe conftest conftest.*; do 2290 test -f "$ac_file" || continue 2291 case $ac_file in 2292 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2293 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2294 export ac_cv_exeext 2295 break;; 2296 * ) break;; 2297 esac 2298 done 2299 else 2300 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2301 See \`config.log' for more details." >&5 2302 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2303 See \`config.log' for more details." >&2;} 2304 { (exit 1); exit 1; }; } 2305 fi 2306 2307 rm -f conftest$ac_cv_exeext 2308 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2309 echo "${ECHO_T}$ac_cv_exeext" >&6 2310 2311 rm -f conftest.$ac_ext 2312 EXEEXT=$ac_cv_exeext 2313 ac_exeext=$EXEEXT 2314 echo "$as_me:$LINENO: checking for suffix of object files" >&5 2315 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2316 if test "${ac_cv_objext+set}" = set; then 2317 echo $ECHO_N "(cached) $ECHO_C" >&6 2318 else 2319 cat >conftest.$ac_ext <<_ACEOF 2320 /* confdefs.h. */ 2321 _ACEOF 2322 cat confdefs.h >>conftest.$ac_ext 2323 cat >>conftest.$ac_ext <<_ACEOF 2324 /* end confdefs.h. */ 2325 2326 int 2327 main () 2328 { 2329 2330 ; 2331 return 0; 2332 } 2333 _ACEOF 2334 rm -f conftest.o conftest.obj 2335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2336 (eval $ac_compile) 2>&5 2337 ac_status=$? 2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2339 (exit $ac_status); }; then 2340 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2341 case $ac_file in 2342 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2343 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2344 break;; 2345 esac 2346 done 2347 else 2348 echo "$as_me: failed program was:" >&5 2349 sed 's/^/| /' conftest.$ac_ext >&5 2350 2351 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2352 See \`config.log' for more details." >&5 2353 echo "$as_me: error: cannot compute suffix of object files: cannot compile 2354 See \`config.log' for more details." >&2;} 2355 { (exit 1); exit 1; }; } 2356 fi 2357 2358 rm -f conftest.$ac_cv_objext conftest.$ac_ext 2359 fi 2360 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2361 echo "${ECHO_T}$ac_cv_objext" >&6 2362 OBJEXT=$ac_cv_objext 2363 ac_objext=$OBJEXT 2364 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2365 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2366 if test "${ac_cv_c_compiler_gnu+set}" = set; then 2367 echo $ECHO_N "(cached) $ECHO_C" >&6 2368 else 2369 cat >conftest.$ac_ext <<_ACEOF 2370 /* confdefs.h. */ 2371 _ACEOF 2372 cat confdefs.h >>conftest.$ac_ext 2373 cat >>conftest.$ac_ext <<_ACEOF 2374 /* end confdefs.h. */ 2375 2376 int 2377 main () 2378 { 2379 #ifndef __GNUC__ 2380 choke me 2381 #endif 2382 2383 ; 2384 return 0; 2385 } 2386 _ACEOF 2387 rm -f conftest.$ac_objext 2388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2389 (eval $ac_compile) 2>conftest.er1 2390 ac_status=$? 2391 grep -v '^ *+' conftest.er1 >conftest.err 2392 rm -f conftest.er1 2393 cat conftest.err >&5 2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2395 (exit $ac_status); } && 2396 { ac_try='test -z "$ac_c_werror_flag" 2397 || test ! -s conftest.err' 2398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2399 (eval $ac_try) 2>&5 2400 ac_status=$? 2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2402 (exit $ac_status); }; } && 2403 { ac_try='test -s conftest.$ac_objext' 2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2405 (eval $ac_try) 2>&5 2406 ac_status=$? 2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2408 (exit $ac_status); }; }; then 2409 ac_compiler_gnu=yes 2410 else 2411 echo "$as_me: failed program was:" >&5 2412 sed 's/^/| /' conftest.$ac_ext >&5 2413 2414 ac_compiler_gnu=no 2415 fi 2416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2417 ac_cv_c_compiler_gnu=$ac_compiler_gnu 2418 2419 fi 2420 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2421 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2422 GCC=`test $ac_compiler_gnu = yes && echo yes` 2423 ac_test_CFLAGS=${CFLAGS+set} 2424 ac_save_CFLAGS=$CFLAGS 2425 CFLAGS="-g" 2426 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2427 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2428 if test "${ac_cv_prog_cc_g+set}" = set; then 2429 echo $ECHO_N "(cached) $ECHO_C" >&6 2430 else 2431 cat >conftest.$ac_ext <<_ACEOF 2432 /* confdefs.h. */ 2433 _ACEOF 2434 cat confdefs.h >>conftest.$ac_ext 2435 cat >>conftest.$ac_ext <<_ACEOF 2436 /* end confdefs.h. */ 2437 2438 int 2439 main () 2440 { 2441 2442 ; 2443 return 0; 2444 } 2445 _ACEOF 2446 rm -f conftest.$ac_objext 2447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2448 (eval $ac_compile) 2>conftest.er1 2449 ac_status=$? 2450 grep -v '^ *+' conftest.er1 >conftest.err 2451 rm -f conftest.er1 2452 cat conftest.err >&5 2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2454 (exit $ac_status); } && 2455 { ac_try='test -z "$ac_c_werror_flag" 2456 || test ! -s conftest.err' 2457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2458 (eval $ac_try) 2>&5 2459 ac_status=$? 2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2461 (exit $ac_status); }; } && 2462 { ac_try='test -s conftest.$ac_objext' 2463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2464 (eval $ac_try) 2>&5 2465 ac_status=$? 2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2467 (exit $ac_status); }; }; then 2468 ac_cv_prog_cc_g=yes 2469 else 2470 echo "$as_me: failed program was:" >&5 2471 sed 's/^/| /' conftest.$ac_ext >&5 2472 2473 ac_cv_prog_cc_g=no 2474 fi 2475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2476 fi 2477 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2478 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2479 if test "$ac_test_CFLAGS" = set; then 2480 CFLAGS=$ac_save_CFLAGS 2481 elif test $ac_cv_prog_cc_g = yes; then 2482 if test "$GCC" = yes; then 2483 CFLAGS="-g -O2" 2484 else 2485 CFLAGS="-g" 2486 fi 2487 else 2488 if test "$GCC" = yes; then 2489 CFLAGS="-O2" 2490 else 2491 CFLAGS= 2492 fi 2493 fi 2494 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2495 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2496 if test "${ac_cv_prog_cc_stdc+set}" = set; then 2497 echo $ECHO_N "(cached) $ECHO_C" >&6 2498 else 2499 ac_cv_prog_cc_stdc=no 2500 ac_save_CC=$CC 2501 cat >conftest.$ac_ext <<_ACEOF 2502 /* confdefs.h. */ 2503 _ACEOF 2504 cat confdefs.h >>conftest.$ac_ext 2505 cat >>conftest.$ac_ext <<_ACEOF 2506 /* end confdefs.h. */ 2507 #include <stdarg.h> 2508 #include <stdio.h> 2509 #include <sys/types.h> 2510 #include <sys/stat.h> 2511 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2512 struct buf { int x; }; 2513 FILE * (*rcsopen) (struct buf *, struct stat *, int); 2514 static char *e (p, i) 2515 char **p; 2516 int i; 2517 { 2518 return p[i]; 2519 } 2520 static char *f (char * (*g) (char **, int), char **p, ...) 2521 { 2522 char *s; 2523 va_list v; 2524 va_start (v,p); 2525 s = g (p, va_arg (v,int)); 2526 va_end (v); 2527 return s; 2528 } 2529 2530 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2531 function prototypes and stuff, but not '\xHH' hex character constants. 2532 These don't provoke an error unfortunately, instead are silently treated 2533 as 'x'. The following induces an error, until -std1 is added to get 2534 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2535 array size at least. It's necessary to write '\x00'==0 to get something 2536 that's true only with -std1. */ 2537 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2538 2539 int test (int i, double x); 2540 struct s1 {int (*f) (int a);}; 2541 struct s2 {int (*f) (double a);}; 2542 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2543 int argc; 2544 char **argv; 2545 int 2546 main () 2547 { 2548 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2549 ; 2550 return 0; 2551 } 2552 _ACEOF 2553 # Don't try gcc -ansi; that turns off useful extensions and 2554 # breaks some systems' header files. 2555 # AIX -qlanglvl=ansi 2556 # Ultrix and OSF/1 -std1 2557 # HP-UX 10.20 and later -Ae 2558 # HP-UX older versions -Aa -D_HPUX_SOURCE 2559 # SVR4 -Xc -D__EXTENSIONS__ 2560 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2561 do 2562 CC="$ac_save_CC $ac_arg" 2563 rm -f conftest.$ac_objext 2564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2565 (eval $ac_compile) 2>conftest.er1 2566 ac_status=$? 2567 grep -v '^ *+' conftest.er1 >conftest.err 2568 rm -f conftest.er1 2569 cat conftest.err >&5 2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2571 (exit $ac_status); } && 2572 { ac_try='test -z "$ac_c_werror_flag" 2573 || test ! -s conftest.err' 2574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2575 (eval $ac_try) 2>&5 2576 ac_status=$? 2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2578 (exit $ac_status); }; } && 2579 { ac_try='test -s conftest.$ac_objext' 2580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2581 (eval $ac_try) 2>&5 2582 ac_status=$? 2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2584 (exit $ac_status); }; }; then 2585 ac_cv_prog_cc_stdc=$ac_arg 2586 break 2587 else 2588 echo "$as_me: failed program was:" >&5 2589 sed 's/^/| /' conftest.$ac_ext >&5 2590 2591 fi 2592 rm -f conftest.err conftest.$ac_objext 2593 done 2594 rm -f conftest.$ac_ext conftest.$ac_objext 2595 CC=$ac_save_CC 2596 2597 fi 2598 2599 case "x$ac_cv_prog_cc_stdc" in 2600 x|xno) 2601 echo "$as_me:$LINENO: result: none needed" >&5 2602 echo "${ECHO_T}none needed" >&6 ;; 2603 *) 2604 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2605 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2606 CC="$CC $ac_cv_prog_cc_stdc" ;; 2607 esac 2608 2609 # Some people use a C++ compiler to compile C. Since we use `exit', 2610 # in C++ we need to declare it. In case someone uses the same compiler 2611 # for both compiling C and C++ we need to have the C++ compiler decide 2612 # the declaration of exit, since it's the most demanding environment. 2613 cat >conftest.$ac_ext <<_ACEOF 2614 #ifndef __cplusplus 2615 choke me 2616 #endif 2617 _ACEOF 2618 rm -f conftest.$ac_objext 2619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2620 (eval $ac_compile) 2>conftest.er1 2621 ac_status=$? 2622 grep -v '^ *+' conftest.er1 >conftest.err 2623 rm -f conftest.er1 2624 cat conftest.err >&5 2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2626 (exit $ac_status); } && 2627 { ac_try='test -z "$ac_c_werror_flag" 2628 || test ! -s conftest.err' 2629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2630 (eval $ac_try) 2>&5 2631 ac_status=$? 2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2633 (exit $ac_status); }; } && 2634 { ac_try='test -s conftest.$ac_objext' 2635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2636 (eval $ac_try) 2>&5 2637 ac_status=$? 2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2639 (exit $ac_status); }; }; then 2640 for ac_declaration in \ 2641 '' \ 2642 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2643 'extern "C" void std::exit (int); using std::exit;' \ 2644 'extern "C" void exit (int) throw ();' \ 2645 'extern "C" void exit (int);' \ 2646 'void exit (int);' 2647 do 2648 cat >conftest.$ac_ext <<_ACEOF 2649 /* confdefs.h. */ 2650 _ACEOF 2651 cat confdefs.h >>conftest.$ac_ext 2652 cat >>conftest.$ac_ext <<_ACEOF 2653 /* end confdefs.h. */ 2654 $ac_declaration 2655 #include <stdlib.h> 2656 int 2657 main () 2658 { 2659 exit (42); 2660 ; 2661 return 0; 2662 } 2663 _ACEOF 2664 rm -f conftest.$ac_objext 2665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2666 (eval $ac_compile) 2>conftest.er1 2667 ac_status=$? 2668 grep -v '^ *+' conftest.er1 >conftest.err 2669 rm -f conftest.er1 2670 cat conftest.err >&5 2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2672 (exit $ac_status); } && 2673 { ac_try='test -z "$ac_c_werror_flag" 2674 || test ! -s conftest.err' 2675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2676 (eval $ac_try) 2>&5 2677 ac_status=$? 2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2679 (exit $ac_status); }; } && 2680 { ac_try='test -s conftest.$ac_objext' 2681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2682 (eval $ac_try) 2>&5 2683 ac_status=$? 2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2685 (exit $ac_status); }; }; then 2686 : 2687 else 2688 echo "$as_me: failed program was:" >&5 2689 sed 's/^/| /' conftest.$ac_ext >&5 2690 2691 continue 2692 fi 2693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2694 cat >conftest.$ac_ext <<_ACEOF 2695 /* confdefs.h. */ 2696 _ACEOF 2697 cat confdefs.h >>conftest.$ac_ext 2698 cat >>conftest.$ac_ext <<_ACEOF 2699 /* end confdefs.h. */ 2700 $ac_declaration 2701 int 2702 main () 2703 { 2704 exit (42); 2705 ; 2706 return 0; 2707 } 2708 _ACEOF 2709 rm -f conftest.$ac_objext 2710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2711 (eval $ac_compile) 2>conftest.er1 2712 ac_status=$? 2713 grep -v '^ *+' conftest.er1 >conftest.err 2714 rm -f conftest.er1 2715 cat conftest.err >&5 2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2717 (exit $ac_status); } && 2718 { ac_try='test -z "$ac_c_werror_flag" 2719 || test ! -s conftest.err' 2720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2721 (eval $ac_try) 2>&5 2722 ac_status=$? 2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2724 (exit $ac_status); }; } && 2725 { ac_try='test -s conftest.$ac_objext' 2726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2727 (eval $ac_try) 2>&5 2728 ac_status=$? 2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2730 (exit $ac_status); }; }; then 2731 break 2732 else 2733 echo "$as_me: failed program was:" >&5 2734 sed 's/^/| /' conftest.$ac_ext >&5 2735 2736 fi 2737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2738 done 2739 rm -f conftest* 2740 if test -n "$ac_declaration"; then 2741 echo '#ifdef __cplusplus' >>confdefs.h 2742 echo $ac_declaration >>confdefs.h 2743 echo '#endif' >>confdefs.h 2744 fi 2745 2746 else 2747 echo "$as_me: failed program was:" >&5 2748 sed 's/^/| /' conftest.$ac_ext >&5 2749 2750 fi 2751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2752 ac_ext=c 2753 ac_cpp='$CPP $CPPFLAGS' 2754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2756 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2757 DEPDIR="${am__leading_dot}deps" 2758 2759 ac_config_commands="$ac_config_commands depfiles" 2760 2761 2762 am_make=${MAKE-make} 2763 cat > confinc << 'END' 2764 am__doit: 2765 @echo done 2766 .PHONY: am__doit 2767 END 2768 # If we don't find an include directive, just comment out the code. 2769 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2770 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2771 am__include="#" 2772 am__quote= 2773 _am_result=none 2774 # First try GNU make style include. 2775 echo "include confinc" > confmf 2776 # We grep out `Entering directory' and `Leaving directory' 2777 # messages which can occur if `w' ends up in MAKEFLAGS. 2778 # In particular we don't look at `^make:' because GNU make might 2779 # be invoked under some other name (usually "gmake"), in which 2780 # case it prints its new name instead of `make'. 2781 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2782 am__include=include 2783 am__quote= 2784 _am_result=GNU 2785 fi 2786 # Now try BSD make style include. 2787 if test "$am__include" = "#"; then 2788 echo '.include "confinc"' > confmf 2789 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2790 am__include=.include 2791 am__quote="\"" 2792 _am_result=BSD 2793 fi 2794 fi 2795 2796 2797 echo "$as_me:$LINENO: result: $_am_result" >&5 2798 echo "${ECHO_T}$_am_result" >&6 2799 rm -f confinc confmf 2800 2801 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2802 if test "${enable_dependency_tracking+set}" = set; then 2803 enableval="$enable_dependency_tracking" 2804 2805 fi; 2806 if test "x$enable_dependency_tracking" != xno; then 2807 am_depcomp="$ac_aux_dir/depcomp" 2808 AMDEPBACKSLASH='\' 2809 fi 2810 2811 2812 if test "x$enable_dependency_tracking" != xno; then 2813 AMDEP_TRUE= 2814 AMDEP_FALSE='#' 2815 else 2816 AMDEP_TRUE='#' 2817 AMDEP_FALSE= 2818 fi 2819 2820 2821 2822 2823 depcc="$CC" am_compiler_list= 2824 2825 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 2826 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 2827 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 2828 echo $ECHO_N "(cached) $ECHO_C" >&6 2829 else 2830 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 2831 # We make a subdir and do the tests there. Otherwise we can end up 2832 # making bogus files that we don't know about and never remove. For 2833 # instance it was reported that on HP-UX the gcc test will end up 2834 # making a dummy file named `D' -- because `-MD' means `put the output 2835 # in D'. 2836 mkdir conftest.dir 2837 # Copy depcomp to subdir because otherwise we won't find it if we're 2838 # using a relative directory. 2839 cp "$am_depcomp" conftest.dir 2840 cd conftest.dir 2841 # We will build objects and dependencies in a subdirectory because 2842 # it helps to detect inapplicable dependency modes. For instance 2843 # both Tru64's cc and ICC support -MD to output dependencies as a 2844 # side effect of compilation, but ICC will put the dependencies in 2845 # the current directory while Tru64 will put them in the object 2846 # directory. 2847 mkdir sub 2848 2849 am_cv_CC_dependencies_compiler_type=none 2850 if test "$am_compiler_list" = ""; then 2851 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 2852 fi 2853 for depmode in $am_compiler_list; do 2854 # Setup a source with many dependencies, because some compilers 2855 # like to wrap large dependency lists on column 80 (with \), and 2856 # we should not choose a depcomp mode which is confused by this. 2857 # 2858 # We need to recreate these files for each test, as the compiler may 2859 # overwrite some of them when testing with obscure command lines. 2860 # This happens at least with the AIX C compiler. 2861 : > sub/conftest.c 2862 for i in 1 2 3 4 5 6; do 2863 echo '#include "conftst'$i'.h"' >> sub/conftest.c 2864 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 2865 # Solaris 8's {/usr,}/bin/sh. 2866 touch sub/conftst$i.h 2867 done 2868 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 2869 2870 case $depmode in 2871 nosideeffect) 2872 # after this tag, mechanisms are not by side-effect, so they'll 2873 # only be used when explicitly requested 2874 if test "x$enable_dependency_tracking" = xyes; then 2875 continue 2876 else 2877 break 2878 fi 2879 ;; 2880 none) break ;; 2881 esac 2882 # We check with `-c' and `-o' for the sake of the "dashmstdout" 2883 # mode. It turns out that the SunPro C++ compiler does not properly 2884 # handle `-M -o', and we need to detect this. 2885 if depmode=$depmode \ 2886 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 2887 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 2888 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 2889 >/dev/null 2>conftest.err && 2890 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 2891 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 2892 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 2893 # icc doesn't choke on unknown options, it will just issue warnings 2894 # or remarks (even with -Werror). So we grep stderr for any message 2895 # that says an option was ignored or not supported. 2896 # When given -MP, icc 7.0 and 7.1 complain thusly: 2897 # icc: Command line warning: ignoring option '-M'; no argument required 2898 # The diagnosis changed in icc 8.0: 2899 # icc: Command line remark: option '-MP' not supported 2900 if (grep 'ignoring option' conftest.err || 2901 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 2902 am_cv_CC_dependencies_compiler_type=$depmode 2903 break 2904 fi 2905 fi 2906 done 2907 2908 cd .. 2909 rm -rf conftest.dir 2910 else 2911 am_cv_CC_dependencies_compiler_type=none 2912 fi 2913 2914 fi 2915 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 2916 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 2917 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 2918 2919 2920 2921 if 2922 test "x$enable_dependency_tracking" != xno \ 2923 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 2924 am__fastdepCC_TRUE= 2925 am__fastdepCC_FALSE='#' 2926 else 2927 am__fastdepCC_TRUE='#' 2928 am__fastdepCC_FALSE= 2929 fi 2930 2931 2932 2933 ac_ext=c 2934 ac_cpp='$CPP $CPPFLAGS' 2935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2937 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2938 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2939 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2940 # On Suns, sometimes $CPP names a directory. 2941 if test -n "$CPP" && test -d "$CPP"; then 2942 CPP= 2943 fi 2944 if test -z "$CPP"; then 2945 if test "${ac_cv_prog_CPP+set}" = set; then 2946 echo $ECHO_N "(cached) $ECHO_C" >&6 2947 else 2948 # Double quotes because CPP needs to be expanded 2949 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2950 do 2951 ac_preproc_ok=false 2952 for ac_c_preproc_warn_flag in '' yes 2953 do 2954 # Use a header file that comes with gcc, so configuring glibc 2955 # with a fresh cross-compiler works. 2956 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2957 # <limits.h> exists even on freestanding compilers. 2958 # On the NeXT, cc -E runs the code through the compiler's parser, 2959 # not just through cpp. "Syntax error" is here to catch this case. 2960 cat >conftest.$ac_ext <<_ACEOF 2961 /* confdefs.h. */ 2962 _ACEOF 2963 cat confdefs.h >>conftest.$ac_ext 2964 cat >>conftest.$ac_ext <<_ACEOF 2965 /* end confdefs.h. */ 2966 #ifdef __STDC__ 2967 # include <limits.h> 2968 #else 2969 # include <assert.h> 2970 #endif 2971 Syntax error 2972 _ACEOF 2973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2975 ac_status=$? 2976 grep -v '^ *+' conftest.er1 >conftest.err 2977 rm -f conftest.er1 2978 cat conftest.err >&5 2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2980 (exit $ac_status); } >/dev/null; then 2981 if test -s conftest.err; then 2982 ac_cpp_err=$ac_c_preproc_warn_flag 2983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2984 else 2985 ac_cpp_err= 2986 fi 2987 else 2988 ac_cpp_err=yes 2989 fi 2990 if test -z "$ac_cpp_err"; then 2991 : 2992 else 2993 echo "$as_me: failed program was:" >&5 2994 sed 's/^/| /' conftest.$ac_ext >&5 2995 2996 # Broken: fails on valid input. 2997 continue 2998 fi 2999 rm -f conftest.err conftest.$ac_ext 3000 3001 # OK, works on sane cases. Now check whether non-existent headers 3002 # can be detected and how. 3003 cat >conftest.$ac_ext <<_ACEOF 3004 /* confdefs.h. */ 3005 _ACEOF 3006 cat confdefs.h >>conftest.$ac_ext 3007 cat >>conftest.$ac_ext <<_ACEOF 3008 /* end confdefs.h. */ 3009 #include <ac_nonexistent.h> 3010 _ACEOF 3011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3013 ac_status=$? 3014 grep -v '^ *+' conftest.er1 >conftest.err 3015 rm -f conftest.er1 3016 cat conftest.err >&5 3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3018 (exit $ac_status); } >/dev/null; then 3019 if test -s conftest.err; then 3020 ac_cpp_err=$ac_c_preproc_warn_flag 3021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3022 else 3023 ac_cpp_err= 3024 fi 3025 else 3026 ac_cpp_err=yes 3027 fi 3028 if test -z "$ac_cpp_err"; then 3029 # Broken: success on invalid input. 3030 continue 3031 else 3032 echo "$as_me: failed program was:" >&5 3033 sed 's/^/| /' conftest.$ac_ext >&5 3034 3035 # Passes both tests. 3036 ac_preproc_ok=: 3037 break 3038 fi 3039 rm -f conftest.err conftest.$ac_ext 3040 3041 done 3042 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3043 rm -f conftest.err conftest.$ac_ext 3044 if $ac_preproc_ok; then 3045 break 3046 fi 3047 3048 done 3049 ac_cv_prog_CPP=$CPP 3050 3051 fi 3052 CPP=$ac_cv_prog_CPP 3053 else 3054 ac_cv_prog_CPP=$CPP 3055 fi 3056 echo "$as_me:$LINENO: result: $CPP" >&5 3057 echo "${ECHO_T}$CPP" >&6 3058 ac_preproc_ok=false 3059 for ac_c_preproc_warn_flag in '' yes 3060 do 3061 # Use a header file that comes with gcc, so configuring glibc 3062 # with a fresh cross-compiler works. 3063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3064 # <limits.h> exists even on freestanding compilers. 3065 # On the NeXT, cc -E runs the code through the compiler's parser, 3066 # not just through cpp. "Syntax error" is here to catch this case. 3067 cat >conftest.$ac_ext <<_ACEOF 3068 /* confdefs.h. */ 3069 _ACEOF 3070 cat confdefs.h >>conftest.$ac_ext 3071 cat >>conftest.$ac_ext <<_ACEOF 3072 /* end confdefs.h. */ 3073 #ifdef __STDC__ 3074 # include <limits.h> 3075 #else 3076 # include <assert.h> 3077 #endif 3078 Syntax error 3079 _ACEOF 3080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3082 ac_status=$? 3083 grep -v '^ *+' conftest.er1 >conftest.err 3084 rm -f conftest.er1 3085 cat conftest.err >&5 3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3087 (exit $ac_status); } >/dev/null; then 3088 if test -s conftest.err; then 3089 ac_cpp_err=$ac_c_preproc_warn_flag 3090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3091 else 3092 ac_cpp_err= 3093 fi 3094 else 3095 ac_cpp_err=yes 3096 fi 3097 if test -z "$ac_cpp_err"; then 3098 : 3099 else 3100 echo "$as_me: failed program was:" >&5 3101 sed 's/^/| /' conftest.$ac_ext >&5 3102 3103 # Broken: fails on valid input. 3104 continue 3105 fi 3106 rm -f conftest.err conftest.$ac_ext 3107 3108 # OK, works on sane cases. Now check whether non-existent headers 3109 # can be detected and how. 3110 cat >conftest.$ac_ext <<_ACEOF 3111 /* confdefs.h. */ 3112 _ACEOF 3113 cat confdefs.h >>conftest.$ac_ext 3114 cat >>conftest.$ac_ext <<_ACEOF 3115 /* end confdefs.h. */ 3116 #include <ac_nonexistent.h> 3117 _ACEOF 3118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3120 ac_status=$? 3121 grep -v '^ *+' conftest.er1 >conftest.err 3122 rm -f conftest.er1 3123 cat conftest.err >&5 3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3125 (exit $ac_status); } >/dev/null; then 3126 if test -s conftest.err; then 3127 ac_cpp_err=$ac_c_preproc_warn_flag 3128 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3129 else 3130 ac_cpp_err= 3131 fi 3132 else 3133 ac_cpp_err=yes 3134 fi 3135 if test -z "$ac_cpp_err"; then 3136 # Broken: success on invalid input. 3137 continue 3138 else 3139 echo "$as_me: failed program was:" >&5 3140 sed 's/^/| /' conftest.$ac_ext >&5 3141 3142 # Passes both tests. 3143 ac_preproc_ok=: 3144 break 3145 fi 3146 rm -f conftest.err conftest.$ac_ext 3147 3148 done 3149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3150 rm -f conftest.err conftest.$ac_ext 3151 if $ac_preproc_ok; then 3152 : 3153 else 3154 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3155 See \`config.log' for more details." >&5 3156 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3157 See \`config.log' for more details." >&2;} 3158 { (exit 1); exit 1; }; } 3159 fi 3160 3161 ac_ext=c 3162 ac_cpp='$CPP $CPPFLAGS' 3163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3165 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3166 3167 3168 echo "$as_me:$LINENO: checking for egrep" >&5 3169 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3170 if test "${ac_cv_prog_egrep+set}" = set; then 3171 echo $ECHO_N "(cached) $ECHO_C" >&6 3172 else 3173 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3174 then ac_cv_prog_egrep='grep -E' 3175 else ac_cv_prog_egrep='egrep' 3176 fi 3177 fi 3178 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3179 echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3180 EGREP=$ac_cv_prog_egrep 3181 3182 3183 if test $ac_cv_c_compiler_gnu = yes; then 3184 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 3185 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 3186 if test "${ac_cv_prog_gcc_traditional+set}" = set; then 3187 echo $ECHO_N "(cached) $ECHO_C" >&6 3188 else 3189 ac_pattern="Autoconf.*'x'" 3190 cat >conftest.$ac_ext <<_ACEOF 3191 /* confdefs.h. */ 3192 _ACEOF 3193 cat confdefs.h >>conftest.$ac_ext 3194 cat >>conftest.$ac_ext <<_ACEOF 3195 /* end confdefs.h. */ 3196 #include <sgtty.h> 3197 Autoconf TIOCGETP 3198 _ACEOF 3199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3200 $EGREP "$ac_pattern" >/dev/null 2>&1; then 3201 ac_cv_prog_gcc_traditional=yes 3202 else 3203 ac_cv_prog_gcc_traditional=no 3204 fi 3205 rm -f conftest* 3206 3207 3208 if test $ac_cv_prog_gcc_traditional = no; then 3209 cat >conftest.$ac_ext <<_ACEOF 3210 /* confdefs.h. */ 3211 _ACEOF 3212 cat confdefs.h >>conftest.$ac_ext 3213 cat >>conftest.$ac_ext <<_ACEOF 3214 /* end confdefs.h. */ 3215 #include <termio.h> 3216 Autoconf TCGETA 3217 _ACEOF 3218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3219 $EGREP "$ac_pattern" >/dev/null 2>&1; then 3220 ac_cv_prog_gcc_traditional=yes 3221 fi 3222 rm -f conftest* 3223 3224 fi 3225 fi 3226 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 3227 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 3228 if test $ac_cv_prog_gcc_traditional = yes; then 3229 CC="$CC -traditional" 3230 fi 3231 fi 3232 3233 # Find a good install program. We prefer a C program (faster), 3234 # so one script is as good as another. But avoid the broken or 3235 # incompatible versions: 3236 # SysV /etc/install, /usr/sbin/install 3237 # SunOS /usr/etc/install 3238 # IRIX /sbin/install 3239 # AIX /bin/install 3240 # AmigaOS /C/install, which installs bootblocks on floppy discs 3241 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3242 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3243 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3244 # OS/2's system install, which has a completely different semantic 3245 # ./install, which can be erroneously created by make from ./install.sh. 3246 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3247 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 3248 if test -z "$INSTALL"; then 3249 if test "${ac_cv_path_install+set}" = set; then 3250 echo $ECHO_N "(cached) $ECHO_C" >&6 3251 else 3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3253 for as_dir in $PATH 3254 do 3255 IFS=$as_save_IFS 3256 test -z "$as_dir" && as_dir=. 3257 # Account for people who put trailing slashes in PATH elements. 3258 case $as_dir/ in 3259 ./ | .// | /cC/* | \ 3260 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3261 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3262 /usr/ucb/* ) ;; 3263 *) 3264 # OSF1 and SCO ODT 3.0 have their own names for install. 3265 # Don't use installbsd from OSF since it installs stuff as root 3266 # by default. 3267 for ac_prog in ginstall scoinst install; do 3268 for ac_exec_ext in '' $ac_executable_extensions; do 3269 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3270 if test $ac_prog = install && 3271 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3272 # AIX install. It has an incompatible calling convention. 3273 : 3274 elif test $ac_prog = install && 3275 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3276 # program-specific install script used by HP pwplus--don't use. 3277 : 3278 else 3279 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3280 break 3 3281 fi 3282 fi 3283 done 3284 done 3285 ;; 3286 esac 3287 done 3288 3289 3290 fi 3291 if test "${ac_cv_path_install+set}" = set; then 3292 INSTALL=$ac_cv_path_install 3293 else 3294 # As a last resort, use the slow shell script. We don't cache a 3295 # path for INSTALL within a source directory, because that will 3296 # break other packages using the cache if that directory is 3297 # removed, or if the path is relative. 3298 INSTALL=$ac_install_sh 3299 fi 3300 fi 3301 echo "$as_me:$LINENO: result: $INSTALL" >&5 3302 echo "${ECHO_T}$INSTALL" >&6 3303 3304 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3305 # It thinks the first close brace ends the variable substitution. 3306 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3307 3308 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3309 3310 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3311 3312 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3313 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 3314 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 3315 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 3316 echo $ECHO_N "(cached) $ECHO_C" >&6 3317 else 3318 cat >conftest.make <<\_ACEOF 3319 all: 3320 @echo 'ac_maketemp="$(MAKE)"' 3321 _ACEOF 3322 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3323 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 3324 if test -n "$ac_maketemp"; then 3325 eval ac_cv_prog_make_${ac_make}_set=yes 3326 else 3327 eval ac_cv_prog_make_${ac_make}_set=no 3328 fi 3329 rm -f conftest.make 3330 fi 3331 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 3332 echo "$as_me:$LINENO: result: yes" >&5 3333 echo "${ECHO_T}yes" >&6 3334 SET_MAKE= 3335 else 3336 echo "$as_me:$LINENO: result: no" >&5 3337 echo "${ECHO_T}no" >&6 3338 SET_MAKE="MAKE=${MAKE-make}" 3339 fi 3340 3341 if test -n "$ac_tool_prefix"; then 3342 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3343 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3344 echo "$as_me:$LINENO: checking for $ac_word" >&5 3345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3346 if test "${ac_cv_prog_RANLIB+set}" = set; then 3347 echo $ECHO_N "(cached) $ECHO_C" >&6 3348 else 3349 if test -n "$RANLIB"; then 3350 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3351 else 3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3353 for as_dir in $PATH 3354 do 3355 IFS=$as_save_IFS 3356 test -z "$as_dir" && as_dir=. 3357 for ac_exec_ext in '' $ac_executable_extensions; do 3358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3359 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3361 break 2 3362 fi 3363 done 3364 done 3365 3366 fi 3367 fi 3368 RANLIB=$ac_cv_prog_RANLIB 3369 if test -n "$RANLIB"; then 3370 echo "$as_me:$LINENO: result: $RANLIB" >&5 3371 echo "${ECHO_T}$RANLIB" >&6 3372 else 3373 echo "$as_me:$LINENO: result: no" >&5 3374 echo "${ECHO_T}no" >&6 3375 fi 3376 3377 fi 3378 if test -z "$ac_cv_prog_RANLIB"; then 3379 ac_ct_RANLIB=$RANLIB 3380 # Extract the first word of "ranlib", so it can be a program name with args. 3381 set dummy ranlib; ac_word=$2 3382 echo "$as_me:$LINENO: checking for $ac_word" >&5 3383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3384 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3385 echo $ECHO_N "(cached) $ECHO_C" >&6 3386 else 3387 if test -n "$ac_ct_RANLIB"; then 3388 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3389 else 3390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3391 for as_dir in $PATH 3392 do 3393 IFS=$as_save_IFS 3394 test -z "$as_dir" && as_dir=. 3395 for ac_exec_ext in '' $ac_executable_extensions; do 3396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3397 ac_cv_prog_ac_ct_RANLIB="ranlib" 3398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3399 break 2 3400 fi 3401 done 3402 done 3403 3404 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 3405 fi 3406 fi 3407 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3408 if test -n "$ac_ct_RANLIB"; then 3409 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3410 echo "${ECHO_T}$ac_ct_RANLIB" >&6 3411 else 3412 echo "$as_me:$LINENO: result: no" >&5 3413 echo "${ECHO_T}no" >&6 3414 fi 3415 3416 RANLIB=$ac_ct_RANLIB 3417 else 3418 RANLIB="$ac_cv_prog_RANLIB" 3419 fi 3420 3421 3422 HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"} 3423 3424 3425 echo "$as_me:$LINENO: checking for library containing strerror" >&5 3426 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 3427 if test "${ac_cv_search_strerror+set}" = set; then 3428 echo $ECHO_N "(cached) $ECHO_C" >&6 3429 else 3430 ac_func_search_save_LIBS=$LIBS 3431 ac_cv_search_strerror=no 3432 cat >conftest.$ac_ext <<_ACEOF 3433 /* confdefs.h. */ 3434 _ACEOF 3435 cat confdefs.h >>conftest.$ac_ext 3436 cat >>conftest.$ac_ext <<_ACEOF 3437 /* end confdefs.h. */ 3438 3439 /* Override any gcc2 internal prototype to avoid an error. */ 3440 #ifdef __cplusplus 3441 extern "C" 3442 #endif 3443 /* We use char because int might match the return type of a gcc2 3444 builtin and then its argument prototype would still apply. */ 3445 char strerror (); 3446 int 3447 main () 3448 { 3449 strerror (); 3450 ; 3451 return 0; 3452 } 3453 _ACEOF 3454 rm -f conftest.$ac_objext conftest$ac_exeext 3455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3456 (eval $ac_link) 2>conftest.er1 3457 ac_status=$? 3458 grep -v '^ *+' conftest.er1 >conftest.err 3459 rm -f conftest.er1 3460 cat conftest.err >&5 3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3462 (exit $ac_status); } && 3463 { ac_try='test -z "$ac_c_werror_flag" 3464 || test ! -s conftest.err' 3465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3466 (eval $ac_try) 2>&5 3467 ac_status=$? 3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3469 (exit $ac_status); }; } && 3470 { ac_try='test -s conftest$ac_exeext' 3471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3472 (eval $ac_try) 2>&5 3473 ac_status=$? 3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3475 (exit $ac_status); }; }; then 3476 ac_cv_search_strerror="none required" 3477 else 3478 echo "$as_me: failed program was:" >&5 3479 sed 's/^/| /' conftest.$ac_ext >&5 3480 3481 fi 3482 rm -f conftest.err conftest.$ac_objext \ 3483 conftest$ac_exeext conftest.$ac_ext 3484 if test "$ac_cv_search_strerror" = no; then 3485 for ac_lib in cposix; do 3486 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3487 cat >conftest.$ac_ext <<_ACEOF 3488 /* confdefs.h. */ 3489 _ACEOF 3490 cat confdefs.h >>conftest.$ac_ext 3491 cat >>conftest.$ac_ext <<_ACEOF 3492 /* end confdefs.h. */ 3493 3494 /* Override any gcc2 internal prototype to avoid an error. */ 3495 #ifdef __cplusplus 3496 extern "C" 3497 #endif 3498 /* We use char because int might match the return type of a gcc2 3499 builtin and then its argument prototype would still apply. */ 3500 char strerror (); 3501 int 3502 main () 3503 { 3504 strerror (); 3505 ; 3506 return 0; 3507 } 3508 _ACEOF 3509 rm -f conftest.$ac_objext conftest$ac_exeext 3510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3511 (eval $ac_link) 2>conftest.er1 3512 ac_status=$? 3513 grep -v '^ *+' conftest.er1 >conftest.err 3514 rm -f conftest.er1 3515 cat conftest.err >&5 3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3517 (exit $ac_status); } && 3518 { ac_try='test -z "$ac_c_werror_flag" 3519 || test ! -s conftest.err' 3520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3521 (eval $ac_try) 2>&5 3522 ac_status=$? 3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3524 (exit $ac_status); }; } && 3525 { ac_try='test -s conftest$ac_exeext' 3526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3527 (eval $ac_try) 2>&5 3528 ac_status=$? 3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3530 (exit $ac_status); }; }; then 3531 ac_cv_search_strerror="-l$ac_lib" 3532 break 3533 else 3534 echo "$as_me: failed program was:" >&5 3535 sed 's/^/| /' conftest.$ac_ext >&5 3536 3537 fi 3538 rm -f conftest.err conftest.$ac_objext \ 3539 conftest$ac_exeext conftest.$ac_ext 3540 done 3541 fi 3542 LIBS=$ac_func_search_save_LIBS 3543 fi 3544 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 3545 echo "${ECHO_T}$ac_cv_search_strerror" >&6 3546 if test "$ac_cv_search_strerror" != no; then 3547 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 3548 3549 fi 3550 3551 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3552 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3553 if test "${ac_cv_header_stdc+set}" = set; then 3554 echo $ECHO_N "(cached) $ECHO_C" >&6 3555 else 3556 cat >conftest.$ac_ext <<_ACEOF 3557 /* confdefs.h. */ 3558 _ACEOF 3559 cat confdefs.h >>conftest.$ac_ext 3560 cat >>conftest.$ac_ext <<_ACEOF 3561 /* end confdefs.h. */ 3562 #include <stdlib.h> 3563 #include <stdarg.h> 3564 #include <string.h> 3565 #include <float.h> 3566 3567 int 3568 main () 3569 { 3570 3571 ; 3572 return 0; 3573 } 3574 _ACEOF 3575 rm -f conftest.$ac_objext 3576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3577 (eval $ac_compile) 2>conftest.er1 3578 ac_status=$? 3579 grep -v '^ *+' conftest.er1 >conftest.err 3580 rm -f conftest.er1 3581 cat conftest.err >&5 3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3583 (exit $ac_status); } && 3584 { ac_try='test -z "$ac_c_werror_flag" 3585 || test ! -s conftest.err' 3586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3587 (eval $ac_try) 2>&5 3588 ac_status=$? 3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3590 (exit $ac_status); }; } && 3591 { ac_try='test -s conftest.$ac_objext' 3592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3593 (eval $ac_try) 2>&5 3594 ac_status=$? 3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3596 (exit $ac_status); }; }; then 3597 ac_cv_header_stdc=yes 3598 else 3599 echo "$as_me: failed program was:" >&5 3600 sed 's/^/| /' conftest.$ac_ext >&5 3601 3602 ac_cv_header_stdc=no 3603 fi 3604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3605 3606 if test $ac_cv_header_stdc = yes; then 3607 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3608 cat >conftest.$ac_ext <<_ACEOF 3609 /* confdefs.h. */ 3610 _ACEOF 3611 cat confdefs.h >>conftest.$ac_ext 3612 cat >>conftest.$ac_ext <<_ACEOF 3613 /* end confdefs.h. */ 3614 #include <string.h> 3615 3616 _ACEOF 3617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3618 $EGREP "memchr" >/dev/null 2>&1; then 3619 : 3620 else 3621 ac_cv_header_stdc=no 3622 fi 3623 rm -f conftest* 3624 3625 fi 3626 3627 if test $ac_cv_header_stdc = yes; then 3628 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3629 cat >conftest.$ac_ext <<_ACEOF 3630 /* confdefs.h. */ 3631 _ACEOF 3632 cat confdefs.h >>conftest.$ac_ext 3633 cat >>conftest.$ac_ext <<_ACEOF 3634 /* end confdefs.h. */ 3635 #include <stdlib.h> 3636 3637 _ACEOF 3638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3639 $EGREP "free" >/dev/null 2>&1; then 3640 : 3641 else 3642 ac_cv_header_stdc=no 3643 fi 3644 rm -f conftest* 3645 3646 fi 3647 3648 if test $ac_cv_header_stdc = yes; then 3649 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3650 if test "$cross_compiling" = yes; then 3651 : 3652 else 3653 cat >conftest.$ac_ext <<_ACEOF 3654 /* confdefs.h. */ 3655 _ACEOF 3656 cat confdefs.h >>conftest.$ac_ext 3657 cat >>conftest.$ac_ext <<_ACEOF 3658 /* end confdefs.h. */ 3659 #include <ctype.h> 3660 #include <stdlib.h> 3661 #if ((' ' & 0x0FF) == 0x020) 3662 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3663 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3664 #else 3665 # define ISLOWER(c) \ 3666 (('a' <= (c) && (c) <= 'i') \ 3667 || ('j' <= (c) && (c) <= 'r') \ 3668 || ('s' <= (c) && (c) <= 'z')) 3669 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3670 #endif 3671 3672 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3673 int 3674 main () 3675 { 3676 int i; 3677 for (i = 0; i < 256; i++) 3678 if (XOR (islower (i), ISLOWER (i)) 3679 || toupper (i) != TOUPPER (i)) 3680 exit(2); 3681 exit (0); 3682 } 3683 _ACEOF 3684 rm -f conftest$ac_exeext 3685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3686 (eval $ac_link) 2>&5 3687 ac_status=$? 3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3691 (eval $ac_try) 2>&5 3692 ac_status=$? 3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3694 (exit $ac_status); }; }; then 3695 : 3696 else 3697 echo "$as_me: program exited with status $ac_status" >&5 3698 echo "$as_me: failed program was:" >&5 3699 sed 's/^/| /' conftest.$ac_ext >&5 3700 3701 ( exit $ac_status ) 3702 ac_cv_header_stdc=no 3703 fi 3704 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3705 fi 3706 fi 3707 fi 3708 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3709 echo "${ECHO_T}$ac_cv_header_stdc" >&6 3710 if test $ac_cv_header_stdc = yes; then 3711 3712 cat >>confdefs.h <<\_ACEOF 3713 #define STDC_HEADERS 1 3714 _ACEOF 3715 3716 fi 3717 3718 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3729 inttypes.h stdint.h unistd.h 3730 do 3731 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3732 echo "$as_me:$LINENO: checking for $ac_header" >&5 3733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3734 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3735 echo $ECHO_N "(cached) $ECHO_C" >&6 3736 else 3737 cat >conftest.$ac_ext <<_ACEOF 3738 /* confdefs.h. */ 3739 _ACEOF 3740 cat confdefs.h >>conftest.$ac_ext 3741 cat >>conftest.$ac_ext <<_ACEOF 3742 /* end confdefs.h. */ 3743 $ac_includes_default 3744 3745 #include <$ac_header> 3746 _ACEOF 3747 rm -f conftest.$ac_objext 3748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3749 (eval $ac_compile) 2>conftest.er1 3750 ac_status=$? 3751 grep -v '^ *+' conftest.er1 >conftest.err 3752 rm -f conftest.er1 3753 cat conftest.err >&5 3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3755 (exit $ac_status); } && 3756 { ac_try='test -z "$ac_c_werror_flag" 3757 || test ! -s conftest.err' 3758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3759 (eval $ac_try) 2>&5 3760 ac_status=$? 3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3762 (exit $ac_status); }; } && 3763 { ac_try='test -s conftest.$ac_objext' 3764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3765 (eval $ac_try) 2>&5 3766 ac_status=$? 3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3768 (exit $ac_status); }; }; then 3769 eval "$as_ac_Header=yes" 3770 else 3771 echo "$as_me: failed program was:" >&5 3772 sed 's/^/| /' conftest.$ac_ext >&5 3773 3774 eval "$as_ac_Header=no" 3775 fi 3776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3777 fi 3778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3780 if test `eval echo '${'$as_ac_Header'}'` = yes; then 3781 cat >>confdefs.h <<_ACEOF 3782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3783 _ACEOF 3784 3785 fi 3786 3787 done 3788 3789 3790 if test "${ac_cv_header_minix_config_h+set}" = set; then 3791 echo "$as_me:$LINENO: checking for minix/config.h" >&5 3792 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 3793 if test "${ac_cv_header_minix_config_h+set}" = set; then 3794 echo $ECHO_N "(cached) $ECHO_C" >&6 3795 fi 3796 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 3797 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 3798 else 3799 # Is the header compilable? 3800 echo "$as_me:$LINENO: checking minix/config.h usability" >&5 3801 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 3802 cat >conftest.$ac_ext <<_ACEOF 3803 /* confdefs.h. */ 3804 _ACEOF 3805 cat confdefs.h >>conftest.$ac_ext 3806 cat >>conftest.$ac_ext <<_ACEOF 3807 /* end confdefs.h. */ 3808 $ac_includes_default 3809 #include <minix/config.h> 3810 _ACEOF 3811 rm -f conftest.$ac_objext 3812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3813 (eval $ac_compile) 2>conftest.er1 3814 ac_status=$? 3815 grep -v '^ *+' conftest.er1 >conftest.err 3816 rm -f conftest.er1 3817 cat conftest.err >&5 3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3819 (exit $ac_status); } && 3820 { ac_try='test -z "$ac_c_werror_flag" 3821 || test ! -s conftest.err' 3822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3823 (eval $ac_try) 2>&5 3824 ac_status=$? 3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3826 (exit $ac_status); }; } && 3827 { ac_try='test -s conftest.$ac_objext' 3828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3829 (eval $ac_try) 2>&5 3830 ac_status=$? 3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3832 (exit $ac_status); }; }; then 3833 ac_header_compiler=yes 3834 else 3835 echo "$as_me: failed program was:" >&5 3836 sed 's/^/| /' conftest.$ac_ext >&5 3837 3838 ac_header_compiler=no 3839 fi 3840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3841 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3842 echo "${ECHO_T}$ac_header_compiler" >&6 3843 3844 # Is the header present? 3845 echo "$as_me:$LINENO: checking minix/config.h presence" >&5 3846 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 3847 cat >conftest.$ac_ext <<_ACEOF 3848 /* confdefs.h. */ 3849 _ACEOF 3850 cat confdefs.h >>conftest.$ac_ext 3851 cat >>conftest.$ac_ext <<_ACEOF 3852 /* end confdefs.h. */ 3853 #include <minix/config.h> 3854 _ACEOF 3855 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3856 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3857 ac_status=$? 3858 grep -v '^ *+' conftest.er1 >conftest.err 3859 rm -f conftest.er1 3860 cat conftest.err >&5 3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3862 (exit $ac_status); } >/dev/null; then 3863 if test -s conftest.err; then 3864 ac_cpp_err=$ac_c_preproc_warn_flag 3865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3866 else 3867 ac_cpp_err= 3868 fi 3869 else 3870 ac_cpp_err=yes 3871 fi 3872 if test -z "$ac_cpp_err"; then 3873 ac_header_preproc=yes 3874 else 3875 echo "$as_me: failed program was:" >&5 3876 sed 's/^/| /' conftest.$ac_ext >&5 3877 3878 ac_header_preproc=no 3879 fi 3880 rm -f conftest.err conftest.$ac_ext 3881 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3882 echo "${ECHO_T}$ac_header_preproc" >&6 3883 3884 # So? What about this header? 3885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3886 yes:no: ) 3887 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 3888 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 3889 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 3890 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} 3891 ac_header_preproc=yes 3892 ;; 3893 no:yes:* ) 3894 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 3895 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} 3896 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 3897 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} 3898 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 3899 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} 3900 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 3901 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} 3902 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 3903 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} 3904 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 3905 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} 3906 ( 3907 cat <<\_ASBOX 3908 ## -------------------------------------- ## 3909 ## Report this to the GNU Texinfo lists. ## 3910 ## -------------------------------------- ## 3911 _ASBOX 3912 ) | 3913 sed "s/^/$as_me: WARNING: /" >&2 3914 ;; 3915 esac 3916 echo "$as_me:$LINENO: checking for minix/config.h" >&5 3917 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 3918 if test "${ac_cv_header_minix_config_h+set}" = set; then 3919 echo $ECHO_N "(cached) $ECHO_C" >&6 3920 else 3921 ac_cv_header_minix_config_h=$ac_header_preproc 3922 fi 3923 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 3924 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 3925 3926 fi 3927 if test $ac_cv_header_minix_config_h = yes; then 3928 MINIX=yes 3929 else 3930 MINIX= 3931 fi 3932 3933 3934 if test "$MINIX" = yes; then 3935 3936 cat >>confdefs.h <<\_ACEOF 3937 #define _POSIX_SOURCE 1 3938 _ACEOF 3939 3940 3941 cat >>confdefs.h <<\_ACEOF 3942 #define _POSIX_1_SOURCE 2 3943 _ACEOF 3944 3945 3946 cat >>confdefs.h <<\_ACEOF 3947 #define _MINIX 1 3948 _ACEOF 3949 3950 fi 3951 3952 3953 # Needed on sysV68 for sigblock, sigsetmask. But check for it in libc first. 3954 echo "$as_me:$LINENO: checking for sigblock" >&5 3955 echo $ECHO_N "checking for sigblock... $ECHO_C" >&6 3956 if test "${ac_cv_func_sigblock+set}" = set; then 3957 echo $ECHO_N "(cached) $ECHO_C" >&6 3958 else 3959 cat >conftest.$ac_ext <<_ACEOF 3960 /* confdefs.h. */ 3961 _ACEOF 3962 cat confdefs.h >>conftest.$ac_ext 3963 cat >>conftest.$ac_ext <<_ACEOF 3964 /* end confdefs.h. */ 3965 /* Define sigblock to an innocuous variant, in case <limits.h> declares sigblock. 3966 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3967 #define sigblock innocuous_sigblock 3968 3969 /* System header to define __stub macros and hopefully few prototypes, 3970 which can conflict with char sigblock (); below. 3971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3972 <limits.h> exists even on freestanding compilers. */ 3973 3974 #ifdef __STDC__ 3975 # include <limits.h> 3976 #else 3977 # include <assert.h> 3978 #endif 3979 3980 #undef sigblock 3981 3982 /* Override any gcc2 internal prototype to avoid an error. */ 3983 #ifdef __cplusplus 3984 extern "C" 3985 { 3986 #endif 3987 /* We use char because int might match the return type of a gcc2 3988 builtin and then its argument prototype would still apply. */ 3989 char sigblock (); 3990 /* The GNU C library defines this for functions which it implements 3991 to always fail with ENOSYS. Some functions are actually named 3992 something starting with __ and the normal name is an alias. */ 3993 #if defined (__stub_sigblock) || defined (__stub___sigblock) 3994 choke me 3995 #else 3996 char (*f) () = sigblock; 3997 #endif 3998 #ifdef __cplusplus 3999 } 4000 #endif 4001 4002 int 4003 main () 4004 { 4005 return f != sigblock; 4006 ; 4007 return 0; 4008 } 4009 _ACEOF 4010 rm -f conftest.$ac_objext conftest$ac_exeext 4011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4012 (eval $ac_link) 2>conftest.er1 4013 ac_status=$? 4014 grep -v '^ *+' conftest.er1 >conftest.err 4015 rm -f conftest.er1 4016 cat conftest.err >&5 4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4018 (exit $ac_status); } && 4019 { ac_try='test -z "$ac_c_werror_flag" 4020 || test ! -s conftest.err' 4021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4022 (eval $ac_try) 2>&5 4023 ac_status=$? 4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4025 (exit $ac_status); }; } && 4026 { ac_try='test -s conftest$ac_exeext' 4027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4028 (eval $ac_try) 2>&5 4029 ac_status=$? 4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4031 (exit $ac_status); }; }; then 4032 ac_cv_func_sigblock=yes 4033 else 4034 echo "$as_me: failed program was:" >&5 4035 sed 's/^/| /' conftest.$ac_ext >&5 4036 4037 ac_cv_func_sigblock=no 4038 fi 4039 rm -f conftest.err conftest.$ac_objext \ 4040 conftest$ac_exeext conftest.$ac_ext 4041 fi 4042 echo "$as_me:$LINENO: result: $ac_cv_func_sigblock" >&5 4043 echo "${ECHO_T}$ac_cv_func_sigblock" >&6 4044 if test $ac_cv_func_sigblock = yes; then 4045 : 4046 else 4047 4048 echo "$as_me:$LINENO: checking for sigblock in -lbsd" >&5 4049 echo $ECHO_N "checking for sigblock in -lbsd... $ECHO_C" >&6 4050 if test "${ac_cv_lib_bsd_sigblock+set}" = set; then 4051 echo $ECHO_N "(cached) $ECHO_C" >&6 4052 else 4053 ac_check_lib_save_LIBS=$LIBS 4054 LIBS="-lbsd $LIBS" 4055 cat >conftest.$ac_ext <<_ACEOF 4056 /* confdefs.h. */ 4057 _ACEOF 4058 cat confdefs.h >>conftest.$ac_ext 4059 cat >>conftest.$ac_ext <<_ACEOF 4060 /* end confdefs.h. */ 4061 4062 /* Override any gcc2 internal prototype to avoid an error. */ 4063 #ifdef __cplusplus 4064 extern "C" 4065 #endif 4066 /* We use char because int might match the return type of a gcc2 4067 builtin and then its argument prototype would still apply. */ 4068 char sigblock (); 4069 int 4070 main () 4071 { 4072 sigblock (); 4073 ; 4074 return 0; 4075 } 4076 _ACEOF 4077 rm -f conftest.$ac_objext conftest$ac_exeext 4078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4079 (eval $ac_link) 2>conftest.er1 4080 ac_status=$? 4081 grep -v '^ *+' conftest.er1 >conftest.err 4082 rm -f conftest.er1 4083 cat conftest.err >&5 4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4085 (exit $ac_status); } && 4086 { ac_try='test -z "$ac_c_werror_flag" 4087 || test ! -s conftest.err' 4088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4089 (eval $ac_try) 2>&5 4090 ac_status=$? 4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4092 (exit $ac_status); }; } && 4093 { ac_try='test -s conftest$ac_exeext' 4094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4095 (eval $ac_try) 2>&5 4096 ac_status=$? 4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4098 (exit $ac_status); }; }; then 4099 ac_cv_lib_bsd_sigblock=yes 4100 else 4101 echo "$as_me: failed program was:" >&5 4102 sed 's/^/| /' conftest.$ac_ext >&5 4103 4104 ac_cv_lib_bsd_sigblock=no 4105 fi 4106 rm -f conftest.err conftest.$ac_objext \ 4107 conftest$ac_exeext conftest.$ac_ext 4108 LIBS=$ac_check_lib_save_LIBS 4109 fi 4110 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_sigblock" >&5 4111 echo "${ECHO_T}$ac_cv_lib_bsd_sigblock" >&6 4112 if test $ac_cv_lib_bsd_sigblock = yes; then 4113 cat >>confdefs.h <<_ACEOF 4114 #define HAVE_LIBBSD 1 4115 _ACEOF 4116 4117 LIBS="-lbsd $LIBS" 4118 4119 fi 4120 4121 fi 4122 4123 4124 # Checks for header files. 4125 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 4126 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 4127 if test "${ac_cv_header_stat_broken+set}" = set; then 4128 echo $ECHO_N "(cached) $ECHO_C" >&6 4129 else 4130 cat >conftest.$ac_ext <<_ACEOF 4131 /* confdefs.h. */ 4132 _ACEOF 4133 cat confdefs.h >>conftest.$ac_ext 4134 cat >>conftest.$ac_ext <<_ACEOF 4135 /* end confdefs.h. */ 4136 #include <sys/types.h> 4137 #include <sys/stat.h> 4138 4139 #if defined(S_ISBLK) && defined(S_IFDIR) 4140 # if S_ISBLK (S_IFDIR) 4141 You lose. 4142 # endif 4143 #endif 4144 4145 #if defined(S_ISBLK) && defined(S_IFCHR) 4146 # if S_ISBLK (S_IFCHR) 4147 You lose. 4148 # endif 4149 #endif 4150 4151 #if defined(S_ISLNK) && defined(S_IFREG) 4152 # if S_ISLNK (S_IFREG) 4153 You lose. 4154 # endif 4155 #endif 4156 4157 #if defined(S_ISSOCK) && defined(S_IFREG) 4158 # if S_ISSOCK (S_IFREG) 4159 You lose. 4160 # endif 4161 #endif 4162 4163 _ACEOF 4164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4165 $EGREP "You lose" >/dev/null 2>&1; then 4166 ac_cv_header_stat_broken=yes 4167 else 4168 ac_cv_header_stat_broken=no 4169 fi 4170 rm -f conftest* 4171 4172 fi 4173 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 4174 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 4175 if test $ac_cv_header_stat_broken = yes; then 4176 4177 cat >>confdefs.h <<\_ACEOF 4178 #define STAT_MACROS_BROKEN 1 4179 _ACEOF 4180 4181 fi 4182 4183 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4184 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4185 if test "${ac_cv_header_stdc+set}" = set; then 4186 echo $ECHO_N "(cached) $ECHO_C" >&6 4187 else 4188 cat >conftest.$ac_ext <<_ACEOF 4189 /* confdefs.h. */ 4190 _ACEOF 4191 cat confdefs.h >>conftest.$ac_ext 4192 cat >>conftest.$ac_ext <<_ACEOF 4193 /* end confdefs.h. */ 4194 #include <stdlib.h> 4195 #include <stdarg.h> 4196 #include <string.h> 4197 #include <float.h> 4198 4199 int 4200 main () 4201 { 4202 4203 ; 4204 return 0; 4205 } 4206 _ACEOF 4207 rm -f conftest.$ac_objext 4208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4209 (eval $ac_compile) 2>conftest.er1 4210 ac_status=$? 4211 grep -v '^ *+' conftest.er1 >conftest.err 4212 rm -f conftest.er1 4213 cat conftest.err >&5 4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4215 (exit $ac_status); } && 4216 { ac_try='test -z "$ac_c_werror_flag" 4217 || test ! -s conftest.err' 4218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4219 (eval $ac_try) 2>&5 4220 ac_status=$? 4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4222 (exit $ac_status); }; } && 4223 { ac_try='test -s conftest.$ac_objext' 4224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4225 (eval $ac_try) 2>&5 4226 ac_status=$? 4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4228 (exit $ac_status); }; }; then 4229 ac_cv_header_stdc=yes 4230 else 4231 echo "$as_me: failed program was:" >&5 4232 sed 's/^/| /' conftest.$ac_ext >&5 4233 4234 ac_cv_header_stdc=no 4235 fi 4236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4237 4238 if test $ac_cv_header_stdc = yes; then 4239 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4240 cat >conftest.$ac_ext <<_ACEOF 4241 /* confdefs.h. */ 4242 _ACEOF 4243 cat confdefs.h >>conftest.$ac_ext 4244 cat >>conftest.$ac_ext <<_ACEOF 4245 /* end confdefs.h. */ 4246 #include <string.h> 4247 4248 _ACEOF 4249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4250 $EGREP "memchr" >/dev/null 2>&1; then 4251 : 4252 else 4253 ac_cv_header_stdc=no 4254 fi 4255 rm -f conftest* 4256 4257 fi 4258 4259 if test $ac_cv_header_stdc = yes; then 4260 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4261 cat >conftest.$ac_ext <<_ACEOF 4262 /* confdefs.h. */ 4263 _ACEOF 4264 cat confdefs.h >>conftest.$ac_ext 4265 cat >>conftest.$ac_ext <<_ACEOF 4266 /* end confdefs.h. */ 4267 #include <stdlib.h> 4268 4269 _ACEOF 4270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4271 $EGREP "free" >/dev/null 2>&1; then 4272 : 4273 else 4274 ac_cv_header_stdc=no 4275 fi 4276 rm -f conftest* 4277 4278 fi 4279 4280 if test $ac_cv_header_stdc = yes; then 4281 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4282 if test "$cross_compiling" = yes; then 4283 : 4284 else 4285 cat >conftest.$ac_ext <<_ACEOF 4286 /* confdefs.h. */ 4287 _ACEOF 4288 cat confdefs.h >>conftest.$ac_ext 4289 cat >>conftest.$ac_ext <<_ACEOF 4290 /* end confdefs.h. */ 4291 #include <ctype.h> 4292 #if ((' ' & 0x0FF) == 0x020) 4293 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4294 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4295 #else 4296 # define ISLOWER(c) \ 4297 (('a' <= (c) && (c) <= 'i') \ 4298 || ('j' <= (c) && (c) <= 'r') \ 4299 || ('s' <= (c) && (c) <= 'z')) 4300 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4301 #endif 4302 4303 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4304 int 4305 main () 4306 { 4307 int i; 4308 for (i = 0; i < 256; i++) 4309 if (XOR (islower (i), ISLOWER (i)) 4310 || toupper (i) != TOUPPER (i)) 4311 exit(2); 4312 exit (0); 4313 } 4314 _ACEOF 4315 rm -f conftest$ac_exeext 4316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4317 (eval $ac_link) 2>&5 4318 ac_status=$? 4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4320 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4322 (eval $ac_try) 2>&5 4323 ac_status=$? 4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4325 (exit $ac_status); }; }; then 4326 : 4327 else 4328 echo "$as_me: program exited with status $ac_status" >&5 4329 echo "$as_me: failed program was:" >&5 4330 sed 's/^/| /' conftest.$ac_ext >&5 4331 4332 ( exit $ac_status ) 4333 ac_cv_header_stdc=no 4334 fi 4335 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4336 fi 4337 fi 4338 fi 4339 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4340 echo "${ECHO_T}$ac_cv_header_stdc" >&6 4341 if test $ac_cv_header_stdc = yes; then 4342 4343 cat >>confdefs.h <<\_ACEOF 4344 #define STDC_HEADERS 1 4345 _ACEOF 4346 4347 fi 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 for ac_header in fcntl.h io.h limits.h pwd.h string.h strings.h \ 4366 termcap.h termio.h termios.h unistd.h \ 4367 sys/fcntl.h sys/file.h sys/stream.h sys/time.h sys/ttold.h sys/wait.h 4368 do 4369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4370 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4371 echo "$as_me:$LINENO: checking for $ac_header" >&5 4372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4373 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4374 echo $ECHO_N "(cached) $ECHO_C" >&6 4375 fi 4376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4378 else 4379 # Is the header compilable? 4380 echo "$as_me:$LINENO: checking $ac_header usability" >&5 4381 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4382 cat >conftest.$ac_ext <<_ACEOF 4383 /* confdefs.h. */ 4384 _ACEOF 4385 cat confdefs.h >>conftest.$ac_ext 4386 cat >>conftest.$ac_ext <<_ACEOF 4387 /* end confdefs.h. */ 4388 $ac_includes_default 4389 #include <$ac_header> 4390 _ACEOF 4391 rm -f conftest.$ac_objext 4392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4393 (eval $ac_compile) 2>conftest.er1 4394 ac_status=$? 4395 grep -v '^ *+' conftest.er1 >conftest.err 4396 rm -f conftest.er1 4397 cat conftest.err >&5 4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4399 (exit $ac_status); } && 4400 { ac_try='test -z "$ac_c_werror_flag" 4401 || test ! -s conftest.err' 4402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4403 (eval $ac_try) 2>&5 4404 ac_status=$? 4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4406 (exit $ac_status); }; } && 4407 { ac_try='test -s conftest.$ac_objext' 4408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4409 (eval $ac_try) 2>&5 4410 ac_status=$? 4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4412 (exit $ac_status); }; }; then 4413 ac_header_compiler=yes 4414 else 4415 echo "$as_me: failed program was:" >&5 4416 sed 's/^/| /' conftest.$ac_ext >&5 4417 4418 ac_header_compiler=no 4419 fi 4420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4421 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4422 echo "${ECHO_T}$ac_header_compiler" >&6 4423 4424 # Is the header present? 4425 echo "$as_me:$LINENO: checking $ac_header presence" >&5 4426 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4427 cat >conftest.$ac_ext <<_ACEOF 4428 /* confdefs.h. */ 4429 _ACEOF 4430 cat confdefs.h >>conftest.$ac_ext 4431 cat >>conftest.$ac_ext <<_ACEOF 4432 /* end confdefs.h. */ 4433 #include <$ac_header> 4434 _ACEOF 4435 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4437 ac_status=$? 4438 grep -v '^ *+' conftest.er1 >conftest.err 4439 rm -f conftest.er1 4440 cat conftest.err >&5 4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4442 (exit $ac_status); } >/dev/null; then 4443 if test -s conftest.err; then 4444 ac_cpp_err=$ac_c_preproc_warn_flag 4445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4446 else 4447 ac_cpp_err= 4448 fi 4449 else 4450 ac_cpp_err=yes 4451 fi 4452 if test -z "$ac_cpp_err"; then 4453 ac_header_preproc=yes 4454 else 4455 echo "$as_me: failed program was:" >&5 4456 sed 's/^/| /' conftest.$ac_ext >&5 4457 4458 ac_header_preproc=no 4459 fi 4460 rm -f conftest.err conftest.$ac_ext 4461 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4462 echo "${ECHO_T}$ac_header_preproc" >&6 4463 4464 # So? What about this header? 4465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4466 yes:no: ) 4467 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4468 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4470 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4471 ac_header_preproc=yes 4472 ;; 4473 no:yes:* ) 4474 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4475 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4476 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4477 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4478 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4479 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4480 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4481 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4483 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4484 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4485 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4486 ( 4487 cat <<\_ASBOX 4488 ## -------------------------------------- ## 4489 ## Report this to the GNU Texinfo lists. ## 4490 ## -------------------------------------- ## 4491 _ASBOX 4492 ) | 4493 sed "s/^/$as_me: WARNING: /" >&2 4494 ;; 4495 esac 4496 echo "$as_me:$LINENO: checking for $ac_header" >&5 4497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4498 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4499 echo $ECHO_N "(cached) $ECHO_C" >&6 4500 else 4501 eval "$as_ac_Header=\$ac_header_preproc" 4502 fi 4503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4504 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4505 4506 fi 4507 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4508 cat >>confdefs.h <<_ACEOF 4509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4510 _ACEOF 4511 4512 fi 4513 4514 done 4515 4516 4517 # sys/ptem.h requires sys/stream.h for mblk_t on Solaris. 4518 4519 for ac_header in sys/ptem.h 4520 do 4521 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4522 echo "$as_me:$LINENO: checking for $ac_header" >&5 4523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4524 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4525 echo $ECHO_N "(cached) $ECHO_C" >&6 4526 else 4527 cat >conftest.$ac_ext <<_ACEOF 4528 /* confdefs.h. */ 4529 _ACEOF 4530 cat confdefs.h >>conftest.$ac_ext 4531 cat >>conftest.$ac_ext <<_ACEOF 4532 /* end confdefs.h. */ 4533 #if HAVE_SYS_STREAM_H 4534 #include <sys/stream.h> 4535 #endif 4536 4537 4538 #include <$ac_header> 4539 _ACEOF 4540 rm -f conftest.$ac_objext 4541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4542 (eval $ac_compile) 2>conftest.er1 4543 ac_status=$? 4544 grep -v '^ *+' conftest.er1 >conftest.err 4545 rm -f conftest.er1 4546 cat conftest.err >&5 4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4548 (exit $ac_status); } && 4549 { ac_try='test -z "$ac_c_werror_flag" 4550 || test ! -s conftest.err' 4551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4552 (eval $ac_try) 2>&5 4553 ac_status=$? 4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4555 (exit $ac_status); }; } && 4556 { ac_try='test -s conftest.$ac_objext' 4557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4558 (eval $ac_try) 2>&5 4559 ac_status=$? 4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4561 (exit $ac_status); }; }; then 4562 eval "$as_ac_Header=yes" 4563 else 4564 echo "$as_me: failed program was:" >&5 4565 sed 's/^/| /' conftest.$ac_ext >&5 4566 4567 eval "$as_ac_Header=no" 4568 fi 4569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4570 fi 4571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4572 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4573 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4574 cat >>confdefs.h <<_ACEOF 4575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4576 _ACEOF 4577 4578 fi 4579 4580 done 4581 4582 4583 echo "$as_me:$LINENO: checking POSIX termios" >&5 4584 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6 4585 if test "${ac_cv_sys_posix_termios+set}" = set; then 4586 echo $ECHO_N "(cached) $ECHO_C" >&6 4587 else 4588 cat >conftest.$ac_ext <<_ACEOF 4589 /* confdefs.h. */ 4590 _ACEOF 4591 cat confdefs.h >>conftest.$ac_ext 4592 cat >>conftest.$ac_ext <<_ACEOF 4593 /* end confdefs.h. */ 4594 #include <sys/types.h> 4595 #include <unistd.h> 4596 #include <termios.h> 4597 4598 int 4599 main () 4600 { 4601 /* SunOS 4.0.3 has termios.h but not the library calls. */ 4602 tcgetattr(0, 0); 4603 ; 4604 return 0; 4605 } 4606 _ACEOF 4607 rm -f conftest.$ac_objext conftest$ac_exeext 4608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4609 (eval $ac_link) 2>conftest.er1 4610 ac_status=$? 4611 grep -v '^ *+' conftest.er1 >conftest.err 4612 rm -f conftest.er1 4613 cat conftest.err >&5 4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4615 (exit $ac_status); } && 4616 { ac_try='test -z "$ac_c_werror_flag" 4617 || test ! -s conftest.err' 4618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4619 (eval $ac_try) 2>&5 4620 ac_status=$? 4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4622 (exit $ac_status); }; } && 4623 { ac_try='test -s conftest$ac_exeext' 4624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4625 (eval $ac_try) 2>&5 4626 ac_status=$? 4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4628 (exit $ac_status); }; }; then 4629 ac_cv_sys_posix_termios=yes 4630 else 4631 echo "$as_me: failed program was:" >&5 4632 sed 's/^/| /' conftest.$ac_ext >&5 4633 4634 ac_cv_sys_posix_termios=no 4635 fi 4636 rm -f conftest.err conftest.$ac_objext \ 4637 conftest$ac_exeext conftest.$ac_ext 4638 fi 4639 echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5 4640 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6 4641 4642 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5 4643 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6 4644 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then 4645 echo $ECHO_N "(cached) $ECHO_C" >&6 4646 else 4647 cat >conftest.$ac_ext <<_ACEOF 4648 /* confdefs.h. */ 4649 _ACEOF 4650 cat confdefs.h >>conftest.$ac_ext 4651 cat >>conftest.$ac_ext <<_ACEOF 4652 /* end confdefs.h. */ 4653 #include <sys/types.h> 4654 #include <termios.h> 4655 #ifdef TIOCGWINSZ 4656 yes 4657 #endif 4658 4659 _ACEOF 4660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4661 $EGREP "yes" >/dev/null 2>&1; then 4662 ac_cv_sys_tiocgwinsz_in_termios_h=yes 4663 else 4664 ac_cv_sys_tiocgwinsz_in_termios_h=no 4665 fi 4666 rm -f conftest* 4667 4668 fi 4669 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5 4670 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6 4671 4672 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then 4673 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5 4674 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6 4675 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then 4676 echo $ECHO_N "(cached) $ECHO_C" >&6 4677 else 4678 cat >conftest.$ac_ext <<_ACEOF 4679 /* confdefs.h. */ 4680 _ACEOF 4681 cat confdefs.h >>conftest.$ac_ext 4682 cat >>conftest.$ac_ext <<_ACEOF 4683 /* end confdefs.h. */ 4684 #include <sys/types.h> 4685 #include <sys/ioctl.h> 4686 #ifdef TIOCGWINSZ 4687 yes 4688 #endif 4689 4690 _ACEOF 4691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4692 $EGREP "yes" >/dev/null 2>&1; then 4693 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes 4694 else 4695 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no 4696 fi 4697 rm -f conftest* 4698 4699 fi 4700 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5 4701 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6 4702 4703 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then 4704 4705 cat >>confdefs.h <<\_ACEOF 4706 #define GWINSZ_IN_SYS_IOCTL 1 4707 _ACEOF 4708 4709 fi 4710 fi 4711 4712 4713 # Checks for typedefs, structures, and compiler characteristics. 4714 echo "$as_me:$LINENO: checking for off_t" >&5 4715 echo $ECHO_N "checking for off_t... $ECHO_C" >&6 4716 if test "${ac_cv_type_off_t+set}" = set; then 4717 echo $ECHO_N "(cached) $ECHO_C" >&6 4718 else 4719 cat >conftest.$ac_ext <<_ACEOF 4720 /* confdefs.h. */ 4721 _ACEOF 4722 cat confdefs.h >>conftest.$ac_ext 4723 cat >>conftest.$ac_ext <<_ACEOF 4724 /* end confdefs.h. */ 4725 $ac_includes_default 4726 int 4727 main () 4728 { 4729 if ((off_t *) 0) 4730 return 0; 4731 if (sizeof (off_t)) 4732 return 0; 4733 ; 4734 return 0; 4735 } 4736 _ACEOF 4737 rm -f conftest.$ac_objext 4738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4739 (eval $ac_compile) 2>conftest.er1 4740 ac_status=$? 4741 grep -v '^ *+' conftest.er1 >conftest.err 4742 rm -f conftest.er1 4743 cat conftest.err >&5 4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4745 (exit $ac_status); } && 4746 { ac_try='test -z "$ac_c_werror_flag" 4747 || test ! -s conftest.err' 4748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4749 (eval $ac_try) 2>&5 4750 ac_status=$? 4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4752 (exit $ac_status); }; } && 4753 { ac_try='test -s conftest.$ac_objext' 4754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4755 (eval $ac_try) 2>&5 4756 ac_status=$? 4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4758 (exit $ac_status); }; }; then 4759 ac_cv_type_off_t=yes 4760 else 4761 echo "$as_me: failed program was:" >&5 4762 sed 's/^/| /' conftest.$ac_ext >&5 4763 4764 ac_cv_type_off_t=no 4765 fi 4766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4767 fi 4768 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 4769 echo "${ECHO_T}$ac_cv_type_off_t" >&6 4770 if test $ac_cv_type_off_t = yes; then 4771 : 4772 else 4773 4774 cat >>confdefs.h <<_ACEOF 4775 #define off_t long 4776 _ACEOF 4777 4778 fi 4779 4780 echo "$as_me:$LINENO: checking return type of signal handlers" >&5 4781 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 4782 if test "${ac_cv_type_signal+set}" = set; then 4783 echo $ECHO_N "(cached) $ECHO_C" >&6 4784 else 4785 cat >conftest.$ac_ext <<_ACEOF 4786 /* confdefs.h. */ 4787 _ACEOF 4788 cat confdefs.h >>conftest.$ac_ext 4789 cat >>conftest.$ac_ext <<_ACEOF 4790 /* end confdefs.h. */ 4791 #include <sys/types.h> 4792 #include <signal.h> 4793 #ifdef signal 4794 # undef signal 4795 #endif 4796 #ifdef __cplusplus 4797 extern "C" void (*signal (int, void (*)(int)))(int); 4798 #else 4799 void (*signal (int, void (*)(int)))(int); 4800 #endif 4801 4802 int 4803 main () 4804 { 4805 int i; 4806 ; 4807 return 0; 4808 } 4809 _ACEOF 4810 rm -f conftest.$ac_objext 4811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4812 (eval $ac_compile) 2>conftest.er1 4813 ac_status=$? 4814 grep -v '^ *+' conftest.er1 >conftest.err 4815 rm -f conftest.er1 4816 cat conftest.err >&5 4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4818 (exit $ac_status); } && 4819 { ac_try='test -z "$ac_c_werror_flag" 4820 || test ! -s conftest.err' 4821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4822 (eval $ac_try) 2>&5 4823 ac_status=$? 4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4825 (exit $ac_status); }; } && 4826 { ac_try='test -s conftest.$ac_objext' 4827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4828 (eval $ac_try) 2>&5 4829 ac_status=$? 4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4831 (exit $ac_status); }; }; then 4832 ac_cv_type_signal=void 4833 else 4834 echo "$as_me: failed program was:" >&5 4835 sed 's/^/| /' conftest.$ac_ext >&5 4836 4837 ac_cv_type_signal=int 4838 fi 4839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4840 fi 4841 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 4842 echo "${ECHO_T}$ac_cv_type_signal" >&6 4843 4844 cat >>confdefs.h <<_ACEOF 4845 #define RETSIGTYPE $ac_cv_type_signal 4846 _ACEOF 4847 4848 4849 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 4850 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 4851 if test "${ac_cv_c_const+set}" = set; then 4852 echo $ECHO_N "(cached) $ECHO_C" >&6 4853 else 4854 cat >conftest.$ac_ext <<_ACEOF 4855 /* confdefs.h. */ 4856 _ACEOF 4857 cat confdefs.h >>conftest.$ac_ext 4858 cat >>conftest.$ac_ext <<_ACEOF 4859 /* end confdefs.h. */ 4860 4861 int 4862 main () 4863 { 4864 /* FIXME: Include the comments suggested by Paul. */ 4865 #ifndef __cplusplus 4866 /* Ultrix mips cc rejects this. */ 4867 typedef int charset[2]; 4868 const charset x; 4869 /* SunOS 4.1.1 cc rejects this. */ 4870 char const *const *ccp; 4871 char **p; 4872 /* NEC SVR4.0.2 mips cc rejects this. */ 4873 struct point {int x, y;}; 4874 static struct point const zero = {0,0}; 4875 /* AIX XL C 1.02.0.0 rejects this. 4876 It does not let you subtract one const X* pointer from another in 4877 an arm of an if-expression whose if-part is not a constant 4878 expression */ 4879 const char *g = "string"; 4880 ccp = &g + (g ? g-g : 0); 4881 /* HPUX 7.0 cc rejects these. */ 4882 ++ccp; 4883 p = (char**) ccp; 4884 ccp = (char const *const *) p; 4885 { /* SCO 3.2v4 cc rejects this. */ 4886 char *t; 4887 char const *s = 0 ? (char *) 0 : (char const *) 0; 4888 4889 *t++ = 0; 4890 } 4891 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4892 int x[] = {25, 17}; 4893 const int *foo = &x[0]; 4894 ++foo; 4895 } 4896 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4897 typedef const int *iptr; 4898 iptr p = 0; 4899 ++p; 4900 } 4901 { /* AIX XL C 1.02.0.0 rejects this saying 4902 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4903 struct s { int j; const int *ap[3]; }; 4904 struct s *b; b->j = 5; 4905 } 4906 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4907 const int foo = 10; 4908 } 4909 #endif 4910 4911 ; 4912 return 0; 4913 } 4914 _ACEOF 4915 rm -f conftest.$ac_objext 4916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4917 (eval $ac_compile) 2>conftest.er1 4918 ac_status=$? 4919 grep -v '^ *+' conftest.er1 >conftest.err 4920 rm -f conftest.er1 4921 cat conftest.err >&5 4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4923 (exit $ac_status); } && 4924 { ac_try='test -z "$ac_c_werror_flag" 4925 || test ! -s conftest.err' 4926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4927 (eval $ac_try) 2>&5 4928 ac_status=$? 4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4930 (exit $ac_status); }; } && 4931 { ac_try='test -s conftest.$ac_objext' 4932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4933 (eval $ac_try) 2>&5 4934 ac_status=$? 4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4936 (exit $ac_status); }; }; then 4937 ac_cv_c_const=yes 4938 else 4939 echo "$as_me: failed program was:" >&5 4940 sed 's/^/| /' conftest.$ac_ext >&5 4941 4942 ac_cv_c_const=no 4943 fi 4944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4945 fi 4946 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 4947 echo "${ECHO_T}$ac_cv_c_const" >&6 4948 if test $ac_cv_c_const = no; then 4949 4950 cat >>confdefs.h <<\_ACEOF 4951 #define const 4952 _ACEOF 4953 4954 fi 4955 4956 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 4957 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 4958 if test "${ac_cv_struct_tm+set}" = set; then 4959 echo $ECHO_N "(cached) $ECHO_C" >&6 4960 else 4961 cat >conftest.$ac_ext <<_ACEOF 4962 /* confdefs.h. */ 4963 _ACEOF 4964 cat confdefs.h >>conftest.$ac_ext 4965 cat >>conftest.$ac_ext <<_ACEOF 4966 /* end confdefs.h. */ 4967 #include <sys/types.h> 4968 #include <time.h> 4969 4970 int 4971 main () 4972 { 4973 struct tm *tp; tp->tm_sec; 4974 ; 4975 return 0; 4976 } 4977 _ACEOF 4978 rm -f conftest.$ac_objext 4979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4980 (eval $ac_compile) 2>conftest.er1 4981 ac_status=$? 4982 grep -v '^ *+' conftest.er1 >conftest.err 4983 rm -f conftest.er1 4984 cat conftest.err >&5 4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4986 (exit $ac_status); } && 4987 { ac_try='test -z "$ac_c_werror_flag" 4988 || test ! -s conftest.err' 4989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4990 (eval $ac_try) 2>&5 4991 ac_status=$? 4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4993 (exit $ac_status); }; } && 4994 { ac_try='test -s conftest.$ac_objext' 4995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4996 (eval $ac_try) 2>&5 4997 ac_status=$? 4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4999 (exit $ac_status); }; }; then 5000 ac_cv_struct_tm=time.h 5001 else 5002 echo "$as_me: failed program was:" >&5 5003 sed 's/^/| /' conftest.$ac_ext >&5 5004 5005 ac_cv_struct_tm=sys/time.h 5006 fi 5007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5008 fi 5009 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 5010 echo "${ECHO_T}$ac_cv_struct_tm" >&6 5011 if test $ac_cv_struct_tm = sys/time.h; then 5012 5013 cat >>confdefs.h <<\_ACEOF 5014 #define TM_IN_SYS_TIME 1 5015 _ACEOF 5016 5017 fi 5018 5019 5020 # Checks for function declarations. 5021 echo "$as_me:$LINENO: checking whether memchr is declared" >&5 5022 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6 5023 if test "${ac_cv_have_decl_memchr+set}" = set; then 5024 echo $ECHO_N "(cached) $ECHO_C" >&6 5025 else 5026 cat >conftest.$ac_ext <<_ACEOF 5027 /* confdefs.h. */ 5028 _ACEOF 5029 cat confdefs.h >>conftest.$ac_ext 5030 cat >>conftest.$ac_ext <<_ACEOF 5031 /* end confdefs.h. */ 5032 $ac_includes_default 5033 int 5034 main () 5035 { 5036 #ifndef memchr 5037 char *p = (char *) memchr; 5038 #endif 5039 5040 ; 5041 return 0; 5042 } 5043 _ACEOF 5044 rm -f conftest.$ac_objext 5045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5046 (eval $ac_compile) 2>conftest.er1 5047 ac_status=$? 5048 grep -v '^ *+' conftest.er1 >conftest.err 5049 rm -f conftest.er1 5050 cat conftest.err >&5 5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5052 (exit $ac_status); } && 5053 { ac_try='test -z "$ac_c_werror_flag" 5054 || test ! -s conftest.err' 5055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5056 (eval $ac_try) 2>&5 5057 ac_status=$? 5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5059 (exit $ac_status); }; } && 5060 { ac_try='test -s conftest.$ac_objext' 5061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5062 (eval $ac_try) 2>&5 5063 ac_status=$? 5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5065 (exit $ac_status); }; }; then 5066 ac_cv_have_decl_memchr=yes 5067 else 5068 echo "$as_me: failed program was:" >&5 5069 sed 's/^/| /' conftest.$ac_ext >&5 5070 5071 ac_cv_have_decl_memchr=no 5072 fi 5073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5074 fi 5075 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5 5076 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6 5077 if test $ac_cv_have_decl_memchr = yes; then 5078 5079 cat >>confdefs.h <<_ACEOF 5080 #define HAVE_DECL_MEMCHR 1 5081 _ACEOF 5082 5083 5084 else 5085 cat >>confdefs.h <<_ACEOF 5086 #define HAVE_DECL_MEMCHR 0 5087 _ACEOF 5088 5089 5090 fi 5091 echo "$as_me:$LINENO: checking whether strcoll is declared" >&5 5092 echo $ECHO_N "checking whether strcoll is declared... $ECHO_C" >&6 5093 if test "${ac_cv_have_decl_strcoll+set}" = set; then 5094 echo $ECHO_N "(cached) $ECHO_C" >&6 5095 else 5096 cat >conftest.$ac_ext <<_ACEOF 5097 /* confdefs.h. */ 5098 _ACEOF 5099 cat confdefs.h >>conftest.$ac_ext 5100 cat >>conftest.$ac_ext <<_ACEOF 5101 /* end confdefs.h. */ 5102 $ac_includes_default 5103 int 5104 main () 5105 { 5106 #ifndef strcoll 5107 char *p = (char *) strcoll; 5108 #endif 5109 5110 ; 5111 return 0; 5112 } 5113 _ACEOF 5114 rm -f conftest.$ac_objext 5115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5116 (eval $ac_compile) 2>conftest.er1 5117 ac_status=$? 5118 grep -v '^ *+' conftest.er1 >conftest.err 5119 rm -f conftest.er1 5120 cat conftest.err >&5 5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5122 (exit $ac_status); } && 5123 { ac_try='test -z "$ac_c_werror_flag" 5124 || test ! -s conftest.err' 5125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5126 (eval $ac_try) 2>&5 5127 ac_status=$? 5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5129 (exit $ac_status); }; } && 5130 { ac_try='test -s conftest.$ac_objext' 5131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5132 (eval $ac_try) 2>&5 5133 ac_status=$? 5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5135 (exit $ac_status); }; }; then 5136 ac_cv_have_decl_strcoll=yes 5137 else 5138 echo "$as_me: failed program was:" >&5 5139 sed 's/^/| /' conftest.$ac_ext >&5 5140 5141 ac_cv_have_decl_strcoll=no 5142 fi 5143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5144 fi 5145 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strcoll" >&5 5146 echo "${ECHO_T}$ac_cv_have_decl_strcoll" >&6 5147 if test $ac_cv_have_decl_strcoll = yes; then 5148 5149 cat >>confdefs.h <<_ACEOF 5150 #define HAVE_DECL_STRCOLL 1 5151 _ACEOF 5152 5153 5154 else 5155 cat >>confdefs.h <<_ACEOF 5156 #define HAVE_DECL_STRCOLL 0 5157 _ACEOF 5158 5159 5160 fi 5161 echo "$as_me:$LINENO: checking whether strerror is declared" >&5 5162 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6 5163 if test "${ac_cv_have_decl_strerror+set}" = set; then 5164 echo $ECHO_N "(cached) $ECHO_C" >&6 5165 else 5166 cat >conftest.$ac_ext <<_ACEOF 5167 /* confdefs.h. */ 5168 _ACEOF 5169 cat confdefs.h >>conftest.$ac_ext 5170 cat >>conftest.$ac_ext <<_ACEOF 5171 /* end confdefs.h. */ 5172 $ac_includes_default 5173 int 5174 main () 5175 { 5176 #ifndef strerror 5177 char *p = (char *) strerror; 5178 #endif 5179 5180 ; 5181 return 0; 5182 } 5183 _ACEOF 5184 rm -f conftest.$ac_objext 5185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5186 (eval $ac_compile) 2>conftest.er1 5187 ac_status=$? 5188 grep -v '^ *+' conftest.er1 >conftest.err 5189 rm -f conftest.er1 5190 cat conftest.err >&5 5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5192 (exit $ac_status); } && 5193 { ac_try='test -z "$ac_c_werror_flag" 5194 || test ! -s conftest.err' 5195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5196 (eval $ac_try) 2>&5 5197 ac_status=$? 5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5199 (exit $ac_status); }; } && 5200 { ac_try='test -s conftest.$ac_objext' 5201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5202 (eval $ac_try) 2>&5 5203 ac_status=$? 5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5205 (exit $ac_status); }; }; then 5206 ac_cv_have_decl_strerror=yes 5207 else 5208 echo "$as_me: failed program was:" >&5 5209 sed 's/^/| /' conftest.$ac_ext >&5 5210 5211 ac_cv_have_decl_strerror=no 5212 fi 5213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5214 fi 5215 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5 5216 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6 5217 if test $ac_cv_have_decl_strerror = yes; then 5218 5219 cat >>confdefs.h <<_ACEOF 5220 #define HAVE_DECL_STRERROR 1 5221 _ACEOF 5222 5223 5224 else 5225 cat >>confdefs.h <<_ACEOF 5226 #define HAVE_DECL_STRERROR 0 5227 _ACEOF 5228 5229 5230 fi 5231 echo "$as_me:$LINENO: checking whether strcasecmp is declared" >&5 5232 echo $ECHO_N "checking whether strcasecmp is declared... $ECHO_C" >&6 5233 if test "${ac_cv_have_decl_strcasecmp+set}" = set; then 5234 echo $ECHO_N "(cached) $ECHO_C" >&6 5235 else 5236 cat >conftest.$ac_ext <<_ACEOF 5237 /* confdefs.h. */ 5238 _ACEOF 5239 cat confdefs.h >>conftest.$ac_ext 5240 cat >>conftest.$ac_ext <<_ACEOF 5241 /* end confdefs.h. */ 5242 $ac_includes_default 5243 int 5244 main () 5245 { 5246 #ifndef strcasecmp 5247 char *p = (char *) strcasecmp; 5248 #endif 5249 5250 ; 5251 return 0; 5252 } 5253 _ACEOF 5254 rm -f conftest.$ac_objext 5255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5256 (eval $ac_compile) 2>conftest.er1 5257 ac_status=$? 5258 grep -v '^ *+' conftest.er1 >conftest.err 5259 rm -f conftest.er1 5260 cat conftest.err >&5 5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5262 (exit $ac_status); } && 5263 { ac_try='test -z "$ac_c_werror_flag" 5264 || test ! -s conftest.err' 5265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5266 (eval $ac_try) 2>&5 5267 ac_status=$? 5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5269 (exit $ac_status); }; } && 5270 { ac_try='test -s conftest.$ac_objext' 5271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5272 (eval $ac_try) 2>&5 5273 ac_status=$? 5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5275 (exit $ac_status); }; }; then 5276 ac_cv_have_decl_strcasecmp=yes 5277 else 5278 echo "$as_me: failed program was:" >&5 5279 sed 's/^/| /' conftest.$ac_ext >&5 5280 5281 ac_cv_have_decl_strcasecmp=no 5282 fi 5283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5284 fi 5285 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strcasecmp" >&5 5286 echo "${ECHO_T}$ac_cv_have_decl_strcasecmp" >&6 5287 if test $ac_cv_have_decl_strcasecmp = yes; then 5288 5289 cat >>confdefs.h <<_ACEOF 5290 #define HAVE_DECL_STRCASECMP 1 5291 _ACEOF 5292 5293 5294 else 5295 cat >>confdefs.h <<_ACEOF 5296 #define HAVE_DECL_STRCASECMP 0 5297 _ACEOF 5298 5299 5300 fi 5301 echo "$as_me:$LINENO: checking whether strncasecmp is declared" >&5 5302 echo $ECHO_N "checking whether strncasecmp is declared... $ECHO_C" >&6 5303 if test "${ac_cv_have_decl_strncasecmp+set}" = set; then 5304 echo $ECHO_N "(cached) $ECHO_C" >&6 5305 else 5306 cat >conftest.$ac_ext <<_ACEOF 5307 /* confdefs.h. */ 5308 _ACEOF 5309 cat confdefs.h >>conftest.$ac_ext 5310 cat >>conftest.$ac_ext <<_ACEOF 5311 /* end confdefs.h. */ 5312 $ac_includes_default 5313 int 5314 main () 5315 { 5316 #ifndef strncasecmp 5317 char *p = (char *) strncasecmp; 5318 #endif 5319 5320 ; 5321 return 0; 5322 } 5323 _ACEOF 5324 rm -f conftest.$ac_objext 5325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5326 (eval $ac_compile) 2>conftest.er1 5327 ac_status=$? 5328 grep -v '^ *+' conftest.er1 >conftest.err 5329 rm -f conftest.er1 5330 cat conftest.err >&5 5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5332 (exit $ac_status); } && 5333 { ac_try='test -z "$ac_c_werror_flag" 5334 || test ! -s conftest.err' 5335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5336 (eval $ac_try) 2>&5 5337 ac_status=$? 5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5339 (exit $ac_status); }; } && 5340 { ac_try='test -s conftest.$ac_objext' 5341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5342 (eval $ac_try) 2>&5 5343 ac_status=$? 5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5345 (exit $ac_status); }; }; then 5346 ac_cv_have_decl_strncasecmp=yes 5347 else 5348 echo "$as_me: failed program was:" >&5 5349 sed 's/^/| /' conftest.$ac_ext >&5 5350 5351 ac_cv_have_decl_strncasecmp=no 5352 fi 5353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5354 fi 5355 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strncasecmp" >&5 5356 echo "${ECHO_T}$ac_cv_have_decl_strncasecmp" >&6 5357 if test $ac_cv_have_decl_strncasecmp = yes; then 5358 5359 cat >>confdefs.h <<_ACEOF 5360 #define HAVE_DECL_STRNCASECMP 1 5361 _ACEOF 5362 5363 5364 else 5365 cat >>confdefs.h <<_ACEOF 5366 #define HAVE_DECL_STRNCASECMP 0 5367 _ACEOF 5368 5369 5370 fi 5371 5372 5373 5374 # Checks for library functions. 5375 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 5376 # for constant arguments. Useless! 5377 echo "$as_me:$LINENO: checking for working alloca.h" >&5 5378 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 5379 if test "${ac_cv_working_alloca_h+set}" = set; then 5380 echo $ECHO_N "(cached) $ECHO_C" >&6 5381 else 5382 cat >conftest.$ac_ext <<_ACEOF 5383 /* confdefs.h. */ 5384 _ACEOF 5385 cat confdefs.h >>conftest.$ac_ext 5386 cat >>conftest.$ac_ext <<_ACEOF 5387 /* end confdefs.h. */ 5388 #include <alloca.h> 5389 int 5390 main () 5391 { 5392 char *p = (char *) alloca (2 * sizeof (int)); 5393 ; 5394 return 0; 5395 } 5396 _ACEOF 5397 rm -f conftest.$ac_objext conftest$ac_exeext 5398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5399 (eval $ac_link) 2>conftest.er1 5400 ac_status=$? 5401 grep -v '^ *+' conftest.er1 >conftest.err 5402 rm -f conftest.er1 5403 cat conftest.err >&5 5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5405 (exit $ac_status); } && 5406 { ac_try='test -z "$ac_c_werror_flag" 5407 || test ! -s conftest.err' 5408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5409 (eval $ac_try) 2>&5 5410 ac_status=$? 5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5412 (exit $ac_status); }; } && 5413 { ac_try='test -s conftest$ac_exeext' 5414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5415 (eval $ac_try) 2>&5 5416 ac_status=$? 5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5418 (exit $ac_status); }; }; then 5419 ac_cv_working_alloca_h=yes 5420 else 5421 echo "$as_me: failed program was:" >&5 5422 sed 's/^/| /' conftest.$ac_ext >&5 5423 5424 ac_cv_working_alloca_h=no 5425 fi 5426 rm -f conftest.err conftest.$ac_objext \ 5427 conftest$ac_exeext conftest.$ac_ext 5428 fi 5429 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 5430 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 5431 if test $ac_cv_working_alloca_h = yes; then 5432 5433 cat >>confdefs.h <<\_ACEOF 5434 #define HAVE_ALLOCA_H 1 5435 _ACEOF 5436 5437 fi 5438 5439 echo "$as_me:$LINENO: checking for alloca" >&5 5440 echo $ECHO_N "checking for alloca... $ECHO_C" >&6 5441 if test "${ac_cv_func_alloca_works+set}" = set; then 5442 echo $ECHO_N "(cached) $ECHO_C" >&6 5443 else 5444 cat >conftest.$ac_ext <<_ACEOF 5445 /* confdefs.h. */ 5446 _ACEOF 5447 cat confdefs.h >>conftest.$ac_ext 5448 cat >>conftest.$ac_ext <<_ACEOF 5449 /* end confdefs.h. */ 5450 #ifdef __GNUC__ 5451 # define alloca __builtin_alloca 5452 #else 5453 # ifdef _MSC_VER 5454 # include <malloc.h> 5455 # define alloca _alloca 5456 # else 5457 # if HAVE_ALLOCA_H 5458 # include <alloca.h> 5459 # else 5460 # ifdef _AIX 5461 #pragma alloca 5462 # else 5463 # ifndef alloca /* predefined by HP cc +Olibcalls */ 5464 char *alloca (); 5465 # endif 5466 # endif 5467 # endif 5468 # endif 5469 #endif 5470 5471 int 5472 main () 5473 { 5474 char *p = (char *) alloca (1); 5475 ; 5476 return 0; 5477 } 5478 _ACEOF 5479 rm -f conftest.$ac_objext conftest$ac_exeext 5480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5481 (eval $ac_link) 2>conftest.er1 5482 ac_status=$? 5483 grep -v '^ *+' conftest.er1 >conftest.err 5484 rm -f conftest.er1 5485 cat conftest.err >&5 5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5487 (exit $ac_status); } && 5488 { ac_try='test -z "$ac_c_werror_flag" 5489 || test ! -s conftest.err' 5490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5491 (eval $ac_try) 2>&5 5492 ac_status=$? 5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5494 (exit $ac_status); }; } && 5495 { ac_try='test -s conftest$ac_exeext' 5496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5497 (eval $ac_try) 2>&5 5498 ac_status=$? 5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5500 (exit $ac_status); }; }; then 5501 ac_cv_func_alloca_works=yes 5502 else 5503 echo "$as_me: failed program was:" >&5 5504 sed 's/^/| /' conftest.$ac_ext >&5 5505 5506 ac_cv_func_alloca_works=no 5507 fi 5508 rm -f conftest.err conftest.$ac_objext \ 5509 conftest$ac_exeext conftest.$ac_ext 5510 fi 5511 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 5512 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 5513 5514 if test $ac_cv_func_alloca_works = yes; then 5515 5516 cat >>confdefs.h <<\_ACEOF 5517 #define HAVE_ALLOCA 1 5518 _ACEOF 5519 5520 else 5521 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 5522 # that cause trouble. Some versions do not even contain alloca or 5523 # contain a buggy version. If you still want to use their alloca, 5524 # use ar to extract alloca.o from them instead of compiling alloca.c. 5525 5526 ALLOCA=alloca.$ac_objext 5527 5528 cat >>confdefs.h <<\_ACEOF 5529 #define C_ALLOCA 1 5530 _ACEOF 5531 5532 5533 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 5534 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 5535 if test "${ac_cv_os_cray+set}" = set; then 5536 echo $ECHO_N "(cached) $ECHO_C" >&6 5537 else 5538 cat >conftest.$ac_ext <<_ACEOF 5539 /* confdefs.h. */ 5540 _ACEOF 5541 cat confdefs.h >>conftest.$ac_ext 5542 cat >>conftest.$ac_ext <<_ACEOF 5543 /* end confdefs.h. */ 5544 #if defined(CRAY) && ! defined(CRAY2) 5545 webecray 5546 #else 5547 wenotbecray 5548 #endif 5549 5550 _ACEOF 5551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5552 $EGREP "webecray" >/dev/null 2>&1; then 5553 ac_cv_os_cray=yes 5554 else 5555 ac_cv_os_cray=no 5556 fi 5557 rm -f conftest* 5558 5559 fi 5560 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 5561 echo "${ECHO_T}$ac_cv_os_cray" >&6 5562 if test $ac_cv_os_cray = yes; then 5563 for ac_func in _getb67 GETB67 getb67; do 5564 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5565 echo "$as_me:$LINENO: checking for $ac_func" >&5 5566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5567 if eval "test \"\${$as_ac_var+set}\" = set"; then 5568 echo $ECHO_N "(cached) $ECHO_C" >&6 5569 else 5570 cat >conftest.$ac_ext <<_ACEOF 5571 /* confdefs.h. */ 5572 _ACEOF 5573 cat confdefs.h >>conftest.$ac_ext 5574 cat >>conftest.$ac_ext <<_ACEOF 5575 /* end confdefs.h. */ 5576 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5577 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5578 #define $ac_func innocuous_$ac_func 5579 5580 /* System header to define __stub macros and hopefully few prototypes, 5581 which can conflict with char $ac_func (); below. 5582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5583 <limits.h> exists even on freestanding compilers. */ 5584 5585 #ifdef __STDC__ 5586 # include <limits.h> 5587 #else 5588 # include <assert.h> 5589 #endif 5590 5591 #undef $ac_func 5592 5593 /* Override any gcc2 internal prototype to avoid an error. */ 5594 #ifdef __cplusplus 5595 extern "C" 5596 { 5597 #endif 5598 /* We use char because int might match the return type of a gcc2 5599 builtin and then its argument prototype would still apply. */ 5600 char $ac_func (); 5601 /* The GNU C library defines this for functions which it implements 5602 to always fail with ENOSYS. Some functions are actually named 5603 something starting with __ and the normal name is an alias. */ 5604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5605 choke me 5606 #else 5607 char (*f) () = $ac_func; 5608 #endif 5609 #ifdef __cplusplus 5610 } 5611 #endif 5612 5613 int 5614 main () 5615 { 5616 return f != $ac_func; 5617 ; 5618 return 0; 5619 } 5620 _ACEOF 5621 rm -f conftest.$ac_objext conftest$ac_exeext 5622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5623 (eval $ac_link) 2>conftest.er1 5624 ac_status=$? 5625 grep -v '^ *+' conftest.er1 >conftest.err 5626 rm -f conftest.er1 5627 cat conftest.err >&5 5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5629 (exit $ac_status); } && 5630 { ac_try='test -z "$ac_c_werror_flag" 5631 || test ! -s conftest.err' 5632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5633 (eval $ac_try) 2>&5 5634 ac_status=$? 5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5636 (exit $ac_status); }; } && 5637 { ac_try='test -s conftest$ac_exeext' 5638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5639 (eval $ac_try) 2>&5 5640 ac_status=$? 5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5642 (exit $ac_status); }; }; then 5643 eval "$as_ac_var=yes" 5644 else 5645 echo "$as_me: failed program was:" >&5 5646 sed 's/^/| /' conftest.$ac_ext >&5 5647 5648 eval "$as_ac_var=no" 5649 fi 5650 rm -f conftest.err conftest.$ac_objext \ 5651 conftest$ac_exeext conftest.$ac_ext 5652 fi 5653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5654 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5655 if test `eval echo '${'$as_ac_var'}'` = yes; then 5656 5657 cat >>confdefs.h <<_ACEOF 5658 #define CRAY_STACKSEG_END $ac_func 5659 _ACEOF 5660 5661 break 5662 fi 5663 5664 done 5665 fi 5666 5667 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 5668 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 5669 if test "${ac_cv_c_stack_direction+set}" = set; then 5670 echo $ECHO_N "(cached) $ECHO_C" >&6 5671 else 5672 if test "$cross_compiling" = yes; then 5673 ac_cv_c_stack_direction=0 5674 else 5675 cat >conftest.$ac_ext <<_ACEOF 5676 /* confdefs.h. */ 5677 _ACEOF 5678 cat confdefs.h >>conftest.$ac_ext 5679 cat >>conftest.$ac_ext <<_ACEOF 5680 /* end confdefs.h. */ 5681 int 5682 find_stack_direction () 5683 { 5684 static char *addr = 0; 5685 auto char dummy; 5686 if (addr == 0) 5687 { 5688 addr = &dummy; 5689 return find_stack_direction (); 5690 } 5691 else 5692 return (&dummy > addr) ? 1 : -1; 5693 } 5694 5695 int 5696 main () 5697 { 5698 exit (find_stack_direction () < 0); 5699 } 5700 _ACEOF 5701 rm -f conftest$ac_exeext 5702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5703 (eval $ac_link) 2>&5 5704 ac_status=$? 5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5706 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5708 (eval $ac_try) 2>&5 5709 ac_status=$? 5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5711 (exit $ac_status); }; }; then 5712 ac_cv_c_stack_direction=1 5713 else 5714 echo "$as_me: program exited with status $ac_status" >&5 5715 echo "$as_me: failed program was:" >&5 5716 sed 's/^/| /' conftest.$ac_ext >&5 5717 5718 ( exit $ac_status ) 5719 ac_cv_c_stack_direction=-1 5720 fi 5721 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5722 fi 5723 fi 5724 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 5725 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 5726 5727 cat >>confdefs.h <<_ACEOF 5728 #define STACK_DIRECTION $ac_cv_c_stack_direction 5729 _ACEOF 5730 5731 5732 fi 5733 5734 echo "$as_me:$LINENO: checking for working strcoll" >&5 5735 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6 5736 if test "${ac_cv_func_strcoll_works+set}" = set; then 5737 echo $ECHO_N "(cached) $ECHO_C" >&6 5738 else 5739 if test "$cross_compiling" = yes; then 5740 ac_cv_func_strcoll_works=no 5741 else 5742 cat >conftest.$ac_ext <<_ACEOF 5743 /* confdefs.h. */ 5744 _ACEOF 5745 cat confdefs.h >>conftest.$ac_ext 5746 cat >>conftest.$ac_ext <<_ACEOF 5747 /* end confdefs.h. */ 5748 $ac_includes_default 5749 int 5750 main () 5751 { 5752 exit (strcoll ("abc", "def") >= 0 || 5753 strcoll ("ABC", "DEF") >= 0 || 5754 strcoll ("123", "456") >= 0) 5755 ; 5756 return 0; 5757 } 5758 _ACEOF 5759 rm -f conftest$ac_exeext 5760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5761 (eval $ac_link) 2>&5 5762 ac_status=$? 5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5764 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5766 (eval $ac_try) 2>&5 5767 ac_status=$? 5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5769 (exit $ac_status); }; }; then 5770 ac_cv_func_strcoll_works=yes 5771 else 5772 echo "$as_me: program exited with status $ac_status" >&5 5773 echo "$as_me: failed program was:" >&5 5774 sed 's/^/| /' conftest.$ac_ext >&5 5775 5776 ( exit $ac_status ) 5777 ac_cv_func_strcoll_works=no 5778 fi 5779 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5780 fi 5781 fi 5782 echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5 5783 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6 5784 if test $ac_cv_func_strcoll_works = yes; then 5785 5786 cat >>confdefs.h <<\_ACEOF 5787 #define HAVE_STRCOLL 1 5788 _ACEOF 5789 5790 fi 5791 5792 5793 for ac_func in vprintf 5794 do 5795 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5796 echo "$as_me:$LINENO: checking for $ac_func" >&5 5797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5798 if eval "test \"\${$as_ac_var+set}\" = set"; then 5799 echo $ECHO_N "(cached) $ECHO_C" >&6 5800 else 5801 cat >conftest.$ac_ext <<_ACEOF 5802 /* confdefs.h. */ 5803 _ACEOF 5804 cat confdefs.h >>conftest.$ac_ext 5805 cat >>conftest.$ac_ext <<_ACEOF 5806 /* end confdefs.h. */ 5807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5808 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5809 #define $ac_func innocuous_$ac_func 5810 5811 /* System header to define __stub macros and hopefully few prototypes, 5812 which can conflict with char $ac_func (); below. 5813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5814 <limits.h> exists even on freestanding compilers. */ 5815 5816 #ifdef __STDC__ 5817 # include <limits.h> 5818 #else 5819 # include <assert.h> 5820 #endif 5821 5822 #undef $ac_func 5823 5824 /* Override any gcc2 internal prototype to avoid an error. */ 5825 #ifdef __cplusplus 5826 extern "C" 5827 { 5828 #endif 5829 /* We use char because int might match the return type of a gcc2 5830 builtin and then its argument prototype would still apply. */ 5831 char $ac_func (); 5832 /* The GNU C library defines this for functions which it implements 5833 to always fail with ENOSYS. Some functions are actually named 5834 something starting with __ and the normal name is an alias. */ 5835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5836 choke me 5837 #else 5838 char (*f) () = $ac_func; 5839 #endif 5840 #ifdef __cplusplus 5841 } 5842 #endif 5843 5844 int 5845 main () 5846 { 5847 return f != $ac_func; 5848 ; 5849 return 0; 5850 } 5851 _ACEOF 5852 rm -f conftest.$ac_objext conftest$ac_exeext 5853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5854 (eval $ac_link) 2>conftest.er1 5855 ac_status=$? 5856 grep -v '^ *+' conftest.er1 >conftest.err 5857 rm -f conftest.er1 5858 cat conftest.err >&5 5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5860 (exit $ac_status); } && 5861 { ac_try='test -z "$ac_c_werror_flag" 5862 || test ! -s conftest.err' 5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5864 (eval $ac_try) 2>&5 5865 ac_status=$? 5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5867 (exit $ac_status); }; } && 5868 { ac_try='test -s conftest$ac_exeext' 5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5870 (eval $ac_try) 2>&5 5871 ac_status=$? 5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5873 (exit $ac_status); }; }; then 5874 eval "$as_ac_var=yes" 5875 else 5876 echo "$as_me: failed program was:" >&5 5877 sed 's/^/| /' conftest.$ac_ext >&5 5878 5879 eval "$as_ac_var=no" 5880 fi 5881 rm -f conftest.err conftest.$ac_objext \ 5882 conftest$ac_exeext conftest.$ac_ext 5883 fi 5884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5885 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5886 if test `eval echo '${'$as_ac_var'}'` = yes; then 5887 cat >>confdefs.h <<_ACEOF 5888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5889 _ACEOF 5890 5891 echo "$as_me:$LINENO: checking for _doprnt" >&5 5892 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 5893 if test "${ac_cv_func__doprnt+set}" = set; then 5894 echo $ECHO_N "(cached) $ECHO_C" >&6 5895 else 5896 cat >conftest.$ac_ext <<_ACEOF 5897 /* confdefs.h. */ 5898 _ACEOF 5899 cat confdefs.h >>conftest.$ac_ext 5900 cat >>conftest.$ac_ext <<_ACEOF 5901 /* end confdefs.h. */ 5902 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 5903 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5904 #define _doprnt innocuous__doprnt 5905 5906 /* System header to define __stub macros and hopefully few prototypes, 5907 which can conflict with char _doprnt (); below. 5908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5909 <limits.h> exists even on freestanding compilers. */ 5910 5911 #ifdef __STDC__ 5912 # include <limits.h> 5913 #else 5914 # include <assert.h> 5915 #endif 5916 5917 #undef _doprnt 5918 5919 /* Override any gcc2 internal prototype to avoid an error. */ 5920 #ifdef __cplusplus 5921 extern "C" 5922 { 5923 #endif 5924 /* We use char because int might match the return type of a gcc2 5925 builtin and then its argument prototype would still apply. */ 5926 char _doprnt (); 5927 /* The GNU C library defines this for functions which it implements 5928 to always fail with ENOSYS. Some functions are actually named 5929 something starting with __ and the normal name is an alias. */ 5930 #if defined (__stub__doprnt) || defined (__stub____doprnt) 5931 choke me 5932 #else 5933 char (*f) () = _doprnt; 5934 #endif 5935 #ifdef __cplusplus 5936 } 5937 #endif 5938 5939 int 5940 main () 5941 { 5942 return f != _doprnt; 5943 ; 5944 return 0; 5945 } 5946 _ACEOF 5947 rm -f conftest.$ac_objext conftest$ac_exeext 5948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5949 (eval $ac_link) 2>conftest.er1 5950 ac_status=$? 5951 grep -v '^ *+' conftest.er1 >conftest.err 5952 rm -f conftest.er1 5953 cat conftest.err >&5 5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5955 (exit $ac_status); } && 5956 { ac_try='test -z "$ac_c_werror_flag" 5957 || test ! -s conftest.err' 5958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5959 (eval $ac_try) 2>&5 5960 ac_status=$? 5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5962 (exit $ac_status); }; } && 5963 { ac_try='test -s conftest$ac_exeext' 5964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5965 (eval $ac_try) 2>&5 5966 ac_status=$? 5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5968 (exit $ac_status); }; }; then 5969 ac_cv_func__doprnt=yes 5970 else 5971 echo "$as_me: failed program was:" >&5 5972 sed 's/^/| /' conftest.$ac_ext >&5 5973 5974 ac_cv_func__doprnt=no 5975 fi 5976 rm -f conftest.err conftest.$ac_objext \ 5977 conftest$ac_exeext conftest.$ac_ext 5978 fi 5979 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 5980 echo "${ECHO_T}$ac_cv_func__doprnt" >&6 5981 if test $ac_cv_func__doprnt = yes; then 5982 5983 cat >>confdefs.h <<\_ACEOF 5984 #define HAVE_DOPRNT 1 5985 _ACEOF 5986 5987 fi 5988 5989 fi 5990 done 5991 5992 5993 # in theory only pre-sysvr3 systems needed this and it's not likely 5994 # that anyone compiling new texinfo still has such a thing? we'll see. 5995 # AC_FUNC_SETVBUF_REVERSED 5996 5997 5998 5999 6000 6001 6002 6003 6004 for ac_func in bzero getcwd memset setvbuf sigaction sigprocmask \ 6005 sigsetmask strchr 6006 do 6007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6008 echo "$as_me:$LINENO: checking for $ac_func" >&5 6009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6010 if eval "test \"\${$as_ac_var+set}\" = set"; then 6011 echo $ECHO_N "(cached) $ECHO_C" >&6 6012 else 6013 cat >conftest.$ac_ext <<_ACEOF 6014 /* confdefs.h. */ 6015 _ACEOF 6016 cat confdefs.h >>conftest.$ac_ext 6017 cat >>conftest.$ac_ext <<_ACEOF 6018 /* end confdefs.h. */ 6019 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6020 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6021 #define $ac_func innocuous_$ac_func 6022 6023 /* System header to define __stub macros and hopefully few prototypes, 6024 which can conflict with char $ac_func (); below. 6025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6026 <limits.h> exists even on freestanding compilers. */ 6027 6028 #ifdef __STDC__ 6029 # include <limits.h> 6030 #else 6031 # include <assert.h> 6032 #endif 6033 6034 #undef $ac_func 6035 6036 /* Override any gcc2 internal prototype to avoid an error. */ 6037 #ifdef __cplusplus 6038 extern "C" 6039 { 6040 #endif 6041 /* We use char because int might match the return type of a gcc2 6042 builtin and then its argument prototype would still apply. */ 6043 char $ac_func (); 6044 /* The GNU C library defines this for functions which it implements 6045 to always fail with ENOSYS. Some functions are actually named 6046 something starting with __ and the normal name is an alias. */ 6047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6048 choke me 6049 #else 6050 char (*f) () = $ac_func; 6051 #endif 6052 #ifdef __cplusplus 6053 } 6054 #endif 6055 6056 int 6057 main () 6058 { 6059 return f != $ac_func; 6060 ; 6061 return 0; 6062 } 6063 _ACEOF 6064 rm -f conftest.$ac_objext conftest$ac_exeext 6065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6066 (eval $ac_link) 2>conftest.er1 6067 ac_status=$? 6068 grep -v '^ *+' conftest.er1 >conftest.err 6069 rm -f conftest.er1 6070 cat conftest.err >&5 6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6072 (exit $ac_status); } && 6073 { ac_try='test -z "$ac_c_werror_flag" 6074 || test ! -s conftest.err' 6075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6076 (eval $ac_try) 2>&5 6077 ac_status=$? 6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6079 (exit $ac_status); }; } && 6080 { ac_try='test -s conftest$ac_exeext' 6081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6082 (eval $ac_try) 2>&5 6083 ac_status=$? 6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6085 (exit $ac_status); }; }; then 6086 eval "$as_ac_var=yes" 6087 else 6088 echo "$as_me: failed program was:" >&5 6089 sed 's/^/| /' conftest.$ac_ext >&5 6090 6091 eval "$as_ac_var=no" 6092 fi 6093 rm -f conftest.err conftest.$ac_objext \ 6094 conftest$ac_exeext conftest.$ac_ext 6095 fi 6096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6097 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6098 if test `eval echo '${'$as_ac_var'}'` = yes; then 6099 cat >>confdefs.h <<_ACEOF 6100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6101 _ACEOF 6102 6103 fi 6104 done 6105 6106 6107 6108 6109 6110 for ac_func in memcpy memmove strdup strerror 6111 do 6112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6113 echo "$as_me:$LINENO: checking for $ac_func" >&5 6114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6115 if eval "test \"\${$as_ac_var+set}\" = set"; then 6116 echo $ECHO_N "(cached) $ECHO_C" >&6 6117 else 6118 cat >conftest.$ac_ext <<_ACEOF 6119 /* confdefs.h. */ 6120 _ACEOF 6121 cat confdefs.h >>conftest.$ac_ext 6122 cat >>conftest.$ac_ext <<_ACEOF 6123 /* end confdefs.h. */ 6124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6125 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6126 #define $ac_func innocuous_$ac_func 6127 6128 /* System header to define __stub macros and hopefully few prototypes, 6129 which can conflict with char $ac_func (); below. 6130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6131 <limits.h> exists even on freestanding compilers. */ 6132 6133 #ifdef __STDC__ 6134 # include <limits.h> 6135 #else 6136 # include <assert.h> 6137 #endif 6138 6139 #undef $ac_func 6140 6141 /* Override any gcc2 internal prototype to avoid an error. */ 6142 #ifdef __cplusplus 6143 extern "C" 6144 { 6145 #endif 6146 /* We use char because int might match the return type of a gcc2 6147 builtin and then its argument prototype would still apply. */ 6148 char $ac_func (); 6149 /* The GNU C library defines this for functions which it implements 6150 to always fail with ENOSYS. Some functions are actually named 6151 something starting with __ and the normal name is an alias. */ 6152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6153 choke me 6154 #else 6155 char (*f) () = $ac_func; 6156 #endif 6157 #ifdef __cplusplus 6158 } 6159 #endif 6160 6161 int 6162 main () 6163 { 6164 return f != $ac_func; 6165 ; 6166 return 0; 6167 } 6168 _ACEOF 6169 rm -f conftest.$ac_objext conftest$ac_exeext 6170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6171 (eval $ac_link) 2>conftest.er1 6172 ac_status=$? 6173 grep -v '^ *+' conftest.er1 >conftest.err 6174 rm -f conftest.er1 6175 cat conftest.err >&5 6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6177 (exit $ac_status); } && 6178 { ac_try='test -z "$ac_c_werror_flag" 6179 || test ! -s conftest.err' 6180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6181 (eval $ac_try) 2>&5 6182 ac_status=$? 6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6184 (exit $ac_status); }; } && 6185 { ac_try='test -s conftest$ac_exeext' 6186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6187 (eval $ac_try) 2>&5 6188 ac_status=$? 6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6190 (exit $ac_status); }; }; then 6191 eval "$as_ac_var=yes" 6192 else 6193 echo "$as_me: failed program was:" >&5 6194 sed 's/^/| /' conftest.$ac_ext >&5 6195 6196 eval "$as_ac_var=no" 6197 fi 6198 rm -f conftest.err conftest.$ac_objext \ 6199 conftest$ac_exeext conftest.$ac_ext 6200 fi 6201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6202 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6203 if test `eval echo '${'$as_ac_var'}'` = yes; then 6204 cat >>confdefs.h <<_ACEOF 6205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6206 _ACEOF 6207 6208 else 6209 case $LIBOBJS in 6210 "$ac_func.$ac_objext" | \ 6211 *" $ac_func.$ac_objext" | \ 6212 "$ac_func.$ac_objext "* | \ 6213 *" $ac_func.$ac_objext "* ) ;; 6214 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; 6215 esac 6216 6217 fi 6218 done 6219 6220 6221 6222 # strcasecmp and strncasecmp, gnulib-style. 6223 6224 6225 6226 for ac_func in strcasecmp 6227 do 6228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6229 echo "$as_me:$LINENO: checking for $ac_func" >&5 6230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6231 if eval "test \"\${$as_ac_var+set}\" = set"; then 6232 echo $ECHO_N "(cached) $ECHO_C" >&6 6233 else 6234 cat >conftest.$ac_ext <<_ACEOF 6235 /* confdefs.h. */ 6236 _ACEOF 6237 cat confdefs.h >>conftest.$ac_ext 6238 cat >>conftest.$ac_ext <<_ACEOF 6239 /* end confdefs.h. */ 6240 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6241 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6242 #define $ac_func innocuous_$ac_func 6243 6244 /* System header to define __stub macros and hopefully few prototypes, 6245 which can conflict with char $ac_func (); below. 6246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6247 <limits.h> exists even on freestanding compilers. */ 6248 6249 #ifdef __STDC__ 6250 # include <limits.h> 6251 #else 6252 # include <assert.h> 6253 #endif 6254 6255 #undef $ac_func 6256 6257 /* Override any gcc2 internal prototype to avoid an error. */ 6258 #ifdef __cplusplus 6259 extern "C" 6260 { 6261 #endif 6262 /* We use char because int might match the return type of a gcc2 6263 builtin and then its argument prototype would still apply. */ 6264 char $ac_func (); 6265 /* The GNU C library defines this for functions which it implements 6266 to always fail with ENOSYS. Some functions are actually named 6267 something starting with __ and the normal name is an alias. */ 6268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6269 choke me 6270 #else 6271 char (*f) () = $ac_func; 6272 #endif 6273 #ifdef __cplusplus 6274 } 6275 #endif 6276 6277 int 6278 main () 6279 { 6280 return f != $ac_func; 6281 ; 6282 return 0; 6283 } 6284 _ACEOF 6285 rm -f conftest.$ac_objext conftest$ac_exeext 6286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6287 (eval $ac_link) 2>conftest.er1 6288 ac_status=$? 6289 grep -v '^ *+' conftest.er1 >conftest.err 6290 rm -f conftest.er1 6291 cat conftest.err >&5 6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6293 (exit $ac_status); } && 6294 { ac_try='test -z "$ac_c_werror_flag" 6295 || test ! -s conftest.err' 6296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6297 (eval $ac_try) 2>&5 6298 ac_status=$? 6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6300 (exit $ac_status); }; } && 6301 { ac_try='test -s conftest$ac_exeext' 6302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6303 (eval $ac_try) 2>&5 6304 ac_status=$? 6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6306 (exit $ac_status); }; }; then 6307 eval "$as_ac_var=yes" 6308 else 6309 echo "$as_me: failed program was:" >&5 6310 sed 's/^/| /' conftest.$ac_ext >&5 6311 6312 eval "$as_ac_var=no" 6313 fi 6314 rm -f conftest.err conftest.$ac_objext \ 6315 conftest$ac_exeext conftest.$ac_ext 6316 fi 6317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6318 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6319 if test `eval echo '${'$as_ac_var'}'` = yes; then 6320 cat >>confdefs.h <<_ACEOF 6321 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6322 _ACEOF 6323 6324 else 6325 case $LIBOBJS in 6326 "$ac_func.$ac_objext" | \ 6327 *" $ac_func.$ac_objext" | \ 6328 "$ac_func.$ac_objext "* | \ 6329 *" $ac_func.$ac_objext "* ) ;; 6330 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; 6331 esac 6332 6333 fi 6334 done 6335 6336 6337 if test $ac_cv_func_strcasecmp = no; then 6338 6339 : 6340 6341 fi 6342 6343 6344 6345 for ac_func in strncasecmp 6346 do 6347 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6348 echo "$as_me:$LINENO: checking for $ac_func" >&5 6349 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6350 if eval "test \"\${$as_ac_var+set}\" = set"; then 6351 echo $ECHO_N "(cached) $ECHO_C" >&6 6352 else 6353 cat >conftest.$ac_ext <<_ACEOF 6354 /* confdefs.h. */ 6355 _ACEOF 6356 cat confdefs.h >>conftest.$ac_ext 6357 cat >>conftest.$ac_ext <<_ACEOF 6358 /* end confdefs.h. */ 6359 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6360 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6361 #define $ac_func innocuous_$ac_func 6362 6363 /* System header to define __stub macros and hopefully few prototypes, 6364 which can conflict with char $ac_func (); below. 6365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6366 <limits.h> exists even on freestanding compilers. */ 6367 6368 #ifdef __STDC__ 6369 # include <limits.h> 6370 #else 6371 # include <assert.h> 6372 #endif 6373 6374 #undef $ac_func 6375 6376 /* Override any gcc2 internal prototype to avoid an error. */ 6377 #ifdef __cplusplus 6378 extern "C" 6379 { 6380 #endif 6381 /* We use char because int might match the return type of a gcc2 6382 builtin and then its argument prototype would still apply. */ 6383 char $ac_func (); 6384 /* The GNU C library defines this for functions which it implements 6385 to always fail with ENOSYS. Some functions are actually named 6386 something starting with __ and the normal name is an alias. */ 6387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6388 choke me 6389 #else 6390 char (*f) () = $ac_func; 6391 #endif 6392 #ifdef __cplusplus 6393 } 6394 #endif 6395 6396 int 6397 main () 6398 { 6399 return f != $ac_func; 6400 ; 6401 return 0; 6402 } 6403 _ACEOF 6404 rm -f conftest.$ac_objext conftest$ac_exeext 6405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6406 (eval $ac_link) 2>conftest.er1 6407 ac_status=$? 6408 grep -v '^ *+' conftest.er1 >conftest.err 6409 rm -f conftest.er1 6410 cat conftest.err >&5 6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6412 (exit $ac_status); } && 6413 { ac_try='test -z "$ac_c_werror_flag" 6414 || test ! -s conftest.err' 6415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6416 (eval $ac_try) 2>&5 6417 ac_status=$? 6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6419 (exit $ac_status); }; } && 6420 { ac_try='test -s conftest$ac_exeext' 6421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6422 (eval $ac_try) 2>&5 6423 ac_status=$? 6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6425 (exit $ac_status); }; }; then 6426 eval "$as_ac_var=yes" 6427 else 6428 echo "$as_me: failed program was:" >&5 6429 sed 's/^/| /' conftest.$ac_ext >&5 6430 6431 eval "$as_ac_var=no" 6432 fi 6433 rm -f conftest.err conftest.$ac_objext \ 6434 conftest$ac_exeext conftest.$ac_ext 6435 fi 6436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6437 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6438 if test `eval echo '${'$as_ac_var'}'` = yes; then 6439 cat >>confdefs.h <<_ACEOF 6440 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6441 _ACEOF 6442 6443 else 6444 case $LIBOBJS in 6445 "$ac_func.$ac_objext" | \ 6446 *" $ac_func.$ac_objext" | \ 6447 "$ac_func.$ac_objext "* | \ 6448 *" $ac_func.$ac_objext "* ) ;; 6449 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; 6450 esac 6451 6452 fi 6453 done 6454 6455 6456 if test $ac_cv_func_strncasecmp = no; then 6457 6458 : 6459 6460 fi 6461 6462 6463 6464 # We want to recognize djgpp to avoid the useless warning about no 6465 # term library. 6466 # Make sure we can run config.sub. 6467 $ac_config_sub sun4 >/dev/null 2>&1 || 6468 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 6469 echo "$as_me: error: cannot run $ac_config_sub" >&2;} 6470 { (exit 1); exit 1; }; } 6471 6472 echo "$as_me:$LINENO: checking build system type" >&5 6473 echo $ECHO_N "checking build system type... $ECHO_C" >&6 6474 if test "${ac_cv_build+set}" = set; then 6475 echo $ECHO_N "(cached) $ECHO_C" >&6 6476 else 6477 ac_cv_build_alias=$build_alias 6478 test -z "$ac_cv_build_alias" && 6479 ac_cv_build_alias=`$ac_config_guess` 6480 test -z "$ac_cv_build_alias" && 6481 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 6482 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 6483 { (exit 1); exit 1; }; } 6484 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 6485 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 6486 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 6487 { (exit 1); exit 1; }; } 6488 6489 fi 6490 echo "$as_me:$LINENO: result: $ac_cv_build" >&5 6491 echo "${ECHO_T}$ac_cv_build" >&6 6492 build=$ac_cv_build 6493 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 6494 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 6495 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 6496 6497 6498 6499 # We need to run some of our own binaries, most notably makedoc, but as 6500 # long as we have this process, we also use our own makeinfo and 6501 # install-info. 6502 # 6503 # This means that if we are cross compiling, we have to configure the 6504 # package twice: once with the native compiler (this is done in a 6505 # subdirectory $native_tools), and once with the cross compiler. 6506 # The former is invoked automatically here, with --host=$build. 6507 # $native_tools is also added to SUBDIRS in the main Makefile.am, 6508 # so that make compiles the native tools first. 6509 # 6510 if test "$cross_compiling" = no; then 6511 native_tools= 6512 else 6513 native_tools=tools 6514 test -d "$native_tools" || mkdir "$native_tools" 6515 confdir=`(cd "$srcdir";pwd)` 6516 # Make sure the secondary configure won't fail with 6517 # "error: source directory already configured". 6518 rm -f config.status 6519 { echo "$as_me:$LINENO: Doing configure of native tools (${build})." >&5 6520 echo "$as_me: Doing configure of native tools (${build})." >&6;} 6521 cd "$native_tools" || exit 1 6522 # Run secondary configure in alternate environment or 6523 # it gets the wrong CC etc. env -i gives this build host configure 6524 # a clean environment. 6525 env -i CC="${BUILD_CC}" AR="${BUILD_AR}" RANLIB="${BUILD_RANLIB}" \ 6526 PATH="${PATH}" \ 6527 tools_only=1 \ 6528 ${confdir}/configure --build=${build} --host=${build} \ 6529 --disable-rpath --disable-nls 6530 cd .. || exit 1 6531 { echo "$as_me:$LINENO: Continuing with main configure (${host})." >&5 6532 echo "$as_me: Continuing with main configure (${host})." >&6;} 6533 fi 6534 6535 6536 6537 if test "x$tools_only" = x1; then 6538 TOOLS_ONLY_TRUE= 6539 TOOLS_ONLY_FALSE='#' 6540 else 6541 TOOLS_ONLY_TRUE='#' 6542 TOOLS_ONLY_FALSE= 6543 fi 6544 6545 6546 # Some GNU/Linux systems (e.g., SuSE 4.3, 1996) don't have curses, but 6547 # rather ncurses. So we check for it. 6548 TERMLIBS= 6549 # Check for termlib before termcap because Solaris termcap needs libucb. 6550 TERMLIB_VARIANTS="ncurses curses termlib termcap terminfo" 6551 for termlib in ${TERMLIB_VARIANTS}; do 6552 as_ac_Lib=`echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh` 6553 echo "$as_me:$LINENO: checking for tgetent in -l${termlib}" >&5 6554 echo $ECHO_N "checking for tgetent in -l${termlib}... $ECHO_C" >&6 6555 if eval "test \"\${$as_ac_Lib+set}\" = set"; then 6556 echo $ECHO_N "(cached) $ECHO_C" >&6 6557 else 6558 ac_check_lib_save_LIBS=$LIBS 6559 LIBS="-l${termlib} $LIBS" 6560 cat >conftest.$ac_ext <<_ACEOF 6561 /* confdefs.h. */ 6562 _ACEOF 6563 cat confdefs.h >>conftest.$ac_ext 6564 cat >>conftest.$ac_ext <<_ACEOF 6565 /* end confdefs.h. */ 6566 6567 /* Override any gcc2 internal prototype to avoid an error. */ 6568 #ifdef __cplusplus 6569 extern "C" 6570 #endif 6571 /* We use char because int might match the return type of a gcc2 6572 builtin and then its argument prototype would still apply. */ 6573 char tgetent (); 6574 int 6575 main () 6576 { 6577 tgetent (); 6578 ; 6579 return 0; 6580 } 6581 _ACEOF 6582 rm -f conftest.$ac_objext conftest$ac_exeext 6583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6584 (eval $ac_link) 2>conftest.er1 6585 ac_status=$? 6586 grep -v '^ *+' conftest.er1 >conftest.err 6587 rm -f conftest.er1 6588 cat conftest.err >&5 6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6590 (exit $ac_status); } && 6591 { ac_try='test -z "$ac_c_werror_flag" 6592 || test ! -s conftest.err' 6593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6594 (eval $ac_try) 2>&5 6595 ac_status=$? 6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6597 (exit $ac_status); }; } && 6598 { ac_try='test -s conftest$ac_exeext' 6599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6600 (eval $ac_try) 2>&5 6601 ac_status=$? 6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6603 (exit $ac_status); }; }; then 6604 eval "$as_ac_Lib=yes" 6605 else 6606 echo "$as_me: failed program was:" >&5 6607 sed 's/^/| /' conftest.$ac_ext >&5 6608 6609 eval "$as_ac_Lib=no" 6610 fi 6611 rm -f conftest.err conftest.$ac_objext \ 6612 conftest$ac_exeext conftest.$ac_ext 6613 LIBS=$ac_check_lib_save_LIBS 6614 fi 6615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 6616 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 6617 if test `eval echo '${'$as_ac_Lib'}'` = yes; then 6618 TERMLIBS="${TERMLIBS} -l${termlib}"; break 6619 fi 6620 6621 done 6622 # don't bother warning on djgpp, it doesn't have a term library, it 6623 # ports each termcap-needing program separately according to its needs. 6624 if test -z "$TERMLIBS" && echo "$build" | grep -v djgpp >/dev/null; then 6625 { echo "$as_me:$LINENO: WARNING: probably need a terminal library, one of: ${TERMLIB_VARIANTS}" >&5 6626 echo "$as_me: WARNING: probably need a terminal library, one of: ${TERMLIB_VARIANTS}" >&2;} 6627 fi 6628 6629 # Checks for variables. 6630 # HP-UX 9 (at least) needs -lncurses which defines termcap variables PC etc. 6631 echo "$as_me:$LINENO: checking for library with termcap variables" >&5 6632 echo $ECHO_N "checking for library with termcap variables... $ECHO_C" >&6 6633 if test "${ac_cv_var_ospeed+set}" = set; then 6634 echo $ECHO_N "(cached) $ECHO_C" >&6 6635 else 6636 oldLIBS=$LIBS 6637 for trylib in $termlib ${TERMLIB_VARIANTS}; do 6638 if test "x$trylib" != "x$termlib"; then 6639 LIBS="$oldLIBS -l$termlib -l$trylib" 6640 else 6641 LIBS="$oldLIBS -l$termlib" 6642 fi 6643 cat >conftest.$ac_ext <<_ACEOF 6644 /* confdefs.h. */ 6645 _ACEOF 6646 cat confdefs.h >>conftest.$ac_ext 6647 cat >>conftest.$ac_ext <<_ACEOF 6648 /* end confdefs.h. */ 6649 6650 int 6651 main () 6652 { 6653 #ifdef HAVE_NCURSES_TERMCAP_H 6654 #include <ncurses/termcap.h> 6655 #else 6656 #ifdef HAVE_TERMCAP_H 6657 #include <termcap.h> 6658 #else 6659 #undef PC 6660 char *BC; 6661 char **UP; 6662 char PC; 6663 short ospeed; 6664 #endif 6665 #endif 6666 /* Make sure all variables actually exist. AIX 4.3 has ospeed but no BC. 6667 --Andreas Ley <andy@rz.uni-karlsruhe.de> 24 Aug 2000. */ 6668 BC++; 6669 UP++; 6670 PC++; 6671 return ospeed != 0; 6672 6673 ; 6674 return 0; 6675 } 6676 _ACEOF 6677 rm -f conftest.$ac_objext conftest$ac_exeext 6678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6679 (eval $ac_link) 2>conftest.er1 6680 ac_status=$? 6681 grep -v '^ *+' conftest.er1 >conftest.err 6682 rm -f conftest.er1 6683 cat conftest.err >&5 6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6685 (exit $ac_status); } && 6686 { ac_try='test -z "$ac_c_werror_flag" 6687 || test ! -s conftest.err' 6688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6689 (eval $ac_try) 2>&5 6690 ac_status=$? 6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6692 (exit $ac_status); }; } && 6693 { ac_try='test -s conftest$ac_exeext' 6694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6695 (eval $ac_try) 2>&5 6696 ac_status=$? 6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6698 (exit $ac_status); }; }; then 6699 ac_cv_var_ospeed=$trylib; break 6700 else 6701 echo "$as_me: failed program was:" >&5 6702 sed 's/^/| /' conftest.$ac_ext >&5 6703 6704 fi 6705 rm -f conftest.err conftest.$ac_objext \ 6706 conftest$ac_exeext conftest.$ac_ext 6707 done 6708 LIBS=$oldLIBS 6709 6710 fi 6711 6712 echo "$as_me:$LINENO: result: $ac_cv_var_ospeed" >&5 6713 echo "${ECHO_T}$ac_cv_var_ospeed" >&6 6714 if test -n "$ac_cv_var_ospeed" \ 6715 && test "x$termlib" != "x$ac_cv_var_ospeed"; then 6716 TERMLIBS="${TERMLIBS} -l${ac_cv_var_ospeed}" 6717 fi 6718 # 6719 6720 # Do not use <ncurses/termcap.h> unless we're linking with ncurses. 6721 # Must come after the termlib tests. 6722 if test "x$termlib" = xncurses; then 6723 # Use AC_CHECK_HEADERS so the HAVE_*_H symbol gets defined. 6724 6725 for ac_header in ncurses/termcap.h 6726 do 6727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6728 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6729 echo "$as_me:$LINENO: checking for $ac_header" >&5 6730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6731 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6732 echo $ECHO_N "(cached) $ECHO_C" >&6 6733 fi 6734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6736 else 6737 # Is the header compilable? 6738 echo "$as_me:$LINENO: checking $ac_header usability" >&5 6739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6740 cat >conftest.$ac_ext <<_ACEOF 6741 /* confdefs.h. */ 6742 _ACEOF 6743 cat confdefs.h >>conftest.$ac_ext 6744 cat >>conftest.$ac_ext <<_ACEOF 6745 /* end confdefs.h. */ 6746 $ac_includes_default 6747 #include <$ac_header> 6748 _ACEOF 6749 rm -f conftest.$ac_objext 6750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6751 (eval $ac_compile) 2>conftest.er1 6752 ac_status=$? 6753 grep -v '^ *+' conftest.er1 >conftest.err 6754 rm -f conftest.er1 6755 cat conftest.err >&5 6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6757 (exit $ac_status); } && 6758 { ac_try='test -z "$ac_c_werror_flag" 6759 || test ! -s conftest.err' 6760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6761 (eval $ac_try) 2>&5 6762 ac_status=$? 6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6764 (exit $ac_status); }; } && 6765 { ac_try='test -s conftest.$ac_objext' 6766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6767 (eval $ac_try) 2>&5 6768 ac_status=$? 6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6770 (exit $ac_status); }; }; then 6771 ac_header_compiler=yes 6772 else 6773 echo "$as_me: failed program was:" >&5 6774 sed 's/^/| /' conftest.$ac_ext >&5 6775 6776 ac_header_compiler=no 6777 fi 6778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6779 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6780 echo "${ECHO_T}$ac_header_compiler" >&6 6781 6782 # Is the header present? 6783 echo "$as_me:$LINENO: checking $ac_header presence" >&5 6784 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6785 cat >conftest.$ac_ext <<_ACEOF 6786 /* confdefs.h. */ 6787 _ACEOF 6788 cat confdefs.h >>conftest.$ac_ext 6789 cat >>conftest.$ac_ext <<_ACEOF 6790 /* end confdefs.h. */ 6791 #include <$ac_header> 6792 _ACEOF 6793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6795 ac_status=$? 6796 grep -v '^ *+' conftest.er1 >conftest.err 6797 rm -f conftest.er1 6798 cat conftest.err >&5 6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6800 (exit $ac_status); } >/dev/null; then 6801 if test -s conftest.err; then 6802 ac_cpp_err=$ac_c_preproc_warn_flag 6803 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6804 else 6805 ac_cpp_err= 6806 fi 6807 else 6808 ac_cpp_err=yes 6809 fi 6810 if test -z "$ac_cpp_err"; then 6811 ac_header_preproc=yes 6812 else 6813 echo "$as_me: failed program was:" >&5 6814 sed 's/^/| /' conftest.$ac_ext >&5 6815 6816 ac_header_preproc=no 6817 fi 6818 rm -f conftest.err conftest.$ac_ext 6819 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6820 echo "${ECHO_T}$ac_header_preproc" >&6 6821 6822 # So? What about this header? 6823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6824 yes:no: ) 6825 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6826 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6828 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6829 ac_header_preproc=yes 6830 ;; 6831 no:yes:* ) 6832 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6833 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6834 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6835 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6836 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6837 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6838 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6839 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6841 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6842 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6843 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6844 ( 6845 cat <<\_ASBOX 6846 ## -------------------------------------- ## 6847 ## Report this to the GNU Texinfo lists. ## 6848 ## -------------------------------------- ## 6849 _ASBOX 6850 ) | 6851 sed "s/^/$as_me: WARNING: /" >&2 6852 ;; 6853 esac 6854 echo "$as_me:$LINENO: checking for $ac_header" >&5 6855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6856 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6857 echo $ECHO_N "(cached) $ECHO_C" >&6 6858 else 6859 eval "$as_ac_Header=\$ac_header_preproc" 6860 fi 6861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6863 6864 fi 6865 if test `eval echo '${'$as_ac_Header'}'` = yes; then 6866 cat >>confdefs.h <<_ACEOF 6867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6868 _ACEOF 6869 6870 fi 6871 6872 done 6873 6874 fi 6875 6876 # gnulib. 6877 6878 6879 6880 6881 6882 for ac_header in $gl_header_list 6883 do 6884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6885 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6886 echo "$as_me:$LINENO: checking for $ac_header" >&5 6887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6888 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6889 echo $ECHO_N "(cached) $ECHO_C" >&6 6890 fi 6891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6893 else 6894 # Is the header compilable? 6895 echo "$as_me:$LINENO: checking $ac_header usability" >&5 6896 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6897 cat >conftest.$ac_ext <<_ACEOF 6898 /* confdefs.h. */ 6899 _ACEOF 6900 cat confdefs.h >>conftest.$ac_ext 6901 cat >>conftest.$ac_ext <<_ACEOF 6902 /* end confdefs.h. */ 6903 $ac_includes_default 6904 #include <$ac_header> 6905 _ACEOF 6906 rm -f conftest.$ac_objext 6907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6908 (eval $ac_compile) 2>conftest.er1 6909 ac_status=$? 6910 grep -v '^ *+' conftest.er1 >conftest.err 6911 rm -f conftest.er1 6912 cat conftest.err >&5 6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6914 (exit $ac_status); } && 6915 { ac_try='test -z "$ac_c_werror_flag" 6916 || test ! -s conftest.err' 6917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6918 (eval $ac_try) 2>&5 6919 ac_status=$? 6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6921 (exit $ac_status); }; } && 6922 { ac_try='test -s conftest.$ac_objext' 6923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6924 (eval $ac_try) 2>&5 6925 ac_status=$? 6926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6927 (exit $ac_status); }; }; then 6928 ac_header_compiler=yes 6929 else 6930 echo "$as_me: failed program was:" >&5 6931 sed 's/^/| /' conftest.$ac_ext >&5 6932 6933 ac_header_compiler=no 6934 fi 6935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6936 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6937 echo "${ECHO_T}$ac_header_compiler" >&6 6938 6939 # Is the header present? 6940 echo "$as_me:$LINENO: checking $ac_header presence" >&5 6941 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6942 cat >conftest.$ac_ext <<_ACEOF 6943 /* confdefs.h. */ 6944 _ACEOF 6945 cat confdefs.h >>conftest.$ac_ext 6946 cat >>conftest.$ac_ext <<_ACEOF 6947 /* end confdefs.h. */ 6948 #include <$ac_header> 6949 _ACEOF 6950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6952 ac_status=$? 6953 grep -v '^ *+' conftest.er1 >conftest.err 6954 rm -f conftest.er1 6955 cat conftest.err >&5 6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6957 (exit $ac_status); } >/dev/null; then 6958 if test -s conftest.err; then 6959 ac_cpp_err=$ac_c_preproc_warn_flag 6960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6961 else 6962 ac_cpp_err= 6963 fi 6964 else 6965 ac_cpp_err=yes 6966 fi 6967 if test -z "$ac_cpp_err"; then 6968 ac_header_preproc=yes 6969 else 6970 echo "$as_me: failed program was:" >&5 6971 sed 's/^/| /' conftest.$ac_ext >&5 6972 6973 ac_header_preproc=no 6974 fi 6975 rm -f conftest.err conftest.$ac_ext 6976 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6977 echo "${ECHO_T}$ac_header_preproc" >&6 6978 6979 # So? What about this header? 6980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6981 yes:no: ) 6982 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6983 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6985 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6986 ac_header_preproc=yes 6987 ;; 6988 no:yes:* ) 6989 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6991 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6992 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6993 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6994 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6995 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6996 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6999 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7000 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7001 ( 7002 cat <<\_ASBOX 7003 ## -------------------------------------- ## 7004 ## Report this to the GNU Texinfo lists. ## 7005 ## -------------------------------------- ## 7006 _ASBOX 7007 ) | 7008 sed "s/^/$as_me: WARNING: /" >&2 7009 ;; 7010 esac 7011 echo "$as_me:$LINENO: checking for $ac_header" >&5 7012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7013 if eval "test \"\${$as_ac_Header+set}\" = set"; then 7014 echo $ECHO_N "(cached) $ECHO_C" >&6 7015 else 7016 eval "$as_ac_Header=\$ac_header_preproc" 7017 fi 7018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7020 7021 fi 7022 if test `eval echo '${'$as_ac_Header'}'` = yes; then 7023 cat >>confdefs.h <<_ACEOF 7024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7025 _ACEOF 7026 7027 fi 7028 7029 done 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 echo "$as_me:$LINENO: checking whether getenv is declared" >&5 7050 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6 7051 if test "${ac_cv_have_decl_getenv+set}" = set; then 7052 echo $ECHO_N "(cached) $ECHO_C" >&6 7053 else 7054 cat >conftest.$ac_ext <<_ACEOF 7055 /* confdefs.h. */ 7056 _ACEOF 7057 cat confdefs.h >>conftest.$ac_ext 7058 cat >>conftest.$ac_ext <<_ACEOF 7059 /* end confdefs.h. */ 7060 $ac_includes_default 7061 int 7062 main () 7063 { 7064 #ifndef getenv 7065 char *p = (char *) getenv; 7066 #endif 7067 7068 ; 7069 return 0; 7070 } 7071 _ACEOF 7072 rm -f conftest.$ac_objext 7073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7074 (eval $ac_compile) 2>conftest.er1 7075 ac_status=$? 7076 grep -v '^ *+' conftest.er1 >conftest.err 7077 rm -f conftest.er1 7078 cat conftest.err >&5 7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7080 (exit $ac_status); } && 7081 { ac_try='test -z "$ac_c_werror_flag" 7082 || test ! -s conftest.err' 7083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7084 (eval $ac_try) 2>&5 7085 ac_status=$? 7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7087 (exit $ac_status); }; } && 7088 { ac_try='test -s conftest.$ac_objext' 7089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7090 (eval $ac_try) 2>&5 7091 ac_status=$? 7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7093 (exit $ac_status); }; }; then 7094 ac_cv_have_decl_getenv=yes 7095 else 7096 echo "$as_me: failed program was:" >&5 7097 sed 's/^/| /' conftest.$ac_ext >&5 7098 7099 ac_cv_have_decl_getenv=no 7100 fi 7101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7102 fi 7103 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5 7104 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6 7105 if test $ac_cv_have_decl_getenv = yes; then 7106 7107 cat >>confdefs.h <<_ACEOF 7108 #define HAVE_DECL_GETENV 1 7109 _ACEOF 7110 7111 7112 else 7113 cat >>confdefs.h <<_ACEOF 7114 #define HAVE_DECL_GETENV 0 7115 _ACEOF 7116 7117 7118 fi 7119 7120 7121 7122 7123 echo "$as_me:$LINENO: checking for inttypes.h" >&5 7124 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 7125 if test "${gl_cv_header_inttypes_h+set}" = set; then 7126 echo $ECHO_N "(cached) $ECHO_C" >&6 7127 else 7128 cat >conftest.$ac_ext <<_ACEOF 7129 /* confdefs.h. */ 7130 _ACEOF 7131 cat confdefs.h >>conftest.$ac_ext 7132 cat >>conftest.$ac_ext <<_ACEOF 7133 /* end confdefs.h. */ 7134 #include <sys/types.h> 7135 #include <inttypes.h> 7136 int 7137 main () 7138 { 7139 uintmax_t i = (uintmax_t) -1; 7140 ; 7141 return 0; 7142 } 7143 _ACEOF 7144 rm -f conftest.$ac_objext 7145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7146 (eval $ac_compile) 2>conftest.er1 7147 ac_status=$? 7148 grep -v '^ *+' conftest.er1 >conftest.err 7149 rm -f conftest.er1 7150 cat conftest.err >&5 7151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7152 (exit $ac_status); } && 7153 { ac_try='test -z "$ac_c_werror_flag" 7154 || test ! -s conftest.err' 7155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7156 (eval $ac_try) 2>&5 7157 ac_status=$? 7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7159 (exit $ac_status); }; } && 7160 { ac_try='test -s conftest.$ac_objext' 7161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7162 (eval $ac_try) 2>&5 7163 ac_status=$? 7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7165 (exit $ac_status); }; }; then 7166 gl_cv_header_inttypes_h=yes 7167 else 7168 echo "$as_me: failed program was:" >&5 7169 sed 's/^/| /' conftest.$ac_ext >&5 7170 7171 gl_cv_header_inttypes_h=no 7172 fi 7173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7174 fi 7175 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5 7176 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6 7177 if test $gl_cv_header_inttypes_h = yes; then 7178 7179 cat >>confdefs.h <<_ACEOF 7180 #define HAVE_INTTYPES_H_WITH_UINTMAX 1 7181 _ACEOF 7182 7183 fi 7184 7185 7186 echo "$as_me:$LINENO: checking for stdint.h" >&5 7187 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6 7188 if test "${gl_cv_header_stdint_h+set}" = set; then 7189 echo $ECHO_N "(cached) $ECHO_C" >&6 7190 else 7191 cat >conftest.$ac_ext <<_ACEOF 7192 /* confdefs.h. */ 7193 _ACEOF 7194 cat confdefs.h >>conftest.$ac_ext 7195 cat >>conftest.$ac_ext <<_ACEOF 7196 /* end confdefs.h. */ 7197 #include <sys/types.h> 7198 #include <stdint.h> 7199 int 7200 main () 7201 { 7202 uintmax_t i = (uintmax_t) -1; 7203 ; 7204 return 0; 7205 } 7206 _ACEOF 7207 rm -f conftest.$ac_objext 7208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7209 (eval $ac_compile) 2>conftest.er1 7210 ac_status=$? 7211 grep -v '^ *+' conftest.er1 >conftest.err 7212 rm -f conftest.er1 7213 cat conftest.err >&5 7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7215 (exit $ac_status); } && 7216 { ac_try='test -z "$ac_c_werror_flag" 7217 || test ! -s conftest.err' 7218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7219 (eval $ac_try) 2>&5 7220 ac_status=$? 7221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7222 (exit $ac_status); }; } && 7223 { ac_try='test -s conftest.$ac_objext' 7224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7225 (eval $ac_try) 2>&5 7226 ac_status=$? 7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7228 (exit $ac_status); }; }; then 7229 gl_cv_header_stdint_h=yes 7230 else 7231 echo "$as_me: failed program was:" >&5 7232 sed 's/^/| /' conftest.$ac_ext >&5 7233 7234 gl_cv_header_stdint_h=no 7235 fi 7236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7237 fi 7238 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5 7239 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6 7240 if test $gl_cv_header_stdint_h = yes; then 7241 7242 cat >>confdefs.h <<_ACEOF 7243 #define HAVE_STDINT_H_WITH_UINTMAX 1 7244 _ACEOF 7245 7246 fi 7247 7248 7249 echo "$as_me:$LINENO: checking for unsigned long long" >&5 7250 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6 7251 if test "${ac_cv_type_unsigned_long_long+set}" = set; then 7252 echo $ECHO_N "(cached) $ECHO_C" >&6 7253 else 7254 cat >conftest.$ac_ext <<_ACEOF 7255 /* confdefs.h. */ 7256 _ACEOF 7257 cat confdefs.h >>conftest.$ac_ext 7258 cat >>conftest.$ac_ext <<_ACEOF 7259 /* end confdefs.h. */ 7260 unsigned long long ull = 1ULL; int i = 63; 7261 int 7262 main () 7263 { 7264 unsigned long long ullmax = (unsigned long long) -1; 7265 return ull << i | ull >> i | ullmax / ull | ullmax % ull; 7266 ; 7267 return 0; 7268 } 7269 _ACEOF 7270 rm -f conftest.$ac_objext conftest$ac_exeext 7271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7272 (eval $ac_link) 2>conftest.er1 7273 ac_status=$? 7274 grep -v '^ *+' conftest.er1 >conftest.err 7275 rm -f conftest.er1 7276 cat conftest.err >&5 7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7278 (exit $ac_status); } && 7279 { ac_try='test -z "$ac_c_werror_flag" 7280 || test ! -s conftest.err' 7281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7282 (eval $ac_try) 2>&5 7283 ac_status=$? 7284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7285 (exit $ac_status); }; } && 7286 { ac_try='test -s conftest$ac_exeext' 7287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7288 (eval $ac_try) 2>&5 7289 ac_status=$? 7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7291 (exit $ac_status); }; }; then 7292 ac_cv_type_unsigned_long_long=yes 7293 else 7294 echo "$as_me: failed program was:" >&5 7295 sed 's/^/| /' conftest.$ac_ext >&5 7296 7297 ac_cv_type_unsigned_long_long=no 7298 fi 7299 rm -f conftest.err conftest.$ac_objext \ 7300 conftest$ac_exeext conftest.$ac_ext 7301 fi 7302 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 7303 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6 7304 if test $ac_cv_type_unsigned_long_long = yes; then 7305 7306 cat >>confdefs.h <<\_ACEOF 7307 #define HAVE_UNSIGNED_LONG_LONG 1 7308 _ACEOF 7309 7310 fi 7311 7312 7313 7314 7315 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then 7316 7317 test $ac_cv_type_unsigned_long_long = yes \ 7318 && ac_type='unsigned long long' \ 7319 || ac_type='unsigned long' 7320 7321 cat >>confdefs.h <<_ACEOF 7322 #define uintmax_t $ac_type 7323 _ACEOF 7324 7325 else 7326 7327 cat >>confdefs.h <<\_ACEOF 7328 #define HAVE_UINTMAX_T 1 7329 _ACEOF 7330 7331 fi 7332 7333 7334 for ac_func in mkstemp 7335 do 7336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7337 echo "$as_me:$LINENO: checking for $ac_func" >&5 7338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7339 if eval "test \"\${$as_ac_var+set}\" = set"; then 7340 echo $ECHO_N "(cached) $ECHO_C" >&6 7341 else 7342 cat >conftest.$ac_ext <<_ACEOF 7343 /* confdefs.h. */ 7344 _ACEOF 7345 cat confdefs.h >>conftest.$ac_ext 7346 cat >>conftest.$ac_ext <<_ACEOF 7347 /* end confdefs.h. */ 7348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 7349 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7350 #define $ac_func innocuous_$ac_func 7351 7352 /* System header to define __stub macros and hopefully few prototypes, 7353 which can conflict with char $ac_func (); below. 7354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7355 <limits.h> exists even on freestanding compilers. */ 7356 7357 #ifdef __STDC__ 7358 # include <limits.h> 7359 #else 7360 # include <assert.h> 7361 #endif 7362 7363 #undef $ac_func 7364 7365 /* Override any gcc2 internal prototype to avoid an error. */ 7366 #ifdef __cplusplus 7367 extern "C" 7368 { 7369 #endif 7370 /* We use char because int might match the return type of a gcc2 7371 builtin and then its argument prototype would still apply. */ 7372 char $ac_func (); 7373 /* The GNU C library defines this for functions which it implements 7374 to always fail with ENOSYS. Some functions are actually named 7375 something starting with __ and the normal name is an alias. */ 7376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7377 choke me 7378 #else 7379 char (*f) () = $ac_func; 7380 #endif 7381 #ifdef __cplusplus 7382 } 7383 #endif 7384 7385 int 7386 main () 7387 { 7388 return f != $ac_func; 7389 ; 7390 return 0; 7391 } 7392 _ACEOF 7393 rm -f conftest.$ac_objext conftest$ac_exeext 7394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7395 (eval $ac_link) 2>conftest.er1 7396 ac_status=$? 7397 grep -v '^ *+' conftest.er1 >conftest.err 7398 rm -f conftest.er1 7399 cat conftest.err >&5 7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7401 (exit $ac_status); } && 7402 { ac_try='test -z "$ac_c_werror_flag" 7403 || test ! -s conftest.err' 7404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7405 (eval $ac_try) 2>&5 7406 ac_status=$? 7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7408 (exit $ac_status); }; } && 7409 { ac_try='test -s conftest$ac_exeext' 7410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7411 (eval $ac_try) 2>&5 7412 ac_status=$? 7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7414 (exit $ac_status); }; }; then 7415 eval "$as_ac_var=yes" 7416 else 7417 echo "$as_me: failed program was:" >&5 7418 sed 's/^/| /' conftest.$ac_ext >&5 7419 7420 eval "$as_ac_var=no" 7421 fi 7422 rm -f conftest.err conftest.$ac_objext \ 7423 conftest$ac_exeext conftest.$ac_ext 7424 fi 7425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7426 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7427 if test `eval echo '${'$as_ac_var'}'` = yes; then 7428 cat >>confdefs.h <<_ACEOF 7429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7430 _ACEOF 7431 7432 else 7433 case $LIBOBJS in 7434 "$ac_func.$ac_objext" | \ 7435 *" $ac_func.$ac_objext" | \ 7436 "$ac_func.$ac_objext "* | \ 7437 *" $ac_func.$ac_objext "* ) ;; 7438 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; 7439 esac 7440 7441 fi 7442 done 7443 7444 7445 if test $ac_cv_func_mkstemp = no; then 7446 gl_cv_func_mkstemp_limitations=yes 7447 else 7448 echo "$as_me:$LINENO: checking for mkstemp limitations" >&5 7449 echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6 7450 if test "${gl_cv_func_mkstemp_limitations+set}" = set; then 7451 echo $ECHO_N "(cached) $ECHO_C" >&6 7452 else 7453 7454 if test "$cross_compiling" = yes; then 7455 gl_cv_func_mkstemp_limitations=yes 7456 7457 else 7458 cat >conftest.$ac_ext <<_ACEOF 7459 /* confdefs.h. */ 7460 _ACEOF 7461 cat confdefs.h >>conftest.$ac_ext 7462 cat >>conftest.$ac_ext <<_ACEOF 7463 /* end confdefs.h. */ 7464 7465 # include <stdlib.h> 7466 int main () 7467 { 7468 int i; 7469 for (i = 0; i < 70; i++) 7470 { 7471 char template[] = "conftestXXXXXX"; 7472 int fd = mkstemp (template); 7473 if (fd == -1) 7474 exit (1); 7475 close (fd); 7476 } 7477 exit (0); 7478 } 7479 7480 _ACEOF 7481 rm -f conftest$ac_exeext 7482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7483 (eval $ac_link) 2>&5 7484 ac_status=$? 7485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7488 (eval $ac_try) 2>&5 7489 ac_status=$? 7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7491 (exit $ac_status); }; }; then 7492 gl_cv_func_mkstemp_limitations=no 7493 else 7494 echo "$as_me: program exited with status $ac_status" >&5 7495 echo "$as_me: failed program was:" >&5 7496 sed 's/^/| /' conftest.$ac_ext >&5 7497 7498 ( exit $ac_status ) 7499 gl_cv_func_mkstemp_limitations=yes 7500 fi 7501 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7502 fi 7503 7504 7505 fi 7506 echo "$as_me:$LINENO: result: $gl_cv_func_mkstemp_limitations" >&5 7507 echo "${ECHO_T}$gl_cv_func_mkstemp_limitations" >&6 7508 fi 7509 7510 if test $gl_cv_func_mkstemp_limitations = yes; then 7511 case $LIBOBJS in 7512 "mkstemp.$ac_objext" | \ 7513 *" mkstemp.$ac_objext" | \ 7514 "mkstemp.$ac_objext "* | \ 7515 *" mkstemp.$ac_objext "* ) ;; 7516 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" ;; 7517 esac 7518 7519 case $LIBOBJS in 7520 "tempname.$ac_objext" | \ 7521 *" tempname.$ac_objext" | \ 7522 "tempname.$ac_objext "* | \ 7523 *" tempname.$ac_objext "* ) ;; 7524 *) LIBOBJS="$LIBOBJS tempname.$ac_objext" ;; 7525 esac 7526 7527 7528 cat >>confdefs.h <<\_ACEOF 7529 #define mkstemp rpl_mkstemp 7530 _ACEOF 7531 7532 7533 7534 7535 7536 7537 : 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 for ac_header in stdint.h 7551 do 7552 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7553 if eval "test \"\${$as_ac_Header+set}\" = set"; then 7554 echo "$as_me:$LINENO: checking for $ac_header" >&5 7555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7556 if eval "test \"\${$as_ac_Header+set}\" = set"; then 7557 echo $ECHO_N "(cached) $ECHO_C" >&6 7558 fi 7559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7561 else 7562 # Is the header compilable? 7563 echo "$as_me:$LINENO: checking $ac_header usability" >&5 7564 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 7565 cat >conftest.$ac_ext <<_ACEOF 7566 /* confdefs.h. */ 7567 _ACEOF 7568 cat confdefs.h >>conftest.$ac_ext 7569 cat >>conftest.$ac_ext <<_ACEOF 7570 /* end confdefs.h. */ 7571 $ac_includes_default 7572 #include <$ac_header> 7573 _ACEOF 7574 rm -f conftest.$ac_objext 7575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7576 (eval $ac_compile) 2>conftest.er1 7577 ac_status=$? 7578 grep -v '^ *+' conftest.er1 >conftest.err 7579 rm -f conftest.er1 7580 cat conftest.err >&5 7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7582 (exit $ac_status); } && 7583 { ac_try='test -z "$ac_c_werror_flag" 7584 || test ! -s conftest.err' 7585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7586 (eval $ac_try) 2>&5 7587 ac_status=$? 7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7589 (exit $ac_status); }; } && 7590 { ac_try='test -s conftest.$ac_objext' 7591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7592 (eval $ac_try) 2>&5 7593 ac_status=$? 7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7595 (exit $ac_status); }; }; then 7596 ac_header_compiler=yes 7597 else 7598 echo "$as_me: failed program was:" >&5 7599 sed 's/^/| /' conftest.$ac_ext >&5 7600 7601 ac_header_compiler=no 7602 fi 7603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7604 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7605 echo "${ECHO_T}$ac_header_compiler" >&6 7606 7607 # Is the header present? 7608 echo "$as_me:$LINENO: checking $ac_header presence" >&5 7609 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 7610 cat >conftest.$ac_ext <<_ACEOF 7611 /* confdefs.h. */ 7612 _ACEOF 7613 cat confdefs.h >>conftest.$ac_ext 7614 cat >>conftest.$ac_ext <<_ACEOF 7615 /* end confdefs.h. */ 7616 #include <$ac_header> 7617 _ACEOF 7618 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7619 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7620 ac_status=$? 7621 grep -v '^ *+' conftest.er1 >conftest.err 7622 rm -f conftest.er1 7623 cat conftest.err >&5 7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7625 (exit $ac_status); } >/dev/null; then 7626 if test -s conftest.err; then 7627 ac_cpp_err=$ac_c_preproc_warn_flag 7628 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 7629 else 7630 ac_cpp_err= 7631 fi 7632 else 7633 ac_cpp_err=yes 7634 fi 7635 if test -z "$ac_cpp_err"; then 7636 ac_header_preproc=yes 7637 else 7638 echo "$as_me: failed program was:" >&5 7639 sed 's/^/| /' conftest.$ac_ext >&5 7640 7641 ac_header_preproc=no 7642 fi 7643 rm -f conftest.err conftest.$ac_ext 7644 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7645 echo "${ECHO_T}$ac_header_preproc" >&6 7646 7647 # So? What about this header? 7648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7649 yes:no: ) 7650 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7651 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7653 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7654 ac_header_preproc=yes 7655 ;; 7656 no:yes:* ) 7657 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7658 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7659 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7660 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7661 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7662 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7663 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7664 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7666 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7667 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7668 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7669 ( 7670 cat <<\_ASBOX 7671 ## -------------------------------------- ## 7672 ## Report this to the GNU Texinfo lists. ## 7673 ## -------------------------------------- ## 7674 _ASBOX 7675 ) | 7676 sed "s/^/$as_me: WARNING: /" >&2 7677 ;; 7678 esac 7679 echo "$as_me:$LINENO: checking for $ac_header" >&5 7680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7681 if eval "test \"\${$as_ac_Header+set}\" = set"; then 7682 echo $ECHO_N "(cached) $ECHO_C" >&6 7683 else 7684 eval "$as_ac_Header=\$ac_header_preproc" 7685 fi 7686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7688 7689 fi 7690 if test `eval echo '${'$as_ac_Header'}'` = yes; then 7691 cat >>confdefs.h <<_ACEOF 7692 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7693 _ACEOF 7694 7695 fi 7696 7697 done 7698 7699 7700 7701 for ac_func in __secure_getenv gettimeofday 7702 do 7703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7704 echo "$as_me:$LINENO: checking for $ac_func" >&5 7705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7706 if eval "test \"\${$as_ac_var+set}\" = set"; then 7707 echo $ECHO_N "(cached) $ECHO_C" >&6 7708 else 7709 cat >conftest.$ac_ext <<_ACEOF 7710 /* confdefs.h. */ 7711 _ACEOF 7712 cat confdefs.h >>conftest.$ac_ext 7713 cat >>conftest.$ac_ext <<_ACEOF 7714 /* end confdefs.h. */ 7715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 7716 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7717 #define $ac_func innocuous_$ac_func 7718 7719 /* System header to define __stub macros and hopefully few prototypes, 7720 which can conflict with char $ac_func (); below. 7721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7722 <limits.h> exists even on freestanding compilers. */ 7723 7724 #ifdef __STDC__ 7725 # include <limits.h> 7726 #else 7727 # include <assert.h> 7728 #endif 7729 7730 #undef $ac_func 7731 7732 /* Override any gcc2 internal prototype to avoid an error. */ 7733 #ifdef __cplusplus 7734 extern "C" 7735 { 7736 #endif 7737 /* We use char because int might match the return type of a gcc2 7738 builtin and then its argument prototype would still apply. */ 7739 char $ac_func (); 7740 /* The GNU C library defines this for functions which it implements 7741 to always fail with ENOSYS. Some functions are actually named 7742 something starting with __ and the normal name is an alias. */ 7743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7744 choke me 7745 #else 7746 char (*f) () = $ac_func; 7747 #endif 7748 #ifdef __cplusplus 7749 } 7750 #endif 7751 7752 int 7753 main () 7754 { 7755 return f != $ac_func; 7756 ; 7757 return 0; 7758 } 7759 _ACEOF 7760 rm -f conftest.$ac_objext conftest$ac_exeext 7761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7762 (eval $ac_link) 2>conftest.er1 7763 ac_status=$? 7764 grep -v '^ *+' conftest.er1 >conftest.err 7765 rm -f conftest.er1 7766 cat conftest.err >&5 7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7768 (exit $ac_status); } && 7769 { ac_try='test -z "$ac_c_werror_flag" 7770 || test ! -s conftest.err' 7771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7772 (eval $ac_try) 2>&5 7773 ac_status=$? 7774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7775 (exit $ac_status); }; } && 7776 { ac_try='test -s conftest$ac_exeext' 7777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7778 (eval $ac_try) 2>&5 7779 ac_status=$? 7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7781 (exit $ac_status); }; }; then 7782 eval "$as_ac_var=yes" 7783 else 7784 echo "$as_me: failed program was:" >&5 7785 sed 's/^/| /' conftest.$ac_ext >&5 7786 7787 eval "$as_ac_var=no" 7788 fi 7789 rm -f conftest.err conftest.$ac_objext \ 7790 conftest$ac_exeext conftest.$ac_ext 7791 fi 7792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7793 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7794 if test `eval echo '${'$as_ac_var'}'` = yes; then 7795 cat >>confdefs.h <<_ACEOF 7796 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7797 _ACEOF 7798 7799 fi 7800 done 7801 7802 7803 : 7804 7805 7806 7807 7808 7809 7810 7811 fi 7812 7813 7814 # For teTeX and TeX Live. 7815 echo "$as_me:$LINENO: checking host system type" >&5 7816 echo $ECHO_N "checking host system type... $ECHO_C" >&6 7817 if test "${ac_cv_host+set}" = set; then 7818 echo $ECHO_N "(cached) $ECHO_C" >&6 7819 else 7820 ac_cv_host_alias=$host_alias 7821 test -z "$ac_cv_host_alias" && 7822 ac_cv_host_alias=$ac_cv_build_alias 7823 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 7824 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 7825 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 7826 { (exit 1); exit 1; }; } 7827 7828 fi 7829 echo "$as_me:$LINENO: result: $ac_cv_host" >&5 7830 echo "${ECHO_T}$ac_cv_host" >&6 7831 host=$ac_cv_host 7832 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 7833 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 7834 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 7835 7836 7837 # Check whether --enable-multiplatform or --disable-multiplatform was given. 7838 if test "${enable_multiplatform+set}" = set; then 7839 enableval="$enable_multiplatform" 7840 7841 fi; 7842 # if enable_multiplatform is set in the environment, use that. 7843 test "x$enable_multiplatform" = xyes \ 7844 && test "x$bindir" = 'x${exec_prefix}/bin' \ 7845 && bindir="$bindir/$host" 7846 7847 # Taken from the example in 7848 # http://www.gnu.org/software/automake/manual/html_node/Conditionals.html. 7849 # Check whether --enable-install-warnings or --disable-install-warnings was given. 7850 if test "${enable_install_warnings+set}" = set; then 7851 enableval="$enable_install_warnings" 7852 case "${enableval}" in 7853 yes) install_warnings=true ;; 7854 no) install_warnings=false ;; 7855 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-install-warnings" >&5 7856 echo "$as_me: error: bad value ${enableval} for --enable-install-warnings" >&2;} 7857 { (exit 1); exit 1; }; } ;; 7858 esac 7859 else 7860 install_warnings=true 7861 fi; 7862 7863 7864 if test x"$install_warnings" = xtrue || test x"$install_warnings" = xyes; then 7865 INSTALL_WARNINGS_TRUE= 7866 INSTALL_WARNINGS_FALSE='#' 7867 else 7868 INSTALL_WARNINGS_TRUE='#' 7869 INSTALL_WARNINGS_FALSE= 7870 fi 7871 7872 7873 # i18n support. To update to a new version of gettext, run: 7874 # gettextize -f -c --intl 7875 7876 7877 MKINSTALLDIRS= 7878 if test -n "$ac_aux_dir"; then 7879 case "$ac_aux_dir" in 7880 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; 7881 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; 7882 esac 7883 fi 7884 if test -z "$MKINSTALLDIRS"; then 7885 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 7886 fi 7887 7888 7889 7890 echo "$as_me:$LINENO: checking whether NLS is requested" >&5 7891 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 7892 # Check whether --enable-nls or --disable-nls was given. 7893 if test "${enable_nls+set}" = set; then 7894 enableval="$enable_nls" 7895 USE_NLS=$enableval 7896 else 7897 USE_NLS=yes 7898 fi; 7899 echo "$as_me:$LINENO: result: $USE_NLS" >&5 7900 echo "${ECHO_T}$USE_NLS" >&6 7901 7902 7903 7904 7905 7906 7907 # Prepare PATH_SEPARATOR. 7908 # The user is always right. 7909 if test "${PATH_SEPARATOR+set}" != set; then 7910 echo "#! /bin/sh" >conf$$.sh 7911 echo "exit 0" >>conf$$.sh 7912 chmod +x conf$$.sh 7913 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 7914 PATH_SEPARATOR=';' 7915 else 7916 PATH_SEPARATOR=: 7917 fi 7918 rm -f conf$$.sh 7919 fi 7920 7921 # Find out how to test for executable files. Don't use a zero-byte file, 7922 # as systems may use methods other than mode bits to determine executability. 7923 cat >conf$$.file <<_ASEOF 7924 #! /bin/sh 7925 exit 0 7926 _ASEOF 7927 chmod +x conf$$.file 7928 if test -x conf$$.file >/dev/null 2>&1; then 7929 ac_executable_p="test -x" 7930 else 7931 ac_executable_p="test -f" 7932 fi 7933 rm -f conf$$.file 7934 7935 # Extract the first word of "msgfmt", so it can be a program name with args. 7936 set dummy msgfmt; ac_word=$2 7937 echo "$as_me:$LINENO: checking for $ac_word" >&5 7938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7939 if test "${ac_cv_path_MSGFMT+set}" = set; then 7940 echo $ECHO_N "(cached) $ECHO_C" >&6 7941 else 7942 case "$MSGFMT" in 7943 [\\/]* | ?:[\\/]*) 7944 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 7945 ;; 7946 *) 7947 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 7948 for ac_dir in $PATH; do 7949 IFS="$ac_save_IFS" 7950 test -z "$ac_dir" && ac_dir=. 7951 for ac_exec_ext in '' $ac_executable_extensions; do 7952 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 7953 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && 7954 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 7955 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 7956 break 2 7957 fi 7958 fi 7959 done 7960 done 7961 IFS="$ac_save_IFS" 7962 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 7963 ;; 7964 esac 7965 fi 7966 MSGFMT="$ac_cv_path_MSGFMT" 7967 if test "$MSGFMT" != ":"; then 7968 echo "$as_me:$LINENO: result: $MSGFMT" >&5 7969 echo "${ECHO_T}$MSGFMT" >&6 7970 else 7971 echo "$as_me:$LINENO: result: no" >&5 7972 echo "${ECHO_T}no" >&6 7973 fi 7974 7975 # Extract the first word of "gmsgfmt", so it can be a program name with args. 7976 set dummy gmsgfmt; ac_word=$2 7977 echo "$as_me:$LINENO: checking for $ac_word" >&5 7978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7979 if test "${ac_cv_path_GMSGFMT+set}" = set; then 7980 echo $ECHO_N "(cached) $ECHO_C" >&6 7981 else 7982 case $GMSGFMT in 7983 [\\/]* | ?:[\\/]*) 7984 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 7985 ;; 7986 *) 7987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7988 for as_dir in $PATH 7989 do 7990 IFS=$as_save_IFS 7991 test -z "$as_dir" && as_dir=. 7992 for ac_exec_ext in '' $ac_executable_extensions; do 7993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7994 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 7995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7996 break 2 7997 fi 7998 done 7999 done 8000 8001 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 8002 ;; 8003 esac 8004 fi 8005 GMSGFMT=$ac_cv_path_GMSGFMT 8006 8007 if test -n "$GMSGFMT"; then 8008 echo "$as_me:$LINENO: result: $GMSGFMT" >&5 8009 echo "${ECHO_T}$GMSGFMT" >&6 8010 else 8011 echo "$as_me:$LINENO: result: no" >&5 8012 echo "${ECHO_T}no" >&6 8013 fi 8014 8015 8016 8017 # Prepare PATH_SEPARATOR. 8018 # The user is always right. 8019 if test "${PATH_SEPARATOR+set}" != set; then 8020 echo "#! /bin/sh" >conf$$.sh 8021 echo "exit 0" >>conf$$.sh 8022 chmod +x conf$$.sh 8023 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 8024 PATH_SEPARATOR=';' 8025 else 8026 PATH_SEPARATOR=: 8027 fi 8028 rm -f conf$$.sh 8029 fi 8030 8031 # Find out how to test for executable files. Don't use a zero-byte file, 8032 # as systems may use methods other than mode bits to determine executability. 8033 cat >conf$$.file <<_ASEOF 8034 #! /bin/sh 8035 exit 0 8036 _ASEOF 8037 chmod +x conf$$.file 8038 if test -x conf$$.file >/dev/null 2>&1; then 8039 ac_executable_p="test -x" 8040 else 8041 ac_executable_p="test -f" 8042 fi 8043 rm -f conf$$.file 8044 8045 # Extract the first word of "xgettext", so it can be a program name with args. 8046 set dummy xgettext; ac_word=$2 8047 echo "$as_me:$LINENO: checking for $ac_word" >&5 8048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8049 if test "${ac_cv_path_XGETTEXT+set}" = set; then 8050 echo $ECHO_N "(cached) $ECHO_C" >&6 8051 else 8052 case "$XGETTEXT" in 8053 [\\/]* | ?:[\\/]*) 8054 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 8055 ;; 8056 *) 8057 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 8058 for ac_dir in $PATH; do 8059 IFS="$ac_save_IFS" 8060 test -z "$ac_dir" && ac_dir=. 8061 for ac_exec_ext in '' $ac_executable_extensions; do 8062 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 8063 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 8064 (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 8065 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 8066 break 2 8067 fi 8068 fi 8069 done 8070 done 8071 IFS="$ac_save_IFS" 8072 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 8073 ;; 8074 esac 8075 fi 8076 XGETTEXT="$ac_cv_path_XGETTEXT" 8077 if test "$XGETTEXT" != ":"; then 8078 echo "$as_me:$LINENO: result: $XGETTEXT" >&5 8079 echo "${ECHO_T}$XGETTEXT" >&6 8080 else 8081 echo "$as_me:$LINENO: result: no" >&5 8082 echo "${ECHO_T}no" >&6 8083 fi 8084 8085 rm -f messages.po 8086 8087 8088 # Prepare PATH_SEPARATOR. 8089 # The user is always right. 8090 if test "${PATH_SEPARATOR+set}" != set; then 8091 echo "#! /bin/sh" >conf$$.sh 8092 echo "exit 0" >>conf$$.sh 8093 chmod +x conf$$.sh 8094 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 8095 PATH_SEPARATOR=';' 8096 else 8097 PATH_SEPARATOR=: 8098 fi 8099 rm -f conf$$.sh 8100 fi 8101 8102 # Find out how to test for executable files. Don't use a zero-byte file, 8103 # as systems may use methods other than mode bits to determine executability. 8104 cat >conf$$.file <<_ASEOF 8105 #! /bin/sh 8106 exit 0 8107 _ASEOF 8108 chmod +x conf$$.file 8109 if test -x conf$$.file >/dev/null 2>&1; then 8110 ac_executable_p="test -x" 8111 else 8112 ac_executable_p="test -f" 8113 fi 8114 rm -f conf$$.file 8115 8116 # Extract the first word of "msgmerge", so it can be a program name with args. 8117 set dummy msgmerge; ac_word=$2 8118 echo "$as_me:$LINENO: checking for $ac_word" >&5 8119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8120 if test "${ac_cv_path_MSGMERGE+set}" = set; then 8121 echo $ECHO_N "(cached) $ECHO_C" >&6 8122 else 8123 case "$MSGMERGE" in 8124 [\\/]* | ?:[\\/]*) 8125 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 8126 ;; 8127 *) 8128 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 8129 for ac_dir in $PATH; do 8130 IFS="$ac_save_IFS" 8131 test -z "$ac_dir" && ac_dir=. 8132 for ac_exec_ext in '' $ac_executable_extensions; do 8133 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 8134 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then 8135 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 8136 break 2 8137 fi 8138 fi 8139 done 8140 done 8141 IFS="$ac_save_IFS" 8142 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 8143 ;; 8144 esac 8145 fi 8146 MSGMERGE="$ac_cv_path_MSGMERGE" 8147 if test "$MSGMERGE" != ":"; then 8148 echo "$as_me:$LINENO: result: $MSGMERGE" >&5 8149 echo "${ECHO_T}$MSGMERGE" >&6 8150 else 8151 echo "$as_me:$LINENO: result: no" >&5 8152 echo "${ECHO_T}no" >&6 8153 fi 8154 8155 8156 if test "$GMSGFMT" != ":"; then 8157 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 8158 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 8159 : ; 8160 else 8161 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 8162 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 8163 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6 8164 GMSGFMT=":" 8165 fi 8166 fi 8167 8168 if test "$XGETTEXT" != ":"; then 8169 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 8170 (if $XGETTEXT --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 8171 : ; 8172 else 8173 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 8174 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 8175 XGETTEXT=":" 8176 fi 8177 rm -f messages.po 8178 fi 8179 8180 ac_config_commands="$ac_config_commands default-1" 8181 8182 8183 8184 echo "$as_me:$LINENO: checking for signed" >&5 8185 echo $ECHO_N "checking for signed... $ECHO_C" >&6 8186 if test "${bh_cv_c_signed+set}" = set; then 8187 echo $ECHO_N "(cached) $ECHO_C" >&6 8188 else 8189 cat >conftest.$ac_ext <<_ACEOF 8190 /* confdefs.h. */ 8191 _ACEOF 8192 cat confdefs.h >>conftest.$ac_ext 8193 cat >>conftest.$ac_ext <<_ACEOF 8194 /* end confdefs.h. */ 8195 8196 int 8197 main () 8198 { 8199 signed char x; 8200 ; 8201 return 0; 8202 } 8203 _ACEOF 8204 rm -f conftest.$ac_objext 8205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8206 (eval $ac_compile) 2>conftest.er1 8207 ac_status=$? 8208 grep -v '^ *+' conftest.er1 >conftest.err 8209 rm -f conftest.er1 8210 cat conftest.err >&5 8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8212 (exit $ac_status); } && 8213 { ac_try='test -z "$ac_c_werror_flag" 8214 || test ! -s conftest.err' 8215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8216 (eval $ac_try) 2>&5 8217 ac_status=$? 8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8219 (exit $ac_status); }; } && 8220 { ac_try='test -s conftest.$ac_objext' 8221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8222 (eval $ac_try) 2>&5 8223 ac_status=$? 8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8225 (exit $ac_status); }; }; then 8226 bh_cv_c_signed=yes 8227 else 8228 echo "$as_me: failed program was:" >&5 8229 sed 's/^/| /' conftest.$ac_ext >&5 8230 8231 bh_cv_c_signed=no 8232 fi 8233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8234 fi 8235 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5 8236 echo "${ECHO_T}$bh_cv_c_signed" >&6 8237 if test $bh_cv_c_signed = no; then 8238 8239 cat >>confdefs.h <<\_ACEOF 8240 #define signed 8241 _ACEOF 8242 8243 fi 8244 8245 echo "$as_me:$LINENO: checking for inline" >&5 8246 echo $ECHO_N "checking for inline... $ECHO_C" >&6 8247 if test "${ac_cv_c_inline+set}" = set; then 8248 echo $ECHO_N "(cached) $ECHO_C" >&6 8249 else 8250 ac_cv_c_inline=no 8251 for ac_kw in inline __inline__ __inline; do 8252 cat >conftest.$ac_ext <<_ACEOF 8253 /* confdefs.h. */ 8254 _ACEOF 8255 cat confdefs.h >>conftest.$ac_ext 8256 cat >>conftest.$ac_ext <<_ACEOF 8257 /* end confdefs.h. */ 8258 #ifndef __cplusplus 8259 typedef int foo_t; 8260 static $ac_kw foo_t static_foo () {return 0; } 8261 $ac_kw foo_t foo () {return 0; } 8262 #endif 8263 8264 _ACEOF 8265 rm -f conftest.$ac_objext 8266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8267 (eval $ac_compile) 2>conftest.er1 8268 ac_status=$? 8269 grep -v '^ *+' conftest.er1 >conftest.err 8270 rm -f conftest.er1 8271 cat conftest.err >&5 8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8273 (exit $ac_status); } && 8274 { ac_try='test -z "$ac_c_werror_flag" 8275 || test ! -s conftest.err' 8276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8277 (eval $ac_try) 2>&5 8278 ac_status=$? 8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8280 (exit $ac_status); }; } && 8281 { ac_try='test -s conftest.$ac_objext' 8282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8283 (eval $ac_try) 2>&5 8284 ac_status=$? 8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8286 (exit $ac_status); }; }; then 8287 ac_cv_c_inline=$ac_kw; break 8288 else 8289 echo "$as_me: failed program was:" >&5 8290 sed 's/^/| /' conftest.$ac_ext >&5 8291 8292 fi 8293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8294 done 8295 8296 fi 8297 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 8298 echo "${ECHO_T}$ac_cv_c_inline" >&6 8299 8300 8301 case $ac_cv_c_inline in 8302 inline | yes) ;; 8303 *) 8304 case $ac_cv_c_inline in 8305 no) ac_val=;; 8306 *) ac_val=$ac_cv_c_inline;; 8307 esac 8308 cat >>confdefs.h <<_ACEOF 8309 #ifndef __cplusplus 8310 #define inline $ac_val 8311 #endif 8312 _ACEOF 8313 ;; 8314 esac 8315 8316 echo "$as_me:$LINENO: checking for size_t" >&5 8317 echo $ECHO_N "checking for size_t... $ECHO_C" >&6 8318 if test "${ac_cv_type_size_t+set}" = set; then 8319 echo $ECHO_N "(cached) $ECHO_C" >&6 8320 else 8321 cat >conftest.$ac_ext <<_ACEOF 8322 /* confdefs.h. */ 8323 _ACEOF 8324 cat confdefs.h >>conftest.$ac_ext 8325 cat >>conftest.$ac_ext <<_ACEOF 8326 /* end confdefs.h. */ 8327 $ac_includes_default 8328 int 8329 main () 8330 { 8331 if ((size_t *) 0) 8332 return 0; 8333 if (sizeof (size_t)) 8334 return 0; 8335 ; 8336 return 0; 8337 } 8338 _ACEOF 8339 rm -f conftest.$ac_objext 8340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8341 (eval $ac_compile) 2>conftest.er1 8342 ac_status=$? 8343 grep -v '^ *+' conftest.er1 >conftest.err 8344 rm -f conftest.er1 8345 cat conftest.err >&5 8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8347 (exit $ac_status); } && 8348 { ac_try='test -z "$ac_c_werror_flag" 8349 || test ! -s conftest.err' 8350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8351 (eval $ac_try) 2>&5 8352 ac_status=$? 8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8354 (exit $ac_status); }; } && 8355 { ac_try='test -s conftest.$ac_objext' 8356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8357 (eval $ac_try) 2>&5 8358 ac_status=$? 8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8360 (exit $ac_status); }; }; then 8361 ac_cv_type_size_t=yes 8362 else 8363 echo "$as_me: failed program was:" >&5 8364 sed 's/^/| /' conftest.$ac_ext >&5 8365 8366 ac_cv_type_size_t=no 8367 fi 8368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8369 fi 8370 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 8371 echo "${ECHO_T}$ac_cv_type_size_t" >&6 8372 if test $ac_cv_type_size_t = yes; then 8373 : 8374 else 8375 8376 cat >>confdefs.h <<_ACEOF 8377 #define size_t unsigned 8378 _ACEOF 8379 8380 fi 8381 8382 8383 echo "$as_me:$LINENO: checking for long long" >&5 8384 echo $ECHO_N "checking for long long... $ECHO_C" >&6 8385 if test "${ac_cv_type_long_long+set}" = set; then 8386 echo $ECHO_N "(cached) $ECHO_C" >&6 8387 else 8388 cat >conftest.$ac_ext <<_ACEOF 8389 /* confdefs.h. */ 8390 _ACEOF 8391 cat confdefs.h >>conftest.$ac_ext 8392 cat >>conftest.$ac_ext <<_ACEOF 8393 /* end confdefs.h. */ 8394 long long ll = 1LL; int i = 63; 8395 int 8396 main () 8397 { 8398 long long llmax = (long long) -1; 8399 return ll << i | ll >> i | llmax / ll | llmax % ll; 8400 ; 8401 return 0; 8402 } 8403 _ACEOF 8404 rm -f conftest.$ac_objext conftest$ac_exeext 8405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8406 (eval $ac_link) 2>conftest.er1 8407 ac_status=$? 8408 grep -v '^ *+' conftest.er1 >conftest.err 8409 rm -f conftest.er1 8410 cat conftest.err >&5 8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8412 (exit $ac_status); } && 8413 { ac_try='test -z "$ac_c_werror_flag" 8414 || test ! -s conftest.err' 8415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8416 (eval $ac_try) 2>&5 8417 ac_status=$? 8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8419 (exit $ac_status); }; } && 8420 { ac_try='test -s conftest$ac_exeext' 8421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8422 (eval $ac_try) 2>&5 8423 ac_status=$? 8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8425 (exit $ac_status); }; }; then 8426 ac_cv_type_long_long=yes 8427 else 8428 echo "$as_me: failed program was:" >&5 8429 sed 's/^/| /' conftest.$ac_ext >&5 8430 8431 ac_cv_type_long_long=no 8432 fi 8433 rm -f conftest.err conftest.$ac_objext \ 8434 conftest$ac_exeext conftest.$ac_ext 8435 fi 8436 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 8437 echo "${ECHO_T}$ac_cv_type_long_long" >&6 8438 if test $ac_cv_type_long_long = yes; then 8439 8440 cat >>confdefs.h <<\_ACEOF 8441 #define HAVE_LONG_LONG 1 8442 _ACEOF 8443 8444 fi 8445 8446 8447 echo "$as_me:$LINENO: checking for long double" >&5 8448 echo $ECHO_N "checking for long double... $ECHO_C" >&6 8449 if test "${gt_cv_c_long_double+set}" = set; then 8450 echo $ECHO_N "(cached) $ECHO_C" >&6 8451 else 8452 if test "$GCC" = yes; then 8453 gt_cv_c_long_double=yes 8454 else 8455 cat >conftest.$ac_ext <<_ACEOF 8456 /* confdefs.h. */ 8457 _ACEOF 8458 cat confdefs.h >>conftest.$ac_ext 8459 cat >>conftest.$ac_ext <<_ACEOF 8460 /* end confdefs.h. */ 8461 8462 /* The Stardent Vistra knows sizeof(long double), but does not support it. */ 8463 long double foo = 0.0; 8464 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ 8465 int array [2*(sizeof(long double) >= sizeof(double)) - 1]; 8466 8467 int 8468 main () 8469 { 8470 8471 ; 8472 return 0; 8473 } 8474 _ACEOF 8475 rm -f conftest.$ac_objext 8476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8477 (eval $ac_compile) 2>conftest.er1 8478 ac_status=$? 8479 grep -v '^ *+' conftest.er1 >conftest.err 8480 rm -f conftest.er1 8481 cat conftest.err >&5 8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8483 (exit $ac_status); } && 8484 { ac_try='test -z "$ac_c_werror_flag" 8485 || test ! -s conftest.err' 8486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8487 (eval $ac_try) 2>&5 8488 ac_status=$? 8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8490 (exit $ac_status); }; } && 8491 { ac_try='test -s conftest.$ac_objext' 8492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8493 (eval $ac_try) 2>&5 8494 ac_status=$? 8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8496 (exit $ac_status); }; }; then 8497 gt_cv_c_long_double=yes 8498 else 8499 echo "$as_me: failed program was:" >&5 8500 sed 's/^/| /' conftest.$ac_ext >&5 8501 8502 gt_cv_c_long_double=no 8503 fi 8504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8505 fi 8506 fi 8507 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5 8508 echo "${ECHO_T}$gt_cv_c_long_double" >&6 8509 if test $gt_cv_c_long_double = yes; then 8510 8511 cat >>confdefs.h <<\_ACEOF 8512 #define HAVE_LONG_DOUBLE 1 8513 _ACEOF 8514 8515 fi 8516 8517 8518 echo "$as_me:$LINENO: checking for wchar_t" >&5 8519 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 8520 if test "${gt_cv_c_wchar_t+set}" = set; then 8521 echo $ECHO_N "(cached) $ECHO_C" >&6 8522 else 8523 cat >conftest.$ac_ext <<_ACEOF 8524 /* confdefs.h. */ 8525 _ACEOF 8526 cat confdefs.h >>conftest.$ac_ext 8527 cat >>conftest.$ac_ext <<_ACEOF 8528 /* end confdefs.h. */ 8529 #include <stddef.h> 8530 wchar_t foo = (wchar_t)'\0'; 8531 int 8532 main () 8533 { 8534 8535 ; 8536 return 0; 8537 } 8538 _ACEOF 8539 rm -f conftest.$ac_objext 8540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8541 (eval $ac_compile) 2>conftest.er1 8542 ac_status=$? 8543 grep -v '^ *+' conftest.er1 >conftest.err 8544 rm -f conftest.er1 8545 cat conftest.err >&5 8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8547 (exit $ac_status); } && 8548 { ac_try='test -z "$ac_c_werror_flag" 8549 || test ! -s conftest.err' 8550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8551 (eval $ac_try) 2>&5 8552 ac_status=$? 8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8554 (exit $ac_status); }; } && 8555 { ac_try='test -s conftest.$ac_objext' 8556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8557 (eval $ac_try) 2>&5 8558 ac_status=$? 8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8560 (exit $ac_status); }; }; then 8561 gt_cv_c_wchar_t=yes 8562 else 8563 echo "$as_me: failed program was:" >&5 8564 sed 's/^/| /' conftest.$ac_ext >&5 8565 8566 gt_cv_c_wchar_t=no 8567 fi 8568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8569 fi 8570 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5 8571 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6 8572 if test $gt_cv_c_wchar_t = yes; then 8573 8574 cat >>confdefs.h <<\_ACEOF 8575 #define HAVE_WCHAR_T 1 8576 _ACEOF 8577 8578 fi 8579 8580 8581 echo "$as_me:$LINENO: checking for wint_t" >&5 8582 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6 8583 if test "${gt_cv_c_wint_t+set}" = set; then 8584 echo $ECHO_N "(cached) $ECHO_C" >&6 8585 else 8586 cat >conftest.$ac_ext <<_ACEOF 8587 /* confdefs.h. */ 8588 _ACEOF 8589 cat confdefs.h >>conftest.$ac_ext 8590 cat >>conftest.$ac_ext <<_ACEOF 8591 /* end confdefs.h. */ 8592 #include <wchar.h> 8593 wint_t foo = (wchar_t)'\0'; 8594 int 8595 main () 8596 { 8597 8598 ; 8599 return 0; 8600 } 8601 _ACEOF 8602 rm -f conftest.$ac_objext 8603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8604 (eval $ac_compile) 2>conftest.er1 8605 ac_status=$? 8606 grep -v '^ *+' conftest.er1 >conftest.err 8607 rm -f conftest.er1 8608 cat conftest.err >&5 8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8610 (exit $ac_status); } && 8611 { ac_try='test -z "$ac_c_werror_flag" 8612 || test ! -s conftest.err' 8613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8614 (eval $ac_try) 2>&5 8615 ac_status=$? 8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8617 (exit $ac_status); }; } && 8618 { ac_try='test -s conftest.$ac_objext' 8619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8620 (eval $ac_try) 2>&5 8621 ac_status=$? 8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8623 (exit $ac_status); }; }; then 8624 gt_cv_c_wint_t=yes 8625 else 8626 echo "$as_me: failed program was:" >&5 8627 sed 's/^/| /' conftest.$ac_ext >&5 8628 8629 gt_cv_c_wint_t=no 8630 fi 8631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8632 fi 8633 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5 8634 echo "${ECHO_T}$gt_cv_c_wint_t" >&6 8635 if test $gt_cv_c_wint_t = yes; then 8636 8637 cat >>confdefs.h <<\_ACEOF 8638 #define HAVE_WINT_T 1 8639 _ACEOF 8640 8641 fi 8642 8643 8644 8645 8646 echo "$as_me:$LINENO: checking for intmax_t" >&5 8647 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6 8648 if test "${gt_cv_c_intmax_t+set}" = set; then 8649 echo $ECHO_N "(cached) $ECHO_C" >&6 8650 else 8651 cat >conftest.$ac_ext <<_ACEOF 8652 /* confdefs.h. */ 8653 _ACEOF 8654 cat confdefs.h >>conftest.$ac_ext 8655 cat >>conftest.$ac_ext <<_ACEOF 8656 /* end confdefs.h. */ 8657 8658 #include <stddef.h> 8659 #include <stdlib.h> 8660 #if HAVE_STDINT_H_WITH_UINTMAX 8661 #include <stdint.h> 8662 #endif 8663 #if HAVE_INTTYPES_H_WITH_UINTMAX 8664 #include <inttypes.h> 8665 #endif 8666 8667 int 8668 main () 8669 { 8670 intmax_t x = -1; 8671 ; 8672 return 0; 8673 } 8674 _ACEOF 8675 rm -f conftest.$ac_objext 8676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8677 (eval $ac_compile) 2>conftest.er1 8678 ac_status=$? 8679 grep -v '^ *+' conftest.er1 >conftest.err 8680 rm -f conftest.er1 8681 cat conftest.err >&5 8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8683 (exit $ac_status); } && 8684 { ac_try='test -z "$ac_c_werror_flag" 8685 || test ! -s conftest.err' 8686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8687 (eval $ac_try) 2>&5 8688 ac_status=$? 8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8690 (exit $ac_status); }; } && 8691 { ac_try='test -s conftest.$ac_objext' 8692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8693 (eval $ac_try) 2>&5 8694 ac_status=$? 8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8696 (exit $ac_status); }; }; then 8697 gt_cv_c_intmax_t=yes 8698 else 8699 echo "$as_me: failed program was:" >&5 8700 sed 's/^/| /' conftest.$ac_ext >&5 8701 8702 gt_cv_c_intmax_t=no 8703 fi 8704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8705 fi 8706 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5 8707 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6 8708 if test $gt_cv_c_intmax_t = yes; then 8709 8710 cat >>confdefs.h <<\_ACEOF 8711 #define HAVE_INTMAX_T 1 8712 _ACEOF 8713 8714 fi 8715 8716 8717 8718 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5 8719 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6 8720 if test "${gt_cv_func_printf_posix+set}" = set; then 8721 echo $ECHO_N "(cached) $ECHO_C" >&6 8722 else 8723 8724 if test "$cross_compiling" = yes; then 8725 8726 cat >conftest.$ac_ext <<_ACEOF 8727 /* confdefs.h. */ 8728 _ACEOF 8729 cat confdefs.h >>conftest.$ac_ext 8730 cat >>conftest.$ac_ext <<_ACEOF 8731 /* end confdefs.h. */ 8732 8733 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ 8734 notposix 8735 #endif 8736 8737 _ACEOF 8738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8739 $EGREP "notposix" >/dev/null 2>&1; then 8740 gt_cv_func_printf_posix="guessing no" 8741 else 8742 gt_cv_func_printf_posix="guessing yes" 8743 fi 8744 rm -f conftest* 8745 8746 8747 else 8748 cat >conftest.$ac_ext <<_ACEOF 8749 /* confdefs.h. */ 8750 _ACEOF 8751 cat confdefs.h >>conftest.$ac_ext 8752 cat >>conftest.$ac_ext <<_ACEOF 8753 /* end confdefs.h. */ 8754 8755 #include <stdio.h> 8756 #include <string.h> 8757 /* The string "%2$d %1$d", with dollar characters protected from the shell's 8758 dollar expansion (possibly an autoconf bug). */ 8759 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; 8760 static char buf[100]; 8761 int main () 8762 { 8763 sprintf (buf, format, 33, 55); 8764 return (strcmp (buf, "55 33") != 0); 8765 } 8766 _ACEOF 8767 rm -f conftest$ac_exeext 8768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8769 (eval $ac_link) 2>&5 8770 ac_status=$? 8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8774 (eval $ac_try) 2>&5 8775 ac_status=$? 8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8777 (exit $ac_status); }; }; then 8778 gt_cv_func_printf_posix=yes 8779 else 8780 echo "$as_me: program exited with status $ac_status" >&5 8781 echo "$as_me: failed program was:" >&5 8782 sed 's/^/| /' conftest.$ac_ext >&5 8783 8784 ( exit $ac_status ) 8785 gt_cv_func_printf_posix=no 8786 fi 8787 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8788 fi 8789 8790 fi 8791 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5 8792 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6 8793 case $gt_cv_func_printf_posix in 8794 *yes) 8795 8796 cat >>confdefs.h <<\_ACEOF 8797 #define HAVE_POSIX_PRINTF 1 8798 _ACEOF 8799 8800 ;; 8801 esac 8802 8803 8804 8805 for ac_header in stdlib.h unistd.h 8806 do 8807 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8808 if eval "test \"\${$as_ac_Header+set}\" = set"; then 8809 echo "$as_me:$LINENO: checking for $ac_header" >&5 8810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8811 if eval "test \"\${$as_ac_Header+set}\" = set"; then 8812 echo $ECHO_N "(cached) $ECHO_C" >&6 8813 fi 8814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8815 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8816 else 8817 # Is the header compilable? 8818 echo "$as_me:$LINENO: checking $ac_header usability" >&5 8819 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 8820 cat >conftest.$ac_ext <<_ACEOF 8821 /* confdefs.h. */ 8822 _ACEOF 8823 cat confdefs.h >>conftest.$ac_ext 8824 cat >>conftest.$ac_ext <<_ACEOF 8825 /* end confdefs.h. */ 8826 $ac_includes_default 8827 #include <$ac_header> 8828 _ACEOF 8829 rm -f conftest.$ac_objext 8830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8831 (eval $ac_compile) 2>conftest.er1 8832 ac_status=$? 8833 grep -v '^ *+' conftest.er1 >conftest.err 8834 rm -f conftest.er1 8835 cat conftest.err >&5 8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8837 (exit $ac_status); } && 8838 { ac_try='test -z "$ac_c_werror_flag" 8839 || test ! -s conftest.err' 8840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8841 (eval $ac_try) 2>&5 8842 ac_status=$? 8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8844 (exit $ac_status); }; } && 8845 { ac_try='test -s conftest.$ac_objext' 8846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8847 (eval $ac_try) 2>&5 8848 ac_status=$? 8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8850 (exit $ac_status); }; }; then 8851 ac_header_compiler=yes 8852 else 8853 echo "$as_me: failed program was:" >&5 8854 sed 's/^/| /' conftest.$ac_ext >&5 8855 8856 ac_header_compiler=no 8857 fi 8858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8859 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8860 echo "${ECHO_T}$ac_header_compiler" >&6 8861 8862 # Is the header present? 8863 echo "$as_me:$LINENO: checking $ac_header presence" >&5 8864 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 8865 cat >conftest.$ac_ext <<_ACEOF 8866 /* confdefs.h. */ 8867 _ACEOF 8868 cat confdefs.h >>conftest.$ac_ext 8869 cat >>conftest.$ac_ext <<_ACEOF 8870 /* end confdefs.h. */ 8871 #include <$ac_header> 8872 _ACEOF 8873 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8874 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8875 ac_status=$? 8876 grep -v '^ *+' conftest.er1 >conftest.err 8877 rm -f conftest.er1 8878 cat conftest.err >&5 8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8880 (exit $ac_status); } >/dev/null; then 8881 if test -s conftest.err; then 8882 ac_cpp_err=$ac_c_preproc_warn_flag 8883 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 8884 else 8885 ac_cpp_err= 8886 fi 8887 else 8888 ac_cpp_err=yes 8889 fi 8890 if test -z "$ac_cpp_err"; then 8891 ac_header_preproc=yes 8892 else 8893 echo "$as_me: failed program was:" >&5 8894 sed 's/^/| /' conftest.$ac_ext >&5 8895 8896 ac_header_preproc=no 8897 fi 8898 rm -f conftest.err conftest.$ac_ext 8899 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8900 echo "${ECHO_T}$ac_header_preproc" >&6 8901 8902 # So? What about this header? 8903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8904 yes:no: ) 8905 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8906 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8908 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8909 ac_header_preproc=yes 8910 ;; 8911 no:yes:* ) 8912 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8914 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8915 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8916 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8917 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8918 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8919 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8922 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8923 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8924 ( 8925 cat <<\_ASBOX 8926 ## -------------------------------------- ## 8927 ## Report this to the GNU Texinfo lists. ## 8928 ## -------------------------------------- ## 8929 _ASBOX 8930 ) | 8931 sed "s/^/$as_me: WARNING: /" >&2 8932 ;; 8933 esac 8934 echo "$as_me:$LINENO: checking for $ac_header" >&5 8935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8936 if eval "test \"\${$as_ac_Header+set}\" = set"; then 8937 echo $ECHO_N "(cached) $ECHO_C" >&6 8938 else 8939 eval "$as_ac_Header=\$ac_header_preproc" 8940 fi 8941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8942 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8943 8944 fi 8945 if test `eval echo '${'$as_ac_Header'}'` = yes; then 8946 cat >>confdefs.h <<_ACEOF 8947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8948 _ACEOF 8949 8950 fi 8951 8952 done 8953 8954 8955 for ac_func in getpagesize 8956 do 8957 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8958 echo "$as_me:$LINENO: checking for $ac_func" >&5 8959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8960 if eval "test \"\${$as_ac_var+set}\" = set"; then 8961 echo $ECHO_N "(cached) $ECHO_C" >&6 8962 else 8963 cat >conftest.$ac_ext <<_ACEOF 8964 /* confdefs.h. */ 8965 _ACEOF 8966 cat confdefs.h >>conftest.$ac_ext 8967 cat >>conftest.$ac_ext <<_ACEOF 8968 /* end confdefs.h. */ 8969 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8970 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8971 #define $ac_func innocuous_$ac_func 8972 8973 /* System header to define __stub macros and hopefully few prototypes, 8974 which can conflict with char $ac_func (); below. 8975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8976 <limits.h> exists even on freestanding compilers. */ 8977 8978 #ifdef __STDC__ 8979 # include <limits.h> 8980 #else 8981 # include <assert.h> 8982 #endif 8983 8984 #undef $ac_func 8985 8986 /* Override any gcc2 internal prototype to avoid an error. */ 8987 #ifdef __cplusplus 8988 extern "C" 8989 { 8990 #endif 8991 /* We use char because int might match the return type of a gcc2 8992 builtin and then its argument prototype would still apply. */ 8993 char $ac_func (); 8994 /* The GNU C library defines this for functions which it implements 8995 to always fail with ENOSYS. Some functions are actually named 8996 something starting with __ and the normal name is an alias. */ 8997 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8998 choke me 8999 #else 9000 char (*f) () = $ac_func; 9001 #endif 9002 #ifdef __cplusplus 9003 } 9004 #endif 9005 9006 int 9007 main () 9008 { 9009 return f != $ac_func; 9010 ; 9011 return 0; 9012 } 9013 _ACEOF 9014 rm -f conftest.$ac_objext conftest$ac_exeext 9015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9016 (eval $ac_link) 2>conftest.er1 9017 ac_status=$? 9018 grep -v '^ *+' conftest.er1 >conftest.err 9019 rm -f conftest.er1 9020 cat conftest.err >&5 9021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9022 (exit $ac_status); } && 9023 { ac_try='test -z "$ac_c_werror_flag" 9024 || test ! -s conftest.err' 9025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9026 (eval $ac_try) 2>&5 9027 ac_status=$? 9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9029 (exit $ac_status); }; } && 9030 { ac_try='test -s conftest$ac_exeext' 9031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9032 (eval $ac_try) 2>&5 9033 ac_status=$? 9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9035 (exit $ac_status); }; }; then 9036 eval "$as_ac_var=yes" 9037 else 9038 echo "$as_me: failed program was:" >&5 9039 sed 's/^/| /' conftest.$ac_ext >&5 9040 9041 eval "$as_ac_var=no" 9042 fi 9043 rm -f conftest.err conftest.$ac_objext \ 9044 conftest$ac_exeext conftest.$ac_ext 9045 fi 9046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9047 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9048 if test `eval echo '${'$as_ac_var'}'` = yes; then 9049 cat >>confdefs.h <<_ACEOF 9050 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9051 _ACEOF 9052 9053 fi 9054 done 9055 9056 echo "$as_me:$LINENO: checking for working mmap" >&5 9057 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 9058 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 9059 echo $ECHO_N "(cached) $ECHO_C" >&6 9060 else 9061 if test "$cross_compiling" = yes; then 9062 ac_cv_func_mmap_fixed_mapped=no 9063 else 9064 cat >conftest.$ac_ext <<_ACEOF 9065 /* confdefs.h. */ 9066 _ACEOF 9067 cat confdefs.h >>conftest.$ac_ext 9068 cat >>conftest.$ac_ext <<_ACEOF 9069 /* end confdefs.h. */ 9070 $ac_includes_default 9071 /* malloc might have been renamed as rpl_malloc. */ 9072 #undef malloc 9073 9074 /* Thanks to Mike Haertel and Jim Avera for this test. 9075 Here is a matrix of mmap possibilities: 9076 mmap private not fixed 9077 mmap private fixed at somewhere currently unmapped 9078 mmap private fixed at somewhere already mapped 9079 mmap shared not fixed 9080 mmap shared fixed at somewhere currently unmapped 9081 mmap shared fixed at somewhere already mapped 9082 For private mappings, we should verify that changes cannot be read() 9083 back from the file, nor mmap's back from the file at a different 9084 address. (There have been systems where private was not correctly 9085 implemented like the infamous i386 svr4.0, and systems where the 9086 VM page cache was not coherent with the file system buffer cache 9087 like early versions of FreeBSD and possibly contemporary NetBSD.) 9088 For shared mappings, we should conversely verify that changes get 9089 propagated back to all the places they're supposed to be. 9090 9091 Grep wants private fixed already mapped. 9092 The main things grep needs to know about mmap are: 9093 * does it exist and is it safe to write into the mmap'd area 9094 * how to use it (BSD variants) */ 9095 9096 #include <fcntl.h> 9097 #include <sys/mman.h> 9098 9099 #if !STDC_HEADERS && !HAVE_STDLIB_H 9100 char *malloc (); 9101 #endif 9102 9103 /* This mess was copied from the GNU getpagesize.h. */ 9104 #if !HAVE_GETPAGESIZE 9105 /* Assume that all systems that can run configure have sys/param.h. */ 9106 # if !HAVE_SYS_PARAM_H 9107 # define HAVE_SYS_PARAM_H 1 9108 # endif 9109 9110 # ifdef _SC_PAGESIZE 9111 # define getpagesize() sysconf(_SC_PAGESIZE) 9112 # else /* no _SC_PAGESIZE */ 9113 # if HAVE_SYS_PARAM_H 9114 # include <sys/param.h> 9115 # ifdef EXEC_PAGESIZE 9116 # define getpagesize() EXEC_PAGESIZE 9117 # else /* no EXEC_PAGESIZE */ 9118 # ifdef NBPG 9119 # define getpagesize() NBPG * CLSIZE 9120 # ifndef CLSIZE 9121 # define CLSIZE 1 9122 # endif /* no CLSIZE */ 9123 # else /* no NBPG */ 9124 # ifdef NBPC 9125 # define getpagesize() NBPC 9126 # else /* no NBPC */ 9127 # ifdef PAGESIZE 9128 # define getpagesize() PAGESIZE 9129 # endif /* PAGESIZE */ 9130 # endif /* no NBPC */ 9131 # endif /* no NBPG */ 9132 # endif /* no EXEC_PAGESIZE */ 9133 # else /* no HAVE_SYS_PARAM_H */ 9134 # define getpagesize() 8192 /* punt totally */ 9135 # endif /* no HAVE_SYS_PARAM_H */ 9136 # endif /* no _SC_PAGESIZE */ 9137 9138 #endif /* no HAVE_GETPAGESIZE */ 9139 9140 int 9141 main () 9142 { 9143 char *data, *data2, *data3; 9144 int i, pagesize; 9145 int fd; 9146 9147 pagesize = getpagesize (); 9148 9149 /* First, make a file with some known garbage in it. */ 9150 data = (char *) malloc (pagesize); 9151 if (!data) 9152 exit (1); 9153 for (i = 0; i < pagesize; ++i) 9154 *(data + i) = rand (); 9155 umask (0); 9156 fd = creat ("conftest.mmap", 0600); 9157 if (fd < 0) 9158 exit (1); 9159 if (write (fd, data, pagesize) != pagesize) 9160 exit (1); 9161 close (fd); 9162 9163 /* Next, try to mmap the file at a fixed address which already has 9164 something else allocated at it. If we can, also make sure that 9165 we see the same garbage. */ 9166 fd = open ("conftest.mmap", O_RDWR); 9167 if (fd < 0) 9168 exit (1); 9169 data2 = (char *) malloc (2 * pagesize); 9170 if (!data2) 9171 exit (1); 9172 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); 9173 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 9174 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 9175 exit (1); 9176 for (i = 0; i < pagesize; ++i) 9177 if (*(data + i) != *(data2 + i)) 9178 exit (1); 9179 9180 /* Finally, make sure that changes to the mapped area do not 9181 percolate back to the file as seen by read(). (This is a bug on 9182 some variants of i386 svr4.0.) */ 9183 for (i = 0; i < pagesize; ++i) 9184 *(data2 + i) = *(data2 + i) + 1; 9185 data3 = (char *) malloc (pagesize); 9186 if (!data3) 9187 exit (1); 9188 if (read (fd, data3, pagesize) != pagesize) 9189 exit (1); 9190 for (i = 0; i < pagesize; ++i) 9191 if (*(data + i) != *(data3 + i)) 9192 exit (1); 9193 close (fd); 9194 exit (0); 9195 } 9196 _ACEOF 9197 rm -f conftest$ac_exeext 9198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9199 (eval $ac_link) 2>&5 9200 ac_status=$? 9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9202 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9204 (eval $ac_try) 2>&5 9205 ac_status=$? 9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9207 (exit $ac_status); }; }; then 9208 ac_cv_func_mmap_fixed_mapped=yes 9209 else 9210 echo "$as_me: program exited with status $ac_status" >&5 9211 echo "$as_me: failed program was:" >&5 9212 sed 's/^/| /' conftest.$ac_ext >&5 9213 9214 ( exit $ac_status ) 9215 ac_cv_func_mmap_fixed_mapped=no 9216 fi 9217 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9218 fi 9219 fi 9220 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 9221 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 9222 if test $ac_cv_func_mmap_fixed_mapped = yes; then 9223 9224 cat >>confdefs.h <<\_ACEOF 9225 #define HAVE_MMAP 1 9226 _ACEOF 9227 9228 fi 9229 rm -f conftest.mmap 9230 9231 9232 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 9233 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6 9234 if test "${ac_cv_gnu_library_2_1+set}" = set; then 9235 echo $ECHO_N "(cached) $ECHO_C" >&6 9236 else 9237 cat >conftest.$ac_ext <<_ACEOF 9238 /* confdefs.h. */ 9239 _ACEOF 9240 cat confdefs.h >>conftest.$ac_ext 9241 cat >>conftest.$ac_ext <<_ACEOF 9242 /* end confdefs.h. */ 9243 9244 #include <features.h> 9245 #ifdef __GNU_LIBRARY__ 9246 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) 9247 Lucky GNU user 9248 #endif 9249 #endif 9250 9251 _ACEOF 9252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9253 $EGREP "Lucky GNU user" >/dev/null 2>&1; then 9254 ac_cv_gnu_library_2_1=yes 9255 else 9256 ac_cv_gnu_library_2_1=no 9257 fi 9258 rm -f conftest* 9259 9260 9261 9262 fi 9263 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 9264 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6 9265 9266 GLIBC21="$ac_cv_gnu_library_2_1" 9267 9268 9269 9270 9271 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5 9272 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6 9273 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then 9274 echo $ECHO_N "(cached) $ECHO_C" >&6 9275 else 9276 9277 if test "$cross_compiling" = yes; then 9278 9279 # Guess based on the CPU. 9280 case "$host_cpu" in 9281 alpha* | i3456786 | m68k | s390*) 9282 gt_cv_int_divbyzero_sigfpe="guessing yes";; 9283 *) 9284 gt_cv_int_divbyzero_sigfpe="guessing no";; 9285 esac 9286 9287 else 9288 cat >conftest.$ac_ext <<_ACEOF 9289 /* confdefs.h. */ 9290 _ACEOF 9291 cat confdefs.h >>conftest.$ac_ext 9292 cat >>conftest.$ac_ext <<_ACEOF 9293 /* end confdefs.h. */ 9294 9295 #include <stdlib.h> 9296 #include <signal.h> 9297 9298 static void 9299 #ifdef __cplusplus 9300 sigfpe_handler (int sig) 9301 #else 9302 sigfpe_handler (sig) int sig; 9303 #endif 9304 { 9305 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ 9306 exit (sig != SIGFPE); 9307 } 9308 9309 int x = 1; 9310 int y = 0; 9311 int z; 9312 int nan; 9313 9314 int main () 9315 { 9316 signal (SIGFPE, sigfpe_handler); 9317 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ 9318 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) 9319 signal (SIGTRAP, sigfpe_handler); 9320 #endif 9321 /* Linux/SPARC yields signal SIGILL. */ 9322 #if defined (__sparc__) && defined (__linux__) 9323 signal (SIGILL, sigfpe_handler); 9324 #endif 9325 9326 z = x / y; 9327 nan = y / y; 9328 exit (1); 9329 } 9330 9331 _ACEOF 9332 rm -f conftest$ac_exeext 9333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9334 (eval $ac_link) 2>&5 9335 ac_status=$? 9336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9337 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9339 (eval $ac_try) 2>&5 9340 ac_status=$? 9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9342 (exit $ac_status); }; }; then 9343 gt_cv_int_divbyzero_sigfpe=yes 9344 else 9345 echo "$as_me: program exited with status $ac_status" >&5 9346 echo "$as_me: failed program was:" >&5 9347 sed 's/^/| /' conftest.$ac_ext >&5 9348 9349 ( exit $ac_status ) 9350 gt_cv_int_divbyzero_sigfpe=no 9351 fi 9352 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9353 fi 9354 9355 fi 9356 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5 9357 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6 9358 case "$gt_cv_int_divbyzero_sigfpe" in 9359 *yes) value=1;; 9360 *) value=0;; 9361 esac 9362 9363 cat >>confdefs.h <<_ACEOF 9364 #define INTDIV0_RAISES_SIGFPE $value 9365 _ACEOF 9366 9367 9368 9369 echo "$as_me:$LINENO: checking for inttypes.h" >&5 9370 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 9371 if test "${gt_cv_header_inttypes_h+set}" = set; then 9372 echo $ECHO_N "(cached) $ECHO_C" >&6 9373 else 9374 9375 cat >conftest.$ac_ext <<_ACEOF 9376 /* confdefs.h. */ 9377 _ACEOF 9378 cat confdefs.h >>conftest.$ac_ext 9379 cat >>conftest.$ac_ext <<_ACEOF 9380 /* end confdefs.h. */ 9381 #include <sys/types.h> 9382 #include <inttypes.h> 9383 int 9384 main () 9385 { 9386 9387 ; 9388 return 0; 9389 } 9390 _ACEOF 9391 rm -f conftest.$ac_objext 9392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9393 (eval $ac_compile) 2>conftest.er1 9394 ac_status=$? 9395 grep -v '^ *+' conftest.er1 >conftest.err 9396 rm -f conftest.er1 9397 cat conftest.err >&5 9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9399 (exit $ac_status); } && 9400 { ac_try='test -z "$ac_c_werror_flag" 9401 || test ! -s conftest.err' 9402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9403 (eval $ac_try) 2>&5 9404 ac_status=$? 9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9406 (exit $ac_status); }; } && 9407 { ac_try='test -s conftest.$ac_objext' 9408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9409 (eval $ac_try) 2>&5 9410 ac_status=$? 9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9412 (exit $ac_status); }; }; then 9413 gt_cv_header_inttypes_h=yes 9414 else 9415 echo "$as_me: failed program was:" >&5 9416 sed 's/^/| /' conftest.$ac_ext >&5 9417 9418 gt_cv_header_inttypes_h=no 9419 fi 9420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9421 9422 fi 9423 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5 9424 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6 9425 if test $gt_cv_header_inttypes_h = yes; then 9426 9427 cat >>confdefs.h <<_ACEOF 9428 #define HAVE_INTTYPES_H 1 9429 _ACEOF 9430 9431 fi 9432 9433 9434 9435 if test $gt_cv_header_inttypes_h = yes; then 9436 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5 9437 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6 9438 if test "${gt_cv_inttypes_pri_broken+set}" = set; then 9439 echo $ECHO_N "(cached) $ECHO_C" >&6 9440 else 9441 9442 cat >conftest.$ac_ext <<_ACEOF 9443 /* confdefs.h. */ 9444 _ACEOF 9445 cat confdefs.h >>conftest.$ac_ext 9446 cat >>conftest.$ac_ext <<_ACEOF 9447 /* end confdefs.h. */ 9448 #include <inttypes.h> 9449 #ifdef PRId32 9450 char *p = PRId32; 9451 #endif 9452 9453 int 9454 main () 9455 { 9456 9457 ; 9458 return 0; 9459 } 9460 _ACEOF 9461 rm -f conftest.$ac_objext 9462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9463 (eval $ac_compile) 2>conftest.er1 9464 ac_status=$? 9465 grep -v '^ *+' conftest.er1 >conftest.err 9466 rm -f conftest.er1 9467 cat conftest.err >&5 9468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9469 (exit $ac_status); } && 9470 { ac_try='test -z "$ac_c_werror_flag" 9471 || test ! -s conftest.err' 9472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9473 (eval $ac_try) 2>&5 9474 ac_status=$? 9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9476 (exit $ac_status); }; } && 9477 { ac_try='test -s conftest.$ac_objext' 9478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9479 (eval $ac_try) 2>&5 9480 ac_status=$? 9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9482 (exit $ac_status); }; }; then 9483 gt_cv_inttypes_pri_broken=no 9484 else 9485 echo "$as_me: failed program was:" >&5 9486 sed 's/^/| /' conftest.$ac_ext >&5 9487 9488 gt_cv_inttypes_pri_broken=yes 9489 fi 9490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9491 9492 fi 9493 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5 9494 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6 9495 fi 9496 if test "$gt_cv_inttypes_pri_broken" = yes; then 9497 9498 cat >>confdefs.h <<_ACEOF 9499 #define PRI_MACROS_BROKEN 1 9500 _ACEOF 9501 9502 fi 9503 9504 9505 9506 for ac_header in stdint.h 9507 do 9508 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 9509 if eval "test \"\${$as_ac_Header+set}\" = set"; then 9510 echo "$as_me:$LINENO: checking for $ac_header" >&5 9511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9512 if eval "test \"\${$as_ac_Header+set}\" = set"; then 9513 echo $ECHO_N "(cached) $ECHO_C" >&6 9514 fi 9515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9516 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9517 else 9518 # Is the header compilable? 9519 echo "$as_me:$LINENO: checking $ac_header usability" >&5 9520 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 9521 cat >conftest.$ac_ext <<_ACEOF 9522 /* confdefs.h. */ 9523 _ACEOF 9524 cat confdefs.h >>conftest.$ac_ext 9525 cat >>conftest.$ac_ext <<_ACEOF 9526 /* end confdefs.h. */ 9527 $ac_includes_default 9528 #include <$ac_header> 9529 _ACEOF 9530 rm -f conftest.$ac_objext 9531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9532 (eval $ac_compile) 2>conftest.er1 9533 ac_status=$? 9534 grep -v '^ *+' conftest.er1 >conftest.err 9535 rm -f conftest.er1 9536 cat conftest.err >&5 9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9538 (exit $ac_status); } && 9539 { ac_try='test -z "$ac_c_werror_flag" 9540 || test ! -s conftest.err' 9541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9542 (eval $ac_try) 2>&5 9543 ac_status=$? 9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9545 (exit $ac_status); }; } && 9546 { ac_try='test -s conftest.$ac_objext' 9547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9548 (eval $ac_try) 2>&5 9549 ac_status=$? 9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9551 (exit $ac_status); }; }; then 9552 ac_header_compiler=yes 9553 else 9554 echo "$as_me: failed program was:" >&5 9555 sed 's/^/| /' conftest.$ac_ext >&5 9556 9557 ac_header_compiler=no 9558 fi 9559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9560 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9561 echo "${ECHO_T}$ac_header_compiler" >&6 9562 9563 # Is the header present? 9564 echo "$as_me:$LINENO: checking $ac_header presence" >&5 9565 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 9566 cat >conftest.$ac_ext <<_ACEOF 9567 /* confdefs.h. */ 9568 _ACEOF 9569 cat confdefs.h >>conftest.$ac_ext 9570 cat >>conftest.$ac_ext <<_ACEOF 9571 /* end confdefs.h. */ 9572 #include <$ac_header> 9573 _ACEOF 9574 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9575 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9576 ac_status=$? 9577 grep -v '^ *+' conftest.er1 >conftest.err 9578 rm -f conftest.er1 9579 cat conftest.err >&5 9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9581 (exit $ac_status); } >/dev/null; then 9582 if test -s conftest.err; then 9583 ac_cpp_err=$ac_c_preproc_warn_flag 9584 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 9585 else 9586 ac_cpp_err= 9587 fi 9588 else 9589 ac_cpp_err=yes 9590 fi 9591 if test -z "$ac_cpp_err"; then 9592 ac_header_preproc=yes 9593 else 9594 echo "$as_me: failed program was:" >&5 9595 sed 's/^/| /' conftest.$ac_ext >&5 9596 9597 ac_header_preproc=no 9598 fi 9599 rm -f conftest.err conftest.$ac_ext 9600 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9601 echo "${ECHO_T}$ac_header_preproc" >&6 9602 9603 # So? What about this header? 9604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 9605 yes:no: ) 9606 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 9607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 9608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 9609 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 9610 ac_header_preproc=yes 9611 ;; 9612 no:yes:* ) 9613 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 9614 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 9615 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 9616 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 9617 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 9618 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 9619 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 9620 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 9621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 9623 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 9624 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 9625 ( 9626 cat <<\_ASBOX 9627 ## -------------------------------------- ## 9628 ## Report this to the GNU Texinfo lists. ## 9629 ## -------------------------------------- ## 9630 _ASBOX 9631 ) | 9632 sed "s/^/$as_me: WARNING: /" >&2 9633 ;; 9634 esac 9635 echo "$as_me:$LINENO: checking for $ac_header" >&5 9636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9637 if eval "test \"\${$as_ac_Header+set}\" = set"; then 9638 echo $ECHO_N "(cached) $ECHO_C" >&6 9639 else 9640 eval "$as_ac_Header=\$ac_header_preproc" 9641 fi 9642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9644 9645 fi 9646 if test `eval echo '${'$as_ac_Header'}'` = yes; then 9647 cat >>confdefs.h <<_ACEOF 9648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 9649 _ACEOF 9650 9651 fi 9652 9653 done 9654 9655 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 9656 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6 9657 result= 9658 cat >conftest.$ac_ext <<_ACEOF 9659 /* confdefs.h. */ 9660 _ACEOF 9661 cat confdefs.h >>conftest.$ac_ext 9662 cat >>conftest.$ac_ext <<_ACEOF 9663 /* end confdefs.h. */ 9664 9665 #include <limits.h> 9666 #if HAVE_STDINT_H 9667 #include <stdint.h> 9668 #endif 9669 #ifdef SIZE_MAX 9670 Found it 9671 #endif 9672 9673 _ACEOF 9674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9675 $EGREP "Found it" >/dev/null 2>&1; then 9676 result=yes 9677 fi 9678 rm -f conftest* 9679 9680 if test -z "$result"; then 9681 if test "$cross_compiling" = yes; then 9682 # Depending upon the size, compute the lo and hi bounds. 9683 cat >conftest.$ac_ext <<_ACEOF 9684 /* confdefs.h. */ 9685 _ACEOF 9686 cat confdefs.h >>conftest.$ac_ext 9687 cat >>conftest.$ac_ext <<_ACEOF 9688 /* end confdefs.h. */ 9689 #include <stddef.h> 9690 int 9691 main () 9692 { 9693 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)]; 9694 test_array [0] = 0 9695 9696 ; 9697 return 0; 9698 } 9699 _ACEOF 9700 rm -f conftest.$ac_objext 9701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9702 (eval $ac_compile) 2>conftest.er1 9703 ac_status=$? 9704 grep -v '^ *+' conftest.er1 >conftest.err 9705 rm -f conftest.er1 9706 cat conftest.err >&5 9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9708 (exit $ac_status); } && 9709 { ac_try='test -z "$ac_c_werror_flag" 9710 || test ! -s conftest.err' 9711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9712 (eval $ac_try) 2>&5 9713 ac_status=$? 9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9715 (exit $ac_status); }; } && 9716 { ac_try='test -s conftest.$ac_objext' 9717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9718 (eval $ac_try) 2>&5 9719 ac_status=$? 9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9721 (exit $ac_status); }; }; then 9722 ac_lo=0 ac_mid=0 9723 while :; do 9724 cat >conftest.$ac_ext <<_ACEOF 9725 /* confdefs.h. */ 9726 _ACEOF 9727 cat confdefs.h >>conftest.$ac_ext 9728 cat >>conftest.$ac_ext <<_ACEOF 9729 /* end confdefs.h. */ 9730 #include <stddef.h> 9731 int 9732 main () 9733 { 9734 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; 9735 test_array [0] = 0 9736 9737 ; 9738 return 0; 9739 } 9740 _ACEOF 9741 rm -f conftest.$ac_objext 9742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9743 (eval $ac_compile) 2>conftest.er1 9744 ac_status=$? 9745 grep -v '^ *+' conftest.er1 >conftest.err 9746 rm -f conftest.er1 9747 cat conftest.err >&5 9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9749 (exit $ac_status); } && 9750 { ac_try='test -z "$ac_c_werror_flag" 9751 || test ! -s conftest.err' 9752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9753 (eval $ac_try) 2>&5 9754 ac_status=$? 9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9756 (exit $ac_status); }; } && 9757 { ac_try='test -s conftest.$ac_objext' 9758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9759 (eval $ac_try) 2>&5 9760 ac_status=$? 9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9762 (exit $ac_status); }; }; then 9763 ac_hi=$ac_mid; break 9764 else 9765 echo "$as_me: failed program was:" >&5 9766 sed 's/^/| /' conftest.$ac_ext >&5 9767 9768 ac_lo=`expr $ac_mid + 1` 9769 if test $ac_lo -le $ac_mid; then 9770 ac_lo= ac_hi= 9771 break 9772 fi 9773 ac_mid=`expr 2 '*' $ac_mid + 1` 9774 fi 9775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9776 done 9777 else 9778 echo "$as_me: failed program was:" >&5 9779 sed 's/^/| /' conftest.$ac_ext >&5 9780 9781 cat >conftest.$ac_ext <<_ACEOF 9782 /* confdefs.h. */ 9783 _ACEOF 9784 cat confdefs.h >>conftest.$ac_ext 9785 cat >>conftest.$ac_ext <<_ACEOF 9786 /* end confdefs.h. */ 9787 #include <stddef.h> 9788 int 9789 main () 9790 { 9791 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)]; 9792 test_array [0] = 0 9793 9794 ; 9795 return 0; 9796 } 9797 _ACEOF 9798 rm -f conftest.$ac_objext 9799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9800 (eval $ac_compile) 2>conftest.er1 9801 ac_status=$? 9802 grep -v '^ *+' conftest.er1 >conftest.err 9803 rm -f conftest.er1 9804 cat conftest.err >&5 9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9806 (exit $ac_status); } && 9807 { ac_try='test -z "$ac_c_werror_flag" 9808 || test ! -s conftest.err' 9809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9810 (eval $ac_try) 2>&5 9811 ac_status=$? 9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9813 (exit $ac_status); }; } && 9814 { ac_try='test -s conftest.$ac_objext' 9815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9816 (eval $ac_try) 2>&5 9817 ac_status=$? 9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9819 (exit $ac_status); }; }; then 9820 ac_hi=-1 ac_mid=-1 9821 while :; do 9822 cat >conftest.$ac_ext <<_ACEOF 9823 /* confdefs.h. */ 9824 _ACEOF 9825 cat confdefs.h >>conftest.$ac_ext 9826 cat >>conftest.$ac_ext <<_ACEOF 9827 /* end confdefs.h. */ 9828 #include <stddef.h> 9829 int 9830 main () 9831 { 9832 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)]; 9833 test_array [0] = 0 9834 9835 ; 9836 return 0; 9837 } 9838 _ACEOF 9839 rm -f conftest.$ac_objext 9840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9841 (eval $ac_compile) 2>conftest.er1 9842 ac_status=$? 9843 grep -v '^ *+' conftest.er1 >conftest.err 9844 rm -f conftest.er1 9845 cat conftest.err >&5 9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9847 (exit $ac_status); } && 9848 { ac_try='test -z "$ac_c_werror_flag" 9849 || test ! -s conftest.err' 9850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9851 (eval $ac_try) 2>&5 9852 ac_status=$? 9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9854 (exit $ac_status); }; } && 9855 { ac_try='test -s conftest.$ac_objext' 9856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9857 (eval $ac_try) 2>&5 9858 ac_status=$? 9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9860 (exit $ac_status); }; }; then 9861 ac_lo=$ac_mid; break 9862 else 9863 echo "$as_me: failed program was:" >&5 9864 sed 's/^/| /' conftest.$ac_ext >&5 9865 9866 ac_hi=`expr '(' $ac_mid ')' - 1` 9867 if test $ac_mid -le $ac_hi; then 9868 ac_lo= ac_hi= 9869 break 9870 fi 9871 ac_mid=`expr 2 '*' $ac_mid` 9872 fi 9873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9874 done 9875 else 9876 echo "$as_me: failed program was:" >&5 9877 sed 's/^/| /' conftest.$ac_ext >&5 9878 9879 ac_lo= ac_hi= 9880 fi 9881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9882 fi 9883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9884 # Binary search between lo and hi bounds. 9885 while test "x$ac_lo" != "x$ac_hi"; do 9886 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 9887 cat >conftest.$ac_ext <<_ACEOF 9888 /* confdefs.h. */ 9889 _ACEOF 9890 cat confdefs.h >>conftest.$ac_ext 9891 cat >>conftest.$ac_ext <<_ACEOF 9892 /* end confdefs.h. */ 9893 #include <stddef.h> 9894 int 9895 main () 9896 { 9897 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; 9898 test_array [0] = 0 9899 9900 ; 9901 return 0; 9902 } 9903 _ACEOF 9904 rm -f conftest.$ac_objext 9905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9906 (eval $ac_compile) 2>conftest.er1 9907 ac_status=$? 9908 grep -v '^ *+' conftest.er1 >conftest.err 9909 rm -f conftest.er1 9910 cat conftest.err >&5 9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9912 (exit $ac_status); } && 9913 { ac_try='test -z "$ac_c_werror_flag" 9914 || test ! -s conftest.err' 9915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9916 (eval $ac_try) 2>&5 9917 ac_status=$? 9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9919 (exit $ac_status); }; } && 9920 { ac_try='test -s conftest.$ac_objext' 9921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9922 (eval $ac_try) 2>&5 9923 ac_status=$? 9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9925 (exit $ac_status); }; }; then 9926 ac_hi=$ac_mid 9927 else 9928 echo "$as_me: failed program was:" >&5 9929 sed 's/^/| /' conftest.$ac_ext >&5 9930 9931 ac_lo=`expr '(' $ac_mid ')' + 1` 9932 fi 9933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9934 done 9935 case $ac_lo in 9936 ?*) res_hi=$ac_lo;; 9937 '') result=? ;; 9938 esac 9939 else 9940 if test "$cross_compiling" = yes; then 9941 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 9942 See \`config.log' for more details." >&5 9943 echo "$as_me: error: cannot run test program while cross compiling 9944 See \`config.log' for more details." >&2;} 9945 { (exit 1); exit 1; }; } 9946 else 9947 cat >conftest.$ac_ext <<_ACEOF 9948 /* confdefs.h. */ 9949 _ACEOF 9950 cat confdefs.h >>conftest.$ac_ext 9951 cat >>conftest.$ac_ext <<_ACEOF 9952 /* end confdefs.h. */ 9953 #include <stddef.h> 9954 long longval () { return ~(size_t)0 / 10; } 9955 unsigned long ulongval () { return ~(size_t)0 / 10; } 9956 #include <stdio.h> 9957 #include <stdlib.h> 9958 int 9959 main () 9960 { 9961 9962 FILE *f = fopen ("conftest.val", "w"); 9963 if (! f) 9964 exit (1); 9965 if ((~(size_t)0 / 10) < 0) 9966 { 9967 long i = longval (); 9968 if (i != (~(size_t)0 / 10)) 9969 exit (1); 9970 fprintf (f, "%ld\n", i); 9971 } 9972 else 9973 { 9974 unsigned long i = ulongval (); 9975 if (i != (~(size_t)0 / 10)) 9976 exit (1); 9977 fprintf (f, "%lu\n", i); 9978 } 9979 exit (ferror (f) || fclose (f) != 0); 9980 9981 ; 9982 return 0; 9983 } 9984 _ACEOF 9985 rm -f conftest$ac_exeext 9986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9987 (eval $ac_link) 2>&5 9988 ac_status=$? 9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9992 (eval $ac_try) 2>&5 9993 ac_status=$? 9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9995 (exit $ac_status); }; }; then 9996 res_hi=`cat conftest.val` 9997 else 9998 echo "$as_me: program exited with status $ac_status" >&5 9999 echo "$as_me: failed program was:" >&5 10000 sed 's/^/| /' conftest.$ac_ext >&5 10001 10002 ( exit $ac_status ) 10003 result=? 10004 fi 10005 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10006 fi 10007 fi 10008 rm -f conftest.val 10009 if test "$cross_compiling" = yes; then 10010 # Depending upon the size, compute the lo and hi bounds. 10011 cat >conftest.$ac_ext <<_ACEOF 10012 /* confdefs.h. */ 10013 _ACEOF 10014 cat confdefs.h >>conftest.$ac_ext 10015 cat >>conftest.$ac_ext <<_ACEOF 10016 /* end confdefs.h. */ 10017 #include <stddef.h> 10018 int 10019 main () 10020 { 10021 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)]; 10022 test_array [0] = 0 10023 10024 ; 10025 return 0; 10026 } 10027 _ACEOF 10028 rm -f conftest.$ac_objext 10029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10030 (eval $ac_compile) 2>conftest.er1 10031 ac_status=$? 10032 grep -v '^ *+' conftest.er1 >conftest.err 10033 rm -f conftest.er1 10034 cat conftest.err >&5 10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10036 (exit $ac_status); } && 10037 { ac_try='test -z "$ac_c_werror_flag" 10038 || test ! -s conftest.err' 10039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10040 (eval $ac_try) 2>&5 10041 ac_status=$? 10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10043 (exit $ac_status); }; } && 10044 { ac_try='test -s conftest.$ac_objext' 10045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10046 (eval $ac_try) 2>&5 10047 ac_status=$? 10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10049 (exit $ac_status); }; }; then 10050 ac_lo=0 ac_mid=0 10051 while :; do 10052 cat >conftest.$ac_ext <<_ACEOF 10053 /* confdefs.h. */ 10054 _ACEOF 10055 cat confdefs.h >>conftest.$ac_ext 10056 cat >>conftest.$ac_ext <<_ACEOF 10057 /* end confdefs.h. */ 10058 #include <stddef.h> 10059 int 10060 main () 10061 { 10062 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; 10063 test_array [0] = 0 10064 10065 ; 10066 return 0; 10067 } 10068 _ACEOF 10069 rm -f conftest.$ac_objext 10070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10071 (eval $ac_compile) 2>conftest.er1 10072 ac_status=$? 10073 grep -v '^ *+' conftest.er1 >conftest.err 10074 rm -f conftest.er1 10075 cat conftest.err >&5 10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10077 (exit $ac_status); } && 10078 { ac_try='test -z "$ac_c_werror_flag" 10079 || test ! -s conftest.err' 10080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10081 (eval $ac_try) 2>&5 10082 ac_status=$? 10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10084 (exit $ac_status); }; } && 10085 { ac_try='test -s conftest.$ac_objext' 10086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10087 (eval $ac_try) 2>&5 10088 ac_status=$? 10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10090 (exit $ac_status); }; }; then 10091 ac_hi=$ac_mid; break 10092 else 10093 echo "$as_me: failed program was:" >&5 10094 sed 's/^/| /' conftest.$ac_ext >&5 10095 10096 ac_lo=`expr $ac_mid + 1` 10097 if test $ac_lo -le $ac_mid; then 10098 ac_lo= ac_hi= 10099 break 10100 fi 10101 ac_mid=`expr 2 '*' $ac_mid + 1` 10102 fi 10103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10104 done 10105 else 10106 echo "$as_me: failed program was:" >&5 10107 sed 's/^/| /' conftest.$ac_ext >&5 10108 10109 cat >conftest.$ac_ext <<_ACEOF 10110 /* confdefs.h. */ 10111 _ACEOF 10112 cat confdefs.h >>conftest.$ac_ext 10113 cat >>conftest.$ac_ext <<_ACEOF 10114 /* end confdefs.h. */ 10115 #include <stddef.h> 10116 int 10117 main () 10118 { 10119 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)]; 10120 test_array [0] = 0 10121 10122 ; 10123 return 0; 10124 } 10125 _ACEOF 10126 rm -f conftest.$ac_objext 10127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10128 (eval $ac_compile) 2>conftest.er1 10129 ac_status=$? 10130 grep -v '^ *+' conftest.er1 >conftest.err 10131 rm -f conftest.er1 10132 cat conftest.err >&5 10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10134 (exit $ac_status); } && 10135 { ac_try='test -z "$ac_c_werror_flag" 10136 || test ! -s conftest.err' 10137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10138 (eval $ac_try) 2>&5 10139 ac_status=$? 10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10141 (exit $ac_status); }; } && 10142 { ac_try='test -s conftest.$ac_objext' 10143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10144 (eval $ac_try) 2>&5 10145 ac_status=$? 10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10147 (exit $ac_status); }; }; then 10148 ac_hi=-1 ac_mid=-1 10149 while :; do 10150 cat >conftest.$ac_ext <<_ACEOF 10151 /* confdefs.h. */ 10152 _ACEOF 10153 cat confdefs.h >>conftest.$ac_ext 10154 cat >>conftest.$ac_ext <<_ACEOF 10155 /* end confdefs.h. */ 10156 #include <stddef.h> 10157 int 10158 main () 10159 { 10160 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)]; 10161 test_array [0] = 0 10162 10163 ; 10164 return 0; 10165 } 10166 _ACEOF 10167 rm -f conftest.$ac_objext 10168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10169 (eval $ac_compile) 2>conftest.er1 10170 ac_status=$? 10171 grep -v '^ *+' conftest.er1 >conftest.err 10172 rm -f conftest.er1 10173 cat conftest.err >&5 10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10175 (exit $ac_status); } && 10176 { ac_try='test -z "$ac_c_werror_flag" 10177 || test ! -s conftest.err' 10178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10179 (eval $ac_try) 2>&5 10180 ac_status=$? 10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10182 (exit $ac_status); }; } && 10183 { ac_try='test -s conftest.$ac_objext' 10184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10185 (eval $ac_try) 2>&5 10186 ac_status=$? 10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10188 (exit $ac_status); }; }; then 10189 ac_lo=$ac_mid; break 10190 else 10191 echo "$as_me: failed program was:" >&5 10192 sed 's/^/| /' conftest.$ac_ext >&5 10193 10194 ac_hi=`expr '(' $ac_mid ')' - 1` 10195 if test $ac_mid -le $ac_hi; then 10196 ac_lo= ac_hi= 10197 break 10198 fi 10199 ac_mid=`expr 2 '*' $ac_mid` 10200 fi 10201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10202 done 10203 else 10204 echo "$as_me: failed program was:" >&5 10205 sed 's/^/| /' conftest.$ac_ext >&5 10206 10207 ac_lo= ac_hi= 10208 fi 10209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10210 fi 10211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10212 # Binary search between lo and hi bounds. 10213 while test "x$ac_lo" != "x$ac_hi"; do 10214 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 10215 cat >conftest.$ac_ext <<_ACEOF 10216 /* confdefs.h. */ 10217 _ACEOF 10218 cat confdefs.h >>conftest.$ac_ext 10219 cat >>conftest.$ac_ext <<_ACEOF 10220 /* end confdefs.h. */ 10221 #include <stddef.h> 10222 int 10223 main () 10224 { 10225 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; 10226 test_array [0] = 0 10227 10228 ; 10229 return 0; 10230 } 10231 _ACEOF 10232 rm -f conftest.$ac_objext 10233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10234 (eval $ac_compile) 2>conftest.er1 10235 ac_status=$? 10236 grep -v '^ *+' conftest.er1 >conftest.err 10237 rm -f conftest.er1 10238 cat conftest.err >&5 10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10240 (exit $ac_status); } && 10241 { ac_try='test -z "$ac_c_werror_flag" 10242 || test ! -s conftest.err' 10243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10244 (eval $ac_try) 2>&5 10245 ac_status=$? 10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10247 (exit $ac_status); }; } && 10248 { ac_try='test -s conftest.$ac_objext' 10249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10250 (eval $ac_try) 2>&5 10251 ac_status=$? 10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10253 (exit $ac_status); }; }; then 10254 ac_hi=$ac_mid 10255 else 10256 echo "$as_me: failed program was:" >&5 10257 sed 's/^/| /' conftest.$ac_ext >&5 10258 10259 ac_lo=`expr '(' $ac_mid ')' + 1` 10260 fi 10261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10262 done 10263 case $ac_lo in 10264 ?*) res_lo=$ac_lo;; 10265 '') result=? ;; 10266 esac 10267 else 10268 if test "$cross_compiling" = yes; then 10269 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 10270 See \`config.log' for more details." >&5 10271 echo "$as_me: error: cannot run test program while cross compiling 10272 See \`config.log' for more details." >&2;} 10273 { (exit 1); exit 1; }; } 10274 else 10275 cat >conftest.$ac_ext <<_ACEOF 10276 /* confdefs.h. */ 10277 _ACEOF 10278 cat confdefs.h >>conftest.$ac_ext 10279 cat >>conftest.$ac_ext <<_ACEOF 10280 /* end confdefs.h. */ 10281 #include <stddef.h> 10282 long longval () { return ~(size_t)0 % 10; } 10283 unsigned long ulongval () { return ~(size_t)0 % 10; } 10284 #include <stdio.h> 10285 #include <stdlib.h> 10286 int 10287 main () 10288 { 10289 10290 FILE *f = fopen ("conftest.val", "w"); 10291 if (! f) 10292 exit (1); 10293 if ((~(size_t)0 % 10) < 0) 10294 { 10295 long i = longval (); 10296 if (i != (~(size_t)0 % 10)) 10297 exit (1); 10298 fprintf (f, "%ld\n", i); 10299 } 10300 else 10301 { 10302 unsigned long i = ulongval (); 10303 if (i != (~(size_t)0 % 10)) 10304 exit (1); 10305 fprintf (f, "%lu\n", i); 10306 } 10307 exit (ferror (f) || fclose (f) != 0); 10308 10309 ; 10310 return 0; 10311 } 10312 _ACEOF 10313 rm -f conftest$ac_exeext 10314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10315 (eval $ac_link) 2>&5 10316 ac_status=$? 10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10320 (eval $ac_try) 2>&5 10321 ac_status=$? 10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10323 (exit $ac_status); }; }; then 10324 res_lo=`cat conftest.val` 10325 else 10326 echo "$as_me: program exited with status $ac_status" >&5 10327 echo "$as_me: failed program was:" >&5 10328 sed 's/^/| /' conftest.$ac_ext >&5 10329 10330 ( exit $ac_status ) 10331 result=? 10332 fi 10333 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10334 fi 10335 fi 10336 rm -f conftest.val 10337 if test "$cross_compiling" = yes; then 10338 # Depending upon the size, compute the lo and hi bounds. 10339 cat >conftest.$ac_ext <<_ACEOF 10340 /* confdefs.h. */ 10341 _ACEOF 10342 cat confdefs.h >>conftest.$ac_ext 10343 cat >>conftest.$ac_ext <<_ACEOF 10344 /* end confdefs.h. */ 10345 #include <stddef.h> 10346 int 10347 main () 10348 { 10349 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; 10350 test_array [0] = 0 10351 10352 ; 10353 return 0; 10354 } 10355 _ACEOF 10356 rm -f conftest.$ac_objext 10357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10358 (eval $ac_compile) 2>conftest.er1 10359 ac_status=$? 10360 grep -v '^ *+' conftest.er1 >conftest.err 10361 rm -f conftest.er1 10362 cat conftest.err >&5 10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10364 (exit $ac_status); } && 10365 { ac_try='test -z "$ac_c_werror_flag" 10366 || test ! -s conftest.err' 10367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10368 (eval $ac_try) 2>&5 10369 ac_status=$? 10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10371 (exit $ac_status); }; } && 10372 { ac_try='test -s conftest.$ac_objext' 10373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10374 (eval $ac_try) 2>&5 10375 ac_status=$? 10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10377 (exit $ac_status); }; }; then 10378 ac_lo=0 ac_mid=0 10379 while :; do 10380 cat >conftest.$ac_ext <<_ACEOF 10381 /* confdefs.h. */ 10382 _ACEOF 10383 cat confdefs.h >>conftest.$ac_ext 10384 cat >>conftest.$ac_ext <<_ACEOF 10385 /* end confdefs.h. */ 10386 #include <stddef.h> 10387 int 10388 main () 10389 { 10390 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; 10391 test_array [0] = 0 10392 10393 ; 10394 return 0; 10395 } 10396 _ACEOF 10397 rm -f conftest.$ac_objext 10398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10399 (eval $ac_compile) 2>conftest.er1 10400 ac_status=$? 10401 grep -v '^ *+' conftest.er1 >conftest.err 10402 rm -f conftest.er1 10403 cat conftest.err >&5 10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10405 (exit $ac_status); } && 10406 { ac_try='test -z "$ac_c_werror_flag" 10407 || test ! -s conftest.err' 10408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10409 (eval $ac_try) 2>&5 10410 ac_status=$? 10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10412 (exit $ac_status); }; } && 10413 { ac_try='test -s conftest.$ac_objext' 10414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10415 (eval $ac_try) 2>&5 10416 ac_status=$? 10417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10418 (exit $ac_status); }; }; then 10419 ac_hi=$ac_mid; break 10420 else 10421 echo "$as_me: failed program was:" >&5 10422 sed 's/^/| /' conftest.$ac_ext >&5 10423 10424 ac_lo=`expr $ac_mid + 1` 10425 if test $ac_lo -le $ac_mid; then 10426 ac_lo= ac_hi= 10427 break 10428 fi 10429 ac_mid=`expr 2 '*' $ac_mid + 1` 10430 fi 10431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10432 done 10433 else 10434 echo "$as_me: failed program was:" >&5 10435 sed 's/^/| /' conftest.$ac_ext >&5 10436 10437 cat >conftest.$ac_ext <<_ACEOF 10438 /* confdefs.h. */ 10439 _ACEOF 10440 cat confdefs.h >>conftest.$ac_ext 10441 cat >>conftest.$ac_ext <<_ACEOF 10442 /* end confdefs.h. */ 10443 #include <stddef.h> 10444 int 10445 main () 10446 { 10447 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; 10448 test_array [0] = 0 10449 10450 ; 10451 return 0; 10452 } 10453 _ACEOF 10454 rm -f conftest.$ac_objext 10455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10456 (eval $ac_compile) 2>conftest.er1 10457 ac_status=$? 10458 grep -v '^ *+' conftest.er1 >conftest.err 10459 rm -f conftest.er1 10460 cat conftest.err >&5 10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10462 (exit $ac_status); } && 10463 { ac_try='test -z "$ac_c_werror_flag" 10464 || test ! -s conftest.err' 10465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10466 (eval $ac_try) 2>&5 10467 ac_status=$? 10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10469 (exit $ac_status); }; } && 10470 { ac_try='test -s conftest.$ac_objext' 10471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10472 (eval $ac_try) 2>&5 10473 ac_status=$? 10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10475 (exit $ac_status); }; }; then 10476 ac_hi=-1 ac_mid=-1 10477 while :; do 10478 cat >conftest.$ac_ext <<_ACEOF 10479 /* confdefs.h. */ 10480 _ACEOF 10481 cat confdefs.h >>conftest.$ac_ext 10482 cat >>conftest.$ac_ext <<_ACEOF 10483 /* end confdefs.h. */ 10484 #include <stddef.h> 10485 int 10486 main () 10487 { 10488 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; 10489 test_array [0] = 0 10490 10491 ; 10492 return 0; 10493 } 10494 _ACEOF 10495 rm -f conftest.$ac_objext 10496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10497 (eval $ac_compile) 2>conftest.er1 10498 ac_status=$? 10499 grep -v '^ *+' conftest.er1 >conftest.err 10500 rm -f conftest.er1 10501 cat conftest.err >&5 10502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10503 (exit $ac_status); } && 10504 { ac_try='test -z "$ac_c_werror_flag" 10505 || test ! -s conftest.err' 10506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10507 (eval $ac_try) 2>&5 10508 ac_status=$? 10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10510 (exit $ac_status); }; } && 10511 { ac_try='test -s conftest.$ac_objext' 10512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10513 (eval $ac_try) 2>&5 10514 ac_status=$? 10515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10516 (exit $ac_status); }; }; then 10517 ac_lo=$ac_mid; break 10518 else 10519 echo "$as_me: failed program was:" >&5 10520 sed 's/^/| /' conftest.$ac_ext >&5 10521 10522 ac_hi=`expr '(' $ac_mid ')' - 1` 10523 if test $ac_mid -le $ac_hi; then 10524 ac_lo= ac_hi= 10525 break 10526 fi 10527 ac_mid=`expr 2 '*' $ac_mid` 10528 fi 10529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10530 done 10531 else 10532 echo "$as_me: failed program was:" >&5 10533 sed 's/^/| /' conftest.$ac_ext >&5 10534 10535 ac_lo= ac_hi= 10536 fi 10537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10538 fi 10539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10540 # Binary search between lo and hi bounds. 10541 while test "x$ac_lo" != "x$ac_hi"; do 10542 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 10543 cat >conftest.$ac_ext <<_ACEOF 10544 /* confdefs.h. */ 10545 _ACEOF 10546 cat confdefs.h >>conftest.$ac_ext 10547 cat >>conftest.$ac_ext <<_ACEOF 10548 /* end confdefs.h. */ 10549 #include <stddef.h> 10550 int 10551 main () 10552 { 10553 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; 10554 test_array [0] = 0 10555 10556 ; 10557 return 0; 10558 } 10559 _ACEOF 10560 rm -f conftest.$ac_objext 10561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10562 (eval $ac_compile) 2>conftest.er1 10563 ac_status=$? 10564 grep -v '^ *+' conftest.er1 >conftest.err 10565 rm -f conftest.er1 10566 cat conftest.err >&5 10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10568 (exit $ac_status); } && 10569 { ac_try='test -z "$ac_c_werror_flag" 10570 || test ! -s conftest.err' 10571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10572 (eval $ac_try) 2>&5 10573 ac_status=$? 10574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10575 (exit $ac_status); }; } && 10576 { ac_try='test -s conftest.$ac_objext' 10577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10578 (eval $ac_try) 2>&5 10579 ac_status=$? 10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10581 (exit $ac_status); }; }; then 10582 ac_hi=$ac_mid 10583 else 10584 echo "$as_me: failed program was:" >&5 10585 sed 's/^/| /' conftest.$ac_ext >&5 10586 10587 ac_lo=`expr '(' $ac_mid ')' + 1` 10588 fi 10589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10590 done 10591 case $ac_lo in 10592 ?*) fits_in_uint=$ac_lo;; 10593 '') result=? ;; 10594 esac 10595 else 10596 if test "$cross_compiling" = yes; then 10597 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 10598 See \`config.log' for more details." >&5 10599 echo "$as_me: error: cannot run test program while cross compiling 10600 See \`config.log' for more details." >&2;} 10601 { (exit 1); exit 1; }; } 10602 else 10603 cat >conftest.$ac_ext <<_ACEOF 10604 /* confdefs.h. */ 10605 _ACEOF 10606 cat confdefs.h >>conftest.$ac_ext 10607 cat >>conftest.$ac_ext <<_ACEOF 10608 /* end confdefs.h. */ 10609 #include <stddef.h> 10610 long longval () { return sizeof (size_t) <= sizeof (unsigned int); } 10611 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); } 10612 #include <stdio.h> 10613 #include <stdlib.h> 10614 int 10615 main () 10616 { 10617 10618 FILE *f = fopen ("conftest.val", "w"); 10619 if (! f) 10620 exit (1); 10621 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) 10622 { 10623 long i = longval (); 10624 if (i != (sizeof (size_t) <= sizeof (unsigned int))) 10625 exit (1); 10626 fprintf (f, "%ld\n", i); 10627 } 10628 else 10629 { 10630 unsigned long i = ulongval (); 10631 if (i != (sizeof (size_t) <= sizeof (unsigned int))) 10632 exit (1); 10633 fprintf (f, "%lu\n", i); 10634 } 10635 exit (ferror (f) || fclose (f) != 0); 10636 10637 ; 10638 return 0; 10639 } 10640 _ACEOF 10641 rm -f conftest$ac_exeext 10642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10643 (eval $ac_link) 2>&5 10644 ac_status=$? 10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10646 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10648 (eval $ac_try) 2>&5 10649 ac_status=$? 10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10651 (exit $ac_status); }; }; then 10652 fits_in_uint=`cat conftest.val` 10653 else 10654 echo "$as_me: program exited with status $ac_status" >&5 10655 echo "$as_me: failed program was:" >&5 10656 sed 's/^/| /' conftest.$ac_ext >&5 10657 10658 ( exit $ac_status ) 10659 result=? 10660 fi 10661 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10662 fi 10663 fi 10664 rm -f conftest.val 10665 if test "$fits_in_uint" = 1; then 10666 cat >conftest.$ac_ext <<_ACEOF 10667 /* confdefs.h. */ 10668 _ACEOF 10669 cat confdefs.h >>conftest.$ac_ext 10670 cat >>conftest.$ac_ext <<_ACEOF 10671 /* end confdefs.h. */ 10672 #include <stddef.h> 10673 extern size_t foo; 10674 extern unsigned long foo; 10675 10676 int 10677 main () 10678 { 10679 10680 ; 10681 return 0; 10682 } 10683 _ACEOF 10684 rm -f conftest.$ac_objext 10685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10686 (eval $ac_compile) 2>conftest.er1 10687 ac_status=$? 10688 grep -v '^ *+' conftest.er1 >conftest.err 10689 rm -f conftest.er1 10690 cat conftest.err >&5 10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10692 (exit $ac_status); } && 10693 { ac_try='test -z "$ac_c_werror_flag" 10694 || test ! -s conftest.err' 10695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10696 (eval $ac_try) 2>&5 10697 ac_status=$? 10698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10699 (exit $ac_status); }; } && 10700 { ac_try='test -s conftest.$ac_objext' 10701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10702 (eval $ac_try) 2>&5 10703 ac_status=$? 10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10705 (exit $ac_status); }; }; then 10706 fits_in_uint=0 10707 else 10708 echo "$as_me: failed program was:" >&5 10709 sed 's/^/| /' conftest.$ac_ext >&5 10710 10711 fi 10712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10713 fi 10714 if test -z "$result"; then 10715 if test "$fits_in_uint" = 1; then 10716 result="$res_hi$res_lo"U 10717 else 10718 result="$res_hi$res_lo"UL 10719 fi 10720 else 10721 result='~(size_t)0' 10722 fi 10723 fi 10724 echo "$as_me:$LINENO: result: $result" >&5 10725 echo "${ECHO_T}$result" >&6 10726 if test "$result" != yes; then 10727 10728 cat >>confdefs.h <<_ACEOF 10729 #define SIZE_MAX $result 10730 _ACEOF 10731 10732 fi 10733 10734 10735 10736 10737 for ac_header in stdint.h 10738 do 10739 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10740 if eval "test \"\${$as_ac_Header+set}\" = set"; then 10741 echo "$as_me:$LINENO: checking for $ac_header" >&5 10742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10743 if eval "test \"\${$as_ac_Header+set}\" = set"; then 10744 echo $ECHO_N "(cached) $ECHO_C" >&6 10745 fi 10746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10748 else 10749 # Is the header compilable? 10750 echo "$as_me:$LINENO: checking $ac_header usability" >&5 10751 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 10752 cat >conftest.$ac_ext <<_ACEOF 10753 /* confdefs.h. */ 10754 _ACEOF 10755 cat confdefs.h >>conftest.$ac_ext 10756 cat >>conftest.$ac_ext <<_ACEOF 10757 /* end confdefs.h. */ 10758 $ac_includes_default 10759 #include <$ac_header> 10760 _ACEOF 10761 rm -f conftest.$ac_objext 10762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10763 (eval $ac_compile) 2>conftest.er1 10764 ac_status=$? 10765 grep -v '^ *+' conftest.er1 >conftest.err 10766 rm -f conftest.er1 10767 cat conftest.err >&5 10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10769 (exit $ac_status); } && 10770 { ac_try='test -z "$ac_c_werror_flag" 10771 || test ! -s conftest.err' 10772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10773 (eval $ac_try) 2>&5 10774 ac_status=$? 10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10776 (exit $ac_status); }; } && 10777 { ac_try='test -s conftest.$ac_objext' 10778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10779 (eval $ac_try) 2>&5 10780 ac_status=$? 10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10782 (exit $ac_status); }; }; then 10783 ac_header_compiler=yes 10784 else 10785 echo "$as_me: failed program was:" >&5 10786 sed 's/^/| /' conftest.$ac_ext >&5 10787 10788 ac_header_compiler=no 10789 fi 10790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10791 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10792 echo "${ECHO_T}$ac_header_compiler" >&6 10793 10794 # Is the header present? 10795 echo "$as_me:$LINENO: checking $ac_header presence" >&5 10796 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 10797 cat >conftest.$ac_ext <<_ACEOF 10798 /* confdefs.h. */ 10799 _ACEOF 10800 cat confdefs.h >>conftest.$ac_ext 10801 cat >>conftest.$ac_ext <<_ACEOF 10802 /* end confdefs.h. */ 10803 #include <$ac_header> 10804 _ACEOF 10805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10807 ac_status=$? 10808 grep -v '^ *+' conftest.er1 >conftest.err 10809 rm -f conftest.er1 10810 cat conftest.err >&5 10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10812 (exit $ac_status); } >/dev/null; then 10813 if test -s conftest.err; then 10814 ac_cpp_err=$ac_c_preproc_warn_flag 10815 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10816 else 10817 ac_cpp_err= 10818 fi 10819 else 10820 ac_cpp_err=yes 10821 fi 10822 if test -z "$ac_cpp_err"; then 10823 ac_header_preproc=yes 10824 else 10825 echo "$as_me: failed program was:" >&5 10826 sed 's/^/| /' conftest.$ac_ext >&5 10827 10828 ac_header_preproc=no 10829 fi 10830 rm -f conftest.err conftest.$ac_ext 10831 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10832 echo "${ECHO_T}$ac_header_preproc" >&6 10833 10834 # So? What about this header? 10835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10836 yes:no: ) 10837 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10838 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 10840 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 10841 ac_header_preproc=yes 10842 ;; 10843 no:yes:* ) 10844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10847 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10848 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 10849 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 10850 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 10851 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 10852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10854 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 10855 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 10856 ( 10857 cat <<\_ASBOX 10858 ## -------------------------------------- ## 10859 ## Report this to the GNU Texinfo lists. ## 10860 ## -------------------------------------- ## 10861 _ASBOX 10862 ) | 10863 sed "s/^/$as_me: WARNING: /" >&2 10864 ;; 10865 esac 10866 echo "$as_me:$LINENO: checking for $ac_header" >&5 10867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10868 if eval "test \"\${$as_ac_Header+set}\" = set"; then 10869 echo $ECHO_N "(cached) $ECHO_C" >&6 10870 else 10871 eval "$as_ac_Header=\$ac_header_preproc" 10872 fi 10873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10875 10876 fi 10877 if test `eval echo '${'$as_ac_Header'}'` = yes; then 10878 cat >>confdefs.h <<_ACEOF 10879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10880 _ACEOF 10881 10882 fi 10883 10884 done 10885 10886 10887 10888 if test "X$prefix" = "XNONE"; then 10889 acl_final_prefix="$ac_default_prefix" 10890 else 10891 acl_final_prefix="$prefix" 10892 fi 10893 if test "X$exec_prefix" = "XNONE"; then 10894 acl_final_exec_prefix='${prefix}' 10895 else 10896 acl_final_exec_prefix="$exec_prefix" 10897 fi 10898 acl_save_prefix="$prefix" 10899 prefix="$acl_final_prefix" 10900 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 10901 prefix="$acl_save_prefix" 10902 10903 10904 # Check whether --with-gnu-ld or --without-gnu-ld was given. 10905 if test "${with_gnu_ld+set}" = set; then 10906 withval="$with_gnu_ld" 10907 test "$withval" = no || with_gnu_ld=yes 10908 else 10909 with_gnu_ld=no 10910 fi; 10911 # Prepare PATH_SEPARATOR. 10912 # The user is always right. 10913 if test "${PATH_SEPARATOR+set}" != set; then 10914 echo "#! /bin/sh" >conf$$.sh 10915 echo "exit 0" >>conf$$.sh 10916 chmod +x conf$$.sh 10917 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 10918 PATH_SEPARATOR=';' 10919 else 10920 PATH_SEPARATOR=: 10921 fi 10922 rm -f conf$$.sh 10923 fi 10924 ac_prog=ld 10925 if test "$GCC" = yes; then 10926 # Check if gcc -print-prog-name=ld gives a path. 10927 echo "$as_me:$LINENO: checking for ld used by GCC" >&5 10928 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 10929 case $host in 10930 *-*-mingw*) 10931 # gcc leaves a trailing carriage return which upsets mingw 10932 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10933 *) 10934 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10935 esac 10936 case $ac_prog in 10937 # Accept absolute paths. 10938 [\\/]* | [A-Za-z]:[\\/]*) 10939 re_direlt='/[^/][^/]*/\.\./' 10940 # Canonicalize the path of ld 10941 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 10942 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10943 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 10944 done 10945 test -z "$LD" && LD="$ac_prog" 10946 ;; 10947 "") 10948 # If it fails, then pretend we aren't using GCC. 10949 ac_prog=ld 10950 ;; 10951 *) 10952 # If it is relative, then search for the first ld in PATH. 10953 with_gnu_ld=unknown 10954 ;; 10955 esac 10956 elif test "$with_gnu_ld" = yes; then 10957 echo "$as_me:$LINENO: checking for GNU ld" >&5 10958 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 10959 else 10960 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10961 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 10962 fi 10963 if test "${acl_cv_path_LD+set}" = set; then 10964 echo $ECHO_N "(cached) $ECHO_C" >&6 10965 else 10966 if test -z "$LD"; then 10967 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 10968 for ac_dir in $PATH; do 10969 test -z "$ac_dir" && ac_dir=. 10970 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10971 acl_cv_path_LD="$ac_dir/$ac_prog" 10972 # Check to see if the program is GNU ld. I'd rather use --version, 10973 # but apparently some GNU ld's only accept -v. 10974 # Break only if it was the GNU/non-GNU ld that we prefer. 10975 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 10976 *GNU* | *'with BFD'*) 10977 test "$with_gnu_ld" != no && break ;; 10978 *) 10979 test "$with_gnu_ld" != yes && break ;; 10980 esac 10981 fi 10982 done 10983 IFS="$ac_save_ifs" 10984 else 10985 acl_cv_path_LD="$LD" # Let the user override the test with a path. 10986 fi 10987 fi 10988 10989 LD="$acl_cv_path_LD" 10990 if test -n "$LD"; then 10991 echo "$as_me:$LINENO: result: $LD" >&5 10992 echo "${ECHO_T}$LD" >&6 10993 else 10994 echo "$as_me:$LINENO: result: no" >&5 10995 echo "${ECHO_T}no" >&6 10996 fi 10997 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10998 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10999 { (exit 1); exit 1; }; } 11000 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11001 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 11002 if test "${acl_cv_prog_gnu_ld+set}" = set; then 11003 echo $ECHO_N "(cached) $ECHO_C" >&6 11004 else 11005 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 11006 case `$LD -v 2>&1 </dev/null` in 11007 *GNU* | *'with BFD'*) 11008 acl_cv_prog_gnu_ld=yes ;; 11009 *) 11010 acl_cv_prog_gnu_ld=no ;; 11011 esac 11012 fi 11013 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 11014 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 11015 with_gnu_ld=$acl_cv_prog_gnu_ld 11016 11017 11018 11019 echo "$as_me:$LINENO: checking for shared library run path origin" >&5 11020 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 11021 if test "${acl_cv_rpath+set}" = set; then 11022 echo $ECHO_N "(cached) $ECHO_C" >&6 11023 else 11024 11025 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 11026 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 11027 . ./conftest.sh 11028 rm -f ./conftest.sh 11029 acl_cv_rpath=done 11030 11031 fi 11032 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 11033 echo "${ECHO_T}$acl_cv_rpath" >&6 11034 wl="$acl_cv_wl" 11035 libext="$acl_cv_libext" 11036 shlibext="$acl_cv_shlibext" 11037 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 11038 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 11039 hardcode_direct="$acl_cv_hardcode_direct" 11040 hardcode_minus_L="$acl_cv_hardcode_minus_L" 11041 # Check whether --enable-rpath or --disable-rpath was given. 11042 if test "${enable_rpath+set}" = set; then 11043 enableval="$enable_rpath" 11044 : 11045 else 11046 enable_rpath=yes 11047 fi; 11048 11049 11050 11051 11052 11053 11054 11055 use_additional=yes 11056 11057 acl_save_prefix="$prefix" 11058 prefix="$acl_final_prefix" 11059 acl_save_exec_prefix="$exec_prefix" 11060 exec_prefix="$acl_final_exec_prefix" 11061 11062 eval additional_includedir=\"$includedir\" 11063 eval additional_libdir=\"$libdir\" 11064 11065 exec_prefix="$acl_save_exec_prefix" 11066 prefix="$acl_save_prefix" 11067 11068 11069 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. 11070 if test "${with_libiconv_prefix+set}" = set; then 11071 withval="$with_libiconv_prefix" 11072 11073 if test "X$withval" = "Xno"; then 11074 use_additional=no 11075 else 11076 if test "X$withval" = "X"; then 11077 11078 acl_save_prefix="$prefix" 11079 prefix="$acl_final_prefix" 11080 acl_save_exec_prefix="$exec_prefix" 11081 exec_prefix="$acl_final_exec_prefix" 11082 11083 eval additional_includedir=\"$includedir\" 11084 eval additional_libdir=\"$libdir\" 11085 11086 exec_prefix="$acl_save_exec_prefix" 11087 prefix="$acl_save_prefix" 11088 11089 else 11090 additional_includedir="$withval/include" 11091 additional_libdir="$withval/lib" 11092 fi 11093 fi 11094 11095 fi; 11096 LIBICONV= 11097 LTLIBICONV= 11098 INCICONV= 11099 rpathdirs= 11100 ltrpathdirs= 11101 names_already_handled= 11102 names_next_round='iconv ' 11103 while test -n "$names_next_round"; do 11104 names_this_round="$names_next_round" 11105 names_next_round= 11106 for name in $names_this_round; do 11107 already_handled= 11108 for n in $names_already_handled; do 11109 if test "$n" = "$name"; then 11110 already_handled=yes 11111 break 11112 fi 11113 done 11114 if test -z "$already_handled"; then 11115 names_already_handled="$names_already_handled $name" 11116 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 11117 eval value=\"\$HAVE_LIB$uppername\" 11118 if test -n "$value"; then 11119 if test "$value" = yes; then 11120 eval value=\"\$LIB$uppername\" 11121 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 11122 eval value=\"\$LTLIB$uppername\" 11123 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 11124 else 11125 : 11126 fi 11127 else 11128 found_dir= 11129 found_la= 11130 found_so= 11131 found_a= 11132 if test $use_additional = yes; then 11133 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 11134 found_dir="$additional_libdir" 11135 found_so="$additional_libdir/lib$name.$shlibext" 11136 if test -f "$additional_libdir/lib$name.la"; then 11137 found_la="$additional_libdir/lib$name.la" 11138 fi 11139 else 11140 if test -f "$additional_libdir/lib$name.$libext"; then 11141 found_dir="$additional_libdir" 11142 found_a="$additional_libdir/lib$name.$libext" 11143 if test -f "$additional_libdir/lib$name.la"; then 11144 found_la="$additional_libdir/lib$name.la" 11145 fi 11146 fi 11147 fi 11148 fi 11149 if test "X$found_dir" = "X"; then 11150 for x in $LDFLAGS $LTLIBICONV; do 11151 11152 acl_save_prefix="$prefix" 11153 prefix="$acl_final_prefix" 11154 acl_save_exec_prefix="$exec_prefix" 11155 exec_prefix="$acl_final_exec_prefix" 11156 eval x=\"$x\" 11157 exec_prefix="$acl_save_exec_prefix" 11158 prefix="$acl_save_prefix" 11159 11160 case "$x" in 11161 -L*) 11162 dir=`echo "X$x" | sed -e 's/^X-L//'` 11163 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 11164 found_dir="$dir" 11165 found_so="$dir/lib$name.$shlibext" 11166 if test -f "$dir/lib$name.la"; then 11167 found_la="$dir/lib$name.la" 11168 fi 11169 else 11170 if test -f "$dir/lib$name.$libext"; then 11171 found_dir="$dir" 11172 found_a="$dir/lib$name.$libext" 11173 if test -f "$dir/lib$name.la"; then 11174 found_la="$dir/lib$name.la" 11175 fi 11176 fi 11177 fi 11178 ;; 11179 esac 11180 if test "X$found_dir" != "X"; then 11181 break 11182 fi 11183 done 11184 fi 11185 if test "X$found_dir" != "X"; then 11186 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 11187 if test "X$found_so" != "X"; then 11188 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 11189 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 11190 else 11191 haveit= 11192 for x in $ltrpathdirs; do 11193 if test "X$x" = "X$found_dir"; then 11194 haveit=yes 11195 break 11196 fi 11197 done 11198 if test -z "$haveit"; then 11199 ltrpathdirs="$ltrpathdirs $found_dir" 11200 fi 11201 if test "$hardcode_direct" = yes; then 11202 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 11203 else 11204 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 11205 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 11206 haveit= 11207 for x in $rpathdirs; do 11208 if test "X$x" = "X$found_dir"; then 11209 haveit=yes 11210 break 11211 fi 11212 done 11213 if test -z "$haveit"; then 11214 rpathdirs="$rpathdirs $found_dir" 11215 fi 11216 else 11217 haveit= 11218 for x in $LDFLAGS $LIBICONV; do 11219 11220 acl_save_prefix="$prefix" 11221 prefix="$acl_final_prefix" 11222 acl_save_exec_prefix="$exec_prefix" 11223 exec_prefix="$acl_final_exec_prefix" 11224 eval x=\"$x\" 11225 exec_prefix="$acl_save_exec_prefix" 11226 prefix="$acl_save_prefix" 11227 11228 if test "X$x" = "X-L$found_dir"; then 11229 haveit=yes 11230 break 11231 fi 11232 done 11233 if test -z "$haveit"; then 11234 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 11235 fi 11236 if test "$hardcode_minus_L" != no; then 11237 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 11238 else 11239 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 11240 fi 11241 fi 11242 fi 11243 fi 11244 else 11245 if test "X$found_a" != "X"; then 11246 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 11247 else 11248 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 11249 fi 11250 fi 11251 additional_includedir= 11252 case "$found_dir" in 11253 */lib | */lib/) 11254 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 11255 additional_includedir="$basedir/include" 11256 ;; 11257 esac 11258 if test "X$additional_includedir" != "X"; then 11259 if test "X$additional_includedir" != "X/usr/include"; then 11260 haveit= 11261 if test "X$additional_includedir" = "X/usr/local/include"; then 11262 if test -n "$GCC"; then 11263 case $host_os in 11264 linux*) haveit=yes;; 11265 esac 11266 fi 11267 fi 11268 if test -z "$haveit"; then 11269 for x in $CPPFLAGS $INCICONV; do 11270 11271 acl_save_prefix="$prefix" 11272 prefix="$acl_final_prefix" 11273 acl_save_exec_prefix="$exec_prefix" 11274 exec_prefix="$acl_final_exec_prefix" 11275 eval x=\"$x\" 11276 exec_prefix="$acl_save_exec_prefix" 11277 prefix="$acl_save_prefix" 11278 11279 if test "X$x" = "X-I$additional_includedir"; then 11280 haveit=yes 11281 break 11282 fi 11283 done 11284 if test -z "$haveit"; then 11285 if test -d "$additional_includedir"; then 11286 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 11287 fi 11288 fi 11289 fi 11290 fi 11291 fi 11292 if test -n "$found_la"; then 11293 save_libdir="$libdir" 11294 case "$found_la" in 11295 */* | *\\*) . "$found_la" ;; 11296 *) . "./$found_la" ;; 11297 esac 11298 libdir="$save_libdir" 11299 for dep in $dependency_libs; do 11300 case "$dep" in 11301 -L*) 11302 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 11303 if test "X$additional_libdir" != "X/usr/lib"; then 11304 haveit= 11305 if test "X$additional_libdir" = "X/usr/local/lib"; then 11306 if test -n "$GCC"; then 11307 case $host_os in 11308 linux*) haveit=yes;; 11309 esac 11310 fi 11311 fi 11312 if test -z "$haveit"; then 11313 haveit= 11314 for x in $LDFLAGS $LIBICONV; do 11315 11316 acl_save_prefix="$prefix" 11317 prefix="$acl_final_prefix" 11318 acl_save_exec_prefix="$exec_prefix" 11319 exec_prefix="$acl_final_exec_prefix" 11320 eval x=\"$x\" 11321 exec_prefix="$acl_save_exec_prefix" 11322 prefix="$acl_save_prefix" 11323 11324 if test "X$x" = "X-L$additional_libdir"; then 11325 haveit=yes 11326 break 11327 fi 11328 done 11329 if test -z "$haveit"; then 11330 if test -d "$additional_libdir"; then 11331 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 11332 fi 11333 fi 11334 haveit= 11335 for x in $LDFLAGS $LTLIBICONV; do 11336 11337 acl_save_prefix="$prefix" 11338 prefix="$acl_final_prefix" 11339 acl_save_exec_prefix="$exec_prefix" 11340 exec_prefix="$acl_final_exec_prefix" 11341 eval x=\"$x\" 11342 exec_prefix="$acl_save_exec_prefix" 11343 prefix="$acl_save_prefix" 11344 11345 if test "X$x" = "X-L$additional_libdir"; then 11346 haveit=yes 11347 break 11348 fi 11349 done 11350 if test -z "$haveit"; then 11351 if test -d "$additional_libdir"; then 11352 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 11353 fi 11354 fi 11355 fi 11356 fi 11357 ;; 11358 -R*) 11359 dir=`echo "X$dep" | sed -e 's/^X-R//'` 11360 if test "$enable_rpath" != no; then 11361 haveit= 11362 for x in $rpathdirs; do 11363 if test "X$x" = "X$dir"; then 11364 haveit=yes 11365 break 11366 fi 11367 done 11368 if test -z "$haveit"; then 11369 rpathdirs="$rpathdirs $dir" 11370 fi 11371 haveit= 11372 for x in $ltrpathdirs; do 11373 if test "X$x" = "X$dir"; then 11374 haveit=yes 11375 break 11376 fi 11377 done 11378 if test -z "$haveit"; then 11379 ltrpathdirs="$ltrpathdirs $dir" 11380 fi 11381 fi 11382 ;; 11383 -l*) 11384 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 11385 ;; 11386 *.la) 11387 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 11388 ;; 11389 *) 11390 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 11391 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 11392 ;; 11393 esac 11394 done 11395 fi 11396 else 11397 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 11398 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 11399 fi 11400 fi 11401 fi 11402 done 11403 done 11404 if test "X$rpathdirs" != "X"; then 11405 if test -n "$hardcode_libdir_separator"; then 11406 alldirs= 11407 for found_dir in $rpathdirs; do 11408 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 11409 done 11410 acl_save_libdir="$libdir" 11411 libdir="$alldirs" 11412 eval flag=\"$hardcode_libdir_flag_spec\" 11413 libdir="$acl_save_libdir" 11414 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 11415 else 11416 for found_dir in $rpathdirs; do 11417 acl_save_libdir="$libdir" 11418 libdir="$found_dir" 11419 eval flag=\"$hardcode_libdir_flag_spec\" 11420 libdir="$acl_save_libdir" 11421 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 11422 done 11423 fi 11424 fi 11425 if test "X$ltrpathdirs" != "X"; then 11426 for found_dir in $ltrpathdirs; do 11427 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 11428 done 11429 fi 11430 11431 11432 11433 11434 11435 11436 11437 11438 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 11439 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6 11440 if test "${ac_cv_type_ptrdiff_t+set}" = set; then 11441 echo $ECHO_N "(cached) $ECHO_C" >&6 11442 else 11443 cat >conftest.$ac_ext <<_ACEOF 11444 /* confdefs.h. */ 11445 _ACEOF 11446 cat confdefs.h >>conftest.$ac_ext 11447 cat >>conftest.$ac_ext <<_ACEOF 11448 /* end confdefs.h. */ 11449 $ac_includes_default 11450 int 11451 main () 11452 { 11453 if ((ptrdiff_t *) 0) 11454 return 0; 11455 if (sizeof (ptrdiff_t)) 11456 return 0; 11457 ; 11458 return 0; 11459 } 11460 _ACEOF 11461 rm -f conftest.$ac_objext 11462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11463 (eval $ac_compile) 2>conftest.er1 11464 ac_status=$? 11465 grep -v '^ *+' conftest.er1 >conftest.err 11466 rm -f conftest.er1 11467 cat conftest.err >&5 11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11469 (exit $ac_status); } && 11470 { ac_try='test -z "$ac_c_werror_flag" 11471 || test ! -s conftest.err' 11472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11473 (eval $ac_try) 2>&5 11474 ac_status=$? 11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11476 (exit $ac_status); }; } && 11477 { ac_try='test -s conftest.$ac_objext' 11478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11479 (eval $ac_try) 2>&5 11480 ac_status=$? 11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11482 (exit $ac_status); }; }; then 11483 ac_cv_type_ptrdiff_t=yes 11484 else 11485 echo "$as_me: failed program was:" >&5 11486 sed 's/^/| /' conftest.$ac_ext >&5 11487 11488 ac_cv_type_ptrdiff_t=no 11489 fi 11490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11491 fi 11492 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 11493 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6 11494 if test $ac_cv_type_ptrdiff_t = yes; then 11495 : 11496 else 11497 11498 cat >>confdefs.h <<\_ACEOF 11499 #define ptrdiff_t long 11500 _ACEOF 11501 11502 11503 fi 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ 11516 stdlib.h string.h unistd.h sys/param.h 11517 do 11518 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11519 if eval "test \"\${$as_ac_Header+set}\" = set"; then 11520 echo "$as_me:$LINENO: checking for $ac_header" >&5 11521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11522 if eval "test \"\${$as_ac_Header+set}\" = set"; then 11523 echo $ECHO_N "(cached) $ECHO_C" >&6 11524 fi 11525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11527 else 11528 # Is the header compilable? 11529 echo "$as_me:$LINENO: checking $ac_header usability" >&5 11530 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 11531 cat >conftest.$ac_ext <<_ACEOF 11532 /* confdefs.h. */ 11533 _ACEOF 11534 cat confdefs.h >>conftest.$ac_ext 11535 cat >>conftest.$ac_ext <<_ACEOF 11536 /* end confdefs.h. */ 11537 $ac_includes_default 11538 #include <$ac_header> 11539 _ACEOF 11540 rm -f conftest.$ac_objext 11541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11542 (eval $ac_compile) 2>conftest.er1 11543 ac_status=$? 11544 grep -v '^ *+' conftest.er1 >conftest.err 11545 rm -f conftest.er1 11546 cat conftest.err >&5 11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11548 (exit $ac_status); } && 11549 { ac_try='test -z "$ac_c_werror_flag" 11550 || test ! -s conftest.err' 11551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11552 (eval $ac_try) 2>&5 11553 ac_status=$? 11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11555 (exit $ac_status); }; } && 11556 { ac_try='test -s conftest.$ac_objext' 11557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11558 (eval $ac_try) 2>&5 11559 ac_status=$? 11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11561 (exit $ac_status); }; }; then 11562 ac_header_compiler=yes 11563 else 11564 echo "$as_me: failed program was:" >&5 11565 sed 's/^/| /' conftest.$ac_ext >&5 11566 11567 ac_header_compiler=no 11568 fi 11569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11570 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11571 echo "${ECHO_T}$ac_header_compiler" >&6 11572 11573 # Is the header present? 11574 echo "$as_me:$LINENO: checking $ac_header presence" >&5 11575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 11576 cat >conftest.$ac_ext <<_ACEOF 11577 /* confdefs.h. */ 11578 _ACEOF 11579 cat confdefs.h >>conftest.$ac_ext 11580 cat >>conftest.$ac_ext <<_ACEOF 11581 /* end confdefs.h. */ 11582 #include <$ac_header> 11583 _ACEOF 11584 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 11585 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 11586 ac_status=$? 11587 grep -v '^ *+' conftest.er1 >conftest.err 11588 rm -f conftest.er1 11589 cat conftest.err >&5 11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11591 (exit $ac_status); } >/dev/null; then 11592 if test -s conftest.err; then 11593 ac_cpp_err=$ac_c_preproc_warn_flag 11594 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11595 else 11596 ac_cpp_err= 11597 fi 11598 else 11599 ac_cpp_err=yes 11600 fi 11601 if test -z "$ac_cpp_err"; then 11602 ac_header_preproc=yes 11603 else 11604 echo "$as_me: failed program was:" >&5 11605 sed 's/^/| /' conftest.$ac_ext >&5 11606 11607 ac_header_preproc=no 11608 fi 11609 rm -f conftest.err conftest.$ac_ext 11610 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11611 echo "${ECHO_T}$ac_header_preproc" >&6 11612 11613 # So? What about this header? 11614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11615 yes:no: ) 11616 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11617 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11619 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11620 ac_header_preproc=yes 11621 ;; 11622 no:yes:* ) 11623 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11624 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11625 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11626 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11627 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11628 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11629 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11630 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11632 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11633 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11634 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11635 ( 11636 cat <<\_ASBOX 11637 ## -------------------------------------- ## 11638 ## Report this to the GNU Texinfo lists. ## 11639 ## -------------------------------------- ## 11640 _ASBOX 11641 ) | 11642 sed "s/^/$as_me: WARNING: /" >&2 11643 ;; 11644 esac 11645 echo "$as_me:$LINENO: checking for $ac_header" >&5 11646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11647 if eval "test \"\${$as_ac_Header+set}\" = set"; then 11648 echo $ECHO_N "(cached) $ECHO_C" >&6 11649 else 11650 eval "$as_ac_Header=\$ac_header_preproc" 11651 fi 11652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11654 11655 fi 11656 if test `eval echo '${'$as_ac_Header'}'` = yes; then 11657 cat >>confdefs.h <<_ACEOF 11658 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11659 _ACEOF 11660 11661 fi 11662 11663 done 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \ 11689 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ 11690 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ 11691 __fsetlocking 11692 do 11693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11694 echo "$as_me:$LINENO: checking for $ac_func" >&5 11695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 11696 if eval "test \"\${$as_ac_var+set}\" = set"; then 11697 echo $ECHO_N "(cached) $ECHO_C" >&6 11698 else 11699 cat >conftest.$ac_ext <<_ACEOF 11700 /* confdefs.h. */ 11701 _ACEOF 11702 cat confdefs.h >>conftest.$ac_ext 11703 cat >>conftest.$ac_ext <<_ACEOF 11704 /* end confdefs.h. */ 11705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11706 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11707 #define $ac_func innocuous_$ac_func 11708 11709 /* System header to define __stub macros and hopefully few prototypes, 11710 which can conflict with char $ac_func (); below. 11711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11712 <limits.h> exists even on freestanding compilers. */ 11713 11714 #ifdef __STDC__ 11715 # include <limits.h> 11716 #else 11717 # include <assert.h> 11718 #endif 11719 11720 #undef $ac_func 11721 11722 /* Override any gcc2 internal prototype to avoid an error. */ 11723 #ifdef __cplusplus 11724 extern "C" 11725 { 11726 #endif 11727 /* We use char because int might match the return type of a gcc2 11728 builtin and then its argument prototype would still apply. */ 11729 char $ac_func (); 11730 /* The GNU C library defines this for functions which it implements 11731 to always fail with ENOSYS. Some functions are actually named 11732 something starting with __ and the normal name is an alias. */ 11733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 11734 choke me 11735 #else 11736 char (*f) () = $ac_func; 11737 #endif 11738 #ifdef __cplusplus 11739 } 11740 #endif 11741 11742 int 11743 main () 11744 { 11745 return f != $ac_func; 11746 ; 11747 return 0; 11748 } 11749 _ACEOF 11750 rm -f conftest.$ac_objext conftest$ac_exeext 11751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11752 (eval $ac_link) 2>conftest.er1 11753 ac_status=$? 11754 grep -v '^ *+' conftest.er1 >conftest.err 11755 rm -f conftest.er1 11756 cat conftest.err >&5 11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11758 (exit $ac_status); } && 11759 { ac_try='test -z "$ac_c_werror_flag" 11760 || test ! -s conftest.err' 11761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11762 (eval $ac_try) 2>&5 11763 ac_status=$? 11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11765 (exit $ac_status); }; } && 11766 { ac_try='test -s conftest$ac_exeext' 11767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11768 (eval $ac_try) 2>&5 11769 ac_status=$? 11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11771 (exit $ac_status); }; }; then 11772 eval "$as_ac_var=yes" 11773 else 11774 echo "$as_me: failed program was:" >&5 11775 sed 's/^/| /' conftest.$ac_ext >&5 11776 11777 eval "$as_ac_var=no" 11778 fi 11779 rm -f conftest.err conftest.$ac_objext \ 11780 conftest$ac_exeext conftest.$ac_ext 11781 fi 11782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 11783 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 11784 if test `eval echo '${'$as_ac_var'}'` = yes; then 11785 cat >>confdefs.h <<_ACEOF 11786 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11787 _ACEOF 11788 11789 fi 11790 done 11791 11792 11793 11794 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5 11795 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6 11796 if test "${ac_cv_have_decl__snprintf+set}" = set; then 11797 echo $ECHO_N "(cached) $ECHO_C" >&6 11798 else 11799 cat >conftest.$ac_ext <<_ACEOF 11800 /* confdefs.h. */ 11801 _ACEOF 11802 cat confdefs.h >>conftest.$ac_ext 11803 cat >>conftest.$ac_ext <<_ACEOF 11804 /* end confdefs.h. */ 11805 #include <stdio.h> 11806 int 11807 main () 11808 { 11809 11810 #ifndef _snprintf 11811 char *p = (char *) _snprintf; 11812 #endif 11813 11814 ; 11815 return 0; 11816 } 11817 _ACEOF 11818 rm -f conftest.$ac_objext 11819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11820 (eval $ac_compile) 2>conftest.er1 11821 ac_status=$? 11822 grep -v '^ *+' conftest.er1 >conftest.err 11823 rm -f conftest.er1 11824 cat conftest.err >&5 11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11826 (exit $ac_status); } && 11827 { ac_try='test -z "$ac_c_werror_flag" 11828 || test ! -s conftest.err' 11829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11830 (eval $ac_try) 2>&5 11831 ac_status=$? 11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11833 (exit $ac_status); }; } && 11834 { ac_try='test -s conftest.$ac_objext' 11835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11836 (eval $ac_try) 2>&5 11837 ac_status=$? 11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11839 (exit $ac_status); }; }; then 11840 ac_cv_have_decl__snprintf=yes 11841 else 11842 echo "$as_me: failed program was:" >&5 11843 sed 's/^/| /' conftest.$ac_ext >&5 11844 11845 ac_cv_have_decl__snprintf=no 11846 fi 11847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11848 fi 11849 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5 11850 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6 11851 if test $ac_cv_have_decl__snprintf = yes; then 11852 gt_value=1 11853 else 11854 gt_value=0 11855 fi 11856 11857 cat >>confdefs.h <<_ACEOF 11858 #define HAVE_DECL__SNPRINTF $gt_value 11859 _ACEOF 11860 11861 11862 11863 echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5 11864 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6 11865 if test "${ac_cv_have_decl__snwprintf+set}" = set; then 11866 echo $ECHO_N "(cached) $ECHO_C" >&6 11867 else 11868 cat >conftest.$ac_ext <<_ACEOF 11869 /* confdefs.h. */ 11870 _ACEOF 11871 cat confdefs.h >>conftest.$ac_ext 11872 cat >>conftest.$ac_ext <<_ACEOF 11873 /* end confdefs.h. */ 11874 #include <stdio.h> 11875 int 11876 main () 11877 { 11878 11879 #ifndef _snwprintf 11880 char *p = (char *) _snwprintf; 11881 #endif 11882 11883 ; 11884 return 0; 11885 } 11886 _ACEOF 11887 rm -f conftest.$ac_objext 11888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11889 (eval $ac_compile) 2>conftest.er1 11890 ac_status=$? 11891 grep -v '^ *+' conftest.er1 >conftest.err 11892 rm -f conftest.er1 11893 cat conftest.err >&5 11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11895 (exit $ac_status); } && 11896 { ac_try='test -z "$ac_c_werror_flag" 11897 || test ! -s conftest.err' 11898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11899 (eval $ac_try) 2>&5 11900 ac_status=$? 11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11902 (exit $ac_status); }; } && 11903 { ac_try='test -s conftest.$ac_objext' 11904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11905 (eval $ac_try) 2>&5 11906 ac_status=$? 11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11908 (exit $ac_status); }; }; then 11909 ac_cv_have_decl__snwprintf=yes 11910 else 11911 echo "$as_me: failed program was:" >&5 11912 sed 's/^/| /' conftest.$ac_ext >&5 11913 11914 ac_cv_have_decl__snwprintf=no 11915 fi 11916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11917 fi 11918 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5 11919 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6 11920 if test $ac_cv_have_decl__snwprintf = yes; then 11921 gt_value=1 11922 else 11923 gt_value=0 11924 fi 11925 11926 cat >>confdefs.h <<_ACEOF 11927 #define HAVE_DECL__SNWPRINTF $gt_value 11928 _ACEOF 11929 11930 11931 11932 11933 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5 11934 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6 11935 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then 11936 echo $ECHO_N "(cached) $ECHO_C" >&6 11937 else 11938 cat >conftest.$ac_ext <<_ACEOF 11939 /* confdefs.h. */ 11940 _ACEOF 11941 cat confdefs.h >>conftest.$ac_ext 11942 cat >>conftest.$ac_ext <<_ACEOF 11943 /* end confdefs.h. */ 11944 #include <stdio.h> 11945 int 11946 main () 11947 { 11948 11949 #ifndef feof_unlocked 11950 char *p = (char *) feof_unlocked; 11951 #endif 11952 11953 ; 11954 return 0; 11955 } 11956 _ACEOF 11957 rm -f conftest.$ac_objext 11958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11959 (eval $ac_compile) 2>conftest.er1 11960 ac_status=$? 11961 grep -v '^ *+' conftest.er1 >conftest.err 11962 rm -f conftest.er1 11963 cat conftest.err >&5 11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11965 (exit $ac_status); } && 11966 { ac_try='test -z "$ac_c_werror_flag" 11967 || test ! -s conftest.err' 11968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11969 (eval $ac_try) 2>&5 11970 ac_status=$? 11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11972 (exit $ac_status); }; } && 11973 { ac_try='test -s conftest.$ac_objext' 11974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11975 (eval $ac_try) 2>&5 11976 ac_status=$? 11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11978 (exit $ac_status); }; }; then 11979 ac_cv_have_decl_feof_unlocked=yes 11980 else 11981 echo "$as_me: failed program was:" >&5 11982 sed 's/^/| /' conftest.$ac_ext >&5 11983 11984 ac_cv_have_decl_feof_unlocked=no 11985 fi 11986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11987 fi 11988 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5 11989 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6 11990 if test $ac_cv_have_decl_feof_unlocked = yes; then 11991 gt_value=1 11992 else 11993 gt_value=0 11994 fi 11995 11996 cat >>confdefs.h <<_ACEOF 11997 #define HAVE_DECL_FEOF_UNLOCKED $gt_value 11998 _ACEOF 11999 12000 12001 12002 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5 12003 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6 12004 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then 12005 echo $ECHO_N "(cached) $ECHO_C" >&6 12006 else 12007 cat >conftest.$ac_ext <<_ACEOF 12008 /* confdefs.h. */ 12009 _ACEOF 12010 cat confdefs.h >>conftest.$ac_ext 12011 cat >>conftest.$ac_ext <<_ACEOF 12012 /* end confdefs.h. */ 12013 #include <stdio.h> 12014 int 12015 main () 12016 { 12017 12018 #ifndef fgets_unlocked 12019 char *p = (char *) fgets_unlocked; 12020 #endif 12021 12022 ; 12023 return 0; 12024 } 12025 _ACEOF 12026 rm -f conftest.$ac_objext 12027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12028 (eval $ac_compile) 2>conftest.er1 12029 ac_status=$? 12030 grep -v '^ *+' conftest.er1 >conftest.err 12031 rm -f conftest.er1 12032 cat conftest.err >&5 12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12034 (exit $ac_status); } && 12035 { ac_try='test -z "$ac_c_werror_flag" 12036 || test ! -s conftest.err' 12037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12038 (eval $ac_try) 2>&5 12039 ac_status=$? 12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12041 (exit $ac_status); }; } && 12042 { ac_try='test -s conftest.$ac_objext' 12043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12044 (eval $ac_try) 2>&5 12045 ac_status=$? 12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12047 (exit $ac_status); }; }; then 12048 ac_cv_have_decl_fgets_unlocked=yes 12049 else 12050 echo "$as_me: failed program was:" >&5 12051 sed 's/^/| /' conftest.$ac_ext >&5 12052 12053 ac_cv_have_decl_fgets_unlocked=no 12054 fi 12055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12056 fi 12057 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5 12058 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6 12059 if test $ac_cv_have_decl_fgets_unlocked = yes; then 12060 gt_value=1 12061 else 12062 gt_value=0 12063 fi 12064 12065 cat >>confdefs.h <<_ACEOF 12066 #define HAVE_DECL_FGETS_UNLOCKED $gt_value 12067 _ACEOF 12068 12069 12070 12071 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 12072 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6 12073 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then 12074 echo $ECHO_N "(cached) $ECHO_C" >&6 12075 else 12076 cat >conftest.$ac_ext <<_ACEOF 12077 /* confdefs.h. */ 12078 _ACEOF 12079 cat confdefs.h >>conftest.$ac_ext 12080 cat >>conftest.$ac_ext <<_ACEOF 12081 /* end confdefs.h. */ 12082 #include <stdio.h> 12083 int 12084 main () 12085 { 12086 12087 #ifndef getc_unlocked 12088 char *p = (char *) getc_unlocked; 12089 #endif 12090 12091 ; 12092 return 0; 12093 } 12094 _ACEOF 12095 rm -f conftest.$ac_objext 12096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12097 (eval $ac_compile) 2>conftest.er1 12098 ac_status=$? 12099 grep -v '^ *+' conftest.er1 >conftest.err 12100 rm -f conftest.er1 12101 cat conftest.err >&5 12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12103 (exit $ac_status); } && 12104 { ac_try='test -z "$ac_c_werror_flag" 12105 || test ! -s conftest.err' 12106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12107 (eval $ac_try) 2>&5 12108 ac_status=$? 12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12110 (exit $ac_status); }; } && 12111 { ac_try='test -s conftest.$ac_objext' 12112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12113 (eval $ac_try) 2>&5 12114 ac_status=$? 12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12116 (exit $ac_status); }; }; then 12117 ac_cv_have_decl_getc_unlocked=yes 12118 else 12119 echo "$as_me: failed program was:" >&5 12120 sed 's/^/| /' conftest.$ac_ext >&5 12121 12122 ac_cv_have_decl_getc_unlocked=no 12123 fi 12124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12125 fi 12126 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 12127 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6 12128 if test $ac_cv_have_decl_getc_unlocked = yes; then 12129 gt_value=1 12130 else 12131 gt_value=0 12132 fi 12133 12134 cat >>confdefs.h <<_ACEOF 12135 #define HAVE_DECL_GETC_UNLOCKED $gt_value 12136 _ACEOF 12137 12138 12139 12140 case $gt_cv_func_printf_posix in 12141 *yes) HAVE_POSIX_PRINTF=1 ;; 12142 *) HAVE_POSIX_PRINTF=0 ;; 12143 esac 12144 12145 if test "$ac_cv_func_asprintf" = yes; then 12146 HAVE_ASPRINTF=1 12147 else 12148 HAVE_ASPRINTF=0 12149 fi 12150 12151 if test "$ac_cv_func_snprintf" = yes; then 12152 HAVE_SNPRINTF=1 12153 else 12154 HAVE_SNPRINTF=0 12155 fi 12156 12157 if test "$ac_cv_func_wprintf" = yes; then 12158 HAVE_WPRINTF=1 12159 else 12160 HAVE_WPRINTF=0 12161 fi 12162 12163 12164 12165 12166 12167 12168 12169 am_save_CPPFLAGS="$CPPFLAGS" 12170 12171 for element in $INCICONV; do 12172 haveit= 12173 for x in $CPPFLAGS; do 12174 12175 acl_save_prefix="$prefix" 12176 prefix="$acl_final_prefix" 12177 acl_save_exec_prefix="$exec_prefix" 12178 exec_prefix="$acl_final_exec_prefix" 12179 eval x=\"$x\" 12180 exec_prefix="$acl_save_exec_prefix" 12181 prefix="$acl_save_prefix" 12182 12183 if test "X$x" = "X$element"; then 12184 haveit=yes 12185 break 12186 fi 12187 done 12188 if test -z "$haveit"; then 12189 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 12190 fi 12191 done 12192 12193 12194 echo "$as_me:$LINENO: checking for iconv" >&5 12195 echo $ECHO_N "checking for iconv... $ECHO_C" >&6 12196 if test "${am_cv_func_iconv+set}" = set; then 12197 echo $ECHO_N "(cached) $ECHO_C" >&6 12198 else 12199 12200 am_cv_func_iconv="no, consider installing GNU libiconv" 12201 am_cv_lib_iconv=no 12202 cat >conftest.$ac_ext <<_ACEOF 12203 /* confdefs.h. */ 12204 _ACEOF 12205 cat confdefs.h >>conftest.$ac_ext 12206 cat >>conftest.$ac_ext <<_ACEOF 12207 /* end confdefs.h. */ 12208 #include <stdlib.h> 12209 #include <iconv.h> 12210 int 12211 main () 12212 { 12213 iconv_t cd = iconv_open("",""); 12214 iconv(cd,NULL,NULL,NULL,NULL); 12215 iconv_close(cd); 12216 ; 12217 return 0; 12218 } 12219 _ACEOF 12220 rm -f conftest.$ac_objext conftest$ac_exeext 12221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12222 (eval $ac_link) 2>conftest.er1 12223 ac_status=$? 12224 grep -v '^ *+' conftest.er1 >conftest.err 12225 rm -f conftest.er1 12226 cat conftest.err >&5 12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12228 (exit $ac_status); } && 12229 { ac_try='test -z "$ac_c_werror_flag" 12230 || test ! -s conftest.err' 12231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12232 (eval $ac_try) 2>&5 12233 ac_status=$? 12234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12235 (exit $ac_status); }; } && 12236 { ac_try='test -s conftest$ac_exeext' 12237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12238 (eval $ac_try) 2>&5 12239 ac_status=$? 12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12241 (exit $ac_status); }; }; then 12242 am_cv_func_iconv=yes 12243 else 12244 echo "$as_me: failed program was:" >&5 12245 sed 's/^/| /' conftest.$ac_ext >&5 12246 12247 fi 12248 rm -f conftest.err conftest.$ac_objext \ 12249 conftest$ac_exeext conftest.$ac_ext 12250 if test "$am_cv_func_iconv" != yes; then 12251 am_save_LIBS="$LIBS" 12252 LIBS="$LIBS $LIBICONV" 12253 cat >conftest.$ac_ext <<_ACEOF 12254 /* confdefs.h. */ 12255 _ACEOF 12256 cat confdefs.h >>conftest.$ac_ext 12257 cat >>conftest.$ac_ext <<_ACEOF 12258 /* end confdefs.h. */ 12259 #include <stdlib.h> 12260 #include <iconv.h> 12261 int 12262 main () 12263 { 12264 iconv_t cd = iconv_open("",""); 12265 iconv(cd,NULL,NULL,NULL,NULL); 12266 iconv_close(cd); 12267 ; 12268 return 0; 12269 } 12270 _ACEOF 12271 rm -f conftest.$ac_objext conftest$ac_exeext 12272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12273 (eval $ac_link) 2>conftest.er1 12274 ac_status=$? 12275 grep -v '^ *+' conftest.er1 >conftest.err 12276 rm -f conftest.er1 12277 cat conftest.err >&5 12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12279 (exit $ac_status); } && 12280 { ac_try='test -z "$ac_c_werror_flag" 12281 || test ! -s conftest.err' 12282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12283 (eval $ac_try) 2>&5 12284 ac_status=$? 12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12286 (exit $ac_status); }; } && 12287 { ac_try='test -s conftest$ac_exeext' 12288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12289 (eval $ac_try) 2>&5 12290 ac_status=$? 12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12292 (exit $ac_status); }; }; then 12293 am_cv_lib_iconv=yes 12294 am_cv_func_iconv=yes 12295 else 12296 echo "$as_me: failed program was:" >&5 12297 sed 's/^/| /' conftest.$ac_ext >&5 12298 12299 fi 12300 rm -f conftest.err conftest.$ac_objext \ 12301 conftest$ac_exeext conftest.$ac_ext 12302 LIBS="$am_save_LIBS" 12303 fi 12304 12305 fi 12306 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 12307 echo "${ECHO_T}$am_cv_func_iconv" >&6 12308 if test "$am_cv_func_iconv" = yes; then 12309 12310 cat >>confdefs.h <<\_ACEOF 12311 #define HAVE_ICONV 1 12312 _ACEOF 12313 12314 fi 12315 if test "$am_cv_lib_iconv" = yes; then 12316 echo "$as_me:$LINENO: checking how to link with libiconv" >&5 12317 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6 12318 echo "$as_me:$LINENO: result: $LIBICONV" >&5 12319 echo "${ECHO_T}$LIBICONV" >&6 12320 else 12321 CPPFLAGS="$am_save_CPPFLAGS" 12322 LIBICONV= 12323 LTLIBICONV= 12324 fi 12325 12326 12327 12328 if test "$am_cv_func_iconv" = yes; then 12329 echo "$as_me:$LINENO: checking for iconv declaration" >&5 12330 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 12331 if test "${am_cv_proto_iconv+set}" = set; then 12332 echo $ECHO_N "(cached) $ECHO_C" >&6 12333 else 12334 12335 cat >conftest.$ac_ext <<_ACEOF 12336 /* confdefs.h. */ 12337 _ACEOF 12338 cat confdefs.h >>conftest.$ac_ext 12339 cat >>conftest.$ac_ext <<_ACEOF 12340 /* end confdefs.h. */ 12341 12342 #include <stdlib.h> 12343 #include <iconv.h> 12344 extern 12345 #ifdef __cplusplus 12346 "C" 12347 #endif 12348 #if defined(__STDC__) || defined(__cplusplus) 12349 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 12350 #else 12351 size_t iconv(); 12352 #endif 12353 12354 int 12355 main () 12356 { 12357 12358 ; 12359 return 0; 12360 } 12361 _ACEOF 12362 rm -f conftest.$ac_objext 12363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12364 (eval $ac_compile) 2>conftest.er1 12365 ac_status=$? 12366 grep -v '^ *+' conftest.er1 >conftest.err 12367 rm -f conftest.er1 12368 cat conftest.err >&5 12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12370 (exit $ac_status); } && 12371 { ac_try='test -z "$ac_c_werror_flag" 12372 || test ! -s conftest.err' 12373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12374 (eval $ac_try) 2>&5 12375 ac_status=$? 12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12377 (exit $ac_status); }; } && 12378 { ac_try='test -s conftest.$ac_objext' 12379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12380 (eval $ac_try) 2>&5 12381 ac_status=$? 12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12383 (exit $ac_status); }; }; then 12384 am_cv_proto_iconv_arg1="" 12385 else 12386 echo "$as_me: failed program was:" >&5 12387 sed 's/^/| /' conftest.$ac_ext >&5 12388 12389 am_cv_proto_iconv_arg1="const" 12390 fi 12391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12392 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 12393 fi 12394 12395 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 12396 echo "$as_me:$LINENO: result: ${ac_t:- 12397 }$am_cv_proto_iconv" >&5 12398 echo "${ECHO_T}${ac_t:- 12399 }$am_cv_proto_iconv" >&6 12400 12401 cat >>confdefs.h <<_ACEOF 12402 #define ICONV_CONST $am_cv_proto_iconv_arg1 12403 _ACEOF 12404 12405 fi 12406 12407 12408 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 12409 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 12410 if test "${am_cv_langinfo_codeset+set}" = set; then 12411 echo $ECHO_N "(cached) $ECHO_C" >&6 12412 else 12413 cat >conftest.$ac_ext <<_ACEOF 12414 /* confdefs.h. */ 12415 _ACEOF 12416 cat confdefs.h >>conftest.$ac_ext 12417 cat >>conftest.$ac_ext <<_ACEOF 12418 /* end confdefs.h. */ 12419 #include <langinfo.h> 12420 int 12421 main () 12422 { 12423 char* cs = nl_langinfo(CODESET); 12424 ; 12425 return 0; 12426 } 12427 _ACEOF 12428 rm -f conftest.$ac_objext conftest$ac_exeext 12429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12430 (eval $ac_link) 2>conftest.er1 12431 ac_status=$? 12432 grep -v '^ *+' conftest.er1 >conftest.err 12433 rm -f conftest.er1 12434 cat conftest.err >&5 12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12436 (exit $ac_status); } && 12437 { ac_try='test -z "$ac_c_werror_flag" 12438 || test ! -s conftest.err' 12439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12440 (eval $ac_try) 2>&5 12441 ac_status=$? 12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12443 (exit $ac_status); }; } && 12444 { ac_try='test -s conftest$ac_exeext' 12445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12446 (eval $ac_try) 2>&5 12447 ac_status=$? 12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12449 (exit $ac_status); }; }; then 12450 am_cv_langinfo_codeset=yes 12451 else 12452 echo "$as_me: failed program was:" >&5 12453 sed 's/^/| /' conftest.$ac_ext >&5 12454 12455 am_cv_langinfo_codeset=no 12456 fi 12457 rm -f conftest.err conftest.$ac_objext \ 12458 conftest$ac_exeext conftest.$ac_ext 12459 12460 fi 12461 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 12462 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 12463 if test $am_cv_langinfo_codeset = yes; then 12464 12465 cat >>confdefs.h <<\_ACEOF 12466 #define HAVE_LANGINFO_CODESET 1 12467 _ACEOF 12468 12469 fi 12470 12471 if test $ac_cv_header_locale_h = yes; then 12472 12473 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 12474 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 12475 if test "${am_cv_val_LC_MESSAGES+set}" = set; then 12476 echo $ECHO_N "(cached) $ECHO_C" >&6 12477 else 12478 cat >conftest.$ac_ext <<_ACEOF 12479 /* confdefs.h. */ 12480 _ACEOF 12481 cat confdefs.h >>conftest.$ac_ext 12482 cat >>conftest.$ac_ext <<_ACEOF 12483 /* end confdefs.h. */ 12484 #include <locale.h> 12485 int 12486 main () 12487 { 12488 return LC_MESSAGES 12489 ; 12490 return 0; 12491 } 12492 _ACEOF 12493 rm -f conftest.$ac_objext conftest$ac_exeext 12494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12495 (eval $ac_link) 2>conftest.er1 12496 ac_status=$? 12497 grep -v '^ *+' conftest.er1 >conftest.err 12498 rm -f conftest.er1 12499 cat conftest.err >&5 12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12501 (exit $ac_status); } && 12502 { ac_try='test -z "$ac_c_werror_flag" 12503 || test ! -s conftest.err' 12504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12505 (eval $ac_try) 2>&5 12506 ac_status=$? 12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12508 (exit $ac_status); }; } && 12509 { ac_try='test -s conftest$ac_exeext' 12510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12511 (eval $ac_try) 2>&5 12512 ac_status=$? 12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12514 (exit $ac_status); }; }; then 12515 am_cv_val_LC_MESSAGES=yes 12516 else 12517 echo "$as_me: failed program was:" >&5 12518 sed 's/^/| /' conftest.$ac_ext >&5 12519 12520 am_cv_val_LC_MESSAGES=no 12521 fi 12522 rm -f conftest.err conftest.$ac_objext \ 12523 conftest$ac_exeext conftest.$ac_ext 12524 fi 12525 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 12526 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 12527 if test $am_cv_val_LC_MESSAGES = yes; then 12528 12529 cat >>confdefs.h <<\_ACEOF 12530 #define HAVE_LC_MESSAGES 1 12531 _ACEOF 12532 12533 fi 12534 12535 fi 12536 12537 for ac_prog in bison 12538 do 12539 # Extract the first word of "$ac_prog", so it can be a program name with args. 12540 set dummy $ac_prog; ac_word=$2 12541 echo "$as_me:$LINENO: checking for $ac_word" >&5 12542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 12543 if test "${ac_cv_prog_INTLBISON+set}" = set; then 12544 echo $ECHO_N "(cached) $ECHO_C" >&6 12545 else 12546 if test -n "$INTLBISON"; then 12547 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. 12548 else 12549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12550 for as_dir in $PATH 12551 do 12552 IFS=$as_save_IFS 12553 test -z "$as_dir" && as_dir=. 12554 for ac_exec_ext in '' $ac_executable_extensions; do 12555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12556 ac_cv_prog_INTLBISON="$ac_prog" 12557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12558 break 2 12559 fi 12560 done 12561 done 12562 12563 fi 12564 fi 12565 INTLBISON=$ac_cv_prog_INTLBISON 12566 if test -n "$INTLBISON"; then 12567 echo "$as_me:$LINENO: result: $INTLBISON" >&5 12568 echo "${ECHO_T}$INTLBISON" >&6 12569 else 12570 echo "$as_me:$LINENO: result: no" >&5 12571 echo "${ECHO_T}no" >&6 12572 fi 12573 12574 test -n "$INTLBISON" && break 12575 done 12576 12577 if test -z "$INTLBISON"; then 12578 ac_verc_fail=yes 12579 else 12580 echo "$as_me:$LINENO: checking version of bison" >&5 12581 echo $ECHO_N "checking version of bison... $ECHO_C" >&6 12582 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` 12583 case $ac_prog_version in 12584 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 12585 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) 12586 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; 12587 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; 12588 esac 12589 echo "$as_me:$LINENO: result: $ac_prog_version" >&5 12590 echo "${ECHO_T}$ac_prog_version" >&6 12591 fi 12592 if test $ac_verc_fail = yes; then 12593 INTLBISON=: 12594 fi 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 echo "$as_me:$LINENO: checking whether NLS is requested" >&5 12612 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 12613 # Check whether --enable-nls or --disable-nls was given. 12614 if test "${enable_nls+set}" = set; then 12615 enableval="$enable_nls" 12616 USE_NLS=$enableval 12617 else 12618 USE_NLS=yes 12619 fi; 12620 echo "$as_me:$LINENO: result: $USE_NLS" >&5 12621 echo "${ECHO_T}$USE_NLS" >&6 12622 12623 12624 12625 12626 BUILD_INCLUDED_LIBINTL=no 12627 USE_INCLUDED_LIBINTL=no 12628 12629 LIBINTL= 12630 LTLIBINTL= 12631 POSUB= 12632 12633 if test "$USE_NLS" = "yes"; then 12634 gt_use_preinstalled_gnugettext=no 12635 12636 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 12637 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 12638 12639 # Check whether --with-included-gettext or --without-included-gettext was given. 12640 if test "${with_included_gettext+set}" = set; then 12641 withval="$with_included_gettext" 12642 nls_cv_force_use_gnu_gettext=$withval 12643 else 12644 nls_cv_force_use_gnu_gettext=no 12645 fi; 12646 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 12647 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 12648 12649 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 12650 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 12651 12652 12653 12654 12655 12656 12657 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 12658 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6 12659 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then 12660 echo $ECHO_N "(cached) $ECHO_C" >&6 12661 else 12662 cat >conftest.$ac_ext <<_ACEOF 12663 /* confdefs.h. */ 12664 _ACEOF 12665 cat confdefs.h >>conftest.$ac_ext 12666 cat >>conftest.$ac_ext <<_ACEOF 12667 /* end confdefs.h. */ 12668 #include <libintl.h> 12669 extern int _nl_msg_cat_cntr; 12670 extern int *_nl_domain_bindings; 12671 int 12672 main () 12673 { 12674 bindtextdomain ("", ""); 12675 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings 12676 ; 12677 return 0; 12678 } 12679 _ACEOF 12680 rm -f conftest.$ac_objext conftest$ac_exeext 12681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12682 (eval $ac_link) 2>conftest.er1 12683 ac_status=$? 12684 grep -v '^ *+' conftest.er1 >conftest.err 12685 rm -f conftest.er1 12686 cat conftest.err >&5 12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12688 (exit $ac_status); } && 12689 { ac_try='test -z "$ac_c_werror_flag" 12690 || test ! -s conftest.err' 12691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12692 (eval $ac_try) 2>&5 12693 ac_status=$? 12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12695 (exit $ac_status); }; } && 12696 { ac_try='test -s conftest$ac_exeext' 12697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12698 (eval $ac_try) 2>&5 12699 ac_status=$? 12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12701 (exit $ac_status); }; }; then 12702 gt_cv_func_gnugettext1_libc=yes 12703 else 12704 echo "$as_me: failed program was:" >&5 12705 sed 's/^/| /' conftest.$ac_ext >&5 12706 12707 gt_cv_func_gnugettext1_libc=no 12708 fi 12709 rm -f conftest.err conftest.$ac_objext \ 12710 conftest$ac_exeext conftest.$ac_ext 12711 fi 12712 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 12713 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6 12714 12715 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then 12716 12717 12718 12719 use_additional=yes 12720 12721 acl_save_prefix="$prefix" 12722 prefix="$acl_final_prefix" 12723 acl_save_exec_prefix="$exec_prefix" 12724 exec_prefix="$acl_final_exec_prefix" 12725 12726 eval additional_includedir=\"$includedir\" 12727 eval additional_libdir=\"$libdir\" 12728 12729 exec_prefix="$acl_save_exec_prefix" 12730 prefix="$acl_save_prefix" 12731 12732 12733 # Check whether --with-libintl-prefix or --without-libintl-prefix was given. 12734 if test "${with_libintl_prefix+set}" = set; then 12735 withval="$with_libintl_prefix" 12736 12737 if test "X$withval" = "Xno"; then 12738 use_additional=no 12739 else 12740 if test "X$withval" = "X"; then 12741 12742 acl_save_prefix="$prefix" 12743 prefix="$acl_final_prefix" 12744 acl_save_exec_prefix="$exec_prefix" 12745 exec_prefix="$acl_final_exec_prefix" 12746 12747 eval additional_includedir=\"$includedir\" 12748 eval additional_libdir=\"$libdir\" 12749 12750 exec_prefix="$acl_save_exec_prefix" 12751 prefix="$acl_save_prefix" 12752 12753 else 12754 additional_includedir="$withval/include" 12755 additional_libdir="$withval/lib" 12756 fi 12757 fi 12758 12759 fi; 12760 LIBINTL= 12761 LTLIBINTL= 12762 INCINTL= 12763 rpathdirs= 12764 ltrpathdirs= 12765 names_already_handled= 12766 names_next_round='intl ' 12767 while test -n "$names_next_round"; do 12768 names_this_round="$names_next_round" 12769 names_next_round= 12770 for name in $names_this_round; do 12771 already_handled= 12772 for n in $names_already_handled; do 12773 if test "$n" = "$name"; then 12774 already_handled=yes 12775 break 12776 fi 12777 done 12778 if test -z "$already_handled"; then 12779 names_already_handled="$names_already_handled $name" 12780 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 12781 eval value=\"\$HAVE_LIB$uppername\" 12782 if test -n "$value"; then 12783 if test "$value" = yes; then 12784 eval value=\"\$LIB$uppername\" 12785 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 12786 eval value=\"\$LTLIB$uppername\" 12787 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 12788 else 12789 : 12790 fi 12791 else 12792 found_dir= 12793 found_la= 12794 found_so= 12795 found_a= 12796 if test $use_additional = yes; then 12797 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 12798 found_dir="$additional_libdir" 12799 found_so="$additional_libdir/lib$name.$shlibext" 12800 if test -f "$additional_libdir/lib$name.la"; then 12801 found_la="$additional_libdir/lib$name.la" 12802 fi 12803 else 12804 if test -f "$additional_libdir/lib$name.$libext"; then 12805 found_dir="$additional_libdir" 12806 found_a="$additional_libdir/lib$name.$libext" 12807 if test -f "$additional_libdir/lib$name.la"; then 12808 found_la="$additional_libdir/lib$name.la" 12809 fi 12810 fi 12811 fi 12812 fi 12813 if test "X$found_dir" = "X"; then 12814 for x in $LDFLAGS $LTLIBINTL; do 12815 12816 acl_save_prefix="$prefix" 12817 prefix="$acl_final_prefix" 12818 acl_save_exec_prefix="$exec_prefix" 12819 exec_prefix="$acl_final_exec_prefix" 12820 eval x=\"$x\" 12821 exec_prefix="$acl_save_exec_prefix" 12822 prefix="$acl_save_prefix" 12823 12824 case "$x" in 12825 -L*) 12826 dir=`echo "X$x" | sed -e 's/^X-L//'` 12827 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 12828 found_dir="$dir" 12829 found_so="$dir/lib$name.$shlibext" 12830 if test -f "$dir/lib$name.la"; then 12831 found_la="$dir/lib$name.la" 12832 fi 12833 else 12834 if test -f "$dir/lib$name.$libext"; then 12835 found_dir="$dir" 12836 found_a="$dir/lib$name.$libext" 12837 if test -f "$dir/lib$name.la"; then 12838 found_la="$dir/lib$name.la" 12839 fi 12840 fi 12841 fi 12842 ;; 12843 esac 12844 if test "X$found_dir" != "X"; then 12845 break 12846 fi 12847 done 12848 fi 12849 if test "X$found_dir" != "X"; then 12850 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 12851 if test "X$found_so" != "X"; then 12852 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 12853 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 12854 else 12855 haveit= 12856 for x in $ltrpathdirs; do 12857 if test "X$x" = "X$found_dir"; then 12858 haveit=yes 12859 break 12860 fi 12861 done 12862 if test -z "$haveit"; then 12863 ltrpathdirs="$ltrpathdirs $found_dir" 12864 fi 12865 if test "$hardcode_direct" = yes; then 12866 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 12867 else 12868 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 12869 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 12870 haveit= 12871 for x in $rpathdirs; do 12872 if test "X$x" = "X$found_dir"; then 12873 haveit=yes 12874 break 12875 fi 12876 done 12877 if test -z "$haveit"; then 12878 rpathdirs="$rpathdirs $found_dir" 12879 fi 12880 else 12881 haveit= 12882 for x in $LDFLAGS $LIBINTL; do 12883 12884 acl_save_prefix="$prefix" 12885 prefix="$acl_final_prefix" 12886 acl_save_exec_prefix="$exec_prefix" 12887 exec_prefix="$acl_final_exec_prefix" 12888 eval x=\"$x\" 12889 exec_prefix="$acl_save_exec_prefix" 12890 prefix="$acl_save_prefix" 12891 12892 if test "X$x" = "X-L$found_dir"; then 12893 haveit=yes 12894 break 12895 fi 12896 done 12897 if test -z "$haveit"; then 12898 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 12899 fi 12900 if test "$hardcode_minus_L" != no; then 12901 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 12902 else 12903 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 12904 fi 12905 fi 12906 fi 12907 fi 12908 else 12909 if test "X$found_a" != "X"; then 12910 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 12911 else 12912 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 12913 fi 12914 fi 12915 additional_includedir= 12916 case "$found_dir" in 12917 */lib | */lib/) 12918 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 12919 additional_includedir="$basedir/include" 12920 ;; 12921 esac 12922 if test "X$additional_includedir" != "X"; then 12923 if test "X$additional_includedir" != "X/usr/include"; then 12924 haveit= 12925 if test "X$additional_includedir" = "X/usr/local/include"; then 12926 if test -n "$GCC"; then 12927 case $host_os in 12928 linux*) haveit=yes;; 12929 esac 12930 fi 12931 fi 12932 if test -z "$haveit"; then 12933 for x in $CPPFLAGS $INCINTL; do 12934 12935 acl_save_prefix="$prefix" 12936 prefix="$acl_final_prefix" 12937 acl_save_exec_prefix="$exec_prefix" 12938 exec_prefix="$acl_final_exec_prefix" 12939 eval x=\"$x\" 12940 exec_prefix="$acl_save_exec_prefix" 12941 prefix="$acl_save_prefix" 12942 12943 if test "X$x" = "X-I$additional_includedir"; then 12944 haveit=yes 12945 break 12946 fi 12947 done 12948 if test -z "$haveit"; then 12949 if test -d "$additional_includedir"; then 12950 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 12951 fi 12952 fi 12953 fi 12954 fi 12955 fi 12956 if test -n "$found_la"; then 12957 save_libdir="$libdir" 12958 case "$found_la" in 12959 */* | *\\*) . "$found_la" ;; 12960 *) . "./$found_la" ;; 12961 esac 12962 libdir="$save_libdir" 12963 for dep in $dependency_libs; do 12964 case "$dep" in 12965 -L*) 12966 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 12967 if test "X$additional_libdir" != "X/usr/lib"; then 12968 haveit= 12969 if test "X$additional_libdir" = "X/usr/local/lib"; then 12970 if test -n "$GCC"; then 12971 case $host_os in 12972 linux*) haveit=yes;; 12973 esac 12974 fi 12975 fi 12976 if test -z "$haveit"; then 12977 haveit= 12978 for x in $LDFLAGS $LIBINTL; do 12979 12980 acl_save_prefix="$prefix" 12981 prefix="$acl_final_prefix" 12982 acl_save_exec_prefix="$exec_prefix" 12983 exec_prefix="$acl_final_exec_prefix" 12984 eval x=\"$x\" 12985 exec_prefix="$acl_save_exec_prefix" 12986 prefix="$acl_save_prefix" 12987 12988 if test "X$x" = "X-L$additional_libdir"; then 12989 haveit=yes 12990 break 12991 fi 12992 done 12993 if test -z "$haveit"; then 12994 if test -d "$additional_libdir"; then 12995 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 12996 fi 12997 fi 12998 haveit= 12999 for x in $LDFLAGS $LTLIBINTL; do 13000 13001 acl_save_prefix="$prefix" 13002 prefix="$acl_final_prefix" 13003 acl_save_exec_prefix="$exec_prefix" 13004 exec_prefix="$acl_final_exec_prefix" 13005 eval x=\"$x\" 13006 exec_prefix="$acl_save_exec_prefix" 13007 prefix="$acl_save_prefix" 13008 13009 if test "X$x" = "X-L$additional_libdir"; then 13010 haveit=yes 13011 break 13012 fi 13013 done 13014 if test -z "$haveit"; then 13015 if test -d "$additional_libdir"; then 13016 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 13017 fi 13018 fi 13019 fi 13020 fi 13021 ;; 13022 -R*) 13023 dir=`echo "X$dep" | sed -e 's/^X-R//'` 13024 if test "$enable_rpath" != no; then 13025 haveit= 13026 for x in $rpathdirs; do 13027 if test "X$x" = "X$dir"; then 13028 haveit=yes 13029 break 13030 fi 13031 done 13032 if test -z "$haveit"; then 13033 rpathdirs="$rpathdirs $dir" 13034 fi 13035 haveit= 13036 for x in $ltrpathdirs; do 13037 if test "X$x" = "X$dir"; then 13038 haveit=yes 13039 break 13040 fi 13041 done 13042 if test -z "$haveit"; then 13043 ltrpathdirs="$ltrpathdirs $dir" 13044 fi 13045 fi 13046 ;; 13047 -l*) 13048 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 13049 ;; 13050 *.la) 13051 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 13052 ;; 13053 *) 13054 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 13055 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 13056 ;; 13057 esac 13058 done 13059 fi 13060 else 13061 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 13062 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 13063 fi 13064 fi 13065 fi 13066 done 13067 done 13068 if test "X$rpathdirs" != "X"; then 13069 if test -n "$hardcode_libdir_separator"; then 13070 alldirs= 13071 for found_dir in $rpathdirs; do 13072 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 13073 done 13074 acl_save_libdir="$libdir" 13075 libdir="$alldirs" 13076 eval flag=\"$hardcode_libdir_flag_spec\" 13077 libdir="$acl_save_libdir" 13078 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 13079 else 13080 for found_dir in $rpathdirs; do 13081 acl_save_libdir="$libdir" 13082 libdir="$found_dir" 13083 eval flag=\"$hardcode_libdir_flag_spec\" 13084 libdir="$acl_save_libdir" 13085 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 13086 done 13087 fi 13088 fi 13089 if test "X$ltrpathdirs" != "X"; then 13090 for found_dir in $ltrpathdirs; do 13091 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 13092 done 13093 fi 13094 13095 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 13096 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6 13097 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then 13098 echo $ECHO_N "(cached) $ECHO_C" >&6 13099 else 13100 gt_save_CPPFLAGS="$CPPFLAGS" 13101 CPPFLAGS="$CPPFLAGS $INCINTL" 13102 gt_save_LIBS="$LIBS" 13103 LIBS="$LIBS $LIBINTL" 13104 cat >conftest.$ac_ext <<_ACEOF 13105 /* confdefs.h. */ 13106 _ACEOF 13107 cat confdefs.h >>conftest.$ac_ext 13108 cat >>conftest.$ac_ext <<_ACEOF 13109 /* end confdefs.h. */ 13110 #include <libintl.h> 13111 extern int _nl_msg_cat_cntr; 13112 extern 13113 #ifdef __cplusplus 13114 "C" 13115 #endif 13116 const char *_nl_expand_alias (); 13117 int 13118 main () 13119 { 13120 bindtextdomain ("", ""); 13121 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) 13122 ; 13123 return 0; 13124 } 13125 _ACEOF 13126 rm -f conftest.$ac_objext conftest$ac_exeext 13127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13128 (eval $ac_link) 2>conftest.er1 13129 ac_status=$? 13130 grep -v '^ *+' conftest.er1 >conftest.err 13131 rm -f conftest.er1 13132 cat conftest.err >&5 13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13134 (exit $ac_status); } && 13135 { ac_try='test -z "$ac_c_werror_flag" 13136 || test ! -s conftest.err' 13137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13138 (eval $ac_try) 2>&5 13139 ac_status=$? 13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13141 (exit $ac_status); }; } && 13142 { ac_try='test -s conftest$ac_exeext' 13143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13144 (eval $ac_try) 2>&5 13145 ac_status=$? 13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13147 (exit $ac_status); }; }; then 13148 gt_cv_func_gnugettext1_libintl=yes 13149 else 13150 echo "$as_me: failed program was:" >&5 13151 sed 's/^/| /' conftest.$ac_ext >&5 13152 13153 gt_cv_func_gnugettext1_libintl=no 13154 fi 13155 rm -f conftest.err conftest.$ac_objext \ 13156 conftest$ac_exeext conftest.$ac_ext 13157 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then 13158 LIBS="$LIBS $LIBICONV" 13159 cat >conftest.$ac_ext <<_ACEOF 13160 /* confdefs.h. */ 13161 _ACEOF 13162 cat confdefs.h >>conftest.$ac_ext 13163 cat >>conftest.$ac_ext <<_ACEOF 13164 /* end confdefs.h. */ 13165 #include <libintl.h> 13166 extern int _nl_msg_cat_cntr; 13167 extern 13168 #ifdef __cplusplus 13169 "C" 13170 #endif 13171 const char *_nl_expand_alias (); 13172 int 13173 main () 13174 { 13175 bindtextdomain ("", ""); 13176 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) 13177 ; 13178 return 0; 13179 } 13180 _ACEOF 13181 rm -f conftest.$ac_objext conftest$ac_exeext 13182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13183 (eval $ac_link) 2>conftest.er1 13184 ac_status=$? 13185 grep -v '^ *+' conftest.er1 >conftest.err 13186 rm -f conftest.er1 13187 cat conftest.err >&5 13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13189 (exit $ac_status); } && 13190 { ac_try='test -z "$ac_c_werror_flag" 13191 || test ! -s conftest.err' 13192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13193 (eval $ac_try) 2>&5 13194 ac_status=$? 13195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13196 (exit $ac_status); }; } && 13197 { ac_try='test -s conftest$ac_exeext' 13198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13199 (eval $ac_try) 2>&5 13200 ac_status=$? 13201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13202 (exit $ac_status); }; }; then 13203 LIBINTL="$LIBINTL $LIBICONV" 13204 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 13205 gt_cv_func_gnugettext1_libintl=yes 13206 13207 else 13208 echo "$as_me: failed program was:" >&5 13209 sed 's/^/| /' conftest.$ac_ext >&5 13210 13211 fi 13212 rm -f conftest.err conftest.$ac_objext \ 13213 conftest$ac_exeext conftest.$ac_ext 13214 fi 13215 CPPFLAGS="$gt_save_CPPFLAGS" 13216 LIBS="$gt_save_LIBS" 13217 fi 13218 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 13219 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6 13220 fi 13221 13222 if test "$gt_cv_func_gnugettext1_libc" = "yes" \ 13223 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ 13224 && test "$PACKAGE" != gettext-runtime \ 13225 && test "$PACKAGE" != gettext-tools; }; then 13226 gt_use_preinstalled_gnugettext=yes 13227 else 13228 LIBINTL= 13229 LTLIBINTL= 13230 INCINTL= 13231 fi 13232 13233 13234 if test "$gt_use_preinstalled_gnugettext" != "yes"; then 13235 nls_cv_use_gnu_gettext=yes 13236 fi 13237 fi 13238 13239 if test "$nls_cv_use_gnu_gettext" = "yes"; then 13240 BUILD_INCLUDED_LIBINTL=yes 13241 USE_INCLUDED_LIBINTL=yes 13242 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" 13243 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" 13244 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` 13245 fi 13246 13247 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 13248 || test "$nls_cv_use_gnu_gettext" = "yes"; then 13249 CATOBJEXT=.gmo 13250 fi 13251 13252 13253 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 13254 || test "$nls_cv_use_gnu_gettext" = "yes"; then 13255 13256 cat >>confdefs.h <<\_ACEOF 13257 #define ENABLE_NLS 1 13258 _ACEOF 13259 13260 else 13261 USE_NLS=no 13262 fi 13263 fi 13264 13265 echo "$as_me:$LINENO: checking whether to use NLS" >&5 13266 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6 13267 echo "$as_me:$LINENO: result: $USE_NLS" >&5 13268 echo "${ECHO_T}$USE_NLS" >&6 13269 if test "$USE_NLS" = "yes"; then 13270 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 13271 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6 13272 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 13273 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 13274 gt_source="external libintl" 13275 else 13276 gt_source="libc" 13277 fi 13278 else 13279 gt_source="included intl directory" 13280 fi 13281 echo "$as_me:$LINENO: result: $gt_source" >&5 13282 echo "${ECHO_T}$gt_source" >&6 13283 fi 13284 13285 if test "$USE_NLS" = "yes"; then 13286 13287 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 13288 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 13289 echo "$as_me:$LINENO: checking how to link with libintl" >&5 13290 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6 13291 echo "$as_me:$LINENO: result: $LIBINTL" >&5 13292 echo "${ECHO_T}$LIBINTL" >&6 13293 13294 for element in $INCINTL; do 13295 haveit= 13296 for x in $CPPFLAGS; do 13297 13298 acl_save_prefix="$prefix" 13299 prefix="$acl_final_prefix" 13300 acl_save_exec_prefix="$exec_prefix" 13301 exec_prefix="$acl_final_exec_prefix" 13302 eval x=\"$x\" 13303 exec_prefix="$acl_save_exec_prefix" 13304 prefix="$acl_save_prefix" 13305 13306 if test "X$x" = "X$element"; then 13307 haveit=yes 13308 break 13309 fi 13310 done 13311 if test -z "$haveit"; then 13312 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 13313 fi 13314 done 13315 13316 fi 13317 13318 13319 cat >>confdefs.h <<\_ACEOF 13320 #define HAVE_GETTEXT 1 13321 _ACEOF 13322 13323 13324 cat >>confdefs.h <<\_ACEOF 13325 #define HAVE_DCGETTEXT 1 13326 _ACEOF 13327 13328 fi 13329 13330 POSUB=po 13331 fi 13332 13333 13334 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then 13335 BUILD_INCLUDED_LIBINTL=yes 13336 fi 13337 13338 13339 13340 13341 13342 nls_cv_header_intl= 13343 nls_cv_header_libgt= 13344 13345 DATADIRNAME=share 13346 13347 13348 INSTOBJEXT=.mo 13349 13350 13351 GENCAT=gencat 13352 13353 13354 if test "$USE_INCLUDED_LIBINTL" = yes; then 13355 INTLOBJS="\$(GETTOBJS)" 13356 fi 13357 13358 13359 INTL_LIBTOOL_SUFFIX_PREFIX= 13360 13361 13362 13363 INTLLIBS="$LIBINTL" 13364 13365 13366 13367 13368 13369 13370 13371 ac_config_files="$ac_config_files Makefile doc/Makefile info/Makefile intl/Makefile lib/Makefile m4/Makefile makeinfo/Makefile makeinfo/tests/Makefile po/Makefile.in util/Makefile" 13372 13373 cat >confcache <<\_ACEOF 13374 # This file is a shell script that caches the results of configure 13375 # tests run on this system so they can be shared between configure 13376 # scripts and configure runs, see configure's option --config-cache. 13377 # It is not useful on other systems. If it contains results you don't 13378 # want to keep, you may remove or edit it. 13379 # 13380 # config.status only pays attention to the cache file if you give it 13381 # the --recheck option to rerun configure. 13382 # 13383 # `ac_cv_env_foo' variables (set or unset) will be overridden when 13384 # loading this file, other *unset* `ac_cv_foo' will be assigned the 13385 # following values. 13386 13387 _ACEOF 13388 13389 # The following way of writing the cache mishandles newlines in values, 13390 # but we know of no workaround that is simple, portable, and efficient. 13391 # So, don't put newlines in cache variables' values. 13392 # Ultrix sh set writes to stderr and can't be redirected directly, 13393 # and sets the high bit in the cache file unless we assign to the vars. 13394 { 13395 (set) 2>&1 | 13396 case `(ac_space=' '; set | grep ac_space) 2>&1` in 13397 *ac_space=\ *) 13398 # `set' does not quote correctly, so add quotes (double-quote 13399 # substitution turns \\\\ into \\, and sed turns \\ into \). 13400 sed -n \ 13401 "s/'/'\\\\''/g; 13402 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13403 ;; 13404 *) 13405 # `set' quotes correctly as required by POSIX, so do not add quotes. 13406 sed -n \ 13407 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 13408 ;; 13409 esac; 13410 } | 13411 sed ' 13412 t clear 13413 : clear 13414 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13415 t end 13416 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13417 : end' >>confcache 13418 if diff $cache_file confcache >/dev/null 2>&1; then :; else 13419 if test -w $cache_file; then 13420 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 13421 cat confcache >$cache_file 13422 else 13423 echo "not updating unwritable cache $cache_file" 13424 fi 13425 fi 13426 rm -f confcache 13427 13428 test "x$prefix" = xNONE && prefix=$ac_default_prefix 13429 # Let make expand exec_prefix. 13430 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13431 13432 # VPATH may cause trouble with some makes, so we remove $(srcdir), 13433 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 13434 # trailing colons and then remove the whole line if VPATH becomes empty 13435 # (actually we leave an empty line to preserve line numbers). 13436 if test "x$srcdir" = x.; then 13437 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 13438 s/:*\$(srcdir):*/:/; 13439 s/:*\${srcdir}:*/:/; 13440 s/:*@srcdir@:*/:/; 13441 s/^\([^=]*=[ ]*\):*/\1/; 13442 s/:*$//; 13443 s/^[^=]*=[ ]*$//; 13444 }' 13445 fi 13446 13447 DEFS=-DHAVE_CONFIG_H 13448 13449 ac_libobjs= 13450 ac_ltlibobjs= 13451 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13452 # 1. Remove the extension, and $U if already installed. 13453 ac_i=`echo "$ac_i" | 13454 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 13455 # 2. Add them. 13456 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 13457 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 13458 done 13459 LIBOBJS=$ac_libobjs 13460 13461 LTLIBOBJS=$ac_ltlibobjs 13462 13463 13464 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 13465 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 13466 Usually this means the macro was only invoked conditionally." >&5 13467 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 13468 Usually this means the macro was only invoked conditionally." >&2;} 13469 { (exit 1); exit 1; }; } 13470 fi 13471 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13472 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 13473 Usually this means the macro was only invoked conditionally." >&5 13474 echo "$as_me: error: conditional \"AMDEP\" was never defined. 13475 Usually this means the macro was only invoked conditionally." >&2;} 13476 { (exit 1); exit 1; }; } 13477 fi 13478 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13479 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 13480 Usually this means the macro was only invoked conditionally." >&5 13481 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 13482 Usually this means the macro was only invoked conditionally." >&2;} 13483 { (exit 1); exit 1; }; } 13484 fi 13485 if test -z "${TOOLS_ONLY_TRUE}" && test -z "${TOOLS_ONLY_FALSE}"; then 13486 { { echo "$as_me:$LINENO: error: conditional \"TOOLS_ONLY\" was never defined. 13487 Usually this means the macro was only invoked conditionally." >&5 13488 echo "$as_me: error: conditional \"TOOLS_ONLY\" was never defined. 13489 Usually this means the macro was only invoked conditionally." >&2;} 13490 { (exit 1); exit 1; }; } 13491 fi 13492 if test -z "${INSTALL_WARNINGS_TRUE}" && test -z "${INSTALL_WARNINGS_FALSE}"; then 13493 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_WARNINGS\" was never defined. 13494 Usually this means the macro was only invoked conditionally." >&5 13495 echo "$as_me: error: conditional \"INSTALL_WARNINGS\" was never defined. 13496 Usually this means the macro was only invoked conditionally." >&2;} 13497 { (exit 1); exit 1; }; } 13498 fi 13499 13500 : ${CONFIG_STATUS=./config.status} 13501 ac_clean_files_save=$ac_clean_files 13502 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13503 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 13504 echo "$as_me: creating $CONFIG_STATUS" >&6;} 13505 cat >$CONFIG_STATUS <<_ACEOF 13506 #! $SHELL 13507 # Generated by $as_me. 13508 # Run this file to recreate the current configuration. 13509 # Compiler output produced by configure, useful for debugging 13510 # configure, is in config.log if it exists. 13511 13512 debug=false 13513 ac_cs_recheck=false 13514 ac_cs_silent=false 13515 SHELL=\${CONFIG_SHELL-$SHELL} 13516 _ACEOF 13517 13518 cat >>$CONFIG_STATUS <<\_ACEOF 13519 ## --------------------- ## 13520 ## M4sh Initialization. ## 13521 ## --------------------- ## 13522 13523 # Be Bourne compatible 13524 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 13525 emulate sh 13526 NULLCMD=: 13527 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 13528 # is contrary to our usage. Disable this feature. 13529 alias -g '${1+"$@"}'='"$@"' 13530 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 13531 set -o posix 13532 fi 13533 DUALCASE=1; export DUALCASE # for MKS sh 13534 13535 # Support unset when possible. 13536 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 13537 as_unset=unset 13538 else 13539 as_unset=false 13540 fi 13541 13542 13543 # Work around bugs in pre-3.0 UWIN ksh. 13544 $as_unset ENV MAIL MAILPATH 13545 PS1='$ ' 13546 PS2='> ' 13547 PS4='+ ' 13548 13549 # NLS nuisances. 13550 for as_var in \ 13551 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 13552 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 13553 LC_TELEPHONE LC_TIME 13554 do 13555 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 13556 eval $as_var=C; export $as_var 13557 else 13558 $as_unset $as_var 13559 fi 13560 done 13561 13562 # Required to use basename. 13563 if expr a : '\(a\)' >/dev/null 2>&1; then 13564 as_expr=expr 13565 else 13566 as_expr=false 13567 fi 13568 13569 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 13570 as_basename=basename 13571 else 13572 as_basename=false 13573 fi 13574 13575 13576 # Name of the executable. 13577 as_me=`$as_basename "$0" || 13578 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13579 X"$0" : 'X\(//\)$' \| \ 13580 X"$0" : 'X\(/\)$' \| \ 13581 . : '\(.\)' 2>/dev/null || 13582 echo X/"$0" | 13583 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 13584 /^X\/\(\/\/\)$/{ s//\1/; q; } 13585 /^X\/\(\/\).*/{ s//\1/; q; } 13586 s/.*/./; q'` 13587 13588 13589 # PATH needs CR, and LINENO needs CR and PATH. 13590 # Avoid depending upon Character Ranges. 13591 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13592 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13593 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13594 as_cr_digits='0123456789' 13595 as_cr_alnum=$as_cr_Letters$as_cr_digits 13596 13597 # The user is always right. 13598 if test "${PATH_SEPARATOR+set}" != set; then 13599 echo "#! /bin/sh" >conf$$.sh 13600 echo "exit 0" >>conf$$.sh 13601 chmod +x conf$$.sh 13602 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 13603 PATH_SEPARATOR=';' 13604 else 13605 PATH_SEPARATOR=: 13606 fi 13607 rm -f conf$$.sh 13608 fi 13609 13610 13611 as_lineno_1=$LINENO 13612 as_lineno_2=$LINENO 13613 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 13614 test "x$as_lineno_1" != "x$as_lineno_2" && 13615 test "x$as_lineno_3" = "x$as_lineno_2" || { 13616 # Find who we are. Look in the path if we contain no path at all 13617 # relative or not. 13618 case $0 in 13619 *[\\/]* ) as_myself=$0 ;; 13620 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13621 for as_dir in $PATH 13622 do 13623 IFS=$as_save_IFS 13624 test -z "$as_dir" && as_dir=. 13625 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13626 done 13627 13628 ;; 13629 esac 13630 # We did not find ourselves, most probably we were run as `sh COMMAND' 13631 # in which case we are not to be found in the path. 13632 if test "x$as_myself" = x; then 13633 as_myself=$0 13634 fi 13635 if test ! -f "$as_myself"; then 13636 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 13637 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 13638 { (exit 1); exit 1; }; } 13639 fi 13640 case $CONFIG_SHELL in 13641 '') 13642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13643 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 13644 do 13645 IFS=$as_save_IFS 13646 test -z "$as_dir" && as_dir=. 13647 for as_base in sh bash ksh sh5; do 13648 case $as_dir in 13649 /*) 13650 if ("$as_dir/$as_base" -c ' 13651 as_lineno_1=$LINENO 13652 as_lineno_2=$LINENO 13653 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 13654 test "x$as_lineno_1" != "x$as_lineno_2" && 13655 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 13656 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 13657 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 13658 CONFIG_SHELL=$as_dir/$as_base 13659 export CONFIG_SHELL 13660 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 13661 fi;; 13662 esac 13663 done 13664 done 13665 ;; 13666 esac 13667 13668 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 13669 # uniformly replaced by the line number. The first 'sed' inserts a 13670 # line-number line before each line; the second 'sed' does the real 13671 # work. The second script uses 'N' to pair each line-number line 13672 # with the numbered line, and appends trailing '-' during 13673 # substitution so that $LINENO is not a special case at line end. 13674 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 13675 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 13676 sed '=' <$as_myself | 13677 sed ' 13678 N 13679 s,$,-, 13680 : loop 13681 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 13682 t loop 13683 s,-$,, 13684 s,^['$as_cr_digits']*\n,, 13685 ' >$as_me.lineno && 13686 chmod +x $as_me.lineno || 13687 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 13688 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 13689 { (exit 1); exit 1; }; } 13690 13691 # Don't try to exec as it changes $[0], causing all sort of problems 13692 # (the dirname of $[0] is not the place where we might find the 13693 # original and so on. Autoconf is especially sensible to this). 13694 . ./$as_me.lineno 13695 # Exit status is that of the last command. 13696 exit 13697 } 13698 13699 13700 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 13701 *c*,-n*) ECHO_N= ECHO_C=' 13702 ' ECHO_T=' ' ;; 13703 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 13704 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 13705 esac 13706 13707 if expr a : '\(a\)' >/dev/null 2>&1; then 13708 as_expr=expr 13709 else 13710 as_expr=false 13711 fi 13712 13713 rm -f conf$$ conf$$.exe conf$$.file 13714 echo >conf$$.file 13715 if ln -s conf$$.file conf$$ 2>/dev/null; then 13716 # We could just check for DJGPP; but this test a) works b) is more generic 13717 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 13718 if test -f conf$$.exe; then 13719 # Don't use ln at all; we don't have any links 13720 as_ln_s='cp -p' 13721 else 13722 as_ln_s='ln -s' 13723 fi 13724 elif ln conf$$.file conf$$ 2>/dev/null; then 13725 as_ln_s=ln 13726 else 13727 as_ln_s='cp -p' 13728 fi 13729 rm -f conf$$ conf$$.exe conf$$.file 13730 13731 if mkdir -p . 2>/dev/null; then 13732 as_mkdir_p=: 13733 else 13734 test -d ./-p && rmdir ./-p 13735 as_mkdir_p=false 13736 fi 13737 13738 as_executable_p="test -f" 13739 13740 # Sed expression to map a string onto a valid CPP name. 13741 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13742 13743 # Sed expression to map a string onto a valid variable name. 13744 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13745 13746 13747 # IFS 13748 # We need space, tab and new line, in precisely that order. 13749 as_nl=' 13750 ' 13751 IFS=" $as_nl" 13752 13753 # CDPATH. 13754 $as_unset CDPATH 13755 13756 exec 6>&1 13757 13758 # Open the log real soon, to keep \$[0] and so on meaningful, and to 13759 # report actual input values of CONFIG_FILES etc. instead of their 13760 # values after options handling. Logging --version etc. is OK. 13761 exec 5>>config.log 13762 { 13763 echo 13764 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13765 ## Running $as_me. ## 13766 _ASBOX 13767 } >&5 13768 cat >&5 <<_CSEOF 13769 13770 This file was extended by GNU Texinfo $as_me 4.8, which was 13771 generated by GNU Autoconf 2.59. Invocation command line was 13772 13773 CONFIG_FILES = $CONFIG_FILES 13774 CONFIG_HEADERS = $CONFIG_HEADERS 13775 CONFIG_LINKS = $CONFIG_LINKS 13776 CONFIG_COMMANDS = $CONFIG_COMMANDS 13777 $ $0 $@ 13778 13779 _CSEOF 13780 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 13781 echo >&5 13782 _ACEOF 13783 13784 # Files that config.status was made for. 13785 if test -n "$ac_config_files"; then 13786 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 13787 fi 13788 13789 if test -n "$ac_config_headers"; then 13790 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 13791 fi 13792 13793 if test -n "$ac_config_links"; then 13794 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 13795 fi 13796 13797 if test -n "$ac_config_commands"; then 13798 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 13799 fi 13800 13801 cat >>$CONFIG_STATUS <<\_ACEOF 13802 13803 ac_cs_usage="\ 13804 \`$as_me' instantiates files from templates according to the 13805 current configuration. 13806 13807 Usage: $0 [OPTIONS] [FILE]... 13808 13809 -h, --help print this help, then exit 13810 -V, --version print version number, then exit 13811 -q, --quiet do not print progress messages 13812 -d, --debug don't remove temporary files 13813 --recheck update $as_me by reconfiguring in the same conditions 13814 --file=FILE[:TEMPLATE] 13815 instantiate the configuration file FILE 13816 --header=FILE[:TEMPLATE] 13817 instantiate the configuration header FILE 13818 13819 Configuration files: 13820 $config_files 13821 13822 Configuration headers: 13823 $config_headers 13824 13825 Configuration commands: 13826 $config_commands 13827 13828 Report bugs to <bug-autoconf@gnu.org>." 13829 _ACEOF 13830 13831 cat >>$CONFIG_STATUS <<_ACEOF 13832 ac_cs_version="\\ 13833 GNU Texinfo config.status 4.8 13834 configured by $0, generated by GNU Autoconf 2.59, 13835 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 13836 13837 Copyright (C) 2003 Free Software Foundation, Inc. 13838 This config.status script is free software; the Free Software Foundation 13839 gives unlimited permission to copy, distribute and modify it." 13840 srcdir=$srcdir 13841 INSTALL="$INSTALL" 13842 _ACEOF 13843 13844 cat >>$CONFIG_STATUS <<\_ACEOF 13845 # If no file are specified by the user, then we need to provide default 13846 # value. By we need to know if files were specified by the user. 13847 ac_need_defaults=: 13848 while test $# != 0 13849 do 13850 case $1 in 13851 --*=*) 13852 ac_option=`expr "x$1" : 'x\([^=]*\)='` 13853 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 13854 ac_shift=: 13855 ;; 13856 -*) 13857 ac_option=$1 13858 ac_optarg=$2 13859 ac_shift=shift 13860 ;; 13861 *) # This is not an option, so the user has probably given explicit 13862 # arguments. 13863 ac_option=$1 13864 ac_need_defaults=false;; 13865 esac 13866 13867 case $ac_option in 13868 # Handling of the options. 13869 _ACEOF 13870 cat >>$CONFIG_STATUS <<\_ACEOF 13871 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13872 ac_cs_recheck=: ;; 13873 --version | --vers* | -V ) 13874 echo "$ac_cs_version"; exit 0 ;; 13875 --he | --h) 13876 # Conflict between --help and --header 13877 { { echo "$as_me:$LINENO: error: ambiguous option: $1 13878 Try \`$0 --help' for more information." >&5 13879 echo "$as_me: error: ambiguous option: $1 13880 Try \`$0 --help' for more information." >&2;} 13881 { (exit 1); exit 1; }; };; 13882 --help | --hel | -h ) 13883 echo "$ac_cs_usage"; exit 0 ;; 13884 --debug | --d* | -d ) 13885 debug=: ;; 13886 --file | --fil | --fi | --f ) 13887 $ac_shift 13888 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 13889 ac_need_defaults=false;; 13890 --header | --heade | --head | --hea ) 13891 $ac_shift 13892 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 13893 ac_need_defaults=false;; 13894 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13895 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13896 ac_cs_silent=: ;; 13897 13898 # This is an error. 13899 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 13900 Try \`$0 --help' for more information." >&5 13901 echo "$as_me: error: unrecognized option: $1 13902 Try \`$0 --help' for more information." >&2;} 13903 { (exit 1); exit 1; }; } ;; 13904 13905 *) ac_config_targets="$ac_config_targets $1" ;; 13906 13907 esac 13908 shift 13909 done 13910 13911 ac_configure_extra_args= 13912 13913 if $ac_cs_silent; then 13914 exec 6>/dev/null 13915 ac_configure_extra_args="$ac_configure_extra_args --silent" 13916 fi 13917 13918 _ACEOF 13919 cat >>$CONFIG_STATUS <<_ACEOF 13920 if \$ac_cs_recheck; then 13921 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 13922 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13923 fi 13924 13925 _ACEOF 13926 13927 cat >>$CONFIG_STATUS <<_ACEOF 13928 # 13929 # INIT-COMMANDS section. 13930 # 13931 13932 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13933 # Capture the value of obsolete ALL_LINGUAS because we need it to compute 13934 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 13935 # from automake. 13936 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 13937 # Capture the value of LINGUAS because we need it to compute CATALOGS. 13938 LINGUAS="${LINGUAS-%UNSET%}" 13939 13940 13941 _ACEOF 13942 13943 13944 13945 cat >>$CONFIG_STATUS <<\_ACEOF 13946 for ac_config_target in $ac_config_targets 13947 do 13948 case "$ac_config_target" in 13949 # Handling of arguments. 13950 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13951 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 13952 "info/Makefile" ) CONFIG_FILES="$CONFIG_FILES info/Makefile" ;; 13953 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; 13954 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 13955 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; 13956 "makeinfo/Makefile" ) CONFIG_FILES="$CONFIG_FILES makeinfo/Makefile" ;; 13957 "makeinfo/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES makeinfo/tests/Makefile" ;; 13958 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 13959 "util/Makefile" ) CONFIG_FILES="$CONFIG_FILES util/Makefile" ;; 13960 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13961 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 13962 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; 13963 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 13964 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 13965 { (exit 1); exit 1; }; };; 13966 esac 13967 done 13968 13969 # If the user did not use the arguments to specify the items to instantiate, 13970 # then the envvar interface is used. Set only those that are not. 13971 # We use the long form for the default assignment because of an extremely 13972 # bizarre bug on SunOS 4.1.3. 13973 if $ac_need_defaults; then 13974 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13975 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13976 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13977 fi 13978 13979 # Have a temporary directory for convenience. Make it in the build tree 13980 # simply because there is no reason to put it here, and in addition, 13981 # creating and moving files from /tmp can sometimes cause problems. 13982 # Create a temporary directory, and hook for its removal unless debugging. 13983 $debug || 13984 { 13985 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 13986 trap '{ (exit 1); exit 1; }' 1 2 13 15 13987 } 13988 13989 # Create a (secure) tmp directory for tmp files. 13990 13991 { 13992 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 13993 test -n "$tmp" && test -d "$tmp" 13994 } || 13995 { 13996 tmp=./confstat$$-$RANDOM 13997 (umask 077 && mkdir $tmp) 13998 } || 13999 { 14000 echo "$me: cannot create a temporary directory in ." >&2 14001 { (exit 1); exit 1; } 14002 } 14003 14004 _ACEOF 14005 14006 cat >>$CONFIG_STATUS <<_ACEOF 14007 14008 # 14009 # CONFIG_FILES section. 14010 # 14011 14012 # No need to generate the scripts if there are no CONFIG_FILES. 14013 # This happens for instance when ./config.status config.h 14014 if test -n "\$CONFIG_FILES"; then 14015 # Protect against being on the right side of a sed subst in config.status. 14016 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 14017 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 14018 s,@SHELL@,$SHELL,;t t 14019 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 14020 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 14021 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 14022 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 14023 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 14024 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 14025 s,@exec_prefix@,$exec_prefix,;t t 14026 s,@prefix@,$prefix,;t t 14027 s,@program_transform_name@,$program_transform_name,;t t 14028 s,@bindir@,$bindir,;t t 14029 s,@sbindir@,$sbindir,;t t 14030 s,@libexecdir@,$libexecdir,;t t 14031 s,@datadir@,$datadir,;t t 14032 s,@sysconfdir@,$sysconfdir,;t t 14033 s,@sharedstatedir@,$sharedstatedir,;t t 14034 s,@localstatedir@,$localstatedir,;t t 14035 s,@libdir@,$libdir,;t t 14036 s,@includedir@,$includedir,;t t 14037 s,@oldincludedir@,$oldincludedir,;t t 14038 s,@infodir@,$infodir,;t t 14039 s,@mandir@,$mandir,;t t 14040 s,@build_alias@,$build_alias,;t t 14041 s,@host_alias@,$host_alias,;t t 14042 s,@target_alias@,$target_alias,;t t 14043 s,@DEFS@,$DEFS,;t t 14044 s,@ECHO_C@,$ECHO_C,;t t 14045 s,@ECHO_N@,$ECHO_N,;t t 14046 s,@ECHO_T@,$ECHO_T,;t t 14047 s,@LIBS@,$LIBS,;t t 14048 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 14049 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 14050 s,@INSTALL_DATA@,$INSTALL_DATA,;t t 14051 s,@CYGPATH_W@,$CYGPATH_W,;t t 14052 s,@PACKAGE@,$PACKAGE,;t t 14053 s,@VERSION@,$VERSION,;t t 14054 s,@ACLOCAL@,$ACLOCAL,;t t 14055 s,@AUTOCONF@,$AUTOCONF,;t t 14056 s,@AUTOMAKE@,$AUTOMAKE,;t t 14057 s,@AUTOHEADER@,$AUTOHEADER,;t t 14058 s,@MAKEINFO@,$MAKEINFO,;t t 14059 s,@install_sh@,$install_sh,;t t 14060 s,@STRIP@,$STRIP,;t t 14061 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 14062 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 14063 s,@mkdir_p@,$mkdir_p,;t t 14064 s,@AWK@,$AWK,;t t 14065 s,@SET_MAKE@,$SET_MAKE,;t t 14066 s,@am__leading_dot@,$am__leading_dot,;t t 14067 s,@AMTAR@,$AMTAR,;t t 14068 s,@am__tar@,$am__tar,;t t 14069 s,@am__untar@,$am__untar,;t t 14070 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 14071 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 14072 s,@MAINT@,$MAINT,;t t 14073 s,@CC@,$CC,;t t 14074 s,@CFLAGS@,$CFLAGS,;t t 14075 s,@LDFLAGS@,$LDFLAGS,;t t 14076 s,@CPPFLAGS@,$CPPFLAGS,;t t 14077 s,@ac_ct_CC@,$ac_ct_CC,;t t 14078 s,@EXEEXT@,$EXEEXT,;t t 14079 s,@OBJEXT@,$OBJEXT,;t t 14080 s,@DEPDIR@,$DEPDIR,;t t 14081 s,@am__include@,$am__include,;t t 14082 s,@am__quote@,$am__quote,;t t 14083 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 14084 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 14085 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 14086 s,@CCDEPMODE@,$CCDEPMODE,;t t 14087 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 14088 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 14089 s,@CPP@,$CPP,;t t 14090 s,@EGREP@,$EGREP,;t t 14091 s,@RANLIB@,$RANLIB,;t t 14092 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 14093 s,@HELP2MAN@,$HELP2MAN,;t t 14094 s,@ALLOCA@,$ALLOCA,;t t 14095 s,@LIBOBJS@,$LIBOBJS,;t t 14096 s,@build@,$build,;t t 14097 s,@build_cpu@,$build_cpu,;t t 14098 s,@build_vendor@,$build_vendor,;t t 14099 s,@build_os@,$build_os,;t t 14100 s,@native_tools@,$native_tools,;t t 14101 s,@TOOLS_ONLY_TRUE@,$TOOLS_ONLY_TRUE,;t t 14102 s,@TOOLS_ONLY_FALSE@,$TOOLS_ONLY_FALSE,;t t 14103 s,@TERMLIBS@,$TERMLIBS,;t t 14104 s,@host@,$host,;t t 14105 s,@host_cpu@,$host_cpu,;t t 14106 s,@host_vendor@,$host_vendor,;t t 14107 s,@host_os@,$host_os,;t t 14108 s,@INSTALL_WARNINGS_TRUE@,$INSTALL_WARNINGS_TRUE,;t t 14109 s,@INSTALL_WARNINGS_FALSE@,$INSTALL_WARNINGS_FALSE,;t t 14110 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t 14111 s,@USE_NLS@,$USE_NLS,;t t 14112 s,@MSGFMT@,$MSGFMT,;t t 14113 s,@GMSGFMT@,$GMSGFMT,;t t 14114 s,@XGETTEXT@,$XGETTEXT,;t t 14115 s,@MSGMERGE@,$MSGMERGE,;t t 14116 s,@GLIBC21@,$GLIBC21,;t t 14117 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t 14118 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t 14119 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t 14120 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t 14121 s,@LIBICONV@,$LIBICONV,;t t 14122 s,@LTLIBICONV@,$LTLIBICONV,;t t 14123 s,@INTLBISON@,$INTLBISON,;t t 14124 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t 14125 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t 14126 s,@CATOBJEXT@,$CATOBJEXT,;t t 14127 s,@DATADIRNAME@,$DATADIRNAME,;t t 14128 s,@INSTOBJEXT@,$INSTOBJEXT,;t t 14129 s,@GENCAT@,$GENCAT,;t t 14130 s,@INTLOBJS@,$INTLOBJS,;t t 14131 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t 14132 s,@INTLLIBS@,$INTLLIBS,;t t 14133 s,@LIBINTL@,$LIBINTL,;t t 14134 s,@LTLIBINTL@,$LTLIBINTL,;t t 14135 s,@POSUB@,$POSUB,;t t 14136 s,@LTLIBOBJS@,$LTLIBOBJS,;t t 14137 CEOF 14138 14139 _ACEOF 14140 14141 cat >>$CONFIG_STATUS <<\_ACEOF 14142 # Split the substitutions into bite-sized pieces for seds with 14143 # small command number limits, like on Digital OSF/1 and HP-UX. 14144 ac_max_sed_lines=48 14145 ac_sed_frag=1 # Number of current file. 14146 ac_beg=1 # First line for current file. 14147 ac_end=$ac_max_sed_lines # Line after last line for current file. 14148 ac_more_lines=: 14149 ac_sed_cmds= 14150 while $ac_more_lines; do 14151 if test $ac_beg -gt 1; then 14152 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 14153 else 14154 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 14155 fi 14156 if test ! -s $tmp/subs.frag; then 14157 ac_more_lines=false 14158 else 14159 # The purpose of the label and of the branching condition is to 14160 # speed up the sed processing (if there are no `@' at all, there 14161 # is no need to browse any of the substitutions). 14162 # These are the two extra sed commands mentioned above. 14163 (echo ':t 14164 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 14165 if test -z "$ac_sed_cmds"; then 14166 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 14167 else 14168 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 14169 fi 14170 ac_sed_frag=`expr $ac_sed_frag + 1` 14171 ac_beg=$ac_end 14172 ac_end=`expr $ac_end + $ac_max_sed_lines` 14173 fi 14174 done 14175 if test -z "$ac_sed_cmds"; then 14176 ac_sed_cmds=cat 14177 fi 14178 fi # test -n "$CONFIG_FILES" 14179 14180 _ACEOF 14181 cat >>$CONFIG_STATUS <<\_ACEOF 14182 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 14183 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 14184 case $ac_file in 14185 - | *:- | *:-:* ) # input from stdin 14186 cat >$tmp/stdin 14187 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 14188 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 14189 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 14190 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 14191 * ) ac_file_in=$ac_file.in ;; 14192 esac 14193 14194 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 14195 ac_dir=`(dirname "$ac_file") 2>/dev/null || 14196 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14197 X"$ac_file" : 'X\(//\)[^/]' \| \ 14198 X"$ac_file" : 'X\(//\)$' \| \ 14199 X"$ac_file" : 'X\(/\)' \| \ 14200 . : '\(.\)' 2>/dev/null || 14201 echo X"$ac_file" | 14202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14203 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14204 /^X\(\/\/\)$/{ s//\1/; q; } 14205 /^X\(\/\).*/{ s//\1/; q; } 14206 s/.*/./; q'` 14207 { if $as_mkdir_p; then 14208 mkdir -p "$ac_dir" 14209 else 14210 as_dir="$ac_dir" 14211 as_dirs= 14212 while test ! -d "$as_dir"; do 14213 as_dirs="$as_dir $as_dirs" 14214 as_dir=`(dirname "$as_dir") 2>/dev/null || 14215 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14216 X"$as_dir" : 'X\(//\)[^/]' \| \ 14217 X"$as_dir" : 'X\(//\)$' \| \ 14218 X"$as_dir" : 'X\(/\)' \| \ 14219 . : '\(.\)' 2>/dev/null || 14220 echo X"$as_dir" | 14221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14222 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14223 /^X\(\/\/\)$/{ s//\1/; q; } 14224 /^X\(\/\).*/{ s//\1/; q; } 14225 s/.*/./; q'` 14226 done 14227 test ! -n "$as_dirs" || mkdir $as_dirs 14228 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 14229 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 14230 { (exit 1); exit 1; }; }; } 14231 14232 ac_builddir=. 14233 14234 if test "$ac_dir" != .; then 14235 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 14236 # A "../" for each directory in $ac_dir_suffix. 14237 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 14238 else 14239 ac_dir_suffix= ac_top_builddir= 14240 fi 14241 14242 case $srcdir in 14243 .) # No --srcdir option. We are building in place. 14244 ac_srcdir=. 14245 if test -z "$ac_top_builddir"; then 14246 ac_top_srcdir=. 14247 else 14248 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 14249 fi ;; 14250 [\\/]* | ?:[\\/]* ) # Absolute path. 14251 ac_srcdir=$srcdir$ac_dir_suffix; 14252 ac_top_srcdir=$srcdir ;; 14253 *) # Relative path. 14254 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 14255 ac_top_srcdir=$ac_top_builddir$srcdir ;; 14256 esac 14257 14258 # Do not use `cd foo && pwd` to compute absolute paths, because 14259 # the directories may not exist. 14260 case `pwd` in 14261 .) ac_abs_builddir="$ac_dir";; 14262 *) 14263 case "$ac_dir" in 14264 .) ac_abs_builddir=`pwd`;; 14265 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 14266 *) ac_abs_builddir=`pwd`/"$ac_dir";; 14267 esac;; 14268 esac 14269 case $ac_abs_builddir in 14270 .) ac_abs_top_builddir=${ac_top_builddir}.;; 14271 *) 14272 case ${ac_top_builddir}. in 14273 .) ac_abs_top_builddir=$ac_abs_builddir;; 14274 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 14275 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 14276 esac;; 14277 esac 14278 case $ac_abs_builddir in 14279 .) ac_abs_srcdir=$ac_srcdir;; 14280 *) 14281 case $ac_srcdir in 14282 .) ac_abs_srcdir=$ac_abs_builddir;; 14283 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 14284 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 14285 esac;; 14286 esac 14287 case $ac_abs_builddir in 14288 .) ac_abs_top_srcdir=$ac_top_srcdir;; 14289 *) 14290 case $ac_top_srcdir in 14291 .) ac_abs_top_srcdir=$ac_abs_builddir;; 14292 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 14293 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 14294 esac;; 14295 esac 14296 14297 14298 case $INSTALL in 14299 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14300 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 14301 esac 14302 14303 if test x"$ac_file" != x-; then 14304 { echo "$as_me:$LINENO: creating $ac_file" >&5 14305 echo "$as_me: creating $ac_file" >&6;} 14306 rm -f "$ac_file" 14307 fi 14308 # Let's still pretend it is `configure' which instantiates (i.e., don't 14309 # use $as_me), people would be surprised to read: 14310 # /* config.h. Generated by config.status. */ 14311 if test x"$ac_file" = x-; then 14312 configure_input= 14313 else 14314 configure_input="$ac_file. " 14315 fi 14316 configure_input=$configure_input"Generated from `echo $ac_file_in | 14317 sed 's,.*/,,'` by configure." 14318 14319 # First look for the input files in the build tree, otherwise in the 14320 # src tree. 14321 ac_file_inputs=`IFS=: 14322 for f in $ac_file_in; do 14323 case $f in 14324 -) echo $tmp/stdin ;; 14325 [\\/$]*) 14326 # Absolute (can't be DOS-style, as IFS=:) 14327 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 14328 echo "$as_me: error: cannot find input file: $f" >&2;} 14329 { (exit 1); exit 1; }; } 14330 echo "$f";; 14331 *) # Relative 14332 if test -f "$f"; then 14333 # Build tree 14334 echo "$f" 14335 elif test -f "$srcdir/$f"; then 14336 # Source tree 14337 echo "$srcdir/$f" 14338 else 14339 # /dev/null tree 14340 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 14341 echo "$as_me: error: cannot find input file: $f" >&2;} 14342 { (exit 1); exit 1; }; } 14343 fi;; 14344 esac 14345 done` || { (exit 1); exit 1; } 14346 _ACEOF 14347 cat >>$CONFIG_STATUS <<_ACEOF 14348 sed "$ac_vpsub 14349 $extrasub 14350 _ACEOF 14351 cat >>$CONFIG_STATUS <<\_ACEOF 14352 :t 14353 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14354 s,@configure_input@,$configure_input,;t t 14355 s,@srcdir@,$ac_srcdir,;t t 14356 s,@abs_srcdir@,$ac_abs_srcdir,;t t 14357 s,@top_srcdir@,$ac_top_srcdir,;t t 14358 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 14359 s,@builddir@,$ac_builddir,;t t 14360 s,@abs_builddir@,$ac_abs_builddir,;t t 14361 s,@top_builddir@,$ac_top_builddir,;t t 14362 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 14363 s,@INSTALL@,$ac_INSTALL,;t t 14364 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 14365 rm -f $tmp/stdin 14366 if test x"$ac_file" != x-; then 14367 mv $tmp/out $ac_file 14368 else 14369 cat $tmp/out 14370 rm -f $tmp/out 14371 fi 14372 14373 done 14374 _ACEOF 14375 cat >>$CONFIG_STATUS <<\_ACEOF 14376 14377 # 14378 # CONFIG_HEADER section. 14379 # 14380 14381 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 14382 # NAME is the cpp macro being defined and VALUE is the value it is being given. 14383 # 14384 # ac_d sets the value in "#define NAME VALUE" lines. 14385 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 14386 ac_dB='[ ].*$,\1#\2' 14387 ac_dC=' ' 14388 ac_dD=',;t' 14389 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 14390 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 14391 ac_uB='$,\1#\2define\3' 14392 ac_uC=' ' 14393 ac_uD=',;t' 14394 14395 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 14396 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 14397 case $ac_file in 14398 - | *:- | *:-:* ) # input from stdin 14399 cat >$tmp/stdin 14400 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 14401 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 14402 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 14403 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 14404 * ) ac_file_in=$ac_file.in ;; 14405 esac 14406 14407 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 14408 echo "$as_me: creating $ac_file" >&6;} 14409 14410 # First look for the input files in the build tree, otherwise in the 14411 # src tree. 14412 ac_file_inputs=`IFS=: 14413 for f in $ac_file_in; do 14414 case $f in 14415 -) echo $tmp/stdin ;; 14416 [\\/$]*) 14417 # Absolute (can't be DOS-style, as IFS=:) 14418 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 14419 echo "$as_me: error: cannot find input file: $f" >&2;} 14420 { (exit 1); exit 1; }; } 14421 # Do quote $f, to prevent DOS paths from being IFS'd. 14422 echo "$f";; 14423 *) # Relative 14424 if test -f "$f"; then 14425 # Build tree 14426 echo "$f" 14427 elif test -f "$srcdir/$f"; then 14428 # Source tree 14429 echo "$srcdir/$f" 14430 else 14431 # /dev/null tree 14432 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 14433 echo "$as_me: error: cannot find input file: $f" >&2;} 14434 { (exit 1); exit 1; }; } 14435 fi;; 14436 esac 14437 done` || { (exit 1); exit 1; } 14438 # Remove the trailing spaces. 14439 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 14440 14441 _ACEOF 14442 14443 # Transform confdefs.h into two sed scripts, `conftest.defines' and 14444 # `conftest.undefs', that substitutes the proper values into 14445 # config.h.in to produce config.h. The first handles `#define' 14446 # templates, and the second `#undef' templates. 14447 # And first: Protect against being on the right side of a sed subst in 14448 # config.status. Protect against being in an unquoted here document 14449 # in config.status. 14450 rm -f conftest.defines conftest.undefs 14451 # Using a here document instead of a string reduces the quoting nightmare. 14452 # Putting comments in sed scripts is not portable. 14453 # 14454 # `end' is used to avoid that the second main sed command (meant for 14455 # 0-ary CPP macros) applies to n-ary macro definitions. 14456 # See the Autoconf documentation for `clear'. 14457 cat >confdef2sed.sed <<\_ACEOF 14458 s/[\\&,]/\\&/g 14459 s,[\\$`],\\&,g 14460 t clear 14461 : clear 14462 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 14463 t end 14464 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 14465 : end 14466 _ACEOF 14467 # If some macros were called several times there might be several times 14468 # the same #defines, which is useless. Nevertheless, we may not want to 14469 # sort them, since we want the *last* AC-DEFINE to be honored. 14470 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 14471 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 14472 rm -f confdef2sed.sed 14473 14474 # This sed command replaces #undef with comments. This is necessary, for 14475 # example, in the case of _POSIX_SOURCE, which is predefined and required 14476 # on some systems where configure will not decide to define it. 14477 cat >>conftest.undefs <<\_ACEOF 14478 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 14479 _ACEOF 14480 14481 # Break up conftest.defines because some shells have a limit on the size 14482 # of here documents, and old seds have small limits too (100 cmds). 14483 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 14484 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 14485 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 14486 echo ' :' >>$CONFIG_STATUS 14487 rm -f conftest.tail 14488 while grep . conftest.defines >/dev/null 14489 do 14490 # Write a limited-size here document to $tmp/defines.sed. 14491 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 14492 # Speed up: don't consider the non `#define' lines. 14493 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 14494 # Work around the forget-to-reset-the-flag bug. 14495 echo 't clr' >>$CONFIG_STATUS 14496 echo ': clr' >>$CONFIG_STATUS 14497 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 14498 echo 'CEOF 14499 sed -f $tmp/defines.sed $tmp/in >$tmp/out 14500 rm -f $tmp/in 14501 mv $tmp/out $tmp/in 14502 ' >>$CONFIG_STATUS 14503 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 14504 rm -f conftest.defines 14505 mv conftest.tail conftest.defines 14506 done 14507 rm -f conftest.defines 14508 echo ' fi # grep' >>$CONFIG_STATUS 14509 echo >>$CONFIG_STATUS 14510 14511 # Break up conftest.undefs because some shells have a limit on the size 14512 # of here documents, and old seds have small limits too (100 cmds). 14513 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 14514 rm -f conftest.tail 14515 while grep . conftest.undefs >/dev/null 14516 do 14517 # Write a limited-size here document to $tmp/undefs.sed. 14518 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 14519 # Speed up: don't consider the non `#undef' 14520 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 14521 # Work around the forget-to-reset-the-flag bug. 14522 echo 't clr' >>$CONFIG_STATUS 14523 echo ': clr' >>$CONFIG_STATUS 14524 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 14525 echo 'CEOF 14526 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 14527 rm -f $tmp/in 14528 mv $tmp/out $tmp/in 14529 ' >>$CONFIG_STATUS 14530 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 14531 rm -f conftest.undefs 14532 mv conftest.tail conftest.undefs 14533 done 14534 rm -f conftest.undefs 14535 14536 cat >>$CONFIG_STATUS <<\_ACEOF 14537 # Let's still pretend it is `configure' which instantiates (i.e., don't 14538 # use $as_me), people would be surprised to read: 14539 # /* config.h. Generated by config.status. */ 14540 if test x"$ac_file" = x-; then 14541 echo "/* Generated by configure. */" >$tmp/config.h 14542 else 14543 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 14544 fi 14545 cat $tmp/in >>$tmp/config.h 14546 rm -f $tmp/in 14547 if test x"$ac_file" != x-; then 14548 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 14549 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 14550 echo "$as_me: $ac_file is unchanged" >&6;} 14551 else 14552 ac_dir=`(dirname "$ac_file") 2>/dev/null || 14553 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14554 X"$ac_file" : 'X\(//\)[^/]' \| \ 14555 X"$ac_file" : 'X\(//\)$' \| \ 14556 X"$ac_file" : 'X\(/\)' \| \ 14557 . : '\(.\)' 2>/dev/null || 14558 echo X"$ac_file" | 14559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14560 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14561 /^X\(\/\/\)$/{ s//\1/; q; } 14562 /^X\(\/\).*/{ s//\1/; q; } 14563 s/.*/./; q'` 14564 { if $as_mkdir_p; then 14565 mkdir -p "$ac_dir" 14566 else 14567 as_dir="$ac_dir" 14568 as_dirs= 14569 while test ! -d "$as_dir"; do 14570 as_dirs="$as_dir $as_dirs" 14571 as_dir=`(dirname "$as_dir") 2>/dev/null || 14572 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14573 X"$as_dir" : 'X\(//\)[^/]' \| \ 14574 X"$as_dir" : 'X\(//\)$' \| \ 14575 X"$as_dir" : 'X\(/\)' \| \ 14576 . : '\(.\)' 2>/dev/null || 14577 echo X"$as_dir" | 14578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14579 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14580 /^X\(\/\/\)$/{ s//\1/; q; } 14581 /^X\(\/\).*/{ s//\1/; q; } 14582 s/.*/./; q'` 14583 done 14584 test ! -n "$as_dirs" || mkdir $as_dirs 14585 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 14586 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 14587 { (exit 1); exit 1; }; }; } 14588 14589 rm -f $ac_file 14590 mv $tmp/config.h $ac_file 14591 fi 14592 else 14593 cat $tmp/config.h 14594 rm -f $tmp/config.h 14595 fi 14596 # Compute $ac_file's index in $config_headers. 14597 _am_stamp_count=1 14598 for _am_header in $config_headers :; do 14599 case $_am_header in 14600 $ac_file | $ac_file:* ) 14601 break ;; 14602 * ) 14603 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14604 esac 14605 done 14606 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 14607 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14608 X$ac_file : 'X\(//\)[^/]' \| \ 14609 X$ac_file : 'X\(//\)$' \| \ 14610 X$ac_file : 'X\(/\)' \| \ 14611 . : '\(.\)' 2>/dev/null || 14612 echo X$ac_file | 14613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14614 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14615 /^X\(\/\/\)$/{ s//\1/; q; } 14616 /^X\(\/\).*/{ s//\1/; q; } 14617 s/.*/./; q'`/stamp-h$_am_stamp_count 14618 done 14619 _ACEOF 14620 cat >>$CONFIG_STATUS <<\_ACEOF 14621 14622 # 14623 # CONFIG_COMMANDS section. 14624 # 14625 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 14626 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 14627 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 14628 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 14629 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14630 X"$ac_dest" : 'X\(//\)[^/]' \| \ 14631 X"$ac_dest" : 'X\(//\)$' \| \ 14632 X"$ac_dest" : 'X\(/\)' \| \ 14633 . : '\(.\)' 2>/dev/null || 14634 echo X"$ac_dest" | 14635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14636 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14637 /^X\(\/\/\)$/{ s//\1/; q; } 14638 /^X\(\/\).*/{ s//\1/; q; } 14639 s/.*/./; q'` 14640 { if $as_mkdir_p; then 14641 mkdir -p "$ac_dir" 14642 else 14643 as_dir="$ac_dir" 14644 as_dirs= 14645 while test ! -d "$as_dir"; do 14646 as_dirs="$as_dir $as_dirs" 14647 as_dir=`(dirname "$as_dir") 2>/dev/null || 14648 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14649 X"$as_dir" : 'X\(//\)[^/]' \| \ 14650 X"$as_dir" : 'X\(//\)$' \| \ 14651 X"$as_dir" : 'X\(/\)' \| \ 14652 . : '\(.\)' 2>/dev/null || 14653 echo X"$as_dir" | 14654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14655 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14656 /^X\(\/\/\)$/{ s//\1/; q; } 14657 /^X\(\/\).*/{ s//\1/; q; } 14658 s/.*/./; q'` 14659 done 14660 test ! -n "$as_dirs" || mkdir $as_dirs 14661 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 14662 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 14663 { (exit 1); exit 1; }; }; } 14664 14665 ac_builddir=. 14666 14667 if test "$ac_dir" != .; then 14668 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 14669 # A "../" for each directory in $ac_dir_suffix. 14670 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 14671 else 14672 ac_dir_suffix= ac_top_builddir= 14673 fi 14674 14675 case $srcdir in 14676 .) # No --srcdir option. We are building in place. 14677 ac_srcdir=. 14678 if test -z "$ac_top_builddir"; then 14679 ac_top_srcdir=. 14680 else 14681 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 14682 fi ;; 14683 [\\/]* | ?:[\\/]* ) # Absolute path. 14684 ac_srcdir=$srcdir$ac_dir_suffix; 14685 ac_top_srcdir=$srcdir ;; 14686 *) # Relative path. 14687 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 14688 ac_top_srcdir=$ac_top_builddir$srcdir ;; 14689 esac 14690 14691 # Do not use `cd foo && pwd` to compute absolute paths, because 14692 # the directories may not exist. 14693 case `pwd` in 14694 .) ac_abs_builddir="$ac_dir";; 14695 *) 14696 case "$ac_dir" in 14697 .) ac_abs_builddir=`pwd`;; 14698 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 14699 *) ac_abs_builddir=`pwd`/"$ac_dir";; 14700 esac;; 14701 esac 14702 case $ac_abs_builddir in 14703 .) ac_abs_top_builddir=${ac_top_builddir}.;; 14704 *) 14705 case ${ac_top_builddir}. in 14706 .) ac_abs_top_builddir=$ac_abs_builddir;; 14707 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 14708 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 14709 esac;; 14710 esac 14711 case $ac_abs_builddir in 14712 .) ac_abs_srcdir=$ac_srcdir;; 14713 *) 14714 case $ac_srcdir in 14715 .) ac_abs_srcdir=$ac_abs_builddir;; 14716 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 14717 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 14718 esac;; 14719 esac 14720 case $ac_abs_builddir in 14721 .) ac_abs_top_srcdir=$ac_top_srcdir;; 14722 *) 14723 case $ac_top_srcdir in 14724 .) ac_abs_top_srcdir=$ac_abs_builddir;; 14725 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 14726 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 14727 esac;; 14728 esac 14729 14730 14731 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 14732 echo "$as_me: executing $ac_dest commands" >&6;} 14733 case $ac_dest in 14734 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 14735 # Strip MF so we end up with the name of the file. 14736 mf=`echo "$mf" | sed -e 's/:.*$//'` 14737 # Check whether this is an Automake generated Makefile or not. 14738 # We used to match only the files named `Makefile.in', but 14739 # some people rename them; so instead we look at the file content. 14740 # Grep'ing the first line is not enough: some people post-process 14741 # each Makefile.in and add a new line on top of each file to say so. 14742 # So let's grep whole file. 14743 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 14744 dirpart=`(dirname "$mf") 2>/dev/null || 14745 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14746 X"$mf" : 'X\(//\)[^/]' \| \ 14747 X"$mf" : 'X\(//\)$' \| \ 14748 X"$mf" : 'X\(/\)' \| \ 14749 . : '\(.\)' 2>/dev/null || 14750 echo X"$mf" | 14751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14752 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14753 /^X\(\/\/\)$/{ s//\1/; q; } 14754 /^X\(\/\).*/{ s//\1/; q; } 14755 s/.*/./; q'` 14756 else 14757 continue 14758 fi 14759 # Extract the definition of DEPDIR, am__include, and am__quote 14760 # from the Makefile without running `make'. 14761 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 14762 test -z "$DEPDIR" && continue 14763 am__include=`sed -n 's/^am__include = //p' < "$mf"` 14764 test -z "am__include" && continue 14765 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 14766 # When using ansi2knr, U may be empty or an underscore; expand it 14767 U=`sed -n 's/^U = //p' < "$mf"` 14768 # Find all dependency output files, they are included files with 14769 # $(DEPDIR) in their names. We invoke sed twice because it is the 14770 # simplest approach to changing $(DEPDIR) to its actual value in the 14771 # expansion. 14772 for file in `sed -n " 14773 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 14774 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 14775 # Make sure the directory exists. 14776 test -f "$dirpart/$file" && continue 14777 fdir=`(dirname "$file") 2>/dev/null || 14778 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14779 X"$file" : 'X\(//\)[^/]' \| \ 14780 X"$file" : 'X\(//\)$' \| \ 14781 X"$file" : 'X\(/\)' \| \ 14782 . : '\(.\)' 2>/dev/null || 14783 echo X"$file" | 14784 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14785 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14786 /^X\(\/\/\)$/{ s//\1/; q; } 14787 /^X\(\/\).*/{ s//\1/; q; } 14788 s/.*/./; q'` 14789 { if $as_mkdir_p; then 14790 mkdir -p $dirpart/$fdir 14791 else 14792 as_dir=$dirpart/$fdir 14793 as_dirs= 14794 while test ! -d "$as_dir"; do 14795 as_dirs="$as_dir $as_dirs" 14796 as_dir=`(dirname "$as_dir") 2>/dev/null || 14797 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14798 X"$as_dir" : 'X\(//\)[^/]' \| \ 14799 X"$as_dir" : 'X\(//\)$' \| \ 14800 X"$as_dir" : 'X\(/\)' \| \ 14801 . : '\(.\)' 2>/dev/null || 14802 echo X"$as_dir" | 14803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14804 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14805 /^X\(\/\/\)$/{ s//\1/; q; } 14806 /^X\(\/\).*/{ s//\1/; q; } 14807 s/.*/./; q'` 14808 done 14809 test ! -n "$as_dirs" || mkdir $as_dirs 14810 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 14811 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 14812 { (exit 1); exit 1; }; }; } 14813 14814 # echo "creating $dirpart/$file" 14815 echo '# dummy' > "$dirpart/$file" 14816 done 14817 done 14818 ;; 14819 default-1 ) 14820 for ac_file in $CONFIG_FILES; do 14821 # Support "outfile[:infile[:infile...]]" 14822 case "$ac_file" in 14823 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 14824 esac 14825 # PO directories have a Makefile.in generated from Makefile.in.in. 14826 case "$ac_file" in */Makefile.in) 14827 # Adjust a relative srcdir. 14828 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 14829 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 14830 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 14831 # In autoconf-2.13 it is called $ac_given_srcdir. 14832 # In autoconf-2.50 it is called $srcdir. 14833 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 14834 case "$ac_given_srcdir" in 14835 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 14836 /*) top_srcdir="$ac_given_srcdir" ;; 14837 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 14838 esac 14839 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 14840 rm -f "$ac_dir/POTFILES" 14841 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 14842 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 14843 POMAKEFILEDEPS="POTFILES.in" 14844 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 14845 # on $ac_dir but don't depend on user-specified configuration 14846 # parameters. 14847 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 14848 # The LINGUAS file contains the set of available languages. 14849 if test -n "$OBSOLETE_ALL_LINGUAS"; then 14850 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 14851 fi 14852 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` 14853 # Hide the ALL_LINGUAS assigment from automake. 14854 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 14855 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 14856 else 14857 # The set of available languages was given in configure.in. 14858 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 14859 fi 14860 # Compute POFILES 14861 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 14862 # Compute UPDATEPOFILES 14863 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 14864 # Compute DUMMYPOFILES 14865 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 14866 # Compute GMOFILES 14867 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 14868 case "$ac_given_srcdir" in 14869 .) srcdirpre= ;; 14870 *) srcdirpre='$(srcdir)/' ;; 14871 esac 14872 POFILES= 14873 UPDATEPOFILES= 14874 DUMMYPOFILES= 14875 GMOFILES= 14876 for lang in $ALL_LINGUAS; do 14877 POFILES="$POFILES $srcdirpre$lang.po" 14878 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 14879 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 14880 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 14881 done 14882 # CATALOGS depends on both $ac_dir and the user's LINGUAS 14883 # environment variable. 14884 INST_LINGUAS= 14885 if test -n "$ALL_LINGUAS"; then 14886 for presentlang in $ALL_LINGUAS; do 14887 useit=no 14888 if test "%UNSET%" != "$LINGUAS"; then 14889 desiredlanguages="$LINGUAS" 14890 else 14891 desiredlanguages="$ALL_LINGUAS" 14892 fi 14893 for desiredlang in $desiredlanguages; do 14894 # Use the presentlang catalog if desiredlang is 14895 # a. equal to presentlang, or 14896 # b. a variant of presentlang (because in this case, 14897 # presentlang can be used as a fallback for messages 14898 # which are not translated in the desiredlang catalog). 14899 case "$desiredlang" in 14900 "$presentlang"*) useit=yes;; 14901 esac 14902 done 14903 if test $useit = yes; then 14904 INST_LINGUAS="$INST_LINGUAS $presentlang" 14905 fi 14906 done 14907 fi 14908 CATALOGS= 14909 if test -n "$INST_LINGUAS"; then 14910 for lang in $INST_LINGUAS; do 14911 CATALOGS="$CATALOGS $lang.gmo" 14912 done 14913 fi 14914 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 14915 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" 14916 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 14917 if test -f "$f"; then 14918 case "$f" in 14919 *.orig | *.bak | *~) ;; 14920 *) cat "$f" >> "$ac_dir/Makefile" ;; 14921 esac 14922 fi 14923 done 14924 fi 14925 ;; 14926 esac 14927 done ;; 14928 esac 14929 done 14930 _ACEOF 14931 14932 cat >>$CONFIG_STATUS <<\_ACEOF 14933 14934 { (exit 0); exit 0; } 14935 _ACEOF 14936 chmod +x $CONFIG_STATUS 14937 ac_clean_files=$ac_clean_files_save 14938 14939 14940 # configure is writing to config.log, and then calls config.status. 14941 # config.status does its own redirection, appending to config.log. 14942 # Unfortunately, on DOS this fails, as config.log is still kept open 14943 # by configure, so config.status won't be able to write to it; its 14944 # output is simply discarded. So we exec the FD to /dev/null, 14945 # effectively closing config.log, so it can be properly (re)opened and 14946 # appended to by config.status. When coming back to configure, we 14947 # need to make the FD available again. 14948 if test "$no_create" != yes; then 14949 ac_cs_success=: 14950 ac_config_status_args= 14951 test "$silent" = yes && 14952 ac_config_status_args="$ac_config_status_args --quiet" 14953 exec 5>/dev/null 14954 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14955 exec 5>>config.log 14956 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14957 # would make configure fail if this is the last instruction. 14958 $ac_cs_success || { (exit 1); exit 1; } 14959 fi 14960 14961