home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / bc-1.03-src.tgz / tar.out / fsf / bc / configure < prev    next >
Text File  |  1996-10-01  |  49KB  |  1,599 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=bc.1
  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. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  658. # On Suns, sometimes $CPP names a directory.
  659. if test -n "$CPP" && test -d "$CPP"; then
  660.   CPP=
  661. fi
  662. if test -z "$CPP"; then
  663. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  664.   echo $ac_n "(cached) $ac_c" 1>&6
  665. else
  666.     # This must be in double quotes, not single quotes, because CPP may get
  667.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  668.   CPP="${CC-cc} -E"
  669.   # On the NeXT, cc -E runs the code through the compiler's parser,
  670.   # not just through cpp.
  671.   cat > conftest.$ac_ext <<EOF
  672. #line 673 "configure"
  673. #include "confdefs.h"
  674. #include <assert.h>
  675. Syntax Error
  676. EOF
  677. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  678. { (eval echo configure:679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  679. ac_err=`grep -v '^ *+' conftest.out`
  680. if test -z "$ac_err"; then
  681.   :
  682. else
  683.   echo "$ac_err" >&5
  684.   rm -rf conftest*
  685.   CPP="${CC-cc} -E -traditional-cpp"
  686.   cat > conftest.$ac_ext <<EOF
  687. #line 688 "configure"
  688. #include "confdefs.h"
  689. #include <assert.h>
  690. Syntax Error
  691. EOF
  692. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  693. { (eval echo configure:694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  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=/lib/cpp
  701. fi
  702. rm -f conftest*
  703. fi
  704. rm -f conftest*
  705.   ac_cv_prog_CPP="$CPP"
  706. fi
  707.   CPP="$ac_cv_prog_CPP"
  708. else
  709.   ac_cv_prog_CPP="$CPP"
  710. fi
  711. echo "$ac_t""$CPP" 1>&6
  712.  
  713. ac_safe=`echo "minix/config.h" | tr './\055' '___'`
  714. echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
  715. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  716.   echo $ac_n "(cached) $ac_c" 1>&6
  717. else
  718.   cat > conftest.$ac_ext <<EOF
  719. #line 720 "configure"
  720. #include "confdefs.h"
  721. #include <minix/config.h>
  722. EOF
  723. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  724. { (eval echo configure:725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  725. ac_err=`grep -v '^ *+' conftest.out`
  726. if test -z "$ac_err"; then
  727.   rm -rf conftest*
  728.   eval "ac_cv_header_$ac_safe=yes"
  729. else
  730.   echo "$ac_err" >&5
  731.   rm -rf conftest*
  732.   eval "ac_cv_header_$ac_safe=no"
  733. fi
  734. rm -f conftest*
  735. fi
  736. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  737.   echo "$ac_t""yes" 1>&6
  738.   MINIX=yes
  739. else
  740.   echo "$ac_t""no" 1>&6
  741. MINIX=
  742. fi
  743.  
  744. if test "$MINIX" = yes; then
  745.   cat >> confdefs.h <<\EOF
  746. #define _POSIX_SOURCE 1
  747. EOF
  748.  
  749.   cat >> confdefs.h <<\EOF
  750. #define _POSIX_1_SOURCE 2
  751. EOF
  752.  
  753.   cat >> confdefs.h <<\EOF
  754. #define _MINIX 1
  755. EOF
  756.  
  757. fi
  758.  
  759. for ac_prog in 'bison -y' byacc
  760. do
  761. # Extract the first word of "$ac_prog", so it can be a program name with args.
  762. set dummy $ac_prog; ac_word=$2
  763. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  764. if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
  765.   echo $ac_n "(cached) $ac_c" 1>&6
  766. else
  767.   if test -n "$YACC"; then
  768.   ac_cv_prog_YACC="$YACC" # Let the user override the test.
  769. else
  770.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  771.   for ac_dir in $PATH; do
  772.     test -z "$ac_dir" && ac_dir=.
  773.     if test -f $ac_dir/$ac_word; then
  774.       ac_cv_prog_YACC="$ac_prog"
  775.       break
  776.     fi
  777.   done
  778.   IFS="$ac_save_ifs"
  779. fi
  780. fi
  781. YACC="$ac_cv_prog_YACC"
  782. if test -n "$YACC"; then
  783.   echo "$ac_t""$YACC" 1>&6
  784. else
  785.   echo "$ac_t""no" 1>&6
  786. fi
  787.  
  788. test -n "$YACC" && break
  789. done
  790. test -n "$YACC" || YACC="yacc"
  791.  
  792. # Extract the first word of "flex", so it can be a program name with args.
  793. set dummy flex; ac_word=$2
  794. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  795. if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
  796.   echo $ac_n "(cached) $ac_c" 1>&6
  797. else
  798.   if test -n "$LEX"; then
  799.   ac_cv_prog_LEX="$LEX" # Let the user override the test.
  800. else
  801.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  802.   for ac_dir in $PATH; do
  803.     test -z "$ac_dir" && ac_dir=.
  804.     if test -f $ac_dir/$ac_word; then
  805.       ac_cv_prog_LEX="flex"
  806.       break
  807.     fi
  808.   done
  809.   IFS="$ac_save_ifs"
  810.   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
  811. fi
  812. fi
  813. LEX="$ac_cv_prog_LEX"
  814. if test -n "$LEX"; then
  815.   echo "$ac_t""$LEX" 1>&6
  816. else
  817.   echo "$ac_t""no" 1>&6
  818. fi
  819.  
  820. if test -z "$LEXLIB"
  821. then
  822.   case "$LEX" in
  823.   flex*) ac_lib=fl ;;
  824.   *) ac_lib=l ;;
  825.   esac
  826.   echo $ac_n "checking for -l$ac_lib""... $ac_c" 1>&6
  827. ac_lib_var=`echo $ac_lib'_'yywrap | tr './+\055' '__p_'`
  828. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  829.   echo $ac_n "(cached) $ac_c" 1>&6
  830. else
  831.   ac_save_LIBS="$LIBS"
  832. LIBS="-l$ac_lib  $LIBS"
  833. cat > conftest.$ac_ext <<EOF
  834. #line 835 "configure"
  835. #include "confdefs.h"
  836. /* Override any gcc2 internal prototype to avoid an error.  */
  837. /* We use char because int might match the return type of a gcc2
  838.     builtin and then its argument prototype would still apply.  */
  839. char yywrap();
  840.  
  841. int main() { t(); return 0; }
  842. int t() {
  843. yywrap()
  844. ; return 0; }
  845. EOF
  846. if { (eval echo configure:847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  847.   rm -rf conftest*
  848.   eval "ac_cv_lib_$ac_lib_var=yes"
  849. else
  850.   rm -rf conftest*
  851.   eval "ac_cv_lib_$ac_lib_var=no"
  852. fi
  853. rm -f conftest*
  854. LIBS="$ac_save_LIBS"
  855.  
  856. fi
  857. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  858.   echo "$ac_t""yes" 1>&6
  859.   LEXLIB="-l$ac_lib"
  860. else
  861.   echo "$ac_t""no" 1>&6
  862. fi
  863.  
  864. fi
  865.  
  866. if test "$LEX" = "flex" ; then
  867. LEX="flex -I8"
  868. fi
  869. ac_aux_dir=
  870. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  871.   if test -f $ac_dir/install-sh; then
  872.     ac_aux_dir=$ac_dir
  873.     ac_install_sh="$ac_aux_dir/install-sh -c"
  874.     break
  875.   elif test -f $ac_dir/install.sh; then
  876.     ac_aux_dir=$ac_dir
  877.     ac_install_sh="$ac_aux_dir/install.sh -c"
  878.     break
  879.   fi
  880. done
  881. if test -z "$ac_aux_dir"; then
  882.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  883. fi
  884. ac_config_guess=$ac_aux_dir/config.guess
  885. ac_config_sub=$ac_aux_dir/config.sub
  886. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  887.  
  888. # Find a good install program.  We prefer a C program (faster),
  889. # so one script is as good as another.  But avoid the broken or
  890. # incompatible versions:
  891. # SysV /etc/install, /usr/sbin/install
  892. # SunOS /usr/etc/install
  893. # IRIX /sbin/install
  894. # AIX /bin/install
  895. # AmigaOS /c/install
  896. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  897. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  898. # ./install, which can be erroneously created by make from ./install.sh.
  899. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  900. if test -z "$INSTALL"; then
  901. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  902.   echo $ac_n "(cached) $ac_c" 1>&6
  903. else
  904.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  905.   for ac_dir in $PATH; do
  906.     # Account for people who put trailing slashes in PATH elements.
  907.     case "$ac_dir/" in
  908.     /|./|.//|/etc/*|/c/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  909.     *)
  910.       # OSF1 and SCO ODT 3.0 have their own names for install.
  911.       for ac_prog in ginstall installbsd scoinst install; do
  912.         if test -f $ac_dir/$ac_prog; then
  913.       if test $ac_prog = install &&
  914.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  915.         # AIX install.  It has an incompatible calling convention.
  916.         # OSF/1 installbsd also uses dspmsg, but is usable.
  917.         :
  918.       else
  919.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  920.         break 2
  921.       fi
  922.     fi
  923.       done
  924.       ;;
  925.     esac
  926.   done
  927.   IFS="$ac_save_ifs"
  928.  
  929. fi
  930.   if test "${ac_cv_path_install+set}" = set; then
  931.     INSTALL="$ac_cv_path_install"
  932.   else
  933.     # As a last resort, use the slow shell script.  We don't cache a
  934.     # path for INSTALL within a source directory, because that will
  935.     # break other packages using the cache if that directory is
  936.     # removed, or if the path is relative.
  937.     INSTALL="$ac_install_sh"
  938.   fi
  939. fi
  940. echo "$ac_t""$INSTALL" 1>&6
  941.  
  942. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  943. # It thinks the first close brace ends the variable substitution.
  944. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  945.  
  946. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  947.  
  948. echo $ac_n "checking for working const""... $ac_c" 1>&6
  949. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  950.   echo $ac_n "(cached) $ac_c" 1>&6
  951. else
  952.   cat > conftest.$ac_ext <<EOF
  953. #line 954 "configure"
  954. #include "confdefs.h"
  955.  
  956. int main() { return 0; }
  957. int t() {
  958.  
  959. /* Ultrix mips cc rejects this.  */
  960. typedef int charset[2]; const charset x;
  961. /* SunOS 4.1.1 cc rejects this.  */
  962. char const *const *ccp;
  963. char **p;
  964. /* NEC SVR4.0.2 mips cc rejects this.  */
  965. struct point {int x, y;};
  966. static struct point const zero = {0,0};
  967. /* AIX XL C 1.02.0.0 rejects this.
  968.    It does not let you subtract one const X* pointer from another in an arm
  969.    of an if-expression whose if-part is not a constant expression */
  970. const char *g = "string";
  971. ccp = &g + (g ? g-g : 0);
  972. /* HPUX 7.0 cc rejects these. */
  973. ++ccp;
  974. p = (char**) ccp;
  975. ccp = (char const *const *) p;
  976. { /* SCO 3.2v4 cc rejects this.  */
  977.   char *t;
  978.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  979.  
  980.   *t++ = 0;
  981. }
  982. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  983.   int x[] = {25, 17};
  984.   const int *foo = &x[0];
  985.   ++foo;
  986. }
  987. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  988.   typedef const int *iptr;
  989.   iptr p = 0;
  990.   ++p;
  991. }
  992. { /* AIX XL C 1.02.0.0 rejects this saying
  993.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  994.   struct s { int j; const int *ap[3]; };
  995.   struct s *b; b->j = 5;
  996. }
  997. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  998.   const int foo = 10;
  999. }
  1000.  
  1001. ; return 0; }
  1002. EOF
  1003. if { (eval echo configure:1004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1004.   rm -rf conftest*
  1005.   ac_cv_c_const=yes
  1006. else
  1007.   rm -rf conftest*
  1008.   ac_cv_c_const=no
  1009. fi
  1010. rm -f conftest*
  1011.  
  1012. fi
  1013.  
  1014. echo "$ac_t""$ac_cv_c_const" 1>&6
  1015. if test $ac_cv_c_const = no; then
  1016.   cat >> confdefs.h <<\EOF
  1017. #define const 
  1018. EOF
  1019.  
  1020. fi
  1021.  
  1022. # If we cannot run a trivial program, we must be cross compiling.
  1023. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  1024. if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  1025.   echo $ac_n "(cached) $ac_c" 1>&6
  1026. else
  1027.   if test "$cross_compiling" = yes; then
  1028.   ac_cv_c_cross=yes
  1029. else
  1030. cat > conftest.$ac_ext <<EOF
  1031. #line 1032 "configure"
  1032. #include "confdefs.h"
  1033. main(){return(0);}
  1034. EOF
  1035. { (eval echo configure:1036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1036. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1037.   ac_cv_c_cross=no
  1038. else
  1039.   ac_cv_c_cross=yes
  1040. fi
  1041. fi
  1042. rm -fr conftest*
  1043. fi
  1044.  
  1045. echo "$ac_t""$ac_cv_c_cross" 1>&6
  1046. cross_compiling=$ac_cv_c_cross
  1047.  
  1048. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1049. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1050.   echo $ac_n "(cached) $ac_c" 1>&6
  1051. else
  1052.   cat > conftest.$ac_ext <<EOF
  1053. #line 1054 "configure"
  1054. #include "confdefs.h"
  1055. #include <stdlib.h>
  1056. #include <stdarg.h>
  1057. #include <string.h>
  1058. #include <float.h>
  1059. EOF
  1060. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1061. { (eval echo configure:1062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1062. ac_err=`grep -v '^ *+' conftest.out`
  1063. if test -z "$ac_err"; then
  1064.   rm -rf conftest*
  1065.   ac_cv_header_stdc=yes
  1066. else
  1067.   echo "$ac_err" >&5
  1068.   rm -rf conftest*
  1069.   ac_cv_header_stdc=no
  1070. fi
  1071. rm -f conftest*
  1072.  
  1073. if test $ac_cv_header_stdc = yes; then
  1074.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1075. cat > conftest.$ac_ext <<EOF
  1076. #line 1077 "configure"
  1077. #include "confdefs.h"
  1078. #include <string.h>
  1079. EOF
  1080. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1081.   egrep "memchr" >/dev/null 2>&1; then
  1082.   :
  1083. else
  1084.   rm -rf conftest*
  1085.   ac_cv_header_stdc=no
  1086. fi
  1087. rm -f conftest*
  1088.  
  1089. fi
  1090.  
  1091. if test $ac_cv_header_stdc = yes; then
  1092.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1093. cat > conftest.$ac_ext <<EOF
  1094. #line 1095 "configure"
  1095. #include "confdefs.h"
  1096. #include <stdlib.h>
  1097. EOF
  1098. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1099.   egrep "free" >/dev/null 2>&1; then
  1100.   :
  1101. else
  1102.   rm -rf conftest*
  1103.   ac_cv_header_stdc=no
  1104. fi
  1105. rm -f conftest*
  1106.  
  1107. fi
  1108.  
  1109. if test $ac_cv_header_stdc = yes; then
  1110.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1111. if test "$cross_compiling" = yes; then
  1112.   :
  1113. else
  1114. cat > conftest.$ac_ext <<EOF
  1115. #line 1116 "configure"
  1116. #include "confdefs.h"
  1117. #include <ctype.h>
  1118. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1119. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1120. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1121. int main () { int i; for (i = 0; i < 256; i++)
  1122. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1123. exit (0); }
  1124.  
  1125. EOF
  1126. { (eval echo configure:1127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1127. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1128.   :
  1129. else
  1130.   ac_cv_header_stdc=no
  1131. fi
  1132. fi
  1133. rm -fr conftest*
  1134. fi
  1135. fi
  1136.  
  1137. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1138. if test $ac_cv_header_stdc = yes; then
  1139.   cat >> confdefs.h <<\EOF
  1140. #define STDC_HEADERS 1
  1141. EOF
  1142.  
  1143. fi
  1144.  
  1145. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  1146. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  1147.   echo $ac_n "(cached) $ac_c" 1>&6
  1148. else
  1149.   cat > conftest.$ac_ext <<EOF
  1150. #line 1151 "configure"
  1151. #include "confdefs.h"
  1152. #include <sys/types.h>
  1153. #if STDC_HEADERS
  1154. #include <stdlib.h>
  1155. #endif
  1156. EOF
  1157. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1158.   egrep "size_t" >/dev/null 2>&1; then
  1159.   rm -rf conftest*
  1160.   ac_cv_type_size_t=yes
  1161. else
  1162.   rm -rf conftest*
  1163.   ac_cv_type_size_t=no
  1164. fi
  1165. rm -f conftest*
  1166.  
  1167. fi
  1168. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  1169. if test $ac_cv_type_size_t = no; then
  1170.   cat >> confdefs.h <<\EOF
  1171. #define size_t unsigned
  1172. EOF
  1173.  
  1174. fi
  1175.  
  1176. for ac_hdr in stdarg.h stddef.h stdlib.h string.h limits.h unistd.h
  1177. do
  1178. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1179. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1180. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1181.   echo $ac_n "(cached) $ac_c" 1>&6
  1182. else
  1183.   cat > conftest.$ac_ext <<EOF
  1184. #line 1185 "configure"
  1185. #include "confdefs.h"
  1186. #include <$ac_hdr>
  1187. EOF
  1188. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1189. { (eval echo configure:1190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1190. ac_err=`grep -v '^ *+' conftest.out`
  1191. if test -z "$ac_err"; then
  1192.   rm -rf conftest*
  1193.   eval "ac_cv_header_$ac_safe=yes"
  1194. else
  1195.   echo "$ac_err" >&5
  1196.   rm -rf conftest*
  1197.   eval "ac_cv_header_$ac_safe=no"
  1198. fi
  1199. rm -f conftest*
  1200. fi
  1201. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1202.   echo "$ac_t""yes" 1>&6
  1203.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1204.   cat >> confdefs.h <<EOF
  1205. #define $ac_tr_hdr 1
  1206. EOF
  1207.  
  1208. else
  1209.   echo "$ac_t""no" 1>&6
  1210. fi
  1211. done
  1212.  
  1213. for ac_func in isgraph
  1214. do
  1215. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1216. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1217.   echo $ac_n "(cached) $ac_c" 1>&6
  1218. else
  1219.   cat > conftest.$ac_ext <<EOF
  1220. #line 1221 "configure"
  1221. #include "confdefs.h"
  1222. /* System header to define __stub macros and hopefully few prototypes,
  1223.     which can conflict with char $ac_func(); below.  */
  1224. #include <assert.h>
  1225. /* Override any gcc2 internal prototype to avoid an error.  */
  1226. /* We use char because int might match the return type of a gcc2
  1227.     builtin and then its argument prototype would still apply.  */
  1228. char $ac_func();
  1229.  
  1230. int main() { t(); return 0; }
  1231. int t() {
  1232.  
  1233. /* The GNU C library defines this for functions which it implements
  1234.     to always fail with ENOSYS.  Some functions are actually named
  1235.     something starting with __ and the normal name is an alias.  */
  1236. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1237. choke me
  1238. #else
  1239. $ac_func();
  1240. #endif
  1241.  
  1242. ; return 0; }
  1243. EOF
  1244. if { (eval echo configure:1245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1245.   rm -rf conftest*
  1246.   eval "ac_cv_func_$ac_func=yes"
  1247. else
  1248.   rm -rf conftest*
  1249.   eval "ac_cv_func_$ac_func=no"
  1250. fi
  1251. rm -f conftest*
  1252.  
  1253. fi
  1254. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1255.   echo "$ac_t""yes" 1>&6
  1256.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1257.   cat >> confdefs.h <<EOF
  1258. #define $ac_tr_func 1
  1259. EOF
  1260.  
  1261. else
  1262.   echo "$ac_t""no" 1>&6
  1263. fi
  1264. done
  1265.  
  1266. SaveCFLAGS="$CFLAGS"
  1267. CFLAGS="-g -O -I. -I$srcdir"
  1268. echo $ac_n "checking if long strings are accepted by the C compiler""... $ac_c" 1>&6
  1269. cat > conftest.$ac_ext <<EOF
  1270. #line 1271 "configure"
  1271. #include "confdefs.h"
  1272.  
  1273. char libmath[] = 
  1274. #include "libmath.h"
  1275. ;
  1276.  
  1277. int main() { return 0; }
  1278. int t() {
  1279.  
  1280. ; return 0; }
  1281. EOF
  1282. if { (eval echo configure:1283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1283.   rm -rf conftest*
  1284.   echo "$ac_t""yes" 1>&6
  1285. else
  1286.   rm -rf conftest*
  1287.   cat >> confdefs.h <<\EOF
  1288. #define BC_MATH_FILE "libmath.b"
  1289. EOF
  1290.  
  1291. echo "$ac_t""no" 1>&6
  1292. echo "configure: warning: libmath.b will not be preloaded into the executable" 1>&2
  1293. fi
  1294. rm -f conftest*
  1295.  
  1296. CFLAGS="$SaveCFLAGS"
  1297. trap '' 1 2 15
  1298. cat > confcache <<\EOF
  1299. # This file is a shell script that caches the results of configure
  1300. # tests run on this system so they can be shared between configure
  1301. # scripts and configure runs.  It is not useful on other systems.
  1302. # If it contains results you don't want to keep, you may remove or edit it.
  1303. #
  1304. # By default, configure uses ./config.cache as the cache file,
  1305. # creating it if it does not exist already.  You can give configure
  1306. # the --cache-file=FILE option to use a different cache file; that is
  1307. # what configure does when it calls configure scripts in
  1308. # subdirectories, so they share the cache.
  1309. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1310. # config.status only pays attention to the cache file if you give it the
  1311. # --recheck option to rerun configure.
  1312. #
  1313. EOF
  1314. # Ultrix sh set writes to stderr and can't be redirected directly,
  1315. # and sets the high bit in the cache file unless we assign to the vars.
  1316. (set) 2>&1 |
  1317.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  1318.   >> confcache
  1319. if cmp -s $cache_file confcache; then
  1320.   :
  1321. else
  1322.   if test -w $cache_file; then
  1323.     echo "updating cache $cache_file"
  1324.     cat confcache > $cache_file
  1325.   else
  1326.     echo "not updating unwritable cache $cache_file"
  1327.   fi
  1328. fi
  1329. rm -f confcache
  1330.  
  1331. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1332.  
  1333. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1334. # Let make expand exec_prefix.
  1335. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1336.  
  1337. # Any assignment to VPATH causes Sun make to only execute
  1338. # the first set of double-colon rules, so remove it if not needed.
  1339. # If there is a colon in the path, we need to keep it.
  1340. if test "x$srcdir" = x.; then
  1341.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  1342. fi
  1343.  
  1344. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1345.  
  1346. DEFS=-DHAVE_CONFIG_H
  1347.  
  1348. # Without the "./", some shells look in PATH for config.status.
  1349. : ${CONFIG_STATUS=./config.status}
  1350.  
  1351. echo creating $CONFIG_STATUS
  1352. # Some systems, like AmigaOS, won't allow you to remove a script that is
  1353. # being executed, so just move it out of the way instead.
  1354. if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  1355. cat > $CONFIG_STATUS <<EOF
  1356. #! /bin/sh
  1357. # Generated automatically by configure.
  1358. # Run this file to recreate the current configuration.
  1359. # This directory was configured as follows,
  1360. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1361. #
  1362. # $0 $ac_configure_args
  1363. #
  1364. # Compiler output produced by configure, useful for debugging
  1365. # configure, is in ./config.log if it exists.
  1366.  
  1367. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1368. for ac_option
  1369. do
  1370.   case "\$ac_option" in
  1371.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1372.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1373.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1374.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1375.     echo "$CONFIG_STATUS generated by autoconf version 2.10"
  1376.     exit 0 ;;
  1377.   -help | --help | --hel | --he | --h)
  1378.     echo "\$ac_cs_usage"; exit 0 ;;
  1379.   *) echo "\$ac_cs_usage"; exit 1 ;;
  1380.   esac
  1381. done
  1382.  
  1383. ac_given_srcdir=$srcdir
  1384. ac_given_INSTALL="$INSTALL"
  1385.  
  1386. trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1387. EOF
  1388. cat >> $CONFIG_STATUS <<EOF
  1389.  
  1390. # Protect against being on the right side of a sed subst in config.status.
  1391. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  1392.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  1393. $ac_vpsub
  1394. $extrasub
  1395. s%@CFLAGS@%$CFLAGS%g
  1396. s%@CPPFLAGS@%$CPPFLAGS%g
  1397. s%@CXXFLAGS@%$CXXFLAGS%g
  1398. s%@DEFS@%$DEFS%g
  1399. s%@LDFLAGS@%$LDFLAGS%g
  1400. s%@LIBS@%$LIBS%g
  1401. s%@exec_prefix@%$exec_prefix%g
  1402. s%@prefix@%$prefix%g
  1403. s%@program_transform_name@%$program_transform_name%g
  1404. s%@bindir@%$bindir%g
  1405. s%@sbindir@%$sbindir%g
  1406. s%@libexecdir@%$libexecdir%g
  1407. s%@datadir@%$datadir%g
  1408. s%@sysconfdir@%$sysconfdir%g
  1409. s%@sharedstatedir@%$sharedstatedir%g
  1410. s%@localstatedir@%$localstatedir%g
  1411. s%@libdir@%$libdir%g
  1412. s%@includedir@%$includedir%g
  1413. s%@oldincludedir@%$oldincludedir%g
  1414. s%@infodir@%$infodir%g
  1415. s%@guidedir@%$guidedir%g
  1416. s%@psdir@%$psdir%g
  1417. s%@dvidir@%$dvidir%g
  1418. s%@mandir@%$mandir%g
  1419. s%@CC@%$CC%g
  1420. s%@CPP@%$CPP%g
  1421. s%@YACC@%$YACC%g
  1422. s%@LEX@%$LEX%g
  1423. s%@LEXLIB@%$LEXLIB%g
  1424. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1425. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1426.  
  1427. CEOF
  1428. EOF
  1429. cat >> $CONFIG_STATUS <<EOF
  1430.  
  1431. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  1432. EOF
  1433. cat >> $CONFIG_STATUS <<\EOF
  1434. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1435.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  1436.   case "$ac_file" in
  1437.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  1438.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1439.   *) ac_file_in="${ac_file}.in" ;;
  1440.   esac
  1441.  
  1442.   # Adjust relative srcdir, etc. for subdirectories.
  1443.  
  1444.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1445.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1446.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1447.     # The file is in a subdirectory.
  1448.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  1449.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  1450.     # A "../" for each directory in $ac_dir_suffix.
  1451.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1452.   else
  1453.     ac_dir_suffix= ac_dots=
  1454.   fi
  1455.  
  1456.   case "$ac_given_srcdir" in
  1457.   .)  srcdir=.
  1458.       if test -z "$ac_dots"; then top_srcdir=.
  1459.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1460.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1461.   *) # Relative path.
  1462.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1463.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1464.   esac
  1465.  
  1466.   case "$ac_given_INSTALL" in
  1467.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  1468.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  1469.   esac
  1470.   echo creating "$ac_file"
  1471.   rm -f "$ac_file"
  1472.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1473.   case "$ac_file" in
  1474.   *Makefile*) ac_comsub="1i\\
  1475. # $configure_input" ;;
  1476.   *) ac_comsub= ;;
  1477.   esac
  1478.   sed -e "$ac_comsub
  1479. s%@configure_input@%$configure_input%g
  1480. s%@srcdir@%$srcdir%g
  1481. s%@top_srcdir@%$top_srcdir%g
  1482. s%@INSTALL@%$INSTALL%g
  1483. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  1484. fi; done
  1485. rm -f conftest.subs
  1486.  
  1487. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  1488. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  1489. #
  1490. # ac_d sets the value in "#define NAME VALUE" lines.
  1491. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  1492. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  1493. ac_dC='\3'
  1494. ac_dD='%g'
  1495. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  1496. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  1497. ac_uB='\([     ]\)%\1#\2define\3'
  1498. ac_uC=' '
  1499. ac_uD='\4%g'
  1500. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  1501. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  1502. ac_eB='$%\1#\2define\3'
  1503. ac_eC=' '
  1504. ac_eD='%g'
  1505.  
  1506. CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
  1507. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  1508.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  1509.   case "$ac_file" in
  1510.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  1511.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1512.   *) ac_file_in="${ac_file}.in" ;;
  1513.   esac
  1514.  
  1515.   echo creating $ac_file
  1516.  
  1517.   rm -f conftest.frag conftest.in conftest.out
  1518.   cp $ac_given_srcdir/$ac_file_in conftest.in
  1519.  
  1520. EOF
  1521.  
  1522. # Transform confdefs.h into a sed script conftest.vals that substitutes
  1523. # the proper values into config.h.in to produce config.h.  And first:
  1524. # Protect against being on the right side of a sed subst in config.status.
  1525. # Protect against being in an unquoted here document in config.status.
  1526. rm -f conftest.vals
  1527. cat > conftest.hdr <<\EOF
  1528. s/[\\&%]/\\&/g
  1529. s%[\\$`]%\\&%g
  1530. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  1531. s%ac_d%ac_u%gp
  1532. s%ac_u%ac_e%gp
  1533. EOF
  1534. sed -n -f conftest.hdr confdefs.h > conftest.vals
  1535. rm -f conftest.hdr
  1536.  
  1537. # This sed command replaces #undef with comments.  This is necessary, for
  1538. # example, in the case of _POSIX_SOURCE, which is predefined and required
  1539. # on some systems where configure will not decide to define it.
  1540. cat >> conftest.vals <<\EOF
  1541. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  1542. EOF
  1543.  
  1544. # Break up conftest.vals because some shells have a limit on
  1545. # the size of here documents, and old seds have small limits too.
  1546. # Maximum number of lines to put in a single here document.
  1547. ac_max_here_lines=12
  1548.  
  1549. rm -f conftest.tail
  1550. while :
  1551. do
  1552.   ac_lines=`grep -c . conftest.vals`
  1553.   # grep -c gives empty output for an empty file on some AIX systems.
  1554.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  1555.   # Write a limited-size here document to conftest.frag.
  1556.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  1557.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  1558.   echo 'CEOF
  1559.   sed -f conftest.frag conftest.in > conftest.out
  1560.   rm -f conftest.in
  1561.   mv conftest.out conftest.in
  1562. ' >> $CONFIG_STATUS
  1563.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  1564.   rm -f conftest.vals
  1565.   mv conftest.tail conftest.vals
  1566. done
  1567. rm -f conftest.vals
  1568.  
  1569. cat >> $CONFIG_STATUS <<\EOF
  1570.   rm -f conftest.frag conftest.h
  1571.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  1572.   cat conftest.in >> conftest.h
  1573.   rm -f conftest.in
  1574.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  1575.     echo "$ac_file is unchanged"
  1576.     rm -f conftest.h
  1577.   else
  1578.     # Remove last slash and all that follows it.  Not all systems have dirname.
  1579.       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1580.       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1581.       # The file is in a subdirectory.
  1582.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  1583.     fi
  1584.     rm -f $ac_file
  1585.     mv conftest.h $ac_file
  1586.   fi
  1587. fi; done
  1588.  
  1589.  
  1590.  
  1591. exit 0
  1592. EOF
  1593. chmod +x $CONFIG_STATUS
  1594. rm -f CONFIG.STATUS.old
  1595. rm -fr confdefs* $ac_clean_files
  1596. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  1597.  
  1598.  
  1599.