home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / bc-1.03-base.tgz / bc-1.03-base.tar / fsf / bc / configure < prev    next >
Text File  |  1994-11-03  |  39KB  |  1,354 lines

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