|
|
1.1 root 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.1.1.22! root 3: # Generated by GNU Autoconf 2.61 for UAE 0.8.26.
1.1 root 4: #
1.1.1.22! root 5: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
! 6: # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1.1 root 7: # This configure script is free software; the Free Software Foundation
8: # gives unlimited permission to copy, distribute and modify it.
1.1.1.19 root 9: ## --------------------- ##
10: ## M4sh Initialization. ##
11: ## --------------------- ##
12:
1.1.1.22! root 13: # Be more Bourne compatible
! 14: DUALCASE=1; export DUALCASE # for MKS sh
1.1.1.19 root 15: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16: emulate sh
17: NULLCMD=:
18: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19: # is contrary to our usage. Disable this feature.
20: alias -g '${1+"$@"}'='"$@"'
1.1.1.22! root 21: setopt NO_GLOB_SUBST
! 22: else
! 23: case `(set -o) 2>/dev/null` in
! 24: *posix*) set -o posix ;;
! 25: esac
! 26:
! 27: fi
! 28:
! 29:
! 30:
! 31:
! 32: # PATH needs CR
! 33: # Avoid depending upon Character Ranges.
! 34: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
! 35: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
! 36: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
! 37: as_cr_digits='0123456789'
! 38: as_cr_alnum=$as_cr_Letters$as_cr_digits
! 39:
! 40: # The user is always right.
! 41: if test "${PATH_SEPARATOR+set}" != set; then
! 42: echo "#! /bin/sh" >conf$$.sh
! 43: echo "exit 0" >>conf$$.sh
! 44: chmod +x conf$$.sh
! 45: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
! 46: PATH_SEPARATOR=';'
! 47: else
! 48: PATH_SEPARATOR=:
! 49: fi
! 50: rm -f conf$$.sh
1.1.1.19 root 51: fi
52:
53: # Support unset when possible.
54: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55: as_unset=unset
56: else
57: as_unset=false
58: fi
59:
60:
1.1.1.22! root 61: # IFS
! 62: # We need space, tab and new line, in precisely that order. Quoting is
! 63: # there to prevent editors from complaining about space-tab.
! 64: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
! 65: # splitting by setting IFS to empty value.)
! 66: as_nl='
! 67: '
! 68: IFS=" "" $as_nl"
! 69:
! 70: # Find who we are. Look in the path if we contain no directory separator.
! 71: case $0 in
! 72: *[\\/]* ) as_myself=$0 ;;
! 73: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 74: for as_dir in $PATH
! 75: do
! 76: IFS=$as_save_IFS
! 77: test -z "$as_dir" && as_dir=.
! 78: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
! 79: done
! 80: IFS=$as_save_IFS
! 81:
! 82: ;;
! 83: esac
! 84: # We did not find ourselves, most probably we were run as `sh COMMAND'
! 85: # in which case we are not to be found in the path.
! 86: if test "x$as_myself" = x; then
! 87: as_myself=$0
! 88: fi
! 89: if test ! -f "$as_myself"; then
! 90: echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
! 91: { (exit 1); exit 1; }
! 92: fi
! 93:
1.1.1.19 root 94: # Work around bugs in pre-3.0 UWIN ksh.
1.1.1.22! root 95: for as_var in ENV MAIL MAILPATH
! 96: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
! 97: done
1.1.1.19 root 98: PS1='$ '
99: PS2='> '
100: PS4='+ '
101:
102: # NLS nuisances.
103: for as_var in \
104: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106: LC_TELEPHONE LC_TIME
107: do
108: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109: eval $as_var=C; export $as_var
110: else
1.1.1.22! root 111: ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
1.1.1.19 root 112: fi
113: done
114:
115: # Required to use basename.
1.1.1.22! root 116: if expr a : '\(a\)' >/dev/null 2>&1 &&
! 117: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.1.1.19 root 118: as_expr=expr
119: else
120: as_expr=false
121: fi
122:
1.1.1.22! root 123: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.1.1.19 root 124: as_basename=basename
125: else
126: as_basename=false
127: fi
128:
129:
130: # Name of the executable.
1.1.1.22! root 131: as_me=`$as_basename -- "$0" ||
1.1.1.19 root 132: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133: X"$0" : 'X\(//\)$' \| \
1.1.1.22! root 134: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.1.1.19 root 135: echo X/"$0" |
1.1.1.22! root 136: sed '/^.*\/\([^/][^/]*\)\/*$/{
! 137: s//\1/
! 138: q
! 139: }
! 140: /^X\/\(\/\/\)$/{
! 141: s//\1/
! 142: q
! 143: }
! 144: /^X\/\(\/\).*/{
! 145: s//\1/
! 146: q
! 147: }
! 148: s/.*/./; q'`
1.1.1.19 root 149:
1.1.1.22! root 150: # CDPATH.
! 151: $as_unset CDPATH
1.1.1.19 root 152:
153:
1.1.1.22! root 154: if test "x$CONFIG_SHELL" = x; then
! 155: if (eval ":") 2>/dev/null; then
! 156: as_have_required=yes
! 157: else
! 158: as_have_required=no
! 159: fi
! 160:
! 161: if test $as_have_required = yes && (eval ":
! 162: (as_func_return () {
! 163: (exit \$1)
! 164: }
! 165: as_func_success () {
! 166: as_func_return 0
! 167: }
! 168: as_func_failure () {
! 169: as_func_return 1
! 170: }
! 171: as_func_ret_success () {
! 172: return 0
! 173: }
! 174: as_func_ret_failure () {
! 175: return 1
! 176: }
! 177:
! 178: exitcode=0
! 179: if as_func_success; then
! 180: :
! 181: else
! 182: exitcode=1
! 183: echo as_func_success failed.
1.1.1.19 root 184: fi
185:
1.1.1.22! root 186: if as_func_failure; then
! 187: exitcode=1
! 188: echo as_func_failure succeeded.
! 189: fi
1.1.1.19 root 190:
1.1.1.22! root 191: if as_func_ret_success; then
! 192: :
! 193: else
! 194: exitcode=1
! 195: echo as_func_ret_success failed.
! 196: fi
1.1.1.19 root 197:
1.1.1.22! root 198: if as_func_ret_failure; then
! 199: exitcode=1
! 200: echo as_func_ret_failure succeeded.
! 201: fi
! 202:
! 203: if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
! 204: :
! 205: else
! 206: exitcode=1
! 207: echo positional parameters were not saved.
! 208: fi
! 209:
! 210: test \$exitcode = 0) || { (exit 1); exit 1; }
! 211:
! 212: (
! 213: as_lineno_1=\$LINENO
! 214: as_lineno_2=\$LINENO
! 215: test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
! 216: test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
! 217: ") 2> /dev/null; then
! 218: :
! 219: else
! 220: as_candidate_shells=
1.1.1.19 root 221: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223: do
224: IFS=$as_save_IFS
225: test -z "$as_dir" && as_dir=.
1.1.1.22! root 226: case $as_dir in
1.1.1.19 root 227: /*)
1.1.1.22! root 228: for as_base in sh bash ksh sh5; do
! 229: as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
! 230: done;;
! 231: esac
! 232: done
! 233: IFS=$as_save_IFS
! 234:
! 235:
! 236: for as_shell in $as_candidate_shells $SHELL; do
! 237: # Try only shells that exist, to save several forks.
! 238: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
! 239: { ("$as_shell") 2> /dev/null <<\_ASEOF
! 240: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
! 241: emulate sh
! 242: NULLCMD=:
! 243: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
! 244: # is contrary to our usage. Disable this feature.
! 245: alias -g '${1+"$@"}'='"$@"'
! 246: setopt NO_GLOB_SUBST
! 247: else
! 248: case `(set -o) 2>/dev/null` in
! 249: *posix*) set -o posix ;;
! 250: esac
! 251:
! 252: fi
! 253:
! 254:
! 255: :
! 256: _ASEOF
! 257: }; then
! 258: CONFIG_SHELL=$as_shell
! 259: as_have_required=yes
! 260: if { "$as_shell" 2> /dev/null <<\_ASEOF
! 261: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
! 262: emulate sh
! 263: NULLCMD=:
! 264: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
! 265: # is contrary to our usage. Disable this feature.
! 266: alias -g '${1+"$@"}'='"$@"'
! 267: setopt NO_GLOB_SUBST
! 268: else
! 269: case `(set -o) 2>/dev/null` in
! 270: *posix*) set -o posix ;;
! 271: esac
! 272:
! 273: fi
! 274:
! 275:
! 276: :
! 277: (as_func_return () {
! 278: (exit $1)
! 279: }
! 280: as_func_success () {
! 281: as_func_return 0
! 282: }
! 283: as_func_failure () {
! 284: as_func_return 1
! 285: }
! 286: as_func_ret_success () {
! 287: return 0
! 288: }
! 289: as_func_ret_failure () {
! 290: return 1
! 291: }
! 292:
! 293: exitcode=0
! 294: if as_func_success; then
! 295: :
! 296: else
! 297: exitcode=1
! 298: echo as_func_success failed.
! 299: fi
! 300:
! 301: if as_func_failure; then
! 302: exitcode=1
! 303: echo as_func_failure succeeded.
! 304: fi
! 305:
! 306: if as_func_ret_success; then
! 307: :
! 308: else
! 309: exitcode=1
! 310: echo as_func_ret_success failed.
! 311: fi
! 312:
! 313: if as_func_ret_failure; then
! 314: exitcode=1
! 315: echo as_func_ret_failure succeeded.
! 316: fi
! 317:
! 318: if ( set x; as_func_ret_success y && test x = "$1" ); then
! 319: :
! 320: else
! 321: exitcode=1
! 322: echo positional parameters were not saved.
! 323: fi
! 324:
! 325: test $exitcode = 0) || { (exit 1); exit 1; }
! 326:
! 327: (
1.1.1.19 root 328: as_lineno_1=$LINENO
329: as_lineno_2=$LINENO
330: test "x$as_lineno_1" != "x$as_lineno_2" &&
1.1.1.22! root 331: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
! 332:
! 333: _ASEOF
! 334: }; then
! 335: break
! 336: fi
! 337:
! 338: fi
! 339:
! 340: done
! 341:
! 342: if test "x$CONFIG_SHELL" != x; then
! 343: for as_var in BASH_ENV ENV
! 344: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
! 345: done
! 346: export CONFIG_SHELL
! 347: exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
! 348: fi
! 349:
! 350:
! 351: if test $as_have_required = no; then
! 352: echo This script requires a shell more modern than all the
! 353: echo shells that I found on your system. Please install a
! 354: echo modern shell, or manually run the script under such a
! 355: echo shell if you do have one.
! 356: { (exit 1); exit 1; }
! 357: fi
! 358:
! 359:
! 360: fi
! 361:
! 362: fi
! 363:
! 364:
! 365:
! 366: (eval "as_func_return () {
! 367: (exit \$1)
! 368: }
! 369: as_func_success () {
! 370: as_func_return 0
! 371: }
! 372: as_func_failure () {
! 373: as_func_return 1
! 374: }
! 375: as_func_ret_success () {
! 376: return 0
! 377: }
! 378: as_func_ret_failure () {
! 379: return 1
! 380: }
! 381:
! 382: exitcode=0
! 383: if as_func_success; then
! 384: :
! 385: else
! 386: exitcode=1
! 387: echo as_func_success failed.
! 388: fi
! 389:
! 390: if as_func_failure; then
! 391: exitcode=1
! 392: echo as_func_failure succeeded.
! 393: fi
! 394:
! 395: if as_func_ret_success; then
! 396: :
! 397: else
! 398: exitcode=1
! 399: echo as_func_ret_success failed.
! 400: fi
! 401:
! 402: if as_func_ret_failure; then
! 403: exitcode=1
! 404: echo as_func_ret_failure succeeded.
! 405: fi
! 406:
! 407: if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
! 408: :
! 409: else
! 410: exitcode=1
! 411: echo positional parameters were not saved.
! 412: fi
! 413:
! 414: test \$exitcode = 0") || {
! 415: echo No shell found that supports shell functions.
! 416: echo Please tell [email protected] about your system,
! 417: echo including any error possibly output before this
! 418: echo message
! 419: }
! 420:
! 421:
! 422:
! 423: as_lineno_1=$LINENO
! 424: as_lineno_2=$LINENO
! 425: test "x$as_lineno_1" != "x$as_lineno_2" &&
! 426: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
1.1.1.19 root 427:
428: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429: # uniformly replaced by the line number. The first 'sed' inserts a
1.1.1.22! root 430: # line-number line after each line using $LINENO; the second 'sed'
! 431: # does the real work. The second script uses 'N' to pair each
! 432: # line-number line with the line containing $LINENO, and appends
! 433: # trailing '-' during substitution so that $LINENO is not a special
! 434: # case at line end.
1.1.1.19 root 435: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
1.1.1.22! root 436: # scripts with optimization help from Paolo Bonzini. Blame Lee
! 437: # E. McMahon (1931-1989) for sed's syntax. :-)
! 438: sed -n '
! 439: p
! 440: /[$]LINENO/=
! 441: ' <$as_myself |
1.1.1.19 root 442: sed '
1.1.1.22! root 443: s/[$]LINENO.*/&-/
! 444: t lineno
! 445: b
! 446: :lineno
1.1.1.19 root 447: N
1.1.1.22! root 448: :loop
! 449: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.1.1.19 root 450: t loop
1.1.1.22! root 451: s/-\n.*//
1.1.1.19 root 452: ' >$as_me.lineno &&
1.1.1.22! root 453: chmod +x "$as_me.lineno" ||
1.1.1.19 root 454: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455: { (exit 1); exit 1; }; }
456:
457: # Don't try to exec as it changes $[0], causing all sort of problems
458: # (the dirname of $[0] is not the place where we might find the
1.1.1.22! root 459: # original and so on. Autoconf is especially sensitive to this).
! 460: . "./$as_me.lineno"
1.1.1.19 root 461: # Exit status is that of the last command.
462: exit
463: }
464:
465:
1.1.1.22! root 466: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
! 467: as_dirname=dirname
! 468: else
! 469: as_dirname=false
! 470: fi
! 471:
! 472: ECHO_C= ECHO_N= ECHO_T=
! 473: case `echo -n x` in
! 474: -n*)
! 475: case `echo 'x\c'` in
! 476: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
! 477: *) ECHO_C='\c';;
! 478: esac;;
! 479: *)
! 480: ECHO_N='-n';;
1.1.1.19 root 481: esac
1.1 root 482:
1.1.1.22! root 483: if expr a : '\(a\)' >/dev/null 2>&1 &&
! 484: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.1.1.19 root 485: as_expr=expr
486: else
487: as_expr=false
488: fi
489:
490: rm -f conf$$ conf$$.exe conf$$.file
1.1.1.22! root 491: if test -d conf$$.dir; then
! 492: rm -f conf$$.dir/conf$$.file
! 493: else
! 494: rm -f conf$$.dir
! 495: mkdir conf$$.dir
! 496: fi
1.1.1.19 root 497: echo >conf$$.file
498: if ln -s conf$$.file conf$$ 2>/dev/null; then
1.1.1.22! root 499: as_ln_s='ln -s'
! 500: # ... but there are two gotchas:
! 501: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
! 502: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
! 503: # In both cases, we have to default to `cp -p'.
! 504: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.1.1.19 root 505: as_ln_s='cp -p'
506: elif ln conf$$.file conf$$ 2>/dev/null; then
507: as_ln_s=ln
508: else
509: as_ln_s='cp -p'
510: fi
1.1.1.22! root 511: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
! 512: rmdir conf$$.dir 2>/dev/null
1.1.1.19 root 513:
514: if mkdir -p . 2>/dev/null; then
515: as_mkdir_p=:
516: else
517: test -d ./-p && rmdir ./-p
518: as_mkdir_p=false
519: fi
520:
1.1.1.22! root 521: if test -x / >/dev/null 2>&1; then
! 522: as_test_x='test -x'
! 523: else
! 524: if ls -dL / >/dev/null 2>&1; then
! 525: as_ls_L_option=L
! 526: else
! 527: as_ls_L_option=
! 528: fi
! 529: as_test_x='
! 530: eval sh -c '\''
! 531: if test -d "$1"; then
! 532: test -d "$1/.";
! 533: else
! 534: case $1 in
! 535: -*)set "./$1";;
! 536: esac;
! 537: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
! 538: ???[sx]*):;;*)false;;esac;fi
! 539: '\'' sh
! 540: '
! 541: fi
! 542: as_executable_p=$as_test_x
1.1.1.19 root 543:
544: # Sed expression to map a string onto a valid CPP name.
545: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546:
547: # Sed expression to map a string onto a valid variable name.
548: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549:
550:
551:
1.1.1.22! root 552: exec 7<&0 </dev/null 6>&1
1.1.1.19 root 553:
554: # Name of the host.
555: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556: # so uname gets run too.
557: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558:
559: #
560: # Initializations.
561: #
1.1 root 562: ac_default_prefix=/usr/local
1.1.1.22! root 563: ac_clean_files=
1.1.1.19 root 564: ac_config_libobj_dir=.
1.1.1.22! root 565: LIBOBJS=
1.1.1.19 root 566: cross_compiling=no
567: subdirs=
568: MFLAGS=
569: MAKEFLAGS=
570: SHELL=${CONFIG_SHELL-/bin/sh}
571:
572: # Identity of this package.
1.1.1.22! root 573: PACKAGE_NAME='UAE'
! 574: PACKAGE_TARNAME='uae'
! 575: PACKAGE_VERSION='0.8.26'
! 576: PACKAGE_STRING='UAE 0.8.26'
! 577: PACKAGE_BUGREPORT=''
1.1.1.19 root 578:
579: ac_unique_file="amiga/source/transdisk.c"
580: # Factoring default headers for most tests.
581: ac_includes_default="\
582: #include <stdio.h>
1.1.1.22! root 583: #ifdef HAVE_SYS_TYPES_H
1.1.1.19 root 584: # include <sys/types.h>
585: #endif
1.1.1.22! root 586: #ifdef HAVE_SYS_STAT_H
1.1.1.19 root 587: # include <sys/stat.h>
588: #endif
1.1.1.22! root 589: #ifdef STDC_HEADERS
1.1.1.19 root 590: # include <stdlib.h>
591: # include <stddef.h>
592: #else
1.1.1.22! root 593: # ifdef HAVE_STDLIB_H
1.1.1.19 root 594: # include <stdlib.h>
595: # endif
596: #endif
1.1.1.22! root 597: #ifdef HAVE_STRING_H
! 598: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
1.1.1.19 root 599: # include <memory.h>
600: # endif
601: # include <string.h>
602: #endif
1.1.1.22! root 603: #ifdef HAVE_STRINGS_H
1.1.1.19 root 604: # include <strings.h>
605: #endif
1.1.1.22! root 606: #ifdef HAVE_INTTYPES_H
1.1.1.19 root 607: # include <inttypes.h>
608: #endif
1.1.1.22! root 609: #ifdef HAVE_STDINT_H
! 610: # include <stdint.h>
! 611: #endif
! 612: #ifdef HAVE_UNISTD_H
1.1.1.19 root 613: # include <unistd.h>
614: #endif"
615:
1.1.1.22! root 616: ac_header_list=
! 617: ac_subst_vars='SHELL
! 618: PATH_SEPARATOR
! 619: PACKAGE_NAME
! 620: PACKAGE_TARNAME
! 621: PACKAGE_VERSION
! 622: PACKAGE_STRING
! 623: PACKAGE_BUGREPORT
! 624: exec_prefix
! 625: prefix
! 626: program_transform_name
! 627: bindir
! 628: sbindir
! 629: libexecdir
! 630: datarootdir
! 631: datadir
! 632: sysconfdir
! 633: sharedstatedir
! 634: localstatedir
! 635: includedir
! 636: oldincludedir
! 637: docdir
! 638: infodir
! 639: htmldir
! 640: dvidir
! 641: pdfdir
! 642: psdir
! 643: libdir
! 644: localedir
! 645: mandir
! 646: DEFS
! 647: ECHO_C
! 648: ECHO_N
! 649: ECHO_T
! 650: LIBS
! 651: build_alias
! 652: host_alias
! 653: target_alias
! 654: CC
! 655: CFLAGS
! 656: LDFLAGS
! 657: CPPFLAGS
! 658: ac_ct_CC
! 659: EXEEXT
! 660: OBJEXT
! 661: CPP
! 662: SET_MAKE
! 663: MAKEDEPPRG
! 664: FILEPRG
! 665: WRCPRG
! 666: RCLPRG
! 667: SDL_CONFIG
! 668: GREP
! 669: EGREP
! 670: build
! 671: build_cpu
! 672: build_vendor
! 673: build_os
! 674: host
! 675: host_cpu
! 676: host_vendor
! 677: host_os
! 678: XMKMF
! 679: X_CFLAGS
! 680: X_PRE_LIBS
! 681: X_LIBS
! 682: X_EXTRA_LIBS
! 683: LIBOBJS
! 684: PKG_CONFIG
! 685: GTK_CFLAGS
! 686: GTK_LIBS
! 687: ac_cv_c_inline
! 688: NO_SCHED_CFLAGS
! 689: NO_REORDER_CFLAGS
! 690: LIBRARIES
! 691: TARGET
! 692: GFXOBJS
! 693: RESOBJS
! 694: ASMOBJS
! 695: SCSIOBJS
! 696: CPUOBJS
! 697: DEBUGOBJS
! 698: FSDBOBJS
! 699: MATHLIB
! 700: SHM_SUPPORT_LINKS
! 701: top_srcdir
! 702: LTLIBOBJS'
1.1.1.19 root 703: ac_subst_files=''
1.1.1.22! root 704: ac_precious_vars='build_alias
! 705: host_alias
! 706: target_alias
! 707: CC
! 708: CFLAGS
! 709: LDFLAGS
! 710: LIBS
! 711: CPPFLAGS
! 712: CPP
! 713: XMKMF'
! 714:
1.1 root 715:
716: # Initialize some variables set by options.
1.1.1.19 root 717: ac_init_help=
718: ac_init_version=false
1.1 root 719: # The variables have the same names as the options, with
720: # dashes changed to underlines.
1.1.1.19 root 721: cache_file=/dev/null
1.1 root 722: exec_prefix=NONE
723: no_create=
724: no_recursion=
725: prefix=NONE
726: program_prefix=NONE
727: program_suffix=NONE
728: program_transform_name=s,x,x,
729: silent=
730: site=
731: srcdir=
732: verbose=
733: x_includes=NONE
734: x_libraries=NONE
1.1.1.19 root 735:
736: # Installation directory options.
737: # These are left unexpanded so users can "make install exec_prefix=/foo"
738: # and all the variables that are supposed to be based on exec_prefix
739: # by default will actually change.
740: # Use braces instead of parens because sh, perl, etc. also accept them.
1.1.1.22! root 741: # (The list follows the same order as the GNU Coding Standards.)
1.1 root 742: bindir='${exec_prefix}/bin'
743: sbindir='${exec_prefix}/sbin'
744: libexecdir='${exec_prefix}/libexec'
1.1.1.22! root 745: datarootdir='${prefix}/share'
! 746: datadir='${datarootdir}'
1.1 root 747: sysconfdir='${prefix}/etc'
748: sharedstatedir='${prefix}/com'
749: localstatedir='${prefix}/var'
750: includedir='${prefix}/include'
751: oldincludedir='/usr/include'
1.1.1.22! root 752: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
! 753: infodir='${datarootdir}/info'
! 754: htmldir='${docdir}'
! 755: dvidir='${docdir}'
! 756: pdfdir='${docdir}'
! 757: psdir='${docdir}'
! 758: libdir='${exec_prefix}/lib'
! 759: localedir='${datarootdir}/locale'
! 760: mandir='${datarootdir}/man'
1.1 root 761:
762: ac_prev=
1.1.1.22! root 763: ac_dashdash=
1.1 root 764: for ac_option
765: do
766: # If the previous option needs an argument, assign it.
767: if test -n "$ac_prev"; then
1.1.1.22! root 768: eval $ac_prev=\$ac_option
1.1 root 769: ac_prev=
770: continue
771: fi
772:
1.1.1.22! root 773: case $ac_option in
! 774: *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
! 775: *) ac_optarg=yes ;;
! 776: esac
1.1 root 777:
778: # Accept the important Cygnus configure options, so we can diagnose typos.
779:
1.1.1.22! root 780: case $ac_dashdash$ac_option in
! 781: --)
! 782: ac_dashdash=yes ;;
1.1 root 783:
784: -bindir | --bindir | --bindi | --bind | --bin | --bi)
785: ac_prev=bindir ;;
786: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.1.1.19 root 787: bindir=$ac_optarg ;;
1.1 root 788:
789: -build | --build | --buil | --bui | --bu)
1.1.1.19 root 790: ac_prev=build_alias ;;
1.1 root 791: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.1.1.19 root 792: build_alias=$ac_optarg ;;
1.1 root 793:
794: -cache-file | --cache-file | --cache-fil | --cache-fi \
795: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
796: ac_prev=cache_file ;;
797: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
798: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.1.1.19 root 799: cache_file=$ac_optarg ;;
800:
801: --config-cache | -C)
802: cache_file=config.cache ;;
1.1 root 803:
1.1.1.22! root 804: -datadir | --datadir | --datadi | --datad)
1.1 root 805: ac_prev=datadir ;;
1.1.1.22! root 806: -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.1.1.19 root 807: datadir=$ac_optarg ;;
1.1 root 808:
1.1.1.22! root 809: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
! 810: | --dataroo | --dataro | --datar)
! 811: ac_prev=datarootdir ;;
! 812: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
! 813: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
! 814: datarootdir=$ac_optarg ;;
! 815:
1.1 root 816: -disable-* | --disable-*)
1.1.1.19 root 817: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 root 818: # Reject names that are not valid shell variable names.
1.1.1.22! root 819: expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.1.1.19 root 820: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
821: { (exit 1); exit 1; }; }
1.1.1.22! root 822: ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
! 823: eval enable_$ac_feature=no ;;
! 824:
! 825: -docdir | --docdir | --docdi | --doc | --do)
! 826: ac_prev=docdir ;;
! 827: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
! 828: docdir=$ac_optarg ;;
! 829:
! 830: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
! 831: ac_prev=dvidir ;;
! 832: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
! 833: dvidir=$ac_optarg ;;
1.1 root 834:
835: -enable-* | --enable-*)
1.1.1.19 root 836: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 root 837: # Reject names that are not valid shell variable names.
1.1.1.22! root 838: expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.1.1.19 root 839: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
840: { (exit 1); exit 1; }; }
1.1.1.22! root 841: ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
! 842: eval enable_$ac_feature=\$ac_optarg ;;
1.1 root 843:
844: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
845: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
846: | --exec | --exe | --ex)
847: ac_prev=exec_prefix ;;
848: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
849: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
850: | --exec=* | --exe=* | --ex=*)
1.1.1.19 root 851: exec_prefix=$ac_optarg ;;
1.1 root 852:
853: -gas | --gas | --ga | --g)
854: # Obsolete; use --with-gas.
855: with_gas=yes ;;
856:
1.1.1.19 root 857: -help | --help | --hel | --he | -h)
858: ac_init_help=long ;;
859: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
860: ac_init_help=recursive ;;
861: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
862: ac_init_help=short ;;
1.1 root 863:
864: -host | --host | --hos | --ho)
1.1.1.19 root 865: ac_prev=host_alias ;;
1.1 root 866: -host=* | --host=* | --hos=* | --ho=*)
1.1.1.19 root 867: host_alias=$ac_optarg ;;
1.1 root 868:
1.1.1.22! root 869: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
! 870: ac_prev=htmldir ;;
! 871: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
! 872: | --ht=*)
! 873: htmldir=$ac_optarg ;;
! 874:
1.1 root 875: -includedir | --includedir | --includedi | --included | --include \
876: | --includ | --inclu | --incl | --inc)
877: ac_prev=includedir ;;
878: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
879: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.1.1.19 root 880: includedir=$ac_optarg ;;
1.1 root 881:
882: -infodir | --infodir | --infodi | --infod | --info | --inf)
883: ac_prev=infodir ;;
884: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.1.1.19 root 885: infodir=$ac_optarg ;;
1.1 root 886:
887: -libdir | --libdir | --libdi | --libd)
888: ac_prev=libdir ;;
889: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.1.1.19 root 890: libdir=$ac_optarg ;;
1.1 root 891:
892: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
893: | --libexe | --libex | --libe)
894: ac_prev=libexecdir ;;
895: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
896: | --libexe=* | --libex=* | --libe=*)
1.1.1.19 root 897: libexecdir=$ac_optarg ;;
1.1 root 898:
1.1.1.22! root 899: -localedir | --localedir | --localedi | --localed | --locale)
! 900: ac_prev=localedir ;;
! 901: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
! 902: localedir=$ac_optarg ;;
! 903:
1.1 root 904: -localstatedir | --localstatedir | --localstatedi | --localstated \
1.1.1.22! root 905: | --localstate | --localstat | --localsta | --localst | --locals)
1.1 root 906: ac_prev=localstatedir ;;
907: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.1.1.22! root 908: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.1.1.19 root 909: localstatedir=$ac_optarg ;;
1.1 root 910:
911: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
912: ac_prev=mandir ;;
913: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.1.1.19 root 914: mandir=$ac_optarg ;;
1.1 root 915:
916: -nfp | --nfp | --nf)
917: # Obsolete; use --without-fp.
918: with_fp=no ;;
919:
920: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.1.1.19 root 921: | --no-cr | --no-c | -n)
1.1 root 922: no_create=yes ;;
923:
924: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
925: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
926: no_recursion=yes ;;
927:
928: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
929: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
930: | --oldin | --oldi | --old | --ol | --o)
931: ac_prev=oldincludedir ;;
932: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
933: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
934: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.1.1.19 root 935: oldincludedir=$ac_optarg ;;
1.1 root 936:
937: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
938: ac_prev=prefix ;;
939: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.1.1.19 root 940: prefix=$ac_optarg ;;
1.1 root 941:
942: -program-prefix | --program-prefix | --program-prefi | --program-pref \
943: | --program-pre | --program-pr | --program-p)
944: ac_prev=program_prefix ;;
945: -program-prefix=* | --program-prefix=* | --program-prefi=* \
946: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.1.1.19 root 947: program_prefix=$ac_optarg ;;
1.1 root 948:
949: -program-suffix | --program-suffix | --program-suffi | --program-suff \
950: | --program-suf | --program-su | --program-s)
951: ac_prev=program_suffix ;;
952: -program-suffix=* | --program-suffix=* | --program-suffi=* \
953: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.1.1.19 root 954: program_suffix=$ac_optarg ;;
1.1 root 955:
956: -program-transform-name | --program-transform-name \
957: | --program-transform-nam | --program-transform-na \
958: | --program-transform-n | --program-transform- \
959: | --program-transform | --program-transfor \
960: | --program-transfo | --program-transf \
961: | --program-trans | --program-tran \
962: | --progr-tra | --program-tr | --program-t)
963: ac_prev=program_transform_name ;;
964: -program-transform-name=* | --program-transform-name=* \
965: | --program-transform-nam=* | --program-transform-na=* \
966: | --program-transform-n=* | --program-transform-=* \
967: | --program-transform=* | --program-transfor=* \
968: | --program-transfo=* | --program-transf=* \
969: | --program-trans=* | --program-tran=* \
970: | --progr-tra=* | --program-tr=* | --program-t=*)
1.1.1.19 root 971: program_transform_name=$ac_optarg ;;
1.1 root 972:
1.1.1.22! root 973: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
! 974: ac_prev=pdfdir ;;
! 975: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
! 976: pdfdir=$ac_optarg ;;
! 977:
! 978: -psdir | --psdir | --psdi | --psd | --ps)
! 979: ac_prev=psdir ;;
! 980: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
! 981: psdir=$ac_optarg ;;
! 982:
1.1 root 983: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
984: | -silent | --silent | --silen | --sile | --sil)
985: silent=yes ;;
986:
987: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
988: ac_prev=sbindir ;;
989: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
990: | --sbi=* | --sb=*)
1.1.1.19 root 991: sbindir=$ac_optarg ;;
1.1 root 992:
993: -sharedstatedir | --sharedstatedir | --sharedstatedi \
994: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
995: | --sharedst | --shareds | --shared | --share | --shar \
996: | --sha | --sh)
997: ac_prev=sharedstatedir ;;
998: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
999: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1000: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1001: | --sha=* | --sh=*)
1.1.1.19 root 1002: sharedstatedir=$ac_optarg ;;
1.1 root 1003:
1004: -site | --site | --sit)
1005: ac_prev=site ;;
1006: -site=* | --site=* | --sit=*)
1.1.1.19 root 1007: site=$ac_optarg ;;
1.1 root 1008:
1009: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1010: ac_prev=srcdir ;;
1011: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.1.1.19 root 1012: srcdir=$ac_optarg ;;
1.1 root 1013:
1014: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1015: | --syscon | --sysco | --sysc | --sys | --sy)
1016: ac_prev=sysconfdir ;;
1017: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1018: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.1.1.19 root 1019: sysconfdir=$ac_optarg ;;
1.1 root 1020:
1021: -target | --target | --targe | --targ | --tar | --ta | --t)
1.1.1.19 root 1022: ac_prev=target_alias ;;
1.1 root 1023: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.1.1.19 root 1024: target_alias=$ac_optarg ;;
1.1 root 1025:
1026: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1027: verbose=yes ;;
1028:
1.1.1.19 root 1029: -version | --version | --versio | --versi | --vers | -V)
1030: ac_init_version=: ;;
1.1 root 1031:
1032: -with-* | --with-*)
1.1.1.19 root 1033: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 root 1034: # Reject names that are not valid shell variable names.
1.1.1.22! root 1035: expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.1.1.19 root 1036: { echo "$as_me: error: invalid package name: $ac_package" >&2
1037: { (exit 1); exit 1; }; }
1.1.1.22! root 1038: ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
! 1039: eval with_$ac_package=\$ac_optarg ;;
1.1 root 1040:
1041: -without-* | --without-*)
1.1.1.19 root 1042: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 root 1043: # Reject names that are not valid shell variable names.
1.1.1.22! root 1044: expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.1.1.19 root 1045: { echo "$as_me: error: invalid package name: $ac_package" >&2
1046: { (exit 1); exit 1; }; }
1.1.1.22! root 1047: ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
! 1048: eval with_$ac_package=no ;;
1.1 root 1049:
1050: --x)
1051: # Obsolete; use --with-x.
1052: with_x=yes ;;
1053:
1054: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1055: | --x-incl | --x-inc | --x-in | --x-i)
1056: ac_prev=x_includes ;;
1057: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1058: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.1.1.19 root 1059: x_includes=$ac_optarg ;;
1.1 root 1060:
1061: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1062: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1063: ac_prev=x_libraries ;;
1064: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1065: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.1.1.19 root 1066: x_libraries=$ac_optarg ;;
1.1 root 1067:
1.1.1.19 root 1068: -*) { echo "$as_me: error: unrecognized option: $ac_option
1069: Try \`$0 --help' for more information." >&2
1070: { (exit 1); exit 1; }; }
1.1 root 1071: ;;
1072:
1.1.1.19 root 1073: *=*)
1074: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1075: # Reject names that are not valid shell variable names.
1076: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1077: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1078: { (exit 1); exit 1; }; }
1.1.1.22! root 1079: eval $ac_envvar=\$ac_optarg
1.1.1.19 root 1080: export $ac_envvar ;;
1081:
1.1 root 1082: *)
1.1.1.19 root 1083: # FIXME: should be removed in autoconf 3.0.
1084: echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1085: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1086: echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1087: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1.1 root 1088: ;;
1089:
1090: esac
1091: done
1092:
1093: if test -n "$ac_prev"; then
1.1.1.19 root 1094: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1095: { echo "$as_me: error: missing argument to $ac_option" >&2
1096: { (exit 1); exit 1; }; }
1.1 root 1097: fi
1098:
1.1.1.22! root 1099: # Be sure to have absolute directory names.
! 1100: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
! 1101: datadir sysconfdir sharedstatedir localstatedir includedir \
! 1102: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
! 1103: libdir localedir mandir
1.1 root 1104: do
1.1.1.22! root 1105: eval ac_val=\$$ac_var
1.1.1.19 root 1106: case $ac_val in
1.1.1.22! root 1107: [\\/$]* | ?:[\\/]* ) continue;;
! 1108: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1.1 root 1109: esac
1.1.1.22! root 1110: { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
! 1111: { (exit 1); exit 1; }; }
1.1 root 1112: done
1113:
1.1.1.19 root 1114: # There might be people who depend on the old broken behavior: `$host'
1115: # used to hold the argument of --host etc.
1116: # FIXME: To remove some day.
1117: build=$build_alias
1118: host=$host_alias
1119: target=$target_alias
1120:
1121: # FIXME: To remove some day.
1122: if test "x$host_alias" != x; then
1123: if test "x$build_alias" = x; then
1124: cross_compiling=maybe
1125: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1126: If a cross compiler is detected then cross compile mode will be used." >&2
1127: elif test "x$build_alias" != "x$host_alias"; then
1128: cross_compiling=yes
1129: fi
1130: fi
1.1 root 1131:
1.1.1.19 root 1132: ac_tool_prefix=
1133: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1134:
1135: test "$silent" = yes && exec 6>/dev/null
1.1 root 1136:
1137:
1.1.1.22! root 1138: ac_pwd=`pwd` && test -n "$ac_pwd" &&
! 1139: ac_ls_di=`ls -di .` &&
! 1140: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
! 1141: { echo "$as_me: error: Working directory cannot be determined" >&2
! 1142: { (exit 1); exit 1; }; }
! 1143: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
! 1144: { echo "$as_me: error: pwd does not report name of working directory" >&2
! 1145: { (exit 1); exit 1; }; }
! 1146:
! 1147:
1.1 root 1148: # Find the source files, if location was not specified.
1149: if test -z "$srcdir"; then
1150: ac_srcdir_defaulted=yes
1.1.1.22! root 1151: # Try the directory containing this script, then the parent directory.
! 1152: ac_confdir=`$as_dirname -- "$0" ||
1.1.1.19 root 1153: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1154: X"$0" : 'X\(//\)[^/]' \| \
1155: X"$0" : 'X\(//\)$' \| \
1.1.1.22! root 1156: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.1.1.19 root 1157: echo X"$0" |
1.1.1.22! root 1158: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 1159: s//\1/
! 1160: q
! 1161: }
! 1162: /^X\(\/\/\)[^/].*/{
! 1163: s//\1/
! 1164: q
! 1165: }
! 1166: /^X\(\/\/\)$/{
! 1167: s//\1/
! 1168: q
! 1169: }
! 1170: /^X\(\/\).*/{
! 1171: s//\1/
! 1172: q
! 1173: }
! 1174: s/.*/./; q'`
1.1 root 1175: srcdir=$ac_confdir
1.1.1.22! root 1176: if test ! -r "$srcdir/$ac_unique_file"; then
1.1 root 1177: srcdir=..
1178: fi
1179: else
1180: ac_srcdir_defaulted=no
1181: fi
1.1.1.22! root 1182: if test ! -r "$srcdir/$ac_unique_file"; then
! 1183: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
! 1184: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
! 1185: { (exit 1); exit 1; }; }
! 1186: fi
! 1187: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
! 1188: ac_abs_confdir=`(
! 1189: cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
! 1190: { (exit 1); exit 1; }; }
! 1191: pwd)`
! 1192: # When building in place, set srcdir=.
! 1193: if test "$ac_abs_confdir" = "$ac_pwd"; then
! 1194: srcdir=.
! 1195: fi
! 1196: # Remove unnecessary trailing slashes from srcdir.
! 1197: # Double slashes in file names in object file debugging info
! 1198: # mess up M-x gdb in Emacs.
! 1199: case $srcdir in
! 1200: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
! 1201: esac
! 1202: for ac_var in $ac_precious_vars; do
! 1203: eval ac_env_${ac_var}_set=\${${ac_var}+set}
! 1204: eval ac_env_${ac_var}_value=\$${ac_var}
! 1205: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
! 1206: eval ac_cv_env_${ac_var}_value=\$${ac_var}
! 1207: done
1.1.1.19 root 1208:
1209: #
1210: # Report the --help message.
1211: #
1212: if test "$ac_init_help" = "long"; then
1213: # Omit some internal or obsolete options to make the list less imposing.
1214: # This message is too long to be a string in the A/UX 3.1 sh.
1215: cat <<_ACEOF
1.1.1.22! root 1216: \`configure' configures UAE 0.8.26 to adapt to many kinds of systems.
1.1.1.19 root 1217:
1218: Usage: $0 [OPTION]... [VAR=VALUE]...
1219:
1220: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1221: VAR=VALUE. See below for descriptions of some of the useful variables.
1222:
1223: Defaults for the options are specified in brackets.
1224:
1225: Configuration:
1226: -h, --help display this help and exit
1227: --help=short display options specific to this package
1228: --help=recursive display the short help of all the included packages
1229: -V, --version display version information and exit
1230: -q, --quiet, --silent do not print \`checking...' messages
1231: --cache-file=FILE cache test results in FILE [disabled]
1232: -C, --config-cache alias for \`--cache-file=config.cache'
1233: -n, --no-create do not create output files
1234: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1235:
1236: Installation directories:
1237: --prefix=PREFIX install architecture-independent files in PREFIX
1238: [$ac_default_prefix]
1239: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1240: [PREFIX]
1241:
1242: By default, \`make install' will install all the files in
1243: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1244: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1245: for instance \`--prefix=\$HOME'.
1246:
1247: For better control, use the options below.
1248:
1249: Fine tuning of the installation directories:
1250: --bindir=DIR user executables [EPREFIX/bin]
1251: --sbindir=DIR system admin executables [EPREFIX/sbin]
1252: --libexecdir=DIR program executables [EPREFIX/libexec]
1253: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1254: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1255: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1256: --libdir=DIR object code libraries [EPREFIX/lib]
1257: --includedir=DIR C header files [PREFIX/include]
1258: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1.1.1.22! root 1259: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
! 1260: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
! 1261: --infodir=DIR info documentation [DATAROOTDIR/info]
! 1262: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
! 1263: --mandir=DIR man documentation [DATAROOTDIR/man]
! 1264: --docdir=DIR documentation root [DATAROOTDIR/doc/uae]
! 1265: --htmldir=DIR html documentation [DOCDIR]
! 1266: --dvidir=DIR dvi documentation [DOCDIR]
! 1267: --pdfdir=DIR pdf documentation [DOCDIR]
! 1268: --psdir=DIR ps documentation [DOCDIR]
1.1.1.19 root 1269: _ACEOF
1270:
1271: cat <<\_ACEOF
1272:
1273: X features:
1274: --x-includes=DIR X include files are in DIR
1275: --x-libraries=DIR X library files are in DIR
1276:
1277: System types:
1278: --build=BUILD configure for building on BUILD [guessed]
1279: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1280: _ACEOF
1281: fi
1282:
1283: if test -n "$ac_init_help"; then
1.1.1.22! root 1284: case $ac_init_help in
! 1285: short | recursive ) echo "Configuration of UAE 0.8.26:";;
! 1286: esac
1.1.1.19 root 1287: cat <<\_ACEOF
1288:
1289: Optional Features:
1290: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1291: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1292: --enable-profiling Build a profiling (SLOW!) version
1293: --enable-dga X11 version: Use the DGA extension
1294: --enable-vidmode X11 version: Use the XF86VidMode extension
1295: --enable-ui Use a user interface if possible (default on)
1.1.1.20 root 1296: --disable-gtktest do not try to compile and run a test GTK+ program
1.1.1.19 root 1297: --enable-threads Enable some generally useful thread support
1298: --enable-file-sound Enable sound output to file
1299: --enable-scsi-device Enable the uaescsi.device
1300:
1301: Optional Packages:
1302: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1303: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1304: --with-x use the X Window System
1305: --with-svgalib Use SVGAlib for graphics output
1306: --with-sdl Use SDL library for low-level functions
1307: --with-sdl-sound Use SDL library for sound
1308: --with-sdl-gfx Use SDL library for graphics
1309: --with-alsa Use ALSA library for sound
1310: --with-asciiart Use ncurses ascii art for graphics output
1311: --with-hostcc=x Use a x as compiler for the host system
1312:
1313: Some influential environment variables:
1314: CC C compiler command
1315: CFLAGS C compiler flags
1316: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1317: nonstandard directory <lib dir>
1.1.1.22! root 1318: LIBS libraries to pass to the linker, e.g. -l<library>
! 1319: CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
! 1320: you have headers in a nonstandard directory <include dir>
1.1.1.19 root 1321: CPP C preprocessor
1.1.1.22! root 1322: XMKMF Path to xmkmf, Makefile generator for X Window System
1.1.1.19 root 1323:
1324: Use these variables to override the choices made by `configure' or to help
1325: it to find libraries and programs with nonstandard names/locations.
1326:
1327: _ACEOF
1.1.1.22! root 1328: ac_status=$?
1.1.1.19 root 1329: fi
1330:
1331: if test "$ac_init_help" = "recursive"; then
1332: # If there are subdirs, report their specific --help.
1333: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.1.1.22! root 1334: test -d "$ac_dir" || continue
1.1.1.19 root 1335: ac_builddir=.
1336:
1.1.1.22! root 1337: case "$ac_dir" in
! 1338: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 1339: *)
1.1.1.19 root 1340: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1.1.1.22! root 1341: # A ".." for each directory in $ac_dir_suffix.
! 1342: ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
! 1343: case $ac_top_builddir_sub in
! 1344: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 1345: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
! 1346: esac ;;
! 1347: esac
! 1348: ac_abs_top_builddir=$ac_pwd
! 1349: ac_abs_builddir=$ac_pwd$ac_dir_suffix
! 1350: # for backward compatibility:
! 1351: ac_top_builddir=$ac_top_build_prefix
1.1.1.19 root 1352:
1353: case $srcdir in
1.1.1.22! root 1354: .) # We are building in place.
1.1.1.19 root 1355: ac_srcdir=.
1.1.1.22! root 1356: ac_top_srcdir=$ac_top_builddir_sub
! 1357: ac_abs_top_srcdir=$ac_pwd ;;
! 1358: [\\/]* | ?:[\\/]* ) # Absolute name.
1.1.1.19 root 1359: ac_srcdir=$srcdir$ac_dir_suffix;
1.1.1.22! root 1360: ac_top_srcdir=$srcdir
! 1361: ac_abs_top_srcdir=$srcdir ;;
! 1362: *) # Relative name.
! 1363: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
! 1364: ac_top_srcdir=$ac_top_build_prefix$srcdir
! 1365: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
! 1366: esac
! 1367: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
! 1368:
! 1369: cd "$ac_dir" || { ac_status=$?; continue; }
! 1370: # Check for guested configure.
! 1371: if test -f "$ac_srcdir/configure.gnu"; then
! 1372: echo &&
! 1373: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
! 1374: elif test -f "$ac_srcdir/configure"; then
! 1375: echo &&
! 1376: $SHELL "$ac_srcdir/configure" --help=recursive
1.1.1.19 root 1377: else
1378: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.1.1.22! root 1379: fi || ac_status=$?
! 1380: cd "$ac_pwd" || { ac_status=$?; break; }
1.1.1.19 root 1381: done
1382: fi
1383:
1.1.1.22! root 1384: test -n "$ac_init_help" && exit $ac_status
1.1.1.19 root 1385: if $ac_init_version; then
1386: cat <<\_ACEOF
1.1.1.22! root 1387: UAE configure 0.8.26
! 1388: generated by GNU Autoconf 2.61
1.1.1.19 root 1389:
1.1.1.22! root 1390: Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
! 1391: 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1.1.1.19 root 1392: This configure script is free software; the Free Software Foundation
1393: gives unlimited permission to copy, distribute and modify it.
1394: _ACEOF
1.1.1.22! root 1395: exit
1.1.1.19 root 1396: fi
1.1.1.22! root 1397: cat >config.log <<_ACEOF
1.1.1.19 root 1398: This file contains any messages produced by compilers while
1399: running configure, to aid debugging if configure makes a mistake.
1400:
1.1.1.22! root 1401: It was created by UAE $as_me 0.8.26, which was
! 1402: generated by GNU Autoconf 2.61. Invocation command line was
1.1.1.19 root 1403:
1404: $ $0 $@
1405:
1406: _ACEOF
1.1.1.22! root 1407: exec 5>>config.log
1.1.1.19 root 1408: {
1409: cat <<_ASUNAME
1410: ## --------- ##
1411: ## Platform. ##
1412: ## --------- ##
1413:
1414: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1415: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1416: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1417: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1418: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1419:
1420: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1421: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1422:
1423: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1424: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1425: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.1.1.22! root 1426: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1.1.1.19 root 1427: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1428: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1429: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1430:
1431: _ASUNAME
1432:
1433: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1434: for as_dir in $PATH
1435: do
1436: IFS=$as_save_IFS
1437: test -z "$as_dir" && as_dir=.
1438: echo "PATH: $as_dir"
1439: done
1.1.1.22! root 1440: IFS=$as_save_IFS
1.1.1.19 root 1441:
1442: } >&5
1443:
1444: cat >&5 <<_ACEOF
1445:
1446:
1447: ## ----------- ##
1448: ## Core tests. ##
1449: ## ----------- ##
1450:
1451: _ACEOF
1452:
1453:
1454: # Keep a trace of the command line.
1455: # Strip out --no-create and --no-recursion so they do not pile up.
1456: # Strip out --silent because we don't want to record it for future runs.
1457: # Also quote any args containing shell meta-characters.
1458: # Make two passes to allow for proper duplicate-argument suppression.
1459: ac_configure_args=
1460: ac_configure_args0=
1461: ac_configure_args1=
1462: ac_must_keep_next=false
1463: for ac_pass in 1 2
1464: do
1465: for ac_arg
1466: do
1467: case $ac_arg in
1468: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1469: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1470: | -silent | --silent | --silen | --sile | --sil)
1471: continue ;;
1.1.1.22! root 1472: *\'*)
1.1.1.19 root 1473: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1474: esac
1475: case $ac_pass in
1476: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1477: 2)
1478: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1479: if test $ac_must_keep_next = true; then
1480: ac_must_keep_next=false # Got value, back to normal.
1481: else
1482: case $ac_arg in
1483: *=* | --config-cache | -C | -disable-* | --disable-* \
1484: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1485: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1486: | -with-* | --with-* | -without-* | --without-* | --x)
1487: case "$ac_configure_args0 " in
1488: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1489: esac
1490: ;;
1491: -* ) ac_must_keep_next=true ;;
1492: esac
1493: fi
1.1.1.22! root 1494: ac_configure_args="$ac_configure_args '$ac_arg'"
1.1.1.19 root 1495: ;;
1496: esac
1497: done
1498: done
1499: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1500: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1501:
1502: # When interrupted or exit'd, cleanup temporary files, and complete
1503: # config.log. We remove comments because anyway the quotes in there
1504: # would cause problems or look ugly.
1.1.1.22! root 1505: # WARNING: Use '\'' to represent an apostrophe within the trap.
! 1506: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1.1.1.19 root 1507: trap 'exit_status=$?
1508: # Save into config.log some information that might help in debugging.
1509: {
1510: echo
1511:
1512: cat <<\_ASBOX
1513: ## ---------------- ##
1514: ## Cache variables. ##
1515: ## ---------------- ##
1516: _ASBOX
1517: echo
1518: # The following way of writing the cache mishandles newlines in values,
1.1.1.22! root 1519: (
! 1520: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
! 1521: eval ac_val=\$$ac_var
! 1522: case $ac_val in #(
! 1523: *${as_nl}*)
! 1524: case $ac_var in #(
! 1525: *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
! 1526: echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
! 1527: esac
! 1528: case $ac_var in #(
! 1529: _ | IFS | as_nl) ;; #(
! 1530: *) $as_unset $ac_var ;;
! 1531: esac ;;
! 1532: esac
! 1533: done
1.1.1.19 root 1534: (set) 2>&1 |
1.1.1.22! root 1535: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
! 1536: *${as_nl}ac_space=\ *)
1.1.1.19 root 1537: sed -n \
1.1.1.22! root 1538: "s/'\''/'\''\\\\'\'''\''/g;
! 1539: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
! 1540: ;; #(
1.1.1.19 root 1541: *)
1.1.1.22! root 1542: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.1.1.19 root 1543: ;;
1.1.1.22! root 1544: esac |
! 1545: sort
! 1546: )
1.1.1.19 root 1547: echo
1548:
1549: cat <<\_ASBOX
1550: ## ----------------- ##
1551: ## Output variables. ##
1552: ## ----------------- ##
1553: _ASBOX
1554: echo
1555: for ac_var in $ac_subst_vars
1556: do
1.1.1.22! root 1557: eval ac_val=\$$ac_var
! 1558: case $ac_val in
! 1559: *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
! 1560: esac
! 1561: echo "$ac_var='\''$ac_val'\''"
1.1.1.19 root 1562: done | sort
1563: echo
1564:
1565: if test -n "$ac_subst_files"; then
1566: cat <<\_ASBOX
1.1.1.22! root 1567: ## ------------------- ##
! 1568: ## File substitutions. ##
! 1569: ## ------------------- ##
1.1.1.19 root 1570: _ASBOX
1571: echo
1572: for ac_var in $ac_subst_files
1573: do
1.1.1.22! root 1574: eval ac_val=\$$ac_var
! 1575: case $ac_val in
! 1576: *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
! 1577: esac
! 1578: echo "$ac_var='\''$ac_val'\''"
1.1.1.19 root 1579: done | sort
1580: echo
1581: fi
1582:
1583: if test -s confdefs.h; then
1584: cat <<\_ASBOX
1585: ## ----------- ##
1586: ## confdefs.h. ##
1587: ## ----------- ##
1588: _ASBOX
1589: echo
1.1.1.22! root 1590: cat confdefs.h
1.1.1.19 root 1591: echo
1592: fi
1593: test "$ac_signal" != 0 &&
1594: echo "$as_me: caught signal $ac_signal"
1595: echo "$as_me: exit $exit_status"
1596: } >&5
1.1.1.22! root 1597: rm -f core *.core core.conftest.* &&
! 1598: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.1.1.19 root 1599: exit $exit_status
1.1.1.22! root 1600: ' 0
1.1.1.19 root 1601: for ac_signal in 1 2 13 15; do
1602: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1603: done
1604: ac_signal=0
1605:
1606: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.1.1.22! root 1607: rm -f -r conftest* confdefs.h
1.1.1.19 root 1608:
1609: # Predefined preprocessor variables.
1610:
1611: cat >>confdefs.h <<_ACEOF
1612: #define PACKAGE_NAME "$PACKAGE_NAME"
1613: _ACEOF
1614:
1615:
1616: cat >>confdefs.h <<_ACEOF
1617: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1618: _ACEOF
1619:
1620:
1621: cat >>confdefs.h <<_ACEOF
1622: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1623: _ACEOF
1624:
1.1 root 1625:
1.1.1.19 root 1626: cat >>confdefs.h <<_ACEOF
1627: #define PACKAGE_STRING "$PACKAGE_STRING"
1628: _ACEOF
1629:
1630:
1631: cat >>confdefs.h <<_ACEOF
1632: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1633: _ACEOF
1634:
1635:
1636: # Let the site file select an alternate cache file if it wants to.
1.1 root 1637: # Prefer explicitly selected file to automatically selected ones.
1.1.1.22! root 1638: if test -n "$CONFIG_SITE"; then
! 1639: set x "$CONFIG_SITE"
! 1640: elif test "x$prefix" != xNONE; then
! 1641: set x "$prefix/share/config.site" "$prefix/etc/config.site"
! 1642: else
! 1643: set x "$ac_default_prefix/share/config.site" \
! 1644: "$ac_default_prefix/etc/config.site"
1.1 root 1645: fi
1.1.1.22! root 1646: shift
! 1647: for ac_site_file
! 1648: do
1.1 root 1649: if test -r "$ac_site_file"; then
1.1.1.19 root 1650: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1651: echo "$as_me: loading site script $ac_site_file" >&6;}
1652: sed 's/^/| /' "$ac_site_file" >&5
1.1 root 1653: . "$ac_site_file"
1654: fi
1655: done
1656:
1657: if test -r "$cache_file"; then
1.1.1.19 root 1658: # Some versions of bash will fail to source /dev/null (special
1659: # files actually), so we avoid doing that.
1660: if test -f "$cache_file"; then
1661: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1662: echo "$as_me: loading cache $cache_file" >&6;}
1663: case $cache_file in
1.1.1.22! root 1664: [\\/]* | ?:[\\/]* ) . "$cache_file";;
! 1665: *) . "./$cache_file";;
1.1.1.19 root 1666: esac
1667: fi
1.1 root 1668: else
1.1.1.19 root 1669: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1670: echo "$as_me: creating cache $cache_file" >&6;}
1671: >$cache_file
1672: fi
1673:
1.1.1.22! root 1674: ac_header_list="$ac_header_list utime.h"
1.1.1.19 root 1675: # Check that the precious variables saved in the cache have kept the same
1676: # value.
1677: ac_cache_corrupted=false
1.1.1.22! root 1678: for ac_var in $ac_precious_vars; do
1.1.1.19 root 1679: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1680: eval ac_new_set=\$ac_env_${ac_var}_set
1.1.1.22! root 1681: eval ac_old_val=\$ac_cv_env_${ac_var}_value
! 1682: eval ac_new_val=\$ac_env_${ac_var}_value
1.1.1.19 root 1683: case $ac_old_set,$ac_new_set in
1684: set,)
1685: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1686: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1687: ac_cache_corrupted=: ;;
1688: ,set)
1689: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1690: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1691: ac_cache_corrupted=: ;;
1692: ,);;
1693: *)
1694: if test "x$ac_old_val" != "x$ac_new_val"; then
1695: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1696: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1697: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1698: echo "$as_me: former value: $ac_old_val" >&2;}
1699: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1700: echo "$as_me: current value: $ac_new_val" >&2;}
1701: ac_cache_corrupted=:
1702: fi;;
1703: esac
1704: # Pass precious variables to config.status.
1705: if test "$ac_new_set" = set; then
1706: case $ac_new_val in
1.1.1.22! root 1707: *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1.1.19 root 1708: *) ac_arg=$ac_var=$ac_new_val ;;
1709: esac
1710: case " $ac_configure_args " in
1711: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1712: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1713: esac
1714: fi
1715: done
1716: if $ac_cache_corrupted; then
1717: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1718: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1719: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1720: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1721: { (exit 1); exit 1; }; }
1.1 root 1722: fi
1723:
1724:
1725:
1726:
1727:
1.1.1.4 root 1728:
1.1.1.19 root 1729:
1730:
1731:
1732:
1733:
1734:
1735:
1736:
1737:
1738:
1739:
1740:
1741:
1742:
1743:
1744:
1745:
1.1.1.22! root 1746:
! 1747:
! 1748: ac_ext=c
! 1749: ac_cpp='$CPP $CPPFLAGS'
! 1750: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 1751: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 1752: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 1753:
! 1754:
! 1755:
! 1756:
! 1757:
1.1.1.19 root 1758: ac_ext=c
1759: ac_cpp='$CPP $CPPFLAGS'
1760: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1761: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1762: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1763: if test -n "$ac_tool_prefix"; then
1764: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1765: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.1.1.22! root 1766: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 1767: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1.1.19 root 1768: if test "${ac_cv_prog_CC+set}" = set; then
1769: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 root 1770: else
1771: if test -n "$CC"; then
1772: ac_cv_prog_CC="$CC" # Let the user override the test.
1773: else
1.1.1.19 root 1774: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1775: for as_dir in $PATH
1776: do
1777: IFS=$as_save_IFS
1778: test -z "$as_dir" && as_dir=.
1779: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.22! root 1780: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.1.19 root 1781: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1782: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1783: break 2
1784: fi
1785: done
1786: done
1.1.1.22! root 1787: IFS=$as_save_IFS
1.1.1.19 root 1788:
1.1 root 1789: fi
1790: fi
1.1.1.19 root 1791: CC=$ac_cv_prog_CC
1.1 root 1792: if test -n "$CC"; then
1.1.1.22! root 1793: { echo "$as_me:$LINENO: result: $CC" >&5
! 1794: echo "${ECHO_T}$CC" >&6; }
1.1 root 1795: else
1.1.1.22! root 1796: { echo "$as_me:$LINENO: result: no" >&5
! 1797: echo "${ECHO_T}no" >&6; }
1.1 root 1798: fi
1799:
1.1.1.22! root 1800:
1.1.1.19 root 1801: fi
1802: if test -z "$ac_cv_prog_CC"; then
1803: ac_ct_CC=$CC
1804: # Extract the first word of "gcc", so it can be a program name with args.
1805: set dummy gcc; ac_word=$2
1.1.1.22! root 1806: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 1807: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1.1.19 root 1808: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1809: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 root 1810: else
1.1.1.19 root 1811: if test -n "$ac_ct_CC"; then
1812: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 root 1813: else
1.1.1.19 root 1814: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815: for as_dir in $PATH
1816: do
1817: IFS=$as_save_IFS
1818: test -z "$as_dir" && as_dir=.
1819: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.22! root 1820: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.1.19 root 1821: ac_cv_prog_ac_ct_CC="gcc"
1822: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1823: break 2
1824: fi
1825: done
1826: done
1.1.1.22! root 1827: IFS=$as_save_IFS
1.1.1.19 root 1828:
1829: fi
1830: fi
1831: ac_ct_CC=$ac_cv_prog_ac_ct_CC
1832: if test -n "$ac_ct_CC"; then
1.1.1.22! root 1833: { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
! 1834: echo "${ECHO_T}$ac_ct_CC" >&6; }
1.1.1.19 root 1835: else
1.1.1.22! root 1836: { echo "$as_me:$LINENO: result: no" >&5
! 1837: echo "${ECHO_T}no" >&6; }
1.1.1.19 root 1838: fi
1839:
1.1.1.22! root 1840: if test "x$ac_ct_CC" = x; then
! 1841: CC=""
! 1842: else
! 1843: case $cross_compiling:$ac_tool_warned in
! 1844: yes:)
! 1845: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 1846: whose name does not start with the host triplet. If you think this
! 1847: configuration is useful to you, please write to [email protected]." >&5
! 1848: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 1849: whose name does not start with the host triplet. If you think this
! 1850: configuration is useful to you, please write to [email protected]." >&2;}
! 1851: ac_tool_warned=yes ;;
! 1852: esac
! 1853: CC=$ac_ct_CC
! 1854: fi
1.1.1.19 root 1855: else
1856: CC="$ac_cv_prog_CC"
1857: fi
1858:
1859: if test -z "$CC"; then
1.1.1.22! root 1860: if test -n "$ac_tool_prefix"; then
! 1861: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.1.1.19 root 1862: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.1.1.22! root 1863: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 1864: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1.1.19 root 1865: if test "${ac_cv_prog_CC+set}" = set; then
1866: echo $ECHO_N "(cached) $ECHO_C" >&6
1867: else
1868: if test -n "$CC"; then
1869: ac_cv_prog_CC="$CC" # Let the user override the test.
1870: else
1871: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1872: for as_dir in $PATH
1873: do
1874: IFS=$as_save_IFS
1875: test -z "$as_dir" && as_dir=.
1876: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.22! root 1877: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.1.19 root 1878: ac_cv_prog_CC="${ac_tool_prefix}cc"
1879: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1880: break 2
1881: fi
1882: done
1883: done
1.1.1.22! root 1884: IFS=$as_save_IFS
1.1.1.19 root 1885:
1886: fi
1887: fi
1888: CC=$ac_cv_prog_CC
1889: if test -n "$CC"; then
1.1.1.22! root 1890: { echo "$as_me:$LINENO: result: $CC" >&5
! 1891: echo "${ECHO_T}$CC" >&6; }
1.1.1.19 root 1892: else
1.1.1.22! root 1893: { echo "$as_me:$LINENO: result: no" >&5
! 1894: echo "${ECHO_T}no" >&6; }
1.1.1.19 root 1895: fi
1896:
1897:
1.1.1.22! root 1898: fi
1.1.1.19 root 1899: fi
1900: if test -z "$CC"; then
1901: # Extract the first word of "cc", so it can be a program name with args.
1902: set dummy cc; ac_word=$2
1.1.1.22! root 1903: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 1904: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1.1.19 root 1905: if test "${ac_cv_prog_CC+set}" = set; then
1906: echo $ECHO_N "(cached) $ECHO_C" >&6
1907: else
1908: if test -n "$CC"; then
1909: ac_cv_prog_CC="$CC" # Let the user override the test.
1910: else
1911: ac_prog_rejected=no
1912: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913: for as_dir in $PATH
1914: do
1915: IFS=$as_save_IFS
1916: test -z "$as_dir" && as_dir=.
1917: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.22! root 1918: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.1.19 root 1919: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1920: ac_prog_rejected=yes
1921: continue
1922: fi
1923: ac_cv_prog_CC="cc"
1924: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1925: break 2
1926: fi
1927: done
1928: done
1.1.1.22! root 1929: IFS=$as_save_IFS
1.1.1.19 root 1930:
1931: if test $ac_prog_rejected = yes; then
1932: # We found a bogon in the path, so make sure we never use it.
1933: set dummy $ac_cv_prog_CC
1.1 root 1934: shift
1.1.1.19 root 1935: if test $# != 0; then
1.1 root 1936: # We chose a different compiler from the bogus one.
1937: # However, it has the same basename, so the bogon will be chosen
1938: # first if we set CC to just the basename; use the full file name.
1939: shift
1.1.1.19 root 1940: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1 root 1941: fi
1942: fi
1943: fi
1944: fi
1.1.1.19 root 1945: CC=$ac_cv_prog_CC
1.1 root 1946: if test -n "$CC"; then
1.1.1.22! root 1947: { echo "$as_me:$LINENO: result: $CC" >&5
! 1948: echo "${ECHO_T}$CC" >&6; }
1.1 root 1949: else
1.1.1.22! root 1950: { echo "$as_me:$LINENO: result: no" >&5
! 1951: echo "${ECHO_T}no" >&6; }
1.1 root 1952: fi
1953:
1.1.1.22! root 1954:
1.1.1.19 root 1955: fi
1956: if test -z "$CC"; then
1957: if test -n "$ac_tool_prefix"; then
1.1.1.22! root 1958: for ac_prog in cl.exe
1.1.1.19 root 1959: do
1960: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1961: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.1.1.22! root 1962: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 1963: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1.1.19 root 1964: if test "${ac_cv_prog_CC+set}" = set; then
1965: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.9 root 1966: else
1967: if test -n "$CC"; then
1968: ac_cv_prog_CC="$CC" # Let the user override the test.
1969: else
1.1.1.19 root 1970: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971: for as_dir in $PATH
1972: do
1973: IFS=$as_save_IFS
1974: test -z "$as_dir" && as_dir=.
1975: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.22! root 1976: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.1.19 root 1977: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1978: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1979: break 2
1980: fi
1981: done
1982: done
1.1.1.22! root 1983: IFS=$as_save_IFS
1.1.1.19 root 1984:
1.1.1.9 root 1985: fi
1986: fi
1.1.1.19 root 1987: CC=$ac_cv_prog_CC
1.1.1.9 root 1988: if test -n "$CC"; then
1.1.1.22! root 1989: { echo "$as_me:$LINENO: result: $CC" >&5
! 1990: echo "${ECHO_T}$CC" >&6; }
1.1.1.9 root 1991: else
1.1.1.22! root 1992: { echo "$as_me:$LINENO: result: no" >&5
! 1993: echo "${ECHO_T}no" >&6; }
1.1.1.9 root 1994: fi
1.1.1.19 root 1995:
1.1.1.22! root 1996:
1.1.1.19 root 1997: test -n "$CC" && break
1998: done
1999: fi
2000: if test -z "$CC"; then
2001: ac_ct_CC=$CC
1.1.1.22! root 2002: for ac_prog in cl.exe
1.1.1.19 root 2003: do
2004: # Extract the first word of "$ac_prog", so it can be a program name with args.
2005: set dummy $ac_prog; ac_word=$2
1.1.1.22! root 2006: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2007: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1.1.19 root 2008: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2009: echo $ECHO_N "(cached) $ECHO_C" >&6
2010: else
2011: if test -n "$ac_ct_CC"; then
2012: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2013: else
2014: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015: for as_dir in $PATH
2016: do
2017: IFS=$as_save_IFS
2018: test -z "$as_dir" && as_dir=.
2019: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.22! root 2020: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.1.19 root 2021: ac_cv_prog_ac_ct_CC="$ac_prog"
2022: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2023: break 2
1.1.1.9 root 2024: fi
1.1.1.19 root 2025: done
2026: done
1.1.1.22! root 2027: IFS=$as_save_IFS
1.1.1.19 root 2028:
1.1 root 2029: fi
1.1.1.19 root 2030: fi
2031: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2032: if test -n "$ac_ct_CC"; then
1.1.1.22! root 2033: { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
! 2034: echo "${ECHO_T}$ac_ct_CC" >&6; }
1.1.1.19 root 2035: else
1.1.1.22! root 2036: { echo "$as_me:$LINENO: result: no" >&5
! 2037: echo "${ECHO_T}no" >&6; }
1.1.1.19 root 2038: fi
2039:
1.1.1.22! root 2040:
1.1.1.19 root 2041: test -n "$ac_ct_CC" && break
2042: done
1.1 root 2043:
1.1.1.22! root 2044: if test "x$ac_ct_CC" = x; then
! 2045: CC=""
! 2046: else
! 2047: case $cross_compiling:$ac_tool_warned in
! 2048: yes:)
! 2049: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 2050: whose name does not start with the host triplet. If you think this
! 2051: configuration is useful to you, please write to [email protected]." >&5
! 2052: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 2053: whose name does not start with the host triplet. If you think this
! 2054: configuration is useful to you, please write to [email protected]." >&2;}
! 2055: ac_tool_warned=yes ;;
! 2056: esac
! 2057: CC=$ac_ct_CC
! 2058: fi
1.1.1.19 root 2059: fi
1.1.1.4 root 2060:
1.1.1.19 root 2061: fi
1.1.1.4 root 2062:
1.1.1.9 root 2063:
1.1.1.19 root 2064: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2065: See \`config.log' for more details." >&5
2066: echo "$as_me: error: no acceptable C compiler found in \$PATH
2067: See \`config.log' for more details." >&2;}
2068: { (exit 1); exit 1; }; }
2069:
2070: # Provide some information about the compiler.
1.1.1.22! root 2071: echo "$as_me:$LINENO: checking for C compiler version" >&5
1.1.1.19 root 2072: ac_compiler=`set X $ac_compile; echo $2`
1.1.1.22! root 2073: { (ac_try="$ac_compiler --version >&5"
! 2074: case "(($ac_try" in
! 2075: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2076: *) ac_try_echo=$ac_try;;
! 2077: esac
! 2078: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 2079: (eval "$ac_compiler --version >&5") 2>&5
1.1.1.19 root 2080: ac_status=$?
2081: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082: (exit $ac_status); }
1.1.1.22! root 2083: { (ac_try="$ac_compiler -v >&5"
! 2084: case "(($ac_try" in
! 2085: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2086: *) ac_try_echo=$ac_try;;
! 2087: esac
! 2088: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 2089: (eval "$ac_compiler -v >&5") 2>&5
1.1.1.19 root 2090: ac_status=$?
2091: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092: (exit $ac_status); }
1.1.1.22! root 2093: { (ac_try="$ac_compiler -V >&5"
! 2094: case "(($ac_try" in
! 2095: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2096: *) ac_try_echo=$ac_try;;
! 2097: esac
! 2098: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 2099: (eval "$ac_compiler -V >&5") 2>&5
1.1.1.19 root 2100: ac_status=$?
2101: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102: (exit $ac_status); }
2103:
2104: cat >conftest.$ac_ext <<_ACEOF
2105: /* confdefs.h. */
2106: _ACEOF
2107: cat confdefs.h >>conftest.$ac_ext
2108: cat >>conftest.$ac_ext <<_ACEOF
2109: /* end confdefs.h. */
1.1.1.9 root 2110:
1.1.1.19 root 2111: int
2112: main ()
2113: {
2114:
2115: ;
2116: return 0;
2117: }
2118: _ACEOF
2119: ac_clean_files_save=$ac_clean_files
2120: ac_clean_files="$ac_clean_files a.out a.exe b.out"
2121: # Try to create an executable without -o first, disregard a.out.
2122: # It will help us diagnose broken compilers, and finding out an intuition
2123: # of exeext.
1.1.1.22! root 2124: { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
! 2125: echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
1.1.1.19 root 2126: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.1.1.22! root 2127: #
! 2128: # List of possible output files, starting from the most likely.
! 2129: # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
! 2130: # only as a last resort. b.out is created by i960 compilers.
! 2131: ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
! 2132: #
! 2133: # The IRIX 6 linker writes into existing files which may not be
! 2134: # executable, retaining their permissions. Remove them first so a
! 2135: # subsequent execution test works.
! 2136: ac_rmfiles=
! 2137: for ac_file in $ac_files
! 2138: do
! 2139: case $ac_file in
! 2140: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
! 2141: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
! 2142: esac
! 2143: done
! 2144: rm -f $ac_rmfiles
! 2145:
! 2146: if { (ac_try="$ac_link_default"
! 2147: case "(($ac_try" in
! 2148: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2149: *) ac_try_echo=$ac_try;;
! 2150: esac
! 2151: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 2152: (eval "$ac_link_default") 2>&5
1.1.1.19 root 2153: ac_status=$?
2154: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155: (exit $ac_status); }; then
1.1.1.22! root 2156: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
! 2157: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
! 2158: # in a Makefile. We should not override ac_cv_exeext if it was cached,
! 2159: # so that the user can short-circuit this test for compilers unknown to
! 2160: # Autoconf.
! 2161: for ac_file in $ac_files ''
1.1.1.19 root 2162: do
2163: test -f "$ac_file" || continue
2164: case $ac_file in
1.1.1.22! root 2165: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
1.1.1.19 root 2166: ;;
2167: [ab].out )
2168: # We found the default executable, but exeext='' is most
2169: # certainly right.
2170: break;;
2171: *.* )
1.1.1.22! root 2172: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
! 2173: then :; else
! 2174: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
! 2175: fi
! 2176: # We set ac_cv_exeext here because the later test for it is not
! 2177: # safe: cross compilers may not add the suffix if given an `-o'
! 2178: # argument, so we may need to know it at that point already.
! 2179: # Even if this section looks crufty: it has the advantage of
! 2180: # actually working.
1.1.1.19 root 2181: break;;
2182: * )
2183: break;;
2184: esac
2185: done
1.1.1.22! root 2186: test "$ac_cv_exeext" = no && ac_cv_exeext=
! 2187:
1.1.1.19 root 2188: else
1.1.1.22! root 2189: ac_file=''
! 2190: fi
! 2191:
! 2192: { echo "$as_me:$LINENO: result: $ac_file" >&5
! 2193: echo "${ECHO_T}$ac_file" >&6; }
! 2194: if test -z "$ac_file"; then
1.1.1.19 root 2195: echo "$as_me: failed program was:" >&5
2196: sed 's/^/| /' conftest.$ac_ext >&5
2197:
2198: { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2199: See \`config.log' for more details." >&5
2200: echo "$as_me: error: C compiler cannot create executables
2201: See \`config.log' for more details." >&2;}
2202: { (exit 77); exit 77; }; }
2203: fi
2204:
2205: ac_exeext=$ac_cv_exeext
2206:
1.1.1.22! root 2207: # Check that the compiler produces executables we can run. If not, either
1.1.1.19 root 2208: # the compiler is broken, or we cross compile.
1.1.1.22! root 2209: { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
! 2210: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
1.1.1.19 root 2211: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2212: # If not cross compiling, check that we can run a simple program.
2213: if test "$cross_compiling" != yes; then
2214: if { ac_try='./$ac_file'
1.1.1.22! root 2215: { (case "(($ac_try" in
! 2216: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2217: *) ac_try_echo=$ac_try;;
! 2218: esac
! 2219: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 2220: (eval "$ac_try") 2>&5
1.1.1.19 root 2221: ac_status=$?
2222: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223: (exit $ac_status); }; }; then
2224: cross_compiling=no
1.1.1.4 root 2225: else
1.1.1.19 root 2226: if test "$cross_compiling" = maybe; then
2227: cross_compiling=yes
2228: else
2229: { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2230: If you meant to cross compile, use \`--host'.
2231: See \`config.log' for more details." >&5
2232: echo "$as_me: error: cannot run C compiled programs.
2233: If you meant to cross compile, use \`--host'.
2234: See \`config.log' for more details." >&2;}
2235: { (exit 1); exit 1; }; }
2236: fi
1.1.1.4 root 2237: fi
2238: fi
1.1.1.22! root 2239: { echo "$as_me:$LINENO: result: yes" >&5
! 2240: echo "${ECHO_T}yes" >&6; }
1.1.1.19 root 2241:
2242: rm -f a.out a.exe conftest$ac_cv_exeext b.out
2243: ac_clean_files=$ac_clean_files_save
1.1.1.22! root 2244: # Check that the compiler produces executables we can run. If not, either
1.1.1.19 root 2245: # the compiler is broken, or we cross compile.
1.1.1.22! root 2246: { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
! 2247: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
! 2248: { echo "$as_me:$LINENO: result: $cross_compiling" >&5
! 2249: echo "${ECHO_T}$cross_compiling" >&6; }
! 2250:
! 2251: { echo "$as_me:$LINENO: checking for suffix of executables" >&5
! 2252: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
! 2253: if { (ac_try="$ac_link"
! 2254: case "(($ac_try" in
! 2255: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2256: *) ac_try_echo=$ac_try;;
! 2257: esac
! 2258: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 2259: (eval "$ac_link") 2>&5
1.1.1.19 root 2260: ac_status=$?
2261: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262: (exit $ac_status); }; then
2263: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2264: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2265: # work properly (i.e., refer to `conftest.exe'), while it won't with
2266: # `rm'.
2267: for ac_file in conftest.exe conftest conftest.*; do
2268: test -f "$ac_file" || continue
2269: case $ac_file in
1.1.1.22! root 2270: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1.1.1.19 root 2271: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2272: break;;
2273: * ) break;;
2274: esac
2275: done
1.1 root 2276: else
1.1.1.19 root 2277: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2278: See \`config.log' for more details." >&5
2279: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2280: See \`config.log' for more details." >&2;}
2281: { (exit 1); exit 1; }; }
2282: fi
2283:
2284: rm -f conftest$ac_cv_exeext
1.1.1.22! root 2285: { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
! 2286: echo "${ECHO_T}$ac_cv_exeext" >&6; }
1.1.1.19 root 2287:
2288: rm -f conftest.$ac_ext
2289: EXEEXT=$ac_cv_exeext
2290: ac_exeext=$EXEEXT
1.1.1.22! root 2291: { echo "$as_me:$LINENO: checking for suffix of object files" >&5
! 2292: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
1.1.1.19 root 2293: if test "${ac_cv_objext+set}" = set; then
2294: echo $ECHO_N "(cached) $ECHO_C" >&6
2295: else
2296: cat >conftest.$ac_ext <<_ACEOF
2297: /* confdefs.h. */
2298: _ACEOF
2299: cat confdefs.h >>conftest.$ac_ext
2300: cat >>conftest.$ac_ext <<_ACEOF
2301: /* end confdefs.h. */
1.1 root 2302:
1.1.1.19 root 2303: int
2304: main ()
2305: {
1.1.1.4 root 2306:
1.1.1.19 root 2307: ;
2308: return 0;
2309: }
2310: _ACEOF
2311: rm -f conftest.o conftest.obj
1.1.1.22! root 2312: if { (ac_try="$ac_compile"
! 2313: case "(($ac_try" in
! 2314: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2315: *) ac_try_echo=$ac_try;;
! 2316: esac
! 2317: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 2318: (eval "$ac_compile") 2>&5
1.1.1.19 root 2319: ac_status=$?
2320: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321: (exit $ac_status); }; then
1.1.1.22! root 2322: for ac_file in conftest.o conftest.obj conftest.*; do
! 2323: test -f "$ac_file" || continue;
1.1.1.19 root 2324: case $ac_file in
1.1.1.22! root 2325: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
1.1.1.19 root 2326: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2327: break;;
2328: esac
2329: done
1.1.1.9 root 2330: else
1.1.1.19 root 2331: echo "$as_me: failed program was:" >&5
2332: sed 's/^/| /' conftest.$ac_ext >&5
1.1.1.9 root 2333:
1.1.1.19 root 2334: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2335: See \`config.log' for more details." >&5
2336: echo "$as_me: error: cannot compute suffix of object files: cannot compile
2337: See \`config.log' for more details." >&2;}
2338: { (exit 1); exit 1; }; }
2339: fi
2340:
2341: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2342: fi
1.1.1.22! root 2343: { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
! 2344: echo "${ECHO_T}$ac_cv_objext" >&6; }
1.1.1.19 root 2345: OBJEXT=$ac_cv_objext
2346: ac_objext=$OBJEXT
1.1.1.22! root 2347: { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
! 2348: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
1.1.1.19 root 2349: if test "${ac_cv_c_compiler_gnu+set}" = set; then
2350: echo $ECHO_N "(cached) $ECHO_C" >&6
2351: else
2352: cat >conftest.$ac_ext <<_ACEOF
2353: /* confdefs.h. */
2354: _ACEOF
2355: cat confdefs.h >>conftest.$ac_ext
2356: cat >>conftest.$ac_ext <<_ACEOF
2357: /* end confdefs.h. */
2358:
2359: int
2360: main ()
2361: {
2362: #ifndef __GNUC__
2363: choke me
2364: #endif
2365:
2366: ;
2367: return 0;
2368: }
2369: _ACEOF
2370: rm -f conftest.$ac_objext
1.1.1.22! root 2371: if { (ac_try="$ac_compile"
! 2372: case "(($ac_try" in
! 2373: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2374: *) ac_try_echo=$ac_try;;
! 2375: esac
! 2376: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 2377: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 2378: ac_status=$?
2379: grep -v '^ *+' conftest.er1 >conftest.err
2380: rm -f conftest.er1
2381: cat conftest.err >&5
2382: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 2383: (exit $ac_status); } && {
! 2384: test -z "$ac_c_werror_flag" ||
! 2385: test ! -s conftest.err
! 2386: } && test -s conftest.$ac_objext; then
1.1.1.19 root 2387: ac_compiler_gnu=yes
2388: else
2389: echo "$as_me: failed program was:" >&5
2390: sed 's/^/| /' conftest.$ac_ext >&5
2391:
1.1.1.22! root 2392: ac_compiler_gnu=no
1.1.1.19 root 2393: fi
1.1.1.22! root 2394:
! 2395: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 2396: ac_cv_c_compiler_gnu=$ac_compiler_gnu
2397:
2398: fi
1.1.1.22! root 2399: { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
! 2400: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
1.1.1.19 root 2401: GCC=`test $ac_compiler_gnu = yes && echo yes`
2402: ac_test_CFLAGS=${CFLAGS+set}
2403: ac_save_CFLAGS=$CFLAGS
1.1.1.22! root 2404: { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
! 2405: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
1.1.1.19 root 2406: if test "${ac_cv_prog_cc_g+set}" = set; then
2407: echo $ECHO_N "(cached) $ECHO_C" >&6
2408: else
1.1.1.22! root 2409: ac_save_c_werror_flag=$ac_c_werror_flag
! 2410: ac_c_werror_flag=yes
! 2411: ac_cv_prog_cc_g=no
! 2412: CFLAGS="-g"
! 2413: cat >conftest.$ac_ext <<_ACEOF
1.1.1.19 root 2414: /* confdefs.h. */
2415: _ACEOF
2416: cat confdefs.h >>conftest.$ac_ext
2417: cat >>conftest.$ac_ext <<_ACEOF
2418: /* end confdefs.h. */
2419:
2420: int
2421: main ()
2422: {
2423:
2424: ;
2425: return 0;
2426: }
2427: _ACEOF
2428: rm -f conftest.$ac_objext
1.1.1.22! root 2429: if { (ac_try="$ac_compile"
! 2430: case "(($ac_try" in
! 2431: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2432: *) ac_try_echo=$ac_try;;
! 2433: esac
! 2434: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 2435: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 2436: ac_status=$?
2437: grep -v '^ *+' conftest.er1 >conftest.err
2438: rm -f conftest.er1
2439: cat conftest.err >&5
2440: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 2441: (exit $ac_status); } && {
! 2442: test -z "$ac_c_werror_flag" ||
! 2443: test ! -s conftest.err
! 2444: } && test -s conftest.$ac_objext; then
! 2445: ac_cv_prog_cc_g=yes
! 2446: else
! 2447: echo "$as_me: failed program was:" >&5
! 2448: sed 's/^/| /' conftest.$ac_ext >&5
! 2449:
! 2450: CFLAGS=""
! 2451: cat >conftest.$ac_ext <<_ACEOF
! 2452: /* confdefs.h. */
! 2453: _ACEOF
! 2454: cat confdefs.h >>conftest.$ac_ext
! 2455: cat >>conftest.$ac_ext <<_ACEOF
! 2456: /* end confdefs.h. */
! 2457:
! 2458: int
! 2459: main ()
! 2460: {
! 2461:
! 2462: ;
! 2463: return 0;
! 2464: }
! 2465: _ACEOF
! 2466: rm -f conftest.$ac_objext
! 2467: if { (ac_try="$ac_compile"
! 2468: case "(($ac_try" in
! 2469: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2470: *) ac_try_echo=$ac_try;;
! 2471: esac
! 2472: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 2473: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 2474: ac_status=$?
1.1.1.22! root 2475: grep -v '^ *+' conftest.er1 >conftest.err
! 2476: rm -f conftest.er1
! 2477: cat conftest.err >&5
1.1.1.19 root 2478: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 2479: (exit $ac_status); } && {
! 2480: test -z "$ac_c_werror_flag" ||
! 2481: test ! -s conftest.err
! 2482: } && test -s conftest.$ac_objext; then
! 2483: :
! 2484: else
! 2485: echo "$as_me: failed program was:" >&5
! 2486: sed 's/^/| /' conftest.$ac_ext >&5
! 2487:
! 2488: ac_c_werror_flag=$ac_save_c_werror_flag
! 2489: CFLAGS="-g"
! 2490: cat >conftest.$ac_ext <<_ACEOF
! 2491: /* confdefs.h. */
! 2492: _ACEOF
! 2493: cat confdefs.h >>conftest.$ac_ext
! 2494: cat >>conftest.$ac_ext <<_ACEOF
! 2495: /* end confdefs.h. */
! 2496:
! 2497: int
! 2498: main ()
! 2499: {
! 2500:
! 2501: ;
! 2502: return 0;
! 2503: }
! 2504: _ACEOF
! 2505: rm -f conftest.$ac_objext
! 2506: if { (ac_try="$ac_compile"
! 2507: case "(($ac_try" in
! 2508: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2509: *) ac_try_echo=$ac_try;;
! 2510: esac
! 2511: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 2512: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 2513: ac_status=$?
1.1.1.22! root 2514: grep -v '^ *+' conftest.er1 >conftest.err
! 2515: rm -f conftest.er1
! 2516: cat conftest.err >&5
1.1.1.19 root 2517: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 2518: (exit $ac_status); } && {
! 2519: test -z "$ac_c_werror_flag" ||
! 2520: test ! -s conftest.err
! 2521: } && test -s conftest.$ac_objext; then
1.1.1.4 root 2522: ac_cv_prog_cc_g=yes
1.1 root 2523: else
1.1.1.19 root 2524: echo "$as_me: failed program was:" >&5
2525: sed 's/^/| /' conftest.$ac_ext >&5
1.1 root 2526:
1.1.1.22! root 2527:
! 2528: fi
! 2529:
! 2530: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 2531: fi
! 2532:
! 2533: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 2534: fi
1.1.1.22! root 2535:
! 2536: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 2537: ac_c_werror_flag=$ac_save_c_werror_flag
1.1.1.19 root 2538: fi
1.1.1.22! root 2539: { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
! 2540: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
1.1.1.9 root 2541: if test "$ac_test_CFLAGS" = set; then
1.1.1.19 root 2542: CFLAGS=$ac_save_CFLAGS
1.1.1.9 root 2543: elif test $ac_cv_prog_cc_g = yes; then
2544: if test "$GCC" = yes; then
1.1.1.4 root 2545: CFLAGS="-g -O2"
2546: else
1.1.1.9 root 2547: CFLAGS="-g"
1.1 root 2548: fi
2549: else
1.1.1.9 root 2550: if test "$GCC" = yes; then
2551: CFLAGS="-O2"
2552: else
2553: CFLAGS=
2554: fi
1.1 root 2555: fi
1.1.1.22! root 2556: { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
! 2557: echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
! 2558: if test "${ac_cv_prog_cc_c89+set}" = set; then
1.1.1.19 root 2559: echo $ECHO_N "(cached) $ECHO_C" >&6
2560: else
1.1.1.22! root 2561: ac_cv_prog_cc_c89=no
1.1.1.19 root 2562: ac_save_CC=$CC
2563: cat >conftest.$ac_ext <<_ACEOF
2564: /* confdefs.h. */
2565: _ACEOF
2566: cat confdefs.h >>conftest.$ac_ext
2567: cat >>conftest.$ac_ext <<_ACEOF
2568: /* end confdefs.h. */
2569: #include <stdarg.h>
2570: #include <stdio.h>
2571: #include <sys/types.h>
2572: #include <sys/stat.h>
2573: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2574: struct buf { int x; };
2575: FILE * (*rcsopen) (struct buf *, struct stat *, int);
2576: static char *e (p, i)
2577: char **p;
2578: int i;
2579: {
2580: return p[i];
2581: }
2582: static char *f (char * (*g) (char **, int), char **p, ...)
2583: {
2584: char *s;
2585: va_list v;
2586: va_start (v,p);
2587: s = g (p, va_arg (v,int));
2588: va_end (v);
2589: return s;
2590: }
2591:
2592: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2593: function prototypes and stuff, but not '\xHH' hex character constants.
2594: These don't provoke an error unfortunately, instead are silently treated
1.1.1.22! root 2595: as 'x'. The following induces an error, until -std is added to get
1.1.1.19 root 2596: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2597: array size at least. It's necessary to write '\x00'==0 to get something
1.1.1.22! root 2598: that's true only with -std. */
1.1.1.19 root 2599: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2600:
1.1.1.22! root 2601: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
! 2602: inside strings and character constants. */
! 2603: #define FOO(x) 'x'
! 2604: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
! 2605:
1.1.1.19 root 2606: int test (int i, double x);
2607: struct s1 {int (*f) (int a);};
2608: struct s2 {int (*f) (double a);};
2609: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2610: int argc;
2611: char **argv;
2612: int
2613: main ()
2614: {
2615: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2616: ;
2617: return 0;
2618: }
2619: _ACEOF
1.1.1.22! root 2620: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
! 2621: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.1.1.19 root 2622: do
2623: CC="$ac_save_CC $ac_arg"
2624: rm -f conftest.$ac_objext
1.1.1.22! root 2625: if { (ac_try="$ac_compile"
! 2626: case "(($ac_try" in
! 2627: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2628: *) ac_try_echo=$ac_try;;
! 2629: esac
! 2630: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 2631: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 2632: ac_status=$?
2633: grep -v '^ *+' conftest.er1 >conftest.err
2634: rm -f conftest.er1
2635: cat conftest.err >&5
2636: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 2637: (exit $ac_status); } && {
! 2638: test -z "$ac_c_werror_flag" ||
! 2639: test ! -s conftest.err
! 2640: } && test -s conftest.$ac_objext; then
! 2641: ac_cv_prog_cc_c89=$ac_arg
1.1.1.19 root 2642: else
2643: echo "$as_me: failed program was:" >&5
2644: sed 's/^/| /' conftest.$ac_ext >&5
2645:
1.1.1.22! root 2646:
1.1.1.19 root 2647: fi
1.1.1.22! root 2648:
! 2649: rm -f core conftest.err conftest.$ac_objext
! 2650: test "x$ac_cv_prog_cc_c89" != "xno" && break
1.1.1.19 root 2651: done
1.1.1.22! root 2652: rm -f conftest.$ac_ext
1.1.1.19 root 2653: CC=$ac_save_CC
2654:
2655: fi
1.1.1.22! root 2656: # AC_CACHE_VAL
! 2657: case "x$ac_cv_prog_cc_c89" in
! 2658: x)
! 2659: { echo "$as_me:$LINENO: result: none needed" >&5
! 2660: echo "${ECHO_T}none needed" >&6; } ;;
! 2661: xno)
! 2662: { echo "$as_me:$LINENO: result: unsupported" >&5
! 2663: echo "${ECHO_T}unsupported" >&6; } ;;
1.1.1.19 root 2664: *)
1.1.1.22! root 2665: CC="$CC $ac_cv_prog_cc_c89"
! 2666: { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
! 2667: echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
1.1.1.19 root 2668: esac
2669:
1.1.1.22! root 2670:
! 2671: ac_ext=c
! 2672: ac_cpp='$CPP $CPPFLAGS'
! 2673: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 2674: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 2675: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 2676:
! 2677:
! 2678: ac_ext=c
! 2679: ac_cpp='$CPP $CPPFLAGS'
! 2680: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 2681: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 2682: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 2683: { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
! 2684: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
! 2685: # On Suns, sometimes $CPP names a directory.
! 2686: if test -n "$CPP" && test -d "$CPP"; then
! 2687: CPP=
! 2688: fi
! 2689: if test -z "$CPP"; then
! 2690: if test "${ac_cv_prog_CPP+set}" = set; then
! 2691: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2692: else
! 2693: # Double quotes because CPP needs to be expanded
! 2694: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
! 2695: do
! 2696: ac_preproc_ok=false
! 2697: for ac_c_preproc_warn_flag in '' yes
1.1.1.19 root 2698: do
1.1.1.22! root 2699: # Use a header file that comes with gcc, so configuring glibc
! 2700: # with a fresh cross-compiler works.
! 2701: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 2702: # <limits.h> exists even on freestanding compilers.
! 2703: # On the NeXT, cc -E runs the code through the compiler's parser,
! 2704: # not just through cpp. "Syntax error" is here to catch this case.
1.1.1.19 root 2705: cat >conftest.$ac_ext <<_ACEOF
2706: /* confdefs.h. */
2707: _ACEOF
2708: cat confdefs.h >>conftest.$ac_ext
2709: cat >>conftest.$ac_ext <<_ACEOF
2710: /* end confdefs.h. */
2711: #ifdef __STDC__
2712: # include <limits.h>
2713: #else
2714: # include <assert.h>
2715: #endif
2716: Syntax error
2717: _ACEOF
1.1.1.22! root 2718: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 2719: case "(($ac_try" in
! 2720: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2721: *) ac_try_echo=$ac_try;;
! 2722: esac
! 2723: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 2724: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.1.19 root 2725: ac_status=$?
2726: grep -v '^ *+' conftest.er1 >conftest.err
2727: rm -f conftest.er1
2728: cat conftest.err >&5
2729: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 2730: (exit $ac_status); } >/dev/null && {
! 2731: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 2732: test ! -s conftest.err
! 2733: }; then
1.1.1.9 root 2734: :
2735: else
1.1.1.19 root 2736: echo "$as_me: failed program was:" >&5
2737: sed 's/^/| /' conftest.$ac_ext >&5
2738:
2739: # Broken: fails on valid input.
2740: continue
2741: fi
1.1.1.22! root 2742:
1.1.1.19 root 2743: rm -f conftest.err conftest.$ac_ext
2744:
1.1.1.22! root 2745: # OK, works on sane cases. Now check whether nonexistent headers
1.1.1.19 root 2746: # can be detected and how.
2747: cat >conftest.$ac_ext <<_ACEOF
2748: /* confdefs.h. */
2749: _ACEOF
2750: cat confdefs.h >>conftest.$ac_ext
2751: cat >>conftest.$ac_ext <<_ACEOF
2752: /* end confdefs.h. */
2753: #include <ac_nonexistent.h>
2754: _ACEOF
1.1.1.22! root 2755: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 2756: case "(($ac_try" in
! 2757: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2758: *) ac_try_echo=$ac_try;;
! 2759: esac
! 2760: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 2761: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.1.19 root 2762: ac_status=$?
2763: grep -v '^ *+' conftest.er1 >conftest.err
2764: rm -f conftest.er1
2765: cat conftest.err >&5
2766: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 2767: (exit $ac_status); } >/dev/null && {
! 2768: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 2769: test ! -s conftest.err
! 2770: }; then
1.1.1.19 root 2771: # Broken: success on invalid input.
2772: continue
2773: else
2774: echo "$as_me: failed program was:" >&5
2775: sed 's/^/| /' conftest.$ac_ext >&5
2776:
2777: # Passes both tests.
2778: ac_preproc_ok=:
2779: break
1.1 root 2780: fi
1.1.1.22! root 2781:
1.1.1.19 root 2782: rm -f conftest.err conftest.$ac_ext
2783:
2784: done
2785: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2786: rm -f conftest.err conftest.$ac_ext
2787: if $ac_preproc_ok; then
2788: break
1.1.1.9 root 2789: fi
1.1.1.19 root 2790:
2791: done
2792: ac_cv_prog_CPP=$CPP
2793:
2794: fi
2795: CPP=$ac_cv_prog_CPP
2796: else
2797: ac_cv_prog_CPP=$CPP
2798: fi
1.1.1.22! root 2799: { echo "$as_me:$LINENO: result: $CPP" >&5
! 2800: echo "${ECHO_T}$CPP" >&6; }
1.1.1.19 root 2801: ac_preproc_ok=false
2802: for ac_c_preproc_warn_flag in '' yes
2803: do
2804: # Use a header file that comes with gcc, so configuring glibc
2805: # with a fresh cross-compiler works.
2806: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2807: # <limits.h> exists even on freestanding compilers.
2808: # On the NeXT, cc -E runs the code through the compiler's parser,
2809: # not just through cpp. "Syntax error" is here to catch this case.
2810: cat >conftest.$ac_ext <<_ACEOF
2811: /* confdefs.h. */
2812: _ACEOF
2813: cat confdefs.h >>conftest.$ac_ext
2814: cat >>conftest.$ac_ext <<_ACEOF
2815: /* end confdefs.h. */
2816: #ifdef __STDC__
2817: # include <limits.h>
2818: #else
2819: # include <assert.h>
2820: #endif
2821: Syntax error
2822: _ACEOF
1.1.1.22! root 2823: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 2824: case "(($ac_try" in
! 2825: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2826: *) ac_try_echo=$ac_try;;
! 2827: esac
! 2828: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 2829: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.1.19 root 2830: ac_status=$?
2831: grep -v '^ *+' conftest.er1 >conftest.err
2832: rm -f conftest.er1
2833: cat conftest.err >&5
2834: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 2835: (exit $ac_status); } >/dev/null && {
! 2836: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 2837: test ! -s conftest.err
! 2838: }; then
1.1.1.19 root 2839: :
2840: else
2841: echo "$as_me: failed program was:" >&5
2842: sed 's/^/| /' conftest.$ac_ext >&5
2843:
2844: # Broken: fails on valid input.
2845: continue
2846: fi
1.1.1.22! root 2847:
1.1.1.19 root 2848: rm -f conftest.err conftest.$ac_ext
2849:
1.1.1.22! root 2850: # OK, works on sane cases. Now check whether nonexistent headers
1.1.1.19 root 2851: # can be detected and how.
2852: cat >conftest.$ac_ext <<_ACEOF
2853: /* confdefs.h. */
2854: _ACEOF
2855: cat confdefs.h >>conftest.$ac_ext
2856: cat >>conftest.$ac_ext <<_ACEOF
2857: /* end confdefs.h. */
2858: #include <ac_nonexistent.h>
2859: _ACEOF
1.1.1.22! root 2860: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 2861: case "(($ac_try" in
! 2862: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2863: *) ac_try_echo=$ac_try;;
! 2864: esac
! 2865: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 2866: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.1.19 root 2867: ac_status=$?
2868: grep -v '^ *+' conftest.er1 >conftest.err
2869: rm -f conftest.er1
2870: cat conftest.err >&5
2871: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 2872: (exit $ac_status); } >/dev/null && {
! 2873: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 2874: test ! -s conftest.err
! 2875: }; then
1.1.1.19 root 2876: # Broken: success on invalid input.
2877: continue
1.1 root 2878: else
1.1.1.19 root 2879: echo "$as_me: failed program was:" >&5
2880: sed 's/^/| /' conftest.$ac_ext >&5
2881:
2882: # Passes both tests.
2883: ac_preproc_ok=:
2884: break
2885: fi
1.1.1.22! root 2886:
1.1.1.19 root 2887: rm -f conftest.err conftest.$ac_ext
2888:
2889: done
2890: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2891: rm -f conftest.err conftest.$ac_ext
2892: if $ac_preproc_ok; then
2893: :
2894: else
2895: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2896: See \`config.log' for more details." >&5
2897: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2898: See \`config.log' for more details." >&2;}
2899: { (exit 1); exit 1; }; }
1.1 root 2900: fi
2901:
1.1.1.19 root 2902: ac_ext=c
2903: ac_cpp='$CPP $CPPFLAGS'
2904: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2905: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2906: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2907:
1.1.1.22! root 2908: { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
! 2909: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
! 2910: set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
! 2911: if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 2912: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 root 2913: else
1.1.1.19 root 2914: cat >conftest.make <<\_ACEOF
1.1.1.22! root 2915: SHELL = /bin/sh
1.1 root 2916: all:
1.1.1.22! root 2917: @echo '@@@%%%=$(MAKE)=@@@%%%'
1.1.1.19 root 2918: _ACEOF
1.1 root 2919: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.1.1.22! root 2920: case `${MAKE-make} -f conftest.make 2>/dev/null` in
! 2921: *@@@%%%=?*=@@@%%%*)
! 2922: eval ac_cv_prog_make_${ac_make}_set=yes;;
! 2923: *)
! 2924: eval ac_cv_prog_make_${ac_make}_set=no;;
! 2925: esac
1.1.1.19 root 2926: rm -f conftest.make
1.1 root 2927: fi
1.1.1.22! root 2928: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
! 2929: { echo "$as_me:$LINENO: result: yes" >&5
! 2930: echo "${ECHO_T}yes" >&6; }
1.1 root 2931: SET_MAKE=
2932: else
1.1.1.22! root 2933: { echo "$as_me:$LINENO: result: no" >&5
! 2934: echo "${ECHO_T}no" >&6; }
1.1 root 2935: SET_MAKE="MAKE=${MAKE-make}"
2936: fi
2937:
1.1.1.11 root 2938: # Extract the first word of "makedepend", so it can be a program name with args.
2939: set dummy makedepend; ac_word=$2
1.1.1.22! root 2940: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2941: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1.1.19 root 2942: if test "${ac_cv_path_MAKEDEPPRG+set}" = set; then
2943: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.11 root 2944: else
1.1.1.19 root 2945: case $MAKEDEPPRG in
2946: [\\/]* | ?:[\\/]*)
1.1.1.11 root 2947: ac_cv_path_MAKEDEPPRG="$MAKEDEPPRG" # Let the user override the test with a path.
2948: ;;
2949: *)
1.1.1.19 root 2950: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951: for as_dir in $PATH
2952: do
2953: IFS=$as_save_IFS
2954: test -z "$as_dir" && as_dir=.
2955: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.22! root 2956: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.1.19 root 2957: ac_cv_path_MAKEDEPPRG="$as_dir/$ac_word$ac_exec_ext"
2958: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2959: break 2
2960: fi
2961: done
2962: done
1.1.1.22! root 2963: IFS=$as_save_IFS
1.1.1.19 root 2964:
2965: test -z "$ac_cv_path_MAKEDEPPRG" && ac_cv_path_MAKEDEPPRG="not-found"
2966: ;;
2967: esac
2968: fi
2969: MAKEDEPPRG=$ac_cv_path_MAKEDEPPRG
1.1.1.11 root 2970: if test -n "$MAKEDEPPRG"; then
1.1.1.22! root 2971: { echo "$as_me:$LINENO: result: $MAKEDEPPRG" >&5
! 2972: echo "${ECHO_T}$MAKEDEPPRG" >&6; }
1.1.1.11 root 2973: else
1.1.1.22! root 2974: { echo "$as_me:$LINENO: result: no" >&5
! 2975: echo "${ECHO_T}no" >&6; }
1.1.1.11 root 2976: fi
2977:
1.1.1.22! root 2978:
1.1.1.4 root 2979: # Extract the first word of "file", so it can be a program name with args.
2980: set dummy file; ac_word=$2
1.1.1.22! root 2981: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2982: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1.1.19 root 2983: if test "${ac_cv_path_FILEPRG+set}" = set; then
2984: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.4 root 2985: else
1.1.1.19 root 2986: case $FILEPRG in
2987: [\\/]* | ?:[\\/]*)
1.1.1.4 root 2988: ac_cv_path_FILEPRG="$FILEPRG" # Let the user override the test with a path.
2989: ;;
2990: *)
1.1.1.19 root 2991: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992: for as_dir in $PATH
2993: do
2994: IFS=$as_save_IFS
2995: test -z "$as_dir" && as_dir=.
2996: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.22! root 2997: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.1.19 root 2998: ac_cv_path_FILEPRG="$as_dir/$ac_word$ac_exec_ext"
2999: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3000: break 2
3001: fi
3002: done
3003: done
1.1.1.22! root 3004: IFS=$as_save_IFS
1.1.1.19 root 3005:
1.1.1.4 root 3006: test -z "$ac_cv_path_FILEPRG" && ac_cv_path_FILEPRG="not-found"
3007: ;;
3008: esac
3009: fi
1.1.1.19 root 3010: FILEPRG=$ac_cv_path_FILEPRG
1.1.1.4 root 3011: if test -n "$FILEPRG"; then
1.1.1.22! root 3012: { echo "$as_me:$LINENO: result: $FILEPRG" >&5
! 3013: echo "${ECHO_T}$FILEPRG" >&6; }
1.1.1.4 root 3014: else
1.1.1.22! root 3015: { echo "$as_me:$LINENO: result: no" >&5
! 3016: echo "${ECHO_T}no" >&6; }
1.1.1.4 root 3017: fi
3018:
1.1.1.22! root 3019:
1.1.1.6 root 3020: # Extract the first word of "wrc", so it can be a program name with args.
3021: set dummy wrc; ac_word=$2
1.1.1.22! root 3022: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 3023: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1.1.19 root 3024: if test "${ac_cv_path_WRCPRG+set}" = set; then
3025: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.6 root 3026: else
1.1.1.19 root 3027: case $WRCPRG in
3028: [\\/]* | ?:[\\/]*)
1.1.1.6 root 3029: ac_cv_path_WRCPRG="$WRCPRG" # Let the user override the test with a path.
3030: ;;
3031: *)
1.1.1.19 root 3032: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033: for as_dir in $PATH
3034: do
3035: IFS=$as_save_IFS
3036: test -z "$as_dir" && as_dir=.
3037: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.22! root 3038: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.1.19 root 3039: ac_cv_path_WRCPRG="$as_dir/$ac_word$ac_exec_ext"
3040: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3041: break 2
3042: fi
3043: done
3044: done
1.1.1.22! root 3045: IFS=$as_save_IFS
1.1.1.19 root 3046:
1.1.1.6 root 3047: test -z "$ac_cv_path_WRCPRG" && ac_cv_path_WRCPRG="not-found"
3048: ;;
3049: esac
3050: fi
1.1.1.19 root 3051: WRCPRG=$ac_cv_path_WRCPRG
1.1.1.6 root 3052: if test -n "$WRCPRG"; then
1.1.1.22! root 3053: { echo "$as_me:$LINENO: result: $WRCPRG" >&5
! 3054: echo "${ECHO_T}$WRCPRG" >&6; }
1.1.1.6 root 3055: else
1.1.1.22! root 3056: { echo "$as_me:$LINENO: result: no" >&5
! 3057: echo "${ECHO_T}no" >&6; }
1.1.1.6 root 3058: fi
3059:
1.1.1.22! root 3060:
1.1.1.6 root 3061: # Extract the first word of "rcl", so it can be a program name with args.
3062: set dummy rcl; ac_word=$2
1.1.1.22! root 3063: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 3064: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1.1.19 root 3065: if test "${ac_cv_path_RCLPRG+set}" = set; then
3066: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.6 root 3067: else
1.1.1.19 root 3068: case $RCLPRG in
3069: [\\/]* | ?:[\\/]*)
1.1.1.6 root 3070: ac_cv_path_RCLPRG="$RCLPRG" # Let the user override the test with a path.
3071: ;;
3072: *)
1.1.1.19 root 3073: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074: for as_dir in $PATH
3075: do
3076: IFS=$as_save_IFS
3077: test -z "$as_dir" && as_dir=.
3078: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.22! root 3079: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.1.19 root 3080: ac_cv_path_RCLPRG="$as_dir/$ac_word$ac_exec_ext"
3081: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3082: break 2
3083: fi
3084: done
3085: done
1.1.1.22! root 3086: IFS=$as_save_IFS
1.1.1.19 root 3087:
1.1.1.6 root 3088: test -z "$ac_cv_path_RCLPRG" && ac_cv_path_RCLPRG="not-found"
3089: ;;
3090: esac
3091: fi
1.1.1.19 root 3092: RCLPRG=$ac_cv_path_RCLPRG
1.1.1.6 root 3093: if test -n "$RCLPRG"; then
1.1.1.22! root 3094: { echo "$as_me:$LINENO: result: $RCLPRG" >&5
! 3095: echo "${ECHO_T}$RCLPRG" >&6; }
1.1.1.6 root 3096: else
1.1.1.22! root 3097: { echo "$as_me:$LINENO: result: no" >&5
! 3098: echo "${ECHO_T}no" >&6; }
1.1.1.6 root 3099: fi
3100:
1.1.1.22! root 3101:
1.1.1.16 root 3102: # Extract the first word of "sdl-config", so it can be a program name with args.
3103: set dummy sdl-config; ac_word=$2
1.1.1.22! root 3104: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 3105: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1.1.19 root 3106: if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
3107: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.16 root 3108: else
1.1.1.19 root 3109: case $SDL_CONFIG in
3110: [\\/]* | ?:[\\/]*)
1.1.1.16 root 3111: ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
3112: ;;
3113: *)
1.1.1.19 root 3114: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115: for as_dir in $PATH
3116: do
3117: IFS=$as_save_IFS
3118: test -z "$as_dir" && as_dir=.
3119: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.22! root 3120: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.1.19 root 3121: ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3122: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3123: break 2
3124: fi
3125: done
3126: done
1.1.1.22! root 3127: IFS=$as_save_IFS
1.1.1.19 root 3128:
1.1.1.16 root 3129: test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="not-found"
3130: ;;
3131: esac
3132: fi
1.1.1.19 root 3133: SDL_CONFIG=$ac_cv_path_SDL_CONFIG
1.1.1.16 root 3134: if test -n "$SDL_CONFIG"; then
1.1.1.22! root 3135: { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
! 3136: echo "${ECHO_T}$SDL_CONFIG" >&6; }
! 3137: else
! 3138: { echo "$as_me:$LINENO: result: no" >&5
! 3139: echo "${ECHO_T}no" >&6; }
! 3140: fi
! 3141:
! 3142:
! 3143:
! 3144:
! 3145:
! 3146: { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
! 3147: echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
! 3148: if test "${ac_cv_path_GREP+set}" = set; then
! 3149: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3150: else
! 3151: # Extract the first word of "grep ggrep" to use in msg output
! 3152: if test -z "$GREP"; then
! 3153: set dummy grep ggrep; ac_prog_name=$2
! 3154: if test "${ac_cv_path_GREP+set}" = set; then
! 3155: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3156: else
! 3157: ac_path_GREP_found=false
! 3158: # Loop through the user's path and test for each of PROGNAME-LIST
! 3159: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 3160: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
! 3161: do
! 3162: IFS=$as_save_IFS
! 3163: test -z "$as_dir" && as_dir=.
! 3164: for ac_prog in grep ggrep; do
! 3165: for ac_exec_ext in '' $ac_executable_extensions; do
! 3166: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
! 3167: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
! 3168: # Check for GNU ac_path_GREP and select it if it is found.
! 3169: # Check for GNU $ac_path_GREP
! 3170: case `"$ac_path_GREP" --version 2>&1` in
! 3171: *GNU*)
! 3172: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
! 3173: *)
! 3174: ac_count=0
! 3175: echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
! 3176: while :
! 3177: do
! 3178: cat "conftest.in" "conftest.in" >"conftest.tmp"
! 3179: mv "conftest.tmp" "conftest.in"
! 3180: cp "conftest.in" "conftest.nl"
! 3181: echo 'GREP' >> "conftest.nl"
! 3182: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
! 3183: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
! 3184: ac_count=`expr $ac_count + 1`
! 3185: if test $ac_count -gt ${ac_path_GREP_max-0}; then
! 3186: # Best one so far, save it but keep looking for a better one
! 3187: ac_cv_path_GREP="$ac_path_GREP"
! 3188: ac_path_GREP_max=$ac_count
! 3189: fi
! 3190: # 10*(2^10) chars as input seems more than enough
! 3191: test $ac_count -gt 10 && break
! 3192: done
! 3193: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
! 3194: esac
! 3195:
! 3196:
! 3197: $ac_path_GREP_found && break 3
! 3198: done
! 3199: done
! 3200:
! 3201: done
! 3202: IFS=$as_save_IFS
! 3203:
! 3204:
! 3205: fi
! 3206:
! 3207: GREP="$ac_cv_path_GREP"
! 3208: if test -z "$GREP"; then
! 3209: { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
! 3210: echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
! 3211: { (exit 1); exit 1; }; }
! 3212: fi
! 3213:
1.1.1.16 root 3214: else
1.1.1.22! root 3215: ac_cv_path_GREP=$GREP
1.1.1.16 root 3216: fi
3217:
1.1 root 3218:
1.1.1.22! root 3219: fi
! 3220: { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
! 3221: echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
! 3222: GREP="$ac_cv_path_GREP"
1.1.1.19 root 3223:
3224:
1.1.1.22! root 3225: { echo "$as_me:$LINENO: checking for egrep" >&5
! 3226: echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
! 3227: if test "${ac_cv_path_EGREP+set}" = set; then
! 3228: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3229: else
! 3230: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
! 3231: then ac_cv_path_EGREP="$GREP -E"
! 3232: else
! 3233: # Extract the first word of "egrep" to use in msg output
! 3234: if test -z "$EGREP"; then
! 3235: set dummy egrep; ac_prog_name=$2
! 3236: if test "${ac_cv_path_EGREP+set}" = set; then
1.1.1.19 root 3237: echo $ECHO_N "(cached) $ECHO_C" >&6
3238: else
1.1.1.22! root 3239: ac_path_EGREP_found=false
! 3240: # Loop through the user's path and test for each of PROGNAME-LIST
! 3241: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 3242: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
! 3243: do
! 3244: IFS=$as_save_IFS
! 3245: test -z "$as_dir" && as_dir=.
! 3246: for ac_prog in egrep; do
! 3247: for ac_exec_ext in '' $ac_executable_extensions; do
! 3248: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
! 3249: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
! 3250: # Check for GNU ac_path_EGREP and select it if it is found.
! 3251: # Check for GNU $ac_path_EGREP
! 3252: case `"$ac_path_EGREP" --version 2>&1` in
! 3253: *GNU*)
! 3254: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
! 3255: *)
! 3256: ac_count=0
! 3257: echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
! 3258: while :
! 3259: do
! 3260: cat "conftest.in" "conftest.in" >"conftest.tmp"
! 3261: mv "conftest.tmp" "conftest.in"
! 3262: cp "conftest.in" "conftest.nl"
! 3263: echo 'EGREP' >> "conftest.nl"
! 3264: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
! 3265: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
! 3266: ac_count=`expr $ac_count + 1`
! 3267: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
! 3268: # Best one so far, save it but keep looking for a better one
! 3269: ac_cv_path_EGREP="$ac_path_EGREP"
! 3270: ac_path_EGREP_max=$ac_count
1.1.1.19 root 3271: fi
1.1.1.22! root 3272: # 10*(2^10) chars as input seems more than enough
! 3273: test $ac_count -gt 10 && break
! 3274: done
! 3275: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
! 3276: esac
! 3277:
! 3278:
! 3279: $ac_path_EGREP_found && break 3
! 3280: done
! 3281: done
! 3282:
! 3283: done
! 3284: IFS=$as_save_IFS
! 3285:
! 3286:
! 3287: fi
! 3288:
! 3289: EGREP="$ac_cv_path_EGREP"
! 3290: if test -z "$EGREP"; then
! 3291: { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
! 3292: echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
! 3293: { (exit 1); exit 1; }; }
1.1.1.19 root 3294: fi
1.1.1.22! root 3295:
! 3296: else
! 3297: ac_cv_path_EGREP=$EGREP
! 3298: fi
! 3299:
! 3300:
! 3301: fi
! 3302: fi
! 3303: { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
! 3304: echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
! 3305: EGREP="$ac_cv_path_EGREP"
1.1.1.19 root 3306:
3307:
3308:
1.1.1.22! root 3309: { echo "$as_me:$LINENO: checking for AIX" >&5
! 3310: echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
1.1.1.19 root 3311: cat >conftest.$ac_ext <<_ACEOF
3312: /* confdefs.h. */
3313: _ACEOF
3314: cat confdefs.h >>conftest.$ac_ext
3315: cat >>conftest.$ac_ext <<_ACEOF
3316: /* end confdefs.h. */
1.1 root 3317: #ifdef _AIX
3318: yes
3319: #endif
3320:
1.1.1.19 root 3321: _ACEOF
1.1 root 3322: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.19 root 3323: $EGREP "yes" >/dev/null 2>&1; then
1.1.1.22! root 3324: { echo "$as_me:$LINENO: result: yes" >&5
! 3325: echo "${ECHO_T}yes" >&6; }
1.1.1.19 root 3326: cat >>confdefs.h <<\_ACEOF
1.1 root 3327: #define _ALL_SOURCE 1
1.1.1.19 root 3328: _ACEOF
1.1 root 3329:
3330: else
1.1.1.22! root 3331: { echo "$as_me:$LINENO: result: no" >&5
! 3332: echo "${ECHO_T}no" >&6; }
1.1 root 3333: fi
3334: rm -f conftest*
3335:
3336:
1.1.1.22! root 3337: { echo "$as_me:$LINENO: checking for library containing strerror" >&5
! 3338: echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
1.1.1.19 root 3339: if test "${ac_cv_search_strerror+set}" = set; then
3340: echo $ECHO_N "(cached) $ECHO_C" >&6
3341: else
3342: ac_func_search_save_LIBS=$LIBS
3343: cat >conftest.$ac_ext <<_ACEOF
3344: /* confdefs.h. */
3345: _ACEOF
3346: cat confdefs.h >>conftest.$ac_ext
3347: cat >>conftest.$ac_ext <<_ACEOF
3348: /* end confdefs.h. */
1.1 root 3349:
1.1.1.22! root 3350: /* Override any GCC internal prototype to avoid an error.
! 3351: Use char because int might match the return type of a GCC
! 3352: builtin and then its argument prototype would still apply. */
1.1.1.19 root 3353: #ifdef __cplusplus
3354: extern "C"
3355: #endif
3356: char strerror ();
3357: int
3358: main ()
3359: {
1.1.1.22! root 3360: return strerror ();
1.1.1.19 root 3361: ;
3362: return 0;
3363: }
3364: _ACEOF
1.1.1.22! root 3365: for ac_lib in '' cposix; do
! 3366: if test -z "$ac_lib"; then
! 3367: ac_res="none required"
! 3368: else
! 3369: ac_res=-l$ac_lib
! 3370: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
! 3371: fi
! 3372: rm -f conftest.$ac_objext conftest$ac_exeext
! 3373: if { (ac_try="$ac_link"
! 3374: case "(($ac_try" in
! 3375: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3376: *) ac_try_echo=$ac_try;;
! 3377: esac
! 3378: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3379: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 3380: ac_status=$?
3381: grep -v '^ *+' conftest.er1 >conftest.err
3382: rm -f conftest.er1
3383: cat conftest.err >&5
3384: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 3385: (exit $ac_status); } && {
! 3386: test -z "$ac_c_werror_flag" ||
! 3387: test ! -s conftest.err
! 3388: } && test -s conftest$ac_exeext &&
! 3389: $as_test_x conftest$ac_exeext; then
! 3390: ac_cv_search_strerror=$ac_res
1.1.1.19 root 3391: else
3392: echo "$as_me: failed program was:" >&5
3393: sed 's/^/| /' conftest.$ac_ext >&5
3394:
3395:
1.1.1.22! root 3396: fi
1.1.1.19 root 3397:
1.1.1.22! root 3398: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 3399: conftest$ac_exeext
! 3400: if test "${ac_cv_search_strerror+set}" = set; then
! 3401: break
1.1.1.19 root 3402: fi
1.1.1.22! root 3403: done
! 3404: if test "${ac_cv_search_strerror+set}" = set; then
! 3405: :
! 3406: else
! 3407: ac_cv_search_strerror=no
1.1.1.19 root 3408: fi
1.1.1.22! root 3409: rm conftest.$ac_ext
1.1.1.19 root 3410: LIBS=$ac_func_search_save_LIBS
1.1 root 3411: fi
1.1.1.22! root 3412: { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
! 3413: echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
! 3414: ac_res=$ac_cv_search_strerror
! 3415: if test "$ac_res" != no; then
! 3416: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1 root 3417:
1.1.1.19 root 3418: fi
1.1 root 3419:
1.1.1.19 root 3420:
1.1.1.22! root 3421: { echo "$as_me:$LINENO: checking for Watcom C" >&5
! 3422: echo $ECHO_N "checking for Watcom C... $ECHO_C" >&6; }
1.1.1.19 root 3423: cat >conftest.$ac_ext <<_ACEOF
3424: /* confdefs.h. */
3425: _ACEOF
3426: cat confdefs.h >>conftest.$ac_ext
3427: cat >>conftest.$ac_ext <<_ACEOF
3428: /* end confdefs.h. */
1.1.1.6 root 3429: #ifdef __WATCOMC__
3430: yes
3431: #endif
3432:
1.1.1.19 root 3433: _ACEOF
1.1.1.6 root 3434: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.19 root 3435: $EGREP "yes" >/dev/null 2>&1; then
1.1.1.6 root 3436: uae_cv_prog_cc_watcom=yes
3437: else
3438: uae_cv_prog_cc_watcom=no
3439: fi
3440: rm -f conftest*
3441:
1.1.1.22! root 3442: { echo "$as_me:$LINENO: result: $uae_cv_prog_cc_watcom" >&5
! 3443: echo "${ECHO_T}$uae_cv_prog_cc_watcom" >&6; }
1.1.1.6 root 3444:
1.1.1.19 root 3445: ac_aux_dir=
1.1.1.22! root 3446: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
! 3447: if test -f "$ac_dir/install-sh"; then
1.1.1.19 root 3448: ac_aux_dir=$ac_dir
3449: ac_install_sh="$ac_aux_dir/install-sh -c"
3450: break
1.1.1.22! root 3451: elif test -f "$ac_dir/install.sh"; then
1.1.1.19 root 3452: ac_aux_dir=$ac_dir
3453: ac_install_sh="$ac_aux_dir/install.sh -c"
3454: break
1.1.1.22! root 3455: elif test -f "$ac_dir/shtool"; then
1.1.1.19 root 3456: ac_aux_dir=$ac_dir
3457: ac_install_sh="$ac_aux_dir/shtool install -c"
3458: break
3459: fi
3460: done
3461: if test -z "$ac_aux_dir"; then
1.1.1.22! root 3462: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
! 3463: echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1.1.1.19 root 3464: { (exit 1); exit 1; }; }
3465: fi
1.1.1.22! root 3466:
! 3467: # These three variables are undocumented and unsupported,
! 3468: # and are intended to be withdrawn in a future Autoconf release.
! 3469: # They can cause serious problems if a builder's source tree is in a directory
! 3470: # whose full name contains unusual characters.
! 3471: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
! 3472: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
! 3473: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
! 3474:
1.1.1.19 root 3475:
3476: # Make sure we can run config.sub.
1.1.1.22! root 3477: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
! 3478: { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
! 3479: echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1.1.1.19 root 3480: { (exit 1); exit 1; }; }
3481:
1.1.1.22! root 3482: { echo "$as_me:$LINENO: checking build system type" >&5
! 3483: echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1.1.1.19 root 3484: if test "${ac_cv_build+set}" = set; then
3485: echo $ECHO_N "(cached) $ECHO_C" >&6
3486: else
1.1.1.22! root 3487: ac_build_alias=$build_alias
! 3488: test "x$ac_build_alias" = x &&
! 3489: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
! 3490: test "x$ac_build_alias" = x &&
1.1.1.19 root 3491: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3492: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3493: { (exit 1); exit 1; }; }
1.1.1.22! root 3494: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
! 3495: { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
! 3496: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1.1.1.19 root 3497: { (exit 1); exit 1; }; }
3498:
3499: fi
1.1.1.22! root 3500: { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
! 3501: echo "${ECHO_T}$ac_cv_build" >&6; }
! 3502: case $ac_cv_build in
! 3503: *-*-*) ;;
! 3504: *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
! 3505: echo "$as_me: error: invalid value of canonical build" >&2;}
! 3506: { (exit 1); exit 1; }; };;
! 3507: esac
1.1.1.19 root 3508: build=$ac_cv_build
1.1.1.22! root 3509: ac_save_IFS=$IFS; IFS='-'
! 3510: set x $ac_cv_build
! 3511: shift
! 3512: build_cpu=$1
! 3513: build_vendor=$2
! 3514: shift; shift
! 3515: # Remember, the first character of IFS is used to create $*,
! 3516: # except with old shells:
! 3517: build_os=$*
! 3518: IFS=$ac_save_IFS
! 3519: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1.1.1.19 root 3520:
3521:
1.1.1.22! root 3522: { echo "$as_me:$LINENO: checking host system type" >&5
! 3523: echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1.1.1.19 root 3524: if test "${ac_cv_host+set}" = set; then
3525: echo $ECHO_N "(cached) $ECHO_C" >&6
3526: else
1.1.1.22! root 3527: if test "x$host_alias" = x; then
! 3528: ac_cv_host=$ac_cv_build
! 3529: else
! 3530: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
! 3531: { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
! 3532: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1.1.1.19 root 3533: { (exit 1); exit 1; }; }
1.1.1.22! root 3534: fi
1.1.1.19 root 3535:
3536: fi
1.1.1.22! root 3537: { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
! 3538: echo "${ECHO_T}$ac_cv_host" >&6; }
! 3539: case $ac_cv_host in
! 3540: *-*-*) ;;
! 3541: *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
! 3542: echo "$as_me: error: invalid value of canonical host" >&2;}
! 3543: { (exit 1); exit 1; }; };;
! 3544: esac
1.1.1.19 root 3545: host=$ac_cv_host
1.1.1.22! root 3546: ac_save_IFS=$IFS; IFS='-'
! 3547: set x $ac_cv_host
! 3548: shift
! 3549: host_cpu=$1
! 3550: host_vendor=$2
! 3551: shift; shift
! 3552: # Remember, the first character of IFS is used to create $*,
! 3553: # except with old shells:
! 3554: host_os=$*
! 3555: IFS=$ac_save_IFS
! 3556: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.1.1.19 root 3557:
3558:
3559: case $host_os in
3560: *cygwin* ) CYGWIN=yes;;
3561: * ) CYGWIN=no;;
3562: esac
1.1.1.6 root 3563:
1.1.1.19 root 3564: case $host_os in
3565: *mingw32* ) MINGW32=yes;;
3566: * ) MINGW32=no;;
3567: esac
1.1.1.6 root 3568:
3569:
3570:
1.1.1.4 root 3571: NR_WARNINGS=0
3572: NR_ERRORS=0
3573:
1.1.1.6 root 3574: tmp_save_dir=`pwd`
3575: cd $srcdir
3576: abssrcdir=`pwd`
3577: cd $tmp_save_dir
3578:
1.1.1.4 root 3579: NEED_THREAD_SUPPORT=no
3580:
3581: ADDITIONAL_CFLAGS=
3582: OPTIMIZE_CFLAGS=
3583: WARNING_CFLAGS=
3584: DEBUG_CFLAGS=
3585: NO_SCHED_CFLAGS=
1.1.1.19 root 3586: NO_REORDER_CFLAGS=
1.1.1.14 root 3587: LDFLAGS="$LDFLAGS -L."
1.1.1.4 root 3588:
3589: HAVE_BEOS=no
3590: HAVE_POS=no
1.1.1.22! root 3591: { echo "$as_me:$LINENO: checking for main in -lMedia_s" >&5
! 3592: echo $ECHO_N "checking for main in -lMedia_s... $ECHO_C" >&6; }
1.1.1.19 root 3593: if test "${ac_cv_lib_Media_s_main+set}" = set; then
3594: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 root 3595: else
1.1.1.19 root 3596: ac_check_lib_save_LIBS=$LIBS
1.1 root 3597: LIBS="-lMedia_s $LIBS"
1.1.1.19 root 3598: cat >conftest.$ac_ext <<_ACEOF
3599: /* confdefs.h. */
3600: _ACEOF
3601: cat confdefs.h >>conftest.$ac_ext
3602: cat >>conftest.$ac_ext <<_ACEOF
3603: /* end confdefs.h. */
1.1 root 3604:
3605:
1.1.1.19 root 3606: int
3607: main ()
3608: {
1.1.1.22! root 3609: return main ();
1.1.1.19 root 3610: ;
3611: return 0;
3612: }
3613: _ACEOF
3614: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22! root 3615: if { (ac_try="$ac_link"
! 3616: case "(($ac_try" in
! 3617: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3618: *) ac_try_echo=$ac_try;;
! 3619: esac
! 3620: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3621: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 3622: ac_status=$?
3623: grep -v '^ *+' conftest.er1 >conftest.err
3624: rm -f conftest.er1
3625: cat conftest.err >&5
3626: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 3627: (exit $ac_status); } && {
! 3628: test -z "$ac_c_werror_flag" ||
! 3629: test ! -s conftest.err
! 3630: } && test -s conftest$ac_exeext &&
! 3631: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 3632: ac_cv_lib_Media_s_main=yes
3633: else
3634: echo "$as_me: failed program was:" >&5
3635: sed 's/^/| /' conftest.$ac_ext >&5
3636:
1.1.1.22! root 3637: ac_cv_lib_Media_s_main=no
1.1.1.19 root 3638: fi
1.1.1.22! root 3639:
! 3640: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 3641: conftest$ac_exeext conftest.$ac_ext
3642: LIBS=$ac_check_lib_save_LIBS
3643: fi
1.1.1.22! root 3644: { echo "$as_me:$LINENO: result: $ac_cv_lib_Media_s_main" >&5
! 3645: echo "${ECHO_T}$ac_cv_lib_Media_s_main" >&6; }
1.1.1.19 root 3646: if test $ac_cv_lib_Media_s_main = yes; then
1.1.1.4 root 3647: HAVE_MEDIA_LIB=yes
1.1 root 3648: else
1.1.1.19 root 3649: HAVE_MEDIA_LIB=no
1.1 root 3650: fi
3651:
1.1.1.22! root 3652: { echo "$as_me:$LINENO: checking for main in -lNeXT_s" >&5
! 3653: echo $ECHO_N "checking for main in -lNeXT_s... $ECHO_C" >&6; }
1.1.1.19 root 3654: if test "${ac_cv_lib_NeXT_s_main+set}" = set; then
3655: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 root 3656: else
1.1.1.19 root 3657: ac_check_lib_save_LIBS=$LIBS
1.1 root 3658: LIBS="-lNeXT_s $LIBS"
1.1.1.19 root 3659: cat >conftest.$ac_ext <<_ACEOF
3660: /* confdefs.h. */
3661: _ACEOF
3662: cat confdefs.h >>conftest.$ac_ext
3663: cat >>conftest.$ac_ext <<_ACEOF
3664: /* end confdefs.h. */
1.1 root 3665:
3666:
1.1.1.19 root 3667: int
3668: main ()
3669: {
1.1.1.22! root 3670: return main ();
1.1.1.19 root 3671: ;
3672: return 0;
3673: }
3674: _ACEOF
3675: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22! root 3676: if { (ac_try="$ac_link"
! 3677: case "(($ac_try" in
! 3678: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3679: *) ac_try_echo=$ac_try;;
! 3680: esac
! 3681: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3682: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 3683: ac_status=$?
3684: grep -v '^ *+' conftest.er1 >conftest.err
3685: rm -f conftest.er1
3686: cat conftest.err >&5
3687: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 3688: (exit $ac_status); } && {
! 3689: test -z "$ac_c_werror_flag" ||
! 3690: test ! -s conftest.err
! 3691: } && test -s conftest$ac_exeext &&
! 3692: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 3693: ac_cv_lib_NeXT_s_main=yes
3694: else
3695: echo "$as_me: failed program was:" >&5
3696: sed 's/^/| /' conftest.$ac_ext >&5
3697:
1.1.1.22! root 3698: ac_cv_lib_NeXT_s_main=no
1.1.1.19 root 3699: fi
1.1.1.22! root 3700:
! 3701: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 3702: conftest$ac_exeext conftest.$ac_ext
3703: LIBS=$ac_check_lib_save_LIBS
3704: fi
1.1.1.22! root 3705: { echo "$as_me:$LINENO: result: $ac_cv_lib_NeXT_s_main" >&5
! 3706: echo "${ECHO_T}$ac_cv_lib_NeXT_s_main" >&6; }
1.1.1.19 root 3707: if test $ac_cv_lib_NeXT_s_main = yes; then
1.1.1.4 root 3708: HAVE_NEXT_LIB=yes
1.1 root 3709: else
1.1.1.19 root 3710: HAVE_NEXT_LIB=no
1.1 root 3711: fi
3712:
1.1.1.22! root 3713: { echo "$as_me:$LINENO: checking for cos in -lmoto" >&5
! 3714: echo $ECHO_N "checking for cos in -lmoto... $ECHO_C" >&6; }
1.1.1.19 root 3715: if test "${ac_cv_lib_moto_cos+set}" = set; then
3716: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.11 root 3717: else
1.1.1.19 root 3718: ac_check_lib_save_LIBS=$LIBS
1.1.1.11 root 3719: LIBS="-lmoto $LIBS"
1.1.1.19 root 3720: cat >conftest.$ac_ext <<_ACEOF
3721: /* confdefs.h. */
3722: _ACEOF
3723: cat confdefs.h >>conftest.$ac_ext
3724: cat >>conftest.$ac_ext <<_ACEOF
3725: /* end confdefs.h. */
3726:
1.1.1.22! root 3727: /* Override any GCC internal prototype to avoid an error.
! 3728: Use char because int might match the return type of a GCC
! 3729: builtin and then its argument prototype would still apply. */
1.1.1.19 root 3730: #ifdef __cplusplus
3731: extern "C"
3732: #endif
3733: char cos ();
3734: int
3735: main ()
3736: {
1.1.1.22! root 3737: return cos ();
1.1.1.19 root 3738: ;
3739: return 0;
3740: }
3741: _ACEOF
3742: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22! root 3743: if { (ac_try="$ac_link"
! 3744: case "(($ac_try" in
! 3745: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3746: *) ac_try_echo=$ac_try;;
! 3747: esac
! 3748: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3749: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 3750: ac_status=$?
3751: grep -v '^ *+' conftest.er1 >conftest.err
3752: rm -f conftest.er1
3753: cat conftest.err >&5
3754: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 3755: (exit $ac_status); } && {
! 3756: test -z "$ac_c_werror_flag" ||
! 3757: test ! -s conftest.err
! 3758: } && test -s conftest$ac_exeext &&
! 3759: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 3760: ac_cv_lib_moto_cos=yes
3761: else
3762: echo "$as_me: failed program was:" >&5
3763: sed 's/^/| /' conftest.$ac_ext >&5
3764:
1.1.1.22! root 3765: ac_cv_lib_moto_cos=no
1.1.1.19 root 3766: fi
1.1.1.22! root 3767:
! 3768: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 3769: conftest$ac_exeext conftest.$ac_ext
3770: LIBS=$ac_check_lib_save_LIBS
3771: fi
1.1.1.22! root 3772: { echo "$as_me:$LINENO: result: $ac_cv_lib_moto_cos" >&5
! 3773: echo "${ECHO_T}$ac_cv_lib_moto_cos" >&6; }
1.1.1.19 root 3774: if test $ac_cv_lib_moto_cos = yes; then
1.1.1.11 root 3775: HAVE_MOTO_LIB=yes
3776: else
1.1.1.19 root 3777: HAVE_MOTO_LIB=no
1.1.1.11 root 3778: fi
3779:
1.1.1.22! root 3780: { echo "$as_me:$LINENO: checking for OpenLibrary in -lamiga" >&5
! 3781: echo $ECHO_N "checking for OpenLibrary in -lamiga... $ECHO_C" >&6; }
1.1.1.19 root 3782: if test "${ac_cv_lib_amiga_OpenLibrary+set}" = set; then
3783: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.3 root 3784: else
1.1.1.19 root 3785: ac_check_lib_save_LIBS=$LIBS
1.1.1.3 root 3786: LIBS="-lamiga $LIBS"
1.1.1.19 root 3787: cat >conftest.$ac_ext <<_ACEOF
3788: /* confdefs.h. */
3789: _ACEOF
3790: cat confdefs.h >>conftest.$ac_ext
3791: cat >>conftest.$ac_ext <<_ACEOF
3792: /* end confdefs.h. */
3793:
1.1.1.22! root 3794: /* Override any GCC internal prototype to avoid an error.
! 3795: Use char because int might match the return type of a GCC
! 3796: builtin and then its argument prototype would still apply. */
1.1.1.19 root 3797: #ifdef __cplusplus
3798: extern "C"
3799: #endif
3800: char OpenLibrary ();
3801: int
3802: main ()
3803: {
1.1.1.22! root 3804: return OpenLibrary ();
1.1.1.19 root 3805: ;
3806: return 0;
3807: }
3808: _ACEOF
3809: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22! root 3810: if { (ac_try="$ac_link"
! 3811: case "(($ac_try" in
! 3812: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3813: *) ac_try_echo=$ac_try;;
! 3814: esac
! 3815: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3816: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 3817: ac_status=$?
3818: grep -v '^ *+' conftest.er1 >conftest.err
3819: rm -f conftest.er1
3820: cat conftest.err >&5
3821: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 3822: (exit $ac_status); } && {
! 3823: test -z "$ac_c_werror_flag" ||
! 3824: test ! -s conftest.err
! 3825: } && test -s conftest$ac_exeext &&
! 3826: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 3827: ac_cv_lib_amiga_OpenLibrary=yes
3828: else
3829: echo "$as_me: failed program was:" >&5
3830: sed 's/^/| /' conftest.$ac_ext >&5
3831:
1.1.1.22! root 3832: ac_cv_lib_amiga_OpenLibrary=no
1.1.1.19 root 3833: fi
1.1.1.22! root 3834:
! 3835: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 3836: conftest$ac_exeext conftest.$ac_ext
3837: LIBS=$ac_check_lib_save_LIBS
3838: fi
1.1.1.22! root 3839: { echo "$as_me:$LINENO: result: $ac_cv_lib_amiga_OpenLibrary" >&5
! 3840: echo "${ECHO_T}$ac_cv_lib_amiga_OpenLibrary" >&6; }
1.1.1.19 root 3841: if test $ac_cv_lib_amiga_OpenLibrary = yes; then
1.1.1.4 root 3842: HAVE_AMIGA_LIB=yes
1.1.1.3 root 3843: else
1.1.1.19 root 3844: HAVE_AMIGA_LIB=n
1.1.1.3 root 3845: fi
3846:
1.1.1.22! root 3847: { echo "$as_me:$LINENO: checking for vga_setmode in -lvga" >&5
! 3848: echo $ECHO_N "checking for vga_setmode in -lvga... $ECHO_C" >&6; }
1.1.1.19 root 3849: if test "${ac_cv_lib_vga_vga_setmode+set}" = set; then
3850: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 root 3851: else
1.1.1.19 root 3852: ac_check_lib_save_LIBS=$LIBS
1.1 root 3853: LIBS="-lvga $LIBS"
1.1.1.19 root 3854: cat >conftest.$ac_ext <<_ACEOF
3855: /* confdefs.h. */
3856: _ACEOF
3857: cat confdefs.h >>conftest.$ac_ext
3858: cat >>conftest.$ac_ext <<_ACEOF
3859: /* end confdefs.h. */
3860:
1.1.1.22! root 3861: /* Override any GCC internal prototype to avoid an error.
! 3862: Use char because int might match the return type of a GCC
! 3863: builtin and then its argument prototype would still apply. */
1.1.1.19 root 3864: #ifdef __cplusplus
3865: extern "C"
3866: #endif
3867: char vga_setmode ();
3868: int
3869: main ()
3870: {
1.1.1.22! root 3871: return vga_setmode ();
1.1.1.19 root 3872: ;
3873: return 0;
3874: }
3875: _ACEOF
3876: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22! root 3877: if { (ac_try="$ac_link"
! 3878: case "(($ac_try" in
! 3879: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3880: *) ac_try_echo=$ac_try;;
! 3881: esac
! 3882: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3883: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 3884: ac_status=$?
3885: grep -v '^ *+' conftest.er1 >conftest.err
3886: rm -f conftest.er1
3887: cat conftest.err >&5
3888: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 3889: (exit $ac_status); } && {
! 3890: test -z "$ac_c_werror_flag" ||
! 3891: test ! -s conftest.err
! 3892: } && test -s conftest$ac_exeext &&
! 3893: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 3894: ac_cv_lib_vga_vga_setmode=yes
3895: else
3896: echo "$as_me: failed program was:" >&5
3897: sed 's/^/| /' conftest.$ac_ext >&5
3898:
1.1.1.22! root 3899: ac_cv_lib_vga_vga_setmode=no
1.1.1.19 root 3900: fi
1.1.1.22! root 3901:
! 3902: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 3903: conftest$ac_exeext conftest.$ac_ext
3904: LIBS=$ac_check_lib_save_LIBS
3905: fi
1.1.1.22! root 3906: { echo "$as_me:$LINENO: result: $ac_cv_lib_vga_vga_setmode" >&5
! 3907: echo "${ECHO_T}$ac_cv_lib_vga_vga_setmode" >&6; }
1.1.1.19 root 3908: if test $ac_cv_lib_vga_vga_setmode = yes; then
1.1.1.4 root 3909: HAVE_SVGA_LIB=yes
1.1 root 3910: else
1.1.1.19 root 3911: HAVE_SVGA_LIB=no
1.1 root 3912: fi
3913:
1.1.1.22! root 3914: { echo "$as_me:$LINENO: checking for AFOpenAudioConn in -lAF" >&5
! 3915: echo $ECHO_N "checking for AFOpenAudioConn in -lAF... $ECHO_C" >&6; }
1.1.1.19 root 3916: if test "${ac_cv_lib_AF_AFOpenAudioConn+set}" = set; then
3917: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 root 3918: else
1.1.1.19 root 3919: ac_check_lib_save_LIBS=$LIBS
1.1 root 3920: LIBS="-lAF $LIBS"
1.1.1.19 root 3921: cat >conftest.$ac_ext <<_ACEOF
3922: /* confdefs.h. */
3923: _ACEOF
3924: cat confdefs.h >>conftest.$ac_ext
3925: cat >>conftest.$ac_ext <<_ACEOF
3926: /* end confdefs.h. */
3927:
1.1.1.22! root 3928: /* Override any GCC internal prototype to avoid an error.
! 3929: Use char because int might match the return type of a GCC
! 3930: builtin and then its argument prototype would still apply. */
1.1.1.19 root 3931: #ifdef __cplusplus
3932: extern "C"
3933: #endif
3934: char AFOpenAudioConn ();
3935: int
3936: main ()
3937: {
1.1.1.22! root 3938: return AFOpenAudioConn ();
1.1.1.19 root 3939: ;
3940: return 0;
3941: }
3942: _ACEOF
3943: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22! root 3944: if { (ac_try="$ac_link"
! 3945: case "(($ac_try" in
! 3946: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3947: *) ac_try_echo=$ac_try;;
! 3948: esac
! 3949: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3950: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 3951: ac_status=$?
3952: grep -v '^ *+' conftest.er1 >conftest.err
3953: rm -f conftest.er1
3954: cat conftest.err >&5
3955: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 3956: (exit $ac_status); } && {
! 3957: test -z "$ac_c_werror_flag" ||
! 3958: test ! -s conftest.err
! 3959: } && test -s conftest$ac_exeext &&
! 3960: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 3961: ac_cv_lib_AF_AFOpenAudioConn=yes
3962: else
3963: echo "$as_me: failed program was:" >&5
3964: sed 's/^/| /' conftest.$ac_ext >&5
3965:
1.1.1.22! root 3966: ac_cv_lib_AF_AFOpenAudioConn=no
1.1.1.19 root 3967: fi
1.1.1.22! root 3968:
! 3969: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 3970: conftest$ac_exeext conftest.$ac_ext
3971: LIBS=$ac_check_lib_save_LIBS
3972: fi
1.1.1.22! root 3973: { echo "$as_me:$LINENO: result: $ac_cv_lib_AF_AFOpenAudioConn" >&5
! 3974: echo "${ECHO_T}$ac_cv_lib_AF_AFOpenAudioConn" >&6; }
1.1.1.19 root 3975: if test $ac_cv_lib_AF_AFOpenAudioConn = yes; then
1.1.1.4 root 3976: HAVE_AF_LIB=yes
3977: else
1.1.1.19 root 3978: HAVE_AF_LIB=no
1.1.1.4 root 3979: fi
3980:
1.1.1.22! root 3981: { echo "$as_me:$LINENO: checking for waveOutGetNumDevs in -lmme" >&5
! 3982: echo $ECHO_N "checking for waveOutGetNumDevs in -lmme... $ECHO_C" >&6; }
1.1.1.19 root 3983: if test "${ac_cv_lib_mme_waveOutGetNumDevs+set}" = set; then
3984: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.6 root 3985: else
1.1.1.19 root 3986: ac_check_lib_save_LIBS=$LIBS
1.1.1.6 root 3987: LIBS="-lmme $LIBS"
1.1.1.19 root 3988: cat >conftest.$ac_ext <<_ACEOF
3989: /* confdefs.h. */
3990: _ACEOF
3991: cat confdefs.h >>conftest.$ac_ext
3992: cat >>conftest.$ac_ext <<_ACEOF
3993: /* end confdefs.h. */
3994:
1.1.1.22! root 3995: /* Override any GCC internal prototype to avoid an error.
! 3996: Use char because int might match the return type of a GCC
! 3997: builtin and then its argument prototype would still apply. */
1.1.1.19 root 3998: #ifdef __cplusplus
3999: extern "C"
4000: #endif
4001: char waveOutGetNumDevs ();
4002: int
4003: main ()
4004: {
1.1.1.22! root 4005: return waveOutGetNumDevs ();
1.1.1.19 root 4006: ;
4007: return 0;
4008: }
4009: _ACEOF
4010: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22! root 4011: if { (ac_try="$ac_link"
! 4012: case "(($ac_try" in
! 4013: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4014: *) ac_try_echo=$ac_try;;
! 4015: esac
! 4016: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4017: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 4018: ac_status=$?
4019: grep -v '^ *+' conftest.er1 >conftest.err
4020: rm -f conftest.er1
4021: cat conftest.err >&5
4022: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 4023: (exit $ac_status); } && {
! 4024: test -z "$ac_c_werror_flag" ||
! 4025: test ! -s conftest.err
! 4026: } && test -s conftest$ac_exeext &&
! 4027: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 4028: ac_cv_lib_mme_waveOutGetNumDevs=yes
4029: else
4030: echo "$as_me: failed program was:" >&5
4031: sed 's/^/| /' conftest.$ac_ext >&5
4032:
1.1.1.22! root 4033: ac_cv_lib_mme_waveOutGetNumDevs=no
1.1.1.19 root 4034: fi
1.1.1.22! root 4035:
! 4036: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 4037: conftest$ac_exeext conftest.$ac_ext
4038: LIBS=$ac_check_lib_save_LIBS
4039: fi
1.1.1.22! root 4040: { echo "$as_me:$LINENO: result: $ac_cv_lib_mme_waveOutGetNumDevs" >&5
! 4041: echo "${ECHO_T}$ac_cv_lib_mme_waveOutGetNumDevs" >&6; }
1.1.1.19 root 4042: if test $ac_cv_lib_mme_waveOutGetNumDevs = yes; then
1.1.1.6 root 4043: HAVE_MME_LIB=yes
4044: else
1.1.1.19 root 4045: HAVE_MME_LIB=no
1.1.1.6 root 4046: fi
4047:
1.1.1.22! root 4048: { echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
! 4049: echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6; }
1.1.1.19 root 4050: if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
4051: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.4 root 4052: else
1.1.1.19 root 4053: ac_check_lib_save_LIBS=$LIBS
1.1.1.4 root 4054: LIBS="-lncurses $LIBS"
1.1.1.19 root 4055: cat >conftest.$ac_ext <<_ACEOF
4056: /* confdefs.h. */
4057: _ACEOF
4058: cat confdefs.h >>conftest.$ac_ext
4059: cat >>conftest.$ac_ext <<_ACEOF
4060: /* end confdefs.h. */
4061:
1.1.1.22! root 4062: /* Override any GCC internal prototype to avoid an error.
! 4063: Use char because int might match the return type of a GCC
! 4064: builtin and then its argument prototype would still apply. */
1.1.1.19 root 4065: #ifdef __cplusplus
4066: extern "C"
4067: #endif
4068: char waddch ();
4069: int
4070: main ()
4071: {
1.1.1.22! root 4072: return waddch ();
1.1.1.19 root 4073: ;
4074: return 0;
4075: }
4076: _ACEOF
4077: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22! root 4078: if { (ac_try="$ac_link"
! 4079: case "(($ac_try" in
! 4080: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4081: *) ac_try_echo=$ac_try;;
! 4082: esac
! 4083: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4084: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 4085: ac_status=$?
4086: grep -v '^ *+' conftest.er1 >conftest.err
4087: rm -f conftest.er1
4088: cat conftest.err >&5
4089: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 4090: (exit $ac_status); } && {
! 4091: test -z "$ac_c_werror_flag" ||
! 4092: test ! -s conftest.err
! 4093: } && test -s conftest$ac_exeext &&
! 4094: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 4095: ac_cv_lib_ncurses_waddch=yes
4096: else
4097: echo "$as_me: failed program was:" >&5
4098: sed 's/^/| /' conftest.$ac_ext >&5
4099:
1.1.1.22! root 4100: ac_cv_lib_ncurses_waddch=no
1.1.1.19 root 4101: fi
1.1.1.22! root 4102:
! 4103: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 4104: conftest$ac_exeext conftest.$ac_ext
4105: LIBS=$ac_check_lib_save_LIBS
4106: fi
1.1.1.22! root 4107: { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
! 4108: echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6; }
1.1.1.19 root 4109: if test $ac_cv_lib_ncurses_waddch = yes; then
1.1.1.4 root 4110: HAVE_NCURSES_LIB=yes
4111: else
1.1.1.19 root 4112: HAVE_NCURSES_LIB=no
1.1.1.4 root 4113: fi
4114:
1.1.1.22! root 4115: { echo "$as_me:$LINENO: checking for sem_init in -lposix4" >&5
! 4116: echo $ECHO_N "checking for sem_init in -lposix4... $ECHO_C" >&6; }
1.1.1.19 root 4117: if test "${ac_cv_lib_posix4_sem_init+set}" = set; then
4118: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.4 root 4119: else
1.1.1.19 root 4120: ac_check_lib_save_LIBS=$LIBS
1.1.1.6 root 4121: LIBS="-lposix4 $LIBS"
1.1.1.19 root 4122: cat >conftest.$ac_ext <<_ACEOF
4123: /* confdefs.h. */
4124: _ACEOF
4125: cat confdefs.h >>conftest.$ac_ext
4126: cat >>conftest.$ac_ext <<_ACEOF
4127: /* end confdefs.h. */
4128:
1.1.1.22! root 4129: /* Override any GCC internal prototype to avoid an error.
! 4130: Use char because int might match the return type of a GCC
! 4131: builtin and then its argument prototype would still apply. */
1.1.1.19 root 4132: #ifdef __cplusplus
4133: extern "C"
4134: #endif
4135: char sem_init ();
4136: int
4137: main ()
4138: {
1.1.1.22! root 4139: return sem_init ();
1.1.1.19 root 4140: ;
4141: return 0;
4142: }
4143: _ACEOF
4144: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22! root 4145: if { (ac_try="$ac_link"
! 4146: case "(($ac_try" in
! 4147: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4148: *) ac_try_echo=$ac_try;;
! 4149: esac
! 4150: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4151: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 4152: ac_status=$?
4153: grep -v '^ *+' conftest.er1 >conftest.err
4154: rm -f conftest.er1
4155: cat conftest.err >&5
4156: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 4157: (exit $ac_status); } && {
! 4158: test -z "$ac_c_werror_flag" ||
! 4159: test ! -s conftest.err
! 4160: } && test -s conftest$ac_exeext &&
! 4161: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 4162: ac_cv_lib_posix4_sem_init=yes
4163: else
4164: echo "$as_me: failed program was:" >&5
4165: sed 's/^/| /' conftest.$ac_ext >&5
4166:
1.1.1.22! root 4167: ac_cv_lib_posix4_sem_init=no
1.1.1.19 root 4168: fi
1.1.1.22! root 4169:
! 4170: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 4171: conftest$ac_exeext conftest.$ac_ext
4172: LIBS=$ac_check_lib_save_LIBS
4173: fi
1.1.1.22! root 4174: { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sem_init" >&5
! 4175: echo "${ECHO_T}$ac_cv_lib_posix4_sem_init" >&6; }
1.1.1.19 root 4176: if test $ac_cv_lib_posix4_sem_init = yes; then
1.1.1.6 root 4177: HAVE_POSIX4_LIB=yes
1.1.1.4 root 4178: else
1.1.1.19 root 4179: HAVE_POSIX4_LIB=no
1.1.1.4 root 4180: fi
4181:
1.1.1.22! root 4182: { echo "$as_me:$LINENO: checking for sem_init in -lrt" >&5
! 4183: echo $ECHO_N "checking for sem_init in -lrt... $ECHO_C" >&6; }
1.1.1.19 root 4184: if test "${ac_cv_lib_rt_sem_init+set}" = set; then
4185: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.4 root 4186: else
1.1.1.19 root 4187: ac_check_lib_save_LIBS=$LIBS
1.1.1.6 root 4188: LIBS="-lrt $LIBS"
1.1.1.19 root 4189: cat >conftest.$ac_ext <<_ACEOF
4190: /* confdefs.h. */
4191: _ACEOF
4192: cat confdefs.h >>conftest.$ac_ext
4193: cat >>conftest.$ac_ext <<_ACEOF
4194: /* end confdefs.h. */
4195:
1.1.1.22! root 4196: /* Override any GCC internal prototype to avoid an error.
! 4197: Use char because int might match the return type of a GCC
! 4198: builtin and then its argument prototype would still apply. */
1.1.1.19 root 4199: #ifdef __cplusplus
4200: extern "C"
4201: #endif
4202: char sem_init ();
4203: int
4204: main ()
4205: {
1.1.1.22! root 4206: return sem_init ();
1.1.1.19 root 4207: ;
4208: return 0;
4209: }
4210: _ACEOF
4211: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22! root 4212: if { (ac_try="$ac_link"
! 4213: case "(($ac_try" in
! 4214: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4215: *) ac_try_echo=$ac_try;;
! 4216: esac
! 4217: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4218: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 4219: ac_status=$?
4220: grep -v '^ *+' conftest.er1 >conftest.err
4221: rm -f conftest.er1
4222: cat conftest.err >&5
4223: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 4224: (exit $ac_status); } && {
! 4225: test -z "$ac_c_werror_flag" ||
! 4226: test ! -s conftest.err
! 4227: } && test -s conftest$ac_exeext &&
! 4228: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 4229: ac_cv_lib_rt_sem_init=yes
4230: else
4231: echo "$as_me: failed program was:" >&5
4232: sed 's/^/| /' conftest.$ac_ext >&5
4233:
1.1.1.22! root 4234: ac_cv_lib_rt_sem_init=no
1.1.1.19 root 4235: fi
1.1.1.22! root 4236:
! 4237: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 4238: conftest$ac_exeext conftest.$ac_ext
4239: LIBS=$ac_check_lib_save_LIBS
4240: fi
1.1.1.22! root 4241: { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sem_init" >&5
! 4242: echo "${ECHO_T}$ac_cv_lib_rt_sem_init" >&6; }
1.1.1.19 root 4243: if test $ac_cv_lib_rt_sem_init = yes; then
1.1.1.6 root 4244: HAVE_RT_LIB=yes
1.1.1.4 root 4245: else
1.1.1.19 root 4246: HAVE_RT_LIB=no
1.1.1.4 root 4247: fi
4248:
1.1.1.22! root 4249: { echo "$as_me:$LINENO: checking for alOpenPort in -laudio" >&5
! 4250: echo $ECHO_N "checking for alOpenPort in -laudio... $ECHO_C" >&6; }
1.1.1.19 root 4251: if test "${ac_cv_lib_audio_alOpenPort+set}" = set; then
4252: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.8 root 4253: else
1.1.1.19 root 4254: ac_check_lib_save_LIBS=$LIBS
1.1.1.8 root 4255: LIBS="-laudio $LIBS"
1.1.1.19 root 4256: cat >conftest.$ac_ext <<_ACEOF
4257: /* confdefs.h. */
4258: _ACEOF
4259: cat confdefs.h >>conftest.$ac_ext
4260: cat >>conftest.$ac_ext <<_ACEOF
4261: /* end confdefs.h. */
4262:
1.1.1.22! root 4263: /* Override any GCC internal prototype to avoid an error.
! 4264: Use char because int might match the return type of a GCC
! 4265: builtin and then its argument prototype would still apply. */
1.1.1.19 root 4266: #ifdef __cplusplus
4267: extern "C"
4268: #endif
4269: char alOpenPort ();
4270: int
4271: main ()
4272: {
1.1.1.22! root 4273: return alOpenPort ();
1.1.1.19 root 4274: ;
4275: return 0;
4276: }
4277: _ACEOF
4278: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22! root 4279: if { (ac_try="$ac_link"
! 4280: case "(($ac_try" in
! 4281: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4282: *) ac_try_echo=$ac_try;;
! 4283: esac
! 4284: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4285: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 4286: ac_status=$?
4287: grep -v '^ *+' conftest.er1 >conftest.err
4288: rm -f conftest.er1
4289: cat conftest.err >&5
4290: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 4291: (exit $ac_status); } && {
! 4292: test -z "$ac_c_werror_flag" ||
! 4293: test ! -s conftest.err
! 4294: } && test -s conftest$ac_exeext &&
! 4295: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 4296: ac_cv_lib_audio_alOpenPort=yes
4297: else
4298: echo "$as_me: failed program was:" >&5
4299: sed 's/^/| /' conftest.$ac_ext >&5
4300:
1.1.1.22! root 4301: ac_cv_lib_audio_alOpenPort=no
1.1.1.19 root 4302: fi
1.1.1.22! root 4303:
! 4304: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 4305: conftest$ac_exeext conftest.$ac_ext
4306: LIBS=$ac_check_lib_save_LIBS
4307: fi
1.1.1.22! root 4308: { echo "$as_me:$LINENO: result: $ac_cv_lib_audio_alOpenPort" >&5
! 4309: echo "${ECHO_T}$ac_cv_lib_audio_alOpenPort" >&6; }
1.1.1.19 root 4310: if test $ac_cv_lib_audio_alOpenPort = yes; then
1.1.1.8 root 4311: HAVE_SGIAUDIO_LIB=yes
4312: else
1.1.1.19 root 4313: HAVE_SGIAUDIO_LIB=no
1.1.1.8 root 4314: fi
4315:
1.1 root 4316:
1.1.1.22! root 4317: { echo "$as_me:$LINENO: checking for X" >&5
! 4318: echo $ECHO_N "checking for X... $ECHO_C" >&6; }
1.1.1.19 root 4319:
1.1 root 4320:
1.1.1.22! root 4321: # Check whether --with-x was given.
1.1 root 4322: if test "${with_x+set}" = set; then
1.1.1.22! root 4323: withval=$with_x;
! 4324: fi
1.1 root 4325:
4326: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4327: if test "x$with_x" = xno; then
4328: # The user explicitly disabled X.
4329: have_x=disabled
4330: else
1.1.1.22! root 4331: case $x_includes,$x_libraries in #(
! 4332: *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
! 4333: echo "$as_me: error: Cannot use X directory names containing '" >&2;}
! 4334: { (exit 1); exit 1; }; };; #(
! 4335: *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
1.1.1.19 root 4336: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 root 4337: else
4338: # One or both of the vars are not set, and there is no cached value.
1.1.1.19 root 4339: ac_x_includes=no ac_x_libraries=no
1.1.1.22! root 4340: rm -f -r conftest.dir
1.1.1.19 root 4341: if mkdir conftest.dir; then
4342: cd conftest.dir
4343: cat >Imakefile <<'_ACEOF'
1.1.1.22! root 4344: incroot:
! 4345: @echo incroot='${INCROOT}'
! 4346: usrlibdir:
! 4347: @echo usrlibdir='${USRLIBDIR}'
! 4348: libdir:
! 4349: @echo libdir='${LIBDIR}'
1.1.1.19 root 4350: _ACEOF
1.1.1.22! root 4351: if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
1.1 root 4352: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.1.1.22! root 4353: for ac_var in incroot usrlibdir libdir; do
! 4354: eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
! 4355: done
1.1 root 4356: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4357: for ac_extension in a so sl; do
1.1.1.22! root 4358: if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
! 4359: test -f "$ac_im_libdir/libX11.$ac_extension"; then
1.1.1.19 root 4360: ac_im_usrlibdir=$ac_im_libdir; break
1.1 root 4361: fi
4362: done
1.1.1.4 root 4363: # Screen out bogus values from the imake configuration. They are
4364: # bogus both because they are the default anyway, and because
4365: # using them would break gcc on systems where it needs fixed includes.
1.1.1.19 root 4366: case $ac_im_incroot in
1.1.1.22! root 4367: /usr/include) ac_x_includes= ;;
1.1.1.19 root 4368: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
1.1 root 4369: esac
1.1.1.19 root 4370: case $ac_im_usrlibdir in
1.1 root 4371: /usr/lib | /lib) ;;
1.1.1.19 root 4372: *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
1.1 root 4373: esac
4374: fi
4375: cd ..
1.1.1.22! root 4376: rm -f -r conftest.dir
1.1 root 4377: fi
4378:
1.1.1.19 root 4379: # Standard set of common directories for X headers.
4380: # Check X11 before X11Rn because it is often a symlink to the current release.
4381: ac_x_header_dirs='
4382: /usr/X11/include
4383: /usr/X11R6/include
4384: /usr/X11R5/include
4385: /usr/X11R4/include
4386:
4387: /usr/include/X11
4388: /usr/include/X11R6
4389: /usr/include/X11R5
4390: /usr/include/X11R4
4391:
4392: /usr/local/X11/include
4393: /usr/local/X11R6/include
4394: /usr/local/X11R5/include
4395: /usr/local/X11R4/include
4396:
4397: /usr/local/include/X11
4398: /usr/local/include/X11R6
4399: /usr/local/include/X11R5
4400: /usr/local/include/X11R4
4401:
4402: /usr/X386/include
4403: /usr/x386/include
4404: /usr/XFree86/include/X11
4405:
4406: /usr/include
4407: /usr/local/include
4408: /usr/unsupported/include
4409: /usr/athena/include
4410: /usr/local/x11r5/include
4411: /usr/lpp/Xamples/include
4412:
4413: /usr/openwin/include
4414: /usr/openwin/share/include'
1.1 root 4415:
1.1.1.19 root 4416: if test "$ac_x_includes" = no; then
1.1.1.22! root 4417: # Guess where to find include files, by looking for Xlib.h.
1.1 root 4418: # First, try using that file with no special directory specified.
1.1.1.19 root 4419: cat >conftest.$ac_ext <<_ACEOF
4420: /* confdefs.h. */
4421: _ACEOF
4422: cat confdefs.h >>conftest.$ac_ext
4423: cat >>conftest.$ac_ext <<_ACEOF
4424: /* end confdefs.h. */
1.1.1.22! root 4425: #include <X11/Xlib.h>
1.1.1.19 root 4426: _ACEOF
1.1.1.22! root 4427: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 4428: case "(($ac_try" in
! 4429: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4430: *) ac_try_echo=$ac_try;;
! 4431: esac
! 4432: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4433: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.1.19 root 4434: ac_status=$?
4435: grep -v '^ *+' conftest.er1 >conftest.err
4436: rm -f conftest.er1
4437: cat conftest.err >&5
4438: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 4439: (exit $ac_status); } >/dev/null && {
! 4440: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 4441: test ! -s conftest.err
! 4442: }; then
1.1.1.19 root 4443: # We can compile using X headers with no special include directory.
4444: ac_x_includes=
4445: else
4446: echo "$as_me: failed program was:" >&5
4447: sed 's/^/| /' conftest.$ac_ext >&5
1.1 root 4448:
1.1.1.19 root 4449: for ac_dir in $ac_x_header_dirs; do
1.1.1.22! root 4450: if test -r "$ac_dir/X11/Xlib.h"; then
1.1.1.19 root 4451: ac_x_includes=$ac_dir
4452: break
4453: fi
4454: done
4455: fi
1.1.1.22! root 4456:
1.1.1.19 root 4457: rm -f conftest.err conftest.$ac_ext
4458: fi # $ac_x_includes = no
1.1 root 4459:
1.1.1.19 root 4460: if test "$ac_x_libraries" = no; then
4461: # Check for the libraries.
1.1 root 4462: # See if we find them without any special options.
4463: # Don't add to $LIBS permanently.
1.1.1.19 root 4464: ac_save_LIBS=$LIBS
1.1.1.22! root 4465: LIBS="-lX11 $LIBS"
1.1.1.19 root 4466: cat >conftest.$ac_ext <<_ACEOF
4467: /* confdefs.h. */
4468: _ACEOF
4469: cat confdefs.h >>conftest.$ac_ext
4470: cat >>conftest.$ac_ext <<_ACEOF
4471: /* end confdefs.h. */
1.1.1.22! root 4472: #include <X11/Xlib.h>
1.1.1.19 root 4473: int
4474: main ()
4475: {
1.1.1.22! root 4476: XrmInitialize ()
1.1.1.19 root 4477: ;
4478: return 0;
4479: }
4480: _ACEOF
4481: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22! root 4482: if { (ac_try="$ac_link"
! 4483: case "(($ac_try" in
! 4484: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4485: *) ac_try_echo=$ac_try;;
! 4486: esac
! 4487: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4488: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 4489: ac_status=$?
4490: grep -v '^ *+' conftest.er1 >conftest.err
4491: rm -f conftest.er1
4492: cat conftest.err >&5
4493: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 4494: (exit $ac_status); } && {
! 4495: test -z "$ac_c_werror_flag" ||
! 4496: test ! -s conftest.err
! 4497: } && test -s conftest$ac_exeext &&
! 4498: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 4499: LIBS=$ac_save_LIBS
1.1 root 4500: # We can link X programs with no special library path.
4501: ac_x_libraries=
4502: else
1.1.1.19 root 4503: echo "$as_me: failed program was:" >&5
4504: sed 's/^/| /' conftest.$ac_ext >&5
4505:
1.1.1.22! root 4506: LIBS=$ac_save_LIBS
1.1.1.19 root 4507: for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
1.1 root 4508: do
1.1.1.19 root 4509: # Don't even attempt the hair of trying to link an X program!
1.1 root 4510: for ac_extension in a so sl; do
1.1.1.22! root 4511: if test -r "$ac_dir/libX11.$ac_extension"; then
1.1 root 4512: ac_x_libraries=$ac_dir
4513: break 2
4514: fi
4515: done
4516: done
4517: fi
1.1.1.22! root 4518:
! 4519: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 4520: conftest$ac_exeext conftest.$ac_ext
4521: fi # $ac_x_libraries = no
1.1 root 4522:
1.1.1.22! root 4523: case $ac_x_includes,$ac_x_libraries in #(
! 4524: no,* | *,no | *\'*)
! 4525: # Didn't find X, or a directory has "'" in its name.
! 4526: ac_cv_have_x="have_x=no";; #(
! 4527: *)
! 4528: # Record where we found X for the cache.
! 4529: ac_cv_have_x="have_x=yes\
! 4530: ac_x_includes='$ac_x_includes'\
! 4531: ac_x_libraries='$ac_x_libraries'"
! 4532: esac
1.1 root 4533: fi
1.1.1.22! root 4534: ;; #(
! 4535: *) have_x=yes;;
! 4536: esac
1.1 root 4537: eval "$ac_cv_have_x"
4538: fi # $with_x != no
4539:
4540: if test "$have_x" != yes; then
1.1.1.22! root 4541: { echo "$as_me:$LINENO: result: $have_x" >&5
! 4542: echo "${ECHO_T}$have_x" >&6; }
1.1 root 4543: no_x=yes
4544: else
4545: # If each of the values was on the command line, it overrides each guess.
4546: test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4547: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4548: # Update the cache value to reflect the command line values.
1.1.1.22! root 4549: ac_cv_have_x="have_x=yes\
! 4550: ac_x_includes='$x_includes'\
! 4551: ac_x_libraries='$x_libraries'"
! 4552: { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
! 4553: echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
1.1 root 4554: fi
4555:
4556: if test "$no_x" = yes; then
4557: # Not all programs may use this symbol, but it does not hurt to define it.
1.1.1.19 root 4558:
4559: cat >>confdefs.h <<\_ACEOF
1.1.1.4 root 4560: #define X_DISPLAY_MISSING 1
1.1.1.19 root 4561: _ACEOF
1.1.1.4 root 4562:
4563: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1.1 root 4564: else
4565: if test -n "$x_includes"; then
4566: X_CFLAGS="$X_CFLAGS -I$x_includes"
4567: fi
4568:
4569: # It would also be nice to do this for all -L options, not just this one.
4570: if test -n "$x_libraries"; then
4571: X_LIBS="$X_LIBS -L$x_libraries"
1.1.1.4 root 4572: # For Solaris; some versions of Sun CC require a space after -R and
4573: # others require no space. Words are not sufficient . . . .
1.1.1.22! root 4574: { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
! 4575: echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
! 4576: ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
! 4577: ac_xsave_c_werror_flag=$ac_c_werror_flag
! 4578: ac_c_werror_flag=yes
! 4579: cat >conftest.$ac_ext <<_ACEOF
1.1.1.19 root 4580: /* confdefs.h. */
4581: _ACEOF
4582: cat confdefs.h >>conftest.$ac_ext
4583: cat >>conftest.$ac_ext <<_ACEOF
4584: /* end confdefs.h. */
1.1 root 4585:
1.1.1.19 root 4586: int
4587: main ()
4588: {
1.1 root 4589:
1.1.1.19 root 4590: ;
4591: return 0;
4592: }
4593: _ACEOF
4594: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22! root 4595: if { (ac_try="$ac_link"
! 4596: case "(($ac_try" in
! 4597: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4598: *) ac_try_echo=$ac_try;;
! 4599: esac
! 4600: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4601: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 4602: ac_status=$?
4603: grep -v '^ *+' conftest.er1 >conftest.err
4604: rm -f conftest.er1
4605: cat conftest.err >&5
4606: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 4607: (exit $ac_status); } && {
! 4608: test -z "$ac_c_werror_flag" ||
! 4609: test ! -s conftest.err
! 4610: } && test -s conftest$ac_exeext &&
! 4611: $as_test_x conftest$ac_exeext; then
! 4612: { echo "$as_me:$LINENO: result: no" >&5
! 4613: echo "${ECHO_T}no" >&6; }
! 4614: X_LIBS="$X_LIBS -R$x_libraries"
1.1 root 4615: else
1.1.1.19 root 4616: echo "$as_me: failed program was:" >&5
4617: sed 's/^/| /' conftest.$ac_ext >&5
4618:
1.1.1.4 root 4619: LIBS="$ac_xsave_LIBS -R $x_libraries"
1.1.1.22! root 4620: cat >conftest.$ac_ext <<_ACEOF
1.1.1.19 root 4621: /* confdefs.h. */
4622: _ACEOF
4623: cat confdefs.h >>conftest.$ac_ext
4624: cat >>conftest.$ac_ext <<_ACEOF
4625: /* end confdefs.h. */
1.1 root 4626:
1.1.1.19 root 4627: int
4628: main ()
4629: {
1.1.1.4 root 4630:
1.1.1.19 root 4631: ;
4632: return 0;
4633: }
4634: _ACEOF
4635: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22! root 4636: if { (ac_try="$ac_link"
! 4637: case "(($ac_try" in
! 4638: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4639: *) ac_try_echo=$ac_try;;
! 4640: esac
! 4641: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4642: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 4643: ac_status=$?
4644: grep -v '^ *+' conftest.er1 >conftest.err
4645: rm -f conftest.er1
4646: cat conftest.err >&5
4647: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 4648: (exit $ac_status); } && {
! 4649: test -z "$ac_c_werror_flag" ||
! 4650: test ! -s conftest.err
! 4651: } && test -s conftest$ac_exeext &&
! 4652: $as_test_x conftest$ac_exeext; then
! 4653: { echo "$as_me:$LINENO: result: yes" >&5
! 4654: echo "${ECHO_T}yes" >&6; }
! 4655: X_LIBS="$X_LIBS -R $x_libraries"
1.1 root 4656: else
1.1.1.19 root 4657: echo "$as_me: failed program was:" >&5
4658: sed 's/^/| /' conftest.$ac_ext >&5
4659:
1.1.1.22! root 4660: { echo "$as_me:$LINENO: result: neither works" >&5
! 4661: echo "${ECHO_T}neither works" >&6; }
1.1 root 4662: fi
1.1.1.22! root 4663:
! 4664: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 4665: conftest$ac_exeext conftest.$ac_ext
1.1.1.22! root 4666: fi
! 4667:
! 4668: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 4669: conftest$ac_exeext conftest.$ac_ext
! 4670: ac_c_werror_flag=$ac_xsave_c_werror_flag
! 4671: LIBS=$ac_xsave_LIBS
1.1.1.4 root 4672: fi
1.1 root 4673:
4674: # Check for system-dependent libraries X programs must link with.
1.1.1.4 root 4675: # Do this before checking for the system-independent R6 libraries
4676: # (-lICE), since we may need -lsocket or whatever for X linking.
1.1 root 4677:
4678: if test "$ISC" = yes; then
4679: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4680: else
1.1.1.19 root 4681: # Martyn Johnson says this is needed for Ultrix, if the X
4682: # libraries were built with DECnet support. And Karl Berry says
1.1 root 4683: # the Alpha needs dnet_stub (dnet does not exist).
1.1.1.19 root 4684: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4685: cat >conftest.$ac_ext <<_ACEOF
4686: /* confdefs.h. */
4687: _ACEOF
4688: cat confdefs.h >>conftest.$ac_ext
4689: cat >>conftest.$ac_ext <<_ACEOF
4690: /* end confdefs.h. */
4691:
1.1.1.22! root 4692: /* Override any GCC internal prototype to avoid an error.
! 4693: Use char because int might match the return type of a GCC
! 4694: builtin and then its argument prototype would still apply. */
1.1.1.19 root 4695: #ifdef __cplusplus
4696: extern "C"
4697: #endif
4698: char XOpenDisplay ();
4699: int
4700: main ()
4701: {
1.1.1.22! root 4702: return XOpenDisplay ();
1.1.1.19 root 4703: ;
4704: return 0;
4705: }
4706: _ACEOF
4707: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22! root 4708: if { (ac_try="$ac_link"
! 4709: case "(($ac_try" in
! 4710: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4711: *) ac_try_echo=$ac_try;;
! 4712: esac
! 4713: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4714: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 4715: ac_status=$?
4716: grep -v '^ *+' conftest.er1 >conftest.err
4717: rm -f conftest.er1
4718: cat conftest.err >&5
4719: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 4720: (exit $ac_status); } && {
! 4721: test -z "$ac_c_werror_flag" ||
! 4722: test ! -s conftest.err
! 4723: } && test -s conftest$ac_exeext &&
! 4724: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 4725: :
4726: else
4727: echo "$as_me: failed program was:" >&5
4728: sed 's/^/| /' conftest.$ac_ext >&5
1.1 root 4729:
1.1.1.22! root 4730: { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
! 4731: echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
1.1.1.19 root 4732: if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4733: echo $ECHO_N "(cached) $ECHO_C" >&6
4734: else
4735: ac_check_lib_save_LIBS=$LIBS
4736: LIBS="-ldnet $LIBS"
4737: cat >conftest.$ac_ext <<_ACEOF
4738: /* confdefs.h. */
4739: _ACEOF
4740: cat confdefs.h >>conftest.$ac_ext
4741: cat >>conftest.$ac_ext <<_ACEOF
4742: /* end confdefs.h. */
1.1 root 4743:
1.1.1.22! root 4744: /* Override any GCC internal prototype to avoid an error.
! 4745: Use char because int might match the return type of a GCC
! 4746: builtin and then its argument prototype would still apply. */
1.1.1.19 root 4747: #ifdef __cplusplus
4748: extern "C"
4749: #endif
4750: char dnet_ntoa ();
4751: int
4752: main ()
4753: {
1.1.1.22! root 4754: return dnet_ntoa ();
1.1.1.19 root 4755: ;
4756: return 0;
4757: }
4758: _ACEOF
4759: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22! root 4760: if { (ac_try="$ac_link"
! 4761: case "(($ac_try" in
! 4762: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4763: *) ac_try_echo=$ac_try;;
! 4764: esac
! 4765: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4766: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 4767: ac_status=$?
4768: grep -v '^ *+' conftest.er1 >conftest.err
4769: rm -f conftest.er1
4770: cat conftest.err >&5
4771: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 4772: (exit $ac_status); } && {
! 4773: test -z "$ac_c_werror_flag" ||
! 4774: test ! -s conftest.err
! 4775: } && test -s conftest$ac_exeext &&
! 4776: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 4777: ac_cv_lib_dnet_dnet_ntoa=yes
4778: else
4779: echo "$as_me: failed program was:" >&5
4780: sed 's/^/| /' conftest.$ac_ext >&5
4781:
1.1.1.22! root 4782: ac_cv_lib_dnet_dnet_ntoa=no
1.1.1.19 root 4783: fi
1.1.1.22! root 4784:
! 4785: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 4786: conftest$ac_exeext conftest.$ac_ext
4787: LIBS=$ac_check_lib_save_LIBS
4788: fi
1.1.1.22! root 4789: { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
! 4790: echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
1.1.1.19 root 4791: if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
1.1 root 4792: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4793: fi
4794:
4795: if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1.1.1.22! root 4796: { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
! 4797: echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
1.1.1.19 root 4798: if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4799: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 root 4800: else
1.1.1.19 root 4801: ac_check_lib_save_LIBS=$LIBS
1.1 root 4802: LIBS="-ldnet_stub $LIBS"
1.1.1.19 root 4803: cat >conftest.$ac_ext <<_ACEOF
4804: /* confdefs.h. */
4805: _ACEOF
4806: cat confdefs.h >>conftest.$ac_ext
4807: cat >>conftest.$ac_ext <<_ACEOF
4808: /* end confdefs.h. */
4809:
1.1.1.22! root 4810: /* Override any GCC internal prototype to avoid an error.
! 4811: Use char because int might match the return type of a GCC
! 4812: builtin and then its argument prototype would still apply. */
1.1.1.19 root 4813: #ifdef __cplusplus
4814: extern "C"
4815: #endif
4816: char dnet_ntoa ();
4817: int
4818: main ()
4819: {
1.1.1.22! root 4820: return dnet_ntoa ();
1.1.1.19 root 4821: ;
4822: return 0;
4823: }
4824: _ACEOF
4825: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22! root 4826: if { (ac_try="$ac_link"
! 4827: case "(($ac_try" in
! 4828: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4829: *) ac_try_echo=$ac_try;;
! 4830: esac
! 4831: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4832: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 4833: ac_status=$?
4834: grep -v '^ *+' conftest.er1 >conftest.err
4835: rm -f conftest.er1
4836: cat conftest.err >&5
4837: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 4838: (exit $ac_status); } && {
! 4839: test -z "$ac_c_werror_flag" ||
! 4840: test ! -s conftest.err
! 4841: } && test -s conftest$ac_exeext &&
! 4842: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 4843: ac_cv_lib_dnet_stub_dnet_ntoa=yes
4844: else
4845: echo "$as_me: failed program was:" >&5
4846: sed 's/^/| /' conftest.$ac_ext >&5
4847:
1.1.1.22! root 4848: ac_cv_lib_dnet_stub_dnet_ntoa=no
1.1.1.19 root 4849: fi
1.1.1.22! root 4850:
! 4851: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 4852: conftest$ac_exeext conftest.$ac_ext
4853: LIBS=$ac_check_lib_save_LIBS
4854: fi
1.1.1.22! root 4855: { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
! 4856: echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
1.1.1.19 root 4857: if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
1.1 root 4858: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4859: fi
4860:
4861: fi
1.1.1.19 root 4862: fi
1.1.1.22! root 4863:
! 4864: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 4865: conftest$ac_exeext conftest.$ac_ext
4866: LIBS="$ac_xsave_LIBS"
1.1 root 4867:
4868: # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
4869: # to get the SysV transport functions.
1.1.1.19 root 4870: # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
1.1.1.4 root 4871: # needs -lnsl.
4872: # The nsl library prevents programs from opening the X display
1.1.1.19 root 4873: # on Irix 5.2, according to T.E. Dickey.
4874: # The functions gethostbyname, getservbyname, and inet_addr are
4875: # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
1.1.1.22! root 4876: { echo "$as_me:$LINENO: checking for gethostbyname" >&5
! 4877: echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
1.1.1.19 root 4878: if test "${ac_cv_func_gethostbyname+set}" = set; then
4879: echo $ECHO_N "(cached) $ECHO_C" >&6
4880: else
4881: cat >conftest.$ac_ext <<_ACEOF
4882: /* confdefs.h. */
4883: _ACEOF
4884: cat confdefs.h >>conftest.$ac_ext
4885: cat >>conftest.$ac_ext <<_ACEOF
4886: /* end confdefs.h. */
4887: /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4888: For example, HP-UX 11i <limits.h> declares gettimeofday. */
4889: #define gethostbyname innocuous_gethostbyname
4890:
1.1.1.4 root 4891: /* System header to define __stub macros and hopefully few prototypes,
1.1.1.19 root 4892: which can conflict with char gethostbyname (); below.
4893: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4894: <limits.h> exists even on freestanding compilers. */
1.1.1.4 root 4895:
1.1.1.19 root 4896: #ifdef __STDC__
4897: # include <limits.h>
4898: #else
4899: # include <assert.h>
4900: #endif
1.1.1.4 root 4901:
1.1.1.19 root 4902: #undef gethostbyname
4903:
1.1.1.22! root 4904: /* Override any GCC internal prototype to avoid an error.
! 4905: Use char because int might match the return type of a GCC
! 4906: builtin and then its argument prototype would still apply. */
1.1.1.19 root 4907: #ifdef __cplusplus
4908: extern "C"
4909: #endif
4910: char gethostbyname ();
1.1.1.4 root 4911: /* The GNU C library defines this for functions which it implements
4912: to always fail with ENOSYS. Some functions are actually named
4913: something starting with __ and the normal name is an alias. */
1.1.1.22! root 4914: #if defined __stub_gethostbyname || defined __stub___gethostbyname
1.1.1.4 root 4915: choke me
4916: #endif
4917:
1.1.1.19 root 4918: int
4919: main ()
4920: {
1.1.1.22! root 4921: return gethostbyname ();
1.1.1.19 root 4922: ;
4923: return 0;
4924: }
4925: _ACEOF
4926: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22! root 4927: if { (ac_try="$ac_link"
! 4928: case "(($ac_try" in
! 4929: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4930: *) ac_try_echo=$ac_try;;
! 4931: esac
! 4932: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4933: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 4934: ac_status=$?
4935: grep -v '^ *+' conftest.er1 >conftest.err
4936: rm -f conftest.er1
4937: cat conftest.err >&5
4938: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 4939: (exit $ac_status); } && {
! 4940: test -z "$ac_c_werror_flag" ||
! 4941: test ! -s conftest.err
! 4942: } && test -s conftest$ac_exeext &&
! 4943: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 4944: ac_cv_func_gethostbyname=yes
4945: else
4946: echo "$as_me: failed program was:" >&5
4947: sed 's/^/| /' conftest.$ac_ext >&5
1.1.1.4 root 4948:
1.1.1.22! root 4949: ac_cv_func_gethostbyname=no
1.1.1.4 root 4950: fi
1.1.1.22! root 4951:
! 4952: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 4953: conftest$ac_exeext conftest.$ac_ext
4954: fi
1.1.1.22! root 4955: { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
! 4956: echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
1.1.1.4 root 4957:
4958: if test $ac_cv_func_gethostbyname = no; then
1.1.1.22! root 4959: { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
! 4960: echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
1.1.1.19 root 4961: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4962: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 root 4963: else
1.1.1.19 root 4964: ac_check_lib_save_LIBS=$LIBS
1.1 root 4965: LIBS="-lnsl $LIBS"
1.1.1.19 root 4966: cat >conftest.$ac_ext <<_ACEOF
4967: /* confdefs.h. */
4968: _ACEOF
4969: cat confdefs.h >>conftest.$ac_ext
4970: cat >>conftest.$ac_ext <<_ACEOF
4971: /* end confdefs.h. */
4972:
1.1.1.22! root 4973: /* Override any GCC internal prototype to avoid an error.
! 4974: Use char because int might match the return type of a GCC
! 4975: builtin and then its argument prototype would still apply. */
1.1.1.19 root 4976: #ifdef __cplusplus
4977: extern "C"
4978: #endif
4979: char gethostbyname ();
4980: int
4981: main ()
4982: {
1.1.1.22! root 4983: return gethostbyname ();
1.1.1.19 root 4984: ;
4985: return 0;
4986: }
4987: _ACEOF
4988: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22! root 4989: if { (ac_try="$ac_link"
! 4990: case "(($ac_try" in
! 4991: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4992: *) ac_try_echo=$ac_try;;
! 4993: esac
! 4994: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4995: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 4996: ac_status=$?
4997: grep -v '^ *+' conftest.er1 >conftest.err
4998: rm -f conftest.er1
4999: cat conftest.err >&5
5000: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 5001: (exit $ac_status); } && {
! 5002: test -z "$ac_c_werror_flag" ||
! 5003: test ! -s conftest.err
! 5004: } && test -s conftest$ac_exeext &&
! 5005: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 5006: ac_cv_lib_nsl_gethostbyname=yes
5007: else
5008: echo "$as_me: failed program was:" >&5
5009: sed 's/^/| /' conftest.$ac_ext >&5
5010:
1.1.1.22! root 5011: ac_cv_lib_nsl_gethostbyname=no
1.1.1.19 root 5012: fi
1.1.1.22! root 5013:
! 5014: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 5015: conftest$ac_exeext conftest.$ac_ext
5016: LIBS=$ac_check_lib_save_LIBS
5017: fi
1.1.1.22! root 5018: { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
! 5019: echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
1.1.1.19 root 5020: if test $ac_cv_lib_nsl_gethostbyname = yes; then
5021: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1.1 root 5022: fi
5023:
1.1.1.19 root 5024: if test $ac_cv_lib_nsl_gethostbyname = no; then
1.1.1.22! root 5025: { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
! 5026: echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
1.1.1.19 root 5027: if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5028: echo $ECHO_N "(cached) $ECHO_C" >&6
5029: else
5030: ac_check_lib_save_LIBS=$LIBS
5031: LIBS="-lbsd $LIBS"
5032: cat >conftest.$ac_ext <<_ACEOF
5033: /* confdefs.h. */
5034: _ACEOF
5035: cat confdefs.h >>conftest.$ac_ext
5036: cat >>conftest.$ac_ext <<_ACEOF
5037: /* end confdefs.h. */
5038:
1.1.1.22! root 5039: /* Override any GCC internal prototype to avoid an error.
! 5040: Use char because int might match the return type of a GCC
! 5041: builtin and then its argument prototype would still apply. */
1.1.1.19 root 5042: #ifdef __cplusplus
5043: extern "C"
5044: #endif
5045: char gethostbyname ();
5046: int
5047: main ()
5048: {
1.1.1.22! root 5049: return gethostbyname ();
1.1.1.19 root 5050: ;
5051: return 0;
5052: }
5053: _ACEOF
5054: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22! root 5055: if { (ac_try="$ac_link"
! 5056: case "(($ac_try" in
! 5057: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5058: *) ac_try_echo=$ac_try;;
! 5059: esac
! 5060: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5061: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 5062: ac_status=$?
5063: grep -v '^ *+' conftest.er1 >conftest.err
5064: rm -f conftest.er1
5065: cat conftest.err >&5
5066: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 5067: (exit $ac_status); } && {
! 5068: test -z "$ac_c_werror_flag" ||
! 5069: test ! -s conftest.err
! 5070: } && test -s conftest$ac_exeext &&
! 5071: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 5072: ac_cv_lib_bsd_gethostbyname=yes
5073: else
5074: echo "$as_me: failed program was:" >&5
5075: sed 's/^/| /' conftest.$ac_ext >&5
5076:
1.1.1.22! root 5077: ac_cv_lib_bsd_gethostbyname=no
1.1.1.19 root 5078: fi
1.1.1.22! root 5079:
! 5080: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 5081: conftest$ac_exeext conftest.$ac_ext
5082: LIBS=$ac_check_lib_save_LIBS
5083: fi
1.1.1.22! root 5084: { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
! 5085: echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
1.1.1.19 root 5086: if test $ac_cv_lib_bsd_gethostbyname = yes; then
5087: X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
1.1 root 5088: fi
5089:
1.1.1.19 root 5090: fi
1.1.1.4 root 5091: fi
1.1 root 5092:
5093: # [email protected] says without -lsocket,
1.1.1.4 root 5094: # socket/setsockopt and other routines are undefined under SCO ODT
5095: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1.1.1.19 root 5096: # on later versions), says Simon Leinen: it contains gethostby*
5097: # variants that don't use the name server (or something). -lsocket
5098: # must be given before -lnsl if both are needed. We assume that
5099: # if connect needs -lnsl, so does gethostbyname.
1.1.1.22! root 5100: { echo "$as_me:$LINENO: checking for connect" >&5
! 5101: echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
1.1.1.19 root 5102: if test "${ac_cv_func_connect+set}" = set; then
5103: echo $ECHO_N "(cached) $ECHO_C" >&6
5104: else
5105: cat >conftest.$ac_ext <<_ACEOF
5106: /* confdefs.h. */
5107: _ACEOF
5108: cat confdefs.h >>conftest.$ac_ext
5109: cat >>conftest.$ac_ext <<_ACEOF
5110: /* end confdefs.h. */
5111: /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5112: For example, HP-UX 11i <limits.h> declares gettimeofday. */
5113: #define connect innocuous_connect
5114:
1.1.1.4 root 5115: /* System header to define __stub macros and hopefully few prototypes,
1.1.1.19 root 5116: which can conflict with char connect (); below.
5117: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5118: <limits.h> exists even on freestanding compilers. */
5119:
5120: #ifdef __STDC__
5121: # include <limits.h>
5122: #else
5123: # include <assert.h>
5124: #endif
1.1.1.4 root 5125:
1.1.1.19 root 5126: #undef connect
1.1.1.4 root 5127:
1.1.1.22! root 5128: /* Override any GCC internal prototype to avoid an error.
! 5129: Use char because int might match the return type of a GCC
! 5130: builtin and then its argument prototype would still apply. */
1.1.1.19 root 5131: #ifdef __cplusplus
5132: extern "C"
5133: #endif
5134: char connect ();
1.1.1.4 root 5135: /* The GNU C library defines this for functions which it implements
5136: to always fail with ENOSYS. Some functions are actually named
5137: something starting with __ and the normal name is an alias. */
1.1.1.22! root 5138: #if defined __stub_connect || defined __stub___connect
1.1.1.4 root 5139: choke me
5140: #endif
5141:
1.1.1.19 root 5142: int
5143: main ()
5144: {
1.1.1.22! root 5145: return connect ();
1.1.1.19 root 5146: ;
5147: return 0;
5148: }
5149: _ACEOF
5150: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22! root 5151: if { (ac_try="$ac_link"
! 5152: case "(($ac_try" in
! 5153: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5154: *) ac_try_echo=$ac_try;;
! 5155: esac
! 5156: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5157: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 5158: ac_status=$?
5159: grep -v '^ *+' conftest.er1 >conftest.err
5160: rm -f conftest.er1
5161: cat conftest.err >&5
5162: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 5163: (exit $ac_status); } && {
! 5164: test -z "$ac_c_werror_flag" ||
! 5165: test ! -s conftest.err
! 5166: } && test -s conftest$ac_exeext &&
! 5167: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 5168: ac_cv_func_connect=yes
5169: else
5170: echo "$as_me: failed program was:" >&5
5171: sed 's/^/| /' conftest.$ac_ext >&5
1.1.1.4 root 5172:
1.1.1.22! root 5173: ac_cv_func_connect=no
1.1.1.19 root 5174: fi
1.1.1.22! root 5175:
! 5176: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 5177: conftest$ac_exeext conftest.$ac_ext
1.1.1.4 root 5178: fi
1.1.1.22! root 5179: { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
! 5180: echo "${ECHO_T}$ac_cv_func_connect" >&6; }
1.1.1.4 root 5181:
5182: if test $ac_cv_func_connect = no; then
1.1.1.22! root 5183: { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
! 5184: echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
1.1.1.19 root 5185: if test "${ac_cv_lib_socket_connect+set}" = set; then
5186: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 root 5187: else
1.1.1.19 root 5188: ac_check_lib_save_LIBS=$LIBS
1.1.1.4 root 5189: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1.1.1.19 root 5190: cat >conftest.$ac_ext <<_ACEOF
5191: /* confdefs.h. */
5192: _ACEOF
5193: cat confdefs.h >>conftest.$ac_ext
5194: cat >>conftest.$ac_ext <<_ACEOF
5195: /* end confdefs.h. */
5196:
1.1.1.22! root 5197: /* Override any GCC internal prototype to avoid an error.
! 5198: Use char because int might match the return type of a GCC
! 5199: builtin and then its argument prototype would still apply. */
1.1.1.19 root 5200: #ifdef __cplusplus
5201: extern "C"
5202: #endif
5203: char connect ();
5204: int
5205: main ()
5206: {
1.1.1.22! root 5207: return connect ();
1.1.1.19 root 5208: ;
5209: return 0;
5210: }
5211: _ACEOF
5212: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22! root 5213: if { (ac_try="$ac_link"
! 5214: case "(($ac_try" in
! 5215: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5216: *) ac_try_echo=$ac_try;;
! 5217: esac
! 5218: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5219: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 5220: ac_status=$?
5221: grep -v '^ *+' conftest.er1 >conftest.err
5222: rm -f conftest.er1
5223: cat conftest.err >&5
5224: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 5225: (exit $ac_status); } && {
! 5226: test -z "$ac_c_werror_flag" ||
! 5227: test ! -s conftest.err
! 5228: } && test -s conftest$ac_exeext &&
! 5229: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 5230: ac_cv_lib_socket_connect=yes
5231: else
5232: echo "$as_me: failed program was:" >&5
5233: sed 's/^/| /' conftest.$ac_ext >&5
5234:
1.1.1.22! root 5235: ac_cv_lib_socket_connect=no
1.1.1.19 root 5236: fi
1.1.1.22! root 5237:
! 5238: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 5239: conftest$ac_exeext conftest.$ac_ext
5240: LIBS=$ac_check_lib_save_LIBS
5241: fi
1.1.1.22! root 5242: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
! 5243: echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
1.1.1.19 root 5244: if test $ac_cv_lib_socket_connect = yes; then
1.1.1.4 root 5245: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5246: fi
5247:
5248: fi
5249:
1.1.1.19 root 5250: # Guillermo Gomez says -lposix is necessary on A/UX.
1.1.1.22! root 5251: { echo "$as_me:$LINENO: checking for remove" >&5
! 5252: echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
1.1.1.19 root 5253: if test "${ac_cv_func_remove+set}" = set; then
5254: echo $ECHO_N "(cached) $ECHO_C" >&6
5255: else
5256: cat >conftest.$ac_ext <<_ACEOF
5257: /* confdefs.h. */
5258: _ACEOF
5259: cat confdefs.h >>conftest.$ac_ext
5260: cat >>conftest.$ac_ext <<_ACEOF
5261: /* end confdefs.h. */
5262: /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5263: For example, HP-UX 11i <limits.h> declares gettimeofday. */
5264: #define remove innocuous_remove
5265:
1.1.1.4 root 5266: /* System header to define __stub macros and hopefully few prototypes,
1.1.1.19 root 5267: which can conflict with char remove (); below.
5268: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5269: <limits.h> exists even on freestanding compilers. */
5270:
5271: #ifdef __STDC__
5272: # include <limits.h>
5273: #else
5274: # include <assert.h>
5275: #endif
1.1.1.4 root 5276:
1.1.1.19 root 5277: #undef remove
1.1.1.4 root 5278:
1.1.1.22! root 5279: /* Override any GCC internal prototype to avoid an error.
! 5280: Use char because int might match the return type of a GCC
! 5281: builtin and then its argument prototype would still apply. */
1.1.1.19 root 5282: #ifdef __cplusplus
5283: extern "C"
5284: #endif
5285: char remove ();
1.1.1.4 root 5286: /* The GNU C library defines this for functions which it implements
5287: to always fail with ENOSYS. Some functions are actually named
5288: something starting with __ and the normal name is an alias. */
1.1.1.22! root 5289: #if defined __stub_remove || defined __stub___remove
1.1.1.4 root 5290: choke me
5291: #endif
5292:
1.1.1.19 root 5293: int
5294: main ()
5295: {
1.1.1.22! root 5296: return remove ();
1.1.1.19 root 5297: ;
5298: return 0;
5299: }
5300: _ACEOF
5301: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22! root 5302: if { (ac_try="$ac_link"
! 5303: case "(($ac_try" in
! 5304: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5305: *) ac_try_echo=$ac_try;;
! 5306: esac
! 5307: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5308: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 5309: ac_status=$?
5310: grep -v '^ *+' conftest.er1 >conftest.err
5311: rm -f conftest.er1
5312: cat conftest.err >&5
5313: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 5314: (exit $ac_status); } && {
! 5315: test -z "$ac_c_werror_flag" ||
! 5316: test ! -s conftest.err
! 5317: } && test -s conftest$ac_exeext &&
! 5318: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 5319: ac_cv_func_remove=yes
5320: else
5321: echo "$as_me: failed program was:" >&5
5322: sed 's/^/| /' conftest.$ac_ext >&5
1.1.1.4 root 5323:
1.1.1.22! root 5324: ac_cv_func_remove=no
1.1.1.19 root 5325: fi
1.1.1.22! root 5326:
! 5327: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 5328: conftest$ac_exeext conftest.$ac_ext
1.1.1.4 root 5329: fi
1.1.1.22! root 5330: { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
! 5331: echo "${ECHO_T}$ac_cv_func_remove" >&6; }
1.1.1.4 root 5332:
5333: if test $ac_cv_func_remove = no; then
1.1.1.22! root 5334: { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
! 5335: echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
1.1.1.19 root 5336: if test "${ac_cv_lib_posix_remove+set}" = set; then
5337: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.4 root 5338: else
1.1.1.19 root 5339: ac_check_lib_save_LIBS=$LIBS
1.1.1.4 root 5340: LIBS="-lposix $LIBS"
1.1.1.19 root 5341: cat >conftest.$ac_ext <<_ACEOF
5342: /* confdefs.h. */
5343: _ACEOF
5344: cat confdefs.h >>conftest.$ac_ext
5345: cat >>conftest.$ac_ext <<_ACEOF
5346: /* end confdefs.h. */
5347:
1.1.1.22! root 5348: /* Override any GCC internal prototype to avoid an error.
! 5349: Use char because int might match the return type of a GCC
! 5350: builtin and then its argument prototype would still apply. */
1.1.1.19 root 5351: #ifdef __cplusplus
5352: extern "C"
5353: #endif
5354: char remove ();
5355: int
5356: main ()
5357: {
1.1.1.22! root 5358: return remove ();
1.1.1.19 root 5359: ;
5360: return 0;
5361: }
5362: _ACEOF
5363: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22! root 5364: if { (ac_try="$ac_link"
! 5365: case "(($ac_try" in
! 5366: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5367: *) ac_try_echo=$ac_try;;
! 5368: esac
! 5369: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5370: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 5371: ac_status=$?
5372: grep -v '^ *+' conftest.er1 >conftest.err
5373: rm -f conftest.er1
5374: cat conftest.err >&5
5375: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 5376: (exit $ac_status); } && {
! 5377: test -z "$ac_c_werror_flag" ||
! 5378: test ! -s conftest.err
! 5379: } && test -s conftest$ac_exeext &&
! 5380: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 5381: ac_cv_lib_posix_remove=yes
5382: else
5383: echo "$as_me: failed program was:" >&5
5384: sed 's/^/| /' conftest.$ac_ext >&5
5385:
1.1.1.22! root 5386: ac_cv_lib_posix_remove=no
1.1.1.19 root 5387: fi
1.1.1.22! root 5388:
! 5389: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 5390: conftest$ac_exeext conftest.$ac_ext
5391: LIBS=$ac_check_lib_save_LIBS
5392: fi
1.1.1.22! root 5393: { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
! 5394: echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
1.1.1.19 root 5395: if test $ac_cv_lib_posix_remove = yes; then
1.1.1.4 root 5396: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5397: fi
5398:
5399: fi
5400:
5401: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1.1.1.22! root 5402: { echo "$as_me:$LINENO: checking for shmat" >&5
! 5403: echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
1.1.1.19 root 5404: if test "${ac_cv_func_shmat+set}" = set; then
5405: echo $ECHO_N "(cached) $ECHO_C" >&6
5406: else
5407: cat >conftest.$ac_ext <<_ACEOF
5408: /* confdefs.h. */
5409: _ACEOF
5410: cat confdefs.h >>conftest.$ac_ext
5411: cat >>conftest.$ac_ext <<_ACEOF
5412: /* end confdefs.h. */
5413: /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5414: For example, HP-UX 11i <limits.h> declares gettimeofday. */
5415: #define shmat innocuous_shmat
5416:
1.1.1.4 root 5417: /* System header to define __stub macros and hopefully few prototypes,
1.1.1.19 root 5418: which can conflict with char shmat (); below.
5419: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5420: <limits.h> exists even on freestanding compilers. */
5421:
5422: #ifdef __STDC__
5423: # include <limits.h>
5424: #else
5425: # include <assert.h>
5426: #endif
1.1.1.4 root 5427:
1.1.1.19 root 5428: #undef shmat
1.1.1.4 root 5429:
1.1.1.22! root 5430: /* Override any GCC internal prototype to avoid an error.
! 5431: Use char because int might match the return type of a GCC
! 5432: builtin and then its argument prototype would still apply. */
1.1.1.19 root 5433: #ifdef __cplusplus
5434: extern "C"
5435: #endif
5436: char shmat ();
1.1.1.4 root 5437: /* The GNU C library defines this for functions which it implements
5438: to always fail with ENOSYS. Some functions are actually named
5439: something starting with __ and the normal name is an alias. */
1.1.1.22! root 5440: #if defined __stub_shmat || defined __stub___shmat
1.1.1.4 root 5441: choke me
5442: #endif
5443:
1.1.1.19 root 5444: int
5445: main ()
5446: {
1.1.1.22! root 5447: return shmat ();
1.1.1.19 root 5448: ;
5449: return 0;
5450: }
5451: _ACEOF
5452: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22! root 5453: if { (ac_try="$ac_link"
! 5454: case "(($ac_try" in
! 5455: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5456: *) ac_try_echo=$ac_try;;
! 5457: esac
! 5458: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5459: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 5460: ac_status=$?
5461: grep -v '^ *+' conftest.er1 >conftest.err
5462: rm -f conftest.er1
5463: cat conftest.err >&5
5464: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 5465: (exit $ac_status); } && {
! 5466: test -z "$ac_c_werror_flag" ||
! 5467: test ! -s conftest.err
! 5468: } && test -s conftest$ac_exeext &&
! 5469: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 5470: ac_cv_func_shmat=yes
5471: else
5472: echo "$as_me: failed program was:" >&5
5473: sed 's/^/| /' conftest.$ac_ext >&5
1.1.1.4 root 5474:
1.1.1.22! root 5475: ac_cv_func_shmat=no
1.1.1.19 root 5476: fi
1.1.1.22! root 5477:
! 5478: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 5479: conftest$ac_exeext conftest.$ac_ext
1.1.1.4 root 5480: fi
1.1.1.22! root 5481: { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
! 5482: echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
1.1.1.4 root 5483:
5484: if test $ac_cv_func_shmat = no; then
1.1.1.22! root 5485: { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
! 5486: echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
1.1.1.19 root 5487: if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5488: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.4 root 5489: else
1.1.1.19 root 5490: ac_check_lib_save_LIBS=$LIBS
1.1.1.4 root 5491: LIBS="-lipc $LIBS"
1.1.1.19 root 5492: cat >conftest.$ac_ext <<_ACEOF
5493: /* confdefs.h. */
5494: _ACEOF
5495: cat confdefs.h >>conftest.$ac_ext
5496: cat >>conftest.$ac_ext <<_ACEOF
5497: /* end confdefs.h. */
5498:
1.1.1.22! root 5499: /* Override any GCC internal prototype to avoid an error.
! 5500: Use char because int might match the return type of a GCC
! 5501: builtin and then its argument prototype would still apply. */
1.1.1.19 root 5502: #ifdef __cplusplus
5503: extern "C"
5504: #endif
5505: char shmat ();
5506: int
5507: main ()
5508: {
1.1.1.22! root 5509: return shmat ();
1.1.1.19 root 5510: ;
5511: return 0;
5512: }
5513: _ACEOF
5514: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22! root 5515: if { (ac_try="$ac_link"
! 5516: case "(($ac_try" in
! 5517: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5518: *) ac_try_echo=$ac_try;;
! 5519: esac
! 5520: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5521: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 5522: ac_status=$?
5523: grep -v '^ *+' conftest.er1 >conftest.err
5524: rm -f conftest.er1
5525: cat conftest.err >&5
5526: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 5527: (exit $ac_status); } && {
! 5528: test -z "$ac_c_werror_flag" ||
! 5529: test ! -s conftest.err
! 5530: } && test -s conftest$ac_exeext &&
! 5531: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 5532: ac_cv_lib_ipc_shmat=yes
5533: else
5534: echo "$as_me: failed program was:" >&5
5535: sed 's/^/| /' conftest.$ac_ext >&5
5536:
1.1.1.22! root 5537: ac_cv_lib_ipc_shmat=no
1.1.1.19 root 5538: fi
1.1.1.22! root 5539:
! 5540: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 5541: conftest$ac_exeext conftest.$ac_ext
5542: LIBS=$ac_check_lib_save_LIBS
5543: fi
1.1.1.22! root 5544: { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
! 5545: echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
1.1.1.19 root 5546: if test $ac_cv_lib_ipc_shmat = yes; then
1.1.1.4 root 5547: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1.1 root 5548: fi
5549:
5550: fi
5551: fi
1.1.1.4 root 5552:
5553: # Check for libraries that X11R6 Xt/Xaw programs need.
1.1.1.19 root 5554: ac_save_LDFLAGS=$LDFLAGS
1.1.1.4 root 5555: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5556: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5557: # check for ICE first), but we must link in the order -lSM -lICE or
5558: # we get undefined symbols. So assume we have SM if we have ICE.
5559: # These have to be linked with before -lX11, unlike the other
5560: # libraries we check for below, so use a different variable.
1.1.1.19 root 5561: # John Interrante, Karl Berry
1.1.1.22! root 5562: { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
! 5563: echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
1.1.1.19 root 5564: if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5565: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.4 root 5566: else
1.1.1.19 root 5567: ac_check_lib_save_LIBS=$LIBS
1.1.1.9 root 5568: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
1.1.1.19 root 5569: cat >conftest.$ac_ext <<_ACEOF
5570: /* confdefs.h. */
5571: _ACEOF
5572: cat confdefs.h >>conftest.$ac_ext
5573: cat >>conftest.$ac_ext <<_ACEOF
5574: /* end confdefs.h. */
5575:
1.1.1.22! root 5576: /* Override any GCC internal prototype to avoid an error.
! 5577: Use char because int might match the return type of a GCC
! 5578: builtin and then its argument prototype would still apply. */
1.1.1.19 root 5579: #ifdef __cplusplus
5580: extern "C"
5581: #endif
5582: char IceConnectionNumber ();
5583: int
5584: main ()
5585: {
1.1.1.22! root 5586: return IceConnectionNumber ();
1.1.1.19 root 5587: ;
5588: return 0;
5589: }
5590: _ACEOF
5591: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22! root 5592: if { (ac_try="$ac_link"
! 5593: case "(($ac_try" in
! 5594: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5595: *) ac_try_echo=$ac_try;;
! 5596: esac
! 5597: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5598: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 5599: ac_status=$?
5600: grep -v '^ *+' conftest.er1 >conftest.err
5601: rm -f conftest.er1
5602: cat conftest.err >&5
5603: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 5604: (exit $ac_status); } && {
! 5605: test -z "$ac_c_werror_flag" ||
! 5606: test ! -s conftest.err
! 5607: } && test -s conftest$ac_exeext &&
! 5608: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 5609: ac_cv_lib_ICE_IceConnectionNumber=yes
5610: else
5611: echo "$as_me: failed program was:" >&5
5612: sed 's/^/| /' conftest.$ac_ext >&5
5613:
1.1.1.22! root 5614: ac_cv_lib_ICE_IceConnectionNumber=no
1.1.1.19 root 5615: fi
1.1.1.22! root 5616:
! 5617: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 5618: conftest$ac_exeext conftest.$ac_ext
5619: LIBS=$ac_check_lib_save_LIBS
5620: fi
1.1.1.22! root 5621: { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
! 5622: echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
1.1.1.19 root 5623: if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
1.1.1.4 root 5624: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5625: fi
1.1 root 5626:
1.1.1.19 root 5627: LDFLAGS=$ac_save_LDFLAGS
1.1 root 5628:
1.1.1.3 root 5629: fi
5630:
1.1.1.22! root 5631: ac_config_headers="$ac_config_headers src/sysconfig.h"
1.1.1.19 root 5632:
5633:
5634:
5635:
5636:
1.1.1.3 root 5637:
1.1.1.4 root 5638:
1.1 root 5639: ac_header_dirent=no
1.1.1.19 root 5640: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5641: as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
1.1.1.22! root 5642: { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
! 5643: echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
! 5644: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 5645: echo $ECHO_N "(cached) $ECHO_C" >&6
5646: else
5647: cat >conftest.$ac_ext <<_ACEOF
5648: /* confdefs.h. */
5649: _ACEOF
5650: cat confdefs.h >>conftest.$ac_ext
5651: cat >>conftest.$ac_ext <<_ACEOF
5652: /* end confdefs.h. */
1.1 root 5653: #include <sys/types.h>
5654: #include <$ac_hdr>
1.1.1.19 root 5655:
5656: int
5657: main ()
5658: {
5659: if ((DIR *) 0)
5660: return 0;
5661: ;
5662: return 0;
5663: }
5664: _ACEOF
5665: rm -f conftest.$ac_objext
1.1.1.22! root 5666: if { (ac_try="$ac_compile"
! 5667: case "(($ac_try" in
! 5668: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5669: *) ac_try_echo=$ac_try;;
! 5670: esac
! 5671: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5672: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 5673: ac_status=$?
5674: grep -v '^ *+' conftest.er1 >conftest.err
5675: rm -f conftest.er1
5676: cat conftest.err >&5
5677: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 5678: (exit $ac_status); } && {
! 5679: test -z "$ac_c_werror_flag" ||
! 5680: test ! -s conftest.err
! 5681: } && test -s conftest.$ac_objext; then
1.1.1.19 root 5682: eval "$as_ac_Header=yes"
5683: else
5684: echo "$as_me: failed program was:" >&5
5685: sed 's/^/| /' conftest.$ac_ext >&5
5686:
1.1.1.22! root 5687: eval "$as_ac_Header=no"
1.1.1.19 root 5688: fi
1.1.1.22! root 5689:
! 5690: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 5691: fi
1.1.1.22! root 5692: ac_res=`eval echo '${'$as_ac_Header'}'`
! 5693: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 5694: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 5695: if test `eval echo '${'$as_ac_Header'}'` = yes; then
5696: cat >>confdefs.h <<_ACEOF
5697: #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5698: _ACEOF
5699:
5700: ac_header_dirent=$ac_hdr; break
1.1 root 5701: fi
1.1.1.19 root 5702:
1.1 root 5703: done
5704: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5705: if test $ac_header_dirent = dirent.h; then
1.1.1.22! root 5706: { echo "$as_me:$LINENO: checking for library containing opendir" >&5
! 5707: echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
1.1.1.19 root 5708: if test "${ac_cv_search_opendir+set}" = set; then
5709: echo $ECHO_N "(cached) $ECHO_C" >&6
5710: else
5711: ac_func_search_save_LIBS=$LIBS
5712: cat >conftest.$ac_ext <<_ACEOF
5713: /* confdefs.h. */
5714: _ACEOF
5715: cat confdefs.h >>conftest.$ac_ext
5716: cat >>conftest.$ac_ext <<_ACEOF
5717: /* end confdefs.h. */
5718:
1.1.1.22! root 5719: /* Override any GCC internal prototype to avoid an error.
! 5720: Use char because int might match the return type of a GCC
! 5721: builtin and then its argument prototype would still apply. */
1.1.1.19 root 5722: #ifdef __cplusplus
5723: extern "C"
5724: #endif
5725: char opendir ();
5726: int
5727: main ()
5728: {
1.1.1.22! root 5729: return opendir ();
1.1.1.19 root 5730: ;
5731: return 0;
5732: }
5733: _ACEOF
1.1.1.22! root 5734: for ac_lib in '' dir; do
! 5735: if test -z "$ac_lib"; then
! 5736: ac_res="none required"
! 5737: else
! 5738: ac_res=-l$ac_lib
! 5739: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
! 5740: fi
! 5741: rm -f conftest.$ac_objext conftest$ac_exeext
! 5742: if { (ac_try="$ac_link"
! 5743: case "(($ac_try" in
! 5744: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5745: *) ac_try_echo=$ac_try;;
! 5746: esac
! 5747: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5748: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 5749: ac_status=$?
5750: grep -v '^ *+' conftest.er1 >conftest.err
5751: rm -f conftest.er1
5752: cat conftest.err >&5
5753: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 5754: (exit $ac_status); } && {
! 5755: test -z "$ac_c_werror_flag" ||
! 5756: test ! -s conftest.err
! 5757: } && test -s conftest$ac_exeext &&
! 5758: $as_test_x conftest$ac_exeext; then
! 5759: ac_cv_search_opendir=$ac_res
1.1.1.19 root 5760: else
5761: echo "$as_me: failed program was:" >&5
5762: sed 's/^/| /' conftest.$ac_ext >&5
5763:
1.1 root 5764:
1.1.1.22! root 5765: fi
1.1 root 5766:
1.1.1.22! root 5767: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 5768: conftest$ac_exeext
! 5769: if test "${ac_cv_search_opendir+set}" = set; then
! 5770: break
1.1 root 5771: fi
1.1.1.22! root 5772: done
! 5773: if test "${ac_cv_search_opendir+set}" = set; then
! 5774: :
! 5775: else
! 5776: ac_cv_search_opendir=no
1.1.1.19 root 5777: fi
1.1.1.22! root 5778: rm conftest.$ac_ext
1.1.1.19 root 5779: LIBS=$ac_func_search_save_LIBS
5780: fi
1.1.1.22! root 5781: { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
! 5782: echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
! 5783: ac_res=$ac_cv_search_opendir
! 5784: if test "$ac_res" != no; then
! 5785: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1.1.19 root 5786:
1.1 root 5787: fi
5788:
5789: else
1.1.1.22! root 5790: { echo "$as_me:$LINENO: checking for library containing opendir" >&5
! 5791: echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
1.1.1.19 root 5792: if test "${ac_cv_search_opendir+set}" = set; then
5793: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 root 5794: else
1.1.1.19 root 5795: ac_func_search_save_LIBS=$LIBS
5796: cat >conftest.$ac_ext <<_ACEOF
5797: /* confdefs.h. */
5798: _ACEOF
5799: cat confdefs.h >>conftest.$ac_ext
5800: cat >>conftest.$ac_ext <<_ACEOF
5801: /* end confdefs.h. */
5802:
1.1.1.22! root 5803: /* Override any GCC internal prototype to avoid an error.
! 5804: Use char because int might match the return type of a GCC
! 5805: builtin and then its argument prototype would still apply. */
1.1.1.19 root 5806: #ifdef __cplusplus
5807: extern "C"
5808: #endif
5809: char opendir ();
5810: int
5811: main ()
5812: {
1.1.1.22! root 5813: return opendir ();
1.1.1.19 root 5814: ;
5815: return 0;
5816: }
5817: _ACEOF
1.1.1.22! root 5818: for ac_lib in '' x; do
! 5819: if test -z "$ac_lib"; then
! 5820: ac_res="none required"
! 5821: else
! 5822: ac_res=-l$ac_lib
! 5823: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
! 5824: fi
! 5825: rm -f conftest.$ac_objext conftest$ac_exeext
! 5826: if { (ac_try="$ac_link"
! 5827: case "(($ac_try" in
! 5828: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5829: *) ac_try_echo=$ac_try;;
! 5830: esac
! 5831: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5832: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 5833: ac_status=$?
5834: grep -v '^ *+' conftest.er1 >conftest.err
5835: rm -f conftest.er1
5836: cat conftest.err >&5
5837: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 5838: (exit $ac_status); } && {
! 5839: test -z "$ac_c_werror_flag" ||
! 5840: test ! -s conftest.err
! 5841: } && test -s conftest$ac_exeext &&
! 5842: $as_test_x conftest$ac_exeext; then
! 5843: ac_cv_search_opendir=$ac_res
1.1.1.19 root 5844: else
5845: echo "$as_me: failed program was:" >&5
5846: sed 's/^/| /' conftest.$ac_ext >&5
5847:
1.1 root 5848:
1.1.1.22! root 5849: fi
1.1 root 5850:
1.1.1.22! root 5851: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 5852: conftest$ac_exeext
! 5853: if test "${ac_cv_search_opendir+set}" = set; then
! 5854: break
1.1 root 5855: fi
1.1.1.22! root 5856: done
! 5857: if test "${ac_cv_search_opendir+set}" = set; then
! 5858: :
! 5859: else
! 5860: ac_cv_search_opendir=no
1.1.1.19 root 5861: fi
1.1.1.22! root 5862: rm conftest.$ac_ext
1.1.1.19 root 5863: LIBS=$ac_func_search_save_LIBS
5864: fi
1.1.1.22! root 5865: { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
! 5866: echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
! 5867: ac_res=$ac_cv_search_opendir
! 5868: if test "$ac_res" != no; then
! 5869: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1.1.19 root 5870:
1.1 root 5871: fi
5872:
5873: fi
5874:
1.1.1.22! root 5875: { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
! 5876: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
1.1.1.19 root 5877: if test "${ac_cv_header_stdc+set}" = set; then
5878: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 root 5879: else
1.1.1.19 root 5880: cat >conftest.$ac_ext <<_ACEOF
5881: /* confdefs.h. */
5882: _ACEOF
5883: cat confdefs.h >>conftest.$ac_ext
5884: cat >>conftest.$ac_ext <<_ACEOF
5885: /* end confdefs.h. */
1.1 root 5886: #include <stdlib.h>
5887: #include <stdarg.h>
5888: #include <string.h>
5889: #include <float.h>
1.1.1.19 root 5890:
5891: int
5892: main ()
5893: {
5894:
5895: ;
5896: return 0;
5897: }
5898: _ACEOF
5899: rm -f conftest.$ac_objext
1.1.1.22! root 5900: if { (ac_try="$ac_compile"
! 5901: case "(($ac_try" in
! 5902: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5903: *) ac_try_echo=$ac_try;;
! 5904: esac
! 5905: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5906: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 5907: ac_status=$?
5908: grep -v '^ *+' conftest.er1 >conftest.err
5909: rm -f conftest.er1
5910: cat conftest.err >&5
5911: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 5912: (exit $ac_status); } && {
! 5913: test -z "$ac_c_werror_flag" ||
! 5914: test ! -s conftest.err
! 5915: } && test -s conftest.$ac_objext; then
1.1 root 5916: ac_cv_header_stdc=yes
5917: else
1.1.1.19 root 5918: echo "$as_me: failed program was:" >&5
5919: sed 's/^/| /' conftest.$ac_ext >&5
5920:
1.1.1.22! root 5921: ac_cv_header_stdc=no
1.1 root 5922: fi
1.1.1.22! root 5923:
! 5924: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 5925:
5926: if test $ac_cv_header_stdc = yes; then
5927: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.1.1.19 root 5928: cat >conftest.$ac_ext <<_ACEOF
5929: /* confdefs.h. */
5930: _ACEOF
5931: cat confdefs.h >>conftest.$ac_ext
5932: cat >>conftest.$ac_ext <<_ACEOF
5933: /* end confdefs.h. */
1.1 root 5934: #include <string.h>
1.1.1.19 root 5935:
5936: _ACEOF
1.1 root 5937: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.19 root 5938: $EGREP "memchr" >/dev/null 2>&1; then
1.1 root 5939: :
5940: else
5941: ac_cv_header_stdc=no
5942: fi
5943: rm -f conftest*
5944:
5945: fi
5946:
5947: if test $ac_cv_header_stdc = yes; then
5948: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.1.1.19 root 5949: cat >conftest.$ac_ext <<_ACEOF
5950: /* confdefs.h. */
5951: _ACEOF
5952: cat confdefs.h >>conftest.$ac_ext
5953: cat >>conftest.$ac_ext <<_ACEOF
5954: /* end confdefs.h. */
1.1 root 5955: #include <stdlib.h>
1.1.1.19 root 5956:
5957: _ACEOF
1.1 root 5958: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.19 root 5959: $EGREP "free" >/dev/null 2>&1; then
1.1 root 5960: :
5961: else
5962: ac_cv_header_stdc=no
5963: fi
5964: rm -f conftest*
5965:
5966: fi
5967:
5968: if test $ac_cv_header_stdc = yes; then
5969: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.1.1.19 root 5970: if test "$cross_compiling" = yes; then
1.1 root 5971: :
5972: else
1.1.1.19 root 5973: cat >conftest.$ac_ext <<_ACEOF
5974: /* confdefs.h. */
5975: _ACEOF
5976: cat confdefs.h >>conftest.$ac_ext
5977: cat >>conftest.$ac_ext <<_ACEOF
5978: /* end confdefs.h. */
1.1 root 5979: #include <ctype.h>
1.1.1.22! root 5980: #include <stdlib.h>
1.1.1.19 root 5981: #if ((' ' & 0x0FF) == 0x020)
5982: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5983: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5984: #else
5985: # define ISLOWER(c) \
5986: (('a' <= (c) && (c) <= 'i') \
5987: || ('j' <= (c) && (c) <= 'r') \
5988: || ('s' <= (c) && (c) <= 'z'))
5989: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5990: #endif
1.1 root 5991:
1.1.1.19 root 5992: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5993: int
5994: main ()
5995: {
5996: int i;
5997: for (i = 0; i < 256; i++)
5998: if (XOR (islower (i), ISLOWER (i))
5999: || toupper (i) != TOUPPER (i))
1.1.1.22! root 6000: return 2;
! 6001: return 0;
1.1.1.19 root 6002: }
6003: _ACEOF
6004: rm -f conftest$ac_exeext
1.1.1.22! root 6005: if { (ac_try="$ac_link"
! 6006: case "(($ac_try" in
! 6007: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6008: *) ac_try_echo=$ac_try;;
! 6009: esac
! 6010: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6011: (eval "$ac_link") 2>&5
1.1.1.19 root 6012: ac_status=$?
6013: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.22! root 6015: { (case "(($ac_try" in
! 6016: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6017: *) ac_try_echo=$ac_try;;
! 6018: esac
! 6019: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6020: (eval "$ac_try") 2>&5
1.1.1.19 root 6021: ac_status=$?
6022: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023: (exit $ac_status); }; }; then
1.1 root 6024: :
6025: else
1.1.1.19 root 6026: echo "$as_me: program exited with status $ac_status" >&5
6027: echo "$as_me: failed program was:" >&5
6028: sed 's/^/| /' conftest.$ac_ext >&5
6029:
6030: ( exit $ac_status )
6031: ac_cv_header_stdc=no
1.1 root 6032: fi
1.1.1.22! root 6033: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 root 6034: fi
1.1.1.22! root 6035:
! 6036:
1.1.1.4 root 6037: fi
1.1 root 6038: fi
1.1.1.22! root 6039: { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
! 6040: echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
1.1 root 6041: if test $ac_cv_header_stdc = yes; then
1.1.1.19 root 6042:
6043: cat >>confdefs.h <<\_ACEOF
1.1 root 6044: #define STDC_HEADERS 1
1.1.1.19 root 6045: _ACEOF
1.1 root 6046:
6047: fi
6048:
1.1.1.4 root 6049:
1.1.1.19 root 6050: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6051:
6052:
6053:
6054:
6055:
6056:
6057:
6058:
6059:
6060: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6061: inttypes.h stdint.h unistd.h
1.1.1.4 root 6062: do
1.1.1.19 root 6063: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.22! root 6064: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 6065: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 6066: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 6067: echo $ECHO_N "(cached) $ECHO_C" >&6
6068: else
6069: cat >conftest.$ac_ext <<_ACEOF
6070: /* confdefs.h. */
6071: _ACEOF
6072: cat confdefs.h >>conftest.$ac_ext
6073: cat >>conftest.$ac_ext <<_ACEOF
6074: /* end confdefs.h. */
6075: $ac_includes_default
6076:
6077: #include <$ac_header>
6078: _ACEOF
6079: rm -f conftest.$ac_objext
1.1.1.22! root 6080: if { (ac_try="$ac_compile"
! 6081: case "(($ac_try" in
! 6082: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6083: *) ac_try_echo=$ac_try;;
! 6084: esac
! 6085: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6086: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 6087: ac_status=$?
6088: grep -v '^ *+' conftest.er1 >conftest.err
6089: rm -f conftest.er1
6090: cat conftest.err >&5
6091: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 6092: (exit $ac_status); } && {
! 6093: test -z "$ac_c_werror_flag" ||
! 6094: test ! -s conftest.err
! 6095: } && test -s conftest.$ac_objext; then
1.1.1.19 root 6096: eval "$as_ac_Header=yes"
6097: else
6098: echo "$as_me: failed program was:" >&5
6099: sed 's/^/| /' conftest.$ac_ext >&5
6100:
1.1.1.22! root 6101: eval "$as_ac_Header=no"
1.1.1.19 root 6102: fi
1.1.1.22! root 6103:
! 6104: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 6105: fi
1.1.1.22! root 6106: ac_res=`eval echo '${'$as_ac_Header'}'`
! 6107: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 6108: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 6109: if test `eval echo '${'$as_ac_Header'}'` = yes; then
6110: cat >>confdefs.h <<_ACEOF
6111: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6112: _ACEOF
6113:
1.1.1.4 root 6114: fi
1.1.1.19 root 6115:
1.1.1.4 root 6116: done
6117:
1.1.1.19 root 6118:
6119:
6120:
6121:
6122:
6123:
6124:
6125:
6126:
6127:
6128:
6129: for ac_header in unistd.h fcntl.h sys/time.h sys/types.h utime.h string.h strings.h values.h ncurses.h curses.h
1.1 root 6130: do
1.1.1.19 root 6131: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.22! root 6132: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 6133: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 6134: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 6135: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 6136: echo $ECHO_N "(cached) $ECHO_C" >&6
6137: fi
1.1.1.22! root 6138: ac_res=`eval echo '${'$as_ac_Header'}'`
! 6139: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 6140: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 6141: else
6142: # Is the header compilable?
1.1.1.22! root 6143: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 6144: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.1.1.19 root 6145: cat >conftest.$ac_ext <<_ACEOF
6146: /* confdefs.h. */
6147: _ACEOF
6148: cat confdefs.h >>conftest.$ac_ext
6149: cat >>conftest.$ac_ext <<_ACEOF
6150: /* end confdefs.h. */
6151: $ac_includes_default
6152: #include <$ac_header>
6153: _ACEOF
6154: rm -f conftest.$ac_objext
1.1.1.22! root 6155: if { (ac_try="$ac_compile"
! 6156: case "(($ac_try" in
! 6157: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6158: *) ac_try_echo=$ac_try;;
! 6159: esac
! 6160: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6161: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 6162: ac_status=$?
6163: grep -v '^ *+' conftest.er1 >conftest.err
6164: rm -f conftest.er1
6165: cat conftest.err >&5
6166: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 6167: (exit $ac_status); } && {
! 6168: test -z "$ac_c_werror_flag" ||
! 6169: test ! -s conftest.err
! 6170: } && test -s conftest.$ac_objext; then
1.1.1.19 root 6171: ac_header_compiler=yes
6172: else
6173: echo "$as_me: failed program was:" >&5
6174: sed 's/^/| /' conftest.$ac_ext >&5
6175:
1.1.1.22! root 6176: ac_header_compiler=no
1.1.1.19 root 6177: fi
1.1.1.22! root 6178:
! 6179: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 6180: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 6181: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1.1.19 root 6182:
6183: # Is the header present?
1.1.1.22! root 6184: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 6185: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.1.1.19 root 6186: cat >conftest.$ac_ext <<_ACEOF
6187: /* confdefs.h. */
6188: _ACEOF
6189: cat confdefs.h >>conftest.$ac_ext
6190: cat >>conftest.$ac_ext <<_ACEOF
6191: /* end confdefs.h. */
6192: #include <$ac_header>
6193: _ACEOF
1.1.1.22! root 6194: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 6195: case "(($ac_try" in
! 6196: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6197: *) ac_try_echo=$ac_try;;
! 6198: esac
! 6199: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6200: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.1.19 root 6201: ac_status=$?
6202: grep -v '^ *+' conftest.er1 >conftest.err
6203: rm -f conftest.er1
6204: cat conftest.err >&5
6205: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 6206: (exit $ac_status); } >/dev/null && {
! 6207: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 6208: test ! -s conftest.err
! 6209: }; then
1.1.1.19 root 6210: ac_header_preproc=yes
1.1 root 6211: else
1.1.1.19 root 6212: echo "$as_me: failed program was:" >&5
6213: sed 's/^/| /' conftest.$ac_ext >&5
6214:
6215: ac_header_preproc=no
1.1 root 6216: fi
1.1.1.22! root 6217:
1.1.1.19 root 6218: rm -f conftest.err conftest.$ac_ext
1.1.1.22! root 6219: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 6220: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1 root 6221:
1.1.1.19 root 6222: # So? What about this header?
6223: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6224: yes:no: )
6225: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6226: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6227: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6228: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6229: ac_header_preproc=yes
6230: ;;
6231: no:yes:* )
6232: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6233: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6234: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6235: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6236: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6237: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6238: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6239: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6240: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6241: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6242: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6243: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.1.1.22! root 6244:
1.1.1.19 root 6245: ;;
6246: esac
1.1.1.22! root 6247: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 6248: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 6249: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 6250: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 root 6251: else
1.1.1.19 root 6252: eval "$as_ac_Header=\$ac_header_preproc"
1.1 root 6253: fi
1.1.1.22! root 6254: ac_res=`eval echo '${'$as_ac_Header'}'`
! 6255: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 6256: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 6257:
1.1 root 6258: fi
1.1.1.19 root 6259: if test `eval echo '${'$as_ac_Header'}'` = yes; then
6260: cat >>confdefs.h <<_ACEOF
6261: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6262: _ACEOF
6263:
1.1 root 6264: fi
1.1.1.19 root 6265:
1.1 root 6266: done
6267:
1.1.1.19 root 6268:
6269:
6270:
6271:
6272:
6273:
6274:
6275: for ac_header in sys/soundcard.h machine/soundcard.h sun/audioio.h sys/audioio.h getopt.h features.h sys/termios.h
1.1.1.4 root 6276: do
1.1.1.19 root 6277: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.22! root 6278: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 6279: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 6280: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 6281: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 6282: echo $ECHO_N "(cached) $ECHO_C" >&6
6283: fi
1.1.1.22! root 6284: ac_res=`eval echo '${'$as_ac_Header'}'`
! 6285: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 6286: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 6287: else
6288: # Is the header compilable?
1.1.1.22! root 6289: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 6290: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.1.1.19 root 6291: cat >conftest.$ac_ext <<_ACEOF
6292: /* confdefs.h. */
6293: _ACEOF
6294: cat confdefs.h >>conftest.$ac_ext
6295: cat >>conftest.$ac_ext <<_ACEOF
6296: /* end confdefs.h. */
6297: $ac_includes_default
6298: #include <$ac_header>
6299: _ACEOF
6300: rm -f conftest.$ac_objext
1.1.1.22! root 6301: if { (ac_try="$ac_compile"
! 6302: case "(($ac_try" in
! 6303: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6304: *) ac_try_echo=$ac_try;;
! 6305: esac
! 6306: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6307: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 6308: ac_status=$?
6309: grep -v '^ *+' conftest.er1 >conftest.err
6310: rm -f conftest.er1
6311: cat conftest.err >&5
6312: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 6313: (exit $ac_status); } && {
! 6314: test -z "$ac_c_werror_flag" ||
! 6315: test ! -s conftest.err
! 6316: } && test -s conftest.$ac_objext; then
1.1.1.19 root 6317: ac_header_compiler=yes
6318: else
6319: echo "$as_me: failed program was:" >&5
6320: sed 's/^/| /' conftest.$ac_ext >&5
6321:
1.1.1.22! root 6322: ac_header_compiler=no
1.1.1.19 root 6323: fi
1.1.1.22! root 6324:
! 6325: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 6326: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 6327: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1.1.19 root 6328:
6329: # Is the header present?
1.1.1.22! root 6330: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 6331: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.1.1.19 root 6332: cat >conftest.$ac_ext <<_ACEOF
6333: /* confdefs.h. */
6334: _ACEOF
6335: cat confdefs.h >>conftest.$ac_ext
6336: cat >>conftest.$ac_ext <<_ACEOF
6337: /* end confdefs.h. */
6338: #include <$ac_header>
6339: _ACEOF
1.1.1.22! root 6340: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 6341: case "(($ac_try" in
! 6342: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6343: *) ac_try_echo=$ac_try;;
! 6344: esac
! 6345: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6346: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.1.19 root 6347: ac_status=$?
6348: grep -v '^ *+' conftest.er1 >conftest.err
6349: rm -f conftest.er1
6350: cat conftest.err >&5
6351: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 6352: (exit $ac_status); } >/dev/null && {
! 6353: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 6354: test ! -s conftest.err
! 6355: }; then
1.1.1.19 root 6356: ac_header_preproc=yes
1.1.1.4 root 6357: else
1.1.1.19 root 6358: echo "$as_me: failed program was:" >&5
6359: sed 's/^/| /' conftest.$ac_ext >&5
6360:
6361: ac_header_preproc=no
1.1.1.4 root 6362: fi
1.1.1.22! root 6363:
1.1.1.19 root 6364: rm -f conftest.err conftest.$ac_ext
1.1.1.22! root 6365: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 6366: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1 root 6367:
1.1.1.19 root 6368: # So? What about this header?
6369: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6370: yes:no: )
6371: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6372: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6373: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6374: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6375: ac_header_preproc=yes
6376: ;;
6377: no:yes:* )
6378: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6379: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6380: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6381: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6382: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6383: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6384: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6385: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6386: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6387: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6388: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6389: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.1.1.22! root 6390:
1.1.1.19 root 6391: ;;
6392: esac
1.1.1.22! root 6393: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 6394: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 6395: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 6396: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.4 root 6397: else
1.1.1.19 root 6398: eval "$as_ac_Header=\$ac_header_preproc"
1.1.1.4 root 6399: fi
1.1.1.22! root 6400: ac_res=`eval echo '${'$as_ac_Header'}'`
! 6401: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 6402: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 6403:
1.1.1.4 root 6404: fi
1.1.1.19 root 6405: if test `eval echo '${'$as_ac_Header'}'` = yes; then
6406: cat >>confdefs.h <<_ACEOF
6407: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6408: _ACEOF
6409:
1.1 root 6410: fi
6411:
1.1.1.19 root 6412: done
6413:
6414:
6415:
6416:
6417:
6418:
6419:
6420: for ac_header in posix_opt.h sys/ioctl.h sys/ipc.h sys/shm.h sys/stat.h sys/utime.h
1.1.1.6 root 6421: do
1.1.1.19 root 6422: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.22! root 6423: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 6424: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 6425: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 6426: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 6427: echo $ECHO_N "(cached) $ECHO_C" >&6
6428: fi
1.1.1.22! root 6429: ac_res=`eval echo '${'$as_ac_Header'}'`
! 6430: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 6431: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 6432: else
6433: # Is the header compilable?
1.1.1.22! root 6434: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 6435: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.1.1.19 root 6436: cat >conftest.$ac_ext <<_ACEOF
6437: /* confdefs.h. */
6438: _ACEOF
6439: cat confdefs.h >>conftest.$ac_ext
6440: cat >>conftest.$ac_ext <<_ACEOF
6441: /* end confdefs.h. */
6442: $ac_includes_default
6443: #include <$ac_header>
6444: _ACEOF
6445: rm -f conftest.$ac_objext
1.1.1.22! root 6446: if { (ac_try="$ac_compile"
! 6447: case "(($ac_try" in
! 6448: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6449: *) ac_try_echo=$ac_try;;
! 6450: esac
! 6451: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6452: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 6453: ac_status=$?
6454: grep -v '^ *+' conftest.er1 >conftest.err
6455: rm -f conftest.er1
6456: cat conftest.err >&5
6457: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 6458: (exit $ac_status); } && {
! 6459: test -z "$ac_c_werror_flag" ||
! 6460: test ! -s conftest.err
! 6461: } && test -s conftest.$ac_objext; then
1.1.1.19 root 6462: ac_header_compiler=yes
6463: else
6464: echo "$as_me: failed program was:" >&5
6465: sed 's/^/| /' conftest.$ac_ext >&5
6466:
1.1.1.22! root 6467: ac_header_compiler=no
1.1.1.19 root 6468: fi
1.1.1.22! root 6469:
! 6470: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 6471: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 6472: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1.1.19 root 6473:
6474: # Is the header present?
1.1.1.22! root 6475: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 6476: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.1.1.19 root 6477: cat >conftest.$ac_ext <<_ACEOF
6478: /* confdefs.h. */
6479: _ACEOF
6480: cat confdefs.h >>conftest.$ac_ext
6481: cat >>conftest.$ac_ext <<_ACEOF
6482: /* end confdefs.h. */
6483: #include <$ac_header>
6484: _ACEOF
1.1.1.22! root 6485: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 6486: case "(($ac_try" in
! 6487: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6488: *) ac_try_echo=$ac_try;;
! 6489: esac
! 6490: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6491: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.1.19 root 6492: ac_status=$?
6493: grep -v '^ *+' conftest.er1 >conftest.err
6494: rm -f conftest.er1
6495: cat conftest.err >&5
6496: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 6497: (exit $ac_status); } >/dev/null && {
! 6498: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 6499: test ! -s conftest.err
! 6500: }; then
1.1.1.19 root 6501: ac_header_preproc=yes
1.1.1.6 root 6502: else
1.1.1.19 root 6503: echo "$as_me: failed program was:" >&5
6504: sed 's/^/| /' conftest.$ac_ext >&5
6505:
6506: ac_header_preproc=no
1.1.1.6 root 6507: fi
1.1.1.22! root 6508:
1.1.1.19 root 6509: rm -f conftest.err conftest.$ac_ext
1.1.1.22! root 6510: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 6511: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1 root 6512:
1.1.1.19 root 6513: # So? What about this header?
6514: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6515: yes:no: )
6516: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6517: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6518: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6519: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6520: ac_header_preproc=yes
6521: ;;
6522: no:yes:* )
6523: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6524: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6525: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6526: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6527: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6528: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6529: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6530: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6531: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6532: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6533: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6534: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.1.1.22! root 6535:
1.1.1.19 root 6536: ;;
6537: esac
1.1.1.22! root 6538: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 6539: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 6540: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 6541: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 root 6542: else
1.1.1.19 root 6543: eval "$as_ac_Header=\$ac_header_preproc"
1.1.1.8 root 6544: fi
1.1.1.22! root 6545: ac_res=`eval echo '${'$as_ac_Header'}'`
! 6546: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 6547: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 6548:
1.1.1.8 root 6549: fi
1.1.1.19 root 6550: if test `eval echo '${'$as_ac_Header'}'` = yes; then
6551: cat >>confdefs.h <<_ACEOF
6552: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6553: _ACEOF
6554:
1.1.1.8 root 6555: fi
1.1.1.19 root 6556:
1.1.1.8 root 6557: done
6558:
1.1.1.19 root 6559:
6560:
6561: for ac_header in windows.h ddraw.h
1.1.1.8 root 6562: do
1.1.1.19 root 6563: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.22! root 6564: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 6565: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 6566: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 6567: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 6568: echo $ECHO_N "(cached) $ECHO_C" >&6
6569: fi
1.1.1.22! root 6570: ac_res=`eval echo '${'$as_ac_Header'}'`
! 6571: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 6572: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 6573: else
6574: # Is the header compilable?
1.1.1.22! root 6575: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 6576: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.1.1.19 root 6577: cat >conftest.$ac_ext <<_ACEOF
6578: /* confdefs.h. */
6579: _ACEOF
6580: cat confdefs.h >>conftest.$ac_ext
6581: cat >>conftest.$ac_ext <<_ACEOF
6582: /* end confdefs.h. */
6583: $ac_includes_default
6584: #include <$ac_header>
6585: _ACEOF
6586: rm -f conftest.$ac_objext
1.1.1.22! root 6587: if { (ac_try="$ac_compile"
! 6588: case "(($ac_try" in
! 6589: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6590: *) ac_try_echo=$ac_try;;
! 6591: esac
! 6592: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6593: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 6594: ac_status=$?
6595: grep -v '^ *+' conftest.er1 >conftest.err
6596: rm -f conftest.er1
6597: cat conftest.err >&5
6598: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 6599: (exit $ac_status); } && {
! 6600: test -z "$ac_c_werror_flag" ||
! 6601: test ! -s conftest.err
! 6602: } && test -s conftest.$ac_objext; then
1.1.1.19 root 6603: ac_header_compiler=yes
6604: else
6605: echo "$as_me: failed program was:" >&5
6606: sed 's/^/| /' conftest.$ac_ext >&5
6607:
1.1.1.22! root 6608: ac_header_compiler=no
1.1.1.19 root 6609: fi
1.1.1.22! root 6610:
! 6611: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 6612: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 6613: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1.1.19 root 6614:
6615: # Is the header present?
1.1.1.22! root 6616: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 6617: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.1.1.19 root 6618: cat >conftest.$ac_ext <<_ACEOF
6619: /* confdefs.h. */
6620: _ACEOF
6621: cat confdefs.h >>conftest.$ac_ext
6622: cat >>conftest.$ac_ext <<_ACEOF
6623: /* end confdefs.h. */
6624: #include <$ac_header>
6625: _ACEOF
1.1.1.22! root 6626: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 6627: case "(($ac_try" in
! 6628: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6629: *) ac_try_echo=$ac_try;;
! 6630: esac
! 6631: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6632: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.1.19 root 6633: ac_status=$?
6634: grep -v '^ *+' conftest.er1 >conftest.err
6635: rm -f conftest.er1
6636: cat conftest.err >&5
6637: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 6638: (exit $ac_status); } >/dev/null && {
! 6639: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 6640: test ! -s conftest.err
! 6641: }; then
1.1.1.19 root 6642: ac_header_preproc=yes
1.1.1.6 root 6643: else
1.1.1.19 root 6644: echo "$as_me: failed program was:" >&5
6645: sed 's/^/| /' conftest.$ac_ext >&5
6646:
6647: ac_header_preproc=no
1.1.1.6 root 6648: fi
1.1.1.22! root 6649:
1.1.1.19 root 6650: rm -f conftest.err conftest.$ac_ext
1.1.1.22! root 6651: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 6652: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1.1.6 root 6653:
1.1.1.19 root 6654: # So? What about this header?
6655: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6656: yes:no: )
6657: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6658: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6659: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6660: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6661: ac_header_preproc=yes
6662: ;;
6663: no:yes:* )
6664: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6665: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6666: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6667: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6668: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6669: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6670: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6671: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6672: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6673: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6674: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6675: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.1.1.22! root 6676:
1.1.1.19 root 6677: ;;
6678: esac
1.1.1.22! root 6679: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 6680: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 6681: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 6682: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.6 root 6683: else
1.1.1.19 root 6684: eval "$as_ac_Header=\$ac_header_preproc"
1.1.1.6 root 6685: fi
1.1.1.22! root 6686: ac_res=`eval echo '${'$as_ac_Header'}'`
! 6687: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 6688: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 6689:
1.1.1.6 root 6690: fi
1.1.1.19 root 6691: if test `eval echo '${'$as_ac_Header'}'` = yes; then
6692: cat >>confdefs.h <<_ACEOF
6693: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6694: _ACEOF
6695:
1.1.1.6 root 6696: fi
6697:
1.1.1.19 root 6698: done
1.1.1.6 root 6699:
1.1.1.19 root 6700: if test "${ac_cv_header_be_math_h+set}" = set; then
1.1.1.22! root 6701: { echo "$as_me:$LINENO: checking for be_math.h" >&5
! 6702: echo $ECHO_N "checking for be_math.h... $ECHO_C" >&6; }
1.1.1.19 root 6703: if test "${ac_cv_header_be_math_h+set}" = set; then
6704: echo $ECHO_N "(cached) $ECHO_C" >&6
6705: fi
1.1.1.22! root 6706: { echo "$as_me:$LINENO: result: $ac_cv_header_be_math_h" >&5
! 6707: echo "${ECHO_T}$ac_cv_header_be_math_h" >&6; }
1.1.1.19 root 6708: else
6709: # Is the header compilable?
1.1.1.22! root 6710: { echo "$as_me:$LINENO: checking be_math.h usability" >&5
! 6711: echo $ECHO_N "checking be_math.h usability... $ECHO_C" >&6; }
1.1.1.19 root 6712: cat >conftest.$ac_ext <<_ACEOF
6713: /* confdefs.h. */
6714: _ACEOF
6715: cat confdefs.h >>conftest.$ac_ext
6716: cat >>conftest.$ac_ext <<_ACEOF
6717: /* end confdefs.h. */
6718: $ac_includes_default
6719: #include <be_math.h>
6720: _ACEOF
6721: rm -f conftest.$ac_objext
1.1.1.22! root 6722: if { (ac_try="$ac_compile"
! 6723: case "(($ac_try" in
! 6724: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6725: *) ac_try_echo=$ac_try;;
! 6726: esac
! 6727: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6728: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 6729: ac_status=$?
6730: grep -v '^ *+' conftest.er1 >conftest.err
6731: rm -f conftest.er1
6732: cat conftest.err >&5
6733: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 6734: (exit $ac_status); } && {
! 6735: test -z "$ac_c_werror_flag" ||
! 6736: test ! -s conftest.err
! 6737: } && test -s conftest.$ac_objext; then
1.1.1.19 root 6738: ac_header_compiler=yes
6739: else
6740: echo "$as_me: failed program was:" >&5
6741: sed 's/^/| /' conftest.$ac_ext >&5
6742:
1.1.1.22! root 6743: ac_header_compiler=no
1.1.1.19 root 6744: fi
1.1.1.22! root 6745:
! 6746: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 6747: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 6748: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1.1.19 root 6749:
6750: # Is the header present?
1.1.1.22! root 6751: { echo "$as_me:$LINENO: checking be_math.h presence" >&5
! 6752: echo $ECHO_N "checking be_math.h presence... $ECHO_C" >&6; }
1.1.1.19 root 6753: cat >conftest.$ac_ext <<_ACEOF
6754: /* confdefs.h. */
6755: _ACEOF
6756: cat confdefs.h >>conftest.$ac_ext
6757: cat >>conftest.$ac_ext <<_ACEOF
6758: /* end confdefs.h. */
6759: #include <be_math.h>
6760: _ACEOF
1.1.1.22! root 6761: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 6762: case "(($ac_try" in
! 6763: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6764: *) ac_try_echo=$ac_try;;
! 6765: esac
! 6766: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6767: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.1.19 root 6768: ac_status=$?
6769: grep -v '^ *+' conftest.er1 >conftest.err
6770: rm -f conftest.er1
6771: cat conftest.err >&5
6772: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 6773: (exit $ac_status); } >/dev/null && {
! 6774: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 6775: test ! -s conftest.err
! 6776: }; then
1.1.1.19 root 6777: ac_header_preproc=yes
1.1.1.6 root 6778: else
1.1.1.19 root 6779: echo "$as_me: failed program was:" >&5
6780: sed 's/^/| /' conftest.$ac_ext >&5
6781:
6782: ac_header_preproc=no
6783: fi
1.1.1.22! root 6784:
1.1.1.19 root 6785: rm -f conftest.err conftest.$ac_ext
1.1.1.22! root 6786: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 6787: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1.1.19 root 6788:
6789: # So? What about this header?
6790: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6791: yes:no: )
6792: { echo "$as_me:$LINENO: WARNING: be_math.h: accepted by the compiler, rejected by the preprocessor!" >&5
6793: echo "$as_me: WARNING: be_math.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6794: { echo "$as_me:$LINENO: WARNING: be_math.h: proceeding with the compiler's result" >&5
6795: echo "$as_me: WARNING: be_math.h: proceeding with the compiler's result" >&2;}
6796: ac_header_preproc=yes
6797: ;;
6798: no:yes:* )
6799: { echo "$as_me:$LINENO: WARNING: be_math.h: present but cannot be compiled" >&5
6800: echo "$as_me: WARNING: be_math.h: present but cannot be compiled" >&2;}
6801: { echo "$as_me:$LINENO: WARNING: be_math.h: check for missing prerequisite headers?" >&5
6802: echo "$as_me: WARNING: be_math.h: check for missing prerequisite headers?" >&2;}
6803: { echo "$as_me:$LINENO: WARNING: be_math.h: see the Autoconf documentation" >&5
6804: echo "$as_me: WARNING: be_math.h: see the Autoconf documentation" >&2;}
6805: { echo "$as_me:$LINENO: WARNING: be_math.h: section \"Present But Cannot Be Compiled\"" >&5
6806: echo "$as_me: WARNING: be_math.h: section \"Present But Cannot Be Compiled\"" >&2;}
6807: { echo "$as_me:$LINENO: WARNING: be_math.h: proceeding with the preprocessor's result" >&5
6808: echo "$as_me: WARNING: be_math.h: proceeding with the preprocessor's result" >&2;}
6809: { echo "$as_me:$LINENO: WARNING: be_math.h: in the future, the compiler will take precedence" >&5
6810: echo "$as_me: WARNING: be_math.h: in the future, the compiler will take precedence" >&2;}
1.1.1.22! root 6811:
1.1.1.19 root 6812: ;;
6813: esac
1.1.1.22! root 6814: { echo "$as_me:$LINENO: checking for be_math.h" >&5
! 6815: echo $ECHO_N "checking for be_math.h... $ECHO_C" >&6; }
1.1.1.19 root 6816: if test "${ac_cv_header_be_math_h+set}" = set; then
6817: echo $ECHO_N "(cached) $ECHO_C" >&6
6818: else
6819: ac_cv_header_be_math_h=$ac_header_preproc
6820: fi
1.1.1.22! root 6821: { echo "$as_me:$LINENO: result: $ac_cv_header_be_math_h" >&5
! 6822: echo "${ECHO_T}$ac_cv_header_be_math_h" >&6; }
1.1.1.19 root 6823:
6824: fi
6825: if test $ac_cv_header_be_math_h = yes; then
6826: HAVE_BEOS=yes
6827: else
6828: HAVE_BEOS=no
6829: fi
6830:
6831:
6832:
6833: for ac_header in machine/joystick.h
6834: do
6835: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.22! root 6836: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 6837: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 6838: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 6839: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 6840: echo $ECHO_N "(cached) $ECHO_C" >&6
6841: fi
1.1.1.22! root 6842: ac_res=`eval echo '${'$as_ac_Header'}'`
! 6843: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 6844: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 6845: else
6846: # Is the header compilable?
1.1.1.22! root 6847: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 6848: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.1.1.19 root 6849: cat >conftest.$ac_ext <<_ACEOF
6850: /* confdefs.h. */
6851: _ACEOF
6852: cat confdefs.h >>conftest.$ac_ext
6853: cat >>conftest.$ac_ext <<_ACEOF
6854: /* end confdefs.h. */
6855: $ac_includes_default
6856: #include <$ac_header>
6857: _ACEOF
6858: rm -f conftest.$ac_objext
1.1.1.22! root 6859: if { (ac_try="$ac_compile"
! 6860: case "(($ac_try" in
! 6861: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6862: *) ac_try_echo=$ac_try;;
! 6863: esac
! 6864: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6865: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 6866: ac_status=$?
6867: grep -v '^ *+' conftest.er1 >conftest.err
6868: rm -f conftest.er1
6869: cat conftest.err >&5
6870: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 6871: (exit $ac_status); } && {
! 6872: test -z "$ac_c_werror_flag" ||
! 6873: test ! -s conftest.err
! 6874: } && test -s conftest.$ac_objext; then
1.1.1.19 root 6875: ac_header_compiler=yes
6876: else
6877: echo "$as_me: failed program was:" >&5
6878: sed 's/^/| /' conftest.$ac_ext >&5
6879:
1.1.1.22! root 6880: ac_header_compiler=no
1.1.1.19 root 6881: fi
1.1.1.22! root 6882:
! 6883: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 6884: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 6885: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1.1.19 root 6886:
6887: # Is the header present?
1.1.1.22! root 6888: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 6889: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.1.1.19 root 6890: cat >conftest.$ac_ext <<_ACEOF
6891: /* confdefs.h. */
6892: _ACEOF
6893: cat confdefs.h >>conftest.$ac_ext
6894: cat >>conftest.$ac_ext <<_ACEOF
6895: /* end confdefs.h. */
6896: #include <$ac_header>
6897: _ACEOF
1.1.1.22! root 6898: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 6899: case "(($ac_try" in
! 6900: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6901: *) ac_try_echo=$ac_try;;
! 6902: esac
! 6903: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6904: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.1.19 root 6905: ac_status=$?
6906: grep -v '^ *+' conftest.er1 >conftest.err
6907: rm -f conftest.er1
6908: cat conftest.err >&5
6909: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 6910: (exit $ac_status); } >/dev/null && {
! 6911: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 6912: test ! -s conftest.err
! 6913: }; then
1.1.1.19 root 6914: ac_header_preproc=yes
6915: else
6916: echo "$as_me: failed program was:" >&5
6917: sed 's/^/| /' conftest.$ac_ext >&5
6918:
6919: ac_header_preproc=no
6920: fi
1.1.1.22! root 6921:
1.1.1.19 root 6922: rm -f conftest.err conftest.$ac_ext
1.1.1.22! root 6923: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 6924: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1.1.19 root 6925:
6926: # So? What about this header?
6927: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6928: yes:no: )
6929: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6930: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6931: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6932: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6933: ac_header_preproc=yes
6934: ;;
6935: no:yes:* )
6936: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6937: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6938: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6939: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6940: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6941: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6942: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6943: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6944: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6945: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6946: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6947: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.1.1.22! root 6948:
1.1.1.19 root 6949: ;;
6950: esac
1.1.1.22! root 6951: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 6952: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 6953: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 6954: echo $ECHO_N "(cached) $ECHO_C" >&6
6955: else
6956: eval "$as_ac_Header=\$ac_header_preproc"
6957: fi
1.1.1.22! root 6958: ac_res=`eval echo '${'$as_ac_Header'}'`
! 6959: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 6960: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 6961:
6962: fi
6963: if test `eval echo '${'$as_ac_Header'}'` = yes; then
6964: cat >>confdefs.h <<_ACEOF
6965: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6966: _ACEOF
6967:
6968: fi
6969:
6970: done
6971:
6972:
6973: for ac_header in devices/ahi.h
6974: do
6975: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.22! root 6976: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 6977: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 6978: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 6979: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 6980: echo $ECHO_N "(cached) $ECHO_C" >&6
6981: fi
1.1.1.22! root 6982: ac_res=`eval echo '${'$as_ac_Header'}'`
! 6983: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 6984: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 6985: else
6986: # Is the header compilable?
1.1.1.22! root 6987: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 6988: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.1.1.19 root 6989: cat >conftest.$ac_ext <<_ACEOF
6990: /* confdefs.h. */
6991: _ACEOF
6992: cat confdefs.h >>conftest.$ac_ext
6993: cat >>conftest.$ac_ext <<_ACEOF
6994: /* end confdefs.h. */
6995: $ac_includes_default
6996: #include <$ac_header>
6997: _ACEOF
6998: rm -f conftest.$ac_objext
1.1.1.22! root 6999: if { (ac_try="$ac_compile"
! 7000: case "(($ac_try" in
! 7001: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7002: *) ac_try_echo=$ac_try;;
! 7003: esac
! 7004: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7005: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 7006: ac_status=$?
7007: grep -v '^ *+' conftest.er1 >conftest.err
7008: rm -f conftest.er1
7009: cat conftest.err >&5
7010: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 7011: (exit $ac_status); } && {
! 7012: test -z "$ac_c_werror_flag" ||
! 7013: test ! -s conftest.err
! 7014: } && test -s conftest.$ac_objext; then
1.1.1.19 root 7015: ac_header_compiler=yes
7016: else
7017: echo "$as_me: failed program was:" >&5
7018: sed 's/^/| /' conftest.$ac_ext >&5
7019:
1.1.1.22! root 7020: ac_header_compiler=no
1.1.1.19 root 7021: fi
1.1.1.22! root 7022:
! 7023: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 7024: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 7025: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1.1.19 root 7026:
7027: # Is the header present?
1.1.1.22! root 7028: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 7029: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.1.1.19 root 7030: cat >conftest.$ac_ext <<_ACEOF
7031: /* confdefs.h. */
7032: _ACEOF
7033: cat confdefs.h >>conftest.$ac_ext
7034: cat >>conftest.$ac_ext <<_ACEOF
7035: /* end confdefs.h. */
7036: #include <$ac_header>
7037: _ACEOF
1.1.1.22! root 7038: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 7039: case "(($ac_try" in
! 7040: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7041: *) ac_try_echo=$ac_try;;
! 7042: esac
! 7043: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7044: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.1.19 root 7045: ac_status=$?
7046: grep -v '^ *+' conftest.er1 >conftest.err
7047: rm -f conftest.er1
7048: cat conftest.err >&5
7049: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 7050: (exit $ac_status); } >/dev/null && {
! 7051: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 7052: test ! -s conftest.err
! 7053: }; then
1.1.1.19 root 7054: ac_header_preproc=yes
7055: else
7056: echo "$as_me: failed program was:" >&5
7057: sed 's/^/| /' conftest.$ac_ext >&5
7058:
7059: ac_header_preproc=no
7060: fi
1.1.1.22! root 7061:
1.1.1.19 root 7062: rm -f conftest.err conftest.$ac_ext
1.1.1.22! root 7063: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 7064: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1.1.19 root 7065:
7066: # So? What about this header?
7067: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7068: yes:no: )
7069: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7070: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7071: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7072: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7073: ac_header_preproc=yes
7074: ;;
7075: no:yes:* )
7076: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7077: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7078: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7079: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7080: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7081: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7082: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7083: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7084: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7085: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7086: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7087: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.1.1.22! root 7088:
1.1.1.19 root 7089: ;;
7090: esac
1.1.1.22! root 7091: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 7092: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 7093: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 7094: echo $ECHO_N "(cached) $ECHO_C" >&6
7095: else
7096: eval "$as_ac_Header=\$ac_header_preproc"
7097: fi
1.1.1.22! root 7098: ac_res=`eval echo '${'$as_ac_Header'}'`
! 7099: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 7100: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 7101:
7102: fi
7103: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7104: cat >>confdefs.h <<_ACEOF
7105: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7106: _ACEOF
7107:
7108: fi
7109:
7110: done
7111:
7112:
7113: for ac_header in dmedia/audio.h
7114: do
7115: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.22! root 7116: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 7117: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 7118: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 7119: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 7120: echo $ECHO_N "(cached) $ECHO_C" >&6
7121: fi
1.1.1.22! root 7122: ac_res=`eval echo '${'$as_ac_Header'}'`
! 7123: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 7124: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 7125: else
7126: # Is the header compilable?
1.1.1.22! root 7127: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 7128: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.1.1.19 root 7129: cat >conftest.$ac_ext <<_ACEOF
7130: /* confdefs.h. */
7131: _ACEOF
7132: cat confdefs.h >>conftest.$ac_ext
7133: cat >>conftest.$ac_ext <<_ACEOF
7134: /* end confdefs.h. */
7135: $ac_includes_default
7136: #include <$ac_header>
7137: _ACEOF
7138: rm -f conftest.$ac_objext
1.1.1.22! root 7139: if { (ac_try="$ac_compile"
! 7140: case "(($ac_try" in
! 7141: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7142: *) ac_try_echo=$ac_try;;
! 7143: esac
! 7144: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7145: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 7146: ac_status=$?
7147: grep -v '^ *+' conftest.er1 >conftest.err
7148: rm -f conftest.er1
7149: cat conftest.err >&5
7150: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 7151: (exit $ac_status); } && {
! 7152: test -z "$ac_c_werror_flag" ||
! 7153: test ! -s conftest.err
! 7154: } && test -s conftest.$ac_objext; then
1.1.1.19 root 7155: ac_header_compiler=yes
7156: else
7157: echo "$as_me: failed program was:" >&5
7158: sed 's/^/| /' conftest.$ac_ext >&5
7159:
1.1.1.22! root 7160: ac_header_compiler=no
1.1.1.19 root 7161: fi
1.1.1.22! root 7162:
! 7163: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 7164: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 7165: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1.1.19 root 7166:
7167: # Is the header present?
1.1.1.22! root 7168: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 7169: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.1.1.19 root 7170: cat >conftest.$ac_ext <<_ACEOF
7171: /* confdefs.h. */
7172: _ACEOF
7173: cat confdefs.h >>conftest.$ac_ext
7174: cat >>conftest.$ac_ext <<_ACEOF
7175: /* end confdefs.h. */
7176: #include <$ac_header>
7177: _ACEOF
1.1.1.22! root 7178: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 7179: case "(($ac_try" in
! 7180: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7181: *) ac_try_echo=$ac_try;;
! 7182: esac
! 7183: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7184: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.1.19 root 7185: ac_status=$?
7186: grep -v '^ *+' conftest.er1 >conftest.err
7187: rm -f conftest.er1
7188: cat conftest.err >&5
7189: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 7190: (exit $ac_status); } >/dev/null && {
! 7191: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 7192: test ! -s conftest.err
! 7193: }; then
1.1.1.19 root 7194: ac_header_preproc=yes
7195: else
7196: echo "$as_me: failed program was:" >&5
7197: sed 's/^/| /' conftest.$ac_ext >&5
7198:
7199: ac_header_preproc=no
7200: fi
1.1.1.22! root 7201:
1.1.1.19 root 7202: rm -f conftest.err conftest.$ac_ext
1.1.1.22! root 7203: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 7204: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1.1.19 root 7205:
7206: # So? What about this header?
7207: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7208: yes:no: )
7209: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7210: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7211: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7212: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7213: ac_header_preproc=yes
7214: ;;
7215: no:yes:* )
7216: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7217: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7218: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7219: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7220: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7221: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7222: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7223: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7224: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7225: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7226: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7227: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.1.1.22! root 7228:
1.1.1.19 root 7229: ;;
7230: esac
1.1.1.22! root 7231: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 7232: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 7233: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 7234: echo $ECHO_N "(cached) $ECHO_C" >&6
7235: else
7236: eval "$as_ac_Header=\$ac_header_preproc"
7237: fi
1.1.1.22! root 7238: ac_res=`eval echo '${'$as_ac_Header'}'`
! 7239: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 7240: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 7241:
7242: fi
7243: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7244: cat >>confdefs.h <<_ACEOF
7245: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7246: _ACEOF
7247:
7248: fi
7249:
7250: done
7251:
7252:
7253:
7254: for ac_header in libraries/cybergraphics.h cybergraphx/cybergraphics.h
7255: do
7256: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.22! root 7257: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 7258: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 7259: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 7260: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 7261: echo $ECHO_N "(cached) $ECHO_C" >&6
7262: fi
1.1.1.22! root 7263: ac_res=`eval echo '${'$as_ac_Header'}'`
! 7264: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 7265: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 7266: else
7267: # Is the header compilable?
1.1.1.22! root 7268: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 7269: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.1.1.19 root 7270: cat >conftest.$ac_ext <<_ACEOF
7271: /* confdefs.h. */
7272: _ACEOF
7273: cat confdefs.h >>conftest.$ac_ext
7274: cat >>conftest.$ac_ext <<_ACEOF
7275: /* end confdefs.h. */
7276: $ac_includes_default
7277: #include <$ac_header>
7278: _ACEOF
7279: rm -f conftest.$ac_objext
1.1.1.22! root 7280: if { (ac_try="$ac_compile"
! 7281: case "(($ac_try" in
! 7282: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7283: *) ac_try_echo=$ac_try;;
! 7284: esac
! 7285: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7286: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 7287: ac_status=$?
7288: grep -v '^ *+' conftest.er1 >conftest.err
7289: rm -f conftest.er1
7290: cat conftest.err >&5
7291: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 7292: (exit $ac_status); } && {
! 7293: test -z "$ac_c_werror_flag" ||
! 7294: test ! -s conftest.err
! 7295: } && test -s conftest.$ac_objext; then
1.1.1.19 root 7296: ac_header_compiler=yes
7297: else
7298: echo "$as_me: failed program was:" >&5
7299: sed 's/^/| /' conftest.$ac_ext >&5
7300:
1.1.1.22! root 7301: ac_header_compiler=no
1.1.1.19 root 7302: fi
1.1.1.22! root 7303:
! 7304: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 7305: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 7306: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1.1.19 root 7307:
7308: # Is the header present?
1.1.1.22! root 7309: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 7310: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.1.1.19 root 7311: cat >conftest.$ac_ext <<_ACEOF
7312: /* confdefs.h. */
7313: _ACEOF
7314: cat confdefs.h >>conftest.$ac_ext
7315: cat >>conftest.$ac_ext <<_ACEOF
7316: /* end confdefs.h. */
7317: #include <$ac_header>
7318: _ACEOF
1.1.1.22! root 7319: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 7320: case "(($ac_try" in
! 7321: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7322: *) ac_try_echo=$ac_try;;
! 7323: esac
! 7324: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7325: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.1.19 root 7326: ac_status=$?
7327: grep -v '^ *+' conftest.er1 >conftest.err
7328: rm -f conftest.er1
7329: cat conftest.err >&5
7330: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 7331: (exit $ac_status); } >/dev/null && {
! 7332: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 7333: test ! -s conftest.err
! 7334: }; then
1.1.1.19 root 7335: ac_header_preproc=yes
7336: else
7337: echo "$as_me: failed program was:" >&5
7338: sed 's/^/| /' conftest.$ac_ext >&5
7339:
7340: ac_header_preproc=no
7341: fi
1.1.1.22! root 7342:
1.1.1.19 root 7343: rm -f conftest.err conftest.$ac_ext
1.1.1.22! root 7344: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 7345: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1.1.19 root 7346:
7347: # So? What about this header?
7348: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7349: yes:no: )
7350: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7351: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7352: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7353: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7354: ac_header_preproc=yes
7355: ;;
7356: no:yes:* )
7357: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7358: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7359: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7360: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7361: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7362: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7363: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7364: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7365: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7366: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7367: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7368: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.1.1.22! root 7369:
1.1.1.19 root 7370: ;;
7371: esac
1.1.1.22! root 7372: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 7373: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 7374: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 7375: echo $ECHO_N "(cached) $ECHO_C" >&6
7376: else
7377: eval "$as_ac_Header=\$ac_header_preproc"
7378: fi
1.1.1.22! root 7379: ac_res=`eval echo '${'$as_ac_Header'}'`
! 7380: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 7381: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 7382:
7383: fi
7384: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7385: cat >>confdefs.h <<_ACEOF
7386: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7387: _ACEOF
7388:
7389: fi
7390:
7391: done
7392:
7393:
1.1.1.22! root 7394: { echo "$as_me:$LINENO: checking for char" >&5
! 7395: echo $ECHO_N "checking for char... $ECHO_C" >&6; }
1.1.1.19 root 7396: if test "${ac_cv_type_char+set}" = set; then
7397: echo $ECHO_N "(cached) $ECHO_C" >&6
7398: else
7399: cat >conftest.$ac_ext <<_ACEOF
7400: /* confdefs.h. */
7401: _ACEOF
7402: cat confdefs.h >>conftest.$ac_ext
7403: cat >>conftest.$ac_ext <<_ACEOF
7404: /* end confdefs.h. */
7405: $ac_includes_default
1.1.1.22! root 7406: typedef char ac__type_new_;
1.1.1.19 root 7407: int
7408: main ()
7409: {
1.1.1.22! root 7410: if ((ac__type_new_ *) 0)
1.1.1.19 root 7411: return 0;
1.1.1.22! root 7412: if (sizeof (ac__type_new_))
1.1.1.19 root 7413: return 0;
7414: ;
7415: return 0;
7416: }
7417: _ACEOF
7418: rm -f conftest.$ac_objext
1.1.1.22! root 7419: if { (ac_try="$ac_compile"
! 7420: case "(($ac_try" in
! 7421: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7422: *) ac_try_echo=$ac_try;;
! 7423: esac
! 7424: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7425: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 7426: ac_status=$?
7427: grep -v '^ *+' conftest.er1 >conftest.err
7428: rm -f conftest.er1
7429: cat conftest.err >&5
7430: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 7431: (exit $ac_status); } && {
! 7432: test -z "$ac_c_werror_flag" ||
! 7433: test ! -s conftest.err
! 7434: } && test -s conftest.$ac_objext; then
1.1.1.19 root 7435: ac_cv_type_char=yes
7436: else
7437: echo "$as_me: failed program was:" >&5
7438: sed 's/^/| /' conftest.$ac_ext >&5
7439:
1.1.1.22! root 7440: ac_cv_type_char=no
1.1.1.19 root 7441: fi
1.1.1.22! root 7442:
! 7443: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 7444: fi
1.1.1.22! root 7445: { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
! 7446: echo "${ECHO_T}$ac_cv_type_char" >&6; }
1.1.1.19 root 7447:
1.1.1.22! root 7448: # The cast to long int works around a bug in the HP C Compiler
! 7449: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
! 7450: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
! 7451: # This bug is HP SR number 8606223364.
! 7452: { echo "$as_me:$LINENO: checking size of char" >&5
! 7453: echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
1.1.1.19 root 7454: if test "${ac_cv_sizeof_char+set}" = set; then
7455: echo $ECHO_N "(cached) $ECHO_C" >&6
7456: else
7457: if test "$cross_compiling" = yes; then
7458: # Depending upon the size, compute the lo and hi bounds.
7459: cat >conftest.$ac_ext <<_ACEOF
7460: /* confdefs.h. */
7461: _ACEOF
7462: cat confdefs.h >>conftest.$ac_ext
7463: cat >>conftest.$ac_ext <<_ACEOF
7464: /* end confdefs.h. */
7465: $ac_includes_default
1.1.1.22! root 7466: typedef char ac__type_sizeof_;
1.1.1.19 root 7467: int
7468: main ()
7469: {
1.1.1.22! root 7470: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
1.1.1.19 root 7471: test_array [0] = 0
7472:
7473: ;
7474: return 0;
7475: }
7476: _ACEOF
7477: rm -f conftest.$ac_objext
1.1.1.22! root 7478: if { (ac_try="$ac_compile"
! 7479: case "(($ac_try" in
! 7480: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7481: *) ac_try_echo=$ac_try;;
! 7482: esac
! 7483: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7484: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 7485: ac_status=$?
7486: grep -v '^ *+' conftest.er1 >conftest.err
7487: rm -f conftest.er1
7488: cat conftest.err >&5
7489: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 7490: (exit $ac_status); } && {
! 7491: test -z "$ac_c_werror_flag" ||
! 7492: test ! -s conftest.err
! 7493: } && test -s conftest.$ac_objext; then
1.1.1.19 root 7494: ac_lo=0 ac_mid=0
7495: while :; do
7496: cat >conftest.$ac_ext <<_ACEOF
7497: /* confdefs.h. */
7498: _ACEOF
7499: cat confdefs.h >>conftest.$ac_ext
7500: cat >>conftest.$ac_ext <<_ACEOF
7501: /* end confdefs.h. */
7502: $ac_includes_default
1.1.1.22! root 7503: typedef char ac__type_sizeof_;
1.1.1.19 root 7504: int
7505: main ()
7506: {
1.1.1.22! root 7507: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
1.1.1.19 root 7508: test_array [0] = 0
7509:
7510: ;
7511: return 0;
7512: }
7513: _ACEOF
7514: rm -f conftest.$ac_objext
1.1.1.22! root 7515: if { (ac_try="$ac_compile"
! 7516: case "(($ac_try" in
! 7517: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7518: *) ac_try_echo=$ac_try;;
! 7519: esac
! 7520: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7521: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 7522: ac_status=$?
7523: grep -v '^ *+' conftest.er1 >conftest.err
7524: rm -f conftest.er1
7525: cat conftest.err >&5
7526: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 7527: (exit $ac_status); } && {
! 7528: test -z "$ac_c_werror_flag" ||
! 7529: test ! -s conftest.err
! 7530: } && test -s conftest.$ac_objext; then
1.1.1.19 root 7531: ac_hi=$ac_mid; break
7532: else
7533: echo "$as_me: failed program was:" >&5
7534: sed 's/^/| /' conftest.$ac_ext >&5
7535:
1.1.1.22! root 7536: ac_lo=`expr $ac_mid + 1`
! 7537: if test $ac_lo -le $ac_mid; then
! 7538: ac_lo= ac_hi=
! 7539: break
! 7540: fi
! 7541: ac_mid=`expr 2 '*' $ac_mid + 1`
1.1.1.19 root 7542: fi
1.1.1.22! root 7543:
! 7544: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 7545: done
7546: else
7547: echo "$as_me: failed program was:" >&5
7548: sed 's/^/| /' conftest.$ac_ext >&5
7549:
1.1.1.22! root 7550: cat >conftest.$ac_ext <<_ACEOF
1.1.1.19 root 7551: /* confdefs.h. */
7552: _ACEOF
7553: cat confdefs.h >>conftest.$ac_ext
7554: cat >>conftest.$ac_ext <<_ACEOF
7555: /* end confdefs.h. */
7556: $ac_includes_default
1.1.1.22! root 7557: typedef char ac__type_sizeof_;
1.1.1.19 root 7558: int
7559: main ()
7560: {
1.1.1.22! root 7561: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
1.1.1.19 root 7562: test_array [0] = 0
7563:
7564: ;
7565: return 0;
7566: }
7567: _ACEOF
7568: rm -f conftest.$ac_objext
1.1.1.22! root 7569: if { (ac_try="$ac_compile"
! 7570: case "(($ac_try" in
! 7571: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7572: *) ac_try_echo=$ac_try;;
! 7573: esac
! 7574: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7575: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 7576: ac_status=$?
7577: grep -v '^ *+' conftest.er1 >conftest.err
7578: rm -f conftest.er1
7579: cat conftest.err >&5
7580: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 7581: (exit $ac_status); } && {
! 7582: test -z "$ac_c_werror_flag" ||
! 7583: test ! -s conftest.err
! 7584: } && test -s conftest.$ac_objext; then
1.1.1.19 root 7585: ac_hi=-1 ac_mid=-1
7586: while :; do
7587: cat >conftest.$ac_ext <<_ACEOF
7588: /* confdefs.h. */
7589: _ACEOF
7590: cat confdefs.h >>conftest.$ac_ext
7591: cat >>conftest.$ac_ext <<_ACEOF
7592: /* end confdefs.h. */
7593: $ac_includes_default
1.1.1.22! root 7594: typedef char ac__type_sizeof_;
1.1.1.19 root 7595: int
7596: main ()
7597: {
1.1.1.22! root 7598: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
1.1.1.19 root 7599: test_array [0] = 0
7600:
7601: ;
7602: return 0;
7603: }
7604: _ACEOF
7605: rm -f conftest.$ac_objext
1.1.1.22! root 7606: if { (ac_try="$ac_compile"
! 7607: case "(($ac_try" in
! 7608: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7609: *) ac_try_echo=$ac_try;;
! 7610: esac
! 7611: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7612: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 7613: ac_status=$?
7614: grep -v '^ *+' conftest.er1 >conftest.err
7615: rm -f conftest.er1
7616: cat conftest.err >&5
7617: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 7618: (exit $ac_status); } && {
! 7619: test -z "$ac_c_werror_flag" ||
! 7620: test ! -s conftest.err
! 7621: } && test -s conftest.$ac_objext; then
1.1.1.19 root 7622: ac_lo=$ac_mid; break
7623: else
7624: echo "$as_me: failed program was:" >&5
7625: sed 's/^/| /' conftest.$ac_ext >&5
7626:
1.1.1.22! root 7627: ac_hi=`expr '(' $ac_mid ')' - 1`
! 7628: if test $ac_mid -le $ac_hi; then
! 7629: ac_lo= ac_hi=
! 7630: break
! 7631: fi
! 7632: ac_mid=`expr 2 '*' $ac_mid`
1.1.1.19 root 7633: fi
1.1.1.22! root 7634:
! 7635: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 7636: done
7637: else
7638: echo "$as_me: failed program was:" >&5
7639: sed 's/^/| /' conftest.$ac_ext >&5
7640:
1.1.1.22! root 7641: ac_lo= ac_hi=
1.1.1.19 root 7642: fi
1.1.1.22! root 7643:
! 7644: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 7645: fi
1.1.1.22! root 7646:
! 7647: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 7648: # Binary search between lo and hi bounds.
7649: while test "x$ac_lo" != "x$ac_hi"; do
7650: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7651: cat >conftest.$ac_ext <<_ACEOF
7652: /* confdefs.h. */
7653: _ACEOF
7654: cat confdefs.h >>conftest.$ac_ext
7655: cat >>conftest.$ac_ext <<_ACEOF
7656: /* end confdefs.h. */
7657: $ac_includes_default
1.1.1.22! root 7658: typedef char ac__type_sizeof_;
1.1.1.19 root 7659: int
7660: main ()
7661: {
1.1.1.22! root 7662: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
1.1.1.19 root 7663: test_array [0] = 0
7664:
7665: ;
7666: return 0;
7667: }
7668: _ACEOF
7669: rm -f conftest.$ac_objext
1.1.1.22! root 7670: if { (ac_try="$ac_compile"
! 7671: case "(($ac_try" in
! 7672: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7673: *) ac_try_echo=$ac_try;;
! 7674: esac
! 7675: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7676: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 7677: ac_status=$?
7678: grep -v '^ *+' conftest.er1 >conftest.err
7679: rm -f conftest.er1
7680: cat conftest.err >&5
7681: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 7682: (exit $ac_status); } && {
! 7683: test -z "$ac_c_werror_flag" ||
! 7684: test ! -s conftest.err
! 7685: } && test -s conftest.$ac_objext; then
1.1.1.19 root 7686: ac_hi=$ac_mid
7687: else
7688: echo "$as_me: failed program was:" >&5
7689: sed 's/^/| /' conftest.$ac_ext >&5
7690:
1.1.1.22! root 7691: ac_lo=`expr '(' $ac_mid ')' + 1`
1.1.1.19 root 7692: fi
1.1.1.22! root 7693:
! 7694: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 7695: done
7696: case $ac_lo in
7697: ?*) ac_cv_sizeof_char=$ac_lo;;
1.1.1.22! root 7698: '') if test "$ac_cv_type_char" = yes; then
! 7699: { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
1.1.1.19 root 7700: See \`config.log' for more details." >&5
1.1.1.22! root 7701: echo "$as_me: error: cannot compute sizeof (char)
1.1.1.19 root 7702: See \`config.log' for more details." >&2;}
1.1.1.22! root 7703: { (exit 77); exit 77; }; }
! 7704: else
! 7705: ac_cv_sizeof_char=0
! 7706: fi ;;
1.1.1.19 root 7707: esac
7708: else
7709: cat >conftest.$ac_ext <<_ACEOF
7710: /* confdefs.h. */
7711: _ACEOF
7712: cat confdefs.h >>conftest.$ac_ext
7713: cat >>conftest.$ac_ext <<_ACEOF
7714: /* end confdefs.h. */
7715: $ac_includes_default
1.1.1.22! root 7716: typedef char ac__type_sizeof_;
! 7717: static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 7718: static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
1.1.1.6 root 7719: #include <stdio.h>
1.1.1.19 root 7720: #include <stdlib.h>
7721: int
7722: main ()
1.1.1.6 root 7723: {
1.1.1.19 root 7724:
7725: FILE *f = fopen ("conftest.val", "w");
7726: if (! f)
1.1.1.22! root 7727: return 1;
! 7728: if (((long int) (sizeof (ac__type_sizeof_))) < 0)
1.1.1.19 root 7729: {
1.1.1.22! root 7730: long int i = longval ();
! 7731: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 7732: return 1;
1.1.1.19 root 7733: fprintf (f, "%ld\n", i);
7734: }
7735: else
7736: {
1.1.1.22! root 7737: unsigned long int i = ulongval ();
! 7738: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 7739: return 1;
1.1.1.19 root 7740: fprintf (f, "%lu\n", i);
7741: }
1.1.1.22! root 7742: return ferror (f) || fclose (f) != 0;
1.1.1.19 root 7743:
7744: ;
7745: return 0;
1.1.1.6 root 7746: }
1.1.1.19 root 7747: _ACEOF
7748: rm -f conftest$ac_exeext
1.1.1.22! root 7749: if { (ac_try="$ac_link"
! 7750: case "(($ac_try" in
! 7751: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7752: *) ac_try_echo=$ac_try;;
! 7753: esac
! 7754: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7755: (eval "$ac_link") 2>&5
1.1.1.19 root 7756: ac_status=$?
7757: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.22! root 7759: { (case "(($ac_try" in
! 7760: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7761: *) ac_try_echo=$ac_try;;
! 7762: esac
! 7763: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7764: (eval "$ac_try") 2>&5
1.1.1.19 root 7765: ac_status=$?
7766: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767: (exit $ac_status); }; }; then
7768: ac_cv_sizeof_char=`cat conftest.val`
7769: else
7770: echo "$as_me: program exited with status $ac_status" >&5
7771: echo "$as_me: failed program was:" >&5
7772: sed 's/^/| /' conftest.$ac_ext >&5
7773:
7774: ( exit $ac_status )
1.1.1.22! root 7775: if test "$ac_cv_type_char" = yes; then
! 7776: { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
1.1.1.19 root 7777: See \`config.log' for more details." >&5
1.1.1.22! root 7778: echo "$as_me: error: cannot compute sizeof (char)
1.1.1.19 root 7779: See \`config.log' for more details." >&2;}
1.1.1.22! root 7780: { (exit 77); exit 77; }; }
! 7781: else
! 7782: ac_cv_sizeof_char=0
! 7783: fi
1.1.1.19 root 7784: fi
1.1.1.22! root 7785: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 7786: fi
7787: rm -f conftest.val
1.1.1.6 root 7788: fi
1.1.1.22! root 7789: { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
! 7790: echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
! 7791:
! 7792:
! 7793:
1.1.1.19 root 7794: cat >>confdefs.h <<_ACEOF
7795: #define SIZEOF_CHAR $ac_cv_sizeof_char
7796: _ACEOF
7797:
7798:
1.1.1.22! root 7799: { echo "$as_me:$LINENO: checking for short" >&5
! 7800: echo $ECHO_N "checking for short... $ECHO_C" >&6; }
1.1.1.19 root 7801: if test "${ac_cv_type_short+set}" = set; then
7802: echo $ECHO_N "(cached) $ECHO_C" >&6
7803: else
7804: cat >conftest.$ac_ext <<_ACEOF
7805: /* confdefs.h. */
7806: _ACEOF
7807: cat confdefs.h >>conftest.$ac_ext
7808: cat >>conftest.$ac_ext <<_ACEOF
7809: /* end confdefs.h. */
7810: $ac_includes_default
1.1.1.22! root 7811: typedef short ac__type_new_;
1.1.1.19 root 7812: int
7813: main ()
7814: {
1.1.1.22! root 7815: if ((ac__type_new_ *) 0)
1.1.1.19 root 7816: return 0;
1.1.1.22! root 7817: if (sizeof (ac__type_new_))
1.1.1.19 root 7818: return 0;
7819: ;
7820: return 0;
7821: }
7822: _ACEOF
7823: rm -f conftest.$ac_objext
1.1.1.22! root 7824: if { (ac_try="$ac_compile"
! 7825: case "(($ac_try" in
! 7826: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7827: *) ac_try_echo=$ac_try;;
! 7828: esac
! 7829: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7830: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 7831: ac_status=$?
7832: grep -v '^ *+' conftest.er1 >conftest.err
7833: rm -f conftest.er1
7834: cat conftest.err >&5
7835: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 7836: (exit $ac_status); } && {
! 7837: test -z "$ac_c_werror_flag" ||
! 7838: test ! -s conftest.err
! 7839: } && test -s conftest.$ac_objext; then
1.1.1.19 root 7840: ac_cv_type_short=yes
7841: else
7842: echo "$as_me: failed program was:" >&5
7843: sed 's/^/| /' conftest.$ac_ext >&5
7844:
1.1.1.22! root 7845: ac_cv_type_short=no
1.1.1.19 root 7846: fi
1.1.1.22! root 7847:
! 7848: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 7849: fi
1.1.1.22! root 7850: { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
! 7851: echo "${ECHO_T}$ac_cv_type_short" >&6; }
1.1.1.19 root 7852:
1.1.1.22! root 7853: # The cast to long int works around a bug in the HP C Compiler
! 7854: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
! 7855: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
! 7856: # This bug is HP SR number 8606223364.
! 7857: { echo "$as_me:$LINENO: checking size of short" >&5
! 7858: echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
1.1.1.19 root 7859: if test "${ac_cv_sizeof_short+set}" = set; then
7860: echo $ECHO_N "(cached) $ECHO_C" >&6
7861: else
7862: if test "$cross_compiling" = yes; then
7863: # Depending upon the size, compute the lo and hi bounds.
7864: cat >conftest.$ac_ext <<_ACEOF
7865: /* confdefs.h. */
7866: _ACEOF
7867: cat confdefs.h >>conftest.$ac_ext
7868: cat >>conftest.$ac_ext <<_ACEOF
7869: /* end confdefs.h. */
7870: $ac_includes_default
1.1.1.22! root 7871: typedef short ac__type_sizeof_;
1.1.1.19 root 7872: int
7873: main ()
7874: {
1.1.1.22! root 7875: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
1.1.1.19 root 7876: test_array [0] = 0
7877:
7878: ;
7879: return 0;
7880: }
7881: _ACEOF
7882: rm -f conftest.$ac_objext
1.1.1.22! root 7883: if { (ac_try="$ac_compile"
! 7884: case "(($ac_try" in
! 7885: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7886: *) ac_try_echo=$ac_try;;
! 7887: esac
! 7888: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7889: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 7890: ac_status=$?
7891: grep -v '^ *+' conftest.er1 >conftest.err
7892: rm -f conftest.er1
7893: cat conftest.err >&5
7894: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 7895: (exit $ac_status); } && {
! 7896: test -z "$ac_c_werror_flag" ||
! 7897: test ! -s conftest.err
! 7898: } && test -s conftest.$ac_objext; then
1.1.1.19 root 7899: ac_lo=0 ac_mid=0
7900: while :; do
7901: cat >conftest.$ac_ext <<_ACEOF
7902: /* confdefs.h. */
7903: _ACEOF
7904: cat confdefs.h >>conftest.$ac_ext
7905: cat >>conftest.$ac_ext <<_ACEOF
7906: /* end confdefs.h. */
7907: $ac_includes_default
1.1.1.22! root 7908: typedef short ac__type_sizeof_;
1.1.1.19 root 7909: int
7910: main ()
7911: {
1.1.1.22! root 7912: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
1.1.1.19 root 7913: test_array [0] = 0
1.1.1.6 root 7914:
1.1.1.19 root 7915: ;
7916: return 0;
7917: }
7918: _ACEOF
7919: rm -f conftest.$ac_objext
1.1.1.22! root 7920: if { (ac_try="$ac_compile"
! 7921: case "(($ac_try" in
! 7922: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7923: *) ac_try_echo=$ac_try;;
! 7924: esac
! 7925: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7926: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 7927: ac_status=$?
7928: grep -v '^ *+' conftest.er1 >conftest.err
7929: rm -f conftest.er1
7930: cat conftest.err >&5
7931: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 7932: (exit $ac_status); } && {
! 7933: test -z "$ac_c_werror_flag" ||
! 7934: test ! -s conftest.err
! 7935: } && test -s conftest.$ac_objext; then
1.1.1.19 root 7936: ac_hi=$ac_mid; break
7937: else
7938: echo "$as_me: failed program was:" >&5
7939: sed 's/^/| /' conftest.$ac_ext >&5
7940:
1.1.1.22! root 7941: ac_lo=`expr $ac_mid + 1`
! 7942: if test $ac_lo -le $ac_mid; then
! 7943: ac_lo= ac_hi=
! 7944: break
! 7945: fi
! 7946: ac_mid=`expr 2 '*' $ac_mid + 1`
1.1.1.6 root 7947: fi
1.1.1.22! root 7948:
! 7949: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 7950: done
7951: else
7952: echo "$as_me: failed program was:" >&5
7953: sed 's/^/| /' conftest.$ac_ext >&5
1.1.1.6 root 7954:
1.1.1.22! root 7955: cat >conftest.$ac_ext <<_ACEOF
1.1.1.19 root 7956: /* confdefs.h. */
7957: _ACEOF
7958: cat confdefs.h >>conftest.$ac_ext
7959: cat >>conftest.$ac_ext <<_ACEOF
7960: /* end confdefs.h. */
7961: $ac_includes_default
1.1.1.22! root 7962: typedef short ac__type_sizeof_;
1.1.1.19 root 7963: int
7964: main ()
7965: {
1.1.1.22! root 7966: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
1.1.1.19 root 7967: test_array [0] = 0
1.1.1.6 root 7968:
1.1.1.19 root 7969: ;
7970: return 0;
7971: }
7972: _ACEOF
7973: rm -f conftest.$ac_objext
1.1.1.22! root 7974: if { (ac_try="$ac_compile"
! 7975: case "(($ac_try" in
! 7976: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 7977: *) ac_try_echo=$ac_try;;
! 7978: esac
! 7979: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 7980: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 7981: ac_status=$?
7982: grep -v '^ *+' conftest.er1 >conftest.err
7983: rm -f conftest.er1
7984: cat conftest.err >&5
7985: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 7986: (exit $ac_status); } && {
! 7987: test -z "$ac_c_werror_flag" ||
! 7988: test ! -s conftest.err
! 7989: } && test -s conftest.$ac_objext; then
1.1.1.19 root 7990: ac_hi=-1 ac_mid=-1
7991: while :; do
7992: cat >conftest.$ac_ext <<_ACEOF
7993: /* confdefs.h. */
7994: _ACEOF
7995: cat confdefs.h >>conftest.$ac_ext
7996: cat >>conftest.$ac_ext <<_ACEOF
7997: /* end confdefs.h. */
7998: $ac_includes_default
1.1.1.22! root 7999: typedef short ac__type_sizeof_;
1.1.1.19 root 8000: int
8001: main ()
8002: {
1.1.1.22! root 8003: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
1.1.1.19 root 8004: test_array [0] = 0
8005:
8006: ;
8007: return 0;
8008: }
8009: _ACEOF
8010: rm -f conftest.$ac_objext
1.1.1.22! root 8011: if { (ac_try="$ac_compile"
! 8012: case "(($ac_try" in
! 8013: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 8014: *) ac_try_echo=$ac_try;;
! 8015: esac
! 8016: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 8017: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 8018: ac_status=$?
8019: grep -v '^ *+' conftest.er1 >conftest.err
8020: rm -f conftest.er1
8021: cat conftest.err >&5
8022: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 8023: (exit $ac_status); } && {
! 8024: test -z "$ac_c_werror_flag" ||
! 8025: test ! -s conftest.err
! 8026: } && test -s conftest.$ac_objext; then
1.1.1.19 root 8027: ac_lo=$ac_mid; break
8028: else
8029: echo "$as_me: failed program was:" >&5
8030: sed 's/^/| /' conftest.$ac_ext >&5
8031:
1.1.1.22! root 8032: ac_hi=`expr '(' $ac_mid ')' - 1`
! 8033: if test $ac_mid -le $ac_hi; then
! 8034: ac_lo= ac_hi=
! 8035: break
! 8036: fi
! 8037: ac_mid=`expr 2 '*' $ac_mid`
1.1.1.19 root 8038: fi
1.1.1.22! root 8039:
! 8040: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 8041: done
1.1.1.6 root 8042: else
1.1.1.19 root 8043: echo "$as_me: failed program was:" >&5
8044: sed 's/^/| /' conftest.$ac_ext >&5
8045:
1.1.1.22! root 8046: ac_lo= ac_hi=
1.1.1.19 root 8047: fi
1.1.1.22! root 8048:
! 8049: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 8050: fi
1.1.1.22! root 8051:
! 8052: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 8053: # Binary search between lo and hi bounds.
8054: while test "x$ac_lo" != "x$ac_hi"; do
8055: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8056: cat >conftest.$ac_ext <<_ACEOF
8057: /* confdefs.h. */
8058: _ACEOF
8059: cat confdefs.h >>conftest.$ac_ext
8060: cat >>conftest.$ac_ext <<_ACEOF
8061: /* end confdefs.h. */
8062: $ac_includes_default
1.1.1.22! root 8063: typedef short ac__type_sizeof_;
1.1.1.19 root 8064: int
8065: main ()
8066: {
1.1.1.22! root 8067: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
1.1.1.19 root 8068: test_array [0] = 0
8069:
8070: ;
8071: return 0;
8072: }
8073: _ACEOF
8074: rm -f conftest.$ac_objext
1.1.1.22! root 8075: if { (ac_try="$ac_compile"
! 8076: case "(($ac_try" in
! 8077: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 8078: *) ac_try_echo=$ac_try;;
! 8079: esac
! 8080: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 8081: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 8082: ac_status=$?
8083: grep -v '^ *+' conftest.er1 >conftest.err
8084: rm -f conftest.er1
8085: cat conftest.err >&5
8086: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 8087: (exit $ac_status); } && {
! 8088: test -z "$ac_c_werror_flag" ||
! 8089: test ! -s conftest.err
! 8090: } && test -s conftest.$ac_objext; then
1.1.1.19 root 8091: ac_hi=$ac_mid
1.1.1.6 root 8092: else
1.1.1.19 root 8093: echo "$as_me: failed program was:" >&5
8094: sed 's/^/| /' conftest.$ac_ext >&5
8095:
1.1.1.22! root 8096: ac_lo=`expr '(' $ac_mid ')' + 1`
1.1.1.19 root 8097: fi
1.1.1.22! root 8098:
! 8099: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 8100: done
8101: case $ac_lo in
8102: ?*) ac_cv_sizeof_short=$ac_lo;;
1.1.1.22! root 8103: '') if test "$ac_cv_type_short" = yes; then
! 8104: { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
1.1.1.19 root 8105: See \`config.log' for more details." >&5
1.1.1.22! root 8106: echo "$as_me: error: cannot compute sizeof (short)
1.1.1.19 root 8107: See \`config.log' for more details." >&2;}
1.1.1.22! root 8108: { (exit 77); exit 77; }; }
! 8109: else
! 8110: ac_cv_sizeof_short=0
! 8111: fi ;;
1.1.1.19 root 8112: esac
8113: else
8114: cat >conftest.$ac_ext <<_ACEOF
8115: /* confdefs.h. */
8116: _ACEOF
8117: cat confdefs.h >>conftest.$ac_ext
8118: cat >>conftest.$ac_ext <<_ACEOF
8119: /* end confdefs.h. */
8120: $ac_includes_default
1.1.1.22! root 8121: typedef short ac__type_sizeof_;
! 8122: static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 8123: static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
1.1.1.6 root 8124: #include <stdio.h>
1.1.1.19 root 8125: #include <stdlib.h>
8126: int
8127: main ()
1.1.1.6 root 8128: {
1.1.1.19 root 8129:
8130: FILE *f = fopen ("conftest.val", "w");
8131: if (! f)
1.1.1.22! root 8132: return 1;
! 8133: if (((long int) (sizeof (ac__type_sizeof_))) < 0)
1.1.1.19 root 8134: {
1.1.1.22! root 8135: long int i = longval ();
! 8136: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 8137: return 1;
1.1.1.19 root 8138: fprintf (f, "%ld\n", i);
8139: }
8140: else
8141: {
1.1.1.22! root 8142: unsigned long int i = ulongval ();
! 8143: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 8144: return 1;
1.1.1.19 root 8145: fprintf (f, "%lu\n", i);
8146: }
1.1.1.22! root 8147: return ferror (f) || fclose (f) != 0;
1.1.1.19 root 8148:
8149: ;
8150: return 0;
1.1.1.6 root 8151: }
1.1.1.19 root 8152: _ACEOF
8153: rm -f conftest$ac_exeext
1.1.1.22! root 8154: if { (ac_try="$ac_link"
! 8155: case "(($ac_try" in
! 8156: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 8157: *) ac_try_echo=$ac_try;;
! 8158: esac
! 8159: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 8160: (eval "$ac_link") 2>&5
1.1.1.19 root 8161: ac_status=$?
8162: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.22! root 8164: { (case "(($ac_try" in
! 8165: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 8166: *) ac_try_echo=$ac_try;;
! 8167: esac
! 8168: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 8169: (eval "$ac_try") 2>&5
1.1.1.19 root 8170: ac_status=$?
8171: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172: (exit $ac_status); }; }; then
8173: ac_cv_sizeof_short=`cat conftest.val`
8174: else
8175: echo "$as_me: program exited with status $ac_status" >&5
8176: echo "$as_me: failed program was:" >&5
8177: sed 's/^/| /' conftest.$ac_ext >&5
8178:
8179: ( exit $ac_status )
1.1.1.22! root 8180: if test "$ac_cv_type_short" = yes; then
! 8181: { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
1.1.1.19 root 8182: See \`config.log' for more details." >&5
1.1.1.22! root 8183: echo "$as_me: error: cannot compute sizeof (short)
1.1.1.19 root 8184: See \`config.log' for more details." >&2;}
1.1.1.22! root 8185: { (exit 77); exit 77; }; }
! 8186: else
! 8187: ac_cv_sizeof_short=0
! 8188: fi
1.1.1.19 root 8189: fi
1.1.1.22! root 8190: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 8191: fi
8192: rm -f conftest.val
1.1 root 8193: fi
1.1.1.22! root 8194: { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
! 8195: echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
! 8196:
! 8197:
! 8198:
1.1.1.19 root 8199: cat >>confdefs.h <<_ACEOF
8200: #define SIZEOF_SHORT $ac_cv_sizeof_short
8201: _ACEOF
1.1.1.4 root 8202:
1.1.1.19 root 8203:
1.1.1.22! root 8204: { echo "$as_me:$LINENO: checking for int" >&5
! 8205: echo $ECHO_N "checking for int... $ECHO_C" >&6; }
1.1.1.19 root 8206: if test "${ac_cv_type_int+set}" = set; then
8207: echo $ECHO_N "(cached) $ECHO_C" >&6
8208: else
8209: cat >conftest.$ac_ext <<_ACEOF
8210: /* confdefs.h. */
8211: _ACEOF
8212: cat confdefs.h >>conftest.$ac_ext
8213: cat >>conftest.$ac_ext <<_ACEOF
8214: /* end confdefs.h. */
8215: $ac_includes_default
1.1.1.22! root 8216: typedef int ac__type_new_;
1.1.1.19 root 8217: int
8218: main ()
8219: {
1.1.1.22! root 8220: if ((ac__type_new_ *) 0)
1.1.1.19 root 8221: return 0;
1.1.1.22! root 8222: if (sizeof (ac__type_new_))
1.1.1.19 root 8223: return 0;
8224: ;
8225: return 0;
8226: }
8227: _ACEOF
8228: rm -f conftest.$ac_objext
1.1.1.22! root 8229: if { (ac_try="$ac_compile"
! 8230: case "(($ac_try" in
! 8231: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 8232: *) ac_try_echo=$ac_try;;
! 8233: esac
! 8234: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 8235: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 8236: ac_status=$?
8237: grep -v '^ *+' conftest.er1 >conftest.err
8238: rm -f conftest.er1
8239: cat conftest.err >&5
8240: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 8241: (exit $ac_status); } && {
! 8242: test -z "$ac_c_werror_flag" ||
! 8243: test ! -s conftest.err
! 8244: } && test -s conftest.$ac_objext; then
1.1.1.19 root 8245: ac_cv_type_int=yes
8246: else
8247: echo "$as_me: failed program was:" >&5
8248: sed 's/^/| /' conftest.$ac_ext >&5
8249:
1.1.1.22! root 8250: ac_cv_type_int=no
1.1.1.19 root 8251: fi
1.1.1.22! root 8252:
! 8253: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 8254: fi
1.1.1.22! root 8255: { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
! 8256: echo "${ECHO_T}$ac_cv_type_int" >&6; }
1.1.1.19 root 8257:
1.1.1.22! root 8258: # The cast to long int works around a bug in the HP C Compiler
! 8259: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
! 8260: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
! 8261: # This bug is HP SR number 8606223364.
! 8262: { echo "$as_me:$LINENO: checking size of int" >&5
! 8263: echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
1.1.1.19 root 8264: if test "${ac_cv_sizeof_int+set}" = set; then
8265: echo $ECHO_N "(cached) $ECHO_C" >&6
8266: else
8267: if test "$cross_compiling" = yes; then
8268: # Depending upon the size, compute the lo and hi bounds.
8269: cat >conftest.$ac_ext <<_ACEOF
8270: /* confdefs.h. */
8271: _ACEOF
8272: cat confdefs.h >>conftest.$ac_ext
8273: cat >>conftest.$ac_ext <<_ACEOF
8274: /* end confdefs.h. */
8275: $ac_includes_default
1.1.1.22! root 8276: typedef int ac__type_sizeof_;
1.1.1.19 root 8277: int
8278: main ()
8279: {
1.1.1.22! root 8280: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
1.1.1.19 root 8281: test_array [0] = 0
8282:
8283: ;
8284: return 0;
8285: }
8286: _ACEOF
8287: rm -f conftest.$ac_objext
1.1.1.22! root 8288: if { (ac_try="$ac_compile"
! 8289: case "(($ac_try" in
! 8290: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 8291: *) ac_try_echo=$ac_try;;
! 8292: esac
! 8293: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 8294: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 8295: ac_status=$?
8296: grep -v '^ *+' conftest.er1 >conftest.err
8297: rm -f conftest.er1
8298: cat conftest.err >&5
8299: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 8300: (exit $ac_status); } && {
! 8301: test -z "$ac_c_werror_flag" ||
! 8302: test ! -s conftest.err
! 8303: } && test -s conftest.$ac_objext; then
1.1.1.19 root 8304: ac_lo=0 ac_mid=0
8305: while :; do
8306: cat >conftest.$ac_ext <<_ACEOF
8307: /* confdefs.h. */
8308: _ACEOF
8309: cat confdefs.h >>conftest.$ac_ext
8310: cat >>conftest.$ac_ext <<_ACEOF
8311: /* end confdefs.h. */
8312: $ac_includes_default
1.1.1.22! root 8313: typedef int ac__type_sizeof_;
1.1.1.19 root 8314: int
8315: main ()
8316: {
1.1.1.22! root 8317: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
1.1.1.19 root 8318: test_array [0] = 0
8319:
8320: ;
8321: return 0;
8322: }
8323: _ACEOF
8324: rm -f conftest.$ac_objext
1.1.1.22! root 8325: if { (ac_try="$ac_compile"
! 8326: case "(($ac_try" in
! 8327: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 8328: *) ac_try_echo=$ac_try;;
! 8329: esac
! 8330: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 8331: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 8332: ac_status=$?
8333: grep -v '^ *+' conftest.er1 >conftest.err
8334: rm -f conftest.er1
8335: cat conftest.err >&5
8336: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 8337: (exit $ac_status); } && {
! 8338: test -z "$ac_c_werror_flag" ||
! 8339: test ! -s conftest.err
! 8340: } && test -s conftest.$ac_objext; then
1.1.1.19 root 8341: ac_hi=$ac_mid; break
8342: else
8343: echo "$as_me: failed program was:" >&5
8344: sed 's/^/| /' conftest.$ac_ext >&5
8345:
1.1.1.22! root 8346: ac_lo=`expr $ac_mid + 1`
! 8347: if test $ac_lo -le $ac_mid; then
! 8348: ac_lo= ac_hi=
! 8349: break
! 8350: fi
! 8351: ac_mid=`expr 2 '*' $ac_mid + 1`
1.1.1.4 root 8352: fi
1.1.1.22! root 8353:
! 8354: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 8355: done
8356: else
8357: echo "$as_me: failed program was:" >&5
8358: sed 's/^/| /' conftest.$ac_ext >&5
1.1 root 8359:
1.1.1.22! root 8360: cat >conftest.$ac_ext <<_ACEOF
1.1.1.19 root 8361: /* confdefs.h. */
8362: _ACEOF
8363: cat confdefs.h >>conftest.$ac_ext
8364: cat >>conftest.$ac_ext <<_ACEOF
8365: /* end confdefs.h. */
8366: $ac_includes_default
1.1.1.22! root 8367: typedef int ac__type_sizeof_;
1.1.1.19 root 8368: int
8369: main ()
8370: {
1.1.1.22! root 8371: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
1.1.1.19 root 8372: test_array [0] = 0
1.1 root 8373:
1.1.1.19 root 8374: ;
8375: return 0;
8376: }
8377: _ACEOF
8378: rm -f conftest.$ac_objext
1.1.1.22! root 8379: if { (ac_try="$ac_compile"
! 8380: case "(($ac_try" in
! 8381: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 8382: *) ac_try_echo=$ac_try;;
! 8383: esac
! 8384: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 8385: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 8386: ac_status=$?
8387: grep -v '^ *+' conftest.er1 >conftest.err
8388: rm -f conftest.er1
8389: cat conftest.err >&5
8390: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 8391: (exit $ac_status); } && {
! 8392: test -z "$ac_c_werror_flag" ||
! 8393: test ! -s conftest.err
! 8394: } && test -s conftest.$ac_objext; then
1.1.1.19 root 8395: ac_hi=-1 ac_mid=-1
8396: while :; do
8397: cat >conftest.$ac_ext <<_ACEOF
8398: /* confdefs.h. */
8399: _ACEOF
8400: cat confdefs.h >>conftest.$ac_ext
8401: cat >>conftest.$ac_ext <<_ACEOF
8402: /* end confdefs.h. */
8403: $ac_includes_default
1.1.1.22! root 8404: typedef int ac__type_sizeof_;
1.1.1.19 root 8405: int
8406: main ()
8407: {
1.1.1.22! root 8408: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
1.1.1.19 root 8409: test_array [0] = 0
8410:
8411: ;
8412: return 0;
8413: }
8414: _ACEOF
8415: rm -f conftest.$ac_objext
1.1.1.22! root 8416: if { (ac_try="$ac_compile"
! 8417: case "(($ac_try" in
! 8418: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 8419: *) ac_try_echo=$ac_try;;
! 8420: esac
! 8421: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 8422: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 8423: ac_status=$?
8424: grep -v '^ *+' conftest.er1 >conftest.err
8425: rm -f conftest.er1
8426: cat conftest.err >&5
8427: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 8428: (exit $ac_status); } && {
! 8429: test -z "$ac_c_werror_flag" ||
! 8430: test ! -s conftest.err
! 8431: } && test -s conftest.$ac_objext; then
1.1.1.19 root 8432: ac_lo=$ac_mid; break
8433: else
8434: echo "$as_me: failed program was:" >&5
8435: sed 's/^/| /' conftest.$ac_ext >&5
8436:
1.1.1.22! root 8437: ac_hi=`expr '(' $ac_mid ')' - 1`
! 8438: if test $ac_mid -le $ac_hi; then
! 8439: ac_lo= ac_hi=
! 8440: break
! 8441: fi
! 8442: ac_mid=`expr 2 '*' $ac_mid`
1.1.1.19 root 8443: fi
1.1.1.22! root 8444:
! 8445: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 8446: done
1.1 root 8447: else
1.1.1.19 root 8448: echo "$as_me: failed program was:" >&5
8449: sed 's/^/| /' conftest.$ac_ext >&5
8450:
1.1.1.22! root 8451: ac_lo= ac_hi=
1.1.1.19 root 8452: fi
1.1.1.22! root 8453:
! 8454: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 8455: fi
1.1.1.22! root 8456:
! 8457: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 8458: # Binary search between lo and hi bounds.
8459: while test "x$ac_lo" != "x$ac_hi"; do
8460: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8461: cat >conftest.$ac_ext <<_ACEOF
8462: /* confdefs.h. */
8463: _ACEOF
8464: cat confdefs.h >>conftest.$ac_ext
8465: cat >>conftest.$ac_ext <<_ACEOF
8466: /* end confdefs.h. */
8467: $ac_includes_default
1.1.1.22! root 8468: typedef int ac__type_sizeof_;
1.1.1.19 root 8469: int
8470: main ()
8471: {
1.1.1.22! root 8472: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
1.1.1.19 root 8473: test_array [0] = 0
8474:
8475: ;
8476: return 0;
8477: }
8478: _ACEOF
8479: rm -f conftest.$ac_objext
1.1.1.22! root 8480: if { (ac_try="$ac_compile"
! 8481: case "(($ac_try" in
! 8482: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 8483: *) ac_try_echo=$ac_try;;
! 8484: esac
! 8485: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 8486: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 8487: ac_status=$?
8488: grep -v '^ *+' conftest.er1 >conftest.err
8489: rm -f conftest.er1
8490: cat conftest.err >&5
8491: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 8492: (exit $ac_status); } && {
! 8493: test -z "$ac_c_werror_flag" ||
! 8494: test ! -s conftest.err
! 8495: } && test -s conftest.$ac_objext; then
1.1.1.19 root 8496: ac_hi=$ac_mid
1.1 root 8497: else
1.1.1.19 root 8498: echo "$as_me: failed program was:" >&5
8499: sed 's/^/| /' conftest.$ac_ext >&5
8500:
1.1.1.22! root 8501: ac_lo=`expr '(' $ac_mid ')' + 1`
1.1.1.19 root 8502: fi
1.1.1.22! root 8503:
! 8504: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 8505: done
8506: case $ac_lo in
8507: ?*) ac_cv_sizeof_int=$ac_lo;;
1.1.1.22! root 8508: '') if test "$ac_cv_type_int" = yes; then
! 8509: { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
1.1.1.19 root 8510: See \`config.log' for more details." >&5
1.1.1.22! root 8511: echo "$as_me: error: cannot compute sizeof (int)
1.1.1.19 root 8512: See \`config.log' for more details." >&2;}
1.1.1.22! root 8513: { (exit 77); exit 77; }; }
! 8514: else
! 8515: ac_cv_sizeof_int=0
! 8516: fi ;;
1.1.1.19 root 8517: esac
8518: else
8519: cat >conftest.$ac_ext <<_ACEOF
8520: /* confdefs.h. */
8521: _ACEOF
8522: cat confdefs.h >>conftest.$ac_ext
8523: cat >>conftest.$ac_ext <<_ACEOF
8524: /* end confdefs.h. */
8525: $ac_includes_default
1.1.1.22! root 8526: typedef int ac__type_sizeof_;
! 8527: static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 8528: static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
1.1 root 8529: #include <stdio.h>
1.1.1.19 root 8530: #include <stdlib.h>
8531: int
8532: main ()
1.1 root 8533: {
1.1.1.19 root 8534:
8535: FILE *f = fopen ("conftest.val", "w");
8536: if (! f)
1.1.1.22! root 8537: return 1;
! 8538: if (((long int) (sizeof (ac__type_sizeof_))) < 0)
1.1.1.19 root 8539: {
1.1.1.22! root 8540: long int i = longval ();
! 8541: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 8542: return 1;
1.1.1.19 root 8543: fprintf (f, "%ld\n", i);
8544: }
8545: else
8546: {
1.1.1.22! root 8547: unsigned long int i = ulongval ();
! 8548: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 8549: return 1;
1.1.1.19 root 8550: fprintf (f, "%lu\n", i);
8551: }
1.1.1.22! root 8552: return ferror (f) || fclose (f) != 0;
1.1.1.19 root 8553:
8554: ;
8555: return 0;
1.1 root 8556: }
1.1.1.19 root 8557: _ACEOF
8558: rm -f conftest$ac_exeext
1.1.1.22! root 8559: if { (ac_try="$ac_link"
! 8560: case "(($ac_try" in
! 8561: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 8562: *) ac_try_echo=$ac_try;;
! 8563: esac
! 8564: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 8565: (eval "$ac_link") 2>&5
1.1.1.19 root 8566: ac_status=$?
8567: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.22! root 8569: { (case "(($ac_try" in
! 8570: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 8571: *) ac_try_echo=$ac_try;;
! 8572: esac
! 8573: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 8574: (eval "$ac_try") 2>&5
1.1.1.19 root 8575: ac_status=$?
8576: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577: (exit $ac_status); }; }; then
8578: ac_cv_sizeof_int=`cat conftest.val`
8579: else
8580: echo "$as_me: program exited with status $ac_status" >&5
8581: echo "$as_me: failed program was:" >&5
8582: sed 's/^/| /' conftest.$ac_ext >&5
8583:
8584: ( exit $ac_status )
1.1.1.22! root 8585: if test "$ac_cv_type_int" = yes; then
! 8586: { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
1.1.1.19 root 8587: See \`config.log' for more details." >&5
1.1.1.22! root 8588: echo "$as_me: error: cannot compute sizeof (int)
1.1.1.19 root 8589: See \`config.log' for more details." >&2;}
1.1.1.22! root 8590: { (exit 77); exit 77; }; }
! 8591: else
! 8592: ac_cv_sizeof_int=0
! 8593: fi
1.1.1.19 root 8594: fi
1.1.1.22! root 8595: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 8596: fi
8597: rm -f conftest.val
1.1 root 8598: fi
1.1.1.22! root 8599: { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
! 8600: echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
! 8601:
! 8602:
! 8603:
1.1.1.19 root 8604: cat >>confdefs.h <<_ACEOF
8605: #define SIZEOF_INT $ac_cv_sizeof_int
8606: _ACEOF
8607:
8608:
1.1.1.22! root 8609: { echo "$as_me:$LINENO: checking for long" >&5
! 8610: echo $ECHO_N "checking for long... $ECHO_C" >&6; }
1.1.1.19 root 8611: if test "${ac_cv_type_long+set}" = set; then
8612: echo $ECHO_N "(cached) $ECHO_C" >&6
8613: else
8614: cat >conftest.$ac_ext <<_ACEOF
8615: /* confdefs.h. */
8616: _ACEOF
8617: cat confdefs.h >>conftest.$ac_ext
8618: cat >>conftest.$ac_ext <<_ACEOF
8619: /* end confdefs.h. */
8620: $ac_includes_default
1.1.1.22! root 8621: typedef long ac__type_new_;
1.1.1.19 root 8622: int
8623: main ()
8624: {
1.1.1.22! root 8625: if ((ac__type_new_ *) 0)
1.1.1.19 root 8626: return 0;
1.1.1.22! root 8627: if (sizeof (ac__type_new_))
1.1.1.19 root 8628: return 0;
8629: ;
8630: return 0;
8631: }
8632: _ACEOF
8633: rm -f conftest.$ac_objext
1.1.1.22! root 8634: if { (ac_try="$ac_compile"
! 8635: case "(($ac_try" in
! 8636: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 8637: *) ac_try_echo=$ac_try;;
! 8638: esac
! 8639: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 8640: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 8641: ac_status=$?
8642: grep -v '^ *+' conftest.er1 >conftest.err
8643: rm -f conftest.er1
8644: cat conftest.err >&5
8645: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 8646: (exit $ac_status); } && {
! 8647: test -z "$ac_c_werror_flag" ||
! 8648: test ! -s conftest.err
! 8649: } && test -s conftest.$ac_objext; then
1.1.1.19 root 8650: ac_cv_type_long=yes
8651: else
8652: echo "$as_me: failed program was:" >&5
8653: sed 's/^/| /' conftest.$ac_ext >&5
8654:
1.1.1.22! root 8655: ac_cv_type_long=no
1.1.1.19 root 8656: fi
1.1.1.22! root 8657:
! 8658: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 8659: fi
1.1.1.22! root 8660: { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
! 8661: echo "${ECHO_T}$ac_cv_type_long" >&6; }
1.1.1.19 root 8662:
1.1.1.22! root 8663: # The cast to long int works around a bug in the HP C Compiler
! 8664: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
! 8665: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
! 8666: # This bug is HP SR number 8606223364.
! 8667: { echo "$as_me:$LINENO: checking size of long" >&5
! 8668: echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
1.1.1.19 root 8669: if test "${ac_cv_sizeof_long+set}" = set; then
8670: echo $ECHO_N "(cached) $ECHO_C" >&6
8671: else
8672: if test "$cross_compiling" = yes; then
8673: # Depending upon the size, compute the lo and hi bounds.
8674: cat >conftest.$ac_ext <<_ACEOF
8675: /* confdefs.h. */
8676: _ACEOF
8677: cat confdefs.h >>conftest.$ac_ext
8678: cat >>conftest.$ac_ext <<_ACEOF
8679: /* end confdefs.h. */
8680: $ac_includes_default
1.1.1.22! root 8681: typedef long ac__type_sizeof_;
1.1.1.19 root 8682: int
8683: main ()
8684: {
1.1.1.22! root 8685: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
1.1.1.19 root 8686: test_array [0] = 0
1.1.1.4 root 8687:
1.1.1.19 root 8688: ;
8689: return 0;
8690: }
8691: _ACEOF
8692: rm -f conftest.$ac_objext
1.1.1.22! root 8693: if { (ac_try="$ac_compile"
! 8694: case "(($ac_try" in
! 8695: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 8696: *) ac_try_echo=$ac_try;;
! 8697: esac
! 8698: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 8699: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 8700: ac_status=$?
8701: grep -v '^ *+' conftest.er1 >conftest.err
8702: rm -f conftest.er1
8703: cat conftest.err >&5
8704: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 8705: (exit $ac_status); } && {
! 8706: test -z "$ac_c_werror_flag" ||
! 8707: test ! -s conftest.err
! 8708: } && test -s conftest.$ac_objext; then
1.1.1.19 root 8709: ac_lo=0 ac_mid=0
8710: while :; do
8711: cat >conftest.$ac_ext <<_ACEOF
8712: /* confdefs.h. */
8713: _ACEOF
8714: cat confdefs.h >>conftest.$ac_ext
8715: cat >>conftest.$ac_ext <<_ACEOF
8716: /* end confdefs.h. */
8717: $ac_includes_default
1.1.1.22! root 8718: typedef long ac__type_sizeof_;
1.1.1.19 root 8719: int
8720: main ()
8721: {
1.1.1.22! root 8722: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
1.1.1.19 root 8723: test_array [0] = 0
8724:
8725: ;
8726: return 0;
8727: }
8728: _ACEOF
8729: rm -f conftest.$ac_objext
1.1.1.22! root 8730: if { (ac_try="$ac_compile"
! 8731: case "(($ac_try" in
! 8732: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 8733: *) ac_try_echo=$ac_try;;
! 8734: esac
! 8735: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 8736: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 8737: ac_status=$?
8738: grep -v '^ *+' conftest.er1 >conftest.err
8739: rm -f conftest.er1
8740: cat conftest.err >&5
8741: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 8742: (exit $ac_status); } && {
! 8743: test -z "$ac_c_werror_flag" ||
! 8744: test ! -s conftest.err
! 8745: } && test -s conftest.$ac_objext; then
1.1.1.19 root 8746: ac_hi=$ac_mid; break
8747: else
8748: echo "$as_me: failed program was:" >&5
8749: sed 's/^/| /' conftest.$ac_ext >&5
8750:
1.1.1.22! root 8751: ac_lo=`expr $ac_mid + 1`
! 8752: if test $ac_lo -le $ac_mid; then
! 8753: ac_lo= ac_hi=
! 8754: break
! 8755: fi
! 8756: ac_mid=`expr 2 '*' $ac_mid + 1`
1.1.1.4 root 8757: fi
1.1.1.22! root 8758:
! 8759: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 8760: done
8761: else
8762: echo "$as_me: failed program was:" >&5
8763: sed 's/^/| /' conftest.$ac_ext >&5
1.1 root 8764:
1.1.1.22! root 8765: cat >conftest.$ac_ext <<_ACEOF
1.1.1.19 root 8766: /* confdefs.h. */
8767: _ACEOF
8768: cat confdefs.h >>conftest.$ac_ext
8769: cat >>conftest.$ac_ext <<_ACEOF
8770: /* end confdefs.h. */
8771: $ac_includes_default
1.1.1.22! root 8772: typedef long ac__type_sizeof_;
1.1.1.19 root 8773: int
8774: main ()
8775: {
1.1.1.22! root 8776: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
1.1.1.19 root 8777: test_array [0] = 0
1.1 root 8778:
1.1.1.19 root 8779: ;
8780: return 0;
8781: }
8782: _ACEOF
8783: rm -f conftest.$ac_objext
1.1.1.22! root 8784: if { (ac_try="$ac_compile"
! 8785: case "(($ac_try" in
! 8786: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 8787: *) ac_try_echo=$ac_try;;
! 8788: esac
! 8789: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 8790: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 8791: ac_status=$?
8792: grep -v '^ *+' conftest.er1 >conftest.err
8793: rm -f conftest.er1
8794: cat conftest.err >&5
8795: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 8796: (exit $ac_status); } && {
! 8797: test -z "$ac_c_werror_flag" ||
! 8798: test ! -s conftest.err
! 8799: } && test -s conftest.$ac_objext; then
1.1.1.19 root 8800: ac_hi=-1 ac_mid=-1
8801: while :; do
8802: cat >conftest.$ac_ext <<_ACEOF
8803: /* confdefs.h. */
8804: _ACEOF
8805: cat confdefs.h >>conftest.$ac_ext
8806: cat >>conftest.$ac_ext <<_ACEOF
8807: /* end confdefs.h. */
8808: $ac_includes_default
1.1.1.22! root 8809: typedef long ac__type_sizeof_;
1.1.1.19 root 8810: int
8811: main ()
8812: {
1.1.1.22! root 8813: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
1.1.1.19 root 8814: test_array [0] = 0
8815:
8816: ;
8817: return 0;
8818: }
8819: _ACEOF
8820: rm -f conftest.$ac_objext
1.1.1.22! root 8821: if { (ac_try="$ac_compile"
! 8822: case "(($ac_try" in
! 8823: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 8824: *) ac_try_echo=$ac_try;;
! 8825: esac
! 8826: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 8827: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 8828: ac_status=$?
8829: grep -v '^ *+' conftest.er1 >conftest.err
8830: rm -f conftest.er1
8831: cat conftest.err >&5
8832: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 8833: (exit $ac_status); } && {
! 8834: test -z "$ac_c_werror_flag" ||
! 8835: test ! -s conftest.err
! 8836: } && test -s conftest.$ac_objext; then
1.1.1.19 root 8837: ac_lo=$ac_mid; break
8838: else
8839: echo "$as_me: failed program was:" >&5
8840: sed 's/^/| /' conftest.$ac_ext >&5
8841:
1.1.1.22! root 8842: ac_hi=`expr '(' $ac_mid ')' - 1`
! 8843: if test $ac_mid -le $ac_hi; then
! 8844: ac_lo= ac_hi=
! 8845: break
! 8846: fi
! 8847: ac_mid=`expr 2 '*' $ac_mid`
1.1.1.19 root 8848: fi
1.1.1.22! root 8849:
! 8850: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 8851: done
1.1 root 8852: else
1.1.1.19 root 8853: echo "$as_me: failed program was:" >&5
8854: sed 's/^/| /' conftest.$ac_ext >&5
8855:
1.1.1.22! root 8856: ac_lo= ac_hi=
1.1.1.19 root 8857: fi
1.1.1.22! root 8858:
! 8859: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 8860: fi
1.1.1.22! root 8861:
! 8862: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 8863: # Binary search between lo and hi bounds.
8864: while test "x$ac_lo" != "x$ac_hi"; do
8865: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8866: cat >conftest.$ac_ext <<_ACEOF
8867: /* confdefs.h. */
8868: _ACEOF
8869: cat confdefs.h >>conftest.$ac_ext
8870: cat >>conftest.$ac_ext <<_ACEOF
8871: /* end confdefs.h. */
8872: $ac_includes_default
1.1.1.22! root 8873: typedef long ac__type_sizeof_;
1.1.1.19 root 8874: int
8875: main ()
8876: {
1.1.1.22! root 8877: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
1.1.1.19 root 8878: test_array [0] = 0
8879:
8880: ;
8881: return 0;
8882: }
8883: _ACEOF
8884: rm -f conftest.$ac_objext
1.1.1.22! root 8885: if { (ac_try="$ac_compile"
! 8886: case "(($ac_try" in
! 8887: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 8888: *) ac_try_echo=$ac_try;;
! 8889: esac
! 8890: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 8891: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 8892: ac_status=$?
8893: grep -v '^ *+' conftest.er1 >conftest.err
8894: rm -f conftest.er1
8895: cat conftest.err >&5
8896: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 8897: (exit $ac_status); } && {
! 8898: test -z "$ac_c_werror_flag" ||
! 8899: test ! -s conftest.err
! 8900: } && test -s conftest.$ac_objext; then
1.1.1.19 root 8901: ac_hi=$ac_mid
1.1 root 8902: else
1.1.1.19 root 8903: echo "$as_me: failed program was:" >&5
8904: sed 's/^/| /' conftest.$ac_ext >&5
8905:
1.1.1.22! root 8906: ac_lo=`expr '(' $ac_mid ')' + 1`
1.1.1.19 root 8907: fi
1.1.1.22! root 8908:
! 8909: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 8910: done
8911: case $ac_lo in
8912: ?*) ac_cv_sizeof_long=$ac_lo;;
1.1.1.22! root 8913: '') if test "$ac_cv_type_long" = yes; then
! 8914: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
1.1.1.19 root 8915: See \`config.log' for more details." >&5
1.1.1.22! root 8916: echo "$as_me: error: cannot compute sizeof (long)
1.1.1.19 root 8917: See \`config.log' for more details." >&2;}
1.1.1.22! root 8918: { (exit 77); exit 77; }; }
! 8919: else
! 8920: ac_cv_sizeof_long=0
! 8921: fi ;;
1.1.1.19 root 8922: esac
8923: else
8924: cat >conftest.$ac_ext <<_ACEOF
8925: /* confdefs.h. */
8926: _ACEOF
8927: cat confdefs.h >>conftest.$ac_ext
8928: cat >>conftest.$ac_ext <<_ACEOF
8929: /* end confdefs.h. */
8930: $ac_includes_default
1.1.1.22! root 8931: typedef long ac__type_sizeof_;
! 8932: static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 8933: static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
1.1 root 8934: #include <stdio.h>
1.1.1.19 root 8935: #include <stdlib.h>
8936: int
8937: main ()
1.1 root 8938: {
1.1.1.19 root 8939:
8940: FILE *f = fopen ("conftest.val", "w");
8941: if (! f)
1.1.1.22! root 8942: return 1;
! 8943: if (((long int) (sizeof (ac__type_sizeof_))) < 0)
1.1.1.19 root 8944: {
1.1.1.22! root 8945: long int i = longval ();
! 8946: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 8947: return 1;
1.1.1.19 root 8948: fprintf (f, "%ld\n", i);
8949: }
8950: else
8951: {
1.1.1.22! root 8952: unsigned long int i = ulongval ();
! 8953: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 8954: return 1;
1.1.1.19 root 8955: fprintf (f, "%lu\n", i);
8956: }
1.1.1.22! root 8957: return ferror (f) || fclose (f) != 0;
1.1.1.19 root 8958:
8959: ;
8960: return 0;
1.1 root 8961: }
1.1.1.19 root 8962: _ACEOF
8963: rm -f conftest$ac_exeext
1.1.1.22! root 8964: if { (ac_try="$ac_link"
! 8965: case "(($ac_try" in
! 8966: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 8967: *) ac_try_echo=$ac_try;;
! 8968: esac
! 8969: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 8970: (eval "$ac_link") 2>&5
1.1.1.19 root 8971: ac_status=$?
8972: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.22! root 8974: { (case "(($ac_try" in
! 8975: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 8976: *) ac_try_echo=$ac_try;;
! 8977: esac
! 8978: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 8979: (eval "$ac_try") 2>&5
1.1.1.19 root 8980: ac_status=$?
8981: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982: (exit $ac_status); }; }; then
8983: ac_cv_sizeof_long=`cat conftest.val`
8984: else
8985: echo "$as_me: program exited with status $ac_status" >&5
8986: echo "$as_me: failed program was:" >&5
8987: sed 's/^/| /' conftest.$ac_ext >&5
8988:
8989: ( exit $ac_status )
1.1.1.22! root 8990: if test "$ac_cv_type_long" = yes; then
! 8991: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
1.1.1.19 root 8992: See \`config.log' for more details." >&5
1.1.1.22! root 8993: echo "$as_me: error: cannot compute sizeof (long)
1.1.1.19 root 8994: See \`config.log' for more details." >&2;}
1.1.1.22! root 8995: { (exit 77); exit 77; }; }
! 8996: else
! 8997: ac_cv_sizeof_long=0
! 8998: fi
1.1.1.19 root 8999: fi
1.1.1.22! root 9000: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 9001: fi
9002: rm -f conftest.val
1.1 root 9003: fi
1.1.1.22! root 9004: { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
! 9005: echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
! 9006:
! 9007:
! 9008:
1.1.1.19 root 9009: cat >>confdefs.h <<_ACEOF
9010: #define SIZEOF_LONG $ac_cv_sizeof_long
9011: _ACEOF
1.1.1.4 root 9012:
1.1.1.19 root 9013:
1.1.1.22! root 9014: { echo "$as_me:$LINENO: checking for long long" >&5
! 9015: echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
1.1.1.19 root 9016: if test "${ac_cv_type_long_long+set}" = set; then
9017: echo $ECHO_N "(cached) $ECHO_C" >&6
9018: else
9019: cat >conftest.$ac_ext <<_ACEOF
9020: /* confdefs.h. */
9021: _ACEOF
9022: cat confdefs.h >>conftest.$ac_ext
9023: cat >>conftest.$ac_ext <<_ACEOF
9024: /* end confdefs.h. */
9025: $ac_includes_default
1.1.1.22! root 9026: typedef long long ac__type_new_;
1.1.1.19 root 9027: int
9028: main ()
9029: {
1.1.1.22! root 9030: if ((ac__type_new_ *) 0)
1.1.1.19 root 9031: return 0;
1.1.1.22! root 9032: if (sizeof (ac__type_new_))
1.1.1.19 root 9033: return 0;
9034: ;
9035: return 0;
9036: }
9037: _ACEOF
9038: rm -f conftest.$ac_objext
1.1.1.22! root 9039: if { (ac_try="$ac_compile"
! 9040: case "(($ac_try" in
! 9041: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 9042: *) ac_try_echo=$ac_try;;
! 9043: esac
! 9044: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 9045: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 9046: ac_status=$?
9047: grep -v '^ *+' conftest.er1 >conftest.err
9048: rm -f conftest.er1
9049: cat conftest.err >&5
9050: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 9051: (exit $ac_status); } && {
! 9052: test -z "$ac_c_werror_flag" ||
! 9053: test ! -s conftest.err
! 9054: } && test -s conftest.$ac_objext; then
1.1.1.19 root 9055: ac_cv_type_long_long=yes
9056: else
9057: echo "$as_me: failed program was:" >&5
9058: sed 's/^/| /' conftest.$ac_ext >&5
9059:
1.1.1.22! root 9060: ac_cv_type_long_long=no
1.1.1.19 root 9061: fi
1.1.1.22! root 9062:
! 9063: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 9064: fi
1.1.1.22! root 9065: { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
! 9066: echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
1.1.1.19 root 9067:
1.1.1.22! root 9068: # The cast to long int works around a bug in the HP C Compiler
! 9069: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
! 9070: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
! 9071: # This bug is HP SR number 8606223364.
! 9072: { echo "$as_me:$LINENO: checking size of long long" >&5
! 9073: echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
1.1.1.19 root 9074: if test "${ac_cv_sizeof_long_long+set}" = set; then
9075: echo $ECHO_N "(cached) $ECHO_C" >&6
9076: else
9077: if test "$cross_compiling" = yes; then
9078: # Depending upon the size, compute the lo and hi bounds.
9079: cat >conftest.$ac_ext <<_ACEOF
9080: /* confdefs.h. */
9081: _ACEOF
9082: cat confdefs.h >>conftest.$ac_ext
9083: cat >>conftest.$ac_ext <<_ACEOF
9084: /* end confdefs.h. */
9085: $ac_includes_default
1.1.1.22! root 9086: typedef long long ac__type_sizeof_;
1.1.1.19 root 9087: int
9088: main ()
9089: {
1.1.1.22! root 9090: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
1.1.1.19 root 9091: test_array [0] = 0
9092:
9093: ;
9094: return 0;
9095: }
9096: _ACEOF
9097: rm -f conftest.$ac_objext
1.1.1.22! root 9098: if { (ac_try="$ac_compile"
! 9099: case "(($ac_try" in
! 9100: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 9101: *) ac_try_echo=$ac_try;;
! 9102: esac
! 9103: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 9104: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 9105: ac_status=$?
9106: grep -v '^ *+' conftest.er1 >conftest.err
9107: rm -f conftest.er1
9108: cat conftest.err >&5
9109: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 9110: (exit $ac_status); } && {
! 9111: test -z "$ac_c_werror_flag" ||
! 9112: test ! -s conftest.err
! 9113: } && test -s conftest.$ac_objext; then
1.1.1.19 root 9114: ac_lo=0 ac_mid=0
9115: while :; do
9116: cat >conftest.$ac_ext <<_ACEOF
9117: /* confdefs.h. */
9118: _ACEOF
9119: cat confdefs.h >>conftest.$ac_ext
9120: cat >>conftest.$ac_ext <<_ACEOF
9121: /* end confdefs.h. */
9122: $ac_includes_default
1.1.1.22! root 9123: typedef long long ac__type_sizeof_;
1.1.1.19 root 9124: int
9125: main ()
9126: {
1.1.1.22! root 9127: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
1.1.1.19 root 9128: test_array [0] = 0
9129:
9130: ;
9131: return 0;
9132: }
9133: _ACEOF
9134: rm -f conftest.$ac_objext
1.1.1.22! root 9135: if { (ac_try="$ac_compile"
! 9136: case "(($ac_try" in
! 9137: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 9138: *) ac_try_echo=$ac_try;;
! 9139: esac
! 9140: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 9141: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 9142: ac_status=$?
9143: grep -v '^ *+' conftest.er1 >conftest.err
9144: rm -f conftest.er1
9145: cat conftest.err >&5
9146: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 9147: (exit $ac_status); } && {
! 9148: test -z "$ac_c_werror_flag" ||
! 9149: test ! -s conftest.err
! 9150: } && test -s conftest.$ac_objext; then
1.1.1.19 root 9151: ac_hi=$ac_mid; break
9152: else
9153: echo "$as_me: failed program was:" >&5
9154: sed 's/^/| /' conftest.$ac_ext >&5
9155:
1.1.1.22! root 9156: ac_lo=`expr $ac_mid + 1`
! 9157: if test $ac_lo -le $ac_mid; then
! 9158: ac_lo= ac_hi=
! 9159: break
! 9160: fi
! 9161: ac_mid=`expr 2 '*' $ac_mid + 1`
1.1.1.4 root 9162: fi
1.1.1.22! root 9163:
! 9164: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 9165: done
9166: else
9167: echo "$as_me: failed program was:" >&5
9168: sed 's/^/| /' conftest.$ac_ext >&5
9169:
1.1.1.22! root 9170: cat >conftest.$ac_ext <<_ACEOF
1.1.1.19 root 9171: /* confdefs.h. */
9172: _ACEOF
9173: cat confdefs.h >>conftest.$ac_ext
9174: cat >>conftest.$ac_ext <<_ACEOF
9175: /* end confdefs.h. */
9176: $ac_includes_default
1.1.1.22! root 9177: typedef long long ac__type_sizeof_;
1.1.1.19 root 9178: int
9179: main ()
9180: {
1.1.1.22! root 9181: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
1.1.1.19 root 9182: test_array [0] = 0
1.1 root 9183:
1.1.1.19 root 9184: ;
9185: return 0;
9186: }
9187: _ACEOF
9188: rm -f conftest.$ac_objext
1.1.1.22! root 9189: if { (ac_try="$ac_compile"
! 9190: case "(($ac_try" in
! 9191: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 9192: *) ac_try_echo=$ac_try;;
! 9193: esac
! 9194: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 9195: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 9196: ac_status=$?
9197: grep -v '^ *+' conftest.er1 >conftest.err
9198: rm -f conftest.er1
9199: cat conftest.err >&5
9200: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 9201: (exit $ac_status); } && {
! 9202: test -z "$ac_c_werror_flag" ||
! 9203: test ! -s conftest.err
! 9204: } && test -s conftest.$ac_objext; then
1.1.1.19 root 9205: ac_hi=-1 ac_mid=-1
9206: while :; do
9207: cat >conftest.$ac_ext <<_ACEOF
9208: /* confdefs.h. */
9209: _ACEOF
9210: cat confdefs.h >>conftest.$ac_ext
9211: cat >>conftest.$ac_ext <<_ACEOF
9212: /* end confdefs.h. */
9213: $ac_includes_default
1.1.1.22! root 9214: typedef long long ac__type_sizeof_;
1.1.1.19 root 9215: int
9216: main ()
9217: {
1.1.1.22! root 9218: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
1.1.1.19 root 9219: test_array [0] = 0
1.1 root 9220:
1.1.1.19 root 9221: ;
9222: return 0;
9223: }
9224: _ACEOF
9225: rm -f conftest.$ac_objext
1.1.1.22! root 9226: if { (ac_try="$ac_compile"
! 9227: case "(($ac_try" in
! 9228: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 9229: *) ac_try_echo=$ac_try;;
! 9230: esac
! 9231: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 9232: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 9233: ac_status=$?
9234: grep -v '^ *+' conftest.er1 >conftest.err
9235: rm -f conftest.er1
9236: cat conftest.err >&5
9237: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 9238: (exit $ac_status); } && {
! 9239: test -z "$ac_c_werror_flag" ||
! 9240: test ! -s conftest.err
! 9241: } && test -s conftest.$ac_objext; then
1.1.1.19 root 9242: ac_lo=$ac_mid; break
9243: else
9244: echo "$as_me: failed program was:" >&5
9245: sed 's/^/| /' conftest.$ac_ext >&5
9246:
1.1.1.22! root 9247: ac_hi=`expr '(' $ac_mid ')' - 1`
! 9248: if test $ac_mid -le $ac_hi; then
! 9249: ac_lo= ac_hi=
! 9250: break
! 9251: fi
! 9252: ac_mid=`expr 2 '*' $ac_mid`
1.1.1.19 root 9253: fi
1.1.1.22! root 9254:
! 9255: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 9256: done
1.1 root 9257: else
1.1.1.19 root 9258: echo "$as_me: failed program was:" >&5
9259: sed 's/^/| /' conftest.$ac_ext >&5
9260:
1.1.1.22! root 9261: ac_lo= ac_hi=
1.1.1.19 root 9262: fi
1.1.1.22! root 9263:
! 9264: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 9265: fi
1.1.1.22! root 9266:
! 9267: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 9268: # Binary search between lo and hi bounds.
9269: while test "x$ac_lo" != "x$ac_hi"; do
9270: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9271: cat >conftest.$ac_ext <<_ACEOF
9272: /* confdefs.h. */
9273: _ACEOF
9274: cat confdefs.h >>conftest.$ac_ext
9275: cat >>conftest.$ac_ext <<_ACEOF
9276: /* end confdefs.h. */
9277: $ac_includes_default
1.1.1.22! root 9278: typedef long long ac__type_sizeof_;
1.1.1.19 root 9279: int
9280: main ()
9281: {
1.1.1.22! root 9282: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
1.1.1.19 root 9283: test_array [0] = 0
9284:
9285: ;
9286: return 0;
9287: }
9288: _ACEOF
9289: rm -f conftest.$ac_objext
1.1.1.22! root 9290: if { (ac_try="$ac_compile"
! 9291: case "(($ac_try" in
! 9292: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 9293: *) ac_try_echo=$ac_try;;
! 9294: esac
! 9295: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 9296: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 9297: ac_status=$?
9298: grep -v '^ *+' conftest.er1 >conftest.err
9299: rm -f conftest.er1
9300: cat conftest.err >&5
9301: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 9302: (exit $ac_status); } && {
! 9303: test -z "$ac_c_werror_flag" ||
! 9304: test ! -s conftest.err
! 9305: } && test -s conftest.$ac_objext; then
1.1.1.19 root 9306: ac_hi=$ac_mid
1.1 root 9307: else
1.1.1.19 root 9308: echo "$as_me: failed program was:" >&5
9309: sed 's/^/| /' conftest.$ac_ext >&5
9310:
1.1.1.22! root 9311: ac_lo=`expr '(' $ac_mid ')' + 1`
1.1.1.19 root 9312: fi
1.1.1.22! root 9313:
! 9314: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 9315: done
9316: case $ac_lo in
9317: ?*) ac_cv_sizeof_long_long=$ac_lo;;
1.1.1.22! root 9318: '') if test "$ac_cv_type_long_long" = yes; then
! 9319: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
1.1.1.19 root 9320: See \`config.log' for more details." >&5
1.1.1.22! root 9321: echo "$as_me: error: cannot compute sizeof (long long)
1.1.1.19 root 9322: See \`config.log' for more details." >&2;}
1.1.1.22! root 9323: { (exit 77); exit 77; }; }
! 9324: else
! 9325: ac_cv_sizeof_long_long=0
! 9326: fi ;;
1.1.1.19 root 9327: esac
9328: else
9329: cat >conftest.$ac_ext <<_ACEOF
9330: /* confdefs.h. */
9331: _ACEOF
9332: cat confdefs.h >>conftest.$ac_ext
9333: cat >>conftest.$ac_ext <<_ACEOF
9334: /* end confdefs.h. */
9335: $ac_includes_default
1.1.1.22! root 9336: typedef long long ac__type_sizeof_;
! 9337: static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 9338: static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
1.1 root 9339: #include <stdio.h>
1.1.1.19 root 9340: #include <stdlib.h>
9341: int
9342: main ()
9343: {
9344:
9345: FILE *f = fopen ("conftest.val", "w");
9346: if (! f)
1.1.1.22! root 9347: return 1;
! 9348: if (((long int) (sizeof (ac__type_sizeof_))) < 0)
1.1.1.19 root 9349: {
1.1.1.22! root 9350: long int i = longval ();
! 9351: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 9352: return 1;
1.1.1.19 root 9353: fprintf (f, "%ld\n", i);
9354: }
9355: else
9356: {
1.1.1.22! root 9357: unsigned long int i = ulongval ();
! 9358: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 9359: return 1;
1.1.1.19 root 9360: fprintf (f, "%lu\n", i);
9361: }
1.1.1.22! root 9362: return ferror (f) || fclose (f) != 0;
1.1.1.19 root 9363:
9364: ;
9365: return 0;
9366: }
9367: _ACEOF
9368: rm -f conftest$ac_exeext
1.1.1.22! root 9369: if { (ac_try="$ac_link"
! 9370: case "(($ac_try" in
! 9371: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 9372: *) ac_try_echo=$ac_try;;
! 9373: esac
! 9374: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 9375: (eval "$ac_link") 2>&5
1.1.1.19 root 9376: ac_status=$?
9377: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.22! root 9379: { (case "(($ac_try" in
! 9380: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 9381: *) ac_try_echo=$ac_try;;
! 9382: esac
! 9383: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 9384: (eval "$ac_try") 2>&5
1.1.1.19 root 9385: ac_status=$?
9386: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387: (exit $ac_status); }; }; then
9388: ac_cv_sizeof_long_long=`cat conftest.val`
9389: else
9390: echo "$as_me: program exited with status $ac_status" >&5
9391: echo "$as_me: failed program was:" >&5
9392: sed 's/^/| /' conftest.$ac_ext >&5
9393:
9394: ( exit $ac_status )
1.1.1.22! root 9395: if test "$ac_cv_type_long_long" = yes; then
! 9396: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
1.1.1.19 root 9397: See \`config.log' for more details." >&5
1.1.1.22! root 9398: echo "$as_me: error: cannot compute sizeof (long long)
1.1.1.19 root 9399: See \`config.log' for more details." >&2;}
1.1.1.22! root 9400: { (exit 77); exit 77; }; }
! 9401: else
! 9402: ac_cv_sizeof_long_long=0
! 9403: fi
1.1.1.19 root 9404: fi
1.1.1.22! root 9405: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 9406: fi
9407: rm -f conftest.val
9408: fi
1.1.1.22! root 9409: { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
! 9410: echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
! 9411:
! 9412:
! 9413:
1.1.1.19 root 9414: cat >>confdefs.h <<_ACEOF
9415: #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9416: _ACEOF
9417:
9418:
1.1.1.22! root 9419: { echo "$as_me:$LINENO: checking for __int64" >&5
! 9420: echo $ECHO_N "checking for __int64... $ECHO_C" >&6; }
1.1.1.19 root 9421: if test "${ac_cv_type___int64+set}" = set; then
9422: echo $ECHO_N "(cached) $ECHO_C" >&6
9423: else
9424: cat >conftest.$ac_ext <<_ACEOF
9425: /* confdefs.h. */
9426: _ACEOF
9427: cat confdefs.h >>conftest.$ac_ext
9428: cat >>conftest.$ac_ext <<_ACEOF
9429: /* end confdefs.h. */
9430: $ac_includes_default
1.1.1.22! root 9431: typedef __int64 ac__type_new_;
1.1.1.19 root 9432: int
9433: main ()
9434: {
1.1.1.22! root 9435: if ((ac__type_new_ *) 0)
1.1.1.19 root 9436: return 0;
1.1.1.22! root 9437: if (sizeof (ac__type_new_))
1.1.1.19 root 9438: return 0;
9439: ;
9440: return 0;
9441: }
9442: _ACEOF
9443: rm -f conftest.$ac_objext
1.1.1.22! root 9444: if { (ac_try="$ac_compile"
! 9445: case "(($ac_try" in
! 9446: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 9447: *) ac_try_echo=$ac_try;;
! 9448: esac
! 9449: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 9450: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 9451: ac_status=$?
9452: grep -v '^ *+' conftest.er1 >conftest.err
9453: rm -f conftest.er1
9454: cat conftest.err >&5
9455: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 9456: (exit $ac_status); } && {
! 9457: test -z "$ac_c_werror_flag" ||
! 9458: test ! -s conftest.err
! 9459: } && test -s conftest.$ac_objext; then
1.1.1.19 root 9460: ac_cv_type___int64=yes
9461: else
9462: echo "$as_me: failed program was:" >&5
9463: sed 's/^/| /' conftest.$ac_ext >&5
9464:
1.1.1.22! root 9465: ac_cv_type___int64=no
1.1.1.19 root 9466: fi
1.1.1.22! root 9467:
! 9468: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 9469: fi
1.1.1.22! root 9470: { echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
! 9471: echo "${ECHO_T}$ac_cv_type___int64" >&6; }
1.1.1.19 root 9472:
1.1.1.22! root 9473: # The cast to long int works around a bug in the HP C Compiler
! 9474: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
! 9475: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
! 9476: # This bug is HP SR number 8606223364.
! 9477: { echo "$as_me:$LINENO: checking size of __int64" >&5
! 9478: echo $ECHO_N "checking size of __int64... $ECHO_C" >&6; }
1.1.1.19 root 9479: if test "${ac_cv_sizeof___int64+set}" = set; then
9480: echo $ECHO_N "(cached) $ECHO_C" >&6
9481: else
9482: if test "$cross_compiling" = yes; then
9483: # Depending upon the size, compute the lo and hi bounds.
9484: cat >conftest.$ac_ext <<_ACEOF
9485: /* confdefs.h. */
9486: _ACEOF
9487: cat confdefs.h >>conftest.$ac_ext
9488: cat >>conftest.$ac_ext <<_ACEOF
9489: /* end confdefs.h. */
9490: $ac_includes_default
1.1.1.22! root 9491: typedef __int64 ac__type_sizeof_;
1.1.1.19 root 9492: int
9493: main ()
9494: {
1.1.1.22! root 9495: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
1.1.1.19 root 9496: test_array [0] = 0
9497:
9498: ;
9499: return 0;
9500: }
9501: _ACEOF
9502: rm -f conftest.$ac_objext
1.1.1.22! root 9503: if { (ac_try="$ac_compile"
! 9504: case "(($ac_try" in
! 9505: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 9506: *) ac_try_echo=$ac_try;;
! 9507: esac
! 9508: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 9509: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 9510: ac_status=$?
9511: grep -v '^ *+' conftest.er1 >conftest.err
9512: rm -f conftest.er1
9513: cat conftest.err >&5
9514: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 9515: (exit $ac_status); } && {
! 9516: test -z "$ac_c_werror_flag" ||
! 9517: test ! -s conftest.err
! 9518: } && test -s conftest.$ac_objext; then
1.1.1.19 root 9519: ac_lo=0 ac_mid=0
9520: while :; do
9521: cat >conftest.$ac_ext <<_ACEOF
9522: /* confdefs.h. */
9523: _ACEOF
9524: cat confdefs.h >>conftest.$ac_ext
9525: cat >>conftest.$ac_ext <<_ACEOF
9526: /* end confdefs.h. */
9527: $ac_includes_default
1.1.1.22! root 9528: typedef __int64 ac__type_sizeof_;
1.1.1.19 root 9529: int
9530: main ()
9531: {
1.1.1.22! root 9532: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
1.1.1.19 root 9533: test_array [0] = 0
9534:
9535: ;
9536: return 0;
9537: }
9538: _ACEOF
9539: rm -f conftest.$ac_objext
1.1.1.22! root 9540: if { (ac_try="$ac_compile"
! 9541: case "(($ac_try" in
! 9542: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 9543: *) ac_try_echo=$ac_try;;
! 9544: esac
! 9545: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 9546: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 9547: ac_status=$?
9548: grep -v '^ *+' conftest.er1 >conftest.err
9549: rm -f conftest.er1
9550: cat conftest.err >&5
9551: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 9552: (exit $ac_status); } && {
! 9553: test -z "$ac_c_werror_flag" ||
! 9554: test ! -s conftest.err
! 9555: } && test -s conftest.$ac_objext; then
1.1.1.19 root 9556: ac_hi=$ac_mid; break
9557: else
9558: echo "$as_me: failed program was:" >&5
9559: sed 's/^/| /' conftest.$ac_ext >&5
9560:
1.1.1.22! root 9561: ac_lo=`expr $ac_mid + 1`
! 9562: if test $ac_lo -le $ac_mid; then
! 9563: ac_lo= ac_hi=
! 9564: break
! 9565: fi
! 9566: ac_mid=`expr 2 '*' $ac_mid + 1`
1.1.1.19 root 9567: fi
1.1.1.22! root 9568:
! 9569: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 9570: done
9571: else
9572: echo "$as_me: failed program was:" >&5
9573: sed 's/^/| /' conftest.$ac_ext >&5
9574:
1.1.1.22! root 9575: cat >conftest.$ac_ext <<_ACEOF
1.1.1.19 root 9576: /* confdefs.h. */
9577: _ACEOF
9578: cat confdefs.h >>conftest.$ac_ext
9579: cat >>conftest.$ac_ext <<_ACEOF
9580: /* end confdefs.h. */
9581: $ac_includes_default
1.1.1.22! root 9582: typedef __int64 ac__type_sizeof_;
1.1.1.19 root 9583: int
9584: main ()
1.1 root 9585: {
1.1.1.22! root 9586: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
1.1.1.19 root 9587: test_array [0] = 0
9588:
9589: ;
9590: return 0;
1.1 root 9591: }
1.1.1.19 root 9592: _ACEOF
9593: rm -f conftest.$ac_objext
1.1.1.22! root 9594: if { (ac_try="$ac_compile"
! 9595: case "(($ac_try" in
! 9596: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 9597: *) ac_try_echo=$ac_try;;
! 9598: esac
! 9599: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 9600: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 9601: ac_status=$?
9602: grep -v '^ *+' conftest.er1 >conftest.err
9603: rm -f conftest.er1
9604: cat conftest.err >&5
9605: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 9606: (exit $ac_status); } && {
! 9607: test -z "$ac_c_werror_flag" ||
! 9608: test ! -s conftest.err
! 9609: } && test -s conftest.$ac_objext; then
1.1.1.19 root 9610: ac_hi=-1 ac_mid=-1
9611: while :; do
9612: cat >conftest.$ac_ext <<_ACEOF
9613: /* confdefs.h. */
9614: _ACEOF
9615: cat confdefs.h >>conftest.$ac_ext
9616: cat >>conftest.$ac_ext <<_ACEOF
9617: /* end confdefs.h. */
9618: $ac_includes_default
1.1.1.22! root 9619: typedef __int64 ac__type_sizeof_;
1.1.1.19 root 9620: int
9621: main ()
9622: {
1.1.1.22! root 9623: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
1.1.1.19 root 9624: test_array [0] = 0
9625:
9626: ;
9627: return 0;
9628: }
9629: _ACEOF
9630: rm -f conftest.$ac_objext
1.1.1.22! root 9631: if { (ac_try="$ac_compile"
! 9632: case "(($ac_try" in
! 9633: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 9634: *) ac_try_echo=$ac_try;;
! 9635: esac
! 9636: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 9637: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 9638: ac_status=$?
9639: grep -v '^ *+' conftest.er1 >conftest.err
9640: rm -f conftest.er1
9641: cat conftest.err >&5
9642: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 9643: (exit $ac_status); } && {
! 9644: test -z "$ac_c_werror_flag" ||
! 9645: test ! -s conftest.err
! 9646: } && test -s conftest.$ac_objext; then
1.1.1.19 root 9647: ac_lo=$ac_mid; break
9648: else
9649: echo "$as_me: failed program was:" >&5
9650: sed 's/^/| /' conftest.$ac_ext >&5
9651:
1.1.1.22! root 9652: ac_hi=`expr '(' $ac_mid ')' - 1`
! 9653: if test $ac_mid -le $ac_hi; then
! 9654: ac_lo= ac_hi=
! 9655: break
! 9656: fi
! 9657: ac_mid=`expr 2 '*' $ac_mid`
1.1 root 9658: fi
1.1.1.22! root 9659:
! 9660: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 9661: done
9662: else
9663: echo "$as_me: failed program was:" >&5
9664: sed 's/^/| /' conftest.$ac_ext >&5
1.1.1.4 root 9665:
1.1.1.22! root 9666: ac_lo= ac_hi=
1.1.1.4 root 9667: fi
1.1.1.22! root 9668:
! 9669: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 9670: fi
1.1.1.22! root 9671:
! 9672: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 9673: # Binary search between lo and hi bounds.
9674: while test "x$ac_lo" != "x$ac_hi"; do
9675: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9676: cat >conftest.$ac_ext <<_ACEOF
9677: /* confdefs.h. */
9678: _ACEOF
9679: cat confdefs.h >>conftest.$ac_ext
9680: cat >>conftest.$ac_ext <<_ACEOF
9681: /* end confdefs.h. */
9682: $ac_includes_default
1.1.1.22! root 9683: typedef __int64 ac__type_sizeof_;
1.1.1.19 root 9684: int
9685: main ()
9686: {
1.1.1.22! root 9687: static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
1.1.1.19 root 9688: test_array [0] = 0
1.1 root 9689:
1.1.1.19 root 9690: ;
9691: return 0;
9692: }
9693: _ACEOF
9694: rm -f conftest.$ac_objext
1.1.1.22! root 9695: if { (ac_try="$ac_compile"
! 9696: case "(($ac_try" in
! 9697: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 9698: *) ac_try_echo=$ac_try;;
! 9699: esac
! 9700: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 9701: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 9702: ac_status=$?
9703: grep -v '^ *+' conftest.er1 >conftest.err
9704: rm -f conftest.er1
9705: cat conftest.err >&5
9706: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 9707: (exit $ac_status); } && {
! 9708: test -z "$ac_c_werror_flag" ||
! 9709: test ! -s conftest.err
! 9710: } && test -s conftest.$ac_objext; then
1.1.1.19 root 9711: ac_hi=$ac_mid
9712: else
9713: echo "$as_me: failed program was:" >&5
9714: sed 's/^/| /' conftest.$ac_ext >&5
1.1 root 9715:
1.1.1.22! root 9716: ac_lo=`expr '(' $ac_mid ')' + 1`
1.1.1.19 root 9717: fi
1.1.1.22! root 9718:
! 9719: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 9720: done
9721: case $ac_lo in
9722: ?*) ac_cv_sizeof___int64=$ac_lo;;
1.1.1.22! root 9723: '') if test "$ac_cv_type___int64" = yes; then
! 9724: { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64)
1.1.1.19 root 9725: See \`config.log' for more details." >&5
1.1.1.22! root 9726: echo "$as_me: error: cannot compute sizeof (__int64)
1.1.1.19 root 9727: See \`config.log' for more details." >&2;}
1.1.1.22! root 9728: { (exit 77); exit 77; }; }
! 9729: else
! 9730: ac_cv_sizeof___int64=0
! 9731: fi ;;
1.1.1.19 root 9732: esac
1.1.1.6 root 9733: else
1.1.1.19 root 9734: cat >conftest.$ac_ext <<_ACEOF
9735: /* confdefs.h. */
9736: _ACEOF
9737: cat confdefs.h >>conftest.$ac_ext
9738: cat >>conftest.$ac_ext <<_ACEOF
9739: /* end confdefs.h. */
9740: $ac_includes_default
1.1.1.22! root 9741: typedef __int64 ac__type_sizeof_;
! 9742: static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
! 9743: static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
1.1.1.6 root 9744: #include <stdio.h>
1.1.1.19 root 9745: #include <stdlib.h>
9746: int
9747: main ()
1.1.1.6 root 9748: {
1.1.1.19 root 9749:
9750: FILE *f = fopen ("conftest.val", "w");
9751: if (! f)
1.1.1.22! root 9752: return 1;
! 9753: if (((long int) (sizeof (ac__type_sizeof_))) < 0)
1.1.1.19 root 9754: {
1.1.1.22! root 9755: long int i = longval ();
! 9756: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 9757: return 1;
1.1.1.19 root 9758: fprintf (f, "%ld\n", i);
9759: }
9760: else
9761: {
1.1.1.22! root 9762: unsigned long int i = ulongval ();
! 9763: if (i != ((long int) (sizeof (ac__type_sizeof_))))
! 9764: return 1;
1.1.1.19 root 9765: fprintf (f, "%lu\n", i);
9766: }
1.1.1.22! root 9767: return ferror (f) || fclose (f) != 0;
1.1.1.19 root 9768:
9769: ;
9770: return 0;
1.1.1.6 root 9771: }
1.1.1.19 root 9772: _ACEOF
9773: rm -f conftest$ac_exeext
1.1.1.22! root 9774: if { (ac_try="$ac_link"
! 9775: case "(($ac_try" in
! 9776: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 9777: *) ac_try_echo=$ac_try;;
! 9778: esac
! 9779: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 9780: (eval "$ac_link") 2>&5
1.1.1.19 root 9781: ac_status=$?
9782: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.22! root 9784: { (case "(($ac_try" in
! 9785: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 9786: *) ac_try_echo=$ac_try;;
! 9787: esac
! 9788: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 9789: (eval "$ac_try") 2>&5
1.1.1.19 root 9790: ac_status=$?
9791: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792: (exit $ac_status); }; }; then
9793: ac_cv_sizeof___int64=`cat conftest.val`
9794: else
9795: echo "$as_me: program exited with status $ac_status" >&5
9796: echo "$as_me: failed program was:" >&5
9797: sed 's/^/| /' conftest.$ac_ext >&5
9798:
9799: ( exit $ac_status )
1.1.1.22! root 9800: if test "$ac_cv_type___int64" = yes; then
! 9801: { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64)
1.1.1.19 root 9802: See \`config.log' for more details." >&5
1.1.1.22! root 9803: echo "$as_me: error: cannot compute sizeof (__int64)
1.1.1.19 root 9804: See \`config.log' for more details." >&2;}
1.1.1.22! root 9805: { (exit 77); exit 77; }; }
! 9806: else
! 9807: ac_cv_sizeof___int64=0
! 9808: fi
1.1.1.19 root 9809: fi
1.1.1.22! root 9810: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 9811: fi
9812: rm -f conftest.val
1.1.1.6 root 9813: fi
1.1.1.22! root 9814: { echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
! 9815: echo "${ECHO_T}$ac_cv_sizeof___int64" >&6; }
! 9816:
! 9817:
! 9818:
1.1.1.19 root 9819: cat >>confdefs.h <<_ACEOF
1.1.1.6 root 9820: #define SIZEOF___INT64 $ac_cv_sizeof___int64
1.1.1.19 root 9821: _ACEOF
1.1.1.6 root 9822:
9823:
1.1 root 9824:
1.1.1.22! root 9825: { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
! 9826: echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
1.1.1.19 root 9827: if test "${ac_cv_c_const+set}" = set; then
9828: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 root 9829: else
1.1.1.19 root 9830: cat >conftest.$ac_ext <<_ACEOF
9831: /* confdefs.h. */
9832: _ACEOF
9833: cat confdefs.h >>conftest.$ac_ext
9834: cat >>conftest.$ac_ext <<_ACEOF
9835: /* end confdefs.h. */
1.1 root 9836:
1.1.1.19 root 9837: int
9838: main ()
9839: {
9840: /* FIXME: Include the comments suggested by Paul. */
9841: #ifndef __cplusplus
9842: /* Ultrix mips cc rejects this. */
9843: typedef int charset[2];
1.1.1.22! root 9844: const charset cs;
1.1.1.19 root 9845: /* SunOS 4.1.1 cc rejects this. */
1.1.1.22! root 9846: char const *const *pcpcc;
! 9847: char **ppc;
1.1.1.19 root 9848: /* NEC SVR4.0.2 mips cc rejects this. */
9849: struct point {int x, y;};
9850: static struct point const zero = {0,0};
9851: /* AIX XL C 1.02.0.0 rejects this.
9852: It does not let you subtract one const X* pointer from another in
9853: an arm of an if-expression whose if-part is not a constant
9854: expression */
9855: const char *g = "string";
1.1.1.22! root 9856: pcpcc = &g + (g ? g-g : 0);
1.1.1.19 root 9857: /* HPUX 7.0 cc rejects these. */
1.1.1.22! root 9858: ++pcpcc;
! 9859: ppc = (char**) pcpcc;
! 9860: pcpcc = (char const *const *) ppc;
1.1.1.19 root 9861: { /* SCO 3.2v4 cc rejects this. */
9862: char *t;
9863: char const *s = 0 ? (char *) 0 : (char const *) 0;
9864:
9865: *t++ = 0;
1.1.1.22! root 9866: if (s) return 0;
1.1.1.19 root 9867: }
9868: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9869: int x[] = {25, 17};
9870: const int *foo = &x[0];
9871: ++foo;
9872: }
9873: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9874: typedef const int *iptr;
9875: iptr p = 0;
9876: ++p;
9877: }
9878: { /* AIX XL C 1.02.0.0 rejects this saying
9879: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9880: struct s { int j; const int *ap[3]; };
9881: struct s *b; b->j = 5;
9882: }
9883: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9884: const int foo = 10;
1.1.1.22! root 9885: if (!foo) return 0;
1.1.1.19 root 9886: }
1.1.1.22! root 9887: return !cs[0] && !zero.x;
1.1.1.19 root 9888: #endif
1.1 root 9889:
1.1.1.19 root 9890: ;
9891: return 0;
1.1 root 9892: }
1.1.1.19 root 9893: _ACEOF
9894: rm -f conftest.$ac_objext
1.1.1.22! root 9895: if { (ac_try="$ac_compile"
! 9896: case "(($ac_try" in
! 9897: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 9898: *) ac_try_echo=$ac_try;;
! 9899: esac
! 9900: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 9901: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 9902: ac_status=$?
9903: grep -v '^ *+' conftest.er1 >conftest.err
9904: rm -f conftest.er1
9905: cat conftest.err >&5
9906: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 9907: (exit $ac_status); } && {
! 9908: test -z "$ac_c_werror_flag" ||
! 9909: test ! -s conftest.err
! 9910: } && test -s conftest.$ac_objext; then
1.1 root 9911: ac_cv_c_const=yes
9912: else
1.1.1.19 root 9913: echo "$as_me: failed program was:" >&5
9914: sed 's/^/| /' conftest.$ac_ext >&5
9915:
1.1.1.22! root 9916: ac_cv_c_const=no
1.1 root 9917: fi
1.1.1.22! root 9918:
! 9919: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 9920: fi
1.1.1.22! root 9921: { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
! 9922: echo "${ECHO_T}$ac_cv_c_const" >&6; }
1.1 root 9923: if test $ac_cv_c_const = no; then
1.1.1.19 root 9924:
9925: cat >>confdefs.h <<\_ACEOF
9926: #define const
9927: _ACEOF
1.1 root 9928:
9929: fi
9930:
1.1.1.22! root 9931: { echo "$as_me:$LINENO: checking for inline" >&5
! 9932: echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
1.1.1.19 root 9933: if test "${ac_cv_c_inline+set}" = set; then
9934: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 root 9935: else
9936: ac_cv_c_inline=no
9937: for ac_kw in inline __inline__ __inline; do
1.1.1.19 root 9938: cat >conftest.$ac_ext <<_ACEOF
9939: /* confdefs.h. */
9940: _ACEOF
9941: cat confdefs.h >>conftest.$ac_ext
9942: cat >>conftest.$ac_ext <<_ACEOF
9943: /* end confdefs.h. */
9944: #ifndef __cplusplus
9945: typedef int foo_t;
9946: static $ac_kw foo_t static_foo () {return 0; }
9947: $ac_kw foo_t foo () {return 0; }
9948: #endif
1.1 root 9949:
1.1.1.19 root 9950: _ACEOF
9951: rm -f conftest.$ac_objext
1.1.1.22! root 9952: if { (ac_try="$ac_compile"
! 9953: case "(($ac_try" in
! 9954: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 9955: *) ac_try_echo=$ac_try;;
! 9956: esac
! 9957: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 9958: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 9959: ac_status=$?
9960: grep -v '^ *+' conftest.er1 >conftest.err
9961: rm -f conftest.er1
9962: cat conftest.err >&5
9963: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 9964: (exit $ac_status); } && {
! 9965: test -z "$ac_c_werror_flag" ||
! 9966: test ! -s conftest.err
! 9967: } && test -s conftest.$ac_objext; then
! 9968: ac_cv_c_inline=$ac_kw
1.1.1.4 root 9969: else
1.1.1.19 root 9970: echo "$as_me: failed program was:" >&5
9971: sed 's/^/| /' conftest.$ac_ext >&5
9972:
1.1.1.22! root 9973:
1.1 root 9974: fi
1.1.1.22! root 9975:
! 9976: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 9977: test "$ac_cv_c_inline" != no && break
1.1 root 9978: done
9979:
9980: fi
1.1.1.22! root 9981: { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
! 9982: echo "${ECHO_T}$ac_cv_c_inline" >&6; }
1.1 root 9983:
1.1.1.19 root 9984:
9985: case $ac_cv_c_inline in
1.1 root 9986: inline | yes) ;;
1.1.1.19 root 9987: *)
9988: case $ac_cv_c_inline in
9989: no) ac_val=;;
9990: *) ac_val=$ac_cv_c_inline;;
9991: esac
9992: cat >>confdefs.h <<_ACEOF
9993: #ifndef __cplusplus
9994: #define inline $ac_val
9995: #endif
9996: _ACEOF
9997: ;;
1.1 root 9998: esac
9999:
1.1.1.4 root 10000: if [ "x$ac_cv_c_inline" = "xno" ]; then
10001: ac_cv_c_inline=
10002: fi
1.1.1.22! root 10003: { echo "$as_me:$LINENO: checking for mode_t" >&5
! 10004: echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
1.1.1.19 root 10005: if test "${ac_cv_type_mode_t+set}" = set; then
10006: echo $ECHO_N "(cached) $ECHO_C" >&6
10007: else
10008: cat >conftest.$ac_ext <<_ACEOF
10009: /* confdefs.h. */
10010: _ACEOF
10011: cat confdefs.h >>conftest.$ac_ext
10012: cat >>conftest.$ac_ext <<_ACEOF
10013: /* end confdefs.h. */
10014: $ac_includes_default
1.1.1.22! root 10015: typedef mode_t ac__type_new_;
1.1.1.19 root 10016: int
10017: main ()
10018: {
1.1.1.22! root 10019: if ((ac__type_new_ *) 0)
1.1.1.19 root 10020: return 0;
1.1.1.22! root 10021: if (sizeof (ac__type_new_))
1.1.1.19 root 10022: return 0;
10023: ;
10024: return 0;
10025: }
10026: _ACEOF
10027: rm -f conftest.$ac_objext
1.1.1.22! root 10028: if { (ac_try="$ac_compile"
! 10029: case "(($ac_try" in
! 10030: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 10031: *) ac_try_echo=$ac_try;;
! 10032: esac
! 10033: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 10034: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 10035: ac_status=$?
10036: grep -v '^ *+' conftest.er1 >conftest.err
10037: rm -f conftest.er1
10038: cat conftest.err >&5
10039: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 10040: (exit $ac_status); } && {
! 10041: test -z "$ac_c_werror_flag" ||
! 10042: test ! -s conftest.err
! 10043: } && test -s conftest.$ac_objext; then
1.1 root 10044: ac_cv_type_mode_t=yes
10045: else
1.1.1.19 root 10046: echo "$as_me: failed program was:" >&5
10047: sed 's/^/| /' conftest.$ac_ext >&5
1.1 root 10048:
1.1.1.22! root 10049: ac_cv_type_mode_t=no
1.1 root 10050: fi
1.1.1.22! root 10051:
! 10052: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 10053: fi
1.1.1.22! root 10054: { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
! 10055: echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
1.1.1.19 root 10056: if test $ac_cv_type_mode_t = yes; then
10057: :
10058: else
10059:
10060: cat >>confdefs.h <<_ACEOF
1.1 root 10061: #define mode_t int
1.1.1.19 root 10062: _ACEOF
1.1 root 10063:
10064: fi
10065:
1.1.1.22! root 10066: { echo "$as_me:$LINENO: checking for off_t" >&5
! 10067: echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
1.1.1.19 root 10068: if test "${ac_cv_type_off_t+set}" = set; then
10069: echo $ECHO_N "(cached) $ECHO_C" >&6
10070: else
10071: cat >conftest.$ac_ext <<_ACEOF
10072: /* confdefs.h. */
10073: _ACEOF
10074: cat confdefs.h >>conftest.$ac_ext
10075: cat >>conftest.$ac_ext <<_ACEOF
10076: /* end confdefs.h. */
10077: $ac_includes_default
1.1.1.22! root 10078: typedef off_t ac__type_new_;
1.1.1.19 root 10079: int
10080: main ()
10081: {
1.1.1.22! root 10082: if ((ac__type_new_ *) 0)
1.1.1.19 root 10083: return 0;
1.1.1.22! root 10084: if (sizeof (ac__type_new_))
1.1.1.19 root 10085: return 0;
10086: ;
10087: return 0;
10088: }
10089: _ACEOF
10090: rm -f conftest.$ac_objext
1.1.1.22! root 10091: if { (ac_try="$ac_compile"
! 10092: case "(($ac_try" in
! 10093: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 10094: *) ac_try_echo=$ac_try;;
! 10095: esac
! 10096: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 10097: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 10098: ac_status=$?
10099: grep -v '^ *+' conftest.er1 >conftest.err
10100: rm -f conftest.er1
10101: cat conftest.err >&5
10102: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 10103: (exit $ac_status); } && {
! 10104: test -z "$ac_c_werror_flag" ||
! 10105: test ! -s conftest.err
! 10106: } && test -s conftest.$ac_objext; then
1.1 root 10107: ac_cv_type_off_t=yes
10108: else
1.1.1.19 root 10109: echo "$as_me: failed program was:" >&5
10110: sed 's/^/| /' conftest.$ac_ext >&5
1.1 root 10111:
1.1.1.22! root 10112: ac_cv_type_off_t=no
1.1 root 10113: fi
1.1.1.22! root 10114:
! 10115: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 10116: fi
1.1.1.22! root 10117: { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
! 10118: echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
1.1.1.19 root 10119: if test $ac_cv_type_off_t = yes; then
10120: :
10121: else
10122:
10123: cat >>confdefs.h <<_ACEOF
1.1.1.22! root 10124: #define off_t long int
1.1.1.19 root 10125: _ACEOF
1.1 root 10126:
10127: fi
10128:
1.1.1.22! root 10129: { echo "$as_me:$LINENO: checking for pid_t" >&5
! 10130: echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
1.1.1.19 root 10131: if test "${ac_cv_type_pid_t+set}" = set; then
10132: echo $ECHO_N "(cached) $ECHO_C" >&6
10133: else
10134: cat >conftest.$ac_ext <<_ACEOF
10135: /* confdefs.h. */
10136: _ACEOF
10137: cat confdefs.h >>conftest.$ac_ext
10138: cat >>conftest.$ac_ext <<_ACEOF
10139: /* end confdefs.h. */
10140: $ac_includes_default
1.1.1.22! root 10141: typedef pid_t ac__type_new_;
1.1.1.19 root 10142: int
10143: main ()
10144: {
1.1.1.22! root 10145: if ((ac__type_new_ *) 0)
1.1.1.19 root 10146: return 0;
1.1.1.22! root 10147: if (sizeof (ac__type_new_))
1.1.1.19 root 10148: return 0;
10149: ;
10150: return 0;
10151: }
10152: _ACEOF
10153: rm -f conftest.$ac_objext
1.1.1.22! root 10154: if { (ac_try="$ac_compile"
! 10155: case "(($ac_try" in
! 10156: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 10157: *) ac_try_echo=$ac_try;;
! 10158: esac
! 10159: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 10160: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 10161: ac_status=$?
10162: grep -v '^ *+' conftest.er1 >conftest.err
10163: rm -f conftest.er1
10164: cat conftest.err >&5
10165: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 10166: (exit $ac_status); } && {
! 10167: test -z "$ac_c_werror_flag" ||
! 10168: test ! -s conftest.err
! 10169: } && test -s conftest.$ac_objext; then
1.1 root 10170: ac_cv_type_pid_t=yes
10171: else
1.1.1.19 root 10172: echo "$as_me: failed program was:" >&5
10173: sed 's/^/| /' conftest.$ac_ext >&5
1.1 root 10174:
1.1.1.22! root 10175: ac_cv_type_pid_t=no
1.1 root 10176: fi
1.1.1.22! root 10177:
! 10178: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 10179: fi
1.1.1.22! root 10180: { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
! 10181: echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
1.1.1.19 root 10182: if test $ac_cv_type_pid_t = yes; then
10183: :
10184: else
10185:
10186: cat >>confdefs.h <<_ACEOF
1.1 root 10187: #define pid_t int
1.1.1.19 root 10188: _ACEOF
1.1 root 10189:
10190: fi
10191:
1.1.1.22! root 10192: { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
! 10193: echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
1.1.1.19 root 10194: if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10195: echo $ECHO_N "(cached) $ECHO_C" >&6
10196: else
10197: cat >conftest.$ac_ext <<_ACEOF
10198: /* confdefs.h. */
10199: _ACEOF
10200: cat confdefs.h >>conftest.$ac_ext
10201: cat >>conftest.$ac_ext <<_ACEOF
10202: /* end confdefs.h. */
10203: $ac_includes_default
10204: int
10205: main ()
10206: {
10207: static struct stat ac_aggr;
10208: if (ac_aggr.st_blocks)
10209: return 0;
10210: ;
10211: return 0;
10212: }
10213: _ACEOF
10214: rm -f conftest.$ac_objext
1.1.1.22! root 10215: if { (ac_try="$ac_compile"
! 10216: case "(($ac_try" in
! 10217: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 10218: *) ac_try_echo=$ac_try;;
! 10219: esac
! 10220: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 10221: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 10222: ac_status=$?
10223: grep -v '^ *+' conftest.er1 >conftest.err
10224: rm -f conftest.er1
10225: cat conftest.err >&5
10226: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 10227: (exit $ac_status); } && {
! 10228: test -z "$ac_c_werror_flag" ||
! 10229: test ! -s conftest.err
! 10230: } && test -s conftest.$ac_objext; then
1.1.1.19 root 10231: ac_cv_member_struct_stat_st_blocks=yes
10232: else
10233: echo "$as_me: failed program was:" >&5
10234: sed 's/^/| /' conftest.$ac_ext >&5
10235:
1.1.1.22! root 10236: cat >conftest.$ac_ext <<_ACEOF
1.1.1.19 root 10237: /* confdefs.h. */
10238: _ACEOF
10239: cat confdefs.h >>conftest.$ac_ext
10240: cat >>conftest.$ac_ext <<_ACEOF
10241: /* end confdefs.h. */
10242: $ac_includes_default
10243: int
10244: main ()
10245: {
10246: static struct stat ac_aggr;
10247: if (sizeof ac_aggr.st_blocks)
10248: return 0;
10249: ;
10250: return 0;
10251: }
10252: _ACEOF
10253: rm -f conftest.$ac_objext
1.1.1.22! root 10254: if { (ac_try="$ac_compile"
! 10255: case "(($ac_try" in
! 10256: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 10257: *) ac_try_echo=$ac_try;;
! 10258: esac
! 10259: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 10260: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 10261: ac_status=$?
10262: grep -v '^ *+' conftest.er1 >conftest.err
10263: rm -f conftest.er1
10264: cat conftest.err >&5
10265: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 10266: (exit $ac_status); } && {
! 10267: test -z "$ac_c_werror_flag" ||
! 10268: test ! -s conftest.err
! 10269: } && test -s conftest.$ac_objext; then
1.1.1.19 root 10270: ac_cv_member_struct_stat_st_blocks=yes
10271: else
10272: echo "$as_me: failed program was:" >&5
10273: sed 's/^/| /' conftest.$ac_ext >&5
10274:
1.1.1.22! root 10275: ac_cv_member_struct_stat_st_blocks=no
1.1.1.19 root 10276: fi
1.1.1.22! root 10277:
! 10278: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 10279: fi
1.1.1.22! root 10280:
! 10281: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 10282: fi
1.1.1.22! root 10283: { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
! 10284: echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
1.1.1.19 root 10285: if test $ac_cv_member_struct_stat_st_blocks = yes; then
10286:
10287: cat >>confdefs.h <<_ACEOF
10288: #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10289: _ACEOF
10290:
1.1 root 10291:
1.1.1.19 root 10292: cat >>confdefs.h <<\_ACEOF
1.1 root 10293: #define HAVE_ST_BLOCKS 1
1.1.1.19 root 10294: _ACEOF
1.1 root 10295:
10296: else
1.1.1.22! root 10297: case " $LIBOBJS " in
1.1.1.19 root 10298: *" fileblocks.$ac_objext "* ) ;;
1.1.1.22! root 10299: *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
! 10300: ;;
1.1.1.19 root 10301: esac
10302:
1.1 root 10303: fi
10304:
1.1.1.19 root 10305:
1.1.1.22! root 10306: { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
! 10307: echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
1.1.1.19 root 10308: if test "${ac_cv_header_time+set}" = set; then
10309: echo $ECHO_N "(cached) $ECHO_C" >&6
10310: else
10311: cat >conftest.$ac_ext <<_ACEOF
10312: /* confdefs.h. */
10313: _ACEOF
10314: cat confdefs.h >>conftest.$ac_ext
10315: cat >>conftest.$ac_ext <<_ACEOF
10316: /* end confdefs.h. */
1.1 root 10317: #include <sys/types.h>
10318: #include <sys/time.h>
10319: #include <time.h>
1.1.1.19 root 10320:
10321: int
10322: main ()
10323: {
10324: if ((struct tm *) 0)
10325: return 0;
10326: ;
10327: return 0;
10328: }
10329: _ACEOF
10330: rm -f conftest.$ac_objext
1.1.1.22! root 10331: if { (ac_try="$ac_compile"
! 10332: case "(($ac_try" in
! 10333: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 10334: *) ac_try_echo=$ac_try;;
! 10335: esac
! 10336: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 10337: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 10338: ac_status=$?
10339: grep -v '^ *+' conftest.er1 >conftest.err
10340: rm -f conftest.er1
10341: cat conftest.err >&5
10342: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 10343: (exit $ac_status); } && {
! 10344: test -z "$ac_c_werror_flag" ||
! 10345: test ! -s conftest.err
! 10346: } && test -s conftest.$ac_objext; then
1.1 root 10347: ac_cv_header_time=yes
10348: else
1.1.1.19 root 10349: echo "$as_me: failed program was:" >&5
10350: sed 's/^/| /' conftest.$ac_ext >&5
10351:
1.1.1.22! root 10352: ac_cv_header_time=no
1.1 root 10353: fi
1.1.1.22! root 10354:
! 10355: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 10356: fi
1.1.1.22! root 10357: { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
! 10358: echo "${ECHO_T}$ac_cv_header_time" >&6; }
1.1 root 10359: if test $ac_cv_header_time = yes; then
1.1.1.19 root 10360:
10361: cat >>confdefs.h <<\_ACEOF
1.1 root 10362: #define TIME_WITH_SYS_TIME 1
1.1.1.19 root 10363: _ACEOF
1.1 root 10364:
10365: fi
10366:
1.1.1.22! root 10367: { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
! 10368: echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
1.1.1.19 root 10369: if test "${ac_cv_struct_tm+set}" = set; then
10370: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 root 10371: else
1.1.1.19 root 10372: cat >conftest.$ac_ext <<_ACEOF
10373: /* confdefs.h. */
10374: _ACEOF
10375: cat confdefs.h >>conftest.$ac_ext
10376: cat >>conftest.$ac_ext <<_ACEOF
10377: /* end confdefs.h. */
1.1 root 10378: #include <sys/types.h>
10379: #include <time.h>
1.1.1.19 root 10380:
10381: int
10382: main ()
10383: {
1.1.1.22! root 10384: struct tm tm;
! 10385: int *p = &tm.tm_sec;
! 10386: return !p;
1.1.1.19 root 10387: ;
10388: return 0;
10389: }
10390: _ACEOF
10391: rm -f conftest.$ac_objext
1.1.1.22! root 10392: if { (ac_try="$ac_compile"
! 10393: case "(($ac_try" in
! 10394: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 10395: *) ac_try_echo=$ac_try;;
! 10396: esac
! 10397: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 10398: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 10399: ac_status=$?
10400: grep -v '^ *+' conftest.er1 >conftest.err
10401: rm -f conftest.er1
10402: cat conftest.err >&5
10403: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 10404: (exit $ac_status); } && {
! 10405: test -z "$ac_c_werror_flag" ||
! 10406: test ! -s conftest.err
! 10407: } && test -s conftest.$ac_objext; then
1.1 root 10408: ac_cv_struct_tm=time.h
10409: else
1.1.1.19 root 10410: echo "$as_me: failed program was:" >&5
10411: sed 's/^/| /' conftest.$ac_ext >&5
10412:
1.1.1.22! root 10413: ac_cv_struct_tm=sys/time.h
1.1 root 10414: fi
1.1.1.22! root 10415:
! 10416: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 10417: fi
1.1.1.22! root 10418: { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
! 10419: echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
1.1 root 10420: if test $ac_cv_struct_tm = sys/time.h; then
1.1.1.19 root 10421:
10422: cat >>confdefs.h <<\_ACEOF
1.1 root 10423: #define TM_IN_SYS_TIME 1
1.1.1.19 root 10424: _ACEOF
1.1 root 10425:
10426: fi
10427:
10428:
1.1.1.19 root 10429: if test $ac_cv_c_compiler_gnu = yes; then
1.1.1.22! root 10430: { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
! 10431: echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
1.1.1.19 root 10432: if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10433: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 root 10434: else
10435: ac_pattern="Autoconf.*'x'"
1.1.1.19 root 10436: cat >conftest.$ac_ext <<_ACEOF
10437: /* confdefs.h. */
10438: _ACEOF
10439: cat confdefs.h >>conftest.$ac_ext
10440: cat >>conftest.$ac_ext <<_ACEOF
10441: /* end confdefs.h. */
1.1 root 10442: #include <sgtty.h>
10443: Autoconf TIOCGETP
1.1.1.19 root 10444: _ACEOF
1.1 root 10445: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.19 root 10446: $EGREP "$ac_pattern" >/dev/null 2>&1; then
1.1 root 10447: ac_cv_prog_gcc_traditional=yes
10448: else
10449: ac_cv_prog_gcc_traditional=no
10450: fi
10451: rm -f conftest*
10452:
10453:
10454: if test $ac_cv_prog_gcc_traditional = no; then
1.1.1.19 root 10455: cat >conftest.$ac_ext <<_ACEOF
10456: /* confdefs.h. */
10457: _ACEOF
10458: cat confdefs.h >>conftest.$ac_ext
10459: cat >>conftest.$ac_ext <<_ACEOF
10460: /* end confdefs.h. */
1.1 root 10461: #include <termio.h>
10462: Autoconf TCGETA
1.1.1.19 root 10463: _ACEOF
1.1 root 10464: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.19 root 10465: $EGREP "$ac_pattern" >/dev/null 2>&1; then
1.1 root 10466: ac_cv_prog_gcc_traditional=yes
10467: fi
10468: rm -f conftest*
10469:
10470: fi
10471: fi
1.1.1.22! root 10472: { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
! 10473: echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
1.1 root 10474: if test $ac_cv_prog_gcc_traditional = yes; then
10475: CC="$CC -traditional"
10476: fi
10477: fi
10478:
1.1.1.22! root 10479: { echo "$as_me:$LINENO: checking for working memcmp" >&5
! 10480: echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
1.1.1.19 root 10481: if test "${ac_cv_func_memcmp_working+set}" = set; then
10482: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 root 10483: else
10484: if test "$cross_compiling" = yes; then
1.1.1.19 root 10485: ac_cv_func_memcmp_working=no
1.1 root 10486: else
1.1.1.19 root 10487: cat >conftest.$ac_ext <<_ACEOF
10488: /* confdefs.h. */
10489: _ACEOF
10490: cat confdefs.h >>conftest.$ac_ext
10491: cat >>conftest.$ac_ext <<_ACEOF
10492: /* end confdefs.h. */
10493: $ac_includes_default
10494: int
10495: main ()
1.1 root 10496: {
1.1.1.19 root 10497:
10498: /* Some versions of memcmp are not 8-bit clean. */
1.1.1.22! root 10499: char c0 = '\100', c1 = '\200', c2 = '\201';
1.1.1.19 root 10500: if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
1.1.1.22! root 10501: return 1;
1.1 root 10502:
1.1.1.19 root 10503: /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10504: or more and with at least one buffer not starting on a 4-byte boundary.
10505: William Lewis provided this test program. */
10506: {
10507: char foo[21];
10508: char bar[21];
10509: int i;
10510: for (i = 0; i < 4; i++)
10511: {
10512: char *a = foo + i;
10513: char *b = bar + i;
10514: strcpy (a, "--------01111111");
10515: strcpy (b, "--------10000000");
10516: if (memcmp (a, b, 16) >= 0)
1.1.1.22! root 10517: return 1;
1.1.1.19 root 10518: }
1.1.1.22! root 10519: return 0;
1.1.1.19 root 10520: }
1.1 root 10521:
1.1.1.19 root 10522: ;
10523: return 0;
10524: }
10525: _ACEOF
10526: rm -f conftest$ac_exeext
1.1.1.22! root 10527: if { (ac_try="$ac_link"
! 10528: case "(($ac_try" in
! 10529: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 10530: *) ac_try_echo=$ac_try;;
! 10531: esac
! 10532: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 10533: (eval "$ac_link") 2>&5
1.1.1.19 root 10534: ac_status=$?
10535: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.22! root 10537: { (case "(($ac_try" in
! 10538: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 10539: *) ac_try_echo=$ac_try;;
! 10540: esac
! 10541: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 10542: (eval "$ac_try") 2>&5
1.1.1.19 root 10543: ac_status=$?
10544: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545: (exit $ac_status); }; }; then
10546: ac_cv_func_memcmp_working=yes
10547: else
10548: echo "$as_me: program exited with status $ac_status" >&5
10549: echo "$as_me: failed program was:" >&5
10550: sed 's/^/| /' conftest.$ac_ext >&5
10551:
10552: ( exit $ac_status )
10553: ac_cv_func_memcmp_working=no
10554: fi
1.1.1.22! root 10555: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 10556: fi
1.1.1.22! root 10557:
! 10558:
1.1.1.19 root 10559: fi
1.1.1.22! root 10560: { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
! 10561: echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
! 10562: test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
1.1.1.19 root 10563: *" memcmp.$ac_objext "* ) ;;
1.1.1.22! root 10564: *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
! 10565: ;;
1.1.1.19 root 10566: esac
1.1.1.4 root 10567:
1.1 root 10568:
1.1.1.22! root 10569: { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
! 10570: echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
1.1.1.19 root 10571: if test "${ac_cv_type_signal+set}" = set; then
10572: echo $ECHO_N "(cached) $ECHO_C" >&6
10573: else
10574: cat >conftest.$ac_ext <<_ACEOF
10575: /* confdefs.h. */
10576: _ACEOF
10577: cat confdefs.h >>conftest.$ac_ext
10578: cat >>conftest.$ac_ext <<_ACEOF
10579: /* end confdefs.h. */
1.1 root 10580: #include <sys/types.h>
10581: #include <signal.h>
10582:
1.1.1.19 root 10583: int
10584: main ()
10585: {
1.1.1.22! root 10586: return *(signal (0, 0)) (0) == 1;
1.1.1.19 root 10587: ;
10588: return 0;
10589: }
10590: _ACEOF
10591: rm -f conftest.$ac_objext
1.1.1.22! root 10592: if { (ac_try="$ac_compile"
! 10593: case "(($ac_try" in
! 10594: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 10595: *) ac_try_echo=$ac_try;;
! 10596: esac
! 10597: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 10598: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 10599: ac_status=$?
10600: grep -v '^ *+' conftest.er1 >conftest.err
10601: rm -f conftest.er1
10602: cat conftest.err >&5
10603: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 10604: (exit $ac_status); } && {
! 10605: test -z "$ac_c_werror_flag" ||
! 10606: test ! -s conftest.err
! 10607: } && test -s conftest.$ac_objext; then
! 10608: ac_cv_type_signal=int
1.1 root 10609: else
1.1.1.19 root 10610: echo "$as_me: failed program was:" >&5
10611: sed 's/^/| /' conftest.$ac_ext >&5
10612:
1.1.1.22! root 10613: ac_cv_type_signal=void
1.1 root 10614: fi
1.1.1.22! root 10615:
! 10616: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 10617: fi
1.1.1.22! root 10618: { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
! 10619: echo "${ECHO_T}$ac_cv_type_signal" >&6; }
1.1 root 10620:
1.1.1.19 root 10621: cat >>confdefs.h <<_ACEOF
1.1 root 10622: #define RETSIGTYPE $ac_cv_type_signal
1.1.1.19 root 10623: _ACEOF
1.1 root 10624:
10625:
1.1.1.22! root 10626:
! 10627:
! 10628:
! 10629:
! 10630: for ac_header in $ac_header_list
! 10631: do
! 10632: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 10633: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 10634: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 10635: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 10636: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 10637: echo $ECHO_N "(cached) $ECHO_C" >&6
! 10638: fi
! 10639: ac_res=`eval echo '${'$as_ac_Header'}'`
! 10640: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 10641: echo "${ECHO_T}$ac_res" >&6; }
! 10642: else
! 10643: # Is the header compilable?
! 10644: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 10645: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
! 10646: cat >conftest.$ac_ext <<_ACEOF
! 10647: /* confdefs.h. */
! 10648: _ACEOF
! 10649: cat confdefs.h >>conftest.$ac_ext
! 10650: cat >>conftest.$ac_ext <<_ACEOF
! 10651: /* end confdefs.h. */
! 10652: $ac_includes_default
! 10653: #include <$ac_header>
! 10654: _ACEOF
! 10655: rm -f conftest.$ac_objext
! 10656: if { (ac_try="$ac_compile"
! 10657: case "(($ac_try" in
! 10658: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 10659: *) ac_try_echo=$ac_try;;
! 10660: esac
! 10661: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 10662: (eval "$ac_compile") 2>conftest.er1
! 10663: ac_status=$?
! 10664: grep -v '^ *+' conftest.er1 >conftest.err
! 10665: rm -f conftest.er1
! 10666: cat conftest.err >&5
! 10667: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 10668: (exit $ac_status); } && {
! 10669: test -z "$ac_c_werror_flag" ||
! 10670: test ! -s conftest.err
! 10671: } && test -s conftest.$ac_objext; then
! 10672: ac_header_compiler=yes
! 10673: else
! 10674: echo "$as_me: failed program was:" >&5
! 10675: sed 's/^/| /' conftest.$ac_ext >&5
! 10676:
! 10677: ac_header_compiler=no
! 10678: fi
! 10679:
! 10680: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 10681: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 10682: echo "${ECHO_T}$ac_header_compiler" >&6; }
! 10683:
! 10684: # Is the header present?
! 10685: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 10686: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
! 10687: cat >conftest.$ac_ext <<_ACEOF
! 10688: /* confdefs.h. */
! 10689: _ACEOF
! 10690: cat confdefs.h >>conftest.$ac_ext
! 10691: cat >>conftest.$ac_ext <<_ACEOF
! 10692: /* end confdefs.h. */
! 10693: #include <$ac_header>
! 10694: _ACEOF
! 10695: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 10696: case "(($ac_try" in
! 10697: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 10698: *) ac_try_echo=$ac_try;;
! 10699: esac
! 10700: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 10701: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 10702: ac_status=$?
! 10703: grep -v '^ *+' conftest.er1 >conftest.err
! 10704: rm -f conftest.er1
! 10705: cat conftest.err >&5
! 10706: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 10707: (exit $ac_status); } >/dev/null && {
! 10708: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 10709: test ! -s conftest.err
! 10710: }; then
! 10711: ac_header_preproc=yes
! 10712: else
! 10713: echo "$as_me: failed program was:" >&5
! 10714: sed 's/^/| /' conftest.$ac_ext >&5
! 10715:
! 10716: ac_header_preproc=no
! 10717: fi
! 10718:
! 10719: rm -f conftest.err conftest.$ac_ext
! 10720: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 10721: echo "${ECHO_T}$ac_header_preproc" >&6; }
! 10722:
! 10723: # So? What about this header?
! 10724: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 10725: yes:no: )
! 10726: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 10727: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 10728: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 10729: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 10730: ac_header_preproc=yes
! 10731: ;;
! 10732: no:yes:* )
! 10733: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 10734: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 10735: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 10736: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 10737: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 10738: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 10739: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 10740: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
! 10741: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 10742: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 10743: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 10744: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
! 10745:
! 10746: ;;
! 10747: esac
! 10748: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 10749: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 10750: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 10751: echo $ECHO_N "(cached) $ECHO_C" >&6
! 10752: else
! 10753: eval "$as_ac_Header=\$ac_header_preproc"
! 10754: fi
! 10755: ac_res=`eval echo '${'$as_ac_Header'}'`
! 10756: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 10757: echo "${ECHO_T}$ac_res" >&6; }
! 10758:
! 10759: fi
! 10760: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 10761: cat >>confdefs.h <<_ACEOF
! 10762: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 10763: _ACEOF
! 10764:
! 10765: fi
! 10766:
! 10767: done
! 10768:
! 10769:
! 10770:
! 10771:
! 10772:
! 10773:
! 10774:
! 10775:
! 10776:
! 10777: { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
! 10778: echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
! 10779: if test "${ac_cv_func_utime_null+set}" = set; then
! 10780: echo $ECHO_N "(cached) $ECHO_C" >&6
! 10781: else
! 10782: rm -f conftest.data; >conftest.data
1.1 root 10783: # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
10784: if test "$cross_compiling" = yes; then
10785: ac_cv_func_utime_null=no
10786: else
1.1.1.19 root 10787: cat >conftest.$ac_ext <<_ACEOF
10788: /* confdefs.h. */
10789: _ACEOF
10790: cat confdefs.h >>conftest.$ac_ext
10791: cat >>conftest.$ac_ext <<_ACEOF
10792: /* end confdefs.h. */
10793: $ac_includes_default
1.1.1.22! root 10794: #ifdef HAVE_UTIME_H
! 10795: # include <utime.h>
! 10796: #endif
1.1.1.19 root 10797: int
10798: main ()
10799: {
1.1 root 10800: struct stat s, t;
1.1.1.22! root 10801: return ! (stat ("conftest.data", &s) == 0
! 10802: && utime ("conftest.data", 0) == 0
! 10803: && stat ("conftest.data", &t) == 0
! 10804: && t.st_mtime >= s.st_mtime
! 10805: && t.st_mtime - s.st_mtime < 120);
1.1.1.19 root 10806: ;
10807: return 0;
1.1 root 10808: }
1.1.1.19 root 10809: _ACEOF
10810: rm -f conftest$ac_exeext
1.1.1.22! root 10811: if { (ac_try="$ac_link"
! 10812: case "(($ac_try" in
! 10813: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 10814: *) ac_try_echo=$ac_try;;
! 10815: esac
! 10816: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 10817: (eval "$ac_link") 2>&5
1.1.1.19 root 10818: ac_status=$?
10819: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.22! root 10821: { (case "(($ac_try" in
! 10822: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 10823: *) ac_try_echo=$ac_try;;
! 10824: esac
! 10825: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 10826: (eval "$ac_try") 2>&5
1.1.1.19 root 10827: ac_status=$?
10828: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829: (exit $ac_status); }; }; then
1.1 root 10830: ac_cv_func_utime_null=yes
10831: else
1.1.1.19 root 10832: echo "$as_me: program exited with status $ac_status" >&5
10833: echo "$as_me: failed program was:" >&5
10834: sed 's/^/| /' conftest.$ac_ext >&5
10835:
10836: ( exit $ac_status )
10837: ac_cv_func_utime_null=no
1.1 root 10838: fi
1.1.1.22! root 10839: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.4 root 10840: fi
1.1.1.22! root 10841:
! 10842:
1.1 root 10843: fi
1.1.1.22! root 10844: { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
! 10845: echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
1.1 root 10846: if test $ac_cv_func_utime_null = yes; then
1.1.1.19 root 10847:
10848: cat >>confdefs.h <<\_ACEOF
1.1 root 10849: #define HAVE_UTIME_NULL 1
1.1.1.19 root 10850: _ACEOF
1.1 root 10851:
10852: fi
1.1.1.19 root 10853: rm -f conftest.data
10854:
10855:
10856:
10857:
10858:
10859:
10860:
1.1 root 10861:
1.1.1.16 root 10862: for ac_func in getcwd getopt strdup gettimeofday sigaction mkdir rmdir
10863: do
1.1.1.19 root 10864: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.1.1.22! root 10865: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 10866: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 10867: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 10868: echo $ECHO_N "(cached) $ECHO_C" >&6
10869: else
10870: cat >conftest.$ac_ext <<_ACEOF
10871: /* confdefs.h. */
10872: _ACEOF
10873: cat confdefs.h >>conftest.$ac_ext
10874: cat >>conftest.$ac_ext <<_ACEOF
10875: /* end confdefs.h. */
10876: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10877: For example, HP-UX 11i <limits.h> declares gettimeofday. */
10878: #define $ac_func innocuous_$ac_func
10879:
1.1.1.16 root 10880: /* System header to define __stub macros and hopefully few prototypes,
1.1.1.19 root 10881: which can conflict with char $ac_func (); below.
10882: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10883: <limits.h> exists even on freestanding compilers. */
10884:
10885: #ifdef __STDC__
10886: # include <limits.h>
10887: #else
10888: # include <assert.h>
10889: #endif
1.1.1.16 root 10890:
1.1.1.19 root 10891: #undef $ac_func
1.1.1.16 root 10892:
1.1.1.22! root 10893: /* Override any GCC internal prototype to avoid an error.
! 10894: Use char because int might match the return type of a GCC
! 10895: builtin and then its argument prototype would still apply. */
1.1.1.19 root 10896: #ifdef __cplusplus
10897: extern "C"
10898: #endif
10899: char $ac_func ();
1.1.1.16 root 10900: /* The GNU C library defines this for functions which it implements
10901: to always fail with ENOSYS. Some functions are actually named
10902: something starting with __ and the normal name is an alias. */
1.1.1.22! root 10903: #if defined __stub_$ac_func || defined __stub___$ac_func
1.1.1.16 root 10904: choke me
10905: #endif
10906:
1.1.1.19 root 10907: int
10908: main ()
10909: {
1.1.1.22! root 10910: return $ac_func ();
1.1.1.19 root 10911: ;
10912: return 0;
10913: }
10914: _ACEOF
10915: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22! root 10916: if { (ac_try="$ac_link"
! 10917: case "(($ac_try" in
! 10918: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 10919: *) ac_try_echo=$ac_try;;
! 10920: esac
! 10921: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 10922: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 10923: ac_status=$?
10924: grep -v '^ *+' conftest.er1 >conftest.err
10925: rm -f conftest.er1
10926: cat conftest.err >&5
10927: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 10928: (exit $ac_status); } && {
! 10929: test -z "$ac_c_werror_flag" ||
! 10930: test ! -s conftest.err
! 10931: } && test -s conftest$ac_exeext &&
! 10932: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 10933: eval "$as_ac_var=yes"
10934: else
10935: echo "$as_me: failed program was:" >&5
10936: sed 's/^/| /' conftest.$ac_ext >&5
10937:
1.1.1.22! root 10938: eval "$as_ac_var=no"
1.1.1.19 root 10939: fi
1.1.1.22! root 10940:
! 10941: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 10942: conftest$ac_exeext conftest.$ac_ext
10943: fi
1.1.1.22! root 10944: ac_res=`eval echo '${'$as_ac_var'}'`
! 10945: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 10946: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 10947: if test `eval echo '${'$as_ac_var'}'` = yes; then
10948: cat >>confdefs.h <<_ACEOF
10949: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10950: _ACEOF
1.1.1.16 root 10951:
10952: fi
10953: done
10954:
1.1.1.19 root 10955:
10956:
10957:
10958:
10959:
10960:
1.1.1.16 root 10961: for ac_func in select strerror strstr isnan isinf setitimer
1.1.1.6 root 10962: do
1.1.1.19 root 10963: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.1.1.22! root 10964: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 10965: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 10966: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 10967: echo $ECHO_N "(cached) $ECHO_C" >&6
10968: else
10969: cat >conftest.$ac_ext <<_ACEOF
10970: /* confdefs.h. */
10971: _ACEOF
10972: cat confdefs.h >>conftest.$ac_ext
10973: cat >>conftest.$ac_ext <<_ACEOF
10974: /* end confdefs.h. */
10975: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10976: For example, HP-UX 11i <limits.h> declares gettimeofday. */
10977: #define $ac_func innocuous_$ac_func
10978:
1.1.1.6 root 10979: /* System header to define __stub macros and hopefully few prototypes,
1.1.1.19 root 10980: which can conflict with char $ac_func (); below.
10981: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10982: <limits.h> exists even on freestanding compilers. */
10983:
10984: #ifdef __STDC__
10985: # include <limits.h>
10986: #else
10987: # include <assert.h>
10988: #endif
1.1.1.6 root 10989:
1.1.1.19 root 10990: #undef $ac_func
1.1.1.6 root 10991:
1.1.1.22! root 10992: /* Override any GCC internal prototype to avoid an error.
! 10993: Use char because int might match the return type of a GCC
! 10994: builtin and then its argument prototype would still apply. */
1.1.1.19 root 10995: #ifdef __cplusplus
10996: extern "C"
10997: #endif
10998: char $ac_func ();
1.1.1.6 root 10999: /* The GNU C library defines this for functions which it implements
11000: to always fail with ENOSYS. Some functions are actually named
11001: something starting with __ and the normal name is an alias. */
1.1.1.22! root 11002: #if defined __stub_$ac_func || defined __stub___$ac_func
1.1.1.6 root 11003: choke me
11004: #endif
11005:
1.1.1.19 root 11006: int
11007: main ()
11008: {
1.1.1.22! root 11009: return $ac_func ();
1.1.1.19 root 11010: ;
11011: return 0;
11012: }
11013: _ACEOF
11014: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22! root 11015: if { (ac_try="$ac_link"
! 11016: case "(($ac_try" in
! 11017: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11018: *) ac_try_echo=$ac_try;;
! 11019: esac
! 11020: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11021: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 11022: ac_status=$?
11023: grep -v '^ *+' conftest.er1 >conftest.err
11024: rm -f conftest.er1
11025: cat conftest.err >&5
11026: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 11027: (exit $ac_status); } && {
! 11028: test -z "$ac_c_werror_flag" ||
! 11029: test ! -s conftest.err
! 11030: } && test -s conftest$ac_exeext &&
! 11031: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 11032: eval "$as_ac_var=yes"
11033: else
11034: echo "$as_me: failed program was:" >&5
11035: sed 's/^/| /' conftest.$ac_ext >&5
11036:
1.1.1.22! root 11037: eval "$as_ac_var=no"
1.1.1.19 root 11038: fi
1.1.1.22! root 11039:
! 11040: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 11041: conftest$ac_exeext conftest.$ac_ext
11042: fi
1.1.1.22! root 11043: ac_res=`eval echo '${'$as_ac_var'}'`
! 11044: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 11045: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 11046: if test `eval echo '${'$as_ac_var'}'` = yes; then
11047: cat >>confdefs.h <<_ACEOF
11048: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11049: _ACEOF
1.1.1.6 root 11050:
11051: fi
11052: done
11053:
1.1.1.19 root 11054:
11055:
11056:
11057:
11058:
11059:
1.1.1.6 root 11060: for ac_func in tcgetattr cfmakeraw readdir_r vprintf vsprintf vfprintf
1.1 root 11061: do
1.1.1.19 root 11062: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.1.1.22! root 11063: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 11064: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 11065: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 11066: echo $ECHO_N "(cached) $ECHO_C" >&6
11067: else
11068: cat >conftest.$ac_ext <<_ACEOF
11069: /* confdefs.h. */
11070: _ACEOF
11071: cat confdefs.h >>conftest.$ac_ext
11072: cat >>conftest.$ac_ext <<_ACEOF
11073: /* end confdefs.h. */
11074: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11075: For example, HP-UX 11i <limits.h> declares gettimeofday. */
11076: #define $ac_func innocuous_$ac_func
11077:
1.1 root 11078: /* System header to define __stub macros and hopefully few prototypes,
1.1.1.19 root 11079: which can conflict with char $ac_func (); below.
11080: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11081: <limits.h> exists even on freestanding compilers. */
11082:
11083: #ifdef __STDC__
11084: # include <limits.h>
11085: #else
11086: # include <assert.h>
11087: #endif
1.1 root 11088:
1.1.1.19 root 11089: #undef $ac_func
1.1 root 11090:
1.1.1.22! root 11091: /* Override any GCC internal prototype to avoid an error.
! 11092: Use char because int might match the return type of a GCC
! 11093: builtin and then its argument prototype would still apply. */
1.1.1.19 root 11094: #ifdef __cplusplus
11095: extern "C"
11096: #endif
11097: char $ac_func ();
1.1 root 11098: /* The GNU C library defines this for functions which it implements
11099: to always fail with ENOSYS. Some functions are actually named
11100: something starting with __ and the normal name is an alias. */
1.1.1.22! root 11101: #if defined __stub_$ac_func || defined __stub___$ac_func
1.1 root 11102: choke me
11103: #endif
11104:
1.1.1.19 root 11105: int
11106: main ()
11107: {
1.1.1.22! root 11108: return $ac_func ();
1.1.1.19 root 11109: ;
11110: return 0;
11111: }
11112: _ACEOF
11113: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22! root 11114: if { (ac_try="$ac_link"
! 11115: case "(($ac_try" in
! 11116: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11117: *) ac_try_echo=$ac_try;;
! 11118: esac
! 11119: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11120: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 11121: ac_status=$?
11122: grep -v '^ *+' conftest.er1 >conftest.err
11123: rm -f conftest.er1
11124: cat conftest.err >&5
11125: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 11126: (exit $ac_status); } && {
! 11127: test -z "$ac_c_werror_flag" ||
! 11128: test ! -s conftest.err
! 11129: } && test -s conftest$ac_exeext &&
! 11130: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 11131: eval "$as_ac_var=yes"
11132: else
11133: echo "$as_me: failed program was:" >&5
11134: sed 's/^/| /' conftest.$ac_ext >&5
11135:
1.1.1.22! root 11136: eval "$as_ac_var=no"
1.1.1.19 root 11137: fi
1.1.1.22! root 11138:
! 11139: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 11140: conftest$ac_exeext conftest.$ac_ext
11141: fi
1.1.1.22! root 11142: ac_res=`eval echo '${'$as_ac_var'}'`
! 11143: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 11144: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 11145: if test `eval echo '${'$as_ac_var'}'` = yes; then
11146: cat >>confdefs.h <<_ACEOF
11147: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11148: _ACEOF
1.1.1.4 root 11149:
11150: fi
1.1.1.6 root 11151: done
11152:
11153:
11154: DO_FILEUTILS_CHECK=yes
1.1.1.19 root 11155: if test $uae_cv_prog_cc_watcom = yes -o $MINGW32 = yes; then
1.1.1.6 root 11156: DO_FILEUTILS_CHECK=no
11157: fi
11158: if test $DO_FILEUTILS_CHECK = yes; then
1.1.1.19 root 11159:
11160:
11161:
11162:
11163:
11164:
11165:
11166:
11167:
11168:
11169:
11170:
11171:
11172: for ac_header in fcntl.h sys/param.h sys/statfs.h sys/fstyp.h \
1.1.1.6 root 11173: mnttab.h mntent.h sys/statvfs.h sys/vfs.h sys/mount.h \
11174: sys/filsys.h sys/fs_types.h sys/fs/s5param.h
11175: do
1.1.1.19 root 11176: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.22! root 11177: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 11178: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 11179: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 11180: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 11181: echo $ECHO_N "(cached) $ECHO_C" >&6
11182: fi
1.1.1.22! root 11183: ac_res=`eval echo '${'$as_ac_Header'}'`
! 11184: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 11185: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 11186: else
11187: # Is the header compilable?
1.1.1.22! root 11188: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 11189: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.1.1.19 root 11190: cat >conftest.$ac_ext <<_ACEOF
11191: /* confdefs.h. */
11192: _ACEOF
11193: cat confdefs.h >>conftest.$ac_ext
11194: cat >>conftest.$ac_ext <<_ACEOF
11195: /* end confdefs.h. */
11196: $ac_includes_default
11197: #include <$ac_header>
11198: _ACEOF
11199: rm -f conftest.$ac_objext
1.1.1.22! root 11200: if { (ac_try="$ac_compile"
! 11201: case "(($ac_try" in
! 11202: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11203: *) ac_try_echo=$ac_try;;
! 11204: esac
! 11205: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11206: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 11207: ac_status=$?
11208: grep -v '^ *+' conftest.er1 >conftest.err
11209: rm -f conftest.er1
11210: cat conftest.err >&5
11211: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 11212: (exit $ac_status); } && {
! 11213: test -z "$ac_c_werror_flag" ||
! 11214: test ! -s conftest.err
! 11215: } && test -s conftest.$ac_objext; then
1.1.1.19 root 11216: ac_header_compiler=yes
11217: else
11218: echo "$as_me: failed program was:" >&5
11219: sed 's/^/| /' conftest.$ac_ext >&5
11220:
1.1.1.22! root 11221: ac_header_compiler=no
1.1.1.19 root 11222: fi
1.1.1.22! root 11223:
! 11224: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 11225: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 11226: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1.1.19 root 11227:
11228: # Is the header present?
1.1.1.22! root 11229: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 11230: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.1.1.19 root 11231: cat >conftest.$ac_ext <<_ACEOF
11232: /* confdefs.h. */
11233: _ACEOF
11234: cat confdefs.h >>conftest.$ac_ext
11235: cat >>conftest.$ac_ext <<_ACEOF
11236: /* end confdefs.h. */
11237: #include <$ac_header>
11238: _ACEOF
1.1.1.22! root 11239: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 11240: case "(($ac_try" in
! 11241: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11242: *) ac_try_echo=$ac_try;;
! 11243: esac
! 11244: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11245: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.1.19 root 11246: ac_status=$?
11247: grep -v '^ *+' conftest.er1 >conftest.err
11248: rm -f conftest.er1
11249: cat conftest.err >&5
11250: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 11251: (exit $ac_status); } >/dev/null && {
! 11252: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 11253: test ! -s conftest.err
! 11254: }; then
1.1.1.19 root 11255: ac_header_preproc=yes
11256: else
11257: echo "$as_me: failed program was:" >&5
11258: sed 's/^/| /' conftest.$ac_ext >&5
11259:
11260: ac_header_preproc=no
1.1.1.6 root 11261: fi
1.1.1.22! root 11262:
1.1.1.19 root 11263: rm -f conftest.err conftest.$ac_ext
1.1.1.22! root 11264: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 11265: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1.1.19 root 11266:
11267: # So? What about this header?
11268: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11269: yes:no: )
11270: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11271: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11272: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11273: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11274: ac_header_preproc=yes
11275: ;;
11276: no:yes:* )
11277: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11278: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11279: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11280: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11281: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11282: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11283: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11284: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11285: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11286: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11287: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11288: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.1.1.22! root 11289:
1.1.1.19 root 11290: ;;
11291: esac
1.1.1.22! root 11292: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 11293: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 11294: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 11295: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.6 root 11296: else
1.1.1.19 root 11297: eval "$as_ac_Header=\$ac_header_preproc"
11298: fi
1.1.1.22! root 11299: ac_res=`eval echo '${'$as_ac_Header'}'`
! 11300: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 11301: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 11302:
11303: fi
11304: if test `eval echo '${'$as_ac_Header'}'` = yes; then
11305: cat >>confdefs.h <<_ACEOF
11306: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11307: _ACEOF
11308:
1.1.1.6 root 11309: fi
1.1.1.19 root 11310:
1.1.1.6 root 11311: done
11312:
11313:
1.1.1.19 root 11314:
11315:
11316:
11317:
11318:
11319:
11320:
11321:
11322:
11323:
11324:
11325:
11326:
11327:
11328:
11329:
11330:
1.1.1.6 root 11331: for ac_func in bcopy endgrent endpwent fchdir ftime ftruncate \
11332: getcwd getmntinfo gettimeofday isascii lchown \
11333: listmntent memcpy mkfifo strchr strerror strrchr
11334: do
1.1.1.19 root 11335: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.1.1.22! root 11336: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 11337: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 11338: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 11339: echo $ECHO_N "(cached) $ECHO_C" >&6
11340: else
11341: cat >conftest.$ac_ext <<_ACEOF
11342: /* confdefs.h. */
11343: _ACEOF
11344: cat confdefs.h >>conftest.$ac_ext
11345: cat >>conftest.$ac_ext <<_ACEOF
11346: /* end confdefs.h. */
11347: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11348: For example, HP-UX 11i <limits.h> declares gettimeofday. */
11349: #define $ac_func innocuous_$ac_func
11350:
1.1.1.6 root 11351: /* System header to define __stub macros and hopefully few prototypes,
1.1.1.19 root 11352: which can conflict with char $ac_func (); below.
11353: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11354: <limits.h> exists even on freestanding compilers. */
11355:
11356: #ifdef __STDC__
11357: # include <limits.h>
11358: #else
11359: # include <assert.h>
11360: #endif
1.1.1.6 root 11361:
1.1.1.19 root 11362: #undef $ac_func
1.1.1.6 root 11363:
1.1.1.22! root 11364: /* Override any GCC internal prototype to avoid an error.
! 11365: Use char because int might match the return type of a GCC
! 11366: builtin and then its argument prototype would still apply. */
1.1.1.19 root 11367: #ifdef __cplusplus
11368: extern "C"
11369: #endif
11370: char $ac_func ();
1.1.1.6 root 11371: /* The GNU C library defines this for functions which it implements
11372: to always fail with ENOSYS. Some functions are actually named
11373: something starting with __ and the normal name is an alias. */
1.1.1.22! root 11374: #if defined __stub_$ac_func || defined __stub___$ac_func
1.1.1.6 root 11375: choke me
11376: #endif
11377:
1.1.1.19 root 11378: int
11379: main ()
11380: {
1.1.1.22! root 11381: return $ac_func ();
1.1.1.19 root 11382: ;
11383: return 0;
11384: }
11385: _ACEOF
11386: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22! root 11387: if { (ac_try="$ac_link"
! 11388: case "(($ac_try" in
! 11389: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11390: *) ac_try_echo=$ac_try;;
! 11391: esac
! 11392: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11393: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 11394: ac_status=$?
11395: grep -v '^ *+' conftest.er1 >conftest.err
11396: rm -f conftest.er1
11397: cat conftest.err >&5
11398: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 11399: (exit $ac_status); } && {
! 11400: test -z "$ac_c_werror_flag" ||
! 11401: test ! -s conftest.err
! 11402: } && test -s conftest$ac_exeext &&
! 11403: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 11404: eval "$as_ac_var=yes"
11405: else
11406: echo "$as_me: failed program was:" >&5
11407: sed 's/^/| /' conftest.$ac_ext >&5
11408:
1.1.1.22! root 11409: eval "$as_ac_var=no"
1.1.1.19 root 11410: fi
1.1.1.22! root 11411:
! 11412: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 11413: conftest$ac_exeext conftest.$ac_ext
11414: fi
1.1.1.22! root 11415: ac_res=`eval echo '${'$as_ac_var'}'`
! 11416: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 11417: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 11418: if test `eval echo '${'$as_ac_var'}'` = yes; then
11419: cat >>confdefs.h <<_ACEOF
11420: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11421: _ACEOF
1.1.1.6 root 11422:
11423: fi
11424: done
11425:
11426:
11427: # Determine how to get the list of mounted filesystems.
11428: list_mounted_fs=
11429:
11430: # If the getmntent function is available but not in the standard library,
11431: # make sure LIBS contains -lsun (on Irix4) or -lseq (on PTX).
1.1.1.22! root 11432: # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
! 11433: # -lseq on Dynix/PTX, -lgen on Unixware.
! 11434: { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
! 11435: echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
! 11436: if test "${ac_cv_search_getmntent+set}" = set; then
1.1.1.19 root 11437: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.6 root 11438: else
1.1.1.22! root 11439: ac_func_search_save_LIBS=$LIBS
1.1.1.19 root 11440: cat >conftest.$ac_ext <<_ACEOF
11441: /* confdefs.h. */
11442: _ACEOF
11443: cat confdefs.h >>conftest.$ac_ext
11444: cat >>conftest.$ac_ext <<_ACEOF
11445: /* end confdefs.h. */
11446:
1.1.1.22! root 11447: /* Override any GCC internal prototype to avoid an error.
! 11448: Use char because int might match the return type of a GCC
! 11449: builtin and then its argument prototype would still apply. */
1.1.1.19 root 11450: #ifdef __cplusplus
11451: extern "C"
11452: #endif
11453: char getmntent ();
11454: int
11455: main ()
11456: {
1.1.1.22! root 11457: return getmntent ();
1.1.1.19 root 11458: ;
11459: return 0;
11460: }
11461: _ACEOF
1.1.1.22! root 11462: for ac_lib in '' sun seq gen; do
! 11463: if test -z "$ac_lib"; then
! 11464: ac_res="none required"
! 11465: else
! 11466: ac_res=-l$ac_lib
! 11467: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
! 11468: fi
! 11469: rm -f conftest.$ac_objext conftest$ac_exeext
! 11470: if { (ac_try="$ac_link"
! 11471: case "(($ac_try" in
! 11472: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11473: *) ac_try_echo=$ac_try;;
! 11474: esac
! 11475: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11476: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 11477: ac_status=$?
11478: grep -v '^ *+' conftest.er1 >conftest.err
11479: rm -f conftest.er1
11480: cat conftest.err >&5
11481: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 11482: (exit $ac_status); } && {
! 11483: test -z "$ac_c_werror_flag" ||
! 11484: test ! -s conftest.err
! 11485: } && test -s conftest$ac_exeext &&
! 11486: $as_test_x conftest$ac_exeext; then
! 11487: ac_cv_search_getmntent=$ac_res
1.1.1.19 root 11488: else
11489: echo "$as_me: failed program was:" >&5
11490: sed 's/^/| /' conftest.$ac_ext >&5
11491:
1.1.1.22! root 11492:
1.1.1.19 root 11493: fi
1.1.1.22! root 11494:
! 11495: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 11496: conftest$ac_exeext
! 11497: if test "${ac_cv_search_getmntent+set}" = set; then
! 11498: break
! 11499: fi
! 11500: done
! 11501: if test "${ac_cv_search_getmntent+set}" = set; then
! 11502: :
! 11503: else
! 11504: ac_cv_search_getmntent=no
! 11505: fi
! 11506: rm conftest.$ac_ext
! 11507: LIBS=$ac_func_search_save_LIBS
! 11508: fi
! 11509: { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
! 11510: echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
! 11511: ac_res=$ac_cv_search_getmntent
! 11512: if test "$ac_res" != no; then
! 11513: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
! 11514: ac_cv_func_getmntent=yes
! 11515:
! 11516: cat >>confdefs.h <<\_ACEOF
! 11517: #define HAVE_GETMNTENT
! 11518: _ACEOF
! 11519:
! 11520: else
! 11521: ac_cv_func_getmntent=no
1.1.1.19 root 11522: fi
1.1.1.22! root 11523:
! 11524:
! 11525:
! 11526: # This test must precede the ones for getmntent because Unicos-9 is
! 11527: # reported to have the getmntent function, but its support is incompatible
! 11528: # with other getmntent implementations.
! 11529:
! 11530: # NOTE: Normally, I wouldn't use a check for system type as I've done for
! 11531: # `CRAY' below since that goes against the whole autoconf philosophy. But
! 11532: # I think there is too great a chance that some non-Cray system has a
! 11533: # function named listmntent to risk the false positive.
! 11534:
! 11535: if test -z "$list_mounted_fs"; then
! 11536: # Cray UNICOS 9
! 11537: { echo "$as_me:$LINENO: checking for listmntent of Cray/Unicos-9" >&5
! 11538: echo $ECHO_N "checking for listmntent of Cray/Unicos-9... $ECHO_C" >&6; }
! 11539: if test "${fu_cv_sys_mounted_cray_listmntent+set}" = set; then
1.1.1.19 root 11540: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.6 root 11541: else
1.1.1.22! root 11542: fu_cv_sys_mounted_cray_listmntent=no
1.1.1.19 root 11543: cat >conftest.$ac_ext <<_ACEOF
11544: /* confdefs.h. */
11545: _ACEOF
11546: cat confdefs.h >>conftest.$ac_ext
11547: cat >>conftest.$ac_ext <<_ACEOF
11548: /* end confdefs.h. */
1.1.1.22! root 11549: #ifdef _CRAY
! 11550: yes
1.1.1.19 root 11551: #endif
1.1.1.22! root 11552:
1.1.1.19 root 11553: _ACEOF
1.1.1.6 root 11554: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.19 root 11555: $EGREP "yes" >/dev/null 2>&1; then
1.1.1.6 root 11556: test $ac_cv_func_listmntent = yes \
11557: && fu_cv_sys_mounted_cray_listmntent=yes
11558:
11559: fi
11560: rm -f conftest*
11561:
11562:
11563:
11564: fi
11565:
1.1.1.22! root 11566: { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_cray_listmntent" >&5
! 11567: echo "${ECHO_T}$fu_cv_sys_mounted_cray_listmntent" >&6; }
1.1.1.6 root 11568: if test $fu_cv_sys_mounted_cray_listmntent = yes; then
11569: list_mounted_fs=found
1.1.1.19 root 11570: cat >>confdefs.h <<\_ACEOF
1.1.1.6 root 11571: #define MOUNTED_LISTMNTENT 1
1.1.1.19 root 11572: _ACEOF
1.1.1.6 root 11573:
11574: fi
11575: fi
11576:
11577: if test $ac_cv_func_getmntent = yes; then
11578:
11579: # This system has the getmntent function.
11580: # Determine whether it's the one-argument variant or the two-argument one.
11581:
11582: if test -z "$list_mounted_fs"; then
11583: # 4.3BSD, SunOS, HP-UX, Dynix, Irix
1.1.1.22! root 11584: { echo "$as_me:$LINENO: checking for one-argument getmntent function" >&5
! 11585: echo $ECHO_N "checking for one-argument getmntent function... $ECHO_C" >&6; }
1.1.1.19 root 11586: if test "${fu_cv_sys_mounted_getmntent1+set}" = set; then
11587: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.6 root 11588: else
11589: test $ac_cv_header_mntent_h = yes \
11590: && fu_cv_sys_mounted_getmntent1=yes \
11591: || fu_cv_sys_mounted_getmntent1=no
11592: fi
11593:
1.1.1.22! root 11594: { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent1" >&5
! 11595: echo "${ECHO_T}$fu_cv_sys_mounted_getmntent1" >&6; }
1.1.1.6 root 11596: if test $fu_cv_sys_mounted_getmntent1 = yes; then
11597: list_mounted_fs=found
1.1.1.19 root 11598: cat >>confdefs.h <<\_ACEOF
1.1.1.6 root 11599: #define MOUNTED_GETMNTENT1 1
1.1.1.19 root 11600: _ACEOF
1.1.1.6 root 11601:
11602: fi
11603: fi
11604:
11605: if test -z "$list_mounted_fs"; then
11606: # SVR4
1.1.1.22! root 11607: { echo "$as_me:$LINENO: checking for two-argument getmntent function" >&5
! 11608: echo $ECHO_N "checking for two-argument getmntent function... $ECHO_C" >&6; }
1.1.1.19 root 11609: if test "${fu_cv_sys_mounted_getmntent2+set}" = set; then
11610: echo $ECHO_N "(cached) $ECHO_C" >&6
11611: else
11612: cat >conftest.$ac_ext <<_ACEOF
11613: /* confdefs.h. */
11614: _ACEOF
11615: cat confdefs.h >>conftest.$ac_ext
11616: cat >>conftest.$ac_ext <<_ACEOF
11617: /* end confdefs.h. */
1.1.1.6 root 11618: #include <sys/mnttab.h>
1.1.1.19 root 11619:
11620: _ACEOF
1.1.1.6 root 11621: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.19 root 11622: $EGREP "getmntent" >/dev/null 2>&1; then
1.1.1.6 root 11623: fu_cv_sys_mounted_getmntent2=yes
11624: else
11625: fu_cv_sys_mounted_getmntent2=no
11626: fi
11627: rm -f conftest*
11628:
11629: fi
11630:
1.1.1.22! root 11631: { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent2" >&5
! 11632: echo "${ECHO_T}$fu_cv_sys_mounted_getmntent2" >&6; }
1.1.1.6 root 11633: if test $fu_cv_sys_mounted_getmntent2 = yes; then
11634: list_mounted_fs=found
1.1.1.19 root 11635: cat >>confdefs.h <<\_ACEOF
1.1.1.6 root 11636: #define MOUNTED_GETMNTENT2 1
1.1.1.19 root 11637: _ACEOF
1.1.1.6 root 11638:
11639: fi
11640: fi
11641:
11642: if test -z "$list_mounted_fs"; then
1.1.1.19 root 11643: { { echo "$as_me:$LINENO: error: could not determine how to read list of mounted filesystems" >&5
11644: echo "$as_me: error: could not determine how to read list of mounted filesystems" >&2;}
11645: { (exit 1); exit 1; }; }
1.1.1.6 root 11646: fi
11647:
11648: fi
11649:
11650: if test -z "$list_mounted_fs"; then
11651: # DEC Alpha running OSF/1.
1.1.1.22! root 11652: { echo "$as_me:$LINENO: checking for getfsstat function" >&5
! 11653: echo $ECHO_N "checking for getfsstat function... $ECHO_C" >&6; }
1.1.1.19 root 11654: if test "${fu_cv_sys_mounted_getsstat+set}" = set; then
11655: echo $ECHO_N "(cached) $ECHO_C" >&6
11656: else
11657: cat >conftest.$ac_ext <<_ACEOF
11658: /* confdefs.h. */
11659: _ACEOF
11660: cat confdefs.h >>conftest.$ac_ext
11661: cat >>conftest.$ac_ext <<_ACEOF
11662: /* end confdefs.h. */
1.1.1.6 root 11663:
11664: #include <sys/types.h>
11665: #include <sys/mount.h>
11666: #include <sys/fs_types.h>
1.1.1.19 root 11667: int
11668: main ()
11669: {
1.1.1.6 root 11670: struct statfs *stats;
1.1.1.19 root 11671: int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT);
11672: ;
11673: return 0;
11674: }
11675: _ACEOF
11676: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22! root 11677: if { (ac_try="$ac_link"
! 11678: case "(($ac_try" in
! 11679: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11680: *) ac_try_echo=$ac_try;;
! 11681: esac
! 11682: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11683: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 11684: ac_status=$?
11685: grep -v '^ *+' conftest.er1 >conftest.err
11686: rm -f conftest.er1
11687: cat conftest.err >&5
11688: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 11689: (exit $ac_status); } && {
! 11690: test -z "$ac_c_werror_flag" ||
! 11691: test ! -s conftest.err
! 11692: } && test -s conftest$ac_exeext &&
! 11693: $as_test_x conftest$ac_exeext; then
1.1.1.6 root 11694: fu_cv_sys_mounted_getsstat=yes
11695: else
1.1.1.19 root 11696: echo "$as_me: failed program was:" >&5
11697: sed 's/^/| /' conftest.$ac_ext >&5
11698:
1.1.1.22! root 11699: fu_cv_sys_mounted_getsstat=no
1.1.1.6 root 11700: fi
1.1.1.22! root 11701:
! 11702: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 11703: conftest$ac_exeext conftest.$ac_ext
1.1.1.6 root 11704: fi
11705:
1.1.1.22! root 11706: { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getsstat" >&5
! 11707: echo "${ECHO_T}$fu_cv_sys_mounted_getsstat" >&6; }
1.1.1.6 root 11708: if test $fu_cv_sys_mounted_getsstat = yes; then
11709: list_mounted_fs=found
1.1.1.19 root 11710: cat >>confdefs.h <<\_ACEOF
1.1.1.6 root 11711: #define MOUNTED_GETFSSTAT 1
1.1.1.19 root 11712: _ACEOF
1.1.1.6 root 11713:
11714: fi
11715: fi
11716:
11717: if test -z "$list_mounted_fs"; then
11718: # AIX.
1.1.1.22! root 11719: { echo "$as_me:$LINENO: checking for mntctl function and struct vmount" >&5
! 11720: echo $ECHO_N "checking for mntctl function and struct vmount... $ECHO_C" >&6; }
1.1.1.19 root 11721: if test "${fu_cv_sys_mounted_vmount+set}" = set; then
11722: echo $ECHO_N "(cached) $ECHO_C" >&6
11723: else
11724: cat >conftest.$ac_ext <<_ACEOF
11725: /* confdefs.h. */
11726: _ACEOF
11727: cat confdefs.h >>conftest.$ac_ext
11728: cat >>conftest.$ac_ext <<_ACEOF
11729: /* end confdefs.h. */
1.1.1.6 root 11730: #include <fshelp.h>
1.1.1.19 root 11731: _ACEOF
1.1.1.22! root 11732: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 11733: case "(($ac_try" in
! 11734: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11735: *) ac_try_echo=$ac_try;;
! 11736: esac
! 11737: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11738: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.1.19 root 11739: ac_status=$?
11740: grep -v '^ *+' conftest.er1 >conftest.err
11741: rm -f conftest.er1
11742: cat conftest.err >&5
11743: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 11744: (exit $ac_status); } >/dev/null && {
! 11745: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 11746: test ! -s conftest.err
! 11747: }; then
1.1.1.6 root 11748: fu_cv_sys_mounted_vmount=yes
11749: else
1.1.1.19 root 11750: echo "$as_me: failed program was:" >&5
11751: sed 's/^/| /' conftest.$ac_ext >&5
11752:
1.1.1.6 root 11753: fu_cv_sys_mounted_vmount=no
11754: fi
1.1.1.22! root 11755:
1.1.1.19 root 11756: rm -f conftest.err conftest.$ac_ext
1.1.1.6 root 11757: fi
11758:
1.1.1.22! root 11759: { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_vmount" >&5
! 11760: echo "${ECHO_T}$fu_cv_sys_mounted_vmount" >&6; }
1.1.1.6 root 11761: if test $fu_cv_sys_mounted_vmount = yes; then
11762: list_mounted_fs=found
1.1.1.19 root 11763: cat >>confdefs.h <<\_ACEOF
1.1.1.6 root 11764: #define MOUNTED_VMOUNT 1
1.1.1.19 root 11765: _ACEOF
1.1.1.6 root 11766:
11767: fi
11768: fi
11769:
11770: if test -z "$list_mounted_fs"; then
11771: # SVR3
1.1.1.22! root 11772: { echo "$as_me:$LINENO: checking for FIXME existence of three headers" >&5
! 11773: echo $ECHO_N "checking for FIXME existence of three headers... $ECHO_C" >&6; }
1.1.1.19 root 11774: if test "${fu_cv_sys_mounted_fread_fstyp+set}" = set; then
11775: echo $ECHO_N "(cached) $ECHO_C" >&6
11776: else
11777: cat >conftest.$ac_ext <<_ACEOF
11778: /* confdefs.h. */
11779: _ACEOF
11780: cat confdefs.h >>conftest.$ac_ext
11781: cat >>conftest.$ac_ext <<_ACEOF
11782: /* end confdefs.h. */
1.1.1.6 root 11783:
11784: #include <sys/statfs.h>
11785: #include <sys/fstyp.h>
11786: #include <mnttab.h>
1.1.1.19 root 11787: _ACEOF
1.1.1.22! root 11788: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 11789: case "(($ac_try" in
! 11790: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11791: *) ac_try_echo=$ac_try;;
! 11792: esac
! 11793: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11794: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.1.19 root 11795: ac_status=$?
11796: grep -v '^ *+' conftest.er1 >conftest.err
11797: rm -f conftest.er1
11798: cat conftest.err >&5
11799: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 11800: (exit $ac_status); } >/dev/null && {
! 11801: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 11802: test ! -s conftest.err
! 11803: }; then
1.1.1.6 root 11804: fu_cv_sys_mounted_fread_fstyp=yes
11805: else
1.1.1.19 root 11806: echo "$as_me: failed program was:" >&5
11807: sed 's/^/| /' conftest.$ac_ext >&5
11808:
1.1.1.6 root 11809: fu_cv_sys_mounted_fread_fstyp=no
11810: fi
1.1.1.22! root 11811:
1.1.1.19 root 11812: rm -f conftest.err conftest.$ac_ext
1.1.1.6 root 11813: fi
11814:
1.1.1.22! root 11815: { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread_fstyp" >&5
! 11816: echo "${ECHO_T}$fu_cv_sys_mounted_fread_fstyp" >&6; }
1.1.1.6 root 11817: if test $fu_cv_sys_mounted_fread_fstyp = yes; then
11818: list_mounted_fs=found
1.1.1.19 root 11819: cat >>confdefs.h <<\_ACEOF
1.1.1.6 root 11820: #define MOUNTED_FREAD_FSTYP 1
1.1.1.19 root 11821: _ACEOF
1.1.1.6 root 11822:
11823: fi
11824: fi
11825:
11826: if test -z "$list_mounted_fs"; then
11827: # 4.4BSD and DEC OSF/1.
1.1.1.22! root 11828: { echo "$as_me:$LINENO: checking for getmntinfo function" >&5
! 11829: echo $ECHO_N "checking for getmntinfo function... $ECHO_C" >&6; }
1.1.1.19 root 11830: if test "${fu_cv_sys_mounted_getmntinfo+set}" = set; then
11831: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.6 root 11832: else
1.1.1.19 root 11833:
1.1.1.6 root 11834: ok=
11835: if test $ac_cv_func_getmntinfo = yes; then
1.1.1.19 root 11836: cat >conftest.$ac_ext <<_ACEOF
11837: /* confdefs.h. */
11838: _ACEOF
11839: cat confdefs.h >>conftest.$ac_ext
11840: cat >>conftest.$ac_ext <<_ACEOF
11841: /* end confdefs.h. */
1.1.1.6 root 11842: #include <sys/mount.h>
1.1.1.19 root 11843:
11844: _ACEOF
1.1.1.6 root 11845: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.19 root 11846: $EGREP "f_type;" >/dev/null 2>&1; then
1.1.1.6 root 11847: ok=yes
11848: fi
11849: rm -f conftest*
11850:
11851: fi
11852: test -n "$ok" \
11853: && fu_cv_sys_mounted_getmntinfo=yes \
11854: || fu_cv_sys_mounted_getmntinfo=no
11855:
11856: fi
11857:
1.1.1.22! root 11858: { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntinfo" >&5
! 11859: echo "${ECHO_T}$fu_cv_sys_mounted_getmntinfo" >&6; }
1.1.1.6 root 11860: if test $fu_cv_sys_mounted_getmntinfo = yes; then
11861: list_mounted_fs=found
1.1.1.19 root 11862: cat >>confdefs.h <<\_ACEOF
1.1.1.6 root 11863: #define MOUNTED_GETMNTINFO 1
1.1.1.19 root 11864: _ACEOF
1.1.1.6 root 11865:
11866: fi
11867: fi
11868:
11869: # FIXME: add a test for netbsd-1.1 here
11870:
11871: if test -z "$list_mounted_fs"; then
11872: # Ultrix
1.1.1.22! root 11873: { echo "$as_me:$LINENO: checking for getmnt function" >&5
! 11874: echo $ECHO_N "checking for getmnt function... $ECHO_C" >&6; }
1.1.1.19 root 11875: if test "${fu_cv_sys_mounted_getmnt+set}" = set; then
11876: echo $ECHO_N "(cached) $ECHO_C" >&6
11877: else
11878: cat >conftest.$ac_ext <<_ACEOF
11879: /* confdefs.h. */
11880: _ACEOF
11881: cat confdefs.h >>conftest.$ac_ext
11882: cat >>conftest.$ac_ext <<_ACEOF
11883: /* end confdefs.h. */
1.1.1.6 root 11884:
11885: #include <sys/fs_types.h>
11886: #include <sys/mount.h>
1.1.1.19 root 11887: _ACEOF
1.1.1.22! root 11888: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 11889: case "(($ac_try" in
! 11890: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11891: *) ac_try_echo=$ac_try;;
! 11892: esac
! 11893: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11894: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.1.19 root 11895: ac_status=$?
11896: grep -v '^ *+' conftest.er1 >conftest.err
11897: rm -f conftest.er1
11898: cat conftest.err >&5
11899: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 11900: (exit $ac_status); } >/dev/null && {
! 11901: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 11902: test ! -s conftest.err
! 11903: }; then
1.1.1.6 root 11904: fu_cv_sys_mounted_getmnt=yes
11905: else
1.1.1.19 root 11906: echo "$as_me: failed program was:" >&5
11907: sed 's/^/| /' conftest.$ac_ext >&5
11908:
1.1.1.6 root 11909: fu_cv_sys_mounted_getmnt=no
11910: fi
1.1.1.22! root 11911:
1.1.1.19 root 11912: rm -f conftest.err conftest.$ac_ext
1.1.1.6 root 11913: fi
11914:
1.1.1.22! root 11915: { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmnt" >&5
! 11916: echo "${ECHO_T}$fu_cv_sys_mounted_getmnt" >&6; }
1.1.1.6 root 11917: if test $fu_cv_sys_mounted_getmnt = yes; then
11918: list_mounted_fs=found
1.1.1.19 root 11919: cat >>confdefs.h <<\_ACEOF
1.1.1.6 root 11920: #define MOUNTED_GETMNT 1
1.1.1.19 root 11921: _ACEOF
1.1.1.6 root 11922:
11923: fi
11924: fi
11925:
11926: if test -z "$list_mounted_fs"; then
11927: # SVR2
1.1.1.22! root 11928: { echo "$as_me:$LINENO: checking whether it is possible to resort to fread on /etc/mnttab" >&5
! 11929: echo $ECHO_N "checking whether it is possible to resort to fread on /etc/mnttab... $ECHO_C" >&6; }
1.1.1.19 root 11930: if test "${fu_cv_sys_mounted_fread+set}" = set; then
11931: echo $ECHO_N "(cached) $ECHO_C" >&6
11932: else
11933: cat >conftest.$ac_ext <<_ACEOF
11934: /* confdefs.h. */
11935: _ACEOF
11936: cat confdefs.h >>conftest.$ac_ext
11937: cat >>conftest.$ac_ext <<_ACEOF
11938: /* end confdefs.h. */
1.1.1.6 root 11939: #include <mnttab.h>
1.1.1.19 root 11940: _ACEOF
1.1.1.22! root 11941: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 11942: case "(($ac_try" in
! 11943: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11944: *) ac_try_echo=$ac_try;;
! 11945: esac
! 11946: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11947: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.1.19 root 11948: ac_status=$?
11949: grep -v '^ *+' conftest.er1 >conftest.err
11950: rm -f conftest.er1
11951: cat conftest.err >&5
11952: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 11953: (exit $ac_status); } >/dev/null && {
! 11954: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 11955: test ! -s conftest.err
! 11956: }; then
1.1.1.6 root 11957: fu_cv_sys_mounted_fread=yes
11958: else
1.1.1.19 root 11959: echo "$as_me: failed program was:" >&5
11960: sed 's/^/| /' conftest.$ac_ext >&5
11961:
1.1.1.6 root 11962: fu_cv_sys_mounted_fread=no
11963: fi
1.1.1.22! root 11964:
1.1.1.19 root 11965: rm -f conftest.err conftest.$ac_ext
1.1.1.6 root 11966: fi
11967:
1.1.1.22! root 11968: { echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread" >&5
! 11969: echo "${ECHO_T}$fu_cv_sys_mounted_fread" >&6; }
1.1.1.6 root 11970: if test $fu_cv_sys_mounted_fread = yes; then
11971: list_mounted_fs=found
1.1.1.19 root 11972: cat >>confdefs.h <<\_ACEOF
1.1.1.6 root 11973: #define MOUNTED_FREAD 1
1.1.1.19 root 11974: _ACEOF
1.1.1.6 root 11975:
11976: fi
11977: fi
11978:
11979: if test -z "$list_mounted_fs"; then
1.1.1.19 root 11980: { { echo "$as_me:$LINENO: error: could not determine how to read list of mounted filesystems" >&5
11981: echo "$as_me: error: could not determine how to read list of mounted filesystems" >&2;}
11982: { (exit 1); exit 1; }; }
1.1.1.6 root 11983: # FIXME -- no need to abort building the whole package
11984: # Can't build mountlist.c or anything that needs its functions
11985: fi
11986:
1.1.1.19 root 11987: { echo "$as_me:$LINENO: checking how to get filesystem space usage..." >&5
11988: echo "$as_me: checking how to get filesystem space usage..." >&6;}
1.1.1.6 root 11989: space=no
11990:
11991: # Perform only the link test since it seems there are no variants of the
11992: # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
11993: # because that got a false positive on SCO OSR5. Adding the declaration
11994: # of a `struct statvfs' causes this test to fail (as it should) on such
11995: # systems. That system is reported to work fine with STAT_STATFS4 which
11996: # is what it gets when this test fails.
11997: if test $space = no; then
11998: # SVR4
1.1.1.22! root 11999: { echo "$as_me:$LINENO: checking statvfs function (SVR4)" >&5
! 12000: echo $ECHO_N "checking statvfs function (SVR4)... $ECHO_C" >&6; }
1.1.1.19 root 12001: if test "${fu_cv_sys_stat_statvfs+set}" = set; then
12002: echo $ECHO_N "(cached) $ECHO_C" >&6
12003: else
12004: cat >conftest.$ac_ext <<_ACEOF
12005: /* confdefs.h. */
12006: _ACEOF
12007: cat confdefs.h >>conftest.$ac_ext
12008: cat >>conftest.$ac_ext <<_ACEOF
12009: /* end confdefs.h. */
1.1.1.6 root 12010: #include <sys/types.h>
12011: #include <sys/statvfs.h>
1.1.1.19 root 12012: int
12013: main ()
12014: {
1.1.1.6 root 12015: struct statvfs fsd; statvfs (0, &fsd);
1.1.1.19 root 12016: ;
12017: return 0;
12018: }
12019: _ACEOF
12020: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22! root 12021: if { (ac_try="$ac_link"
! 12022: case "(($ac_try" in
! 12023: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12024: *) ac_try_echo=$ac_try;;
! 12025: esac
! 12026: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12027: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 12028: ac_status=$?
12029: grep -v '^ *+' conftest.er1 >conftest.err
12030: rm -f conftest.er1
12031: cat conftest.err >&5
12032: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 12033: (exit $ac_status); } && {
! 12034: test -z "$ac_c_werror_flag" ||
! 12035: test ! -s conftest.err
! 12036: } && test -s conftest$ac_exeext &&
! 12037: $as_test_x conftest$ac_exeext; then
1.1.1.6 root 12038: fu_cv_sys_stat_statvfs=yes
12039: else
1.1.1.19 root 12040: echo "$as_me: failed program was:" >&5
12041: sed 's/^/| /' conftest.$ac_ext >&5
12042:
1.1.1.22! root 12043: fu_cv_sys_stat_statvfs=no
1.1.1.6 root 12044: fi
1.1.1.22! root 12045:
! 12046: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 12047: conftest$ac_exeext conftest.$ac_ext
1.1.1.6 root 12048: fi
1.1.1.22! root 12049: { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
! 12050: echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6; }
1.1.1.6 root 12051: if test $fu_cv_sys_stat_statvfs = yes; then
12052: space=yes
1.1.1.19 root 12053: cat >>confdefs.h <<\_ACEOF
1.1.1.6 root 12054: #define STAT_STATVFS 1
1.1.1.19 root 12055: _ACEOF
1.1.1.6 root 12056:
12057: fi
12058: fi
12059:
12060: if test $space = no; then
12061: # DEC Alpha running OSF/1
1.1.1.22! root 12062: { echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
! 12063: echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6; }
1.1.1.19 root 12064: if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
12065: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.6 root 12066: else
12067: if test "$cross_compiling" = yes; then
12068: fu_cv_sys_stat_statfs3_osf1=no
12069: else
1.1.1.19 root 12070: cat >conftest.$ac_ext <<_ACEOF
12071: /* confdefs.h. */
12072: _ACEOF
12073: cat confdefs.h >>conftest.$ac_ext
12074: cat >>conftest.$ac_ext <<_ACEOF
12075: /* end confdefs.h. */
1.1.1.6 root 12076:
12077: #include <sys/param.h>
12078: #include <sys/types.h>
12079: #include <sys/mount.h>
12080: main ()
12081: {
12082: struct statfs fsd;
12083: fsd.f_fsize = 0;
12084: exit (statfs (".", &fsd, sizeof (struct statfs)));
12085: }
1.1.1.19 root 12086: _ACEOF
12087: rm -f conftest$ac_exeext
1.1.1.22! root 12088: if { (ac_try="$ac_link"
! 12089: case "(($ac_try" in
! 12090: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12091: *) ac_try_echo=$ac_try;;
! 12092: esac
! 12093: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12094: (eval "$ac_link") 2>&5
1.1.1.19 root 12095: ac_status=$?
12096: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.22! root 12098: { (case "(($ac_try" in
! 12099: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12100: *) ac_try_echo=$ac_try;;
! 12101: esac
! 12102: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12103: (eval "$ac_try") 2>&5
1.1.1.19 root 12104: ac_status=$?
12105: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106: (exit $ac_status); }; }; then
1.1.1.6 root 12107: fu_cv_sys_stat_statfs3_osf1=yes
12108: else
1.1.1.19 root 12109: echo "$as_me: program exited with status $ac_status" >&5
12110: echo "$as_me: failed program was:" >&5
12111: sed 's/^/| /' conftest.$ac_ext >&5
12112:
12113: ( exit $ac_status )
12114: fu_cv_sys_stat_statfs3_osf1=no
1.1.1.6 root 12115: fi
1.1.1.22! root 12116: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.6 root 12117: fi
1.1.1.22! root 12118:
! 12119:
1.1.1.6 root 12120: fi
12121:
1.1.1.22! root 12122: { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
! 12123: echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6; }
1.1.1.6 root 12124: if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12125: space=yes
1.1.1.19 root 12126: cat >>confdefs.h <<\_ACEOF
1.1.1.6 root 12127: #define STAT_STATFS3_OSF1 1
1.1.1.19 root 12128: _ACEOF
1.1.1.6 root 12129:
12130: fi
12131: fi
12132:
12133: if test $space = no; then
12134: # AIX
1.1.1.22! root 12135: { echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
! 12136: echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6; }
1.1.1.19 root 12137: if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
12138: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.6 root 12139: else
12140: if test "$cross_compiling" = yes; then
12141: fu_cv_sys_stat_statfs2_bsize=no
12142: else
1.1.1.19 root 12143: cat >conftest.$ac_ext <<_ACEOF
12144: /* confdefs.h. */
12145: _ACEOF
12146: cat confdefs.h >>conftest.$ac_ext
12147: cat >>conftest.$ac_ext <<_ACEOF
12148: /* end confdefs.h. */
1.1.1.6 root 12149:
12150: #ifdef HAVE_SYS_PARAM_H
12151: #include <sys/param.h>
12152: #endif
12153: #ifdef HAVE_SYS_MOUNT_H
12154: #include <sys/mount.h>
12155: #endif
12156: #ifdef HAVE_SYS_VFS_H
12157: #include <sys/vfs.h>
12158: #endif
12159: main ()
12160: {
12161: struct statfs fsd;
12162: fsd.f_bsize = 0;
12163: exit (statfs (".", &fsd));
12164: }
1.1.1.19 root 12165: _ACEOF
12166: rm -f conftest$ac_exeext
1.1.1.22! root 12167: if { (ac_try="$ac_link"
! 12168: case "(($ac_try" in
! 12169: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12170: *) ac_try_echo=$ac_try;;
! 12171: esac
! 12172: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12173: (eval "$ac_link") 2>&5
1.1.1.19 root 12174: ac_status=$?
12175: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.22! root 12177: { (case "(($ac_try" in
! 12178: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12179: *) ac_try_echo=$ac_try;;
! 12180: esac
! 12181: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12182: (eval "$ac_try") 2>&5
1.1.1.19 root 12183: ac_status=$?
12184: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185: (exit $ac_status); }; }; then
1.1.1.6 root 12186: fu_cv_sys_stat_statfs2_bsize=yes
12187: else
1.1.1.19 root 12188: echo "$as_me: program exited with status $ac_status" >&5
12189: echo "$as_me: failed program was:" >&5
12190: sed 's/^/| /' conftest.$ac_ext >&5
12191:
12192: ( exit $ac_status )
12193: fu_cv_sys_stat_statfs2_bsize=no
1.1.1.6 root 12194: fi
1.1.1.22! root 12195: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.6 root 12196: fi
1.1.1.22! root 12197:
! 12198:
1.1.1.6 root 12199: fi
12200:
1.1.1.22! root 12201: { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
! 12202: echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6; }
1.1.1.6 root 12203: if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12204: space=yes
1.1.1.19 root 12205: cat >>confdefs.h <<\_ACEOF
1.1.1.6 root 12206: #define STAT_STATFS2_BSIZE 1
1.1.1.19 root 12207: _ACEOF
1.1.1.6 root 12208:
12209: fi
12210: fi
12211:
12212: if test $space = no; then
12213: # SVR3
1.1.1.22! root 12214: { echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
! 12215: echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6; }
1.1.1.19 root 12216: if test "${fu_cv_sys_stat_statfs4+set}" = set; then
12217: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.6 root 12218: else
12219: if test "$cross_compiling" = yes; then
12220: fu_cv_sys_stat_statfs4=no
12221: else
1.1.1.19 root 12222: cat >conftest.$ac_ext <<_ACEOF
12223: /* confdefs.h. */
12224: _ACEOF
12225: cat confdefs.h >>conftest.$ac_ext
12226: cat >>conftest.$ac_ext <<_ACEOF
12227: /* end confdefs.h. */
1.1.1.6 root 12228: #include <sys/types.h>
12229: #include <sys/statfs.h>
12230: main ()
12231: {
12232: struct statfs fsd;
12233: exit (statfs (".", &fsd, sizeof fsd, 0));
12234: }
1.1.1.19 root 12235: _ACEOF
12236: rm -f conftest$ac_exeext
1.1.1.22! root 12237: if { (ac_try="$ac_link"
! 12238: case "(($ac_try" in
! 12239: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12240: *) ac_try_echo=$ac_try;;
! 12241: esac
! 12242: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12243: (eval "$ac_link") 2>&5
1.1.1.19 root 12244: ac_status=$?
12245: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.22! root 12247: { (case "(($ac_try" in
! 12248: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12249: *) ac_try_echo=$ac_try;;
! 12250: esac
! 12251: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12252: (eval "$ac_try") 2>&5
1.1.1.19 root 12253: ac_status=$?
12254: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255: (exit $ac_status); }; }; then
1.1.1.6 root 12256: fu_cv_sys_stat_statfs4=yes
12257: else
1.1.1.19 root 12258: echo "$as_me: program exited with status $ac_status" >&5
12259: echo "$as_me: failed program was:" >&5
12260: sed 's/^/| /' conftest.$ac_ext >&5
12261:
12262: ( exit $ac_status )
12263: fu_cv_sys_stat_statfs4=no
1.1.1.6 root 12264: fi
1.1.1.22! root 12265: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.6 root 12266: fi
1.1.1.22! root 12267:
! 12268:
1.1.1.6 root 12269: fi
12270:
1.1.1.22! root 12271: { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
! 12272: echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6; }
1.1.1.6 root 12273: if test $fu_cv_sys_stat_statfs4 = yes; then
12274: space=yes
1.1.1.19 root 12275: cat >>confdefs.h <<\_ACEOF
1.1.1.6 root 12276: #define STAT_STATFS4 1
1.1.1.19 root 12277: _ACEOF
1.1.1.6 root 12278:
12279: fi
12280: fi
12281:
12282: if test $space = no; then
12283: # 4.4BSD and NetBSD
1.1.1.22! root 12284: { echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
! 12285: echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6; }
1.1.1.19 root 12286: if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
12287: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.6 root 12288: else
12289: if test "$cross_compiling" = yes; then
12290: fu_cv_sys_stat_statfs2_fsize=no
12291: else
1.1.1.19 root 12292: cat >conftest.$ac_ext <<_ACEOF
12293: /* confdefs.h. */
12294: _ACEOF
12295: cat confdefs.h >>conftest.$ac_ext
12296: cat >>conftest.$ac_ext <<_ACEOF
12297: /* end confdefs.h. */
1.1.1.6 root 12298: #include <sys/types.h>
12299: #ifdef HAVE_SYS_PARAM_H
12300: #include <sys/param.h>
12301: #endif
12302: #ifdef HAVE_SYS_MOUNT_H
12303: #include <sys/mount.h>
12304: #endif
12305: main ()
12306: {
12307: struct statfs fsd;
12308: fsd.f_fsize = 0;
12309: exit (statfs (".", &fsd));
12310: }
1.1.1.19 root 12311: _ACEOF
12312: rm -f conftest$ac_exeext
1.1.1.22! root 12313: if { (ac_try="$ac_link"
! 12314: case "(($ac_try" in
! 12315: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12316: *) ac_try_echo=$ac_try;;
! 12317: esac
! 12318: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12319: (eval "$ac_link") 2>&5
1.1.1.19 root 12320: ac_status=$?
12321: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.22! root 12323: { (case "(($ac_try" in
! 12324: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12325: *) ac_try_echo=$ac_try;;
! 12326: esac
! 12327: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12328: (eval "$ac_try") 2>&5
1.1.1.19 root 12329: ac_status=$?
12330: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331: (exit $ac_status); }; }; then
1.1.1.6 root 12332: fu_cv_sys_stat_statfs2_fsize=yes
12333: else
1.1.1.19 root 12334: echo "$as_me: program exited with status $ac_status" >&5
12335: echo "$as_me: failed program was:" >&5
12336: sed 's/^/| /' conftest.$ac_ext >&5
12337:
12338: ( exit $ac_status )
12339: fu_cv_sys_stat_statfs2_fsize=no
1.1.1.6 root 12340: fi
1.1.1.22! root 12341: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.6 root 12342: fi
1.1.1.22! root 12343:
! 12344:
1.1.1.6 root 12345: fi
12346:
1.1.1.22! root 12347: { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
! 12348: echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6; }
1.1.1.6 root 12349: if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12350: space=yes
1.1.1.19 root 12351: cat >>confdefs.h <<\_ACEOF
1.1.1.6 root 12352: #define STAT_STATFS2_FSIZE 1
1.1.1.19 root 12353: _ACEOF
1.1.1.6 root 12354:
12355: fi
12356: fi
12357:
12358: if test $space = no; then
12359: # Ultrix
1.1.1.22! root 12360: { echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
! 12361: echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6; }
1.1.1.19 root 12362: if test "${fu_cv_sys_stat_fs_data+set}" = set; then
12363: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.6 root 12364: else
12365: if test "$cross_compiling" = yes; then
12366: fu_cv_sys_stat_fs_data=no
12367: else
1.1.1.19 root 12368: cat >conftest.$ac_ext <<_ACEOF
12369: /* confdefs.h. */
12370: _ACEOF
12371: cat confdefs.h >>conftest.$ac_ext
12372: cat >>conftest.$ac_ext <<_ACEOF
12373: /* end confdefs.h. */
1.1.1.6 root 12374: #include <sys/types.h>
12375: #ifdef HAVE_SYS_PARAM_H
12376: #include <sys/param.h>
12377: #endif
12378: #ifdef HAVE_SYS_MOUNT_H
12379: #include <sys/mount.h>
12380: #endif
12381: #ifdef HAVE_SYS_FS_TYPES_H
12382: #include <sys/fs_types.h>
12383: #endif
12384: main ()
12385: {
12386: struct fs_data fsd;
12387: /* Ultrix's statfs returns 1 for success,
12388: 0 for not mounted, -1 for failure. */
12389: exit (statfs (".", &fsd) != 1);
12390: }
1.1.1.19 root 12391: _ACEOF
12392: rm -f conftest$ac_exeext
1.1.1.22! root 12393: if { (ac_try="$ac_link"
! 12394: case "(($ac_try" in
! 12395: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12396: *) ac_try_echo=$ac_try;;
! 12397: esac
! 12398: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12399: (eval "$ac_link") 2>&5
1.1.1.19 root 12400: ac_status=$?
12401: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.22! root 12403: { (case "(($ac_try" in
! 12404: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12405: *) ac_try_echo=$ac_try;;
! 12406: esac
! 12407: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12408: (eval "$ac_try") 2>&5
1.1.1.19 root 12409: ac_status=$?
12410: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411: (exit $ac_status); }; }; then
1.1.1.6 root 12412: fu_cv_sys_stat_fs_data=yes
12413: else
1.1.1.19 root 12414: echo "$as_me: program exited with status $ac_status" >&5
12415: echo "$as_me: failed program was:" >&5
12416: sed 's/^/| /' conftest.$ac_ext >&5
12417:
12418: ( exit $ac_status )
12419: fu_cv_sys_stat_fs_data=no
1.1.1.6 root 12420: fi
1.1.1.22! root 12421: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.6 root 12422: fi
1.1.1.22! root 12423:
! 12424:
1.1.1.6 root 12425: fi
12426:
1.1.1.22! root 12427: { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
! 12428: echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6; }
1.1.1.6 root 12429: if test $fu_cv_sys_stat_fs_data = yes; then
12430: space=yes
1.1.1.19 root 12431: cat >>confdefs.h <<\_ACEOF
1.1.1.6 root 12432: #define STAT_STATFS2_FS_DATA 1
1.1.1.19 root 12433: _ACEOF
1.1.1.6 root 12434:
12435: fi
12436: fi
12437:
12438: if test $space = no; then
12439: # SVR2
1.1.1.19 root 12440: cat >conftest.$ac_ext <<_ACEOF
12441: /* confdefs.h. */
12442: _ACEOF
12443: cat confdefs.h >>conftest.$ac_ext
12444: cat >>conftest.$ac_ext <<_ACEOF
12445: /* end confdefs.h. */
1.1.1.6 root 12446: #include <sys/filsys.h>
1.1.1.19 root 12447: _ACEOF
1.1.1.22! root 12448: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 12449: case "(($ac_try" in
! 12450: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12451: *) ac_try_echo=$ac_try;;
! 12452: esac
! 12453: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12454: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1.1.19 root 12455: ac_status=$?
12456: grep -v '^ *+' conftest.er1 >conftest.err
12457: rm -f conftest.er1
12458: cat conftest.err >&5
12459: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 12460: (exit $ac_status); } >/dev/null && {
! 12461: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 12462: test ! -s conftest.err
! 12463: }; then
1.1.1.19 root 12464: cat >>confdefs.h <<\_ACEOF
1.1.1.6 root 12465: #define STAT_READ_FILSYS 1
1.1.1.19 root 12466: _ACEOF
1.1.1.6 root 12467: space=yes
12468: else
1.1.1.19 root 12469: echo "$as_me: failed program was:" >&5
12470: sed 's/^/| /' conftest.$ac_ext >&5
12471:
12472:
1.1.1.6 root 12473: fi
1.1.1.22! root 12474:
1.1.1.19 root 12475: rm -f conftest.err conftest.$ac_ext
1.1.1.6 root 12476: fi
12477:
12478: if test -n "$list_mounted_fs" && test $space != no; then
12479: DF_PROG="df"
1.1.1.22! root 12480: case " $LIBOBJS " in
1.1.1.19 root 12481: *" fsusage.$ac_objext "* ) ;;
1.1.1.22! root 12482: *) LIBOBJS="$LIBOBJS fsusage.$ac_objext"
! 12483: ;;
1.1.1.19 root 12484: esac
12485:
1.1.1.22! root 12486: case " $LIBOBJS " in
1.1.1.19 root 12487: *" mountlist.$ac_objext "* ) ;;
1.1.1.22! root 12488: *) LIBOBJS="$LIBOBJS mountlist.$ac_objext"
! 12489: ;;
1.1.1.19 root 12490: esac
12491:
1.1.1.6 root 12492: fi
1.1.1.4 root 12493:
1.1.1.19 root 12494:
1.1.1.6 root 12495: for ac_func in ftruncate
1.1.1.4 root 12496: do
1.1.1.19 root 12497: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.1.1.22! root 12498: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 12499: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 12500: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.1.1.19 root 12501: echo $ECHO_N "(cached) $ECHO_C" >&6
12502: else
12503: cat >conftest.$ac_ext <<_ACEOF
12504: /* confdefs.h. */
12505: _ACEOF
12506: cat confdefs.h >>conftest.$ac_ext
12507: cat >>conftest.$ac_ext <<_ACEOF
12508: /* end confdefs.h. */
12509: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12510: For example, HP-UX 11i <limits.h> declares gettimeofday. */
12511: #define $ac_func innocuous_$ac_func
12512:
1.1.1.4 root 12513: /* System header to define __stub macros and hopefully few prototypes,
1.1.1.19 root 12514: which can conflict with char $ac_func (); below.
12515: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12516: <limits.h> exists even on freestanding compilers. */
12517:
12518: #ifdef __STDC__
12519: # include <limits.h>
12520: #else
12521: # include <assert.h>
12522: #endif
1.1.1.4 root 12523:
1.1.1.19 root 12524: #undef $ac_func
1.1.1.4 root 12525:
1.1.1.22! root 12526: /* Override any GCC internal prototype to avoid an error.
! 12527: Use char because int might match the return type of a GCC
! 12528: builtin and then its argument prototype would still apply. */
1.1.1.19 root 12529: #ifdef __cplusplus
12530: extern "C"
12531: #endif
12532: char $ac_func ();
1.1.1.4 root 12533: /* The GNU C library defines this for functions which it implements
12534: to always fail with ENOSYS. Some functions are actually named
12535: something starting with __ and the normal name is an alias. */
1.1.1.22! root 12536: #if defined __stub_$ac_func || defined __stub___$ac_func
1.1.1.4 root 12537: choke me
12538: #endif
1.1 root 12539:
1.1.1.19 root 12540: int
12541: main ()
12542: {
1.1.1.22! root 12543: return $ac_func ();
1.1.1.19 root 12544: ;
12545: return 0;
12546: }
12547: _ACEOF
12548: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22! root 12549: if { (ac_try="$ac_link"
! 12550: case "(($ac_try" in
! 12551: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12552: *) ac_try_echo=$ac_try;;
! 12553: esac
! 12554: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12555: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 12556: ac_status=$?
12557: grep -v '^ *+' conftest.er1 >conftest.err
12558: rm -f conftest.er1
12559: cat conftest.err >&5
12560: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 12561: (exit $ac_status); } && {
! 12562: test -z "$ac_c_werror_flag" ||
! 12563: test ! -s conftest.err
! 12564: } && test -s conftest$ac_exeext &&
! 12565: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 12566: eval "$as_ac_var=yes"
12567: else
12568: echo "$as_me: failed program was:" >&5
12569: sed 's/^/| /' conftest.$ac_ext >&5
12570:
1.1.1.22! root 12571: eval "$as_ac_var=no"
1.1.1.19 root 12572: fi
1.1.1.22! root 12573:
! 12574: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 12575: conftest$ac_exeext conftest.$ac_ext
12576: fi
1.1.1.22! root 12577: ac_res=`eval echo '${'$as_ac_var'}'`
! 12578: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 12579: echo "${ECHO_T}$ac_res" >&6; }
1.1.1.19 root 12580: if test `eval echo '${'$as_ac_var'}'` = yes; then
12581: cat >>confdefs.h <<_ACEOF
12582: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12583: _ACEOF
1.1.1.4 root 12584:
1.1 root 12585: else
1.1.1.19 root 12586: ftruncate_missing=yes
1.1 root 12587: fi
12588: done
12589:
12590:
1.1.1.6 root 12591: if test "$ftruncate_missing" = yes; then
1.1.1.22! root 12592: { echo "$as_me:$LINENO: checking fcntl emulation of ftruncate" >&5
! 12593: echo $ECHO_N "checking fcntl emulation of ftruncate... $ECHO_C" >&6; }
1.1.1.19 root 12594: if test "${fu_cv_sys_ftruncate_emulation+set}" = set; then
12595: echo $ECHO_N "(cached) $ECHO_C" >&6
12596: else
12597: cat >conftest.$ac_ext <<_ACEOF
12598: /* confdefs.h. */
12599: _ACEOF
12600: cat confdefs.h >>conftest.$ac_ext
12601: cat >>conftest.$ac_ext <<_ACEOF
12602: /* end confdefs.h. */
1.1 root 12603:
1.1.1.2 root 12604: #include <sys/types.h>
1.1.1.6 root 12605: #include <fcntl.h>
1.1.1.19 root 12606: int
12607: main ()
12608: {
1.1.1.6 root 12609:
12610: #if !defined(F_CHSIZE) && !defined(F_FREESP)
12611: chsize();
12612: #endif
12613:
1.1.1.19 root 12614: ;
12615: return 0;
12616: }
12617: _ACEOF
12618: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22! root 12619: if { (ac_try="$ac_link"
! 12620: case "(($ac_try" in
! 12621: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12622: *) ac_try_echo=$ac_try;;
! 12623: esac
! 12624: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12625: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 12626: ac_status=$?
12627: grep -v '^ *+' conftest.er1 >conftest.err
12628: rm -f conftest.er1
12629: cat conftest.err >&5
12630: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 12631: (exit $ac_status); } && {
! 12632: test -z "$ac_c_werror_flag" ||
! 12633: test ! -s conftest.err
! 12634: } && test -s conftest$ac_exeext &&
! 12635: $as_test_x conftest$ac_exeext; then
1.1.1.6 root 12636: fu_cv_sys_ftruncate_emulation=yes
1.1 root 12637: else
1.1.1.19 root 12638: echo "$as_me: failed program was:" >&5
12639: sed 's/^/| /' conftest.$ac_ext >&5
12640:
1.1.1.22! root 12641: fu_cv_sys_ftruncate_emulation=no
1.1 root 12642: fi
1.1.1.22! root 12643:
! 12644: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 12645: conftest$ac_exeext conftest.$ac_ext
1.1 root 12646: fi
12647:
1.1.1.22! root 12648: { echo "$as_me:$LINENO: result: $fu_cv_sys_ftruncate_emulation" >&5
! 12649: echo "${ECHO_T}$fu_cv_sys_ftruncate_emulation" >&6; }
1.1.1.6 root 12650: if test $fu_cv_sys_ftruncate_emulation = yes; then
1.1.1.22! root 12651: case " $LIBOBJS " in
1.1.1.19 root 12652: *" ftruncate.$ac_objext "* ) ;;
1.1.1.22! root 12653: *) LIBOBJS="$LIBOBJS ftruncate.$ac_objext"
! 12654: ;;
1.1.1.19 root 12655: esac
12656:
1.1.1.6 root 12657: fi
12658: fi
12659:
12660: # Check for SunOS statfs brokenness wrt partitions 2GB and larger.
12661: # If <sys/vfs.h> exists and struct statfs has a member named f_spare,
12662: # enable the work-around code in fsusage.c.
1.1.1.22! root 12663: { echo "$as_me:$LINENO: checking for statfs that truncates block counts" >&5
! 12664: echo $ECHO_N "checking for statfs that truncates block counts... $ECHO_C" >&6; }
1.1.1.19 root 12665: if test "${fu_cv_sys_truncating_statfs+set}" = set; then
12666: echo $ECHO_N "(cached) $ECHO_C" >&6
12667: else
12668: cat >conftest.$ac_ext <<_ACEOF
12669: /* confdefs.h. */
12670: _ACEOF
12671: cat confdefs.h >>conftest.$ac_ext
12672: cat >>conftest.$ac_ext <<_ACEOF
12673: /* end confdefs.h. */
1.1 root 12674:
1.1.1.6 root 12675: #if !defined(sun) && !defined(__sun)
12676: choke -- this is a workaround for a Sun-specific problem
1.1 root 12677: #endif
1.1.1.6 root 12678: #include <sys/types.h>
1.1 root 12679: #include <sys/vfs.h>
1.1.1.19 root 12680: int
12681: main ()
12682: {
1.1.1.6 root 12683: struct statfs t; long c = *(t.f_spare);
1.1.1.19 root 12684: ;
12685: return 0;
12686: }
12687: _ACEOF
12688: rm -f conftest.$ac_objext
1.1.1.22! root 12689: if { (ac_try="$ac_compile"
! 12690: case "(($ac_try" in
! 12691: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12692: *) ac_try_echo=$ac_try;;
! 12693: esac
! 12694: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12695: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 12696: ac_status=$?
12697: grep -v '^ *+' conftest.er1 >conftest.err
12698: rm -f conftest.er1
12699: cat conftest.err >&5
12700: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 12701: (exit $ac_status); } && {
! 12702: test -z "$ac_c_werror_flag" ||
! 12703: test ! -s conftest.err
! 12704: } && test -s conftest.$ac_objext; then
1.1.1.6 root 12705: fu_cv_sys_truncating_statfs=yes
1.1 root 12706: else
1.1.1.19 root 12707: echo "$as_me: failed program was:" >&5
12708: sed 's/^/| /' conftest.$ac_ext >&5
12709:
1.1.1.22! root 12710: fu_cv_sys_truncating_statfs=no
1.1.1.6 root 12711: fi
1.1.1.22! root 12712:
! 12713: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.6 root 12714: fi
12715:
12716: if test $fu_cv_sys_truncating_statfs = yes; then
1.1.1.19 root 12717: cat >>confdefs.h <<\_ACEOF
1.1.1.6 root 12718: #define STATFS_TRUNCATES_BLOCK_COUNTS 1
1.1.1.19 root 12719: _ACEOF
1.1.1.6 root 12720:
12721: fi
1.1.1.22! root 12722: { echo "$as_me:$LINENO: result: $fu_cv_sys_truncating_statfs" >&5
! 12723: echo "${ECHO_T}$fu_cv_sys_truncating_statfs" >&6; }
1.1.1.6 root 12724:
1.1.1.19 root 12725: { echo "$as_me:$LINENO: checking for AFS..." >&5
12726: echo "$as_me: checking for AFS..." >&6;}
12727: test -d /afs && cat >>confdefs.h <<\_ACEOF
1.1.1.6 root 12728: #define AFS 1
1.1.1.19 root 12729: _ACEOF
1.1.1.6 root 12730:
12731:
12732: fi
12733:
12734: if [ $target = "p.os" ]; then
12735: HAVE_POS=yes
12736: else
1.1.1.22! root 12737: { echo "$as_me:$LINENO: checking for pOS" >&5
! 12738: echo $ECHO_N "checking for pOS... $ECHO_C" >&6; }
1.1.1.19 root 12739: cat >conftest.$ac_ext <<_ACEOF
12740: /* confdefs.h. */
12741: _ACEOF
12742: cat confdefs.h >>conftest.$ac_ext
12743: cat >>conftest.$ac_ext <<_ACEOF
12744: /* end confdefs.h. */
1.1.1.6 root 12745: #ifdef __POS__
12746: yes
12747: #endif
1.1.1.19 root 12748:
12749: _ACEOF
1.1.1.6 root 12750: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.19 root 12751: $EGREP "yes" >/dev/null 2>&1; then
1.1.1.22! root 12752: { echo "$as_me:$LINENO: result: yes" >&5
! 12753: echo "${ECHO_T}yes" >&6; }; HAVE_POS=yes
1.1.1.6 root 12754: else
1.1.1.22! root 12755: { echo "$as_me:$LINENO: result: no" >&5
! 12756: echo "${ECHO_T}no" >&6; }; HAVE_POS=no
1.1 root 12757: fi
12758: rm -f conftest*
1.1.1.6 root 12759:
1.1 root 12760: fi
12761:
1.1.1.16 root 12762: if test "$SDL_CONFIG" = "not-found" ; then
12763: HAVE_SDL_LIB=no
12764: else
12765: HAVE_SDL_LIB=yes
12766: SDL_CFLAGS=`$SDL_CONFIG --cflags`
12767: SDL_LIBS=`$SDL_CONFIG --libs`
12768: fi
12769:
12770:
1.1.1.2 root 12771:
1.1.1.4 root 12772: if [ "x$HAVE_NCURSES_LIB" = "xyes" ]; then
12773: if [ "x$ac_cv_header_ncurses_h" = "xno" -a "x$ac_cv_header_curses_h" = "xno" ]; then
12774: echo "Installation problem, found libncurses but neither curses.h nor ncurses.h!"
12775: HAVE_NCURSES_LIB=no
12776: NR_ERRORS=`expr $NR_ERRORS + 1`
12777: else
12778: if [ "x$ac_cv_header_ncurses_h" = "xno" ]; then
1.1.1.22! root 12779: { echo "$as_me:$LINENO: checking for attr_t in curses.h" >&5
! 12780: echo $ECHO_N "checking for attr_t in curses.h... $ECHO_C" >&6; }
1.1.1.19 root 12781: cat >conftest.$ac_ext <<_ACEOF
12782: /* confdefs.h. */
12783: _ACEOF
12784: cat confdefs.h >>conftest.$ac_ext
12785: cat >>conftest.$ac_ext <<_ACEOF
12786: /* end confdefs.h. */
1.1.1.4 root 12787: #include <curses.h>
1.1.1.19 root 12788: int
12789: main ()
12790: {
1.1.1.4 root 12791: { attr_t a; a = A_NORMAL; }
1.1.1.19 root 12792: ;
12793: return 0;
12794: }
12795: _ACEOF
12796: rm -f conftest.$ac_objext
1.1.1.22! root 12797: if { (ac_try="$ac_compile"
! 12798: case "(($ac_try" in
! 12799: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12800: *) ac_try_echo=$ac_try;;
! 12801: esac
! 12802: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12803: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 12804: ac_status=$?
12805: grep -v '^ *+' conftest.er1 >conftest.err
12806: rm -f conftest.er1
12807: cat conftest.err >&5
12808: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 12809: (exit $ac_status); } && {
! 12810: test -z "$ac_c_werror_flag" ||
! 12811: test ! -s conftest.err
! 12812: } && test -s conftest.$ac_objext; then
! 12813: { echo "$as_me:$LINENO: result: yes" >&5
! 12814: echo "${ECHO_T}yes" >&6; }
1.1.1.19 root 12815: else
12816: echo "$as_me: failed program was:" >&5
12817: sed 's/^/| /' conftest.$ac_ext >&5
12818:
12819:
1.1.1.4 root 12820: ADDITIONAL_CFLAGS="$ADDITIONAL_CFLAGS -DDONT_HAVE_ATTR_T"
1.1.1.22! root 12821: { echo "$as_me:$LINENO: result: no" >&5
! 12822: echo "${ECHO_T}no" >&6; }
1.1.1.4 root 12823: NR_WARNINGS=`expr $NR_WARNINGS + 1`
12824: echo "Please install a newer version of libncurses if you can."
1.1.1.19 root 12825:
1.1.1.4 root 12826: fi
1.1.1.22! root 12827:
! 12828: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.4 root 12829: else
1.1.1.22! root 12830: { echo "$as_me:$LINENO: checking for attr_t in ncurses.h" >&5
! 12831: echo $ECHO_N "checking for attr_t in ncurses.h... $ECHO_C" >&6; }
1.1.1.19 root 12832: cat >conftest.$ac_ext <<_ACEOF
12833: /* confdefs.h. */
12834: _ACEOF
12835: cat confdefs.h >>conftest.$ac_ext
12836: cat >>conftest.$ac_ext <<_ACEOF
12837: /* end confdefs.h. */
1.1.1.4 root 12838: #include <ncurses.h>
1.1.1.19 root 12839: int
12840: main ()
12841: {
1.1.1.4 root 12842: { attr_t a; a = A_NORMAL; }
1.1.1.19 root 12843: ;
12844: return 0;
12845: }
12846: _ACEOF
12847: rm -f conftest.$ac_objext
1.1.1.22! root 12848: if { (ac_try="$ac_compile"
! 12849: case "(($ac_try" in
! 12850: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12851: *) ac_try_echo=$ac_try;;
! 12852: esac
! 12853: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12854: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 12855: ac_status=$?
12856: grep -v '^ *+' conftest.er1 >conftest.err
12857: rm -f conftest.er1
12858: cat conftest.err >&5
12859: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 12860: (exit $ac_status); } && {
! 12861: test -z "$ac_c_werror_flag" ||
! 12862: test ! -s conftest.err
! 12863: } && test -s conftest.$ac_objext; then
! 12864: { echo "$as_me:$LINENO: result: yes" >&5
! 12865: echo "${ECHO_T}yes" >&6; }
1.1.1.19 root 12866: else
12867: echo "$as_me: failed program was:" >&5
12868: sed 's/^/| /' conftest.$ac_ext >&5
12869:
12870:
1.1.1.4 root 12871: ADDITIONAL_CFLAGS="$ADDITIONAL_CFLAGS -DDONT_HAVE_ATTR_T"
1.1.1.22! root 12872: { echo "$as_me:$LINENO: result: no" >&5
! 12873: echo "${ECHO_T}no" >&6; }
1.1.1.4 root 12874: NR_WARNINGS=`expr $NR_WARNINGS + 1`
12875: echo "Please install a newer version of libncurses if you can."
1.1.1.19 root 12876:
1.1.1.4 root 12877: fi
1.1.1.22! root 12878:
! 12879: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.2 root 12880: fi
1.1.1.4 root 12881: fi
1.1.1.2 root 12882: fi
1.1.1.4 root 12883:
1.1.1.22! root 12884: { echo "$as_me:$LINENO: checking for pthread library" >&5
! 12885: echo $ECHO_N "checking for pthread library... $ECHO_C" >&6; }
1.1.1.6 root 12886: TMP_SAVE_CFLAGS=$CFLAGS
12887: TMP_SAVE_LIBS=$LIBS
12888: LIBS="$LIBS -lpthread"
1.1.1.19 root 12889: cat >conftest.$ac_ext <<_ACEOF
12890: /* confdefs.h. */
12891: _ACEOF
12892: cat confdefs.h >>conftest.$ac_ext
12893: cat >>conftest.$ac_ext <<_ACEOF
12894: /* end confdefs.h. */
1.1.1.6 root 12895:
12896: #include "confdefs.h"
12897: #ifdef HAVE_SYS_TYPES_H
12898: #include <sys/types.h>
12899: #endif
12900: #include <pthread.h>
1.1.1.19 root 12901: int
12902: main ()
12903: {
1.1.1.6 root 12904:
12905: pthread_exit (0);
1.1.1.10 root 12906:
1.1.1.19 root 12907: ;
12908: return 0;
12909: }
12910: _ACEOF
12911: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22! root 12912: if { (ac_try="$ac_link"
! 12913: case "(($ac_try" in
! 12914: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12915: *) ac_try_echo=$ac_try;;
! 12916: esac
! 12917: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12918: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 12919: ac_status=$?
12920: grep -v '^ *+' conftest.er1 >conftest.err
12921: rm -f conftest.er1
12922: cat conftest.err >&5
12923: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 12924: (exit $ac_status); } && {
! 12925: test -z "$ac_c_werror_flag" ||
! 12926: test ! -s conftest.err
! 12927: } && test -s conftest$ac_exeext &&
! 12928: $as_test_x conftest$ac_exeext; then
1.1.1.6 root 12929: HAVE_PTHREAD_LIB=yes
1.1.1.22! root 12930: { echo "$as_me:$LINENO: result: yes" >&5
! 12931: echo "${ECHO_T}yes" >&6; }
1.1.1.6 root 12932: else
1.1.1.19 root 12933: echo "$as_me: failed program was:" >&5
12934: sed 's/^/| /' conftest.$ac_ext >&5
12935:
1.1.1.22! root 12936: HAVE_PTHREAD_LIB=no
! 12937: { echo "$as_me:$LINENO: result: no" >&5
! 12938: echo "${ECHO_T}no" >&6; }
1.1.1.6 root 12939: fi
1.1.1.22! root 12940:
! 12941: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 12942: conftest$ac_exeext conftest.$ac_ext
1.1.1.6 root 12943: CFLAGS=$TMP_SAVE_CFLAGS
12944: LIBS=$TMP_SAVE_LIBS
12945:
1.1.1.22! root 12946: { echo "$as_me:$LINENO: checking for DirectX" >&5
! 12947: echo $ECHO_N "checking for DirectX... $ECHO_C" >&6; }
1.1.1.6 root 12948: TMP_SAVE_CFLAGS=$CFLAGS
12949: TMP_SAVE_LIBS=$LIBS
12950: CFLAGS="$CFLAGS $X_CFLAGS"
12951: LIBS="$LIBS -lddraw"
1.1.1.19 root 12952: cat >conftest.$ac_ext <<_ACEOF
12953: /* confdefs.h. */
12954: _ACEOF
12955: cat confdefs.h >>conftest.$ac_ext
12956: cat >>conftest.$ac_ext <<_ACEOF
12957: /* end confdefs.h. */
1.1.1.6 root 12958:
12959: #include "confdefs.h"
12960: #ifdef HAVE_SYS_TYPES_H
12961: #include <sys/types.h>
12962: #endif
12963: #include <windows.h>
12964: #include <ddraw.h>
1.1.1.19 root 12965: int
12966: main ()
12967: {
1.1.1.6 root 12968:
12969: LPDIRECTDRAW lpDD;
12970: IDirectDraw_CreateSurface(lpDD, 0, 0, 0);
12971:
1.1.1.19 root 12972: ;
12973: return 0;
12974: }
12975: _ACEOF
12976: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22! root 12977: if { (ac_try="$ac_link"
! 12978: case "(($ac_try" in
! 12979: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 12980: *) ac_try_echo=$ac_try;;
! 12981: esac
! 12982: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 12983: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 12984: ac_status=$?
12985: grep -v '^ *+' conftest.er1 >conftest.err
12986: rm -f conftest.er1
12987: cat conftest.err >&5
12988: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 12989: (exit $ac_status); } && {
! 12990: test -z "$ac_c_werror_flag" ||
! 12991: test ! -s conftest.err
! 12992: } && test -s conftest$ac_exeext &&
! 12993: $as_test_x conftest$ac_exeext; then
1.1.1.6 root 12994: HAVE_DIRECTX=yes
1.1.1.22! root 12995: { echo "$as_me:$LINENO: result: yes" >&5
! 12996: echo "${ECHO_T}yes" >&6; }
1.1.1.6 root 12997: else
1.1.1.19 root 12998: echo "$as_me: failed program was:" >&5
12999: sed 's/^/| /' conftest.$ac_ext >&5
13000:
1.1.1.22! root 13001: HAVE_DIRECTX=no
! 13002: { echo "$as_me:$LINENO: result: no" >&5
! 13003: echo "${ECHO_T}no" >&6; }
1.1.1.6 root 13004: fi
1.1.1.22! root 13005:
! 13006: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 13007: conftest$ac_exeext conftest.$ac_ext
1.1.1.6 root 13008: CFLAGS=$TMP_SAVE_CFLAGS
13009: LIBS=$TMP_SAVE_LIBS
13010:
1.1.1.4 root 13011: DO_PROFILING=no
13012: WANT_SVGALIB=dunno
13013: WANT_ASCIIART=dunno
13014: WANT_UI=dunno
13015: WANT_NCURSES_UI=no
13016: WANT_DGA=no
13017: WANT_VIDMODE=no
13018:
1.1.1.22! root 13019: # Check whether --enable-profiling was given.
1.1.1.4 root 13020: if test "${enable_profiling+set}" = set; then
1.1.1.22! root 13021: enableval=$enable_profiling; DO_PROFILING=$enableval
! 13022: fi
1.1.1.4 root 13023:
1.1.1.22! root 13024:
! 13025: # Check whether --with-svgalib was given.
1.1.1.4 root 13026: if test "${with_svgalib+set}" = set; then
1.1.1.22! root 13027: withval=$with_svgalib; WANT_SVGALIB=$withval
! 13028: fi
1.1.1.2 root 13029:
1.1.1.22! root 13030:
! 13031: # Check whether --with-sdl was given.
1.1.1.16 root 13032: if test "${with_sdl+set}" = set; then
1.1.1.22! root 13033: withval=$with_sdl; WANT_SDL=$withval
! 13034: fi
1.1.1.16 root 13035:
1.1.1.22! root 13036:
! 13037: # Check whether --with-sdl-sound was given.
1.1.1.17 root 13038: if test "${with_sdl_sound+set}" = set; then
1.1.1.22! root 13039: withval=$with_sdl_sound; WANT_SDLSND=$withval
! 13040: fi
1.1.1.17 root 13041:
1.1.1.22! root 13042:
! 13043: # Check whether --with-sdl-gfx was given.
1.1.1.17 root 13044: if test "${with_sdl_gfx+set}" = set; then
1.1.1.22! root 13045: withval=$with_sdl_gfx; WANT_SDLGFX=$withval
! 13046: fi
1.1.1.19 root 13047:
1.1.1.22! root 13048:
! 13049: # Check whether --with-alsa was given.
1.1.1.19 root 13050: if test "${with_alsa+set}" = set; then
1.1.1.22! root 13051: withval=$with_alsa; WANT_ALSA=$withval
! 13052: fi
1.1.1.17 root 13053:
1.1.1.22! root 13054:
! 13055: # Check whether --with-asciiart was given.
1.1.1.4 root 13056: if test "${with_asciiart+set}" = set; then
1.1.1.22! root 13057: withval=$with_asciiart; WANT_ASCIIART=$withval
! 13058: fi
! 13059:
! 13060: # Check whether --enable-dga was given.
1.1.1.4 root 13061: if test "${enable_dga+set}" = set; then
1.1.1.22! root 13062: enableval=$enable_dga; WANT_DGA=$enableval
! 13063: fi
! 13064:
! 13065: # Check whether --enable-vidmode was given.
1.1.1.4 root 13066: if test "${enable_vidmode+set}" = set; then
1.1.1.22! root 13067: enableval=$enable_vidmode; WANT_VIDMODE=$enableval
! 13068: fi
! 13069:
! 13070: # Check whether --enable-ui was given.
1.1.1.4 root 13071: if test "${enable_ui+set}" = set; then
1.1.1.22! root 13072: enableval=$enable_ui; WANT_UI=$enableval
! 13073: fi
1.1.1.4 root 13074:
1.1.1.22! root 13075:
! 13076: # Check whether --with-hostcc was given.
1.1.1.16 root 13077: if test "${with_hostcc+set}" = set; then
1.1.1.22! root 13078: withval=$with_hostcc; HOSTCC=$withval
1.1.1.16 root 13079: else
13080: HOSTCC=$CC
1.1.1.22! root 13081: fi
! 13082:
1.1.1.4 root 13083:
13084:
1.1.1.17 root 13085: if [ "x$WANT_SDLSND" = "xyes" -o "x$WANT_SDLGFX" = "xyes" ]; then
1.1.1.19 root 13086: WANT_SDL=yes
1.1.1.17 root 13087: fi
13088:
13089: if [ "x$WANT_SDL" = "xyes" ]; then
13090: if [ "x$HAVE_SDL_LIB" = "xno" ]; then
13091: echo "Could not find libSDL, disabling SDL support."
13092: NR_ERRORS=`expr $NR_ERRORS + 1`
13093: WANT_SDL=no
13094: WANT_SDLSND=no
13095: WANT_SDLGFX=no
13096: else
13097: LIBS="$LIBS $SDL_LIBS"
13098: ADDITIONAL_CFLAGS="$ADDITIONAL_CFLAGS $SDL_CFLAGS -DUSE_SDL"
13099: fi
13100: fi
13101:
1.1.1.19 root 13102: if [ "x$WANT_ALSA" = "xyes" ]; then
13103: LIBS="$LIBS -lasound"
13104: fi
13105:
1.1.1.4 root 13106: if [ "x$WANT_DGA" = "xyes" ]; then
1.1.1.17 root 13107: if [ "x$WANT_SVGALIB" = "xyes" -o "x$WANT_ASCIIART" = "xyes" -o "x$WANT_SDLGFX" = "xyes" ]; then
1.1.1.16 root 13108: echo "You can't enable DGA for SVGAlib, SDL and ncurses targets!"
13109: NR_ERRORS=`expr $NR_ERRORS + 1`
13110: WANT_DGA=no
13111: fi
13112: fi
13113:
13114: if [ "x$WANT_SVGALIB" = "xyes" ]; then
1.1.1.17 root 13115: if [ "x$WANT_ASCIIART" = "xyes" -o "x$WANT_SDLGFX" = "xyes" ]; then
1.1.1.16 root 13116: echo "You can't enable both SVGAlib and other targets!"
1.1.1.4 root 13117: NR_ERRORS=`expr $NR_ERRORS + 1`
13118: WANT_DGA=no
13119: fi
13120: fi
13121:
13122: if [ "x$WANT_DGA" = "xyes" -a "x$no_x" = "xyes" ]; then
13123: echo "Ignoring --enable-dga, since X was disabled or not found."
13124: NR_ERRORS=`expr $NR_ERRORS + 1`
13125: WANT_DGA=no
13126: fi
13127:
13128: if [ "x$WANT_DGA" = "xno" -a "x$WANT_VIDMODE" = "xyes" ]; then
13129: echo "The XF86VidMode extension can only be used in DGA mode. Disabling it."
13130: NR_ERRORS=`expr $NR_ERRORS + 1`
13131: WANT_VIDMODE=no
13132: fi
13133:
13134:
13135: if [ "x$WANT_SVGALIB" = "xyes" ]; then
13136: if [ "x$HAVE_SVGA_LIB" = "xno" ]; then
13137: echo "Could not find libsvga, disabling svgalib support."
13138: NR_ERRORS=`expr $NR_ERRORS + 1`
13139: WANT_SVGALIB=no
1.1 root 13140: else
1.1.1.4 root 13141: no_x=yes
13142: fi
13143: fi
13144:
13145: if [ "x$WANT_ASCIIART" = "xyes" ]; then
13146: if [ "x$HAVE_NCURSES_LIB" = "xno" ]; then
13147: echo "Could not find libncurses, disabling ascii art support."
13148: NR_ERRORS=`expr $NR_ERRORS + 1`
13149: WANT_ASCIIART=no
1.1.1.17 root 13150: else if [ "x$WANT_SVGALIB" = "xyes" -o "x$WANT_SDLGFX" = "xyes" ]; then
1.1.1.4 root 13151: echo "You can't configure for both ncurses and another target. Disabling ncurses."
13152: NR_ERRORS=`expr $NR_ERRORS + 1`
13153: WANT_ASCIIART=no
13154: else
13155: no_x=yes
13156: fi
13157: fi
13158: fi
13159:
13160:
13161: if [ "x$WANT_DGA" = "xyes" ]; then
13162: TMP_SAVE_LIBS=$LIBS
13163: LIBS="$X_LIBS $LIBS"
1.1.1.22! root 13164: { echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
! 13165: echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6; }
1.1.1.19 root 13166: if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
13167: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.2 root 13168: else
1.1.1.19 root 13169: ac_check_lib_save_LIBS=$LIBS
1.1.1.4 root 13170: LIBS="-lXxf86dga $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
1.1.1.19 root 13171: cat >conftest.$ac_ext <<_ACEOF
13172: /* confdefs.h. */
13173: _ACEOF
13174: cat confdefs.h >>conftest.$ac_ext
13175: cat >>conftest.$ac_ext <<_ACEOF
13176: /* end confdefs.h. */
13177:
1.1.1.22! root 13178: /* Override any GCC internal prototype to avoid an error.
! 13179: Use char because int might match the return type of a GCC
! 13180: builtin and then its argument prototype would still apply. */
1.1.1.19 root 13181: #ifdef __cplusplus
13182: extern "C"
13183: #endif
13184: char XF86DGAQueryExtension ();
13185: int
13186: main ()
13187: {
1.1.1.22! root 13188: return XF86DGAQueryExtension ();
1.1.1.19 root 13189: ;
13190: return 0;
13191: }
13192: _ACEOF
13193: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22! root 13194: if { (ac_try="$ac_link"
! 13195: case "(($ac_try" in
! 13196: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 13197: *) ac_try_echo=$ac_try;;
! 13198: esac
! 13199: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 13200: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 13201: ac_status=$?
13202: grep -v '^ *+' conftest.er1 >conftest.err
13203: rm -f conftest.er1
13204: cat conftest.err >&5
13205: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 13206: (exit $ac_status); } && {
! 13207: test -z "$ac_c_werror_flag" ||
! 13208: test ! -s conftest.err
! 13209: } && test -s conftest$ac_exeext &&
! 13210: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 13211: ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
13212: else
13213: echo "$as_me: failed program was:" >&5
13214: sed 's/^/| /' conftest.$ac_ext >&5
13215:
1.1.1.22! root 13216: ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
1.1.1.19 root 13217: fi
1.1.1.22! root 13218:
! 13219: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 13220: conftest$ac_exeext conftest.$ac_ext
13221: LIBS=$ac_check_lib_save_LIBS
13222: fi
1.1.1.22! root 13223: { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
! 13224: echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6; }
1.1.1.19 root 13225: if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
1.1.1.4 root 13226: HAVE_DGA=yes
1.1.1.2 root 13227: else
1.1.1.19 root 13228: HAVE_DGA=no
1.1.1.2 root 13229: fi
13230:
1.1.1.4 root 13231: LIBS=$TMP_SAVE_LIBS
13232: if [ "x$HAVE_DGA" = "xno" ]; then
13233: echo "Could not find DGA extension, ignoring --enable-dga."
13234: NR_ERRORS=`expr $NR_ERRORS + 1`
13235: WANT_DGA=no
1.1.1.3 root 13236: fi
1.1.1.2 root 13237: fi
13238:
1.1.1.4 root 13239: if [ "x$WANT_VIDMODE" = "xyes" ]; then
13240: TMP_SAVE_LIBS=$LIBS
13241: LIBS="$X_LIBS $LIBS"
1.1.1.22! root 13242: { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
! 13243: echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
1.1.1.19 root 13244: if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
13245: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.3 root 13246: else
1.1.1.19 root 13247: ac_check_lib_save_LIBS=$LIBS
1.1.1.4 root 13248: LIBS="-lXxf86vm $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
1.1.1.19 root 13249: cat >conftest.$ac_ext <<_ACEOF
13250: /* confdefs.h. */
13251: _ACEOF
13252: cat confdefs.h >>conftest.$ac_ext
13253: cat >>conftest.$ac_ext <<_ACEOF
13254: /* end confdefs.h. */
13255:
1.1.1.22! root 13256: /* Override any GCC internal prototype to avoid an error.
! 13257: Use char because int might match the return type of a GCC
! 13258: builtin and then its argument prototype would still apply. */
1.1.1.19 root 13259: #ifdef __cplusplus
13260: extern "C"
13261: #endif
13262: char XF86VidModeQueryExtension ();
13263: int
13264: main ()
13265: {
1.1.1.22! root 13266: return XF86VidModeQueryExtension ();
1.1.1.19 root 13267: ;
13268: return 0;
13269: }
13270: _ACEOF
13271: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22! root 13272: if { (ac_try="$ac_link"
! 13273: case "(($ac_try" in
! 13274: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 13275: *) ac_try_echo=$ac_try;;
! 13276: esac
! 13277: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 13278: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 13279: ac_status=$?
13280: grep -v '^ *+' conftest.er1 >conftest.err
13281: rm -f conftest.er1
13282: cat conftest.err >&5
13283: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 13284: (exit $ac_status); } && {
! 13285: test -z "$ac_c_werror_flag" ||
! 13286: test ! -s conftest.err
! 13287: } && test -s conftest$ac_exeext &&
! 13288: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 13289: ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
13290: else
13291: echo "$as_me: failed program was:" >&5
13292: sed 's/^/| /' conftest.$ac_ext >&5
13293:
1.1.1.22! root 13294: ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
1.1.1.19 root 13295: fi
1.1.1.22! root 13296:
! 13297: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 13298: conftest$ac_exeext conftest.$ac_ext
13299: LIBS=$ac_check_lib_save_LIBS
13300: fi
1.1.1.22! root 13301: { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
! 13302: echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
1.1.1.19 root 13303: if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
1.1.1.4 root 13304: HAVE_VIDMODE=yes
1.1.1.3 root 13305: else
1.1.1.19 root 13306: HAVE_VIDMODE=no
1.1.1.3 root 13307: fi
13308:
1.1.1.4 root 13309: LIBS=$TMP_SAVE_LIBS
13310: if [ "x$HAVE_VIDMODE" = "xno" ]; then
13311: echo "Could not find VidMode extension, ignoring --enable-vidmode."
13312: NR_ERRORS=`expr $NR_ERRORS + 1`
13313: WANT_VIDMODE=no
1.1.1.3 root 13314: fi
1.1.1.4 root 13315: fi
13316:
1.1.1.20 root 13317: #GTK_PACKAGES="gtk+-2.0"
13318: #GTK_REQUIRED_VERSION=2.1.3
13319: #PKG_CHECK_MODULES(DEPS, $GTK_PACKAGES >= $GTK_REQUIRED_VERSION)
13320: #GTK_CFLAGS=`$PKG_CONFIG --cflags $ATK_PACKAGES $GTK_PACKAGES $LIBGNOMECANVAS_PACKAGES`
13321: #GTK_LIBS=`$PKG_CONFIG --libs $ATK_PACKAGES $GTK_PACKAGES $LIBGNOMECANVAS_PACKAGES`
1.1.1.19 root 13322:
1.1.1.22! root 13323: # Check whether --enable-gtktest was given.
1.1.1.4 root 13324: if test "${enable_gtktest+set}" = set; then
1.1.1.22! root 13325: enableval=$enable_gtktest;
1.1.1.4 root 13326: else
13327: enable_gtktest=yes
1.1.1.22! root 13328: fi
! 13329:
1.1.1.4 root 13330:
1.1.1.20 root 13331: pkg_config_args=gtk+-2.0
1.1.1.19 root 13332: for module in .
13333: do
13334: case "$module" in
13335: gthread)
1.1.1.20 root 13336: pkg_config_args="$pkg_config_args gthread-2.0"
1.1.1.19 root 13337: ;;
13338: esac
13339: done
1.1.1.4 root 13340:
1.1.1.20 root 13341: no_gtk=""
1.1.1.4 root 13342:
1.1.1.20 root 13343: # Extract the first word of "pkg-config", so it can be a program name with args.
13344: set dummy pkg-config; ac_word=$2
1.1.1.22! root 13345: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 13346: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1.1.20 root 13347: if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
1.1.1.19 root 13348: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1.1.4 root 13349: else
1.1.1.20 root 13350: case $PKG_CONFIG in
1.1.1.19 root 13351: [\\/]* | ?:[\\/]*)
1.1.1.20 root 13352: ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
1.1.1.4 root 13353: ;;
13354: *)
1.1.1.19 root 13355: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13356: for as_dir in $PATH
13357: do
13358: IFS=$as_save_IFS
13359: test -z "$as_dir" && as_dir=.
13360: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.22! root 13361: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.1.20 root 13362: ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
1.1.1.19 root 13363: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13364: break 2
13365: fi
13366: done
13367: done
1.1.1.22! root 13368: IFS=$as_save_IFS
1.1.1.19 root 13369:
1.1.1.20 root 13370: test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
1.1.1.4 root 13371: ;;
13372: esac
13373: fi
1.1.1.20 root 13374: PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13375: if test -n "$PKG_CONFIG"; then
1.1.1.22! root 13376: { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
! 13377: echo "${ECHO_T}$PKG_CONFIG" >&6; }
1.1.1.4 root 13378: else
1.1.1.22! root 13379: { echo "$as_me:$LINENO: result: no" >&5
! 13380: echo "${ECHO_T}no" >&6; }
1.1.1.4 root 13381: fi
13382:
1.1.1.20 root 13383:
1.1.1.22! root 13384:
1.1.1.20 root 13385: if test x$PKG_CONFIG != xno ; then
13386: if pkg-config --atleast-pkgconfig-version 0.7 ; then
13387: :
13388: else
1.1.1.22! root 13389: echo "*** pkg-config too old; version 0.7 or better required."
1.1.1.20 root 13390: no_gtk=yes
13391: PKG_CONFIG=no
13392: fi
1.1.1.4 root 13393: else
1.1.1.20 root 13394: no_gtk=yes
13395: fi
13396:
13397: min_gtk_version=2.0.0
1.1.1.22! root 13398: { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
! 13399: echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
1.1.1.20 root 13400:
13401: if test x$PKG_CONFIG != xno ; then
13402: ## don't try to run the test against uninstalled libtool libs
13403: if $PKG_CONFIG --uninstalled $pkg_config_args; then
13404: echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
13405: enable_gtktest=no
13406: fi
13407:
13408: if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
13409: :
13410: else
13411: no_gtk=yes
13412: fi
13413: fi
13414:
13415: if test x"$no_gtk" = x ; then
13416: GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
13417: GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
13418: gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
1.1.1.4 root 13419: sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
1.1.1.20 root 13420: gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
1.1.1.4 root 13421: sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
1.1.1.20 root 13422: gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
1.1.1.4 root 13423: sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13424: if test "x$enable_gtktest" = "xyes" ; then
13425: ac_save_CFLAGS="$CFLAGS"
13426: ac_save_LIBS="$LIBS"
13427: CFLAGS="$CFLAGS $GTK_CFLAGS"
1.1.1.19 root 13428: LIBS="$GTK_LIBS $LIBS"
1.1.1.4 root 13429: rm -f conf.gtktest
13430: if test "$cross_compiling" = yes; then
13431: echo $ac_n "cross compiling; assumed OK... $ac_c"
13432: else
1.1.1.19 root 13433: cat >conftest.$ac_ext <<_ACEOF
13434: /* confdefs.h. */
13435: _ACEOF
13436: cat confdefs.h >>conftest.$ac_ext
13437: cat >>conftest.$ac_ext <<_ACEOF
13438: /* end confdefs.h. */
1.1.1.4 root 13439:
13440: #include <gtk/gtk.h>
13441: #include <stdio.h>
1.1.1.19 root 13442: #include <stdlib.h>
1.1.1.4 root 13443:
1.1.1.19 root 13444: int
1.1.1.4 root 13445: main ()
1.1.1.3 root 13446: {
1.1.1.4 root 13447: int major, minor, micro;
1.1.1.19 root 13448: char *tmp_version;
1.1.1.4 root 13449:
13450: system ("touch conf.gtktest");
13451:
1.1.1.19 root 13452: /* HP/UX 9 (%@#!) writes to sscanf strings */
13453: tmp_version = g_strdup("$min_gtk_version");
13454: if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
1.1.1.4 root 13455: printf("%s, bad version string\n", "$min_gtk_version");
13456: exit(1);
13457: }
13458:
13459: if ((gtk_major_version != $gtk_config_major_version) ||
13460: (gtk_minor_version != $gtk_config_minor_version) ||
13461: (gtk_micro_version != $gtk_config_micro_version))
13462: {
1.1.1.20 root 13463: printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
1.1.1.4 root 13464: $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
13465: gtk_major_version, gtk_minor_version, gtk_micro_version);
1.1.1.20 root 13466: printf ("*** was found! If pkg-config was correct, then it is best\n");
1.1.1.4 root 13467: printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
13468: printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
13469: printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
13470: printf("*** required on your system.\n");
1.1.1.20 root 13471: printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
13472: printf("*** to point to the correct configuration files\n");
1.1.1.19 root 13473: }
13474: else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
13475: (gtk_minor_version != GTK_MINOR_VERSION) ||
13476: (gtk_micro_version != GTK_MICRO_VERSION))
13477: {
13478: printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
13479: GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
13480: printf("*** library (version %d.%d.%d)\n",
13481: gtk_major_version, gtk_minor_version, gtk_micro_version);
13482: }
1.1.1.4 root 13483: else
13484: {
13485: if ((gtk_major_version > major) ||
13486: ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
13487: ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
13488: {
13489: return 0;
13490: }
13491: else
13492: {
13493: printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
13494: gtk_major_version, gtk_minor_version, gtk_micro_version);
13495: printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
13496: major, minor, micro);
13497: printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
13498: printf("***\n");
13499: printf("*** If you have already installed a sufficiently new version, this error\n");
1.1.1.20 root 13500: printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
1.1.1.4 root 13501: printf("*** being found. The easiest way to fix this is to remove the old version\n");
1.1.1.20 root 13502: printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
13503: printf("*** correct copy of pkg-config. (In this case, you will have to\n");
1.1.1.4 root 13504: printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13505: printf("*** so that the correct libraries are found at run-time))\n");
13506: }
13507: }
13508: return 1;
1.1.1.3 root 13509: }
1.1.1.4 root 13510:
1.1.1.19 root 13511: _ACEOF
13512: rm -f conftest$ac_exeext
1.1.1.22! root 13513: if { (ac_try="$ac_link"
! 13514: case "(($ac_try" in
! 13515: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 13516: *) ac_try_echo=$ac_try;;
! 13517: esac
! 13518: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 13519: (eval "$ac_link") 2>&5
1.1.1.19 root 13520: ac_status=$?
13521: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.22! root 13523: { (case "(($ac_try" in
! 13524: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 13525: *) ac_try_echo=$ac_try;;
! 13526: esac
! 13527: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 13528: (eval "$ac_try") 2>&5
1.1.1.19 root 13529: ac_status=$?
13530: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531: (exit $ac_status); }; }; then
1.1.1.4 root 13532: :
13533: else
1.1.1.19 root 13534: echo "$as_me: program exited with status $ac_status" >&5
13535: echo "$as_me: failed program was:" >&5
13536: sed 's/^/| /' conftest.$ac_ext >&5
13537:
13538: ( exit $ac_status )
13539: no_gtk=yes
1.1.1.4 root 13540: fi
1.1.1.22! root 13541: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1.1.4 root 13542: fi
1.1.1.22! root 13543:
! 13544:
1.1.1.4 root 13545: CFLAGS="$ac_save_CFLAGS"
13546: LIBS="$ac_save_LIBS"
13547: fi
13548: fi
13549: if test "x$no_gtk" = x ; then
1.1.1.22! root 13550: { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
! 13551: echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
1.1.1.19 root 13552: :
1.1.1.4 root 13553: else
1.1.1.22! root 13554: { echo "$as_me:$LINENO: result: no" >&5
! 13555: echo "${ECHO_T}no" >&6; }
1.1.1.20 root 13556: if test "$PKG_CONFIG" = "no" ; then
13557: echo "*** A new enough version of pkg-config was not found."
13558: echo "*** See http://pkgconfig.sourceforge.net"
1.1.1.4 root 13559: else
13560: if test -f conf.gtktest ; then
13561: :
13562: else
1.1.1.20 root 13563: echo "*** Could not run GTK+ test program, checking why..."
13564: ac_save_CFLAGS="$CFLAGS"
13565: ac_save_LIBS="$LIBS"
1.1.1.4 root 13566: CFLAGS="$CFLAGS $GTK_CFLAGS"
13567: LIBS="$LIBS $GTK_LIBS"
1.1.1.19 root 13568: cat >conftest.$ac_ext <<_ACEOF
13569: /* confdefs.h. */
13570: _ACEOF
13571: cat confdefs.h >>conftest.$ac_ext
13572: cat >>conftest.$ac_ext <<_ACEOF
13573: /* end confdefs.h. */
1.1.1.4 root 13574:
13575: #include <gtk/gtk.h>
13576: #include <stdio.h>
13577:
1.1.1.19 root 13578: int
13579: main ()
13580: {
13581: return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
13582: ;
13583: return 0;
13584: }
13585: _ACEOF
13586: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22! root 13587: if { (ac_try="$ac_link"
! 13588: case "(($ac_try" in
! 13589: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 13590: *) ac_try_echo=$ac_try;;
! 13591: esac
! 13592: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 13593: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 13594: ac_status=$?
13595: grep -v '^ *+' conftest.er1 >conftest.err
13596: rm -f conftest.er1
13597: cat conftest.err >&5
13598: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 13599: (exit $ac_status); } && {
! 13600: test -z "$ac_c_werror_flag" ||
! 13601: test ! -s conftest.err
! 13602: } && test -s conftest$ac_exeext &&
! 13603: $as_test_x conftest$ac_exeext; then
1.1.1.4 root 13604: echo "*** The test program compiled, but did not run. This usually means"
1.1.1.20 root 13605: echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
13606: echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
1.1.1.4 root 13607: echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13608: echo "*** to the installed location Also, make sure you have run ldconfig if that"
13609: echo "*** is required on your system"
13610: echo "***"
13611: echo "*** If you have an old version installed, it is best to remove it, although"
13612: echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13613: else
1.1.1.19 root 13614: echo "$as_me: failed program was:" >&5
13615: sed 's/^/| /' conftest.$ac_ext >&5
13616:
1.1.1.22! root 13617: echo "*** The test program failed to compile or link. See the file config.log for the"
1.1.1.20 root 13618: echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
1.1.1.4 root 13619: fi
1.1.1.22! root 13620:
! 13621: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 13622: conftest$ac_exeext conftest.$ac_ext
1.1.1.4 root 13623: CFLAGS="$ac_save_CFLAGS"
13624: LIBS="$ac_save_LIBS"
13625: fi
13626: fi
13627: GTK_CFLAGS=""
13628: GTK_LIBS=""
13629: :
1.1.1.3 root 13630: fi
1.1.1.19 root 13631:
13632:
1.1.1.4 root 13633: rm -f conf.gtktest
1.1.1.3 root 13634:
1.1.1.4 root 13635:
13636:
13637: SHM_SUPPORT_LINKS=0
1.1.1.6 root 13638: if [ "x$no_x" != "xyes" -a "x$ac_cv_header_sys_ipc_h" = "xyes" -a "x$ac_cv_header_sys_shm_h" = "xyes" ]; then
1.1.1.22! root 13639: { echo "$as_me:$LINENO: checking whether the X11 MIT-SHM extension can be compiled in" >&5
! 13640: echo $ECHO_N "checking whether the X11 MIT-SHM extension can be compiled in... $ECHO_C" >&6; }
1.1.1.4 root 13641: TMP_SAVE_CFLAGS=$CFLAGS
13642: TMP_SAVE_LIBS=$LIBS
13643: CFLAGS="$CFLAGS $X_CFLAGS"
13644: LIBS="$X_LIBS $LIBS $X_PRE_LIBS -lX11 -lXext $X_EXTRA_LIBS"
1.1.1.19 root 13645: cat >conftest.$ac_ext <<_ACEOF
13646: /* confdefs.h. */
13647: _ACEOF
13648: cat confdefs.h >>conftest.$ac_ext
13649: cat >>conftest.$ac_ext <<_ACEOF
13650: /* end confdefs.h. */
1.1.1.2 root 13651:
1.1.1.4 root 13652: #include "confdefs.h"
13653: #ifdef HAVE_SYS_TYPES_H
13654: #include <sys/types.h>
13655: #endif
13656: #include <X11/Xlib.h>
13657: #include <X11/Xutil.h>
13658: #include <X11/keysym.h>
13659: #include <X11/cursorfont.h>
13660: #include <sys/ipc.h>
13661: #include <sys/shm.h>
13662: #include <X11/extensions/XShm.h>
1.1.1.19 root 13663: int
13664: main ()
13665: {
1.1.1.4 root 13666:
13667: static XShmSegmentInfo shminfo;
13668: static Display *display;
13669: XShmAttach(display, &shminfo);
13670: XSync(display,0);
13671: shmctl(shminfo.shmid, IPC_RMID, 0);
1.1.1.10 root 13672:
1.1.1.19 root 13673: ;
13674: return 0;
13675: }
13676: _ACEOF
13677: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22! root 13678: if { (ac_try="$ac_link"
! 13679: case "(($ac_try" in
! 13680: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 13681: *) ac_try_echo=$ac_try;;
! 13682: esac
! 13683: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 13684: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 13685: ac_status=$?
13686: grep -v '^ *+' conftest.er1 >conftest.err
13687: rm -f conftest.er1
13688: cat conftest.err >&5
13689: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 13690: (exit $ac_status); } && {
! 13691: test -z "$ac_c_werror_flag" ||
! 13692: test ! -s conftest.err
! 13693: } && test -s conftest$ac_exeext &&
! 13694: $as_test_x conftest$ac_exeext; then
1.1.1.4 root 13695: SHM_SUPPORT_LINKS=1
1.1.1.22! root 13696: { echo "$as_me:$LINENO: result: yes" >&5
! 13697: echo "${ECHO_T}yes" >&6; }
1.1 root 13698: else
1.1.1.19 root 13699: echo "$as_me: failed program was:" >&5
13700: sed 's/^/| /' conftest.$ac_ext >&5
13701:
1.1.1.22! root 13702: SHM_SUPPORT_LINKS=0
! 13703: { echo "$as_me:$LINENO: result: no" >&5
! 13704: echo "${ECHO_T}no" >&6; }
1.1 root 13705: fi
1.1.1.22! root 13706:
! 13707: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 13708: conftest$ac_exeext conftest.$ac_ext
1.1.1.4 root 13709: CFLAGS=$TMP_SAVE_CFLAGS
13710: LIBS=$TMP_SAVE_LIBS
1.1 root 13711: fi
13712:
1.1.1.4 root 13713: MATHLIB=-lm
13714: DEBUGOBJS="debug.o"
13715:
1.1.1.22! root 13716: { echo "$as_me:$LINENO: checking which target to use" >&5
! 13717: echo $ECHO_N "checking which target to use... $ECHO_C" >&6; }
1.1.1.4 root 13718:
1.1.1.17 root 13719: if [ "x$WANT_SDLGFX" = "xyes" ]; then
1.1.1.22! root 13720: { echo "$as_me:$LINENO: result: SDL" >&5
! 13721: echo "${ECHO_T}SDL" >&6; }
1.1.1.17 root 13722: MATHLIB=
13723: TARGET=x11
1.1.1.22! root 13724: GFXOBJS="sdlgfx.o sdlkeys.o rawkeys.o"
1.1.1.17 root 13725: # @@@ Kludge. This may get changed later.
13726: TARGETDEP=t-x11.h
13727: else if [ "x$HAVE_DIRECTX" = "xyes" ]; then
1.1.1.22! root 13728: { echo "$as_me:$LINENO: result: Win32/DirectX" >&5
! 13729: echo "${ECHO_T}Win32/DirectX" >&6; }
1.1.1.6 root 13730: MATHLIB=
13731: TARGET=win32
13732: TARGETDEP=t-win32.h
1.1.1.17 root 13733: GFXOBJS="osdep/win32.o osdep/parser.o osdep/keyboard.o osdep/posixemu.o"
1.1.1.6 root 13734: RESOBJS="osdep/winuae.res"
13735: else if [ "x$HAVE_BEOS" = "xyes" ]; then
1.1.1.22! root 13736: { echo "$as_me:$LINENO: result: BeOS" >&5
! 13737: echo "${ECHO_T}BeOS" >&6; }
1.1.1.4 root 13738: MATHLIB=
13739: TARGET=beos
13740: TARGETDEP=t-beos.h
13741: GFXOBJS=osdep/beos.o
13742: OPTIMIZE_CFLAGS=-O7
13743: else if [ "x$HAVE_POS" = "xyes" ]; then
1.1.1.22! root 13744: { echo "$as_me:$LINENO: result: p.OS" >&5
! 13745: echo "${ECHO_T}p.OS" >&6; }
1.1.1.4 root 13746: TARGET=p_os
13747: TARGETDEP=t-pos.h
13748: GFXOBJS="osdep/pos-win.o osdep/pos-disk.o osdep/pos-rexx.o"
13749: else if [ "x$HAVE_AMIGA_LIB" = "xyes" ]; then
1.1.1.22! root 13750: { echo "$as_me:$LINENO: result: AmigaOS" >&5
! 13751: echo "${ECHO_T}AmigaOS" >&6; }
1.1.1.4 root 13752: TARGET=amigaos
13753: TARGETDEP=t-amiga.h
13754: GFXOBJS="osdep/ami-win.o osdep/ami-disk.o osdep/ami-rexx.o osdep/ami-appw.o"
13755: else if [ "x$HAVE_NEXT_LIB" = "xyes" ]; then
1.1.1.22! root 13756: { echo "$as_me:$LINENO: result: NeXTStep" >&5
! 13757: echo "${ECHO_T}NeXTStep" >&6; }
1.1.1.4 root 13758: MATHLIB=
13759: TARGET=next
13760: GFXOBJS="NeXTwin.o"
13761: TARGETDEP=t-next.h
13762: LIBRARIES="-sectcreate __ICON __header ../Uae.app/Uae.iconheader -segprot __ICON r r -sectcreate __ICON app ../Uae.app/Uae.tiff -lMedia_s -lNeXT_s"
13763: else
1.1.1.19 root 13764:
1.1.1.4 root 13765: if [ "x$no_x" = "xyes" ]; then
1.1.1.13 root 13766: if [ "x$WANT_SVGALIB" != "xyes" -a "x$WANT_ASCIIART" != "xyes" ]; then
1.1.1.4 root 13767: if [ "x$WANT_SVGALIB" != "xno" -a "x$HAVE_SVGA_LIB" = "xyes" ]; then
13768: WANT_SVGALIB=yes
13769: else if [ "x$WANT_ASCIIART" != "xno" -a "x$HAVE_NCURSES_LIB" = "xyes" ]; then
13770: WANT_ASCIIART=yes
13771: fi
13772: fi
13773: fi
1.1.1.3 root 13774: fi
1.1.1.4 root 13775:
1.1.1.13 root 13776: if [ "x$WANT_SVGALIB" = "xyes" ]; then
1.1.1.22! root 13777: { echo "$as_me:$LINENO: result: SVGAlib" >&5
! 13778: echo "${ECHO_T}SVGAlib" >&6; }
1.1.1.4 root 13779: TARGET=svgalib
13780: TARGETDEP=t-svgalib.h
13781: GFXOBJS=svga.o
13782: LIBRARIES="-lvga"
13783: WANT_NCURSES_UI=yes
13784: else if [ "x$WANT_ASCIIART" = "xyes" ]; then
1.1.1.22! root 13785: { echo "$as_me:$LINENO: result: ncurses ASCII art" >&5
! 13786: echo "${ECHO_T}ncurses ASCII art" >&6; }
1.1.1.4 root 13787: TARGET=asciiart
13788: TARGETDEP=t-ascii.h
13789: GFXOBJS="ncurses.o"
1.1.1.17 root 13790: WANT_NCURSES_UI=yes
1.1.1.4 root 13791: LIBRARIES="-lncurses"
13792: else if [ "x$no_x" = "xyes" ]; then
1.1.1.22! root 13793: { echo "$as_me:$LINENO: result: Ummm...." >&5
! 13794: echo "${ECHO_T}Ummm...." >&6; }
1.1.1.4 root 13795: echo "Fatal error: No graphics system found, don't know what target to use."
13796: exit 1
13797: else
1.1.1.22! root 13798: { echo "$as_me:$LINENO: result: X11" >&5
! 13799: echo "${ECHO_T}X11" >&6; }
1.1.1.4 root 13800: TARGET=x11
13801: TARGETDEP=t-x11.h
1.1.1.21 root 13802: GFXOBJS="xwin.o x11keys.o"
1.1.1.4 root 13803:
13804: LIBRARIES="$X_LIBS $X_PRE_LIBS"
13805: if [ "x$WANT_DGA" = "xyes" ]; then
13806: LIBRARIES="$LIBRARIES -lXxf86dga"
13807: X_CFLAGS="$X_CFLAGS -DUSE_DGA_EXTENSION"
13808: if [ "x$WANT_VIDMODE" = "xyes" ]; then
13809: LIBRARIES="$LIBRARIES -lXxf86vm"
13810: X_CFLAGS="$X_CFLAGS -DUSE_VIDMODE_EXTENSION"
13811: fi
13812: fi
13813: LIBRARIES="$LIBRARIES -lXext -lX11 $X_EXTRA_LIBS"
13814: fi
13815: fi
13816: fi
1.1 root 13817: fi
1.1.1.3 root 13818: fi
13819: fi
13820: fi
1.1.1.6 root 13821: fi
1.1.1.17 root 13822: fi
1.1 root 13823:
1.1.1.17 root 13824: if [ "x$HAVE_DIRECTX" = "xyes" ]; then
13825: TARGETDEP=t-win32.h
13826: TARGET=win32
13827: fi
13828:
13829: if [ "x$WANT_UI" != "xno" ]; then
13830: if [ "x$HAVE_DIRECTX" = "xyes" ]; then
13831: GUIOBJS=osdep/win32gui.o
13832: else if [ "x$HAVE_AMIGA_LIB" = "xyes" ]; then
13833: GUIOBJS="osdep/ami-gui.o"
13834: else if [ "x$HAVE_POS" = "xyes" ]; then
13835: GUIOBJS="osdep/pos-gui.o"
13836: else if [ "x$WANT_NCURSES_UI" = "xyes" ]; then
13837: if [ "x$HAVE_NCURSES_LIB" = "xno" ]; then
1.1.1.4 root 13838: echo "ncurses is unavailable, can't provide a user interface"
1.1.1.17 root 13839: if [ "x$WANT_UI" = "xyes" ]; then
13840: NR_ERRORS=`expr $NR_ERRORS + 1`
13841: fi
13842: WANT_UI=no
13843: GUIOBJS=nogui.o
13844: else
13845: GUIOBJS="tui.o svgancui.o"
13846: LIBRARIES="$LIBRARIES -lncurses"
13847: ADDITIONAL_CFLAGS="$ADDITIONAL_CFLAGS -DUSING_CURSES_UI"
13848: if [ "x$ac_cv_header_ncurses_h" = "xno" ]; then
13849: echo "Found libncurses, but no ncurses.h. This is normal with recent versions"
13850: echo "of ncurses, but it might indicate a problem with older versions."
13851: NR_WARNINGS=`expr $NR_WARNINGS + 1`
13852: fi
1.1.1.4 root 13853: fi
1.1.1.17 root 13854: else if [ "x$no_x" != "xno" ]; then
13855: if [ "x$no_gtk" = "xyes" ]; then
13856: echo "Did not find gtk+, disabling user interface"
13857: GTK_CFLAGS=
1.1.1.18 root 13858: GUIOBJS=nogui.o
1.1.1.17 root 13859: if [ "x$WANT_UI" = "xyes" ]; then
13860: NR_ERRORS=`expr $NR_ERRORS + 1`
13861: fi
13862: else
13863: echo "Using gtk+ GUI."
13864: NEED_THREAD_SUPPORT=yes
13865: DDITIONAL_CFLAGS="$ADDITIONAL_CFLAGS -DUSING_GTK_GUI"
13866: GUIOBJS=gtkui.o
13867: fi
1.1.1.19 root 13868: else
1.1.1.17 root 13869: if [ "x$WANT_UI" = "xyes" ]; then
13870: echo "GUI requested, but no suitable libraries found."
13871: NR_ERRORS=`expr $NR_ERRORS + 1`
1.1.1.4 root 13872: fi
13873: GUIOBJS=nogui.o
13874: fi
1.1.1.17 root 13875: fi
13876: fi
13877: fi
13878: fi
13879: else
13880: GUIOBJS=nogui.o
1.1.1.3 root 13881: fi
1.1.1.17 root 13882:
1.1.1.4 root 13883: GFXOBJS="$GFXOBJS $GUIOBJS"
1.1.1.19 root 13884:
1.1.1.4 root 13885:
1.1.1.22! root 13886:
! 13887: cat >>confdefs.h <<\_ACEOF
! 13888: #define MULTIPLICATION_PROFITABLE 1
! 13889: _ACEOF
! 13890:
! 13891:
! 13892:
1.1.1.4 root 13893: MACHDEP=md-generic
13894: OSDEP=od-generic
13895: THREADDEP=td-none
13896: SOUNDDEP=od-generic
13897:
1.1.1.11 root 13898: FPP_H=fpp-unknown.h
1.1.1.4 root 13899: USE_THREADS=no
13900: USE_FILE_SOUND=no
1.1.1.10 root 13901: USE_SCSI_DEVICE=no
1.1.1.4 root 13902:
1.1.1.6 root 13903: USE_UNDERSCORE=dunno
13904:
1.1.1.4 root 13905: HAVELINUX=no
1.1.1.6 root 13906: HAVEBSD=no
1.1.1.4 root 13907: HAVEGCC27=no
13908: HAVEI386=no
13909: HAVE68K=no
1.1.1.11 root 13910: HAVEPPC=no
1.1.1.4 root 13911: HAVEGLIBC2=no
1.1.1.3 root 13912:
1.1 root 13913: ASMOBJS=
1.1.1.4 root 13914: CPUOBJS=cpuemu.o
1.1.1.3 root 13915:
1.1.1.22! root 13916: { echo "$as_me:$LINENO: checking for GCC 2.7 or higher" >&5
! 13917: echo $ECHO_N "checking for GCC 2.7 or higher... $ECHO_C" >&6; }
1.1.1.19 root 13918: cat >conftest.$ac_ext <<_ACEOF
13919: /* confdefs.h. */
13920: _ACEOF
13921: cat confdefs.h >>conftest.$ac_ext
13922: cat >>conftest.$ac_ext <<_ACEOF
13923: /* end confdefs.h. */
1.1.1.6 root 13924: #if __GNUC__ - 1 > 1 || __GNUC_MINOR__ - 1 > 5
13925: yes
1.1.1.3 root 13926: #endif
13927:
1.1.1.19 root 13928: _ACEOF
1.1.1.6 root 13929: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.19 root 13930: $EGREP "yes" >/dev/null 2>&1; then
1.1.1.22! root 13931: { echo "$as_me:$LINENO: result: yes" >&5
! 13932: echo "${ECHO_T}yes" >&6; }; HAVEGCC27=yes
1.1.1.3 root 13933: else
1.1.1.22! root 13934: { echo "$as_me:$LINENO: result: no" >&5
! 13935: echo "${ECHO_T}no" >&6; }
1.1.1.6 root 13936: fi
13937: rm -f conftest*
13938:
13939:
1.1.1.19 root 13940: if test $ac_cv_c_compiler_gnu = yes; then
1.1.1.6 root 13941: if test $HAVEGCC27 != yes; then
1.1.1.3 root 13942: echo "I suggest you upgrade to at least version 2.7 of GCC"
1.1.1.6 root 13943: fi
13944: else
13945: if test $uae_cv_prog_cc_watcom != yes; then
1.1.1.3 root 13946: echo "Couldn't find GCC. UAE may or may not compile and run correctly."
1.1.1.4 root 13947: NR_WARNINGS=`expr $NR_WARNINGS + 1`
1.1.1.3 root 13948: fi
13949: fi
13950:
1.1.1.4 root 13951: if [ "x$ac_cv_header_features_h" = "xyes" ]; then
1.1.1.22! root 13952: { echo "$as_me:$LINENO: checking for glibc-2.0 or higher" >&5
! 13953: echo $ECHO_N "checking for glibc-2.0 or higher... $ECHO_C" >&6; }
1.1.1.19 root 13954: cat >conftest.$ac_ext <<_ACEOF
13955: /* confdefs.h. */
13956: _ACEOF
13957: cat confdefs.h >>conftest.$ac_ext
13958: cat >>conftest.$ac_ext <<_ACEOF
13959: /* end confdefs.h. */
1.1.1.4 root 13960: #include <features.h>
1.1.1.6 root 13961: #if __GLIBC__ - 1 >= 1
13962: yes
1.1.1.4 root 13963: #endif
13964:
1.1.1.19 root 13965: _ACEOF
1.1.1.6 root 13966: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.19 root 13967: $EGREP "yes" >/dev/null 2>&1; then
1.1.1.22! root 13968: { echo "$as_me:$LINENO: result: yes" >&5
! 13969: echo "${ECHO_T}yes" >&6; }; HAVEGLIBC2=yes
1.1.1.3 root 13970: else
1.1.1.22! root 13971: { echo "$as_me:$LINENO: result: no" >&5
! 13972: echo "${ECHO_T}no" >&6; }
1.1.1.4 root 13973: fi
1.1.1.6 root 13974: rm -f conftest*
13975:
13976: fi
1.1.1.4 root 13977:
1.1.1.19 root 13978: if test $ac_cv_c_compiler_gnu = yes; then
1.1.1.4 root 13979: WARNING_CFLAGS="-Wall -Wno-unused -Wno-format -W -Wmissing-prototypes -Wstrict-prototypes"
13980: OPTIMIZE_CFLAGS="-O2 -fomit-frame-pointer"
13981: CFLAGS=
13982: fi
13983:
13984: if [ "x$DO_PROFILING" = "xyes" ]; then
13985: if [ "x$CC" = "xgcc" ]; then
13986: OPTIMIZE_CFLAGS="-O"
13987: DEBUG_CFLAGS="-g -fno-inline -fno-omit-frame-pointer -pg -DUSE_PROFILING"
13988: LDFLAGS="-pg"
13989: else
13990: DO_PROFILING=no
13991: echo "Don't know how to set up profiling for your compiler."
13992: NR_ERRORS=`expr $NR_ERRORS + 1`
1.1.1.3 root 13993: fi
13994: fi
13995:
1.1.1.4 root 13996: CFLAGS="$OPTIMIZE_CFLAGS $DEBUG_CFLAGS $WARNING_CFLAGS $CFLAGS $ADDITIONAL_CFLAGS"
13997:
13998: if [ "x$HAVEGCC27" = "xyes" ]; then
1.1.1.3 root 13999: CFLAGS="$CFLAGS -DGCCCONSTFUNC=\"__attribute__((const))\""
14000: else
14001: CFLAGS="$CFLAGS -DGCCCONSTFUNC="
14002: fi
1.1.1.2 root 14003:
1.1.1.22! root 14004: { echo "$as_me:$LINENO: checking for x86 target CPU" >&5
! 14005: echo $ECHO_N "checking for x86 target CPU... $ECHO_C" >&6; }
1.1.1.19 root 14006: cat >conftest.$ac_ext <<_ACEOF
14007: /* confdefs.h. */
14008: _ACEOF
14009: cat confdefs.h >>conftest.$ac_ext
14010: cat >>conftest.$ac_ext <<_ACEOF
14011: /* end confdefs.h. */
1.1.1.6 root 14012:
1.1.1.3 root 14013: #ifdef __i386__
1.1.1.6 root 14014: yes
1.1.1.3 root 14015: #endif
1.1 root 14016:
1.1.1.19 root 14017: _ACEOF
1.1.1.6 root 14018: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.19 root 14019: $EGREP "yes" >/dev/null 2>&1; then
1.1.1.22! root 14020: { echo "$as_me:$LINENO: result: yes" >&5
! 14021: echo "${ECHO_T}yes" >&6; }; HAVEI386=yes
1.1.1.3 root 14022: else
1.1.1.22! root 14023: { echo "$as_me:$LINENO: result: no" >&5
! 14024: echo "${ECHO_T}no" >&6; }
1.1.1.6 root 14025: fi
14026: rm -f conftest*
14027:
14028:
1.1.1.22! root 14029: { echo "$as_me:$LINENO: checking for m68k target CPU" >&5
! 14030: echo $ECHO_N "checking for m68k target CPU... $ECHO_C" >&6; }
1.1.1.19 root 14031: cat >conftest.$ac_ext <<_ACEOF
14032: /* confdefs.h. */
14033: _ACEOF
14034: cat confdefs.h >>conftest.$ac_ext
14035: cat >>conftest.$ac_ext <<_ACEOF
14036: /* end confdefs.h. */
1.1.1.6 root 14037:
14038: #ifdef __m68k__
14039: yes
14040: #endif
1.1.1.3 root 14041:
1.1.1.19 root 14042: _ACEOF
1.1.1.6 root 14043: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.19 root 14044: $EGREP "yes" >/dev/null 2>&1; then
1.1.1.22! root 14045: { echo "$as_me:$LINENO: result: yes" >&5
! 14046: echo "${ECHO_T}yes" >&6; }; HAVE68K=yes
1.1.1.6 root 14047: else
1.1.1.22! root 14048: { echo "$as_me:$LINENO: result: no" >&5
! 14049: echo "${ECHO_T}no" >&6; }
1.1.1.6 root 14050: fi
1.1.1.3 root 14051: rm -f conftest*
14052:
1.1.1.6 root 14053:
1.1.1.22! root 14054: { echo "$as_me:$LINENO: checking for ppc target CPU" >&5
! 14055: echo $ECHO_N "checking for ppc target CPU... $ECHO_C" >&6; }
1.1.1.19 root 14056: cat >conftest.$ac_ext <<_ACEOF
14057: /* confdefs.h. */
14058: _ACEOF
14059: cat confdefs.h >>conftest.$ac_ext
14060: cat >>conftest.$ac_ext <<_ACEOF
14061: /* end confdefs.h. */
1.1.1.11 root 14062:
14063: #ifdef __powerpc__
14064: yes
14065: #endif
14066:
1.1.1.19 root 14067: _ACEOF
1.1.1.11 root 14068: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.19 root 14069: $EGREP "yes" >/dev/null 2>&1; then
1.1.1.22! root 14070: { echo "$as_me:$LINENO: result: yes" >&5
! 14071: echo "${ECHO_T}yes" >&6; }; HAVEPPC=yes
1.1.1.11 root 14072: else
1.1.1.22! root 14073: { echo "$as_me:$LINENO: result: no" >&5
! 14074: echo "${ECHO_T}no" >&6; }
1.1.1.11 root 14075: fi
14076: rm -f conftest*
14077:
14078:
1.1.1.4 root 14079: if MACHINE=`uname -a 2>/dev/null`; then
14080: case "$MACHINE" in
14081: Linux*)
14082: HAVELINUX=yes
14083: ;;
14084: esac
14085: fi
14086:
1.1.1.3 root 14087:
1.1.1.22! root 14088: { echo "$as_me:$LINENO: checking whether assembler symbols need an underscore" >&5
! 14089: echo $ECHO_N "checking whether assembler symbols need an underscore... $ECHO_C" >&6; }
1.1.1.6 root 14090: cat >conftest1.S << EOF
14091: .text
14092: .globl _symbol
14093: _symbol:
14094: EOF
14095: cat >conftest2.c << EOF
14096: extern void symbol ();
14097: int main ()
14098: {
14099: symbol ();
14100: }
14101: EOF
14102: $CC conftest1.S -c -o conftest1.o >/dev/null 2>&1
14103: $CC conftest2.c -c -o conftest2.o >/dev/null 2>&1
14104: if $CC conftest1.o conftest2.o -o conftest >/dev/null 2>&1; then
14105: USE_UNDERSCORE=yes
14106: CFLAGS="$CFLAGS -DUSE_UNDERSCORE"
1.1.1.4 root 14107: else
1.1.1.6 root 14108: USE_UNDERSCORE=no
1.1.1.4 root 14109: fi
1.1.1.22! root 14110: { echo "$as_me:$LINENO: result: $USE_UNDERSCORE" >&5
! 14111: echo "${ECHO_T}$USE_UNDERSCORE" >&6; }
1.1.1.4 root 14112:
14113: rm -f conftest*
14114:
1.1.1.22! root 14115: # Check whether --enable-threads was given.
1.1.1.4 root 14116: if test "${enable_threads+set}" = set; then
1.1.1.22! root 14117: enableval=$enable_threads; USE_THREADS=$enableval
! 14118: fi
! 14119:
1.1.1.4 root 14120:
1.1.1.3 root 14121:
1.1.1.4 root 14122: if [ "x$HAVEGCC27" = "xyes" -a "x$HAVEI386" = "xyes" ]; then
14123: SAVECFLAGS=$CFLAGS
14124: CFLAGS="$CFLAGS -mno-schedule-prologue"
1.1.1.19 root 14125: cat >conftest.$ac_ext <<_ACEOF
14126: /* confdefs.h. */
14127: _ACEOF
14128: cat confdefs.h >>conftest.$ac_ext
14129: cat >>conftest.$ac_ext <<_ACEOF
14130: /* end confdefs.h. */
1.1.1.4 root 14131:
1.1.1.19 root 14132: int
14133: main ()
14134: {
14135: int main(){return 0;}
14136: ;
14137: return 0;
14138: }
14139: _ACEOF
14140: rm -f conftest.$ac_objext
1.1.1.22! root 14141: if { (ac_try="$ac_compile"
! 14142: case "(($ac_try" in
! 14143: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 14144: *) ac_try_echo=$ac_try;;
! 14145: esac
! 14146: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 14147: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 14148: ac_status=$?
14149: grep -v '^ *+' conftest.er1 >conftest.err
14150: rm -f conftest.er1
14151: cat conftest.err >&5
14152: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 14153: (exit $ac_status); } && {
! 14154: test -z "$ac_c_werror_flag" ||
! 14155: test ! -s conftest.err
! 14156: } && test -s conftest.$ac_objext; then
1.1.1.19 root 14157: NO_SCHED_CFLAGS="-mno-schedule-prologue"
14158: else
14159: echo "$as_me: failed program was:" >&5
14160: sed 's/^/| /' conftest.$ac_ext >&5
14161:
1.1.1.22! root 14162:
1.1.1.19 root 14163: fi
1.1.1.22! root 14164:
! 14165: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.19 root 14166: CFLAGS=$SAVECFLAGS
14167: fi
14168:
14169: if [ "x$HAVEGCC27" = "xyes" -a "x$HAVEI386" = "xyes" ]; then
14170: SAVECFLAGS=$CFLAGS
14171: CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
14172: cat >conftest.$ac_ext <<_ACEOF
14173: /* confdefs.h. */
14174: _ACEOF
14175: cat confdefs.h >>conftest.$ac_ext
14176: cat >>conftest.$ac_ext <<_ACEOF
14177: /* end confdefs.h. */
14178:
14179: int
14180: main ()
14181: {
1.1.1.4 root 14182: int main(){return 0;}
1.1.1.19 root 14183: ;
14184: return 0;
14185: }
14186: _ACEOF
14187: rm -f conftest.$ac_objext
1.1.1.22! root 14188: if { (ac_try="$ac_compile"
! 14189: case "(($ac_try" in
! 14190: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 14191: *) ac_try_echo=$ac_try;;
! 14192: esac
! 14193: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 14194: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 14195: ac_status=$?
14196: grep -v '^ *+' conftest.er1 >conftest.err
14197: rm -f conftest.er1
14198: cat conftest.err >&5
14199: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 14200: (exit $ac_status); } && {
! 14201: test -z "$ac_c_werror_flag" ||
! 14202: test ! -s conftest.err
! 14203: } && test -s conftest.$ac_objext; then
1.1.1.19 root 14204: SAVECFLAGS=$CFLAGS
1.1.1.4 root 14205: else
1.1.1.19 root 14206: echo "$as_me: failed program was:" >&5
14207: sed 's/^/| /' conftest.$ac_ext >&5
14208:
1.1.1.22! root 14209:
1.1.1.4 root 14210: fi
1.1.1.22! root 14211:
! 14212: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.4 root 14213: CFLAGS=$SAVECFLAGS
14214: fi
14215:
1.1.1.10 root 14216: if [ "x$HAVEGCC27" = "xyes" -a "x$HAVEI386" = "xyes" ]; then
14217: SAVECFLAGS=$CFLAGS
1.1.1.19 root 14218: CFLAGS="$CFLAGS -fno-reorder-blocks"
14219: cat >conftest.$ac_ext <<_ACEOF
14220: /* confdefs.h. */
14221: _ACEOF
14222: cat confdefs.h >>conftest.$ac_ext
14223: cat >>conftest.$ac_ext <<_ACEOF
14224: /* end confdefs.h. */
1.1.1.10 root 14225:
1.1.1.19 root 14226: int
14227: main ()
14228: {
1.1.1.10 root 14229: int main(){return 0;}
1.1.1.19 root 14230: ;
14231: return 0;
14232: }
14233: _ACEOF
14234: rm -f conftest.$ac_objext
1.1.1.22! root 14235: if { (ac_try="$ac_compile"
! 14236: case "(($ac_try" in
! 14237: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 14238: *) ac_try_echo=$ac_try;;
! 14239: esac
! 14240: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 14241: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 14242: ac_status=$?
14243: grep -v '^ *+' conftest.er1 >conftest.err
14244: rm -f conftest.er1
14245: cat conftest.err >&5
14246: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 14247: (exit $ac_status); } && {
! 14248: test -z "$ac_c_werror_flag" ||
! 14249: test ! -s conftest.err
! 14250: } && test -s conftest.$ac_objext; then
1.1.1.19 root 14251: NO_REORDER_CFLAGS="-fno-reorder-blocks"
1.1.1.10 root 14252: else
1.1.1.19 root 14253: echo "$as_me: failed program was:" >&5
14254: sed 's/^/| /' conftest.$ac_ext >&5
14255:
1.1.1.22! root 14256:
1.1.1.10 root 14257: fi
1.1.1.22! root 14258:
! 14259: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.10 root 14260: CFLAGS=$SAVECFLAGS
14261: fi
14262:
1.1.1.4 root 14263:
14264: if [ "x$HAVEGCC27" = "xyes" -a "x$HAVEI386" = "xyes" ]; then
14265: SAVECFLAGS=$CFLAGS
14266: CFLAGS="$CFLAGS -fno-exceptions"
14267: NOEXCEPTIONS=no
1.1.1.19 root 14268: cat >conftest.$ac_ext <<_ACEOF
14269: /* confdefs.h. */
14270: _ACEOF
14271: cat confdefs.h >>conftest.$ac_ext
14272: cat >>conftest.$ac_ext <<_ACEOF
14273: /* end confdefs.h. */
1.1.1.4 root 14274:
1.1.1.19 root 14275: int
14276: main ()
14277: {
1.1.1.4 root 14278: int main(){return 0;}
1.1.1.19 root 14279: ;
14280: return 0;
14281: }
14282: _ACEOF
14283: rm -f conftest.$ac_objext
1.1.1.22! root 14284: if { (ac_try="$ac_compile"
! 14285: case "(($ac_try" in
! 14286: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 14287: *) ac_try_echo=$ac_try;;
! 14288: esac
! 14289: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 14290: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 14291: ac_status=$?
14292: grep -v '^ *+' conftest.er1 >conftest.err
14293: rm -f conftest.er1
14294: cat conftest.err >&5
14295: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 14296: (exit $ac_status); } && {
! 14297: test -z "$ac_c_werror_flag" ||
! 14298: test ! -s conftest.err
! 14299: } && test -s conftest.$ac_objext; then
1.1.1.4 root 14300: NOEXCEPTIONS=yes
14301: else
1.1.1.19 root 14302: echo "$as_me: failed program was:" >&5
14303: sed 's/^/| /' conftest.$ac_ext >&5
14304:
1.1.1.22! root 14305:
1.1.1.4 root 14306: fi
1.1.1.22! root 14307:
! 14308: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.4 root 14309: if [ "x$NOEXCEPTIONS" = "xno" ]; then
14310: CFLAGS=$SAVECFLAGS
14311: fi
14312: fi
14313:
14314:
14315:
14316: if [ "x$HAVEGCC27" = "xyes" -a "x$HAVEI386" = "xyes" -a "x$DO_PROFILING" = "xno" ]; then
14317: MACHDEP=md-i386-gcc
1.1.1.6 root 14318: CFLAGS="$CFLAGS -DUNALIGNED_PROFITABLE -fno-strength-reduce -DREGPARAM=\"__attribute__((regparm(3)))\""
14319:
1.1.1.14 root 14320: CFLAGS="$CFLAGS -DX86_ASSEMBLY -DOPTIMIZED_FLAGS"
14321: ASMOBJS=md-X86.o
1.1.1.6 root 14322: else if test $uae_cv_prog_cc_watcom = yes; then
14323: MACHDEP=md-i386-watcom
14324: echo CFLAGS before: $CFLAGS
14325: CFLAGS=`echo $CFLAGS | sed 's, -g , ,' |sed 's,^-g ,,'`
14326: CFLAGS="$CFLAGS --/--bm --/--mf --/--w4 --/--s --/--ei --/--zp4 --/--5r"
14327: CFLAGS="$CFLAGS --/--oe=50 --/--oi --/--ok --/--ol --/--ot --/--oh --/--or --/--zq"
14328: CFLAGS="$CFLAGS -DREGPARAM= -DUNALIGNED_PROFITABLE"
14329: echo CFLAGS after: $CFLAGS
1.1.1.11 root 14330: else if [ "x$HAVEGCC27" = "xyes" -a "x$HAVEPPC" = "xyes" ]; then
14331: MACHDEP=md-ppc-gcc
14332: CFLAGS="$CFLAGS -DREGPARAM="
14333: if [ "x$HAVE_MOTO_LIB" = "xyes" ]; then
14334: MATHLIB="-lmoto $MATHLIB"
14335: fi
1.1.1.4 root 14336: else if [ "x$TARGET" = "xp_os" ]; then
14337: CPU=`uname -m`
14338: if [ "x$CPU" = "xm68k" ]; then
14339: MACHDEP=md-68k
1.1.1.7 root 14340: CFLAGS="$CFLAGS -DUNALIGNED_PROFITABLE -DREGPARAM=\"__attribute__((regparm(4)))\" -DM68K_FLAG_OPT=1"
1.1.1.4 root 14341: else if [ "x$CPU" = "xppc" ]; then
14342: MACHDEP=md-ppc
14343: CFLAGS="$CFLAGS -DREGPARAM="
14344: else if [ "x$CPU" = "xi386" ]; then
14345: MACHDEP=md-i386-gcc
14346: CFLAGS="$CFLAGS -DX86_ASSEMBLY -fno-strength-reduce -DREGPARAM=\"__attribute__((regparm(3)))\""
14347: else
14348: echo "Unsupported CPU: $CPU!"
14349: exit 5
14350: fi
14351: fi
14352: fi
14353: CFLAGS="$CFLAGS -nostdinc -I/gg/include -I/p/../inc -D__POS__"
14354: OSDEP=od-pos
1.1.1.7 root 14355: else if [ "x$TARGET" = "xamigaos" ]; then
1.1.1.4 root 14356: OSDEP=od-amiga
1.1.1.7 root 14357: CPU=`uname -m`
14358: if [ "x$HAVEGCC27" = "xyes" -a "x$HAVE68K" = "xyes" ]; then
14359: MACHDEP=md-68k
14360: CFLAGS="$CFLAGS -DUNALIGNED_PROFITABLE -DREGPARAM=\"__attribute__((regparm(4)))\" -DM68K_FLAG_OPT=1"
14361: else if [ "x$HAVEGCC27" = "xyes" -a "x$CPU" = "xppc" ]; then
14362: MACHDEP=md-ppc-gcc
14363: else
14364: CFLAGS="$CFLAGS -O -DREGPARAM="
14365: fi
1.1.1.19 root 14366: CPUOBJS="cpuemu1.o cpuemu2.o cpuemu3.o cpuemu4.o cpuemu5.o cpuemu6.o cpuemu7.o cpuemu8.o"
1.1.1.7 root 14367: fi
1.1.1.4 root 14368: else if [ "x$HAVEGCC27" = "xyes" -a "x$HAVE68K" = "xyes" -a "x$DO_PROFILING" = "xno" ]; then
14369: MACHDEP=md-68k
14370: CFLAGS="$CFLAGS -DM68K_FLAG_OPT=1 -DREGPARAM="
14371: else if [ "x$TARGET" = "xbeos" ]; then
14372: MACHDEP=md-ppc
14373: CFLAGS="$CFLAGS -DREGPARAM="
14374: OSDEP=od-beos
1.1 root 14375: else
1.1.1.3 root 14376: CFLAGS="$CFLAGS -DREGPARAM="
14377: fi
14378: fi
1.1 root 14379: fi
1.1.1.4 root 14380: fi
14381: fi
14382: fi
1.1.1.11 root 14383: fi
1.1.1.4 root 14384:
1.1.1.16 root 14385: FSDBOBJS=fsdb_unix.o
1.1.1.6 root 14386: if [ "x$TARGET" = "xwin32" ]; then
14387: OSDEP=od-win32
1.1.1.16 root 14388: FSDBOBJS=osdep/fsdb_win32.o
1.1.1.19 root 14389: if test $ac_cv_c_compiler_gnu = yes; then
1.1.1.6 root 14390: LIBS="$LIBS -lddraw -lwinmm -lcomctl32 -lcomdlg32 -luser32 -lgdi32 -lkernel32 -ladvapi32 -lshell32"
14391: else if test $uae_cv_prog_cc_watcom = yes; then
14392: LIBS="$LIBS -lddraw -lwinmm -lcomctl32"
14393: fi
14394: fi
14395: else if [ "x$HAVELINUX" = "xyes" ]; then
1.1.1.4 root 14396: OSDEP=od-linux
14397: fi
1.1.1.6 root 14398: fi
1.1 root 14399:
1.1.1.4 root 14400: if [ "x$TARGET" = "xx11" -o "x$TARGET" = "xsvgalib" -o "x$TARGET" = "xamigaos" \
1.1.1.13 root 14401: -o "x$TARGET" = "xbeos" -o "x$TARGET" = "xasciiart" -o "x$TARGET" = "xp_os" ]; then
1.1.1.2 root 14402: CFLAGS="$CFLAGS -DUSE_ZFILE"
14403: fi
14404:
1.1.1.4 root 14405: HAVE_USS_SOUND=no
14406: if [ "x$ac_cv_header_sys_soundcard_h" = "xyes" -o "x$ac_cv_header_machine_soundcard_h" = "xyes" ]; then
1.1.1.22! root 14407: { echo "$as_me:$LINENO: checking whether sys/soundcard.h or machine/soundcard.h works" >&5
! 14408: echo $ECHO_N "checking whether sys/soundcard.h or machine/soundcard.h works... $ECHO_C" >&6; }
1.1.1.19 root 14409: cat >conftest.$ac_ext <<_ACEOF
14410: /* confdefs.h. */
14411: _ACEOF
14412: cat confdefs.h >>conftest.$ac_ext
14413: cat >>conftest.$ac_ext <<_ACEOF
14414: /* end confdefs.h. */
1.1.1.4 root 14415:
14416: #include "confdefs.h"
14417: #ifdef HAVE_SYS_SOUNDCARD_H
14418: #include <sys/soundcard.h>
14419: #else
14420: #include <machine/soundcard.h>
14421: #endif
14422: #include <sys/ioctl.h>
14423:
1.1.1.19 root 14424: int
14425: main ()
14426: {
1.1.1.4 root 14427: int soundfd; ioctl (soundfd, SNDCTL_DSP_GETFMTS, 0);
1.1.1.19 root 14428: ;
14429: return 0;
14430: }
14431: _ACEOF
14432: rm -f conftest.$ac_objext
1.1.1.22! root 14433: if { (ac_try="$ac_compile"
! 14434: case "(($ac_try" in
! 14435: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 14436: *) ac_try_echo=$ac_try;;
! 14437: esac
! 14438: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 14439: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 14440: ac_status=$?
14441: grep -v '^ *+' conftest.er1 >conftest.err
14442: rm -f conftest.er1
14443: cat conftest.err >&5
14444: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 14445: (exit $ac_status); } && {
! 14446: test -z "$ac_c_werror_flag" ||
! 14447: test ! -s conftest.err
! 14448: } && test -s conftest.$ac_objext; then
! 14449: { echo "$as_me:$LINENO: result: yes" >&5
! 14450: echo "${ECHO_T}yes" >&6; }
1.1.1.4 root 14451: HAVE_USS_SOUND=yes
14452: else
1.1.1.19 root 14453: echo "$as_me: failed program was:" >&5
14454: sed 's/^/| /' conftest.$ac_ext >&5
14455:
1.1.1.22! root 14456: { echo "$as_me:$LINENO: result: no" >&5
! 14457: echo "${ECHO_T}no" >&6; }
1.1.1.4 root 14458: fi
1.1.1.22! root 14459:
! 14460: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.4 root 14461: fi
14462:
1.1.1.8 root 14463: if [ "x$ac_cv_header_dmedia_audio.h" = "xno" ]; then
14464: HAVE_SGIAUDIO_LIB=no
14465: fi
14466:
1.1.1.22! root 14467: { echo "$as_me:$LINENO: checking which sound system to use" >&5
! 14468: echo $ECHO_N "checking which sound system to use... $ECHO_C" >&6; }
! 14469: # Check whether --enable-file-sound was given.
1.1.1.4 root 14470: if test "${enable_file_sound+set}" = set; then
1.1.1.22! root 14471: enableval=$enable_file_sound; USE_FILE_SOUND=$enableval
! 14472: fi
! 14473:
1.1.1.4 root 14474:
14475: if [ "x$USE_FILE_SOUND" = "xyes" ]; then
1.1.1.22! root 14476: { echo "$as_me:$LINENO: result: file output" >&5
! 14477: echo "${ECHO_T}file output" >&6; }
1.1.1.7 root 14478: SOUNDDEP=sd-file
1.1.1.19 root 14479: USE_SOUND=yes
1.1.1.17 root 14480: else if [ "x$WANT_SDLSND" = "xyes" ]; then
1.1.1.22! root 14481: { echo "$as_me:$LINENO: result: SDL" >&5
! 14482: echo "${ECHO_T}SDL" >&6; }
1.1.1.16 root 14483: SOUNDDEP=sd-sdl
14484: USE_SOUND=yes
14485: NEED_THREAD_SUPPORT=yes
1.1.1.19 root 14486: else if [ "x$WANT_ALSA" = "xyes" ]; then
1.1.1.22! root 14487: { echo "$as_me:$LINENO: result: ALSA" >&5
! 14488: echo "${ECHO_T}ALSA" >&6; }
1.1.1.19 root 14489: SOUNDDEP=sd-alsa
14490: USE_SOUND=yes
1.1.1.7 root 14491: else if [ "x$HAVE_USS_SOUND" = "xyes" ]; then
1.1.1.22! root 14492: { echo "$as_me:$LINENO: result: USS" >&5
! 14493: echo "${ECHO_T}USS" >&6; }
1.1.1.7 root 14494: SOUNDDEP=sd-uss
1.1.1.4 root 14495: USE_SOUND=yes
1.1.1.7 root 14496: else if [ "x$ac_cv_header_sys_audioio_h" = "xyes" -o "x$ac_cv_header_sun_audioio_h" = "xyes" ]; then
1.1.1.22! root 14497: { echo "$as_me:$LINENO: result: Solaris/NetBSD" >&5
! 14498: echo "${ECHO_T}Solaris/NetBSD" >&6; }
1.1.1.7 root 14499: SOUNDDEP=sd-solaris
14500: USE_SOUND=yes
14501: else if [ "x$HAVE_AF_LIB" = "xyes" ]; then
1.1.1.22! root 14502: { echo "$as_me:$LINENO: result: AF sound" >&5
! 14503: echo "${ECHO_T}AF sound" >&6; }
1.1.1.7 root 14504: SOUNDDEP=sd-af
14505: LIBS="$LIBS -lAF"
14506: USE_SOUND=yes
1.1.1.8 root 14507: else if [ "x$HAVE_SGIAUDIO_LIB" = "xyes" ]; then
1.1.1.22! root 14508: { echo "$as_me:$LINENO: result: SGI sound" >&5
! 14509: echo "${ECHO_T}SGI sound" >&6; }
1.1.1.8 root 14510: SOUNDDEP=sd-sgi
14511: LIBS="$LIBS -laudio"
14512: USE_SOUND=yes
1.1.1.7 root 14513: else if [ "x$HAVE_MME_LIB" = "xyes" ]; then
1.1.1.22! root 14514: { echo "$as_me:$LINENO: result: MME sound" >&5
! 14515: echo "${ECHO_T}MME sound" >&6; }
1.1.1.7 root 14516: SOUNDDEP=sd-mme
14517: LIBS="$LIBS -lmme"
14518: USE_SOUND=yes
14519: else if [ "x$TARGET" = "xp_os" ]; then
1.1.1.22! root 14520: { echo "$as_me:$LINENO: result: pAudio.device" >&5
! 14521: echo "${ECHO_T}pAudio.device" >&6; }
1.1.1.7 root 14522: SOUNDDEP=od-pos
14523: USE_SOUND=yes
14524: else if [ "x$TARGET" = "xamigaos" ]; then
14525: if [ "x$ac_cv_header_devices_ahi_h" = "xyes" ]; then
1.1.1.22! root 14526: { echo "$as_me:$LINENO: result: Amiga AHI.device" >&5
! 14527: echo "${ECHO_T}Amiga AHI.device" >&6; }
1.1.1.4 root 14528: else
1.1.1.22! root 14529: { echo "$as_me:$LINENO: result: Amiga audio.device" >&5
! 14530: echo "${ECHO_T}Amiga audio.device" >&6; }
1.1.1.6 root 14531: fi
1.1.1.7 root 14532: SOUNDDEP=od-amiga
14533: USE_SOUND=yes
14534: else if [ "x$TARGET" = "xbeos" ]; then
1.1.1.22! root 14535: { echo "$as_me:$LINENO: result: BeOS sound" >&5
! 14536: echo "${ECHO_T}BeOS sound" >&6; }
1.1.1.7 root 14537: SOUNDDEP=od-beos
14538: USE_SOUND=yes
14539: else if [ "x$TARGET" = "xwin32" ]; then
1.1.1.22! root 14540: { echo "$as_me:$LINENO: result: Win32 sound" >&5
! 14541: echo "${ECHO_T}Win32 sound" >&6; }
1.1.1.7 root 14542: SOUNDDEP=od-win32
14543: USE_SOUND=yes
14544: else
14545: echo "no known sound system found"
14546: NR_ERRORS=`expr $NR_ERRORS + 1`
14547: fi
14548: fi
14549: fi
14550: fi
1.1.1.4 root 14551: fi
1.1.1.7 root 14552: fi
14553: fi
14554: fi
14555: fi
1.1.1.8 root 14556: fi
1.1.1.16 root 14557: fi
1.1.1.19 root 14558: fi
1.1.1.16 root 14559:
14560: if [ "x$NEED_THREAD_SUPPORT" = "xyes" ]; then
14561: if [ "x$USE_THREADS" != "xyes" ]; then
14562: echo "Threads are needed for this configuration; enabling thread support."
14563: fi
14564: fi
14565:
14566: if [ "x$USE_THREADS" = "xyes" -o "x$NEED_THREAD_SUPPORT" = "xyes" ]; then
14567: if [ "x$WANT_SDL" = "xyes" ]; then
14568: THREADDEP=td-sdl
14569: else if [ "x$HAVE_PTHREAD_LIB" = "xyes" ]; then
14570: THREADDEP=td-posix
14571: CFLAGS="$CFLAGS -DSUPPORT_THREADS -D_REENTRANT"
14572: LIBS="$LIBS -lpthread"
14573: if [ "x$HAVE_POSIX4_LIB" = "xyes" ]; then
14574: LIBS="$LIBS -lposix4"
14575: fi
14576:
1.1.1.19 root 14577: if [ "x$USE_THREADS" = "xyes" ]; then
1.1.1.16 root 14578: CFLAGS="$CFLAGS -DUAE_FILESYS_THREADS"
14579: fi
14580:
14581: if [ "x$HAVELINUX" = "xno" -o "x$HAVEGLIBC2" = "xno" ]; then
14582: echo "Thread support has only been tested on Linux systems with glibc-2.0"
14583: NR_WARNINGS=`expr $NR_WARNINGS + 1`
14584: fi
14585: if [ "x$TARGET" = "xsvgalib" ]; then
14586: echo "If you didn't compile a fixed version of SVGAlib then thread support"
14587: echo "in UAE will lock your machine real hard."
14588: NR_WARNINGS=`expr $NR_WARNINGS + 1`
14589: fi
14590: else
14591: echo "You tried to enable threads, but I couldn't find a thread library!"
14592: NR_ERRORS=`expr $NR_ERRORS + 1`
14593: fi
14594: fi
14595: fi
1.1.1.7 root 14596:
1.1.1.10 root 14597: SCSIOBJS=scsi-none.o
1.1.1.22! root 14598: # Check whether --enable-scsi-device was given.
1.1.1.10 root 14599: if test "${enable_scsi_device+set}" = set; then
1.1.1.22! root 14600: enableval=$enable_scsi_device; USE_SCSI_DEVICE=$enableval
! 14601: fi
! 14602:
1.1.1.10 root 14603: if [ "x$USE_SCSI_DEVICE" = "xyes" ]; then
1.1.1.22! root 14604: { echo "$as_me:$LINENO: checking \"availability of libscg headers and lib\"" >&5
! 14605: echo $ECHO_N "checking \"availability of libscg headers and lib\"... $ECHO_C" >&6; }
1.1.1.13 root 14606: OLDLIBS="$LIBS"
1.1.1.14 root 14607: OLDCFLAGS="$CFLAGS"
14608: CFLAGS="$CFLAGS -Isrc/include"
14609: LIBS="-Lsrc $LIBS -lscg -lschily"
1.1.1.19 root 14610: cat >conftest.$ac_ext <<_ACEOF
14611: /* confdefs.h. */
14612: _ACEOF
14613: cat confdefs.h >>conftest.$ac_ext
14614: cat >>conftest.$ac_ext <<_ACEOF
14615: /* end confdefs.h. */
1.1.1.14 root 14616: typedef int BOOL;
1.1.1.13 root 14617: #include "scg/scgcmd.h"
14618: #include "scg/scsitransp.h"
14619: #include "scg/scsireg.h"
1.1.1.19 root 14620: int
14621: main ()
14622: {
1.1.1.13 root 14623: {SCSI *scgp = open_scsi ((void *)0, (void *)0, 0, 1, 1);}
1.1.1.19 root 14624: ;
14625: return 0;
14626: }
14627: _ACEOF
14628: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.22! root 14629: if { (ac_try="$ac_link"
! 14630: case "(($ac_try" in
! 14631: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 14632: *) ac_try_echo=$ac_try;;
! 14633: esac
! 14634: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 14635: (eval "$ac_link") 2>conftest.er1
1.1.1.19 root 14636: ac_status=$?
14637: grep -v '^ *+' conftest.er1 >conftest.err
14638: rm -f conftest.er1
14639: cat conftest.err >&5
14640: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 14641: (exit $ac_status); } && {
! 14642: test -z "$ac_c_werror_flag" ||
! 14643: test ! -s conftest.err
! 14644: } && test -s conftest$ac_exeext &&
! 14645: $as_test_x conftest$ac_exeext; then
1.1.1.19 root 14646:
1.1.1.22! root 14647: { echo "$as_me:$LINENO: result: available" >&5
! 14648: echo "${ECHO_T}available" >&6; }
1.1.1.10 root 14649: SCSIOBJS=scsidev.o
1.1.1.19 root 14650:
1.1.1.13 root 14651: else
1.1.1.19 root 14652: echo "$as_me: failed program was:" >&5
14653: sed 's/^/| /' conftest.$ac_ext >&5
14654:
14655:
1.1.1.22! root 14656: { echo "$as_me:$LINENO: result: not available" >&5
! 14657: echo "${ECHO_T}not available" >&6; }
1.1.1.13 root 14658: NR_WARNINGS=`expr $NR_WARNINGS + 1`
14659: echo "Please refer to the UAE SCSI device section in docs/README for installation instructions."
14660: LIBS="$OLDLIBS"
1.1.1.19 root 14661:
1.1.1.13 root 14662: fi
1.1.1.22! root 14663:
! 14664: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1.1.19 root 14665: conftest$ac_exeext conftest.$ac_ext
1.1.1.14 root 14666: CFLAGS="$OLDCFLAGS"
1.1.1.10 root 14667: fi
14668:
14669:
1.1.1.16 root 14670: if [ "x$WANT_SDL" = "xyes" ]; then
14671: OD_JOYSTICK=sdl-joystick.c
1.1.1.18 root 14672: else if [ "x$ac_cv_header_machine_joystick_h" = "xyes" ]; then
1.1.1.19 root 14673: cat >conftest.$ac_ext <<_ACEOF
14674: /* confdefs.h. */
14675: _ACEOF
14676: cat confdefs.h >>conftest.$ac_ext
14677: cat >>conftest.$ac_ext <<_ACEOF
14678: /* end confdefs.h. */
1.1.1.10 root 14679: #include <machine/joystick.h>
1.1.1.19 root 14680: int
14681: main ()
14682: {
1.1.1.10 root 14683: { struct joystick a; }
1.1.1.19 root 14684: ;
14685: return 0;
14686: }
14687: _ACEOF
14688: rm -f conftest.$ac_objext
1.1.1.22! root 14689: if { (ac_try="$ac_compile"
! 14690: case "(($ac_try" in
! 14691: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 14692: *) ac_try_echo=$ac_try;;
! 14693: esac
! 14694: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 14695: (eval "$ac_compile") 2>conftest.er1
1.1.1.19 root 14696: ac_status=$?
14697: grep -v '^ *+' conftest.er1 >conftest.err
14698: rm -f conftest.er1
14699: cat conftest.err >&5
14700: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.22! root 14701: (exit $ac_status); } && {
! 14702: test -z "$ac_c_werror_flag" ||
! 14703: test ! -s conftest.err
! 14704: } && test -s conftest.$ac_objext; then
1.1.1.10 root 14705: OD_JOYSTICK=od-linux/joystick.c
14706: else
1.1.1.19 root 14707: echo "$as_me: failed program was:" >&5
14708: sed 's/^/| /' conftest.$ac_ext >&5
14709:
1.1.1.22! root 14710:
1.1.1.10 root 14711: fi
1.1.1.22! root 14712:
! 14713: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.10 root 14714: else
14715: OD_JOYSTICK=$OSDEP/joystick.c
14716: fi
1.1.1.16 root 14717: fi
1.1.1.4 root 14718:
14719: rm -f src/machdep
14720: rm -f src/osdep
14721: rm -f src/threaddep
14722: rm -f src/sounddep
1.1.1.10 root 14723: rm -f src/scsidep
1.1.1.4 root 14724: rm -f src/target.h
1.1.1.6 root 14725: rm -f src/sd-sound.c
14726: rm -f src/od-joy.c
14727: rm -f src/md-support.c
14728: rm -f src/md-X86.S
1.1.1.10 root 14729: rm -f src/scsi-support.c
1.1.1.3 root 14730:
1.1.1.4 root 14731: if [ "x$TARGET" = "xamigaos" -o "x$TARGET" = "xp_os" ]; then
1.1.1.22! root 14732: { echo "$as_me:$LINENO: checking which CPU to use" >&5
! 14733: echo $ECHO_N "checking which CPU to use... $ECHO_C" >&6; }
1.1.1.3 root 14734: cpu=`cpu | cut -d' ' -f2`
1.1.1.22! root 14735: { echo "$as_me:$LINENO: result: $cpu" >&5
! 14736: echo "${ECHO_T}$cpu" >&6; }
1.1.1.3 root 14737: CFLAGS="$CFLAGS -m$cpu"
14738:
1.1.1.22! root 14739: { echo "$as_me:$LINENO: checking which FPU to use" >&5
! 14740: echo $ECHO_N "checking which FPU to use... $ECHO_C" >&6; }
1.1.1.4 root 14741: fpu=`cpu | cut -d' ' -f3 | grep '^688812$'`
14742: if [ "x$fpu" != "x" ]; then
1.1.1.22! root 14743: { echo "$as_me:$LINENO: result: 68881" >&5
! 14744: echo "${ECHO_T}68881" >&6; }
1.1.1.4 root 14745: CFLAGS="$CFLAGS -m68881"
1.1.1.3 root 14746: else
1.1.1.22! root 14747: { echo "$as_me:$LINENO: result: none" >&5
! 14748: echo "${ECHO_T}none" >&6; }
1.1.1.3 root 14749: fi
14750: fi
14751:
1.1.1.2 root 14752:
14753:
1.1 root 14754:
14755:
14756:
14757:
14758:
14759:
14760:
14761:
14762:
1.1.1.3 root 14763:
1.1.1.4 root 14764:
1.1.1.3 root 14765:
14766:
14767:
1.1.1.6 root 14768:
1.1.1.16 root 14769:
1.1.1.19 root 14770:
1.1.1.22! root 14771: ac_config_files="$ac_config_files src/Makefile Makefile"
! 14772:
! 14773:
! 14774: if [ "x$DO_PROFILING" = "xyes" ]; then
! 14775: echo "Building a profiling version of UAE (select this option only if you know"
! 14776: echo "what you are doing)"
! 14777: fi
! 14778:
! 14779:
! 14780:
! 14781:
! 14782: if test -f $abssrcdir/src/target.h
! 14783: then
! 14784: echo
! 14785: echo "Fatal error: Can't configure in the current directory, because"
! 14786: echo "configure was run in the source directory. Go to the source"
! 14787: echo "directory, type"
! 14788: echo " make streifenfrei"
! 14789: echo "and try again."
! 14790: exit 1
! 14791: fi
! 14792:
! 14793: ac_config_links="$ac_config_links src/osdep:src/$OSDEP"
! 14794:
! 14795: ac_config_links="$ac_config_links src/sounddep:src/$SOUNDDEP"
! 14796:
! 14797: ac_config_links="$ac_config_links src/threaddep:src/$THREADDEP"
! 14798:
! 14799: ac_config_links="$ac_config_links src/machdep:src/$MACHDEP"
! 14800:
1.1.1.19 root 14801:
14802: cat >confcache <<\_ACEOF
1.1 root 14803: # This file is a shell script that caches the results of configure
14804: # tests run on this system so they can be shared between configure
1.1.1.19 root 14805: # scripts and configure runs, see configure's option --config-cache.
14806: # It is not useful on other systems. If it contains results you don't
14807: # want to keep, you may remove or edit it.
1.1 root 14808: #
1.1.1.19 root 14809: # config.status only pays attention to the cache file if you give it
14810: # the --recheck option to rerun configure.
1.1 root 14811: #
1.1.1.19 root 14812: # `ac_cv_env_foo' variables (set or unset) will be overridden when
14813: # loading this file, other *unset* `ac_cv_foo' will be assigned the
14814: # following values.
14815:
14816: _ACEOF
14817:
1.1.1.4 root 14818: # The following way of writing the cache mishandles newlines in values,
14819: # but we know of no workaround that is simple, portable, and efficient.
1.1.1.22! root 14820: # So, we kill variables containing newlines.
1.1 root 14821: # Ultrix sh set writes to stderr and can't be redirected directly,
14822: # and sets the high bit in the cache file unless we assign to the vars.
1.1.1.22! root 14823: (
! 14824: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
! 14825: eval ac_val=\$$ac_var
! 14826: case $ac_val in #(
! 14827: *${as_nl}*)
! 14828: case $ac_var in #(
! 14829: *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
! 14830: echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
! 14831: esac
! 14832: case $ac_var in #(
! 14833: _ | IFS | as_nl) ;; #(
! 14834: *) $as_unset $ac_var ;;
! 14835: esac ;;
! 14836: esac
! 14837: done
! 14838:
1.1.1.19 root 14839: (set) 2>&1 |
1.1.1.22! root 14840: case $as_nl`(ac_space=' '; set) 2>&1` in #(
! 14841: *${as_nl}ac_space=\ *)
1.1.1.19 root 14842: # `set' does not quote correctly, so add quotes (double-quote
14843: # substitution turns \\\\ into \\, and sed turns \\ into \).
14844: sed -n \
14845: "s/'/'\\\\''/g;
14846: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.1.1.22! root 14847: ;; #(
1.1.1.19 root 14848: *)
14849: # `set' quotes correctly as required by POSIX, so do not add quotes.
1.1.1.22! root 14850: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.1.1.19 root 14851: ;;
1.1.1.22! root 14852: esac |
! 14853: sort
! 14854: ) |
1.1.1.19 root 14855: sed '
1.1.1.22! root 14856: /^ac_cv_env_/b end
1.1.1.19 root 14857: t clear
1.1.1.22! root 14858: :clear
1.1.1.19 root 14859: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14860: t end
1.1.1.22! root 14861: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
! 14862: :end' >>confcache
! 14863: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
! 14864: if test -w "$cache_file"; then
! 14865: test "x$cache_file" != "x/dev/null" &&
! 14866: { echo "$as_me:$LINENO: updating cache $cache_file" >&5
! 14867: echo "$as_me: updating cache $cache_file" >&6;}
1.1.1.19 root 14868: cat confcache >$cache_file
1.1 root 14869: else
1.1.1.22! root 14870: { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
! 14871: echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1 root 14872: fi
14873: fi
14874: rm -f confcache
14875:
14876: test "x$prefix" = xNONE && prefix=$ac_default_prefix
14877: # Let make expand exec_prefix.
14878: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14879:
14880: DEFS=-DHAVE_CONFIG_H
14881:
1.1.1.19 root 14882: ac_libobjs=
14883: ac_ltlibobjs=
14884: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14885: # 1. Remove the extension, and $U if already installed.
1.1.1.22! root 14886: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
! 14887: ac_i=`echo "$ac_i" | sed "$ac_script"`
! 14888: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
! 14889: # will be set to the directory where LIBOBJS objects are built.
! 14890: ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
! 14891: ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
1.1.1.19 root 14892: done
14893: LIBOBJS=$ac_libobjs
14894:
14895: LTLIBOBJS=$ac_ltlibobjs
14896:
1.1 root 14897:
1.1.1.19 root 14898:
14899: : ${CONFIG_STATUS=./config.status}
14900: ac_clean_files_save=$ac_clean_files
14901: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14902: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14903: echo "$as_me: creating $CONFIG_STATUS" >&6;}
14904: cat >$CONFIG_STATUS <<_ACEOF
14905: #! $SHELL
14906: # Generated by $as_me.
1.1 root 14907: # Run this file to recreate the current configuration.
14908: # Compiler output produced by configure, useful for debugging
1.1.1.19 root 14909: # configure, is in config.log if it exists.
1.1 root 14910:
1.1.1.19 root 14911: debug=false
14912: ac_cs_recheck=false
14913: ac_cs_silent=false
14914: SHELL=\${CONFIG_SHELL-$SHELL}
14915: _ACEOF
14916:
14917: cat >>$CONFIG_STATUS <<\_ACEOF
14918: ## --------------------- ##
14919: ## M4sh Initialization. ##
14920: ## --------------------- ##
14921:
1.1.1.22! root 14922: # Be more Bourne compatible
! 14923: DUALCASE=1; export DUALCASE # for MKS sh
1.1.1.19 root 14924: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14925: emulate sh
14926: NULLCMD=:
14927: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14928: # is contrary to our usage. Disable this feature.
14929: alias -g '${1+"$@"}'='"$@"'
1.1.1.22! root 14930: setopt NO_GLOB_SUBST
! 14931: else
! 14932: case `(set -o) 2>/dev/null` in
! 14933: *posix*) set -o posix ;;
! 14934: esac
! 14935:
! 14936: fi
! 14937:
! 14938:
! 14939:
! 14940:
! 14941: # PATH needs CR
! 14942: # Avoid depending upon Character Ranges.
! 14943: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
! 14944: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
! 14945: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
! 14946: as_cr_digits='0123456789'
! 14947: as_cr_alnum=$as_cr_Letters$as_cr_digits
! 14948:
! 14949: # The user is always right.
! 14950: if test "${PATH_SEPARATOR+set}" != set; then
! 14951: echo "#! /bin/sh" >conf$$.sh
! 14952: echo "exit 0" >>conf$$.sh
! 14953: chmod +x conf$$.sh
! 14954: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
! 14955: PATH_SEPARATOR=';'
! 14956: else
! 14957: PATH_SEPARATOR=:
! 14958: fi
! 14959: rm -f conf$$.sh
1.1.1.19 root 14960: fi
14961:
14962: # Support unset when possible.
14963: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14964: as_unset=unset
14965: else
14966: as_unset=false
14967: fi
14968:
14969:
1.1.1.22! root 14970: # IFS
! 14971: # We need space, tab and new line, in precisely that order. Quoting is
! 14972: # there to prevent editors from complaining about space-tab.
! 14973: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
! 14974: # splitting by setting IFS to empty value.)
! 14975: as_nl='
! 14976: '
! 14977: IFS=" "" $as_nl"
! 14978:
! 14979: # Find who we are. Look in the path if we contain no directory separator.
! 14980: case $0 in
! 14981: *[\\/]* ) as_myself=$0 ;;
! 14982: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 14983: for as_dir in $PATH
! 14984: do
! 14985: IFS=$as_save_IFS
! 14986: test -z "$as_dir" && as_dir=.
! 14987: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
! 14988: done
! 14989: IFS=$as_save_IFS
! 14990:
! 14991: ;;
! 14992: esac
! 14993: # We did not find ourselves, most probably we were run as `sh COMMAND'
! 14994: # in which case we are not to be found in the path.
! 14995: if test "x$as_myself" = x; then
! 14996: as_myself=$0
! 14997: fi
! 14998: if test ! -f "$as_myself"; then
! 14999: echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
! 15000: { (exit 1); exit 1; }
! 15001: fi
! 15002:
1.1.1.19 root 15003: # Work around bugs in pre-3.0 UWIN ksh.
1.1.1.22! root 15004: for as_var in ENV MAIL MAILPATH
! 15005: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
! 15006: done
1.1.1.19 root 15007: PS1='$ '
15008: PS2='> '
15009: PS4='+ '
15010:
15011: # NLS nuisances.
15012: for as_var in \
15013: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15014: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15015: LC_TELEPHONE LC_TIME
15016: do
15017: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15018: eval $as_var=C; export $as_var
15019: else
1.1.1.22! root 15020: ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
1.1.1.19 root 15021: fi
15022: done
15023:
15024: # Required to use basename.
1.1.1.22! root 15025: if expr a : '\(a\)' >/dev/null 2>&1 &&
! 15026: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.1.1.19 root 15027: as_expr=expr
15028: else
15029: as_expr=false
15030: fi
15031:
1.1.1.22! root 15032: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.1.1.19 root 15033: as_basename=basename
15034: else
15035: as_basename=false
15036: fi
15037:
15038:
15039: # Name of the executable.
1.1.1.22! root 15040: as_me=`$as_basename -- "$0" ||
1.1.1.19 root 15041: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15042: X"$0" : 'X\(//\)$' \| \
1.1.1.22! root 15043: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.1.1.19 root 15044: echo X/"$0" |
1.1.1.22! root 15045: sed '/^.*\/\([^/][^/]*\)\/*$/{
! 15046: s//\1/
! 15047: q
! 15048: }
! 15049: /^X\/\(\/\/\)$/{
! 15050: s//\1/
! 15051: q
! 15052: }
! 15053: /^X\/\(\/\).*/{
! 15054: s//\1/
! 15055: q
! 15056: }
! 15057: s/.*/./; q'`
1.1.1.19 root 15058:
1.1.1.22! root 15059: # CDPATH.
! 15060: $as_unset CDPATH
1.1.1.19 root 15061:
15062:
15063:
15064: as_lineno_1=$LINENO
15065: as_lineno_2=$LINENO
15066: test "x$as_lineno_1" != "x$as_lineno_2" &&
1.1.1.22! root 15067: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
1.1.1.19 root 15068:
15069: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15070: # uniformly replaced by the line number. The first 'sed' inserts a
1.1.1.22! root 15071: # line-number line after each line using $LINENO; the second 'sed'
! 15072: # does the real work. The second script uses 'N' to pair each
! 15073: # line-number line with the line containing $LINENO, and appends
! 15074: # trailing '-' during substitution so that $LINENO is not a special
! 15075: # case at line end.
1.1.1.19 root 15076: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
1.1.1.22! root 15077: # scripts with optimization help from Paolo Bonzini. Blame Lee
! 15078: # E. McMahon (1931-1989) for sed's syntax. :-)
! 15079: sed -n '
! 15080: p
! 15081: /[$]LINENO/=
! 15082: ' <$as_myself |
1.1.1.19 root 15083: sed '
1.1.1.22! root 15084: s/[$]LINENO.*/&-/
! 15085: t lineno
! 15086: b
! 15087: :lineno
1.1.1.19 root 15088: N
1.1.1.22! root 15089: :loop
! 15090: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.1.1.19 root 15091: t loop
1.1.1.22! root 15092: s/-\n.*//
1.1.1.19 root 15093: ' >$as_me.lineno &&
1.1.1.22! root 15094: chmod +x "$as_me.lineno" ||
! 15095: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
1.1.1.19 root 15096: { (exit 1); exit 1; }; }
15097:
15098: # Don't try to exec as it changes $[0], causing all sort of problems
15099: # (the dirname of $[0] is not the place where we might find the
1.1.1.22! root 15100: # original and so on. Autoconf is especially sensitive to this).
! 15101: . "./$as_me.lineno"
1.1.1.19 root 15102: # Exit status is that of the last command.
15103: exit
15104: }
15105:
15106:
1.1.1.22! root 15107: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
! 15108: as_dirname=dirname
! 15109: else
! 15110: as_dirname=false
! 15111: fi
! 15112:
! 15113: ECHO_C= ECHO_N= ECHO_T=
! 15114: case `echo -n x` in
! 15115: -n*)
! 15116: case `echo 'x\c'` in
! 15117: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
! 15118: *) ECHO_C='\c';;
! 15119: esac;;
! 15120: *)
! 15121: ECHO_N='-n';;
1.1.1.19 root 15122: esac
15123:
1.1.1.22! root 15124: if expr a : '\(a\)' >/dev/null 2>&1 &&
! 15125: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.1.1.19 root 15126: as_expr=expr
15127: else
15128: as_expr=false
15129: fi
15130:
15131: rm -f conf$$ conf$$.exe conf$$.file
1.1.1.22! root 15132: if test -d conf$$.dir; then
! 15133: rm -f conf$$.dir/conf$$.file
! 15134: else
! 15135: rm -f conf$$.dir
! 15136: mkdir conf$$.dir
! 15137: fi
1.1.1.19 root 15138: echo >conf$$.file
15139: if ln -s conf$$.file conf$$ 2>/dev/null; then
1.1.1.22! root 15140: as_ln_s='ln -s'
! 15141: # ... but there are two gotchas:
! 15142: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
! 15143: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
! 15144: # In both cases, we have to default to `cp -p'.
! 15145: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.1.1.19 root 15146: as_ln_s='cp -p'
15147: elif ln conf$$.file conf$$ 2>/dev/null; then
15148: as_ln_s=ln
15149: else
15150: as_ln_s='cp -p'
15151: fi
1.1.1.22! root 15152: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
! 15153: rmdir conf$$.dir 2>/dev/null
1.1.1.19 root 15154:
15155: if mkdir -p . 2>/dev/null; then
15156: as_mkdir_p=:
15157: else
15158: test -d ./-p && rmdir ./-p
15159: as_mkdir_p=false
15160: fi
15161:
1.1.1.22! root 15162: if test -x / >/dev/null 2>&1; then
! 15163: as_test_x='test -x'
! 15164: else
! 15165: if ls -dL / >/dev/null 2>&1; then
! 15166: as_ls_L_option=L
! 15167: else
! 15168: as_ls_L_option=
! 15169: fi
! 15170: as_test_x='
! 15171: eval sh -c '\''
! 15172: if test -d "$1"; then
! 15173: test -d "$1/.";
! 15174: else
! 15175: case $1 in
! 15176: -*)set "./$1";;
! 15177: esac;
! 15178: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
! 15179: ???[sx]*):;;*)false;;esac;fi
! 15180: '\'' sh
! 15181: '
! 15182: fi
! 15183: as_executable_p=$as_test_x
1.1.1.19 root 15184:
15185: # Sed expression to map a string onto a valid CPP name.
15186: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15187:
15188: # Sed expression to map a string onto a valid variable name.
15189: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15190:
15191:
15192: exec 6>&1
15193:
1.1.1.22! root 15194: # Save the log message, to keep $[0] and so on meaningful, and to
1.1.1.19 root 15195: # report actual input values of CONFIG_FILES etc. instead of their
1.1.1.22! root 15196: # values after options handling.
! 15197: ac_log="
! 15198: This file was extended by UAE $as_me 0.8.26, which was
! 15199: generated by GNU Autoconf 2.61. Invocation command line was
1.1.1.19 root 15200:
15201: CONFIG_FILES = $CONFIG_FILES
15202: CONFIG_HEADERS = $CONFIG_HEADERS
15203: CONFIG_LINKS = $CONFIG_LINKS
15204: CONFIG_COMMANDS = $CONFIG_COMMANDS
15205: $ $0 $@
15206:
1.1.1.22! root 15207: on `(hostname || uname -n) 2>/dev/null | sed 1q`
! 15208: "
! 15209:
1.1.1.19 root 15210: _ACEOF
15211:
1.1.1.22! root 15212: cat >>$CONFIG_STATUS <<_ACEOF
1.1.1.19 root 15213: # Files that config.status was made for.
1.1.1.22! root 15214: config_files="$ac_config_files"
! 15215: config_headers="$ac_config_headers"
! 15216: config_links="$ac_config_links"
1.1.1.19 root 15217:
1.1.1.22! root 15218: _ACEOF
1.1.1.19 root 15219:
15220: cat >>$CONFIG_STATUS <<\_ACEOF
15221: ac_cs_usage="\
15222: \`$as_me' instantiates files from templates according to the
15223: current configuration.
15224:
15225: Usage: $0 [OPTIONS] [FILE]...
15226:
15227: -h, --help print this help, then exit
1.1.1.22! root 15228: -V, --version print version number and configuration settings, then exit
1.1.1.19 root 15229: -q, --quiet do not print progress messages
15230: -d, --debug don't remove temporary files
15231: --recheck update $as_me by reconfiguring in the same conditions
15232: --file=FILE[:TEMPLATE]
15233: instantiate the configuration file FILE
15234: --header=FILE[:TEMPLATE]
15235: instantiate the configuration header FILE
15236:
15237: Configuration files:
15238: $config_files
15239:
15240: Configuration headers:
15241: $config_headers
15242:
1.1.1.22! root 15243: Configuration links:
! 15244: $config_links
! 15245:
1.1.1.19 root 15246: Report bugs to <[email protected]>."
15247:
1.1.1.22! root 15248: _ACEOF
1.1.1.19 root 15249: cat >>$CONFIG_STATUS <<_ACEOF
15250: ac_cs_version="\\
1.1.1.22! root 15251: UAE config.status 0.8.26
! 15252: configured by $0, generated by GNU Autoconf 2.61,
! 15253: with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1.1.1.19 root 15254:
1.1.1.22! root 15255: Copyright (C) 2006 Free Software Foundation, Inc.
1.1.1.19 root 15256: This config.status script is free software; the Free Software Foundation
15257: gives unlimited permission to copy, distribute and modify it."
1.1.1.22! root 15258:
! 15259: ac_pwd='$ac_pwd'
! 15260: srcdir='$srcdir'
1.1.1.19 root 15261: _ACEOF
15262:
15263: cat >>$CONFIG_STATUS <<\_ACEOF
15264: # If no file are specified by the user, then we need to provide default
15265: # value. By we need to know if files were specified by the user.
15266: ac_need_defaults=:
15267: while test $# != 0
1.1 root 15268: do
1.1.1.19 root 15269: case $1 in
15270: --*=*)
1.1.1.22! root 15271: ac_option=`expr "X$1" : 'X\([^=]*\)='`
! 15272: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1.1.1.19 root 15273: ac_shift=:
15274: ;;
1.1.1.22! root 15275: *)
1.1.1.19 root 15276: ac_option=$1
15277: ac_optarg=$2
15278: ac_shift=shift
15279: ;;
15280: esac
15281:
15282: case $ac_option in
15283: # Handling of the options.
1.1 root 15284: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1.1.1.19 root 15285: ac_cs_recheck=: ;;
1.1.1.22! root 15286: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
! 15287: echo "$ac_cs_version"; exit ;;
! 15288: --debug | --debu | --deb | --de | --d | -d )
1.1.1.19 root 15289: debug=: ;;
15290: --file | --fil | --fi | --f )
15291: $ac_shift
15292: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15293: ac_need_defaults=false;;
15294: --header | --heade | --head | --hea )
15295: $ac_shift
15296: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15297: ac_need_defaults=false;;
1.1.1.22! root 15298: --he | --h)
! 15299: # Conflict between --help and --header
! 15300: { echo "$as_me: error: ambiguous option: $1
! 15301: Try \`$0 --help' for more information." >&2
! 15302: { (exit 1); exit 1; }; };;
! 15303: --help | --hel | -h )
! 15304: echo "$ac_cs_usage"; exit ;;
1.1.1.19 root 15305: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15306: | -silent | --silent | --silen | --sile | --sil | --si | --s)
15307: ac_cs_silent=: ;;
15308:
15309: # This is an error.
1.1.1.22! root 15310: -*) { echo "$as_me: error: unrecognized option: $1
! 15311: Try \`$0 --help' for more information." >&2
1.1.1.19 root 15312: { (exit 1); exit 1; }; } ;;
15313:
1.1.1.22! root 15314: *) ac_config_targets="$ac_config_targets $1"
! 15315: ac_need_defaults=false ;;
1.1.1.19 root 15316:
1.1 root 15317: esac
1.1.1.19 root 15318: shift
1.1 root 15319: done
15320:
1.1.1.19 root 15321: ac_configure_extra_args=
1.1 root 15322:
1.1.1.19 root 15323: if $ac_cs_silent; then
15324: exec 6>/dev/null
15325: ac_configure_extra_args="$ac_configure_extra_args --silent"
15326: fi
1.1 root 15327:
1.1.1.19 root 15328: _ACEOF
15329: cat >>$CONFIG_STATUS <<_ACEOF
15330: if \$ac_cs_recheck; then
1.1.1.22! root 15331: echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
! 15332: CONFIG_SHELL=$SHELL
! 15333: export CONFIG_SHELL
! 15334: exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.1.1.19 root 15335: fi
15336:
15337: _ACEOF
1.1.1.22! root 15338: cat >>$CONFIG_STATUS <<\_ACEOF
! 15339: exec 5>>config.log
! 15340: {
! 15341: echo
! 15342: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
! 15343: ## Running $as_me. ##
! 15344: _ASBOX
! 15345: echo "$ac_log"
! 15346: } >&5
1.1.1.19 root 15347:
1.1.1.22! root 15348: _ACEOF
! 15349: cat >>$CONFIG_STATUS <<_ACEOF
! 15350: _ACEOF
1.1.1.19 root 15351:
15352: cat >>$CONFIG_STATUS <<\_ACEOF
1.1.1.22! root 15353:
! 15354: # Handling of arguments.
1.1.1.19 root 15355: for ac_config_target in $ac_config_targets
15356: do
1.1.1.22! root 15357: case $ac_config_target in
! 15358: "src/sysconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS src/sysconfig.h" ;;
! 15359: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
! 15360: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
! 15361: "src/osdep") CONFIG_LINKS="$CONFIG_LINKS src/osdep:src/$OSDEP" ;;
! 15362: "src/sounddep") CONFIG_LINKS="$CONFIG_LINKS src/sounddep:src/$SOUNDDEP" ;;
! 15363: "src/threaddep") CONFIG_LINKS="$CONFIG_LINKS src/threaddep:src/$THREADDEP" ;;
! 15364: "src/machdep") CONFIG_LINKS="$CONFIG_LINKS src/machdep:src/$MACHDEP" ;;
! 15365:
1.1.1.19 root 15366: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15367: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15368: { (exit 1); exit 1; }; };;
15369: esac
15370: done
15371:
1.1.1.22! root 15372:
1.1.1.19 root 15373: # If the user did not use the arguments to specify the items to instantiate,
15374: # then the envvar interface is used. Set only those that are not.
15375: # We use the long form for the default assignment because of an extremely
15376: # bizarre bug on SunOS 4.1.3.
15377: if $ac_need_defaults; then
15378: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15379: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
1.1.1.22! root 15380: test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
1.1.1.19 root 15381: fi
15382:
15383: # Have a temporary directory for convenience. Make it in the build tree
1.1.1.22! root 15384: # simply because there is no reason against having it here, and in addition,
1.1.1.19 root 15385: # creating and moving files from /tmp can sometimes cause problems.
1.1.1.22! root 15386: # Hook for its removal unless debugging.
! 15387: # Note that there is a small window in which the directory will not be cleaned:
! 15388: # after its creation but before its name has been assigned to `$tmp'.
1.1.1.19 root 15389: $debug ||
15390: {
1.1.1.22! root 15391: tmp=
! 15392: trap 'exit_status=$?
! 15393: { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
! 15394: ' 0
1.1.1.19 root 15395: trap '{ (exit 1); exit 1; }' 1 2 13 15
15396: }
15397: # Create a (secure) tmp directory for tmp files.
15398:
15399: {
1.1.1.22! root 15400: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1.1.1.19 root 15401: test -n "$tmp" && test -d "$tmp"
15402: } ||
15403: {
1.1.1.22! root 15404: tmp=./conf$$-$RANDOM
! 15405: (umask 077 && mkdir "$tmp")
1.1.1.19 root 15406: } ||
15407: {
15408: echo "$me: cannot create a temporary directory in ." >&2
15409: { (exit 1); exit 1; }
15410: }
1.1 root 15411:
1.1.1.19 root 15412: #
1.1.1.22! root 15413: # Set up the sed scripts for CONFIG_FILES section.
1.1.1.19 root 15414: #
15415:
15416: # No need to generate the scripts if there are no CONFIG_FILES.
15417: # This happens for instance when ./config.status config.h
1.1.1.22! root 15418: if test -n "$CONFIG_FILES"; then
! 15419:
! 15420: _ACEOF
! 15421:
! 15422:
! 15423:
! 15424: ac_delim='%!_!# '
! 15425: for ac_last_try in false false false false false :; do
! 15426: cat >conf$$subs.sed <<_ACEOF
! 15427: SHELL!$SHELL$ac_delim
! 15428: PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
! 15429: PACKAGE_NAME!$PACKAGE_NAME$ac_delim
! 15430: PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
! 15431: PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
! 15432: PACKAGE_STRING!$PACKAGE_STRING$ac_delim
! 15433: PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
! 15434: exec_prefix!$exec_prefix$ac_delim
! 15435: prefix!$prefix$ac_delim
! 15436: program_transform_name!$program_transform_name$ac_delim
! 15437: bindir!$bindir$ac_delim
! 15438: sbindir!$sbindir$ac_delim
! 15439: libexecdir!$libexecdir$ac_delim
! 15440: datarootdir!$datarootdir$ac_delim
! 15441: datadir!$datadir$ac_delim
! 15442: sysconfdir!$sysconfdir$ac_delim
! 15443: sharedstatedir!$sharedstatedir$ac_delim
! 15444: localstatedir!$localstatedir$ac_delim
! 15445: includedir!$includedir$ac_delim
! 15446: oldincludedir!$oldincludedir$ac_delim
! 15447: docdir!$docdir$ac_delim
! 15448: infodir!$infodir$ac_delim
! 15449: htmldir!$htmldir$ac_delim
! 15450: dvidir!$dvidir$ac_delim
! 15451: pdfdir!$pdfdir$ac_delim
! 15452: psdir!$psdir$ac_delim
! 15453: libdir!$libdir$ac_delim
! 15454: localedir!$localedir$ac_delim
! 15455: mandir!$mandir$ac_delim
! 15456: DEFS!$DEFS$ac_delim
! 15457: ECHO_C!$ECHO_C$ac_delim
! 15458: ECHO_N!$ECHO_N$ac_delim
! 15459: ECHO_T!$ECHO_T$ac_delim
! 15460: LIBS!$LIBS$ac_delim
! 15461: build_alias!$build_alias$ac_delim
! 15462: host_alias!$host_alias$ac_delim
! 15463: target_alias!$target_alias$ac_delim
! 15464: CC!$CC$ac_delim
! 15465: CFLAGS!$CFLAGS$ac_delim
! 15466: LDFLAGS!$LDFLAGS$ac_delim
! 15467: CPPFLAGS!$CPPFLAGS$ac_delim
! 15468: ac_ct_CC!$ac_ct_CC$ac_delim
! 15469: EXEEXT!$EXEEXT$ac_delim
! 15470: OBJEXT!$OBJEXT$ac_delim
! 15471: CPP!$CPP$ac_delim
! 15472: SET_MAKE!$SET_MAKE$ac_delim
! 15473: MAKEDEPPRG!$MAKEDEPPRG$ac_delim
! 15474: FILEPRG!$FILEPRG$ac_delim
! 15475: WRCPRG!$WRCPRG$ac_delim
! 15476: RCLPRG!$RCLPRG$ac_delim
! 15477: SDL_CONFIG!$SDL_CONFIG$ac_delim
! 15478: GREP!$GREP$ac_delim
! 15479: EGREP!$EGREP$ac_delim
! 15480: build!$build$ac_delim
! 15481: build_cpu!$build_cpu$ac_delim
! 15482: build_vendor!$build_vendor$ac_delim
! 15483: build_os!$build_os$ac_delim
! 15484: host!$host$ac_delim
! 15485: host_cpu!$host_cpu$ac_delim
! 15486: host_vendor!$host_vendor$ac_delim
! 15487: host_os!$host_os$ac_delim
! 15488: XMKMF!$XMKMF$ac_delim
! 15489: X_CFLAGS!$X_CFLAGS$ac_delim
! 15490: X_PRE_LIBS!$X_PRE_LIBS$ac_delim
! 15491: X_LIBS!$X_LIBS$ac_delim
! 15492: X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
! 15493: LIBOBJS!$LIBOBJS$ac_delim
! 15494: PKG_CONFIG!$PKG_CONFIG$ac_delim
! 15495: GTK_CFLAGS!$GTK_CFLAGS$ac_delim
! 15496: GTK_LIBS!$GTK_LIBS$ac_delim
! 15497: ac_cv_c_inline!$ac_cv_c_inline$ac_delim
! 15498: NO_SCHED_CFLAGS!$NO_SCHED_CFLAGS$ac_delim
! 15499: NO_REORDER_CFLAGS!$NO_REORDER_CFLAGS$ac_delim
! 15500: LIBRARIES!$LIBRARIES$ac_delim
! 15501: TARGET!$TARGET$ac_delim
! 15502: GFXOBJS!$GFXOBJS$ac_delim
! 15503: RESOBJS!$RESOBJS$ac_delim
! 15504: ASMOBJS!$ASMOBJS$ac_delim
! 15505: SCSIOBJS!$SCSIOBJS$ac_delim
! 15506: CPUOBJS!$CPUOBJS$ac_delim
! 15507: DEBUGOBJS!$DEBUGOBJS$ac_delim
! 15508: FSDBOBJS!$FSDBOBJS$ac_delim
! 15509: MATHLIB!$MATHLIB$ac_delim
! 15510: SHM_SUPPORT_LINKS!$SHM_SUPPORT_LINKS$ac_delim
! 15511: top_srcdir!$top_srcdir$ac_delim
! 15512: LTLIBOBJS!$LTLIBOBJS$ac_delim
! 15513: _ACEOF
! 15514:
! 15515: if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 86; then
! 15516: break
! 15517: elif $ac_last_try; then
! 15518: { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
! 15519: echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
! 15520: { (exit 1); exit 1; }; }
! 15521: else
! 15522: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1.1.1.4 root 15523: fi
1.1.1.22! root 15524: done
! 15525:
! 15526: ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
! 15527: if test -n "$ac_eof"; then
! 15528: ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
! 15529: ac_eof=`expr $ac_eof + 1`
! 15530: fi
1.1 root 15531:
1.1.1.22! root 15532: cat >>$CONFIG_STATUS <<_ACEOF
! 15533: cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
! 15534: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
! 15535: _ACEOF
! 15536: sed '
! 15537: s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
! 15538: s/^/s,@/; s/!/@,|#_!!_#|/
! 15539: :n
! 15540: t n
! 15541: s/'"$ac_delim"'$/,g/; t
! 15542: s/$/\\/; p
! 15543: N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
! 15544: ' >>$CONFIG_STATUS <conf$$subs.sed
! 15545: rm -f conf$$subs.sed
! 15546: cat >>$CONFIG_STATUS <<_ACEOF
! 15547: :end
! 15548: s/|#_!!_#|//g
! 15549: CEOF$ac_eof
1.1.1.19 root 15550: _ACEOF
1.1.1.22! root 15551:
! 15552:
! 15553: # VPATH may cause trouble with some makes, so we remove $(srcdir),
! 15554: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
! 15555: # trailing colons and then remove the whole line if VPATH becomes empty
! 15556: # (actually we leave an empty line to preserve line numbers).
! 15557: if test "x$srcdir" = x.; then
! 15558: ac_vpsub='/^[ ]*VPATH[ ]*=/{
! 15559: s/:*\$(srcdir):*/:/
! 15560: s/:*\${srcdir}:*/:/
! 15561: s/:*@srcdir@:*/:/
! 15562: s/^\([^=]*=[ ]*\):*/\1/
! 15563: s/:*$//
! 15564: s/^[^=]*=[ ]*$//
! 15565: }'
! 15566: fi
! 15567:
1.1.1.19 root 15568: cat >>$CONFIG_STATUS <<\_ACEOF
1.1.1.22! root 15569: fi # test -n "$CONFIG_FILES"
! 15570:
! 15571:
! 15572: for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS
! 15573: do
! 15574: case $ac_tag in
! 15575: :[FHLC]) ac_mode=$ac_tag; continue;;
! 15576: esac
! 15577: case $ac_mode$ac_tag in
! 15578: :[FHL]*:*);;
! 15579: :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
! 15580: echo "$as_me: error: Invalid tag $ac_tag." >&2;}
! 15581: { (exit 1); exit 1; }; };;
! 15582: :[FH]-) ac_tag=-:-;;
! 15583: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
1.1 root 15584: esac
1.1.1.22! root 15585: ac_save_IFS=$IFS
! 15586: IFS=:
! 15587: set x $ac_tag
! 15588: IFS=$ac_save_IFS
! 15589: shift
! 15590: ac_file=$1
! 15591: shift
1.1 root 15592:
1.1.1.22! root 15593: case $ac_mode in
! 15594: :L) ac_source=$1;;
! 15595: :[FH])
! 15596: ac_file_inputs=
! 15597: for ac_f
! 15598: do
! 15599: case $ac_f in
! 15600: -) ac_f="$tmp/stdin";;
! 15601: *) # Look for the file first in the build tree, then in the source tree
! 15602: # (if the path is not absolute). The absolute path cannot be DOS-style,
! 15603: # because $ac_f cannot contain `:'.
! 15604: test -f "$ac_f" ||
! 15605: case $ac_f in
! 15606: [\\/$]*) false;;
! 15607: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
! 15608: esac ||
! 15609: { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
! 15610: echo "$as_me: error: cannot find input file: $ac_f" >&2;}
! 15611: { (exit 1); exit 1; }; };;
! 15612: esac
! 15613: ac_file_inputs="$ac_file_inputs $ac_f"
! 15614: done
! 15615:
! 15616: # Let's still pretend it is `configure' which instantiates (i.e., don't
! 15617: # use $as_me), people would be surprised to read:
! 15618: # /* config.h. Generated by config.status. */
! 15619: configure_input="Generated from "`IFS=:
! 15620: echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
! 15621: if test x"$ac_file" != x-; then
! 15622: configure_input="$ac_file. $configure_input"
! 15623: { echo "$as_me:$LINENO: creating $ac_file" >&5
! 15624: echo "$as_me: creating $ac_file" >&6;}
! 15625: fi
! 15626:
! 15627: case $ac_tag in
! 15628: *:-:* | *:-) cat >"$tmp/stdin";;
! 15629: esac
! 15630: ;;
! 15631: esac
! 15632:
! 15633: ac_dir=`$as_dirname -- "$ac_file" ||
1.1.1.19 root 15634: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15635: X"$ac_file" : 'X\(//\)[^/]' \| \
15636: X"$ac_file" : 'X\(//\)$' \| \
1.1.1.22! root 15637: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.1.1.19 root 15638: echo X"$ac_file" |
1.1.1.22! root 15639: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 15640: s//\1/
! 15641: q
! 15642: }
! 15643: /^X\(\/\/\)[^/].*/{
! 15644: s//\1/
! 15645: q
! 15646: }
! 15647: /^X\(\/\/\)$/{
! 15648: s//\1/
! 15649: q
! 15650: }
! 15651: /^X\(\/\).*/{
! 15652: s//\1/
! 15653: q
! 15654: }
! 15655: s/.*/./; q'`
! 15656: { as_dir="$ac_dir"
! 15657: case $as_dir in #(
! 15658: -*) as_dir=./$as_dir;;
! 15659: esac
! 15660: test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
1.1.1.19 root 15661: as_dirs=
1.1.1.22! root 15662: while :; do
! 15663: case $as_dir in #(
! 15664: *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
! 15665: *) as_qdir=$as_dir;;
! 15666: esac
! 15667: as_dirs="'$as_qdir' $as_dirs"
! 15668: as_dir=`$as_dirname -- "$as_dir" ||
1.1.1.19 root 15669: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15670: X"$as_dir" : 'X\(//\)[^/]' \| \
15671: X"$as_dir" : 'X\(//\)$' \| \
1.1.1.22! root 15672: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1.1.1.19 root 15673: echo X"$as_dir" |
1.1.1.22! root 15674: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 15675: s//\1/
! 15676: q
! 15677: }
! 15678: /^X\(\/\/\)[^/].*/{
! 15679: s//\1/
! 15680: q
! 15681: }
! 15682: /^X\(\/\/\)$/{
! 15683: s//\1/
! 15684: q
! 15685: }
! 15686: /^X\(\/\).*/{
! 15687: s//\1/
! 15688: q
! 15689: }
! 15690: s/.*/./; q'`
! 15691: test -d "$as_dir" && break
1.1.1.19 root 15692: done
1.1.1.22! root 15693: test -z "$as_dirs" || eval "mkdir $as_dirs"
! 15694: } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
! 15695: echo "$as_me: error: cannot create directory $as_dir" >&2;}
1.1.1.19 root 15696: { (exit 1); exit 1; }; }; }
15697: ac_builddir=.
15698:
1.1.1.22! root 15699: case "$ac_dir" in
! 15700: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 15701: *)
1.1.1.19 root 15702: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1.1.1.22! root 15703: # A ".." for each directory in $ac_dir_suffix.
! 15704: ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
! 15705: case $ac_top_builddir_sub in
! 15706: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 15707: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
! 15708: esac ;;
! 15709: esac
! 15710: ac_abs_top_builddir=$ac_pwd
! 15711: ac_abs_builddir=$ac_pwd$ac_dir_suffix
! 15712: # for backward compatibility:
! 15713: ac_top_builddir=$ac_top_build_prefix
1.1.1.19 root 15714:
15715: case $srcdir in
1.1.1.22! root 15716: .) # We are building in place.
1.1.1.19 root 15717: ac_srcdir=.
1.1.1.22! root 15718: ac_top_srcdir=$ac_top_builddir_sub
! 15719: ac_abs_top_srcdir=$ac_pwd ;;
! 15720: [\\/]* | ?:[\\/]* ) # Absolute name.
1.1.1.19 root 15721: ac_srcdir=$srcdir$ac_dir_suffix;
1.1.1.22! root 15722: ac_top_srcdir=$srcdir
! 15723: ac_abs_top_srcdir=$srcdir ;;
! 15724: *) # Relative name.
! 15725: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
! 15726: ac_top_srcdir=$ac_top_build_prefix$srcdir
! 15727: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
! 15728: esac
! 15729: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.1.1.19 root 15730:
1.1 root 15731:
1.1.1.22! root 15732: case $ac_mode in
! 15733: :F)
! 15734: #
! 15735: # CONFIG_FILE
! 15736: #
1.1.1.4 root 15737:
1.1.1.22! root 15738: _ACEOF
1.1.1.4 root 15739:
1.1.1.22! root 15740: cat >>$CONFIG_STATUS <<\_ACEOF
! 15741: # If the template does not know about datarootdir, expand it.
! 15742: # FIXME: This hack should be removed a few years after 2.60.
! 15743: ac_datarootdir_hack=; ac_datarootdir_seen=
! 15744:
! 15745: case `sed -n '/datarootdir/ {
! 15746: p
! 15747: q
! 15748: }
! 15749: /@datadir@/p
! 15750: /@docdir@/p
! 15751: /@infodir@/p
! 15752: /@localedir@/p
! 15753: /@mandir@/p
! 15754: ' $ac_file_inputs` in
! 15755: *datarootdir*) ac_datarootdir_seen=yes;;
! 15756: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
! 15757: { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
! 15758: echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
! 15759: _ACEOF
! 15760: cat >>$CONFIG_STATUS <<_ACEOF
! 15761: ac_datarootdir_hack='
! 15762: s&@datadir@&$datadir&g
! 15763: s&@docdir@&$docdir&g
! 15764: s&@infodir@&$infodir&g
! 15765: s&@localedir@&$localedir&g
! 15766: s&@mandir@&$mandir&g
! 15767: s&\\\${datarootdir}&$datarootdir&g' ;;
! 15768: esac
1.1.1.19 root 15769: _ACEOF
1.1.1.22! root 15770:
! 15771: # Neutralize VPATH when `$srcdir' = `.'.
! 15772: # Shell code in configure.ac might set extrasub.
! 15773: # FIXME: do we really want to maintain this feature?
1.1.1.19 root 15774: cat >>$CONFIG_STATUS <<_ACEOF
15775: sed "$ac_vpsub
15776: $extrasub
15777: _ACEOF
15778: cat >>$CONFIG_STATUS <<\_ACEOF
15779: :t
15780: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.1.1.22! root 15781: s&@configure_input@&$configure_input&;t t
! 15782: s&@top_builddir@&$ac_top_builddir_sub&;t t
! 15783: s&@srcdir@&$ac_srcdir&;t t
! 15784: s&@abs_srcdir@&$ac_abs_srcdir&;t t
! 15785: s&@top_srcdir@&$ac_top_srcdir&;t t
! 15786: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
! 15787: s&@builddir@&$ac_builddir&;t t
! 15788: s&@abs_builddir@&$ac_abs_builddir&;t t
! 15789: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
! 15790: $ac_datarootdir_hack
! 15791: " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
! 15792:
! 15793: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
! 15794: { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
! 15795: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
! 15796: { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
! 15797: which seems to be undefined. Please make sure it is defined." >&5
! 15798: echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
! 15799: which seems to be undefined. Please make sure it is defined." >&2;}
1.1.1.19 root 15800:
1.1.1.22! root 15801: rm -f "$tmp/stdin"
1.1.1.19 root 15802: case $ac_file in
1.1.1.22! root 15803: -) cat "$tmp/out"; rm -f "$tmp/out";;
! 15804: *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
1.1 root 15805: esac
1.1.1.22! root 15806: ;;
! 15807: :H)
! 15808: #
! 15809: # CONFIG_HEADER
! 15810: #
! 15811: _ACEOF
! 15812:
! 15813: # Transform confdefs.h into a sed script `conftest.defines', that
! 15814: # substitutes the proper values into config.h.in to produce config.h.
! 15815: rm -f conftest.defines conftest.tail
! 15816: # First, append a space to every undef/define line, to ease matching.
! 15817: echo 's/$/ /' >conftest.defines
! 15818: # Then, protect against being on the right side of a sed subst, or in
! 15819: # an unquoted here document, in config.status. If some macros were
! 15820: # called several times there might be several #defines for the same
! 15821: # symbol, which is useless. But do not sort them, since the last
! 15822: # AC_DEFINE must be honored.
! 15823: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
! 15824: # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
! 15825: # NAME is the cpp macro being defined, VALUE is the value it is being given.
! 15826: # PARAMS is the parameter list in the macro definition--in most cases, it's
! 15827: # just an empty string.
! 15828: ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
! 15829: ac_dB='\\)[ (].*,\\1define\\2'
! 15830: ac_dC=' '
! 15831: ac_dD=' ,'
1.1 root 15832:
1.1.1.22! root 15833: uniq confdefs.h |
! 15834: sed -n '
! 15835: t rset
! 15836: :rset
! 15837: s/^[ ]*#[ ]*define[ ][ ]*//
! 15838: t ok
! 15839: d
! 15840: :ok
! 15841: s/[\\&,]/\\&/g
! 15842: s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
! 15843: s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
! 15844: ' >>conftest.defines
1.1 root 15845:
1.1.1.22! root 15846: # Remove the space that was appended to ease matching.
! 15847: # Then replace #undef with comments. This is necessary, for
1.1 root 15848: # example, in the case of _POSIX_SOURCE, which is predefined and required
15849: # on some systems where configure will not decide to define it.
1.1.1.22! root 15850: # (The regexp can be short, since the line contains either #define or #undef.)
! 15851: echo 's/ $//
! 15852: s,^[ #]*u.*,/* & */,' >>conftest.defines
! 15853:
! 15854: # Break up conftest.defines:
! 15855: ac_max_sed_lines=50
! 15856:
! 15857: # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
! 15858: # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
! 15859: # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
! 15860: # et cetera.
! 15861: ac_in='$ac_file_inputs'
! 15862: ac_out='"$tmp/out1"'
! 15863: ac_nxt='"$tmp/out2"'
! 15864:
! 15865: while :
! 15866: do
! 15867: # Write a here document:
! 15868: cat >>$CONFIG_STATUS <<_ACEOF
! 15869: # First, check the format of the line:
! 15870: cat >"\$tmp/defines.sed" <<\\CEOF
! 15871: /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
! 15872: /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
! 15873: b
! 15874: :def
1.1.1.19 root 15875: _ACEOF
1.1.1.22! root 15876: sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
1.1 root 15877: echo 'CEOF
1.1.1.22! root 15878: sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
! 15879: ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
! 15880: sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
! 15881: grep . conftest.tail >/dev/null || break
1.1.1.19 root 15882: rm -f conftest.defines
15883: mv conftest.tail conftest.defines
15884: done
1.1.1.22! root 15885: rm -f conftest.defines conftest.tail
1.1.1.19 root 15886:
1.1.1.22! root 15887: echo "ac_result=$ac_in" >>$CONFIG_STATUS
1.1.1.19 root 15888: cat >>$CONFIG_STATUS <<\_ACEOF
15889: if test x"$ac_file" != x-; then
1.1.1.22! root 15890: echo "/* $configure_input */" >"$tmp/config.h"
! 15891: cat "$ac_result" >>"$tmp/config.h"
! 15892: if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
1.1.1.19 root 15893: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15894: echo "$as_me: $ac_file is unchanged" >&6;}
15895: else
15896: rm -f $ac_file
1.1.1.22! root 15897: mv "$tmp/config.h" $ac_file
1.1.1.19 root 15898: fi
15899: else
1.1.1.22! root 15900: echo "/* $configure_input */"
! 15901: cat "$ac_result"
1.1.1.19 root 15902: fi
1.1.1.22! root 15903: rm -f "$tmp/out12"
! 15904: ;;
! 15905: :L)
! 15906: #
! 15907: # CONFIG_LINK
! 15908: #
! 15909:
! 15910: { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
! 15911: echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
! 15912:
! 15913: if test ! -r "$srcdir/$ac_source"; then
! 15914: { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
! 15915: echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
! 15916: { (exit 1); exit 1; }; }
! 15917: fi
! 15918: rm -f "$ac_file"
! 15919:
! 15920: # Try a relative symlink, then a hard link, then a copy.
! 15921: case $srcdir in
! 15922: [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
! 15923: *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
! 15924: esac
! 15925: ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
! 15926: ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
! 15927: cp -p "$srcdir/$ac_source" "$ac_file" ||
! 15928: { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
! 15929: echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
! 15930: { (exit 1); exit 1; }; }
! 15931: ;;
! 15932:
! 15933: esac
! 15934:
! 15935: done # for ac_tag
1.1 root 15936:
15937:
1.1.1.19 root 15938: { (exit 0); exit 0; }
15939: _ACEOF
1.1 root 15940: chmod +x $CONFIG_STATUS
1.1.1.19 root 15941: ac_clean_files=$ac_clean_files_save
15942:
15943:
15944: # configure is writing to config.log, and then calls config.status.
15945: # config.status does its own redirection, appending to config.log.
15946: # Unfortunately, on DOS this fails, as config.log is still kept open
15947: # by configure, so config.status won't be able to write to it; its
15948: # output is simply discarded. So we exec the FD to /dev/null,
15949: # effectively closing config.log, so it can be properly (re)opened and
15950: # appended to by config.status. When coming back to configure, we
15951: # need to make the FD available again.
15952: if test "$no_create" != yes; then
15953: ac_cs_success=:
15954: ac_config_status_args=
15955: test "$silent" = yes &&
15956: ac_config_status_args="$ac_config_status_args --quiet"
15957: exec 5>/dev/null
15958: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15959: exec 5>>config.log
15960: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15961: # would make configure fail if this is the last instruction.
15962: $ac_cs_success || { (exit 1); exit 1; }
15963: fi
1.1 root 15964:
1.1.1.6 root 15965:
1.1.1.10 root 15966: echo "#include \"$abssrcdir/src/targets/$TARGETDEP\"" > src/target.h
1.1.1.6 root 15967:
1.1.1.10 root 15968: echo "#include \"$abssrcdir/src/$SOUNDDEP/sound.c\"" >src/sd-sound.c
15969: echo "#include \"$abssrcdir/src/$OD_JOYSTICK\"" >src/od-joy.c
15970: echo "#include \"$abssrcdir/src/$MACHDEP/support.c\"" >src/md-support.c
15971:
1.1.1.6 root 15972: if [ "x$MACHDEP" = "xmd-i386-gcc" ]; then
1.1.1.10 root 15973: echo "#include \"machdep/X86.S\"" >src/md-X86.S
1.1.1.6 root 15974: fi
1.1.1.11 root 15975: echo "#include \"$abssrcdir/src/include/$FPP_H\"" >src/md-fpp.h
1.1.1.6 root 15976:
1.1.1.16 root 15977: mkdir -p src/tools
1.1.1.22! root 15978: mkdir -p src/keymap
1.1.1.16 root 15979: progname=$0
15980: srcd=`echo ${progname} | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
15981: topsrcdir=`cd $srcd; pwd`
15982: cd src/tools
15983: CC=$HOSTCC $topsrcdir/src/tools/configure
1.1.1.6 root 15984:
1.1.1.4 root 15985: echo
15986: echo
15987: if [ "x$NR_ERRORS" = "x0" ]; then
15988: if [ "x$NR_WARNINGS" = "x0" ]; then
15989: echo "Configuration was successful!"
15990: else
15991: echo "There were $NR_WARNINGS warnings. That is usually harmless, but read the output"
15992: echo "from configure carefully if you run into problems."
15993: fi
15994: else
15995: echo "There were $NR_ERRORS errors. UAE may still build and run cleanly, but you may"
15996: echo "not get all the features you asked for."
15997: fi
15998: echo
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.