|
|
1.1 ! root 1: #! /bin/sh ! 2: ! 3: # Guess values for system-dependent variables and create Makefiles. ! 4: # Generated automatically using autoconf version 2.13 ! 5: # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. ! 6: # ! 7: # This configure script is free software; the Free Software Foundation ! 8: # gives unlimited permission to copy, distribute and modify it. ! 9: ! 10: # Defaults: ! 11: ac_help= ! 12: ac_default_prefix=/usr/local ! 13: # Any additions from configure.in: ! 14: ac_help="$ac_help ! 15: --with-x use the X Window System" ! 16: ! 17: # Initialize some variables set by options. ! 18: # The variables have the same names as the options, with ! 19: # dashes changed to underlines. ! 20: build=NONE ! 21: cache_file=./config.cache ! 22: exec_prefix=NONE ! 23: host=NONE ! 24: no_create= ! 25: nonopt=NONE ! 26: no_recursion= ! 27: prefix=NONE ! 28: program_prefix=NONE ! 29: program_suffix=NONE ! 30: program_transform_name=s,x,x, ! 31: silent= ! 32: site= ! 33: srcdir= ! 34: target=NONE ! 35: verbose= ! 36: x_includes=NONE ! 37: x_libraries=NONE ! 38: bindir='${exec_prefix}/bin' ! 39: sbindir='${exec_prefix}/sbin' ! 40: libexecdir='${exec_prefix}/libexec' ! 41: datadir='${prefix}/share' ! 42: sysconfdir='${prefix}/etc' ! 43: sharedstatedir='${prefix}/com' ! 44: localstatedir='${prefix}/var' ! 45: libdir='${exec_prefix}/lib' ! 46: includedir='${prefix}/include' ! 47: oldincludedir='/usr/include' ! 48: infodir='${prefix}/info' ! 49: mandir='${prefix}/man' ! 50: ! 51: # Initialize some other variables. ! 52: subdirs= ! 53: MFLAGS= MAKEFLAGS= ! 54: SHELL=${CONFIG_SHELL-/bin/sh} ! 55: # Maximum number of lines to put in a shell here document. ! 56: ac_max_here_lines=12 ! 57: ! 58: ac_prev= ! 59: for ac_option ! 60: do ! 61: ! 62: # If the previous option needs an argument, assign it. ! 63: if test -n "$ac_prev"; then ! 64: eval "$ac_prev=\$ac_option" ! 65: ac_prev= ! 66: continue ! 67: fi ! 68: ! 69: case "$ac_option" in ! 70: -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; ! 71: *) ac_optarg= ;; ! 72: esac ! 73: ! 74: # Accept the important Cygnus configure options, so we can diagnose typos. ! 75: ! 76: case "$ac_option" in ! 77: ! 78: -bindir | --bindir | --bindi | --bind | --bin | --bi) ! 79: ac_prev=bindir ;; ! 80: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) ! 81: bindir="$ac_optarg" ;; ! 82: ! 83: -build | --build | --buil | --bui | --bu) ! 84: ac_prev=build ;; ! 85: -build=* | --build=* | --buil=* | --bui=* | --bu=*) ! 86: build="$ac_optarg" ;; ! 87: ! 88: -cache-file | --cache-file | --cache-fil | --cache-fi \ ! 89: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ! 90: ac_prev=cache_file ;; ! 91: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ ! 92: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) ! 93: cache_file="$ac_optarg" ;; ! 94: ! 95: -datadir | --datadir | --datadi | --datad | --data | --dat | --da) ! 96: ac_prev=datadir ;; ! 97: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ ! 98: | --da=*) ! 99: datadir="$ac_optarg" ;; ! 100: ! 101: -disable-* | --disable-*) ! 102: ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` ! 103: # Reject names that are not valid shell variable names. ! 104: if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then ! 105: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } ! 106: fi ! 107: ac_feature=`echo $ac_feature| sed 's/-/_/g'` ! 108: eval "enable_${ac_feature}=no" ;; ! 109: ! 110: -enable-* | --enable-*) ! 111: ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` ! 112: # Reject names that are not valid shell variable names. ! 113: if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then ! 114: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } ! 115: fi ! 116: ac_feature=`echo $ac_feature| sed 's/-/_/g'` ! 117: case "$ac_option" in ! 118: *=*) ;; ! 119: *) ac_optarg=yes ;; ! 120: esac ! 121: eval "enable_${ac_feature}='$ac_optarg'" ;; ! 122: ! 123: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ ! 124: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ ! 125: | --exec | --exe | --ex) ! 126: ac_prev=exec_prefix ;; ! 127: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ ! 128: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ ! 129: | --exec=* | --exe=* | --ex=*) ! 130: exec_prefix="$ac_optarg" ;; ! 131: ! 132: -gas | --gas | --ga | --g) ! 133: # Obsolete; use --with-gas. ! 134: with_gas=yes ;; ! 135: ! 136: -help | --help | --hel | --he) ! 137: # Omit some internal or obsolete options to make the list less imposing. ! 138: # This message is too long to be a string in the A/UX 3.1 sh. ! 139: cat << EOF ! 140: Usage: configure [options] [host] ! 141: Options: [defaults in brackets after descriptions] ! 142: Configuration: ! 143: --cache-file=FILE cache test results in FILE ! 144: --help print this message ! 145: --no-create do not create output files ! 146: --quiet, --silent do not print \`checking...' messages ! 147: --version print the version of autoconf that created configure ! 148: Directory and file names: ! 149: --prefix=PREFIX install architecture-independent files in PREFIX ! 150: [$ac_default_prefix] ! 151: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX ! 152: [same as prefix] ! 153: --bindir=DIR user executables in DIR [EPREFIX/bin] ! 154: --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] ! 155: --libexecdir=DIR program executables in DIR [EPREFIX/libexec] ! 156: --datadir=DIR read-only architecture-independent data in DIR ! 157: [PREFIX/share] ! 158: --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] ! 159: --sharedstatedir=DIR modifiable architecture-independent data in DIR ! 160: [PREFIX/com] ! 161: --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] ! 162: --libdir=DIR object code libraries in DIR [EPREFIX/lib] ! 163: --includedir=DIR C header files in DIR [PREFIX/include] ! 164: --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] ! 165: --infodir=DIR info documentation in DIR [PREFIX/info] ! 166: --mandir=DIR man documentation in DIR [PREFIX/man] ! 167: --srcdir=DIR find the sources in DIR [configure dir or ..] ! 168: --program-prefix=PREFIX prepend PREFIX to installed program names ! 169: --program-suffix=SUFFIX append SUFFIX to installed program names ! 170: --program-transform-name=PROGRAM ! 171: run sed PROGRAM on installed program names ! 172: EOF ! 173: cat << EOF ! 174: Host type: ! 175: --build=BUILD configure for building on BUILD [BUILD=HOST] ! 176: --host=HOST configure for HOST [guessed] ! 177: --target=TARGET configure for TARGET [TARGET=HOST] ! 178: Features and packages: ! 179: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) ! 180: --enable-FEATURE[=ARG] include FEATURE [ARG=yes] ! 181: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] ! 182: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) ! 183: --x-includes=DIR X include files are in DIR ! 184: --x-libraries=DIR X library files are in DIR ! 185: EOF ! 186: if test -n "$ac_help"; then ! 187: echo "--enable and --with options recognized:$ac_help" ! 188: fi ! 189: exit 0 ;; ! 190: ! 191: -host | --host | --hos | --ho) ! 192: ac_prev=host ;; ! 193: -host=* | --host=* | --hos=* | --ho=*) ! 194: host="$ac_optarg" ;; ! 195: ! 196: -includedir | --includedir | --includedi | --included | --include \ ! 197: | --includ | --inclu | --incl | --inc) ! 198: ac_prev=includedir ;; ! 199: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ ! 200: | --includ=* | --inclu=* | --incl=* | --inc=*) ! 201: includedir="$ac_optarg" ;; ! 202: ! 203: -infodir | --infodir | --infodi | --infod | --info | --inf) ! 204: ac_prev=infodir ;; ! 205: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) ! 206: infodir="$ac_optarg" ;; ! 207: ! 208: -libdir | --libdir | --libdi | --libd) ! 209: ac_prev=libdir ;; ! 210: -libdir=* | --libdir=* | --libdi=* | --libd=*) ! 211: libdir="$ac_optarg" ;; ! 212: ! 213: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ ! 214: | --libexe | --libex | --libe) ! 215: ac_prev=libexecdir ;; ! 216: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ ! 217: | --libexe=* | --libex=* | --libe=*) ! 218: libexecdir="$ac_optarg" ;; ! 219: ! 220: -localstatedir | --localstatedir | --localstatedi | --localstated \ ! 221: | --localstate | --localstat | --localsta | --localst \ ! 222: | --locals | --local | --loca | --loc | --lo) ! 223: ac_prev=localstatedir ;; ! 224: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ ! 225: | --localstate=* | --localstat=* | --localsta=* | --localst=* \ ! 226: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) ! 227: localstatedir="$ac_optarg" ;; ! 228: ! 229: -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ! 230: ac_prev=mandir ;; ! 231: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) ! 232: mandir="$ac_optarg" ;; ! 233: ! 234: -nfp | --nfp | --nf) ! 235: # Obsolete; use --without-fp. ! 236: with_fp=no ;; ! 237: ! 238: -no-create | --no-create | --no-creat | --no-crea | --no-cre \ ! 239: | --no-cr | --no-c) ! 240: no_create=yes ;; ! 241: ! 242: -no-recursion | --no-recursion | --no-recursio | --no-recursi \ ! 243: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ! 244: no_recursion=yes ;; ! 245: ! 246: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ ! 247: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ ! 248: | --oldin | --oldi | --old | --ol | --o) ! 249: ac_prev=oldincludedir ;; ! 250: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ ! 251: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ ! 252: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) ! 253: oldincludedir="$ac_optarg" ;; ! 254: ! 255: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ! 256: ac_prev=prefix ;; ! 257: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) ! 258: prefix="$ac_optarg" ;; ! 259: ! 260: -program-prefix | --program-prefix | --program-prefi | --program-pref \ ! 261: | --program-pre | --program-pr | --program-p) ! 262: ac_prev=program_prefix ;; ! 263: -program-prefix=* | --program-prefix=* | --program-prefi=* \ ! 264: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) ! 265: program_prefix="$ac_optarg" ;; ! 266: ! 267: -program-suffix | --program-suffix | --program-suffi | --program-suff \ ! 268: | --program-suf | --program-su | --program-s) ! 269: ac_prev=program_suffix ;; ! 270: -program-suffix=* | --program-suffix=* | --program-suffi=* \ ! 271: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) ! 272: program_suffix="$ac_optarg" ;; ! 273: ! 274: -program-transform-name | --program-transform-name \ ! 275: | --program-transform-nam | --program-transform-na \ ! 276: | --program-transform-n | --program-transform- \ ! 277: | --program-transform | --program-transfor \ ! 278: | --program-transfo | --program-transf \ ! 279: | --program-trans | --program-tran \ ! 280: | --progr-tra | --program-tr | --program-t) ! 281: ac_prev=program_transform_name ;; ! 282: -program-transform-name=* | --program-transform-name=* \ ! 283: | --program-transform-nam=* | --program-transform-na=* \ ! 284: | --program-transform-n=* | --program-transform-=* \ ! 285: | --program-transform=* | --program-transfor=* \ ! 286: | --program-transfo=* | --program-transf=* \ ! 287: | --program-trans=* | --program-tran=* \ ! 288: | --progr-tra=* | --program-tr=* | --program-t=*) ! 289: program_transform_name="$ac_optarg" ;; ! 290: ! 291: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ ! 292: | -silent | --silent | --silen | --sile | --sil) ! 293: silent=yes ;; ! 294: ! 295: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ! 296: ac_prev=sbindir ;; ! 297: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ ! 298: | --sbi=* | --sb=*) ! 299: sbindir="$ac_optarg" ;; ! 300: ! 301: -sharedstatedir | --sharedstatedir | --sharedstatedi \ ! 302: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ ! 303: | --sharedst | --shareds | --shared | --share | --shar \ ! 304: | --sha | --sh) ! 305: ac_prev=sharedstatedir ;; ! 306: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ ! 307: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ ! 308: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ ! 309: | --sha=* | --sh=*) ! 310: sharedstatedir="$ac_optarg" ;; ! 311: ! 312: -site | --site | --sit) ! 313: ac_prev=site ;; ! 314: -site=* | --site=* | --sit=*) ! 315: site="$ac_optarg" ;; ! 316: ! 317: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ! 318: ac_prev=srcdir ;; ! 319: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) ! 320: srcdir="$ac_optarg" ;; ! 321: ! 322: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ ! 323: | --syscon | --sysco | --sysc | --sys | --sy) ! 324: ac_prev=sysconfdir ;; ! 325: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ ! 326: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) ! 327: sysconfdir="$ac_optarg" ;; ! 328: ! 329: -target | --target | --targe | --targ | --tar | --ta | --t) ! 330: ac_prev=target ;; ! 331: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) ! 332: target="$ac_optarg" ;; ! 333: ! 334: -v | -verbose | --verbose | --verbos | --verbo | --verb) ! 335: verbose=yes ;; ! 336: ! 337: -version | --version | --versio | --versi | --vers) ! 338: echo "configure generated by autoconf version 2.13" ! 339: exit 0 ;; ! 340: ! 341: -with-* | --with-*) ! 342: ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` ! 343: # Reject names that are not valid shell variable names. ! 344: if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then ! 345: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } ! 346: fi ! 347: ac_package=`echo $ac_package| sed 's/-/_/g'` ! 348: case "$ac_option" in ! 349: *=*) ;; ! 350: *) ac_optarg=yes ;; ! 351: esac ! 352: eval "with_${ac_package}='$ac_optarg'" ;; ! 353: ! 354: -without-* | --without-*) ! 355: ac_package=`echo $ac_option|sed -e 's/-*without-//'` ! 356: # Reject names that are not valid shell variable names. ! 357: if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then ! 358: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } ! 359: fi ! 360: ac_package=`echo $ac_package| sed 's/-/_/g'` ! 361: eval "with_${ac_package}=no" ;; ! 362: ! 363: --x) ! 364: # Obsolete; use --with-x. ! 365: with_x=yes ;; ! 366: ! 367: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ ! 368: | --x-incl | --x-inc | --x-in | --x-i) ! 369: ac_prev=x_includes ;; ! 370: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ ! 371: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) ! 372: x_includes="$ac_optarg" ;; ! 373: ! 374: -x-libraries | --x-libraries | --x-librarie | --x-librari \ ! 375: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ! 376: ac_prev=x_libraries ;; ! 377: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ ! 378: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) ! 379: x_libraries="$ac_optarg" ;; ! 380: ! 381: -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } ! 382: ;; ! 383: ! 384: *) ! 385: if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then ! 386: echo "configure: warning: $ac_option: invalid host type" 1>&2 ! 387: fi ! 388: if test "x$nonopt" != xNONE; then ! 389: { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ! 390: fi ! 391: nonopt="$ac_option" ! 392: ;; ! 393: ! 394: esac ! 395: done ! 396: ! 397: if test -n "$ac_prev"; then ! 398: { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } ! 399: fi ! 400: ! 401: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 ! 402: ! 403: # File descriptor usage: ! 404: # 0 standard input ! 405: # 1 file creation ! 406: # 2 errors and warnings ! 407: # 3 some systems may open it to /dev/tty ! 408: # 4 used on the Kubota Titan ! 409: # 6 checking for... messages and results ! 410: # 5 compiler messages saved in config.log ! 411: if test "$silent" = yes; then ! 412: exec 6>/dev/null ! 413: else ! 414: exec 6>&1 ! 415: fi ! 416: exec 5>./config.log ! 417: ! 418: echo "\ ! 419: This file contains any messages produced by compilers while ! 420: running configure, to aid debugging if configure makes a mistake. ! 421: " 1>&5 ! 422: ! 423: # Strip out --no-create and --no-recursion so they do not pile up. ! 424: # Also quote any args containing shell metacharacters. ! 425: ac_configure_args= ! 426: for ac_arg ! 427: do ! 428: case "$ac_arg" in ! 429: -no-create | --no-create | --no-creat | --no-crea | --no-cre \ ! 430: | --no-cr | --no-c) ;; ! 431: -no-recursion | --no-recursion | --no-recursio | --no-recursi \ ! 432: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; ! 433: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) ! 434: ac_configure_args="$ac_configure_args '$ac_arg'" ;; ! 435: *) ac_configure_args="$ac_configure_args $ac_arg" ;; ! 436: esac ! 437: done ! 438: ! 439: # NLS nuisances. ! 440: # Only set these to C if already set. These must not be set unconditionally ! 441: # because not all systems understand e.g. LANG=C (notably SCO). ! 442: # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! ! 443: # Non-C LC_CTYPE values break the ctype check. ! 444: if test "${LANG+set}" = set; then LANG=C; export LANG; fi ! 445: if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi ! 446: if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi ! 447: if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi ! 448: ! 449: # confdefs.h avoids OS command line length limits that DEFS can exceed. ! 450: rm -rf conftest* confdefs.h ! 451: # AIX cpp loses on an empty file, so make sure it contains at least a newline. ! 452: echo > confdefs.h ! 453: ! 454: # A filename unique to this package, relative to the directory that ! 455: # configure is in, which we can look for to find out if srcdir is correct. ! 456: ac_unique_file=sysconfig.h.in ! 457: ! 458: # Find the source files, if location was not specified. ! 459: if test -z "$srcdir"; then ! 460: ac_srcdir_defaulted=yes ! 461: # Try the directory containing this script, then its parent. ! 462: ac_prog=$0 ! 463: ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` ! 464: test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. ! 465: srcdir=$ac_confdir ! 466: if test ! -r $srcdir/$ac_unique_file; then ! 467: srcdir=.. ! 468: fi ! 469: else ! 470: ac_srcdir_defaulted=no ! 471: fi ! 472: if test ! -r $srcdir/$ac_unique_file; then ! 473: if test "$ac_srcdir_defaulted" = yes; then ! 474: { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } ! 475: else ! 476: { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } ! 477: fi ! 478: fi ! 479: srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` ! 480: ! 481: # Prefer explicitly selected file to automatically selected ones. ! 482: if test -z "$CONFIG_SITE"; then ! 483: if test "x$prefix" != xNONE; then ! 484: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" ! 485: else ! 486: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" ! 487: fi ! 488: fi ! 489: for ac_site_file in $CONFIG_SITE; do ! 490: if test -r "$ac_site_file"; then ! 491: echo "loading site script $ac_site_file" ! 492: . "$ac_site_file" ! 493: fi ! 494: done ! 495: ! 496: if test -r "$cache_file"; then ! 497: echo "loading cache $cache_file" ! 498: . $cache_file ! 499: else ! 500: echo "creating cache $cache_file" ! 501: > $cache_file ! 502: fi ! 503: ! 504: ac_ext=c ! 505: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ! 506: ac_cpp='$CPP $CPPFLAGS' ! 507: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ! 508: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' ! 509: cross_compiling=$ac_cv_prog_cc_cross ! 510: ! 511: ac_exeext= ! 512: ac_objext=o ! 513: if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then ! 514: # Stardent Vistra SVR4 grep lacks -e, says [email protected]. ! 515: if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then ! 516: ac_n= ac_c=' ! 517: ' ac_t=' ' ! 518: else ! 519: ac_n=-n ac_c= ac_t= ! 520: fi ! 521: else ! 522: ac_n= ac_c='\c' ac_t= ! 523: fi ! 524: ! 525: ! 526: ! 527: ! 528: # Extract the first word of "gcc", so it can be a program name with args. ! 529: set dummy gcc; ac_word=$2 ! 530: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 ! 531: echo "configure:532: checking for $ac_word" >&5 ! 532: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then ! 533: echo $ac_n "(cached) $ac_c" 1>&6 ! 534: else ! 535: if test -n "$CC"; then ! 536: ac_cv_prog_CC="$CC" # Let the user override the test. ! 537: else ! 538: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ! 539: ac_dummy="$PATH" ! 540: for ac_dir in $ac_dummy; do ! 541: test -z "$ac_dir" && ac_dir=. ! 542: if test -f $ac_dir/$ac_word; then ! 543: ac_cv_prog_CC="gcc" ! 544: break ! 545: fi ! 546: done ! 547: IFS="$ac_save_ifs" ! 548: fi ! 549: fi ! 550: CC="$ac_cv_prog_CC" ! 551: if test -n "$CC"; then ! 552: echo "$ac_t""$CC" 1>&6 ! 553: else ! 554: echo "$ac_t""no" 1>&6 ! 555: fi ! 556: ! 557: if test -z "$CC"; then ! 558: # Extract the first word of "cc", so it can be a program name with args. ! 559: set dummy cc; ac_word=$2 ! 560: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 ! 561: echo "configure:562: checking for $ac_word" >&5 ! 562: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then ! 563: echo $ac_n "(cached) $ac_c" 1>&6 ! 564: else ! 565: if test -n "$CC"; then ! 566: ac_cv_prog_CC="$CC" # Let the user override the test. ! 567: else ! 568: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ! 569: ac_prog_rejected=no ! 570: ac_dummy="$PATH" ! 571: for ac_dir in $ac_dummy; do ! 572: test -z "$ac_dir" && ac_dir=. ! 573: if test -f $ac_dir/$ac_word; then ! 574: if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then ! 575: ac_prog_rejected=yes ! 576: continue ! 577: fi ! 578: ac_cv_prog_CC="cc" ! 579: break ! 580: fi ! 581: done ! 582: IFS="$ac_save_ifs" ! 583: if test $ac_prog_rejected = yes; then ! 584: # We found a bogon in the path, so make sure we never use it. ! 585: set dummy $ac_cv_prog_CC ! 586: shift ! 587: if test $# -gt 0; then ! 588: # We chose a different compiler from the bogus one. ! 589: # However, it has the same basename, so the bogon will be chosen ! 590: # first if we set CC to just the basename; use the full file name. ! 591: shift ! 592: set dummy "$ac_dir/$ac_word" "$@" ! 593: shift ! 594: ac_cv_prog_CC="$@" ! 595: fi ! 596: fi ! 597: fi ! 598: fi ! 599: CC="$ac_cv_prog_CC" ! 600: if test -n "$CC"; then ! 601: echo "$ac_t""$CC" 1>&6 ! 602: else ! 603: echo "$ac_t""no" 1>&6 ! 604: fi ! 605: ! 606: if test -z "$CC"; then ! 607: case "`uname -s`" in ! 608: *win32* | *WIN32*) ! 609: # Extract the first word of "cl", so it can be a program name with args. ! 610: set dummy cl; ac_word=$2 ! 611: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 ! 612: echo "configure:613: checking for $ac_word" >&5 ! 613: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then ! 614: echo $ac_n "(cached) $ac_c" 1>&6 ! 615: else ! 616: if test -n "$CC"; then ! 617: ac_cv_prog_CC="$CC" # Let the user override the test. ! 618: else ! 619: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ! 620: ac_dummy="$PATH" ! 621: for ac_dir in $ac_dummy; do ! 622: test -z "$ac_dir" && ac_dir=. ! 623: if test -f $ac_dir/$ac_word; then ! 624: ac_cv_prog_CC="cl" ! 625: break ! 626: fi ! 627: done ! 628: IFS="$ac_save_ifs" ! 629: fi ! 630: fi ! 631: CC="$ac_cv_prog_CC" ! 632: if test -n "$CC"; then ! 633: echo "$ac_t""$CC" 1>&6 ! 634: else ! 635: echo "$ac_t""no" 1>&6 ! 636: fi ! 637: ;; ! 638: esac ! 639: fi ! 640: test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } ! 641: fi ! 642: ! 643: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 ! 644: echo "configure:645: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 ! 645: ! 646: ac_ext=c ! 647: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ! 648: ac_cpp='$CPP $CPPFLAGS' ! 649: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ! 650: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' ! 651: cross_compiling=$ac_cv_prog_cc_cross ! 652: ! 653: cat > conftest.$ac_ext << EOF ! 654: ! 655: #line 656 "configure" ! 656: #include "confdefs.h" ! 657: ! 658: main(){return(0);} ! 659: EOF ! 660: if { (eval echo configure:661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ! 661: ac_cv_prog_cc_works=yes ! 662: # If we can't run a trivial program, we are probably using a cross compiler. ! 663: if (./conftest; exit) 2>/dev/null; then ! 664: ac_cv_prog_cc_cross=no ! 665: else ! 666: ac_cv_prog_cc_cross=yes ! 667: fi ! 668: else ! 669: echo "configure: failed program was:" >&5 ! 670: cat conftest.$ac_ext >&5 ! 671: ac_cv_prog_cc_works=no ! 672: fi ! 673: rm -fr conftest* ! 674: ac_ext=c ! 675: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ! 676: ac_cpp='$CPP $CPPFLAGS' ! 677: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ! 678: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' ! 679: cross_compiling=$ac_cv_prog_cc_cross ! 680: ! 681: echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 ! 682: if test $ac_cv_prog_cc_works = no; then ! 683: { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } ! 684: fi ! 685: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 ! 686: echo "configure:687: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 ! 687: echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 ! 688: cross_compiling=$ac_cv_prog_cc_cross ! 689: ! 690: echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 ! 691: echo "configure:692: checking whether we are using GNU C" >&5 ! 692: if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then ! 693: echo $ac_n "(cached) $ac_c" 1>&6 ! 694: else ! 695: cat > conftest.c <<EOF ! 696: #ifdef __GNUC__ ! 697: yes; ! 698: #endif ! 699: EOF ! 700: if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ! 701: ac_cv_prog_gcc=yes ! 702: else ! 703: ac_cv_prog_gcc=no ! 704: fi ! 705: fi ! 706: ! 707: echo "$ac_t""$ac_cv_prog_gcc" 1>&6 ! 708: ! 709: if test $ac_cv_prog_gcc = yes; then ! 710: GCC=yes ! 711: else ! 712: GCC= ! 713: fi ! 714: ! 715: ac_test_CFLAGS="${CFLAGS+set}" ! 716: ac_save_CFLAGS="$CFLAGS" ! 717: CFLAGS= ! 718: echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 ! 719: echo "configure:720: checking whether ${CC-cc} accepts -g" >&5 ! 720: if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then ! 721: echo $ac_n "(cached) $ac_c" 1>&6 ! 722: else ! 723: echo 'void f(){}' > conftest.c ! 724: if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then ! 725: ac_cv_prog_cc_g=yes ! 726: else ! 727: ac_cv_prog_cc_g=no ! 728: fi ! 729: rm -f conftest* ! 730: ! 731: fi ! 732: ! 733: echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 ! 734: if test "$ac_test_CFLAGS" = set; then ! 735: CFLAGS="$ac_save_CFLAGS" ! 736: elif test $ac_cv_prog_cc_g = yes; then ! 737: if test "$GCC" = yes; then ! 738: CFLAGS="-g -O2" ! 739: else ! 740: CFLAGS="-g" ! 741: fi ! 742: else ! 743: if test "$GCC" = yes; then ! 744: CFLAGS="-O2" ! 745: else ! 746: CFLAGS= ! 747: fi ! 748: fi ! 749: ! 750: ! 751: echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 ! 752: echo "configure:753: checking how to run the C preprocessor" >&5 ! 753: # On Suns, sometimes $CPP names a directory. ! 754: if test -n "$CPP" && test -d "$CPP"; then ! 755: CPP= ! 756: fi ! 757: if test -z "$CPP"; then ! 758: if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then ! 759: echo $ac_n "(cached) $ac_c" 1>&6 ! 760: else ! 761: # This must be in double quotes, not single quotes, because CPP may get ! 762: # substituted into the Makefile and "${CC-cc}" will confuse make. ! 763: CPP="${CC-cc} -E" ! 764: # On the NeXT, cc -E runs the code through the compiler's parser, ! 765: # not just through cpp. ! 766: cat > conftest.$ac_ext <<EOF ! 767: #line 768 "configure" ! 768: #include "confdefs.h" ! 769: #include <assert.h> ! 770: Syntax Error ! 771: EOF ! 772: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! 773: { (eval echo configure:774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ! 774: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` ! 775: if test -z "$ac_err"; then ! 776: : ! 777: else ! 778: echo "$ac_err" >&5 ! 779: echo "configure: failed program was:" >&5 ! 780: cat conftest.$ac_ext >&5 ! 781: rm -rf conftest* ! 782: CPP="${CC-cc} -E -traditional-cpp" ! 783: cat > conftest.$ac_ext <<EOF ! 784: #line 785 "configure" ! 785: #include "confdefs.h" ! 786: #include <assert.h> ! 787: Syntax Error ! 788: EOF ! 789: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! 790: { (eval echo configure:791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ! 791: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` ! 792: if test -z "$ac_err"; then ! 793: : ! 794: else ! 795: echo "$ac_err" >&5 ! 796: echo "configure: failed program was:" >&5 ! 797: cat conftest.$ac_ext >&5 ! 798: rm -rf conftest* ! 799: CPP="${CC-cc} -nologo -E" ! 800: cat > conftest.$ac_ext <<EOF ! 801: #line 802 "configure" ! 802: #include "confdefs.h" ! 803: #include <assert.h> ! 804: Syntax Error ! 805: EOF ! 806: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! 807: { (eval echo configure:808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ! 808: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` ! 809: if test -z "$ac_err"; then ! 810: : ! 811: else ! 812: echo "$ac_err" >&5 ! 813: echo "configure: failed program was:" >&5 ! 814: cat conftest.$ac_ext >&5 ! 815: rm -rf conftest* ! 816: CPP=/lib/cpp ! 817: fi ! 818: rm -f conftest* ! 819: fi ! 820: rm -f conftest* ! 821: fi ! 822: rm -f conftest* ! 823: ac_cv_prog_CPP="$CPP" ! 824: fi ! 825: CPP="$ac_cv_prog_CPP" ! 826: else ! 827: ac_cv_prog_CPP="$CPP" ! 828: fi ! 829: echo "$ac_t""$CPP" 1>&6 ! 830: ! 831: echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 ! 832: echo "configure:833: checking whether ${MAKE-make} sets \${MAKE}" >&5 ! 833: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` ! 834: if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then ! 835: echo $ac_n "(cached) $ac_c" 1>&6 ! 836: else ! 837: cat > conftestmake <<\EOF ! 838: all: ! 839: @echo 'ac_maketemp="${MAKE}"' ! 840: EOF ! 841: # GNU make sometimes prints "make[1]: Entering...", which would confuse us. ! 842: eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` ! 843: if test -n "$ac_maketemp"; then ! 844: eval ac_cv_prog_make_${ac_make}_set=yes ! 845: else ! 846: eval ac_cv_prog_make_${ac_make}_set=no ! 847: fi ! 848: rm -f conftestmake ! 849: fi ! 850: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then ! 851: echo "$ac_t""yes" 1>&6 ! 852: SET_MAKE= ! 853: else ! 854: echo "$ac_t""no" 1>&6 ! 855: SET_MAKE="MAKE=${MAKE-make}" ! 856: fi ! 857: ! 858: ! 859: echo $ac_n "checking for AIX""... $ac_c" 1>&6 ! 860: echo "configure:861: checking for AIX" >&5 ! 861: cat > conftest.$ac_ext <<EOF ! 862: #line 863 "configure" ! 863: #include "confdefs.h" ! 864: #ifdef _AIX ! 865: yes ! 866: #endif ! 867: ! 868: EOF ! 869: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ! 870: egrep "yes" >/dev/null 2>&1; then ! 871: rm -rf conftest* ! 872: echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF ! 873: #define _ALL_SOURCE 1 ! 874: EOF ! 875: ! 876: else ! 877: rm -rf conftest* ! 878: echo "$ac_t""no" 1>&6 ! 879: fi ! 880: rm -f conftest* ! 881: ! 882: ! 883: echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 ! 884: echo "configure:885: checking for POSIXized ISC" >&5 ! 885: if test -d /etc/conf/kconfig.d && ! 886: grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 ! 887: then ! 888: echo "$ac_t""yes" 1>&6 ! 889: ISC=yes # If later tests want to check for ISC. ! 890: cat >> confdefs.h <<\EOF ! 891: #define _POSIX_SOURCE 1 ! 892: EOF ! 893: ! 894: if test "$GCC" = yes; then ! 895: CC="$CC -posix" ! 896: else ! 897: CC="$CC -Xp" ! 898: fi ! 899: else ! 900: echo "$ac_t""no" 1>&6 ! 901: ISC= ! 902: fi ! 903: ! 904: ! 905: ! 906: # If we find X, set shell vars x_includes and x_libraries to the ! 907: # paths, otherwise set no_x=yes. ! 908: # Uses ac_ vars as temps to allow command line to override cache and checks. ! 909: # --without-x overrides everything else, but does not touch the cache. ! 910: echo $ac_n "checking for X""... $ac_c" 1>&6 ! 911: echo "configure:912: checking for X" >&5 ! 912: ! 913: # Check whether --with-x or --without-x was given. ! 914: if test "${with_x+set}" = set; then ! 915: withval="$with_x" ! 916: : ! 917: fi ! 918: ! 919: # $have_x is `yes', `no', `disabled', or empty when we do not yet know. ! 920: if test "x$with_x" = xno; then ! 921: # The user explicitly disabled X. ! 922: have_x=disabled ! 923: else ! 924: if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then ! 925: # Both variables are already set. ! 926: have_x=yes ! 927: else ! 928: if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then ! 929: echo $ac_n "(cached) $ac_c" 1>&6 ! 930: else ! 931: # One or both of the vars are not set, and there is no cached value. ! 932: ac_x_includes=NO ac_x_libraries=NO ! 933: rm -fr conftestdir ! 934: if mkdir conftestdir; then ! 935: cd conftestdir ! 936: # Make sure to not put "make" in the Imakefile rules, since we grep it out. ! 937: cat > Imakefile <<'EOF' ! 938: acfindx: ! 939: @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' ! 940: EOF ! 941: if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then ! 942: # GNU make sometimes prints "make[1]: Entering...", which would confuse us. ! 943: eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` ! 944: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. ! 945: for ac_extension in a so sl; do ! 946: if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && ! 947: test -f $ac_im_libdir/libX11.$ac_extension; then ! 948: ac_im_usrlibdir=$ac_im_libdir; break ! 949: fi ! 950: done ! 951: # Screen out bogus values from the imake configuration. They are ! 952: # bogus both because they are the default anyway, and because ! 953: # using them would break gcc on systems where it needs fixed includes. ! 954: case "$ac_im_incroot" in ! 955: /usr/include) ;; ! 956: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; ! 957: esac ! 958: case "$ac_im_usrlibdir" in ! 959: /usr/lib | /lib) ;; ! 960: *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; ! 961: esac ! 962: fi ! 963: cd .. ! 964: rm -fr conftestdir ! 965: fi ! 966: ! 967: if test "$ac_x_includes" = NO; then ! 968: # Guess where to find include files, by looking for this one X11 .h file. ! 969: test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h ! 970: ! 971: # First, try using that file with no special directory specified. ! 972: cat > conftest.$ac_ext <<EOF ! 973: #line 974 "configure" ! 974: #include "confdefs.h" ! 975: #include <$x_direct_test_include> ! 976: EOF ! 977: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! 978: { (eval echo configure:979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ! 979: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` ! 980: if test -z "$ac_err"; then ! 981: rm -rf conftest* ! 982: # We can compile using X headers with no special include directory. ! 983: ac_x_includes= ! 984: else ! 985: echo "$ac_err" >&5 ! 986: echo "configure: failed program was:" >&5 ! 987: cat conftest.$ac_ext >&5 ! 988: rm -rf conftest* ! 989: # Look for the header file in a standard set of common directories. ! 990: # Check X11 before X11Rn because it is often a symlink to the current release. ! 991: for ac_dir in \ ! 992: /usr/X11/include \ ! 993: /usr/X11R6/include \ ! 994: /usr/X11R5/include \ ! 995: /usr/X11R4/include \ ! 996: \ ! 997: /usr/include/X11 \ ! 998: /usr/include/X11R6 \ ! 999: /usr/include/X11R5 \ ! 1000: /usr/include/X11R4 \ ! 1001: \ ! 1002: /usr/local/X11/include \ ! 1003: /usr/local/X11R6/include \ ! 1004: /usr/local/X11R5/include \ ! 1005: /usr/local/X11R4/include \ ! 1006: \ ! 1007: /usr/local/include/X11 \ ! 1008: /usr/local/include/X11R6 \ ! 1009: /usr/local/include/X11R5 \ ! 1010: /usr/local/include/X11R4 \ ! 1011: \ ! 1012: /usr/X386/include \ ! 1013: /usr/x386/include \ ! 1014: /usr/XFree86/include/X11 \ ! 1015: \ ! 1016: /usr/include \ ! 1017: /usr/local/include \ ! 1018: /usr/unsupported/include \ ! 1019: /usr/athena/include \ ! 1020: /usr/local/x11r5/include \ ! 1021: /usr/lpp/Xamples/include \ ! 1022: \ ! 1023: /usr/openwin/include \ ! 1024: /usr/openwin/share/include \ ! 1025: ; \ ! 1026: do ! 1027: if test -r "$ac_dir/$x_direct_test_include"; then ! 1028: ac_x_includes=$ac_dir ! 1029: break ! 1030: fi ! 1031: done ! 1032: fi ! 1033: rm -f conftest* ! 1034: fi # $ac_x_includes = NO ! 1035: ! 1036: if test "$ac_x_libraries" = NO; then ! 1037: # Check for the libraries. ! 1038: ! 1039: test -z "$x_direct_test_library" && x_direct_test_library=Xt ! 1040: test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc ! 1041: ! 1042: # See if we find them without any special options. ! 1043: # Don't add to $LIBS permanently. ! 1044: ac_save_LIBS="$LIBS" ! 1045: LIBS="-l$x_direct_test_library $LIBS" ! 1046: cat > conftest.$ac_ext <<EOF ! 1047: #line 1048 "configure" ! 1048: #include "confdefs.h" ! 1049: ! 1050: int main() { ! 1051: ${x_direct_test_function}() ! 1052: ; return 0; } ! 1053: EOF ! 1054: if { (eval echo configure:1055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ! 1055: rm -rf conftest* ! 1056: LIBS="$ac_save_LIBS" ! 1057: # We can link X programs with no special library path. ! 1058: ac_x_libraries= ! 1059: else ! 1060: echo "configure: failed program was:" >&5 ! 1061: cat conftest.$ac_ext >&5 ! 1062: rm -rf conftest* ! 1063: LIBS="$ac_save_LIBS" ! 1064: # First see if replacing the include by lib works. ! 1065: # Check X11 before X11Rn because it is often a symlink to the current release. ! 1066: for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ ! 1067: /usr/X11/lib \ ! 1068: /usr/X11R6/lib \ ! 1069: /usr/X11R5/lib \ ! 1070: /usr/X11R4/lib \ ! 1071: \ ! 1072: /usr/lib/X11 \ ! 1073: /usr/lib/X11R6 \ ! 1074: /usr/lib/X11R5 \ ! 1075: /usr/lib/X11R4 \ ! 1076: \ ! 1077: /usr/local/X11/lib \ ! 1078: /usr/local/X11R6/lib \ ! 1079: /usr/local/X11R5/lib \ ! 1080: /usr/local/X11R4/lib \ ! 1081: \ ! 1082: /usr/local/lib/X11 \ ! 1083: /usr/local/lib/X11R6 \ ! 1084: /usr/local/lib/X11R5 \ ! 1085: /usr/local/lib/X11R4 \ ! 1086: \ ! 1087: /usr/X386/lib \ ! 1088: /usr/x386/lib \ ! 1089: /usr/XFree86/lib/X11 \ ! 1090: \ ! 1091: /usr/lib \ ! 1092: /usr/local/lib \ ! 1093: /usr/unsupported/lib \ ! 1094: /usr/athena/lib \ ! 1095: /usr/local/x11r5/lib \ ! 1096: /usr/lpp/Xamples/lib \ ! 1097: /lib/usr/lib/X11 \ ! 1098: \ ! 1099: /usr/openwin/lib \ ! 1100: /usr/openwin/share/lib \ ! 1101: ; \ ! 1102: do ! 1103: for ac_extension in a so sl; do ! 1104: if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then ! 1105: ac_x_libraries=$ac_dir ! 1106: break 2 ! 1107: fi ! 1108: done ! 1109: done ! 1110: fi ! 1111: rm -f conftest* ! 1112: fi # $ac_x_libraries = NO ! 1113: ! 1114: if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then ! 1115: # Didn't find X anywhere. Cache the known absence of X. ! 1116: ac_cv_have_x="have_x=no" ! 1117: else ! 1118: # Record where we found X for the cache. ! 1119: ac_cv_have_x="have_x=yes \ ! 1120: ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" ! 1121: fi ! 1122: fi ! 1123: fi ! 1124: eval "$ac_cv_have_x" ! 1125: fi # $with_x != no ! 1126: ! 1127: if test "$have_x" != yes; then ! 1128: echo "$ac_t""$have_x" 1>&6 ! 1129: no_x=yes ! 1130: else ! 1131: # If each of the values was on the command line, it overrides each guess. ! 1132: test "x$x_includes" = xNONE && x_includes=$ac_x_includes ! 1133: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries ! 1134: # Update the cache value to reflect the command line values. ! 1135: ac_cv_have_x="have_x=yes \ ! 1136: ac_x_includes=$x_includes ac_x_libraries=$x_libraries" ! 1137: echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 ! 1138: fi ! 1139: ! 1140: if test "$no_x" = yes; then ! 1141: # Not all programs may use this symbol, but it does not hurt to define it. ! 1142: cat >> confdefs.h <<\EOF ! 1143: #define X_DISPLAY_MISSING 1 ! 1144: EOF ! 1145: ! 1146: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= ! 1147: else ! 1148: if test -n "$x_includes"; then ! 1149: X_CFLAGS="$X_CFLAGS -I$x_includes" ! 1150: fi ! 1151: ! 1152: # It would also be nice to do this for all -L options, not just this one. ! 1153: if test -n "$x_libraries"; then ! 1154: X_LIBS="$X_LIBS -L$x_libraries" ! 1155: # For Solaris; some versions of Sun CC require a space after -R and ! 1156: # others require no space. Words are not sufficient . . . . ! 1157: case "`(uname -sr) 2>/dev/null`" in ! 1158: "SunOS 5"*) ! 1159: echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 ! 1160: echo "configure:1161: checking whether -R must be followed by a space" >&5 ! 1161: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" ! 1162: cat > conftest.$ac_ext <<EOF ! 1163: #line 1164 "configure" ! 1164: #include "confdefs.h" ! 1165: ! 1166: int main() { ! 1167: ! 1168: ; return 0; } ! 1169: EOF ! 1170: if { (eval echo configure:1171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ! 1171: rm -rf conftest* ! 1172: ac_R_nospace=yes ! 1173: else ! 1174: echo "configure: failed program was:" >&5 ! 1175: cat conftest.$ac_ext >&5 ! 1176: rm -rf conftest* ! 1177: ac_R_nospace=no ! 1178: fi ! 1179: rm -f conftest* ! 1180: if test $ac_R_nospace = yes; then ! 1181: echo "$ac_t""no" 1>&6 ! 1182: X_LIBS="$X_LIBS -R$x_libraries" ! 1183: else ! 1184: LIBS="$ac_xsave_LIBS -R $x_libraries" ! 1185: cat > conftest.$ac_ext <<EOF ! 1186: #line 1187 "configure" ! 1187: #include "confdefs.h" ! 1188: ! 1189: int main() { ! 1190: ! 1191: ; return 0; } ! 1192: EOF ! 1193: if { (eval echo configure:1194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ! 1194: rm -rf conftest* ! 1195: ac_R_space=yes ! 1196: else ! 1197: echo "configure: failed program was:" >&5 ! 1198: cat conftest.$ac_ext >&5 ! 1199: rm -rf conftest* ! 1200: ac_R_space=no ! 1201: fi ! 1202: rm -f conftest* ! 1203: if test $ac_R_space = yes; then ! 1204: echo "$ac_t""yes" 1>&6 ! 1205: X_LIBS="$X_LIBS -R $x_libraries" ! 1206: else ! 1207: echo "$ac_t""neither works" 1>&6 ! 1208: fi ! 1209: fi ! 1210: LIBS="$ac_xsave_LIBS" ! 1211: esac ! 1212: fi ! 1213: ! 1214: # Check for system-dependent libraries X programs must link with. ! 1215: # Do this before checking for the system-independent R6 libraries ! 1216: # (-lICE), since we may need -lsocket or whatever for X linking. ! 1217: ! 1218: if test "$ISC" = yes; then ! 1219: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" ! 1220: else ! 1221: # [email protected] says this is needed for Ultrix, if the X ! 1222: # libraries were built with DECnet support. And [email protected] says ! 1223: # the Alpha needs dnet_stub (dnet does not exist). ! 1224: echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 ! 1225: echo "configure:1226: checking for dnet_ntoa in -ldnet" >&5 ! 1226: ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` ! 1227: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then ! 1228: echo $ac_n "(cached) $ac_c" 1>&6 ! 1229: else ! 1230: ac_save_LIBS="$LIBS" ! 1231: LIBS="-ldnet $LIBS" ! 1232: cat > conftest.$ac_ext <<EOF ! 1233: #line 1234 "configure" ! 1234: #include "confdefs.h" ! 1235: /* Override any gcc2 internal prototype to avoid an error. */ ! 1236: /* We use char because int might match the return type of a gcc2 ! 1237: builtin and then its argument prototype would still apply. */ ! 1238: char dnet_ntoa(); ! 1239: ! 1240: int main() { ! 1241: dnet_ntoa() ! 1242: ; return 0; } ! 1243: EOF ! 1244: if { (eval echo configure:1245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ! 1245: rm -rf conftest* ! 1246: eval "ac_cv_lib_$ac_lib_var=yes" ! 1247: else ! 1248: echo "configure: failed program was:" >&5 ! 1249: cat conftest.$ac_ext >&5 ! 1250: rm -rf conftest* ! 1251: eval "ac_cv_lib_$ac_lib_var=no" ! 1252: fi ! 1253: rm -f conftest* ! 1254: LIBS="$ac_save_LIBS" ! 1255: ! 1256: fi ! 1257: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then ! 1258: echo "$ac_t""yes" 1>&6 ! 1259: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" ! 1260: else ! 1261: echo "$ac_t""no" 1>&6 ! 1262: fi ! 1263: ! 1264: if test $ac_cv_lib_dnet_dnet_ntoa = no; then ! 1265: echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 ! 1266: echo "configure:1267: checking for dnet_ntoa in -ldnet_stub" >&5 ! 1267: ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` ! 1268: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then ! 1269: echo $ac_n "(cached) $ac_c" 1>&6 ! 1270: else ! 1271: ac_save_LIBS="$LIBS" ! 1272: LIBS="-ldnet_stub $LIBS" ! 1273: cat > conftest.$ac_ext <<EOF ! 1274: #line 1275 "configure" ! 1275: #include "confdefs.h" ! 1276: /* Override any gcc2 internal prototype to avoid an error. */ ! 1277: /* We use char because int might match the return type of a gcc2 ! 1278: builtin and then its argument prototype would still apply. */ ! 1279: char dnet_ntoa(); ! 1280: ! 1281: int main() { ! 1282: dnet_ntoa() ! 1283: ; return 0; } ! 1284: EOF ! 1285: if { (eval echo configure:1286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ! 1286: rm -rf conftest* ! 1287: eval "ac_cv_lib_$ac_lib_var=yes" ! 1288: else ! 1289: echo "configure: failed program was:" >&5 ! 1290: cat conftest.$ac_ext >&5 ! 1291: rm -rf conftest* ! 1292: eval "ac_cv_lib_$ac_lib_var=no" ! 1293: fi ! 1294: rm -f conftest* ! 1295: LIBS="$ac_save_LIBS" ! 1296: ! 1297: fi ! 1298: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then ! 1299: echo "$ac_t""yes" 1>&6 ! 1300: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" ! 1301: else ! 1302: echo "$ac_t""no" 1>&6 ! 1303: fi ! 1304: ! 1305: fi ! 1306: ! 1307: # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT, ! 1308: # to get the SysV transport functions. ! 1309: # [email protected] says the Pyramis MIS-ES running DC/OSx (SVR4) ! 1310: # needs -lnsl. ! 1311: # The nsl library prevents programs from opening the X display ! 1312: # on Irix 5.2, according to [email protected]. ! 1313: echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 ! 1314: echo "configure:1315: checking for gethostbyname" >&5 ! 1315: if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then ! 1316: echo $ac_n "(cached) $ac_c" 1>&6 ! 1317: else ! 1318: cat > conftest.$ac_ext <<EOF ! 1319: #line 1320 "configure" ! 1320: #include "confdefs.h" ! 1321: /* System header to define __stub macros and hopefully few prototypes, ! 1322: which can conflict with char gethostbyname(); below. */ ! 1323: #include <assert.h> ! 1324: /* Override any gcc2 internal prototype to avoid an error. */ ! 1325: /* We use char because int might match the return type of a gcc2 ! 1326: builtin and then its argument prototype would still apply. */ ! 1327: char gethostbyname(); ! 1328: ! 1329: int main() { ! 1330: ! 1331: /* The GNU C library defines this for functions which it implements ! 1332: to always fail with ENOSYS. Some functions are actually named ! 1333: something starting with __ and the normal name is an alias. */ ! 1334: #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) ! 1335: choke me ! 1336: #else ! 1337: gethostbyname(); ! 1338: #endif ! 1339: ! 1340: ; return 0; } ! 1341: EOF ! 1342: if { (eval echo configure:1343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ! 1343: rm -rf conftest* ! 1344: eval "ac_cv_func_gethostbyname=yes" ! 1345: else ! 1346: echo "configure: failed program was:" >&5 ! 1347: cat conftest.$ac_ext >&5 ! 1348: rm -rf conftest* ! 1349: eval "ac_cv_func_gethostbyname=no" ! 1350: fi ! 1351: rm -f conftest* ! 1352: fi ! 1353: ! 1354: if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then ! 1355: echo "$ac_t""yes" 1>&6 ! 1356: : ! 1357: else ! 1358: echo "$ac_t""no" 1>&6 ! 1359: fi ! 1360: ! 1361: if test $ac_cv_func_gethostbyname = no; then ! 1362: echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 ! 1363: echo "configure:1364: checking for gethostbyname in -lnsl" >&5 ! 1364: ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` ! 1365: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then ! 1366: echo $ac_n "(cached) $ac_c" 1>&6 ! 1367: else ! 1368: ac_save_LIBS="$LIBS" ! 1369: LIBS="-lnsl $LIBS" ! 1370: cat > conftest.$ac_ext <<EOF ! 1371: #line 1372 "configure" ! 1372: #include "confdefs.h" ! 1373: /* Override any gcc2 internal prototype to avoid an error. */ ! 1374: /* We use char because int might match the return type of a gcc2 ! 1375: builtin and then its argument prototype would still apply. */ ! 1376: char gethostbyname(); ! 1377: ! 1378: int main() { ! 1379: gethostbyname() ! 1380: ; return 0; } ! 1381: EOF ! 1382: if { (eval echo configure:1383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ! 1383: rm -rf conftest* ! 1384: eval "ac_cv_lib_$ac_lib_var=yes" ! 1385: else ! 1386: echo "configure: failed program was:" >&5 ! 1387: cat conftest.$ac_ext >&5 ! 1388: rm -rf conftest* ! 1389: eval "ac_cv_lib_$ac_lib_var=no" ! 1390: fi ! 1391: rm -f conftest* ! 1392: LIBS="$ac_save_LIBS" ! 1393: ! 1394: fi ! 1395: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then ! 1396: echo "$ac_t""yes" 1>&6 ! 1397: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" ! 1398: else ! 1399: echo "$ac_t""no" 1>&6 ! 1400: fi ! 1401: ! 1402: fi ! 1403: ! 1404: # [email protected] says without -lsocket, ! 1405: # socket/setsockopt and other routines are undefined under SCO ODT ! 1406: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary ! 1407: # on later versions), says [email protected]: it contains ! 1408: # gethostby* variants that don't use the nameserver (or something). ! 1409: # -lsocket must be given before -lnsl if both are needed. ! 1410: # We assume that if connect needs -lnsl, so does gethostbyname. ! 1411: echo $ac_n "checking for connect""... $ac_c" 1>&6 ! 1412: echo "configure:1413: checking for connect" >&5 ! 1413: if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then ! 1414: echo $ac_n "(cached) $ac_c" 1>&6 ! 1415: else ! 1416: cat > conftest.$ac_ext <<EOF ! 1417: #line 1418 "configure" ! 1418: #include "confdefs.h" ! 1419: /* System header to define __stub macros and hopefully few prototypes, ! 1420: which can conflict with char connect(); below. */ ! 1421: #include <assert.h> ! 1422: /* Override any gcc2 internal prototype to avoid an error. */ ! 1423: /* We use char because int might match the return type of a gcc2 ! 1424: builtin and then its argument prototype would still apply. */ ! 1425: char connect(); ! 1426: ! 1427: int main() { ! 1428: ! 1429: /* The GNU C library defines this for functions which it implements ! 1430: to always fail with ENOSYS. Some functions are actually named ! 1431: something starting with __ and the normal name is an alias. */ ! 1432: #if defined (__stub_connect) || defined (__stub___connect) ! 1433: choke me ! 1434: #else ! 1435: connect(); ! 1436: #endif ! 1437: ! 1438: ; return 0; } ! 1439: EOF ! 1440: if { (eval echo configure:1441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ! 1441: rm -rf conftest* ! 1442: eval "ac_cv_func_connect=yes" ! 1443: else ! 1444: echo "configure: failed program was:" >&5 ! 1445: cat conftest.$ac_ext >&5 ! 1446: rm -rf conftest* ! 1447: eval "ac_cv_func_connect=no" ! 1448: fi ! 1449: rm -f conftest* ! 1450: fi ! 1451: ! 1452: if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then ! 1453: echo "$ac_t""yes" 1>&6 ! 1454: : ! 1455: else ! 1456: echo "$ac_t""no" 1>&6 ! 1457: fi ! 1458: ! 1459: if test $ac_cv_func_connect = no; then ! 1460: echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 ! 1461: echo "configure:1462: checking for connect in -lsocket" >&5 ! 1462: ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` ! 1463: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then ! 1464: echo $ac_n "(cached) $ac_c" 1>&6 ! 1465: else ! 1466: ac_save_LIBS="$LIBS" ! 1467: LIBS="-lsocket $X_EXTRA_LIBS $LIBS" ! 1468: cat > conftest.$ac_ext <<EOF ! 1469: #line 1470 "configure" ! 1470: #include "confdefs.h" ! 1471: /* Override any gcc2 internal prototype to avoid an error. */ ! 1472: /* We use char because int might match the return type of a gcc2 ! 1473: builtin and then its argument prototype would still apply. */ ! 1474: char connect(); ! 1475: ! 1476: int main() { ! 1477: connect() ! 1478: ; return 0; } ! 1479: EOF ! 1480: if { (eval echo configure:1481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ! 1481: rm -rf conftest* ! 1482: eval "ac_cv_lib_$ac_lib_var=yes" ! 1483: else ! 1484: echo "configure: failed program was:" >&5 ! 1485: cat conftest.$ac_ext >&5 ! 1486: rm -rf conftest* ! 1487: eval "ac_cv_lib_$ac_lib_var=no" ! 1488: fi ! 1489: rm -f conftest* ! 1490: LIBS="$ac_save_LIBS" ! 1491: ! 1492: fi ! 1493: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then ! 1494: echo "$ac_t""yes" 1>&6 ! 1495: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" ! 1496: else ! 1497: echo "$ac_t""no" 1>&6 ! 1498: fi ! 1499: ! 1500: fi ! 1501: ! 1502: # [email protected] says -lposix is necessary on A/UX. ! 1503: echo $ac_n "checking for remove""... $ac_c" 1>&6 ! 1504: echo "configure:1505: checking for remove" >&5 ! 1505: if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then ! 1506: echo $ac_n "(cached) $ac_c" 1>&6 ! 1507: else ! 1508: cat > conftest.$ac_ext <<EOF ! 1509: #line 1510 "configure" ! 1510: #include "confdefs.h" ! 1511: /* System header to define __stub macros and hopefully few prototypes, ! 1512: which can conflict with char remove(); below. */ ! 1513: #include <assert.h> ! 1514: /* Override any gcc2 internal prototype to avoid an error. */ ! 1515: /* We use char because int might match the return type of a gcc2 ! 1516: builtin and then its argument prototype would still apply. */ ! 1517: char remove(); ! 1518: ! 1519: int main() { ! 1520: ! 1521: /* The GNU C library defines this for functions which it implements ! 1522: to always fail with ENOSYS. Some functions are actually named ! 1523: something starting with __ and the normal name is an alias. */ ! 1524: #if defined (__stub_remove) || defined (__stub___remove) ! 1525: choke me ! 1526: #else ! 1527: remove(); ! 1528: #endif ! 1529: ! 1530: ; return 0; } ! 1531: EOF ! 1532: if { (eval echo configure:1533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ! 1533: rm -rf conftest* ! 1534: eval "ac_cv_func_remove=yes" ! 1535: else ! 1536: echo "configure: failed program was:" >&5 ! 1537: cat conftest.$ac_ext >&5 ! 1538: rm -rf conftest* ! 1539: eval "ac_cv_func_remove=no" ! 1540: fi ! 1541: rm -f conftest* ! 1542: fi ! 1543: ! 1544: if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then ! 1545: echo "$ac_t""yes" 1>&6 ! 1546: : ! 1547: else ! 1548: echo "$ac_t""no" 1>&6 ! 1549: fi ! 1550: ! 1551: if test $ac_cv_func_remove = no; then ! 1552: echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 ! 1553: echo "configure:1554: checking for remove in -lposix" >&5 ! 1554: ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` ! 1555: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then ! 1556: echo $ac_n "(cached) $ac_c" 1>&6 ! 1557: else ! 1558: ac_save_LIBS="$LIBS" ! 1559: LIBS="-lposix $LIBS" ! 1560: cat > conftest.$ac_ext <<EOF ! 1561: #line 1562 "configure" ! 1562: #include "confdefs.h" ! 1563: /* Override any gcc2 internal prototype to avoid an error. */ ! 1564: /* We use char because int might match the return type of a gcc2 ! 1565: builtin and then its argument prototype would still apply. */ ! 1566: char remove(); ! 1567: ! 1568: int main() { ! 1569: remove() ! 1570: ; return 0; } ! 1571: EOF ! 1572: if { (eval echo configure:1573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ! 1573: rm -rf conftest* ! 1574: eval "ac_cv_lib_$ac_lib_var=yes" ! 1575: else ! 1576: echo "configure: failed program was:" >&5 ! 1577: cat conftest.$ac_ext >&5 ! 1578: rm -rf conftest* ! 1579: eval "ac_cv_lib_$ac_lib_var=no" ! 1580: fi ! 1581: rm -f conftest* ! 1582: LIBS="$ac_save_LIBS" ! 1583: ! 1584: fi ! 1585: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then ! 1586: echo "$ac_t""yes" 1>&6 ! 1587: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" ! 1588: else ! 1589: echo "$ac_t""no" 1>&6 ! 1590: fi ! 1591: ! 1592: fi ! 1593: ! 1594: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. ! 1595: echo $ac_n "checking for shmat""... $ac_c" 1>&6 ! 1596: echo "configure:1597: checking for shmat" >&5 ! 1597: if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then ! 1598: echo $ac_n "(cached) $ac_c" 1>&6 ! 1599: else ! 1600: cat > conftest.$ac_ext <<EOF ! 1601: #line 1602 "configure" ! 1602: #include "confdefs.h" ! 1603: /* System header to define __stub macros and hopefully few prototypes, ! 1604: which can conflict with char shmat(); below. */ ! 1605: #include <assert.h> ! 1606: /* Override any gcc2 internal prototype to avoid an error. */ ! 1607: /* We use char because int might match the return type of a gcc2 ! 1608: builtin and then its argument prototype would still apply. */ ! 1609: char shmat(); ! 1610: ! 1611: int main() { ! 1612: ! 1613: /* The GNU C library defines this for functions which it implements ! 1614: to always fail with ENOSYS. Some functions are actually named ! 1615: something starting with __ and the normal name is an alias. */ ! 1616: #if defined (__stub_shmat) || defined (__stub___shmat) ! 1617: choke me ! 1618: #else ! 1619: shmat(); ! 1620: #endif ! 1621: ! 1622: ; return 0; } ! 1623: EOF ! 1624: if { (eval echo configure:1625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ! 1625: rm -rf conftest* ! 1626: eval "ac_cv_func_shmat=yes" ! 1627: else ! 1628: echo "configure: failed program was:" >&5 ! 1629: cat conftest.$ac_ext >&5 ! 1630: rm -rf conftest* ! 1631: eval "ac_cv_func_shmat=no" ! 1632: fi ! 1633: rm -f conftest* ! 1634: fi ! 1635: ! 1636: if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then ! 1637: echo "$ac_t""yes" 1>&6 ! 1638: : ! 1639: else ! 1640: echo "$ac_t""no" 1>&6 ! 1641: fi ! 1642: ! 1643: if test $ac_cv_func_shmat = no; then ! 1644: echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 ! 1645: echo "configure:1646: checking for shmat in -lipc" >&5 ! 1646: ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` ! 1647: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then ! 1648: echo $ac_n "(cached) $ac_c" 1>&6 ! 1649: else ! 1650: ac_save_LIBS="$LIBS" ! 1651: LIBS="-lipc $LIBS" ! 1652: cat > conftest.$ac_ext <<EOF ! 1653: #line 1654 "configure" ! 1654: #include "confdefs.h" ! 1655: /* Override any gcc2 internal prototype to avoid an error. */ ! 1656: /* We use char because int might match the return type of a gcc2 ! 1657: builtin and then its argument prototype would still apply. */ ! 1658: char shmat(); ! 1659: ! 1660: int main() { ! 1661: shmat() ! 1662: ; return 0; } ! 1663: EOF ! 1664: if { (eval echo configure:1665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ! 1665: rm -rf conftest* ! 1666: eval "ac_cv_lib_$ac_lib_var=yes" ! 1667: else ! 1668: echo "configure: failed program was:" >&5 ! 1669: cat conftest.$ac_ext >&5 ! 1670: rm -rf conftest* ! 1671: eval "ac_cv_lib_$ac_lib_var=no" ! 1672: fi ! 1673: rm -f conftest* ! 1674: LIBS="$ac_save_LIBS" ! 1675: ! 1676: fi ! 1677: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then ! 1678: echo "$ac_t""yes" 1>&6 ! 1679: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" ! 1680: else ! 1681: echo "$ac_t""no" 1>&6 ! 1682: fi ! 1683: ! 1684: fi ! 1685: fi ! 1686: ! 1687: # Check for libraries that X11R6 Xt/Xaw programs need. ! 1688: ac_save_LDFLAGS="$LDFLAGS" ! 1689: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" ! 1690: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to ! 1691: # check for ICE first), but we must link in the order -lSM -lICE or ! 1692: # we get undefined symbols. So assume we have SM if we have ICE. ! 1693: # These have to be linked with before -lX11, unlike the other ! 1694: # libraries we check for below, so use a different variable. ! 1695: # [email protected], [email protected]. ! 1696: echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 ! 1697: echo "configure:1698: checking for IceConnectionNumber in -lICE" >&5 ! 1698: ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` ! 1699: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then ! 1700: echo $ac_n "(cached) $ac_c" 1>&6 ! 1701: else ! 1702: ac_save_LIBS="$LIBS" ! 1703: LIBS="-lICE $X_EXTRA_LIBS $LIBS" ! 1704: cat > conftest.$ac_ext <<EOF ! 1705: #line 1706 "configure" ! 1706: #include "confdefs.h" ! 1707: /* Override any gcc2 internal prototype to avoid an error. */ ! 1708: /* We use char because int might match the return type of a gcc2 ! 1709: builtin and then its argument prototype would still apply. */ ! 1710: char IceConnectionNumber(); ! 1711: ! 1712: int main() { ! 1713: IceConnectionNumber() ! 1714: ; return 0; } ! 1715: EOF ! 1716: if { (eval echo configure:1717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ! 1717: rm -rf conftest* ! 1718: eval "ac_cv_lib_$ac_lib_var=yes" ! 1719: else ! 1720: echo "configure: failed program was:" >&5 ! 1721: cat conftest.$ac_ext >&5 ! 1722: rm -rf conftest* ! 1723: eval "ac_cv_lib_$ac_lib_var=no" ! 1724: fi ! 1725: rm -f conftest* ! 1726: LIBS="$ac_save_LIBS" ! 1727: ! 1728: fi ! 1729: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then ! 1730: echo "$ac_t""yes" 1>&6 ! 1731: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" ! 1732: else ! 1733: echo "$ac_t""no" 1>&6 ! 1734: fi ! 1735: ! 1736: LDFLAGS="$ac_save_LDFLAGS" ! 1737: ! 1738: fi ! 1739: ! 1740: ! 1741: ! 1742: echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 ! 1743: echo "configure:1744: checking for ANSI C header files" >&5 ! 1744: if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then ! 1745: echo $ac_n "(cached) $ac_c" 1>&6 ! 1746: else ! 1747: cat > conftest.$ac_ext <<EOF ! 1748: #line 1749 "configure" ! 1749: #include "confdefs.h" ! 1750: #include <stdlib.h> ! 1751: #include <stdarg.h> ! 1752: #include <string.h> ! 1753: #include <float.h> ! 1754: EOF ! 1755: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! 1756: { (eval echo configure:1757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ! 1757: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` ! 1758: if test -z "$ac_err"; then ! 1759: rm -rf conftest* ! 1760: ac_cv_header_stdc=yes ! 1761: else ! 1762: echo "$ac_err" >&5 ! 1763: echo "configure: failed program was:" >&5 ! 1764: cat conftest.$ac_ext >&5 ! 1765: rm -rf conftest* ! 1766: ac_cv_header_stdc=no ! 1767: fi ! 1768: rm -f conftest* ! 1769: ! 1770: if test $ac_cv_header_stdc = yes; then ! 1771: # SunOS 4.x string.h does not declare mem*, contrary to ANSI. ! 1772: cat > conftest.$ac_ext <<EOF ! 1773: #line 1774 "configure" ! 1774: #include "confdefs.h" ! 1775: #include <string.h> ! 1776: EOF ! 1777: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ! 1778: egrep "memchr" >/dev/null 2>&1; then ! 1779: : ! 1780: else ! 1781: rm -rf conftest* ! 1782: ac_cv_header_stdc=no ! 1783: fi ! 1784: rm -f conftest* ! 1785: ! 1786: fi ! 1787: ! 1788: if test $ac_cv_header_stdc = yes; then ! 1789: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. ! 1790: cat > conftest.$ac_ext <<EOF ! 1791: #line 1792 "configure" ! 1792: #include "confdefs.h" ! 1793: #include <stdlib.h> ! 1794: EOF ! 1795: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ! 1796: egrep "free" >/dev/null 2>&1; then ! 1797: : ! 1798: else ! 1799: rm -rf conftest* ! 1800: ac_cv_header_stdc=no ! 1801: fi ! 1802: rm -f conftest* ! 1803: ! 1804: fi ! 1805: ! 1806: if test $ac_cv_header_stdc = yes; then ! 1807: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. ! 1808: if test "$cross_compiling" = yes; then ! 1809: : ! 1810: else ! 1811: cat > conftest.$ac_ext <<EOF ! 1812: #line 1813 "configure" ! 1813: #include "confdefs.h" ! 1814: #include <ctype.h> ! 1815: #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') ! 1816: #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) ! 1817: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) ! 1818: int main () { int i; for (i = 0; i < 256; i++) ! 1819: if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); ! 1820: exit (0); } ! 1821: ! 1822: EOF ! 1823: if { (eval echo configure:1824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ! 1824: then ! 1825: : ! 1826: else ! 1827: echo "configure: failed program was:" >&5 ! 1828: cat conftest.$ac_ext >&5 ! 1829: rm -fr conftest* ! 1830: ac_cv_header_stdc=no ! 1831: fi ! 1832: rm -fr conftest* ! 1833: fi ! 1834: ! 1835: fi ! 1836: fi ! 1837: ! 1838: echo "$ac_t""$ac_cv_header_stdc" 1>&6 ! 1839: if test $ac_cv_header_stdc = yes; then ! 1840: cat >> confdefs.h <<\EOF ! 1841: #define STDC_HEADERS 1 ! 1842: EOF ! 1843: ! 1844: fi ! 1845: ! 1846: ! 1847: for ac_hdr in unistd.h fcntl.h sys/time.h sys/types.h utime.h string.h strings.h values.h ncurses.h curses.h ! 1848: do ! 1849: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` ! 1850: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 ! 1851: echo "configure:1852: checking for $ac_hdr" >&5 ! 1852: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then ! 1853: echo $ac_n "(cached) $ac_c" 1>&6 ! 1854: else ! 1855: cat > conftest.$ac_ext <<EOF ! 1856: #line 1857 "configure" ! 1857: #include "confdefs.h" ! 1858: #include <$ac_hdr> ! 1859: EOF ! 1860: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! 1861: { (eval echo configure:1862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ! 1862: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` ! 1863: if test -z "$ac_err"; then ! 1864: rm -rf conftest* ! 1865: eval "ac_cv_header_$ac_safe=yes" ! 1866: else ! 1867: echo "$ac_err" >&5 ! 1868: echo "configure: failed program was:" >&5 ! 1869: cat conftest.$ac_ext >&5 ! 1870: rm -rf conftest* ! 1871: eval "ac_cv_header_$ac_safe=no" ! 1872: fi ! 1873: rm -f conftest* ! 1874: fi ! 1875: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then ! 1876: echo "$ac_t""yes" 1>&6 ! 1877: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` ! 1878: cat >> confdefs.h <<EOF ! 1879: #define $ac_tr_hdr 1 ! 1880: EOF ! 1881: ! 1882: else ! 1883: echo "$ac_t""no" 1>&6 ! 1884: fi ! 1885: done ! 1886: ! 1887: for ac_hdr in sys/soundcard.h machine/soundcard.h sun/audioio.h sys/audioio.h getopt.h features.h sys/termios.h ! 1888: do ! 1889: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` ! 1890: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 ! 1891: echo "configure:1892: checking for $ac_hdr" >&5 ! 1892: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then ! 1893: echo $ac_n "(cached) $ac_c" 1>&6 ! 1894: else ! 1895: cat > conftest.$ac_ext <<EOF ! 1896: #line 1897 "configure" ! 1897: #include "confdefs.h" ! 1898: #include <$ac_hdr> ! 1899: EOF ! 1900: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! 1901: { (eval echo configure:1902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ! 1902: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` ! 1903: if test -z "$ac_err"; then ! 1904: rm -rf conftest* ! 1905: eval "ac_cv_header_$ac_safe=yes" ! 1906: else ! 1907: echo "$ac_err" >&5 ! 1908: echo "configure: failed program was:" >&5 ! 1909: cat conftest.$ac_ext >&5 ! 1910: rm -rf conftest* ! 1911: eval "ac_cv_header_$ac_safe=no" ! 1912: fi ! 1913: rm -f conftest* ! 1914: fi ! 1915: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then ! 1916: echo "$ac_t""yes" 1>&6 ! 1917: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` ! 1918: cat >> confdefs.h <<EOF ! 1919: #define $ac_tr_hdr 1 ! 1920: EOF ! 1921: ! 1922: else ! 1923: echo "$ac_t""no" 1>&6 ! 1924: fi ! 1925: done ! 1926: ! 1927: for ac_hdr in posix_opt.h sys/ioctl.h sys/ipc.h sys/shm.h sys/stat.h sys/utime.h ! 1928: do ! 1929: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` ! 1930: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 ! 1931: echo "configure:1932: checking for $ac_hdr" >&5 ! 1932: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then ! 1933: echo $ac_n "(cached) $ac_c" 1>&6 ! 1934: else ! 1935: cat > conftest.$ac_ext <<EOF ! 1936: #line 1937 "configure" ! 1937: #include "confdefs.h" ! 1938: #include <$ac_hdr> ! 1939: EOF ! 1940: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! 1941: { (eval echo configure:1942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ! 1942: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` ! 1943: if test -z "$ac_err"; then ! 1944: rm -rf conftest* ! 1945: eval "ac_cv_header_$ac_safe=yes" ! 1946: else ! 1947: echo "$ac_err" >&5 ! 1948: echo "configure: failed program was:" >&5 ! 1949: cat conftest.$ac_ext >&5 ! 1950: rm -rf conftest* ! 1951: eval "ac_cv_header_$ac_safe=no" ! 1952: fi ! 1953: rm -f conftest* ! 1954: fi ! 1955: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then ! 1956: echo "$ac_t""yes" 1>&6 ! 1957: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` ! 1958: cat >> confdefs.h <<EOF ! 1959: #define $ac_tr_hdr 1 ! 1960: EOF ! 1961: ! 1962: else ! 1963: echo "$ac_t""no" 1>&6 ! 1964: fi ! 1965: done ! 1966: ! 1967: for ac_hdr in windows.h ddraw.h ! 1968: do ! 1969: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` ! 1970: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 ! 1971: echo "configure:1972: checking for $ac_hdr" >&5 ! 1972: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then ! 1973: echo $ac_n "(cached) $ac_c" 1>&6 ! 1974: else ! 1975: cat > conftest.$ac_ext <<EOF ! 1976: #line 1977 "configure" ! 1977: #include "confdefs.h" ! 1978: #include <$ac_hdr> ! 1979: EOF ! 1980: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! 1981: { (eval echo configure:1982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ! 1982: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` ! 1983: if test -z "$ac_err"; then ! 1984: rm -rf conftest* ! 1985: eval "ac_cv_header_$ac_safe=yes" ! 1986: else ! 1987: echo "$ac_err" >&5 ! 1988: echo "configure: failed program was:" >&5 ! 1989: cat conftest.$ac_ext >&5 ! 1990: rm -rf conftest* ! 1991: eval "ac_cv_header_$ac_safe=no" ! 1992: fi ! 1993: rm -f conftest* ! 1994: fi ! 1995: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then ! 1996: echo "$ac_t""yes" 1>&6 ! 1997: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` ! 1998: cat >> confdefs.h <<EOF ! 1999: #define $ac_tr_hdr 1 ! 2000: EOF ! 2001: ! 2002: else ! 2003: echo "$ac_t""no" 1>&6 ! 2004: fi ! 2005: done ! 2006: ! 2007: ac_safe=`echo "be_math.h" | sed 'y%./+-%__p_%'` ! 2008: echo $ac_n "checking for be_math.h""... $ac_c" 1>&6 ! 2009: echo "configure:2010: checking for be_math.h" >&5 ! 2010: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then ! 2011: echo $ac_n "(cached) $ac_c" 1>&6 ! 2012: else ! 2013: cat > conftest.$ac_ext <<EOF ! 2014: #line 2015 "configure" ! 2015: #include "confdefs.h" ! 2016: #include <be_math.h> ! 2017: EOF ! 2018: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! 2019: { (eval echo configure:2020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ! 2020: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` ! 2021: if test -z "$ac_err"; then ! 2022: rm -rf conftest* ! 2023: eval "ac_cv_header_$ac_safe=yes" ! 2024: else ! 2025: echo "$ac_err" >&5 ! 2026: echo "configure: failed program was:" >&5 ! 2027: cat conftest.$ac_ext >&5 ! 2028: rm -rf conftest* ! 2029: eval "ac_cv_header_$ac_safe=no" ! 2030: fi ! 2031: rm -f conftest* ! 2032: fi ! 2033: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then ! 2034: echo "$ac_t""yes" 1>&6 ! 2035: HAVE_BEOS=yes ! 2036: else ! 2037: echo "$ac_t""no" 1>&6 ! 2038: HAVE_BEOS=no ! 2039: fi ! 2040: ! 2041: for ac_hdr in machine/joystick.h ! 2042: do ! 2043: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` ! 2044: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 ! 2045: echo "configure:2046: checking for $ac_hdr" >&5 ! 2046: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then ! 2047: echo $ac_n "(cached) $ac_c" 1>&6 ! 2048: else ! 2049: cat > conftest.$ac_ext <<EOF ! 2050: #line 2051 "configure" ! 2051: #include "confdefs.h" ! 2052: #include <$ac_hdr> ! 2053: EOF ! 2054: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! 2055: { (eval echo configure:2056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ! 2056: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` ! 2057: if test -z "$ac_err"; then ! 2058: rm -rf conftest* ! 2059: eval "ac_cv_header_$ac_safe=yes" ! 2060: else ! 2061: echo "$ac_err" >&5 ! 2062: echo "configure: failed program was:" >&5 ! 2063: cat conftest.$ac_ext >&5 ! 2064: rm -rf conftest* ! 2065: eval "ac_cv_header_$ac_safe=no" ! 2066: fi ! 2067: rm -f conftest* ! 2068: fi ! 2069: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then ! 2070: echo "$ac_t""yes" 1>&6 ! 2071: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` ! 2072: cat >> confdefs.h <<EOF ! 2073: #define $ac_tr_hdr 1 ! 2074: EOF ! 2075: ! 2076: else ! 2077: echo "$ac_t""no" 1>&6 ! 2078: fi ! 2079: done ! 2080: ! 2081: for ac_hdr in devices/ahi.h ! 2082: do ! 2083: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` ! 2084: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 ! 2085: echo "configure:2086: checking for $ac_hdr" >&5 ! 2086: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then ! 2087: echo $ac_n "(cached) $ac_c" 1>&6 ! 2088: else ! 2089: cat > conftest.$ac_ext <<EOF ! 2090: #line 2091 "configure" ! 2091: #include "confdefs.h" ! 2092: #include <$ac_hdr> ! 2093: EOF ! 2094: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! 2095: { (eval echo configure:2096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ! 2096: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` ! 2097: if test -z "$ac_err"; then ! 2098: rm -rf conftest* ! 2099: eval "ac_cv_header_$ac_safe=yes" ! 2100: else ! 2101: echo "$ac_err" >&5 ! 2102: echo "configure: failed program was:" >&5 ! 2103: cat conftest.$ac_ext >&5 ! 2104: rm -rf conftest* ! 2105: eval "ac_cv_header_$ac_safe=no" ! 2106: fi ! 2107: rm -f conftest* ! 2108: fi ! 2109: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then ! 2110: echo "$ac_t""yes" 1>&6 ! 2111: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` ! 2112: cat >> confdefs.h <<EOF ! 2113: #define $ac_tr_hdr 1 ! 2114: EOF ! 2115: ! 2116: else ! 2117: echo "$ac_t""no" 1>&6 ! 2118: fi ! 2119: done ! 2120: ! 2121: for ac_hdr in dmedia/audio.h SDL/SDL.h ! 2122: do ! 2123: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` ! 2124: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 ! 2125: echo "configure:2126: checking for $ac_hdr" >&5 ! 2126: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then ! 2127: echo $ac_n "(cached) $ac_c" 1>&6 ! 2128: else ! 2129: cat > conftest.$ac_ext <<EOF ! 2130: #line 2131 "configure" ! 2131: #include "confdefs.h" ! 2132: #include <$ac_hdr> ! 2133: EOF ! 2134: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! 2135: { (eval echo configure:2136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ! 2136: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` ! 2137: if test -z "$ac_err"; then ! 2138: rm -rf conftest* ! 2139: eval "ac_cv_header_$ac_safe=yes" ! 2140: else ! 2141: echo "$ac_err" >&5 ! 2142: echo "configure: failed program was:" >&5 ! 2143: cat conftest.$ac_ext >&5 ! 2144: rm -rf conftest* ! 2145: eval "ac_cv_header_$ac_safe=no" ! 2146: fi ! 2147: rm -f conftest* ! 2148: fi ! 2149: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then ! 2150: echo "$ac_t""yes" 1>&6 ! 2151: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` ! 2152: cat >> confdefs.h <<EOF ! 2153: #define $ac_tr_hdr 1 ! 2154: EOF ! 2155: ! 2156: else ! 2157: echo "$ac_t""no" 1>&6 ! 2158: fi ! 2159: done ! 2160: ! 2161: for ac_hdr in libraries/cybergraphics.h cybergraphx/cybergraphics.h ! 2162: do ! 2163: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` ! 2164: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 ! 2165: echo "configure:2166: checking for $ac_hdr" >&5 ! 2166: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then ! 2167: echo $ac_n "(cached) $ac_c" 1>&6 ! 2168: else ! 2169: cat > conftest.$ac_ext <<EOF ! 2170: #line 2171 "configure" ! 2171: #include "confdefs.h" ! 2172: #include <$ac_hdr> ! 2173: EOF ! 2174: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! 2175: { (eval echo configure:2176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ! 2176: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` ! 2177: if test -z "$ac_err"; then ! 2178: rm -rf conftest* ! 2179: eval "ac_cv_header_$ac_safe=yes" ! 2180: else ! 2181: echo "$ac_err" >&5 ! 2182: echo "configure: failed program was:" >&5 ! 2183: cat conftest.$ac_ext >&5 ! 2184: rm -rf conftest* ! 2185: eval "ac_cv_header_$ac_safe=no" ! 2186: fi ! 2187: rm -f conftest* ! 2188: fi ! 2189: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then ! 2190: echo "$ac_t""yes" 1>&6 ! 2191: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` ! 2192: cat >> confdefs.h <<EOF ! 2193: #define $ac_tr_hdr 1 ! 2194: EOF ! 2195: ! 2196: else ! 2197: echo "$ac_t""no" 1>&6 ! 2198: fi ! 2199: done ! 2200: ! 2201: ! 2202: echo $ac_n "checking size of char""... $ac_c" 1>&6 ! 2203: echo "configure:2204: checking size of char" >&5 ! 2204: if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then ! 2205: echo $ac_n "(cached) $ac_c" 1>&6 ! 2206: else ! 2207: if test "$cross_compiling" = yes; then ! 2208: ac_cv_sizeof_char=1 ! 2209: else ! 2210: cat > conftest.$ac_ext <<EOF ! 2211: #line 2212 "configure" ! 2212: #include "confdefs.h" ! 2213: #include <stdio.h> ! 2214: main() ! 2215: { ! 2216: FILE *f=fopen("conftestval", "w"); ! 2217: if (!f) exit(1); ! 2218: fprintf(f, "%d\n", sizeof(char)); ! 2219: exit(0); ! 2220: } ! 2221: EOF ! 2222: if { (eval echo configure:2223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ! 2223: then ! 2224: ac_cv_sizeof_char=`cat conftestval` ! 2225: else ! 2226: echo "configure: failed program was:" >&5 ! 2227: cat conftest.$ac_ext >&5 ! 2228: rm -fr conftest* ! 2229: ac_cv_sizeof_char=0 ! 2230: fi ! 2231: rm -fr conftest* ! 2232: fi ! 2233: ! 2234: fi ! 2235: echo "$ac_t""$ac_cv_sizeof_char" 1>&6 ! 2236: cat >> confdefs.h <<EOF ! 2237: #define SIZEOF_CHAR $ac_cv_sizeof_char ! 2238: EOF ! 2239: ! 2240: ! 2241: echo $ac_n "checking size of short""... $ac_c" 1>&6 ! 2242: echo "configure:2243: checking size of short" >&5 ! 2243: if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then ! 2244: echo $ac_n "(cached) $ac_c" 1>&6 ! 2245: else ! 2246: if test "$cross_compiling" = yes; then ! 2247: ac_cv_sizeof_short=2 ! 2248: else ! 2249: cat > conftest.$ac_ext <<EOF ! 2250: #line 2251 "configure" ! 2251: #include "confdefs.h" ! 2252: #include <stdio.h> ! 2253: main() ! 2254: { ! 2255: FILE *f=fopen("conftestval", "w"); ! 2256: if (!f) exit(1); ! 2257: fprintf(f, "%d\n", sizeof(short)); ! 2258: exit(0); ! 2259: } ! 2260: EOF ! 2261: if { (eval echo configure:2262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ! 2262: then ! 2263: ac_cv_sizeof_short=`cat conftestval` ! 2264: else ! 2265: echo "configure: failed program was:" >&5 ! 2266: cat conftest.$ac_ext >&5 ! 2267: rm -fr conftest* ! 2268: ac_cv_sizeof_short=0 ! 2269: fi ! 2270: rm -fr conftest* ! 2271: fi ! 2272: ! 2273: fi ! 2274: echo "$ac_t""$ac_cv_sizeof_short" 1>&6 ! 2275: cat >> confdefs.h <<EOF ! 2276: #define SIZEOF_SHORT $ac_cv_sizeof_short ! 2277: EOF ! 2278: ! 2279: ! 2280: echo $ac_n "checking size of int""... $ac_c" 1>&6 ! 2281: echo "configure:2282: checking size of int" >&5 ! 2282: if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then ! 2283: echo $ac_n "(cached) $ac_c" 1>&6 ! 2284: else ! 2285: if test "$cross_compiling" = yes; then ! 2286: ac_cv_sizeof_int=4 ! 2287: else ! 2288: cat > conftest.$ac_ext <<EOF ! 2289: #line 2290 "configure" ! 2290: #include "confdefs.h" ! 2291: #include <stdio.h> ! 2292: main() ! 2293: { ! 2294: FILE *f=fopen("conftestval", "w"); ! 2295: if (!f) exit(1); ! 2296: fprintf(f, "%d\n", sizeof(int)); ! 2297: exit(0); ! 2298: } ! 2299: EOF ! 2300: if { (eval echo configure:2301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ! 2301: then ! 2302: ac_cv_sizeof_int=`cat conftestval` ! 2303: else ! 2304: echo "configure: failed program was:" >&5 ! 2305: cat conftest.$ac_ext >&5 ! 2306: rm -fr conftest* ! 2307: ac_cv_sizeof_int=0 ! 2308: fi ! 2309: rm -fr conftest* ! 2310: fi ! 2311: ! 2312: fi ! 2313: echo "$ac_t""$ac_cv_sizeof_int" 1>&6 ! 2314: cat >> confdefs.h <<EOF ! 2315: #define SIZEOF_INT $ac_cv_sizeof_int ! 2316: EOF ! 2317: ! 2318: ! 2319: echo $ac_n "checking size of long""... $ac_c" 1>&6 ! 2320: echo "configure:2321: checking size of long" >&5 ! 2321: if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then ! 2322: echo $ac_n "(cached) $ac_c" 1>&6 ! 2323: else ! 2324: if test "$cross_compiling" = yes; then ! 2325: ac_cv_sizeof_long=4 ! 2326: else ! 2327: cat > conftest.$ac_ext <<EOF ! 2328: #line 2329 "configure" ! 2329: #include "confdefs.h" ! 2330: #include <stdio.h> ! 2331: main() ! 2332: { ! 2333: FILE *f=fopen("conftestval", "w"); ! 2334: if (!f) exit(1); ! 2335: fprintf(f, "%d\n", sizeof(long)); ! 2336: exit(0); ! 2337: } ! 2338: EOF ! 2339: if { (eval echo configure:2340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ! 2340: then ! 2341: ac_cv_sizeof_long=`cat conftestval` ! 2342: else ! 2343: echo "configure: failed program was:" >&5 ! 2344: cat conftest.$ac_ext >&5 ! 2345: rm -fr conftest* ! 2346: ac_cv_sizeof_long=0 ! 2347: fi ! 2348: rm -fr conftest* ! 2349: fi ! 2350: ! 2351: fi ! 2352: echo "$ac_t""$ac_cv_sizeof_long" 1>&6 ! 2353: cat >> confdefs.h <<EOF ! 2354: #define SIZEOF_LONG $ac_cv_sizeof_long ! 2355: EOF ! 2356: ! 2357: ! 2358: echo $ac_n "checking size of long long""... $ac_c" 1>&6 ! 2359: echo "configure:2360: checking size of long long" >&5 ! 2360: if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then ! 2361: echo $ac_n "(cached) $ac_c" 1>&6 ! 2362: else ! 2363: if test "$cross_compiling" = yes; then ! 2364: ac_cv_sizeof_long_long=8 ! 2365: else ! 2366: cat > conftest.$ac_ext <<EOF ! 2367: #line 2368 "configure" ! 2368: #include "confdefs.h" ! 2369: #include <stdio.h> ! 2370: main() ! 2371: { ! 2372: FILE *f=fopen("conftestval", "w"); ! 2373: if (!f) exit(1); ! 2374: fprintf(f, "%d\n", sizeof(long long)); ! 2375: exit(0); ! 2376: } ! 2377: EOF ! 2378: if { (eval echo configure:2379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ! 2379: then ! 2380: ac_cv_sizeof_long_long=`cat conftestval` ! 2381: else ! 2382: echo "configure: failed program was:" >&5 ! 2383: cat conftest.$ac_ext >&5 ! 2384: rm -fr conftest* ! 2385: ac_cv_sizeof_long_long=0 ! 2386: fi ! 2387: rm -fr conftest* ! 2388: fi ! 2389: ! 2390: fi ! 2391: echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 ! 2392: cat >> confdefs.h <<EOF ! 2393: #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long ! 2394: EOF ! 2395: ! 2396: ! 2397: echo $ac_n "checking size of __int64""... $ac_c" 1>&6 ! 2398: echo "configure:2399: checking size of __int64" >&5 ! 2399: if eval "test \"`echo '$''{'ac_cv_sizeof___int64'+set}'`\" = set"; then ! 2400: echo $ac_n "(cached) $ac_c" 1>&6 ! 2401: else ! 2402: if test "$cross_compiling" = yes; then ! 2403: ac_cv_sizeof___int64=8 ! 2404: else ! 2405: cat > conftest.$ac_ext <<EOF ! 2406: #line 2407 "configure" ! 2407: #include "confdefs.h" ! 2408: #include <stdio.h> ! 2409: main() ! 2410: { ! 2411: FILE *f=fopen("conftestval", "w"); ! 2412: if (!f) exit(1); ! 2413: fprintf(f, "%d\n", sizeof(__int64)); ! 2414: exit(0); ! 2415: } ! 2416: EOF ! 2417: if { (eval echo configure:2418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ! 2418: then ! 2419: ac_cv_sizeof___int64=`cat conftestval` ! 2420: else ! 2421: echo "configure: failed program was:" >&5 ! 2422: cat conftest.$ac_ext >&5 ! 2423: rm -fr conftest* ! 2424: ac_cv_sizeof___int64=0 ! 2425: fi ! 2426: rm -fr conftest* ! 2427: fi ! 2428: ! 2429: fi ! 2430: echo "$ac_t""$ac_cv_sizeof___int64" 1>&6 ! 2431: cat >> confdefs.h <<EOF ! 2432: #define SIZEOF___INT64 $ac_cv_sizeof___int64 ! 2433: EOF ! 2434: ! 2435: ! 2436: ! 2437: echo $ac_n "checking for working const""... $ac_c" 1>&6 ! 2438: echo "configure:2439: checking for working const" >&5 ! 2439: if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then ! 2440: echo $ac_n "(cached) $ac_c" 1>&6 ! 2441: else ! 2442: cat > conftest.$ac_ext <<EOF ! 2443: #line 2444 "configure" ! 2444: #include "confdefs.h" ! 2445: ! 2446: int main() { ! 2447: ! 2448: /* Ultrix mips cc rejects this. */ ! 2449: typedef int charset[2]; const charset x; ! 2450: /* SunOS 4.1.1 cc rejects this. */ ! 2451: char const *const *ccp; ! 2452: char **p; ! 2453: /* NEC SVR4.0.2 mips cc rejects this. */ ! 2454: struct point {int x, y;}; ! 2455: static struct point const zero = {0,0}; ! 2456: /* AIX XL C 1.02.0.0 rejects this. ! 2457: It does not let you subtract one const X* pointer from another in an arm ! 2458: of an if-expression whose if-part is not a constant expression */ ! 2459: const char *g = "string"; ! 2460: ccp = &g + (g ? g-g : 0); ! 2461: /* HPUX 7.0 cc rejects these. */ ! 2462: ++ccp; ! 2463: p = (char**) ccp; ! 2464: ccp = (char const *const *) p; ! 2465: { /* SCO 3.2v4 cc rejects this. */ ! 2466: char *t; ! 2467: char const *s = 0 ? (char *) 0 : (char const *) 0; ! 2468: ! 2469: *t++ = 0; ! 2470: } ! 2471: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ ! 2472: int x[] = {25, 17}; ! 2473: const int *foo = &x[0]; ! 2474: ++foo; ! 2475: } ! 2476: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ ! 2477: typedef const int *iptr; ! 2478: iptr p = 0; ! 2479: ++p; ! 2480: } ! 2481: { /* AIX XL C 1.02.0.0 rejects this saying ! 2482: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ ! 2483: struct s { int j; const int *ap[3]; }; ! 2484: struct s *b; b->j = 5; ! 2485: } ! 2486: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ ! 2487: const int foo = 10; ! 2488: } ! 2489: ! 2490: ; return 0; } ! 2491: EOF ! 2492: if { (eval echo configure:2493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ! 2493: rm -rf conftest* ! 2494: ac_cv_c_const=yes ! 2495: else ! 2496: echo "configure: failed program was:" >&5 ! 2497: cat conftest.$ac_ext >&5 ! 2498: rm -rf conftest* ! 2499: ac_cv_c_const=no ! 2500: fi ! 2501: rm -f conftest* ! 2502: fi ! 2503: ! 2504: echo "$ac_t""$ac_cv_c_const" 1>&6 ! 2505: if test $ac_cv_c_const = no; then ! 2506: cat >> confdefs.h <<\EOF ! 2507: #define const ! 2508: EOF ! 2509: ! 2510: fi ! 2511: ! 2512: echo $ac_n "checking for inline""... $ac_c" 1>&6 ! 2513: echo "configure:2514: checking for inline" >&5 ! 2514: if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then ! 2515: echo $ac_n "(cached) $ac_c" 1>&6 ! 2516: else ! 2517: ac_cv_c_inline=no ! 2518: for ac_kw in inline __inline__ __inline; do ! 2519: cat > conftest.$ac_ext <<EOF ! 2520: #line 2521 "configure" ! 2521: #include "confdefs.h" ! 2522: ! 2523: int main() { ! 2524: } $ac_kw foo() { ! 2525: ; return 0; } ! 2526: EOF ! 2527: if { (eval echo configure:2528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ! 2528: rm -rf conftest* ! 2529: ac_cv_c_inline=$ac_kw; break ! 2530: else ! 2531: echo "configure: failed program was:" >&5 ! 2532: cat conftest.$ac_ext >&5 ! 2533: fi ! 2534: rm -f conftest* ! 2535: done ! 2536: ! 2537: fi ! 2538: ! 2539: echo "$ac_t""$ac_cv_c_inline" 1>&6 ! 2540: case "$ac_cv_c_inline" in ! 2541: inline | yes) ;; ! 2542: no) cat >> confdefs.h <<\EOF ! 2543: #define inline ! 2544: EOF ! 2545: ;; ! 2546: *) cat >> confdefs.h <<EOF ! 2547: #define inline $ac_cv_c_inline ! 2548: EOF ! 2549: ;; ! 2550: esac ! 2551: ! 2552: if [ "x$ac_cv_c_inline" = "xno" ]; then ! 2553: ac_cv_c_inline= ! 2554: fi ! 2555: echo $ac_n "checking for mode_t""... $ac_c" 1>&6 ! 2556: echo "configure:2557: checking for mode_t" >&5 ! 2557: if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then ! 2558: echo $ac_n "(cached) $ac_c" 1>&6 ! 2559: else ! 2560: cat > conftest.$ac_ext <<EOF ! 2561: #line 2562 "configure" ! 2562: #include "confdefs.h" ! 2563: #include <sys/types.h> ! 2564: #if STDC_HEADERS ! 2565: #include <stdlib.h> ! 2566: #include <stddef.h> ! 2567: #endif ! 2568: EOF ! 2569: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ! 2570: egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then ! 2571: rm -rf conftest* ! 2572: ac_cv_type_mode_t=yes ! 2573: else ! 2574: rm -rf conftest* ! 2575: ac_cv_type_mode_t=no ! 2576: fi ! 2577: rm -f conftest* ! 2578: ! 2579: fi ! 2580: echo "$ac_t""$ac_cv_type_mode_t" 1>&6 ! 2581: if test $ac_cv_type_mode_t = no; then ! 2582: cat >> confdefs.h <<\EOF ! 2583: #define mode_t int ! 2584: EOF ! 2585: ! 2586: fi ! 2587: ! 2588: echo $ac_n "checking for off_t""... $ac_c" 1>&6 ! 2589: echo "configure:2590: checking for off_t" >&5 ! 2590: if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then ! 2591: echo $ac_n "(cached) $ac_c" 1>&6 ! 2592: else ! 2593: cat > conftest.$ac_ext <<EOF ! 2594: #line 2595 "configure" ! 2595: #include "confdefs.h" ! 2596: #include <sys/types.h> ! 2597: #if STDC_HEADERS ! 2598: #include <stdlib.h> ! 2599: #include <stddef.h> ! 2600: #endif ! 2601: EOF ! 2602: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ! 2603: egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then ! 2604: rm -rf conftest* ! 2605: ac_cv_type_off_t=yes ! 2606: else ! 2607: rm -rf conftest* ! 2608: ac_cv_type_off_t=no ! 2609: fi ! 2610: rm -f conftest* ! 2611: ! 2612: fi ! 2613: echo "$ac_t""$ac_cv_type_off_t" 1>&6 ! 2614: if test $ac_cv_type_off_t = no; then ! 2615: cat >> confdefs.h <<\EOF ! 2616: #define off_t long ! 2617: EOF ! 2618: ! 2619: fi ! 2620: ! 2621: echo $ac_n "checking for pid_t""... $ac_c" 1>&6 ! 2622: echo "configure:2623: checking for pid_t" >&5 ! 2623: if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then ! 2624: echo $ac_n "(cached) $ac_c" 1>&6 ! 2625: else ! 2626: cat > conftest.$ac_ext <<EOF ! 2627: #line 2628 "configure" ! 2628: #include "confdefs.h" ! 2629: #include <sys/types.h> ! 2630: #if STDC_HEADERS ! 2631: #include <stdlib.h> ! 2632: #include <stddef.h> ! 2633: #endif ! 2634: EOF ! 2635: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ! 2636: egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then ! 2637: rm -rf conftest* ! 2638: ac_cv_type_pid_t=yes ! 2639: else ! 2640: rm -rf conftest* ! 2641: ac_cv_type_pid_t=no ! 2642: fi ! 2643: rm -f conftest* ! 2644: ! 2645: fi ! 2646: echo "$ac_t""$ac_cv_type_pid_t" 1>&6 ! 2647: if test $ac_cv_type_pid_t = no; then ! 2648: cat >> confdefs.h <<\EOF ! 2649: #define pid_t int ! 2650: EOF ! 2651: ! 2652: fi ! 2653: ! 2654: echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6 ! 2655: echo "configure:2656: checking for st_blocks in struct stat" >&5 ! 2656: if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then ! 2657: echo $ac_n "(cached) $ac_c" 1>&6 ! 2658: else ! 2659: cat > conftest.$ac_ext <<EOF ! 2660: #line 2661 "configure" ! 2661: #include "confdefs.h" ! 2662: #include <sys/types.h> ! 2663: #include <sys/stat.h> ! 2664: int main() { ! 2665: struct stat s; s.st_blocks; ! 2666: ; return 0; } ! 2667: EOF ! 2668: if { (eval echo configure:2669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ! 2669: rm -rf conftest* ! 2670: ac_cv_struct_st_blocks=yes ! 2671: else ! 2672: echo "configure: failed program was:" >&5 ! 2673: cat conftest.$ac_ext >&5 ! 2674: rm -rf conftest* ! 2675: ac_cv_struct_st_blocks=no ! 2676: fi ! 2677: rm -f conftest* ! 2678: fi ! 2679: ! 2680: echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6 ! 2681: if test $ac_cv_struct_st_blocks = yes; then ! 2682: cat >> confdefs.h <<\EOF ! 2683: #define HAVE_ST_BLOCKS 1 ! 2684: EOF ! 2685: ! 2686: else ! 2687: LIBOBJS="$LIBOBJS fileblocks.${ac_objext}" ! 2688: fi ! 2689: ! 2690: echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 ! 2691: echo "configure:2692: checking whether time.h and sys/time.h may both be included" >&5 ! 2692: if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then ! 2693: echo $ac_n "(cached) $ac_c" 1>&6 ! 2694: else ! 2695: cat > conftest.$ac_ext <<EOF ! 2696: #line 2697 "configure" ! 2697: #include "confdefs.h" ! 2698: #include <sys/types.h> ! 2699: #include <sys/time.h> ! 2700: #include <time.h> ! 2701: int main() { ! 2702: struct tm *tp; ! 2703: ; return 0; } ! 2704: EOF ! 2705: if { (eval echo configure:2706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ! 2706: rm -rf conftest* ! 2707: ac_cv_header_time=yes ! 2708: else ! 2709: echo "configure: failed program was:" >&5 ! 2710: cat conftest.$ac_ext >&5 ! 2711: rm -rf conftest* ! 2712: ac_cv_header_time=no ! 2713: fi ! 2714: rm -f conftest* ! 2715: fi ! 2716: ! 2717: echo "$ac_t""$ac_cv_header_time" 1>&6 ! 2718: if test $ac_cv_header_time = yes; then ! 2719: cat >> confdefs.h <<\EOF ! 2720: #define TIME_WITH_SYS_TIME 1 ! 2721: EOF ! 2722: ! 2723: fi ! 2724: ! 2725: echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 ! 2726: echo "configure:2727: checking whether struct tm is in sys/time.h or time.h" >&5 ! 2727: if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then ! 2728: echo $ac_n "(cached) $ac_c" 1>&6 ! 2729: else ! 2730: cat > conftest.$ac_ext <<EOF ! 2731: #line 2732 "configure" ! 2732: #include "confdefs.h" ! 2733: #include <sys/types.h> ! 2734: #include <time.h> ! 2735: int main() { ! 2736: struct tm *tp; tp->tm_sec; ! 2737: ; return 0; } ! 2738: EOF ! 2739: if { (eval echo configure:2740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ! 2740: rm -rf conftest* ! 2741: ac_cv_struct_tm=time.h ! 2742: else ! 2743: echo "configure: failed program was:" >&5 ! 2744: cat conftest.$ac_ext >&5 ! 2745: rm -rf conftest* ! 2746: ac_cv_struct_tm=sys/time.h ! 2747: fi ! 2748: rm -f conftest* ! 2749: fi ! 2750: ! 2751: echo "$ac_t""$ac_cv_struct_tm" 1>&6 ! 2752: if test $ac_cv_struct_tm = sys/time.h; then ! 2753: cat >> confdefs.h <<\EOF ! 2754: #define TM_IN_SYS_TIME 1 ! 2755: EOF ! 2756: ! 2757: fi ! 2758: ! 2759: ! 2760: if test $ac_cv_prog_gcc = yes; then ! 2761: echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 ! 2762: echo "configure:2763: checking whether ${CC-cc} needs -traditional" >&5 ! 2763: if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then ! 2764: echo $ac_n "(cached) $ac_c" 1>&6 ! 2765: else ! 2766: ac_pattern="Autoconf.*'x'" ! 2767: cat > conftest.$ac_ext <<EOF ! 2768: #line 2769 "configure" ! 2769: #include "confdefs.h" ! 2770: #include <sgtty.h> ! 2771: Autoconf TIOCGETP ! 2772: EOF ! 2773: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ! 2774: egrep "$ac_pattern" >/dev/null 2>&1; then ! 2775: rm -rf conftest* ! 2776: ac_cv_prog_gcc_traditional=yes ! 2777: else ! 2778: rm -rf conftest* ! 2779: ac_cv_prog_gcc_traditional=no ! 2780: fi ! 2781: rm -f conftest* ! 2782: ! 2783: ! 2784: if test $ac_cv_prog_gcc_traditional = no; then ! 2785: cat > conftest.$ac_ext <<EOF ! 2786: #line 2787 "configure" ! 2787: #include "confdefs.h" ! 2788: #include <termio.h> ! 2789: Autoconf TCGETA ! 2790: EOF ! 2791: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ! 2792: egrep "$ac_pattern" >/dev/null 2>&1; then ! 2793: rm -rf conftest* ! 2794: ac_cv_prog_gcc_traditional=yes ! 2795: fi ! 2796: rm -f conftest* ! 2797: ! 2798: fi ! 2799: fi ! 2800: ! 2801: echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 ! 2802: if test $ac_cv_prog_gcc_traditional = yes; then ! 2803: CC="$CC -traditional" ! 2804: fi ! 2805: fi ! 2806: ! 2807: echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6 ! 2808: echo "configure:2809: checking for 8-bit clean memcmp" >&5 ! 2809: if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then ! 2810: echo $ac_n "(cached) $ac_c" 1>&6 ! 2811: else ! 2812: if test "$cross_compiling" = yes; then ! 2813: ac_cv_func_memcmp_clean=no ! 2814: else ! 2815: cat > conftest.$ac_ext <<EOF ! 2816: #line 2817 "configure" ! 2817: #include "confdefs.h" ! 2818: ! 2819: main() ! 2820: { ! 2821: char c0 = 0x40, c1 = 0x80, c2 = 0x81; ! 2822: exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1); ! 2823: } ! 2824: ! 2825: EOF ! 2826: if { (eval echo configure:2827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ! 2827: then ! 2828: ac_cv_func_memcmp_clean=yes ! 2829: else ! 2830: echo "configure: failed program was:" >&5 ! 2831: cat conftest.$ac_ext >&5 ! 2832: rm -fr conftest* ! 2833: ac_cv_func_memcmp_clean=no ! 2834: fi ! 2835: rm -fr conftest* ! 2836: fi ! 2837: ! 2838: fi ! 2839: ! 2840: echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6 ! 2841: test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}" ! 2842: ! 2843: echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 ! 2844: echo "configure:2845: checking return type of signal handlers" >&5 ! 2845: if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then ! 2846: echo $ac_n "(cached) $ac_c" 1>&6 ! 2847: else ! 2848: cat > conftest.$ac_ext <<EOF ! 2849: #line 2850 "configure" ! 2850: #include "confdefs.h" ! 2851: #include <sys/types.h> ! 2852: #include <signal.h> ! 2853: #ifdef signal ! 2854: #undef signal ! 2855: #endif ! 2856: #ifdef __cplusplus ! 2857: extern "C" void (*signal (int, void (*)(int)))(int); ! 2858: #else ! 2859: void (*signal ()) (); ! 2860: #endif ! 2861: ! 2862: int main() { ! 2863: int i; ! 2864: ; return 0; } ! 2865: EOF ! 2866: if { (eval echo configure:2867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then ! 2867: rm -rf conftest* ! 2868: ac_cv_type_signal=void ! 2869: else ! 2870: echo "configure: failed program was:" >&5 ! 2871: cat conftest.$ac_ext >&5 ! 2872: rm -rf conftest* ! 2873: ac_cv_type_signal=int ! 2874: fi ! 2875: rm -f conftest* ! 2876: fi ! 2877: ! 2878: echo "$ac_t""$ac_cv_type_signal" 1>&6 ! 2879: cat >> confdefs.h <<EOF ! 2880: #define RETSIGTYPE $ac_cv_type_signal ! 2881: EOF ! 2882: ! 2883: ! 2884: echo $ac_n "checking whether utime accepts a null argument""... $ac_c" 1>&6 ! 2885: echo "configure:2886: checking whether utime accepts a null argument" >&5 ! 2886: if eval "test \"`echo '$''{'ac_cv_func_utime_null'+set}'`\" = set"; then ! 2887: echo $ac_n "(cached) $ac_c" 1>&6 ! 2888: else ! 2889: rm -f conftestdata; > conftestdata ! 2890: # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong. ! 2891: if test "$cross_compiling" = yes; then ! 2892: ac_cv_func_utime_null=no ! 2893: else ! 2894: cat > conftest.$ac_ext <<EOF ! 2895: #line 2896 "configure" ! 2896: #include "confdefs.h" ! 2897: #include <sys/types.h> ! 2898: #include <sys/stat.h> ! 2899: main() { ! 2900: struct stat s, t; ! 2901: exit(!(stat ("conftestdata", &s) == 0 && utime("conftestdata", (long *)0) == 0 ! 2902: && stat("conftestdata", &t) == 0 && t.st_mtime >= s.st_mtime ! 2903: && t.st_mtime - s.st_mtime < 120)); ! 2904: } ! 2905: EOF ! 2906: if { (eval echo configure:2907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null ! 2907: then ! 2908: ac_cv_func_utime_null=yes ! 2909: else ! 2910: echo "configure: failed program was:" >&5 ! 2911: cat conftest.$ac_ext >&5 ! 2912: rm -fr conftest* ! 2913: ac_cv_func_utime_null=no ! 2914: fi ! 2915: rm -fr conftest* ! 2916: fi ! 2917: ! 2918: rm -f core core.* *.core ! 2919: fi ! 2920: ! 2921: echo "$ac_t""$ac_cv_func_utime_null" 1>&6 ! 2922: if test $ac_cv_func_utime_null = yes; then ! 2923: cat >> confdefs.h <<\EOF ! 2924: #define HAVE_UTIME_NULL 1 ! 2925: EOF ! 2926: ! 2927: fi ! 2928: ! 2929: for ac_func in getcwd getopt strdup gettimeofday sigaction mkdir rmdir select strerror strstr ! 2930: do ! 2931: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 ! 2932: echo "configure:2933: checking for $ac_func" >&5 ! 2933: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then ! 2934: echo $ac_n "(cached) $ac_c" 1>&6 ! 2935: else ! 2936: cat > conftest.$ac_ext <<EOF ! 2937: #line 2938 "configure" ! 2938: #include "confdefs.h" ! 2939: /* System header to define __stub macros and hopefully few prototypes, ! 2940: which can conflict with char $ac_func(); below. */ ! 2941: #include <assert.h> ! 2942: /* Override any gcc2 internal prototype to avoid an error. */ ! 2943: /* We use char because int might match the return type of a gcc2 ! 2944: builtin and then its argument prototype would still apply. */ ! 2945: char $ac_func(); ! 2946: ! 2947: int main() { ! 2948: ! 2949: /* The GNU C library defines this for functions which it implements ! 2950: to always fail with ENOSYS. Some functions are actually named ! 2951: something starting with __ and the normal name is an alias. */ ! 2952: #if defined (__stub_$ac_func) || defined (__stub___$ac_func) ! 2953: choke me ! 2954: #else ! 2955: $ac_func(); ! 2956: #endif ! 2957: ! 2958: ; return 0; } ! 2959: EOF ! 2960: if { (eval echo configure:2961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ! 2961: rm -rf conftest* ! 2962: eval "ac_cv_func_$ac_func=yes" ! 2963: else ! 2964: echo "configure: failed program was:" >&5 ! 2965: cat conftest.$ac_ext >&5 ! 2966: rm -rf conftest* ! 2967: eval "ac_cv_func_$ac_func=no" ! 2968: fi ! 2969: rm -f conftest* ! 2970: fi ! 2971: ! 2972: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then ! 2973: echo "$ac_t""yes" 1>&6 ! 2974: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` ! 2975: cat >> confdefs.h <<EOF ! 2976: #define $ac_tr_func 1 ! 2977: EOF ! 2978: ! 2979: else ! 2980: echo "$ac_t""no" 1>&6 ! 2981: fi ! 2982: done ! 2983: ! 2984: for ac_func in tcgetattr cfmakeraw readdir_r vprintf vsprintf vfprintf setitimer ! 2985: do ! 2986: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 ! 2987: echo "configure:2988: checking for $ac_func" >&5 ! 2988: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then ! 2989: echo $ac_n "(cached) $ac_c" 1>&6 ! 2990: else ! 2991: cat > conftest.$ac_ext <<EOF ! 2992: #line 2993 "configure" ! 2993: #include "confdefs.h" ! 2994: /* System header to define __stub macros and hopefully few prototypes, ! 2995: which can conflict with char $ac_func(); below. */ ! 2996: #include <assert.h> ! 2997: /* Override any gcc2 internal prototype to avoid an error. */ ! 2998: /* We use char because int might match the return type of a gcc2 ! 2999: builtin and then its argument prototype would still apply. */ ! 3000: char $ac_func(); ! 3001: ! 3002: int main() { ! 3003: ! 3004: /* The GNU C library defines this for functions which it implements ! 3005: to always fail with ENOSYS. Some functions are actually named ! 3006: something starting with __ and the normal name is an alias. */ ! 3007: #if defined (__stub_$ac_func) || defined (__stub___$ac_func) ! 3008: choke me ! 3009: #else ! 3010: $ac_func(); ! 3011: #endif ! 3012: ! 3013: ; return 0; } ! 3014: EOF ! 3015: if { (eval echo configure:3016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ! 3016: rm -rf conftest* ! 3017: eval "ac_cv_func_$ac_func=yes" ! 3018: else ! 3019: echo "configure: failed program was:" >&5 ! 3020: cat conftest.$ac_ext >&5 ! 3021: rm -rf conftest* ! 3022: eval "ac_cv_func_$ac_func=no" ! 3023: fi ! 3024: rm -f conftest* ! 3025: fi ! 3026: ! 3027: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then ! 3028: echo "$ac_t""yes" 1>&6 ! 3029: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` ! 3030: cat >> confdefs.h <<EOF ! 3031: #define $ac_tr_func 1 ! 3032: EOF ! 3033: ! 3034: else ! 3035: echo "$ac_t""no" 1>&6 ! 3036: fi ! 3037: done ! 3038: ! 3039: ! 3040: ! 3041: ! 3042: ! 3043: ! 3044: ! 3045: ! 3046: trap '' 1 2 15 ! 3047: cat > confcache <<\EOF ! 3048: # This file is a shell script that caches the results of configure ! 3049: # tests run on this system so they can be shared between configure ! 3050: # scripts and configure runs. It is not useful on other systems. ! 3051: # If it contains results you don't want to keep, you may remove or edit it. ! 3052: # ! 3053: # By default, configure uses ./config.cache as the cache file, ! 3054: # creating it if it does not exist already. You can give configure ! 3055: # the --cache-file=FILE option to use a different cache file; that is ! 3056: # what configure does when it calls configure scripts in ! 3057: # subdirectories, so they share the cache. ! 3058: # Giving --cache-file=/dev/null disables caching, for debugging configure. ! 3059: # config.status only pays attention to the cache file if you give it the ! 3060: # --recheck option to rerun configure. ! 3061: # ! 3062: EOF ! 3063: # The following way of writing the cache mishandles newlines in values, ! 3064: # but we know of no workaround that is simple, portable, and efficient. ! 3065: # So, don't put newlines in cache variables' values. ! 3066: # Ultrix sh set writes to stderr and can't be redirected directly, ! 3067: # and sets the high bit in the cache file unless we assign to the vars. ! 3068: (set) 2>&1 | ! 3069: case `(ac_space=' '; set | grep ac_space) 2>&1` in ! 3070: *ac_space=\ *) ! 3071: # `set' does not quote correctly, so add quotes (double-quote substitution ! 3072: # turns \\\\ into \\, and sed turns \\ into \). ! 3073: sed -n \ ! 3074: -e "s/'/'\\\\''/g" \ ! 3075: -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" ! 3076: ;; ! 3077: *) ! 3078: # `set' quotes correctly as required by POSIX, so do not add quotes. ! 3079: sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' ! 3080: ;; ! 3081: esac >> confcache ! 3082: if cmp -s $cache_file confcache; then ! 3083: : ! 3084: else ! 3085: if test -w $cache_file; then ! 3086: echo "updating cache $cache_file" ! 3087: cat confcache > $cache_file ! 3088: else ! 3089: echo "not updating unwritable cache $cache_file" ! 3090: fi ! 3091: fi ! 3092: rm -f confcache ! 3093: ! 3094: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 ! 3095: ! 3096: test "x$prefix" = xNONE && prefix=$ac_default_prefix ! 3097: # Let make expand exec_prefix. ! 3098: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' ! 3099: ! 3100: # Any assignment to VPATH causes Sun make to only execute ! 3101: # the first set of double-colon rules, so remove it if not needed. ! 3102: # If there is a colon in the path, we need to keep it. ! 3103: if test "x$srcdir" = x.; then ! 3104: ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' ! 3105: fi ! 3106: ! 3107: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 ! 3108: ! 3109: DEFS=-DHAVE_CONFIG_H ! 3110: ! 3111: # Without the "./", some shells look in PATH for config.status. ! 3112: : ${CONFIG_STATUS=./config.status} ! 3113: ! 3114: echo creating $CONFIG_STATUS ! 3115: rm -f $CONFIG_STATUS ! 3116: cat > $CONFIG_STATUS <<EOF ! 3117: #! /bin/sh ! 3118: # Generated automatically by configure. ! 3119: # Run this file to recreate the current configuration. ! 3120: # This directory was configured as follows, ! 3121: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: ! 3122: # ! 3123: # $0 $ac_configure_args ! 3124: # ! 3125: # Compiler output produced by configure, useful for debugging ! 3126: # configure, is in ./config.log if it exists. ! 3127: ! 3128: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" ! 3129: for ac_option ! 3130: do ! 3131: case "\$ac_option" in ! 3132: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ! 3133: echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" ! 3134: exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; ! 3135: -version | --version | --versio | --versi | --vers | --ver | --ve | --v) ! 3136: echo "$CONFIG_STATUS generated by autoconf version 2.13" ! 3137: exit 0 ;; ! 3138: -help | --help | --hel | --he | --h) ! 3139: echo "\$ac_cs_usage"; exit 0 ;; ! 3140: *) echo "\$ac_cs_usage"; exit 1 ;; ! 3141: esac ! 3142: done ! 3143: ! 3144: ac_given_srcdir=$srcdir ! 3145: ! 3146: trap 'rm -fr `echo "Makefile sysconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 ! 3147: EOF ! 3148: cat >> $CONFIG_STATUS <<EOF ! 3149: ! 3150: # Protect against being on the right side of a sed subst in config.status. ! 3151: sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; ! 3152: s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF ! 3153: $ac_vpsub ! 3154: $extrasub ! 3155: s%@SHELL@%$SHELL%g ! 3156: s%@CFLAGS@%$CFLAGS%g ! 3157: s%@CPPFLAGS@%$CPPFLAGS%g ! 3158: s%@CXXFLAGS@%$CXXFLAGS%g ! 3159: s%@FFLAGS@%$FFLAGS%g ! 3160: s%@DEFS@%$DEFS%g ! 3161: s%@LDFLAGS@%$LDFLAGS%g ! 3162: s%@LIBS@%$LIBS%g ! 3163: s%@exec_prefix@%$exec_prefix%g ! 3164: s%@prefix@%$prefix%g ! 3165: s%@program_transform_name@%$program_transform_name%g ! 3166: s%@bindir@%$bindir%g ! 3167: s%@sbindir@%$sbindir%g ! 3168: s%@libexecdir@%$libexecdir%g ! 3169: s%@datadir@%$datadir%g ! 3170: s%@sysconfdir@%$sysconfdir%g ! 3171: s%@sharedstatedir@%$sharedstatedir%g ! 3172: s%@localstatedir@%$localstatedir%g ! 3173: s%@libdir@%$libdir%g ! 3174: s%@includedir@%$includedir%g ! 3175: s%@oldincludedir@%$oldincludedir%g ! 3176: s%@infodir@%$infodir%g ! 3177: s%@mandir@%$mandir%g ! 3178: s%@CC@%$CC%g ! 3179: s%@CPP@%$CPP%g ! 3180: s%@SET_MAKE@%$SET_MAKE%g ! 3181: s%@X_CFLAGS@%$X_CFLAGS%g ! 3182: s%@X_PRE_LIBS@%$X_PRE_LIBS%g ! 3183: s%@X_LIBS@%$X_LIBS%g ! 3184: s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g ! 3185: s%@LIBOBJS@%$LIBOBJS%g ! 3186: s%@ac_cv_c_inline@%$ac_cv_c_inline%g ! 3187: s%@WRC@%$WRC%g ! 3188: s%@top_srcdir@%$top_srcdir%g ! 3189: ! 3190: CEOF ! 3191: EOF ! 3192: ! 3193: cat >> $CONFIG_STATUS <<\EOF ! 3194: ! 3195: # Split the substitutions into bite-sized pieces for seds with ! 3196: # small command number limits, like on Digital OSF/1 and HP-UX. ! 3197: ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. ! 3198: ac_file=1 # Number of current file. ! 3199: ac_beg=1 # First line for current file. ! 3200: ac_end=$ac_max_sed_cmds # Line after last line for current file. ! 3201: ac_more_lines=: ! 3202: ac_sed_cmds="" ! 3203: while $ac_more_lines; do ! 3204: if test $ac_beg -gt 1; then ! 3205: sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file ! 3206: else ! 3207: sed "${ac_end}q" conftest.subs > conftest.s$ac_file ! 3208: fi ! 3209: if test ! -s conftest.s$ac_file; then ! 3210: ac_more_lines=false ! 3211: rm -f conftest.s$ac_file ! 3212: else ! 3213: if test -z "$ac_sed_cmds"; then ! 3214: ac_sed_cmds="sed -f conftest.s$ac_file" ! 3215: else ! 3216: ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" ! 3217: fi ! 3218: ac_file=`expr $ac_file + 1` ! 3219: ac_beg=$ac_end ! 3220: ac_end=`expr $ac_end + $ac_max_sed_cmds` ! 3221: fi ! 3222: done ! 3223: if test -z "$ac_sed_cmds"; then ! 3224: ac_sed_cmds=cat ! 3225: fi ! 3226: EOF ! 3227: ! 3228: cat >> $CONFIG_STATUS <<EOF ! 3229: ! 3230: CONFIG_FILES=\${CONFIG_FILES-"Makefile"} ! 3231: EOF ! 3232: cat >> $CONFIG_STATUS <<\EOF ! 3233: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then ! 3234: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". ! 3235: case "$ac_file" in ! 3236: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` ! 3237: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; ! 3238: *) ac_file_in="${ac_file}.in" ;; ! 3239: esac ! 3240: ! 3241: # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. ! 3242: ! 3243: # Remove last slash and all that follows it. Not all systems have dirname. ! 3244: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` ! 3245: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then ! 3246: # The file is in a subdirectory. ! 3247: test ! -d "$ac_dir" && mkdir "$ac_dir" ! 3248: ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" ! 3249: # A "../" for each directory in $ac_dir_suffix. ! 3250: ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` ! 3251: else ! 3252: ac_dir_suffix= ac_dots= ! 3253: fi ! 3254: ! 3255: case "$ac_given_srcdir" in ! 3256: .) srcdir=. ! 3257: if test -z "$ac_dots"; then top_srcdir=. ! 3258: else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; ! 3259: /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; ! 3260: *) # Relative path. ! 3261: srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" ! 3262: top_srcdir="$ac_dots$ac_given_srcdir" ;; ! 3263: esac ! 3264: ! 3265: ! 3266: echo creating "$ac_file" ! 3267: rm -f "$ac_file" ! 3268: configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." ! 3269: case "$ac_file" in ! 3270: *Makefile*) ac_comsub="1i\\ ! 3271: # $configure_input" ;; ! 3272: *) ac_comsub= ;; ! 3273: esac ! 3274: ! 3275: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` ! 3276: sed -e "$ac_comsub ! 3277: s%@configure_input@%$configure_input%g ! 3278: s%@srcdir@%$srcdir%g ! 3279: s%@top_srcdir@%$top_srcdir%g ! 3280: " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file ! 3281: fi; done ! 3282: rm -f conftest.s* ! 3283: ! 3284: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where ! 3285: # NAME is the cpp macro being defined and VALUE is the value it is being given. ! 3286: # ! 3287: # ac_d sets the value in "#define NAME VALUE" lines. ! 3288: ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' ! 3289: ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' ! 3290: ac_dC='\3' ! 3291: ac_dD='%g' ! 3292: # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". ! 3293: ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' ! 3294: ac_uB='\([ ]\)%\1#\2define\3' ! 3295: ac_uC=' ' ! 3296: ac_uD='\4%g' ! 3297: # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". ! 3298: ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' ! 3299: ac_eB='$%\1#\2define\3' ! 3300: ac_eC=' ' ! 3301: ac_eD='%g' ! 3302: ! 3303: if test "${CONFIG_HEADERS+set}" != set; then ! 3304: EOF ! 3305: cat >> $CONFIG_STATUS <<EOF ! 3306: CONFIG_HEADERS="sysconfig.h" ! 3307: EOF ! 3308: cat >> $CONFIG_STATUS <<\EOF ! 3309: fi ! 3310: for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then ! 3311: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". ! 3312: case "$ac_file" in ! 3313: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` ! 3314: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; ! 3315: *) ac_file_in="${ac_file}.in" ;; ! 3316: esac ! 3317: ! 3318: echo creating $ac_file ! 3319: ! 3320: rm -f conftest.frag conftest.in conftest.out ! 3321: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` ! 3322: cat $ac_file_inputs > conftest.in ! 3323: ! 3324: EOF ! 3325: ! 3326: # Transform confdefs.h into a sed script conftest.vals that substitutes ! 3327: # the proper values into config.h.in to produce config.h. And first: ! 3328: # Protect against being on the right side of a sed subst in config.status. ! 3329: # Protect against being in an unquoted here document in config.status. ! 3330: rm -f conftest.vals ! 3331: cat > conftest.hdr <<\EOF ! 3332: s/[\\&%]/\\&/g ! 3333: s%[\\$`]%\\&%g ! 3334: s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp ! 3335: s%ac_d%ac_u%gp ! 3336: s%ac_u%ac_e%gp ! 3337: EOF ! 3338: sed -n -f conftest.hdr confdefs.h > conftest.vals ! 3339: rm -f conftest.hdr ! 3340: ! 3341: # This sed command replaces #undef with comments. This is necessary, for ! 3342: # example, in the case of _POSIX_SOURCE, which is predefined and required ! 3343: # on some systems where configure will not decide to define it. ! 3344: cat >> conftest.vals <<\EOF ! 3345: s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% ! 3346: EOF ! 3347: ! 3348: # Break up conftest.vals because some shells have a limit on ! 3349: # the size of here documents, and old seds have small limits too. ! 3350: ! 3351: rm -f conftest.tail ! 3352: while : ! 3353: do ! 3354: ac_lines=`grep -c . conftest.vals` ! 3355: # grep -c gives empty output for an empty file on some AIX systems. ! 3356: if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi ! 3357: # Write a limited-size here document to conftest.frag. ! 3358: echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS ! 3359: sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS ! 3360: echo 'CEOF ! 3361: sed -f conftest.frag conftest.in > conftest.out ! 3362: rm -f conftest.in ! 3363: mv conftest.out conftest.in ! 3364: ' >> $CONFIG_STATUS ! 3365: sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail ! 3366: rm -f conftest.vals ! 3367: mv conftest.tail conftest.vals ! 3368: done ! 3369: rm -f conftest.vals ! 3370: ! 3371: cat >> $CONFIG_STATUS <<\EOF ! 3372: rm -f conftest.frag conftest.h ! 3373: echo "/* $ac_file. Generated automatically by configure. */" > conftest.h ! 3374: cat conftest.in >> conftest.h ! 3375: rm -f conftest.in ! 3376: if cmp -s $ac_file conftest.h 2>/dev/null; then ! 3377: echo "$ac_file is unchanged" ! 3378: rm -f conftest.h ! 3379: else ! 3380: # Remove last slash and all that follows it. Not all systems have dirname. ! 3381: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` ! 3382: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then ! 3383: # The file is in a subdirectory. ! 3384: test ! -d "$ac_dir" && mkdir "$ac_dir" ! 3385: fi ! 3386: rm -f $ac_file ! 3387: mv conftest.h $ac_file ! 3388: fi ! 3389: fi; done ! 3390: ! 3391: EOF ! 3392: cat >> $CONFIG_STATUS <<EOF ! 3393: ! 3394: EOF ! 3395: cat >> $CONFIG_STATUS <<\EOF ! 3396: ! 3397: exit 0 ! 3398: EOF ! 3399: chmod +x $CONFIG_STATUS ! 3400: rm -fr confdefs* $ac_clean_files ! 3401: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 ! 3402:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.