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