home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 6 / FreshFish_September1994.bin / bbs / gnu / pdksh-4.9-src.lha / GNU / src / amiga / pdksh-4.9 / configure < prev    next >
Encoding:
Text File  |  1994-06-14  |  34.2 KB  |  1,118 lines

  1. #!/bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated automatically using autoconf version 1.11 
  4. # Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
  5.  
  6. # This configure script is free software; you can redistribute it and/or
  7. # modify it under the terms of the GNU General Public License as published
  8. # by the Free Software Foundation; either version 2, or (at your option)
  9. # any later version.
  10.  
  11. # This script is distributed in the hope that it will be useful, but
  12. # WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
  14. # Public License for more details.
  15.  
  16. # You should have received a copy of the GNU General Public License
  17. # along with this program; if not, write to the Free Software
  18. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  
  20. # Save the original args to write them into config.status later.
  21. configure_args="$*"
  22.  
  23. # Only options that might do something get documented.
  24. ac_usage="Usage: configure [options] [host]
  25. Options: [defaults in brackets after descriptions]
  26. --build=BUILD        configure for building on BUILD [BUILD=HOST]
  27. --disable-FEATURE    do not include FEATURE (same as --enable-FEATURE=no)
  28. --enable-FEATURE[=ARG]    include FEATURE [ARG=yes]
  29. --exec-prefix=PREFIX    install host dependent files in PREFIX [/usr/local]
  30. --help            print this message
  31. --host=HOST        configure for HOST [guessed]
  32. --prefix=PREFIX        install host independent files in PREFIX [/usr/local]
  33. --quiet, --silent    do not print \`checking for...' messages
  34. --srcdir=DIR        find the sources in DIR [configure dir or ..]
  35. --target=TARGET        configure for TARGET [TARGET=HOST]
  36. --verbose        print results of checks
  37. --version        print the version of autoconf that created configure
  38. --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  39. --without-PACKAGE    do not use PACKAGE (same as --with-PACKAGE=no)
  40. --x-includes=DIR    X include files are in DIR
  41. --x-libraries=DIR    X library files are in DIR"
  42.  
  43. # Initialize some variables set by options.
  44. # The variables have the same names as the options, with
  45. # dashes changed to underlines.
  46. build=NONE
  47. exec_prefix=
  48. host=NONE
  49. no_create=
  50. nonopt=NONE
  51. norecursion=
  52. prefix=
  53. program_prefix=
  54. program_suffix=
  55. program_transform_name=
  56. silent=
  57. srcdir=
  58. target=NONE
  59. verbose=
  60. x_includes=
  61. x_libraries=
  62.  
  63. ac_prev=
  64. for ac_option
  65. do
  66.  
  67.   # If the previous option needs an argument, assign it.
  68.   if test -n "$ac_prev"; then
  69.     eval "$ac_prev=\$ac_option"
  70.     ac_prev=
  71.     continue
  72.   fi
  73.  
  74.   # Accept (but ignore some of) the important Cygnus configure
  75.   # options, so we can diagnose typos.
  76.  
  77.   case "$ac_option" in
  78.   -*=*) ac_optarg=`/bin/echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  79.   *) ac_optarg= ;;
  80.   esac
  81.  
  82.   case "$ac_option" in
  83.  
  84.   -build | --build | --buil | --bui | --bu | --b)
  85.     ac_prev=build ;;
  86.   -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  87.     build="$ac_optarg" ;;
  88.  
  89.   -disable-* | --disable-*)
  90.     ac_feature=`/bin/echo $ac_option|sed -e 's/-*disable-//'`
  91.     # Reject names that aren't valid shell variable names.
  92.     if test -n "`/bin/echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  93.       /bin/echo "configure: $ac_feature: invalid feature name" >&2; exit 1
  94.     fi
  95.     ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
  96.     eval "enable_${ac_feature}=no" ;;
  97.  
  98.   -enable-* | --enable-*)
  99.     ac_feature=`/bin/echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  100.     # Reject names that aren't valid shell variable names.
  101.     if test -n "`/bin/echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  102.       /bin/echo "configure: $ac_feature: invalid feature name" >&2; exit 1
  103.     fi
  104.     ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
  105.     case "$ac_option" in
  106.       *=*) ;;
  107.       *) ac_optarg=yes ;;
  108.     esac
  109.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  110.  
  111.   # For backward compatibility, recognize -exec-prefix and --exec_prefix.
  112.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  113.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  114.   | --exec | --exe | --ex)
  115.     ac_prev=exec_prefix ;;
  116.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  117.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  118.   | --exec=* | --exe=* | --ex=*)
  119.     exec_prefix="$ac_optarg" ;;
  120.  
  121.   -gas | --gas | --ga | --g)
  122.     with_gas=yes ;; # Obsolete; use --with-gas.
  123.  
  124.   -help | --help | --hel | --he)
  125.     cat << EOF
  126. $ac_usage
  127. EOF
  128.     exit 0 ;;
  129.  
  130.   -host | --host | --hos | --ho)
  131.     ac_prev=host ;;
  132.   -host=* | --host=* | --hos=* | --ho=*)
  133.     host="$ac_optarg" ;;
  134.  
  135.   -nfp | --nfp | --nf)
  136.     with_fp=no ;; # Obsolete; use --without-fp.
  137.  
  138.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  139.   | --no-cr | --no-c)
  140.     no_create=yes ;;
  141.  
  142.   -norecursion | --norecursion | --norecursio | --norecursi \
  143.   | --norecurs | --norecur | --norecu | --norec | --nore | --nor)
  144.     norecursion=yes ;;
  145.  
  146.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  147.     ac_prev=prefix ;;
  148.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  149.     prefix="$ac_optarg" ;;
  150.  
  151.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  152.   | --program-pre | --program-pr | --program-p)
  153.     ac_prev=program_prefix ;;
  154.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  155.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  156.     program_prefix="$ac_optarg" ;;
  157.  
  158.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  159.   | --program-suf | --program-su | --program-s)
  160.     ac_prev=program_suffix ;;
  161.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  162.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  163.     program_suffix="$ac_optarg" ;;
  164.  
  165.   -program-transform-name | --program-transform-name \
  166.   | --program-transform-nam | --program-transform-na \
  167.   | --program-transform-n | --program-transform- \
  168.   | --program-transform | --program-transfor \
  169.   | --program-transfo | --program-transf \
  170.   | --program-trans | --program-tran \
  171.   | --progr-tra | --program-tr | --program-t)
  172.     ac_prev=program_transform_name ;;
  173.   -program-transform-name=* | --program-transform-name=* \
  174.   | --program-transform-nam=* | --program-transform-na=* \
  175.   | --program-transform-n=* | --program-transform-=* \
  176.   | --program-transform=* | --program-transfor=* \
  177.   | --program-transfo=* | --program-transf=* \
  178.   | --program-trans=* | --program-tran=* \
  179.   | --progr-tra=* | --program-tr=* | --program-t=*)
  180.     program_transform_name="$ac_optarg" ;;
  181.  
  182.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  183.   | -silent | --silent | --silen | --sile | --sil)
  184.     silent=yes ;;
  185.  
  186.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  187.     ac_prev=srcdir ;;
  188.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  189.     srcdir="$ac_optarg" ;;
  190.  
  191.   -target | --target | --targe | --targ | --tar | --ta | --t)
  192.     ac_prev=target ;;
  193.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  194.     target="$ac_optarg" ;;
  195.  
  196.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  197.     verbose=yes ;;
  198.  
  199.   -version | --version | --versio | --versi | --vers)
  200.     /bin/echo "configure generated by autoconf version 1.11"
  201.     exit 0 ;;
  202.  
  203.   -with-* | --with-*)
  204.     ac_package=`/bin/echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  205.     # Reject names that aren't valid shell variable names.
  206.     if test -n "`/bin/echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  207.       /bin/echo "configure: $ac_package: invalid package name" >&2; exit 1
  208.     fi
  209.     ac_package=`/bin/echo $ac_package| sed 's/-/_/g'`
  210.     case "$ac_option" in
  211.       *=*) ;;
  212.       *) ac_optarg=yes ;;
  213.     esac
  214.     eval "with_${ac_package}='$ac_optarg'" ;;
  215.  
  216.   -without-* | --without-*)
  217.     ac_package=`/bin/echo $ac_option|sed -e 's/-*without-//'`
  218.     # Reject names that aren't valid shell variable names.
  219.     if test -n "`/bin/echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  220.       /bin/echo "configure: $ac_package: invalid package name" >&2; exit 1
  221.     fi
  222.     ac_package=`/bin/echo $ac_package| sed 's/-/_/g'`
  223.     eval "with_${ac_package}=no" ;;
  224.  
  225.   --x) with_x=yes ;; # Obsolete; use --with-x.
  226.  
  227.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  228.   | --x-incl | --x-inc | --x-in | --x-i)
  229.     ac_prev=x_includes ;;
  230.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  231.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  232.     x_includes="$ac_optarg" ;;
  233.  
  234.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  235.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  236.     ac_prev=x_libraries ;;
  237.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  238.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  239.     x_libraries="$ac_optarg" ;;
  240.  
  241.   -*) /bin/echo "configure: $ac_option: invalid option; use --help to show usage" >&2; exit 1
  242.     ;;
  243.  
  244.   *) 
  245.     if test -n "`/bin/echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  246.       /bin/echo "configure: warning: $ac_option: invalid host type" >&2
  247.     fi
  248.     if test "x$nonopt" != xNONE; then
  249.       /bin/echo "configure: can only configure for one host and one target at a time" >&2; exit 1
  250.     fi
  251.     nonopt="$ac_option"
  252.     ;;
  253.  
  254.   esac
  255. done
  256.  
  257. if test -n "$ac_prev"; then
  258.   /bin/echo "configure: missing argument to --`/bin/echo $ac_prev | sed 's/_/-/g'`" >&2; exit 1
  259. fi
  260.  
  261. trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  262. trap 'rm -fr confdefs* $ac_clean_files' 0
  263.  
  264. # Save the original args if we used an alternate arg parser.
  265. ac_configure_temp="${configure_args-$*}"
  266. # Strip out --no-create and --norecursion so they don't pile up.
  267. configure_args=
  268. for ac_arg in $ac_configure_temp; do
  269.   case "$ac_arg" in
  270.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  271.   | --no-cr | --no-c) ;;
  272.   -norecursion | --norecursion | --norecursio | --norecursi \
  273.   | --norecurs | --norecur | --norecu | --norec | --nore | --nor) ;;
  274.   *) configure_args="$configure_args $ac_arg" ;;
  275.   esac
  276. done
  277.  
  278. # NLS nuisances.
  279. # These must not be set unconditionally because not all systems understand
  280. # e.g. LANG=C (notably SCO).
  281. if test "${LC_ALL+set}" = 'set'; then LC_ALL=C; export LC_ALL; fi
  282. if test "${LANG+set}"   = 'set'; then LANG=C;   export LANG;   fi
  283.  
  284. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  285. rm -rf conftest* confdefs.h
  286. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  287. /bin/echo > confdefs.h
  288.  
  289. # A filename unique to this package, relative to the directory that
  290. # configure is in, which we can look for to find out if srcdir is correct.
  291. ac_unique_file=sh/sh.h
  292.  
  293. # Find the source files, if location was not specified.
  294. if test -z "$srcdir"; then
  295.   ac_srcdir_defaulted=yes
  296.   # Try the directory containing this script, then `..'.
  297.   ac_prog=$0
  298.   ac_confdir=`/bin/echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  299.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  300.   srcdir=$ac_confdir
  301.   if test ! -r $srcdir/$ac_unique_file; then
  302.     srcdir=..
  303.   fi
  304. fi
  305. if test ! -r $srcdir/$ac_unique_file; then
  306.   if test x$ac_srcdir_defaulted = xyes; then
  307.     /bin/echo "configure: can not find sources in ${ac_confdir} or .." >&2; exit 1
  308.   else
  309.     /bin/echo "configure: can not find sources in ${srcdir}" >&2; exit 1
  310.   fi
  311. fi
  312. ac_ext=c
  313. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  314. ac_cpp='${CPP}'
  315. ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS >/dev/null 2>&1'
  316.  
  317.  
  318.  
  319.  
  320. # We want these before the checks, so the checks can modify their values.
  321. test -z "$CFLAGS" && CFLAGS= auto_cflags=1
  322. test -z "$LDFLAGS" && LDFLAGS=
  323.  
  324. if test -z "$CC"; then
  325.   # Extract the first word of `gcc', so it can be a program name with args.
  326.   set ac_dummy gcc; ac_word=$2
  327.   test -n "$silent" || /bin/echo "checking for $ac_word"
  328.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  329.   for ac_dir in $PATH; do
  330.     test -z "$ac_dir" && ac_dir=.
  331.     if test -f $ac_dir/$ac_word; then
  332.       CC="gcc"
  333.       break
  334.     fi
  335.   done
  336.   IFS="$ac_save_ifs"
  337. fi
  338. test -z "$CC" && CC="cc"
  339. test -n "$CC" && test -n "$verbose" && /bin/echo "    setting CC to $CC"
  340.  
  341. # Find out if we are using GNU C, under whatever name.
  342. cat > conftest.c <<EOF
  343. #ifdef __GNUC__
  344.   yes
  345. #endif
  346. EOF
  347. ${CC-cc} -E conftest.c > conftest.out 2>&1
  348. if egrep yes conftest.out >/dev/null 2>&1; then
  349.   GCC=1 # For later tests.
  350. fi
  351. rm -f conftest*
  352.  
  353.  
  354. # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
  355. test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2"
  356.  
  357.  
  358. test -n "$silent" || /bin/echo "checking how to run the C preprocessor"
  359. if test -z "$CPP"; then
  360.   # This must be in double quotes, not single quotes, because CPP may get
  361.   # substituted into the Makefile and ``${CC-cc}'' will simply confuse
  362.   # make.  It must be expanded now.
  363.   CPP="${CC-cc} -E"
  364.   cat > conftest.${ac_ext} <<EOF
  365. #include "confdefs.h"
  366. #include <stdio.h>
  367. Syntax Error
  368. EOF
  369. # Some shells (Coherent) do redirections in the wrong order, so need
  370. # the parens.
  371. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  372. if test -z "$ac_err"; then
  373.   :
  374. else
  375.   rm -rf conftest*
  376.   CPP="${CC-cc} -E -traditional-cpp"
  377.   cat > conftest.${ac_ext} <<EOF
  378. #include "confdefs.h"
  379. #include <stdio.h>
  380. Syntax Error
  381. EOF
  382. # Some shells (Coherent) do redirections in the wrong order, so need
  383. # the parens.
  384. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  385. if test -z "$ac_err"; then
  386.   :
  387. else
  388.   rm -rf conftest*
  389.   CPP=/lib/cpp
  390. fi
  391. rm -f conftest*
  392. fi
  393. rm -f conftest*
  394. fi
  395. test -n "$verbose" && /bin/echo "    setting CPP to $CPP"
  396.  
  397. if test -n "$GCC"; then
  398.   test -n "$silent" || /bin/echo "checking whether -traditional is needed"
  399.   ac_pattern="Autoconf.*'x'"
  400.   ac_prog='#include <sgtty.h>
  401. Autoconf TIOCGETP'
  402.   cat > conftest.${ac_ext} <<EOF
  403. #include "confdefs.h"
  404. $ac_prog
  405. EOF
  406. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  407. if egrep "$ac_pattern" conftest.out >/dev/null 2>&1; then
  408.   rm -rf conftest*
  409.   ac_need_trad=1
  410.  
  411. fi
  412. rm -f conftest*
  413.  
  414.  
  415.   if test -z "$ac_need_trad"; then
  416.     ac_prog='#include <termio.h>
  417. Autoconf TCGETA'
  418.     cat > conftest.${ac_ext} <<EOF
  419. #include "confdefs.h"
  420. $ac_prog
  421. EOF
  422. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  423. if egrep "$ac_pattern" conftest.out >/dev/null 2>&1; then
  424.   rm -rf conftest*
  425.   ac_need_trad=1
  426.  
  427. fi
  428. rm -f conftest*
  429.  
  430.   fi
  431.   test -n "$ac_need_trad" && CC="$CC -traditional"
  432. fi
  433.  
  434. # Make sure to not get the incompatible SysV /etc/install and
  435. # /usr/sbin/install, which might be in PATH before a BSD-like install,
  436. # or the SunOS /usr/etc/install directory, or the AIX /bin/install,
  437. # or the AFS install, which mishandles nonexistent args, or
  438. # /usr/ucb/install on SVR4, which tries to use the nonexistent group
  439. # `staff', or /sbin/install on IRIX which has incompatible command-line
  440. # syntax.  Sigh.
  441. #
  442. #     On most BSDish systems install is in /usr/bin, not /usr/ucb
  443. #     anyway.
  444. # This turns out not to be true, so the mere pathname isn't an indication
  445. # of whether the program works.  What we really need is a set of tests for
  446. # the install program to see if it actually works in all the required ways.
  447. #
  448. # Avoid using ./install, which might have been erroneously created
  449. # by make from ./install.sh.
  450. if test -z "${INSTALL}"; then
  451.   test -n "$silent" || /bin/echo "checking for a BSD compatible install"
  452.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  453.   for ac_dir in $PATH; do
  454.     case "$ac_dir" in
  455.     ''|.|/gnu/etc|/sbin|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
  456.     *)
  457.       # OSF1 and SCO ODT 3.0 have their own names for install.
  458.       for ac_prog in installbsd scoinst install; do
  459.         if test -f $ac_dir/$ac_prog; then
  460.       if test $ac_prog = install &&
  461.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  462.         # AIX install.  It has an incompatible calling convention.
  463.         # OSF/1 installbsd also uses dspmsg, but is usable.
  464.         :
  465.       else
  466.         INSTALL="$ac_dir/$ac_prog -c"
  467.         break 2
  468.       fi
  469.     fi
  470.       done
  471.       ;;
  472.     esac
  473.   done
  474.   IFS="$ac_save_ifs"
  475. fi
  476.  
  477. if test -z "$INSTALL"; then
  478.   # As a last resort, use the slow shell script.
  479.   for ac_dir in ${srcdir} ${srcdir}/.. ${srcdir}/../..; do
  480.     if test -f $ac_dir/install.sh; then
  481.       INSTALL="$ac_dir/install.sh -c"; break
  482.     fi
  483.   done
  484. fi
  485. if test -z "$INSTALL"; then
  486.   /bin/echo "configure: can not find install.sh in ${srcdir} or ${srcdir}/.. or ${srcdir}/../.." >&2; exit 1
  487. fi
  488. test -n "$verbose" && /bin/echo "    setting INSTALL to $INSTALL"
  489.  
  490. # Use test -z because SunOS4 sh mishandles ${INSTALL_PROGRAM-'${INSTALL}'}.
  491. # It thinks the first close brace ends the variable substitution.
  492. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  493. test -n "$verbose" && /bin/echo "    setting INSTALL_PROGRAM to $INSTALL_PROGRAM"
  494.  
  495. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  496. test -n "$verbose" && /bin/echo "    setting INSTALL_DATA to $INSTALL_DATA"
  497.  
  498. if test -z "$RANLIB"; then
  499.   # Extract the first word of `ranlib', so it can be a program name with args.
  500.   set ac_dummy ranlib; ac_word=$2
  501.   test -n "$silent" || /bin/echo "checking for $ac_word"
  502.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  503.   for ac_dir in $PATH; do
  504.     test -z "$ac_dir" && ac_dir=.
  505.     if test -f $ac_dir/$ac_word; then
  506.       RANLIB="ranlib"
  507.       break
  508.     fi
  509.   done
  510.   IFS="$ac_save_ifs"
  511. fi
  512. test -z "$RANLIB" && RANLIB=":"
  513. test -n "$RANLIB" && test -n "$verbose" && /bin/echo "    setting RANLIB to $RANLIB"
  514.  
  515. test -n "$silent" || /bin/echo "checking for ANSI C header files"
  516. cat > conftest.${ac_ext} <<EOF
  517. #include "confdefs.h"
  518. #include <stdlib.h>
  519. #include <stdarg.h>
  520. #include <string.h>
  521. #include <float.h>
  522. EOF
  523. # Some shells (Coherent) do redirections in the wrong order, so need
  524. # the parens.
  525. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  526. if test -z "$ac_err"; then
  527.   rm -rf conftest*
  528.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  529. /bin/echo '#include "confdefs.h"
  530. #include <string.h>' > conftest.${ac_ext}
  531. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  532. if egrep "memchr" conftest.out >/dev/null 2>&1; then
  533.   rm -rf conftest*
  534.   # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  535. cat > conftest.${ac_ext} <<EOF
  536. #include "confdefs.h"
  537. #include <ctype.h>
  538. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  539. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  540. #define XOR(e,f) (((e) && !(f)) || (!(e) && (f)))
  541. int main () { int i; for (i = 0; i < 256; i++)
  542. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  543. exit (0); }
  544.  
  545. EOF
  546. eval $ac_compile
  547. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  548.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  549. /bin/echo '#include "confdefs.h"
  550. #include <stdlib.h>' > conftest.${ac_ext}
  551. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  552. if egrep "free" conftest.out >/dev/null 2>&1; then
  553.   rm -rf conftest*
  554.   
  555. {
  556. test -n "$verbose" && \
  557. /bin/echo "    defining STDC_HEADERS"
  558. /bin/echo "#define" STDC_HEADERS "1" >> confdefs.h
  559. DEFS="$DEFS -DSTDC_HEADERS=1"
  560. ac_sed_defs="${ac_sed_defs}\${ac_dA}STDC_HEADERS\${ac_dB}STDC_HEADERS\${ac_dC}1\${ac_dD}
  561. \${ac_uA}STDC_HEADERS\${ac_uB}STDC_HEADERS\${ac_uC}1\${ac_uD}
  562. \${ac_eA}STDC_HEADERS\${ac_eB}STDC_HEADERS\${ac_eC}1\${ac_eD}
  563. "
  564. }
  565.  
  566.  
  567. fi
  568. rm -f conftest*
  569.  
  570.  
  571. fi
  572. rm -fr conftest*
  573.  
  574. fi
  575. rm -f conftest*
  576.  
  577.  
  578. fi
  579. rm -f conftest*
  580.  
  581. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  582. # for constant arguments.  Useless!
  583. test -n "$silent" || /bin/echo "checking for working alloca.h"
  584. cat > conftest.${ac_ext} <<EOF
  585. #include "confdefs.h"
  586. #include <alloca.h>
  587. int main() { return 0; }
  588. int t() { char *p = alloca(2 * sizeof(int));; return 0; }
  589. EOF
  590. if eval $ac_compile; then
  591.   rm -rf conftest*
  592.   
  593. {
  594. test -n "$verbose" && \
  595. /bin/echo "    defining HAVE_ALLOCA_H"
  596. /bin/echo "#define" HAVE_ALLOCA_H "1" >> confdefs.h
  597. DEFS="$DEFS -DHAVE_ALLOCA_H=1"
  598. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_ALLOCA_H\${ac_dB}HAVE_ALLOCA_H\${ac_dC}1\${ac_dD}
  599. \${ac_uA}HAVE_ALLOCA_H\${ac_uB}HAVE_ALLOCA_H\${ac_uC}1\${ac_uD}
  600. \${ac_eA}HAVE_ALLOCA_H\${ac_eB}HAVE_ALLOCA_H\${ac_eC}1\${ac_eD}
  601. "
  602. }
  603.  
  604.  
  605. fi
  606. rm -f conftest*
  607.  
  608. ac_decl="#ifdef __GNUC__
  609. #define alloca __builtin_alloca
  610. #else
  611. #if HAVE_ALLOCA_H
  612. #include <alloca.h>
  613. #else
  614. #ifdef _AIX
  615.  #pragma alloca
  616. #else
  617. char *alloca ();
  618. #endif
  619. #endif
  620. #endif
  621. "
  622. test -n "$silent" || /bin/echo "checking for alloca"
  623. cat > conftest.${ac_ext} <<EOF
  624. #include "confdefs.h"
  625. $ac_decl
  626. int main() { return 0; }
  627. int t() { char *p = (char *) alloca(1);; return 0; }
  628. EOF
  629. if eval $ac_compile; then
  630.   rm -rf conftest*
  631.   
  632. {
  633. test -n "$verbose" && \
  634. /bin/echo "    defining HAVE_ALLOCA"
  635. /bin/echo "#define" HAVE_ALLOCA "1" >> confdefs.h
  636. DEFS="$DEFS -DHAVE_ALLOCA=1"
  637. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_ALLOCA\${ac_dB}HAVE_ALLOCA\${ac_dC}1\${ac_dD}
  638. \${ac_uA}HAVE_ALLOCA\${ac_uB}HAVE_ALLOCA\${ac_uC}1\${ac_uD}
  639. \${ac_eA}HAVE_ALLOCA\${ac_eB}HAVE_ALLOCA\${ac_eC}1\${ac_eD}
  640. "
  641. }
  642.  
  643.  
  644. else
  645.   rm -rf conftest*
  646.   ac_alloca_missing=1
  647. cat > conftest.${ac_ext} <<EOF
  648. #include "confdefs.h"
  649.  
  650. #if defined(CRAY) && ! defined(CRAY2)
  651. winnitude
  652. #else
  653. lossage
  654. #endif
  655.  
  656. EOF
  657. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  658. if egrep "winnitude" conftest.out >/dev/null 2>&1; then
  659.   rm -rf conftest*
  660.   test -n "$silent" || /bin/echo "checking for _getb67"
  661. cat > conftest.${ac_ext} <<EOF
  662. #include "confdefs.h"
  663. #include <ctype.h>
  664. int main() { return 0; }
  665. int t() { 
  666. /* The GNU C library defines this for functions which it implements
  667.     to always fail with ENOSYS.  Some functions are actually named
  668.     something starting with __ and the normal name is an alias.  */
  669. #if defined (__stub__getb67) || defined (__stub____getb67)
  670. choke me
  671. #else
  672. /* Override any gcc2 internal prototype to avoid an error.  */
  673. extern char _getb67(); _getb67();
  674. #endif
  675. ; return 0; }
  676. EOF
  677. if eval $ac_compile; then
  678.   rm -rf conftest*
  679.   {
  680. test -n "$verbose" && \
  681. /bin/echo "    defining" CRAY_STACKSEG_END to be "_getb67"
  682. /bin/echo "#define" CRAY_STACKSEG_END "_getb67" >> confdefs.h
  683. DEFS="$DEFS -DCRAY_STACKSEG_END=_getb67"
  684. ac_sed_defs="${ac_sed_defs}\${ac_dA}CRAY_STACKSEG_END\${ac_dB}CRAY_STACKSEG_END\${ac_dC}_getb67\${ac_dD}
  685. \${ac_uA}CRAY_STACKSEG_END\${ac_uB}CRAY_STACKSEG_END\${ac_uC}_getb67\${ac_uD}
  686. \${ac_eA}CRAY_STACKSEG_END\${ac_eB}CRAY_STACKSEG_END\${ac_eC}_getb67\${ac_eD}
  687. "
  688. }
  689.  
  690.  
  691. else
  692.   rm -rf conftest*
  693.   test -n "$silent" || /bin/echo "checking for GETB67"
  694. cat > conftest.${ac_ext} <<EOF
  695. #include "confdefs.h"
  696. #include <ctype.h>
  697. int main() { return 0; }
  698. int t() { 
  699. /* The GNU C library defines this for functions which it implements
  700.     to always fail with ENOSYS.  Some functions are actually named
  701.     something starting with __ and the normal name is an alias.  */
  702. #if defined (__stub_GETB67) || defined (__stub___GETB67)
  703. choke me
  704. #else
  705. /* Override any gcc2 internal prototype to avoid an error.  */
  706. extern char GETB67(); GETB67();
  707. #endif
  708. ; return 0; }
  709. EOF
  710. if eval $ac_compile; then
  711.   rm -rf conftest*
  712.   {
  713. test -n "$verbose" && \
  714. /bin/echo "    defining" CRAY_STACKSEG_END to be "GETB67"
  715. /bin/echo "#define" CRAY_STACKSEG_END "GETB67" >> confdefs.h
  716. DEFS="$DEFS -DCRAY_STACKSEG_END=GETB67"
  717. ac_sed_defs="${ac_sed_defs}\${ac_dA}CRAY_STACKSEG_END\${ac_dB}CRAY_STACKSEG_END\${ac_dC}GETB67\${ac_dD}
  718. \${ac_uA}CRAY_STACKSEG_END\${ac_uB}CRAY_STACKSEG_END\${ac_uC}GETB67\${ac_uD}
  719. \${ac_eA}CRAY_STACKSEG_END\${ac_eB}CRAY_STACKSEG_END\${ac_eC}GETB67\${ac_eD}
  720. "
  721. }
  722.  
  723.  
  724. else
  725.   rm -rf conftest*
  726.   test -n "$silent" || /bin/echo "checking for getb67"
  727. cat > conftest.${ac_ext} <<EOF
  728. #include "confdefs.h"
  729. #include <ctype.h>
  730. int main() { return 0; }
  731. int t() { 
  732. /* The GNU C library defines this for functions which it implements
  733.     to always fail with ENOSYS.  Some functions are actually named
  734.     something starting with __ and the normal name is an alias.  */
  735. #if defined (__stub_getb67) || defined (__stub___getb67)
  736. choke me
  737. #else
  738. /* Override any gcc2 internal prototype to avoid an error.  */
  739. extern char getb67(); getb67();
  740. #endif
  741. ; return 0; }
  742. EOF
  743. if eval $ac_compile; then
  744.   rm -rf conftest*
  745.   {
  746. test -n "$verbose" && \
  747. /bin/echo "    defining" CRAY_STACKSEG_END to be "getb67"
  748. /bin/echo "#define" CRAY_STACKSEG_END "getb67" >> confdefs.h
  749. DEFS="$DEFS -DCRAY_STACKSEG_END=getb67"
  750. ac_sed_defs="${ac_sed_defs}\${ac_dA}CRAY_STACKSEG_END\${ac_dB}CRAY_STACKSEG_END\${ac_dC}getb67\${ac_dD}
  751. \${ac_uA}CRAY_STACKSEG_END\${ac_uB}CRAY_STACKSEG_END\${ac_uC}getb67\${ac_uD}
  752. \${ac_eA}CRAY_STACKSEG_END\${ac_eB}CRAY_STACKSEG_END\${ac_eC}getb67\${ac_eD}
  753. "
  754. }
  755.  
  756.  
  757. fi
  758. rm -f conftest*
  759.  
  760. fi
  761. rm -f conftest*
  762.  
  763. fi
  764. rm -f conftest*
  765.  
  766.  
  767. fi
  768. rm -f conftest*
  769.  
  770.  
  771. fi
  772. rm -f conftest*
  773.  
  774. if test -n "$ac_alloca_missing"; then
  775.   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  776.   # that cause trouble.  Some versions do not even contain alloca or
  777.   # contain a buggy version.  If you still want to use their alloca,
  778.   # use ar to extract alloca.o from them instead of compiling alloca.c.
  779.   ALLOCA=alloca.o
  780.   
  781. {
  782. test -n "$verbose" && \
  783. /bin/echo "    defining C_ALLOCA"
  784. /bin/echo "#define" C_ALLOCA "1" >> confdefs.h
  785. DEFS="$DEFS -DC_ALLOCA=1"
  786. ac_sed_defs="${ac_sed_defs}\${ac_dA}C_ALLOCA\${ac_dB}C_ALLOCA\${ac_dC}1\${ac_dD}
  787. \${ac_uA}C_ALLOCA\${ac_uB}C_ALLOCA\${ac_uC}1\${ac_uD}
  788. \${ac_eA}C_ALLOCA\${ac_eB}C_ALLOCA\${ac_eC}1\${ac_eD}
  789. "
  790. }
  791.  
  792.  
  793.   test -n "$silent" || /bin/echo "checking stack direction for C alloca"
  794.   test -n "$silent" || /bin/echo "checking whether cross-compiling"
  795. # If we cannot run a trivial program, we must be cross compiling.
  796. cat > conftest.${ac_ext} <<EOF
  797. #include "confdefs.h"
  798. main(){exit(0);}
  799. EOF
  800. eval $ac_compile
  801. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  802.   :
  803. else
  804.   cross_compiling=1
  805. fi
  806. rm -fr conftest*
  807.  
  808. if test -n "$cross_compiling"
  809. then
  810.   
  811. {
  812. test -n "$verbose" && \
  813. /bin/echo "    defining" STACK_DIRECTION to be "0"
  814. /bin/echo "#define" STACK_DIRECTION "0" >> confdefs.h
  815. DEFS="$DEFS -DSTACK_DIRECTION=0"
  816. ac_sed_defs="${ac_sed_defs}\${ac_dA}STACK_DIRECTION\${ac_dB}STACK_DIRECTION\${ac_dC}0\${ac_dD}
  817. \${ac_uA}STACK_DIRECTION\${ac_uB}STACK_DIRECTION\${ac_uC}0\${ac_uD}
  818. \${ac_eA}STACK_DIRECTION\${ac_eB}STACK_DIRECTION\${ac_eC}0\${ac_eD}
  819. "
  820. }
  821.  
  822. else
  823. cat > conftest.${ac_ext} <<EOF
  824. #include "confdefs.h"
  825. find_stack_direction ()
  826. {
  827.   static char *addr = 0;
  828.   auto char dummy;
  829.   if (addr == 0)
  830.     {
  831.       addr = &dummy;
  832.       return find_stack_direction ();
  833.     }
  834.   else
  835.     return (&dummy > addr) ? 1 : -1;
  836. }
  837. main ()
  838. {
  839.   exit (find_stack_direction() < 0);
  840. }
  841. EOF
  842. eval $ac_compile
  843. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  844.   
  845. {
  846. test -n "$verbose" && \
  847. /bin/echo "    defining" STACK_DIRECTION to be "1"
  848. /bin/echo "#define" STACK_DIRECTION "1" >> confdefs.h
  849. DEFS="$DEFS -DSTACK_DIRECTION=1"
  850. ac_sed_defs="${ac_sed_defs}\${ac_dA}STACK_DIRECTION\${ac_dB}STACK_DIRECTION\${ac_dC}1\${ac_dD}
  851. \${ac_uA}STACK_DIRECTION\${ac_uB}STACK_DIRECTION\${ac_uC}1\${ac_uD}
  852. \${ac_eA}STACK_DIRECTION\${ac_eB}STACK_DIRECTION\${ac_eC}1\${ac_eD}
  853. "
  854. }
  855.  
  856.  
  857. else
  858.   
  859. {
  860. test -n "$verbose" && \
  861. /bin/echo "    defining" STACK_DIRECTION to be "-1"
  862. /bin/echo "#define" STACK_DIRECTION "-1" >> confdefs.h
  863. DEFS="$DEFS -DSTACK_DIRECTION=-1"
  864. ac_sed_defs="${ac_sed_defs}\${ac_dA}STACK_DIRECTION\${ac_dB}STACK_DIRECTION\${ac_dC}-1\${ac_dD}
  865. \${ac_uA}STACK_DIRECTION\${ac_uB}STACK_DIRECTION\${ac_uC}-1\${ac_uD}
  866. \${ac_eA}STACK_DIRECTION\${ac_eB}STACK_DIRECTION\${ac_eC}-1\${ac_eD}
  867. "
  868. }
  869.  
  870. fi
  871. fi
  872. rm -fr conftest*
  873. fi
  874.  
  875.  
  876. # The preferred way to propogate these variables is regular @ substitutions.
  877. if test -n "$prefix"; then
  878.   ac_prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  879. else
  880.   prefix=/usr/local
  881. fi
  882. if test -n "$exec_prefix"; then
  883.   ac_prsub="$ac_prsub
  884. s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
  885. else
  886.   exec_prefix='${prefix}' # Let make expand it.
  887. fi
  888.  
  889. # Any assignment to VPATH causes Sun make to only execute
  890. # the first set of double-colon rules, so remove it if not needed.
  891. # If there is a colon in the path, we need to keep it.
  892. if test "x$srcdir" = x.; then
  893.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  894. fi
  895.  
  896. # Quote sed substitution magic chars in DEFS.
  897. cat >conftest.def <<EOF
  898. $DEFS
  899. EOF
  900. ac_escape_ampersand_and_backslash='s%[&\\]%\\&%g'
  901. DEFS=`sed "$ac_escape_ampersand_and_backslash" <conftest.def`
  902. rm -f conftest.def
  903. # Substitute for predefined variables.
  904.  
  905. trap 'rm -f config.status; exit 1' 1 2 15
  906. /bin/echo creating config.status
  907. # Some systems, like AmigaDOS, won't allow you to remove a script that is
  908. # being executed, so just move it out of the way instead.
  909. if test -f config.status; then mv config.status config.status.old; else true; fi
  910. cat > config.status <<EOF
  911. #!/bin/sh
  912. # Generated automatically by configure.
  913. # Run this file to recreate the current configuration.
  914. # This directory was configured as follows,
  915. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  916. #
  917. # $0 $configure_args
  918.  
  919. ac_cs_usage="Usage: config.status [--recheck] [--version] [--help]"
  920. for ac_option
  921. do
  922.   case "\$ac_option" in
  923.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  924.     /bin/echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create
  925.     exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create ;;
  926.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  927.     /bin/echo "config.status generated by autoconf version 1.11"
  928.     exit 0 ;;
  929.   -help | --help | --hel | --he | --h)
  930.     /bin/echo "\$ac_cs_usage"; exit 0 ;;
  931.   *) /bin/echo "\$ac_cs_usage"; exit 1 ;;
  932.   esac
  933. done
  934.  
  935. trap 'rm -fr Makefile sh/Makefile sh/config.h conftest*; exit 1' 1 2 15
  936. CC='$CC'
  937. CFLAGS='$CFLAGS'
  938. LDFLAGS='$LDFLAGS'
  939. CPP='$CPP'
  940. INSTALL='$INSTALL'
  941. INSTALL_PROGRAM='$INSTALL_PROGRAM'
  942. INSTALL_DATA='$INSTALL_DATA'
  943. RANLIB='$RANLIB'
  944. ALLOCA='$ALLOCA'
  945. LIBS='$LIBS'
  946. srcdir='$srcdir'
  947. top_srcdir='$top_srcdir'
  948. prefix='$prefix'
  949. exec_prefix='$exec_prefix'
  950. ac_prsub='$ac_prsub'
  951. ac_vpsub='$ac_vpsub'
  952. extrasub='$extrasub'
  953. EOF
  954. cat >> config.status <<\EOF
  955.  
  956. ac_given_srcdir=$srcdir
  957.  
  958. CONFIG_FILES=${CONFIG_FILES-"Makefile sh/Makefile"}
  959. for ac_file in .. ${CONFIG_FILES}; do if test "x$ac_file" != x..; then
  960.   # Remove last slash and all that follows it.  Not all systems have dirname.
  961.   ac_dir=`/bin/echo $ac_file|sed 's%/[^/][^/]*$%%'`
  962.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  963.     # The file is in a subdirectory.
  964.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  965.     ac_dir_suffix="/$ac_dir"
  966.   else
  967.     ac_dir_suffix=
  968.   fi
  969.  
  970.   # A "../" for each directory in $ac_dir_suffix.
  971.   ac_dots=`/bin/echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  972.   case "$ac_given_srcdir" in
  973.   .)  srcdir=.
  974.       if test -z "$ac_dir_suffix"; then top_srcdir=.
  975.       else top_srcdir=`/bin/echo $ac_dots|sed 's%/$%%'`; fi ;;
  976.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  977.   *) # Relative path.
  978.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  979.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  980.   esac
  981.  
  982.   /bin/echo creating "$ac_file"
  983.   rm -f "$ac_file"
  984.   comment_str="Generated automatically from `/bin/echo $ac_file|sed 's|.*/||'`.in by configure."
  985.   case "$ac_file" in
  986.     *.c | *.h | *.C | *.cc | *.m )  /bin/echo "/* $comment_str */" > "$ac_file" ;;
  987.     * )          /bin/echo "# $comment_str"     > "$ac_file" ;;
  988.   esac
  989.   sed -e "
  990. $ac_prsub
  991. $ac_vpsub
  992. $extrasub
  993. s%@CC@%$CC%g
  994. s%@CFLAGS@%$CFLAGS%g
  995. s%@LDFLAGS@%$LDFLAGS%g
  996. s%@CPP@%$CPP%g
  997. s%@INSTALL@%$INSTALL%g
  998. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  999. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1000. s%@RANLIB@%$RANLIB%g
  1001. s%@ALLOCA@%$ALLOCA%g
  1002. s%@LIBS@%$LIBS%g
  1003. s%@srcdir@%$srcdir%g
  1004. s%@top_srcdir@%$top_srcdir%g
  1005. s%@prefix@%$prefix%g
  1006. s%@exec_prefix@%$exec_prefix%g
  1007. s%@DEFS@%-DHAVE_CONFIG_H%" $ac_given_srcdir/${ac_file}.in >> $ac_file
  1008. fi; done
  1009.  
  1010. # These sed commands are put into ac_sed_defs when defining a macro.
  1011. # They are broken into pieces to make the sed script easier to manage.
  1012. # They are passed to sed as "A NAME B NAME C VALUE D", where NAME
  1013. # is the cpp macro being defined and VALUE is the value it is being given.
  1014. # Each defining turns into a single global substitution command.
  1015. # Hopefully no one uses "!" as a variable value.
  1016. # Other candidates for the sed separators, like , and @, do get used.
  1017. #
  1018. # ac_d sets the value in "#define NAME VALUE" lines.
  1019. ac_dA='s!^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  1020. ac_dB='\([     ][     ]*\)[^     ]*!\1#\2'
  1021. ac_dC='\3'
  1022. ac_dD='!g'
  1023. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  1024. ac_uA='s!^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  1025. ac_uB='\([     ]\)!\1#\2define\3'
  1026. ac_uC=' '
  1027. ac_uD='\4!g'
  1028. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  1029. ac_eA='s!^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  1030. ac_eB='$!\1#\2define\3'
  1031. ac_eC=' '
  1032. ac_eD='!g'
  1033. rm -f conftest.sed
  1034. EOF
  1035. # Turn off quoting long enough to insert the sed commands.
  1036. rm -f conftest.sh
  1037. cat > conftest.sh <<EOF
  1038. $ac_sed_defs
  1039. EOF
  1040.  
  1041. # Break up $ac_sed_defs (now in conftest.sh) because some shells have a limit
  1042. # on the size of here documents.
  1043.  
  1044. # Maximum number of lines to put in a single here document.
  1045. ac_max_sh_lines=9
  1046.  
  1047. while :
  1048. do
  1049.   # wc gives bogus results for an empty file on some AIX systems.
  1050.   ac_lines=`grep -c . conftest.sh`
  1051.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  1052.   rm -f conftest.s1 conftest.s2
  1053.   sed ${ac_max_sh_lines}q conftest.sh > conftest.s1 # Like head -9.
  1054.   sed 1,${ac_max_sh_lines}d conftest.sh > conftest.s2 # Like tail +10.
  1055.   # Write a limited-size here document to append to conftest.sed.
  1056.   /bin/echo 'cat >> conftest.sed <<CONFEOF' >> config.status
  1057.   cat conftest.s1 >> config.status
  1058.   /bin/echo 'CONFEOF' >> config.status
  1059.   rm -f conftest.s1 conftest.sh
  1060.   mv conftest.s2 conftest.sh
  1061. done
  1062. rm -f conftest.sh
  1063.  
  1064. # Now back to your regularly scheduled config.status.
  1065. cat >> config.status <<\EOF
  1066. # This sed command replaces #undef's with comments.  This is necessary, for
  1067. # example, in the case of _POSIX_SOURCE, which is predefined and required
  1068. # on some systems where configure will not decide to define it in
  1069. # sh/config.h.
  1070. cat >> conftest.sed <<\CONFEOF
  1071. s,^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  1072. CONFEOF
  1073. rm -f conftest.h
  1074. # Break up the sed commands because old seds have small limits.
  1075. ac_max_sed_lines=20
  1076.  
  1077. CONFIG_HEADERS=${CONFIG_HEADERS-"sh/config.h"}
  1078. for ac_file in .. ${CONFIG_HEADERS}; do if test "x$ac_file" != x..; then
  1079.   /bin/echo creating $ac_file
  1080.  
  1081.   cp $ac_given_srcdir/$ac_file.in conftest.h1
  1082.   cp conftest.sed conftest.stm
  1083.   while :
  1084.   do
  1085.     ac_lines=`grep -c . conftest.stm`
  1086.     if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  1087.     rm -f conftest.s1 conftest.s2 conftest.h2
  1088.     sed ${ac_max_sed_lines}q conftest.stm > conftest.s1 # Like head -20.
  1089.     sed 1,${ac_max_sed_lines}d conftest.stm > conftest.s2 # Like tail +21.
  1090.     sed -f conftest.s1 < conftest.h1 > conftest.h2
  1091.     rm -f conftest.s1 conftest.h1 conftest.stm
  1092.     mv conftest.h2 conftest.h1
  1093.     mv conftest.s2 conftest.stm
  1094.   done
  1095.   rm -f conftest.stm conftest.h
  1096.   /bin/echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  1097.   cat conftest.h1 >> conftest.h
  1098.   rm -f conftest.h1
  1099.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  1100.     # The file exists and we would not be changing it.
  1101.     /bin/echo "$ac_file is unchanged"
  1102.     rm -f conftest.h
  1103.   else
  1104.     rm -f $ac_file
  1105.     mv conftest.h $ac_file
  1106.   fi
  1107. fi; done
  1108. rm -f conftest.sed
  1109.  
  1110.  
  1111.  
  1112. exit 0
  1113. EOF
  1114. chmod +x config.status
  1115. # Some shells look in PATH for config.status without the "./".
  1116. test -n "$no_create" || ${CONFIG_SHELL-/bin/sh} ./config.status
  1117.  
  1118.