home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / OPENSTEP / UNIX / Utilities / rsync-1.6.3-MIH / src / configure < prev    next >
Encoding:
Text File  |  1997-04-11  |  63.9 KB  |  2,344 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.9 
  5. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14.  
  15. # Initialize some variables set by options.
  16. # The variables have the same names as the options, with
  17. # dashes changed to underlines.
  18. build=NONE
  19. cache_file=./config.cache
  20. exec_prefix=NONE
  21. host=NONE
  22. no_create=
  23. nonopt=NONE
  24. no_recursion=
  25. prefix=NONE
  26. program_prefix=NONE
  27. program_suffix=NONE
  28. program_transform_name=s,x,x,
  29. silent=
  30. site=
  31. srcdir=
  32. target=NONE
  33. verbose=
  34. x_includes=NONE
  35. x_libraries=NONE
  36. bindir='${exec_prefix}/bin'
  37. sbindir='${exec_prefix}/sbin'
  38. libexecdir='${exec_prefix}/libexec'
  39. datadir='${prefix}/share'
  40. sysconfdir='${prefix}/etc'
  41. sharedstatedir='${prefix}/com'
  42. localstatedir='${prefix}/var'
  43. libdir='${exec_prefix}/lib'
  44. includedir='${prefix}/include'
  45. oldincludedir='/usr/include'
  46. infodir='${prefix}/info'
  47. mandir='${prefix}/man'
  48.  
  49. # Initialize some other variables.
  50. subdirs=
  51. MFLAGS= MAKEFLAGS=
  52.  
  53. ac_prev=
  54. for ac_option
  55. do
  56.  
  57.   # If the previous option needs an argument, assign it.
  58.   if test -n "$ac_prev"; then
  59.     eval "$ac_prev=\$ac_option"
  60.     ac_prev=
  61.     continue
  62.   fi
  63.  
  64.   case "$ac_option" in
  65.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  66.   *) ac_optarg= ;;
  67.   esac
  68.  
  69.   # Accept the important Cygnus configure options, so we can diagnose typos.
  70.  
  71.   case "$ac_option" in
  72.  
  73.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  74.     ac_prev=bindir ;;
  75.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  76.     bindir="$ac_optarg" ;;
  77.  
  78.   -build | --build | --buil | --bui | --bu)
  79.     ac_prev=build ;;
  80.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  81.     build="$ac_optarg" ;;
  82.  
  83.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  84.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  85.     ac_prev=cache_file ;;
  86.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  87.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  88.     cache_file="$ac_optarg" ;;
  89.  
  90.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  91.     ac_prev=datadir ;;
  92.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  93.   | --da=*)
  94.     datadir="$ac_optarg" ;;
  95.  
  96.   -disable-* | --disable-*)
  97.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  98.     # Reject names that are not valid shell variable names.
  99.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  100.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  101.     fi
  102.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  103.     eval "enable_${ac_feature}=no" ;;
  104.  
  105.   -enable-* | --enable-*)
  106.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  107.     # Reject names that are not valid shell variable names.
  108.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  109.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  110.     fi
  111.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  112.     case "$ac_option" in
  113.       *=*) ;;
  114.       *) ac_optarg=yes ;;
  115.     esac
  116.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  117.  
  118.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  119.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  120.   | --exec | --exe | --ex)
  121.     ac_prev=exec_prefix ;;
  122.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  123.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  124.   | --exec=* | --exe=* | --ex=*)
  125.     exec_prefix="$ac_optarg" ;;
  126.  
  127.   -gas | --gas | --ga | --g)
  128.     # Obsolete; use --with-gas.
  129.     with_gas=yes ;;
  130.  
  131.   -help | --help | --hel | --he)
  132.     # Omit some internal or obsolete options to make the list less imposing.
  133.     # This message is too long to be a string in the A/UX 3.1 sh.
  134.     cat << EOF
  135. Usage: configure [options] [host]
  136. Options: [defaults in brackets after descriptions]
  137. Configuration:
  138.   --cache-file=FILE       cache test results in FILE
  139.   --help                  print this message
  140.   --no-create             do not create output files
  141.   --quiet, --silent       do not print \`checking...' messages
  142.   --version               print the version of autoconf that created configure
  143. Directory and file names:
  144.   --prefix=PREFIX         install architecture-independent files in PREFIX
  145.                           [$ac_default_prefix]
  146.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  147.                           [same as prefix]
  148.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  149.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  150.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  151.   --datadir=DIR           read-only architecture-independent data in DIR
  152.                           [PREFIX/share]
  153.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  154.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  155.                           [PREFIX/com]
  156.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  157.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  158.   --includedir=DIR        C header files in DIR [PREFIX/include]
  159.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  160.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  161.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  162.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  163.   --program-prefix=PREFIX prepend PREFIX to installed program names
  164.   --program-suffix=SUFFIX append SUFFIX to installed program names
  165.   --program-transform-name=PROGRAM
  166.                           run sed PROGRAM on installed program names
  167. EOF
  168.     cat << EOF
  169. Host type:
  170.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  171.   --host=HOST             configure for HOST [guessed]
  172.   --target=TARGET         configure for TARGET [TARGET=HOST]
  173. Features and packages:
  174.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  175.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  176.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  177.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  178.   --x-includes=DIR        X include files are in DIR
  179.   --x-libraries=DIR       X library files are in DIR
  180. EOF
  181.     if test -n "$ac_help"; then
  182.       echo "--enable and --with options recognized:$ac_help"
  183.     fi
  184.     exit 0 ;;
  185.  
  186.   -host | --host | --hos | --ho)
  187.     ac_prev=host ;;
  188.   -host=* | --host=* | --hos=* | --ho=*)
  189.     host="$ac_optarg" ;;
  190.  
  191.   -includedir | --includedir | --includedi | --included | --include \
  192.   | --includ | --inclu | --incl | --inc)
  193.     ac_prev=includedir ;;
  194.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  195.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  196.     includedir="$ac_optarg" ;;
  197.  
  198.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  199.     ac_prev=infodir ;;
  200.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  201.     infodir="$ac_optarg" ;;
  202.  
  203.   -libdir | --libdir | --libdi | --libd)
  204.     ac_prev=libdir ;;
  205.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  206.     libdir="$ac_optarg" ;;
  207.  
  208.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  209.   | --libexe | --libex | --libe)
  210.     ac_prev=libexecdir ;;
  211.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  212.   | --libexe=* | --libex=* | --libe=*)
  213.     libexecdir="$ac_optarg" ;;
  214.  
  215.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  216.   | --localstate | --localstat | --localsta | --localst \
  217.   | --locals | --local | --loca | --loc | --lo)
  218.     ac_prev=localstatedir ;;
  219.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  220.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  221.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  222.     localstatedir="$ac_optarg" ;;
  223.  
  224.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  225.     ac_prev=mandir ;;
  226.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  227.     mandir="$ac_optarg" ;;
  228.  
  229.   -nfp | --nfp | --nf)
  230.     # Obsolete; use --without-fp.
  231.     with_fp=no ;;
  232.  
  233.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  234.   | --no-cr | --no-c)
  235.     no_create=yes ;;
  236.  
  237.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  238.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  239.     no_recursion=yes ;;
  240.  
  241.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  242.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  243.   | --oldin | --oldi | --old | --ol | --o)
  244.     ac_prev=oldincludedir ;;
  245.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  246.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  247.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  248.     oldincludedir="$ac_optarg" ;;
  249.  
  250.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  251.     ac_prev=prefix ;;
  252.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  253.     prefix="$ac_optarg" ;;
  254.  
  255.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  256.   | --program-pre | --program-pr | --program-p)
  257.     ac_prev=program_prefix ;;
  258.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  259.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  260.     program_prefix="$ac_optarg" ;;
  261.  
  262.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  263.   | --program-suf | --program-su | --program-s)
  264.     ac_prev=program_suffix ;;
  265.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  266.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  267.     program_suffix="$ac_optarg" ;;
  268.  
  269.   -program-transform-name | --program-transform-name \
  270.   | --program-transform-nam | --program-transform-na \
  271.   | --program-transform-n | --program-transform- \
  272.   | --program-transform | --program-transfor \
  273.   | --program-transfo | --program-transf \
  274.   | --program-trans | --program-tran \
  275.   | --progr-tra | --program-tr | --program-t)
  276.     ac_prev=program_transform_name ;;
  277.   -program-transform-name=* | --program-transform-name=* \
  278.   | --program-transform-nam=* | --program-transform-na=* \
  279.   | --program-transform-n=* | --program-transform-=* \
  280.   | --program-transform=* | --program-transfor=* \
  281.   | --program-transfo=* | --program-transf=* \
  282.   | --program-trans=* | --program-tran=* \
  283.   | --progr-tra=* | --program-tr=* | --program-t=*)
  284.     program_transform_name="$ac_optarg" ;;
  285.  
  286.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  287.   | -silent | --silent | --silen | --sile | --sil)
  288.     silent=yes ;;
  289.  
  290.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  291.     ac_prev=sbindir ;;
  292.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  293.   | --sbi=* | --sb=*)
  294.     sbindir="$ac_optarg" ;;
  295.  
  296.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  297.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  298.   | --sharedst | --shareds | --shared | --share | --shar \
  299.   | --sha | --sh)
  300.     ac_prev=sharedstatedir ;;
  301.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  302.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  303.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  304.   | --sha=* | --sh=*)
  305.     sharedstatedir="$ac_optarg" ;;
  306.  
  307.   -site | --site | --sit)
  308.     ac_prev=site ;;
  309.   -site=* | --site=* | --sit=*)
  310.     site="$ac_optarg" ;;
  311.  
  312.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  313.     ac_prev=srcdir ;;
  314.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  315.     srcdir="$ac_optarg" ;;
  316.  
  317.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  318.   | --syscon | --sysco | --sysc | --sys | --sy)
  319.     ac_prev=sysconfdir ;;
  320.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  321.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  322.     sysconfdir="$ac_optarg" ;;
  323.  
  324.   -target | --target | --targe | --targ | --tar | --ta | --t)
  325.     ac_prev=target ;;
  326.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  327.     target="$ac_optarg" ;;
  328.  
  329.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  330.     verbose=yes ;;
  331.  
  332.   -version | --version | --versio | --versi | --vers)
  333.     echo "configure generated by autoconf version 2.9"
  334.     exit 0 ;;
  335.  
  336.   -with-* | --with-*)
  337.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  338.     # Reject names that are not valid shell variable names.
  339.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  340.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  341.     fi
  342.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  343.     case "$ac_option" in
  344.       *=*) ;;
  345.       *) ac_optarg=yes ;;
  346.     esac
  347.     eval "with_${ac_package}='$ac_optarg'" ;;
  348.  
  349.   -without-* | --without-*)
  350.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  351.     # Reject names that are not valid shell variable names.
  352.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  353.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  354.     fi
  355.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  356.     eval "with_${ac_package}=no" ;;
  357.  
  358.   --x)
  359.     # Obsolete; use --with-x.
  360.     with_x=yes ;;
  361.  
  362.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  363.   | --x-incl | --x-inc | --x-in | --x-i)
  364.     ac_prev=x_includes ;;
  365.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  366.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  367.     x_includes="$ac_optarg" ;;
  368.  
  369.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  370.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  371.     ac_prev=x_libraries ;;
  372.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  373.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  374.     x_libraries="$ac_optarg" ;;
  375.  
  376.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  377.     ;;
  378.  
  379.   *)
  380.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  381.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  382.     fi
  383.     if test "x$nonopt" != xNONE; then
  384.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  385.     fi
  386.     nonopt="$ac_option"
  387.     ;;
  388.  
  389.   esac
  390. done
  391.  
  392. if test -n "$ac_prev"; then
  393.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  394. fi
  395.  
  396. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  397.  
  398. # File descriptor usage:
  399. # 0 standard input
  400. # 1 file creation
  401. # 2 errors and warnings
  402. # 3 some systems may open it to /dev/tty
  403. # 4 used on the Kubota Titan
  404. # 6 checking for... messages and results
  405. # 5 compiler messages saved in config.log
  406. if test "$silent" = yes; then
  407.   exec 6>/dev/null
  408. else
  409.   exec 6>&1
  410. fi
  411. exec 5>./config.log
  412.  
  413. echo "\
  414. This file contains any messages produced by compilers while
  415. running configure, to aid debugging if configure makes a mistake.
  416. " 1>&5
  417.  
  418. # Strip out --no-create and --no-recursion so they do not pile up.
  419. # Also quote any args containing shell metacharacters.
  420. ac_configure_args=
  421. for ac_arg
  422. do
  423.   case "$ac_arg" in
  424.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  425.   | --no-cr | --no-c) ;;
  426.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  427.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  428.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  429.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  430.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  431.   esac
  432. done
  433.  
  434. # NLS nuisances.
  435. # Only set LANG and LC_ALL to C if already set.
  436. # These must not be set unconditionally because not all systems understand
  437. # e.g. LANG=C (notably SCO).
  438. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  439. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  440.  
  441. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  442. rm -rf conftest* confdefs.h
  443. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  444. echo > confdefs.h
  445.  
  446. # A filename unique to this package, relative to the directory that
  447. # configure is in, which we can look for to find out if srcdir is correct.
  448. ac_unique_file=byteorder.h
  449.  
  450. # Find the source files, if location was not specified.
  451. if test -z "$srcdir"; then
  452.   ac_srcdir_defaulted=yes
  453.   # Try the directory containing this script, then its parent.
  454.   ac_prog=$0
  455.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  456.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  457.   srcdir=$ac_confdir
  458.   if test ! -r $srcdir/$ac_unique_file; then
  459.     srcdir=..
  460.   fi
  461. else
  462.   ac_srcdir_defaulted=no
  463. fi
  464. if test ! -r $srcdir/$ac_unique_file; then
  465.   if test "$ac_srcdir_defaulted" = yes; then
  466.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  467.   else
  468.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  469.   fi
  470. fi
  471. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  472.  
  473. # Prefer explicitly selected file to automatically selected ones.
  474. if test -z "$CONFIG_SITE"; then
  475.   if test "x$prefix" != xNONE; then
  476.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  477.   else
  478.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  479.   fi
  480. fi
  481. for ac_site_file in $CONFIG_SITE; do
  482.   if test -r "$ac_site_file"; then
  483.     echo "loading site script $ac_site_file"
  484.     . "$ac_site_file"
  485.   fi
  486. done
  487.  
  488. if test -r "$cache_file"; then
  489.   echo "loading cache $cache_file"
  490.   . $cache_file
  491. else
  492.   echo "creating cache $cache_file"
  493.   > $cache_file
  494. fi
  495.  
  496. ac_ext=c
  497. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  498. ac_cpp='$CPP $CPPFLAGS'
  499. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  500. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  501.  
  502. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  503.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  504.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  505.     ac_n= ac_c='
  506. ' ac_t='    '
  507.   else
  508.     ac_n=-n ac_c= ac_t=
  509.   fi
  510. else
  511.   ac_n= ac_c='\c' ac_t=
  512. fi
  513.  
  514.  
  515.  
  516.  
  517. # Extract the first word of "gcc", so it can be a program name with args.
  518. set dummy gcc; ac_word=$2
  519. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  520. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  521.   echo $ac_n "(cached) $ac_c" 1>&6
  522. else
  523.   if test -n "$CC"; then
  524.   ac_cv_prog_CC="$CC" # Let the user override the test.
  525. else
  526.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  527.   for ac_dir in $PATH; do
  528.     test -z "$ac_dir" && ac_dir=.
  529.     if test -f $ac_dir/$ac_word; then
  530.       ac_cv_prog_CC="gcc"
  531.       break
  532.     fi
  533.   done
  534.   IFS="$ac_save_ifs"
  535. fi
  536. fi
  537. CC="$ac_cv_prog_CC"
  538. if test -n "$CC"; then
  539.   echo "$ac_t""$CC" 1>&6
  540. else
  541.   echo "$ac_t""no" 1>&6
  542. fi
  543.  
  544. if test -z "$CC"; then
  545.   # Extract the first word of "cc", so it can be a program name with args.
  546. set dummy cc; ac_word=$2
  547. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  548. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  549.   echo $ac_n "(cached) $ac_c" 1>&6
  550. else
  551.   if test -n "$CC"; then
  552.   ac_cv_prog_CC="$CC" # Let the user override the test.
  553. else
  554.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  555.   ac_prog_rejected=no
  556.   for ac_dir in $PATH; do
  557.     test -z "$ac_dir" && ac_dir=.
  558.     if test -f $ac_dir/$ac_word; then
  559.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  560.         ac_prog_rejected=yes
  561.     continue
  562.       fi
  563.       ac_cv_prog_CC="cc"
  564.       break
  565.     fi
  566.   done
  567.   IFS="$ac_save_ifs"
  568. if test $ac_prog_rejected = yes; then
  569.   # We found a bogon in the path, so make sure we never use it.
  570.   set dummy $ac_cv_prog_CC
  571.   shift
  572.   if test $# -gt 0; then
  573.     # We chose a different compiler from the bogus one.
  574.     # However, it has the same basename, so the bogon will be chosen
  575.     # first if we set CC to just the basename; use the full file name.
  576.     shift
  577.     set dummy "$ac_dir/$ac_word" "$@"
  578.     shift
  579.     ac_cv_prog_CC="$@"
  580.   fi
  581. fi
  582. fi
  583. fi
  584. CC="$ac_cv_prog_CC"
  585. if test -n "$CC"; then
  586.   echo "$ac_t""$CC" 1>&6
  587. else
  588.   echo "$ac_t""no" 1>&6
  589. fi
  590.  
  591.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  592. fi
  593.  
  594. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  595. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  596.   echo $ac_n "(cached) $ac_c" 1>&6
  597. else
  598.   cat > conftest.c <<EOF
  599. #ifdef __GNUC__
  600.   yes;
  601. #endif
  602. EOF
  603. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  604.   ac_cv_prog_gcc=yes
  605. else
  606.   ac_cv_prog_gcc=no
  607. fi
  608. fi
  609.  
  610. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  611. if test $ac_cv_prog_gcc = yes; then
  612.   GCC=yes
  613.   if test "${CFLAGS+set}" != set; then
  614.     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  615. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  616.   echo $ac_n "(cached) $ac_c" 1>&6
  617. else
  618.   echo 'void f(){}' > conftest.c
  619. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  620.   ac_cv_prog_gcc_g=yes
  621. else
  622.   ac_cv_prog_gcc_g=no
  623. fi
  624. rm -f conftest*
  625.  
  626. fi
  627.  
  628. echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  629.     if test $ac_cv_prog_gcc_g = yes; then
  630.       CFLAGS="-g -O"
  631.     else
  632.       CFLAGS="-O"
  633.     fi
  634.   fi
  635. else
  636.   GCC=
  637.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  638. fi
  639.  
  640. ac_aux_dir=
  641. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  642.   if test -f $ac_dir/install-sh; then
  643.     ac_aux_dir=$ac_dir
  644.     ac_install_sh="$ac_aux_dir/install-sh -c"
  645.     break
  646.   elif test -f $ac_dir/install.sh; then
  647.     ac_aux_dir=$ac_dir
  648.     ac_install_sh="$ac_aux_dir/install.sh -c"
  649.     break
  650.   fi
  651. done
  652. if test -z "$ac_aux_dir"; then
  653.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  654. fi
  655. ac_config_guess=$ac_aux_dir/config.guess
  656. ac_config_sub=$ac_aux_dir/config.sub
  657. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  658.  
  659. # Find a good install program.  We prefer a C program (faster),
  660. # so one script is as good as another.  But avoid the broken or
  661. # incompatible versions:
  662. # SysV /etc/install, /usr/sbin/install
  663. # SunOS /usr/etc/install
  664. # IRIX /sbin/install
  665. # AIX /bin/install
  666. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  667. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  668. # ./install, which can be erroneously created by make from ./install.sh.
  669. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  670. if test -z "$INSTALL"; then
  671. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  672.   echo $ac_n "(cached) $ac_c" 1>&6
  673. else
  674.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  675.   for ac_dir in $PATH; do
  676.     # Account for people who put trailing slashes in PATH elements.
  677.     case "$ac_dir/" in
  678.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  679.     *)
  680.       # OSF1 and SCO ODT 3.0 have their own names for install.
  681.       for ac_prog in ginstall installbsd scoinst install; do
  682.         if test -f $ac_dir/$ac_prog; then
  683.       if test $ac_prog = install &&
  684.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  685.         # AIX install.  It has an incompatible calling convention.
  686.         # OSF/1 installbsd also uses dspmsg, but is usable.
  687.         :
  688.       else
  689.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  690.         break 2
  691.       fi
  692.     fi
  693.       done
  694.       ;;
  695.     esac
  696.   done
  697.   IFS="$ac_save_ifs"
  698.  
  699. fi
  700.   if test "${ac_cv_path_install+set}" = set; then
  701.     INSTALL="$ac_cv_path_install"
  702.   else
  703.     # As a last resort, use the slow shell script.  We don't cache a
  704.     # path for INSTALL within a source directory, because that will
  705.     # break other packages using the cache if that directory is
  706.     # removed, or if the path is relative.
  707.     INSTALL="$ac_install_sh"
  708.   fi
  709. fi
  710. echo "$ac_t""$INSTALL" 1>&6
  711.  
  712. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  713. # It thinks the first close brace ends the variable substitution.
  714. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  715.  
  716. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  717.  
  718.  
  719.  
  720. # Extract the first word of "remsh", so it can be a program name with args.
  721. set dummy remsh; ac_word=$2
  722. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  723. if eval "test \"`echo '$''{'ac_cv_prog_HAVE_REMSH'+set}'`\" = set"; then
  724.   echo $ac_n "(cached) $ac_c" 1>&6
  725. else
  726.   if test -n "$HAVE_REMSH"; then
  727.   ac_cv_prog_HAVE_REMSH="$HAVE_REMSH" # Let the user override the test.
  728. else
  729.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  730.   for ac_dir in $PATH; do
  731.     test -z "$ac_dir" && ac_dir=.
  732.     if test -f $ac_dir/$ac_word; then
  733.       ac_cv_prog_HAVE_REMSH="1"
  734.       break
  735.     fi
  736.   done
  737.   IFS="$ac_save_ifs"
  738.   test -z "$ac_cv_prog_HAVE_REMSH" && ac_cv_prog_HAVE_REMSH="0"
  739. fi
  740. fi
  741. HAVE_REMSH="$ac_cv_prog_HAVE_REMSH"
  742. if test -n "$HAVE_REMSH"; then
  743.   echo "$ac_t""$HAVE_REMSH" 1>&6
  744. else
  745.   echo "$ac_t""no" 1>&6
  746. fi
  747.  
  748. cat >> confdefs.h <<EOF
  749. #define HAVE_REMSH $HAVE_REMSH
  750. EOF
  751.  
  752.  
  753. ac_header_dirent=no
  754. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  755. do
  756. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  757. echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  758. if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  759.   echo $ac_n "(cached) $ac_c" 1>&6
  760. else
  761.   cat > conftest.$ac_ext <<EOF
  762. #line 763 "configure"
  763. #include "confdefs.h"
  764. #include <sys/types.h>
  765. #include <$ac_hdr>
  766. int main() { return 0; }
  767. int t() {
  768. DIR *dirp = 0;
  769. ; return 0; }
  770. EOF
  771. if { (eval echo configure:772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  772.   rm -rf conftest*
  773.   eval "ac_cv_header_dirent_$ac_safe=yes"
  774. else
  775.   rm -rf conftest*
  776.   eval "ac_cv_header_dirent_$ac_safe=no"
  777. fi
  778. rm -f conftest*
  779.  
  780. fi
  781. if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  782.   echo "$ac_t""yes" 1>&6
  783.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdedfghijklmnopqrstuvwxyz./\055' 'ABCDEDFGHIJKLMNOPQRSTUVWXYZ___'`
  784.   cat >> confdefs.h <<EOF
  785. #define $ac_tr_hdr 1
  786. EOF
  787.  ac_header_dirent=$ac_hdr; break
  788. else
  789.   echo "$ac_t""no" 1>&6
  790. fi
  791. done
  792. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  793. if test $ac_header_dirent = dirent.h; then
  794. echo $ac_n "checking for -ldir""... $ac_c" 1>&6
  795. ac_lib_var=`echo dir_opendir | tr '.-/+' '___p'`
  796. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  797.   echo $ac_n "(cached) $ac_c" 1>&6
  798. else
  799.   ac_save_LIBS="$LIBS"
  800. LIBS="-ldir  $LIBS"
  801. cat > conftest.$ac_ext <<EOF
  802. #line 803 "configure"
  803. #include "confdefs.h"
  804. /* Override any gcc2 internal prototype to avoid an error.  */
  805. char opendir();
  806.  
  807. int main() { return 0; }
  808. int t() {
  809. opendir()
  810. ; return 0; }
  811. EOF
  812. if { (eval echo configure:813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  813.   rm -rf conftest*
  814.   eval "ac_cv_lib_$ac_lib_var=yes"
  815. else
  816.   rm -rf conftest*
  817.   eval "ac_cv_lib_$ac_lib_var=no"
  818. fi
  819. rm -f conftest*
  820. LIBS="$ac_save_LIBS"
  821.  
  822. fi
  823. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  824.   echo "$ac_t""yes" 1>&6
  825.   LIBS="$LIBS -ldir"
  826. else
  827.   echo "$ac_t""no" 1>&6
  828. fi
  829.  
  830. else
  831. echo $ac_n "checking for -lx""... $ac_c" 1>&6
  832. ac_lib_var=`echo x_opendir | tr '.-/+' '___p'`
  833. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  834.   echo $ac_n "(cached) $ac_c" 1>&6
  835. else
  836.   ac_save_LIBS="$LIBS"
  837. LIBS="-lx  $LIBS"
  838. cat > conftest.$ac_ext <<EOF
  839. #line 840 "configure"
  840. #include "confdefs.h"
  841. /* Override any gcc2 internal prototype to avoid an error.  */
  842. char opendir();
  843.  
  844. int main() { return 0; }
  845. int t() {
  846. opendir()
  847. ; return 0; }
  848. EOF
  849. if { (eval echo configure:850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  850.   rm -rf conftest*
  851.   eval "ac_cv_lib_$ac_lib_var=yes"
  852. else
  853.   rm -rf conftest*
  854.   eval "ac_cv_lib_$ac_lib_var=no"
  855. fi
  856. rm -f conftest*
  857. LIBS="$ac_save_LIBS"
  858.  
  859. fi
  860. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  861.   echo "$ac_t""yes" 1>&6
  862.   LIBS="$LIBS -lx"
  863. else
  864.   echo "$ac_t""no" 1>&6
  865. fi
  866.  
  867. fi
  868.  
  869. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  870. if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  871.   echo $ac_n "(cached) $ac_c" 1>&6
  872. else
  873.   cat > conftest.$ac_ext <<EOF
  874. #line 875 "configure"
  875. #include "confdefs.h"
  876. #include <sys/types.h>
  877. #include <sys/time.h>
  878. #include <time.h>
  879. int main() { return 0; }
  880. int t() {
  881. struct tm *tp;
  882. ; return 0; }
  883. EOF
  884. if { (eval echo configure:885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  885.   rm -rf conftest*
  886.   ac_cv_header_time=yes
  887. else
  888.   rm -rf conftest*
  889.   ac_cv_header_time=no
  890. fi
  891. rm -f conftest*
  892.  
  893. fi
  894.  
  895. echo "$ac_t""$ac_cv_header_time" 1>&6
  896. if test $ac_cv_header_time = yes; then
  897.   cat >> confdefs.h <<\EOF
  898. #define TIME_WITH_SYS_TIME 1
  899. EOF
  900.  
  901. fi
  902.  
  903. echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
  904. if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
  905.   echo $ac_n "(cached) $ac_c" 1>&6
  906. else
  907.   cat > conftest.$ac_ext <<EOF
  908. #line 909 "configure"
  909. #include "confdefs.h"
  910. #include <sys/types.h>
  911. #include <sys/wait.h>
  912. #ifndef WEXITSTATUS
  913. #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  914. #endif
  915. #ifndef WIFEXITED
  916. #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  917. #endif
  918. int main() { return 0; }
  919. int t() {
  920. int s;
  921. wait (&s);
  922. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  923. ; return 0; }
  924. EOF
  925. if { (eval echo configure:926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  926.   rm -rf conftest*
  927.   ac_cv_header_sys_wait_h=yes
  928. else
  929.   rm -rf conftest*
  930.   ac_cv_header_sys_wait_h=no
  931. fi
  932. rm -f conftest*
  933.  
  934. fi
  935.  
  936. echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
  937. if test $ac_cv_header_sys_wait_h = yes; then
  938.   cat >> confdefs.h <<\EOF
  939. #define HAVE_SYS_WAIT_H 1
  940. EOF
  941.  
  942. fi
  943.  
  944. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  945. # On Suns, sometimes $CPP names a directory.
  946. if test -n "$CPP" && test -d "$CPP"; then
  947.   CPP=
  948. fi
  949. if test -z "$CPP"; then
  950. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  951.   echo $ac_n "(cached) $ac_c" 1>&6
  952. else
  953.     # This must be in double quotes, not single quotes, because CPP may get
  954.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  955.   CPP="${CC-cc} -E"
  956.   # On the NeXT, cc -E runs the code through the compiler's parser,
  957.   # not just through cpp.
  958.   cat > conftest.$ac_ext <<EOF
  959. #line 960 "configure"
  960. #include "confdefs.h"
  961. #include <assert.h>
  962. Syntax Error
  963. EOF
  964. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  965. { (eval echo configure:966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  966. ac_err=`grep -v '^ *+' conftest.out`
  967. if test -z "$ac_err"; then
  968.   :
  969. else
  970.   echo "$ac_err" >&5
  971.   rm -rf conftest*
  972.   CPP="${CC-cc} -E -traditional-cpp"
  973.   cat > conftest.$ac_ext <<EOF
  974. #line 975 "configure"
  975. #include "confdefs.h"
  976. #include <assert.h>
  977. Syntax Error
  978. EOF
  979. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  980. { (eval echo configure:981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  981. ac_err=`grep -v '^ *+' conftest.out`
  982. if test -z "$ac_err"; then
  983.   :
  984. else
  985.   echo "$ac_err" >&5
  986.   rm -rf conftest*
  987.   CPP=/lib/cpp
  988. fi
  989. rm -f conftest*
  990. fi
  991. rm -f conftest*
  992.   ac_cv_prog_CPP="$CPP"
  993. fi
  994.   CPP="$ac_cv_prog_CPP"
  995. else
  996.   ac_cv_prog_CPP="$CPP"
  997. fi
  998. echo "$ac_t""$CPP" 1>&6
  999.  
  1000. for ac_hdr in sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h unistd.h utime.h grp.h
  1001. do
  1002. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1003. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1004. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1005.   echo $ac_n "(cached) $ac_c" 1>&6
  1006. else
  1007.   cat > conftest.$ac_ext <<EOF
  1008. #line 1009 "configure"
  1009. #include "confdefs.h"
  1010. #include <$ac_hdr>
  1011. EOF
  1012. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1013. { (eval echo configure:1014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1014. ac_err=`grep -v '^ *+' conftest.out`
  1015. if test -z "$ac_err"; then
  1016.   rm -rf conftest*
  1017.   eval "ac_cv_header_$ac_safe=yes"
  1018. else
  1019.   echo "$ac_err" >&5
  1020.   rm -rf conftest*
  1021.   eval "ac_cv_header_$ac_safe=no"
  1022. fi
  1023. rm -f conftest*
  1024. fi
  1025. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1026.   echo "$ac_t""yes" 1>&6
  1027.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1028.   cat >> confdefs.h <<EOF
  1029. #define $ac_tr_hdr 1
  1030. EOF
  1031.  
  1032. else
  1033.   echo "$ac_t""no" 1>&6
  1034. fi
  1035. done
  1036.  
  1037. for ac_hdr in compat.h sys/param.h ctype.h sys/wait.h sys/ioctl.h
  1038. do
  1039. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1040. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1041. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1042.   echo $ac_n "(cached) $ac_c" 1>&6
  1043. else
  1044.   cat > conftest.$ac_ext <<EOF
  1045. #line 1046 "configure"
  1046. #include "confdefs.h"
  1047. #include <$ac_hdr>
  1048. EOF
  1049. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1050. { (eval echo configure:1051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1051. ac_err=`grep -v '^ *+' conftest.out`
  1052. if test -z "$ac_err"; then
  1053.   rm -rf conftest*
  1054.   eval "ac_cv_header_$ac_safe=yes"
  1055. else
  1056.   echo "$ac_err" >&5
  1057.   rm -rf conftest*
  1058.   eval "ac_cv_header_$ac_safe=no"
  1059. fi
  1060. rm -f conftest*
  1061. fi
  1062. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1063.   echo "$ac_t""yes" 1>&6
  1064.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1065.   cat >> confdefs.h <<EOF
  1066. #define $ac_tr_hdr 1
  1067. EOF
  1068.  
  1069. else
  1070.   echo "$ac_t""no" 1>&6
  1071. fi
  1072. done
  1073.  
  1074. for ac_hdr in sys/filio.h string.h stdlib.h
  1075. do
  1076. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1077. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1078. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1079.   echo $ac_n "(cached) $ac_c" 1>&6
  1080. else
  1081.   cat > conftest.$ac_ext <<EOF
  1082. #line 1083 "configure"
  1083. #include "confdefs.h"
  1084. #include <$ac_hdr>
  1085. EOF
  1086. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1087. { (eval echo configure:1088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1088. ac_err=`grep -v '^ *+' conftest.out`
  1089. if test -z "$ac_err"; then
  1090.   rm -rf conftest*
  1091.   eval "ac_cv_header_$ac_safe=yes"
  1092. else
  1093.   echo "$ac_err" >&5
  1094.   rm -rf conftest*
  1095.   eval "ac_cv_header_$ac_safe=no"
  1096. fi
  1097. rm -f conftest*
  1098. fi
  1099. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1100.   echo "$ac_t""yes" 1>&6
  1101.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1102.   cat >> confdefs.h <<EOF
  1103. #define $ac_tr_hdr 1
  1104. EOF
  1105.  
  1106. else
  1107.   echo "$ac_t""no" 1>&6
  1108. fi
  1109. done
  1110.  
  1111.  
  1112. # If we cannot run a trivial program, we must be cross compiling.
  1113. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  1114. if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  1115.   echo $ac_n "(cached) $ac_c" 1>&6
  1116. else
  1117.   if test "$cross_compiling" = yes; then
  1118.   ac_cv_c_cross=yes
  1119. else
  1120. cat > conftest.$ac_ext <<EOF
  1121. #line 1122 "configure"
  1122. #include "confdefs.h"
  1123. main(){return(0);}
  1124. EOF
  1125. { (eval echo configure:1126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1126. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1127.   ac_cv_c_cross=no
  1128. else
  1129.   ac_cv_c_cross=yes
  1130. fi
  1131. fi
  1132. rm -fr conftest*
  1133. fi
  1134.  
  1135. echo "$ac_t""$ac_cv_c_cross" 1>&6
  1136. cross_compiling=$ac_cv_c_cross
  1137.  
  1138. echo $ac_n "checking size of int""... $ac_c" 1>&6
  1139. if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
  1140.   echo $ac_n "(cached) $ac_c" 1>&6
  1141. else
  1142.   if test "$cross_compiling" = yes; then
  1143.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1144. else
  1145. cat > conftest.$ac_ext <<EOF
  1146. #line 1147 "configure"
  1147. #include "confdefs.h"
  1148. #include <stdio.h>
  1149. main()
  1150. {
  1151.   FILE *f=fopen("conftestval", "w");
  1152.   if (!f) exit(1);
  1153.   fprintf(f, "%d\n", sizeof(int));
  1154.   exit(0);
  1155. }
  1156. EOF
  1157. { (eval echo configure:1158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1158. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1159.   ac_cv_sizeof_int=`cat conftestval`
  1160. else
  1161.   ac_cv_sizeof_int=0
  1162. fi
  1163. fi
  1164. rm -fr conftest*
  1165. fi
  1166. echo "$ac_t""$ac_cv_sizeof_int" 1>&6
  1167. cat >> confdefs.h <<EOF
  1168. #define SIZEOF_INT $ac_cv_sizeof_int
  1169. EOF
  1170.  
  1171.  
  1172. echo $ac_n "checking size of long""... $ac_c" 1>&6
  1173. if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
  1174.   echo $ac_n "(cached) $ac_c" 1>&6
  1175. else
  1176.   if test "$cross_compiling" = yes; then
  1177.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1178. else
  1179. cat > conftest.$ac_ext <<EOF
  1180. #line 1181 "configure"
  1181. #include "confdefs.h"
  1182. #include <stdio.h>
  1183. main()
  1184. {
  1185.   FILE *f=fopen("conftestval", "w");
  1186.   if (!f) exit(1);
  1187.   fprintf(f, "%d\n", sizeof(long));
  1188.   exit(0);
  1189. }
  1190. EOF
  1191. { (eval echo configure:1192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1192. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1193.   ac_cv_sizeof_long=`cat conftestval`
  1194. else
  1195.   ac_cv_sizeof_long=0
  1196. fi
  1197. fi
  1198. rm -fr conftest*
  1199. fi
  1200. echo "$ac_t""$ac_cv_sizeof_long" 1>&6
  1201. cat >> confdefs.h <<EOF
  1202. #define SIZEOF_LONG $ac_cv_sizeof_long
  1203. EOF
  1204.  
  1205.  
  1206. echo $ac_n "checking size of short""... $ac_c" 1>&6
  1207. if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
  1208.   echo $ac_n "(cached) $ac_c" 1>&6
  1209. else
  1210.   if test "$cross_compiling" = yes; then
  1211.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1212. else
  1213. cat > conftest.$ac_ext <<EOF
  1214. #line 1215 "configure"
  1215. #include "confdefs.h"
  1216. #include <stdio.h>
  1217. main()
  1218. {
  1219.   FILE *f=fopen("conftestval", "w");
  1220.   if (!f) exit(1);
  1221.   fprintf(f, "%d\n", sizeof(short));
  1222.   exit(0);
  1223. }
  1224. EOF
  1225. { (eval echo configure:1226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1226. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1227.   ac_cv_sizeof_short=`cat conftestval`
  1228. else
  1229.   ac_cv_sizeof_short=0
  1230. fi
  1231. fi
  1232. rm -fr conftest*
  1233. fi
  1234. echo "$ac_t""$ac_cv_sizeof_short" 1>&6
  1235. cat >> confdefs.h <<EOF
  1236. #define SIZEOF_SHORT $ac_cv_sizeof_short
  1237. EOF
  1238.  
  1239.  
  1240.  
  1241. echo $ac_n "checking for inline""... $ac_c" 1>&6
  1242. if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  1243.   echo $ac_n "(cached) $ac_c" 1>&6
  1244. else
  1245.   ac_cv_c_inline=no
  1246. for ac_kw in inline __inline__ __inline; do
  1247.   cat > conftest.$ac_ext <<EOF
  1248. #line 1249 "configure"
  1249. #include "confdefs.h"
  1250.  
  1251. int main() { return 0; }
  1252. int t() {
  1253. } $ac_kw foo() {
  1254. ; return 0; }
  1255. EOF
  1256. if { (eval echo configure:1257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1257.   rm -rf conftest*
  1258.   ac_cv_c_inline=$ac_kw; break
  1259. fi
  1260. rm -f conftest*
  1261.  
  1262. done
  1263.  
  1264. fi
  1265.  
  1266. echo "$ac_t""$ac_cv_c_inline" 1>&6
  1267. case "$ac_cv_c_inline" in
  1268.   inline | yes) ;;
  1269.   no) cat >> confdefs.h <<\EOF
  1270. #define inline 
  1271. EOF
  1272.  ;;
  1273.   *)  cat >> confdefs.h <<EOF
  1274. #define inline $ac_cv_c_inline
  1275. EOF
  1276.  ;;
  1277. esac
  1278.  
  1279.  
  1280. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  1281. if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  1282.   echo $ac_n "(cached) $ac_c" 1>&6
  1283. else
  1284.   cat > conftest.$ac_ext <<EOF
  1285. #line 1286 "configure"
  1286. #include "confdefs.h"
  1287. #include <sys/types.h>
  1288. #include <signal.h>
  1289. #ifdef signal
  1290. #undef signal
  1291. #endif
  1292. #ifdef __cplusplus
  1293. extern "C" void (*signal (int, void (*)(int)))(int);
  1294. #else
  1295. void (*signal ()) ();
  1296. #endif
  1297.  
  1298. int main() { return 0; }
  1299. int t() {
  1300. int i;
  1301. ; return 0; }
  1302. EOF
  1303. if { (eval echo configure:1304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1304.   rm -rf conftest*
  1305.   ac_cv_type_signal=void
  1306. else
  1307.   rm -rf conftest*
  1308.   ac_cv_type_signal=int
  1309. fi
  1310. rm -f conftest*
  1311.  
  1312. fi
  1313.  
  1314. echo "$ac_t""$ac_cv_type_signal" 1>&6
  1315. cat >> confdefs.h <<EOF
  1316. #define RETSIGTYPE $ac_cv_type_signal
  1317. EOF
  1318.  
  1319.  
  1320. echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
  1321. if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
  1322.   echo $ac_n "(cached) $ac_c" 1>&6
  1323. else
  1324.   cat > conftest.$ac_ext <<EOF
  1325. #line 1326 "configure"
  1326. #include "confdefs.h"
  1327. #include <sys/types.h>
  1328. EOF
  1329. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1330.   egrep "uid_t" >/dev/null 2>&1; then
  1331.   rm -rf conftest*
  1332.   ac_cv_type_uid_t=yes
  1333. else
  1334.   rm -rf conftest*
  1335.   ac_cv_type_uid_t=no
  1336. fi
  1337. rm -f conftest*
  1338.  
  1339. fi
  1340.  
  1341. echo "$ac_t""$ac_cv_type_uid_t" 1>&6
  1342. if test $ac_cv_type_uid_t = no; then
  1343.   cat >> confdefs.h <<\EOF
  1344. #define uid_t int
  1345. EOF
  1346.  
  1347.   cat >> confdefs.h <<\EOF
  1348. #define gid_t int
  1349. EOF
  1350.  
  1351. fi
  1352.  
  1353. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1354. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1355.   echo $ac_n "(cached) $ac_c" 1>&6
  1356. else
  1357.   cat > conftest.$ac_ext <<EOF
  1358. #line 1359 "configure"
  1359. #include "confdefs.h"
  1360. #include <stdlib.h>
  1361. #include <stdarg.h>
  1362. #include <string.h>
  1363. #include <float.h>
  1364. EOF
  1365. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1366. { (eval echo configure:1367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1367. ac_err=`grep -v '^ *+' conftest.out`
  1368. if test -z "$ac_err"; then
  1369.   rm -rf conftest*
  1370.   ac_cv_header_stdc=yes
  1371. else
  1372.   echo "$ac_err" >&5
  1373.   rm -rf conftest*
  1374.   ac_cv_header_stdc=no
  1375. fi
  1376. rm -f conftest*
  1377.  
  1378. if test $ac_cv_header_stdc = yes; then
  1379.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1380. cat > conftest.$ac_ext <<EOF
  1381. #line 1382 "configure"
  1382. #include "confdefs.h"
  1383. #include <string.h>
  1384. EOF
  1385. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1386.   egrep "memchr" >/dev/null 2>&1; then
  1387.   :
  1388. else
  1389.   rm -rf conftest*
  1390.   ac_cv_header_stdc=no
  1391. fi
  1392. rm -f conftest*
  1393.  
  1394. fi
  1395.  
  1396. if test $ac_cv_header_stdc = yes; then
  1397.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1398. cat > conftest.$ac_ext <<EOF
  1399. #line 1400 "configure"
  1400. #include "confdefs.h"
  1401. #include <stdlib.h>
  1402. EOF
  1403. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1404.   egrep "free" >/dev/null 2>&1; then
  1405.   :
  1406. else
  1407.   rm -rf conftest*
  1408.   ac_cv_header_stdc=no
  1409. fi
  1410. rm -f conftest*
  1411.  
  1412. fi
  1413.  
  1414. if test $ac_cv_header_stdc = yes; then
  1415.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1416. if test "$cross_compiling" = yes; then
  1417.   :
  1418. else
  1419. cat > conftest.$ac_ext <<EOF
  1420. #line 1421 "configure"
  1421. #include "confdefs.h"
  1422. #include <ctype.h>
  1423. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1424. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1425. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1426. int main () { int i; for (i = 0; i < 256; i++)
  1427. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1428. exit (0); }
  1429.  
  1430. EOF
  1431. { (eval echo configure:1432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1432. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1433.   :
  1434. else
  1435.   ac_cv_header_stdc=no
  1436. fi
  1437. fi
  1438. rm -fr conftest*
  1439. fi
  1440. fi
  1441.  
  1442. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1443. if test $ac_cv_header_stdc = yes; then
  1444.   cat >> confdefs.h <<\EOF
  1445. #define STDC_HEADERS 1
  1446. EOF
  1447.  
  1448. fi
  1449.  
  1450. echo $ac_n "checking for mode_t""... $ac_c" 1>&6
  1451. if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
  1452.   echo $ac_n "(cached) $ac_c" 1>&6
  1453. else
  1454.   cat > conftest.$ac_ext <<EOF
  1455. #line 1456 "configure"
  1456. #include "confdefs.h"
  1457. #include <sys/types.h>
  1458. #if STDC_HEADERS
  1459. #include <stdlib.h>
  1460. #endif
  1461. EOF
  1462. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1463.   egrep "mode_t" >/dev/null 2>&1; then
  1464.   rm -rf conftest*
  1465.   ac_cv_type_mode_t=yes
  1466. else
  1467.   rm -rf conftest*
  1468.   ac_cv_type_mode_t=no
  1469. fi
  1470. rm -f conftest*
  1471.  
  1472. fi
  1473. echo "$ac_t""$ac_cv_type_mode_t" 1>&6
  1474. if test $ac_cv_type_mode_t = no; then
  1475.   cat >> confdefs.h <<\EOF
  1476. #define mode_t int
  1477. EOF
  1478.  
  1479. fi
  1480.  
  1481. echo $ac_n "checking for off_t""... $ac_c" 1>&6
  1482. if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
  1483.   echo $ac_n "(cached) $ac_c" 1>&6
  1484. else
  1485.   cat > conftest.$ac_ext <<EOF
  1486. #line 1487 "configure"
  1487. #include "confdefs.h"
  1488. #include <sys/types.h>
  1489. #if STDC_HEADERS
  1490. #include <stdlib.h>
  1491. #endif
  1492. EOF
  1493. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1494.   egrep "off_t" >/dev/null 2>&1; then
  1495.   rm -rf conftest*
  1496.   ac_cv_type_off_t=yes
  1497. else
  1498.   rm -rf conftest*
  1499.   ac_cv_type_off_t=no
  1500. fi
  1501. rm -f conftest*
  1502.  
  1503. fi
  1504. echo "$ac_t""$ac_cv_type_off_t" 1>&6
  1505. if test $ac_cv_type_off_t = no; then
  1506.   cat >> confdefs.h <<\EOF
  1507. #define off_t long
  1508. EOF
  1509.  
  1510. fi
  1511.  
  1512. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  1513. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  1514.   echo $ac_n "(cached) $ac_c" 1>&6
  1515. else
  1516.   cat > conftest.$ac_ext <<EOF
  1517. #line 1518 "configure"
  1518. #include "confdefs.h"
  1519. #include <sys/types.h>
  1520. #if STDC_HEADERS
  1521. #include <stdlib.h>
  1522. #endif
  1523. EOF
  1524. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1525.   egrep "size_t" >/dev/null 2>&1; then
  1526.   rm -rf conftest*
  1527.   ac_cv_type_size_t=yes
  1528. else
  1529.   rm -rf conftest*
  1530.   ac_cv_type_size_t=no
  1531. fi
  1532. rm -f conftest*
  1533.  
  1534. fi
  1535. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  1536. if test $ac_cv_type_size_t = no; then
  1537.   cat >> confdefs.h <<\EOF
  1538. #define size_t unsigned
  1539. EOF
  1540.  
  1541. fi
  1542.  
  1543. echo $ac_n "checking for pid_t""... $ac_c" 1>&6
  1544. if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
  1545.   echo $ac_n "(cached) $ac_c" 1>&6
  1546. else
  1547.   cat > conftest.$ac_ext <<EOF
  1548. #line 1549 "configure"
  1549. #include "confdefs.h"
  1550. #include <sys/types.h>
  1551. #if STDC_HEADERS
  1552. #include <stdlib.h>
  1553. #endif
  1554. EOF
  1555. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1556.   egrep "pid_t" >/dev/null 2>&1; then
  1557.   rm -rf conftest*
  1558.   ac_cv_type_pid_t=yes
  1559. else
  1560.   rm -rf conftest*
  1561.   ac_cv_type_pid_t=no
  1562. fi
  1563. rm -f conftest*
  1564.  
  1565. fi
  1566. echo "$ac_t""$ac_cv_type_pid_t" 1>&6
  1567. if test $ac_cv_type_pid_t = no; then
  1568.   cat >> confdefs.h <<\EOF
  1569. #define pid_t int
  1570. EOF
  1571.  
  1572. fi
  1573.  
  1574. echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
  1575. if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
  1576.   echo $ac_n "(cached) $ac_c" 1>&6
  1577. else
  1578.   cat > conftest.$ac_ext <<EOF
  1579. #line 1580 "configure"
  1580. #include "confdefs.h"
  1581. #include <sys/types.h>
  1582. #include <sys/stat.h>
  1583. int main() { return 0; }
  1584. int t() {
  1585. struct stat s; s.st_rdev;
  1586. ; return 0; }
  1587. EOF
  1588. if { (eval echo configure:1589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1589.   rm -rf conftest*
  1590.   ac_cv_struct_st_rdev=yes
  1591. else
  1592.   rm -rf conftest*
  1593.   ac_cv_struct_st_rdev=no
  1594. fi
  1595. rm -f conftest*
  1596.  
  1597. fi
  1598.  
  1599. echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
  1600. if test $ac_cv_struct_st_rdev = yes; then
  1601.   cat >> confdefs.h <<\EOF
  1602. #define HAVE_ST_RDEV 1
  1603. EOF
  1604.  
  1605. fi
  1606.  
  1607. echo $ac_n "checking for ino_t""... $ac_c" 1>&6
  1608. if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
  1609.   echo $ac_n "(cached) $ac_c" 1>&6
  1610. else
  1611.   cat > conftest.$ac_ext <<EOF
  1612. #line 1613 "configure"
  1613. #include "confdefs.h"
  1614. #include <sys/types.h>
  1615. #if STDC_HEADERS
  1616. #include <stdlib.h>
  1617. #endif
  1618. EOF
  1619. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1620.   egrep "ino_t" >/dev/null 2>&1; then
  1621.   rm -rf conftest*
  1622.   ac_cv_type_ino_t=yes
  1623. else
  1624.   rm -rf conftest*
  1625.   ac_cv_type_ino_t=no
  1626. fi
  1627. rm -f conftest*
  1628.  
  1629. fi
  1630. echo "$ac_t""$ac_cv_type_ino_t" 1>&6
  1631. if test $ac_cv_type_ino_t = no; then
  1632.   cat >> confdefs.h <<\EOF
  1633. #define ino_t unsigned
  1634. EOF
  1635.  
  1636. fi
  1637.  
  1638.  
  1639. echo $ac_n "checking for errno in errno.h... $ac_c"
  1640. cat > conftest.$ac_ext <<EOF
  1641. #line 1642 "configure"
  1642. #include "confdefs.h"
  1643. #include <errno.h>
  1644. int main() { return 0; }
  1645. int t() {
  1646. int i = errno
  1647. ; return 0; }
  1648. EOF
  1649. if { (eval echo configure:1650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1650.   rm -rf conftest*
  1651.   echo yes; cat >> confdefs.h <<\EOF
  1652. #define HAVE_ERRNO_DECL 1
  1653. EOF
  1654.  
  1655. else
  1656.   rm -rf conftest*
  1657.   echo no
  1658. fi
  1659. rm -f conftest*
  1660.  
  1661.  
  1662. echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
  1663. if eval "test \"`echo '$''{'ac_cv_func_memcmp'+set}'`\" = set"; then
  1664.   echo $ac_n "(cached) $ac_c" 1>&6
  1665. else
  1666.   if test "$cross_compiling" = yes; then
  1667.   ac_cv_func_memcmp=no
  1668. else
  1669. cat > conftest.$ac_ext <<EOF
  1670. #line 1671 "configure"
  1671. #include "confdefs.h"
  1672.  
  1673. main()
  1674. {
  1675.   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  1676.   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
  1677. }
  1678.  
  1679. EOF
  1680. { (eval echo configure:1681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1681. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1682.   ac_cv_func_memcmp=yes
  1683. else
  1684.   ac_cv_func_memcmp=no
  1685. fi
  1686. fi
  1687. rm -fr conftest*
  1688. fi
  1689.  
  1690. echo "$ac_t""$ac_cv_func_memcmp" 1>&6
  1691. test $ac_cv_func_memcmp = no && LIBOBJS="$LIBOBJS memcmp.o"
  1692.  
  1693. for ac_func in valloc getpagesize
  1694. do
  1695. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1696. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1697.   echo $ac_n "(cached) $ac_c" 1>&6
  1698. else
  1699.   cat > conftest.$ac_ext <<EOF
  1700. #line 1701 "configure"
  1701. #include "confdefs.h"
  1702. /* System header to define __stub macros and hopefully few prototypes,
  1703.     which can conflict with char $ac_func(); below.  */
  1704. #include <assert.h>
  1705. /* Override any gcc2 internal prototype to avoid an error.  */
  1706. char $ac_func();
  1707.  
  1708. int main() { return 0; }
  1709. int t() {
  1710.  
  1711. /* The GNU C library defines this for functions which it implements
  1712.     to always fail with ENOSYS.  Some functions are actually named
  1713.     something starting with __ and the normal name is an alias.  */
  1714. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1715. choke me
  1716. #else
  1717. $ac_func();
  1718. #endif
  1719.  
  1720. ; return 0; }
  1721. EOF
  1722. if { (eval echo configure:1723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1723.   rm -rf conftest*
  1724.   eval "ac_cv_func_$ac_func=yes"
  1725. else
  1726.   rm -rf conftest*
  1727.   eval "ac_cv_func_$ac_func=no"
  1728. fi
  1729. rm -f conftest*
  1730.  
  1731. fi
  1732. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1733.   echo "$ac_t""yes" 1>&6
  1734.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1735.   cat >> confdefs.h <<EOF
  1736. #define $ac_tr_func 1
  1737. EOF
  1738.  
  1739. else
  1740.   echo "$ac_t""no" 1>&6
  1741. fi
  1742. done
  1743.  
  1744. echo $ac_n "checking for working mmap""... $ac_c" 1>&6
  1745. if eval "test \"`echo '$''{'ac_cv_func_mmap'+set}'`\" = set"; then
  1746.   echo $ac_n "(cached) $ac_c" 1>&6
  1747. else
  1748.   if test "$cross_compiling" = yes; then
  1749.   ac_cv_func_mmap=no
  1750. else
  1751. cat > conftest.$ac_ext <<EOF
  1752. #line 1753 "configure"
  1753. #include "confdefs.h"
  1754.  
  1755. /* Thanks to Mike Haertel and Jim Avera for this test. */
  1756. #include <sys/types.h>
  1757. #include <fcntl.h>
  1758. #include <sys/mman.h>
  1759.  
  1760. #ifndef HAVE_GETPAGESIZE
  1761. # include <sys/param.h>
  1762. # ifdef EXEC_PAGESIZE
  1763. #  define getpagesize() EXEC_PAGESIZE
  1764. # else
  1765. #  ifdef NBPG
  1766. #   define getpagesize() NBPG * CLSIZE
  1767. #   ifndef CLSIZE
  1768. #    define CLSIZE 1
  1769. #   endif
  1770. #  else
  1771. #   ifdef NBPC
  1772. #    define getpagesize() NBPC
  1773. #   else
  1774. #    define getpagesize() PAGESIZE /* SVR4 */
  1775. #   endif
  1776. #  endif
  1777. # endif
  1778. #endif
  1779.  
  1780. #ifndef HAVE_VALLOC
  1781. # define valloc malloc
  1782. #endif
  1783.  
  1784. #ifdef __cplusplus
  1785. extern "C" { void *valloc(unsigned), *malloc(unsigned); }
  1786. #else
  1787. char *valloc(), *malloc();
  1788. #endif
  1789.  
  1790. int
  1791. main()
  1792. {
  1793.   char *buf1, *buf2, *buf3;
  1794.   int i = getpagesize(), j;
  1795.   int i2 = i * 2;
  1796.   int fd;
  1797.  
  1798.   buf1 = (char *)valloc(i2);
  1799.   buf2 = (char *)valloc(i);
  1800.   buf3 = (char *)malloc(i2);
  1801.   for (j = 0; j < i2; ++j)
  1802.     *(buf1 + j) = rand();
  1803.   fd = open("conftestmmap", O_CREAT | O_RDWR, 0666);
  1804.   write(fd, buf1, i2);
  1805.   mmap(buf2, i, PROT_READ | PROT_WRITE, MAP_FIXED | MAP_PRIVATE, fd, 0);
  1806.   for (j = 0; j < i; ++j)
  1807.     if (*(buf1 + j) != *(buf2 + j))
  1808.       exit(1);
  1809.   lseek(fd, (long)i, 0);
  1810.   read(fd, buf2, i); /* read into mapped memory -- file should not change */
  1811.   /* (it does in i386 SVR4.0 - Jim Avera, jima@netcom.com) */
  1812.   lseek(fd, (long)0, 0);
  1813.   read(fd, buf3, i2);
  1814.   for (j = 0; j < i2; ++j)
  1815.     if (*(buf1 + j) != *(buf3 + j))
  1816.       exit(1);
  1817.   exit(0);
  1818. }
  1819.  
  1820. EOF
  1821. { (eval echo configure:1822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1822. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1823.   ac_cv_func_mmap=yes
  1824. else
  1825.   ac_cv_func_mmap=no
  1826. fi
  1827. fi
  1828. rm -fr conftest*
  1829. fi
  1830.  
  1831. echo "$ac_t""$ac_cv_func_mmap" 1>&6
  1832. if test $ac_cv_func_mmap = yes; then
  1833.   cat >> confdefs.h <<\EOF
  1834. #define HAVE_MMAP 1
  1835. EOF
  1836.  
  1837. fi
  1838.  
  1839. echo $ac_n "checking whether utime accepts a null argument""... $ac_c" 1>&6
  1840. if eval "test \"`echo '$''{'ac_cv_func_utime_null'+set}'`\" = set"; then
  1841.   echo $ac_n "(cached) $ac_c" 1>&6
  1842. else
  1843.   rm -f conftestdata; > conftestdata
  1844. # Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
  1845. if test "$cross_compiling" = yes; then
  1846.   ac_cv_func_utime_null=no
  1847. else
  1848. cat > conftest.$ac_ext <<EOF
  1849. #line 1850 "configure"
  1850. #include "confdefs.h"
  1851. #include <sys/types.h>
  1852. #include <sys/stat.h>
  1853. main() {
  1854. struct stat s, t;
  1855. exit(!(stat ("conftestdata", &s) == 0 && utime("conftestdata", (long *)0) == 0
  1856. && stat("conftestdata", &t) == 0 && t.st_mtime >= s.st_mtime
  1857. && t.st_mtime - s.st_mtime < 120));
  1858. }
  1859. EOF
  1860. { (eval echo configure:1861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1861. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1862.   ac_cv_func_utime_null=yes
  1863. else
  1864.   ac_cv_func_utime_null=no
  1865. fi
  1866. fi
  1867. rm -fr conftest*
  1868. rm -f core core.* *.core
  1869. fi
  1870.  
  1871. echo "$ac_t""$ac_cv_func_utime_null" 1>&6
  1872. if test $ac_cv_func_utime_null = yes; then
  1873.   cat >> confdefs.h <<\EOF
  1874. #define HAVE_UTIME_NULL 1
  1875. EOF
  1876.  
  1877. fi
  1878.  
  1879. for ac_func in waitpid strtok pipe getcwd mkdir strdup strerror chown chmod mknod
  1880. do
  1881. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1882. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1883.   echo $ac_n "(cached) $ac_c" 1>&6
  1884. else
  1885.   cat > conftest.$ac_ext <<EOF
  1886. #line 1887 "configure"
  1887. #include "confdefs.h"
  1888. /* System header to define __stub macros and hopefully few prototypes,
  1889.     which can conflict with char $ac_func(); below.  */
  1890. #include <assert.h>
  1891. /* Override any gcc2 internal prototype to avoid an error.  */
  1892. char $ac_func();
  1893.  
  1894. int main() { return 0; }
  1895. int t() {
  1896.  
  1897. /* The GNU C library defines this for functions which it implements
  1898.     to always fail with ENOSYS.  Some functions are actually named
  1899.     something starting with __ and the normal name is an alias.  */
  1900. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1901. choke me
  1902. #else
  1903. $ac_func();
  1904. #endif
  1905.  
  1906. ; return 0; }
  1907. EOF
  1908. if { (eval echo configure:1909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1909.   rm -rf conftest*
  1910.   eval "ac_cv_func_$ac_func=yes"
  1911. else
  1912.   rm -rf conftest*
  1913.   eval "ac_cv_func_$ac_func=no"
  1914. fi
  1915. rm -f conftest*
  1916.  
  1917. fi
  1918. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1919.   echo "$ac_t""yes" 1>&6
  1920.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1921.   cat >> confdefs.h <<EOF
  1922. #define $ac_tr_func 1
  1923. EOF
  1924.  
  1925. else
  1926.   echo "$ac_t""no" 1>&6
  1927. fi
  1928. done
  1929.  
  1930. for ac_func in fchmod fstat strchr bcopy bzero readlink link utime utimes
  1931. do
  1932. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1933. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1934.   echo $ac_n "(cached) $ac_c" 1>&6
  1935. else
  1936.   cat > conftest.$ac_ext <<EOF
  1937. #line 1938 "configure"
  1938. #include "confdefs.h"
  1939. /* System header to define __stub macros and hopefully few prototypes,
  1940.     which can conflict with char $ac_func(); below.  */
  1941. #include <assert.h>
  1942. /* Override any gcc2 internal prototype to avoid an error.  */
  1943. char $ac_func();
  1944.  
  1945. int main() { return 0; }
  1946. int t() {
  1947.  
  1948. /* The GNU C library defines this for functions which it implements
  1949.     to always fail with ENOSYS.  Some functions are actually named
  1950.     something starting with __ and the normal name is an alias.  */
  1951. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1952. choke me
  1953. #else
  1954. $ac_func();
  1955. #endif
  1956.  
  1957. ; return 0; }
  1958. EOF
  1959. if { (eval echo configure:1960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1960.   rm -rf conftest*
  1961.   eval "ac_cv_func_$ac_func=yes"
  1962. else
  1963.   rm -rf conftest*
  1964.   eval "ac_cv_func_$ac_func=no"
  1965. fi
  1966. rm -f conftest*
  1967.  
  1968. fi
  1969. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1970.   echo "$ac_t""yes" 1>&6
  1971.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1972.   cat >> confdefs.h <<EOF
  1973. #define $ac_tr_func 1
  1974. EOF
  1975.  
  1976. else
  1977.   echo "$ac_t""no" 1>&6
  1978. fi
  1979. done
  1980.  
  1981. for ac_func in memmove getopt_long lchown
  1982. do
  1983. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1984. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1985.   echo $ac_n "(cached) $ac_c" 1>&6
  1986. else
  1987.   cat > conftest.$ac_ext <<EOF
  1988. #line 1989 "configure"
  1989. #include "confdefs.h"
  1990. /* System header to define __stub macros and hopefully few prototypes,
  1991.     which can conflict with char $ac_func(); below.  */
  1992. #include <assert.h>
  1993. /* Override any gcc2 internal prototype to avoid an error.  */
  1994. char $ac_func();
  1995.  
  1996. int main() { return 0; }
  1997. int t() {
  1998.  
  1999. /* The GNU C library defines this for functions which it implements
  2000.     to always fail with ENOSYS.  Some functions are actually named
  2001.     something starting with __ and the normal name is an alias.  */
  2002. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2003. choke me
  2004. #else
  2005. $ac_func();
  2006. #endif
  2007.  
  2008. ; return 0; }
  2009. EOF
  2010. if { (eval echo configure:2011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2011.   rm -rf conftest*
  2012.   eval "ac_cv_func_$ac_func=yes"
  2013. else
  2014.   rm -rf conftest*
  2015.   eval "ac_cv_func_$ac_func=no"
  2016. fi
  2017. rm -f conftest*
  2018.  
  2019. fi
  2020. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2021.   echo "$ac_t""yes" 1>&6
  2022.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2023.   cat >> confdefs.h <<EOF
  2024. #define $ac_tr_func 1
  2025. EOF
  2026.  
  2027. else
  2028.   echo "$ac_t""no" 1>&6
  2029. fi
  2030. done
  2031.  
  2032.  
  2033. echo $ac_n "checking for working fnmatch... $ac_c"
  2034. if test "$cross_compiling" = yes; then
  2035.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  2036. else
  2037. cat > conftest.$ac_ext <<EOF
  2038. #line 2039 "configure"
  2039. #include "confdefs.h"
  2040. #include <fnmatch.h>
  2041. main() { exit(fnmatch("*.o", "x.o", 0) == 0? 0: 1); }
  2042. EOF
  2043. { (eval echo configure:2044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2044. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2045.   echo yes;cat >> confdefs.h <<\EOF
  2046. #define HAVE_FNMATCH 1
  2047. EOF
  2048.  
  2049. else
  2050.   echo no
  2051. fi
  2052. fi
  2053. rm -fr conftest*
  2054.  
  2055. trap '' 1 2 15
  2056. cat > confcache <<\EOF
  2057. # This file is a shell script that caches the results of configure
  2058. # tests run on this system so they can be shared between configure
  2059. # scripts and configure runs.  It is not useful on other systems.
  2060. # If it contains results you don't want to keep, you may remove or edit it.
  2061. #
  2062. # By default, configure uses ./config.cache as the cache file,
  2063. # creating it if it does not exist already.  You can give configure
  2064. # the --cache-file=FILE option to use a different cache file; that is
  2065. # what configure does when it calls configure scripts in
  2066. # subdirectories, so they share the cache.
  2067. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  2068. # config.status only pays attention to the cache file if you give it the
  2069. # --recheck option to rerun configure.
  2070. #
  2071. EOF
  2072. # Ultrix sh set writes to stderr and can't be redirected directly,
  2073. # and sets the high bit in the cache file unless we assign to the vars.
  2074. (set) 2>&1 |
  2075.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  2076.   >> confcache
  2077. if cmp -s $cache_file confcache; then
  2078.   :
  2079. else
  2080.   if test -w $cache_file; then
  2081.     echo "updating cache $cache_file"
  2082.     cat confcache > $cache_file
  2083.   else
  2084.     echo "not updating unwritable cache $cache_file"
  2085.   fi
  2086. fi
  2087. rm -f confcache
  2088.  
  2089. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  2090.  
  2091. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2092. # Let make expand exec_prefix.
  2093. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2094.  
  2095. # Any assignment to VPATH causes Sun make to only execute
  2096. # the first set of double-colon rules, so remove it if not needed.
  2097. # If there is a colon in the path, we need to keep it.
  2098. if test "x$srcdir" = x.; then
  2099.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  2100. fi
  2101.  
  2102. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  2103.  
  2104. DEFS=-DHAVE_CONFIG_H
  2105.  
  2106. # Without the "./", some shells look in PATH for config.status.
  2107. : ${CONFIG_STATUS=./config.status}
  2108.  
  2109. echo creating $CONFIG_STATUS
  2110. rm -f $CONFIG_STATUS
  2111. cat > $CONFIG_STATUS <<EOF
  2112. #! /bin/sh
  2113. # Generated automatically by configure.
  2114. # Run this file to recreate the current configuration.
  2115. # This directory was configured as follows,
  2116. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2117. #
  2118. # $0 $ac_configure_args
  2119. #
  2120. # Compiler output produced by configure, useful for debugging
  2121. # configure, is in ./config.log if it exists.
  2122.  
  2123. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  2124. for ac_option
  2125. do
  2126.   case "\$ac_option" in
  2127.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2128.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2129.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2130.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2131.     echo "$CONFIG_STATUS generated by autoconf version 2.9"
  2132.     exit 0 ;;
  2133.   -help | --help | --hel | --he | --h)
  2134.     echo "\$ac_cs_usage"; exit 0 ;;
  2135.   *) echo "\$ac_cs_usage"; exit 1 ;;
  2136.   esac
  2137. done
  2138.  
  2139. ac_given_srcdir=$srcdir
  2140. ac_given_INSTALL="$INSTALL"
  2141.  
  2142. trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  2143. EOF
  2144. cat >> $CONFIG_STATUS <<EOF
  2145.  
  2146. # Protect against being on the right side of a sed subst in config.status.
  2147. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  2148.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  2149. $ac_vpsub
  2150. $extrasub
  2151. s%@CFLAGS@%$CFLAGS%g
  2152. s%@CPPFLAGS@%$CPPFLAGS%g
  2153. s%@CXXFLAGS@%$CXXFLAGS%g
  2154. s%@DEFS@%$DEFS%g
  2155. s%@LDFLAGS@%$LDFLAGS%g
  2156. s%@LIBS@%$LIBS%g
  2157. s%@exec_prefix@%$exec_prefix%g
  2158. s%@prefix@%$prefix%g
  2159. s%@program_transform_name@%$program_transform_name%g
  2160. s%@bindir@%$bindir%g
  2161. s%@sbindir@%$sbindir%g
  2162. s%@libexecdir@%$libexecdir%g
  2163. s%@datadir@%$datadir%g
  2164. s%@sysconfdir@%$sysconfdir%g
  2165. s%@sharedstatedir@%$sharedstatedir%g
  2166. s%@localstatedir@%$localstatedir%g
  2167. s%@libdir@%$libdir%g
  2168. s%@includedir@%$includedir%g
  2169. s%@oldincludedir@%$oldincludedir%g
  2170. s%@infodir@%$infodir%g
  2171. s%@mandir@%$mandir%g
  2172. s%@CC@%$CC%g
  2173. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  2174. s%@INSTALL_DATA@%$INSTALL_DATA%g
  2175. s%@SHELL@%$SHELL%g
  2176. s%@HAVE_REMSH@%$HAVE_REMSH%g
  2177. s%@CPP@%$CPP%g
  2178. s%@LIBOBJS@%$LIBOBJS%g
  2179.  
  2180. CEOF
  2181. EOF
  2182. cat >> $CONFIG_STATUS <<EOF
  2183.  
  2184. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  2185. EOF
  2186. cat >> $CONFIG_STATUS <<\EOF
  2187. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  2188.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  2189.   case "$ac_file" in
  2190.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  2191.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2192.   *) ac_file_in="${ac_file}.in" ;;
  2193.   esac
  2194.  
  2195.   # Adjust relative srcdir, etc. for subdirectories.
  2196.  
  2197.   # Remove last slash and all that follows it.  Not all systems have dirname.
  2198.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2199.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2200.     # The file is in a subdirectory.
  2201.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  2202.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  2203.     # A "../" for each directory in $ac_dir_suffix.
  2204.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2205.   else
  2206.     ac_dir_suffix= ac_dots=
  2207.   fi
  2208.  
  2209.   case "$ac_given_srcdir" in
  2210.   .)  srcdir=.
  2211.       if test -z "$ac_dots"; then top_srcdir=.
  2212.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2213.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2214.   *) # Relative path.
  2215.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2216.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2217.   esac
  2218.  
  2219.   case "$ac_given_INSTALL" in
  2220.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  2221.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  2222.   esac
  2223.   echo creating "$ac_file"
  2224.   rm -f "$ac_file"
  2225.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  2226.   case "$ac_file" in
  2227.   *Makefile*) ac_comsub="1i\\
  2228. # $configure_input" ;;
  2229.   *) ac_comsub= ;;
  2230.   esac
  2231.   sed -e "$ac_comsub
  2232. s%@configure_input@%$configure_input%g
  2233. s%@srcdir@%$srcdir%g
  2234. s%@top_srcdir@%$top_srcdir%g
  2235. s%@INSTALL@%$INSTALL%g
  2236. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  2237. fi; done
  2238. rm -f conftest.subs
  2239.  
  2240. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  2241. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  2242. #
  2243. # ac_d sets the value in "#define NAME VALUE" lines.
  2244. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  2245. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  2246. ac_dC='\3'
  2247. ac_dD='%g'
  2248. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  2249. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2250. ac_uB='\([     ]\)%\1#\2define\3'
  2251. ac_uC=' '
  2252. ac_uD='\4%g'
  2253. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  2254. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2255. ac_eB='$%\1#\2define\3'
  2256. ac_eC=' '
  2257. ac_eD='%g'
  2258.  
  2259. CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
  2260. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  2261.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  2262.   case "$ac_file" in
  2263.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  2264.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2265.   *) ac_file_in="${ac_file}.in" ;;
  2266.   esac
  2267.  
  2268.   echo creating $ac_file
  2269.  
  2270.   rm -f conftest.frag conftest.in conftest.out
  2271.   cp $ac_given_srcdir/$ac_file_in conftest.in
  2272.  
  2273. EOF
  2274.  
  2275. # Transform confdefs.h into a sed script conftest.vals that substitutes
  2276. # the proper values into config.h.in to produce config.h.  And first:
  2277. # Protect against being on the right side of a sed subst in config.status.
  2278. # Protect against being in an unquoted here document in config.status.
  2279. rm -f conftest.vals
  2280. cat > conftest.hdr <<\EOF
  2281. s/[\\&%]/\\&/g
  2282. s%[\\$`]%\\&%g
  2283. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  2284. s%ac_d%ac_u%gp
  2285. s%ac_u%ac_e%gp
  2286. EOF
  2287. sed -n -f conftest.hdr confdefs.h > conftest.vals
  2288. rm -f conftest.hdr
  2289.  
  2290. # This sed command replaces #undef with comments.  This is necessary, for
  2291. # example, in the case of _POSIX_SOURCE, which is predefined and required
  2292. # on some systems where configure will not decide to define it.
  2293. cat >> conftest.vals <<\EOF
  2294. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  2295. EOF
  2296.  
  2297. # Break up conftest.vals because some shells have a limit on
  2298. # the size of here documents, and old seds have small limits too.
  2299. # Maximum number of lines to put in a single here document.
  2300. ac_max_here_lines=12
  2301.  
  2302. rm -f conftest.tail
  2303. while :
  2304. do
  2305.   ac_lines=`grep -c . conftest.vals`
  2306.   # grep -c gives empty output for an empty file on some AIX systems.
  2307.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  2308.   # Write a limited-size here document to conftest.frag.
  2309.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  2310.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  2311.   echo 'CEOF
  2312.   sed -f conftest.frag conftest.in > conftest.out
  2313.   rm -f conftest.in
  2314.   mv conftest.out conftest.in
  2315. ' >> $CONFIG_STATUS
  2316.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  2317.   rm -f conftest.vals
  2318.   mv conftest.tail conftest.vals
  2319. done
  2320. rm -f conftest.vals
  2321.  
  2322. cat >> $CONFIG_STATUS <<\EOF
  2323.   rm -f conftest.frag conftest.h
  2324.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  2325.   cat conftest.in >> conftest.h
  2326.   rm -f conftest.in
  2327.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  2328.     echo "$ac_file is unchanged"
  2329.     rm -f conftest.h
  2330.   else
  2331.     rm -f $ac_file
  2332.     mv conftest.h $ac_file
  2333.   fi
  2334. fi; done
  2335.  
  2336.  
  2337.  
  2338. exit 0
  2339. EOF
  2340. chmod +x $CONFIG_STATUS
  2341. rm -fr confdefs* $ac_clean_files
  2342. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  2343.  
  2344.