home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / lisp / stk-3.002 / stk-3 / STk-3.1 / configure < prev    next >
Encoding:
Text File  |  1996-07-21  |  51.5 KB  |  1,889 lines

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