home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / bison-1.25-src.tgz / tar.out / fsf / bison / configure < prev    next >
Text File  |  1996-10-01  |  47KB  |  1,578 lines

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