home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / gnum4.zip / configure < prev    next >
Text File  |  1994-11-05  |  57KB  |  2,124 lines

  1. #!/bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.1 
  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. ac_help="$ac_help
  15.   --enable-changeword     enable -W and changeword() builtin"
  16. ac_help="$ac_help
  17.   --with-dmalloc          use dmalloc, as in dmalloc.tar.gz from
  18.                           @/ftp.antaire.com:antaire/src/dmalloc."
  19.  
  20. # Initialize some variables set by options.
  21. # The variables have the same names as the options, with
  22. # dashes changed to underlines.
  23. build=NONE
  24. cache_file=./config.cache
  25. exec_prefix=NONE
  26. host=NONE
  27. no_create=
  28. nonopt=NONE
  29. no_recursion=
  30. prefix=NONE
  31. program_prefix=NONE
  32. program_suffix=NONE
  33. program_transform_name=s,x,x,
  34. silent=
  35. site=
  36. srcdir=
  37. target=NONE
  38. verbose=
  39. x_includes=NONE
  40. x_libraries=NONE
  41.  
  42. # Initialize some other variables.
  43. subdirs=
  44.  
  45. ac_prev=
  46. for ac_option
  47. do
  48.  
  49.   # If the previous option needs an argument, assign it.
  50.   if test -n "$ac_prev"; then
  51.     eval "$ac_prev=\$ac_option"
  52.     ac_prev=
  53.     continue
  54.   fi
  55.  
  56.   case "$ac_option" in
  57.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  58.   *) ac_optarg= ;;
  59.   esac
  60.  
  61.   # Accept the important Cygnus configure options, so we can diagnose typos.
  62.  
  63.   case "$ac_option" in
  64.  
  65.   -build | --build | --buil | --bui | --bu | --b)
  66.     ac_prev=build ;;
  67.   -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  68.     build="$ac_optarg" ;;
  69.  
  70.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  71.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  72.     ac_prev=cache_file ;;
  73.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  74.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  75.     cache_file="$ac_optarg" ;;
  76.  
  77.   -disable-* | --disable-*)
  78.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  79.     # Reject names that are not valid shell variable names.
  80.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  81.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  82.     fi
  83.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  84.     eval "enable_${ac_feature}=no" ;;
  85.  
  86.   -enable-* | --enable-*)
  87.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  88.     # Reject names that are not valid shell variable names.
  89.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  90.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  91.     fi
  92.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  93.     case "$ac_option" in
  94.       *=*) ;;
  95.       *) ac_optarg=yes ;;
  96.     esac
  97.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  98.  
  99.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  100.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  101.   | --exec | --exe | --ex)
  102.     ac_prev=exec_prefix ;;
  103.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  104.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  105.   | --exec=* | --exe=* | --ex=*)
  106.     exec_prefix="$ac_optarg" ;;
  107.  
  108.   -gas | --gas | --ga | --g)
  109.     # Obsolete; use --with-gas.
  110.     with_gas=yes ;;
  111.  
  112.   -help | --help | --hel | --he)
  113.     # Omit some internal or obsolete options to make the list less imposing.
  114.     # This message is too long to be a string in the A/UX 3.1 sh.
  115.     cat << EOF
  116. Usage: configure [options] [host]
  117. Options: [defaults in brackets after descriptions]
  118. Configuration:
  119.   --cache-file=FILE       cache test results in FILE
  120.   --help                  print this message
  121.   --no-create             do not create output files
  122.   --quiet, --silent       do not print \`checking...' messages
  123.   --version               print the version of autoconf that created configure
  124. Directory and file names:
  125.   --prefix=PREFIX         install architecture-independent files in PREFIX
  126.                           [$ac_default_prefix]
  127.   --exec-prefix=PREFIX    install architecture-dependent files in PREFIX
  128.                           [same as prefix]
  129.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  130.   --program-prefix=PREFIX prepend PREFIX to installed program names
  131.   --program-suffix=SUFFIX append SUFFIX to installed program names
  132.   --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  133. Host type:
  134.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  135.   --host=HOST             configure for HOST [guessed]
  136.   --target=TARGET         configure for TARGET [TARGET=HOST]
  137. Features and packages:
  138.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  139.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  140.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  141.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  142.   --x-includes=DIR        X include files are in DIR
  143.   --x-libraries=DIR       X library files are in DIR
  144. --enable and --with options recognized:$ac_help
  145. EOF
  146.     exit 0 ;;
  147.  
  148.   -host | --host | --hos | --ho)
  149.     ac_prev=host ;;
  150.   -host=* | --host=* | --hos=* | --ho=*)
  151.     host="$ac_optarg" ;;
  152.  
  153.   -nfp | --nfp | --nf)
  154.     # Obsolete; use --without-fp.
  155.     with_fp=no ;;
  156.  
  157.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  158.   | --no-cr | --no-c)
  159.     no_create=yes ;;
  160.  
  161.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  162.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  163.     no_recursion=yes ;;
  164.  
  165.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  166.     ac_prev=prefix ;;
  167.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  168.     prefix="$ac_optarg" ;;
  169.  
  170.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  171.   | --program-pre | --program-pr | --program-p)
  172.     ac_prev=program_prefix ;;
  173.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  174.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  175.     program_prefix="$ac_optarg" ;;
  176.  
  177.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  178.   | --program-suf | --program-su | --program-s)
  179.     ac_prev=program_suffix ;;
  180.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  181.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  182.     program_suffix="$ac_optarg" ;;
  183.  
  184.   -program-transform-name | --program-transform-name \
  185.   | --program-transform-nam | --program-transform-na \
  186.   | --program-transform-n | --program-transform- \
  187.   | --program-transform | --program-transfor \
  188.   | --program-transfo | --program-transf \
  189.   | --program-trans | --program-tran \
  190.   | --progr-tra | --program-tr | --program-t)
  191.     ac_prev=program_transform_name ;;
  192.   -program-transform-name=* | --program-transform-name=* \
  193.   | --program-transform-nam=* | --program-transform-na=* \
  194.   | --program-transform-n=* | --program-transform-=* \
  195.   | --program-transform=* | --program-transfor=* \
  196.   | --program-transfo=* | --program-transf=* \
  197.   | --program-trans=* | --program-tran=* \
  198.   | --progr-tra=* | --program-tr=* | --program-t=*)
  199.     program_transform_name="$ac_optarg" ;;
  200.  
  201.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  202.   | -silent | --silent | --silen | --sile | --sil)
  203.     silent=yes ;;
  204.  
  205.   -site | --site | --sit)
  206.     ac_prev=site ;;
  207.   -site=* | --site=* | --sit=*)
  208.     site="$ac_optarg" ;;
  209.  
  210.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  211.     ac_prev=srcdir ;;
  212.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  213.     srcdir="$ac_optarg" ;;
  214.  
  215.   -target | --target | --targe | --targ | --tar | --ta | --t)
  216.     ac_prev=target ;;
  217.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  218.     target="$ac_optarg" ;;
  219.  
  220.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  221.     verbose=yes ;;
  222.  
  223.   -version | --version | --versio | --versi | --vers)
  224.     echo "configure generated by autoconf version 2.1"
  225.     exit 0 ;;
  226.  
  227.   -with-* | --with-*)
  228.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  229.     # Reject names that are not valid shell variable names.
  230.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  231.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  232.     fi
  233.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  234.     case "$ac_option" in
  235.       *=*) ;;
  236.       *) ac_optarg=yes ;;
  237.     esac
  238.     eval "with_${ac_package}='$ac_optarg'" ;;
  239.  
  240.   -without-* | --without-*)
  241.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  242.     # Reject names that are not valid shell variable names.
  243.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  244.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  245.     fi
  246.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  247.     eval "with_${ac_package}=no" ;;
  248.  
  249.   --x)
  250.     # Obsolete; use --with-x.
  251.     with_x=yes ;;
  252.  
  253.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  254.   | --x-incl | --x-inc | --x-in | --x-i)
  255.     ac_prev=x_includes ;;
  256.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  257.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  258.     x_includes="$ac_optarg" ;;
  259.  
  260.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  261.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  262.     ac_prev=x_libraries ;;
  263.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  264.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  265.     x_libraries="$ac_optarg" ;;
  266.  
  267.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  268.     ;;
  269.  
  270.   *) 
  271.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  272.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  273.     fi
  274.     if test "x$nonopt" != xNONE; then
  275.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  276.     fi
  277.     nonopt="$ac_option"
  278.     ;;
  279.  
  280.   esac
  281. done
  282.  
  283. if test -n "$ac_prev"; then
  284.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  285. fi
  286.  
  287. trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  288.  
  289. # File descriptor usage:
  290. # 0 unused; standard input
  291. # 1 file creation
  292. # 2 errors and warnings
  293. # 3 unused; some systems may open it to /dev/tty
  294. # 4 checking for... messages and results
  295. # 5 compiler messages saved in config.log
  296. if test "$silent" = yes; then
  297.   exec 4>/dev/null
  298. else
  299.   exec 4>&1
  300. fi
  301. exec 5>./config.log
  302.  
  303. echo "\
  304. This file contains any messages produced by compilers while
  305. running configure, to aid debugging if configure makes a mistake.
  306. " 1>&5
  307.  
  308. # Strip out --no-create and --no-recursion so they do not pile up.
  309. # Also quote any args containing shell metacharacters.
  310. ac_configure_args=
  311. for ac_arg
  312. do
  313.   case "$ac_arg" in
  314.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  315.   | --no-cr | --no-c) ;;
  316.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  317.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  318.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  319.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  320.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  321.   esac
  322. done
  323.  
  324. # NLS nuisances.
  325. # Only set LANG and LC_ALL to C if already set.
  326. # These must not be set unconditionally because not all systems understand
  327. # e.g. LANG=C (notably SCO).
  328. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  329. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  330.  
  331. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  332. rm -rf conftest* confdefs.h
  333. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  334. echo > confdefs.h
  335.  
  336. # A filename unique to this package, relative to the directory that
  337. # configure is in, which we can look for to find out if srcdir is correct.
  338. ac_unique_file=src/m4.c
  339.  
  340. # Find the source files, if location was not specified.
  341. if test -z "$srcdir"; then
  342.   ac_srcdir_defaulted=yes
  343.   # Try the directory containing this script, then its parent.
  344.   ac_prog=$0
  345.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  346.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  347.   srcdir=$ac_confdir
  348.   if test ! -r $srcdir/$ac_unique_file; then
  349.     srcdir=..
  350.   fi
  351. else
  352.   ac_srcdir_defaulted=no
  353. fi
  354. if test ! -r $srcdir/$ac_unique_file; then
  355.   if test "$ac_srcdir_defaulted" = yes; then
  356.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  357.   else
  358.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  359.   fi
  360. fi
  361. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  362.  
  363. # Prefer explicitly selected file to automatically selected ones.
  364. if test -z "$CONFIG_SITE"; then
  365.   if test "x$prefix" != xNONE; then
  366.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  367.   else
  368.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  369.   fi
  370. fi
  371. for ac_site_file in $CONFIG_SITE; do
  372.   if test -r "$ac_site_file"; then
  373.     echo "loading site script $ac_site_file"
  374.     . "$ac_site_file"
  375.   fi
  376. done
  377.  
  378. if test -r "$cache_file"; then
  379.   echo "loading cache $cache_file"
  380.   . $cache_file
  381. else
  382.   echo "creating cache $cache_file"
  383.   > $cache_file
  384. fi
  385.  
  386. ac_ext=c
  387. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  388. ac_cpp='$CPP $CPPFLAGS'
  389. ac_compile='${CC-cc} $CFLAGS $CPPFLAGS conftest.$ac_ext -c 1>&5 2>&5'
  390. ac_link='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext -o conftest $LIBS 1>&5 2>&5'
  391.  
  392. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  393.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  394.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  395.     ac_n= ac_c='
  396. ' ac_t='    '
  397.   else
  398.     ac_n=-n ac_c= ac_t=
  399.   fi
  400. else
  401.   ac_n= ac_c='\c' ac_t=
  402. fi
  403.  
  404.  
  405.  
  406. if test "$program_transform_name" = s,x,x,; then
  407.   program_transform_name=
  408. else
  409.   # Double any \ or $.
  410.   echo 's,\\,\\\\,g; s,\$,$$,g' > conftestsed
  411.   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  412.   rm -f conftestsed
  413. fi
  414. test "$program_prefix" != NONE &&
  415.   program_transform_name="s,^,${program_prefix},; $program_transform_name"
  416. # Use a double $ so make ignores it.
  417. test "$program_suffix" != NONE &&
  418.   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  419.  
  420. # sed with no file args requires a program.
  421. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  422.  
  423.  
  424. PRODUCT=m4
  425. VERSION=1.4
  426. cat >> confdefs.h <<EOF
  427. #define PRODUCT "$PRODUCT"
  428. EOF
  429.  
  430. cat >> confdefs.h <<EOF
  431. #define VERSION "$VERSION"
  432. EOF
  433.  
  434.  
  435.  
  436.  
  437. for ac_prog in mawk gawk nawk awk
  438. do
  439. # Extract the first word of "$ac_prog", so it can be a program name with args.
  440. set dummy $ac_prog; ac_word=$2
  441. echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  442. if eval "test \"`echo '${'ac_cv_prog_AWK'+set}'`\" = set"; then
  443.   echo $ac_n "(cached) $ac_c" 1>&4
  444. else
  445.   if test -n "$AWK"; then
  446.   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  447. else
  448.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  449.   for ac_dir in $PATH; do
  450.     test -z "$ac_dir" && ac_dir=.
  451.     if test -f $ac_dir/$ac_word; then
  452.       ac_cv_prog_AWK="$ac_prog"
  453.       break
  454.     fi
  455.   done
  456.   IFS="$ac_save_ifs"
  457. fi
  458. fi
  459. AWK="$ac_cv_prog_AWK"
  460. if test -n "$AWK"; then
  461.   echo "$ac_t""$AWK" 1>&4
  462. else
  463.   echo "$ac_t""no" 1>&4
  464. fi
  465.  
  466. test -n "$AWK" && break
  467. done
  468.  
  469. # Extract the first word of "gcc", so it can be a program name with args.
  470. set dummy gcc; ac_word=$2
  471. echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  472. if eval "test \"`echo '${'ac_cv_prog_CC'+set}'`\" = set"; then
  473.   echo $ac_n "(cached) $ac_c" 1>&4
  474. else
  475.   if test -n "$CC"; then
  476.   ac_cv_prog_CC="$CC" # Let the user override the test.
  477. else
  478.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  479.   for ac_dir in $PATH; do
  480.     test -z "$ac_dir" && ac_dir=.
  481.     if test -f $ac_dir/$ac_word; then
  482.       ac_cv_prog_CC="gcc"
  483.       break
  484.     fi
  485.   done
  486.   IFS="$ac_save_ifs"
  487.   test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
  488. fi
  489. fi
  490. CC="$ac_cv_prog_CC"
  491. if test -n "$CC"; then
  492.   echo "$ac_t""$CC" 1>&4
  493. else
  494.   echo "$ac_t""no" 1>&4
  495. fi
  496.  
  497.  
  498. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&4
  499. if eval "test \"`echo '${'ac_cv_prog_gcc'+set}'`\" = set"; then
  500.   echo $ac_n "(cached) $ac_c" 1>&4
  501. else
  502.   cat > conftest.c <<EOF
  503. #ifdef __GNUC__
  504.   yes;
  505. #endif
  506. EOF
  507. if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
  508.   ac_cv_prog_gcc=yes
  509. else
  510.   ac_cv_prog_gcc=no
  511. fi
  512. fi
  513. echo "$ac_t""$ac_cv_prog_gcc" 1>&4
  514. if test $ac_cv_prog_gcc = yes; then
  515.   GCC=yes
  516.   if test "${CFLAGS+set}" != set; then
  517.     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&4
  518. if eval "test \"`echo '${'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  519.   echo $ac_n "(cached) $ac_c" 1>&4
  520. else
  521.   echo 'void f(){}' > conftest.c
  522. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  523.   ac_cv_prog_gcc_g=yes
  524. else
  525.   ac_cv_prog_gcc_g=no
  526. fi
  527. rm -f conftest*
  528.  
  529. fi
  530.     echo "$ac_t""$ac_cv_prog_gcc_g" 1>&4
  531.     if test $ac_cv_prog_gcc_g = yes; then
  532.       CFLAGS="-g -O"
  533.     else
  534.       CFLAGS="-O"
  535.     fi
  536.   fi
  537. else
  538.   GCC=
  539.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  540. fi
  541.  
  542. ac_aux_dir=
  543. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  544.   if test -f $ac_dir/install-sh; then
  545.     ac_aux_dir=$ac_dir
  546.     ac_install_sh="$ac_aux_dir/install-sh -c"
  547.     break
  548.   elif test -f $ac_dir/install.sh; then
  549.     ac_aux_dir=$ac_dir
  550.     ac_install_sh="$ac_aux_dir/install.sh -c"
  551.     break
  552.   fi
  553. done
  554. if test -z "$ac_aux_dir"; then
  555.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  556. fi
  557. ac_config_guess=$ac_aux_dir/config.guess
  558. ac_config_sub=$ac_aux_dir/config.sub
  559. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  560.  
  561. # Find a good install program.  We prefer a C program (faster),
  562. # so one script is as good as another.  But avoid the broken or
  563. # incompatible versions:
  564. # SysV /etc/install, /usr/sbin/install
  565. # SunOS /usr/etc/install
  566. # IRIX /sbin/install
  567. # AIX /bin/install
  568. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  569. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  570. # ./install, which can be erroneously created by make from ./install.sh.
  571. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4
  572. if test -z "$INSTALL"; then
  573. if eval "test \"`echo '${'ac_cv_path_install'+set}'`\" = set"; then
  574.   echo $ac_n "(cached) $ac_c" 1>&4
  575. else
  576.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  577.   for ac_dir in $PATH; do
  578.     case "$ac_dir" in
  579.     ''|.|/etc|/usr/sbin|/usr/etc|/sbin|/usr/afsws/bin|/usr/ucb) ;;
  580.     *)
  581.       # OSF1 and SCO ODT 3.0 have their own names for install.
  582.       for ac_prog in ginstall installbsd scoinst install; do
  583.         if test -f $ac_dir/$ac_prog; then
  584.       if test $ac_prog = install &&
  585.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  586.         # AIX install.  It has an incompatible calling convention.
  587.         # OSF/1 installbsd also uses dspmsg, but is usable.
  588.         :
  589.       else
  590.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  591.         break 2
  592.       fi
  593.     fi
  594.       done
  595.       ;;
  596.     esac
  597.   done
  598.   IFS="$ac_save_ifs"
  599.   # As a last resort, use the slow shell script.
  600.   test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
  601. fi
  602.   INSTALL="$ac_cv_path_install"
  603. fi
  604. echo "$ac_t""$INSTALL" 1>&4
  605.  
  606. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  607. # It thinks the first close brace ends the variable substitution.
  608. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  609.  
  610. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  611.  
  612. echo $ac_n "checking whether ${MAKE-make} sets \$MAKE""... $ac_c" 1>&4
  613. set dummy ${MAKE-make}; ac_make=$2
  614. if eval "test \"`echo '${'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  615.   echo $ac_n "(cached) $ac_c" 1>&4
  616. else
  617.   cat > conftestmake <<\EOF
  618. all:
  619.     @echo 'ac_maketemp="${MAKE}"'
  620. EOF
  621. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  622. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  623. if test -n "$ac_maketemp"; then
  624.   eval ac_cv_prog_make_${ac_make}_set=yes
  625. else
  626.   eval ac_cv_prog_make_${ac_make}_set=no
  627. fi
  628. rm -f conftestmake
  629. fi
  630. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  631.   echo "$ac_t""yes" 1>&4
  632.   SET_MAKE=
  633. else
  634.   echo "$ac_t""no" 1>&4
  635.   SET_MAKE="MAKE=${MAKE-make}"
  636. fi
  637.  
  638. # Extract the first word of "ranlib", so it can be a program name with args.
  639. set dummy ranlib; ac_word=$2
  640. echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  641. if eval "test \"`echo '${'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  642.   echo $ac_n "(cached) $ac_c" 1>&4
  643. else
  644.   if test -n "$RANLIB"; then
  645.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  646. else
  647.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  648.   for ac_dir in $PATH; do
  649.     test -z "$ac_dir" && ac_dir=.
  650.     if test -f $ac_dir/$ac_word; then
  651.       ac_cv_prog_RANLIB="ranlib"
  652.       break
  653.     fi
  654.   done
  655.   IFS="$ac_save_ifs"
  656.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  657. fi
  658. fi
  659. RANLIB="$ac_cv_prog_RANLIB"
  660. if test -n "$RANLIB"; then
  661.   echo "$ac_t""$RANLIB" 1>&4
  662. else
  663.   echo "$ac_t""no" 1>&4
  664. fi
  665.  
  666.  
  667. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&4
  668. # On Suns, sometimes $CPP names a directory.
  669. if test -n "$CPP" && test -d "$CPP"; then
  670.   CPP=
  671. fi
  672. if test -z "$CPP"; then
  673. if eval "test \"`echo '${'ac_cv_prog_CPP'+set}'`\" = set"; then
  674.   echo $ac_n "(cached) $ac_c" 1>&4
  675. else
  676.     # This must be in double quotes, not single quotes, because CPP may get
  677.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  678.   CPP="${CC-cc} -E"
  679.   # On the NeXT, cc -E runs the code through the compiler's parser,
  680.   # not just through cpp.
  681.   cat > conftest.$ac_ext <<EOF
  682. #line 683 "configure"
  683. #include "confdefs.h"
  684. #include <assert.h>
  685. Syntax Error
  686. EOF
  687. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  688. ac_err=`grep -v '^ *+' conftest.out`
  689. if test -z "$ac_err"; then
  690.   :
  691. else
  692.   echo "$ac_err" >&5
  693.   rm -rf conftest*
  694.   CPP="${CC-cc} -E -traditional-cpp"
  695.   cat > conftest.$ac_ext <<EOF
  696. #line 697 "configure"
  697. #include "confdefs.h"
  698. #include <assert.h>
  699. Syntax Error
  700. EOF
  701. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  702. ac_err=`grep -v '^ *+' conftest.out`
  703. if test -z "$ac_err"; then
  704.   :
  705. else
  706.   echo "$ac_err" >&5
  707.   rm -rf conftest*
  708.   CPP=/lib/cpp
  709. fi
  710. rm -f conftest*
  711. fi
  712. rm -f conftest*
  713.   ac_cv_prog_CPP="$CPP"
  714. fi
  715. fi
  716. CPP="$ac_cv_prog_CPP"
  717. echo "$ac_t""$CPP" 1>&4
  718.  
  719. echo $ac_n "checking for AIX""... $ac_c" 1>&4
  720. cat > conftest.$ac_ext <<EOF
  721. #line 722 "configure"
  722. #include "confdefs.h"
  723. #ifdef _AIX
  724.   yes
  725. #endif
  726.  
  727. EOF
  728. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  729.   egrep "yes" >/dev/null 2>&1; then
  730.   rm -rf conftest*
  731.   echo "$ac_t""yes" 1>&4; cat >> confdefs.h <<\EOF
  732. #define _ALL_SOURCE 1
  733. EOF
  734.  
  735. else
  736.   rm -rf conftest*
  737.   echo "$ac_t""no" 1>&4
  738. fi
  739. rm -f conftest*
  740.  
  741.  
  742. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&4
  743. if test -d /etc/conf/kconfig.d &&
  744.   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  745. then
  746.   echo "$ac_t""yes" 1>&4
  747.   ISC=yes # If later tests want to check for ISC.
  748.   cat >> confdefs.h <<\EOF
  749. #define _POSIX_SOURCE 1
  750. EOF
  751.  
  752.   if test "$GCC" = yes; then
  753.     CC="$CC -posix"
  754.   else
  755.     CC="$CC -Xp"
  756.   fi
  757. else
  758.   echo "$ac_t""no" 1>&4
  759.   ISC=
  760. fi
  761.  
  762. ac_safe=`echo "minix/config.h" | tr './\055' '___'`
  763. echo $ac_n "checking for minix/config.h""... $ac_c" 1>&4
  764. if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  765.   echo $ac_n "(cached) $ac_c" 1>&4
  766. else
  767.   cat > conftest.$ac_ext <<EOF
  768. #line 769 "configure"
  769. #include "confdefs.h"
  770. #include <minix/config.h>
  771. EOF
  772. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  773. ac_err=`grep -v '^ *+' conftest.out`
  774. if test -z "$ac_err"; then
  775.   rm -rf conftest*
  776.   eval "ac_cv_header_$ac_safe=yes"
  777. else
  778.   echo "$ac_err" >&5
  779.   rm -rf conftest*
  780.   eval "ac_cv_header_$ac_safe=no"
  781. fi
  782. rm -f conftest*
  783. fi
  784. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  785.   echo "$ac_t""yes" 1>&4
  786.   MINIX=yes
  787. else
  788.   echo "$ac_t""no" 1>&4
  789. MINIX=
  790. fi
  791.  
  792. if test "$MINIX" = yes; then
  793.   cat >> confdefs.h <<\EOF
  794. #define _POSIX_SOURCE 1
  795. EOF
  796.  
  797.   cat >> confdefs.h <<\EOF
  798. #define _POSIX_1_SOURCE 2
  799. EOF
  800.  
  801.   cat >> confdefs.h <<\EOF
  802. #define _MINIX 1
  803. EOF
  804.  
  805. fi
  806.  
  807. echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&4
  808. if eval "test \"`echo '${'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
  809.   echo $ac_n "(cached) $ac_c" 1>&4
  810. else
  811.   ac_cv_prog_cc_stdc=no
  812. ac_save_CFLAGS="$CFLAGS"
  813. # Don't try gcc -ansi; that turns off useful extensions and
  814. # breaks some systems' header files.
  815. # AIX            -qlanglvl=ansi
  816. # Ultrix and OSF/1    -std1
  817. # HP-UX            -Aa -D_HPUX_SOURCE
  818. # SVR4            -Xc
  819. for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
  820. do
  821.   CFLAGS="$ac_save_CFLAGS $ac_arg"
  822.   cat > conftest.$ac_ext <<EOF
  823. #line 824 "configure"
  824. #include "confdefs.h"
  825. #if !defined(__STDC__) || __STDC__ != 1
  826. choke me
  827. #endif    
  828.  
  829. int main() { return 0; }
  830. int t() {
  831. int test (int i, double x);
  832. struct s1 {int (*f) (int a);};
  833. struct s2 {int (*f) (double a);};
  834. ; return 0; }
  835. EOF
  836. if eval $ac_compile; then
  837.   rm -rf conftest*
  838.   ac_cv_prog_cc_stdc="$ac_arg"; break
  839. fi
  840. rm -f conftest*
  841.  
  842. done
  843. CFLAGS="$ac_save_CFLAGS"
  844.  
  845. fi
  846.  
  847. echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&4
  848. case "x$ac_cv_prog_cc_stdc" in
  849.   x|xno) ;;
  850.   *) CC="$CC $ac_cv_prog_cc_stdc" ;;
  851. esac
  852.  
  853.  
  854. echo $ac_n "checking for function prototypes""... $ac_c" 1>&4
  855. if test "$ac_cv_prog_cc_stdc" != no; then
  856.   echo "$ac_t""yes" 1>&4
  857.   cat >> confdefs.h <<\EOF
  858. #define PROTOTYPES 1
  859. EOF
  860.  
  861.   U= ANSI2KNR=
  862. else
  863.   echo "$ac_t""no" 1>&4
  864.   U=_ ANSI2KNR=ansi2knr
  865. fi
  866.  
  867. echo $ac_n "checking for working const""... $ac_c" 1>&4
  868. if eval "test \"`echo '${'ac_cv_c_const'+set}'`\" = set"; then
  869.   echo $ac_n "(cached) $ac_c" 1>&4
  870. else
  871.   cat > conftest.$ac_ext <<EOF
  872. #line 873 "configure"
  873. #include "confdefs.h"
  874.  
  875. int main() { return 0; }
  876. int t() {
  877.  
  878. /* Ultrix mips cc rejects this.  */
  879. typedef int charset[2]; const charset x;
  880. /* SunOS 4.1.1 cc rejects this.  */
  881. char const *const *ccp;
  882. char **p;
  883. /* NEC SVR4.0.2 mips cc rejects this.  */
  884. struct point {int x, y;};
  885. static struct point const zero;
  886. /* AIX XL C 1.02.0.0 rejects this.
  887.    It does not let you subtract one const X* pointer from another in an arm
  888.    of an if-expression whose if-part is not a constant expression */
  889. const char *g = "string";
  890. ccp = &g + (g ? g-g : 0);
  891. /* HPUX 7.0 cc rejects these. */
  892. ++ccp;
  893. p = (char**) ccp;
  894. ccp = (char const *const *) p;
  895. { /* SCO 3.2v4 cc rejects this.  */
  896.   char *t;
  897.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  898.  
  899.   *t++ = 0;
  900. }
  901. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  902.   int x[] = {25, 17};
  903.   const int *foo = &x[0];
  904.   ++foo;
  905. }
  906. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  907.   typedef const int *iptr;
  908.   iptr p = 0;
  909.   ++p;
  910. }
  911. { /* AIX XL C 1.02.0.0 rejects this saying
  912.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  913.   struct s { int j; const int *ap[3]; };
  914.   struct s *b; b->j = 5;
  915. }
  916. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  917.   const int foo = 10;
  918. }
  919.  
  920. ; return 0; }
  921. EOF
  922. if eval $ac_compile; then
  923.   rm -rf conftest*
  924.   ac_cv_c_const=yes
  925. else
  926.   rm -rf conftest*
  927.   ac_cv_c_const=no
  928. fi
  929. rm -f conftest*
  930.  
  931. fi
  932. echo "$ac_t""$ac_cv_c_const" 1>&4
  933. if test $ac_cv_c_const = no; then
  934.   cat >> confdefs.h <<\EOF
  935. #define const 
  936. EOF
  937.  
  938. fi
  939.  
  940.  
  941. for ac_hdr in limits.h memory.h siginfo.h string.h unistd.h
  942. do
  943. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  944. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&4
  945. if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  946.   echo $ac_n "(cached) $ac_c" 1>&4
  947. else
  948.   cat > conftest.$ac_ext <<EOF
  949. #line 950 "configure"
  950. #include "confdefs.h"
  951. #include <$ac_hdr>
  952. EOF
  953. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  954. ac_err=`grep -v '^ *+' conftest.out`
  955. if test -z "$ac_err"; then
  956.   rm -rf conftest*
  957.   eval "ac_cv_header_$ac_safe=yes"
  958. else
  959.   echo "$ac_err" >&5
  960.   rm -rf conftest*
  961.   eval "ac_cv_header_$ac_safe=no"
  962. fi
  963. rm -f conftest*
  964. fi
  965. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  966.   echo "$ac_t""yes" 1>&4
  967.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  968.   cat >> confdefs.h <<EOF
  969. #define $ac_tr_hdr 1
  970. EOF
  971.  
  972. else
  973.   echo "$ac_t""no" 1>&4
  974. fi
  975. done
  976.  
  977. # If we cannot run a trivial program, we must be cross compiling.
  978. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&4
  979. if eval "test \"`echo '${'ac_cv_c_cross'+set}'`\" = set"; then
  980.   echo $ac_n "(cached) $ac_c" 1>&4
  981. else
  982.   if test "$cross_compiling" = yes; then
  983.   ac_cv_cross=yes
  984. else
  985. cat > conftest.$ac_ext <<EOF
  986. #line 987 "configure"
  987. #include "confdefs.h"
  988. main(){return(0);}
  989. EOF
  990. eval $ac_link
  991. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  992.   ac_cv_c_cross=no
  993. else
  994.   ac_cv_c_cross=yes
  995. fi
  996. fi
  997. rm -fr conftest*
  998. fi
  999. cross_compiling=$ac_cv_c_cross
  1000. echo "$ac_t""$ac_cv_c_cross" 1>&4
  1001.  
  1002. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&4
  1003. if eval "test \"`echo '${'ac_cv_header_stdc'+set}'`\" = set"; then
  1004.   echo $ac_n "(cached) $ac_c" 1>&4
  1005. else
  1006.   cat > conftest.$ac_ext <<EOF
  1007. #line 1008 "configure"
  1008. #include "confdefs.h"
  1009. #include <stdlib.h>
  1010. #include <stdarg.h>
  1011. #include <string.h>
  1012. #include <float.h>
  1013. EOF
  1014. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1015. ac_err=`grep -v '^ *+' conftest.out`
  1016. if test -z "$ac_err"; then
  1017.   rm -rf conftest*
  1018.   ac_cv_header_stdc=yes
  1019. else
  1020.   echo "$ac_err" >&5
  1021.   rm -rf conftest*
  1022.   ac_cv_header_stdc=no
  1023. fi
  1024. rm -f conftest*
  1025.  
  1026. if test $ac_cv_header_stdc = yes; then
  1027.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1028. cat > conftest.$ac_ext <<EOF
  1029. #line 1030 "configure"
  1030. #include "confdefs.h"
  1031. #include <string.h>
  1032. EOF
  1033. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1034.   egrep "memchr" >/dev/null 2>&1; then
  1035.   :
  1036. else
  1037.   rm -rf conftest*
  1038.   ac_cv_header_stdc=no
  1039. fi
  1040. rm -f conftest*
  1041.  
  1042. fi
  1043.  
  1044. if test $ac_cv_header_stdc = yes; then
  1045.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1046. cat > conftest.$ac_ext <<EOF
  1047. #line 1048 "configure"
  1048. #include "confdefs.h"
  1049. #include <stdlib.h>
  1050. EOF
  1051. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1052.   egrep "free" >/dev/null 2>&1; then
  1053.   :
  1054. else
  1055.   rm -rf conftest*
  1056.   ac_cv_header_stdc=no
  1057. fi
  1058. rm -f conftest*
  1059.  
  1060. fi
  1061.  
  1062. if test $ac_cv_header_stdc = yes; then
  1063.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1064. if test "$cross_compiling" = yes; then
  1065.   ac_cv_header_stdc=no
  1066. else
  1067. cat > conftest.$ac_ext <<EOF
  1068. #line 1069 "configure"
  1069. #include "confdefs.h"
  1070. #include <ctype.h>
  1071. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1072. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1073. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1074. int main () { int i; for (i = 0; i < 256; i++)
  1075. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1076. exit (0); }
  1077.  
  1078. EOF
  1079. eval $ac_link
  1080. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1081.   :
  1082. else
  1083.   ac_cv_header_stdc=no
  1084. fi
  1085. fi
  1086. rm -fr conftest*
  1087. fi
  1088. fi
  1089. echo "$ac_t""$ac_cv_header_stdc" 1>&4
  1090. if test $ac_cv_header_stdc = yes; then
  1091.   cat >> confdefs.h <<\EOF
  1092. #define STDC_HEADERS 1
  1093. EOF
  1094.  
  1095. fi
  1096.  
  1097. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&4
  1098. if eval "test \"`echo '${'ac_cv_type_signal'+set}'`\" = set"; then
  1099.   echo $ac_n "(cached) $ac_c" 1>&4
  1100. else
  1101.   cat > conftest.$ac_ext <<EOF
  1102. #line 1103 "configure"
  1103. #include "confdefs.h"
  1104. #include <sys/types.h>
  1105. #include <signal.h>
  1106. #ifdef signal
  1107. #undef signal
  1108. #endif
  1109. extern void (*signal ()) ();
  1110. int main() { return 0; }
  1111. int t() {
  1112. int i;
  1113. ; return 0; }
  1114. EOF
  1115. if eval $ac_compile; then
  1116.   rm -rf conftest*
  1117.   ac_cv_type_signal=void
  1118. else
  1119.   rm -rf conftest*
  1120.   ac_cv_type_signal=int
  1121. fi
  1122. rm -f conftest*
  1123.  
  1124. fi
  1125. echo "$ac_t""$ac_cv_type_signal" 1>&4
  1126. cat >> confdefs.h <<EOF
  1127. #define RETSIGTYPE $ac_cv_type_signal
  1128. EOF
  1129.  
  1130.  
  1131. echo $ac_n "checking for size_t""... $ac_c" 1>&4
  1132. if eval "test \"`echo '${'ac_cv_type_size_t'+set}'`\" = set"; then
  1133.   echo $ac_n "(cached) $ac_c" 1>&4
  1134. else
  1135.   cat > conftest.$ac_ext <<EOF
  1136. #line 1137 "configure"
  1137. #include "confdefs.h"
  1138. #include <sys/types.h>
  1139. #if STDC_HEADERS
  1140. #include <stdlib.h>
  1141. #endif
  1142. EOF
  1143. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1144.   egrep "size_t" >/dev/null 2>&1; then
  1145.   rm -rf conftest*
  1146.   ac_cv_type_size_t=yes
  1147. else
  1148.   rm -rf conftest*
  1149.   ac_cv_type_size_t=no
  1150. fi
  1151. rm -f conftest*
  1152.  
  1153. fi
  1154. echo "$ac_t""$ac_cv_type_size_t" 1>&4
  1155. if test $ac_cv_type_size_t = no; then
  1156.   cat >> confdefs.h <<\EOF
  1157. #define size_t unsigned
  1158. EOF
  1159.  
  1160. fi
  1161.  
  1162.  
  1163. for ac_func in mkstemp sigaction sigaltstack sigstack sigvec strerror tmpfile
  1164. do
  1165. echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
  1166. if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1167.   echo $ac_n "(cached) $ac_c" 1>&4
  1168. else
  1169.   cat > conftest.$ac_ext <<EOF
  1170. #line 1171 "configure"
  1171. #include "confdefs.h"
  1172. #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1173. /* Override any gcc2 internal prototype to avoid an error.  */
  1174. char $ac_func(); 
  1175.  
  1176. int main() { return 0; }
  1177. int t() {
  1178.  
  1179. /* The GNU C library defines this for functions which it implements
  1180.     to always fail with ENOSYS.  Some functions are actually named
  1181.     something starting with __ and the normal name is an alias.  */
  1182. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1183. choke me
  1184. #else
  1185. $ac_func();
  1186. #endif
  1187.  
  1188. ; return 0; }
  1189. EOF
  1190. if eval $ac_link; then
  1191.   rm -rf conftest*
  1192.   eval "ac_cv_func_$ac_func=yes"
  1193. else
  1194.   rm -rf conftest*
  1195.   eval "ac_cv_func_$ac_func=no"
  1196. fi
  1197. rm -f conftest*
  1198.  
  1199. fi
  1200. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1201.   echo "$ac_t""yes" 1>&4
  1202.     ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  1203.   cat >> confdefs.h <<EOF
  1204. #define $ac_tr_func 1
  1205. EOF
  1206.  
  1207. else
  1208.   echo "$ac_t""no" 1>&4
  1209. fi
  1210. done
  1211.  
  1212. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  1213. # for constant arguments.  Useless!
  1214. echo $ac_n "checking for working alloca.h""... $ac_c" 1>&4
  1215. if eval "test \"`echo '${'ac_cv_header_alloca_h'+set}'`\" = set"; then
  1216.   echo $ac_n "(cached) $ac_c" 1>&4
  1217. else
  1218.   cat > conftest.$ac_ext <<EOF
  1219. #line 1220 "configure"
  1220. #include "confdefs.h"
  1221. #include <alloca.h>
  1222. int main() { return 0; }
  1223. int t() {
  1224. char *p = alloca(2 * sizeof(int));
  1225. ; return 0; }
  1226. EOF
  1227. if eval $ac_link; then
  1228.   rm -rf conftest*
  1229.   ac_cv_header_alloca_h=yes
  1230. else
  1231.   rm -rf conftest*
  1232.   ac_cv_header_alloca_h=no
  1233. fi
  1234. rm -f conftest*
  1235.  
  1236. fi
  1237. echo "$ac_t""$ac_cv_header_alloca_h" 1>&4
  1238. if test $ac_cv_header_alloca_h = yes; then
  1239.   cat >> confdefs.h <<\EOF
  1240. #define HAVE_ALLOCA_H 1
  1241. EOF
  1242.  
  1243. fi
  1244.  
  1245. echo $ac_n "checking for alloca""... $ac_c" 1>&4
  1246. if eval "test \"`echo '${'ac_cv_func_alloca'+set}'`\" = set"; then
  1247.   echo $ac_n "(cached) $ac_c" 1>&4
  1248. else
  1249.   cat > conftest.$ac_ext <<EOF
  1250. #line 1251 "configure"
  1251. #include "confdefs.h"
  1252.  
  1253. #ifdef __GNUC__
  1254. # define alloca __builtin_alloca
  1255. #else
  1256. # if HAVE_ALLOCA_H
  1257. #  include <alloca.h>
  1258. # else
  1259. #  ifdef _AIX
  1260.  #pragma alloca
  1261. #  else
  1262. #   ifndef alloca /* predefined by HP cc +Olibcalls */
  1263. char *alloca ();
  1264. #   endif
  1265. #  endif
  1266. # endif
  1267. #endif
  1268.  
  1269. int main() { return 0; }
  1270. int t() {
  1271. char *p = (char *) alloca(1);
  1272. ; return 0; }
  1273. EOF
  1274. if eval $ac_link; then
  1275.   rm -rf conftest*
  1276.   ac_cv_func_alloca=yes
  1277. else
  1278.   rm -rf conftest*
  1279.   ac_cv_func_alloca=no
  1280. fi
  1281. rm -f conftest*
  1282.  
  1283. fi
  1284. echo "$ac_t""$ac_cv_func_alloca" 1>&4
  1285. if test $ac_cv_func_alloca = yes; then
  1286.   cat >> confdefs.h <<\EOF
  1287. #define HAVE_ALLOCA 1
  1288. EOF
  1289.  
  1290. fi
  1291.  
  1292. if test $ac_cv_func_alloca = no; then
  1293.   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  1294.   # that cause trouble.  Some versions do not even contain alloca or
  1295.   # contain a buggy version.  If you still want to use their alloca,
  1296.   # use ar to extract alloca.o from them instead of compiling alloca.c.
  1297.   ALLOCA=alloca.o
  1298.   cat >> confdefs.h <<\EOF
  1299. #define C_ALLOCA 1
  1300. EOF
  1301.  
  1302.  
  1303. echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&4
  1304. if eval "test \"`echo '${'ac_cv_os_cray'+set}'`\" = set"; then
  1305.   echo $ac_n "(cached) $ac_c" 1>&4
  1306. else
  1307.   cat > conftest.$ac_ext <<EOF
  1308. #line 1309 "configure"
  1309. #include "confdefs.h"
  1310. #if defined(CRAY) && ! defined(CRAY2)
  1311. webecray
  1312. #else
  1313. wenotbecray
  1314. #endif
  1315.  
  1316. EOF
  1317. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1318.   egrep "webecray" >/dev/null 2>&1; then
  1319.   rm -rf conftest*
  1320.   ac_cv_os_cray=yes
  1321. else
  1322.   rm -rf conftest*
  1323.   ac_cv_os_cray=no
  1324. fi
  1325. rm -f conftest*
  1326.  
  1327. fi
  1328. echo "$ac_t""$ac_cv_os_cray" 1>&4
  1329. if test $ac_cv_os_cray = yes; then
  1330. echo $ac_n "checking for _getb67""... $ac_c" 1>&4
  1331. if eval "test \"`echo '${'ac_cv_func__getb67'+set}'`\" = set"; then
  1332.   echo $ac_n "(cached) $ac_c" 1>&4
  1333. else
  1334.   cat > conftest.$ac_ext <<EOF
  1335. #line 1336 "configure"
  1336. #include "confdefs.h"
  1337. #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1338. /* Override any gcc2 internal prototype to avoid an error.  */
  1339. char _getb67(); 
  1340.  
  1341. int main() { return 0; }
  1342. int t() {
  1343.  
  1344. /* The GNU C library defines this for functions which it implements
  1345.     to always fail with ENOSYS.  Some functions are actually named
  1346.     something starting with __ and the normal name is an alias.  */
  1347. #if defined (__stub__getb67) || defined (__stub____getb67)
  1348. choke me
  1349. #else
  1350. _getb67();
  1351. #endif
  1352.  
  1353. ; return 0; }
  1354. EOF
  1355. if eval $ac_link; then
  1356.   rm -rf conftest*
  1357.   eval "ac_cv_func__getb67=yes"
  1358. else
  1359.   rm -rf conftest*
  1360.   eval "ac_cv_func__getb67=no"
  1361. fi
  1362. rm -f conftest*
  1363.  
  1364. fi
  1365. if eval "test \"`echo '$ac_cv_func_'_getb67`\" = yes"; then
  1366.   echo "$ac_t""yes" 1>&4
  1367.   cat >> confdefs.h <<\EOF
  1368. #define CRAY_STACKSEG_END _getb67
  1369. EOF
  1370.  
  1371. else
  1372.   echo "$ac_t""no" 1>&4
  1373. echo $ac_n "checking for GETB67""... $ac_c" 1>&4
  1374. if eval "test \"`echo '${'ac_cv_func_GETB67'+set}'`\" = set"; then
  1375.   echo $ac_n "(cached) $ac_c" 1>&4
  1376. else
  1377.   cat > conftest.$ac_ext <<EOF
  1378. #line 1379 "configure"
  1379. #include "confdefs.h"
  1380. #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1381. /* Override any gcc2 internal prototype to avoid an error.  */
  1382. char GETB67(); 
  1383.  
  1384. int main() { return 0; }
  1385. int t() {
  1386.  
  1387. /* The GNU C library defines this for functions which it implements
  1388.     to always fail with ENOSYS.  Some functions are actually named
  1389.     something starting with __ and the normal name is an alias.  */
  1390. #if defined (__stub_GETB67) || defined (__stub___GETB67)
  1391. choke me
  1392. #else
  1393. GETB67();
  1394. #endif
  1395.  
  1396. ; return 0; }
  1397. EOF
  1398. if eval $ac_link; then
  1399.   rm -rf conftest*
  1400.   eval "ac_cv_func_GETB67=yes"
  1401. else
  1402.   rm -rf conftest*
  1403.   eval "ac_cv_func_GETB67=no"
  1404. fi
  1405. rm -f conftest*
  1406.  
  1407. fi
  1408. if eval "test \"`echo '$ac_cv_func_'GETB67`\" = yes"; then
  1409.   echo "$ac_t""yes" 1>&4
  1410.   cat >> confdefs.h <<\EOF
  1411. #define CRAY_STACKSEG_END GETB67
  1412. EOF
  1413.  
  1414. else
  1415.   echo "$ac_t""no" 1>&4
  1416. echo $ac_n "checking for getb67""... $ac_c" 1>&4
  1417. if eval "test \"`echo '${'ac_cv_func_getb67'+set}'`\" = set"; then
  1418.   echo $ac_n "(cached) $ac_c" 1>&4
  1419. else
  1420.   cat > conftest.$ac_ext <<EOF
  1421. #line 1422 "configure"
  1422. #include "confdefs.h"
  1423. #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1424. /* Override any gcc2 internal prototype to avoid an error.  */
  1425. char getb67(); 
  1426.  
  1427. int main() { return 0; }
  1428. int t() {
  1429.  
  1430. /* The GNU C library defines this for functions which it implements
  1431.     to always fail with ENOSYS.  Some functions are actually named
  1432.     something starting with __ and the normal name is an alias.  */
  1433. #if defined (__stub_getb67) || defined (__stub___getb67)
  1434. choke me
  1435. #else
  1436. getb67();
  1437. #endif
  1438.  
  1439. ; return 0; }
  1440. EOF
  1441. if eval $ac_link; then
  1442.   rm -rf conftest*
  1443.   eval "ac_cv_func_getb67=yes"
  1444. else
  1445.   rm -rf conftest*
  1446.   eval "ac_cv_func_getb67=no"
  1447. fi
  1448. rm -f conftest*
  1449.  
  1450. fi
  1451. if eval "test \"`echo '$ac_cv_func_'getb67`\" = yes"; then
  1452.   echo "$ac_t""yes" 1>&4
  1453.   cat >> confdefs.h <<\EOF
  1454. #define CRAY_STACKSEG_END getb67
  1455. EOF
  1456.  
  1457. else
  1458.   echo "$ac_t""no" 1>&4
  1459. fi
  1460.  
  1461. fi
  1462.  
  1463. fi
  1464.  
  1465. fi
  1466.  
  1467. echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&4
  1468. if eval "test \"`echo '${'ac_cv_c_stack_direction'+set}'`\" = set"; then
  1469.   echo $ac_n "(cached) $ac_c" 1>&4
  1470. else
  1471.   if test "$cross_compiling" = yes; then
  1472.   ac_cv_c_stack_direction=0
  1473. else
  1474. cat > conftest.$ac_ext <<EOF
  1475. #line 1476 "configure"
  1476. #include "confdefs.h"
  1477. find_stack_direction ()
  1478. {
  1479.   static char *addr = 0;
  1480.   auto char dummy;
  1481.   if (addr == 0)
  1482.     {
  1483.       addr = &dummy;
  1484.       return find_stack_direction ();
  1485.     }
  1486.   else
  1487.     return (&dummy > addr) ? 1 : -1;
  1488. }
  1489. main ()
  1490. {
  1491.   exit (find_stack_direction() < 0);
  1492. }
  1493. EOF
  1494. eval $ac_link
  1495. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1496.   ac_cv_c_stack_direction=1
  1497. else
  1498.   ac_cv_c_stack_direction=-1
  1499. fi
  1500. fi
  1501. rm -fr conftest*
  1502. fi
  1503. echo "$ac_t""$ac_cv_c_stack_direction" 1>&4
  1504. cat >> confdefs.h <<EOF
  1505. #define STACK_DIRECTION $ac_cv_c_stack_direction
  1506. EOF
  1507.  
  1508. fi
  1509.  
  1510. echo $ac_n "checking for vprintf""... $ac_c" 1>&4
  1511. if eval "test \"`echo '${'ac_cv_func_vprintf'+set}'`\" = set"; then
  1512.   echo $ac_n "(cached) $ac_c" 1>&4
  1513. else
  1514.   cat > conftest.$ac_ext <<EOF
  1515. #line 1516 "configure"
  1516. #include "confdefs.h"
  1517. #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1518. /* Override any gcc2 internal prototype to avoid an error.  */
  1519. char vprintf(); 
  1520.  
  1521. int main() { return 0; }
  1522. int t() {
  1523.  
  1524. /* The GNU C library defines this for functions which it implements
  1525.     to always fail with ENOSYS.  Some functions are actually named
  1526.     something starting with __ and the normal name is an alias.  */
  1527. #if defined (__stub_vprintf) || defined (__stub___vprintf)
  1528. choke me
  1529. #else
  1530. vprintf();
  1531. #endif
  1532.  
  1533. ; return 0; }
  1534. EOF
  1535. if eval $ac_link; then
  1536.   rm -rf conftest*
  1537.   eval "ac_cv_func_vprintf=yes"
  1538. else
  1539.   rm -rf conftest*
  1540.   eval "ac_cv_func_vprintf=no"
  1541. fi
  1542. rm -f conftest*
  1543.  
  1544. fi
  1545. if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
  1546.   echo "$ac_t""yes" 1>&4
  1547.   cat >> confdefs.h <<\EOF
  1548. #define HAVE_VPRINTF 1
  1549. EOF
  1550.  
  1551. else
  1552.   echo "$ac_t""no" 1>&4
  1553. fi
  1554.  
  1555. if test "$ac_cv_func_vprintf" != yes; then
  1556. echo $ac_n "checking for _doprnt""... $ac_c" 1>&4
  1557. if eval "test \"`echo '${'ac_cv_func__doprnt'+set}'`\" = set"; then
  1558.   echo $ac_n "(cached) $ac_c" 1>&4
  1559. else
  1560.   cat > conftest.$ac_ext <<EOF
  1561. #line 1562 "configure"
  1562. #include "confdefs.h"
  1563. #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1564. /* Override any gcc2 internal prototype to avoid an error.  */
  1565. char _doprnt(); 
  1566.  
  1567. int main() { return 0; }
  1568. int t() {
  1569.  
  1570. /* The GNU C library defines this for functions which it implements
  1571.     to always fail with ENOSYS.  Some functions are actually named
  1572.     something starting with __ and the normal name is an alias.  */
  1573. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  1574. choke me
  1575. #else
  1576. _doprnt();
  1577. #endif
  1578.  
  1579. ; return 0; }
  1580. EOF
  1581. if eval $ac_link; then
  1582.   rm -rf conftest*
  1583.   eval "ac_cv_func__doprnt=yes"
  1584. else
  1585.   rm -rf conftest*
  1586.   eval "ac_cv_func__doprnt=no"
  1587. fi
  1588. rm -f conftest*
  1589.  
  1590. fi
  1591. if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
  1592.   echo "$ac_t""yes" 1>&4
  1593.   cat >> confdefs.h <<\EOF
  1594. #define HAVE_DOPRNT 1
  1595. EOF
  1596.  
  1597. else
  1598.   echo "$ac_t""no" 1>&4
  1599. fi
  1600.  
  1601. fi
  1602.  
  1603. for ac_func in strtol
  1604. do
  1605. echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
  1606. if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1607.   echo $ac_n "(cached) $ac_c" 1>&4
  1608. else
  1609.   cat > conftest.$ac_ext <<EOF
  1610. #line 1611 "configure"
  1611. #include "confdefs.h"
  1612. #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1613. /* Override any gcc2 internal prototype to avoid an error.  */
  1614. char $ac_func(); 
  1615.  
  1616. int main() { return 0; }
  1617. int t() {
  1618.  
  1619. /* The GNU C library defines this for functions which it implements
  1620.     to always fail with ENOSYS.  Some functions are actually named
  1621.     something starting with __ and the normal name is an alias.  */
  1622. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1623. choke me
  1624. #else
  1625. $ac_func();
  1626. #endif
  1627.  
  1628. ; return 0; }
  1629. EOF
  1630. if eval $ac_link; then
  1631.   rm -rf conftest*
  1632.   eval "ac_cv_func_$ac_func=yes"
  1633. else
  1634.   rm -rf conftest*
  1635.   eval "ac_cv_func_$ac_func=no"
  1636. fi
  1637. rm -f conftest*
  1638.  
  1639. fi
  1640. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1641.   echo "$ac_t""yes" 1>&4
  1642.   :
  1643. else
  1644.   echo "$ac_t""no" 1>&4
  1645. LIBOBJS="$LIBOBJS ${ac_func}.o"
  1646. fi
  1647.  
  1648. done
  1649.  
  1650. echo $ac_n "checking ecvt declaration""... $ac_c" 1>&4
  1651. cat > conftest.$ac_ext <<EOF
  1652. #line 1653 "configure"
  1653. #include "confdefs.h"
  1654. #include <stdlib.h>
  1655. EOF
  1656. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1657.   egrep "ecvt" >/dev/null 2>&1; then
  1658.   rm -rf conftest*
  1659.   echo "$ac_t""yes" 1>&4; cat >> confdefs.h <<\EOF
  1660. #define HAVE_EFGCVT 2
  1661. EOF
  1662.  
  1663. else
  1664.   rm -rf conftest*
  1665.   echo "$ac_t""no" 1>&4; for ac_func in ecvt
  1666. do
  1667. echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
  1668. if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1669.   echo $ac_n "(cached) $ac_c" 1>&4
  1670. else
  1671.   cat > conftest.$ac_ext <<EOF
  1672. #line 1673 "configure"
  1673. #include "confdefs.h"
  1674. #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1675. /* Override any gcc2 internal prototype to avoid an error.  */
  1676. char $ac_func(); 
  1677.  
  1678. int main() { return 0; }
  1679. int t() {
  1680.  
  1681. /* The GNU C library defines this for functions which it implements
  1682.     to always fail with ENOSYS.  Some functions are actually named
  1683.     something starting with __ and the normal name is an alias.  */
  1684. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1685. choke me
  1686. #else
  1687. $ac_func();
  1688. #endif
  1689.  
  1690. ; return 0; }
  1691. EOF
  1692. if eval $ac_link; then
  1693.   rm -rf conftest*
  1694.   eval "ac_cv_func_$ac_func=yes"
  1695. else
  1696.   rm -rf conftest*
  1697.   eval "ac_cv_func_$ac_func=no"
  1698. fi
  1699. rm -f conftest*
  1700.  
  1701. fi
  1702. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1703.   echo "$ac_t""yes" 1>&4
  1704.     ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  1705.   cat >> confdefs.h <<EOF
  1706. #define $ac_tr_func 1
  1707. EOF
  1708.  
  1709. else
  1710.   echo "$ac_t""no" 1>&4
  1711. fi
  1712. done
  1713.  
  1714. fi
  1715. rm -f conftest*
  1716.  
  1717.  
  1718. echo $ac_n "checking if stack overflow is detectable""... $ac_c" 1>&4
  1719. # Code from Jim Avera <jima@netcom.com>.
  1720. # stackovf.c requires:
  1721. #  1. Either sigaction with SA_ONSTACK, or sigvec with SV_ONSTACK
  1722. #  2. Either sigaltstack or sigstack
  1723. #  3. getrlimit, including support for RLIMIT_STACK
  1724. use_stackovf=no
  1725. if test "$ac_cv_func_sigaction" = yes || test "$ac_cv_func_sigvec" = yes; then
  1726.   if test "$ac_cv_func_sigaltstack" = yes || test "$ac_cv_func_sigstack" = yes; then
  1727.     cat > conftest.$ac_ext <<EOF
  1728. #line 1729 "configure"
  1729. #include "confdefs.h"
  1730. #include <sys/time.h>
  1731. #include <sys/resource.h>
  1732. #include <signal.h>
  1733. int main() { return 0; }
  1734. int t() {
  1735. struct rlimit r; int i; getrlimit (RLIMIT_STACK, &r)
  1736. #if (!defined(HAVE_SIGACTION) || !defined(SA_ONSTACK)) \
  1737.     && (!defined(HAVE_SIGVEC) || !defined(SV_ONSTACK))
  1738. choke me        /* SA_ONSTACK and/or SV_ONSTACK are not defined */
  1739. #endif
  1740. ; return 0; }
  1741. EOF
  1742. if eval $ac_link; then
  1743.   rm -rf conftest*
  1744.   use_stackovf=yes
  1745. fi
  1746. rm -f conftest*
  1747.  
  1748.   fi
  1749. fi
  1750. echo "$ac_t""$use_stackovf" 1>&4
  1751. if test "$use_stackovf" = yes; then
  1752.   cat >> confdefs.h <<\EOF
  1753. #define USE_STACKOVF 1
  1754. EOF
  1755.  
  1756.   STACKOVF=stackovf.${U}o
  1757.   
  1758.   cat > conftest.$ac_ext <<EOF
  1759. #line 1760 "configure"
  1760. #include "confdefs.h"
  1761. #include <sys/resource.h>
  1762. EOF
  1763. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1764.   egrep "rlim_t" >/dev/null 2>&1; then
  1765.   :
  1766. else
  1767.   rm -rf conftest*
  1768.   cat >> confdefs.h <<\EOF
  1769. #define rlim_t int
  1770. EOF
  1771.  
  1772. fi
  1773. rm -f conftest*
  1774.  
  1775.   cat > conftest.$ac_ext <<EOF
  1776. #line 1777 "configure"
  1777. #include "confdefs.h"
  1778. #include <signal.h>
  1779. EOF
  1780. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1781.   egrep "stack_t" >/dev/null 2>&1; then
  1782.   :
  1783. else
  1784.   rm -rf conftest*
  1785.   cat >> confdefs.h <<\EOF
  1786. #define stack_t struct sigaltstack
  1787. EOF
  1788.  
  1789. fi
  1790. rm -f conftest*
  1791.  
  1792.   cat > conftest.$ac_ext <<EOF
  1793. #line 1794 "configure"
  1794. #include "confdefs.h"
  1795. #include <signal.h>
  1796. EOF
  1797. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1798.   egrep "sigcontext" >/dev/null 2>&1; then
  1799.   rm -rf conftest*
  1800.   cat >> confdefs.h <<\EOF
  1801. #define HAVE_SIGCONTEXT 1
  1802. EOF
  1803.  
  1804. fi
  1805. rm -f conftest*
  1806.  
  1807. fi
  1808.  
  1809. echo $ac_n "checking if changeword is wanted""... $ac_c" 1>&4
  1810. # Check whether --enable-changeword or --disable-changeword was given.
  1811. enableval="$enable_changeword"
  1812. if test -n "$enableval"; then
  1813.   if test "$enableval" = yes; then
  1814.   echo "$ac_t""yes" 1>&4
  1815.   cat >> confdefs.h <<\EOF
  1816. #define ENABLE_CHANGEWORD 1
  1817. EOF
  1818.  
  1819. else
  1820.   echo "$ac_t""no" 1>&4
  1821. fi
  1822. else
  1823.   echo "$ac_t""no" 1>&4
  1824. fi
  1825.  
  1826.  
  1827. echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&4
  1828. # Check whether --with-dmalloc or --without-dmalloc was given.
  1829. withval="$with_dmalloc"
  1830. if test -n "$withval"; then
  1831.   if test "$withval" = yes; then
  1832.   echo "$ac_t""yes" 1>&4
  1833.   cat >> confdefs.h <<\EOF
  1834. #define WITH_DMALLOC 1
  1835. EOF
  1836.  
  1837.   LIBS="$LIBS -ldmalloc"
  1838.   LDFLAGS="$LDFLAGS -g"
  1839. else
  1840.   echo "$ac_t""no" 1>&4
  1841. fi
  1842. else
  1843.   echo "$ac_t""no" 1>&4
  1844. fi
  1845.  
  1846.  
  1847. trap '' 1 2 15
  1848. if test -w $cache_file; then
  1849. echo "updating cache $cache_file"
  1850. cat > $cache_file <<\EOF
  1851. # This file is a shell script that caches the results of configure
  1852. # tests run on this system so they can be shared between configure
  1853. # scripts and configure runs.  It is not useful on other systems.
  1854. # If it contains results you don't want to keep, you may remove or edit it.
  1855. #
  1856. # By default, configure uses ./config.cache as the cache file,
  1857. # creating it if it does not exist already.  You can give configure
  1858. # the --cache-file=FILE option to use a different cache file; that is
  1859. # what configure does when it calls configure scripts in
  1860. # subdirectories, so they share the cache.
  1861. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1862. # config.status only pays attention to the cache file if you give it the
  1863. # --recheck option to rerun configure.
  1864. #
  1865. EOF
  1866. # Ultrix sh set writes to stderr and can't be redirected directly.
  1867. (set) 2>&1 |
  1868.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/: \${\1='\2'}/p" \
  1869.   >> $cache_file
  1870. else
  1871. echo "not updating unwritable cache $cache_file"
  1872. fi
  1873.  
  1874. trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  1875.  
  1876. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1877. # Let make expand exec_prefix.
  1878. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1879.  
  1880. # Any assignment to VPATH causes Sun make to only execute
  1881. # the first set of double-colon rules, so remove it if not needed.
  1882. # If there is a colon in the path, we need to keep it.
  1883. if test "x$srcdir" = x.; then
  1884.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  1885. fi
  1886.  
  1887. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1888.  
  1889. DEFS=-DHAVE_CONFIG_H
  1890.  
  1891. # Without the "./", some shells look in PATH for config.status.
  1892. : ${CONFIG_STATUS=./config.status}
  1893.  
  1894. echo creating $CONFIG_STATUS
  1895. rm -f $CONFIG_STATUS
  1896. cat > $CONFIG_STATUS <<EOF
  1897. #!/bin/sh
  1898. # Generated automatically by configure.
  1899. # Run this file to recreate the current configuration.
  1900. # This directory was configured as follows,
  1901. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1902. #
  1903. # $0 $ac_configure_args
  1904. #
  1905. # Compiler output produced by configure, useful for debugging
  1906. # configure, is in ./config.log if it exists.
  1907.  
  1908. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1909. for ac_option
  1910. do
  1911.   case "\$ac_option" in
  1912.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1913.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1914.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1915.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1916.     echo "$CONFIG_STATUS generated by autoconf version 2.1"
  1917.     exit 0 ;;
  1918.   -help | --help | --hel | --he | --h)
  1919.     echo "\$ac_cs_usage"; exit 0 ;;
  1920.   *) echo "\$ac_cs_usage"; exit 1 ;;
  1921.   esac
  1922. done
  1923.  
  1924. ac_given_srcdir=$srcdir
  1925. ac_given_INSTALL="$INSTALL"
  1926.  
  1927. trap 'rm -fr Makefile doc/Makefile lib/Makefile src/Makefile \
  1928. checks/Makefile examples/Makefile config.h conftest*; exit 1' 1 2 15
  1929.  
  1930. # Protect against being on the right side of a sed subst in config.status. 
  1931. sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; 
  1932.  s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
  1933. $ac_vpsub
  1934. $extrasub
  1935. s%@CFLAGS@%$CFLAGS%g
  1936. s%@CPPFLAGS@%$CPPFLAGS%g
  1937. s%@CXXFLAGS@%$CXXFLAGS%g
  1938. s%@DEFS@%$DEFS%g
  1939. s%@LDFLAGS@%$LDFLAGS%g
  1940. s%@LIBS@%$LIBS%g
  1941. s%@exec_prefix@%$exec_prefix%g
  1942. s%@prefix@%$prefix%g
  1943. s%@program_transform_name@%$program_transform_name%g
  1944. s%@PRODUCT@%$PRODUCT%g
  1945. s%@VERSION@%$VERSION%g
  1946. s%@AWK@%$AWK%g
  1947. s%@CC@%$CC%g
  1948. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1949. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1950. s%@SET_MAKE@%$SET_MAKE%g
  1951. s%@RANLIB@%$RANLIB%g
  1952. s%@CPP@%$CPP%g
  1953. s%@U@%$U%g
  1954. s%@ANSI2KNR@%$ANSI2KNR%g
  1955. s%@ALLOCA@%$ALLOCA%g
  1956. s%@LIBOBJS@%$LIBOBJS%g
  1957. s%@STACKOVF@%$STACKOVF%g
  1958.  
  1959. CEOF
  1960. EOF
  1961. cat >> $CONFIG_STATUS <<EOF
  1962.  
  1963. CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile lib/Makefile src/Makefile \
  1964. checks/Makefile examples/Makefile"}
  1965. EOF
  1966. cat >> $CONFIG_STATUS <<\EOF
  1967. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1968.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  1969.   case "$ac_file" in
  1970.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  1971.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1972.   *) ac_file_in="${ac_file}.in" ;;
  1973.   esac
  1974.  
  1975.   # Adjust relative srcdir, etc. for subdirectories.
  1976.  
  1977.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1978.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1979.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1980.     # The file is in a subdirectory.
  1981.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  1982.     ac_dir_suffix="/$ac_dir"
  1983.     # A "../" for each directory in $ac_dir_suffix.
  1984.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1985.   else
  1986.     ac_dir_suffix= ac_dots=
  1987.   fi
  1988.  
  1989.   case "$ac_given_srcdir" in
  1990.   .)  srcdir=.
  1991.       if test -z "$ac_dots"; then top_srcdir=.
  1992.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1993.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1994.   *) # Relative path.
  1995.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1996.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1997.   esac
  1998.  
  1999.   case "$ac_given_INSTALL" in
  2000.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  2001.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  2002.   esac
  2003.   echo creating "$ac_file"
  2004.   rm -f "$ac_file"
  2005.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  2006.   case "$ac_file" in
  2007.   *Makefile*) ac_comsub="1i\\
  2008. # $configure_input" ;;
  2009.   *) ac_comsub= ;;
  2010.   esac
  2011.   sed -e "$ac_comsub
  2012. s%@configure_input@%$configure_input%g
  2013. s%@srcdir@%$srcdir%g
  2014. s%@top_srcdir@%$top_srcdir%g
  2015. s%@INSTALL@%$INSTALL%g
  2016. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  2017. fi; done
  2018. rm -f conftest.subs
  2019.  
  2020. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  2021. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  2022. #
  2023. # ac_d sets the value in "#define NAME VALUE" lines.
  2024. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  2025. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  2026. ac_dC='\3'
  2027. ac_dD='%g'
  2028. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  2029. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2030. ac_uB='\([     ]\)%\1#\2define\3'
  2031. ac_uC=' '
  2032. ac_uD='\4%g'
  2033. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  2034. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2035. ac_eB='$%\1#\2define\3'
  2036. ac_eC=' '
  2037. ac_eD='%g'
  2038.  
  2039. CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
  2040. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  2041.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  2042.   case "$ac_file" in
  2043.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  2044.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2045.   *) ac_file_in="${ac_file}.in" ;;
  2046.   esac
  2047.  
  2048.   echo creating $ac_file
  2049.  
  2050.   rm -f conftest.frag conftest.in conftest.out
  2051.   cp $ac_given_srcdir/$ac_file_in conftest.in
  2052.  
  2053. EOF
  2054.  
  2055. # Transform confdefs.h into a sed script conftest.vals that substitutes
  2056. # the proper values into config.h.in to produce config.h.  And first:
  2057. # Protect against being on the right side of a sed subst in config.status. 
  2058. # Protect against being in an unquoted here document in config.status.
  2059. rm -f conftest.vals
  2060. cat > conftest.hdr <<\EOF
  2061. s/[\\&%]/\\&/g
  2062. s%[\\$`]%\\&%g
  2063. s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  2064. s%ac_d%ac_u%gp
  2065. s%ac_u%ac_e%gp
  2066. EOF
  2067. sed -n -f conftest.hdr confdefs.h > conftest.vals
  2068. rm -f conftest.hdr
  2069.  
  2070. # This sed command replaces #undef with comments.  This is necessary, for
  2071. # example, in the case of _POSIX_SOURCE, which is predefined and required
  2072. # on some systems where configure will not decide to define it.
  2073. cat >> conftest.vals <<\EOF
  2074. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  2075. EOF
  2076.  
  2077. # Break up conftest.vals because some shells have a limit on
  2078. # the size of here documents, and old seds have small limits too.
  2079. # Maximum number of lines to put in a single here document.
  2080. ac_max_here_lines=12
  2081.  
  2082. rm -f conftest.tail
  2083. while :
  2084. do
  2085.   ac_lines=`grep -c . conftest.vals`
  2086.   # grep -c gives empty output for an empty file on some AIX systems.
  2087.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  2088.   # Write a limited-size here document to conftest.frag.
  2089.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  2090.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  2091.   echo 'CEOF
  2092.   sed -f conftest.frag conftest.in > conftest.out
  2093.   rm -f conftest.in
  2094.   mv conftest.out conftest.in
  2095. ' >> $CONFIG_STATUS
  2096.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  2097.   rm -f conftest.vals
  2098.   mv conftest.tail conftest.vals
  2099. done
  2100. rm -f conftest.vals
  2101.  
  2102. cat >> $CONFIG_STATUS <<\EOF
  2103.   rm -f conftest.frag conftest.h
  2104.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  2105.   cat conftest.in >> conftest.h
  2106.   rm -f conftest.in
  2107.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  2108.     echo "$ac_file is unchanged"
  2109.     rm -f conftest.h
  2110.   else
  2111.     rm -f $ac_file
  2112.     mv conftest.h $ac_file
  2113.   fi
  2114. fi; done
  2115.  
  2116.  
  2117. test -z "$CONFIG_HEADERS" || date > stamp-h
  2118. exit 0
  2119. EOF
  2120. chmod +x $CONFIG_STATUS
  2121. rm -fr confdefs* $ac_clean_files
  2122. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS
  2123.  
  2124.