1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.53 for patch 2.5.8. 4# 5# Report bugs to <bug-patch@gnu.org>. 6# 7# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 8# Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11if mkdir -p . 2>/dev/null; then 12 as_mkdir_p=: 13else 14 as_mkdir_p=false 15fi 16 17 18if expr a : '\(a\)' >/dev/null 2>&1; then 19 as_expr=expr 20else 21 as_expr=false 22fi 23 24 25## --------------------- ## 26## M4sh Initialization. ## 27## --------------------- ## 28 29# Be Bourne compatible 30if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 31 emulate sh 32 NULLCMD=: 33elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 34 set -o posix 35fi 36 37# NLS nuisances. 38# Support unset when possible. 39if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 40 as_unset=unset 41else 42 as_unset=false 43fi 44 45(set +x; test -n "`(LANG=C; export LANG) 2>&1`") && 46 { $as_unset LANG || test "${LANG+set}" != set; } || 47 { LANG=C; export LANG; } 48(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && 49 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || 50 { LC_ALL=C; export LC_ALL; } 51(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && 52 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || 53 { LC_TIME=C; export LC_TIME; } 54(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && 55 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || 56 { LC_CTYPE=C; export LC_CTYPE; } 57(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && 58 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || 59 { LANGUAGE=C; export LANGUAGE; } 60(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && 61 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || 62 { LC_COLLATE=C; export LC_COLLATE; } 63(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && 64 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || 65 { LC_NUMERIC=C; export LC_NUMERIC; } 66(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && 67 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || 68 { LC_MESSAGES=C; export LC_MESSAGES; } 69 70 71# Name of the executable. 72as_me=`(basename "$0") 2>/dev/null || 73$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 74 X"$0" : 'X\(//\)$' \| \ 75 X"$0" : 'X\(/\)$' \| \ 76 . : '\(.\)' 2>/dev/null || 77echo X/"$0" | 78 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 79 /^X\/\(\/\/\)$/{ s//\1/; q; } 80 /^X\/\(\/\).*/{ s//\1/; q; } 81 s/.*/./; q'` 82 83# PATH needs CR, and LINENO needs CR and PATH. 84# Avoid depending upon Character Ranges. 85as_cr_letters='abcdefghijklmnopqrstuvwxyz' 86as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 87as_cr_Letters=$as_cr_letters$as_cr_LETTERS 88as_cr_digits='0123456789' 89as_cr_alnum=$as_cr_Letters$as_cr_digits 90 91# The user is always right. 92if test "${PATH_SEPARATOR+set}" != set; then 93 echo "#! /bin/sh" >conftest.sh 94 echo "exit 0" >>conftest.sh 95 chmod +x conftest.sh 96 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then 97 PATH_SEPARATOR=';' 98 else 99 PATH_SEPARATOR=: 100 fi 101 rm -f conftest.sh 102fi 103 104 105 as_lineno_1=$LINENO 106 as_lineno_2=$LINENO 107 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 108 test "x$as_lineno_1" != "x$as_lineno_2" && 109 test "x$as_lineno_3" = "x$as_lineno_2" || { 110 # Find who we are. Look in the path if we contain no path at all 111 # relative or not. 112 case $0 in 113 *[\\/]* ) as_myself=$0 ;; 114 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 115for as_dir in $PATH 116do 117 IFS=$as_save_IFS 118 test -z "$as_dir" && as_dir=. 119 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 120done 121 122 ;; 123 esac 124 # We did not find ourselves, most probably we were run as `sh COMMAND' 125 # in which case we are not to be found in the path. 126 if test "x$as_myself" = x; then 127 as_myself=$0 128 fi 129 if test ! -f "$as_myself"; then 130 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 131 { (exit 1); exit 1; }; } 132 fi 133 case $CONFIG_SHELL in 134 '') 135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 136for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 137do 138 IFS=$as_save_IFS 139 test -z "$as_dir" && as_dir=. 140 for as_base in sh bash ksh sh5; do 141 case $as_dir in 142 /*) 143 if ("$as_dir/$as_base" -c ' 144 as_lineno_1=$LINENO 145 as_lineno_2=$LINENO 146 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 147 test "x$as_lineno_1" != "x$as_lineno_2" && 148 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 149 CONFIG_SHELL=$as_dir/$as_base 150 export CONFIG_SHELL 151 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 152 fi;; 153 esac 154 done 155done 156;; 157 esac 158 159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 160 # uniformly replaced by the line number. The first 'sed' inserts a 161 # line-number line before each line; the second 'sed' does the real 162 # work. The second script uses 'N' to pair each line-number line 163 # with the numbered line, and appends trailing '-' during 164 # substitution so that $LINENO is not a special case at line end. 165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 167 sed '=' <$as_myself | 168 sed ' 169 N 170 s,$,-, 171 : loop 172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 173 t loop 174 s,-$,, 175 s,^['$as_cr_digits']*\n,, 176 ' >$as_me.lineno && 177 chmod +x $as_me.lineno || 178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 179 { (exit 1); exit 1; }; } 180 181 # Don't try to exec as it changes $[0], causing all sort of problems 182 # (the dirname of $[0] is not the place where we might find the 183 # original and so on. Autoconf is especially sensible to this). 184 . ./$as_me.lineno 185 # Exit status is that of the last command. 186 exit 187} 188 189 190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 191 *c*,-n*) ECHO_N= ECHO_C=' 192' ECHO_T=' ' ;; 193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 195esac 196 197if expr a : '\(a\)' >/dev/null 2>&1; then 198 as_expr=expr 199else 200 as_expr=false 201fi 202 203rm -f conf$$ conf$$.exe conf$$.file 204echo >conf$$.file 205if ln -s conf$$.file conf$$ 2>/dev/null; then 206 # We could just check for DJGPP; but this test a) works b) is more generic 207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 208 if test -f conf$$.exe; then 209 # Don't use ln at all; we don't have any links 210 as_ln_s='cp -p' 211 else 212 as_ln_s='ln -s' 213 fi 214elif ln conf$$.file conf$$ 2>/dev/null; then 215 as_ln_s=ln 216else 217 as_ln_s='cp -p' 218fi 219rm -f conf$$ conf$$.exe conf$$.file 220 221as_executable_p="test -f" 222 223# Sed expression to map a string onto a valid CPP name. 224as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 225 226# Sed expression to map a string onto a valid variable name. 227as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 228 229 230# IFS 231# We need space, tab and new line, in precisely that order. 232as_nl=' 233' 234IFS=" $as_nl" 235 236# CDPATH. 237$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } 238 239 240# Name of the host. 241# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 242# so uname gets run too. 243ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 244 245exec 6>&1 246 247# 248# Initializations. 249# 250ac_default_prefix=/usr/local 251cross_compiling=no 252subdirs= 253MFLAGS= 254MAKEFLAGS= 255SHELL=${CONFIG_SHELL-/bin/sh} 256 257# Maximum number of lines to put in a shell here document. 258# This variable seems obsolete. It should probably be removed, and 259# only ac_max_sed_lines should be used. 260: ${ac_max_here_lines=38} 261 262# Identity of this package. 263PACKAGE_NAME='patch' 264PACKAGE_TARNAME='patch' 265PACKAGE_VERSION='2.5.8' 266PACKAGE_STRING='patch 2.5.8' 267PACKAGE_BUGREPORT='bug-patch@gnu.org' 268 269ac_unique_file="patch.c" 270# Factoring default headers for most tests. 271ac_includes_default="\ 272#include <stdio.h> 273#if HAVE_SYS_TYPES_H 274# include <sys/types.h> 275#endif 276#if HAVE_SYS_STAT_H 277# include <sys/stat.h> 278#endif 279#if STDC_HEADERS 280# include <stdlib.h> 281# include <stddef.h> 282#else 283# if HAVE_STDLIB_H 284# include <stdlib.h> 285# endif 286#endif 287#if HAVE_STRING_H 288# if !STDC_HEADERS && HAVE_MEMORY_H 289# include <memory.h> 290# endif 291# include <string.h> 292#endif 293#if HAVE_STRINGS_H 294# include <strings.h> 295#endif 296#if HAVE_INTTYPES_H 297# include <inttypes.h> 298#else 299# if HAVE_STDINT_H 300# include <stdint.h> 301# endif 302#endif 303#if HAVE_UNISTD_H 304# include <unistd.h> 305#endif" 306 307 308# Initialize some variables set by options. 309ac_init_help= 310ac_init_version=false 311# The variables have the same names as the options, with 312# dashes changed to underlines. 313cache_file=/dev/null 314exec_prefix=NONE 315no_create= 316no_recursion= 317prefix=NONE 318program_prefix=NONE 319program_suffix=NONE 320program_transform_name=s,x,x, 321silent= 322site= 323srcdir= 324verbose= 325x_includes=NONE 326x_libraries=NONE 327 328# Installation directory options. 329# These are left unexpanded so users can "make install exec_prefix=/foo" 330# and all the variables that are supposed to be based on exec_prefix 331# by default will actually change. 332# Use braces instead of parens because sh, perl, etc. also accept them. 333bindir='${exec_prefix}/bin' 334sbindir='${exec_prefix}/sbin' 335libexecdir='${exec_prefix}/libexec' 336datadir='${prefix}/share' 337sysconfdir='${prefix}/etc' 338sharedstatedir='${prefix}/com' 339localstatedir='${prefix}/var' 340libdir='${exec_prefix}/lib' 341includedir='${prefix}/include' 342oldincludedir='/usr/include' 343infodir='${prefix}/info' 344mandir='${prefix}/man' 345 346ac_prev= 347for ac_option 348do 349 # If the previous option needs an argument, assign it. 350 if test -n "$ac_prev"; then 351 eval "$ac_prev=\$ac_option" 352 ac_prev= 353 continue 354 fi 355 356 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 357 358 # Accept the important Cygnus configure options, so we can diagnose typos. 359 360 case $ac_option in 361 362 -bindir | --bindir | --bindi | --bind | --bin | --bi) 363 ac_prev=bindir ;; 364 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 365 bindir=$ac_optarg ;; 366 367 -build | --build | --buil | --bui | --bu) 368 ac_prev=build_alias ;; 369 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 370 build_alias=$ac_optarg ;; 371 372 -cache-file | --cache-file | --cache-fil | --cache-fi \ 373 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 374 ac_prev=cache_file ;; 375 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 376 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 377 cache_file=$ac_optarg ;; 378 379 --config-cache | -C) 380 cache_file=config.cache ;; 381 382 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 383 ac_prev=datadir ;; 384 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 385 | --da=*) 386 datadir=$ac_optarg ;; 387 388 -disable-* | --disable-*) 389 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 390 # Reject names that are not valid shell variable names. 391 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 392 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 393 { (exit 1); exit 1; }; } 394 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 395 eval "enable_$ac_feature=no" ;; 396 397 -enable-* | --enable-*) 398 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 399 # Reject names that are not valid shell variable names. 400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 402 { (exit 1); exit 1; }; } 403 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 404 case $ac_option in 405 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 406 *) ac_optarg=yes ;; 407 esac 408 eval "enable_$ac_feature='$ac_optarg'" ;; 409 410 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 411 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 412 | --exec | --exe | --ex) 413 ac_prev=exec_prefix ;; 414 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 415 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 416 | --exec=* | --exe=* | --ex=*) 417 exec_prefix=$ac_optarg ;; 418 419 -gas | --gas | --ga | --g) 420 # Obsolete; use --with-gas. 421 with_gas=yes ;; 422 423 -help | --help | --hel | --he | -h) 424 ac_init_help=long ;; 425 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 426 ac_init_help=recursive ;; 427 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 428 ac_init_help=short ;; 429 430 -host | --host | --hos | --ho) 431 ac_prev=host_alias ;; 432 -host=* | --host=* | --hos=* | --ho=*) 433 host_alias=$ac_optarg ;; 434 435 -includedir | --includedir | --includedi | --included | --include \ 436 | --includ | --inclu | --incl | --inc) 437 ac_prev=includedir ;; 438 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 439 | --includ=* | --inclu=* | --incl=* | --inc=*) 440 includedir=$ac_optarg ;; 441 442 -infodir | --infodir | --infodi | --infod | --info | --inf) 443 ac_prev=infodir ;; 444 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 445 infodir=$ac_optarg ;; 446 447 -libdir | --libdir | --libdi | --libd) 448 ac_prev=libdir ;; 449 -libdir=* | --libdir=* | --libdi=* | --libd=*) 450 libdir=$ac_optarg ;; 451 452 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 453 | --libexe | --libex | --libe) 454 ac_prev=libexecdir ;; 455 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 456 | --libexe=* | --libex=* | --libe=*) 457 libexecdir=$ac_optarg ;; 458 459 -localstatedir | --localstatedir | --localstatedi | --localstated \ 460 | --localstate | --localstat | --localsta | --localst \ 461 | --locals | --local | --loca | --loc | --lo) 462 ac_prev=localstatedir ;; 463 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 464 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 465 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 466 localstatedir=$ac_optarg ;; 467 468 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 469 ac_prev=mandir ;; 470 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 471 mandir=$ac_optarg ;; 472 473 -nfp | --nfp | --nf) 474 # Obsolete; use --without-fp. 475 with_fp=no ;; 476 477 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 478 | --no-cr | --no-c | -n) 479 no_create=yes ;; 480 481 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 482 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 483 no_recursion=yes ;; 484 485 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 486 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 487 | --oldin | --oldi | --old | --ol | --o) 488 ac_prev=oldincludedir ;; 489 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 490 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 491 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 492 oldincludedir=$ac_optarg ;; 493 494 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 495 ac_prev=prefix ;; 496 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 497 prefix=$ac_optarg ;; 498 499 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 500 | --program-pre | --program-pr | --program-p) 501 ac_prev=program_prefix ;; 502 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 503 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 504 program_prefix=$ac_optarg ;; 505 506 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 507 | --program-suf | --program-su | --program-s) 508 ac_prev=program_suffix ;; 509 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 510 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 511 program_suffix=$ac_optarg ;; 512 513 -program-transform-name | --program-transform-name \ 514 | --program-transform-nam | --program-transform-na \ 515 | --program-transform-n | --program-transform- \ 516 | --program-transform | --program-transfor \ 517 | --program-transfo | --program-transf \ 518 | --program-trans | --program-tran \ 519 | --progr-tra | --program-tr | --program-t) 520 ac_prev=program_transform_name ;; 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 program_transform_name=$ac_optarg ;; 529 530 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 531 | -silent | --silent | --silen | --sile | --sil) 532 silent=yes ;; 533 534 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 535 ac_prev=sbindir ;; 536 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 537 | --sbi=* | --sb=*) 538 sbindir=$ac_optarg ;; 539 540 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 541 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 542 | --sharedst | --shareds | --shared | --share | --shar \ 543 | --sha | --sh) 544 ac_prev=sharedstatedir ;; 545 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 546 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 547 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 548 | --sha=* | --sh=*) 549 sharedstatedir=$ac_optarg ;; 550 551 -site | --site | --sit) 552 ac_prev=site ;; 553 -site=* | --site=* | --sit=*) 554 site=$ac_optarg ;; 555 556 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 557 ac_prev=srcdir ;; 558 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 559 srcdir=$ac_optarg ;; 560 561 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 562 | --syscon | --sysco | --sysc | --sys | --sy) 563 ac_prev=sysconfdir ;; 564 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 565 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 566 sysconfdir=$ac_optarg ;; 567 568 -target | --target | --targe | --targ | --tar | --ta | --t) 569 ac_prev=target_alias ;; 570 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 571 target_alias=$ac_optarg ;; 572 573 -v | -verbose | --verbose | --verbos | --verbo | --verb) 574 verbose=yes ;; 575 576 -version | --version | --versio | --versi | --vers | -V) 577 ac_init_version=: ;; 578 579 -with-* | --with-*) 580 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 581 # Reject names that are not valid shell variable names. 582 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 583 { echo "$as_me: error: invalid package name: $ac_package" >&2 584 { (exit 1); exit 1; }; } 585 ac_package=`echo $ac_package| sed 's/-/_/g'` 586 case $ac_option in 587 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 588 *) ac_optarg=yes ;; 589 esac 590 eval "with_$ac_package='$ac_optarg'" ;; 591 592 -without-* | --without-*) 593 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 594 # Reject names that are not valid shell variable names. 595 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 596 { echo "$as_me: error: invalid package name: $ac_package" >&2 597 { (exit 1); exit 1; }; } 598 ac_package=`echo $ac_package | sed 's/-/_/g'` 599 eval "with_$ac_package=no" ;; 600 601 --x) 602 # Obsolete; use --with-x. 603 with_x=yes ;; 604 605 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 606 | --x-incl | --x-inc | --x-in | --x-i) 607 ac_prev=x_includes ;; 608 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 609 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 610 x_includes=$ac_optarg ;; 611 612 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 613 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 614 ac_prev=x_libraries ;; 615 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 616 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 617 x_libraries=$ac_optarg ;; 618 619 -*) { echo "$as_me: error: unrecognized option: $ac_option 620Try \`$0 --help' for more information." >&2 621 { (exit 1); exit 1; }; } 622 ;; 623 624 *=*) 625 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 626 # Reject names that are not valid shell variable names. 627 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 628 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 629 { (exit 1); exit 1; }; } 630 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 631 eval "$ac_envvar='$ac_optarg'" 632 export $ac_envvar ;; 633 634 *) 635 # FIXME: should be removed in autoconf 3.0. 636 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 637 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 638 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 639 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 640 ;; 641 642 esac 643done 644 645if test -n "$ac_prev"; then 646 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 647 { echo "$as_me: error: missing argument to $ac_option" >&2 648 { (exit 1); exit 1; }; } 649fi 650 651# Be sure to have absolute paths. 652for ac_var in exec_prefix prefix 653do 654 eval ac_val=$`echo $ac_var` 655 case $ac_val in 656 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 657 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 658 { (exit 1); exit 1; }; };; 659 esac 660done 661 662# Be sure to have absolute paths. 663for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 664 localstatedir libdir includedir oldincludedir infodir mandir 665do 666 eval ac_val=$`echo $ac_var` 667 case $ac_val in 668 [\\/$]* | ?:[\\/]* ) ;; 669 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 670 { (exit 1); exit 1; }; };; 671 esac 672done 673 674# There might be people who depend on the old broken behavior: `$host' 675# used to hold the argument of --host etc. 676# FIXME: To remove some day. 677build=$build_alias 678host=$host_alias 679target=$target_alias 680 681# FIXME: To remove some day. 682if test "x$host_alias" != x; then 683 if test "x$build_alias" = x; then 684 cross_compiling=maybe 685 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 686 If a cross compiler is detected then cross compile mode will be used." >&2 687 elif test "x$build_alias" != "x$host_alias"; then 688 cross_compiling=yes 689 fi 690fi 691 692ac_tool_prefix= 693test -n "$host_alias" && ac_tool_prefix=$host_alias- 694 695test "$silent" = yes && exec 6>/dev/null 696 697 698# Find the source files, if location was not specified. 699if test -z "$srcdir"; then 700 ac_srcdir_defaulted=yes 701 # Try the directory containing this script, then its parent. 702 ac_confdir=`(dirname "$0") 2>/dev/null || 703$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 704 X"$0" : 'X\(//\)[^/]' \| \ 705 X"$0" : 'X\(//\)$' \| \ 706 X"$0" : 'X\(/\)' \| \ 707 . : '\(.\)' 2>/dev/null || 708echo X"$0" | 709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 710 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 711 /^X\(\/\/\)$/{ s//\1/; q; } 712 /^X\(\/\).*/{ s//\1/; q; } 713 s/.*/./; q'` 714 srcdir=$ac_confdir 715 if test ! -r $srcdir/$ac_unique_file; then 716 srcdir=.. 717 fi 718else 719 ac_srcdir_defaulted=no 720fi 721if test ! -r $srcdir/$ac_unique_file; then 722 if test "$ac_srcdir_defaulted" = yes; then 723 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 724 { (exit 1); exit 1; }; } 725 else 726 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 727 { (exit 1); exit 1; }; } 728 fi 729fi 730srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 731ac_env_build_alias_set=${build_alias+set} 732ac_env_build_alias_value=$build_alias 733ac_cv_env_build_alias_set=${build_alias+set} 734ac_cv_env_build_alias_value=$build_alias 735ac_env_host_alias_set=${host_alias+set} 736ac_env_host_alias_value=$host_alias 737ac_cv_env_host_alias_set=${host_alias+set} 738ac_cv_env_host_alias_value=$host_alias 739ac_env_target_alias_set=${target_alias+set} 740ac_env_target_alias_value=$target_alias 741ac_cv_env_target_alias_set=${target_alias+set} 742ac_cv_env_target_alias_value=$target_alias 743ac_env_CC_set=${CC+set} 744ac_env_CC_value=$CC 745ac_cv_env_CC_set=${CC+set} 746ac_cv_env_CC_value=$CC 747ac_env_CFLAGS_set=${CFLAGS+set} 748ac_env_CFLAGS_value=$CFLAGS 749ac_cv_env_CFLAGS_set=${CFLAGS+set} 750ac_cv_env_CFLAGS_value=$CFLAGS 751ac_env_LDFLAGS_set=${LDFLAGS+set} 752ac_env_LDFLAGS_value=$LDFLAGS 753ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 754ac_cv_env_LDFLAGS_value=$LDFLAGS 755ac_env_CPPFLAGS_set=${CPPFLAGS+set} 756ac_env_CPPFLAGS_value=$CPPFLAGS 757ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 758ac_cv_env_CPPFLAGS_value=$CPPFLAGS 759ac_env_CPP_set=${CPP+set} 760ac_env_CPP_value=$CPP 761ac_cv_env_CPP_set=${CPP+set} 762ac_cv_env_CPP_value=$CPP 763 764# 765# Report the --help message. 766# 767if test "$ac_init_help" = "long"; then 768 # Omit some internal or obsolete options to make the list less imposing. 769 # This message is too long to be a string in the A/UX 3.1 sh. 770 cat <<_ACEOF 771\`configure' configures patch 2.5.8 to adapt to many kinds of systems. 772 773Usage: $0 [OPTION]... [VAR=VALUE]... 774 775To assign environment variables (e.g., CC, CFLAGS...), specify them as 776VAR=VALUE. See below for descriptions of some of the useful variables. 777 778Defaults for the options are specified in brackets. 779 780Configuration: 781 -h, --help display this help and exit 782 --help=short display options specific to this package 783 --help=recursive display the short help of all the included packages 784 -V, --version display version information and exit 785 -q, --quiet, --silent do not print \`checking...' messages 786 --cache-file=FILE cache test results in FILE [disabled] 787 -C, --config-cache alias for \`--cache-file=config.cache' 788 -n, --no-create do not create output files 789 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 790 791_ACEOF 792 793 cat <<_ACEOF 794Installation directories: 795 --prefix=PREFIX install architecture-independent files in PREFIX 796 [$ac_default_prefix] 797 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 798 [PREFIX] 799 800By default, \`make install' will install all the files in 801\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 802an installation prefix other than \`$ac_default_prefix' using \`--prefix', 803for instance \`--prefix=\$HOME'. 804 805For better control, use the options below. 806 807Fine tuning of the installation directories: 808 --bindir=DIR user executables [EPREFIX/bin] 809 --sbindir=DIR system admin executables [EPREFIX/sbin] 810 --libexecdir=DIR program executables [EPREFIX/libexec] 811 --datadir=DIR read-only architecture-independent data [PREFIX/share] 812 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 813 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 814 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 815 --libdir=DIR object code libraries [EPREFIX/lib] 816 --includedir=DIR C header files [PREFIX/include] 817 --oldincludedir=DIR C header files for non-gcc [/usr/include] 818 --infodir=DIR info documentation [PREFIX/info] 819 --mandir=DIR man documentation [PREFIX/man] 820_ACEOF 821 822 cat <<\_ACEOF 823 824Program names: 825 --program-prefix=PREFIX prepend PREFIX to installed program names 826 --program-suffix=SUFFIX append SUFFIX to installed program names 827 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 828_ACEOF 829fi 830 831if test -n "$ac_init_help"; then 832 case $ac_init_help in 833 short | recursive ) echo "Configuration of patch 2.5.8:";; 834 esac 835 cat <<\_ACEOF 836 837Optional Features: 838 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 839 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 840 --disable-largefile omit support for large files 841 842Some influential environment variables: 843 CC C compiler command 844 CFLAGS C compiler flags 845 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 846 nonstandard directory <lib dir> 847 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 848 headers in a nonstandard directory <include dir> 849 CPP C preprocessor 850 851Use these variables to override the choices made by `configure' or to help 852it to find libraries and programs with nonstandard names/locations. 853 854Report bugs to <bug-patch@gnu.org>. 855_ACEOF 856fi 857 858if test "$ac_init_help" = "recursive"; then 859 # If there are subdirs, report their specific --help. 860 ac_popdir=`pwd` 861 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 862 test -d $ac_dir || continue 863 ac_builddir=. 864 865if test "$ac_dir" != .; then 866 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 867 # A "../" for each directory in $ac_dir_suffix. 868 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 869else 870 ac_dir_suffix= ac_top_builddir= 871fi 872 873case $srcdir in 874 .) # No --srcdir option. We are building in place. 875 ac_srcdir=. 876 if test -z "$ac_top_builddir"; then 877 ac_top_srcdir=. 878 else 879 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 880 fi ;; 881 [\\/]* | ?:[\\/]* ) # Absolute path. 882 ac_srcdir=$srcdir$ac_dir_suffix; 883 ac_top_srcdir=$srcdir ;; 884 *) # Relative path. 885 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 886 ac_top_srcdir=$ac_top_builddir$srcdir ;; 887esac 888# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 889# absolute. 890ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 891ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` 892ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 893ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 894 895 cd $ac_dir 896 # Check for guested configure; otherwise get Cygnus style configure. 897 if test -f $ac_srcdir/configure.gnu; then 898 echo 899 $SHELL $ac_srcdir/configure.gnu --help=recursive 900 elif test -f $ac_srcdir/configure; then 901 echo 902 $SHELL $ac_srcdir/configure --help=recursive 903 elif test -f $ac_srcdir/configure.ac || 904 test -f $ac_srcdir/configure.in; then 905 echo 906 $ac_configure --help 907 else 908 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 909 fi 910 cd $ac_popdir 911 done 912fi 913 914test -n "$ac_init_help" && exit 0 915if $ac_init_version; then 916 cat <<\_ACEOF 917patch configure 2.5.8 918generated by GNU Autoconf 2.53 919 920Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 921Free Software Foundation, Inc. 922This configure script is free software; the Free Software Foundation 923gives unlimited permission to copy, distribute and modify it. 924_ACEOF 925 exit 0 926fi 927exec 5>config.log 928cat >&5 <<_ACEOF 929This file contains any messages produced by compilers while 930running configure, to aid debugging if configure makes a mistake. 931 932It was created by patch $as_me 2.5.8, which was 933generated by GNU Autoconf 2.53. Invocation command line was 934 935 $ $0 $@ 936 937_ACEOF 938{ 939cat <<_ASUNAME 940## --------- ## 941## Platform. ## 942## --------- ## 943 944hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 945uname -m = `(uname -m) 2>/dev/null || echo unknown` 946uname -r = `(uname -r) 2>/dev/null || echo unknown` 947uname -s = `(uname -s) 2>/dev/null || echo unknown` 948uname -v = `(uname -v) 2>/dev/null || echo unknown` 949 950/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 951/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 952 953/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 954/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 955/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 956hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 957/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 958/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 959/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 960 961_ASUNAME 962 963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 964for as_dir in $PATH 965do 966 IFS=$as_save_IFS 967 test -z "$as_dir" && as_dir=. 968 echo "PATH: $as_dir" 969done 970 971} >&5 972 973cat >&5 <<_ACEOF 974 975 976## ----------- ## 977## Core tests. ## 978## ----------- ## 979 980_ACEOF 981 982 983# Keep a trace of the command line. 984# Strip out --no-create and --no-recursion so they do not pile up. 985# Also quote any args containing shell meta-characters. 986ac_configure_args= 987ac_sep= 988for ac_arg 989do 990 case $ac_arg in 991 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 992 | --no-cr | --no-c | -n ) continue ;; 993 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 994 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 995 continue ;; 996 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 997 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 998 esac 999 case " $ac_configure_args " in 1000 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1001 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1002 ac_sep=" " ;; 1003 esac 1004 # Get rid of the leading space. 1005done 1006 1007# When interrupted or exit'd, cleanup temporary files, and complete 1008# config.log. We remove comments because anyway the quotes in there 1009# would cause problems or look ugly. 1010# WARNING: Be sure not to use single quotes in there, as some shells, 1011# such as our DU 5.0 friend, will then `close' the trap. 1012trap 'exit_status=$? 1013 # Save into config.log some information that might help in debugging. 1014 { 1015 echo 1016 cat <<\_ASBOX 1017## ---------------- ## 1018## Cache variables. ## 1019## ---------------- ## 1020_ASBOX 1021 echo 1022 # The following way of writing the cache mishandles newlines in values, 1023{ 1024 (set) 2>&1 | 1025 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1026 *ac_space=\ *) 1027 sed -n \ 1028 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1029 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1030 ;; 1031 *) 1032 sed -n \ 1033 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1034 ;; 1035 esac; 1036} 1037 echo 1038 if test -s confdefs.h; then 1039 cat <<\_ASBOX 1040## ----------- ## 1041## confdefs.h. ## 1042## ----------- ## 1043_ASBOX 1044 echo 1045 sed "/^$/d" confdefs.h 1046 echo 1047 fi 1048 test "$ac_signal" != 0 && 1049 echo "$as_me: caught signal $ac_signal" 1050 echo "$as_me: exit $exit_status" 1051 } >&5 1052 rm -f core core.* *.core && 1053 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1054 exit $exit_status 1055 ' 0 1056for ac_signal in 1 2 13 15; do 1057 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1058done 1059ac_signal=0 1060 1061# confdefs.h avoids OS command line length limits that DEFS can exceed. 1062rm -rf conftest* confdefs.h 1063# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1064echo >confdefs.h 1065 1066# Predefined preprocessor variables. 1067 1068cat >>confdefs.h <<_ACEOF 1069#define PACKAGE_NAME "$PACKAGE_NAME" 1070_ACEOF 1071 1072 1073cat >>confdefs.h <<_ACEOF 1074#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1075_ACEOF 1076 1077 1078cat >>confdefs.h <<_ACEOF 1079#define PACKAGE_VERSION "$PACKAGE_VERSION" 1080_ACEOF 1081 1082 1083cat >>confdefs.h <<_ACEOF 1084#define PACKAGE_STRING "$PACKAGE_STRING" 1085_ACEOF 1086 1087 1088cat >>confdefs.h <<_ACEOF 1089#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1090_ACEOF 1091 1092 1093# Let the site file select an alternate cache file if it wants to. 1094# Prefer explicitly selected file to automatically selected ones. 1095if test -z "$CONFIG_SITE"; then 1096 if test "x$prefix" != xNONE; then 1097 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1098 else 1099 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1100 fi 1101fi 1102for ac_site_file in $CONFIG_SITE; do 1103 if test -r "$ac_site_file"; then 1104 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1105echo "$as_me: loading site script $ac_site_file" >&6;} 1106 sed 's/^/| /' "$ac_site_file" >&5 1107 . "$ac_site_file" 1108 fi 1109done 1110 1111if test -r "$cache_file"; then 1112 # Some versions of bash will fail to source /dev/null (special 1113 # files actually), so we avoid doing that. 1114 if test -f "$cache_file"; then 1115 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1116echo "$as_me: loading cache $cache_file" >&6;} 1117 case $cache_file in 1118 [\\/]* | ?:[\\/]* ) . $cache_file;; 1119 *) . ./$cache_file;; 1120 esac 1121 fi 1122else 1123 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1124echo "$as_me: creating cache $cache_file" >&6;} 1125 >$cache_file 1126fi 1127 1128# Check that the precious variables saved in the cache have kept the same 1129# value. 1130ac_cache_corrupted=false 1131for ac_var in `(set) 2>&1 | 1132 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1133 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1134 eval ac_new_set=\$ac_env_${ac_var}_set 1135 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1136 eval ac_new_val="\$ac_env_${ac_var}_value" 1137 case $ac_old_set,$ac_new_set in 1138 set,) 1139 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1140echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1141 ac_cache_corrupted=: ;; 1142 ,set) 1143 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1144echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1145 ac_cache_corrupted=: ;; 1146 ,);; 1147 *) 1148 if test "x$ac_old_val" != "x$ac_new_val"; then 1149 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1150echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1151 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1152echo "$as_me: former value: $ac_old_val" >&2;} 1153 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1154echo "$as_me: current value: $ac_new_val" >&2;} 1155 ac_cache_corrupted=: 1156 fi;; 1157 esac 1158 # Pass precious variables to config.status. 1159 if test "$ac_new_set" = set; then 1160 case $ac_new_val in 1161 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1162 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1163 *) ac_arg=$ac_var=$ac_new_val ;; 1164 esac 1165 case " $ac_configure_args " in 1166 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1167 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1168 esac 1169 fi 1170done 1171if $ac_cache_corrupted; then 1172 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1173echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1174 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1175echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1176 { (exit 1); exit 1; }; } 1177fi 1178 1179ac_ext=c 1180ac_cpp='$CPP $CPPFLAGS' 1181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1183ac_compiler_gnu=$ac_cv_c_compiler_gnu 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211ac_config_headers="$ac_config_headers config.h:config.hin" 1212 1213test "$program_prefix" != NONE && 1214 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1215# Use a double $ so make ignores it. 1216test "$program_suffix" != NONE && 1217 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1218# Double any \ or $. echo might interpret backslashes. 1219# By default was `s,x,x', remove it if useless. 1220cat <<\_ACEOF >conftest.sed 1221s/[\\$]/&&/g;s/;s,x,x,$// 1222_ACEOF 1223program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1224rm conftest.sed 1225 1226 1227ac_ext=c 1228ac_cpp='$CPP $CPPFLAGS' 1229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1231ac_compiler_gnu=$ac_cv_c_compiler_gnu 1232if test -n "$ac_tool_prefix"; then 1233 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1234set dummy ${ac_tool_prefix}gcc; ac_word=$2 1235echo "$as_me:$LINENO: checking for $ac_word" >&5 1236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1237if test "${ac_cv_prog_CC+set}" = set; then 1238 echo $ECHO_N "(cached) $ECHO_C" >&6 1239else 1240 if test -n "$CC"; then 1241 ac_cv_prog_CC="$CC" # Let the user override the test. 1242else 1243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1244for as_dir in $PATH 1245do 1246 IFS=$as_save_IFS 1247 test -z "$as_dir" && as_dir=. 1248 for ac_exec_ext in '' $ac_executable_extensions; do 1249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1250 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1252 break 2 1253 fi 1254done 1255done 1256 1257fi 1258fi 1259CC=$ac_cv_prog_CC 1260if test -n "$CC"; then 1261 echo "$as_me:$LINENO: result: $CC" >&5 1262echo "${ECHO_T}$CC" >&6 1263else 1264 echo "$as_me:$LINENO: result: no" >&5 1265echo "${ECHO_T}no" >&6 1266fi 1267 1268fi 1269if test -z "$ac_cv_prog_CC"; then 1270 ac_ct_CC=$CC 1271 # Extract the first word of "gcc", so it can be a program name with args. 1272set dummy gcc; ac_word=$2 1273echo "$as_me:$LINENO: checking for $ac_word" >&5 1274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1275if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1276 echo $ECHO_N "(cached) $ECHO_C" >&6 1277else 1278 if test -n "$ac_ct_CC"; then 1279 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1280else 1281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1282for as_dir in $PATH 1283do 1284 IFS=$as_save_IFS 1285 test -z "$as_dir" && as_dir=. 1286 for ac_exec_ext in '' $ac_executable_extensions; do 1287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1288 ac_cv_prog_ac_ct_CC="gcc" 1289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1290 break 2 1291 fi 1292done 1293done 1294 1295fi 1296fi 1297ac_ct_CC=$ac_cv_prog_ac_ct_CC 1298if test -n "$ac_ct_CC"; then 1299 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1300echo "${ECHO_T}$ac_ct_CC" >&6 1301else 1302 echo "$as_me:$LINENO: result: no" >&5 1303echo "${ECHO_T}no" >&6 1304fi 1305 1306 CC=$ac_ct_CC 1307else 1308 CC="$ac_cv_prog_CC" 1309fi 1310 1311if test -z "$CC"; then 1312 if test -n "$ac_tool_prefix"; then 1313 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1314set dummy ${ac_tool_prefix}cc; ac_word=$2 1315echo "$as_me:$LINENO: checking for $ac_word" >&5 1316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1317if test "${ac_cv_prog_CC+set}" = set; then 1318 echo $ECHO_N "(cached) $ECHO_C" >&6 1319else 1320 if test -n "$CC"; then 1321 ac_cv_prog_CC="$CC" # Let the user override the test. 1322else 1323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1324for as_dir in $PATH 1325do 1326 IFS=$as_save_IFS 1327 test -z "$as_dir" && as_dir=. 1328 for ac_exec_ext in '' $ac_executable_extensions; do 1329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1330 ac_cv_prog_CC="${ac_tool_prefix}cc" 1331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1332 break 2 1333 fi 1334done 1335done 1336 1337fi 1338fi 1339CC=$ac_cv_prog_CC 1340if test -n "$CC"; then 1341 echo "$as_me:$LINENO: result: $CC" >&5 1342echo "${ECHO_T}$CC" >&6 1343else 1344 echo "$as_me:$LINENO: result: no" >&5 1345echo "${ECHO_T}no" >&6 1346fi 1347 1348fi 1349if test -z "$ac_cv_prog_CC"; then 1350 ac_ct_CC=$CC 1351 # Extract the first word of "cc", so it can be a program name with args. 1352set dummy cc; ac_word=$2 1353echo "$as_me:$LINENO: checking for $ac_word" >&5 1354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1355if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1356 echo $ECHO_N "(cached) $ECHO_C" >&6 1357else 1358 if test -n "$ac_ct_CC"; then 1359 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1360else 1361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1362for as_dir in $PATH 1363do 1364 IFS=$as_save_IFS 1365 test -z "$as_dir" && as_dir=. 1366 for ac_exec_ext in '' $ac_executable_extensions; do 1367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1368 ac_cv_prog_ac_ct_CC="cc" 1369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1370 break 2 1371 fi 1372done 1373done 1374 1375fi 1376fi 1377ac_ct_CC=$ac_cv_prog_ac_ct_CC 1378if test -n "$ac_ct_CC"; then 1379 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1380echo "${ECHO_T}$ac_ct_CC" >&6 1381else 1382 echo "$as_me:$LINENO: result: no" >&5 1383echo "${ECHO_T}no" >&6 1384fi 1385 1386 CC=$ac_ct_CC 1387else 1388 CC="$ac_cv_prog_CC" 1389fi 1390 1391fi 1392if test -z "$CC"; then 1393 # Extract the first word of "cc", so it can be a program name with args. 1394set dummy cc; ac_word=$2 1395echo "$as_me:$LINENO: checking for $ac_word" >&5 1396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1397if test "${ac_cv_prog_CC+set}" = set; then 1398 echo $ECHO_N "(cached) $ECHO_C" >&6 1399else 1400 if test -n "$CC"; then 1401 ac_cv_prog_CC="$CC" # Let the user override the test. 1402else 1403 ac_prog_rejected=no 1404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1405for as_dir in $PATH 1406do 1407 IFS=$as_save_IFS 1408 test -z "$as_dir" && as_dir=. 1409 for ac_exec_ext in '' $ac_executable_extensions; do 1410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1411 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1412 ac_prog_rejected=yes 1413 continue 1414 fi 1415 ac_cv_prog_CC="cc" 1416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1417 break 2 1418 fi 1419done 1420done 1421 1422if test $ac_prog_rejected = yes; then 1423 # We found a bogon in the path, so make sure we never use it. 1424 set dummy $ac_cv_prog_CC 1425 shift 1426 if test $# != 0; then 1427 # We chose a different compiler from the bogus one. 1428 # However, it has the same basename, so the bogon will be chosen 1429 # first if we set CC to just the basename; use the full file name. 1430 shift 1431 set dummy "$as_dir/$ac_word" ${1+"$@"} 1432 shift 1433 ac_cv_prog_CC="$@" 1434 fi 1435fi 1436fi 1437fi 1438CC=$ac_cv_prog_CC 1439if test -n "$CC"; then 1440 echo "$as_me:$LINENO: result: $CC" >&5 1441echo "${ECHO_T}$CC" >&6 1442else 1443 echo "$as_me:$LINENO: result: no" >&5 1444echo "${ECHO_T}no" >&6 1445fi 1446 1447fi 1448if test -z "$CC"; then 1449 if test -n "$ac_tool_prefix"; then 1450 for ac_prog in cl 1451 do 1452 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1453set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1454echo "$as_me:$LINENO: checking for $ac_word" >&5 1455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1456if test "${ac_cv_prog_CC+set}" = set; then 1457 echo $ECHO_N "(cached) $ECHO_C" >&6 1458else 1459 if test -n "$CC"; then 1460 ac_cv_prog_CC="$CC" # Let the user override the test. 1461else 1462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1463for as_dir in $PATH 1464do 1465 IFS=$as_save_IFS 1466 test -z "$as_dir" && as_dir=. 1467 for ac_exec_ext in '' $ac_executable_extensions; do 1468 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1469 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1471 break 2 1472 fi 1473done 1474done 1475 1476fi 1477fi 1478CC=$ac_cv_prog_CC 1479if test -n "$CC"; then 1480 echo "$as_me:$LINENO: result: $CC" >&5 1481echo "${ECHO_T}$CC" >&6 1482else 1483 echo "$as_me:$LINENO: result: no" >&5 1484echo "${ECHO_T}no" >&6 1485fi 1486 1487 test -n "$CC" && break 1488 done 1489fi 1490if test -z "$CC"; then 1491 ac_ct_CC=$CC 1492 for ac_prog in cl 1493do 1494 # Extract the first word of "$ac_prog", so it can be a program name with args. 1495set dummy $ac_prog; ac_word=$2 1496echo "$as_me:$LINENO: checking for $ac_word" >&5 1497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1498if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1499 echo $ECHO_N "(cached) $ECHO_C" >&6 1500else 1501 if test -n "$ac_ct_CC"; then 1502 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1503else 1504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1505for as_dir in $PATH 1506do 1507 IFS=$as_save_IFS 1508 test -z "$as_dir" && as_dir=. 1509 for ac_exec_ext in '' $ac_executable_extensions; do 1510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1511 ac_cv_prog_ac_ct_CC="$ac_prog" 1512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1513 break 2 1514 fi 1515done 1516done 1517 1518fi 1519fi 1520ac_ct_CC=$ac_cv_prog_ac_ct_CC 1521if test -n "$ac_ct_CC"; then 1522 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1523echo "${ECHO_T}$ac_ct_CC" >&6 1524else 1525 echo "$as_me:$LINENO: result: no" >&5 1526echo "${ECHO_T}no" >&6 1527fi 1528 1529 test -n "$ac_ct_CC" && break 1530done 1531 1532 CC=$ac_ct_CC 1533fi 1534 1535fi 1536 1537 1538test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 1539echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} 1540 { (exit 1); exit 1; }; } 1541 1542# Provide some information about the compiler. 1543echo "$as_me:$LINENO:" \ 1544 "checking for C compiler version" >&5 1545ac_compiler=`set X $ac_compile; echo $2` 1546{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1547 (eval $ac_compiler --version </dev/null >&5) 2>&5 1548 ac_status=$? 1549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1550 (exit $ac_status); } 1551{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1552 (eval $ac_compiler -v </dev/null >&5) 2>&5 1553 ac_status=$? 1554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1555 (exit $ac_status); } 1556{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1557 (eval $ac_compiler -V </dev/null >&5) 2>&5 1558 ac_status=$? 1559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1560 (exit $ac_status); } 1561 1562cat >conftest.$ac_ext <<_ACEOF 1563#line $LINENO "configure" 1564#include "confdefs.h" 1565 1566#ifdef F77_DUMMY_MAIN 1567# ifdef __cplusplus 1568 extern "C" 1569# endif 1570 int F77_DUMMY_MAIN() { return 1; } 1571#endif 1572int 1573main () 1574{ 1575 1576 ; 1577 return 0; 1578} 1579_ACEOF 1580ac_clean_files_save=$ac_clean_files 1581ac_clean_files="$ac_clean_files a.out a.exe" 1582# Try to create an executable without -o first, disregard a.out. 1583# It will help us diagnose broken compilers, and finding out an intuition 1584# of exeext. 1585echo "$as_me:$LINENO: checking for C compiler default output" >&5 1586echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 1587ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1588if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1589 (eval $ac_link_default) 2>&5 1590 ac_status=$? 1591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1592 (exit $ac_status); }; then 1593 # Find the output, starting from the most likely. This scheme is 1594# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1595# resort. 1596 1597# Be careful to initialize this variable, since it used to be cached. 1598# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1599ac_cv_exeext= 1600for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; 1601 ls a.out conftest 2>/dev/null; 1602 ls a.* conftest.* 2>/dev/null`; do 1603 case $ac_file in 1604 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; 1605 a.out ) # We found the default executable, but exeext='' is most 1606 # certainly right. 1607 break;; 1608 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1609 # FIXME: I believe we export ac_cv_exeext for Libtool --akim. 1610 export ac_cv_exeext 1611 break;; 1612 * ) break;; 1613 esac 1614done 1615else 1616 echo "$as_me: failed program was:" >&5 1617cat conftest.$ac_ext >&5 1618{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 1619echo "$as_me: error: C compiler cannot create executables" >&2;} 1620 { (exit 77); exit 77; }; } 1621fi 1622 1623ac_exeext=$ac_cv_exeext 1624echo "$as_me:$LINENO: result: $ac_file" >&5 1625echo "${ECHO_T}$ac_file" >&6 1626 1627# Check the compiler produces executables we can run. If not, either 1628# the compiler is broken, or we cross compile. 1629echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1630echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1631# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1632# If not cross compiling, check that we can run a simple program. 1633if test "$cross_compiling" != yes; then 1634 if { ac_try='./$ac_file' 1635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1636 (eval $ac_try) 2>&5 1637 ac_status=$? 1638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1639 (exit $ac_status); }; }; then 1640 cross_compiling=no 1641 else 1642 if test "$cross_compiling" = maybe; then 1643 cross_compiling=yes 1644 else 1645 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1646If you meant to cross compile, use \`--host'." >&5 1647echo "$as_me: error: cannot run C compiled programs. 1648If you meant to cross compile, use \`--host'." >&2;} 1649 { (exit 1); exit 1; }; } 1650 fi 1651 fi 1652fi 1653echo "$as_me:$LINENO: result: yes" >&5 1654echo "${ECHO_T}yes" >&6 1655 1656rm -f a.out a.exe conftest$ac_cv_exeext 1657ac_clean_files=$ac_clean_files_save 1658# Check the compiler produces executables we can run. If not, either 1659# the compiler is broken, or we cross compile. 1660echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1661echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1662echo "$as_me:$LINENO: result: $cross_compiling" >&5 1663echo "${ECHO_T}$cross_compiling" >&6 1664 1665echo "$as_me:$LINENO: checking for suffix of executables" >&5 1666echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1668 (eval $ac_link) 2>&5 1669 ac_status=$? 1670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1671 (exit $ac_status); }; then 1672 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1673# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1674# work properly (i.e., refer to `conftest.exe'), while it won't with 1675# `rm'. 1676for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do 1677 case $ac_file in 1678 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; 1679 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1680 export ac_cv_exeext 1681 break;; 1682 * ) break;; 1683 esac 1684done 1685else 1686 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 1687echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} 1688 { (exit 1); exit 1; }; } 1689fi 1690 1691rm -f conftest$ac_cv_exeext 1692echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1693echo "${ECHO_T}$ac_cv_exeext" >&6 1694 1695rm -f conftest.$ac_ext 1696EXEEXT=$ac_cv_exeext 1697ac_exeext=$EXEEXT 1698echo "$as_me:$LINENO: checking for suffix of object files" >&5 1699echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1700if test "${ac_cv_objext+set}" = set; then 1701 echo $ECHO_N "(cached) $ECHO_C" >&6 1702else 1703 cat >conftest.$ac_ext <<_ACEOF 1704#line $LINENO "configure" 1705#include "confdefs.h" 1706 1707#ifdef F77_DUMMY_MAIN 1708# ifdef __cplusplus 1709 extern "C" 1710# endif 1711 int F77_DUMMY_MAIN() { return 1; } 1712#endif 1713int 1714main () 1715{ 1716 1717 ; 1718 return 0; 1719} 1720_ACEOF 1721rm -f conftest.o conftest.obj 1722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1723 (eval $ac_compile) 2>&5 1724 ac_status=$? 1725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1726 (exit $ac_status); }; then 1727 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1728 case $ac_file in 1729 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; 1730 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1731 break;; 1732 esac 1733done 1734else 1735 echo "$as_me: failed program was:" >&5 1736cat conftest.$ac_ext >&5 1737{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 1738echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} 1739 { (exit 1); exit 1; }; } 1740fi 1741 1742rm -f conftest.$ac_cv_objext conftest.$ac_ext 1743fi 1744echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1745echo "${ECHO_T}$ac_cv_objext" >&6 1746OBJEXT=$ac_cv_objext 1747ac_objext=$OBJEXT 1748echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 1749echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1750if test "${ac_cv_c_compiler_gnu+set}" = set; then 1751 echo $ECHO_N "(cached) $ECHO_C" >&6 1752else 1753 cat >conftest.$ac_ext <<_ACEOF 1754#line $LINENO "configure" 1755#include "confdefs.h" 1756 1757#ifdef F77_DUMMY_MAIN 1758# ifdef __cplusplus 1759 extern "C" 1760# endif 1761 int F77_DUMMY_MAIN() { return 1; } 1762#endif 1763int 1764main () 1765{ 1766#ifndef __GNUC__ 1767 choke me 1768#endif 1769 1770 ; 1771 return 0; 1772} 1773_ACEOF 1774rm -f conftest.$ac_objext 1775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1776 (eval $ac_compile) 2>&5 1777 ac_status=$? 1778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1779 (exit $ac_status); } && 1780 { ac_try='test -s conftest.$ac_objext' 1781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1782 (eval $ac_try) 2>&5 1783 ac_status=$? 1784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1785 (exit $ac_status); }; }; then 1786 ac_compiler_gnu=yes 1787else 1788 echo "$as_me: failed program was:" >&5 1789cat conftest.$ac_ext >&5 1790ac_compiler_gnu=no 1791fi 1792rm -f conftest.$ac_objext conftest.$ac_ext 1793ac_cv_c_compiler_gnu=$ac_compiler_gnu 1794 1795fi 1796echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 1797echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1798GCC=`test $ac_compiler_gnu = yes && echo yes` 1799ac_test_CFLAGS=${CFLAGS+set} 1800ac_save_CFLAGS=$CFLAGS 1801CFLAGS="-g" 1802echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 1803echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1804if test "${ac_cv_prog_cc_g+set}" = set; then 1805 echo $ECHO_N "(cached) $ECHO_C" >&6 1806else 1807 cat >conftest.$ac_ext <<_ACEOF 1808#line $LINENO "configure" 1809#include "confdefs.h" 1810 1811#ifdef F77_DUMMY_MAIN 1812# ifdef __cplusplus 1813 extern "C" 1814# endif 1815 int F77_DUMMY_MAIN() { return 1; } 1816#endif 1817int 1818main () 1819{ 1820 1821 ; 1822 return 0; 1823} 1824_ACEOF 1825rm -f conftest.$ac_objext 1826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1827 (eval $ac_compile) 2>&5 1828 ac_status=$? 1829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1830 (exit $ac_status); } && 1831 { ac_try='test -s conftest.$ac_objext' 1832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1833 (eval $ac_try) 2>&5 1834 ac_status=$? 1835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1836 (exit $ac_status); }; }; then 1837 ac_cv_prog_cc_g=yes 1838else 1839 echo "$as_me: failed program was:" >&5 1840cat conftest.$ac_ext >&5 1841ac_cv_prog_cc_g=no 1842fi 1843rm -f conftest.$ac_objext conftest.$ac_ext 1844fi 1845echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 1846echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 1847if test "$ac_test_CFLAGS" = set; then 1848 CFLAGS=$ac_save_CFLAGS 1849elif test $ac_cv_prog_cc_g = yes; then 1850 if test "$GCC" = yes; then 1851 CFLAGS="-g -O2" 1852 else 1853 CFLAGS="-g" 1854 fi 1855else 1856 if test "$GCC" = yes; then 1857 CFLAGS="-O2" 1858 else 1859 CFLAGS= 1860 fi 1861fi 1862# Some people use a C++ compiler to compile C. Since we use `exit', 1863# in C++ we need to declare it. In case someone uses the same compiler 1864# for both compiling C and C++ we need to have the C++ compiler decide 1865# the declaration of exit, since it's the most demanding environment. 1866cat >conftest.$ac_ext <<_ACEOF 1867#ifndef __cplusplus 1868 choke me 1869#endif 1870_ACEOF 1871rm -f conftest.$ac_objext 1872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1873 (eval $ac_compile) 2>&5 1874 ac_status=$? 1875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1876 (exit $ac_status); } && 1877 { ac_try='test -s conftest.$ac_objext' 1878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1879 (eval $ac_try) 2>&5 1880 ac_status=$? 1881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1882 (exit $ac_status); }; }; then 1883 for ac_declaration in \ 1884 ''\ 1885 '#include <stdlib.h>' \ 1886 'extern "C" void std::exit (int) throw (); using std::exit;' \ 1887 'extern "C" void std::exit (int); using std::exit;' \ 1888 'extern "C" void exit (int) throw ();' \ 1889 'extern "C" void exit (int);' \ 1890 'void exit (int);' 1891do 1892 cat >conftest.$ac_ext <<_ACEOF 1893#line $LINENO "configure" 1894#include "confdefs.h" 1895#include <stdlib.h> 1896$ac_declaration 1897#ifdef F77_DUMMY_MAIN 1898# ifdef __cplusplus 1899 extern "C" 1900# endif 1901 int F77_DUMMY_MAIN() { return 1; } 1902#endif 1903int 1904main () 1905{ 1906exit (42); 1907 ; 1908 return 0; 1909} 1910_ACEOF 1911rm -f conftest.$ac_objext 1912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1913 (eval $ac_compile) 2>&5 1914 ac_status=$? 1915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1916 (exit $ac_status); } && 1917 { ac_try='test -s conftest.$ac_objext' 1918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1919 (eval $ac_try) 2>&5 1920 ac_status=$? 1921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1922 (exit $ac_status); }; }; then 1923 : 1924else 1925 echo "$as_me: failed program was:" >&5 1926cat conftest.$ac_ext >&5 1927continue 1928fi 1929rm -f conftest.$ac_objext conftest.$ac_ext 1930 cat >conftest.$ac_ext <<_ACEOF 1931#line $LINENO "configure" 1932#include "confdefs.h" 1933$ac_declaration 1934#ifdef F77_DUMMY_MAIN 1935# ifdef __cplusplus 1936 extern "C" 1937# endif 1938 int F77_DUMMY_MAIN() { return 1; } 1939#endif 1940int 1941main () 1942{ 1943exit (42); 1944 ; 1945 return 0; 1946} 1947_ACEOF 1948rm -f conftest.$ac_objext 1949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1950 (eval $ac_compile) 2>&5 1951 ac_status=$? 1952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1953 (exit $ac_status); } && 1954 { ac_try='test -s conftest.$ac_objext' 1955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1956 (eval $ac_try) 2>&5 1957 ac_status=$? 1958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1959 (exit $ac_status); }; }; then 1960 break 1961else 1962 echo "$as_me: failed program was:" >&5 1963cat conftest.$ac_ext >&5 1964fi 1965rm -f conftest.$ac_objext conftest.$ac_ext 1966done 1967rm -f conftest* 1968if test -n "$ac_declaration"; then 1969 echo '#ifdef __cplusplus' >>confdefs.h 1970 echo $ac_declaration >>confdefs.h 1971 echo '#endif' >>confdefs.h 1972fi 1973 1974else 1975 echo "$as_me: failed program was:" >&5 1976cat conftest.$ac_ext >&5 1977fi 1978rm -f conftest.$ac_objext conftest.$ac_ext 1979ac_ext=c 1980ac_cpp='$CPP $CPPFLAGS' 1981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1983ac_compiler_gnu=$ac_cv_c_compiler_gnu 1984 1985ac_ext=c 1986ac_cpp='$CPP $CPPFLAGS' 1987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1989ac_compiler_gnu=$ac_cv_c_compiler_gnu 1990echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 1991echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 1992# On Suns, sometimes $CPP names a directory. 1993if test -n "$CPP" && test -d "$CPP"; then 1994 CPP= 1995fi 1996if test -z "$CPP"; then 1997 if test "${ac_cv_prog_CPP+set}" = set; then 1998 echo $ECHO_N "(cached) $ECHO_C" >&6 1999else 2000 # Double quotes because CPP needs to be expanded 2001 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2002 do 2003 ac_preproc_ok=false 2004for ac_c_preproc_warn_flag in '' yes 2005do 2006 # Use a header file that comes with gcc, so configuring glibc 2007 # with a fresh cross-compiler works. 2008 # On the NeXT, cc -E runs the code through the compiler's parser, 2009 # not just through cpp. "Syntax error" is here to catch this case. 2010 cat >conftest.$ac_ext <<_ACEOF 2011#line $LINENO "configure" 2012#include "confdefs.h" 2013#include <assert.h> 2014 Syntax error 2015_ACEOF 2016if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2017 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2018 ac_status=$? 2019 egrep -v '^ *\+' conftest.er1 >conftest.err 2020 rm -f conftest.er1 2021 cat conftest.err >&5 2022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2023 (exit $ac_status); } >/dev/null; then 2024 if test -s conftest.err; then 2025 ac_cpp_err=$ac_c_preproc_warn_flag 2026 else 2027 ac_cpp_err= 2028 fi 2029else 2030 ac_cpp_err=yes 2031fi 2032if test -z "$ac_cpp_err"; then 2033 : 2034else 2035 echo "$as_me: failed program was:" >&5 2036 cat conftest.$ac_ext >&5 2037 # Broken: fails on valid input. 2038continue 2039fi 2040rm -f conftest.err conftest.$ac_ext 2041 2042 # OK, works on sane cases. Now check whether non-existent headers 2043 # can be detected and how. 2044 cat >conftest.$ac_ext <<_ACEOF 2045#line $LINENO "configure" 2046#include "confdefs.h" 2047#include <ac_nonexistent.h> 2048_ACEOF 2049if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2050 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2051 ac_status=$? 2052 egrep -v '^ *\+' conftest.er1 >conftest.err 2053 rm -f conftest.er1 2054 cat conftest.err >&5 2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2056 (exit $ac_status); } >/dev/null; then 2057 if test -s conftest.err; then 2058 ac_cpp_err=$ac_c_preproc_warn_flag 2059 else 2060 ac_cpp_err= 2061 fi 2062else 2063 ac_cpp_err=yes 2064fi 2065if test -z "$ac_cpp_err"; then 2066 # Broken: success on invalid input. 2067continue 2068else 2069 echo "$as_me: failed program was:" >&5 2070 cat conftest.$ac_ext >&5 2071 # Passes both tests. 2072ac_preproc_ok=: 2073break 2074fi 2075rm -f conftest.err conftest.$ac_ext 2076 2077done 2078# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2079rm -f conftest.err conftest.$ac_ext 2080if $ac_preproc_ok; then 2081 break 2082fi 2083 2084 done 2085 ac_cv_prog_CPP=$CPP 2086 2087fi 2088 CPP=$ac_cv_prog_CPP 2089else 2090 ac_cv_prog_CPP=$CPP 2091fi 2092echo "$as_me:$LINENO: result: $CPP" >&5 2093echo "${ECHO_T}$CPP" >&6 2094ac_preproc_ok=false 2095for ac_c_preproc_warn_flag in '' yes 2096do 2097 # Use a header file that comes with gcc, so configuring glibc 2098 # with a fresh cross-compiler works. 2099 # On the NeXT, cc -E runs the code through the compiler's parser, 2100 # not just through cpp. "Syntax error" is here to catch this case. 2101 cat >conftest.$ac_ext <<_ACEOF 2102#line $LINENO "configure" 2103#include "confdefs.h" 2104#include <assert.h> 2105 Syntax error 2106_ACEOF 2107if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2109 ac_status=$? 2110 egrep -v '^ *\+' conftest.er1 >conftest.err 2111 rm -f conftest.er1 2112 cat conftest.err >&5 2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2114 (exit $ac_status); } >/dev/null; then 2115 if test -s conftest.err; then 2116 ac_cpp_err=$ac_c_preproc_warn_flag 2117 else 2118 ac_cpp_err= 2119 fi 2120else 2121 ac_cpp_err=yes 2122fi 2123if test -z "$ac_cpp_err"; then 2124 : 2125else 2126 echo "$as_me: failed program was:" >&5 2127 cat conftest.$ac_ext >&5 2128 # Broken: fails on valid input. 2129continue 2130fi 2131rm -f conftest.err conftest.$ac_ext 2132 2133 # OK, works on sane cases. Now check whether non-existent headers 2134 # can be detected and how. 2135 cat >conftest.$ac_ext <<_ACEOF 2136#line $LINENO "configure" 2137#include "confdefs.h" 2138#include <ac_nonexistent.h> 2139_ACEOF 2140if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2141 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2142 ac_status=$? 2143 egrep -v '^ *\+' conftest.er1 >conftest.err 2144 rm -f conftest.er1 2145 cat conftest.err >&5 2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2147 (exit $ac_status); } >/dev/null; then 2148 if test -s conftest.err; then 2149 ac_cpp_err=$ac_c_preproc_warn_flag 2150 else 2151 ac_cpp_err= 2152 fi 2153else 2154 ac_cpp_err=yes 2155fi 2156if test -z "$ac_cpp_err"; then 2157 # Broken: success on invalid input. 2158continue 2159else 2160 echo "$as_me: failed program was:" >&5 2161 cat conftest.$ac_ext >&5 2162 # Passes both tests. 2163ac_preproc_ok=: 2164break 2165fi 2166rm -f conftest.err conftest.$ac_ext 2167 2168done 2169# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2170rm -f conftest.err conftest.$ac_ext 2171if $ac_preproc_ok; then 2172 : 2173else 2174 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 2175echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 2176 { (exit 1); exit 1; }; } 2177fi 2178 2179ac_ext=c 2180ac_cpp='$CPP $CPPFLAGS' 2181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2183ac_compiler_gnu=$ac_cv_c_compiler_gnu 2184 2185ac_aux_dir= 2186for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 2187 if test -f $ac_dir/install-sh; then 2188 ac_aux_dir=$ac_dir 2189 ac_install_sh="$ac_aux_dir/install-sh -c" 2190 break 2191 elif test -f $ac_dir/install.sh; then 2192 ac_aux_dir=$ac_dir 2193 ac_install_sh="$ac_aux_dir/install.sh -c" 2194 break 2195 elif test -f $ac_dir/shtool; then 2196 ac_aux_dir=$ac_dir 2197 ac_install_sh="$ac_aux_dir/shtool install -c" 2198 break 2199 fi 2200done 2201if test -z "$ac_aux_dir"; then 2202 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 2203echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 2204 { (exit 1); exit 1; }; } 2205fi 2206ac_config_guess="$SHELL $ac_aux_dir/config.guess" 2207ac_config_sub="$SHELL $ac_aux_dir/config.sub" 2208ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 2209 2210# Find a good install program. We prefer a C program (faster), 2211# so one script is as good as another. But avoid the broken or 2212# incompatible versions: 2213# SysV /etc/install, /usr/sbin/install 2214# SunOS /usr/etc/install 2215# IRIX /sbin/install 2216# AIX /bin/install 2217# AmigaOS /C/install, which installs bootblocks on floppy discs 2218# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2219# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2220# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2221# ./install, which can be erroneously created by make from ./install.sh. 2222echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2223echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 2224if test -z "$INSTALL"; then 2225if test "${ac_cv_path_install+set}" = set; then 2226 echo $ECHO_N "(cached) $ECHO_C" >&6 2227else 2228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2229for as_dir in $PATH 2230do 2231 IFS=$as_save_IFS 2232 test -z "$as_dir" && as_dir=. 2233 # Account for people who put trailing slashes in PATH elements. 2234case $as_dir/ in 2235 ./ | .// | /cC/* | \ 2236 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2237 /usr/ucb/* ) ;; 2238 *) 2239 # OSF1 and SCO ODT 3.0 have their own names for install. 2240 # Don't use installbsd from OSF since it installs stuff as root 2241 # by default. 2242 for ac_prog in ginstall scoinst install; do 2243 for ac_exec_ext in '' $ac_executable_extensions; do 2244 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2245 if test $ac_prog = install && 2246 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2247 # AIX install. It has an incompatible calling convention. 2248 : 2249 elif test $ac_prog = install && 2250 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2251 # program-specific install script used by HP pwplus--don't use. 2252 : 2253 else 2254 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2255 break 3 2256 fi 2257 fi 2258 done 2259 done 2260 ;; 2261esac 2262done 2263 2264 2265fi 2266 if test "${ac_cv_path_install+set}" = set; then 2267 INSTALL=$ac_cv_path_install 2268 else 2269 # As a last resort, use the slow shell script. We don't cache a 2270 # path for INSTALL within a source directory, because that will 2271 # break other packages using the cache if that directory is 2272 # removed, or if the path is relative. 2273 INSTALL=$ac_install_sh 2274 fi 2275fi 2276echo "$as_me:$LINENO: result: $INSTALL" >&5 2277echo "${ECHO_T}$INSTALL" >&6 2278 2279# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2280# It thinks the first close brace ends the variable substitution. 2281test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2282 2283test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2284 2285test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2286 2287echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5 2288echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 2289set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 2290if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2291 echo $ECHO_N "(cached) $ECHO_C" >&6 2292else 2293 cat >conftest.make <<\_ACEOF 2294all: 2295 @echo 'ac_maketemp="${MAKE}"' 2296_ACEOF 2297# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2298eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 2299if test -n "$ac_maketemp"; then 2300 eval ac_cv_prog_make_${ac_make}_set=yes 2301else 2302 eval ac_cv_prog_make_${ac_make}_set=no 2303fi 2304rm -f conftest.make 2305fi 2306if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 2307 echo "$as_me:$LINENO: result: yes" >&5 2308echo "${ECHO_T}yes" >&6 2309 SET_MAKE= 2310else 2311 echo "$as_me:$LINENO: result: no" >&5 2312echo "${ECHO_T}no" >&6 2313 SET_MAKE="MAKE=${MAKE-make}" 2314fi 2315 2316# Use ed_PROGRAM, not ED_PROGRAM, 2317# because <errno.h> reserves symbols starting with `E'. 2318# Extract the first word of "ed", so it can be a program name with args. 2319set dummy ed; ac_word=$2 2320echo "$as_me:$LINENO: checking for $ac_word" >&5 2321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2322if test "${ac_cv_path_ed_PROGRAM+set}" = set; then 2323 echo $ECHO_N "(cached) $ECHO_C" >&6 2324else 2325 case $ed_PROGRAM in 2326 [\\/]* | ?:[\\/]*) 2327 ac_cv_path_ed_PROGRAM="$ed_PROGRAM" # Let the user override the test with a path. 2328 ;; 2329 *) 2330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2331for as_dir in $PATH 2332do 2333 IFS=$as_save_IFS 2334 test -z "$as_dir" && as_dir=. 2335 for ac_exec_ext in '' $ac_executable_extensions; do 2336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2337 ac_cv_path_ed_PROGRAM="$as_dir/$ac_word$ac_exec_ext" 2338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2339 break 2 2340 fi 2341done 2342done 2343 2344 test -z "$ac_cv_path_ed_PROGRAM" && ac_cv_path_ed_PROGRAM="ed" 2345 ;; 2346esac 2347fi 2348ed_PROGRAM=$ac_cv_path_ed_PROGRAM 2349 2350if test -n "$ed_PROGRAM"; then 2351 echo "$as_me:$LINENO: result: $ed_PROGRAM" >&5 2352echo "${ECHO_T}$ed_PROGRAM" >&6 2353else 2354 echo "$as_me:$LINENO: result: no" >&5 2355echo "${ECHO_T}no" >&6 2356fi 2357 2358 2359 2360 2361 2362echo "$as_me:$LINENO: checking for AIX" >&5 2363echo $ECHO_N "checking for AIX... $ECHO_C" >&6 2364cat >conftest.$ac_ext <<_ACEOF 2365#line $LINENO "configure" 2366#include "confdefs.h" 2367#ifdef _AIX 2368 yes 2369#endif 2370 2371_ACEOF 2372if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2373 egrep "yes" >/dev/null 2>&1; then 2374 echo "$as_me:$LINENO: result: yes" >&5 2375echo "${ECHO_T}yes" >&6 2376cat >>confdefs.h <<\_ACEOF 2377#define _ALL_SOURCE 1 2378_ACEOF 2379 2380else 2381 echo "$as_me:$LINENO: result: no" >&5 2382echo "${ECHO_T}no" >&6 2383fi 2384rm -f conftest* 2385 2386 2387echo "$as_me:$LINENO: checking for ANSI C header files" >&5 2388echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 2389if test "${ac_cv_header_stdc+set}" = set; then 2390 echo $ECHO_N "(cached) $ECHO_C" >&6 2391else 2392 cat >conftest.$ac_ext <<_ACEOF 2393#line $LINENO "configure" 2394#include "confdefs.h" 2395#include <stdlib.h> 2396#include <stdarg.h> 2397#include <string.h> 2398#include <float.h> 2399 2400_ACEOF 2401if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2403 ac_status=$? 2404 egrep -v '^ *\+' conftest.er1 >conftest.err 2405 rm -f conftest.er1 2406 cat conftest.err >&5 2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2408 (exit $ac_status); } >/dev/null; then 2409 if test -s conftest.err; then 2410 ac_cpp_err=$ac_c_preproc_warn_flag 2411 else 2412 ac_cpp_err= 2413 fi 2414else 2415 ac_cpp_err=yes 2416fi 2417if test -z "$ac_cpp_err"; then 2418 ac_cv_header_stdc=yes 2419else 2420 echo "$as_me: failed program was:" >&5 2421 cat conftest.$ac_ext >&5 2422 ac_cv_header_stdc=no 2423fi 2424rm -f conftest.err conftest.$ac_ext 2425 2426if test $ac_cv_header_stdc = yes; then 2427 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2428 cat >conftest.$ac_ext <<_ACEOF 2429#line $LINENO "configure" 2430#include "confdefs.h" 2431#include <string.h> 2432 2433_ACEOF 2434if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2435 egrep "memchr" >/dev/null 2>&1; then 2436 : 2437else 2438 ac_cv_header_stdc=no 2439fi 2440rm -f conftest* 2441 2442fi 2443 2444if test $ac_cv_header_stdc = yes; then 2445 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2446 cat >conftest.$ac_ext <<_ACEOF 2447#line $LINENO "configure" 2448#include "confdefs.h" 2449#include <stdlib.h> 2450 2451_ACEOF 2452if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2453 egrep "free" >/dev/null 2>&1; then 2454 : 2455else 2456 ac_cv_header_stdc=no 2457fi 2458rm -f conftest* 2459 2460fi 2461 2462if test $ac_cv_header_stdc = yes; then 2463 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2464 if test "$cross_compiling" = yes; then 2465 : 2466else 2467 cat >conftest.$ac_ext <<_ACEOF 2468#line $LINENO "configure" 2469#include "confdefs.h" 2470#include <ctype.h> 2471#if ((' ' & 0x0FF) == 0x020) 2472# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2473# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2474#else 2475# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 2476 || ('j' <= (c) && (c) <= 'r') \ 2477 || ('s' <= (c) && (c) <= 'z')) 2478# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 2479#endif 2480 2481#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2482int 2483main () 2484{ 2485 int i; 2486 for (i = 0; i < 256; i++) 2487 if (XOR (islower (i), ISLOWER (i)) 2488 || toupper (i) != TOUPPER (i)) 2489 exit(2); 2490 exit (0); 2491} 2492_ACEOF 2493rm -f conftest$ac_exeext 2494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2495 (eval $ac_link) 2>&5 2496 ac_status=$? 2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2498 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 2499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2500 (eval $ac_try) 2>&5 2501 ac_status=$? 2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2503 (exit $ac_status); }; }; then 2504 : 2505else 2506 echo "$as_me: program exited with status $ac_status" >&5 2507echo "$as_me: failed program was:" >&5 2508cat conftest.$ac_ext >&5 2509( exit $ac_status ) 2510ac_cv_header_stdc=no 2511fi 2512rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 2513fi 2514fi 2515fi 2516echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 2517echo "${ECHO_T}$ac_cv_header_stdc" >&6 2518if test $ac_cv_header_stdc = yes; then 2519 2520cat >>confdefs.h <<\_ACEOF 2521#define STDC_HEADERS 1 2522_ACEOF 2523 2524fi 2525 2526# On IRIX 5.3, sys/types and inttypes.h are conflicting. 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 2537 inttypes.h stdint.h unistd.h 2538do 2539as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 2540echo "$as_me:$LINENO: checking for $ac_header" >&5 2541echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 2542if eval "test \"\${$as_ac_Header+set}\" = set"; then 2543 echo $ECHO_N "(cached) $ECHO_C" >&6 2544else 2545 cat >conftest.$ac_ext <<_ACEOF 2546#line $LINENO "configure" 2547#include "confdefs.h" 2548$ac_includes_default 2549 2550#include <$ac_header> 2551_ACEOF 2552rm -f conftest.$ac_objext 2553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2554 (eval $ac_compile) 2>&5 2555 ac_status=$? 2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2557 (exit $ac_status); } && 2558 { ac_try='test -s conftest.$ac_objext' 2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2560 (eval $ac_try) 2>&5 2561 ac_status=$? 2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2563 (exit $ac_status); }; }; then 2564 eval "$as_ac_Header=yes" 2565else 2566 echo "$as_me: failed program was:" >&5 2567cat conftest.$ac_ext >&5 2568eval "$as_ac_Header=no" 2569fi 2570rm -f conftest.$ac_objext conftest.$ac_ext 2571fi 2572echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 2573echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 2574if test `eval echo '${'$as_ac_Header'}'` = yes; then 2575 cat >>confdefs.h <<_ACEOF 2576#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 2577_ACEOF 2578 2579fi 2580 2581done 2582 2583 2584if test "${ac_cv_header_minix_config_h+set}" = set; then 2585 echo "$as_me:$LINENO: checking for minix/config.h" >&5 2586echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 2587if test "${ac_cv_header_minix_config_h+set}" = set; then 2588 echo $ECHO_N "(cached) $ECHO_C" >&6 2589fi 2590echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 2591echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 2592else 2593 # Is the header compilable? 2594echo "$as_me:$LINENO: checking minix/config.h usability" >&5 2595echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 2596cat >conftest.$ac_ext <<_ACEOF 2597#line $LINENO "configure" 2598#include "confdefs.h" 2599$ac_includes_default 2600#include <minix/config.h> 2601_ACEOF 2602rm -f conftest.$ac_objext 2603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2604 (eval $ac_compile) 2>&5 2605 ac_status=$? 2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2607 (exit $ac_status); } && 2608 { ac_try='test -s conftest.$ac_objext' 2609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2610 (eval $ac_try) 2>&5 2611 ac_status=$? 2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2613 (exit $ac_status); }; }; then 2614 ac_header_compiler=yes 2615else 2616 echo "$as_me: failed program was:" >&5 2617cat conftest.$ac_ext >&5 2618ac_header_compiler=no 2619fi 2620rm -f conftest.$ac_objext conftest.$ac_ext 2621echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 2622echo "${ECHO_T}$ac_header_compiler" >&6 2623 2624# Is the header present? 2625echo "$as_me:$LINENO: checking minix/config.h presence" >&5 2626echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 2627cat >conftest.$ac_ext <<_ACEOF 2628#line $LINENO "configure" 2629#include "confdefs.h" 2630#include <minix/config.h> 2631_ACEOF 2632if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2634 ac_status=$? 2635 egrep -v '^ *\+' conftest.er1 >conftest.err 2636 rm -f conftest.er1 2637 cat conftest.err >&5 2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2639 (exit $ac_status); } >/dev/null; then 2640 if test -s conftest.err; then 2641 ac_cpp_err=$ac_c_preproc_warn_flag 2642 else 2643 ac_cpp_err= 2644 fi 2645else 2646 ac_cpp_err=yes 2647fi 2648if test -z "$ac_cpp_err"; then 2649 ac_header_preproc=yes 2650else 2651 echo "$as_me: failed program was:" >&5 2652 cat conftest.$ac_ext >&5 2653 ac_header_preproc=no 2654fi 2655rm -f conftest.err conftest.$ac_ext 2656echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 2657echo "${ECHO_T}$ac_header_preproc" >&6 2658 2659# So? What about this header? 2660case $ac_header_compiler:$ac_header_preproc in 2661 yes:no ) 2662 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 2663echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 2664 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 2665echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};; 2666 no:yes ) 2667 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 2668echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} 2669 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 2670echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} 2671 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 2672echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};; 2673esac 2674echo "$as_me:$LINENO: checking for minix/config.h" >&5 2675echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 2676if test "${ac_cv_header_minix_config_h+set}" = set; then 2677 echo $ECHO_N "(cached) $ECHO_C" >&6 2678else 2679 ac_cv_header_minix_config_h=$ac_header_preproc 2680fi 2681echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 2682echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 2683 2684fi 2685if test $ac_cv_header_minix_config_h = yes; then 2686 MINIX=yes 2687else 2688 MINIX= 2689fi 2690 2691 2692if test "$MINIX" = yes; then 2693 2694cat >>confdefs.h <<\_ACEOF 2695#define _POSIX_SOURCE 1 2696_ACEOF 2697 2698 2699cat >>confdefs.h <<\_ACEOF 2700#define _POSIX_1_SOURCE 2 2701_ACEOF 2702 2703 2704cat >>confdefs.h <<\_ACEOF 2705#define _MINIX 1 2706_ACEOF 2707 2708fi 2709 2710echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2711echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2712if test "${ac_cv_prog_cc_stdc+set}" = set; then 2713 echo $ECHO_N "(cached) $ECHO_C" >&6 2714else 2715 ac_cv_prog_cc_stdc=no 2716ac_save_CC=$CC 2717cat >conftest.$ac_ext <<_ACEOF 2718#line $LINENO "configure" 2719#include "confdefs.h" 2720#include <stdarg.h> 2721#include <stdio.h> 2722#include <sys/types.h> 2723#include <sys/stat.h> 2724/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2725struct buf { int x; }; 2726FILE * (*rcsopen) (struct buf *, struct stat *, int); 2727static char *e (p, i) 2728 char **p; 2729 int i; 2730{ 2731 return p[i]; 2732} 2733static char *f (char * (*g) (char **, int), char **p, ...) 2734{ 2735 char *s; 2736 va_list v; 2737 va_start (v,p); 2738 s = g (p, va_arg (v,int)); 2739 va_end (v); 2740 return s; 2741} 2742int test (int i, double x); 2743struct s1 {int (*f) (int a);}; 2744struct s2 {int (*f) (double a);}; 2745int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2746int argc; 2747char **argv; 2748#ifdef F77_DUMMY_MAIN 2749# ifdef __cplusplus 2750 extern "C" 2751# endif 2752 int F77_DUMMY_MAIN() { return 1; } 2753#endif 2754int 2755main () 2756{ 2757return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2758 ; 2759 return 0; 2760} 2761_ACEOF 2762# Don't try gcc -ansi; that turns off useful extensions and 2763# breaks some systems' header files. 2764# AIX -qlanglvl=ansi 2765# Ultrix and OSF/1 -std1 2766# HP-UX 10.20 and later -Ae 2767# HP-UX older versions -Aa -D_HPUX_SOURCE 2768# SVR4 -Xc -D__EXTENSIONS__ 2769for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2770do 2771 CC="$ac_save_CC $ac_arg" 2772 rm -f conftest.$ac_objext 2773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2774 (eval $ac_compile) 2>&5 2775 ac_status=$? 2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2777 (exit $ac_status); } && 2778 { ac_try='test -s conftest.$ac_objext' 2779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2780 (eval $ac_try) 2>&5 2781 ac_status=$? 2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2783 (exit $ac_status); }; }; then 2784 ac_cv_prog_cc_stdc=$ac_arg 2785break 2786else 2787 echo "$as_me: failed program was:" >&5 2788cat conftest.$ac_ext >&5 2789fi 2790rm -f conftest.$ac_objext 2791done 2792rm -f conftest.$ac_ext conftest.$ac_objext 2793CC=$ac_save_CC 2794 2795fi 2796 2797case "x$ac_cv_prog_cc_stdc" in 2798 x|xno) 2799 echo "$as_me:$LINENO: result: none needed" >&5 2800echo "${ECHO_T}none needed" >&6 ;; 2801 *) 2802 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2803echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2804 CC="$CC $ac_cv_prog_cc_stdc" ;; 2805esac 2806 2807echo "$as_me:$LINENO: checking for library containing strerror" >&5 2808echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 2809if test "${ac_cv_search_strerror+set}" = set; then 2810 echo $ECHO_N "(cached) $ECHO_C" >&6 2811else 2812 ac_func_search_save_LIBS=$LIBS 2813ac_cv_search_strerror=no 2814cat >conftest.$ac_ext <<_ACEOF 2815#line $LINENO "configure" 2816#include "confdefs.h" 2817 2818/* Override any gcc2 internal prototype to avoid an error. */ 2819#ifdef __cplusplus 2820extern "C" 2821#endif 2822/* We use char because int might match the return type of a gcc2 2823 builtin and then its argument prototype would still apply. */ 2824char strerror (); 2825#ifdef F77_DUMMY_MAIN 2826# ifdef __cplusplus 2827 extern "C" 2828# endif 2829 int F77_DUMMY_MAIN() { return 1; } 2830#endif 2831int 2832main () 2833{ 2834strerror (); 2835 ; 2836 return 0; 2837} 2838_ACEOF 2839rm -f conftest.$ac_objext conftest$ac_exeext 2840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2841 (eval $ac_link) 2>&5 2842 ac_status=$? 2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2844 (exit $ac_status); } && 2845 { ac_try='test -s conftest$ac_exeext' 2846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2847 (eval $ac_try) 2>&5 2848 ac_status=$? 2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2850 (exit $ac_status); }; }; then 2851 ac_cv_search_strerror="none required" 2852else 2853 echo "$as_me: failed program was:" >&5 2854cat conftest.$ac_ext >&5 2855fi 2856rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 2857if test "$ac_cv_search_strerror" = no; then 2858 for ac_lib in cposix; do 2859 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 2860 cat >conftest.$ac_ext <<_ACEOF 2861#line $LINENO "configure" 2862#include "confdefs.h" 2863 2864/* Override any gcc2 internal prototype to avoid an error. */ 2865#ifdef __cplusplus 2866extern "C" 2867#endif 2868/* We use char because int might match the return type of a gcc2 2869 builtin and then its argument prototype would still apply. */ 2870char strerror (); 2871#ifdef F77_DUMMY_MAIN 2872# ifdef __cplusplus 2873 extern "C" 2874# endif 2875 int F77_DUMMY_MAIN() { return 1; } 2876#endif 2877int 2878main () 2879{ 2880strerror (); 2881 ; 2882 return 0; 2883} 2884_ACEOF 2885rm -f conftest.$ac_objext conftest$ac_exeext 2886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2887 (eval $ac_link) 2>&5 2888 ac_status=$? 2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2890 (exit $ac_status); } && 2891 { ac_try='test -s conftest$ac_exeext' 2892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2893 (eval $ac_try) 2>&5 2894 ac_status=$? 2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2896 (exit $ac_status); }; }; then 2897 ac_cv_search_strerror="-l$ac_lib" 2898break 2899else 2900 echo "$as_me: failed program was:" >&5 2901cat conftest.$ac_ext >&5 2902fi 2903rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 2904 done 2905fi 2906LIBS=$ac_func_search_save_LIBS 2907fi 2908echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 2909echo "${ECHO_T}$ac_cv_search_strerror" >&6 2910if test "$ac_cv_search_strerror" != no; then 2911 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 2912 2913fi 2914 2915# Check whether --enable-largefile or --disable-largefile was given. 2916if test "${enable_largefile+set}" = set; then 2917 enableval="$enable_largefile" 2918 2919fi; 2920if test "$enable_largefile" != no; then 2921 2922 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 2923echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 2924if test "${ac_cv_sys_largefile_CC+set}" = set; then 2925 echo $ECHO_N "(cached) $ECHO_C" >&6 2926else 2927 ac_cv_sys_largefile_CC=no 2928 if test "$GCC" != yes; then 2929 ac_save_CC=$CC 2930 while :; do 2931 # IRIX 6.2 and later do not support large files by default, 2932 # so use the C compiler's -n32 option if that helps. 2933 cat >conftest.$ac_ext <<_ACEOF 2934#line $LINENO "configure" 2935#include "confdefs.h" 2936#include <sys/types.h> 2937 /* Check that off_t can represent 2**63 - 1 correctly. 2938 We can't simply define LARGE_OFF_T to be 9223372036854775807, 2939 since some C++ compilers masquerading as C compilers 2940 incorrectly reject 9223372036854775807. */ 2941#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 2942 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 2943 && LARGE_OFF_T % 2147483647 == 1) 2944 ? 1 : -1]; 2945#ifdef F77_DUMMY_MAIN 2946# ifdef __cplusplus 2947 extern "C" 2948# endif 2949 int F77_DUMMY_MAIN() { return 1; } 2950#endif 2951int 2952main () 2953{ 2954 2955 ; 2956 return 0; 2957} 2958_ACEOF 2959 rm -f conftest.$ac_objext 2960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2961 (eval $ac_compile) 2>&5 2962 ac_status=$? 2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2964 (exit $ac_status); } && 2965 { ac_try='test -s conftest.$ac_objext' 2966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2967 (eval $ac_try) 2>&5 2968 ac_status=$? 2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2970 (exit $ac_status); }; }; then 2971 break 2972else 2973 echo "$as_me: failed program was:" >&5 2974cat conftest.$ac_ext >&5 2975fi 2976rm -f conftest.$ac_objext 2977 CC="$CC -n32" 2978 rm -f conftest.$ac_objext 2979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2980 (eval $ac_compile) 2>&5 2981 ac_status=$? 2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2983 (exit $ac_status); } && 2984 { ac_try='test -s conftest.$ac_objext' 2985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2986 (eval $ac_try) 2>&5 2987 ac_status=$? 2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2989 (exit $ac_status); }; }; then 2990 ac_cv_sys_largefile_CC=' -n32'; break 2991else 2992 echo "$as_me: failed program was:" >&5 2993cat conftest.$ac_ext >&5 2994fi 2995rm -f conftest.$ac_objext 2996 break 2997 done 2998 CC=$ac_save_CC 2999 rm -f conftest.$ac_ext 3000 fi 3001fi 3002echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 3003echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 3004 if test "$ac_cv_sys_largefile_CC" != no; then 3005 CC=$CC$ac_cv_sys_largefile_CC 3006 fi 3007 3008 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 3009echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 3010if test "${ac_cv_sys_file_offset_bits+set}" = set; then 3011 echo $ECHO_N "(cached) $ECHO_C" >&6 3012else 3013 while :; do 3014 ac_cv_sys_file_offset_bits=no 3015 cat >conftest.$ac_ext <<_ACEOF 3016#line $LINENO "configure" 3017#include "confdefs.h" 3018#include <sys/types.h> 3019 /* Check that off_t can represent 2**63 - 1 correctly. 3020 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3021 since some C++ compilers masquerading as C compilers 3022 incorrectly reject 9223372036854775807. */ 3023#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3024 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3025 && LARGE_OFF_T % 2147483647 == 1) 3026 ? 1 : -1]; 3027#ifdef F77_DUMMY_MAIN 3028# ifdef __cplusplus 3029 extern "C" 3030# endif 3031 int F77_DUMMY_MAIN() { return 1; } 3032#endif 3033int 3034main () 3035{ 3036 3037 ; 3038 return 0; 3039} 3040_ACEOF 3041rm -f conftest.$ac_objext 3042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3043 (eval $ac_compile) 2>&5 3044 ac_status=$? 3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3046 (exit $ac_status); } && 3047 { ac_try='test -s conftest.$ac_objext' 3048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3049 (eval $ac_try) 2>&5 3050 ac_status=$? 3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3052 (exit $ac_status); }; }; then 3053 break 3054else 3055 echo "$as_me: failed program was:" >&5 3056cat conftest.$ac_ext >&5 3057fi 3058rm -f conftest.$ac_objext conftest.$ac_ext 3059 cat >conftest.$ac_ext <<_ACEOF 3060#line $LINENO "configure" 3061#include "confdefs.h" 3062#define _FILE_OFFSET_BITS 64 3063#include <sys/types.h> 3064 /* Check that off_t can represent 2**63 - 1 correctly. 3065 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3066 since some C++ compilers masquerading as C compilers 3067 incorrectly reject 9223372036854775807. */ 3068#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3069 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3070 && LARGE_OFF_T % 2147483647 == 1) 3071 ? 1 : -1]; 3072#ifdef F77_DUMMY_MAIN 3073# ifdef __cplusplus 3074 extern "C" 3075# endif 3076 int F77_DUMMY_MAIN() { return 1; } 3077#endif 3078int 3079main () 3080{ 3081 3082 ; 3083 return 0; 3084} 3085_ACEOF 3086rm -f conftest.$ac_objext 3087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3088 (eval $ac_compile) 2>&5 3089 ac_status=$? 3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3091 (exit $ac_status); } && 3092 { ac_try='test -s conftest.$ac_objext' 3093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3094 (eval $ac_try) 2>&5 3095 ac_status=$? 3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3097 (exit $ac_status); }; }; then 3098 ac_cv_sys_file_offset_bits=64; break 3099else 3100 echo "$as_me: failed program was:" >&5 3101cat conftest.$ac_ext >&5 3102fi 3103rm -f conftest.$ac_objext conftest.$ac_ext 3104 break 3105done 3106fi 3107echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 3108echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 3109if test "$ac_cv_sys_file_offset_bits" != no; then 3110 3111cat >>confdefs.h <<_ACEOF 3112#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 3113_ACEOF 3114 3115fi 3116rm -f conftest* 3117 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 3118echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 3119if test "${ac_cv_sys_large_files+set}" = set; then 3120 echo $ECHO_N "(cached) $ECHO_C" >&6 3121else 3122 while :; do 3123 ac_cv_sys_large_files=no 3124 cat >conftest.$ac_ext <<_ACEOF 3125#line $LINENO "configure" 3126#include "confdefs.h" 3127#include <sys/types.h> 3128 /* Check that off_t can represent 2**63 - 1 correctly. 3129 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3130 since some C++ compilers masquerading as C compilers 3131 incorrectly reject 9223372036854775807. */ 3132#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3133 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3134 && LARGE_OFF_T % 2147483647 == 1) 3135 ? 1 : -1]; 3136#ifdef F77_DUMMY_MAIN 3137# ifdef __cplusplus 3138 extern "C" 3139# endif 3140 int F77_DUMMY_MAIN() { return 1; } 3141#endif 3142int 3143main () 3144{ 3145 3146 ; 3147 return 0; 3148} 3149_ACEOF 3150rm -f conftest.$ac_objext 3151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3152 (eval $ac_compile) 2>&5 3153 ac_status=$? 3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3155 (exit $ac_status); } && 3156 { ac_try='test -s conftest.$ac_objext' 3157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3158 (eval $ac_try) 2>&5 3159 ac_status=$? 3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3161 (exit $ac_status); }; }; then 3162 break 3163else 3164 echo "$as_me: failed program was:" >&5 3165cat conftest.$ac_ext >&5 3166fi 3167rm -f conftest.$ac_objext conftest.$ac_ext 3168 cat >conftest.$ac_ext <<_ACEOF 3169#line $LINENO "configure" 3170#include "confdefs.h" 3171#define _LARGE_FILES 1 3172#include <sys/types.h> 3173 /* Check that off_t can represent 2**63 - 1 correctly. 3174 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3175 since some C++ compilers masquerading as C compilers 3176 incorrectly reject 9223372036854775807. */ 3177#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3178 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3179 && LARGE_OFF_T % 2147483647 == 1) 3180 ? 1 : -1]; 3181#ifdef F77_DUMMY_MAIN 3182# ifdef __cplusplus 3183 extern "C" 3184# endif 3185 int F77_DUMMY_MAIN() { return 1; } 3186#endif 3187int 3188main () 3189{ 3190 3191 ; 3192 return 0; 3193} 3194_ACEOF 3195rm -f conftest.$ac_objext 3196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3197 (eval $ac_compile) 2>&5 3198 ac_status=$? 3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3200 (exit $ac_status); } && 3201 { ac_try='test -s conftest.$ac_objext' 3202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3203 (eval $ac_try) 2>&5 3204 ac_status=$? 3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3206 (exit $ac_status); }; }; then 3207 ac_cv_sys_large_files=1; break 3208else 3209 echo "$as_me: failed program was:" >&5 3210cat conftest.$ac_ext >&5 3211fi 3212rm -f conftest.$ac_objext conftest.$ac_ext 3213 break 3214done 3215fi 3216echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 3217echo "${ECHO_T}$ac_cv_sys_large_files" >&6 3218if test "$ac_cv_sys_large_files" != no; then 3219 3220cat >>confdefs.h <<_ACEOF 3221#define _LARGE_FILES $ac_cv_sys_large_files 3222_ACEOF 3223 3224fi 3225rm -f conftest* 3226fi 3227 3228 3229 3230echo "$as_me:$LINENO: checking for function prototypes" >&5 3231echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 3232if test "$ac_cv_prog_cc_stdc" != no; then 3233 echo "$as_me:$LINENO: result: yes" >&5 3234echo "${ECHO_T}yes" >&6 3235 3236cat >>confdefs.h <<\_ACEOF 3237#define PROTOTYPES 1 3238_ACEOF 3239 3240 3241cat >>confdefs.h <<\_ACEOF 3242#define __PROTOTYPES 1 3243_ACEOF 3244 3245else 3246 echo "$as_me:$LINENO: result: no" >&5 3247echo "${ECHO_T}no" >&6 3248fi 3249 3250echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 3251echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 3252if test "${ac_cv_c_const+set}" = set; then 3253 echo $ECHO_N "(cached) $ECHO_C" >&6 3254else 3255 cat >conftest.$ac_ext <<_ACEOF 3256#line $LINENO "configure" 3257#include "confdefs.h" 3258 3259#ifdef F77_DUMMY_MAIN 3260# ifdef __cplusplus 3261 extern "C" 3262# endif 3263 int F77_DUMMY_MAIN() { return 1; } 3264#endif 3265int 3266main () 3267{ 3268/* FIXME: Include the comments suggested by Paul. */ 3269#ifndef __cplusplus 3270 /* Ultrix mips cc rejects this. */ 3271 typedef int charset[2]; 3272 const charset x; 3273 /* SunOS 4.1.1 cc rejects this. */ 3274 char const *const *ccp; 3275 char **p; 3276 /* NEC SVR4.0.2 mips cc rejects this. */ 3277 struct point {int x, y;}; 3278 static struct point const zero = {0,0}; 3279 /* AIX XL C 1.02.0.0 rejects this. 3280 It does not let you subtract one const X* pointer from another in 3281 an arm of an if-expression whose if-part is not a constant 3282 expression */ 3283 const char *g = "string"; 3284 ccp = &g + (g ? g-g : 0); 3285 /* HPUX 7.0 cc rejects these. */ 3286 ++ccp; 3287 p = (char**) ccp; 3288 ccp = (char const *const *) p; 3289 { /* SCO 3.2v4 cc rejects this. */ 3290 char *t; 3291 char const *s = 0 ? (char *) 0 : (char const *) 0; 3292 3293 *t++ = 0; 3294 } 3295 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 3296 int x[] = {25, 17}; 3297 const int *foo = &x[0]; 3298 ++foo; 3299 } 3300 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 3301 typedef const int *iptr; 3302 iptr p = 0; 3303 ++p; 3304 } 3305 { /* AIX XL C 1.02.0.0 rejects this saying 3306 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 3307 struct s { int j; const int *ap[3]; }; 3308 struct s *b; b->j = 5; 3309 } 3310 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 3311 const int foo = 10; 3312 } 3313#endif 3314 3315 ; 3316 return 0; 3317} 3318_ACEOF 3319rm -f conftest.$ac_objext 3320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3321 (eval $ac_compile) 2>&5 3322 ac_status=$? 3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3324 (exit $ac_status); } && 3325 { ac_try='test -s conftest.$ac_objext' 3326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3327 (eval $ac_try) 2>&5 3328 ac_status=$? 3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3330 (exit $ac_status); }; }; then 3331 ac_cv_c_const=yes 3332else 3333 echo "$as_me: failed program was:" >&5 3334cat conftest.$ac_ext >&5 3335ac_cv_c_const=no 3336fi 3337rm -f conftest.$ac_objext conftest.$ac_ext 3338fi 3339echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 3340echo "${ECHO_T}$ac_cv_c_const" >&6 3341if test $ac_cv_c_const = no; then 3342 3343cat >>confdefs.h <<\_ACEOF 3344#define const 3345_ACEOF 3346 3347fi 3348 3349 3350 3351 3352 3353 3354 3355ac_header_dirent=no 3356for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 3357 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 3358echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 3359echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 3360if eval "test \"\${$as_ac_Header+set}\" = set"; then 3361 echo $ECHO_N "(cached) $ECHO_C" >&6 3362else 3363 cat >conftest.$ac_ext <<_ACEOF 3364#line $LINENO "configure" 3365#include "confdefs.h" 3366#include <sys/types.h> 3367#include <$ac_hdr> 3368 3369#ifdef F77_DUMMY_MAIN 3370# ifdef __cplusplus 3371 extern "C" 3372# endif 3373 int F77_DUMMY_MAIN() { return 1; } 3374#endif 3375int 3376main () 3377{ 3378if ((DIR *) 0) 3379return 0; 3380 ; 3381 return 0; 3382} 3383_ACEOF 3384rm -f conftest.$ac_objext 3385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3386 (eval $ac_compile) 2>&5 3387 ac_status=$? 3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3389 (exit $ac_status); } && 3390 { ac_try='test -s conftest.$ac_objext' 3391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3392 (eval $ac_try) 2>&5 3393 ac_status=$? 3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3395 (exit $ac_status); }; }; then 3396 eval "$as_ac_Header=yes" 3397else 3398 echo "$as_me: failed program was:" >&5 3399cat conftest.$ac_ext >&5 3400eval "$as_ac_Header=no" 3401fi 3402rm -f conftest.$ac_objext conftest.$ac_ext 3403fi 3404echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3405echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3406if test `eval echo '${'$as_ac_Header'}'` = yes; then 3407 cat >>confdefs.h <<_ACEOF 3408#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 3409_ACEOF 3410 3411ac_header_dirent=$ac_hdr; break 3412fi 3413 3414done 3415# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 3416if test $ac_header_dirent = dirent.h; then 3417 echo "$as_me:$LINENO: checking for library containing opendir" >&5 3418echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 3419if test "${ac_cv_search_opendir+set}" = set; then 3420 echo $ECHO_N "(cached) $ECHO_C" >&6 3421else 3422 ac_func_search_save_LIBS=$LIBS 3423ac_cv_search_opendir=no 3424cat >conftest.$ac_ext <<_ACEOF 3425#line $LINENO "configure" 3426#include "confdefs.h" 3427 3428/* Override any gcc2 internal prototype to avoid an error. */ 3429#ifdef __cplusplus 3430extern "C" 3431#endif 3432/* We use char because int might match the return type of a gcc2 3433 builtin and then its argument prototype would still apply. */ 3434char opendir (); 3435#ifdef F77_DUMMY_MAIN 3436# ifdef __cplusplus 3437 extern "C" 3438# endif 3439 int F77_DUMMY_MAIN() { return 1; } 3440#endif 3441int 3442main () 3443{ 3444opendir (); 3445 ; 3446 return 0; 3447} 3448_ACEOF 3449rm -f conftest.$ac_objext conftest$ac_exeext 3450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3451 (eval $ac_link) 2>&5 3452 ac_status=$? 3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3454 (exit $ac_status); } && 3455 { ac_try='test -s conftest$ac_exeext' 3456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3457 (eval $ac_try) 2>&5 3458 ac_status=$? 3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3460 (exit $ac_status); }; }; then 3461 ac_cv_search_opendir="none required" 3462else 3463 echo "$as_me: failed program was:" >&5 3464cat conftest.$ac_ext >&5 3465fi 3466rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3467if test "$ac_cv_search_opendir" = no; then 3468 for ac_lib in dir; do 3469 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3470 cat >conftest.$ac_ext <<_ACEOF 3471#line $LINENO "configure" 3472#include "confdefs.h" 3473 3474/* Override any gcc2 internal prototype to avoid an error. */ 3475#ifdef __cplusplus 3476extern "C" 3477#endif 3478/* We use char because int might match the return type of a gcc2 3479 builtin and then its argument prototype would still apply. */ 3480char opendir (); 3481#ifdef F77_DUMMY_MAIN 3482# ifdef __cplusplus 3483 extern "C" 3484# endif 3485 int F77_DUMMY_MAIN() { return 1; } 3486#endif 3487int 3488main () 3489{ 3490opendir (); 3491 ; 3492 return 0; 3493} 3494_ACEOF 3495rm -f conftest.$ac_objext conftest$ac_exeext 3496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3497 (eval $ac_link) 2>&5 3498 ac_status=$? 3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3500 (exit $ac_status); } && 3501 { ac_try='test -s conftest$ac_exeext' 3502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3503 (eval $ac_try) 2>&5 3504 ac_status=$? 3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3506 (exit $ac_status); }; }; then 3507 ac_cv_search_opendir="-l$ac_lib" 3508break 3509else 3510 echo "$as_me: failed program was:" >&5 3511cat conftest.$ac_ext >&5 3512fi 3513rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3514 done 3515fi 3516LIBS=$ac_func_search_save_LIBS 3517fi 3518echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 3519echo "${ECHO_T}$ac_cv_search_opendir" >&6 3520if test "$ac_cv_search_opendir" != no; then 3521 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 3522 3523fi 3524 3525else 3526 echo "$as_me:$LINENO: checking for library containing opendir" >&5 3527echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 3528if test "${ac_cv_search_opendir+set}" = set; then 3529 echo $ECHO_N "(cached) $ECHO_C" >&6 3530else 3531 ac_func_search_save_LIBS=$LIBS 3532ac_cv_search_opendir=no 3533cat >conftest.$ac_ext <<_ACEOF 3534#line $LINENO "configure" 3535#include "confdefs.h" 3536 3537/* Override any gcc2 internal prototype to avoid an error. */ 3538#ifdef __cplusplus 3539extern "C" 3540#endif 3541/* We use char because int might match the return type of a gcc2 3542 builtin and then its argument prototype would still apply. */ 3543char opendir (); 3544#ifdef F77_DUMMY_MAIN 3545# ifdef __cplusplus 3546 extern "C" 3547# endif 3548 int F77_DUMMY_MAIN() { return 1; } 3549#endif 3550int 3551main () 3552{ 3553opendir (); 3554 ; 3555 return 0; 3556} 3557_ACEOF 3558rm -f conftest.$ac_objext conftest$ac_exeext 3559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3560 (eval $ac_link) 2>&5 3561 ac_status=$? 3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3563 (exit $ac_status); } && 3564 { ac_try='test -s conftest$ac_exeext' 3565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3566 (eval $ac_try) 2>&5 3567 ac_status=$? 3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3569 (exit $ac_status); }; }; then 3570 ac_cv_search_opendir="none required" 3571else 3572 echo "$as_me: failed program was:" >&5 3573cat conftest.$ac_ext >&5 3574fi 3575rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3576if test "$ac_cv_search_opendir" = no; then 3577 for ac_lib in x; do 3578 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3579 cat >conftest.$ac_ext <<_ACEOF 3580#line $LINENO "configure" 3581#include "confdefs.h" 3582 3583/* Override any gcc2 internal prototype to avoid an error. */ 3584#ifdef __cplusplus 3585extern "C" 3586#endif 3587/* We use char because int might match the return type of a gcc2 3588 builtin and then its argument prototype would still apply. */ 3589char opendir (); 3590#ifdef F77_DUMMY_MAIN 3591# ifdef __cplusplus 3592 extern "C" 3593# endif 3594 int F77_DUMMY_MAIN() { return 1; } 3595#endif 3596int 3597main () 3598{ 3599opendir (); 3600 ; 3601 return 0; 3602} 3603_ACEOF 3604rm -f conftest.$ac_objext conftest$ac_exeext 3605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3606 (eval $ac_link) 2>&5 3607 ac_status=$? 3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3609 (exit $ac_status); } && 3610 { ac_try='test -s conftest$ac_exeext' 3611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3612 (eval $ac_try) 2>&5 3613 ac_status=$? 3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3615 (exit $ac_status); }; }; then 3616 ac_cv_search_opendir="-l$ac_lib" 3617break 3618else 3619 echo "$as_me: failed program was:" >&5 3620cat conftest.$ac_ext >&5 3621fi 3622rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3623 done 3624fi 3625LIBS=$ac_func_search_save_LIBS 3626fi 3627echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 3628echo "${ECHO_T}$ac_cv_search_opendir" >&6 3629if test "$ac_cv_search_opendir" != no; then 3630 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 3631 3632fi 3633 3634fi 3635 3636echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3637echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3638if test "${ac_cv_header_stdc+set}" = set; then 3639 echo $ECHO_N "(cached) $ECHO_C" >&6 3640else 3641 cat >conftest.$ac_ext <<_ACEOF 3642#line $LINENO "configure" 3643#include "confdefs.h" 3644#include <stdlib.h> 3645#include <stdarg.h> 3646#include <string.h> 3647#include <float.h> 3648 3649_ACEOF 3650if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3651 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3652 ac_status=$? 3653 egrep -v '^ *\+' conftest.er1 >conftest.err 3654 rm -f conftest.er1 3655 cat conftest.err >&5 3656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3657 (exit $ac_status); } >/dev/null; then 3658 if test -s conftest.err; then 3659 ac_cpp_err=$ac_c_preproc_warn_flag 3660 else 3661 ac_cpp_err= 3662 fi 3663else 3664 ac_cpp_err=yes 3665fi 3666if test -z "$ac_cpp_err"; then 3667 ac_cv_header_stdc=yes 3668else 3669 echo "$as_me: failed program was:" >&5 3670 cat conftest.$ac_ext >&5 3671 ac_cv_header_stdc=no 3672fi 3673rm -f conftest.err conftest.$ac_ext 3674 3675if test $ac_cv_header_stdc = yes; then 3676 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3677 cat >conftest.$ac_ext <<_ACEOF 3678#line $LINENO "configure" 3679#include "confdefs.h" 3680#include <string.h> 3681 3682_ACEOF 3683if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3684 egrep "memchr" >/dev/null 2>&1; then 3685 : 3686else 3687 ac_cv_header_stdc=no 3688fi 3689rm -f conftest* 3690 3691fi 3692 3693if test $ac_cv_header_stdc = yes; then 3694 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3695 cat >conftest.$ac_ext <<_ACEOF 3696#line $LINENO "configure" 3697#include "confdefs.h" 3698#include <stdlib.h> 3699 3700_ACEOF 3701if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3702 egrep "free" >/dev/null 2>&1; then 3703 : 3704else 3705 ac_cv_header_stdc=no 3706fi 3707rm -f conftest* 3708 3709fi 3710 3711if test $ac_cv_header_stdc = yes; then 3712 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3713 if test "$cross_compiling" = yes; then 3714 : 3715else 3716 cat >conftest.$ac_ext <<_ACEOF 3717#line $LINENO "configure" 3718#include "confdefs.h" 3719#include <ctype.h> 3720#if ((' ' & 0x0FF) == 0x020) 3721# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3722# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3723#else 3724# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 3725 || ('j' <= (c) && (c) <= 'r') \ 3726 || ('s' <= (c) && (c) <= 'z')) 3727# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3728#endif 3729 3730#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3731int 3732main () 3733{ 3734 int i; 3735 for (i = 0; i < 256; i++) 3736 if (XOR (islower (i), ISLOWER (i)) 3737 || toupper (i) != TOUPPER (i)) 3738 exit(2); 3739 exit (0); 3740} 3741_ACEOF 3742rm -f conftest$ac_exeext 3743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3744 (eval $ac_link) 2>&5 3745 ac_status=$? 3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3749 (eval $ac_try) 2>&5 3750 ac_status=$? 3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3752 (exit $ac_status); }; }; then 3753 : 3754else 3755 echo "$as_me: program exited with status $ac_status" >&5 3756echo "$as_me: failed program was:" >&5 3757cat conftest.$ac_ext >&5 3758( exit $ac_status ) 3759ac_cv_header_stdc=no 3760fi 3761rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3762fi 3763fi 3764fi 3765echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3766echo "${ECHO_T}$ac_cv_header_stdc" >&6 3767if test $ac_cv_header_stdc = yes; then 3768 3769cat >>confdefs.h <<\_ACEOF 3770#define STDC_HEADERS 1 3771_ACEOF 3772 3773fi 3774 3775 3776 3777 3778 3779 3780 3781for ac_header in fcntl.h limits.h string.h unistd.h utime.h varargs.h 3782do 3783as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3784if eval "test \"\${$as_ac_Header+set}\" = set"; then 3785 echo "$as_me:$LINENO: checking for $ac_header" >&5 3786echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3787if eval "test \"\${$as_ac_Header+set}\" = set"; then 3788 echo $ECHO_N "(cached) $ECHO_C" >&6 3789fi 3790echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3791echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3792else 3793 # Is the header compilable? 3794echo "$as_me:$LINENO: checking $ac_header usability" >&5 3795echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3796cat >conftest.$ac_ext <<_ACEOF 3797#line $LINENO "configure" 3798#include "confdefs.h" 3799$ac_includes_default 3800#include <$ac_header> 3801_ACEOF 3802rm -f conftest.$ac_objext 3803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3804 (eval $ac_compile) 2>&5 3805 ac_status=$? 3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3807 (exit $ac_status); } && 3808 { ac_try='test -s conftest.$ac_objext' 3809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3810 (eval $ac_try) 2>&5 3811 ac_status=$? 3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3813 (exit $ac_status); }; }; then 3814 ac_header_compiler=yes 3815else 3816 echo "$as_me: failed program was:" >&5 3817cat conftest.$ac_ext >&5 3818ac_header_compiler=no 3819fi 3820rm -f conftest.$ac_objext conftest.$ac_ext 3821echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3822echo "${ECHO_T}$ac_header_compiler" >&6 3823 3824# Is the header present? 3825echo "$as_me:$LINENO: checking $ac_header presence" >&5 3826echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3827cat >conftest.$ac_ext <<_ACEOF 3828#line $LINENO "configure" 3829#include "confdefs.h" 3830#include <$ac_header> 3831_ACEOF 3832if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3833 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3834 ac_status=$? 3835 egrep -v '^ *\+' conftest.er1 >conftest.err 3836 rm -f conftest.er1 3837 cat conftest.err >&5 3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3839 (exit $ac_status); } >/dev/null; then 3840 if test -s conftest.err; then 3841 ac_cpp_err=$ac_c_preproc_warn_flag 3842 else 3843 ac_cpp_err= 3844 fi 3845else 3846 ac_cpp_err=yes 3847fi 3848if test -z "$ac_cpp_err"; then 3849 ac_header_preproc=yes 3850else 3851 echo "$as_me: failed program was:" >&5 3852 cat conftest.$ac_ext >&5 3853 ac_header_preproc=no 3854fi 3855rm -f conftest.err conftest.$ac_ext 3856echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3857echo "${ECHO_T}$ac_header_preproc" >&6 3858 3859# So? What about this header? 3860case $ac_header_compiler:$ac_header_preproc in 3861 yes:no ) 3862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3863echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3865echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 3866 no:yes ) 3867 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3868echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3869 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3870echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3872echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 3873esac 3874echo "$as_me:$LINENO: checking for $ac_header" >&5 3875echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3876if eval "test \"\${$as_ac_Header+set}\" = set"; then 3877 echo $ECHO_N "(cached) $ECHO_C" >&6 3878else 3879 eval "$as_ac_Header=$ac_header_preproc" 3880fi 3881echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3882echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3883 3884fi 3885if test `eval echo '${'$as_ac_Header'}'` = yes; then 3886 cat >>confdefs.h <<_ACEOF 3887#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3888_ACEOF 3889 3890fi 3891 3892done 3893 3894 3895echo "$as_me:$LINENO: checking for mode_t" >&5 3896echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 3897if test "${ac_cv_type_mode_t+set}" = set; then 3898 echo $ECHO_N "(cached) $ECHO_C" >&6 3899else 3900 cat >conftest.$ac_ext <<_ACEOF 3901#line $LINENO "configure" 3902#include "confdefs.h" 3903$ac_includes_default 3904#ifdef F77_DUMMY_MAIN 3905# ifdef __cplusplus 3906 extern "C" 3907# endif 3908 int F77_DUMMY_MAIN() { return 1; } 3909#endif 3910int 3911main () 3912{ 3913if ((mode_t *) 0) 3914 return 0; 3915if (sizeof (mode_t)) 3916 return 0; 3917 ; 3918 return 0; 3919} 3920_ACEOF 3921rm -f conftest.$ac_objext 3922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3923 (eval $ac_compile) 2>&5 3924 ac_status=$? 3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3926 (exit $ac_status); } && 3927 { ac_try='test -s conftest.$ac_objext' 3928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3929 (eval $ac_try) 2>&5 3930 ac_status=$? 3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3932 (exit $ac_status); }; }; then 3933 ac_cv_type_mode_t=yes 3934else 3935 echo "$as_me: failed program was:" >&5 3936cat conftest.$ac_ext >&5 3937ac_cv_type_mode_t=no 3938fi 3939rm -f conftest.$ac_objext conftest.$ac_ext 3940fi 3941echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 3942echo "${ECHO_T}$ac_cv_type_mode_t" >&6 3943if test $ac_cv_type_mode_t = yes; then 3944 : 3945else 3946 3947cat >>confdefs.h <<_ACEOF 3948#define mode_t int 3949_ACEOF 3950 3951fi 3952 3953echo "$as_me:$LINENO: checking for off_t" >&5 3954echo $ECHO_N "checking for off_t... $ECHO_C" >&6 3955if test "${ac_cv_type_off_t+set}" = set; then 3956 echo $ECHO_N "(cached) $ECHO_C" >&6 3957else 3958 cat >conftest.$ac_ext <<_ACEOF 3959#line $LINENO "configure" 3960#include "confdefs.h" 3961$ac_includes_default 3962#ifdef F77_DUMMY_MAIN 3963# ifdef __cplusplus 3964 extern "C" 3965# endif 3966 int F77_DUMMY_MAIN() { return 1; } 3967#endif 3968int 3969main () 3970{ 3971if ((off_t *) 0) 3972 return 0; 3973if (sizeof (off_t)) 3974 return 0; 3975 ; 3976 return 0; 3977} 3978_ACEOF 3979rm -f conftest.$ac_objext 3980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3981 (eval $ac_compile) 2>&5 3982 ac_status=$? 3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3984 (exit $ac_status); } && 3985 { ac_try='test -s conftest.$ac_objext' 3986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3987 (eval $ac_try) 2>&5 3988 ac_status=$? 3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3990 (exit $ac_status); }; }; then 3991 ac_cv_type_off_t=yes 3992else 3993 echo "$as_me: failed program was:" >&5 3994cat conftest.$ac_ext >&5 3995ac_cv_type_off_t=no 3996fi 3997rm -f conftest.$ac_objext conftest.$ac_ext 3998fi 3999echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 4000echo "${ECHO_T}$ac_cv_type_off_t" >&6 4001if test $ac_cv_type_off_t = yes; then 4002 : 4003else 4004 4005cat >>confdefs.h <<_ACEOF 4006#define off_t long 4007_ACEOF 4008 4009fi 4010 4011echo "$as_me:$LINENO: checking for pid_t" >&5 4012echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 4013if test "${ac_cv_type_pid_t+set}" = set; then 4014 echo $ECHO_N "(cached) $ECHO_C" >&6 4015else 4016 cat >conftest.$ac_ext <<_ACEOF 4017#line $LINENO "configure" 4018#include "confdefs.h" 4019$ac_includes_default 4020#ifdef F77_DUMMY_MAIN 4021# ifdef __cplusplus 4022 extern "C" 4023# endif 4024 int F77_DUMMY_MAIN() { return 1; } 4025#endif 4026int 4027main () 4028{ 4029if ((pid_t *) 0) 4030 return 0; 4031if (sizeof (pid_t)) 4032 return 0; 4033 ; 4034 return 0; 4035} 4036_ACEOF 4037rm -f conftest.$ac_objext 4038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4039 (eval $ac_compile) 2>&5 4040 ac_status=$? 4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4042 (exit $ac_status); } && 4043 { ac_try='test -s conftest.$ac_objext' 4044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4045 (eval $ac_try) 2>&5 4046 ac_status=$? 4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4048 (exit $ac_status); }; }; then 4049 ac_cv_type_pid_t=yes 4050else 4051 echo "$as_me: failed program was:" >&5 4052cat conftest.$ac_ext >&5 4053ac_cv_type_pid_t=no 4054fi 4055rm -f conftest.$ac_objext conftest.$ac_ext 4056fi 4057echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 4058echo "${ECHO_T}$ac_cv_type_pid_t" >&6 4059if test $ac_cv_type_pid_t = yes; then 4060 : 4061else 4062 4063cat >>confdefs.h <<_ACEOF 4064#define pid_t int 4065_ACEOF 4066 4067fi 4068 4069echo "$as_me:$LINENO: checking return type of signal handlers" >&5 4070echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 4071if test "${ac_cv_type_signal+set}" = set; then 4072 echo $ECHO_N "(cached) $ECHO_C" >&6 4073else 4074 cat >conftest.$ac_ext <<_ACEOF 4075#line $LINENO "configure" 4076#include "confdefs.h" 4077#include <sys/types.h> 4078#include <signal.h> 4079#ifdef signal 4080# undef signal 4081#endif 4082#ifdef __cplusplus 4083extern "C" void (*signal (int, void (*)(int)))(int); 4084#else 4085void (*signal ()) (); 4086#endif 4087 4088#ifdef F77_DUMMY_MAIN 4089# ifdef __cplusplus 4090 extern "C" 4091# endif 4092 int F77_DUMMY_MAIN() { return 1; } 4093#endif 4094int 4095main () 4096{ 4097int i; 4098 ; 4099 return 0; 4100} 4101_ACEOF 4102rm -f conftest.$ac_objext 4103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4104 (eval $ac_compile) 2>&5 4105 ac_status=$? 4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4107 (exit $ac_status); } && 4108 { ac_try='test -s conftest.$ac_objext' 4109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4110 (eval $ac_try) 2>&5 4111 ac_status=$? 4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4113 (exit $ac_status); }; }; then 4114 ac_cv_type_signal=void 4115else 4116 echo "$as_me: failed program was:" >&5 4117cat conftest.$ac_ext >&5 4118ac_cv_type_signal=int 4119fi 4120rm -f conftest.$ac_objext conftest.$ac_ext 4121fi 4122echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 4123echo "${ECHO_T}$ac_cv_type_signal" >&6 4124 4125cat >>confdefs.h <<_ACEOF 4126#define RETSIGTYPE $ac_cv_type_signal 4127_ACEOF 4128 4129 4130echo "$as_me:$LINENO: checking for size_t" >&5 4131echo $ECHO_N "checking for size_t... $ECHO_C" >&6 4132if test "${ac_cv_type_size_t+set}" = set; then 4133 echo $ECHO_N "(cached) $ECHO_C" >&6 4134else 4135 cat >conftest.$ac_ext <<_ACEOF 4136#line $LINENO "configure" 4137#include "confdefs.h" 4138$ac_includes_default 4139#ifdef F77_DUMMY_MAIN 4140# ifdef __cplusplus 4141 extern "C" 4142# endif 4143 int F77_DUMMY_MAIN() { return 1; } 4144#endif 4145int 4146main () 4147{ 4148if ((size_t *) 0) 4149 return 0; 4150if (sizeof (size_t)) 4151 return 0; 4152 ; 4153 return 0; 4154} 4155_ACEOF 4156rm -f conftest.$ac_objext 4157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4158 (eval $ac_compile) 2>&5 4159 ac_status=$? 4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4161 (exit $ac_status); } && 4162 { ac_try='test -s conftest.$ac_objext' 4163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4164 (eval $ac_try) 2>&5 4165 ac_status=$? 4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4167 (exit $ac_status); }; }; then 4168 ac_cv_type_size_t=yes 4169else 4170 echo "$as_me: failed program was:" >&5 4171cat conftest.$ac_ext >&5 4172ac_cv_type_size_t=no 4173fi 4174rm -f conftest.$ac_objext conftest.$ac_ext 4175fi 4176echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 4177echo "${ECHO_T}$ac_cv_type_size_t" >&6 4178if test $ac_cv_type_size_t = yes; then 4179 : 4180else 4181 4182cat >>confdefs.h <<_ACEOF 4183#define size_t unsigned 4184_ACEOF 4185 4186fi 4187 4188echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 4189echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 4190if test "${ac_cv_header_time+set}" = set; then 4191 echo $ECHO_N "(cached) $ECHO_C" >&6 4192else 4193 cat >conftest.$ac_ext <<_ACEOF 4194#line $LINENO "configure" 4195#include "confdefs.h" 4196#include <sys/types.h> 4197#include <sys/time.h> 4198#include <time.h> 4199 4200#ifdef F77_DUMMY_MAIN 4201# ifdef __cplusplus 4202 extern "C" 4203# endif 4204 int F77_DUMMY_MAIN() { return 1; } 4205#endif 4206int 4207main () 4208{ 4209if ((struct tm *) 0) 4210return 0; 4211 ; 4212 return 0; 4213} 4214_ACEOF 4215rm -f conftest.$ac_objext 4216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4217 (eval $ac_compile) 2>&5 4218 ac_status=$? 4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4220 (exit $ac_status); } && 4221 { ac_try='test -s conftest.$ac_objext' 4222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4223 (eval $ac_try) 2>&5 4224 ac_status=$? 4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4226 (exit $ac_status); }; }; then 4227 ac_cv_header_time=yes 4228else 4229 echo "$as_me: failed program was:" >&5 4230cat conftest.$ac_ext >&5 4231ac_cv_header_time=no 4232fi 4233rm -f conftest.$ac_objext conftest.$ac_ext 4234fi 4235echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 4236echo "${ECHO_T}$ac_cv_header_time" >&6 4237if test $ac_cv_header_time = yes; then 4238 4239cat >>confdefs.h <<\_ACEOF 4240#define TIME_WITH_SYS_TIME 1 4241_ACEOF 4242 4243fi 4244 4245 4246 4247for ac_header in utime.h 4248do 4249as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4250if eval "test \"\${$as_ac_Header+set}\" = set"; then 4251 echo "$as_me:$LINENO: checking for $ac_header" >&5 4252echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4253if eval "test \"\${$as_ac_Header+set}\" = set"; then 4254 echo $ECHO_N "(cached) $ECHO_C" >&6 4255fi 4256echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4257echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4258else 4259 # Is the header compilable? 4260echo "$as_me:$LINENO: checking $ac_header usability" >&5 4261echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4262cat >conftest.$ac_ext <<_ACEOF 4263#line $LINENO "configure" 4264#include "confdefs.h" 4265$ac_includes_default 4266#include <$ac_header> 4267_ACEOF 4268rm -f conftest.$ac_objext 4269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4270 (eval $ac_compile) 2>&5 4271 ac_status=$? 4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4273 (exit $ac_status); } && 4274 { ac_try='test -s conftest.$ac_objext' 4275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4276 (eval $ac_try) 2>&5 4277 ac_status=$? 4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4279 (exit $ac_status); }; }; then 4280 ac_header_compiler=yes 4281else 4282 echo "$as_me: failed program was:" >&5 4283cat conftest.$ac_ext >&5 4284ac_header_compiler=no 4285fi 4286rm -f conftest.$ac_objext conftest.$ac_ext 4287echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4288echo "${ECHO_T}$ac_header_compiler" >&6 4289 4290# Is the header present? 4291echo "$as_me:$LINENO: checking $ac_header presence" >&5 4292echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4293cat >conftest.$ac_ext <<_ACEOF 4294#line $LINENO "configure" 4295#include "confdefs.h" 4296#include <$ac_header> 4297_ACEOF 4298if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4299 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4300 ac_status=$? 4301 egrep -v '^ *\+' conftest.er1 >conftest.err 4302 rm -f conftest.er1 4303 cat conftest.err >&5 4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4305 (exit $ac_status); } >/dev/null; then 4306 if test -s conftest.err; then 4307 ac_cpp_err=$ac_c_preproc_warn_flag 4308 else 4309 ac_cpp_err= 4310 fi 4311else 4312 ac_cpp_err=yes 4313fi 4314if test -z "$ac_cpp_err"; then 4315 ac_header_preproc=yes 4316else 4317 echo "$as_me: failed program was:" >&5 4318 cat conftest.$ac_ext >&5 4319 ac_header_preproc=no 4320fi 4321rm -f conftest.err conftest.$ac_ext 4322echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4323echo "${ECHO_T}$ac_header_preproc" >&6 4324 4325# So? What about this header? 4326case $ac_header_compiler:$ac_header_preproc in 4327 yes:no ) 4328 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4329echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4331echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 4332 no:yes ) 4333 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4334echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4335 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4336echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4338echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 4339esac 4340echo "$as_me:$LINENO: checking for $ac_header" >&5 4341echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4342if eval "test \"\${$as_ac_Header+set}\" = set"; then 4343 echo $ECHO_N "(cached) $ECHO_C" >&6 4344else 4345 eval "$as_ac_Header=$ac_header_preproc" 4346fi 4347echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4348echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4349 4350fi 4351if test `eval echo '${'$as_ac_Header'}'` = yes; then 4352 cat >>confdefs.h <<_ACEOF 4353#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4354_ACEOF 4355 4356fi 4357 4358done 4359 4360 4361 echo "$as_me:$LINENO: checking for struct utimbuf" >&5 4362echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6 4363if test "${fu_cv_sys_struct_utimbuf+set}" = set; then 4364 echo $ECHO_N "(cached) $ECHO_C" >&6 4365else 4366 cat >conftest.$ac_ext <<_ACEOF 4367#line $LINENO "configure" 4368#include "confdefs.h" 4369 4370#ifdef TIME_WITH_SYS_TIME 4371# include <sys/time.h> 4372# include <time.h> 4373#else 4374# ifdef HAVE_SYS_TIME_H 4375# include <sys/time.h> 4376# else 4377# include <time.h> 4378# endif 4379#endif 4380#ifdef HAVE_UTIME_H 4381# include <utime.h> 4382#endif 4383 4384#ifdef F77_DUMMY_MAIN 4385# ifdef __cplusplus 4386 extern "C" 4387# endif 4388 int F77_DUMMY_MAIN() { return 1; } 4389#endif 4390int 4391main () 4392{ 4393static struct utimbuf x; x.actime = x.modtime; 4394 ; 4395 return 0; 4396} 4397_ACEOF 4398rm -f conftest.$ac_objext 4399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4400 (eval $ac_compile) 2>&5 4401 ac_status=$? 4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4403 (exit $ac_status); } && 4404 { ac_try='test -s conftest.$ac_objext' 4405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4406 (eval $ac_try) 2>&5 4407 ac_status=$? 4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4409 (exit $ac_status); }; }; then 4410 fu_cv_sys_struct_utimbuf=yes 4411else 4412 echo "$as_me: failed program was:" >&5 4413cat conftest.$ac_ext >&5 4414fu_cv_sys_struct_utimbuf=no 4415fi 4416rm -f conftest.$ac_objext conftest.$ac_ext 4417 4418fi 4419echo "$as_me:$LINENO: result: $fu_cv_sys_struct_utimbuf" >&5 4420echo "${ECHO_T}$fu_cv_sys_struct_utimbuf" >&6 4421 4422 if test $fu_cv_sys_struct_utimbuf = yes; then 4423 4424cat >>confdefs.h <<\_ACEOF 4425#define HAVE_STRUCT_UTIMBUF 1 4426_ACEOF 4427 4428 fi 4429 4430 4431 4432 echo "$as_me:$LINENO: checking for long file names" >&5 4433echo $ECHO_N "checking for long file names... $ECHO_C" >&6 4434if test "${ac_cv_sys_long_file_names+set}" = set; then 4435 echo $ECHO_N "(cached) $ECHO_C" >&6 4436else 4437 ac_cv_sys_long_file_names=yes 4438# Test for long file names in all the places we know might matter: 4439# . the current directory, where building will happen 4440# $prefix/lib where we will be installing things 4441# $exec_prefix/lib likewise 4442# eval it to expand exec_prefix. 4443# $TMPDIR if set, where it might want to write temporary files 4444# if $TMPDIR is not set: 4445# /tmp where it might want to write temporary files 4446# /var/tmp likewise 4447# /usr/tmp likewise 4448if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then 4449 ac_tmpdirs=$TMPDIR 4450else 4451 ac_tmpdirs='/tmp /var/tmp /usr/tmp' 4452fi 4453for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do 4454 test -d $ac_dir || continue 4455 test -w $ac_dir || continue # It is less confusing to not echo anything here. 4456 ac_xdir=$ac_dir/cf$$ 4457 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue 4458 ac_tf1=$ac_xdir/conftest9012345 4459 ac_tf2=$ac_xdir/conftest9012346 4460 (echo 1 >$ac_tf1) 2>/dev/null 4461 (echo 2 >$ac_tf2) 2>/dev/null 4462 ac_val=`cat $ac_tf1 2>/dev/null` 4463 if test ! -f $ac_tf1 || test "$ac_val" != 1; then 4464 ac_cv_sys_long_file_names=no 4465 rm -rf $ac_xdir 2>/dev/null 4466 break 4467 fi 4468 rm -rf $ac_xdir 2>/dev/null 4469done 4470fi 4471echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5 4472echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6 4473if test $ac_cv_sys_long_file_names = yes; then 4474 4475cat >>confdefs.h <<\_ACEOF 4476#define HAVE_LONG_FILE_NAMES 1 4477_ACEOF 4478 4479fi 4480 4481 4482for ac_func in pathconf 4483do 4484as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4485echo "$as_me:$LINENO: checking for $ac_func" >&5 4486echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4487if eval "test \"\${$as_ac_var+set}\" = set"; then 4488 echo $ECHO_N "(cached) $ECHO_C" >&6 4489else 4490 cat >conftest.$ac_ext <<_ACEOF 4491#line $LINENO "configure" 4492#include "confdefs.h" 4493/* System header to define __stub macros and hopefully few prototypes, 4494 which can conflict with char $ac_func (); below. */ 4495#include <assert.h> 4496/* Override any gcc2 internal prototype to avoid an error. */ 4497#ifdef __cplusplus 4498extern "C" 4499#endif 4500/* We use char because int might match the return type of a gcc2 4501 builtin and then its argument prototype would still apply. */ 4502char $ac_func (); 4503char (*f) (); 4504 4505#ifdef F77_DUMMY_MAIN 4506# ifdef __cplusplus 4507 extern "C" 4508# endif 4509 int F77_DUMMY_MAIN() { return 1; } 4510#endif 4511int 4512main () 4513{ 4514/* The GNU C library defines this for functions which it implements 4515 to always fail with ENOSYS. Some functions are actually named 4516 something starting with __ and the normal name is an alias. */ 4517#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4518choke me 4519#else 4520f = $ac_func; 4521#endif 4522 4523 ; 4524 return 0; 4525} 4526_ACEOF 4527rm -f conftest.$ac_objext conftest$ac_exeext 4528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4529 (eval $ac_link) 2>&5 4530 ac_status=$? 4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4532 (exit $ac_status); } && 4533 { ac_try='test -s conftest$ac_exeext' 4534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4535 (eval $ac_try) 2>&5 4536 ac_status=$? 4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4538 (exit $ac_status); }; }; then 4539 eval "$as_ac_var=yes" 4540else 4541 echo "$as_me: failed program was:" >&5 4542cat conftest.$ac_ext >&5 4543eval "$as_ac_var=no" 4544fi 4545rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4546fi 4547echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 4548echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 4549if test `eval echo '${'$as_ac_var'}'` = yes; then 4550 cat >>confdefs.h <<_ACEOF 4551#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 4552_ACEOF 4553 4554fi 4555done 4556 4557 4558 4559 4560for ac_header in limits.h string.h unistd.h 4561do 4562as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4563if eval "test \"\${$as_ac_Header+set}\" = set"; then 4564 echo "$as_me:$LINENO: checking for $ac_header" >&5 4565echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4566if eval "test \"\${$as_ac_Header+set}\" = set"; then 4567 echo $ECHO_N "(cached) $ECHO_C" >&6 4568fi 4569echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4570echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4571else 4572 # Is the header compilable? 4573echo "$as_me:$LINENO: checking $ac_header usability" >&5 4574echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4575cat >conftest.$ac_ext <<_ACEOF 4576#line $LINENO "configure" 4577#include "confdefs.h" 4578$ac_includes_default 4579#include <$ac_header> 4580_ACEOF 4581rm -f conftest.$ac_objext 4582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4583 (eval $ac_compile) 2>&5 4584 ac_status=$? 4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4586 (exit $ac_status); } && 4587 { ac_try='test -s conftest.$ac_objext' 4588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4589 (eval $ac_try) 2>&5 4590 ac_status=$? 4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4592 (exit $ac_status); }; }; then 4593 ac_header_compiler=yes 4594else 4595 echo "$as_me: failed program was:" >&5 4596cat conftest.$ac_ext >&5 4597ac_header_compiler=no 4598fi 4599rm -f conftest.$ac_objext conftest.$ac_ext 4600echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4601echo "${ECHO_T}$ac_header_compiler" >&6 4602 4603# Is the header present? 4604echo "$as_me:$LINENO: checking $ac_header presence" >&5 4605echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4606cat >conftest.$ac_ext <<_ACEOF 4607#line $LINENO "configure" 4608#include "confdefs.h" 4609#include <$ac_header> 4610_ACEOF 4611if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4612 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4613 ac_status=$? 4614 egrep -v '^ *\+' conftest.er1 >conftest.err 4615 rm -f conftest.er1 4616 cat conftest.err >&5 4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4618 (exit $ac_status); } >/dev/null; then 4619 if test -s conftest.err; then 4620 ac_cpp_err=$ac_c_preproc_warn_flag 4621 else 4622 ac_cpp_err= 4623 fi 4624else 4625 ac_cpp_err=yes 4626fi 4627if test -z "$ac_cpp_err"; then 4628 ac_header_preproc=yes 4629else 4630 echo "$as_me: failed program was:" >&5 4631 cat conftest.$ac_ext >&5 4632 ac_header_preproc=no 4633fi 4634rm -f conftest.err conftest.$ac_ext 4635echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4636echo "${ECHO_T}$ac_header_preproc" >&6 4637 4638# So? What about this header? 4639case $ac_header_compiler:$ac_header_preproc in 4640 yes:no ) 4641 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4642echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4644echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 4645 no:yes ) 4646 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4647echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4648 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4649echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4651echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 4652esac 4653echo "$as_me:$LINENO: checking for $ac_header" >&5 4654echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4655if eval "test \"\${$as_ac_Header+set}\" = set"; then 4656 echo $ECHO_N "(cached) $ECHO_C" >&6 4657else 4658 eval "$as_ac_Header=$ac_header_preproc" 4659fi 4660echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4661echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4662 4663fi 4664if test `eval echo '${'$as_ac_Header'}'` = yes; then 4665 cat >>confdefs.h <<_ACEOF 4666#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4667_ACEOF 4668 4669fi 4670 4671done 4672 4673 4674 4675 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4676echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4677if test "${ac_cv_header_stdc+set}" = set; then 4678 echo $ECHO_N "(cached) $ECHO_C" >&6 4679else 4680 cat >conftest.$ac_ext <<_ACEOF 4681#line $LINENO "configure" 4682#include "confdefs.h" 4683#include <stdlib.h> 4684#include <stdarg.h> 4685#include <string.h> 4686#include <float.h> 4687 4688_ACEOF 4689if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4690 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4691 ac_status=$? 4692 egrep -v '^ *\+' conftest.er1 >conftest.err 4693 rm -f conftest.er1 4694 cat conftest.err >&5 4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4696 (exit $ac_status); } >/dev/null; then 4697 if test -s conftest.err; then 4698 ac_cpp_err=$ac_c_preproc_warn_flag 4699 else 4700 ac_cpp_err= 4701 fi 4702else 4703 ac_cpp_err=yes 4704fi 4705if test -z "$ac_cpp_err"; then 4706 ac_cv_header_stdc=yes 4707else 4708 echo "$as_me: failed program was:" >&5 4709 cat conftest.$ac_ext >&5 4710 ac_cv_header_stdc=no 4711fi 4712rm -f conftest.err conftest.$ac_ext 4713 4714if test $ac_cv_header_stdc = yes; then 4715 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4716 cat >conftest.$ac_ext <<_ACEOF 4717#line $LINENO "configure" 4718#include "confdefs.h" 4719#include <string.h> 4720 4721_ACEOF 4722if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4723 egrep "memchr" >/dev/null 2>&1; then 4724 : 4725else 4726 ac_cv_header_stdc=no 4727fi 4728rm -f conftest* 4729 4730fi 4731 4732if test $ac_cv_header_stdc = yes; then 4733 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4734 cat >conftest.$ac_ext <<_ACEOF 4735#line $LINENO "configure" 4736#include "confdefs.h" 4737#include <stdlib.h> 4738 4739_ACEOF 4740if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4741 egrep "free" >/dev/null 2>&1; then 4742 : 4743else 4744 ac_cv_header_stdc=no 4745fi 4746rm -f conftest* 4747 4748fi 4749 4750if test $ac_cv_header_stdc = yes; then 4751 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4752 if test "$cross_compiling" = yes; then 4753 : 4754else 4755 cat >conftest.$ac_ext <<_ACEOF 4756#line $LINENO "configure" 4757#include "confdefs.h" 4758#include <ctype.h> 4759#if ((' ' & 0x0FF) == 0x020) 4760# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4761# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4762#else 4763# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 4764 || ('j' <= (c) && (c) <= 'r') \ 4765 || ('s' <= (c) && (c) <= 'z')) 4766# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4767#endif 4768 4769#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4770int 4771main () 4772{ 4773 int i; 4774 for (i = 0; i < 256; i++) 4775 if (XOR (islower (i), ISLOWER (i)) 4776 || toupper (i) != TOUPPER (i)) 4777 exit(2); 4778 exit (0); 4779} 4780_ACEOF 4781rm -f conftest$ac_exeext 4782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4783 (eval $ac_link) 2>&5 4784 ac_status=$? 4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4788 (eval $ac_try) 2>&5 4789 ac_status=$? 4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4791 (exit $ac_status); }; }; then 4792 : 4793else 4794 echo "$as_me: program exited with status $ac_status" >&5 4795echo "$as_me: failed program was:" >&5 4796cat conftest.$ac_ext >&5 4797( exit $ac_status ) 4798ac_cv_header_stdc=no 4799fi 4800rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4801fi 4802fi 4803fi 4804echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4805echo "${ECHO_T}$ac_cv_header_stdc" >&6 4806if test $ac_cv_header_stdc = yes; then 4807 4808cat >>confdefs.h <<\_ACEOF 4809#define STDC_HEADERS 1 4810_ACEOF 4811 4812fi 4813 4814 4815for ac_header in string.h 4816do 4817as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4818if eval "test \"\${$as_ac_Header+set}\" = set"; then 4819 echo "$as_me:$LINENO: checking for $ac_header" >&5 4820echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4821if eval "test \"\${$as_ac_Header+set}\" = set"; then 4822 echo $ECHO_N "(cached) $ECHO_C" >&6 4823fi 4824echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4825echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4826else 4827 # Is the header compilable? 4828echo "$as_me:$LINENO: checking $ac_header usability" >&5 4829echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4830cat >conftest.$ac_ext <<_ACEOF 4831#line $LINENO "configure" 4832#include "confdefs.h" 4833$ac_includes_default 4834#include <$ac_header> 4835_ACEOF 4836rm -f conftest.$ac_objext 4837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4838 (eval $ac_compile) 2>&5 4839 ac_status=$? 4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4841 (exit $ac_status); } && 4842 { ac_try='test -s conftest.$ac_objext' 4843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4844 (eval $ac_try) 2>&5 4845 ac_status=$? 4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4847 (exit $ac_status); }; }; then 4848 ac_header_compiler=yes 4849else 4850 echo "$as_me: failed program was:" >&5 4851cat conftest.$ac_ext >&5 4852ac_header_compiler=no 4853fi 4854rm -f conftest.$ac_objext conftest.$ac_ext 4855echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4856echo "${ECHO_T}$ac_header_compiler" >&6 4857 4858# Is the header present? 4859echo "$as_me:$LINENO: checking $ac_header presence" >&5 4860echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4861cat >conftest.$ac_ext <<_ACEOF 4862#line $LINENO "configure" 4863#include "confdefs.h" 4864#include <$ac_header> 4865_ACEOF 4866if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4868 ac_status=$? 4869 egrep -v '^ *\+' conftest.er1 >conftest.err 4870 rm -f conftest.er1 4871 cat conftest.err >&5 4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4873 (exit $ac_status); } >/dev/null; then 4874 if test -s conftest.err; then 4875 ac_cpp_err=$ac_c_preproc_warn_flag 4876 else 4877 ac_cpp_err= 4878 fi 4879else 4880 ac_cpp_err=yes 4881fi 4882if test -z "$ac_cpp_err"; then 4883 ac_header_preproc=yes 4884else 4885 echo "$as_me: failed program was:" >&5 4886 cat conftest.$ac_ext >&5 4887 ac_header_preproc=no 4888fi 4889rm -f conftest.err conftest.$ac_ext 4890echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4891echo "${ECHO_T}$ac_header_preproc" >&6 4892 4893# So? What about this header? 4894case $ac_header_compiler:$ac_header_preproc in 4895 yes:no ) 4896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4897echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4899echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 4900 no:yes ) 4901 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4902echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4903 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4904echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4906echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 4907esac 4908echo "$as_me:$LINENO: checking for $ac_header" >&5 4909echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4910if eval "test \"\${$as_ac_Header+set}\" = set"; then 4911 echo $ECHO_N "(cached) $ECHO_C" >&6 4912else 4913 eval "$as_ac_Header=$ac_header_preproc" 4914fi 4915echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4916echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4917 4918fi 4919if test `eval echo '${'$as_ac_Header'}'` = yes; then 4920 cat >>confdefs.h <<_ACEOF 4921#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4922_ACEOF 4923 4924fi 4925 4926done 4927 4928 4929 4930 4931 4932 4933for ac_func in strerror vprintf doprnt 4934do 4935as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4936echo "$as_me:$LINENO: checking for $ac_func" >&5 4937echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4938if eval "test \"\${$as_ac_var+set}\" = set"; then 4939 echo $ECHO_N "(cached) $ECHO_C" >&6 4940else 4941 cat >conftest.$ac_ext <<_ACEOF 4942#line $LINENO "configure" 4943#include "confdefs.h" 4944/* System header to define __stub macros and hopefully few prototypes, 4945 which can conflict with char $ac_func (); below. */ 4946#include <assert.h> 4947/* Override any gcc2 internal prototype to avoid an error. */ 4948#ifdef __cplusplus 4949extern "C" 4950#endif 4951/* We use char because int might match the return type of a gcc2 4952 builtin and then its argument prototype would still apply. */ 4953char $ac_func (); 4954char (*f) (); 4955 4956#ifdef F77_DUMMY_MAIN 4957# ifdef __cplusplus 4958 extern "C" 4959# endif 4960 int F77_DUMMY_MAIN() { return 1; } 4961#endif 4962int 4963main () 4964{ 4965/* The GNU C library defines this for functions which it implements 4966 to always fail with ENOSYS. Some functions are actually named 4967 something starting with __ and the normal name is an alias. */ 4968#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4969choke me 4970#else 4971f = $ac_func; 4972#endif 4973 4974 ; 4975 return 0; 4976} 4977_ACEOF 4978rm -f conftest.$ac_objext conftest$ac_exeext 4979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4980 (eval $ac_link) 2>&5 4981 ac_status=$? 4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4983 (exit $ac_status); } && 4984 { ac_try='test -s conftest$ac_exeext' 4985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4986 (eval $ac_try) 2>&5 4987 ac_status=$? 4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4989 (exit $ac_status); }; }; then 4990 eval "$as_ac_var=yes" 4991else 4992 echo "$as_me: failed program was:" >&5 4993cat conftest.$ac_ext >&5 4994eval "$as_ac_var=no" 4995fi 4996rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4997fi 4998echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 4999echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5000if test `eval echo '${'$as_ac_var'}'` = yes; then 5001 cat >>confdefs.h <<_ACEOF 5002#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5003_ACEOF 5004 5005fi 5006done 5007 5008 echo "$as_me:$LINENO: checking whether strerror is declared" >&5 5009echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6 5010if test "${ac_cv_have_decl_strerror+set}" = set; then 5011 echo $ECHO_N "(cached) $ECHO_C" >&6 5012else 5013 cat >conftest.$ac_ext <<_ACEOF 5014#line $LINENO "configure" 5015#include "confdefs.h" 5016$ac_includes_default 5017#ifdef F77_DUMMY_MAIN 5018# ifdef __cplusplus 5019 extern "C" 5020# endif 5021 int F77_DUMMY_MAIN() { return 1; } 5022#endif 5023int 5024main () 5025{ 5026#ifndef strerror 5027 char *p = (char *) strerror; 5028#endif 5029 5030 ; 5031 return 0; 5032} 5033_ACEOF 5034rm -f conftest.$ac_objext 5035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5036 (eval $ac_compile) 2>&5 5037 ac_status=$? 5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5039 (exit $ac_status); } && 5040 { ac_try='test -s conftest.$ac_objext' 5041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5042 (eval $ac_try) 2>&5 5043 ac_status=$? 5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5045 (exit $ac_status); }; }; then 5046 ac_cv_have_decl_strerror=yes 5047else 5048 echo "$as_me: failed program was:" >&5 5049cat conftest.$ac_ext >&5 5050ac_cv_have_decl_strerror=no 5051fi 5052rm -f conftest.$ac_objext conftest.$ac_ext 5053fi 5054echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5 5055echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6 5056if test $ac_cv_have_decl_strerror = yes; then 5057 5058cat >>confdefs.h <<_ACEOF 5059#define HAVE_DECL_STRERROR 1 5060_ACEOF 5061 5062 5063else 5064 cat >>confdefs.h <<_ACEOF 5065#define HAVE_DECL_STRERROR 0 5066_ACEOF 5067 5068 5069fi 5070 5071 5072 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5 5073echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6 5074if test "${ac_cv_have_decl_strerror_r+set}" = set; then 5075 echo $ECHO_N "(cached) $ECHO_C" >&6 5076else 5077 cat >conftest.$ac_ext <<_ACEOF 5078#line $LINENO "configure" 5079#include "confdefs.h" 5080$ac_includes_default 5081#ifdef F77_DUMMY_MAIN 5082# ifdef __cplusplus 5083 extern "C" 5084# endif 5085 int F77_DUMMY_MAIN() { return 1; } 5086#endif 5087int 5088main () 5089{ 5090#ifndef strerror_r 5091 char *p = (char *) strerror_r; 5092#endif 5093 5094 ; 5095 return 0; 5096} 5097_ACEOF 5098rm -f conftest.$ac_objext 5099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5100 (eval $ac_compile) 2>&5 5101 ac_status=$? 5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5103 (exit $ac_status); } && 5104 { ac_try='test -s conftest.$ac_objext' 5105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5106 (eval $ac_try) 2>&5 5107 ac_status=$? 5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5109 (exit $ac_status); }; }; then 5110 ac_cv_have_decl_strerror_r=yes 5111else 5112 echo "$as_me: failed program was:" >&5 5113cat conftest.$ac_ext >&5 5114ac_cv_have_decl_strerror_r=no 5115fi 5116rm -f conftest.$ac_objext conftest.$ac_ext 5117fi 5118echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5 5119echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6 5120if test $ac_cv_have_decl_strerror_r = yes; then 5121 5122cat >>confdefs.h <<_ACEOF 5123#define HAVE_DECL_STRERROR_R 1 5124_ACEOF 5125 5126 5127else 5128 cat >>confdefs.h <<_ACEOF 5129#define HAVE_DECL_STRERROR_R 0 5130_ACEOF 5131 5132 5133fi 5134 5135 5136 5137for ac_func in strerror_r 5138do 5139as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5140echo "$as_me:$LINENO: checking for $ac_func" >&5 5141echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5142if eval "test \"\${$as_ac_var+set}\" = set"; then 5143 echo $ECHO_N "(cached) $ECHO_C" >&6 5144else 5145 cat >conftest.$ac_ext <<_ACEOF 5146#line $LINENO "configure" 5147#include "confdefs.h" 5148/* System header to define __stub macros and hopefully few prototypes, 5149 which can conflict with char $ac_func (); below. */ 5150#include <assert.h> 5151/* Override any gcc2 internal prototype to avoid an error. */ 5152#ifdef __cplusplus 5153extern "C" 5154#endif 5155/* We use char because int might match the return type of a gcc2 5156 builtin and then its argument prototype would still apply. */ 5157char $ac_func (); 5158char (*f) (); 5159 5160#ifdef F77_DUMMY_MAIN 5161# ifdef __cplusplus 5162 extern "C" 5163# endif 5164 int F77_DUMMY_MAIN() { return 1; } 5165#endif 5166int 5167main () 5168{ 5169/* The GNU C library defines this for functions which it implements 5170 to always fail with ENOSYS. Some functions are actually named 5171 something starting with __ and the normal name is an alias. */ 5172#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5173choke me 5174#else 5175f = $ac_func; 5176#endif 5177 5178 ; 5179 return 0; 5180} 5181_ACEOF 5182rm -f conftest.$ac_objext conftest$ac_exeext 5183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5184 (eval $ac_link) 2>&5 5185 ac_status=$? 5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5187 (exit $ac_status); } && 5188 { ac_try='test -s conftest$ac_exeext' 5189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5190 (eval $ac_try) 2>&5 5191 ac_status=$? 5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5193 (exit $ac_status); }; }; then 5194 eval "$as_ac_var=yes" 5195else 5196 echo "$as_me: failed program was:" >&5 5197cat conftest.$ac_ext >&5 5198eval "$as_ac_var=no" 5199fi 5200rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5201fi 5202echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5203echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5204if test `eval echo '${'$as_ac_var'}'` = yes; then 5205 cat >>confdefs.h <<_ACEOF 5206#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5207_ACEOF 5208 5209fi 5210done 5211 5212echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5 5213echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6 5214if test "${ac_cv_func_strerror_r_char_p+set}" = set; then 5215 echo $ECHO_N "(cached) $ECHO_C" >&6 5216else 5217 5218 ac_cv_func_strerror_r_char_p=no 5219 if test $ac_cv_have_decl_strerror_r = yes; then 5220 cat >conftest.$ac_ext <<_ACEOF 5221#line $LINENO "configure" 5222#include "confdefs.h" 5223$ac_includes_default 5224#ifdef F77_DUMMY_MAIN 5225# ifdef __cplusplus 5226 extern "C" 5227# endif 5228 int F77_DUMMY_MAIN() { return 1; } 5229#endif 5230int 5231main () 5232{ 5233 5234 char buf[100]; 5235 char x = *strerror_r (0, buf, sizeof buf); 5236 char *p = strerror_r (0, buf, sizeof buf); 5237 5238 ; 5239 return 0; 5240} 5241_ACEOF 5242rm -f conftest.$ac_objext 5243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5244 (eval $ac_compile) 2>&5 5245 ac_status=$? 5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5247 (exit $ac_status); } && 5248 { ac_try='test -s conftest.$ac_objext' 5249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5250 (eval $ac_try) 2>&5 5251 ac_status=$? 5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5253 (exit $ac_status); }; }; then 5254 ac_cv_func_strerror_r_char_p=yes 5255else 5256 echo "$as_me: failed program was:" >&5 5257cat conftest.$ac_ext >&5 5258fi 5259rm -f conftest.$ac_objext conftest.$ac_ext 5260 else 5261 # strerror_r is not declared. Choose between 5262 # systems that have relatively inaccessible declarations for the 5263 # function. BeOS and DEC UNIX 4.0 fall in this category, but the 5264 # former has a strerror_r that returns char*, while the latter 5265 # has a strerror_r that returns `int'. 5266 # This test should segfault on the DEC system. 5267 if test "$cross_compiling" = yes; then 5268 : 5269else 5270 cat >conftest.$ac_ext <<_ACEOF 5271#line $LINENO "configure" 5272#include "confdefs.h" 5273$ac_includes_default 5274 extern char *strerror_r (); 5275#ifdef F77_DUMMY_MAIN 5276# ifdef __cplusplus 5277 extern "C" 5278# endif 5279 int F77_DUMMY_MAIN() { return 1; } 5280#endif 5281int 5282main () 5283{ 5284char buf[100]; 5285 char x = *strerror_r (0, buf, sizeof buf); 5286 exit (!isalpha (x)); 5287 ; 5288 return 0; 5289} 5290_ACEOF 5291rm -f conftest$ac_exeext 5292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5293 (eval $ac_link) 2>&5 5294 ac_status=$? 5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5296 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5298 (eval $ac_try) 2>&5 5299 ac_status=$? 5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5301 (exit $ac_status); }; }; then 5302 ac_cv_func_strerror_r_char_p=yes 5303else 5304 echo "$as_me: program exited with status $ac_status" >&5 5305echo "$as_me: failed program was:" >&5 5306cat conftest.$ac_ext >&5 5307fi 5308rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5309fi 5310 fi 5311 5312fi 5313echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5 5314echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6 5315if test $ac_cv_func_strerror_r_char_p = yes; then 5316 5317cat >>confdefs.h <<\_ACEOF 5318#define STRERROR_R_CHAR_P 1 5319_ACEOF 5320 5321fi 5322 5323 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5324echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 5325if test "${ac_cv_header_stdc+set}" = set; then 5326 echo $ECHO_N "(cached) $ECHO_C" >&6 5327else 5328 cat >conftest.$ac_ext <<_ACEOF 5329#line $LINENO "configure" 5330#include "confdefs.h" 5331#include <stdlib.h> 5332#include <stdarg.h> 5333#include <string.h> 5334#include <float.h> 5335 5336_ACEOF 5337if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5338 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5339 ac_status=$? 5340 egrep -v '^ *\+' conftest.er1 >conftest.err 5341 rm -f conftest.er1 5342 cat conftest.err >&5 5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5344 (exit $ac_status); } >/dev/null; then 5345 if test -s conftest.err; then 5346 ac_cpp_err=$ac_c_preproc_warn_flag 5347 else 5348 ac_cpp_err= 5349 fi 5350else 5351 ac_cpp_err=yes 5352fi 5353if test -z "$ac_cpp_err"; then 5354 ac_cv_header_stdc=yes 5355else 5356 echo "$as_me: failed program was:" >&5 5357 cat conftest.$ac_ext >&5 5358 ac_cv_header_stdc=no 5359fi 5360rm -f conftest.err conftest.$ac_ext 5361 5362if test $ac_cv_header_stdc = yes; then 5363 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5364 cat >conftest.$ac_ext <<_ACEOF 5365#line $LINENO "configure" 5366#include "confdefs.h" 5367#include <string.h> 5368 5369_ACEOF 5370if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5371 egrep "memchr" >/dev/null 2>&1; then 5372 : 5373else 5374 ac_cv_header_stdc=no 5375fi 5376rm -f conftest* 5377 5378fi 5379 5380if test $ac_cv_header_stdc = yes; then 5381 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5382 cat >conftest.$ac_ext <<_ACEOF 5383#line $LINENO "configure" 5384#include "confdefs.h" 5385#include <stdlib.h> 5386 5387_ACEOF 5388if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5389 egrep "free" >/dev/null 2>&1; then 5390 : 5391else 5392 ac_cv_header_stdc=no 5393fi 5394rm -f conftest* 5395 5396fi 5397 5398if test $ac_cv_header_stdc = yes; then 5399 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5400 if test "$cross_compiling" = yes; then 5401 : 5402else 5403 cat >conftest.$ac_ext <<_ACEOF 5404#line $LINENO "configure" 5405#include "confdefs.h" 5406#include <ctype.h> 5407#if ((' ' & 0x0FF) == 0x020) 5408# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5409# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5410#else 5411# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 5412 || ('j' <= (c) && (c) <= 'r') \ 5413 || ('s' <= (c) && (c) <= 'z')) 5414# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5415#endif 5416 5417#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5418int 5419main () 5420{ 5421 int i; 5422 for (i = 0; i < 256; i++) 5423 if (XOR (islower (i), ISLOWER (i)) 5424 || toupper (i) != TOUPPER (i)) 5425 exit(2); 5426 exit (0); 5427} 5428_ACEOF 5429rm -f conftest$ac_exeext 5430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5431 (eval $ac_link) 2>&5 5432 ac_status=$? 5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5434 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5436 (eval $ac_try) 2>&5 5437 ac_status=$? 5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5439 (exit $ac_status); }; }; then 5440 : 5441else 5442 echo "$as_me: program exited with status $ac_status" >&5 5443echo "$as_me: failed program was:" >&5 5444cat conftest.$ac_ext >&5 5445( exit $ac_status ) 5446ac_cv_header_stdc=no 5447fi 5448rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5449fi 5450fi 5451fi 5452echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5453echo "${ECHO_T}$ac_cv_header_stdc" >&6 5454if test $ac_cv_header_stdc = yes; then 5455 5456cat >>confdefs.h <<\_ACEOF 5457#define STDC_HEADERS 1 5458_ACEOF 5459 5460fi 5461 5462 5463 5464 5465 5466 5467for ac_header in limits.h stdlib.h bp-sym.h 5468do 5469as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5470if eval "test \"\${$as_ac_Header+set}\" = set"; then 5471 echo "$as_me:$LINENO: checking for $ac_header" >&5 5472echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5473if eval "test \"\${$as_ac_Header+set}\" = set"; then 5474 echo $ECHO_N "(cached) $ECHO_C" >&6 5475fi 5476echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5477echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5478else 5479 # Is the header compilable? 5480echo "$as_me:$LINENO: checking $ac_header usability" >&5 5481echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5482cat >conftest.$ac_ext <<_ACEOF 5483#line $LINENO "configure" 5484#include "confdefs.h" 5485$ac_includes_default 5486#include <$ac_header> 5487_ACEOF 5488rm -f conftest.$ac_objext 5489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5490 (eval $ac_compile) 2>&5 5491 ac_status=$? 5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5493 (exit $ac_status); } && 5494 { ac_try='test -s conftest.$ac_objext' 5495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5496 (eval $ac_try) 2>&5 5497 ac_status=$? 5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5499 (exit $ac_status); }; }; then 5500 ac_header_compiler=yes 5501else 5502 echo "$as_me: failed program was:" >&5 5503cat conftest.$ac_ext >&5 5504ac_header_compiler=no 5505fi 5506rm -f conftest.$ac_objext conftest.$ac_ext 5507echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5508echo "${ECHO_T}$ac_header_compiler" >&6 5509 5510# Is the header present? 5511echo "$as_me:$LINENO: checking $ac_header presence" >&5 5512echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5513cat >conftest.$ac_ext <<_ACEOF 5514#line $LINENO "configure" 5515#include "confdefs.h" 5516#include <$ac_header> 5517_ACEOF 5518if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5520 ac_status=$? 5521 egrep -v '^ *\+' conftest.er1 >conftest.err 5522 rm -f conftest.er1 5523 cat conftest.err >&5 5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5525 (exit $ac_status); } >/dev/null; then 5526 if test -s conftest.err; then 5527 ac_cpp_err=$ac_c_preproc_warn_flag 5528 else 5529 ac_cpp_err= 5530 fi 5531else 5532 ac_cpp_err=yes 5533fi 5534if test -z "$ac_cpp_err"; then 5535 ac_header_preproc=yes 5536else 5537 echo "$as_me: failed program was:" >&5 5538 cat conftest.$ac_ext >&5 5539 ac_header_preproc=no 5540fi 5541rm -f conftest.err conftest.$ac_ext 5542echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5543echo "${ECHO_T}$ac_header_preproc" >&6 5544 5545# So? What about this header? 5546case $ac_header_compiler:$ac_header_preproc in 5547 yes:no ) 5548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5549echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5551echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 5552 no:yes ) 5553 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5554echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5555 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5556echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5558echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 5559esac 5560echo "$as_me:$LINENO: checking for $ac_header" >&5 5561echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5562if eval "test \"\${$as_ac_Header+set}\" = set"; then 5563 echo $ECHO_N "(cached) $ECHO_C" >&6 5564else 5565 eval "$as_ac_Header=$ac_header_preproc" 5566fi 5567echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5568echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5569 5570fi 5571if test `eval echo '${'$as_ac_Header'}'` = yes; then 5572 cat >>confdefs.h <<_ACEOF 5573#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5574_ACEOF 5575 5576fi 5577 5578done 5579 5580 5581 5582 5583 5584for ac_func in isascii iswprint 5585do 5586as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5587echo "$as_me:$LINENO: checking for $ac_func" >&5 5588echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5589if eval "test \"\${$as_ac_var+set}\" = set"; then 5590 echo $ECHO_N "(cached) $ECHO_C" >&6 5591else 5592 cat >conftest.$ac_ext <<_ACEOF 5593#line $LINENO "configure" 5594#include "confdefs.h" 5595/* System header to define __stub macros and hopefully few prototypes, 5596 which can conflict with char $ac_func (); below. */ 5597#include <assert.h> 5598/* Override any gcc2 internal prototype to avoid an error. */ 5599#ifdef __cplusplus 5600extern "C" 5601#endif 5602/* We use char because int might match the return type of a gcc2 5603 builtin and then its argument prototype would still apply. */ 5604char $ac_func (); 5605char (*f) (); 5606 5607#ifdef F77_DUMMY_MAIN 5608# ifdef __cplusplus 5609 extern "C" 5610# endif 5611 int F77_DUMMY_MAIN() { return 1; } 5612#endif 5613int 5614main () 5615{ 5616/* The GNU C library defines this for functions which it implements 5617 to always fail with ENOSYS. Some functions are actually named 5618 something starting with __ and the normal name is an alias. */ 5619#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5620choke me 5621#else 5622f = $ac_func; 5623#endif 5624 5625 ; 5626 return 0; 5627} 5628_ACEOF 5629rm -f conftest.$ac_objext conftest$ac_exeext 5630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5631 (eval $ac_link) 2>&5 5632 ac_status=$? 5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5634 (exit $ac_status); } && 5635 { ac_try='test -s conftest$ac_exeext' 5636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5637 (eval $ac_try) 2>&5 5638 ac_status=$? 5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5640 (exit $ac_status); }; }; then 5641 eval "$as_ac_var=yes" 5642else 5643 echo "$as_me: failed program was:" >&5 5644cat conftest.$ac_ext >&5 5645eval "$as_ac_var=no" 5646fi 5647rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5648fi 5649echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5650echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5651if test `eval echo '${'$as_ac_var'}'` = yes; then 5652 cat >>confdefs.h <<_ACEOF 5653#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5654_ACEOF 5655 5656fi 5657done 5658 5659 5660 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5 5661echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6 5662if test "${jm_cv_func_mbrtowc+set}" = set; then 5663 echo $ECHO_N "(cached) $ECHO_C" >&6 5664else 5665 cat >conftest.$ac_ext <<_ACEOF 5666#line $LINENO "configure" 5667#include "confdefs.h" 5668#include <wchar.h> 5669#ifdef F77_DUMMY_MAIN 5670# ifdef __cplusplus 5671 extern "C" 5672# endif 5673 int F77_DUMMY_MAIN() { return 1; } 5674#endif 5675int 5676main () 5677{ 5678mbstate_t state; return ! (sizeof state && mbrtowc); 5679 ; 5680 return 0; 5681} 5682_ACEOF 5683rm -f conftest.$ac_objext conftest$ac_exeext 5684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5685 (eval $ac_link) 2>&5 5686 ac_status=$? 5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5688 (exit $ac_status); } && 5689 { ac_try='test -s conftest$ac_exeext' 5690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5691 (eval $ac_try) 2>&5 5692 ac_status=$? 5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5694 (exit $ac_status); }; }; then 5695 jm_cv_func_mbrtowc=yes 5696else 5697 echo "$as_me: failed program was:" >&5 5698cat conftest.$ac_ext >&5 5699jm_cv_func_mbrtowc=no 5700fi 5701rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5702fi 5703echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5 5704echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6 5705 if test $jm_cv_func_mbrtowc = yes; then 5706 5707cat >>confdefs.h <<\_ACEOF 5708#define HAVE_MBRTOWC 1 5709_ACEOF 5710 5711 fi 5712 5713 5714 5715 5716 5717 5718 5719for ac_header in limits.h stddef.h stdlib.h string.h wchar.h wctype.h 5720do 5721as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5722if eval "test \"\${$as_ac_Header+set}\" = set"; then 5723 echo "$as_me:$LINENO: checking for $ac_header" >&5 5724echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5725if eval "test \"\${$as_ac_Header+set}\" = set"; then 5726 echo $ECHO_N "(cached) $ECHO_C" >&6 5727fi 5728echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5729echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5730else 5731 # Is the header compilable? 5732echo "$as_me:$LINENO: checking $ac_header usability" >&5 5733echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5734cat >conftest.$ac_ext <<_ACEOF 5735#line $LINENO "configure" 5736#include "confdefs.h" 5737$ac_includes_default 5738#include <$ac_header> 5739_ACEOF 5740rm -f conftest.$ac_objext 5741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5742 (eval $ac_compile) 2>&5 5743 ac_status=$? 5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5745 (exit $ac_status); } && 5746 { ac_try='test -s conftest.$ac_objext' 5747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5748 (eval $ac_try) 2>&5 5749 ac_status=$? 5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5751 (exit $ac_status); }; }; then 5752 ac_header_compiler=yes 5753else 5754 echo "$as_me: failed program was:" >&5 5755cat conftest.$ac_ext >&5 5756ac_header_compiler=no 5757fi 5758rm -f conftest.$ac_objext conftest.$ac_ext 5759echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5760echo "${ECHO_T}$ac_header_compiler" >&6 5761 5762# Is the header present? 5763echo "$as_me:$LINENO: checking $ac_header presence" >&5 5764echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5765cat >conftest.$ac_ext <<_ACEOF 5766#line $LINENO "configure" 5767#include "confdefs.h" 5768#include <$ac_header> 5769_ACEOF 5770if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5772 ac_status=$? 5773 egrep -v '^ *\+' conftest.er1 >conftest.err 5774 rm -f conftest.er1 5775 cat conftest.err >&5 5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5777 (exit $ac_status); } >/dev/null; then 5778 if test -s conftest.err; then 5779 ac_cpp_err=$ac_c_preproc_warn_flag 5780 else 5781 ac_cpp_err= 5782 fi 5783else 5784 ac_cpp_err=yes 5785fi 5786if test -z "$ac_cpp_err"; then 5787 ac_header_preproc=yes 5788else 5789 echo "$as_me: failed program was:" >&5 5790 cat conftest.$ac_ext >&5 5791 ac_header_preproc=no 5792fi 5793rm -f conftest.err conftest.$ac_ext 5794echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5795echo "${ECHO_T}$ac_header_preproc" >&6 5796 5797# So? What about this header? 5798case $ac_header_compiler:$ac_header_preproc in 5799 yes:no ) 5800 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5801echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5803echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 5804 no:yes ) 5805 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5806echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5807 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5808echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5810echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 5811esac 5812echo "$as_me:$LINENO: checking for $ac_header" >&5 5813echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5814if eval "test \"\${$as_ac_Header+set}\" = set"; then 5815 echo $ECHO_N "(cached) $ECHO_C" >&6 5816else 5817 eval "$as_ac_Header=$ac_header_preproc" 5818fi 5819echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5820echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5821 5822fi 5823if test `eval echo '${'$as_ac_Header'}'` = yes; then 5824 cat >>confdefs.h <<_ACEOF 5825#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5826_ACEOF 5827 5828fi 5829 5830done 5831 5832 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5833echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 5834if test "${ac_cv_header_stdc+set}" = set; then 5835 echo $ECHO_N "(cached) $ECHO_C" >&6 5836else 5837 cat >conftest.$ac_ext <<_ACEOF 5838#line $LINENO "configure" 5839#include "confdefs.h" 5840#include <stdlib.h> 5841#include <stdarg.h> 5842#include <string.h> 5843#include <float.h> 5844 5845_ACEOF 5846if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5848 ac_status=$? 5849 egrep -v '^ *\+' conftest.er1 >conftest.err 5850 rm -f conftest.er1 5851 cat conftest.err >&5 5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5853 (exit $ac_status); } >/dev/null; then 5854 if test -s conftest.err; then 5855 ac_cpp_err=$ac_c_preproc_warn_flag 5856 else 5857 ac_cpp_err= 5858 fi 5859else 5860 ac_cpp_err=yes 5861fi 5862if test -z "$ac_cpp_err"; then 5863 ac_cv_header_stdc=yes 5864else 5865 echo "$as_me: failed program was:" >&5 5866 cat conftest.$ac_ext >&5 5867 ac_cv_header_stdc=no 5868fi 5869rm -f conftest.err conftest.$ac_ext 5870 5871if test $ac_cv_header_stdc = yes; then 5872 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5873 cat >conftest.$ac_ext <<_ACEOF 5874#line $LINENO "configure" 5875#include "confdefs.h" 5876#include <string.h> 5877 5878_ACEOF 5879if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5880 egrep "memchr" >/dev/null 2>&1; then 5881 : 5882else 5883 ac_cv_header_stdc=no 5884fi 5885rm -f conftest* 5886 5887fi 5888 5889if test $ac_cv_header_stdc = yes; then 5890 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5891 cat >conftest.$ac_ext <<_ACEOF 5892#line $LINENO "configure" 5893#include "confdefs.h" 5894#include <stdlib.h> 5895 5896_ACEOF 5897if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5898 egrep "free" >/dev/null 2>&1; then 5899 : 5900else 5901 ac_cv_header_stdc=no 5902fi 5903rm -f conftest* 5904 5905fi 5906 5907if test $ac_cv_header_stdc = yes; then 5908 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5909 if test "$cross_compiling" = yes; then 5910 : 5911else 5912 cat >conftest.$ac_ext <<_ACEOF 5913#line $LINENO "configure" 5914#include "confdefs.h" 5915#include <ctype.h> 5916#if ((' ' & 0x0FF) == 0x020) 5917# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5918# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5919#else 5920# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 5921 || ('j' <= (c) && (c) <= 'r') \ 5922 || ('s' <= (c) && (c) <= 'z')) 5923# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5924#endif 5925 5926#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5927int 5928main () 5929{ 5930 int i; 5931 for (i = 0; i < 256; i++) 5932 if (XOR (islower (i), ISLOWER (i)) 5933 || toupper (i) != TOUPPER (i)) 5934 exit(2); 5935 exit (0); 5936} 5937_ACEOF 5938rm -f conftest$ac_exeext 5939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5940 (eval $ac_link) 2>&5 5941 ac_status=$? 5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5945 (eval $ac_try) 2>&5 5946 ac_status=$? 5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5948 (exit $ac_status); }; }; then 5949 : 5950else 5951 echo "$as_me: program exited with status $ac_status" >&5 5952echo "$as_me: failed program was:" >&5 5953cat conftest.$ac_ext >&5 5954( exit $ac_status ) 5955ac_cv_header_stdc=no 5956fi 5957rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5958fi 5959fi 5960fi 5961echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5962echo "${ECHO_T}$ac_cv_header_stdc" >&6 5963if test $ac_cv_header_stdc = yes; then 5964 5965cat >>confdefs.h <<\_ACEOF 5966#define STDC_HEADERS 1 5967_ACEOF 5968 5969fi 5970 5971 5972 echo "$as_me:$LINENO: checking whether backslash-a works in strings" >&5 5973echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6 5974if test "${ac_cv_c_backslash_a+set}" = set; then 5975 echo $ECHO_N "(cached) $ECHO_C" >&6 5976else 5977 cat >conftest.$ac_ext <<_ACEOF 5978#line $LINENO "configure" 5979#include "confdefs.h" 5980 5981#ifdef F77_DUMMY_MAIN 5982# ifdef __cplusplus 5983 extern "C" 5984# endif 5985 int F77_DUMMY_MAIN() { return 1; } 5986#endif 5987int 5988main () 5989{ 5990 5991#if '\a' == 'a' 5992 syntax error; 5993#endif 5994 char buf['\a' == 'a' ? -1 : 1]; 5995 buf[0] = '\a'; 5996 return buf[0] != "\a"[0]; 5997 5998 ; 5999 return 0; 6000} 6001_ACEOF 6002rm -f conftest.$ac_objext 6003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6004 (eval $ac_compile) 2>&5 6005 ac_status=$? 6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6007 (exit $ac_status); } && 6008 { ac_try='test -s conftest.$ac_objext' 6009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6010 (eval $ac_try) 2>&5 6011 ac_status=$? 6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6013 (exit $ac_status); }; }; then 6014 ac_cv_c_backslash_a=yes 6015else 6016 echo "$as_me: failed program was:" >&5 6017cat conftest.$ac_ext >&5 6018ac_cv_c_backslash_a=no 6019fi 6020rm -f conftest.$ac_objext conftest.$ac_ext 6021fi 6022echo "$as_me:$LINENO: result: $ac_cv_c_backslash_a" >&5 6023echo "${ECHO_T}$ac_cv_c_backslash_a" >&6 6024 if test $ac_cv_c_backslash_a = yes; then 6025 6026cat >>confdefs.h <<\_ACEOF 6027#define HAVE_C_BACKSLASH_A 1 6028_ACEOF 6029 6030 fi 6031 6032 6033 6034for ac_header in stdlib.h 6035do 6036as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6037if eval "test \"\${$as_ac_Header+set}\" = set"; then 6038 echo "$as_me:$LINENO: checking for $ac_header" >&5 6039echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6040if eval "test \"\${$as_ac_Header+set}\" = set"; then 6041 echo $ECHO_N "(cached) $ECHO_C" >&6 6042fi 6043echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6044echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6045else 6046 # Is the header compilable? 6047echo "$as_me:$LINENO: checking $ac_header usability" >&5 6048echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6049cat >conftest.$ac_ext <<_ACEOF 6050#line $LINENO "configure" 6051#include "confdefs.h" 6052$ac_includes_default 6053#include <$ac_header> 6054_ACEOF 6055rm -f conftest.$ac_objext 6056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6057 (eval $ac_compile) 2>&5 6058 ac_status=$? 6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6060 (exit $ac_status); } && 6061 { ac_try='test -s conftest.$ac_objext' 6062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6063 (eval $ac_try) 2>&5 6064 ac_status=$? 6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6066 (exit $ac_status); }; }; then 6067 ac_header_compiler=yes 6068else 6069 echo "$as_me: failed program was:" >&5 6070cat conftest.$ac_ext >&5 6071ac_header_compiler=no 6072fi 6073rm -f conftest.$ac_objext conftest.$ac_ext 6074echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6075echo "${ECHO_T}$ac_header_compiler" >&6 6076 6077# Is the header present? 6078echo "$as_me:$LINENO: checking $ac_header presence" >&5 6079echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6080cat >conftest.$ac_ext <<_ACEOF 6081#line $LINENO "configure" 6082#include "confdefs.h" 6083#include <$ac_header> 6084_ACEOF 6085if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6087 ac_status=$? 6088 egrep -v '^ *\+' conftest.er1 >conftest.err 6089 rm -f conftest.er1 6090 cat conftest.err >&5 6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6092 (exit $ac_status); } >/dev/null; then 6093 if test -s conftest.err; then 6094 ac_cpp_err=$ac_c_preproc_warn_flag 6095 else 6096 ac_cpp_err= 6097 fi 6098else 6099 ac_cpp_err=yes 6100fi 6101if test -z "$ac_cpp_err"; then 6102 ac_header_preproc=yes 6103else 6104 echo "$as_me: failed program was:" >&5 6105 cat conftest.$ac_ext >&5 6106 ac_header_preproc=no 6107fi 6108rm -f conftest.err conftest.$ac_ext 6109echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6110echo "${ECHO_T}$ac_header_preproc" >&6 6111 6112# So? What about this header? 6113case $ac_header_compiler:$ac_header_preproc in 6114 yes:no ) 6115 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6116echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6118echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 6119 no:yes ) 6120 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6121echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6122 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6123echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6125echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 6126esac 6127echo "$as_me:$LINENO: checking for $ac_header" >&5 6128echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6129if eval "test \"\${$as_ac_Header+set}\" = set"; then 6130 echo $ECHO_N "(cached) $ECHO_C" >&6 6131else 6132 eval "$as_ac_Header=$ac_header_preproc" 6133fi 6134echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6135echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6136 6137fi 6138if test `eval echo '${'$as_ac_Header'}'` = yes; then 6139 cat >>confdefs.h <<_ACEOF 6140#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6141_ACEOF 6142 6143fi 6144 6145done 6146 6147 6148 echo "$as_me:$LINENO: checking for mbstate_t" >&5 6149echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6 6150if test "${ac_cv_type_mbstate_t+set}" = set; then 6151 echo $ECHO_N "(cached) $ECHO_C" >&6 6152else 6153 cat >conftest.$ac_ext <<_ACEOF 6154#line $LINENO "configure" 6155#include "confdefs.h" 6156 6157#if HAVE_STDLIB_H 6158# include <stdlib.h> 6159#endif 6160#include <wchar.h> 6161#ifdef F77_DUMMY_MAIN 6162# ifdef __cplusplus 6163 extern "C" 6164# endif 6165 int F77_DUMMY_MAIN() { return 1; } 6166#endif 6167int 6168main () 6169{ 6170mbstate_t x; return sizeof x; 6171 ; 6172 return 0; 6173} 6174_ACEOF 6175rm -f conftest.$ac_objext 6176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6177 (eval $ac_compile) 2>&5 6178 ac_status=$? 6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6180 (exit $ac_status); } && 6181 { ac_try='test -s conftest.$ac_objext' 6182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6183 (eval $ac_try) 2>&5 6184 ac_status=$? 6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6186 (exit $ac_status); }; }; then 6187 ac_cv_type_mbstate_t=yes 6188else 6189 echo "$as_me: failed program was:" >&5 6190cat conftest.$ac_ext >&5 6191ac_cv_type_mbstate_t=no 6192fi 6193rm -f conftest.$ac_objext conftest.$ac_ext 6194fi 6195echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 6196echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6 6197 if test $ac_cv_type_mbstate_t = yes; then 6198 6199cat >>confdefs.h <<\_ACEOF 6200#define HAVE_MBSTATE_T 1 6201_ACEOF 6202 6203 else 6204 6205cat >>confdefs.h <<\_ACEOF 6206#define mbstate_t int 6207_ACEOF 6208 6209 fi 6210 echo "$as_me:$LINENO: checking for function prototypes" >&5 6211echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 6212if test "$ac_cv_prog_cc_stdc" != no; then 6213 echo "$as_me:$LINENO: result: yes" >&5 6214echo "${ECHO_T}yes" >&6 6215 6216cat >>confdefs.h <<\_ACEOF 6217#define PROTOTYPES 1 6218_ACEOF 6219 6220 6221cat >>confdefs.h <<\_ACEOF 6222#define __PROTOTYPES 1 6223_ACEOF 6224 6225else 6226 echo "$as_me:$LINENO: result: no" >&5 6227echo "${ECHO_T}no" >&6 6228fi 6229 6230 6231 6232echo "$as_me:$LINENO: checking whether free is declared" >&5 6233echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6 6234if test "${ac_cv_have_decl_free+set}" = set; then 6235 echo $ECHO_N "(cached) $ECHO_C" >&6 6236else 6237 cat >conftest.$ac_ext <<_ACEOF 6238#line $LINENO "configure" 6239#include "confdefs.h" 6240$ac_includes_default 6241#ifdef F77_DUMMY_MAIN 6242# ifdef __cplusplus 6243 extern "C" 6244# endif 6245 int F77_DUMMY_MAIN() { return 1; } 6246#endif 6247int 6248main () 6249{ 6250#ifndef free 6251 char *p = (char *) free; 6252#endif 6253 6254 ; 6255 return 0; 6256} 6257_ACEOF 6258rm -f conftest.$ac_objext 6259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6260 (eval $ac_compile) 2>&5 6261 ac_status=$? 6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6263 (exit $ac_status); } && 6264 { ac_try='test -s conftest.$ac_objext' 6265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6266 (eval $ac_try) 2>&5 6267 ac_status=$? 6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6269 (exit $ac_status); }; }; then 6270 ac_cv_have_decl_free=yes 6271else 6272 echo "$as_me: failed program was:" >&5 6273cat conftest.$ac_ext >&5 6274ac_cv_have_decl_free=no 6275fi 6276rm -f conftest.$ac_objext conftest.$ac_ext 6277fi 6278echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5 6279echo "${ECHO_T}$ac_cv_have_decl_free" >&6 6280if test $ac_cv_have_decl_free = yes; then 6281 6282cat >>confdefs.h <<_ACEOF 6283#define HAVE_DECL_FREE 1 6284_ACEOF 6285 6286 6287else 6288 cat >>confdefs.h <<_ACEOF 6289#define HAVE_DECL_FREE 0 6290_ACEOF 6291 6292 6293fi 6294echo "$as_me:$LINENO: checking whether getenv is declared" >&5 6295echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6 6296if test "${ac_cv_have_decl_getenv+set}" = set; then 6297 echo $ECHO_N "(cached) $ECHO_C" >&6 6298else 6299 cat >conftest.$ac_ext <<_ACEOF 6300#line $LINENO "configure" 6301#include "confdefs.h" 6302$ac_includes_default 6303#ifdef F77_DUMMY_MAIN 6304# ifdef __cplusplus 6305 extern "C" 6306# endif 6307 int F77_DUMMY_MAIN() { return 1; } 6308#endif 6309int 6310main () 6311{ 6312#ifndef getenv 6313 char *p = (char *) getenv; 6314#endif 6315 6316 ; 6317 return 0; 6318} 6319_ACEOF 6320rm -f conftest.$ac_objext 6321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6322 (eval $ac_compile) 2>&5 6323 ac_status=$? 6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6325 (exit $ac_status); } && 6326 { ac_try='test -s conftest.$ac_objext' 6327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6328 (eval $ac_try) 2>&5 6329 ac_status=$? 6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6331 (exit $ac_status); }; }; then 6332 ac_cv_have_decl_getenv=yes 6333else 6334 echo "$as_me: failed program was:" >&5 6335cat conftest.$ac_ext >&5 6336ac_cv_have_decl_getenv=no 6337fi 6338rm -f conftest.$ac_objext conftest.$ac_ext 6339fi 6340echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5 6341echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6 6342if test $ac_cv_have_decl_getenv = yes; then 6343 6344cat >>confdefs.h <<_ACEOF 6345#define HAVE_DECL_GETENV 1 6346_ACEOF 6347 6348 6349else 6350 cat >>confdefs.h <<_ACEOF 6351#define HAVE_DECL_GETENV 0 6352_ACEOF 6353 6354 6355fi 6356echo "$as_me:$LINENO: checking whether malloc is declared" >&5 6357echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6 6358if test "${ac_cv_have_decl_malloc+set}" = set; then 6359 echo $ECHO_N "(cached) $ECHO_C" >&6 6360else 6361 cat >conftest.$ac_ext <<_ACEOF 6362#line $LINENO "configure" 6363#include "confdefs.h" 6364$ac_includes_default 6365#ifdef F77_DUMMY_MAIN 6366# ifdef __cplusplus 6367 extern "C" 6368# endif 6369 int F77_DUMMY_MAIN() { return 1; } 6370#endif 6371int 6372main () 6373{ 6374#ifndef malloc 6375 char *p = (char *) malloc; 6376#endif 6377 6378 ; 6379 return 0; 6380} 6381_ACEOF 6382rm -f conftest.$ac_objext 6383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6384 (eval $ac_compile) 2>&5 6385 ac_status=$? 6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6387 (exit $ac_status); } && 6388 { ac_try='test -s conftest.$ac_objext' 6389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6390 (eval $ac_try) 2>&5 6391 ac_status=$? 6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6393 (exit $ac_status); }; }; then 6394 ac_cv_have_decl_malloc=yes 6395else 6396 echo "$as_me: failed program was:" >&5 6397cat conftest.$ac_ext >&5 6398ac_cv_have_decl_malloc=no 6399fi 6400rm -f conftest.$ac_objext conftest.$ac_ext 6401fi 6402echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5 6403echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6 6404if test $ac_cv_have_decl_malloc = yes; then 6405 6406cat >>confdefs.h <<_ACEOF 6407#define HAVE_DECL_MALLOC 1 6408_ACEOF 6409 6410 6411else 6412 cat >>confdefs.h <<_ACEOF 6413#define HAVE_DECL_MALLOC 0 6414_ACEOF 6415 6416 6417fi 6418echo "$as_me:$LINENO: checking whether mktemp is declared" >&5 6419echo $ECHO_N "checking whether mktemp is declared... $ECHO_C" >&6 6420if test "${ac_cv_have_decl_mktemp+set}" = set; then 6421 echo $ECHO_N "(cached) $ECHO_C" >&6 6422else 6423 cat >conftest.$ac_ext <<_ACEOF 6424#line $LINENO "configure" 6425#include "confdefs.h" 6426$ac_includes_default 6427#ifdef F77_DUMMY_MAIN 6428# ifdef __cplusplus 6429 extern "C" 6430# endif 6431 int F77_DUMMY_MAIN() { return 1; } 6432#endif 6433int 6434main () 6435{ 6436#ifndef mktemp 6437 char *p = (char *) mktemp; 6438#endif 6439 6440 ; 6441 return 0; 6442} 6443_ACEOF 6444rm -f conftest.$ac_objext 6445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6446 (eval $ac_compile) 2>&5 6447 ac_status=$? 6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6449 (exit $ac_status); } && 6450 { ac_try='test -s conftest.$ac_objext' 6451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6452 (eval $ac_try) 2>&5 6453 ac_status=$? 6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6455 (exit $ac_status); }; }; then 6456 ac_cv_have_decl_mktemp=yes 6457else 6458 echo "$as_me: failed program was:" >&5 6459cat conftest.$ac_ext >&5 6460ac_cv_have_decl_mktemp=no 6461fi 6462rm -f conftest.$ac_objext conftest.$ac_ext 6463fi 6464echo "$as_me:$LINENO: result: $ac_cv_have_decl_mktemp" >&5 6465echo "${ECHO_T}$ac_cv_have_decl_mktemp" >&6 6466if test $ac_cv_have_decl_mktemp = yes; then 6467 6468cat >>confdefs.h <<_ACEOF 6469#define HAVE_DECL_MKTEMP 1 6470_ACEOF 6471 6472 6473else 6474 cat >>confdefs.h <<_ACEOF 6475#define HAVE_DECL_MKTEMP 0 6476_ACEOF 6477 6478 6479fi 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494for ac_func in _doprintf geteuid getuid isascii memcmp mktemp \ 6495 pathconf raise sigaction sigprocmask sigsetmask strerror 6496do 6497as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6498echo "$as_me:$LINENO: checking for $ac_func" >&5 6499echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6500if eval "test \"\${$as_ac_var+set}\" = set"; then 6501 echo $ECHO_N "(cached) $ECHO_C" >&6 6502else 6503 cat >conftest.$ac_ext <<_ACEOF 6504#line $LINENO "configure" 6505#include "confdefs.h" 6506/* System header to define __stub macros and hopefully few prototypes, 6507 which can conflict with char $ac_func (); below. */ 6508#include <assert.h> 6509/* Override any gcc2 internal prototype to avoid an error. */ 6510#ifdef __cplusplus 6511extern "C" 6512#endif 6513/* We use char because int might match the return type of a gcc2 6514 builtin and then its argument prototype would still apply. */ 6515char $ac_func (); 6516char (*f) (); 6517 6518#ifdef F77_DUMMY_MAIN 6519# ifdef __cplusplus 6520 extern "C" 6521# endif 6522 int F77_DUMMY_MAIN() { return 1; } 6523#endif 6524int 6525main () 6526{ 6527/* The GNU C library defines this for functions which it implements 6528 to always fail with ENOSYS. Some functions are actually named 6529 something starting with __ and the normal name is an alias. */ 6530#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6531choke me 6532#else 6533f = $ac_func; 6534#endif 6535 6536 ; 6537 return 0; 6538} 6539_ACEOF 6540rm -f conftest.$ac_objext conftest$ac_exeext 6541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6542 (eval $ac_link) 2>&5 6543 ac_status=$? 6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6545 (exit $ac_status); } && 6546 { ac_try='test -s conftest$ac_exeext' 6547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6548 (eval $ac_try) 2>&5 6549 ac_status=$? 6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6551 (exit $ac_status); }; }; then 6552 eval "$as_ac_var=yes" 6553else 6554 echo "$as_me: failed program was:" >&5 6555cat conftest.$ac_ext >&5 6556eval "$as_ac_var=no" 6557fi 6558rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6559fi 6560echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6561echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6562if test `eval echo '${'$as_ac_var'}'` = yes; then 6563 cat >>confdefs.h <<_ACEOF 6564#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6565_ACEOF 6566 6567fi 6568done 6569 6570 6571 6572 6573 6574 6575for ac_func in memchr mkdir rename rmdir strncasecmp 6576do 6577as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6578echo "$as_me:$LINENO: checking for $ac_func" >&5 6579echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6580if eval "test \"\${$as_ac_var+set}\" = set"; then 6581 echo $ECHO_N "(cached) $ECHO_C" >&6 6582else 6583 cat >conftest.$ac_ext <<_ACEOF 6584#line $LINENO "configure" 6585#include "confdefs.h" 6586/* System header to define __stub macros and hopefully few prototypes, 6587 which can conflict with char $ac_func (); below. */ 6588#include <assert.h> 6589/* Override any gcc2 internal prototype to avoid an error. */ 6590#ifdef __cplusplus 6591extern "C" 6592#endif 6593/* We use char because int might match the return type of a gcc2 6594 builtin and then its argument prototype would still apply. */ 6595char $ac_func (); 6596char (*f) (); 6597 6598#ifdef F77_DUMMY_MAIN 6599# ifdef __cplusplus 6600 extern "C" 6601# endif 6602 int F77_DUMMY_MAIN() { return 1; } 6603#endif 6604int 6605main () 6606{ 6607/* The GNU C library defines this for functions which it implements 6608 to always fail with ENOSYS. Some functions are actually named 6609 something starting with __ and the normal name is an alias. */ 6610#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6611choke me 6612#else 6613f = $ac_func; 6614#endif 6615 6616 ; 6617 return 0; 6618} 6619_ACEOF 6620rm -f conftest.$ac_objext conftest$ac_exeext 6621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6622 (eval $ac_link) 2>&5 6623 ac_status=$? 6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6625 (exit $ac_status); } && 6626 { ac_try='test -s conftest$ac_exeext' 6627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6628 (eval $ac_try) 2>&5 6629 ac_status=$? 6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6631 (exit $ac_status); }; }; then 6632 eval "$as_ac_var=yes" 6633else 6634 echo "$as_me: failed program was:" >&5 6635cat conftest.$ac_ext >&5 6636eval "$as_ac_var=no" 6637fi 6638rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6639fi 6640echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6641echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6642if test `eval echo '${'$as_ac_var'}'` = yes; then 6643 cat >>confdefs.h <<_ACEOF 6644#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6645_ACEOF 6646 6647else 6648 LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 6649fi 6650done 6651 6652 6653echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 6654echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 6655if test "${ac_cv_sys_largefile_source+set}" = set; then 6656 echo $ECHO_N "(cached) $ECHO_C" >&6 6657else 6658 while :; do 6659 ac_cv_sys_largefile_source=no 6660 cat >conftest.$ac_ext <<_ACEOF 6661#line $LINENO "configure" 6662#include "confdefs.h" 6663#include <stdio.h> 6664#ifdef F77_DUMMY_MAIN 6665# ifdef __cplusplus 6666 extern "C" 6667# endif 6668 int F77_DUMMY_MAIN() { return 1; } 6669#endif 6670int 6671main () 6672{ 6673return !fseeko; 6674 ; 6675 return 0; 6676} 6677_ACEOF 6678rm -f conftest.$ac_objext 6679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6680 (eval $ac_compile) 2>&5 6681 ac_status=$? 6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6683 (exit $ac_status); } && 6684 { ac_try='test -s conftest.$ac_objext' 6685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6686 (eval $ac_try) 2>&5 6687 ac_status=$? 6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6689 (exit $ac_status); }; }; then 6690 break 6691else 6692 echo "$as_me: failed program was:" >&5 6693cat conftest.$ac_ext >&5 6694fi 6695rm -f conftest.$ac_objext conftest.$ac_ext 6696 cat >conftest.$ac_ext <<_ACEOF 6697#line $LINENO "configure" 6698#include "confdefs.h" 6699#define _LARGEFILE_SOURCE 1 6700#include <stdio.h> 6701#ifdef F77_DUMMY_MAIN 6702# ifdef __cplusplus 6703 extern "C" 6704# endif 6705 int F77_DUMMY_MAIN() { return 1; } 6706#endif 6707int 6708main () 6709{ 6710return !fseeko; 6711 ; 6712 return 0; 6713} 6714_ACEOF 6715rm -f conftest.$ac_objext 6716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6717 (eval $ac_compile) 2>&5 6718 ac_status=$? 6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6720 (exit $ac_status); } && 6721 { ac_try='test -s conftest.$ac_objext' 6722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6723 (eval $ac_try) 2>&5 6724 ac_status=$? 6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6726 (exit $ac_status); }; }; then 6727 ac_cv_sys_largefile_source=1; break 6728else 6729 echo "$as_me: failed program was:" >&5 6730cat conftest.$ac_ext >&5 6731fi 6732rm -f conftest.$ac_objext conftest.$ac_ext 6733 break 6734done 6735fi 6736echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 6737echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 6738if test "$ac_cv_sys_largefile_source" != no; then 6739 6740cat >>confdefs.h <<_ACEOF 6741#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 6742_ACEOF 6743 6744fi 6745rm -f conftest* 6746 6747# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 6748# in glibc 2.1.3, but that breaks too many other things. 6749# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 6750echo "$as_me:$LINENO: checking for fseeko" >&5 6751echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 6752if test "${ac_cv_func_fseeko+set}" = set; then 6753 echo $ECHO_N "(cached) $ECHO_C" >&6 6754else 6755 cat >conftest.$ac_ext <<_ACEOF 6756#line $LINENO "configure" 6757#include "confdefs.h" 6758#include <stdio.h> 6759#ifdef F77_DUMMY_MAIN 6760# ifdef __cplusplus 6761 extern "C" 6762# endif 6763 int F77_DUMMY_MAIN() { return 1; } 6764#endif 6765int 6766main () 6767{ 6768return fseeko && fseeko (stdin, 0, 0); 6769 ; 6770 return 0; 6771} 6772_ACEOF 6773rm -f conftest.$ac_objext conftest$ac_exeext 6774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6775 (eval $ac_link) 2>&5 6776 ac_status=$? 6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6778 (exit $ac_status); } && 6779 { ac_try='test -s conftest$ac_exeext' 6780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6781 (eval $ac_try) 2>&5 6782 ac_status=$? 6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6784 (exit $ac_status); }; }; then 6785 ac_cv_func_fseeko=yes 6786else 6787 echo "$as_me: failed program was:" >&5 6788cat conftest.$ac_ext >&5 6789ac_cv_func_fseeko=no 6790fi 6791rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6792fi 6793echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 6794echo "${ECHO_T}$ac_cv_func_fseeko" >&6 6795if test $ac_cv_func_fseeko = yes; then 6796 6797cat >>confdefs.h <<\_ACEOF 6798#define HAVE_FSEEKO 1 6799_ACEOF 6800 6801fi 6802 6803 6804 6805cat >>confdefs.h <<\_ACEOF 6806#define HAVE_DONE_WORKING_MALLOC_CHECK 1 6807_ACEOF 6808 6809 6810 echo "$as_me:$LINENO: checking whether malloc(0) returns a non-NULL pointer" >&5 6811echo $ECHO_N "checking whether malloc(0) returns a non-NULL pointer... $ECHO_C" >&6 6812if test "${jm_cv_func_working_malloc+set}" = set; then 6813 echo $ECHO_N "(cached) $ECHO_C" >&6 6814else 6815 if test "$cross_compiling" = yes; then 6816 jm_cv_func_working_malloc=no 6817else 6818 cat >conftest.$ac_ext <<_ACEOF 6819#line $LINENO "configure" 6820#include "confdefs.h" 6821 6822 char *malloc (); 6823 int 6824 main () 6825 { 6826 exit (malloc (0) ? 0 : 1); 6827 } 6828 6829_ACEOF 6830rm -f conftest$ac_exeext 6831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6832 (eval $ac_link) 2>&5 6833 ac_status=$? 6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6837 (eval $ac_try) 2>&5 6838 ac_status=$? 6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6840 (exit $ac_status); }; }; then 6841 jm_cv_func_working_malloc=yes 6842else 6843 echo "$as_me: program exited with status $ac_status" >&5 6844echo "$as_me: failed program was:" >&5 6845cat conftest.$ac_ext >&5 6846( exit $ac_status ) 6847jm_cv_func_working_malloc=no 6848fi 6849rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6850fi 6851 6852fi 6853echo "$as_me:$LINENO: result: $jm_cv_func_working_malloc" >&5 6854echo "${ECHO_T}$jm_cv_func_working_malloc" >&6 6855 if test $jm_cv_func_working_malloc = no; then 6856 LIBOBJS="$LIBOBJS malloc.$ac_objext" 6857 6858cat >>confdefs.h <<\_ACEOF 6859#define malloc rpl_malloc 6860_ACEOF 6861 6862 fi 6863 6864 6865 6866cat >>confdefs.h <<\_ACEOF 6867#define HAVE_DONE_WORKING_REALLOC_CHECK 1 6868_ACEOF 6869 6870 6871 echo "$as_me:$LINENO: checking whether realloc(0,0) returns a non-NULL pointer" >&5 6872echo $ECHO_N "checking whether realloc(0,0) returns a non-NULL pointer... $ECHO_C" >&6 6873if test "${jm_cv_func_working_realloc+set}" = set; then 6874 echo $ECHO_N "(cached) $ECHO_C" >&6 6875else 6876 if test "$cross_compiling" = yes; then 6877 jm_cv_func_working_realloc=no 6878else 6879 cat >conftest.$ac_ext <<_ACEOF 6880#line $LINENO "configure" 6881#include "confdefs.h" 6882 6883 char *realloc (); 6884 int 6885 main () 6886 { 6887 exit (realloc (0, 0) ? 0 : 1); 6888 } 6889 6890_ACEOF 6891rm -f conftest$ac_exeext 6892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6893 (eval $ac_link) 2>&5 6894 ac_status=$? 6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6898 (eval $ac_try) 2>&5 6899 ac_status=$? 6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6901 (exit $ac_status); }; }; then 6902 jm_cv_func_working_realloc=yes 6903else 6904 echo "$as_me: program exited with status $ac_status" >&5 6905echo "$as_me: failed program was:" >&5 6906cat conftest.$ac_ext >&5 6907( exit $ac_status ) 6908jm_cv_func_working_realloc=no 6909fi 6910rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6911fi 6912 6913fi 6914echo "$as_me:$LINENO: result: $jm_cv_func_working_realloc" >&5 6915echo "${ECHO_T}$jm_cv_func_working_realloc" >&6 6916 if test $jm_cv_func_working_realloc = no; then 6917 LIBOBJS="$LIBOBJS realloc.$ac_objext" 6918 6919cat >>confdefs.h <<\_ACEOF 6920#define realloc rpl_realloc 6921_ACEOF 6922 6923 fi 6924 6925echo "$as_me:$LINENO: checking whether closedir returns void" >&5 6926echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6 6927if test "${ac_cv_func_closedir_void+set}" = set; then 6928 echo $ECHO_N "(cached) $ECHO_C" >&6 6929else 6930 if test "$cross_compiling" = yes; then 6931 ac_cv_func_closedir_void=yes 6932else 6933 cat >conftest.$ac_ext <<_ACEOF 6934#line $LINENO "configure" 6935#include "confdefs.h" 6936$ac_includes_default 6937#include <$ac_header_dirent> 6938#ifndef __cplusplus 6939int closedir (); 6940#endif 6941 6942#ifdef F77_DUMMY_MAIN 6943# ifdef __cplusplus 6944 extern "C" 6945# endif 6946 int F77_DUMMY_MAIN() { return 1; } 6947#endif 6948int 6949main () 6950{ 6951exit (closedir (opendir (".")) != 0); 6952 ; 6953 return 0; 6954} 6955_ACEOF 6956rm -f conftest$ac_exeext 6957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6958 (eval $ac_link) 2>&5 6959 ac_status=$? 6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6961 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6963 (eval $ac_try) 2>&5 6964 ac_status=$? 6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6966 (exit $ac_status); }; }; then 6967 ac_cv_func_closedir_void=no 6968else 6969 echo "$as_me: program exited with status $ac_status" >&5 6970echo "$as_me: failed program was:" >&5 6971cat conftest.$ac_ext >&5 6972( exit $ac_status ) 6973ac_cv_func_closedir_void=yes 6974fi 6975rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6976fi 6977fi 6978echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 6979echo "${ECHO_T}$ac_cv_func_closedir_void" >&6 6980if test $ac_cv_func_closedir_void = yes; then 6981 6982cat >>confdefs.h <<\_ACEOF 6983#define CLOSEDIR_VOID 1 6984_ACEOF 6985 6986fi 6987 6988 6989 6990for ac_header in fcntl.h unistd.h 6991do 6992as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6993if eval "test \"\${$as_ac_Header+set}\" = set"; then 6994 echo "$as_me:$LINENO: checking for $ac_header" >&5 6995echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6996if eval "test \"\${$as_ac_Header+set}\" = set"; then 6997 echo $ECHO_N "(cached) $ECHO_C" >&6 6998fi 6999echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7000echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7001else 7002 # Is the header compilable? 7003echo "$as_me:$LINENO: checking $ac_header usability" >&5 7004echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 7005cat >conftest.$ac_ext <<_ACEOF 7006#line $LINENO "configure" 7007#include "confdefs.h" 7008$ac_includes_default 7009#include <$ac_header> 7010_ACEOF 7011rm -f conftest.$ac_objext 7012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7013 (eval $ac_compile) 2>&5 7014 ac_status=$? 7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7016 (exit $ac_status); } && 7017 { ac_try='test -s conftest.$ac_objext' 7018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7019 (eval $ac_try) 2>&5 7020 ac_status=$? 7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7022 (exit $ac_status); }; }; then 7023 ac_header_compiler=yes 7024else 7025 echo "$as_me: failed program was:" >&5 7026cat conftest.$ac_ext >&5 7027ac_header_compiler=no 7028fi 7029rm -f conftest.$ac_objext conftest.$ac_ext 7030echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7031echo "${ECHO_T}$ac_header_compiler" >&6 7032 7033# Is the header present? 7034echo "$as_me:$LINENO: checking $ac_header presence" >&5 7035echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 7036cat >conftest.$ac_ext <<_ACEOF 7037#line $LINENO "configure" 7038#include "confdefs.h" 7039#include <$ac_header> 7040_ACEOF 7041if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7043 ac_status=$? 7044 egrep -v '^ *\+' conftest.er1 >conftest.err 7045 rm -f conftest.er1 7046 cat conftest.err >&5 7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7048 (exit $ac_status); } >/dev/null; then 7049 if test -s conftest.err; then 7050 ac_cpp_err=$ac_c_preproc_warn_flag 7051 else 7052 ac_cpp_err= 7053 fi 7054else 7055 ac_cpp_err=yes 7056fi 7057if test -z "$ac_cpp_err"; then 7058 ac_header_preproc=yes 7059else 7060 echo "$as_me: failed program was:" >&5 7061 cat conftest.$ac_ext >&5 7062 ac_header_preproc=no 7063fi 7064rm -f conftest.err conftest.$ac_ext 7065echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7066echo "${ECHO_T}$ac_header_preproc" >&6 7067 7068# So? What about this header? 7069case $ac_header_compiler:$ac_header_preproc in 7070 yes:no ) 7071 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7072echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7074echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 7075 no:yes ) 7076 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7077echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7078 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7079echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7081echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 7082esac 7083echo "$as_me:$LINENO: checking for $ac_header" >&5 7084echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7085if eval "test \"\${$as_ac_Header+set}\" = set"; then 7086 echo $ECHO_N "(cached) $ECHO_C" >&6 7087else 7088 eval "$as_ac_Header=$ac_header_preproc" 7089fi 7090echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7091echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7092 7093fi 7094if test `eval echo '${'$as_ac_Header'}'` = yes; then 7095 cat >>confdefs.h <<_ACEOF 7096#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7097_ACEOF 7098 7099fi 7100 7101done 7102 7103 echo "$as_me:$LINENO: checking for DOS-style setmode" >&5 7104echo $ECHO_N "checking for DOS-style setmode... $ECHO_C" >&6 7105if test "${ac_cv_func_setmode_dos+set}" = set; then 7106 echo $ECHO_N "(cached) $ECHO_C" >&6 7107else 7108 cat >conftest.$ac_ext <<_ACEOF 7109#line $LINENO "configure" 7110#include "confdefs.h" 7111#include <io.h> 7112 #if HAVE_FCNTL_H 7113 # include <fcntl.h> 7114 #endif 7115 #if HAVE_UNISTD_H 7116 # include <unistd.h> 7117 #endif 7118#ifdef F77_DUMMY_MAIN 7119# ifdef __cplusplus 7120 extern "C" 7121# endif 7122 int F77_DUMMY_MAIN() { return 1; } 7123#endif 7124int 7125main () 7126{ 7127int ret = setmode && setmode (1, O_BINARY); 7128 ; 7129 return 0; 7130} 7131_ACEOF 7132rm -f conftest.$ac_objext conftest$ac_exeext 7133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7134 (eval $ac_link) 2>&5 7135 ac_status=$? 7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7137 (exit $ac_status); } && 7138 { ac_try='test -s conftest$ac_exeext' 7139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7140 (eval $ac_try) 2>&5 7141 ac_status=$? 7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7143 (exit $ac_status); }; }; then 7144 ac_cv_func_setmode_dos=yes 7145else 7146 echo "$as_me: failed program was:" >&5 7147cat conftest.$ac_ext >&5 7148ac_cv_func_setmode_dos=no 7149fi 7150rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7151fi 7152echo "$as_me:$LINENO: result: $ac_cv_func_setmode_dos" >&5 7153echo "${ECHO_T}$ac_cv_func_setmode_dos" >&6 7154 if test $ac_cv_func_setmode_dos = yes; then 7155 7156cat >>confdefs.h <<\_ACEOF 7157#define HAVE_SETMODE_DOS 1 7158_ACEOF 7159 7160 fi 7161 7162for ac_func in vprintf 7163do 7164as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7165echo "$as_me:$LINENO: checking for $ac_func" >&5 7166echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7167if eval "test \"\${$as_ac_var+set}\" = set"; then 7168 echo $ECHO_N "(cached) $ECHO_C" >&6 7169else 7170 cat >conftest.$ac_ext <<_ACEOF 7171#line $LINENO "configure" 7172#include "confdefs.h" 7173/* System header to define __stub macros and hopefully few prototypes, 7174 which can conflict with char $ac_func (); below. */ 7175#include <assert.h> 7176/* Override any gcc2 internal prototype to avoid an error. */ 7177#ifdef __cplusplus 7178extern "C" 7179#endif 7180/* We use char because int might match the return type of a gcc2 7181 builtin and then its argument prototype would still apply. */ 7182char $ac_func (); 7183char (*f) (); 7184 7185#ifdef F77_DUMMY_MAIN 7186# ifdef __cplusplus 7187 extern "C" 7188# endif 7189 int F77_DUMMY_MAIN() { return 1; } 7190#endif 7191int 7192main () 7193{ 7194/* The GNU C library defines this for functions which it implements 7195 to always fail with ENOSYS. Some functions are actually named 7196 something starting with __ and the normal name is an alias. */ 7197#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7198choke me 7199#else 7200f = $ac_func; 7201#endif 7202 7203 ; 7204 return 0; 7205} 7206_ACEOF 7207rm -f conftest.$ac_objext conftest$ac_exeext 7208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7209 (eval $ac_link) 2>&5 7210 ac_status=$? 7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7212 (exit $ac_status); } && 7213 { ac_try='test -s conftest$ac_exeext' 7214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7215 (eval $ac_try) 2>&5 7216 ac_status=$? 7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7218 (exit $ac_status); }; }; then 7219 eval "$as_ac_var=yes" 7220else 7221 echo "$as_me: failed program was:" >&5 7222cat conftest.$ac_ext >&5 7223eval "$as_ac_var=no" 7224fi 7225rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7226fi 7227echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7228echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7229if test `eval echo '${'$as_ac_var'}'` = yes; then 7230 cat >>confdefs.h <<_ACEOF 7231#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7232_ACEOF 7233 7234echo "$as_me:$LINENO: checking for _doprnt" >&5 7235echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 7236if test "${ac_cv_func__doprnt+set}" = set; then 7237 echo $ECHO_N "(cached) $ECHO_C" >&6 7238else 7239 cat >conftest.$ac_ext <<_ACEOF 7240#line $LINENO "configure" 7241#include "confdefs.h" 7242/* System header to define __stub macros and hopefully few prototypes, 7243 which can conflict with char _doprnt (); below. */ 7244#include <assert.h> 7245/* Override any gcc2 internal prototype to avoid an error. */ 7246#ifdef __cplusplus 7247extern "C" 7248#endif 7249/* We use char because int might match the return type of a gcc2 7250 builtin and then its argument prototype would still apply. */ 7251char _doprnt (); 7252char (*f) (); 7253 7254#ifdef F77_DUMMY_MAIN 7255# ifdef __cplusplus 7256 extern "C" 7257# endif 7258 int F77_DUMMY_MAIN() { return 1; } 7259#endif 7260int 7261main () 7262{ 7263/* The GNU C library defines this for functions which it implements 7264 to always fail with ENOSYS. Some functions are actually named 7265 something starting with __ and the normal name is an alias. */ 7266#if defined (__stub__doprnt) || defined (__stub____doprnt) 7267choke me 7268#else 7269f = _doprnt; 7270#endif 7271 7272 ; 7273 return 0; 7274} 7275_ACEOF 7276rm -f conftest.$ac_objext conftest$ac_exeext 7277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7278 (eval $ac_link) 2>&5 7279 ac_status=$? 7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7281 (exit $ac_status); } && 7282 { ac_try='test -s conftest$ac_exeext' 7283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7284 (eval $ac_try) 2>&5 7285 ac_status=$? 7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7287 (exit $ac_status); }; }; then 7288 ac_cv_func__doprnt=yes 7289else 7290 echo "$as_me: failed program was:" >&5 7291cat conftest.$ac_ext >&5 7292ac_cv_func__doprnt=no 7293fi 7294rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7295fi 7296echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 7297echo "${ECHO_T}$ac_cv_func__doprnt" >&6 7298if test $ac_cv_func__doprnt = yes; then 7299 7300cat >>confdefs.h <<\_ACEOF 7301#define HAVE_DOPRNT 1 7302_ACEOF 7303 7304fi 7305 7306fi 7307done 7308 7309 7310 7311for ac_func in mkdir 7312do 7313as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7314echo "$as_me:$LINENO: checking for $ac_func" >&5 7315echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7316if eval "test \"\${$as_ac_var+set}\" = set"; then 7317 echo $ECHO_N "(cached) $ECHO_C" >&6 7318else 7319 cat >conftest.$ac_ext <<_ACEOF 7320#line $LINENO "configure" 7321#include "confdefs.h" 7322/* System header to define __stub macros and hopefully few prototypes, 7323 which can conflict with char $ac_func (); below. */ 7324#include <assert.h> 7325/* Override any gcc2 internal prototype to avoid an error. */ 7326#ifdef __cplusplus 7327extern "C" 7328#endif 7329/* We use char because int might match the return type of a gcc2 7330 builtin and then its argument prototype would still apply. */ 7331char $ac_func (); 7332char (*f) (); 7333 7334#ifdef F77_DUMMY_MAIN 7335# ifdef __cplusplus 7336 extern "C" 7337# endif 7338 int F77_DUMMY_MAIN() { return 1; } 7339#endif 7340int 7341main () 7342{ 7343/* The GNU C library defines this for functions which it implements 7344 to always fail with ENOSYS. Some functions are actually named 7345 something starting with __ and the normal name is an alias. */ 7346#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7347choke me 7348#else 7349f = $ac_func; 7350#endif 7351 7352 ; 7353 return 0; 7354} 7355_ACEOF 7356rm -f conftest.$ac_objext conftest$ac_exeext 7357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7358 (eval $ac_link) 2>&5 7359 ac_status=$? 7360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7361 (exit $ac_status); } && 7362 { ac_try='test -s conftest$ac_exeext' 7363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7364 (eval $ac_try) 2>&5 7365 ac_status=$? 7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7367 (exit $ac_status); }; }; then 7368 eval "$as_ac_var=yes" 7369else 7370 echo "$as_me: failed program was:" >&5 7371cat conftest.$ac_ext >&5 7372eval "$as_ac_var=no" 7373fi 7374rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7375fi 7376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7377echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7378if test `eval echo '${'$as_ac_var'}'` = yes; then 7379 cat >>confdefs.h <<_ACEOF 7380#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7381_ACEOF 7382 7383fi 7384done 7385 7386 echo "$as_me:$LINENO: checking whether mkdir takes only one argument" >&5 7387echo $ECHO_N "checking whether mkdir takes only one argument... $ECHO_C" >&6 7388if test "${patch_cv_mkdir_takes_one_arg+set}" = set; then 7389 echo $ECHO_N "(cached) $ECHO_C" >&6 7390else 7391 patch_cv_mkdir_takes_one_arg=no 7392 if test $ac_cv_func_mkdir = yes; then 7393 cat >conftest.$ac_ext <<_ACEOF 7394#line $LINENO "configure" 7395#include "confdefs.h" 7396 7397#include <sys/types.h> 7398#include <sys/stat.h> 7399 7400#ifdef F77_DUMMY_MAIN 7401# ifdef __cplusplus 7402 extern "C" 7403# endif 7404 int F77_DUMMY_MAIN() { return 1; } 7405#endif 7406int 7407main () 7408{ 7409mkdir (".", 0); 7410 ; 7411 return 0; 7412} 7413_ACEOF 7414rm -f conftest.$ac_objext 7415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7416 (eval $ac_compile) 2>&5 7417 ac_status=$? 7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7419 (exit $ac_status); } && 7420 { ac_try='test -s conftest.$ac_objext' 7421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7422 (eval $ac_try) 2>&5 7423 ac_status=$? 7424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7425 (exit $ac_status); }; }; then 7426 : 7427else 7428 echo "$as_me: failed program was:" >&5 7429cat conftest.$ac_ext >&5 7430cat >conftest.$ac_ext <<_ACEOF 7431#line $LINENO "configure" 7432#include "confdefs.h" 7433 7434#include <sys/types.h> 7435#include <sys/stat.h> 7436 7437#ifdef F77_DUMMY_MAIN 7438# ifdef __cplusplus 7439 extern "C" 7440# endif 7441 int F77_DUMMY_MAIN() { return 1; } 7442#endif 7443int 7444main () 7445{ 7446mkdir ("."); 7447 ; 7448 return 0; 7449} 7450_ACEOF 7451rm -f conftest.$ac_objext 7452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7453 (eval $ac_compile) 2>&5 7454 ac_status=$? 7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7456 (exit $ac_status); } && 7457 { ac_try='test -s conftest.$ac_objext' 7458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7459 (eval $ac_try) 2>&5 7460 ac_status=$? 7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7462 (exit $ac_status); }; }; then 7463 patch_cv_mkdir_takes_one_arg=yes 7464 7465else 7466 echo "$as_me: failed program was:" >&5 7467cat conftest.$ac_ext >&5 7468fi 7469rm -f conftest.$ac_objext conftest.$ac_ext 7470 7471fi 7472rm -f conftest.$ac_objext conftest.$ac_ext 7473 fi 7474 7475 7476fi 7477echo "$as_me:$LINENO: result: $patch_cv_mkdir_takes_one_arg" >&5 7478echo "${ECHO_T}$patch_cv_mkdir_takes_one_arg" >&6 7479 if test $patch_cv_mkdir_takes_one_arg = yes; then 7480 7481cat >>confdefs.h <<\_ACEOF 7482#define MKDIR_TAKES_ONE_ARG 1 7483_ACEOF 7484 7485 fi 7486 7487 7488 7489echo "$as_me:$LINENO: checking for long file names" >&5 7490echo $ECHO_N "checking for long file names... $ECHO_C" >&6 7491if test "${ac_cv_sys_long_file_names+set}" = set; then 7492 echo $ECHO_N "(cached) $ECHO_C" >&6 7493else 7494 ac_cv_sys_long_file_names=yes 7495# Test for long file names in all the places we know might matter: 7496# . the current directory, where building will happen 7497# $prefix/lib where we will be installing things 7498# $exec_prefix/lib likewise 7499# eval it to expand exec_prefix. 7500# $TMPDIR if set, where it might want to write temporary files 7501# if $TMPDIR is not set: 7502# /tmp where it might want to write temporary files 7503# /var/tmp likewise 7504# /usr/tmp likewise 7505if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then 7506 ac_tmpdirs=$TMPDIR 7507else 7508 ac_tmpdirs='/tmp /var/tmp /usr/tmp' 7509fi 7510for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do 7511 test -d $ac_dir || continue 7512 test -w $ac_dir || continue # It is less confusing to not echo anything here. 7513 ac_xdir=$ac_dir/cf$$ 7514 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue 7515 ac_tf1=$ac_xdir/conftest9012345 7516 ac_tf2=$ac_xdir/conftest9012346 7517 (echo 1 >$ac_tf1) 2>/dev/null 7518 (echo 2 >$ac_tf2) 2>/dev/null 7519 ac_val=`cat $ac_tf1 2>/dev/null` 7520 if test ! -f $ac_tf1 || test "$ac_val" != 1; then 7521 ac_cv_sys_long_file_names=no 7522 rm -rf $ac_xdir 2>/dev/null 7523 break 7524 fi 7525 rm -rf $ac_xdir 2>/dev/null 7526done 7527fi 7528echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5 7529echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6 7530if test $ac_cv_sys_long_file_names = yes; then 7531 7532cat >>confdefs.h <<\_ACEOF 7533#define HAVE_LONG_FILE_NAMES 1 7534_ACEOF 7535 7536fi 7537 7538 echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5 7539echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6 7540if test "${jm_cv_struct_dirent_d_ino+set}" = set; then 7541 echo $ECHO_N "(cached) $ECHO_C" >&6 7542else 7543 cat >conftest.$ac_ext <<_ACEOF 7544#line $LINENO "configure" 7545#include "confdefs.h" 7546 7547#include <sys/types.h> 7548#ifdef HAVE_DIRENT_H 7549# include <dirent.h> 7550#else /* not HAVE_DIRENT_H */ 7551# define dirent direct 7552# ifdef HAVE_SYS_NDIR_H 7553# include <sys/ndir.h> 7554# endif /* HAVE_SYS_NDIR_H */ 7555# ifdef HAVE_SYS_DIR_H 7556# include <sys/dir.h> 7557# endif /* HAVE_SYS_DIR_H */ 7558# ifdef HAVE_NDIR_H 7559# include <ndir.h> 7560# endif /* HAVE_NDIR_H */ 7561#endif /* HAVE_DIRENT_H */ 7562 7563#ifdef F77_DUMMY_MAIN 7564# ifdef __cplusplus 7565 extern "C" 7566# endif 7567 int F77_DUMMY_MAIN() { return 1; } 7568#endif 7569int 7570main () 7571{ 7572struct dirent dp; dp.d_ino = 0; 7573 ; 7574 return 0; 7575} 7576_ACEOF 7577rm -f conftest.$ac_objext conftest$ac_exeext 7578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7579 (eval $ac_link) 2>&5 7580 ac_status=$? 7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7582 (exit $ac_status); } && 7583 { ac_try='test -s conftest$ac_exeext' 7584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7585 (eval $ac_try) 2>&5 7586 ac_status=$? 7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7588 (exit $ac_status); }; }; then 7589 jm_cv_struct_dirent_d_ino=yes 7590else 7591 echo "$as_me: failed program was:" >&5 7592cat conftest.$ac_ext >&5 7593jm_cv_struct_dirent_d_ino=no 7594fi 7595rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7596 7597 7598fi 7599echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_ino" >&5 7600echo "${ECHO_T}$jm_cv_struct_dirent_d_ino" >&6 7601 if test $jm_cv_struct_dirent_d_ino = yes; then 7602 7603cat >>confdefs.h <<\_ACEOF 7604#define D_INO_IN_DIRENT 1 7605_ACEOF 7606 7607 fi 7608 7609 7610 7611ac_config_files="$ac_config_files Makefile" 7612cat >confcache <<\_ACEOF 7613# This file is a shell script that caches the results of configure 7614# tests run on this system so they can be shared between configure 7615# scripts and configure runs, see configure's option --config-cache. 7616# It is not useful on other systems. If it contains results you don't 7617# want to keep, you may remove or edit it. 7618# 7619# config.status only pays attention to the cache file if you give it 7620# the --recheck option to rerun configure. 7621# 7622# `ac_cv_env_foo' variables (set or unset) will be overriden when 7623# loading this file, other *unset* `ac_cv_foo' will be assigned the 7624# following values. 7625 7626_ACEOF 7627 7628# The following way of writing the cache mishandles newlines in values, 7629# but we know of no workaround that is simple, portable, and efficient. 7630# So, don't put newlines in cache variables' values. 7631# Ultrix sh set writes to stderr and can't be redirected directly, 7632# and sets the high bit in the cache file unless we assign to the vars. 7633{ 7634 (set) 2>&1 | 7635 case `(ac_space=' '; set | grep ac_space) 2>&1` in 7636 *ac_space=\ *) 7637 # `set' does not quote correctly, so add quotes (double-quote 7638 # substitution turns \\\\ into \\, and sed turns \\ into \). 7639 sed -n \ 7640 "s/'/'\\\\''/g; 7641 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 7642 ;; 7643 *) 7644 # `set' quotes correctly as required by POSIX, so do not add quotes. 7645 sed -n \ 7646 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 7647 ;; 7648 esac; 7649} | 7650 sed ' 7651 t clear 7652 : clear 7653 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 7654 t end 7655 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 7656 : end' >>confcache 7657if cmp -s $cache_file confcache; then :; else 7658 if test -w $cache_file; then 7659 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 7660 cat confcache >$cache_file 7661 else 7662 echo "not updating unwritable cache $cache_file" 7663 fi 7664fi 7665rm -f confcache 7666 7667test "x$prefix" = xNONE && prefix=$ac_default_prefix 7668# Let make expand exec_prefix. 7669test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 7670 7671# VPATH may cause trouble with some makes, so we remove $(srcdir), 7672# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 7673# trailing colons and then remove the whole line if VPATH becomes empty 7674# (actually we leave an empty line to preserve line numbers). 7675if test "x$srcdir" = x.; then 7676 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 7677s/:*\$(srcdir):*/:/; 7678s/:*\${srcdir}:*/:/; 7679s/:*@srcdir@:*/:/; 7680s/^\([^=]*=[ ]*\):*/\1/; 7681s/:*$//; 7682s/^[^=]*=[ ]*$//; 7683}' 7684fi 7685 7686DEFS=-DHAVE_CONFIG_H 7687 7688 7689: ${CONFIG_STATUS=./config.status} 7690ac_clean_files_save=$ac_clean_files 7691ac_clean_files="$ac_clean_files $CONFIG_STATUS" 7692{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 7693echo "$as_me: creating $CONFIG_STATUS" >&6;} 7694cat >$CONFIG_STATUS <<_ACEOF 7695#! $SHELL 7696# Generated by $as_me. 7697# Run this file to recreate the current configuration. 7698# Compiler output produced by configure, useful for debugging 7699# configure, is in config.log if it exists. 7700 7701debug=false 7702SHELL=\${CONFIG_SHELL-$SHELL} 7703_ACEOF 7704 7705cat >>$CONFIG_STATUS <<\_ACEOF 7706 7707## --------------------- ## 7708## M4sh Initialization. ## 7709## --------------------- ## 7710 7711# Be Bourne compatible 7712if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 7713 emulate sh 7714 NULLCMD=: 7715elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 7716 set -o posix 7717fi 7718 7719# NLS nuisances. 7720# Support unset when possible. 7721if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 7722 as_unset=unset 7723else 7724 as_unset=false 7725fi 7726 7727(set +x; test -n "`(LANG=C; export LANG) 2>&1`") && 7728 { $as_unset LANG || test "${LANG+set}" != set; } || 7729 { LANG=C; export LANG; } 7730(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && 7731 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || 7732 { LC_ALL=C; export LC_ALL; } 7733(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && 7734 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || 7735 { LC_TIME=C; export LC_TIME; } 7736(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && 7737 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || 7738 { LC_CTYPE=C; export LC_CTYPE; } 7739(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && 7740 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || 7741 { LANGUAGE=C; export LANGUAGE; } 7742(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && 7743 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || 7744 { LC_COLLATE=C; export LC_COLLATE; } 7745(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && 7746 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || 7747 { LC_NUMERIC=C; export LC_NUMERIC; } 7748(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && 7749 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || 7750 { LC_MESSAGES=C; export LC_MESSAGES; } 7751 7752 7753# Name of the executable. 7754as_me=`(basename "$0") 2>/dev/null || 7755$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 7756 X"$0" : 'X\(//\)$' \| \ 7757 X"$0" : 'X\(/\)$' \| \ 7758 . : '\(.\)' 2>/dev/null || 7759echo X/"$0" | 7760 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 7761 /^X\/\(\/\/\)$/{ s//\1/; q; } 7762 /^X\/\(\/\).*/{ s//\1/; q; } 7763 s/.*/./; q'` 7764 7765# PATH needs CR, and LINENO needs CR and PATH. 7766# Avoid depending upon Character Ranges. 7767as_cr_letters='abcdefghijklmnopqrstuvwxyz' 7768as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 7769as_cr_Letters=$as_cr_letters$as_cr_LETTERS 7770as_cr_digits='0123456789' 7771as_cr_alnum=$as_cr_Letters$as_cr_digits 7772 7773# The user is always right. 7774if test "${PATH_SEPARATOR+set}" != set; then 7775 echo "#! /bin/sh" >conftest.sh 7776 echo "exit 0" >>conftest.sh 7777 chmod +x conftest.sh 7778 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then 7779 PATH_SEPARATOR=';' 7780 else 7781 PATH_SEPARATOR=: 7782 fi 7783 rm -f conftest.sh 7784fi 7785 7786 7787 as_lineno_1=$LINENO 7788 as_lineno_2=$LINENO 7789 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 7790 test "x$as_lineno_1" != "x$as_lineno_2" && 7791 test "x$as_lineno_3" = "x$as_lineno_2" || { 7792 # Find who we are. Look in the path if we contain no path at all 7793 # relative or not. 7794 case $0 in 7795 *[\\/]* ) as_myself=$0 ;; 7796 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7797for as_dir in $PATH 7798do 7799 IFS=$as_save_IFS 7800 test -z "$as_dir" && as_dir=. 7801 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 7802done 7803 7804 ;; 7805 esac 7806 # We did not find ourselves, most probably we were run as `sh COMMAND' 7807 # in which case we are not to be found in the path. 7808 if test "x$as_myself" = x; then 7809 as_myself=$0 7810 fi 7811 if test ! -f "$as_myself"; then 7812 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 7813echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 7814 { (exit 1); exit 1; }; } 7815 fi 7816 case $CONFIG_SHELL in 7817 '') 7818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7819for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 7820do 7821 IFS=$as_save_IFS 7822 test -z "$as_dir" && as_dir=. 7823 for as_base in sh bash ksh sh5; do 7824 case $as_dir in 7825 /*) 7826 if ("$as_dir/$as_base" -c ' 7827 as_lineno_1=$LINENO 7828 as_lineno_2=$LINENO 7829 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 7830 test "x$as_lineno_1" != "x$as_lineno_2" && 7831 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 7832 CONFIG_SHELL=$as_dir/$as_base 7833 export CONFIG_SHELL 7834 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 7835 fi;; 7836 esac 7837 done 7838done 7839;; 7840 esac 7841 7842 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 7843 # uniformly replaced by the line number. The first 'sed' inserts a 7844 # line-number line before each line; the second 'sed' does the real 7845 # work. The second script uses 'N' to pair each line-number line 7846 # with the numbered line, and appends trailing '-' during 7847 # substitution so that $LINENO is not a special case at line end. 7848 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 7849 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 7850 sed '=' <$as_myself | 7851 sed ' 7852 N 7853 s,$,-, 7854 : loop 7855 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 7856 t loop 7857 s,-$,, 7858 s,^['$as_cr_digits']*\n,, 7859 ' >$as_me.lineno && 7860 chmod +x $as_me.lineno || 7861 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 7862echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 7863 { (exit 1); exit 1; }; } 7864 7865 # Don't try to exec as it changes $[0], causing all sort of problems 7866 # (the dirname of $[0] is not the place where we might find the 7867 # original and so on. Autoconf is especially sensible to this). 7868 . ./$as_me.lineno 7869 # Exit status is that of the last command. 7870 exit 7871} 7872 7873 7874case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 7875 *c*,-n*) ECHO_N= ECHO_C=' 7876' ECHO_T=' ' ;; 7877 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 7878 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 7879esac 7880 7881if expr a : '\(a\)' >/dev/null 2>&1; then 7882 as_expr=expr 7883else 7884 as_expr=false 7885fi 7886 7887rm -f conf$$ conf$$.exe conf$$.file 7888echo >conf$$.file 7889if ln -s conf$$.file conf$$ 2>/dev/null; then 7890 # We could just check for DJGPP; but this test a) works b) is more generic 7891 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 7892 if test -f conf$$.exe; then 7893 # Don't use ln at all; we don't have any links 7894 as_ln_s='cp -p' 7895 else 7896 as_ln_s='ln -s' 7897 fi 7898elif ln conf$$.file conf$$ 2>/dev/null; then 7899 as_ln_s=ln 7900else 7901 as_ln_s='cp -p' 7902fi 7903rm -f conf$$ conf$$.exe conf$$.file 7904 7905as_executable_p="test -f" 7906 7907# Sed expression to map a string onto a valid CPP name. 7908as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 7909 7910# Sed expression to map a string onto a valid variable name. 7911as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 7912 7913 7914# IFS 7915# We need space, tab and new line, in precisely that order. 7916as_nl=' 7917' 7918IFS=" $as_nl" 7919 7920# CDPATH. 7921$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } 7922 7923exec 6>&1 7924 7925# Open the log real soon, to keep \$[0] and so on meaningful, and to 7926# report actual input values of CONFIG_FILES etc. instead of their 7927# values after options handling. Logging --version etc. is OK. 7928exec 5>>config.log 7929{ 7930 echo 7931 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 7932## Running $as_me. ## 7933_ASBOX 7934} >&5 7935cat >&5 <<_CSEOF 7936 7937This file was extended by patch $as_me 2.5.8, which was 7938generated by GNU Autoconf 2.53. Invocation command line was 7939 7940 CONFIG_FILES = $CONFIG_FILES 7941 CONFIG_HEADERS = $CONFIG_HEADERS 7942 CONFIG_LINKS = $CONFIG_LINKS 7943 CONFIG_COMMANDS = $CONFIG_COMMANDS 7944 $ $0 $@ 7945 7946_CSEOF 7947echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 7948echo >&5 7949_ACEOF 7950 7951# Files that config.status was made for. 7952if test -n "$ac_config_files"; then 7953 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 7954fi 7955 7956if test -n "$ac_config_headers"; then 7957 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 7958fi 7959 7960if test -n "$ac_config_links"; then 7961 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 7962fi 7963 7964if test -n "$ac_config_commands"; then 7965 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 7966fi 7967 7968cat >>$CONFIG_STATUS <<\_ACEOF 7969 7970ac_cs_usage="\ 7971\`$as_me' instantiates files from templates according to the 7972current configuration. 7973 7974Usage: $0 [OPTIONS] [FILE]... 7975 7976 -h, --help print this help, then exit 7977 -V, --version print version number, then exit 7978 -d, --debug don't remove temporary files 7979 --recheck update $as_me by reconfiguring in the same conditions 7980 --file=FILE[:TEMPLATE] 7981 instantiate the configuration file FILE 7982 --header=FILE[:TEMPLATE] 7983 instantiate the configuration header FILE 7984 7985Configuration files: 7986$config_files 7987 7988Configuration headers: 7989$config_headers 7990 7991Report bugs to <bug-autoconf@gnu.org>." 7992_ACEOF 7993 7994cat >>$CONFIG_STATUS <<_ACEOF 7995ac_cs_version="\\ 7996patch config.status 2.5.8 7997configured by $0, generated by GNU Autoconf 2.53, 7998 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 7999 8000Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 8001Free Software Foundation, Inc. 8002This config.status script is free software; the Free Software Foundation 8003gives unlimited permission to copy, distribute and modify it." 8004srcdir=$srcdir 8005INSTALL="$INSTALL" 8006_ACEOF 8007 8008cat >>$CONFIG_STATUS <<\_ACEOF 8009# If no file are specified by the user, then we need to provide default 8010# value. By we need to know if files were specified by the user. 8011ac_need_defaults=: 8012while test $# != 0 8013do 8014 case $1 in 8015 --*=*) 8016 ac_option=`expr "x$1" : 'x\([^=]*\)='` 8017 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 8018 shift 8019 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} 8020 shift 8021 ;; 8022 -*);; 8023 *) # This is not an option, so the user has probably given explicit 8024 # arguments. 8025 ac_need_defaults=false;; 8026 esac 8027 8028 case $1 in 8029 # Handling of the options. 8030_ACEOF 8031cat >>$CONFIG_STATUS <<_ACEOF 8032 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 8033 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 8034 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 8035_ACEOF 8036cat >>$CONFIG_STATUS <<\_ACEOF 8037 --version | --vers* | -V ) 8038 echo "$ac_cs_version"; exit 0 ;; 8039 --he | --h) 8040 # Conflict between --help and --header 8041 { { echo "$as_me:$LINENO: error: ambiguous option: $1 8042Try \`$0 --help' for more information." >&5 8043echo "$as_me: error: ambiguous option: $1 8044Try \`$0 --help' for more information." >&2;} 8045 { (exit 1); exit 1; }; };; 8046 --help | --hel | -h ) 8047 echo "$ac_cs_usage"; exit 0 ;; 8048 --debug | --d* | -d ) 8049 debug=: ;; 8050 --file | --fil | --fi | --f ) 8051 shift 8052 CONFIG_FILES="$CONFIG_FILES $1" 8053 ac_need_defaults=false;; 8054 --header | --heade | --head | --hea ) 8055 shift 8056 CONFIG_HEADERS="$CONFIG_HEADERS $1" 8057 ac_need_defaults=false;; 8058 8059 # This is an error. 8060 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 8061Try \`$0 --help' for more information." >&5 8062echo "$as_me: error: unrecognized option: $1 8063Try \`$0 --help' for more information." >&2;} 8064 { (exit 1); exit 1; }; } ;; 8065 8066 *) ac_config_targets="$ac_config_targets $1" ;; 8067 8068 esac 8069 shift 8070done 8071 8072_ACEOF 8073 8074 8075 8076 8077 8078cat >>$CONFIG_STATUS <<\_ACEOF 8079for ac_config_target in $ac_config_targets 8080do 8081 case "$ac_config_target" in 8082 # Handling of arguments. 8083 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 8084 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;; 8085 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 8086echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 8087 { (exit 1); exit 1; }; };; 8088 esac 8089done 8090 8091# If the user did not use the arguments to specify the items to instantiate, 8092# then the envvar interface is used. Set only those that are not. 8093# We use the long form for the default assignment because of an extremely 8094# bizarre bug on SunOS 4.1.3. 8095if $ac_need_defaults; then 8096 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 8097 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 8098fi 8099 8100# Create a temporary directory, and hook for its removal unless debugging. 8101$debug || 8102{ 8103 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 8104 trap '{ (exit 1); exit 1; }' 1 2 13 15 8105} 8106 8107# Create a (secure) tmp directory for tmp files. 8108: ${TMPDIR=/tmp} 8109{ 8110 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && 8111 test -n "$tmp" && test -d "$tmp" 8112} || 8113{ 8114 tmp=$TMPDIR/cs$$-$RANDOM 8115 (umask 077 && mkdir $tmp) 8116} || 8117{ 8118 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 8119 { (exit 1); exit 1; } 8120} 8121 8122_ACEOF 8123 8124cat >>$CONFIG_STATUS <<_ACEOF 8125 8126# 8127# CONFIG_FILES section. 8128# 8129 8130# No need to generate the scripts if there are no CONFIG_FILES. 8131# This happens for instance when ./config.status config.h 8132if test -n "\$CONFIG_FILES"; then 8133 # Protect against being on the right side of a sed subst in config.status. 8134 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 8135 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 8136s,@SHELL@,$SHELL,;t t 8137s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 8138s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 8139s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 8140s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 8141s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 8142s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 8143s,@exec_prefix@,$exec_prefix,;t t 8144s,@prefix@,$prefix,;t t 8145s,@program_transform_name@,$program_transform_name,;t t 8146s,@bindir@,$bindir,;t t 8147s,@sbindir@,$sbindir,;t t 8148s,@libexecdir@,$libexecdir,;t t 8149s,@datadir@,$datadir,;t t 8150s,@sysconfdir@,$sysconfdir,;t t 8151s,@sharedstatedir@,$sharedstatedir,;t t 8152s,@localstatedir@,$localstatedir,;t t 8153s,@libdir@,$libdir,;t t 8154s,@includedir@,$includedir,;t t 8155s,@oldincludedir@,$oldincludedir,;t t 8156s,@infodir@,$infodir,;t t 8157s,@mandir@,$mandir,;t t 8158s,@build_alias@,$build_alias,;t t 8159s,@host_alias@,$host_alias,;t t 8160s,@target_alias@,$target_alias,;t t 8161s,@DEFS@,$DEFS,;t t 8162s,@ECHO_C@,$ECHO_C,;t t 8163s,@ECHO_N@,$ECHO_N,;t t 8164s,@ECHO_T@,$ECHO_T,;t t 8165s,@LIBS@,$LIBS,;t t 8166s,@CC@,$CC,;t t 8167s,@CFLAGS@,$CFLAGS,;t t 8168s,@LDFLAGS@,$LDFLAGS,;t t 8169s,@CPPFLAGS@,$CPPFLAGS,;t t 8170s,@ac_ct_CC@,$ac_ct_CC,;t t 8171s,@EXEEXT@,$EXEEXT,;t t 8172s,@OBJEXT@,$OBJEXT,;t t 8173s,@CPP@,$CPP,;t t 8174s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 8175s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 8176s,@INSTALL_DATA@,$INSTALL_DATA,;t t 8177s,@SET_MAKE@,$SET_MAKE,;t t 8178s,@ed_PROGRAM@,$ed_PROGRAM,;t t 8179s,@LIBOBJS@,$LIBOBJS,;t t 8180CEOF 8181 8182_ACEOF 8183 8184 cat >>$CONFIG_STATUS <<\_ACEOF 8185 # Split the substitutions into bite-sized pieces for seds with 8186 # small command number limits, like on Digital OSF/1 and HP-UX. 8187 ac_max_sed_lines=48 8188 ac_sed_frag=1 # Number of current file. 8189 ac_beg=1 # First line for current file. 8190 ac_end=$ac_max_sed_lines # Line after last line for current file. 8191 ac_more_lines=: 8192 ac_sed_cmds= 8193 while $ac_more_lines; do 8194 if test $ac_beg -gt 1; then 8195 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 8196 else 8197 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 8198 fi 8199 if test ! -s $tmp/subs.frag; then 8200 ac_more_lines=false 8201 else 8202 # The purpose of the label and of the branching condition is to 8203 # speed up the sed processing (if there are no `@' at all, there 8204 # is no need to browse any of the substitutions). 8205 # These are the two extra sed commands mentioned above. 8206 (echo ':t 8207 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 8208 if test -z "$ac_sed_cmds"; then 8209 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 8210 else 8211 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 8212 fi 8213 ac_sed_frag=`expr $ac_sed_frag + 1` 8214 ac_beg=$ac_end 8215 ac_end=`expr $ac_end + $ac_max_sed_lines` 8216 fi 8217 done 8218 if test -z "$ac_sed_cmds"; then 8219 ac_sed_cmds=cat 8220 fi 8221fi # test -n "$CONFIG_FILES" 8222 8223_ACEOF 8224cat >>$CONFIG_STATUS <<\_ACEOF 8225for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 8226 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 8227 case $ac_file in 8228 - | *:- | *:-:* ) # input from stdin 8229 cat >$tmp/stdin 8230 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 8231 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 8232 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 8233 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 8234 * ) ac_file_in=$ac_file.in ;; 8235 esac 8236 8237 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 8238 ac_dir=`(dirname "$ac_file") 2>/dev/null || 8239$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8240 X"$ac_file" : 'X\(//\)[^/]' \| \ 8241 X"$ac_file" : 'X\(//\)$' \| \ 8242 X"$ac_file" : 'X\(/\)' \| \ 8243 . : '\(.\)' 2>/dev/null || 8244echo X"$ac_file" | 8245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 8246 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 8247 /^X\(\/\/\)$/{ s//\1/; q; } 8248 /^X\(\/\).*/{ s//\1/; q; } 8249 s/.*/./; q'` 8250 { if $as_mkdir_p; then 8251 mkdir -p "$ac_dir" 8252 else 8253 as_dir="$ac_dir" 8254 as_dirs= 8255 while test ! -d "$as_dir"; do 8256 as_dirs="$as_dir $as_dirs" 8257 as_dir=`(dirname "$as_dir") 2>/dev/null || 8258$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8259 X"$as_dir" : 'X\(//\)[^/]' \| \ 8260 X"$as_dir" : 'X\(//\)$' \| \ 8261 X"$as_dir" : 'X\(/\)' \| \ 8262 . : '\(.\)' 2>/dev/null || 8263echo X"$as_dir" | 8264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 8265 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 8266 /^X\(\/\/\)$/{ s//\1/; q; } 8267 /^X\(\/\).*/{ s//\1/; q; } 8268 s/.*/./; q'` 8269 done 8270 test ! -n "$as_dirs" || mkdir $as_dirs 8271 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 8272echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 8273 { (exit 1); exit 1; }; }; } 8274 8275 ac_builddir=. 8276 8277if test "$ac_dir" != .; then 8278 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 8279 # A "../" for each directory in $ac_dir_suffix. 8280 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 8281else 8282 ac_dir_suffix= ac_top_builddir= 8283fi 8284 8285case $srcdir in 8286 .) # No --srcdir option. We are building in place. 8287 ac_srcdir=. 8288 if test -z "$ac_top_builddir"; then 8289 ac_top_srcdir=. 8290 else 8291 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 8292 fi ;; 8293 [\\/]* | ?:[\\/]* ) # Absolute path. 8294 ac_srcdir=$srcdir$ac_dir_suffix; 8295 ac_top_srcdir=$srcdir ;; 8296 *) # Relative path. 8297 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 8298 ac_top_srcdir=$ac_top_builddir$srcdir ;; 8299esac 8300# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 8301# absolute. 8302ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 8303ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` 8304ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 8305ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 8306 8307 8308 case $INSTALL in 8309 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 8310 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 8311 esac 8312 8313 if test x"$ac_file" != x-; then 8314 { echo "$as_me:$LINENO: creating $ac_file" >&5 8315echo "$as_me: creating $ac_file" >&6;} 8316 rm -f "$ac_file" 8317 fi 8318 # Let's still pretend it is `configure' which instantiates (i.e., don't 8319 # use $as_me), people would be surprised to read: 8320 # /* config.h. Generated by config.status. */ 8321 if test x"$ac_file" = x-; then 8322 configure_input= 8323 else 8324 configure_input="$ac_file. " 8325 fi 8326 configure_input=$configure_input"Generated from `echo $ac_file_in | 8327 sed 's,.*/,,'` by configure." 8328 8329 # First look for the input files in the build tree, otherwise in the 8330 # src tree. 8331 ac_file_inputs=`IFS=: 8332 for f in $ac_file_in; do 8333 case $f in 8334 -) echo $tmp/stdin ;; 8335 [\\/$]*) 8336 # Absolute (can't be DOS-style, as IFS=:) 8337 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 8338echo "$as_me: error: cannot find input file: $f" >&2;} 8339 { (exit 1); exit 1; }; } 8340 echo $f;; 8341 *) # Relative 8342 if test -f "$f"; then 8343 # Build tree 8344 echo $f 8345 elif test -f "$srcdir/$f"; then 8346 # Source tree 8347 echo $srcdir/$f 8348 else 8349 # /dev/null tree 8350 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 8351echo "$as_me: error: cannot find input file: $f" >&2;} 8352 { (exit 1); exit 1; }; } 8353 fi;; 8354 esac 8355 done` || { (exit 1); exit 1; } 8356_ACEOF 8357cat >>$CONFIG_STATUS <<_ACEOF 8358 sed "$ac_vpsub 8359$extrasub 8360_ACEOF 8361cat >>$CONFIG_STATUS <<\_ACEOF 8362:t 8363/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 8364s,@configure_input@,$configure_input,;t t 8365s,@srcdir@,$ac_srcdir,;t t 8366s,@abs_srcdir@,$ac_abs_srcdir,;t t 8367s,@top_srcdir@,$ac_top_srcdir,;t t 8368s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 8369s,@builddir@,$ac_builddir,;t t 8370s,@abs_builddir@,$ac_abs_builddir,;t t 8371s,@top_builddir@,$ac_top_builddir,;t t 8372s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 8373s,@INSTALL@,$ac_INSTALL,;t t 8374" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 8375 rm -f $tmp/stdin 8376 if test x"$ac_file" != x-; then 8377 mv $tmp/out $ac_file 8378 else 8379 cat $tmp/out 8380 rm -f $tmp/out 8381 fi 8382 8383done 8384_ACEOF 8385cat >>$CONFIG_STATUS <<\_ACEOF 8386 8387# 8388# CONFIG_HEADER section. 8389# 8390 8391# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 8392# NAME is the cpp macro being defined and VALUE is the value it is being given. 8393# 8394# ac_d sets the value in "#define NAME VALUE" lines. 8395ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 8396ac_dB='[ ].*$,\1#\2' 8397ac_dC=' ' 8398ac_dD=',;t' 8399# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 8400ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 8401ac_uB='$,\1#\2define\3' 8402ac_uC=' ' 8403ac_uD=',;t' 8404 8405for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 8406 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 8407 case $ac_file in 8408 - | *:- | *:-:* ) # input from stdin 8409 cat >$tmp/stdin 8410 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 8411 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 8412 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 8413 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 8414 * ) ac_file_in=$ac_file.in ;; 8415 esac 8416 8417 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 8418echo "$as_me: creating $ac_file" >&6;} 8419 8420 # First look for the input files in the build tree, otherwise in the 8421 # src tree. 8422 ac_file_inputs=`IFS=: 8423 for f in $ac_file_in; do 8424 case $f in 8425 -) echo $tmp/stdin ;; 8426 [\\/$]*) 8427 # Absolute (can't be DOS-style, as IFS=:) 8428 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 8429echo "$as_me: error: cannot find input file: $f" >&2;} 8430 { (exit 1); exit 1; }; } 8431 echo $f;; 8432 *) # Relative 8433 if test -f "$f"; then 8434 # Build tree 8435 echo $f 8436 elif test -f "$srcdir/$f"; then 8437 # Source tree 8438 echo $srcdir/$f 8439 else 8440 # /dev/null tree 8441 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 8442echo "$as_me: error: cannot find input file: $f" >&2;} 8443 { (exit 1); exit 1; }; } 8444 fi;; 8445 esac 8446 done` || { (exit 1); exit 1; } 8447 # Remove the trailing spaces. 8448 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 8449 8450_ACEOF 8451 8452# Transform confdefs.h into two sed scripts, `conftest.defines' and 8453# `conftest.undefs', that substitutes the proper values into 8454# config.h.in to produce config.h. The first handles `#define' 8455# templates, and the second `#undef' templates. 8456# And first: Protect against being on the right side of a sed subst in 8457# config.status. Protect against being in an unquoted here document 8458# in config.status. 8459rm -f conftest.defines conftest.undefs 8460# Using a here document instead of a string reduces the quoting nightmare. 8461# Putting comments in sed scripts is not portable. 8462# 8463# `end' is used to avoid that the second main sed command (meant for 8464# 0-ary CPP macros) applies to n-ary macro definitions. 8465# See the Autoconf documentation for `clear'. 8466cat >confdef2sed.sed <<\_ACEOF 8467s/[\\&,]/\\&/g 8468s,[\\$`],\\&,g 8469t clear 8470: clear 8471s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 8472t end 8473s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 8474: end 8475_ACEOF 8476# If some macros were called several times there might be several times 8477# the same #defines, which is useless. Nevertheless, we may not want to 8478# sort them, since we want the *last* AC-DEFINE to be honored. 8479uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 8480sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 8481rm -f confdef2sed.sed 8482 8483# This sed command replaces #undef with comments. This is necessary, for 8484# example, in the case of _POSIX_SOURCE, which is predefined and required 8485# on some systems where configure will not decide to define it. 8486cat >>conftest.undefs <<\_ACEOF 8487s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 8488_ACEOF 8489 8490# Break up conftest.defines because some shells have a limit on the size 8491# of here documents, and old seds have small limits too (100 cmds). 8492echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 8493echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 8494echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 8495echo ' :' >>$CONFIG_STATUS 8496rm -f conftest.tail 8497while grep . conftest.defines >/dev/null 8498do 8499 # Write a limited-size here document to $tmp/defines.sed. 8500 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 8501 # Speed up: don't consider the non `#define' lines. 8502 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 8503 # Work around the forget-to-reset-the-flag bug. 8504 echo 't clr' >>$CONFIG_STATUS 8505 echo ': clr' >>$CONFIG_STATUS 8506 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 8507 echo 'CEOF 8508 sed -f $tmp/defines.sed $tmp/in >$tmp/out 8509 rm -f $tmp/in 8510 mv $tmp/out $tmp/in 8511' >>$CONFIG_STATUS 8512 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 8513 rm -f conftest.defines 8514 mv conftest.tail conftest.defines 8515done 8516rm -f conftest.defines 8517echo ' fi # egrep' >>$CONFIG_STATUS 8518echo >>$CONFIG_STATUS 8519 8520# Break up conftest.undefs because some shells have a limit on the size 8521# of here documents, and old seds have small limits too (100 cmds). 8522echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 8523rm -f conftest.tail 8524while grep . conftest.undefs >/dev/null 8525do 8526 # Write a limited-size here document to $tmp/undefs.sed. 8527 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 8528 # Speed up: don't consider the non `#undef' 8529 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 8530 # Work around the forget-to-reset-the-flag bug. 8531 echo 't clr' >>$CONFIG_STATUS 8532 echo ': clr' >>$CONFIG_STATUS 8533 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 8534 echo 'CEOF 8535 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 8536 rm -f $tmp/in 8537 mv $tmp/out $tmp/in 8538' >>$CONFIG_STATUS 8539 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 8540 rm -f conftest.undefs 8541 mv conftest.tail conftest.undefs 8542done 8543rm -f conftest.undefs 8544 8545cat >>$CONFIG_STATUS <<\_ACEOF 8546 # Let's still pretend it is `configure' which instantiates (i.e., don't 8547 # use $as_me), people would be surprised to read: 8548 # /* config.h. Generated by config.status. */ 8549 if test x"$ac_file" = x-; then 8550 echo "/* Generated by configure. */" >$tmp/config.h 8551 else 8552 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 8553 fi 8554 cat $tmp/in >>$tmp/config.h 8555 rm -f $tmp/in 8556 if test x"$ac_file" != x-; then 8557 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then 8558 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 8559echo "$as_me: $ac_file is unchanged" >&6;} 8560 else 8561 ac_dir=`(dirname "$ac_file") 2>/dev/null || 8562$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8563 X"$ac_file" : 'X\(//\)[^/]' \| \ 8564 X"$ac_file" : 'X\(//\)$' \| \ 8565 X"$ac_file" : 'X\(/\)' \| \ 8566 . : '\(.\)' 2>/dev/null || 8567echo X"$ac_file" | 8568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 8569 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 8570 /^X\(\/\/\)$/{ s//\1/; q; } 8571 /^X\(\/\).*/{ s//\1/; q; } 8572 s/.*/./; q'` 8573 { if $as_mkdir_p; then 8574 mkdir -p "$ac_dir" 8575 else 8576 as_dir="$ac_dir" 8577 as_dirs= 8578 while test ! -d "$as_dir"; do 8579 as_dirs="$as_dir $as_dirs" 8580 as_dir=`(dirname "$as_dir") 2>/dev/null || 8581$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8582 X"$as_dir" : 'X\(//\)[^/]' \| \ 8583 X"$as_dir" : 'X\(//\)$' \| \ 8584 X"$as_dir" : 'X\(/\)' \| \ 8585 . : '\(.\)' 2>/dev/null || 8586echo X"$as_dir" | 8587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 8588 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 8589 /^X\(\/\/\)$/{ s//\1/; q; } 8590 /^X\(\/\).*/{ s//\1/; q; } 8591 s/.*/./; q'` 8592 done 8593 test ! -n "$as_dirs" || mkdir $as_dirs 8594 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 8595echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 8596 { (exit 1); exit 1; }; }; } 8597 8598 rm -f $ac_file 8599 mv $tmp/config.h $ac_file 8600 fi 8601 else 8602 cat $tmp/config.h 8603 rm -f $tmp/config.h 8604 fi 8605done 8606_ACEOF 8607 8608cat >>$CONFIG_STATUS <<\_ACEOF 8609 8610{ (exit 0); exit 0; } 8611_ACEOF 8612chmod +x $CONFIG_STATUS 8613ac_clean_files=$ac_clean_files_save 8614 8615 8616# configure is writing to config.log, and then calls config.status. 8617# config.status does its own redirection, appending to config.log. 8618# Unfortunately, on DOS this fails, as config.log is still kept open 8619# by configure, so config.status won't be able to write to it; its 8620# output is simply discarded. So we exec the FD to /dev/null, 8621# effectively closing config.log, so it can be properly (re)opened and 8622# appended to by config.status. When coming back to configure, we 8623# need to make the FD available again. 8624if test "$no_create" != yes; then 8625 ac_cs_success=: 8626 exec 5>/dev/null 8627 $SHELL $CONFIG_STATUS || ac_cs_success=false 8628 exec 5>>config.log 8629 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 8630 # would make configure fail if this is the last instruction. 8631 $ac_cs_success || { (exit 1); exit 1; } 8632fi 8633 8634