home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 6 / FreshFish_September1994.bin / bbs / gnu / gzip-1.2.4-src.lha / GNU / src / amiga / gzip-1.2.4 / configure < prev    next >
Encoding:
Text File  |  1994-04-26  |  32.5 KB  |  1,212 lines

  1. #!/bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated automatically using autoconf version 1.9 
  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.9"
  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=gzip.c
  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. ac_cpp='${CPP} $CFLAGS'
  314. ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS >/dev/null 2>&1'
  315.  
  316.  
  317. if test -z "$CC"; then
  318.   # Extract the first word of `gcc', so it can be a program name with args.
  319.   set ac_dummy gcc; ac_word=$2
  320.   test -n "$silent" || /bin/echo "checking for $ac_word"
  321.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  322.   for ac_dir in $PATH; do
  323.     test -z "$ac_dir" && ac_dir=.
  324.     if test -f $ac_dir/$ac_word; then
  325.       CC="gcc"
  326.       break
  327.     fi
  328.   done
  329.   IFS="$ac_save_ifs"
  330. fi
  331. test -z "$CC" && CC="cc"
  332. test -n "$CC" && test -n "$verbose" && /bin/echo "    setting CC to $CC"
  333.  
  334. # Find out if we are using GNU C, under whatever name.
  335. cat > conftest.c <<EOF
  336. #ifdef __GNUC__
  337.   yes
  338. #endif
  339. EOF
  340. ${CC-cc} -E conftest.c > conftest.out 2>&1
  341. if egrep yes conftest.out >/dev/null 2>&1; then
  342.   GCC=1 # For later tests.
  343. fi
  344. rm -f conftest*
  345.  
  346. test -n "$silent" || /bin/echo "checking how to run the C preprocessor"
  347. if test -z "$CPP"; then
  348.   # This must be in double quotes, not single quotes, because CPP may get
  349.   # substituted into the Makefile and ``${CC-cc}'' will simply confuse
  350.   # make.  It must be expanded now.
  351.   CPP="${CC-cc} -E"
  352.   cat > conftest.${ac_ext} <<EOF
  353. #include "confdefs.h"
  354. #include <stdio.h>
  355. Syntax Error
  356. EOF
  357. # Some shells (Coherent) do redirections in the wrong order, so need
  358. # the parens.
  359. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  360. if test -z "$ac_err"; then
  361.   :
  362. else
  363.   rm -rf conftest*
  364.   CPP="${CC-cc} -E -traditional-cpp"
  365.   cat > conftest.${ac_ext} <<EOF
  366. #include "confdefs.h"
  367. #include <stdio.h>
  368. Syntax Error
  369. EOF
  370. # Some shells (Coherent) do redirections in the wrong order, so need
  371. # the parens.
  372. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  373. if test -z "$ac_err"; then
  374.   :
  375. else
  376.   rm -rf conftest*
  377.   CPP=/lib/cpp
  378. fi
  379. rm -f conftest*
  380. fi
  381. rm -f conftest*
  382. fi
  383. test -n "$verbose" && /bin/echo "    setting CPP to $CPP"
  384.  
  385. echo checking for underline in external names
  386. test -z "$ASCPP" && ASCPP="$CC -E"
  387. cat > conftest.c <<EOF
  388. int foo() {return 0;}
  389. EOF
  390. eval "$CC -c conftest.c > /dev/null 2>&1"
  391. if nm conftest.o | grep _foo > /dev/null 2>&1 ; then
  392.   :
  393. else
  394.   ASCPP="${ASCPP} -DNO_UNDERLINE"
  395. fi
  396. rm -f _match.o conftest.c conftest.o
  397. if echo "$DEFS" | grep NO_ASM >/dev/null; then
  398.   :
  399. else
  400.   echo checking for assembler
  401.   OBJA=""
  402.   if eval "$ASCPP $srcdir/match.S > _match.s 2>/dev/null"; then
  403.     if test ! -s _match.s || grep error < _match.s > /dev/null; then
  404.       :
  405.     elif eval "$CC -c _match.s >/dev/null 2>&1" && test -f _match.o; then
  406.       DEFS="${DEFS} -DASMV"
  407.       OBJA=match.o
  408.     fi
  409.   fi
  410.   rm -f _match.s _match.o
  411. fi
  412. # Make sure to not get the incompatible SysV /etc/install and
  413. # /usr/sbin/install, which might be in PATH before a BSD-like install,
  414. # or the SunOS /usr/etc/install directory, or the AIX /bin/install,
  415. # or the AFS install, which mishandles nonexistent args, or
  416. # /usr/ucb/install on SVR4, which tries to use the nonexistent group
  417. # `staff', or /sbin/install on IRIX which has incompatible command-line
  418. # syntax.  Sigh.
  419. #
  420. #     On most BSDish systems install is in /usr/bin, not /usr/ucb
  421. #     anyway.
  422. # This turns out not to be true, so the mere pathname isn't an indication
  423. # of whether the program works.  What we really need is a set of tests for
  424. # the install program to see if it actually works in all the required ways.
  425. #
  426. # Avoid using ./install, which might have been erroneously created
  427. # by make from ./install.sh.
  428. if test "z${INSTALL}" = "z" ; then
  429.   test -n "$silent" || /bin/echo "checking for a BSD compatible install"
  430.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  431.   for ac_dir in $PATH; do
  432.     case "$ac_dir" in
  433.     ''|.|/gnu/etc|/sbin|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
  434.     *)
  435.       # OSF1 and SCO ODT 3.0 have their own names for install.
  436.       for ac_prog in installbsd scoinst install; do
  437.         if test -f $ac_dir/$ac_prog; then
  438.       if test $ac_prog = install &&
  439.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  440.         # AIX install.  It has an incompatible calling convention.
  441.         # OSF/1 installbsd also uses dspmsg, but is usable.
  442.         :
  443.       else
  444.         INSTALL="$ac_dir/$ac_prog -c"
  445.         INSTALL_PROGRAM='${INSTALL}'
  446.         INSTALL_DATA='${INSTALL} -m 644'
  447.         break 2
  448.       fi
  449.     fi
  450.       done
  451.       ;;
  452.     esac
  453.   done
  454.   IFS="$ac_save_ifs"
  455. fi
  456. if test -z "$INSTALL"; then
  457.   if test -f ${srcdir}/install.sh; then
  458.     # As a last resort, use the slow shell script.
  459.     INSTALL='@top_srcdir@/install.sh -c'
  460.   else
  461.     /bin/echo "configure: warning: ${srcdir}/install.sh not found; using cp" >&2
  462.     INSTALL=cp
  463.   fi
  464. fi
  465. test -n "$verbose" && /bin/echo "    setting INSTALL to $INSTALL"
  466. # Use test -z because SunOS4 sh mishandles ${INSTALL_PROGRAM-'${INSTALL}'}.
  467. # It thinks the first close brace ends the variable substitution.
  468. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  469. test -n "$verbose" && /bin/echo "    setting INSTALL_PROGRAM to $INSTALL_PROGRAM"
  470. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL}'
  471. test -n "$verbose" && /bin/echo "    setting INSTALL_DATA to $INSTALL_DATA"
  472.  
  473. test -n "$silent" || /bin/echo "checking for AIX"
  474. cat > conftest.${ac_ext} <<EOF
  475. #include "confdefs.h"
  476. #ifdef _AIX
  477.   yes
  478. #endif
  479.  
  480. EOF
  481. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  482. if egrep "yes" conftest.out >/dev/null 2>&1; then
  483.   rm -rf conftest*
  484.   
  485. {
  486. test -n "$verbose" && \
  487. /bin/echo "    defining _ALL_SOURCE"
  488. /bin/echo "#define" _ALL_SOURCE "1" >> confdefs.h
  489. DEFS="$DEFS -D_ALL_SOURCE=1"
  490. }
  491.  
  492.  
  493. fi
  494. rm -f conftest*
  495.  
  496.  
  497. test -n "$silent" || /bin/echo "checking for minix/config.h"
  498. cat > conftest.${ac_ext} <<EOF
  499. #include "confdefs.h"
  500. #include <minix/config.h>
  501. EOF
  502. # Some shells (Coherent) do redirections in the wrong order, so need
  503. # the parens.
  504. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  505. if test -z "$ac_err"; then
  506.   rm -rf conftest*
  507.   MINIX=1
  508.  
  509. fi
  510. rm -f conftest*
  511.  
  512. # The Minix shell can't assign to the same variable on the same line!
  513. if test -n "$MINIX"; then
  514.   
  515. {
  516. test -n "$verbose" && \
  517. /bin/echo "    defining _POSIX_SOURCE"
  518. /bin/echo "#define" _POSIX_SOURCE "1" >> confdefs.h
  519. DEFS="$DEFS -D_POSIX_SOURCE=1"
  520. }
  521.  
  522.   
  523. {
  524. test -n "$verbose" && \
  525. /bin/echo "    defining" _POSIX_1_SOURCE to be "2"
  526. /bin/echo "#define" _POSIX_1_SOURCE "2" >> confdefs.h
  527. DEFS="$DEFS -D_POSIX_1_SOURCE=2"
  528. }
  529.  
  530.   
  531. {
  532. test -n "$verbose" && \
  533. /bin/echo "    defining _MINIX"
  534. /bin/echo "#define" _MINIX "1" >> confdefs.h
  535. DEFS="$DEFS -D_MINIX=1"
  536. }
  537.  
  538. fi
  539.  
  540. test -n "$silent" || /bin/echo "checking for POSIXized ISC"
  541. if test -d /gnu/etc/conf/kconfig.d &&
  542.   grep _POSIX_VERSION /gnu/include/sys/unistd.h >/dev/null 2>&1
  543. then
  544.   ISC=1 # If later tests want to check for ISC.
  545.   
  546. {
  547. test -n "$verbose" && \
  548. /bin/echo "    defining _POSIX_SOURCE"
  549. /bin/echo "#define" _POSIX_SOURCE "1" >> confdefs.h
  550. DEFS="$DEFS -D_POSIX_SOURCE=1"
  551. }
  552.  
  553.   if test -n "$GCC"; then
  554.     CC="$CC -posix"
  555.   else
  556.     CC="$CC -Xp"
  557.   fi
  558. fi
  559.  
  560. ac_save_LIBS="${LIBS}"
  561. LIBS="${LIBS} -lseq"
  562. ac_have_lib=""
  563. test -n "$silent" || /bin/echo "checking for -lseq"
  564. cat > conftest.${ac_ext} <<EOF
  565. #include "confdefs.h"
  566.  
  567. int main() { return 0; }
  568. int t() { main();; return 0; }
  569. EOF
  570. if eval $ac_compile; then
  571.   rm -rf conftest*
  572.   ac_have_lib="1"
  573.  
  574. fi
  575. rm -f conftest*
  576. LIBS="${ac_save_LIBS}"
  577. if test -n "${ac_have_lib}"; then
  578.    :; LIBS="$LIBS -lseq"
  579. else
  580.    :; 
  581. fi
  582.  
  583.  
  584. test -n "$silent" || /bin/echo "checking for ANSI C header files"
  585. cat > conftest.${ac_ext} <<EOF
  586. #include "confdefs.h"
  587. #include <stdlib.h>
  588. #include <stdarg.h>
  589. #include <string.h>
  590. #include <float.h>
  591. EOF
  592. # Some shells (Coherent) do redirections in the wrong order, so need
  593. # the parens.
  594. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  595. if test -z "$ac_err"; then
  596.   rm -rf conftest*
  597.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  598. /bin/echo '#include "confdefs.h"
  599. #include <string.h>' > conftest.${ac_ext}
  600. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  601. if egrep "memchr" conftest.out >/dev/null 2>&1; then
  602.   rm -rf conftest*
  603.   # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  604. cat > conftest.${ac_ext} <<EOF
  605. #include "confdefs.h"
  606. #include <ctype.h>
  607. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  608. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  609. #define XOR(e,f) (((e) && !(f)) || (!(e) && (f)))
  610. int main () { int i; for (i = 0; i < 256; i++)
  611. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  612. exit (0); }
  613.  
  614. EOF
  615. eval $ac_compile
  616. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  617.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  618. /bin/echo '#include "confdefs.h"
  619. #include <stdlib.h>' > conftest.${ac_ext}
  620. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  621. if egrep "free" conftest.out >/dev/null 2>&1; then
  622.   rm -rf conftest*
  623.   
  624. {
  625. test -n "$verbose" && \
  626. /bin/echo "    defining STDC_HEADERS"
  627. /bin/echo "#define" STDC_HEADERS "1" >> confdefs.h
  628. DEFS="$DEFS -DSTDC_HEADERS=1"
  629. }
  630.  
  631.  
  632. fi
  633. rm -f conftest*
  634.  
  635.  
  636. fi
  637. rm -fr conftest*
  638.  
  639. fi
  640. rm -f conftest*
  641.  
  642.  
  643. fi
  644. rm -f conftest*
  645.  
  646. test -n "$silent" || /bin/echo "checking for string.h"
  647. cat > conftest.${ac_ext} <<EOF
  648. #include "confdefs.h"
  649. #include <string.h>
  650. EOF
  651. # Some shells (Coherent) do redirections in the wrong order, so need
  652. # the parens.
  653. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  654. if test -z "$ac_err"; then
  655.   :
  656. else
  657.   rm -rf conftest*
  658.   
  659. {
  660. test -n "$verbose" && \
  661. /bin/echo "    defining NO_STRING_H"
  662. /bin/echo "#define" NO_STRING_H "1" >> confdefs.h
  663. DEFS="$DEFS -DNO_STRING_H=1"
  664. }
  665.  
  666. fi
  667. rm -f conftest*
  668.  
  669. test -n "$silent" || /bin/echo "checking for stdlib.h"
  670. cat > conftest.${ac_ext} <<EOF
  671. #include "confdefs.h"
  672. #include <stdlib.h>
  673. EOF
  674. # Some shells (Coherent) do redirections in the wrong order, so need
  675. # the parens.
  676. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  677. if test -z "$ac_err"; then
  678.   :
  679. else
  680.   rm -rf conftest*
  681.   
  682. {
  683. test -n "$verbose" && \
  684. /bin/echo "    defining NO_STDLIB_H"
  685. /bin/echo "#define" NO_STDLIB_H "1" >> confdefs.h
  686. DEFS="$DEFS -DNO_STDLIB_H=1"
  687. }
  688.  
  689. fi
  690. rm -f conftest*
  691.  
  692. test -n "$silent" || /bin/echo "checking for memory.h"
  693. cat > conftest.${ac_ext} <<EOF
  694. #include "confdefs.h"
  695. #include <memory.h>
  696. EOF
  697. # Some shells (Coherent) do redirections in the wrong order, so need
  698. # the parens.
  699. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  700. if test -z "$ac_err"; then
  701.   :
  702. else
  703.   rm -rf conftest*
  704.   
  705. {
  706. test -n "$verbose" && \
  707. /bin/echo "    defining NO_MEMORY_H"
  708. /bin/echo "#define" NO_MEMORY_H "1" >> confdefs.h
  709. DEFS="$DEFS -DNO_MEMORY_H=1"
  710. }
  711.  
  712. fi
  713. rm -f conftest*
  714.  
  715. test -n "$silent" || /bin/echo "checking for fcntl.h"
  716. cat > conftest.${ac_ext} <<EOF
  717. #include "confdefs.h"
  718. #include <fcntl.h>
  719. EOF
  720. # Some shells (Coherent) do redirections in the wrong order, so need
  721. # the parens.
  722. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  723. if test -z "$ac_err"; then
  724.   :
  725. else
  726.   rm -rf conftest*
  727.   
  728. {
  729. test -n "$verbose" && \
  730. /bin/echo "    defining NO_FCNTL_H"
  731. /bin/echo "#define" NO_FCNTL_H "1" >> confdefs.h
  732. DEFS="$DEFS -DNO_FCNTL_H=1"
  733. }
  734.  
  735. fi
  736. rm -f conftest*
  737.  
  738. test -n "$silent" || /bin/echo "checking for time.h"
  739. cat > conftest.${ac_ext} <<EOF
  740. #include "confdefs.h"
  741. #include <time.h>
  742. EOF
  743. # Some shells (Coherent) do redirections in the wrong order, so need
  744. # the parens.
  745. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  746. if test -z "$ac_err"; then
  747.   :
  748. else
  749.   rm -rf conftest*
  750.   
  751. {
  752. test -n "$verbose" && \
  753. /bin/echo "    defining NO_TIME_H"
  754. /bin/echo "#define" NO_TIME_H "1" >> confdefs.h
  755. DEFS="$DEFS -DNO_TIME_H=1"
  756. }
  757.  
  758. fi
  759. rm -f conftest*
  760.  
  761. for ac_hdr in unistd.h
  762. do
  763. ac_tr_hdr=HAVE_`/bin/echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
  764. test -n "$silent" || /bin/echo "checking for ${ac_hdr}"
  765. cat > conftest.${ac_ext} <<EOF
  766. #include "confdefs.h"
  767. #include <${ac_hdr}>
  768. EOF
  769. # Some shells (Coherent) do redirections in the wrong order, so need
  770. # the parens.
  771. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  772. if test -z "$ac_err"; then
  773.   rm -rf conftest*
  774.   
  775. {
  776. test -n "$verbose" && \
  777. /bin/echo "    defining ${ac_tr_hdr}"
  778. /bin/echo "#define" ${ac_tr_hdr} "1" >> confdefs.h
  779. DEFS="$DEFS -D${ac_tr_hdr}=1"
  780. }
  781.  
  782.  
  783. fi
  784. rm -f conftest*
  785. done
  786.  
  787. utime=0
  788. test -n "$silent" || /bin/echo "checking for utime.h"
  789. cat > conftest.${ac_ext} <<EOF
  790. #include "confdefs.h"
  791. #include <utime.h>
  792. EOF
  793. # Some shells (Coherent) do redirections in the wrong order, so need
  794. # the parens.
  795. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  796. if test -z "$ac_err"; then
  797.   rm -rf conftest*
  798.   utime=1 
  799.  
  800. else
  801.   rm -rf conftest*
  802.   
  803. {
  804. test -n "$verbose" && \
  805. /bin/echo "    defining NO_UTIME_H"
  806. /bin/echo "#define" NO_UTIME_H "1" >> confdefs.h
  807. DEFS="$DEFS -DNO_UTIME_H=1"
  808. }
  809.  
  810. fi
  811. rm -f conftest*
  812.  
  813. if test $utime -eq 0; then
  814.   for ac_hdr in sys/utime.h
  815. do
  816. ac_tr_hdr=HAVE_`/bin/echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
  817. test -n "$silent" || /bin/echo "checking for ${ac_hdr}"
  818. cat > conftest.${ac_ext} <<EOF
  819. #include "confdefs.h"
  820. #include <${ac_hdr}>
  821. EOF
  822. # Some shells (Coherent) do redirections in the wrong order, so need
  823. # the parens.
  824. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  825. if test -z "$ac_err"; then
  826.   rm -rf conftest*
  827.   
  828. {
  829. test -n "$verbose" && \
  830. /bin/echo "    defining ${ac_tr_hdr}"
  831. /bin/echo "#define" ${ac_tr_hdr} "1" >> confdefs.h
  832. DEFS="$DEFS -D${ac_tr_hdr}=1"
  833. }
  834.  
  835.  
  836. fi
  837. rm -f conftest*
  838. done
  839.  
  840. fi
  841. test -n "$silent" || /bin/echo "checking for directory library header"
  842. ac_dir_header=
  843. if test -z "$ac_dir_header"; then
  844.   test -n "$silent" || /bin/echo "checking for dirent.h"
  845. cat > conftest.${ac_ext} <<EOF
  846. #include "confdefs.h"
  847. #include <sys/types.h>
  848. #include <dirent.h>
  849. int main() { return 0; }
  850. int t() { DIR *dirp = 0;; return 0; }
  851. EOF
  852. if eval $ac_compile; then
  853.   rm -rf conftest*
  854.   
  855. {
  856. test -n "$verbose" && \
  857. /bin/echo "    defining DIRENT"
  858. /bin/echo "#define" DIRENT "1" >> confdefs.h
  859. DEFS="$DEFS -DDIRENT=1"
  860. }
  861.  ac_dir_header=dirent.h
  862.  
  863. fi
  864. rm -f conftest*
  865. fi
  866. if test -z "$ac_dir_header"; then
  867.   test -n "$silent" || /bin/echo "checking for sys/ndir.h"
  868. cat > conftest.${ac_ext} <<EOF
  869. #include "confdefs.h"
  870. #include <sys/types.h>
  871. #include <sys/ndir.h>
  872. int main() { return 0; }
  873. int t() { DIR *dirp = 0;; return 0; }
  874. EOF
  875. if eval $ac_compile; then
  876.   rm -rf conftest*
  877.   
  878. {
  879. test -n "$verbose" && \
  880. /bin/echo "    defining SYSNDIR"
  881. /bin/echo "#define" SYSNDIR "1" >> confdefs.h
  882. DEFS="$DEFS -DSYSNDIR=1"
  883. }
  884.  ac_dir_header=sys/ndir.h
  885.  
  886. fi
  887. rm -f conftest*
  888. fi
  889. if test -z "$ac_dir_header"; then
  890.   test -n "$silent" || /bin/echo "checking for sys/dir.h"
  891. cat > conftest.${ac_ext} <<EOF
  892. #include "confdefs.h"
  893. #include <sys/types.h>
  894. #include <sys/dir.h>
  895. int main() { return 0; }
  896. int t() { DIR *dirp = 0;; return 0; }
  897. EOF
  898. if eval $ac_compile; then
  899.   rm -rf conftest*
  900.   
  901. {
  902. test -n "$verbose" && \
  903. /bin/echo "    defining SYSDIR"
  904. /bin/echo "#define" SYSDIR "1" >> confdefs.h
  905. DEFS="$DEFS -DSYSDIR=1"
  906. }
  907.  ac_dir_header=sys/dir.h
  908.  
  909. fi
  910. rm -f conftest*
  911. fi
  912. if test -z "$ac_dir_header"; then
  913.   test -n "$silent" || /bin/echo "checking for ndir.h"
  914. cat > conftest.${ac_ext} <<EOF
  915. #include "confdefs.h"
  916. #include <sys/types.h>
  917. #include <ndir.h>
  918. int main() { return 0; }
  919. int t() { DIR *dirp = 0;; return 0; }
  920. EOF
  921. if eval $ac_compile; then
  922.   rm -rf conftest*
  923.   
  924. {
  925. test -n "$verbose" && \
  926. /bin/echo "    defining NDIR"
  927. /bin/echo "#define" NDIR "1" >> confdefs.h
  928. DEFS="$DEFS -DNDIR=1"
  929. }
  930.  ac_dir_header=ndir.h
  931.  
  932. fi
  933. rm -f conftest*
  934. fi
  935.  
  936. test -n "$silent" || /bin/echo "checking for closedir return value"
  937. cat > conftest.${ac_ext} <<EOF
  938. #include "confdefs.h"
  939. #include <sys/types.h>
  940. #include <$ac_dir_header>
  941. int closedir(); main() { exit(closedir(opendir(".")) != 0); }
  942. EOF
  943. eval $ac_compile
  944. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  945.   :
  946. else
  947.   
  948. {
  949. test -n "$verbose" && \
  950. /bin/echo "    defining VOID_CLOSEDIR"
  951. /bin/echo "#define" VOID_CLOSEDIR "1" >> confdefs.h
  952. DEFS="$DEFS -DVOID_CLOSEDIR=1"
  953. }
  954.  
  955. fi
  956. rm -fr conftest*
  957.  
  958. test -n "$silent" || /bin/echo "checking for Xenix"
  959. cat > conftest.${ac_ext} <<EOF
  960. #include "confdefs.h"
  961. #if defined(M_XENIX) && !defined(M_UNIX)
  962.   yes
  963. #endif
  964.  
  965. EOF
  966. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  967. if egrep "yes" conftest.out >/dev/null 2>&1; then
  968.   rm -rf conftest*
  969.   XENIX=1
  970.  
  971. fi
  972. rm -f conftest*
  973.  
  974. if test -n "$XENIX"; then
  975.   LIBS="$LIBS -lx"
  976.   case "$DEFS" in
  977.   *SYSNDIR*) ;;
  978.   *) LIBS="-ldir $LIBS" ;; # Make sure -ldir precedes any -lx.
  979.   esac
  980. fi
  981.  
  982. test -n "$silent" || /bin/echo "checking for return type of signal handlers"
  983. cat > conftest.${ac_ext} <<EOF
  984. #include "confdefs.h"
  985. #include <sys/types.h>
  986. #include <signal.h>
  987. #ifdef signal
  988. #undef signal
  989. #endif
  990. extern void (*signal ()) ();
  991. int main() { return 0; }
  992. int t() { int i;; return 0; }
  993. EOF
  994. if eval $ac_compile; then
  995.   :
  996. else
  997.   rm -rf conftest*
  998.   
  999. {
  1000. test -n "$verbose" && \
  1001. /bin/echo "    defining" RETSIGTYPE to be "int"
  1002. /bin/echo "#define" RETSIGTYPE "int" >> confdefs.h
  1003. DEFS="$DEFS -DRETSIGTYPE=int"
  1004. }
  1005.  
  1006. fi
  1007. rm -f conftest*
  1008.  
  1009.  
  1010. test -n "$silent" || /bin/echo "checking for size_t in sys/types.h"
  1011. /bin/echo '#include "confdefs.h"
  1012. #include <sys/types.h>' > conftest.${ac_ext}
  1013. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  1014. if egrep "size_t" conftest.out >/dev/null 2>&1; then
  1015.   :
  1016. else
  1017.   rm -rf conftest*
  1018.   
  1019. {
  1020. test -n "$verbose" && \
  1021. /bin/echo "    defining" size_t to be "unsigned"
  1022. /bin/echo "#define" size_t "unsigned" >> confdefs.h
  1023. DEFS="$DEFS -Dsize_t=unsigned"
  1024. }
  1025.  
  1026. fi
  1027. rm -f conftest*
  1028.  
  1029. /bin/echo '#include "confdefs.h"
  1030. #include <sys/types.h>' > conftest.${ac_ext}
  1031. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  1032. if egrep "off_t" conftest.out >/dev/null 2>&1; then
  1033.   :
  1034. else
  1035.   rm -rf conftest*
  1036.   
  1037. {
  1038. test -n "$verbose" && \
  1039. /bin/echo "    defining NO_OFF_T"
  1040. /bin/echo "#define" NO_OFF_T "1" >> confdefs.h
  1041. DEFS="$DEFS -DNO_OFF_T=1"
  1042. }
  1043.  
  1044. fi
  1045. rm -f conftest*
  1046.  
  1047. SEDCMD=""
  1048. if test -z "$prefix"
  1049. then
  1050.   test -n "$silent" || /bin/echo "checking for gzip to derive installation directory prefix"
  1051.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="$IFS:"
  1052.   for ac_dir in $PATH; do
  1053.     test -z "$ac_dir" && ac_dir=.
  1054.     if test $ac_dir != . && test -f $ac_dir/gzip; then
  1055.       # Not all systems have dirname.
  1056.       prefix=`/bin/echo $ac_dir|sed 's%/[^/][^/]*$%%'`
  1057.       break
  1058.     fi
  1059.   done
  1060.   IFS="$ac_save_ifs"
  1061.   test -n "$verbose" && /bin/echo "    chose installation directory prefix ${prefix}"
  1062. fi
  1063.  
  1064. if test -z "$G" -a -n "$prefix" -a -f $prefix/bin/gznew; then
  1065.   G=g
  1066. fi
  1067. if test -z "$ZCAT"; then
  1068.   if test -n "$prefix" -a -f $prefix/bin/gzcat; then
  1069.     ZCAT=gzcat
  1070.   else
  1071.     ZCAT=${G}zcat
  1072.   fi
  1073. fi
  1074. # Set default prefixes.
  1075. if test -n "$prefix"; then
  1076.   test -z "$exec_prefix" && exec_prefix='${prefix}' # Let make expand it.
  1077.   ac_prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  1078. fi
  1079. if test -n "$exec_prefix"; then
  1080.   ac_prsub="$ac_prsub
  1081. s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
  1082. fi
  1083. # Any assignment to VPATH causes Sun make to only execute
  1084. # the first set of double-colon rules, so remove it if not needed.
  1085. # If there is a colon in the path, we need to keep it.
  1086. if test "x$srcdir" = x.; then
  1087.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  1088. fi
  1089.  
  1090. # Quote sed substitution magic chars in DEFS.
  1091. cat >conftest.def <<EOF
  1092. $DEFS
  1093. EOF
  1094. ac_escape_ampersand_and_backslash='s%[&\\]%\\&%g'
  1095. DEFS=`sed "$ac_escape_ampersand_and_backslash" <conftest.def`
  1096. rm -f conftest.def
  1097. # Substitute for predefined variables.
  1098.  
  1099. trap 'rm -f config.status; exit 1' 1 2 15
  1100. /bin/echo creating config.status
  1101. rm -f config.status
  1102. cat > config.status <<EOF
  1103. #!/bin/sh
  1104. # Generated automatically by configure.
  1105. # Run this file to recreate the current configuration.
  1106. # This directory was configured as follows,
  1107. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1108. #
  1109. # $0 $configure_args
  1110.  
  1111. ac_cs_usage="Usage: config.status [--recheck] [--version] [--help]"
  1112. for ac_option
  1113. do
  1114.   case "\$ac_option" in
  1115.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1116.     /bin/echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create
  1117.     exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create ;;
  1118.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1119.     /bin/echo "config.status generated by autoconf version 1.9"
  1120.     exit 0 ;;
  1121.   -help | --help | --hel | --he | --h)
  1122.     /bin/echo "\$ac_cs_usage"; exit 0 ;;
  1123.   *) /bin/echo "\$ac_cs_usage"; exit 1 ;;
  1124.   esac
  1125. done
  1126.  
  1127. trap 'rm -f Makefile; exit 1' 1 2 15
  1128. CC='$CC'
  1129. CPP='$CPP'
  1130. INSTALL='$INSTALL'
  1131. INSTALL_PROGRAM='$INSTALL_PROGRAM'
  1132. INSTALL_DATA='$INSTALL_DATA'
  1133. ZCAT='$ZCAT'
  1134. G='$G'
  1135. CFLAGS='$CFLAGS'
  1136. ASCPP='$ASCPP'
  1137. OBJA='$OBJA'
  1138. SEDCMD='$SEDCMD'
  1139. LIBS='$LIBS'
  1140. srcdir='$srcdir'
  1141. top_srcdir='$top_srcdir'
  1142. prefix='$prefix'
  1143. exec_prefix='$exec_prefix'
  1144. DEFS='$DEFS'
  1145. ac_prsub='$ac_prsub'
  1146. ac_vpsub='$ac_vpsub'
  1147. extrasub='$extrasub'
  1148. EOF
  1149. cat >> config.status <<\EOF
  1150.  
  1151. ac_given_srcdir=$srcdir
  1152.  
  1153. CONFIG_FILES=${CONFIG_FILES-"Makefile"}
  1154. for ac_file in .. ${CONFIG_FILES}; do if test "x$ac_file" != x..; then
  1155.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1156.   ac_dir=`/bin/echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1157.   if test "$ac_dir" != "$ac_file"; then
  1158.     # The file is in a subdirectory.
  1159.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  1160.     ac_dir_suffix="/$ac_dir"
  1161.   else
  1162.     ac_dir_suffix=
  1163.   fi
  1164.  
  1165.   # A "../" for each directory in $ac_dir_suffix.
  1166.   ac_dots=`/bin/echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1167.   case "$ac_given_srcdir" in
  1168.   .)  srcdir=.; top_srcdir="$ac_dots." ;;
  1169.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1170.   *) # Relative path.
  1171.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1172.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1173.   esac
  1174.  
  1175.   /bin/echo creating "$ac_file"
  1176.   rm -f "$ac_file"
  1177.   comment_str="Generated automatically from `/bin/echo $ac_file|sed 's|.*/||'`.in by configure."
  1178.   case "$ac_file" in
  1179.     *.c | *.h | *.C | *.cc | *.m )  /bin/echo "/* $comment_str */" > "$ac_file" ;;
  1180.     * )          /bin/echo "# $comment_str"     > "$ac_file" ;;
  1181.   esac
  1182.   sed -e "
  1183. $ac_prsub
  1184. $ac_vpsub
  1185. $extrasub
  1186. s%@CC@%$CC%g
  1187. s%@CPP@%$CPP%g
  1188. s%@INSTALL@%$INSTALL%g
  1189. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1190. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1191. s%@ZCAT@%$ZCAT%g
  1192. s%@G@%$G%g
  1193. s%@CFLAGS@%$CFLAGS%g
  1194. s%@ASCPP@%$ASCPP%g
  1195. s%@OBJA@%$OBJA%g
  1196. s%@SEDCMD@%$SEDCMD%g
  1197. s%@LIBS@%$LIBS%g
  1198. s%@srcdir@%$srcdir%g
  1199. s%@top_srcdir@%$top_srcdir%g
  1200. s%@prefix@%$prefix%g
  1201. s%@exec_prefix@%$exec_prefix%g
  1202. s%@DEFS@%$DEFS%
  1203. " $ac_given_srcdir/${ac_file}.in >> $ac_file
  1204. fi; done
  1205.  
  1206.  
  1207. exit 0
  1208. EOF
  1209. chmod +x config.status
  1210. test -n "$no_create" || ${CONFIG_SHELL-/bin/sh} config.status
  1211.  
  1212.