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