home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextDeveloper / Source / GNU / bison / configure < prev    next >
Text File  |  1996-06-21  |  44KB  |  1,514 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.  
  15. # Initialize some variables set by options.
  16. # The variables have the same names as the options, with
  17. # dashes changed to underlines.
  18. build=NONE
  19. cache_file=./config.cache
  20. exec_prefix=NONE
  21. host=NONE
  22. no_create=
  23. nonopt=NONE
  24. no_recursion=
  25. prefix=NONE
  26. program_prefix=NONE
  27. program_suffix=NONE
  28. program_transform_name=s,x,x,
  29. silent=
  30. site=
  31. srcdir=
  32. target=NONE
  33. verbose=
  34. x_includes=NONE
  35. x_libraries=NONE
  36. bindir='${exec_prefix}/bin'
  37. sbindir='${exec_prefix}/sbin'
  38. libexecdir='${exec_prefix}/libexec'
  39. datadir='${prefix}/share'
  40. sysconfdir='${prefix}/etc'
  41. sharedstatedir='${prefix}/com'
  42. localstatedir='${prefix}/var'
  43. libdir='${exec_prefix}/lib'
  44. includedir='${prefix}/include'
  45. oldincludedir='/usr/include'
  46. infodir='${prefix}/info'
  47. mandir='${prefix}/man'
  48.  
  49. # Initialize some other variables.
  50. subdirs=
  51. MFLAGS= MAKEFLAGS=
  52.  
  53. # Set name of null device.
  54. if [ "x$null" = x ]; then
  55.   if [ -c /dev/null ]; then
  56.     null=/dev/null
  57.   else    # host is probably Windows NT
  58.     null=NUL:
  59.   fi
  60. fi
  61.  
  62. # Set extension for binary executables.
  63. if [ "x$exe" = x -a ! -c /dev/null ]; then    # host is probably Windows NT
  64.   exe=.exe
  65. fi
  66.  
  67. ac_prev=
  68. for ac_option
  69. do
  70.  
  71.   # If the previous option needs an argument, assign it.
  72.   if test -n "$ac_prev"; then
  73.     eval "$ac_prev=\$ac_option"
  74.     ac_prev=
  75.     continue
  76.   fi
  77.  
  78.   case "$ac_option" in
  79.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  80.   *) ac_optarg= ;;
  81.   esac
  82.  
  83.   # Accept the important Cygnus configure options, so we can diagnose typos.
  84.  
  85.   case "$ac_option" in
  86.  
  87.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  88.     ac_prev=bindir ;;
  89.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  90.     bindir="$ac_optarg" ;;
  91.  
  92.   -build | --build | --buil | --bui | --bu)
  93.     ac_prev=build ;;
  94.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  95.     build="$ac_optarg" ;;
  96.  
  97.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  98.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  99.     ac_prev=cache_file ;;
  100.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  101.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  102.     cache_file="$ac_optarg" ;;
  103.  
  104.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  105.     ac_prev=datadir ;;
  106.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  107.   | --da=*)
  108.     datadir="$ac_optarg" ;;
  109.  
  110.   -disable-* | --disable-*)
  111.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  112.     # Reject names that are not valid shell variable names.
  113.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  114.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  115.     fi
  116.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  117.     eval "enable_${ac_feature}=no" ;;
  118.  
  119.   -enable-* | --enable-*)
  120.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  121.     # Reject names that are not valid shell variable names.
  122.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  123.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  124.     fi
  125.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  126.     case "$ac_option" in
  127.       *=*) ;;
  128.       *) ac_optarg=yes ;;
  129.     esac
  130.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  131.  
  132.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  133.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  134.   | --exec | --exe | --ex)
  135.     ac_prev=exec_prefix ;;
  136.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  137.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  138.   | --exec=* | --exe=* | --ex=*)
  139.     exec_prefix="$ac_optarg" ;;
  140.  
  141.   -gas | --gas | --ga | --g)
  142.     # Obsolete; use --with-gas.
  143.     with_gas=yes ;;
  144.  
  145.   -help | --help | --hel | --he)
  146.     # Omit some internal or obsolete options to make the list less imposing.
  147.     # This message is too long to be a string in the A/UX 3.1 sh.
  148.     cat << EOF
  149. Usage: configure [options] [host]
  150. Options: [defaults in brackets after descriptions]
  151. Configuration:
  152.   --cache-file=FILE       cache test results in FILE
  153.   --help                  print this message
  154.   --no-create             do not create output files
  155.   --quiet, --silent       do not print \`checking...' messages
  156.   --version               print the version of autoconf that created configure
  157. Directory and file names:
  158.   --prefix=PREFIX         install architecture-independent files in PREFIX
  159.                           [$ac_default_prefix]
  160.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  161.                           [same as prefix]
  162.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  163.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  164.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  165.   --datadir=DIR           read-only architecture-independent data in DIR
  166.                           [PREFIX/share]
  167.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  168.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  169.                           [PREFIX/com]
  170.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  171.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  172.   --includedir=DIR        C header files in DIR [PREFIX/include]
  173.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  174.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  175.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  176.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  177.   --program-prefix=PREFIX prepend PREFIX to installed program names
  178.   --program-suffix=SUFFIX append SUFFIX to installed program names
  179.   --program-transform-name=PROGRAM
  180.                           run sed PROGRAM on installed program names
  181. EOF
  182.     cat << EOF
  183. Host type:
  184.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  185.   --host=HOST             configure for HOST [guessed]
  186.   --target=TARGET         configure for TARGET [TARGET=HOST]
  187. Features and packages:
  188.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  189.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  190.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  191.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  192.   --x-includes=DIR        X include files are in DIR
  193.   --x-libraries=DIR       X library files are in DIR
  194. EOF
  195.     if test -n "$ac_help"; then
  196.       echo "--enable and --with options recognized:$ac_help"
  197.     fi
  198.     exit 0 ;;
  199.  
  200.   -host | --host | --hos | --ho)
  201.     ac_prev=host ;;
  202.   -host=* | --host=* | --hos=* | --ho=*)
  203.     host="$ac_optarg" ;;
  204.  
  205.   -includedir | --includedir | --includedi | --included | --include \
  206.   | --includ | --inclu | --incl | --inc)
  207.     ac_prev=includedir ;;
  208.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  209.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  210.     includedir="$ac_optarg" ;;
  211.  
  212.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  213.     ac_prev=infodir ;;
  214.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  215.     infodir="$ac_optarg" ;;
  216.  
  217.   -libdir | --libdir | --libdi | --libd)
  218.     ac_prev=libdir ;;
  219.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  220.     libdir="$ac_optarg" ;;
  221.  
  222.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  223.   | --libexe | --libex | --libe)
  224.     ac_prev=libexecdir ;;
  225.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  226.   | --libexe=* | --libex=* | --libe=*)
  227.     libexecdir="$ac_optarg" ;;
  228.  
  229.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  230.   | --localstate | --localstat | --localsta | --localst \
  231.   | --locals | --local | --loca | --loc | --lo)
  232.     ac_prev=localstatedir ;;
  233.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  234.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  235.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  236.     localstatedir="$ac_optarg" ;;
  237.  
  238.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  239.     ac_prev=mandir ;;
  240.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  241.     mandir="$ac_optarg" ;;
  242.  
  243.   -nfp | --nfp | --nf)
  244.     # Obsolete; use --without-fp.
  245.     with_fp=no ;;
  246.  
  247.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  248.   | --no-cr | --no-c)
  249.     no_create=yes ;;
  250.  
  251.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  252.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  253.     no_recursion=yes ;;
  254.  
  255.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  256.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  257.   | --oldin | --oldi | --old | --ol | --o)
  258.     ac_prev=oldincludedir ;;
  259.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  260.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  261.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  262.     oldincludedir="$ac_optarg" ;;
  263.  
  264.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  265.     ac_prev=prefix ;;
  266.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  267.     prefix="$ac_optarg" ;;
  268.  
  269.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  270.   | --program-pre | --program-pr | --program-p)
  271.     ac_prev=program_prefix ;;
  272.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  273.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  274.     program_prefix="$ac_optarg" ;;
  275.  
  276.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  277.   | --program-suf | --program-su | --program-s)
  278.     ac_prev=program_suffix ;;
  279.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  280.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  281.     program_suffix="$ac_optarg" ;;
  282.  
  283.   -program-transform-name | --program-transform-name \
  284.   | --program-transform-nam | --program-transform-na \
  285.   | --program-transform-n | --program-transform- \
  286.   | --program-transform | --program-transfor \
  287.   | --program-transfo | --program-transf \
  288.   | --program-trans | --program-tran \
  289.   | --progr-tra | --program-tr | --program-t)
  290.     ac_prev=program_transform_name ;;
  291.   -program-transform-name=* | --program-transform-name=* \
  292.   | --program-transform-nam=* | --program-transform-na=* \
  293.   | --program-transform-n=* | --program-transform-=* \
  294.   | --program-transform=* | --program-transfor=* \
  295.   | --program-transfo=* | --program-transf=* \
  296.   | --program-trans=* | --program-tran=* \
  297.   | --progr-tra=* | --program-tr=* | --program-t=*)
  298.     program_transform_name="$ac_optarg" ;;
  299.  
  300.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  301.   | -silent | --silent | --silen | --sile | --sil)
  302.     silent=yes ;;
  303.  
  304.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  305.     ac_prev=sbindir ;;
  306.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  307.   | --sbi=* | --sb=*)
  308.     sbindir="$ac_optarg" ;;
  309.  
  310.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  311.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  312.   | --sharedst | --shareds | --shared | --share | --shar \
  313.   | --sha | --sh)
  314.     ac_prev=sharedstatedir ;;
  315.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  316.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  317.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  318.   | --sha=* | --sh=*)
  319.     sharedstatedir="$ac_optarg" ;;
  320.  
  321.   -site | --site | --sit)
  322.     ac_prev=site ;;
  323.   -site=* | --site=* | --sit=*)
  324.     site="$ac_optarg" ;;
  325.  
  326.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  327.     ac_prev=srcdir ;;
  328.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  329.     srcdir="$ac_optarg" ;;
  330.  
  331.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  332.   | --syscon | --sysco | --sysc | --sys | --sy)
  333.     ac_prev=sysconfdir ;;
  334.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  335.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  336.     sysconfdir="$ac_optarg" ;;
  337.  
  338.   -target | --target | --targe | --targ | --tar | --ta | --t)
  339.     ac_prev=target ;;
  340.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  341.     target="$ac_optarg" ;;
  342.  
  343.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  344.     verbose=yes ;;
  345.  
  346.   -version | --version | --versio | --versi | --vers)
  347.     echo "configure generated by autoconf version 2.7"
  348.     exit 0 ;;
  349.  
  350.   -with-* | --with-*)
  351.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  352.     # Reject names that are not valid shell variable names.
  353.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  354.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  355.     fi
  356.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  357.     case "$ac_option" in
  358.       *=*) ;;
  359.       *) ac_optarg=yes ;;
  360.     esac
  361.     eval "with_${ac_package}='$ac_optarg'" ;;
  362.  
  363.   -without-* | --without-*)
  364.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  365.     # Reject names that are not valid shell variable names.
  366.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  367.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  368.     fi
  369.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  370.     eval "with_${ac_package}=no" ;;
  371.  
  372.   --x)
  373.     # Obsolete; use --with-x.
  374.     with_x=yes ;;
  375.  
  376.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  377.   | --x-incl | --x-inc | --x-in | --x-i)
  378.     ac_prev=x_includes ;;
  379.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  380.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  381.     x_includes="$ac_optarg" ;;
  382.  
  383.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  384.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  385.     ac_prev=x_libraries ;;
  386.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  387.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  388.     x_libraries="$ac_optarg" ;;
  389.  
  390.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  391.     ;;
  392.  
  393.   *)
  394.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  395.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  396.     fi
  397.     if test "x$nonopt" != xNONE; then
  398.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  399.     fi
  400.     nonopt="$ac_option"
  401.     ;;
  402.  
  403.   esac
  404. done
  405.  
  406. if test -n "$ac_prev"; then
  407.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  408. fi
  409.  
  410. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  411.  
  412. # File descriptor usage:
  413. # 0 standard input
  414. # 1 file creation
  415. # 2 errors and warnings
  416. # 3 some systems may open it to /dev/tty
  417. # 4 used on the Kubota Titan
  418. # 6 checking for... messages and results
  419. # 5 compiler messages saved in config.log
  420. if test "$silent" = yes; then
  421.   exec 6>$null
  422. else
  423.   exec 6>&1
  424. fi
  425. exec 5>./config.log
  426.  
  427. echo "\
  428. This file contains any messages produced by compilers while
  429. running configure, to aid debugging if configure makes a mistake.
  430. " 1>&5
  431.  
  432. # Strip out --no-create and --no-recursion so they do not pile up.
  433. # Also quote any args containing shell metacharacters.
  434. ac_configure_args=
  435. for ac_arg
  436. do
  437.   case "$ac_arg" in
  438.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  439.   | --no-cr | --no-c) ;;
  440.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  441.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  442.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  443.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  444.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  445.   esac
  446. done
  447.  
  448. # NLS nuisances.
  449. # Only set LANG and LC_ALL to C if already set.
  450. # These must not be set unconditionally because not all systems understand
  451. # e.g. LANG=C (notably SCO).
  452. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  453. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  454.  
  455. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  456. rm -rf conftest* confdefs.h
  457. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  458. echo > confdefs.h
  459.  
  460. # A filename unique to this package, relative to the directory that
  461. # configure is in, which we can look for to find out if srcdir is correct.
  462. ac_unique_file=reduce.c
  463.  
  464. # Find the source files, if location was not specified.
  465. if test -z "$srcdir"; then
  466.   ac_srcdir_defaulted=yes
  467.   # Try the directory containing this script, then its parent.
  468.   ac_prog=$0
  469.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  470.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  471.   srcdir=$ac_confdir
  472.   if test ! -r $srcdir/$ac_unique_file; then
  473.     srcdir=..
  474.   fi
  475. else
  476.   ac_srcdir_defaulted=no
  477. fi
  478. if test ! -r $srcdir/$ac_unique_file; then
  479.   if test "$ac_srcdir_defaulted" = yes; then
  480.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  481.   else
  482.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  483.   fi
  484. fi
  485. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  486.  
  487. # Prefer explicitly selected file to automatically selected ones.
  488. if test -z "$CONFIG_SITE"; then
  489.   if test "x$prefix" != xNONE; then
  490.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  491.   else
  492.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  493.   fi
  494. fi
  495. for ac_site_file in $CONFIG_SITE; do
  496.   if test -r "$ac_site_file"; then
  497.     echo "loading site script $ac_site_file"
  498.     . "$ac_site_file"
  499.   fi
  500. done
  501.  
  502. if test -r "$cache_file"; then
  503.   echo "loading cache $cache_file"
  504.   . $cache_file
  505. else
  506.   echo "creating cache $cache_file"
  507.   > $cache_file
  508. fi
  509.  
  510. ac_ext=c
  511. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  512. ac_cpp='echo $CPP $CPPFLAGS 1>&5;
  513. $CPP $CPPFLAGS'
  514. ac_compile='echo ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5;
  515. ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
  516. ac_link='echo ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5;
  517. ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
  518.  
  519. if (echo "testing\c"; echo 1,2,3) | grep c >$null; then
  520.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  521.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >$null; then
  522.     ac_n= ac_c='
  523. ' ac_t='    '
  524.   else
  525.     ac_n=-n ac_c= ac_t=
  526.   fi
  527. else
  528.   ac_n= ac_c='\c' ac_t=
  529. fi
  530.  
  531.  
  532.  
  533. # Extract the first word of "gcc", so it can be a program name with args.
  534. set dummy gcc; ac_word=$2
  535. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  536. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  537.   echo $ac_n "(cached) $ac_c" 1>&6
  538. else
  539.   if test -n "$CC"; then
  540.   ac_cv_prog_CC="$CC" # Let the user override the test.
  541. else
  542.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  543.   for ac_dir in $PATH; do
  544.     test -z "$ac_dir" && ac_dir=.
  545.     if test -f $ac_dir/$ac_word; then
  546.       ac_cv_prog_CC="gcc"
  547.       break
  548.     fi
  549.   done
  550.   IFS="$ac_save_ifs"
  551.   test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
  552. fi
  553. fi
  554. CC="$ac_cv_prog_CC"
  555. if test -n "$CC"; then
  556.   echo "$ac_t""$CC" 1>&6
  557. else
  558.   echo "$ac_t""no" 1>&6
  559. fi
  560.  
  561.  
  562. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  563. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  564.   echo $ac_n "(cached) $ac_c" 1>&6
  565. else
  566.   cat > conftest.c <<EOF
  567. #ifdef __GNUC__
  568.   yes;
  569. #endif
  570. EOF
  571. if ${CC-cc} -E conftest.c 2>&5 | egrep yes >$null 2>&1; then
  572.   ac_cv_prog_gcc=yes
  573. else
  574.   ac_cv_prog_gcc=no
  575. fi
  576. fi
  577.  
  578. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  579. if test $ac_cv_prog_gcc = yes; then
  580.   GCC=yes
  581.   if test "${CFLAGS+set}" != set; then
  582.     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  583. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  584.   echo $ac_n "(cached) $ac_c" 1>&6
  585. else
  586.   echo 'void f(){}' > conftest.c
  587. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  588.   ac_cv_prog_gcc_g=yes
  589. else
  590.   ac_cv_prog_gcc_g=no
  591. fi
  592. rm -f conftest*
  593.  
  594. fi
  595.  
  596. echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  597.     if test $ac_cv_prog_gcc_g = yes; then
  598.       CFLAGS="-g -O"
  599.     else
  600.       CFLAGS="-O"
  601.     fi
  602.   fi
  603. else
  604.   GCC=
  605.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  606. fi
  607.  
  608. ac_aux_dir=
  609. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  610.   if test -f $ac_dir/install-sh; then
  611.     ac_aux_dir=$ac_dir
  612.     ac_install_sh="$ac_aux_dir/install-sh -c"
  613.     break
  614.   elif test -f $ac_dir/install.sh; then
  615.     ac_aux_dir=$ac_dir
  616.     ac_install_sh="$ac_aux_dir/install.sh -c"
  617.     break
  618.   fi
  619. done
  620. if test -z "$ac_aux_dir"; then
  621.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  622. fi
  623. ac_config_guess=$ac_aux_dir/config.guess
  624. ac_config_sub=$ac_aux_dir/config.sub
  625. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  626.  
  627. # Find a good install program.  We prefer a C program (faster),
  628. # so one script is as good as another.  But avoid the broken or
  629. # incompatible versions:
  630. # SysV /etc/install, /usr/sbin/install
  631. # SunOS /usr/etc/install
  632. # IRIX /sbin/install
  633. # AIX /bin/install
  634. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  635. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  636. # ./install, which can be erroneously created by make from ./install.sh.
  637. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  638. if test -z "$INSTALL"; then
  639. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  640.   echo $ac_n "(cached) $ac_c" 1>&6
  641. else
  642.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  643.   for ac_dir in $PATH; do
  644.     # Account for people who put trailing slashes in PATH elements.
  645.     case "$ac_dir/" in
  646.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  647.     *)
  648.       # OSF1 and SCO ODT 3.0 have their own names for install.
  649.       for ac_prog in ginstall installbsd scoinst install; do
  650.         if test -f $ac_dir/$ac_prog; then
  651.       if test $ac_prog = install &&
  652.             grep dspmsg $ac_dir/$ac_prog >$null 2>&1; then
  653.         # AIX install.  It has an incompatible calling convention.
  654.         # OSF/1 installbsd also uses dspmsg, but is usable.
  655.         :
  656.       else
  657.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  658.         break 2
  659.       fi
  660.     fi
  661.       done
  662.       ;;
  663.     esac
  664.   done
  665.   IFS="$ac_save_ifs"
  666.  
  667. fi
  668.   if test "${ac_cv_path_install+set}" = set; then
  669.     INSTALL="$ac_cv_path_install"
  670.   else
  671.     # As a last resort, use the slow shell script.  We don't cache a
  672.     # path for INSTALL within a source directory, because that will
  673.     # break other packages using the cache if that directory is
  674.     # removed, or if the path is relative.
  675.     INSTALL="$ac_install_sh"
  676.   fi
  677. fi
  678. echo "$ac_t""$INSTALL" 1>&6
  679.  
  680. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  681. # It thinks the first close brace ends the variable substitution.
  682. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  683.  
  684. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  685.  
  686.  
  687. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  688. # On Suns, sometimes $CPP names a directory.
  689. if test -n "$CPP" && test -d "$CPP"; then
  690.   CPP=
  691. fi
  692. if test -z "$CPP"; then
  693. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  694.   echo $ac_n "(cached) $ac_c" 1>&6
  695. else
  696.     # This must be in double quotes, not single quotes, because CPP may get
  697.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  698.   CPP="${CC-cc} -E"
  699.   # On the NeXT, cc -E runs the code through the compiler's parser,
  700.   # not just through cpp.
  701.   cat > conftest.$ac_ext <<EOF
  702. #line 689 "configure"
  703. #include "confdefs.h"
  704. #include <assert.h>
  705. Syntax Error
  706. EOF
  707. eval "$ac_cpp conftest.$ac_ext >$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="${CC-cc} -E -traditional-cpp"
  715.   cat > conftest.$ac_ext <<EOF
  716. #line 703 "configure"
  717. #include "confdefs.h"
  718. #include <assert.h>
  719. Syntax Error
  720. EOF
  721. eval "$ac_cpp conftest.$ac_ext >$null 2>conftest.out"
  722. ac_err=`grep -v '^ *+' conftest.out`
  723. if test -z "$ac_err"; then
  724.   :
  725. else
  726.   echo "$ac_err" >&5
  727.   rm -rf conftest*
  728.   CPP=/lib/cpp
  729. fi
  730. rm -f conftest*
  731. fi
  732. rm -f conftest*
  733.   ac_cv_prog_CPP="$CPP"
  734. fi
  735.   CPP="$ac_cv_prog_CPP"
  736. else
  737.   ac_cv_prog_CPP="$CPP"
  738. fi
  739. echo "$ac_t""$CPP" 1>&6
  740.  
  741. ac_safe=`echo "minix/config.h" | tr './\055' '___'`
  742. echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
  743. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  744.   echo $ac_n "(cached) $ac_c" 1>&6
  745. else
  746.   cat > conftest.$ac_ext <<EOF
  747. #line 734 "configure"
  748. #include "confdefs.h"
  749. #include <minix/config.h>
  750. EOF
  751. eval "$ac_cpp conftest.$ac_ext >$null 2>conftest.out"
  752. ac_err=`grep -v '^ *+' conftest.out`
  753. if test -z "$ac_err"; then
  754.   rm -rf conftest*
  755.   eval "ac_cv_header_$ac_safe=yes"
  756. else
  757.   echo "$ac_err" >&5
  758.   rm -rf conftest*
  759.   eval "ac_cv_header_$ac_safe=no"
  760. fi
  761. rm -f conftest*
  762. fi
  763. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  764.   echo "$ac_t""yes" 1>&6
  765.   MINIX=yes
  766. else
  767.   echo "$ac_t""no" 1>&6
  768. MINIX=
  769. fi
  770.  
  771. if test "$MINIX" = yes; then
  772.   cat >> confdefs.h <<\EOF
  773. #define _POSIX_SOURCE 1
  774. EOF
  775.  
  776.   cat >> confdefs.h <<\EOF
  777. #define _POSIX_1_SOURCE 2
  778. EOF
  779.  
  780.   cat >> confdefs.h <<\EOF
  781. #define _MINIX 1
  782. EOF
  783.  
  784. fi
  785.  
  786. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  787. if test -d /etc/conf/kconfig.d &&
  788.   grep _POSIX_VERSION /usr/include/sys/unistd.h >$null 2>&1
  789. then
  790.   echo "$ac_t""yes" 1>&6
  791.   ISC=yes # If later tests want to check for ISC.
  792.   cat >> confdefs.h <<\EOF
  793. #define _POSIX_SOURCE 1
  794. EOF
  795.  
  796.   if test "$GCC" = yes; then
  797.     CC="$CC -posix"
  798.   else
  799.     CC="$CC -Xp"
  800.   fi
  801. else
  802.   echo "$ac_t""no" 1>&6
  803.   ISC=
  804. fi
  805.  
  806.  
  807. # If we cannot run a trivial program, we must be cross compiling.
  808. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  809. if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  810.   echo $ac_n "(cached) $ac_c" 1>&6
  811. else
  812.   if test "$cross_compiling" = yes; then
  813.   ac_cv_c_cross=yes
  814. else
  815. cat > conftest.$ac_ext <<EOF
  816. #line 803 "configure"
  817. #include "confdefs.h"
  818. main(){return(0);}
  819. EOF
  820. eval $ac_link
  821. if test -s conftest$exe && (./conftest; exit) 2>$null; then
  822.   ac_cv_c_cross=no
  823. else
  824.   ac_cv_c_cross=yes
  825. fi
  826. fi
  827. rm -fr conftest*
  828. fi
  829.  
  830. echo "$ac_t""$ac_cv_c_cross" 1>&6
  831. cross_compiling=$ac_cv_c_cross
  832.  
  833. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  834. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  835.   echo $ac_n "(cached) $ac_c" 1>&6
  836. else
  837.   cat > conftest.$ac_ext <<EOF
  838. #line 825 "configure"
  839. #include "confdefs.h"
  840. #include <stdlib.h>
  841. #include <stdarg.h>
  842. #include <string.h>
  843. #include <float.h>
  844. EOF
  845. eval "$ac_cpp conftest.$ac_ext >$null 2>conftest.out"
  846. ac_err=`grep -v '^ *+' conftest.out`
  847. if test -z "$ac_err"; then
  848.   rm -rf conftest*
  849.   ac_cv_header_stdc=yes
  850. else
  851.   echo "$ac_err" >&5
  852.   rm -rf conftest*
  853.   ac_cv_header_stdc=no
  854. fi
  855. rm -f conftest*
  856.  
  857. if test $ac_cv_header_stdc = yes; then
  858.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  859. cat > conftest.$ac_ext <<EOF
  860. #line 847 "configure"
  861. #include "confdefs.h"
  862. #include <string.h>
  863. EOF
  864. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  865.   egrep "memchr" >$null 2>&1; then
  866.   :
  867. else
  868.   rm -rf conftest*
  869.   ac_cv_header_stdc=no
  870. fi
  871. rm -f conftest*
  872.  
  873. fi
  874.  
  875. if test $ac_cv_header_stdc = yes; then
  876.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  877. cat > conftest.$ac_ext <<EOF
  878. #line 865 "configure"
  879. #include "confdefs.h"
  880. #include <stdlib.h>
  881. EOF
  882. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  883.   egrep "free" >$null 2>&1; then
  884.   :
  885. else
  886.   rm -rf conftest*
  887.   ac_cv_header_stdc=no
  888. fi
  889. rm -f conftest*
  890.  
  891. fi
  892.  
  893. if test $ac_cv_header_stdc = yes; then
  894.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  895. if test "$cross_compiling" = yes; then
  896.   :
  897. else
  898. cat > conftest.$ac_ext <<EOF
  899. #line 886 "configure"
  900. #include "confdefs.h"
  901. #include <ctype.h>
  902. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  903. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  904. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  905. int main () { int i; for (i = 0; i < 256; i++)
  906. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  907. exit (0); }
  908.  
  909. EOF
  910. eval $ac_link
  911. if test -s conftest$exe && (./conftest; exit) 2>$null; then
  912.   :
  913. else
  914.   ac_cv_header_stdc=no
  915. fi
  916. fi
  917. rm -fr conftest*
  918. fi
  919. fi
  920.  
  921. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  922. if test $ac_cv_header_stdc = yes; then
  923.   cat >> confdefs.h <<\EOF
  924. #define STDC_HEADERS 1
  925. EOF
  926.  
  927. fi
  928.  
  929. for ac_hdr in string.h stdlib.h memory.h
  930. do
  931. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  932. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  933. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  934.   echo $ac_n "(cached) $ac_c" 1>&6
  935. else
  936.   cat > conftest.$ac_ext <<EOF
  937. #line 924 "configure"
  938. #include "confdefs.h"
  939. #include <$ac_hdr>
  940. EOF
  941. eval "$ac_cpp conftest.$ac_ext >$null 2>conftest.out"
  942. ac_err=`grep -v '^ *+' conftest.out`
  943. if test -z "$ac_err"; then
  944.   rm -rf conftest*
  945.   eval "ac_cv_header_$ac_safe=yes"
  946. else
  947.   echo "$ac_err" >&5
  948.   rm -rf conftest*
  949.   eval "ac_cv_header_$ac_safe=no"
  950. fi
  951. rm -f conftest*
  952. fi
  953. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  954.   echo "$ac_t""yes" 1>&6
  955.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  956.   cat >> confdefs.h <<EOF
  957. #define $ac_tr_hdr 1
  958. EOF
  959.  
  960. else
  961.   echo "$ac_t""no" 1>&6
  962. fi
  963. done
  964.  
  965.  
  966. echo $ac_n "checking for working const""... $ac_c" 1>&6
  967. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  968.   echo $ac_n "(cached) $ac_c" 1>&6
  969. else
  970.   cat > conftest.$ac_ext <<EOF
  971. #line 958 "configure"
  972. #include "confdefs.h"
  973.  
  974. int main() { return 0; }
  975. int t() {
  976.  
  977. /* Ultrix mips cc rejects this.  */
  978. typedef int charset[2]; const charset x;
  979. /* SunOS 4.1.1 cc rejects this.  */
  980. char const *const *ccp;
  981. char **p;
  982. /* NEC SVR4.0.2 mips cc rejects this.  */
  983. struct point {int x, y;};
  984. static struct point const zero = {0,0};
  985. /* AIX XL C 1.02.0.0 rejects this.
  986.    It does not let you subtract one const X* pointer from another in an arm
  987.    of an if-expression whose if-part is not a constant expression */
  988. const char *g = "string";
  989. ccp = &g + (g ? g-g : 0);
  990. /* HPUX 7.0 cc rejects these. */
  991. ++ccp;
  992. p = (char**) ccp;
  993. ccp = (char const *const *) p;
  994. { /* SCO 3.2v4 cc rejects this.  */
  995.   char *t;
  996.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  997.  
  998.   *t++ = 0;
  999. }
  1000. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  1001.   int x[] = {25, 17};
  1002.   const int *foo = &x[0];
  1003.   ++foo;
  1004. }
  1005. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  1006.   typedef const int *iptr;
  1007.   iptr p = 0;
  1008.   ++p;
  1009. }
  1010. { /* AIX XL C 1.02.0.0 rejects this saying
  1011.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1012.   struct s { int j; const int *ap[3]; };
  1013.   struct s *b; b->j = 5;
  1014. }
  1015. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1016.   const int foo = 10;
  1017. }
  1018.  
  1019. ; return 0; }
  1020. EOF
  1021. if eval $ac_compile; then
  1022.   rm -rf conftest*
  1023.   ac_cv_c_const=yes
  1024. else
  1025.   rm -rf conftest*
  1026.   ac_cv_c_const=no
  1027. fi
  1028. rm -f conftest*
  1029.  
  1030. fi
  1031.  
  1032. echo "$ac_t""$ac_cv_c_const" 1>&6
  1033. if test $ac_cv_c_const = no; then
  1034.   cat >> confdefs.h <<\EOF
  1035. #define const 
  1036. EOF
  1037.  
  1038. fi
  1039.  
  1040.  
  1041. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  1042. # for constant arguments.  Useless!
  1043. echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
  1044. if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
  1045.   echo $ac_n "(cached) $ac_c" 1>&6
  1046. else
  1047.   cat > conftest.$ac_ext <<EOF
  1048. #line 1035 "configure"
  1049. #include "confdefs.h"
  1050. #include <alloca.h>
  1051. int main() { return 0; }
  1052. int t() {
  1053. char *p = alloca(2 * sizeof(int));
  1054. ; return 0; }
  1055. EOF
  1056. if eval $ac_link; then
  1057.   rm -rf conftest*
  1058.   ac_cv_header_alloca_h=yes
  1059. else
  1060.   rm -rf conftest*
  1061.   ac_cv_header_alloca_h=no
  1062. fi
  1063. rm -f conftest*
  1064.  
  1065. fi
  1066.  
  1067. echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
  1068. if test $ac_cv_header_alloca_h = yes; then
  1069.   cat >> confdefs.h <<\EOF
  1070. #define HAVE_ALLOCA_H 1
  1071. EOF
  1072.  
  1073. fi
  1074.  
  1075. echo $ac_n "checking for alloca""... $ac_c" 1>&6
  1076. if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then
  1077.   echo $ac_n "(cached) $ac_c" 1>&6
  1078. else
  1079.   cat > conftest.$ac_ext <<EOF
  1080. #line 1067 "configure"
  1081. #include "confdefs.h"
  1082.  
  1083. #ifdef __GNUC__
  1084. # define alloca __builtin_alloca
  1085. #else
  1086. # if HAVE_ALLOCA_H
  1087. #  include <alloca.h>
  1088. # else
  1089. #  ifdef _AIX
  1090.  #pragma alloca
  1091. #  else
  1092. #   ifndef alloca /* predefined by HP cc +Olibcalls */
  1093. char *alloca ();
  1094. #   endif
  1095. #  endif
  1096. # endif
  1097. #endif
  1098.  
  1099. int main() { return 0; }
  1100. int t() {
  1101. char *p = (char *) alloca(1);
  1102. ; return 0; }
  1103. EOF
  1104. if eval $ac_link; then
  1105.   rm -rf conftest*
  1106.   ac_cv_func_alloca=yes
  1107. else
  1108.   rm -rf conftest*
  1109.   ac_cv_func_alloca=no
  1110. fi
  1111. rm -f conftest*
  1112.  
  1113. fi
  1114.  
  1115. echo "$ac_t""$ac_cv_func_alloca" 1>&6
  1116. if test $ac_cv_func_alloca = yes; then
  1117.   cat >> confdefs.h <<\EOF
  1118. #define HAVE_ALLOCA 1
  1119. EOF
  1120.  
  1121. fi
  1122.  
  1123. if test $ac_cv_func_alloca = no; then
  1124.   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  1125.   # that cause trouble.  Some versions do not even contain alloca or
  1126.   # contain a buggy version.  If you still want to use their alloca,
  1127.   # use ar to extract alloca.o from them instead of compiling alloca.c.
  1128.   ALLOCA=alloca.o
  1129.   cat >> confdefs.h <<\EOF
  1130. #define C_ALLOCA 1
  1131. EOF
  1132.  
  1133.  
  1134. echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
  1135. if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
  1136.   echo $ac_n "(cached) $ac_c" 1>&6
  1137. else
  1138.   cat > conftest.$ac_ext <<EOF
  1139. #line 1126 "configure"
  1140. #include "confdefs.h"
  1141. #if defined(CRAY) && ! defined(CRAY2)
  1142. webecray
  1143. #else
  1144. wenotbecray
  1145. #endif
  1146.  
  1147. EOF
  1148. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1149.   egrep "webecray" >$null 2>&1; then
  1150.   rm -rf conftest*
  1151.   ac_cv_os_cray=yes
  1152. else
  1153.   rm -rf conftest*
  1154.   ac_cv_os_cray=no
  1155. fi
  1156. rm -f conftest*
  1157.  
  1158. fi
  1159.  
  1160. echo "$ac_t""$ac_cv_os_cray" 1>&6
  1161. if test $ac_cv_os_cray = yes; then
  1162. for ac_func in _getb67 GETB67 getb67; do
  1163.   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1164. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1165.   echo $ac_n "(cached) $ac_c" 1>&6
  1166. else
  1167.   cat > conftest.$ac_ext <<EOF
  1168. #line 1155 "configure"
  1169. #include "confdefs.h"
  1170. /* System header to define __stub macros and hopefully few prototypes,
  1171.     which can conflict with char $ac_func(); below.  */
  1172. #include <assert.h>
  1173. /* Override any gcc2 internal prototype to avoid an error.  */
  1174. char $ac_func();
  1175.  
  1176. int main() { return 0; }
  1177. int t() {
  1178.  
  1179. /* The GNU C library defines this for functions which it implements
  1180.     to always fail with ENOSYS.  Some functions are actually named
  1181.     something starting with __ and the normal name is an alias.  */
  1182. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1183. choke me
  1184. #else
  1185. $ac_func();
  1186. #endif
  1187.  
  1188. ; return 0; }
  1189. EOF
  1190. if eval $ac_link; then
  1191.   rm -rf conftest*
  1192.   eval "ac_cv_func_$ac_func=yes"
  1193. else
  1194.   rm -rf conftest*
  1195.   eval "ac_cv_func_$ac_func=no"
  1196. fi
  1197. rm -f conftest*
  1198.  
  1199. fi
  1200. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1201.   echo "$ac_t""yes" 1>&6
  1202.   cat >> confdefs.h <<EOF
  1203. #define CRAY_STACKSEG_END $ac_func
  1204. EOF
  1205.  
  1206.   break
  1207. else
  1208.   echo "$ac_t""no" 1>&6
  1209. fi
  1210.  
  1211. done
  1212. fi
  1213.  
  1214. echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
  1215. if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
  1216.   echo $ac_n "(cached) $ac_c" 1>&6
  1217. else
  1218.   if test "$cross_compiling" = yes; then
  1219.   ac_cv_c_stack_direction=0
  1220. else
  1221. cat > conftest.$ac_ext <<EOF
  1222. #line 1209 "configure"
  1223. #include "confdefs.h"
  1224. find_stack_direction ()
  1225. {
  1226.   static char *addr = 0;
  1227.   auto char dummy;
  1228.   if (addr == 0)
  1229.     {
  1230.       addr = &dummy;
  1231.       return find_stack_direction ();
  1232.     }
  1233.   else
  1234.     return (&dummy > addr) ? 1 : -1;
  1235. }
  1236. main ()
  1237. {
  1238.   exit (find_stack_direction() < 0);
  1239. }
  1240. EOF
  1241. eval $ac_link
  1242. if test -s conftest$exe && (./conftest; exit) 2>$null; then
  1243.   ac_cv_c_stack_direction=1
  1244. else
  1245.   ac_cv_c_stack_direction=-1
  1246. fi
  1247. fi
  1248. rm -fr conftest*
  1249. fi
  1250.  
  1251. echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
  1252. cat >> confdefs.h <<EOF
  1253. #define STACK_DIRECTION $ac_cv_c_stack_direction
  1254. EOF
  1255.  
  1256. fi
  1257.  
  1258. for ac_func in strerror
  1259. do
  1260. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1261. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1262.   echo $ac_n "(cached) $ac_c" 1>&6
  1263. else
  1264.   cat > conftest.$ac_ext <<EOF
  1265. #line 1252 "configure"
  1266. #include "confdefs.h"
  1267. /* System header to define __stub macros and hopefully few prototypes,
  1268.     which can conflict with char $ac_func(); below.  */
  1269. #include <assert.h>
  1270. /* Override any gcc2 internal prototype to avoid an error.  */
  1271. char $ac_func();
  1272.  
  1273. int main() { return 0; }
  1274. int t() {
  1275.  
  1276. /* The GNU C library defines this for functions which it implements
  1277.     to always fail with ENOSYS.  Some functions are actually named
  1278.     something starting with __ and the normal name is an alias.  */
  1279. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1280. choke me
  1281. #else
  1282. $ac_func();
  1283. #endif
  1284.  
  1285. ; return 0; }
  1286. EOF
  1287. if eval $ac_link; then
  1288.   rm -rf conftest*
  1289.   eval "ac_cv_func_$ac_func=yes"
  1290. else
  1291.   rm -rf conftest*
  1292.   eval "ac_cv_func_$ac_func=no"
  1293. fi
  1294. rm -f conftest*
  1295.  
  1296. fi
  1297. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1298.   echo "$ac_t""yes" 1>&6
  1299.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1300.   cat >> confdefs.h <<EOF
  1301. #define $ac_tr_func 1
  1302. EOF
  1303.  
  1304. else
  1305.   echo "$ac_t""no" 1>&6
  1306. fi
  1307. done
  1308.  
  1309.  
  1310. trap '' 1 2 15
  1311. cat > confcache <<\EOF
  1312. # This file is a shell script that caches the results of configure
  1313. # tests run on this system so they can be shared between configure
  1314. # scripts and configure runs.  It is not useful on other systems.
  1315. # If it contains results you don't want to keep, you may remove or edit it.
  1316. #
  1317. # By default, configure uses ./config.cache as the cache file,
  1318. # creating it if it does not exist already.  You can give configure
  1319. # the --cache-file=FILE option to use a different cache file; that is
  1320. # what configure does when it calls configure scripts in
  1321. # subdirectories, so they share the cache.
  1322. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1323. # config.status only pays attention to the cache file if you give it the
  1324. # --recheck option to rerun configure.
  1325. #
  1326. EOF
  1327. # Ultrix sh set writes to stderr and can't be redirected directly,
  1328. # and sets the high bit in the cache file unless we assign to the vars.
  1329. (set) 2>&1 |
  1330.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  1331.   >> confcache
  1332. if cmp -s $cache_file confcache; then
  1333.   :
  1334. else
  1335.   if test -w $cache_file; then
  1336.     echo "updating cache $cache_file"
  1337.     cat confcache > $cache_file
  1338.   else
  1339.     echo "not updating unwritable cache $cache_file"
  1340.   fi
  1341. fi
  1342. rm -f confcache
  1343.  
  1344. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1345.  
  1346. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1347. # Let make expand exec_prefix.
  1348. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1349.  
  1350. # Any assignment to VPATH causes Sun make to only execute
  1351. # the first set of double-colon rules, so remove it if not needed.
  1352. # If there is a colon in the path, we need to keep it.
  1353. if test "x$srcdir" = x.; then
  1354.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  1355. fi
  1356.  
  1357. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1358.  
  1359. # Transform confdefs.h into DEFS.
  1360. # Protect against shell expansion while executing Makefile rules.
  1361. # Protect against Makefile macro expansion.
  1362. cat > conftest.defs <<\EOF
  1363. s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g
  1364. s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
  1365. s%\[%\\&%g
  1366. s%\]%\\&%g
  1367. s%\$%$$%g
  1368. EOF
  1369. DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  1370. rm -f conftest.defs
  1371.  
  1372.  
  1373. # Without the "./", some shells look in PATH for config.status.
  1374. : ${CONFIG_STATUS=./config.status}
  1375.  
  1376. echo creating $CONFIG_STATUS
  1377. rm -f $CONFIG_STATUS
  1378. hostname=`(hostname || uname -n) 2>$null | sed 1q`
  1379. cat > $CONFIG_STATUS <<EOF
  1380. #! /bin/sh
  1381. # Generated automatically by configure.
  1382. # Run this file to recreate the current configuration.
  1383. # This directory was configured as follows,
  1384. # on host $hostname:
  1385. #
  1386. # $0 $ac_configure_args
  1387. #
  1388. # Compiler output produced by configure, useful for debugging
  1389. # configure, is in ./config.log if it exists.
  1390.  
  1391. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1392. for ac_option
  1393. do
  1394.   case "\$ac_option" in
  1395.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1396.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1397.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1398.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1399.     echo "$CONFIG_STATUS generated by autoconf version 2.7"
  1400.     exit 0 ;;
  1401.   -help | --help | --hel | --he | --h)
  1402.     echo "\$ac_cs_usage"; exit 0 ;;
  1403.   *) echo "\$ac_cs_usage"; exit 1 ;;
  1404.   esac
  1405. done
  1406.  
  1407. ac_given_srcdir=$srcdir
  1408. ac_given_INSTALL="$INSTALL"
  1409.  
  1410. trap 'rm -fr `echo "Makefile"` conftest*; exit 1' 1 2 15
  1411. EOF
  1412. cat >> $CONFIG_STATUS <<EOF
  1413.  
  1414. # Protect against being on the right side of a sed subst in config.status.
  1415. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  1416.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  1417. $ac_vpsub
  1418. $extrasub
  1419. s%@CFLAGS@%$CFLAGS%g
  1420. s%@CPPFLAGS@%$CPPFLAGS%g
  1421. s%@CXXFLAGS@%$CXXFLAGS%g
  1422. s%@DEFS@%$DEFS%g
  1423. s%@LDFLAGS@%$LDFLAGS%g
  1424. s%@LIBS@%$LIBS%g
  1425. s%@exec_prefix@%$exec_prefix%g
  1426. s%@prefix@%$prefix%g
  1427. s%@program_transform_name@%$program_transform_name%g
  1428. s%@bindir@%$bindir%g
  1429. s%@sbindir@%$sbindir%g
  1430. s%@libexecdir@%$libexecdir%g
  1431. s%@datadir@%$datadir%g
  1432. s%@sysconfdir@%$sysconfdir%g
  1433. s%@sharedstatedir@%$sharedstatedir%g
  1434. s%@localstatedir@%$localstatedir%g
  1435. s%@libdir@%$libdir%g
  1436. s%@includedir@%$includedir%g
  1437. s%@oldincludedir@%$oldincludedir%g
  1438. s%@infodir@%$infodir%g
  1439. s%@mandir@%$mandir%g
  1440. s%@CC@%$CC%g
  1441. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1442. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1443. s%@CPP@%$CPP%g
  1444. s%@ALLOCA@%$ALLOCA%g
  1445.  
  1446. CEOF
  1447. EOF
  1448. cat >> $CONFIG_STATUS <<EOF
  1449.  
  1450. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  1451. EOF
  1452. cat >> $CONFIG_STATUS <<\EOF
  1453. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1454.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  1455.   case "$ac_file" in
  1456.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  1457.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1458.   *) ac_file_in="${ac_file}.in" ;;
  1459.   esac
  1460.  
  1461.   # Adjust relative srcdir, etc. for subdirectories.
  1462.  
  1463.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1464.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1465.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1466.     # The file is in a subdirectory.
  1467.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  1468.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  1469.     # A "../" for each directory in $ac_dir_suffix.
  1470.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1471.   else
  1472.     ac_dir_suffix= ac_dots=
  1473.   fi
  1474.  
  1475.   case "$ac_given_srcdir" in
  1476.   .)  srcdir=.
  1477.       if test -z "$ac_dots"; then top_srcdir=.
  1478.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1479.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1480.   *) # Relative path.
  1481.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1482.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1483.   esac
  1484.  
  1485.   case "$ac_given_INSTALL" in
  1486.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  1487.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  1488.   esac
  1489.   echo creating "$ac_file"
  1490.   rm -f "$ac_file"
  1491.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1492.   case "$ac_file" in
  1493.   *Makefile*) ac_comsub="1i\\
  1494. # $configure_input" ;;
  1495.   *) ac_comsub= ;;
  1496.   esac
  1497.   sed -e "$ac_comsub
  1498. s%@configure_input@%$configure_input%g
  1499. s%@srcdir@%$srcdir%g
  1500. s%@top_srcdir@%$top_srcdir%g
  1501. s%@INSTALL@%$INSTALL%g
  1502. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  1503. fi; done
  1504. rm -f conftest.subs
  1505.  
  1506.  
  1507.  
  1508. exit 0
  1509. EOF
  1510. chmod +x $CONFIG_STATUS
  1511. rm -fr confdefs* $ac_clean_files
  1512. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  1513.  
  1514.