Annotation of OpenXM/src/ox_toolkit/configure, Revision 1.1
1.1 ! ohara 1: #! /bin/sh
! 2:
! 3: # $OpenXM$
! 4: # Guess values for system-dependent variables and create Makefiles.
! 5: # Generated automatically using autoconf version 2.13
! 6: # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
! 7: #
! 8: # This configure script is free software; the Free Software Foundation
! 9: # gives unlimited permission to copy, distribute and modify it.
! 10:
! 11: # Defaults:
! 12: ac_help=
! 13: ac_default_prefix=/usr/local
! 14: # Any additions from configure.in:
! 15: ac_help="$ac_help
! 16: --with-x use the X Window System"
! 17:
! 18: # Initialize some variables set by options.
! 19: # The variables have the same names as the options, with
! 20: # dashes changed to underlines.
! 21: build=NONE
! 22: cache_file=./config.cache
! 23: exec_prefix=NONE
! 24: host=NONE
! 25: no_create=
! 26: nonopt=NONE
! 27: no_recursion=
! 28: prefix=NONE
! 29: program_prefix=NONE
! 30: program_suffix=NONE
! 31: program_transform_name=s,x,x,
! 32: silent=
! 33: site=
! 34: srcdir=
! 35: target=NONE
! 36: verbose=
! 37: x_includes=NONE
! 38: x_libraries=NONE
! 39: bindir='${exec_prefix}/bin'
! 40: sbindir='${exec_prefix}/sbin'
! 41: libexecdir='${exec_prefix}/libexec'
! 42: datadir='${prefix}/share'
! 43: sysconfdir='${prefix}/etc'
! 44: sharedstatedir='${prefix}/com'
! 45: localstatedir='${prefix}/var'
! 46: libdir='${exec_prefix}/lib'
! 47: includedir='${prefix}/include'
! 48: oldincludedir='/usr/include'
! 49: infodir='${prefix}/info'
! 50: mandir='${prefix}/man'
! 51:
! 52: # Initialize some other variables.
! 53: subdirs=
! 54: MFLAGS= MAKEFLAGS=
! 55: SHELL=${CONFIG_SHELL-/bin/sh}
! 56: # Maximum number of lines to put in a shell here document.
! 57: ac_max_here_lines=12
! 58:
! 59: ac_prev=
! 60: for ac_option
! 61: do
! 62:
! 63: # If the previous option needs an argument, assign it.
! 64: if test -n "$ac_prev"; then
! 65: eval "$ac_prev=\$ac_option"
! 66: ac_prev=
! 67: continue
! 68: fi
! 69:
! 70: case "$ac_option" in
! 71: -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
! 72: *) ac_optarg= ;;
! 73: esac
! 74:
! 75: # Accept the important Cygnus configure options, so we can diagnose typos.
! 76:
! 77: case "$ac_option" in
! 78:
! 79: -bindir | --bindir | --bindi | --bind | --bin | --bi)
! 80: ac_prev=bindir ;;
! 81: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
! 82: bindir="$ac_optarg" ;;
! 83:
! 84: -build | --build | --buil | --bui | --bu)
! 85: ac_prev=build ;;
! 86: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
! 87: build="$ac_optarg" ;;
! 88:
! 89: -cache-file | --cache-file | --cache-fil | --cache-fi \
! 90: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
! 91: ac_prev=cache_file ;;
! 92: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
! 93: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
! 94: cache_file="$ac_optarg" ;;
! 95:
! 96: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
! 97: ac_prev=datadir ;;
! 98: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
! 99: | --da=*)
! 100: datadir="$ac_optarg" ;;
! 101:
! 102: -disable-* | --disable-*)
! 103: ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
! 104: # Reject names that are not valid shell variable names.
! 105: if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
! 106: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
! 107: fi
! 108: ac_feature=`echo $ac_feature| sed 's/-/_/g'`
! 109: eval "enable_${ac_feature}=no" ;;
! 110:
! 111: -enable-* | --enable-*)
! 112: ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
! 113: # Reject names that are not valid shell variable names.
! 114: if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
! 115: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
! 116: fi
! 117: ac_feature=`echo $ac_feature| sed 's/-/_/g'`
! 118: case "$ac_option" in
! 119: *=*) ;;
! 120: *) ac_optarg=yes ;;
! 121: esac
! 122: eval "enable_${ac_feature}='$ac_optarg'" ;;
! 123:
! 124: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
! 125: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
! 126: | --exec | --exe | --ex)
! 127: ac_prev=exec_prefix ;;
! 128: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
! 129: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
! 130: | --exec=* | --exe=* | --ex=*)
! 131: exec_prefix="$ac_optarg" ;;
! 132:
! 133: -gas | --gas | --ga | --g)
! 134: # Obsolete; use --with-gas.
! 135: with_gas=yes ;;
! 136:
! 137: -help | --help | --hel | --he)
! 138: # Omit some internal or obsolete options to make the list less imposing.
! 139: # This message is too long to be a string in the A/UX 3.1 sh.
! 140: cat << EOF
! 141: Usage: configure [options] [host]
! 142: Options: [defaults in brackets after descriptions]
! 143: Configuration:
! 144: --cache-file=FILE cache test results in FILE
! 145: --help print this message
! 146: --no-create do not create output files
! 147: --quiet, --silent do not print \`checking...' messages
! 148: --version print the version of autoconf that created configure
! 149: Directory and file names:
! 150: --prefix=PREFIX install architecture-independent files in PREFIX
! 151: [$ac_default_prefix]
! 152: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
! 153: [same as prefix]
! 154: --bindir=DIR user executables in DIR [EPREFIX/bin]
! 155: --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
! 156: --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
! 157: --datadir=DIR read-only architecture-independent data in DIR
! 158: [PREFIX/share]
! 159: --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
! 160: --sharedstatedir=DIR modifiable architecture-independent data in DIR
! 161: [PREFIX/com]
! 162: --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
! 163: --libdir=DIR object code libraries in DIR [EPREFIX/lib]
! 164: --includedir=DIR C header files in DIR [PREFIX/include]
! 165: --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
! 166: --infodir=DIR info documentation in DIR [PREFIX/info]
! 167: --mandir=DIR man documentation in DIR [PREFIX/man]
! 168: --srcdir=DIR find the sources in DIR [configure dir or ..]
! 169: --program-prefix=PREFIX prepend PREFIX to installed program names
! 170: --program-suffix=SUFFIX append SUFFIX to installed program names
! 171: --program-transform-name=PROGRAM
! 172: run sed PROGRAM on installed program names
! 173: EOF
! 174: cat << EOF
! 175: Host type:
! 176: --build=BUILD configure for building on BUILD [BUILD=HOST]
! 177: --host=HOST configure for HOST [guessed]
! 178: --target=TARGET configure for TARGET [TARGET=HOST]
! 179: Features and packages:
! 180: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
! 181: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
! 182: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
! 183: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
! 184: --x-includes=DIR X include files are in DIR
! 185: --x-libraries=DIR X library files are in DIR
! 186: EOF
! 187: if test -n "$ac_help"; then
! 188: echo "--enable and --with options recognized:$ac_help"
! 189: fi
! 190: exit 0 ;;
! 191:
! 192: -host | --host | --hos | --ho)
! 193: ac_prev=host ;;
! 194: -host=* | --host=* | --hos=* | --ho=*)
! 195: host="$ac_optarg" ;;
! 196:
! 197: -includedir | --includedir | --includedi | --included | --include \
! 198: | --includ | --inclu | --incl | --inc)
! 199: ac_prev=includedir ;;
! 200: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
! 201: | --includ=* | --inclu=* | --incl=* | --inc=*)
! 202: includedir="$ac_optarg" ;;
! 203:
! 204: -infodir | --infodir | --infodi | --infod | --info | --inf)
! 205: ac_prev=infodir ;;
! 206: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
! 207: infodir="$ac_optarg" ;;
! 208:
! 209: -libdir | --libdir | --libdi | --libd)
! 210: ac_prev=libdir ;;
! 211: -libdir=* | --libdir=* | --libdi=* | --libd=*)
! 212: libdir="$ac_optarg" ;;
! 213:
! 214: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
! 215: | --libexe | --libex | --libe)
! 216: ac_prev=libexecdir ;;
! 217: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
! 218: | --libexe=* | --libex=* | --libe=*)
! 219: libexecdir="$ac_optarg" ;;
! 220:
! 221: -localstatedir | --localstatedir | --localstatedi | --localstated \
! 222: | --localstate | --localstat | --localsta | --localst \
! 223: | --locals | --local | --loca | --loc | --lo)
! 224: ac_prev=localstatedir ;;
! 225: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
! 226: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
! 227: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
! 228: localstatedir="$ac_optarg" ;;
! 229:
! 230: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
! 231: ac_prev=mandir ;;
! 232: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
! 233: mandir="$ac_optarg" ;;
! 234:
! 235: -nfp | --nfp | --nf)
! 236: # Obsolete; use --without-fp.
! 237: with_fp=no ;;
! 238:
! 239: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
! 240: | --no-cr | --no-c)
! 241: no_create=yes ;;
! 242:
! 243: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
! 244: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
! 245: no_recursion=yes ;;
! 246:
! 247: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
! 248: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
! 249: | --oldin | --oldi | --old | --ol | --o)
! 250: ac_prev=oldincludedir ;;
! 251: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
! 252: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
! 253: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
! 254: oldincludedir="$ac_optarg" ;;
! 255:
! 256: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
! 257: ac_prev=prefix ;;
! 258: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
! 259: prefix="$ac_optarg" ;;
! 260:
! 261: -program-prefix | --program-prefix | --program-prefi | --program-pref \
! 262: | --program-pre | --program-pr | --program-p)
! 263: ac_prev=program_prefix ;;
! 264: -program-prefix=* | --program-prefix=* | --program-prefi=* \
! 265: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
! 266: program_prefix="$ac_optarg" ;;
! 267:
! 268: -program-suffix | --program-suffix | --program-suffi | --program-suff \
! 269: | --program-suf | --program-su | --program-s)
! 270: ac_prev=program_suffix ;;
! 271: -program-suffix=* | --program-suffix=* | --program-suffi=* \
! 272: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
! 273: program_suffix="$ac_optarg" ;;
! 274:
! 275: -program-transform-name | --program-transform-name \
! 276: | --program-transform-nam | --program-transform-na \
! 277: | --program-transform-n | --program-transform- \
! 278: | --program-transform | --program-transfor \
! 279: | --program-transfo | --program-transf \
! 280: | --program-trans | --program-tran \
! 281: | --progr-tra | --program-tr | --program-t)
! 282: ac_prev=program_transform_name ;;
! 283: -program-transform-name=* | --program-transform-name=* \
! 284: | --program-transform-nam=* | --program-transform-na=* \
! 285: | --program-transform-n=* | --program-transform-=* \
! 286: | --program-transform=* | --program-transfor=* \
! 287: | --program-transfo=* | --program-transf=* \
! 288: | --program-trans=* | --program-tran=* \
! 289: | --progr-tra=* | --program-tr=* | --program-t=*)
! 290: program_transform_name="$ac_optarg" ;;
! 291:
! 292: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
! 293: | -silent | --silent | --silen | --sile | --sil)
! 294: silent=yes ;;
! 295:
! 296: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
! 297: ac_prev=sbindir ;;
! 298: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
! 299: | --sbi=* | --sb=*)
! 300: sbindir="$ac_optarg" ;;
! 301:
! 302: -sharedstatedir | --sharedstatedir | --sharedstatedi \
! 303: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
! 304: | --sharedst | --shareds | --shared | --share | --shar \
! 305: | --sha | --sh)
! 306: ac_prev=sharedstatedir ;;
! 307: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
! 308: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
! 309: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
! 310: | --sha=* | --sh=*)
! 311: sharedstatedir="$ac_optarg" ;;
! 312:
! 313: -site | --site | --sit)
! 314: ac_prev=site ;;
! 315: -site=* | --site=* | --sit=*)
! 316: site="$ac_optarg" ;;
! 317:
! 318: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
! 319: ac_prev=srcdir ;;
! 320: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
! 321: srcdir="$ac_optarg" ;;
! 322:
! 323: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
! 324: | --syscon | --sysco | --sysc | --sys | --sy)
! 325: ac_prev=sysconfdir ;;
! 326: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
! 327: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
! 328: sysconfdir="$ac_optarg" ;;
! 329:
! 330: -target | --target | --targe | --targ | --tar | --ta | --t)
! 331: ac_prev=target ;;
! 332: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
! 333: target="$ac_optarg" ;;
! 334:
! 335: -v | -verbose | --verbose | --verbos | --verbo | --verb)
! 336: verbose=yes ;;
! 337:
! 338: -version | --version | --versio | --versi | --vers)
! 339: echo "configure generated by autoconf version 2.13"
! 340: exit 0 ;;
! 341:
! 342: -with-* | --with-*)
! 343: ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
! 344: # Reject names that are not valid shell variable names.
! 345: if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
! 346: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
! 347: fi
! 348: ac_package=`echo $ac_package| sed 's/-/_/g'`
! 349: case "$ac_option" in
! 350: *=*) ;;
! 351: *) ac_optarg=yes ;;
! 352: esac
! 353: eval "with_${ac_package}='$ac_optarg'" ;;
! 354:
! 355: -without-* | --without-*)
! 356: ac_package=`echo $ac_option|sed -e 's/-*without-//'`
! 357: # Reject names that are not valid shell variable names.
! 358: if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
! 359: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
! 360: fi
! 361: ac_package=`echo $ac_package| sed 's/-/_/g'`
! 362: eval "with_${ac_package}=no" ;;
! 363:
! 364: --x)
! 365: # Obsolete; use --with-x.
! 366: with_x=yes ;;
! 367:
! 368: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
! 369: | --x-incl | --x-inc | --x-in | --x-i)
! 370: ac_prev=x_includes ;;
! 371: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
! 372: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
! 373: x_includes="$ac_optarg" ;;
! 374:
! 375: -x-libraries | --x-libraries | --x-librarie | --x-librari \
! 376: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
! 377: ac_prev=x_libraries ;;
! 378: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
! 379: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
! 380: x_libraries="$ac_optarg" ;;
! 381:
! 382: -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
! 383: ;;
! 384:
! 385: *)
! 386: if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
! 387: echo "configure: warning: $ac_option: invalid host type" 1>&2
! 388: fi
! 389: if test "x$nonopt" != xNONE; then
! 390: { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
! 391: fi
! 392: nonopt="$ac_option"
! 393: ;;
! 394:
! 395: esac
! 396: done
! 397:
! 398: if test -n "$ac_prev"; then
! 399: { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
! 400: fi
! 401:
! 402: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
! 403:
! 404: # File descriptor usage:
! 405: # 0 standard input
! 406: # 1 file creation
! 407: # 2 errors and warnings
! 408: # 3 some systems may open it to /dev/tty
! 409: # 4 used on the Kubota Titan
! 410: # 6 checking for... messages and results
! 411: # 5 compiler messages saved in config.log
! 412: if test "$silent" = yes; then
! 413: exec 6>/dev/null
! 414: else
! 415: exec 6>&1
! 416: fi
! 417: exec 5>./config.log
! 418:
! 419: echo "\
! 420: This file contains any messages produced by compilers while
! 421: running configure, to aid debugging if configure makes a mistake.
! 422: " 1>&5
! 423:
! 424: # Strip out --no-create and --no-recursion so they do not pile up.
! 425: # Also quote any args containing shell metacharacters.
! 426: ac_configure_args=
! 427: for ac_arg
! 428: do
! 429: case "$ac_arg" in
! 430: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
! 431: | --no-cr | --no-c) ;;
! 432: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
! 433: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
! 434: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
! 435: ac_configure_args="$ac_configure_args '$ac_arg'" ;;
! 436: *) ac_configure_args="$ac_configure_args $ac_arg" ;;
! 437: esac
! 438: done
! 439:
! 440: # NLS nuisances.
! 441: # Only set these to C if already set. These must not be set unconditionally
! 442: # because not all systems understand e.g. LANG=C (notably SCO).
! 443: # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
! 444: # Non-C LC_CTYPE values break the ctype check.
! 445: if test "${LANG+set}" = set; then LANG=C; export LANG; fi
! 446: if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
! 447: if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
! 448: if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
! 449:
! 450: # confdefs.h avoids OS command line length limits that DEFS can exceed.
! 451: rm -rf conftest* confdefs.h
! 452: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
! 453: echo > confdefs.h
! 454:
! 455: # A filename unique to this package, relative to the directory that
! 456: # configure is in, which we can look for to find out if srcdir is correct.
! 457: ac_unique_file=mysocket.c
! 458:
! 459: # Find the source files, if location was not specified.
! 460: if test -z "$srcdir"; then
! 461: ac_srcdir_defaulted=yes
! 462: # Try the directory containing this script, then its parent.
! 463: ac_prog=$0
! 464: ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
! 465: test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
! 466: srcdir=$ac_confdir
! 467: if test ! -r $srcdir/$ac_unique_file; then
! 468: srcdir=..
! 469: fi
! 470: else
! 471: ac_srcdir_defaulted=no
! 472: fi
! 473: if test ! -r $srcdir/$ac_unique_file; then
! 474: if test "$ac_srcdir_defaulted" = yes; then
! 475: { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
! 476: else
! 477: { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
! 478: fi
! 479: fi
! 480: srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
! 481:
! 482: # Prefer explicitly selected file to automatically selected ones.
! 483: if test -z "$CONFIG_SITE"; then
! 484: if test "x$prefix" != xNONE; then
! 485: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
! 486: else
! 487: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
! 488: fi
! 489: fi
! 490: for ac_site_file in $CONFIG_SITE; do
! 491: if test -r "$ac_site_file"; then
! 492: echo "loading site script $ac_site_file"
! 493: . "$ac_site_file"
! 494: fi
! 495: done
! 496:
! 497: if test -r "$cache_file"; then
! 498: echo "loading cache $cache_file"
! 499: . $cache_file
! 500: else
! 501: echo "creating cache $cache_file"
! 502: > $cache_file
! 503: fi
! 504:
! 505: ac_ext=c
! 506: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
! 507: ac_cpp='$CPP $CPPFLAGS'
! 508: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
! 509: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
! 510: cross_compiling=$ac_cv_prog_cc_cross
! 511:
! 512: ac_exeext=
! 513: ac_objext=o
! 514: if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
! 515: # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
! 516: if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
! 517: ac_n= ac_c='
! 518: ' ac_t=' '
! 519: else
! 520: ac_n=-n ac_c= ac_t=
! 521: fi
! 522: else
! 523: ac_n= ac_c='\c' ac_t=
! 524: fi
! 525:
! 526:
! 527: # Extract the first word of "gcc", so it can be a program name with args.
! 528: set dummy gcc; ac_word=$2
! 529: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! 530: echo "configure:530: checking for $ac_word" >&5
! 531: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
! 532: echo $ac_n "(cached) $ac_c" 1>&6
! 533: else
! 534: if test -n "$CC"; then
! 535: ac_cv_prog_CC="$CC" # Let the user override the test.
! 536: else
! 537: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
! 538: ac_dummy="$PATH"
! 539: for ac_dir in $ac_dummy; do
! 540: test -z "$ac_dir" && ac_dir=.
! 541: if test -f $ac_dir/$ac_word; then
! 542: ac_cv_prog_CC="gcc"
! 543: break
! 544: fi
! 545: done
! 546: IFS="$ac_save_ifs"
! 547: fi
! 548: fi
! 549: CC="$ac_cv_prog_CC"
! 550: if test -n "$CC"; then
! 551: echo "$ac_t""$CC" 1>&6
! 552: else
! 553: echo "$ac_t""no" 1>&6
! 554: fi
! 555:
! 556: if test -z "$CC"; then
! 557: # Extract the first word of "cc", so it can be a program name with args.
! 558: set dummy cc; ac_word=$2
! 559: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! 560: echo "configure:560: checking for $ac_word" >&5
! 561: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
! 562: echo $ac_n "(cached) $ac_c" 1>&6
! 563: else
! 564: if test -n "$CC"; then
! 565: ac_cv_prog_CC="$CC" # Let the user override the test.
! 566: else
! 567: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
! 568: ac_prog_rejected=no
! 569: ac_dummy="$PATH"
! 570: for ac_dir in $ac_dummy; do
! 571: test -z "$ac_dir" && ac_dir=.
! 572: if test -f $ac_dir/$ac_word; then
! 573: if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
! 574: ac_prog_rejected=yes
! 575: continue
! 576: fi
! 577: ac_cv_prog_CC="cc"
! 578: break
! 579: fi
! 580: done
! 581: IFS="$ac_save_ifs"
! 582: if test $ac_prog_rejected = yes; then
! 583: # We found a bogon in the path, so make sure we never use it.
! 584: set dummy $ac_cv_prog_CC
! 585: shift
! 586: if test $# -gt 0; then
! 587: # We chose a different compiler from the bogus one.
! 588: # However, it has the same basename, so the bogon will be chosen
! 589: # first if we set CC to just the basename; use the full file name.
! 590: shift
! 591: set dummy "$ac_dir/$ac_word" "$@"
! 592: shift
! 593: ac_cv_prog_CC="$@"
! 594: fi
! 595: fi
! 596: fi
! 597: fi
! 598: CC="$ac_cv_prog_CC"
! 599: if test -n "$CC"; then
! 600: echo "$ac_t""$CC" 1>&6
! 601: else
! 602: echo "$ac_t""no" 1>&6
! 603: fi
! 604:
! 605: if test -z "$CC"; then
! 606: case "`uname -s`" in
! 607: *win32* | *WIN32*)
! 608: # Extract the first word of "cl", so it can be a program name with args.
! 609: set dummy cl; ac_word=$2
! 610: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! 611: echo "configure:611: checking for $ac_word" >&5
! 612: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
! 613: echo $ac_n "(cached) $ac_c" 1>&6
! 614: else
! 615: if test -n "$CC"; then
! 616: ac_cv_prog_CC="$CC" # Let the user override the test.
! 617: else
! 618: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
! 619: ac_dummy="$PATH"
! 620: for ac_dir in $ac_dummy; do
! 621: test -z "$ac_dir" && ac_dir=.
! 622: if test -f $ac_dir/$ac_word; then
! 623: ac_cv_prog_CC="cl"
! 624: break
! 625: fi
! 626: done
! 627: IFS="$ac_save_ifs"
! 628: fi
! 629: fi
! 630: CC="$ac_cv_prog_CC"
! 631: if test -n "$CC"; then
! 632: echo "$ac_t""$CC" 1>&6
! 633: else
! 634: echo "$ac_t""no" 1>&6
! 635: fi
! 636: ;;
! 637: esac
! 638: fi
! 639: test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
! 640: fi
! 641:
! 642: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
! 643: echo "configure:643: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
! 644:
! 645: ac_ext=c
! 646: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
! 647: ac_cpp='$CPP $CPPFLAGS'
! 648: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
! 649: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
! 650: cross_compiling=$ac_cv_prog_cc_cross
! 651:
! 652: cat > conftest.$ac_ext << EOF
! 653:
! 654: #line 654 "configure"
! 655: #include "confdefs.h"
! 656:
! 657: main(){return(0);}
! 658: EOF
! 659: if { (eval echo configure:659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
! 660: ac_cv_prog_cc_works=yes
! 661: # If we can't run a trivial program, we are probably using a cross compiler.
! 662: if (./conftest; exit) 2>/dev/null; then
! 663: ac_cv_prog_cc_cross=no
! 664: else
! 665: ac_cv_prog_cc_cross=yes
! 666: fi
! 667: else
! 668: echo "configure: failed program was:" >&5
! 669: cat conftest.$ac_ext >&5
! 670: ac_cv_prog_cc_works=no
! 671: fi
! 672: rm -fr conftest*
! 673: ac_ext=c
! 674: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
! 675: ac_cpp='$CPP $CPPFLAGS'
! 676: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
! 677: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
! 678: cross_compiling=$ac_cv_prog_cc_cross
! 679:
! 680: echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
! 681: if test $ac_cv_prog_cc_works = no; then
! 682: { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
! 683: fi
! 684: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
! 685: echo "configure:685: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
! 686: echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
! 687: cross_compiling=$ac_cv_prog_cc_cross
! 688:
! 689: echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
! 690: echo "configure:690: checking whether we are using GNU C" >&5
! 691: if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
! 692: echo $ac_n "(cached) $ac_c" 1>&6
! 693: else
! 694: cat > conftest.c <<EOF
! 695: #ifdef __GNUC__
! 696: yes;
! 697: #endif
! 698: EOF
! 699: if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
! 700: ac_cv_prog_gcc=yes
! 701: else
! 702: ac_cv_prog_gcc=no
! 703: fi
! 704: fi
! 705:
! 706: echo "$ac_t""$ac_cv_prog_gcc" 1>&6
! 707:
! 708: if test $ac_cv_prog_gcc = yes; then
! 709: GCC=yes
! 710: else
! 711: GCC=
! 712: fi
! 713:
! 714: ac_test_CFLAGS="${CFLAGS+set}"
! 715: ac_save_CFLAGS="$CFLAGS"
! 716: CFLAGS=
! 717: echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
! 718: echo "configure:718: checking whether ${CC-cc} accepts -g" >&5
! 719: if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
! 720: echo $ac_n "(cached) $ac_c" 1>&6
! 721: else
! 722: echo 'void f(){}' > conftest.c
! 723: if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
! 724: ac_cv_prog_cc_g=yes
! 725: else
! 726: ac_cv_prog_cc_g=no
! 727: fi
! 728: rm -f conftest*
! 729:
! 730: fi
! 731:
! 732: echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
! 733: if test "$ac_test_CFLAGS" = set; then
! 734: CFLAGS="$ac_save_CFLAGS"
! 735: elif test $ac_cv_prog_cc_g = yes; then
! 736: if test "$GCC" = yes; then
! 737: CFLAGS="-g -O2"
! 738: else
! 739: CFLAGS="-g"
! 740: fi
! 741: else
! 742: if test "$GCC" = yes; then
! 743: CFLAGS="-O2"
! 744: else
! 745: CFLAGS=
! 746: fi
! 747: fi
! 748:
! 749: # Extract the first word of "ranlib", so it can be a program name with args.
! 750: set dummy ranlib; ac_word=$2
! 751: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! 752: echo "configure:752: checking for $ac_word" >&5
! 753: if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
! 754: echo $ac_n "(cached) $ac_c" 1>&6
! 755: else
! 756: if test -n "$RANLIB"; then
! 757: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
! 758: else
! 759: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
! 760: ac_dummy="$PATH"
! 761: for ac_dir in $ac_dummy; do
! 762: test -z "$ac_dir" && ac_dir=.
! 763: if test -f $ac_dir/$ac_word; then
! 764: ac_cv_prog_RANLIB="ranlib"
! 765: break
! 766: fi
! 767: done
! 768: IFS="$ac_save_ifs"
! 769: test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
! 770: fi
! 771: fi
! 772: RANLIB="$ac_cv_prog_RANLIB"
! 773: if test -n "$RANLIB"; then
! 774: echo "$ac_t""$RANLIB" 1>&6
! 775: else
! 776: echo "$ac_t""no" 1>&6
! 777: fi
! 778:
! 779: echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
! 780: echo "configure:780: checking how to run the C preprocessor" >&5
! 781: # On Suns, sometimes $CPP names a directory.
! 782: if test -n "$CPP" && test -d "$CPP"; then
! 783: CPP=
! 784: fi
! 785: if test -z "$CPP"; then
! 786: if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
! 787: echo $ac_n "(cached) $ac_c" 1>&6
! 788: else
! 789: # This must be in double quotes, not single quotes, because CPP may get
! 790: # substituted into the Makefile and "${CC-cc}" will confuse make.
! 791: CPP="${CC-cc} -E"
! 792: # On the NeXT, cc -E runs the code through the compiler's parser,
! 793: # not just through cpp.
! 794: cat > conftest.$ac_ext <<EOF
! 795: #line 795 "configure"
! 796: #include "confdefs.h"
! 797: #include <assert.h>
! 798: Syntax Error
! 799: EOF
! 800: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! 801: { (eval echo configure:801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! 802: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
! 803: if test -z "$ac_err"; then
! 804: :
! 805: else
! 806: echo "$ac_err" >&5
! 807: echo "configure: failed program was:" >&5
! 808: cat conftest.$ac_ext >&5
! 809: rm -rf conftest*
! 810: CPP="${CC-cc} -E -traditional-cpp"
! 811: cat > conftest.$ac_ext <<EOF
! 812: #line 812 "configure"
! 813: #include "confdefs.h"
! 814: #include <assert.h>
! 815: Syntax Error
! 816: EOF
! 817: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! 818: { (eval echo configure:818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! 819: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
! 820: if test -z "$ac_err"; then
! 821: :
! 822: else
! 823: echo "$ac_err" >&5
! 824: echo "configure: failed program was:" >&5
! 825: cat conftest.$ac_ext >&5
! 826: rm -rf conftest*
! 827: CPP="${CC-cc} -nologo -E"
! 828: cat > conftest.$ac_ext <<EOF
! 829: #line 829 "configure"
! 830: #include "confdefs.h"
! 831: #include <assert.h>
! 832: Syntax Error
! 833: EOF
! 834: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! 835: { (eval echo configure:835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! 836: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
! 837: if test -z "$ac_err"; then
! 838: :
! 839: else
! 840: echo "$ac_err" >&5
! 841: echo "configure: failed program was:" >&5
! 842: cat conftest.$ac_ext >&5
! 843: rm -rf conftest*
! 844: CPP=/lib/cpp
! 845: fi
! 846: rm -f conftest*
! 847: fi
! 848: rm -f conftest*
! 849: fi
! 850: rm -f conftest*
! 851: ac_cv_prog_CPP="$CPP"
! 852: fi
! 853: CPP="$ac_cv_prog_CPP"
! 854: else
! 855: ac_cv_prog_CPP="$CPP"
! 856: fi
! 857: echo "$ac_t""$CPP" 1>&6
! 858:
! 859: # If we find X, set shell vars x_includes and x_libraries to the
! 860: # paths, otherwise set no_x=yes.
! 861: # Uses ac_ vars as temps to allow command line to override cache and checks.
! 862: # --without-x overrides everything else, but does not touch the cache.
! 863: echo $ac_n "checking for X""... $ac_c" 1>&6
! 864: echo "configure:864: checking for X" >&5
! 865:
! 866: # Check whether --with-x or --without-x was given.
! 867: if test "${with_x+set}" = set; then
! 868: withval="$with_x"
! 869: :
! 870: fi
! 871:
! 872: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
! 873: if test "x$with_x" = xno; then
! 874: # The user explicitly disabled X.
! 875: have_x=disabled
! 876: else
! 877: if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
! 878: # Both variables are already set.
! 879: have_x=yes
! 880: else
! 881: if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
! 882: echo $ac_n "(cached) $ac_c" 1>&6
! 883: else
! 884: # One or both of the vars are not set, and there is no cached value.
! 885: ac_x_includes=NO ac_x_libraries=NO
! 886: rm -fr conftestdir
! 887: if mkdir conftestdir; then
! 888: cd conftestdir
! 889: # Make sure to not put "make" in the Imakefile rules, since we grep it out.
! 890: cat > Imakefile <<'EOF'
! 891: acfindx:
! 892: @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
! 893: EOF
! 894: if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
! 895: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
! 896: eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
! 897: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
! 898: for ac_extension in a so sl; do
! 899: if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
! 900: test -f $ac_im_libdir/libX11.$ac_extension; then
! 901: ac_im_usrlibdir=$ac_im_libdir; break
! 902: fi
! 903: done
! 904: # Screen out bogus values from the imake configuration. They are
! 905: # bogus both because they are the default anyway, and because
! 906: # using them would break gcc on systems where it needs fixed includes.
! 907: case "$ac_im_incroot" in
! 908: /usr/include) ;;
! 909: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
! 910: esac
! 911: case "$ac_im_usrlibdir" in
! 912: /usr/lib | /lib) ;;
! 913: *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
! 914: esac
! 915: fi
! 916: cd ..
! 917: rm -fr conftestdir
! 918: fi
! 919:
! 920: if test "$ac_x_includes" = NO; then
! 921: # Guess where to find include files, by looking for this one X11 .h file.
! 922: test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
! 923:
! 924: # First, try using that file with no special directory specified.
! 925: cat > conftest.$ac_ext <<EOF
! 926: #line 926 "configure"
! 927: #include "confdefs.h"
! 928: #include <$x_direct_test_include>
! 929: EOF
! 930: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! 931: { (eval echo configure:931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! 932: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
! 933: if test -z "$ac_err"; then
! 934: rm -rf conftest*
! 935: # We can compile using X headers with no special include directory.
! 936: ac_x_includes=
! 937: else
! 938: echo "$ac_err" >&5
! 939: echo "configure: failed program was:" >&5
! 940: cat conftest.$ac_ext >&5
! 941: rm -rf conftest*
! 942: # Look for the header file in a standard set of common directories.
! 943: # Check X11 before X11Rn because it is often a symlink to the current release.
! 944: for ac_dir in \
! 945: /usr/X11/include \
! 946: /usr/X11R6/include \
! 947: /usr/X11R5/include \
! 948: /usr/X11R4/include \
! 949: \
! 950: /usr/include/X11 \
! 951: /usr/include/X11R6 \
! 952: /usr/include/X11R5 \
! 953: /usr/include/X11R4 \
! 954: \
! 955: /usr/local/X11/include \
! 956: /usr/local/X11R6/include \
! 957: /usr/local/X11R5/include \
! 958: /usr/local/X11R4/include \
! 959: \
! 960: /usr/local/include/X11 \
! 961: /usr/local/include/X11R6 \
! 962: /usr/local/include/X11R5 \
! 963: /usr/local/include/X11R4 \
! 964: \
! 965: /usr/X386/include \
! 966: /usr/x386/include \
! 967: /usr/XFree86/include/X11 \
! 968: \
! 969: /usr/include \
! 970: /usr/local/include \
! 971: /usr/unsupported/include \
! 972: /usr/athena/include \
! 973: /usr/local/x11r5/include \
! 974: /usr/lpp/Xamples/include \
! 975: \
! 976: /usr/openwin/include \
! 977: /usr/openwin/share/include \
! 978: ; \
! 979: do
! 980: if test -r "$ac_dir/$x_direct_test_include"; then
! 981: ac_x_includes=$ac_dir
! 982: break
! 983: fi
! 984: done
! 985: fi
! 986: rm -f conftest*
! 987: fi # $ac_x_includes = NO
! 988:
! 989: if test "$ac_x_libraries" = NO; then
! 990: # Check for the libraries.
! 991:
! 992: test -z "$x_direct_test_library" && x_direct_test_library=Xt
! 993: test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
! 994:
! 995: # See if we find them without any special options.
! 996: # Don't add to $LIBS permanently.
! 997: ac_save_LIBS="$LIBS"
! 998: LIBS="-l$x_direct_test_library $LIBS"
! 999: cat > conftest.$ac_ext <<EOF
! 1000: #line 1000 "configure"
! 1001: #include "confdefs.h"
! 1002:
! 1003: int main() {
! 1004: ${x_direct_test_function}()
! 1005: ; return 0; }
! 1006: EOF
! 1007: if { (eval echo configure:1007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
! 1008: rm -rf conftest*
! 1009: LIBS="$ac_save_LIBS"
! 1010: # We can link X programs with no special library path.
! 1011: ac_x_libraries=
! 1012: else
! 1013: echo "configure: failed program was:" >&5
! 1014: cat conftest.$ac_ext >&5
! 1015: rm -rf conftest*
! 1016: LIBS="$ac_save_LIBS"
! 1017: # First see if replacing the include by lib works.
! 1018: # Check X11 before X11Rn because it is often a symlink to the current release.
! 1019: for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
! 1020: /usr/X11/lib \
! 1021: /usr/X11R6/lib \
! 1022: /usr/X11R5/lib \
! 1023: /usr/X11R4/lib \
! 1024: \
! 1025: /usr/lib/X11 \
! 1026: /usr/lib/X11R6 \
! 1027: /usr/lib/X11R5 \
! 1028: /usr/lib/X11R4 \
! 1029: \
! 1030: /usr/local/X11/lib \
! 1031: /usr/local/X11R6/lib \
! 1032: /usr/local/X11R5/lib \
! 1033: /usr/local/X11R4/lib \
! 1034: \
! 1035: /usr/local/lib/X11 \
! 1036: /usr/local/lib/X11R6 \
! 1037: /usr/local/lib/X11R5 \
! 1038: /usr/local/lib/X11R4 \
! 1039: \
! 1040: /usr/X386/lib \
! 1041: /usr/x386/lib \
! 1042: /usr/XFree86/lib/X11 \
! 1043: \
! 1044: /usr/lib \
! 1045: /usr/local/lib \
! 1046: /usr/unsupported/lib \
! 1047: /usr/athena/lib \
! 1048: /usr/local/x11r5/lib \
! 1049: /usr/lpp/Xamples/lib \
! 1050: /lib/usr/lib/X11 \
! 1051: \
! 1052: /usr/openwin/lib \
! 1053: /usr/openwin/share/lib \
! 1054: ; \
! 1055: do
! 1056: for ac_extension in a so sl; do
! 1057: if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
! 1058: ac_x_libraries=$ac_dir
! 1059: break 2
! 1060: fi
! 1061: done
! 1062: done
! 1063: fi
! 1064: rm -f conftest*
! 1065: fi # $ac_x_libraries = NO
! 1066:
! 1067: if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
! 1068: # Didn't find X anywhere. Cache the known absence of X.
! 1069: ac_cv_have_x="have_x=no"
! 1070: else
! 1071: # Record where we found X for the cache.
! 1072: ac_cv_have_x="have_x=yes \
! 1073: ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
! 1074: fi
! 1075: fi
! 1076: fi
! 1077: eval "$ac_cv_have_x"
! 1078: fi # $with_x != no
! 1079:
! 1080: if test "$have_x" != yes; then
! 1081: echo "$ac_t""$have_x" 1>&6
! 1082: no_x=yes
! 1083: else
! 1084: # If each of the values was on the command line, it overrides each guess.
! 1085: test "x$x_includes" = xNONE && x_includes=$ac_x_includes
! 1086: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
! 1087: # Update the cache value to reflect the command line values.
! 1088: ac_cv_have_x="have_x=yes \
! 1089: ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
! 1090: echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
! 1091: fi
! 1092:
! 1093: if test "$no_x" = yes; then
! 1094: # Not all programs may use this symbol, but it does not hurt to define it.
! 1095: cat >> confdefs.h <<\EOF
! 1096: #define X_DISPLAY_MISSING 1
! 1097: EOF
! 1098:
! 1099: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
! 1100: else
! 1101: if test -n "$x_includes"; then
! 1102: X_CFLAGS="$X_CFLAGS -I$x_includes"
! 1103: fi
! 1104:
! 1105: # It would also be nice to do this for all -L options, not just this one.
! 1106: if test -n "$x_libraries"; then
! 1107: X_LIBS="$X_LIBS -L$x_libraries"
! 1108: # For Solaris; some versions of Sun CC require a space after -R and
! 1109: # others require no space. Words are not sufficient . . . .
! 1110: case "`(uname -sr) 2>/dev/null`" in
! 1111: "SunOS 5"*)
! 1112: echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
! 1113: echo "configure:1113: checking whether -R must be followed by a space" >&5
! 1114: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
! 1115: cat > conftest.$ac_ext <<EOF
! 1116: #line 1116 "configure"
! 1117: #include "confdefs.h"
! 1118:
! 1119: int main() {
! 1120:
! 1121: ; return 0; }
! 1122: EOF
! 1123: if { (eval echo configure:1123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
! 1124: rm -rf conftest*
! 1125: ac_R_nospace=yes
! 1126: else
! 1127: echo "configure: failed program was:" >&5
! 1128: cat conftest.$ac_ext >&5
! 1129: rm -rf conftest*
! 1130: ac_R_nospace=no
! 1131: fi
! 1132: rm -f conftest*
! 1133: if test $ac_R_nospace = yes; then
! 1134: echo "$ac_t""no" 1>&6
! 1135: X_LIBS="$X_LIBS -R$x_libraries"
! 1136: else
! 1137: LIBS="$ac_xsave_LIBS -R $x_libraries"
! 1138: cat > conftest.$ac_ext <<EOF
! 1139: #line 1139 "configure"
! 1140: #include "confdefs.h"
! 1141:
! 1142: int main() {
! 1143:
! 1144: ; return 0; }
! 1145: EOF
! 1146: if { (eval echo configure:1146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
! 1147: rm -rf conftest*
! 1148: ac_R_space=yes
! 1149: else
! 1150: echo "configure: failed program was:" >&5
! 1151: cat conftest.$ac_ext >&5
! 1152: rm -rf conftest*
! 1153: ac_R_space=no
! 1154: fi
! 1155: rm -f conftest*
! 1156: if test $ac_R_space = yes; then
! 1157: echo "$ac_t""yes" 1>&6
! 1158: X_LIBS="$X_LIBS -R $x_libraries"
! 1159: else
! 1160: echo "$ac_t""neither works" 1>&6
! 1161: fi
! 1162: fi
! 1163: LIBS="$ac_xsave_LIBS"
! 1164: esac
! 1165: fi
! 1166:
! 1167: # Check for system-dependent libraries X programs must link with.
! 1168: # Do this before checking for the system-independent R6 libraries
! 1169: # (-lICE), since we may need -lsocket or whatever for X linking.
! 1170:
! 1171: if test "$ISC" = yes; then
! 1172: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
! 1173: else
! 1174: # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
! 1175: # libraries were built with DECnet support. And karl@cs.umb.edu says
! 1176: # the Alpha needs dnet_stub (dnet does not exist).
! 1177: echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
! 1178: echo "configure:1178: checking for dnet_ntoa in -ldnet" >&5
! 1179: ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
! 1180: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
! 1181: echo $ac_n "(cached) $ac_c" 1>&6
! 1182: else
! 1183: ac_save_LIBS="$LIBS"
! 1184: LIBS="-ldnet $LIBS"
! 1185: cat > conftest.$ac_ext <<EOF
! 1186: #line 1186 "configure"
! 1187: #include "confdefs.h"
! 1188: /* Override any gcc2 internal prototype to avoid an error. */
! 1189: /* We use char because int might match the return type of a gcc2
! 1190: builtin and then its argument prototype would still apply. */
! 1191: char dnet_ntoa();
! 1192:
! 1193: int main() {
! 1194: dnet_ntoa()
! 1195: ; return 0; }
! 1196: EOF
! 1197: if { (eval echo configure:1197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
! 1198: rm -rf conftest*
! 1199: eval "ac_cv_lib_$ac_lib_var=yes"
! 1200: else
! 1201: echo "configure: failed program was:" >&5
! 1202: cat conftest.$ac_ext >&5
! 1203: rm -rf conftest*
! 1204: eval "ac_cv_lib_$ac_lib_var=no"
! 1205: fi
! 1206: rm -f conftest*
! 1207: LIBS="$ac_save_LIBS"
! 1208:
! 1209: fi
! 1210: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
! 1211: echo "$ac_t""yes" 1>&6
! 1212: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
! 1213: else
! 1214: echo "$ac_t""no" 1>&6
! 1215: fi
! 1216:
! 1217: if test $ac_cv_lib_dnet_dnet_ntoa = no; then
! 1218: echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
! 1219: echo "configure:1219: checking for dnet_ntoa in -ldnet_stub" >&5
! 1220: ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
! 1221: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
! 1222: echo $ac_n "(cached) $ac_c" 1>&6
! 1223: else
! 1224: ac_save_LIBS="$LIBS"
! 1225: LIBS="-ldnet_stub $LIBS"
! 1226: cat > conftest.$ac_ext <<EOF
! 1227: #line 1227 "configure"
! 1228: #include "confdefs.h"
! 1229: /* Override any gcc2 internal prototype to avoid an error. */
! 1230: /* We use char because int might match the return type of a gcc2
! 1231: builtin and then its argument prototype would still apply. */
! 1232: char dnet_ntoa();
! 1233:
! 1234: int main() {
! 1235: dnet_ntoa()
! 1236: ; return 0; }
! 1237: EOF
! 1238: if { (eval echo configure:1238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
! 1239: rm -rf conftest*
! 1240: eval "ac_cv_lib_$ac_lib_var=yes"
! 1241: else
! 1242: echo "configure: failed program was:" >&5
! 1243: cat conftest.$ac_ext >&5
! 1244: rm -rf conftest*
! 1245: eval "ac_cv_lib_$ac_lib_var=no"
! 1246: fi
! 1247: rm -f conftest*
! 1248: LIBS="$ac_save_LIBS"
! 1249:
! 1250: fi
! 1251: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
! 1252: echo "$ac_t""yes" 1>&6
! 1253: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
! 1254: else
! 1255: echo "$ac_t""no" 1>&6
! 1256: fi
! 1257:
! 1258: fi
! 1259:
! 1260: # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
! 1261: # to get the SysV transport functions.
! 1262: # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
! 1263: # needs -lnsl.
! 1264: # The nsl library prevents programs from opening the X display
! 1265: # on Irix 5.2, according to dickey@clark.net.
! 1266: echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
! 1267: echo "configure:1267: checking for gethostbyname" >&5
! 1268: if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
! 1269: echo $ac_n "(cached) $ac_c" 1>&6
! 1270: else
! 1271: cat > conftest.$ac_ext <<EOF
! 1272: #line 1272 "configure"
! 1273: #include "confdefs.h"
! 1274: /* System header to define __stub macros and hopefully few prototypes,
! 1275: which can conflict with char gethostbyname(); below. */
! 1276: #include <assert.h>
! 1277: /* Override any gcc2 internal prototype to avoid an error. */
! 1278: /* We use char because int might match the return type of a gcc2
! 1279: builtin and then its argument prototype would still apply. */
! 1280: char gethostbyname();
! 1281:
! 1282: int main() {
! 1283:
! 1284: /* The GNU C library defines this for functions which it implements
! 1285: to always fail with ENOSYS. Some functions are actually named
! 1286: something starting with __ and the normal name is an alias. */
! 1287: #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
! 1288: choke me
! 1289: #else
! 1290: gethostbyname();
! 1291: #endif
! 1292:
! 1293: ; return 0; }
! 1294: EOF
! 1295: if { (eval echo configure:1295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
! 1296: rm -rf conftest*
! 1297: eval "ac_cv_func_gethostbyname=yes"
! 1298: else
! 1299: echo "configure: failed program was:" >&5
! 1300: cat conftest.$ac_ext >&5
! 1301: rm -rf conftest*
! 1302: eval "ac_cv_func_gethostbyname=no"
! 1303: fi
! 1304: rm -f conftest*
! 1305: fi
! 1306:
! 1307: if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
! 1308: echo "$ac_t""yes" 1>&6
! 1309: :
! 1310: else
! 1311: echo "$ac_t""no" 1>&6
! 1312: fi
! 1313:
! 1314: if test $ac_cv_func_gethostbyname = no; then
! 1315: echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
! 1316: echo "configure:1316: checking for gethostbyname in -lnsl" >&5
! 1317: ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
! 1318: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
! 1319: echo $ac_n "(cached) $ac_c" 1>&6
! 1320: else
! 1321: ac_save_LIBS="$LIBS"
! 1322: LIBS="-lnsl $LIBS"
! 1323: cat > conftest.$ac_ext <<EOF
! 1324: #line 1324 "configure"
! 1325: #include "confdefs.h"
! 1326: /* Override any gcc2 internal prototype to avoid an error. */
! 1327: /* We use char because int might match the return type of a gcc2
! 1328: builtin and then its argument prototype would still apply. */
! 1329: char gethostbyname();
! 1330:
! 1331: int main() {
! 1332: gethostbyname()
! 1333: ; return 0; }
! 1334: EOF
! 1335: if { (eval echo configure:1335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
! 1336: rm -rf conftest*
! 1337: eval "ac_cv_lib_$ac_lib_var=yes"
! 1338: else
! 1339: echo "configure: failed program was:" >&5
! 1340: cat conftest.$ac_ext >&5
! 1341: rm -rf conftest*
! 1342: eval "ac_cv_lib_$ac_lib_var=no"
! 1343: fi
! 1344: rm -f conftest*
! 1345: LIBS="$ac_save_LIBS"
! 1346:
! 1347: fi
! 1348: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
! 1349: echo "$ac_t""yes" 1>&6
! 1350: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
! 1351: else
! 1352: echo "$ac_t""no" 1>&6
! 1353: fi
! 1354:
! 1355: fi
! 1356:
! 1357: # lieder@skyler.mavd.honeywell.com says without -lsocket,
! 1358: # socket/setsockopt and other routines are undefined under SCO ODT
! 1359: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
! 1360: # on later versions), says simon@lia.di.epfl.ch: it contains
! 1361: # gethostby* variants that don't use the nameserver (or something).
! 1362: # -lsocket must be given before -lnsl if both are needed.
! 1363: # We assume that if connect needs -lnsl, so does gethostbyname.
! 1364: echo $ac_n "checking for connect""... $ac_c" 1>&6
! 1365: echo "configure:1365: checking for connect" >&5
! 1366: if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
! 1367: echo $ac_n "(cached) $ac_c" 1>&6
! 1368: else
! 1369: cat > conftest.$ac_ext <<EOF
! 1370: #line 1370 "configure"
! 1371: #include "confdefs.h"
! 1372: /* System header to define __stub macros and hopefully few prototypes,
! 1373: which can conflict with char connect(); below. */
! 1374: #include <assert.h>
! 1375: /* Override any gcc2 internal prototype to avoid an error. */
! 1376: /* We use char because int might match the return type of a gcc2
! 1377: builtin and then its argument prototype would still apply. */
! 1378: char connect();
! 1379:
! 1380: int main() {
! 1381:
! 1382: /* The GNU C library defines this for functions which it implements
! 1383: to always fail with ENOSYS. Some functions are actually named
! 1384: something starting with __ and the normal name is an alias. */
! 1385: #if defined (__stub_connect) || defined (__stub___connect)
! 1386: choke me
! 1387: #else
! 1388: connect();
! 1389: #endif
! 1390:
! 1391: ; return 0; }
! 1392: EOF
! 1393: if { (eval echo configure:1393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
! 1394: rm -rf conftest*
! 1395: eval "ac_cv_func_connect=yes"
! 1396: else
! 1397: echo "configure: failed program was:" >&5
! 1398: cat conftest.$ac_ext >&5
! 1399: rm -rf conftest*
! 1400: eval "ac_cv_func_connect=no"
! 1401: fi
! 1402: rm -f conftest*
! 1403: fi
! 1404:
! 1405: if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
! 1406: echo "$ac_t""yes" 1>&6
! 1407: :
! 1408: else
! 1409: echo "$ac_t""no" 1>&6
! 1410: fi
! 1411:
! 1412: if test $ac_cv_func_connect = no; then
! 1413: echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
! 1414: echo "configure:1414: checking for connect in -lsocket" >&5
! 1415: ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
! 1416: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
! 1417: echo $ac_n "(cached) $ac_c" 1>&6
! 1418: else
! 1419: ac_save_LIBS="$LIBS"
! 1420: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
! 1421: cat > conftest.$ac_ext <<EOF
! 1422: #line 1422 "configure"
! 1423: #include "confdefs.h"
! 1424: /* Override any gcc2 internal prototype to avoid an error. */
! 1425: /* We use char because int might match the return type of a gcc2
! 1426: builtin and then its argument prototype would still apply. */
! 1427: char connect();
! 1428:
! 1429: int main() {
! 1430: connect()
! 1431: ; return 0; }
! 1432: EOF
! 1433: if { (eval echo configure:1433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
! 1434: rm -rf conftest*
! 1435: eval "ac_cv_lib_$ac_lib_var=yes"
! 1436: else
! 1437: echo "configure: failed program was:" >&5
! 1438: cat conftest.$ac_ext >&5
! 1439: rm -rf conftest*
! 1440: eval "ac_cv_lib_$ac_lib_var=no"
! 1441: fi
! 1442: rm -f conftest*
! 1443: LIBS="$ac_save_LIBS"
! 1444:
! 1445: fi
! 1446: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
! 1447: echo "$ac_t""yes" 1>&6
! 1448: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
! 1449: else
! 1450: echo "$ac_t""no" 1>&6
! 1451: fi
! 1452:
! 1453: fi
! 1454:
! 1455: # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
! 1456: echo $ac_n "checking for remove""... $ac_c" 1>&6
! 1457: echo "configure:1457: checking for remove" >&5
! 1458: if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
! 1459: echo $ac_n "(cached) $ac_c" 1>&6
! 1460: else
! 1461: cat > conftest.$ac_ext <<EOF
! 1462: #line 1462 "configure"
! 1463: #include "confdefs.h"
! 1464: /* System header to define __stub macros and hopefully few prototypes,
! 1465: which can conflict with char remove(); below. */
! 1466: #include <assert.h>
! 1467: /* Override any gcc2 internal prototype to avoid an error. */
! 1468: /* We use char because int might match the return type of a gcc2
! 1469: builtin and then its argument prototype would still apply. */
! 1470: char remove();
! 1471:
! 1472: int main() {
! 1473:
! 1474: /* The GNU C library defines this for functions which it implements
! 1475: to always fail with ENOSYS. Some functions are actually named
! 1476: something starting with __ and the normal name is an alias. */
! 1477: #if defined (__stub_remove) || defined (__stub___remove)
! 1478: choke me
! 1479: #else
! 1480: remove();
! 1481: #endif
! 1482:
! 1483: ; return 0; }
! 1484: EOF
! 1485: if { (eval echo configure:1485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
! 1486: rm -rf conftest*
! 1487: eval "ac_cv_func_remove=yes"
! 1488: else
! 1489: echo "configure: failed program was:" >&5
! 1490: cat conftest.$ac_ext >&5
! 1491: rm -rf conftest*
! 1492: eval "ac_cv_func_remove=no"
! 1493: fi
! 1494: rm -f conftest*
! 1495: fi
! 1496:
! 1497: if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
! 1498: echo "$ac_t""yes" 1>&6
! 1499: :
! 1500: else
! 1501: echo "$ac_t""no" 1>&6
! 1502: fi
! 1503:
! 1504: if test $ac_cv_func_remove = no; then
! 1505: echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
! 1506: echo "configure:1506: checking for remove in -lposix" >&5
! 1507: ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
! 1508: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
! 1509: echo $ac_n "(cached) $ac_c" 1>&6
! 1510: else
! 1511: ac_save_LIBS="$LIBS"
! 1512: LIBS="-lposix $LIBS"
! 1513: cat > conftest.$ac_ext <<EOF
! 1514: #line 1514 "configure"
! 1515: #include "confdefs.h"
! 1516: /* Override any gcc2 internal prototype to avoid an error. */
! 1517: /* We use char because int might match the return type of a gcc2
! 1518: builtin and then its argument prototype would still apply. */
! 1519: char remove();
! 1520:
! 1521: int main() {
! 1522: remove()
! 1523: ; return 0; }
! 1524: EOF
! 1525: if { (eval echo configure:1525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
! 1526: rm -rf conftest*
! 1527: eval "ac_cv_lib_$ac_lib_var=yes"
! 1528: else
! 1529: echo "configure: failed program was:" >&5
! 1530: cat conftest.$ac_ext >&5
! 1531: rm -rf conftest*
! 1532: eval "ac_cv_lib_$ac_lib_var=no"
! 1533: fi
! 1534: rm -f conftest*
! 1535: LIBS="$ac_save_LIBS"
! 1536:
! 1537: fi
! 1538: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
! 1539: echo "$ac_t""yes" 1>&6
! 1540: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
! 1541: else
! 1542: echo "$ac_t""no" 1>&6
! 1543: fi
! 1544:
! 1545: fi
! 1546:
! 1547: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
! 1548: echo $ac_n "checking for shmat""... $ac_c" 1>&6
! 1549: echo "configure:1549: checking for shmat" >&5
! 1550: if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
! 1551: echo $ac_n "(cached) $ac_c" 1>&6
! 1552: else
! 1553: cat > conftest.$ac_ext <<EOF
! 1554: #line 1554 "configure"
! 1555: #include "confdefs.h"
! 1556: /* System header to define __stub macros and hopefully few prototypes,
! 1557: which can conflict with char shmat(); below. */
! 1558: #include <assert.h>
! 1559: /* Override any gcc2 internal prototype to avoid an error. */
! 1560: /* We use char because int might match the return type of a gcc2
! 1561: builtin and then its argument prototype would still apply. */
! 1562: char shmat();
! 1563:
! 1564: int main() {
! 1565:
! 1566: /* The GNU C library defines this for functions which it implements
! 1567: to always fail with ENOSYS. Some functions are actually named
! 1568: something starting with __ and the normal name is an alias. */
! 1569: #if defined (__stub_shmat) || defined (__stub___shmat)
! 1570: choke me
! 1571: #else
! 1572: shmat();
! 1573: #endif
! 1574:
! 1575: ; return 0; }
! 1576: EOF
! 1577: if { (eval echo configure:1577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
! 1578: rm -rf conftest*
! 1579: eval "ac_cv_func_shmat=yes"
! 1580: else
! 1581: echo "configure: failed program was:" >&5
! 1582: cat conftest.$ac_ext >&5
! 1583: rm -rf conftest*
! 1584: eval "ac_cv_func_shmat=no"
! 1585: fi
! 1586: rm -f conftest*
! 1587: fi
! 1588:
! 1589: if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
! 1590: echo "$ac_t""yes" 1>&6
! 1591: :
! 1592: else
! 1593: echo "$ac_t""no" 1>&6
! 1594: fi
! 1595:
! 1596: if test $ac_cv_func_shmat = no; then
! 1597: echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
! 1598: echo "configure:1598: checking for shmat in -lipc" >&5
! 1599: ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
! 1600: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
! 1601: echo $ac_n "(cached) $ac_c" 1>&6
! 1602: else
! 1603: ac_save_LIBS="$LIBS"
! 1604: LIBS="-lipc $LIBS"
! 1605: cat > conftest.$ac_ext <<EOF
! 1606: #line 1606 "configure"
! 1607: #include "confdefs.h"
! 1608: /* Override any gcc2 internal prototype to avoid an error. */
! 1609: /* We use char because int might match the return type of a gcc2
! 1610: builtin and then its argument prototype would still apply. */
! 1611: char shmat();
! 1612:
! 1613: int main() {
! 1614: shmat()
! 1615: ; return 0; }
! 1616: EOF
! 1617: if { (eval echo configure:1617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
! 1618: rm -rf conftest*
! 1619: eval "ac_cv_lib_$ac_lib_var=yes"
! 1620: else
! 1621: echo "configure: failed program was:" >&5
! 1622: cat conftest.$ac_ext >&5
! 1623: rm -rf conftest*
! 1624: eval "ac_cv_lib_$ac_lib_var=no"
! 1625: fi
! 1626: rm -f conftest*
! 1627: LIBS="$ac_save_LIBS"
! 1628:
! 1629: fi
! 1630: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
! 1631: echo "$ac_t""yes" 1>&6
! 1632: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
! 1633: else
! 1634: echo "$ac_t""no" 1>&6
! 1635: fi
! 1636:
! 1637: fi
! 1638: fi
! 1639:
! 1640: # Check for libraries that X11R6 Xt/Xaw programs need.
! 1641: ac_save_LDFLAGS="$LDFLAGS"
! 1642: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
! 1643: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
! 1644: # check for ICE first), but we must link in the order -lSM -lICE or
! 1645: # we get undefined symbols. So assume we have SM if we have ICE.
! 1646: # These have to be linked with before -lX11, unlike the other
! 1647: # libraries we check for below, so use a different variable.
! 1648: # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
! 1649: echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
! 1650: echo "configure:1650: checking for IceConnectionNumber in -lICE" >&5
! 1651: ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
! 1652: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
! 1653: echo $ac_n "(cached) $ac_c" 1>&6
! 1654: else
! 1655: ac_save_LIBS="$LIBS"
! 1656: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
! 1657: cat > conftest.$ac_ext <<EOF
! 1658: #line 1658 "configure"
! 1659: #include "confdefs.h"
! 1660: /* Override any gcc2 internal prototype to avoid an error. */
! 1661: /* We use char because int might match the return type of a gcc2
! 1662: builtin and then its argument prototype would still apply. */
! 1663: char IceConnectionNumber();
! 1664:
! 1665: int main() {
! 1666: IceConnectionNumber()
! 1667: ; return 0; }
! 1668: EOF
! 1669: if { (eval echo configure:1669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
! 1670: rm -rf conftest*
! 1671: eval "ac_cv_lib_$ac_lib_var=yes"
! 1672: else
! 1673: echo "configure: failed program was:" >&5
! 1674: cat conftest.$ac_ext >&5
! 1675: rm -rf conftest*
! 1676: eval "ac_cv_lib_$ac_lib_var=no"
! 1677: fi
! 1678: rm -f conftest*
! 1679: LIBS="$ac_save_LIBS"
! 1680:
! 1681: fi
! 1682: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
! 1683: echo "$ac_t""yes" 1>&6
! 1684: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
! 1685: else
! 1686: echo "$ac_t""no" 1>&6
! 1687: fi
! 1688:
! 1689: LDFLAGS="$ac_save_LDFLAGS"
! 1690:
! 1691: fi
! 1692:
! 1693:
! 1694: echo $ac_n "checking for socket""... $ac_c" 1>&6
! 1695: echo "configure:1695: checking for socket" >&5
! 1696: if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
! 1697: echo $ac_n "(cached) $ac_c" 1>&6
! 1698: else
! 1699: cat > conftest.$ac_ext <<EOF
! 1700: #line 1700 "configure"
! 1701: #include "confdefs.h"
! 1702: /* System header to define __stub macros and hopefully few prototypes,
! 1703: which can conflict with char socket(); below. */
! 1704: #include <assert.h>
! 1705: /* Override any gcc2 internal prototype to avoid an error. */
! 1706: /* We use char because int might match the return type of a gcc2
! 1707: builtin and then its argument prototype would still apply. */
! 1708: char socket();
! 1709:
! 1710: int main() {
! 1711:
! 1712: /* The GNU C library defines this for functions which it implements
! 1713: to always fail with ENOSYS. Some functions are actually named
! 1714: something starting with __ and the normal name is an alias. */
! 1715: #if defined (__stub_socket) || defined (__stub___socket)
! 1716: choke me
! 1717: #else
! 1718: socket();
! 1719: #endif
! 1720:
! 1721: ; return 0; }
! 1722: EOF
! 1723: if { (eval echo configure:1723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
! 1724: rm -rf conftest*
! 1725: eval "ac_cv_func_socket=yes"
! 1726: else
! 1727: echo "configure: failed program was:" >&5
! 1728: cat conftest.$ac_ext >&5
! 1729: rm -rf conftest*
! 1730: eval "ac_cv_func_socket=no"
! 1731: fi
! 1732: rm -f conftest*
! 1733: fi
! 1734:
! 1735: if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
! 1736: echo "$ac_t""yes" 1>&6
! 1737: :
! 1738: else
! 1739: echo "$ac_t""no" 1>&6
! 1740: fi
! 1741:
! 1742: if test "$ac_cv_func_socket" = no ; then
! 1743: echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
! 1744: echo "configure:1744: checking for socket in -lsocket" >&5
! 1745: ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
! 1746: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
! 1747: echo $ac_n "(cached) $ac_c" 1>&6
! 1748: else
! 1749: ac_save_LIBS="$LIBS"
! 1750: LIBS="-lsocket $LIBS"
! 1751: cat > conftest.$ac_ext <<EOF
! 1752: #line 1752 "configure"
! 1753: #include "confdefs.h"
! 1754: /* Override any gcc2 internal prototype to avoid an error. */
! 1755: /* We use char because int might match the return type of a gcc2
! 1756: builtin and then its argument prototype would still apply. */
! 1757: char socket();
! 1758:
! 1759: int main() {
! 1760: socket()
! 1761: ; return 0; }
! 1762: EOF
! 1763: if { (eval echo configure:1763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
! 1764: rm -rf conftest*
! 1765: eval "ac_cv_lib_$ac_lib_var=yes"
! 1766: else
! 1767: echo "configure: failed program was:" >&5
! 1768: cat conftest.$ac_ext >&5
! 1769: rm -rf conftest*
! 1770: eval "ac_cv_lib_$ac_lib_var=no"
! 1771: fi
! 1772: rm -f conftest*
! 1773: LIBS="$ac_save_LIBS"
! 1774:
! 1775: fi
! 1776: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
! 1777: echo "$ac_t""yes" 1>&6
! 1778: ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
! 1779: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
! 1780: cat >> confdefs.h <<EOF
! 1781: #define $ac_tr_lib 1
! 1782: EOF
! 1783:
! 1784: LIBS="-lsocket $LIBS"
! 1785:
! 1786: else
! 1787: echo "$ac_t""no" 1>&6
! 1788: fi
! 1789:
! 1790: fi
! 1791: echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
! 1792: echo "configure:1792: checking for gethostbyname" >&5
! 1793: if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
! 1794: echo $ac_n "(cached) $ac_c" 1>&6
! 1795: else
! 1796: cat > conftest.$ac_ext <<EOF
! 1797: #line 1797 "configure"
! 1798: #include "confdefs.h"
! 1799: /* System header to define __stub macros and hopefully few prototypes,
! 1800: which can conflict with char gethostbyname(); below. */
! 1801: #include <assert.h>
! 1802: /* Override any gcc2 internal prototype to avoid an error. */
! 1803: /* We use char because int might match the return type of a gcc2
! 1804: builtin and then its argument prototype would still apply. */
! 1805: char gethostbyname();
! 1806:
! 1807: int main() {
! 1808:
! 1809: /* The GNU C library defines this for functions which it implements
! 1810: to always fail with ENOSYS. Some functions are actually named
! 1811: something starting with __ and the normal name is an alias. */
! 1812: #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
! 1813: choke me
! 1814: #else
! 1815: gethostbyname();
! 1816: #endif
! 1817:
! 1818: ; return 0; }
! 1819: EOF
! 1820: if { (eval echo configure:1820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
! 1821: rm -rf conftest*
! 1822: eval "ac_cv_func_gethostbyname=yes"
! 1823: else
! 1824: echo "configure: failed program was:" >&5
! 1825: cat conftest.$ac_ext >&5
! 1826: rm -rf conftest*
! 1827: eval "ac_cv_func_gethostbyname=no"
! 1828: fi
! 1829: rm -f conftest*
! 1830: fi
! 1831:
! 1832: if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
! 1833: echo "$ac_t""yes" 1>&6
! 1834: :
! 1835: else
! 1836: echo "$ac_t""no" 1>&6
! 1837: fi
! 1838:
! 1839: if test "$ac_cv_func_gethostbyname" = no ; then
! 1840: echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
! 1841: echo "configure:1841: checking for gethostbyname in -lnsl" >&5
! 1842: ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
! 1843: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
! 1844: echo $ac_n "(cached) $ac_c" 1>&6
! 1845: else
! 1846: ac_save_LIBS="$LIBS"
! 1847: LIBS="-lnsl $LIBS"
! 1848: cat > conftest.$ac_ext <<EOF
! 1849: #line 1849 "configure"
! 1850: #include "confdefs.h"
! 1851: /* Override any gcc2 internal prototype to avoid an error. */
! 1852: /* We use char because int might match the return type of a gcc2
! 1853: builtin and then its argument prototype would still apply. */
! 1854: char gethostbyname();
! 1855:
! 1856: int main() {
! 1857: gethostbyname()
! 1858: ; return 0; }
! 1859: EOF
! 1860: if { (eval echo configure:1860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
! 1861: rm -rf conftest*
! 1862: eval "ac_cv_lib_$ac_lib_var=yes"
! 1863: else
! 1864: echo "configure: failed program was:" >&5
! 1865: cat conftest.$ac_ext >&5
! 1866: rm -rf conftest*
! 1867: eval "ac_cv_lib_$ac_lib_var=no"
! 1868: fi
! 1869: rm -f conftest*
! 1870: LIBS="$ac_save_LIBS"
! 1871:
! 1872: fi
! 1873: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
! 1874: echo "$ac_t""yes" 1>&6
! 1875: ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
! 1876: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
! 1877: cat >> confdefs.h <<EOF
! 1878: #define $ac_tr_lib 1
! 1879: EOF
! 1880:
! 1881: LIBS="-lnsl $LIBS"
! 1882:
! 1883: else
! 1884: echo "$ac_t""no" 1>&6
! 1885: fi
! 1886:
! 1887: fi
! 1888:
! 1889: trap '' 1 2 15
! 1890: cat > confcache <<\EOF
! 1891: # This file is a shell script that caches the results of configure
! 1892: # tests run on this system so they can be shared between configure
! 1893: # scripts and configure runs. It is not useful on other systems.
! 1894: # If it contains results you don't want to keep, you may remove or edit it.
! 1895: #
! 1896: # By default, configure uses ./config.cache as the cache file,
! 1897: # creating it if it does not exist already. You can give configure
! 1898: # the --cache-file=FILE option to use a different cache file; that is
! 1899: # what configure does when it calls configure scripts in
! 1900: # subdirectories, so they share the cache.
! 1901: # Giving --cache-file=/dev/null disables caching, for debugging configure.
! 1902: # config.status only pays attention to the cache file if you give it the
! 1903: # --recheck option to rerun configure.
! 1904: #
! 1905: EOF
! 1906: # The following way of writing the cache mishandles newlines in values,
! 1907: # but we know of no workaround that is simple, portable, and efficient.
! 1908: # So, don't put newlines in cache variables' values.
! 1909: # Ultrix sh set writes to stderr and can't be redirected directly,
! 1910: # and sets the high bit in the cache file unless we assign to the vars.
! 1911: (set) 2>&1 |
! 1912: case `(ac_space=' '; set | grep ac_space) 2>&1` in
! 1913: *ac_space=\ *)
! 1914: # `set' does not quote correctly, so add quotes (double-quote substitution
! 1915: # turns \\\\ into \\, and sed turns \\ into \).
! 1916: sed -n \
! 1917: -e "s/'/'\\\\''/g" \
! 1918: -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
! 1919: ;;
! 1920: *)
! 1921: # `set' quotes correctly as required by POSIX, so do not add quotes.
! 1922: sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
! 1923: ;;
! 1924: esac >> confcache
! 1925: if cmp -s $cache_file confcache; then
! 1926: :
! 1927: else
! 1928: if test -w $cache_file; then
! 1929: echo "updating cache $cache_file"
! 1930: cat confcache > $cache_file
! 1931: else
! 1932: echo "not updating unwritable cache $cache_file"
! 1933: fi
! 1934: fi
! 1935: rm -f confcache
! 1936:
! 1937: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
! 1938:
! 1939: test "x$prefix" = xNONE && prefix=$ac_default_prefix
! 1940: # Let make expand exec_prefix.
! 1941: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
! 1942:
! 1943: # Any assignment to VPATH causes Sun make to only execute
! 1944: # the first set of double-colon rules, so remove it if not needed.
! 1945: # If there is a colon in the path, we need to keep it.
! 1946: if test "x$srcdir" = x.; then
! 1947: ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
! 1948: fi
! 1949:
! 1950: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
! 1951:
! 1952: # Transform confdefs.h into DEFS.
! 1953: # Protect against shell expansion while executing Makefile rules.
! 1954: # Protect against Makefile macro expansion.
! 1955: cat > conftest.defs <<\EOF
! 1956: s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
! 1957: s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
! 1958: s%\[%\\&%g
! 1959: s%\]%\\&%g
! 1960: s%\$%$$%g
! 1961: EOF
! 1962: DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
! 1963: rm -f conftest.defs
! 1964:
! 1965:
! 1966: # Without the "./", some shells look in PATH for config.status.
! 1967: : ${CONFIG_STATUS=./config.status}
! 1968:
! 1969: echo creating $CONFIG_STATUS
! 1970: rm -f $CONFIG_STATUS
! 1971: cat > $CONFIG_STATUS <<EOF
! 1972: #! /bin/sh
! 1973: # Generated automatically by configure.
! 1974: # Run this file to recreate the current configuration.
! 1975: # This directory was configured as follows,
! 1976: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
! 1977: #
! 1978: # $0 $ac_configure_args
! 1979: #
! 1980: # Compiler output produced by configure, useful for debugging
! 1981: # configure, is in ./config.log if it exists.
! 1982:
! 1983: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
! 1984: for ac_option
! 1985: do
! 1986: case "\$ac_option" in
! 1987: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
! 1988: echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
! 1989: exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
! 1990: -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
! 1991: echo "$CONFIG_STATUS generated by autoconf version 2.13"
! 1992: exit 0 ;;
! 1993: -help | --help | --hel | --he | --h)
! 1994: echo "\$ac_cs_usage"; exit 0 ;;
! 1995: *) echo "\$ac_cs_usage"; exit 1 ;;
! 1996: esac
! 1997: done
! 1998:
! 1999: ac_given_srcdir=$srcdir
! 2000:
! 2001: trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
! 2002: EOF
! 2003: cat >> $CONFIG_STATUS <<EOF
! 2004:
! 2005: # Protect against being on the right side of a sed subst in config.status.
! 2006: sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
! 2007: s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
! 2008: $ac_vpsub
! 2009: $extrasub
! 2010: s%@SHELL@%$SHELL%g
! 2011: s%@CFLAGS@%$CFLAGS%g
! 2012: s%@CPPFLAGS@%$CPPFLAGS%g
! 2013: s%@CXXFLAGS@%$CXXFLAGS%g
! 2014: s%@FFLAGS@%$FFLAGS%g
! 2015: s%@DEFS@%$DEFS%g
! 2016: s%@LDFLAGS@%$LDFLAGS%g
! 2017: s%@LIBS@%$LIBS%g
! 2018: s%@exec_prefix@%$exec_prefix%g
! 2019: s%@prefix@%$prefix%g
! 2020: s%@program_transform_name@%$program_transform_name%g
! 2021: s%@bindir@%$bindir%g
! 2022: s%@sbindir@%$sbindir%g
! 2023: s%@libexecdir@%$libexecdir%g
! 2024: s%@datadir@%$datadir%g
! 2025: s%@sysconfdir@%$sysconfdir%g
! 2026: s%@sharedstatedir@%$sharedstatedir%g
! 2027: s%@localstatedir@%$localstatedir%g
! 2028: s%@libdir@%$libdir%g
! 2029: s%@includedir@%$includedir%g
! 2030: s%@oldincludedir@%$oldincludedir%g
! 2031: s%@infodir@%$infodir%g
! 2032: s%@mandir@%$mandir%g
! 2033: s%@CC@%$CC%g
! 2034: s%@RANLIB@%$RANLIB%g
! 2035: s%@CPP@%$CPP%g
! 2036: s%@X_CFLAGS@%$X_CFLAGS%g
! 2037: s%@X_PRE_LIBS@%$X_PRE_LIBS%g
! 2038: s%@X_LIBS@%$X_LIBS%g
! 2039: s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
! 2040:
! 2041: CEOF
! 2042: EOF
! 2043:
! 2044: cat >> $CONFIG_STATUS <<\EOF
! 2045:
! 2046: # Split the substitutions into bite-sized pieces for seds with
! 2047: # small command number limits, like on Digital OSF/1 and HP-UX.
! 2048: ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
! 2049: ac_file=1 # Number of current file.
! 2050: ac_beg=1 # First line for current file.
! 2051: ac_end=$ac_max_sed_cmds # Line after last line for current file.
! 2052: ac_more_lines=:
! 2053: ac_sed_cmds=""
! 2054: while $ac_more_lines; do
! 2055: if test $ac_beg -gt 1; then
! 2056: sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
! 2057: else
! 2058: sed "${ac_end}q" conftest.subs > conftest.s$ac_file
! 2059: fi
! 2060: if test ! -s conftest.s$ac_file; then
! 2061: ac_more_lines=false
! 2062: rm -f conftest.s$ac_file
! 2063: else
! 2064: if test -z "$ac_sed_cmds"; then
! 2065: ac_sed_cmds="sed -f conftest.s$ac_file"
! 2066: else
! 2067: ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
! 2068: fi
! 2069: ac_file=`expr $ac_file + 1`
! 2070: ac_beg=$ac_end
! 2071: ac_end=`expr $ac_end + $ac_max_sed_cmds`
! 2072: fi
! 2073: done
! 2074: if test -z "$ac_sed_cmds"; then
! 2075: ac_sed_cmds=cat
! 2076: fi
! 2077: EOF
! 2078:
! 2079: cat >> $CONFIG_STATUS <<EOF
! 2080:
! 2081: CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
! 2082: EOF
! 2083: cat >> $CONFIG_STATUS <<\EOF
! 2084: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
! 2085: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
! 2086: case "$ac_file" in
! 2087: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
! 2088: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
! 2089: *) ac_file_in="${ac_file}.in" ;;
! 2090: esac
! 2091:
! 2092: # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
! 2093:
! 2094: # Remove last slash and all that follows it. Not all systems have dirname.
! 2095: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
! 2096: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
! 2097: # The file is in a subdirectory.
! 2098: test ! -d "$ac_dir" && mkdir "$ac_dir"
! 2099: ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
! 2100: # A "../" for each directory in $ac_dir_suffix.
! 2101: ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
! 2102: else
! 2103: ac_dir_suffix= ac_dots=
! 2104: fi
! 2105:
! 2106: case "$ac_given_srcdir" in
! 2107: .) srcdir=.
! 2108: if test -z "$ac_dots"; then top_srcdir=.
! 2109: else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
! 2110: /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
! 2111: *) # Relative path.
! 2112: srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
! 2113: top_srcdir="$ac_dots$ac_given_srcdir" ;;
! 2114: esac
! 2115:
! 2116:
! 2117: echo creating "$ac_file"
! 2118: rm -f "$ac_file"
! 2119: configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
! 2120: case "$ac_file" in
! 2121: *Makefile*) ac_comsub="1i\\
! 2122: # $configure_input" ;;
! 2123: *) ac_comsub= ;;
! 2124: esac
! 2125:
! 2126: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
! 2127: sed -e "$ac_comsub
! 2128: s%@configure_input@%$configure_input%g
! 2129: s%@srcdir@%$srcdir%g
! 2130: s%@top_srcdir@%$top_srcdir%g
! 2131: " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
! 2132: fi; done
! 2133: rm -f conftest.s*
! 2134:
! 2135: EOF
! 2136: cat >> $CONFIG_STATUS <<EOF
! 2137:
! 2138: EOF
! 2139: cat >> $CONFIG_STATUS <<\EOF
! 2140:
! 2141: exit 0
! 2142: EOF
! 2143: chmod +x $CONFIG_STATUS
! 2144: rm -fr confdefs* $ac_clean_files
! 2145: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>