home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / lifeos2.zip / LIFE-1.02 / SOURCE / CONFIGUR < prev    next >
Text File  |  1996-06-04  |  49KB  |  1,809 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.4 
  5. # Copyright (C) 1992, 1993, 1994 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        include X11 interface (default=yes)"
  16. ac_help="$ac_help
  17.   --with-x                use the X Window System"
  18. ac_help="$ac_help
  19. --with-gc       include garbage collection (default=yes)"
  20. ac_help="$ac_help
  21. --with-memory=n number of words to allocate (default=2097152)"
  22. ac_help="$ac_help
  23. --with-dbm       include dbm interface (default=yes)"
  24.  
  25. # Initialize some variables set by options.
  26. # The variables have the same names as the options, with
  27. # dashes changed to underlines.
  28. build=NONE
  29. cache_file=./config.cache
  30. exec_prefix=NONE
  31. host=NONE
  32. no_create=
  33. nonopt=NONE
  34. no_recursion=
  35. prefix=NONE
  36. program_prefix=NONE
  37. program_suffix=NONE
  38. program_transform_name=s,x,x,
  39. silent=
  40. site=
  41. srcdir=
  42. target=NONE
  43. verbose=
  44. x_includes=NONE
  45. x_libraries=NONE
  46.  
  47. # Initialize some other variables.
  48. subdirs=
  49.  
  50. ac_prev=
  51. for ac_option
  52. do
  53.  
  54.   # If the previous option needs an argument, assign it.
  55.   if test -n "$ac_prev"; then
  56.     eval "$ac_prev=\$ac_option"
  57.     ac_prev=
  58.     continue
  59.   fi
  60.  
  61.   case "$ac_option" in
  62.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  63.   *) ac_optarg= ;;
  64.   esac
  65.  
  66.   # Accept the important Cygnus configure options, so we can diagnose typos.
  67.  
  68.   case "$ac_option" in
  69.  
  70.   -build | --build | --buil | --bui | --bu | --b)
  71.     ac_prev=build ;;
  72.   -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  73.     build="$ac_optarg" ;;
  74.  
  75.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  76.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  77.     ac_prev=cache_file ;;
  78.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  79.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  80.     cache_file="$ac_optarg" ;;
  81.  
  82.   -disable-* | --disable-*)
  83.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  84.     # Reject names that are not valid shell variable names.
  85.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  86.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  87.     fi
  88.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  89.     eval "enable_${ac_feature}=no" ;;
  90.  
  91.   -enable-* | --enable-*)
  92.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  93.     # Reject names that are not valid shell variable names.
  94.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  95.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  96.     fi
  97.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  98.     case "$ac_option" in
  99.       *=*) ;;
  100.       *) ac_optarg=yes ;;
  101.     esac
  102.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  103.  
  104.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  105.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  106.   | --exec | --exe | --ex)
  107.     ac_prev=exec_prefix ;;
  108.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  109.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  110.   | --exec=* | --exe=* | --ex=*)
  111.     exec_prefix="$ac_optarg" ;;
  112.  
  113.   -gas | --gas | --ga | --g)
  114.     # Obsolete; use --with-gas.
  115.     with_gas=yes ;;
  116.  
  117.   -help | --help | --hel | --he)
  118.     # Omit some internal or obsolete options to make the list less imposing.
  119.     # This message is too long to be a string in the A/UX 3.1 sh.
  120.     cat << EOF
  121. Usage: configure [options] [host]
  122. Options: [defaults in brackets after descriptions]
  123. Configuration:
  124.   --cache-file=FILE       cache test results in FILE
  125.   --help                  print this message
  126.   --no-create             do not create output files
  127.   --quiet, --silent       do not print \`checking...' messages
  128.   --version               print the version of autoconf that created configure
  129. Directory and file names:
  130.   --prefix=PREFIX         install architecture-independent files in PREFIX
  131.                           [$ac_default_prefix]
  132.   --exec-prefix=PREFIX    install architecture-dependent files in PREFIX
  133.                           [same as prefix]
  134.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  135.   --program-prefix=PREFIX prepend PREFIX to installed program names
  136.   --program-suffix=SUFFIX append SUFFIX to installed program names
  137.   --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  138. Host type:
  139.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  140.   --host=HOST             configure for HOST [guessed]
  141.   --target=TARGET         configure for TARGET [TARGET=HOST]
  142. Features and packages:
  143.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  144.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  145.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  146.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  147.   --x-includes=DIR        X include files are in DIR
  148.   --x-libraries=DIR       X library files are in DIR
  149. --enable and --with options recognized:$ac_help
  150. EOF
  151.     exit 0 ;;
  152.  
  153.   -host | --host | --hos | --ho)
  154.     ac_prev=host ;;
  155.   -host=* | --host=* | --hos=* | --ho=*)
  156.     host="$ac_optarg" ;;
  157.  
  158.   -nfp | --nfp | --nf)
  159.     # Obsolete; use --without-fp.
  160.     with_fp=no ;;
  161.  
  162.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  163.   | --no-cr | --no-c)
  164.     no_create=yes ;;
  165.  
  166.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  167.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  168.     no_recursion=yes ;;
  169.  
  170.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  171.     ac_prev=prefix ;;
  172.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  173.     prefix="$ac_optarg" ;;
  174.  
  175.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  176.   | --program-pre | --program-pr | --program-p)
  177.     ac_prev=program_prefix ;;
  178.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  179.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  180.     program_prefix="$ac_optarg" ;;
  181.  
  182.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  183.   | --program-suf | --program-su | --program-s)
  184.     ac_prev=program_suffix ;;
  185.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  186.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  187.     program_suffix="$ac_optarg" ;;
  188.  
  189.   -program-transform-name | --program-transform-name \
  190.   | --program-transform-nam | --program-transform-na \
  191.   | --program-transform-n | --program-transform- \
  192.   | --program-transform | --program-transfor \
  193.   | --program-transfo | --program-transf \
  194.   | --program-trans | --program-tran \
  195.   | --progr-tra | --program-tr | --program-t)
  196.     ac_prev=program_transform_name ;;
  197.   -program-transform-name=* | --program-transform-name=* \
  198.   | --program-transform-nam=* | --program-transform-na=* \
  199.   | --program-transform-n=* | --program-transform-=* \
  200.   | --program-transform=* | --program-transfor=* \
  201.   | --program-transfo=* | --program-transf=* \
  202.   | --program-trans=* | --program-tran=* \
  203.   | --progr-tra=* | --program-tr=* | --program-t=*)
  204.     program_transform_name="$ac_optarg" ;;
  205.  
  206.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  207.   | -silent | --silent | --silen | --sile | --sil)
  208.     silent=yes ;;
  209.  
  210.   -site | --site | --sit)
  211.     ac_prev=site ;;
  212.   -site=* | --site=* | --sit=*)
  213.     site="$ac_optarg" ;;
  214.  
  215.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  216.     ac_prev=srcdir ;;
  217.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  218.     srcdir="$ac_optarg" ;;
  219.  
  220.   -target | --target | --targe | --targ | --tar | --ta | --t)
  221.     ac_prev=target ;;
  222.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  223.     target="$ac_optarg" ;;
  224.  
  225.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  226.     verbose=yes ;;
  227.  
  228.   -version | --version | --versio | --versi | --vers)
  229.     echo "configure generated by autoconf version 2.4"
  230.     exit 0 ;;
  231.  
  232.   -with-* | --with-*)
  233.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  234.     # Reject names that are not valid shell variable names.
  235.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  236.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  237.     fi
  238.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  239.     case "$ac_option" in
  240.       *=*) ;;
  241.       *) ac_optarg=yes ;;
  242.     esac
  243.     eval "with_${ac_package}='$ac_optarg'" ;;
  244.  
  245.   -without-* | --without-*)
  246.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  247.     # Reject names that are not valid shell variable names.
  248.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  249.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  250.     fi
  251.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  252.     eval "with_${ac_package}=no" ;;
  253.  
  254.   --x)
  255.     # Obsolete; use --with-x.
  256.     with_x=yes ;;
  257.  
  258.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  259.   | --x-incl | --x-inc | --x-in | --x-i)
  260.     ac_prev=x_includes ;;
  261.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  262.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  263.     x_includes="$ac_optarg" ;;
  264.  
  265.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  266.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  267.     ac_prev=x_libraries ;;
  268.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  269.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  270.     x_libraries="$ac_optarg" ;;
  271.  
  272.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  273.     ;;
  274.  
  275.   *) 
  276.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  277.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  278.     fi
  279.     if test "x$nonopt" != xNONE; then
  280.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  281.     fi
  282.     nonopt="$ac_option"
  283.     ;;
  284.  
  285.   esac
  286. done
  287.  
  288. if test -n "$ac_prev"; then
  289.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  290. fi
  291.  
  292. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  293.  
  294. # File descriptor usage:
  295. # 0 standard input
  296. # 1 file creation
  297. # 2 errors and warnings
  298. # 3 some systems may open it to /dev/tty
  299. # 4 used on the Kubota Titan
  300. # 6 checking for... messages and results
  301. # 5 compiler messages saved in config.log
  302. if test "$silent" = yes; then
  303.   exec 6>/dev/null
  304. else
  305.   exec 6>&1
  306. fi
  307. exec 5>./config.log
  308.  
  309. echo "\
  310. This file contains any messages produced by compilers while
  311. running configure, to aid debugging if configure makes a mistake.
  312. " 1>&5
  313.  
  314. # Strip out --no-create and --no-recursion so they do not pile up.
  315. # Also quote any args containing shell metacharacters.
  316. ac_configure_args=
  317. for ac_arg
  318. do
  319.   case "$ac_arg" in
  320.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  321.   | --no-cr | --no-c) ;;
  322.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  323.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  324.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  325.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  326.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  327.   esac
  328. done
  329.  
  330. # NLS nuisances.
  331. # Only set LANG and LC_ALL to C if already set.
  332. # These must not be set unconditionally because not all systems understand
  333. # e.g. LANG=C (notably SCO).
  334. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  335. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  336.  
  337. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  338. rm -rf conftest* confdefs.h
  339. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  340. echo > confdefs.h
  341.  
  342. # A filename unique to this package, relative to the directory that
  343. # configure is in, which we can look for to find out if srcdir is correct.
  344. ac_unique_file=c_life.h
  345.  
  346. # Find the source files, if location was not specified.
  347. if test -z "$srcdir"; then
  348.   ac_srcdir_defaulted=yes
  349.   # Try the directory containing this script, then its parent.
  350.   ac_prog=$0
  351.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  352.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  353.   srcdir=$ac_confdir
  354.   if test ! -r $srcdir/$ac_unique_file; then
  355.     srcdir=..
  356.   fi
  357. else
  358.   ac_srcdir_defaulted=no
  359. fi
  360. if test ! -r $srcdir/$ac_unique_file; then
  361.   if test "$ac_srcdir_defaulted" = yes; then
  362.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  363.   else
  364.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  365.   fi
  366. fi
  367. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  368.  
  369. # Prefer explicitly selected file to automatically selected ones.
  370. if test -z "$CONFIG_SITE"; then
  371.   if test "x$prefix" != xNONE; then
  372.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  373.   else
  374.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  375.   fi
  376. fi
  377. for ac_site_file in $CONFIG_SITE; do
  378.   if test -r "$ac_site_file"; then
  379.     echo "loading site script $ac_site_file"
  380.     . "$ac_site_file"
  381.   fi
  382. done
  383.  
  384. if test -r "$cache_file"; then
  385.   echo "loading cache $cache_file"
  386.   . $cache_file
  387. else
  388.   echo "creating cache $cache_file"
  389.   > $cache_file
  390. fi
  391.  
  392. ac_ext=c
  393. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  394. ac_cpp='$CPP $CPPFLAGS'
  395. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
  396. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
  397.  
  398. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  399.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  400.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  401.     ac_n= ac_c='
  402. ' ac_t='    '
  403.   else
  404.     ac_n=-n ac_c= ac_t=
  405.   fi
  406. else
  407.   ac_n= ac_c='\c' ac_t=
  408. fi
  409.  
  410.  
  411. ac_aux_dir=
  412. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  413.   if test -f $ac_dir/install-sh; then
  414.     ac_aux_dir=$ac_dir
  415.     ac_install_sh="$ac_aux_dir/install-sh -c"
  416.     break
  417.   elif test -f $ac_dir/install.sh; then
  418.     ac_aux_dir=$ac_dir
  419.     ac_install_sh="$ac_aux_dir/install.sh -c"
  420.     break
  421.   fi
  422. done
  423. if test -z "$ac_aux_dir"; then
  424.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  425. fi
  426. ac_config_guess=$ac_aux_dir/config.guess
  427. ac_config_sub=$ac_aux_dir/config.sub
  428. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  429.  
  430.  
  431. # Make sure we can run config.sub.
  432. if $ac_config_sub sun4 >/dev/null 2>&1; then :
  433. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  434. fi
  435.  
  436. echo $ac_n "checking host system type""... $ac_c" 1>&6
  437.  
  438. host_alias=$host
  439. case "$host_alias" in
  440. NONE)
  441.   case $nonopt in
  442.   NONE)
  443.     if host_alias=`$ac_config_guess`; then :
  444.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  445.     fi ;;
  446.   *) host_alias=$nonopt ;;
  447.   esac ;;
  448. esac
  449.  
  450. host=`$ac_config_sub $host_alias`
  451. host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
  452. host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
  453. host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
  454. echo "$ac_t""$host" 1>&6
  455.  
  456. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  457. set dummy ${MAKE-make}; ac_make=$2
  458. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  459.   echo $ac_n "(cached) $ac_c" 1>&6
  460. else
  461.   cat > conftestmake <<\EOF
  462. all:
  463.     @echo 'ac_maketemp="${MAKE}"'
  464. EOF
  465. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  466. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  467. if test -n "$ac_maketemp"; then
  468.   eval ac_cv_prog_make_${ac_make}_set=yes
  469. else
  470.   eval ac_cv_prog_make_${ac_make}_set=no
  471. fi
  472. rm -f conftestmake
  473. fi
  474. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  475.   echo "$ac_t""yes" 1>&6
  476.   SET_MAKE=
  477. else
  478.   echo "$ac_t""no" 1>&6
  479.   SET_MAKE="MAKE=${MAKE-make}"
  480. fi
  481.  
  482. # Extract the first word of "gcc", so it can be a program name with args.
  483. set dummy gcc; ac_word=$2
  484. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  485. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  486.   echo $ac_n "(cached) $ac_c" 1>&6
  487. else
  488.   if test -n "$CC"; then
  489.   ac_cv_prog_CC="$CC" # Let the user override the test.
  490. else
  491.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  492.   for ac_dir in $PATH; do
  493.     test -z "$ac_dir" && ac_dir=.
  494.     if test -f $ac_dir/$ac_word; then
  495.       ac_cv_prog_CC="gcc"
  496.       break
  497.     fi
  498.   done
  499.   IFS="$ac_save_ifs"
  500.   test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
  501. fi
  502. fi
  503. CC="$ac_cv_prog_CC"
  504. if test -n "$CC"; then
  505.   echo "$ac_t""$CC" 1>&6
  506. else
  507.   echo "$ac_t""no" 1>&6
  508. fi
  509.  
  510.  
  511. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  512. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  513.   echo $ac_n "(cached) $ac_c" 1>&6
  514. else
  515.   cat > conftest.c <<EOF
  516. #ifdef __GNUC__
  517.   yes;
  518. #endif
  519. EOF
  520. if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
  521.   ac_cv_prog_gcc=yes
  522. else
  523.   ac_cv_prog_gcc=no
  524. fi
  525. fi
  526. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  527. if test $ac_cv_prog_gcc = yes; then
  528.   GCC=yes
  529.   if test "${CFLAGS+set}" != set; then
  530.     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  531. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  532.   echo $ac_n "(cached) $ac_c" 1>&6
  533. else
  534.   echo 'void f(){}' > conftest.c
  535. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  536.   ac_cv_prog_gcc_g=yes
  537. else
  538.   ac_cv_prog_gcc_g=no
  539. fi
  540. rm -f conftest*
  541.  
  542. fi
  543.     echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  544.     if test $ac_cv_prog_gcc_g = yes; then
  545.       CFLAGS="-g -O"
  546.     else
  547.       CFLAGS="-O"
  548.     fi
  549.   fi
  550. else
  551.   GCC=
  552.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  553. fi
  554.  
  555. # Extract the first word of "ranlib", so it can be a program name with args.
  556. set dummy ranlib; ac_word=$2
  557. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  558. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  559.   echo $ac_n "(cached) $ac_c" 1>&6
  560. else
  561.   if test -n "$RANLIB"; then
  562.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  563. else
  564.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  565.   for ac_dir in $PATH; do
  566.     test -z "$ac_dir" && ac_dir=.
  567.     if test -f $ac_dir/$ac_word; then
  568.       ac_cv_prog_RANLIB="ranlib"
  569.       break
  570.     fi
  571.   done
  572.   IFS="$ac_save_ifs"
  573.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  574. fi
  575. fi
  576. RANLIB="$ac_cv_prog_RANLIB"
  577. if test -n "$RANLIB"; then
  578.   echo "$ac_t""$RANLIB" 1>&6
  579. else
  580.   echo "$ac_t""no" 1>&6
  581. fi
  582.  
  583. # Find a good install program.  We prefer a C program (faster),
  584. # so one script is as good as another.  But avoid the broken or
  585. # incompatible versions:
  586. # SysV /etc/install, /usr/sbin/install
  587. # SunOS /usr/etc/install
  588. # IRIX /sbin/install
  589. # AIX /bin/install
  590. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  591. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  592. # ./install, which can be erroneously created by make from ./install.sh.
  593. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  594. if test -z "$INSTALL"; then
  595. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  596.   echo $ac_n "(cached) $ac_c" 1>&6
  597. else
  598.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  599.   for ac_dir in $PATH; do
  600.     # Account for people who put trailing slashes in PATH elements.
  601.     case "$ac_dir/" in
  602.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  603.     *)
  604.       # OSF1 and SCO ODT 3.0 have their own names for install.
  605.       for ac_prog in ginstall installbsd scoinst install; do
  606.         if test -f $ac_dir/$ac_prog; then
  607.       if test $ac_prog = install &&
  608.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  609.         # AIX install.  It has an incompatible calling convention.
  610.         # OSF/1 installbsd also uses dspmsg, but is usable.
  611.         :
  612.       else
  613.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  614.         break 2
  615.       fi
  616.     fi
  617.       done
  618.       ;;
  619.     esac
  620.   done
  621.   IFS="$ac_save_ifs"
  622.   # As a last resort, use the slow shell script.
  623.   test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
  624. fi
  625.   INSTALL="$ac_cv_path_install"
  626. fi
  627. echo "$ac_t""$INSTALL" 1>&6
  628.  
  629. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  630. # It thinks the first close brace ends the variable substitution.
  631. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  632.  
  633. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  634.  
  635. for ac_prog in mkdirhier mkdir true
  636. do
  637. # Extract the first word of "$ac_prog", so it can be a program name with args.
  638. set dummy $ac_prog; ac_word=$2
  639. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  640. if eval "test \"`echo '$''{'ac_cv_prog_MKDIRHIER'+set}'`\" = set"; then
  641.   echo $ac_n "(cached) $ac_c" 1>&6
  642. else
  643.   if test -n "$MKDIRHIER"; then
  644.   ac_cv_prog_MKDIRHIER="$MKDIRHIER" # Let the user override the test.
  645. else
  646.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  647.   for ac_dir in $PATH; do
  648.     test -z "$ac_dir" && ac_dir=.
  649.     if test -f $ac_dir/$ac_word; then
  650.       ac_cv_prog_MKDIRHIER="$ac_prog"
  651.       break
  652.     fi
  653.   done
  654.   IFS="$ac_save_ifs"
  655. fi
  656. fi
  657. MKDIRHIER="$ac_cv_prog_MKDIRHIER"
  658. if test -n "$MKDIRHIER"; then
  659.   echo "$ac_t""$MKDIRHIER" 1>&6
  660. else
  661.   echo "$ac_t""no" 1>&6
  662. fi
  663.  
  664. test -n "$MKDIRHIER" && break
  665. done
  666.  
  667. for ac_prog in makedepend mkdep
  668. do
  669. # Extract the first word of "$ac_prog", so it can be a program name with args.
  670. set dummy $ac_prog; ac_word=$2
  671. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  672. if eval "test \"`echo '$''{'ac_cv_prog_MKDEP'+set}'`\" = set"; then
  673.   echo $ac_n "(cached) $ac_c" 1>&6
  674. else
  675.   if test -n "$MKDEP"; then
  676.   ac_cv_prog_MKDEP="$MKDEP" # Let the user override the test.
  677. else
  678.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  679.   for ac_dir in $PATH; do
  680.     test -z "$ac_dir" && ac_dir=.
  681.     if test -f $ac_dir/$ac_word; then
  682.       ac_cv_prog_MKDEP="$ac_prog"
  683.       break
  684.     fi
  685.   done
  686.   IFS="$ac_save_ifs"
  687. fi
  688. fi
  689. MKDEP="$ac_cv_prog_MKDEP"
  690. if test -n "$MKDEP"; then
  691.   echo "$ac_t""$MKDEP" 1>&6
  692. else
  693.   echo "$ac_t""no" 1>&6
  694. fi
  695.  
  696. test -n "$MKDEP" && break
  697. done
  698. test -n "$MKDEP" || MKDEP="NONE"
  699.  
  700. if test "x$MKDEP" = xNONE; then
  701.   { echo "configure: error: makedepend or mkdep not found" 1>&2; exit 1; }
  702. fi
  703. LIBS="$LIBS -lm"
  704. case $host_os in
  705.     linux*)
  706.         CFLAGS="$CFLAGS -mieee-fp"
  707.         CPPFLAGS="$CPPFLAGS -include /usr/include/bsd/bsd.h -I/usr/include/bsd"
  708.         LIBS="$LIBS -lbsd"
  709.     ;;
  710.     solaris*)
  711.         cat >> confdefs.h <<\EOF
  712. #define SOLARIS 1
  713. EOF
  714.  
  715.         cat >> confdefs.h <<\EOF
  716. #define NORAW 1
  717. EOF
  718.  
  719. # Need to specify -lc at the front so that -lucb doesn't override
  720. # expected library functions (we just need bzero and friends).
  721.         LIBS="-lc $LIBS -L/usr/ucblib -lucb"
  722.     ;;
  723.     irix*)
  724.         cat >> confdefs.h <<\EOF
  725. #define NEEDXLIBINT 1
  726. EOF
  727.  
  728.         cat >> confdefs.h <<\EOF
  729. #define NORAW 1
  730. EOF
  731.  
  732.     ;;
  733. esac
  734. if test "$CC" = c89; then
  735.     CFLAGS = $CFLAGS -common
  736. fi
  737.  
  738.  
  739.  
  740.  
  741. echo $ac_n "checking for --with-x""... $ac_c" 1>&6
  742. # Check whether --with-x or --without-x was given.
  743. withval="$with_x"
  744. if test -n "$withval"; then
  745.   :
  746. fi
  747.  
  748. if test "x$with_x" != xno; then
  749.     echo "$ac_t""yes" 1>&6
  750.     cat >> confdefs.h <<\EOF
  751. #define X11 1
  752. EOF
  753.  
  754.     
  755.     echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  756. # On Suns, sometimes $CPP names a directory.
  757. if test -n "$CPP" && test -d "$CPP"; then
  758.   CPP=
  759. fi
  760. if test -z "$CPP"; then
  761. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  762.   echo $ac_n "(cached) $ac_c" 1>&6
  763. else
  764.     # This must be in double quotes, not single quotes, because CPP may get
  765.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  766.   CPP="${CC-cc} -E"
  767.   # On the NeXT, cc -E runs the code through the compiler's parser,
  768.   # not just through cpp.
  769.   cat > conftest.$ac_ext <<EOF
  770. #line 771 "configure"
  771. #include "confdefs.h"
  772. #include <assert.h>
  773. Syntax Error
  774. EOF
  775. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  776. ac_err=`grep -v '^ *+' conftest.out`
  777. if test -z "$ac_err"; then
  778.   :
  779. else
  780.   echo "$ac_err" >&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. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  790. ac_err=`grep -v '^ *+' conftest.out`
  791. if test -z "$ac_err"; then
  792.   :
  793. else
  794.   echo "$ac_err" >&5
  795.   rm -rf conftest*
  796.   CPP=/lib/cpp
  797. fi
  798. rm -f conftest*
  799. fi
  800. rm -f conftest*
  801.   ac_cv_prog_CPP="$CPP"
  802. fi
  803.   CPP="$ac_cv_prog_CPP"
  804. else
  805.   ac_cv_prog_CPP="$CPP"
  806. fi
  807. echo "$ac_t""$CPP" 1>&6
  808.  
  809. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  810. if test -d /etc/conf/kconfig.d &&
  811.   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  812. then
  813.   echo "$ac_t""yes" 1>&6
  814.   ISC=yes # If later tests want to check for ISC.
  815.   cat >> confdefs.h <<\EOF
  816. #define _POSIX_SOURCE 1
  817. EOF
  818.  
  819.   if test "$GCC" = yes; then
  820.     CC="$CC -posix"
  821.   else
  822.     CC="$CC -Xp"
  823.   fi
  824. else
  825.   echo "$ac_t""no" 1>&6
  826.   ISC=
  827. fi
  828.  
  829. # If we find X, set shell vars x_includes and x_libraries to the
  830. # paths, otherwise set no_x=yes.
  831. # Uses ac_ vars as temps to allow command line to override cache and checks.
  832. # --without-x overrides everything else, but does not touch the cache.
  833. echo $ac_n "checking for X""... $ac_c" 1>&6
  834.  
  835. # Check whether --with-x or --without-x was given.
  836. withval="$with_x"
  837. if test -n "$withval"; then
  838.   :
  839. fi
  840.  
  841. if test "x$with_x" = xno; then
  842.   no_x=yes
  843. else
  844.   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  845.     no_x=
  846.   else
  847. if eval "test \"`echo '$''{'ac_cv_path_x'+set}'`\" = set"; then
  848.   echo $ac_n "(cached) $ac_c" 1>&6
  849. else
  850.   # One or both of the vars are not set, and there is no cached value.
  851. no_x=yes
  852. rm -fr conftestdir
  853. if mkdir conftestdir; then
  854.   cd conftestdir
  855.   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  856.   cat > Imakefile <<'EOF'
  857. acfindx:
  858.     @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  859. EOF
  860.   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  861.     no_x=
  862.     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  863.     eval `make acfindx 2>/dev/null | grep -v make`
  864.     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  865.     for ac_extension in a so sl; do
  866.       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
  867.         test -f $ac_im_libdir/libX11.$ac_extension; then
  868.         ac_im_usrlibdir=$ac_im_libdir; break
  869.       fi
  870.     done
  871.     # Screen out bogus values from the imake configuration.
  872.     case "$ac_im_incroot" in
  873.     /usr/include) ;;
  874.     *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
  875.     esac
  876.     case "$ac_im_usrlibdir" in
  877.     /usr/lib | /lib) ;;
  878.     *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
  879.     esac
  880.   fi
  881.   cd ..
  882.   rm -fr conftestdir
  883. fi
  884.  
  885. if test "$no_x" = yes; then
  886. test -z "$x_direct_test_library" && x_direct_test_library=Xt
  887. test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
  888. test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
  889. cat > conftest.$ac_ext <<EOF
  890. #line 891 "configure"
  891. #include "confdefs.h"
  892. #include <$x_direct_test_include>
  893. EOF
  894. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  895. ac_err=`grep -v '^ *+' conftest.out`
  896. if test -z "$ac_err"; then
  897.   rm -rf conftest*
  898.   no_x= ac_x_includes=
  899. else
  900.   echo "$ac_err" >&5
  901.   rm -rf conftest*
  902.     for ac_dir in               \
  903.     /usr/X11R6/include        \
  904.     /usr/X11R5/include        \
  905.     /usr/X11R4/include        \
  906.                               \
  907.     /usr/include/X11R6        \
  908.     /usr/include/X11R5        \
  909.     /usr/include/X11R4        \
  910.                               \
  911.     /usr/local/X11R6/include  \
  912.     /usr/local/X11R5/include  \
  913.     /usr/local/X11R4/include  \
  914.                               \
  915.     /usr/local/include/X11R6  \
  916.     /usr/local/include/X11R5  \
  917.     /usr/local/include/X11R4  \
  918.                               \
  919.     /usr/X11/include          \
  920.     /usr/include/X11          \
  921.     /usr/local/X11/include    \
  922.     /usr/local/include/X11    \
  923.                               \
  924.     /usr/X386/include         \
  925.     /usr/x386/include         \
  926.     /usr/XFree86/include/X11  \
  927.                               \
  928.     /usr/include              \
  929.     /usr/local/include        \
  930.     /usr/unsupported/include  \
  931.     /usr/athena/include       \
  932.     /usr/local/x11r5/include  \
  933.     /usr/lpp/Xamples/include  \
  934.                               \
  935.     /usr/openwin/include      \
  936.     /usr/openwin/share/include \
  937.     ; \
  938.   do
  939.     if test -r "$ac_dir/$x_direct_test_include"; then
  940.       no_x= ac_x_includes=$ac_dir
  941.       break
  942.     fi
  943.   done
  944. fi
  945. rm -f conftest*
  946.  
  947. # Check for the libraries.
  948. # See if we find them without any special options.
  949. # Don't add to $LIBS permanently.
  950. ac_save_LIBS="$LIBS"
  951. LIBS="-l$x_direct_test_library $LIBS"
  952. cat > conftest.$ac_ext <<EOF
  953. #line 954 "configure"
  954. #include "confdefs.h"
  955.  
  956. int main() { return 0; }
  957. int t() {
  958. ${x_direct_test_function}()
  959. ; return 0; }
  960. EOF
  961. if eval $ac_link; then
  962.   rm -rf conftest*
  963.   LIBS="$ac_save_LIBS" no_x= ac_x_libraries=
  964. else
  965.   rm -rf conftest*
  966.   LIBS="$ac_save_LIBS"
  967. # First see if replacing the include by lib works.
  968. for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
  969.     /usr/X11R6/lib        \
  970.     /usr/X11R5/lib        \
  971.     /usr/X11R4/lib        \
  972.                           \
  973.     /usr/lib/X11R6        \
  974.     /usr/lib/X11R5        \
  975.     /usr/lib/X11R4        \
  976.                           \
  977.     /usr/local/X11R6/lib  \
  978.     /usr/local/X11R5/lib  \
  979.     /usr/local/X11R4/lib  \
  980.                           \
  981.     /usr/local/lib/X11R6  \
  982.     /usr/local/lib/X11R5  \
  983.     /usr/local/lib/X11R4  \
  984.                           \
  985.     /usr/X11/lib          \
  986.     /usr/lib/X11          \
  987.     /usr/local/X11/lib    \
  988.     /usr/local/lib/X11    \
  989.                           \
  990.     /usr/X386/lib         \
  991.     /usr/x386/lib         \
  992.     /usr/XFree86/lib/X11  \
  993.                           \
  994.     /usr/lib              \
  995.     /usr/local/lib        \
  996.     /usr/unsupported/lib  \
  997.     /usr/athena/lib       \
  998.     /usr/local/x11r5/lib  \
  999.     /usr/lpp/Xamples/lib  \
  1000.                           \
  1001.     /usr/openwin/lib      \
  1002.     /usr/openwin/share/lib \
  1003.     ; \
  1004. do
  1005.   for ac_extension in a so sl; do
  1006.     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
  1007.       no_x= ac_x_libraries=$ac_dir
  1008.       break 2
  1009.     fi
  1010.   done
  1011. done
  1012. fi
  1013. rm -f conftest*
  1014.  
  1015. fi
  1016. if test "$no_x" = yes; then
  1017.   ac_cv_path_x="no_x=yes"
  1018. else
  1019.   ac_cv_path_x="no_x= ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  1020. fi
  1021. fi
  1022.   fi
  1023.   eval "$ac_cv_path_x"
  1024. fi # $with_x != no
  1025.  
  1026. if test "$no_x" = yes; then
  1027.   echo "$ac_t""no" 1>&6
  1028. else
  1029.   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  1030.   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  1031.   ac_cv_path_x="no_x= ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  1032.   echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
  1033. fi
  1034.  
  1035. if test "$no_x" = yes; then 
  1036.   # Not all programs may use this symbol, but it does not hurt to define it.
  1037.   X_CFLAGS="$X_CFLAGS -DX_DISPLAY_MISSING"
  1038. else
  1039.   if test -n "$x_includes"; then
  1040.     X_CFLAGS="$X_CFLAGS -I$x_includes"
  1041.   fi
  1042.  
  1043.   # It would be nice to have a more robust check for the -R ld option than
  1044.   # just checking for Solaris.
  1045.   # It would also be nice to do this for all -L options, not just this one.
  1046.   if test -n "$x_libraries"; then
  1047.     X_LIBS="$X_LIBS -L$x_libraries"
  1048.     if test "`(uname) 2>/dev/null`" = SunOS &&
  1049.       uname -r | grep '^5' >/dev/null; then
  1050.       X_LIBS="$X_LIBS -R$x_libraries"
  1051.     fi
  1052.   fi
  1053.  
  1054.   # Check for libraries that X11R6 Xt/Xaw programs need.
  1055.  
  1056.   ac_save_LDFLAGS="$LDFLAGS"
  1057.   LDFLAGS="$LDFLAGS -L$x_libraries"
  1058.   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  1059.   # check for ICE first), but we must link in the order -lSM -lICE or
  1060.   # we get undefined symbols.  So assume we have SM if we have ICE.
  1061.   # These have to be linked with before -lX11, unlike the other
  1062.   # libraries we check for below, so use a different variable.
  1063.   #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
  1064.   echo $ac_n "checking for -lICE""... $ac_c" 1>&6
  1065. if eval "test \"`echo '$''{'ac_cv_lib_ICE'+set}'`\" = set"; then
  1066.   echo $ac_n "(cached) $ac_c" 1>&6
  1067. else
  1068.   ac_save_LIBS="$LIBS"
  1069. LIBS="-lICE  $LIBS"
  1070. cat > conftest.$ac_ext <<EOF
  1071. #line 1072 "configure"
  1072. #include "confdefs.h"
  1073.  
  1074. int main() { return 0; }
  1075. int t() {
  1076. IceConnectionNumber()
  1077. ; return 0; }
  1078. EOF
  1079. if eval $ac_link; then
  1080.   rm -rf conftest*
  1081.   eval "ac_cv_lib_ICE=yes"
  1082. else
  1083.   rm -rf conftest*
  1084.   eval "ac_cv_lib_ICE=no"
  1085. fi
  1086. rm -f conftest*
  1087. LIBS="$ac_save_LIBS"
  1088.  
  1089. fi
  1090. if eval "test \"`echo '$ac_cv_lib_'ICE`\" = yes"; then
  1091.   echo "$ac_t""yes" 1>&6
  1092.   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  1093. else
  1094.   echo "$ac_t""no" 1>&6
  1095. fi
  1096.  
  1097.   LDFLAGS="$ac_save_LDFLAGS"
  1098.  
  1099.   # Check for system-dependent libraries X programs must link with.
  1100.  
  1101.   if test "$ISC" = yes; then
  1102.     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  1103.   else
  1104.     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
  1105.     # libraries were built with DECnet support.  And karl@cs.umb.edu says
  1106.     # the Alpha needs dnet_stub (dnet does not exist).
  1107.     echo $ac_n "checking for -ldnet""... $ac_c" 1>&6
  1108. if eval "test \"`echo '$''{'ac_cv_lib_dnet'+set}'`\" = set"; then
  1109.   echo $ac_n "(cached) $ac_c" 1>&6
  1110. else
  1111.   ac_save_LIBS="$LIBS"
  1112. LIBS="-ldnet  $LIBS"
  1113. cat > conftest.$ac_ext <<EOF
  1114. #line 1115 "configure"
  1115. #include "confdefs.h"
  1116.  
  1117. int main() { return 0; }
  1118. int t() {
  1119. dnet_ntoa()
  1120. ; return 0; }
  1121. EOF
  1122. if eval $ac_link; then
  1123.   rm -rf conftest*
  1124.   eval "ac_cv_lib_dnet=yes"
  1125. else
  1126.   rm -rf conftest*
  1127.   eval "ac_cv_lib_dnet=no"
  1128. fi
  1129. rm -f conftest*
  1130. LIBS="$ac_save_LIBS"
  1131.  
  1132. fi
  1133. if eval "test \"`echo '$ac_cv_lib_'dnet`\" = yes"; then
  1134.   echo "$ac_t""yes" 1>&6
  1135.   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  1136. else
  1137.   echo "$ac_t""no" 1>&6
  1138. fi
  1139.  
  1140.     if test $ac_cv_lib_dnet = no; then
  1141.       echo $ac_n "checking for -ldnet_stub""... $ac_c" 1>&6
  1142. if eval "test \"`echo '$''{'ac_cv_lib_dnet_stub'+set}'`\" = set"; then
  1143.   echo $ac_n "(cached) $ac_c" 1>&6
  1144. else
  1145.   ac_save_LIBS="$LIBS"
  1146. LIBS="-ldnet_stub  $LIBS"
  1147. cat > conftest.$ac_ext <<EOF
  1148. #line 1149 "configure"
  1149. #include "confdefs.h"
  1150.  
  1151. int main() { return 0; }
  1152. int t() {
  1153. dnet_ntoa()
  1154. ; return 0; }
  1155. EOF
  1156. if eval $ac_link; then
  1157.   rm -rf conftest*
  1158.   eval "ac_cv_lib_dnet_stub=yes"
  1159. else
  1160.   rm -rf conftest*
  1161.   eval "ac_cv_lib_dnet_stub=no"
  1162. fi
  1163. rm -f conftest*
  1164. LIBS="$ac_save_LIBS"
  1165.  
  1166. fi
  1167. if eval "test \"`echo '$ac_cv_lib_'dnet_stub`\" = yes"; then
  1168.   echo "$ac_t""yes" 1>&6
  1169.   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  1170. else
  1171.   echo "$ac_t""no" 1>&6
  1172. fi
  1173.  
  1174.     fi
  1175.  
  1176.     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  1177.     # to get the SysV transport functions.
  1178.     # Not sure which flavor of 386 UNIX this is, but it seems harmless to
  1179.     # check for it.
  1180.     echo $ac_n "checking for -lnsl""... $ac_c" 1>&6
  1181. if eval "test \"`echo '$''{'ac_cv_lib_nsl'+set}'`\" = set"; then
  1182.   echo $ac_n "(cached) $ac_c" 1>&6
  1183. else
  1184.   ac_save_LIBS="$LIBS"
  1185. LIBS="-lnsl  $LIBS"
  1186. cat > conftest.$ac_ext <<EOF
  1187. #line 1188 "configure"
  1188. #include "confdefs.h"
  1189.  
  1190. int main() { return 0; }
  1191. int t() {
  1192. t_accept()
  1193. ; return 0; }
  1194. EOF
  1195. if eval $ac_link; then
  1196.   rm -rf conftest*
  1197.   eval "ac_cv_lib_nsl=yes"
  1198. else
  1199.   rm -rf conftest*
  1200.   eval "ac_cv_lib_nsl=no"
  1201. fi
  1202. rm -f conftest*
  1203. LIBS="$ac_save_LIBS"
  1204.  
  1205. fi
  1206. if eval "test \"`echo '$ac_cv_lib_'nsl`\" = yes"; then
  1207.   echo "$ac_t""yes" 1>&6
  1208.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  1209. else
  1210.   echo "$ac_t""no" 1>&6
  1211. fi
  1212.  
  1213.  
  1214.     # lieder@skyler.mavd.honeywell.com says without -lsocket,
  1215.     # socket/setsockopt and other routines are undefined under SCO ODT 2.0.
  1216.     # But -lsocket is broken on IRIX, according to simon@lia.di.epfl.ch.
  1217.     if test "`(uname) 2>/dev/null`" != IRIX; then
  1218.       echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
  1219. if eval "test \"`echo '$''{'ac_cv_lib_socket'+set}'`\" = set"; then
  1220.   echo $ac_n "(cached) $ac_c" 1>&6
  1221. else
  1222.   ac_save_LIBS="$LIBS"
  1223. LIBS="-lsocket  $LIBS"
  1224. cat > conftest.$ac_ext <<EOF
  1225. #line 1226 "configure"
  1226. #include "confdefs.h"
  1227.  
  1228. int main() { return 0; }
  1229. int t() {
  1230. socket()
  1231. ; return 0; }
  1232. EOF
  1233. if eval $ac_link; then
  1234.   rm -rf conftest*
  1235.   eval "ac_cv_lib_socket=yes"
  1236. else
  1237.   rm -rf conftest*
  1238.   eval "ac_cv_lib_socket=no"
  1239. fi
  1240. rm -f conftest*
  1241. LIBS="$ac_save_LIBS"
  1242.  
  1243. fi
  1244. if eval "test \"`echo '$ac_cv_lib_'socket`\" = yes"; then
  1245.   echo "$ac_t""yes" 1>&6
  1246.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lsocket"
  1247. else
  1248.   echo "$ac_t""no" 1>&6
  1249. fi
  1250.  
  1251.     fi
  1252.   fi
  1253. fi
  1254.  
  1255.     XSOURCE='${XSRC}'
  1256.     XOBJECT='${XOBJ}'
  1257.     XINCLUDE='${XINC}'
  1258.     XLIBRARIES='${XLIBS}'
  1259. echo $ac_n "checking for -DNEEDXLIBINT""... $ac_c" 1>&6
  1260. denys_save_CPPFLAGS="$CPPFLAGS"
  1261. CPPFLAGS="-I/$x_includes $CPPFLAGS"
  1262. cat > conftest.$ac_ext <<EOF
  1263. #line 1264 "configure"
  1264. #include "confdefs.h"
  1265. #include <X11/Xlib.h>
  1266. DENYS XlibSpecificationRelease
  1267.  
  1268. EOF
  1269. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1270.   egrep "DENYS [6]" >/dev/null 2>&1; then
  1271.   rm -rf conftest*
  1272.   echo "$ac_t""yes" 1>&6
  1273.     cat >> confdefs.h <<\EOF
  1274. #define NEEDXLIBINT 1
  1275. EOF
  1276.  
  1277. else
  1278.   rm -rf conftest*
  1279.   echo "$ac_t""no" 1>&6
  1280. fi
  1281. rm -f conftest*
  1282.  
  1283. CPPFLAGS="$denys_save_CPPFLAGS"
  1284. else
  1285.     echo "$ac_t""no" 1>&6
  1286.     XSOURCE=''
  1287.     XOBJECT=''
  1288.     XINCLUDE=''
  1289.     XLIBRARIES=''
  1290. fi
  1291. echo $ac_n "checking for --with-gc""... $ac_c" 1>&6
  1292. # Check whether --with-gc or --without-gc was given.
  1293. withval="$with_gc"
  1294. if test -n "$withval"; then
  1295.   :
  1296. fi
  1297.  
  1298. if test "x$with_gc" != xno; then
  1299.     echo "$ac_t""yes" 1>&6
  1300.     cat >> confdefs.h <<\EOF
  1301. #define GARBCOL 1
  1302. EOF
  1303.  
  1304. else
  1305.     echo "$ac_t""no" 1>&6
  1306. fi
  1307. echo $ac_n "checking for --with-memory""... $ac_c" 1>&6
  1308. # Check whether --with-memory or --without-memory was given.
  1309. withval="$with_memory"
  1310. if test -n "$withval"; then
  1311.   :
  1312. else
  1313.   with_memory=no
  1314. fi
  1315.  
  1316. if test "x$with_memory" != xno; then
  1317.     echo "$ac_t""yes = ${with_memory}" 1>&6
  1318.     cat >> confdefs.h <<\EOF
  1319. #define ALLOC_WORDS ${with_memory}
  1320. EOF
  1321.  
  1322. else
  1323.     echo "$ac_t""default = 2097152" 1>&6
  1324.     cat >> confdefs.h <<\EOF
  1325. #define ALLOC_WORDS 2097152
  1326. EOF
  1327.  
  1328. fi
  1329. echo $ac_n "checking for trunc""... $ac_c" 1>&6
  1330. if eval "test \"`echo '$''{'life_cv_trunc'+set}'`\" = set"; then
  1331.   echo $ac_n "(cached) $ac_c" 1>&6
  1332. else
  1333.   cat > conftest.$ac_ext <<EOF
  1334. #line 1335 "configure"
  1335. #include "confdefs.h"
  1336.  
  1337. int main() { return 0; }
  1338. int t() {
  1339. trunc()
  1340. ; return 0; }
  1341. EOF
  1342. if eval $ac_link; then
  1343.   rm -rf conftest*
  1344.   life_cv_trunc=yes
  1345. else
  1346.   rm -rf conftest*
  1347.   life_cv_trunc=no
  1348. fi
  1349. rm -f conftest*
  1350.  
  1351. fi
  1352.  
  1353. if test "$life_cv_trunc" = no; then
  1354.     cat >> confdefs.h <<\EOF
  1355. #define NEED_TRUNC 1
  1356. EOF
  1357.  
  1358. fi
  1359. echo "$ac_t""$life_cv_trunc" 1>&6
  1360. echo $ac_n "checking for socket""... $ac_c" 1>&6
  1361. if eval "test \"`echo '$''{'life_cv_socketlib'+set}'`\" = set"; then
  1362.   echo $ac_n "(cached) $ac_c" 1>&6
  1363. else
  1364.   cat > conftest.$ac_ext <<EOF
  1365. #line 1366 "configure"
  1366. #include "confdefs.h"
  1367.  
  1368. int main() { return 0; }
  1369. int t() {
  1370. socket()
  1371. ; return 0; }
  1372. EOF
  1373. if eval $ac_link; then
  1374.   rm -rf conftest*
  1375.   life_cv_socketlib=yes
  1376. else
  1377.   rm -rf conftest*
  1378.   echo "$ac_t""no" 1>&6
  1379.     echo $ac_n "checking for socket (-lsocket)""... $ac_c" 1>&6
  1380.     life_LIBS="$LIBS"
  1381.     LIBS="$LIBS -lsocket"
  1382.     cat > conftest.$ac_ext <<EOF
  1383. #line 1384 "configure"
  1384. #include "confdefs.h"
  1385.  
  1386. int main() { return 0; }
  1387. int t() {
  1388. socket()
  1389. ; return 0; }
  1390. EOF
  1391. if eval $ac_link; then
  1392.   rm -rf conftest*
  1393.   life_cv_socketlib="-lsocket"
  1394. else
  1395.   rm -rf conftest*
  1396.   life_cv_socketlib=no
  1397. fi
  1398. rm -f conftest*
  1399.  
  1400.     LIBS="$life_LIBS"
  1401. fi
  1402. rm -f conftest*
  1403.  
  1404. fi
  1405.  
  1406. case "$life_cv_socketlib" in
  1407.   yes)    ;;
  1408.   no)    { echo "configure: error: socket not found" 1>&2; exit 1; };;
  1409.   *)     LIBS="$LIBS $life_cv_socketlib";;
  1410. esac
  1411. echo "$ac_t""$life_cv_socketlib" 1>&6
  1412. echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
  1413. if eval "test \"`echo '$''{'life_cv_gethostbyname'+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.  
  1420. int main() { return 0; }
  1421. int t() {
  1422. gethostbyname()
  1423. ; return 0; }
  1424. EOF
  1425. if eval $ac_link; then
  1426.   rm -rf conftest*
  1427.   life_cv_gethostbyname=yes
  1428. else
  1429.   rm -rf conftest*
  1430.   echo "$ac_t""no" 1>&6
  1431.     echo $ac_n "checking for gethostname (-lnsl)""... $ac_c" 1>&6
  1432.     life_LIBS="$LIBS"
  1433.     LIBS="$LIBS -lnsl"
  1434.     cat > conftest.$ac_ext <<EOF
  1435. #line 1436 "configure"
  1436. #include "confdefs.h"
  1437.  
  1438. int main() { return 0; }
  1439. int t() {
  1440. gethostname()
  1441. ; return 0; }
  1442. EOF
  1443. if eval $ac_link; then
  1444.   rm -rf conftest*
  1445.   life_cv_gethostbyname="-lnsl"
  1446. else
  1447.   rm -rf conftest*
  1448.   life_cv_gethostbyname=no
  1449. fi
  1450. rm -f conftest*
  1451.  
  1452.     LIBS="$life_LIBS"
  1453. fi
  1454. rm -f conftest*
  1455.  
  1456. fi
  1457.  
  1458. case "$life_cv_gethostbyname" in
  1459.   yes)    ;;
  1460.   no)    { echo "configure: error: gethostbyname not found" 1>&2; exit 1; };;
  1461.   *)    LIBS="$LIBS $life_cv_gethostbyname";;
  1462. esac
  1463. echo "$ac_t""$life_cv_gethostbyname" 1>&6
  1464. echo $ac_n "checking for bzero""... $ac_c" 1>&6
  1465. if eval "test \"`echo '$''{'life_cv_bzero'+set}'`\" = set"; then
  1466.   echo $ac_n "(cached) $ac_c" 1>&6
  1467. else
  1468.   cat > conftest.$ac_ext <<EOF
  1469. #line 1470 "configure"
  1470. #include "confdefs.h"
  1471.  
  1472. int main() { return 0; }
  1473. int t() {
  1474. bzero()
  1475. ; return 0; }
  1476. EOF
  1477. if eval $ac_link; then
  1478.   rm -rf conftest*
  1479.   life_cv_bzero=yes
  1480. else
  1481.   rm -rf conftest*
  1482.   echo "$ac_t""no" 1>&6
  1483.     echo $ac_n "checking for bzero (-lnsl)""... $ac_c" 1>&6
  1484.     life_LIBS="$LIBS"
  1485.     LIBS="$LIBS -lnsl"
  1486.     cat > conftest.$ac_ext <<EOF
  1487. #line 1488 "configure"
  1488. #include "confdefs.h"
  1489.  
  1490. int main() { return 0; }
  1491. int t() {
  1492. bzero()
  1493. ; return 0; }
  1494. EOF
  1495. if eval $ac_link; then
  1496.   rm -rf conftest*
  1497.   life_cv_bzero="-lucb"
  1498. else
  1499.   rm -rf conftest*
  1500.   life_cv_bzero=no
  1501. fi
  1502. rm -f conftest*
  1503.  
  1504.     LIBS="$life_LIBS"
  1505. fi
  1506. rm -f conftest*
  1507.  
  1508. fi
  1509.  
  1510. case "$life_cv_bzero" in
  1511.   yes)    ;;
  1512.   no)    { echo "configure: error: bzero not found" 1>&2; exit 1; };;
  1513.   *)    LIBS="$LIBS $life_cv_bzero";;
  1514. esac
  1515. echo "$ac_t""$life_cv_bzero" 1>&6
  1516.  
  1517.  
  1518.  
  1519. DBMSOURCE=
  1520. DBMOBJECT=
  1521. DBM_LF=
  1522. DBM_LF_VAL=",dbm_init,dbm_fetch,dbm_store,dbm_delete,dbm_firstkey,dbm_nextkey"
  1523. echo $ac_n "checking for --with-dbm""... $ac_c" 1>&6
  1524. # Check whether --with-dbm or --without-dbm was given.
  1525. withval="$with_dbm"
  1526. if test -n "$withval"; then
  1527.   :
  1528. fi
  1529.  
  1530. if test "x$with_dbm" != xno; then
  1531.     echo "$ac_t""yes" 1>&6
  1532.     echo $ac_n "checking for dbminit""... $ac_c" 1>&6
  1533.     if eval "test \"`echo '$''{'life_cv_dbminit'+set}'`\" = set"; then
  1534.   echo $ac_n "(cached) $ac_c" 1>&6
  1535. else
  1536.   cat > conftest.$ac_ext <<EOF
  1537. #line 1538 "configure"
  1538. #include "confdefs.h"
  1539.  
  1540. int main() { return 0; }
  1541. int t() {
  1542. dbminit()
  1543. ; return 0; }
  1544. EOF
  1545. if eval $ac_link; then
  1546.   rm -rf conftest*
  1547.   life_cv_dbminit=yes
  1548. else
  1549.   rm -rf conftest*
  1550.   echo "$ac_t""no" 1>&6
  1551.         echo $ac_n "checking for dbminit (-ldbm)""... $ac_c" 1>&6
  1552.         life_LIBS="$LIBS"
  1553.         LIBS="$LIBS -ldbm"
  1554.         cat > conftest.$ac_ext <<EOF
  1555. #line 1556 "configure"
  1556. #include "confdefs.h"
  1557.  
  1558. int main() { return 0; }
  1559. int t() {
  1560. dbminit()
  1561. ; return 0; }
  1562. EOF
  1563. if eval $ac_link; then
  1564.   rm -rf conftest*
  1565.   life_cv_dbminit="-ldbm"
  1566. else
  1567.   rm -rf conftest*
  1568.   life_cv_dbminit=no
  1569. fi
  1570. rm -f conftest*
  1571.  
  1572.         LIBS="$life_LIBS"
  1573. fi
  1574. rm -f conftest*
  1575.  
  1576. fi
  1577.  
  1578.     case "$life_cv_dbminit" in
  1579.       yes)    cat >> confdefs.h <<\EOF
  1580. #define LIFE_DBM 1
  1581. EOF
  1582.  
  1583.         DBMSOURCE='sys_dbm.c'
  1584.         DBMOBJECT='sys_dbm.o'
  1585.         DBM_LF="$DBM_LF_VAL";;
  1586.       no)    ;;
  1587.       *)    cat >> confdefs.h <<\EOF
  1588. #define LIFE_DBM 1
  1589. EOF
  1590.  
  1591.         DBMSOURCE='sys_dbm.c'
  1592.         DBMOBJECT='sys_dbm.o'
  1593.         DBM_LF="$DBM_LF_VAL"
  1594.         LIBS="$LIBS $life_cv_dbminit";;
  1595.     esac
  1596.     echo "$ac_t""$life_cv_dbminit" 1>&6
  1597. else
  1598.     echo "$ac_t""no" 1>&6
  1599. fi
  1600. trap '' 1 2 15
  1601. cat > confcache <<\EOF
  1602. # This file is a shell script that caches the results of configure
  1603. # tests run on this system so they can be shared between configure
  1604. # scripts and configure runs.  It is not useful on other systems.
  1605. # If it contains results you don't want to keep, you may remove or edit it.
  1606. #
  1607. # By default, configure uses ./config.cache as the cache file,
  1608. # creating it if it does not exist already.  You can give configure
  1609. # the --cache-file=FILE option to use a different cache file; that is
  1610. # what configure does when it calls configure scripts in
  1611. # subdirectories, so they share the cache.
  1612. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1613. # config.status only pays attention to the cache file if you give it the
  1614. # --recheck option to rerun configure.
  1615. #
  1616. EOF
  1617. # Ultrix sh set writes to stderr and can't be redirected directly,
  1618. # and sets the high bit in the cache file unless we assign to the vars.
  1619. (set) 2>&1 |
  1620.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  1621.   >> confcache
  1622. if cmp -s $cache_file confcache; then
  1623.   :
  1624. else
  1625.   if test -w $cache_file; then
  1626.     echo "updating cache $cache_file"
  1627.     cat confcache > $cache_file
  1628.   else
  1629.     echo "not updating unwritable cache $cache_file"
  1630.   fi
  1631. fi
  1632. rm -f confcache
  1633.  
  1634. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1635.  
  1636. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1637. # Let make expand exec_prefix.
  1638. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1639.  
  1640. # Any assignment to VPATH causes Sun make to only execute
  1641. # the first set of double-colon rules, so remove it if not needed.
  1642. # If there is a colon in the path, we need to keep it.
  1643. if test "x$srcdir" = x.; then
  1644.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  1645. fi
  1646.  
  1647. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1648.  
  1649. # Transform confdefs.h into DEFS.
  1650. # Protect against shell expansion while executing Makefile rules.
  1651. # Protect against Makefile macro expansion.
  1652. cat > conftest.defs <<\EOF
  1653. s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g
  1654. s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
  1655. s%\[%\\&%g
  1656. s%\]%\\&%g
  1657. s%\$%$$%g
  1658. EOF
  1659. DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  1660. rm -f conftest.defs
  1661.  
  1662.  
  1663. # Without the "./", some shells look in PATH for config.status.
  1664. : ${CONFIG_STATUS=./config.status}
  1665.  
  1666. echo creating $CONFIG_STATUS
  1667. rm -f $CONFIG_STATUS
  1668. cat > $CONFIG_STATUS <<EOF
  1669. #! /bin/sh
  1670. # Generated automatically by configure.
  1671. # Run this file to recreate the current configuration.
  1672. # This directory was configured as follows,
  1673. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1674. #
  1675. # $0 $ac_configure_args
  1676. #
  1677. # Compiler output produced by configure, useful for debugging
  1678. # configure, is in ./config.log if it exists.
  1679.  
  1680. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1681. for ac_option
  1682. do
  1683.   case "\$ac_option" in
  1684.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1685.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1686.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1687.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1688.     echo "$CONFIG_STATUS generated by autoconf version 2.4"
  1689.     exit 0 ;;
  1690.   -help | --help | --hel | --he | --h)
  1691.     echo "\$ac_cs_usage"; exit 0 ;;
  1692.   *) echo "\$ac_cs_usage"; exit 1 ;;
  1693.   esac
  1694. done
  1695.  
  1696. ac_given_srcdir=$srcdir
  1697. ac_given_INSTALL="$INSTALL"
  1698.  
  1699. trap 'rm -fr `echo "Makefile built_ins.lf" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1700.  
  1701. # Protect against being on the right side of a sed subst in config.status. 
  1702. sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; 
  1703.  s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
  1704. $ac_vpsub
  1705. $extrasub
  1706. s%@CFLAGS@%$CFLAGS%g
  1707. s%@CPPFLAGS@%$CPPFLAGS%g
  1708. s%@CXXFLAGS@%$CXXFLAGS%g
  1709. s%@DEFS@%$DEFS%g
  1710. s%@LDFLAGS@%$LDFLAGS%g
  1711. s%@LIBS@%$LIBS%g
  1712. s%@exec_prefix@%$exec_prefix%g
  1713. s%@prefix@%$prefix%g
  1714. s%@program_transform_name@%$program_transform_name%g
  1715. s%@host@%$host%g
  1716. s%@host_alias@%$host_alias%g
  1717. s%@host_cpu@%$host_cpu%g
  1718. s%@host_vendor@%$host_vendor%g
  1719. s%@host_os@%$host_os%g
  1720. s%@SET_MAKE@%$SET_MAKE%g
  1721. s%@CC@%$CC%g
  1722. s%@RANLIB@%$RANLIB%g
  1723. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1724. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1725. s%@MKDIRHIER@%$MKDIRHIER%g
  1726. s%@MKDEP@%$MKDEP%g
  1727. s%@XSOURCE@%$XSOURCE%g
  1728. s%@XOBJECT@%$XOBJECT%g
  1729. s%@XINCLUDE@%$XINCLUDE%g
  1730. s%@XLIBRARIES@%$XLIBRARIES%g
  1731. s%@x_includes@%$x_includes%g
  1732. s%@CPP@%$CPP%g
  1733. s%@X_CFLAGS@%$X_CFLAGS%g
  1734. s%@X_PRE_LIBS@%$X_PRE_LIBS%g
  1735. s%@X_LIBS@%$X_LIBS%g
  1736. s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
  1737. s%@DBMSOURCE@%$DBMSOURCE%g
  1738. s%@DBMOBJECT@%$DBMOBJECT%g
  1739. s%@DBM_LF@%$DBM_LF%g
  1740.  
  1741. CEOF
  1742. EOF
  1743. cat >> $CONFIG_STATUS <<EOF
  1744.  
  1745. CONFIG_FILES=\${CONFIG_FILES-"Makefile built_ins.lf"}
  1746. EOF
  1747. cat >> $CONFIG_STATUS <<\EOF
  1748. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1749.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  1750.   case "$ac_file" in
  1751.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  1752.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1753.   *) ac_file_in="${ac_file}.in" ;;
  1754.   esac
  1755.  
  1756.   # Adjust relative srcdir, etc. for subdirectories.
  1757.  
  1758.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1759.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1760.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1761.     # The file is in a subdirectory.
  1762.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  1763.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  1764.     # A "../" for each directory in $ac_dir_suffix.
  1765.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1766.   else
  1767.     ac_dir_suffix= ac_dots=
  1768.   fi
  1769.  
  1770.   case "$ac_given_srcdir" in
  1771.   .)  srcdir=.
  1772.       if test -z "$ac_dots"; then top_srcdir=.
  1773.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1774.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1775.   *) # Relative path.
  1776.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1777.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1778.   esac
  1779.  
  1780.   case "$ac_given_INSTALL" in
  1781.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  1782.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  1783.   esac
  1784.   echo creating "$ac_file"
  1785.   rm -f "$ac_file"
  1786.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1787.   case "$ac_file" in
  1788.   *Makefile*) ac_comsub="1i\\
  1789. # $configure_input" ;;
  1790.   *) ac_comsub= ;;
  1791.   esac
  1792.   sed -e "$ac_comsub
  1793. s%@configure_input@%$configure_input%g
  1794. s%@srcdir@%$srcdir%g
  1795. s%@top_srcdir@%$top_srcdir%g
  1796. s%@INSTALL@%$INSTALL%g
  1797. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  1798. fi; done
  1799. rm -f conftest.subs
  1800.  
  1801.  
  1802.  
  1803. exit 0
  1804. EOF
  1805. chmod +x $CONFIG_STATUS
  1806. rm -fr confdefs* $ac_clean_files
  1807. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  1808.  
  1809.