home *** CD-ROM | disk | FTP | other *** search
/ linuxmafia.com 2016 / linuxmafia.com.tar / linuxmafia.com / pub / linux / backup / star-1.3.1.tar.gz / star-1.3.1.tar / star-1.3.1 / conf / configure < prev    next >
Text File  |  2001-03-04  |  225KB  |  8,406 lines

  1. #! /bin/sh
  2.  
  3. # From configure.in Revision
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110. #serial 18
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126. # Guess values for system-dependent variables and create Makefiles.
  127. # Generated automatically using autoconf version 2.13 
  128. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  129. #
  130. # This configure script is free software; the Free Software Foundation
  131. # gives unlimited permission to copy, distribute and modify it.
  132.  
  133. # Defaults:
  134. ac_help=
  135. ac_default_prefix=/usr/local
  136. # Any additions from configure.in:
  137. ac_help="$ac_help
  138.   --disable-largefile     omit support for large files"
  139.  
  140. # Initialize some variables set by options.
  141. # The variables have the same names as the options, with
  142. # dashes changed to underlines.
  143. build=NONE
  144. cache_file=./config.cache
  145. exec_prefix=NONE
  146. host=NONE
  147. no_create=
  148. nonopt=NONE
  149. no_recursion=
  150. prefix=NONE
  151. program_prefix=NONE
  152. program_suffix=NONE
  153. program_transform_name=s,x,x,
  154. silent=
  155. site=
  156. srcdir=
  157. target=NONE
  158. verbose=
  159. x_includes=NONE
  160. x_libraries=NONE
  161. bindir='${exec_prefix}/bin'
  162. sbindir='${exec_prefix}/sbin'
  163. libexecdir='${exec_prefix}/libexec'
  164. datadir='${prefix}/share'
  165. sysconfdir='${prefix}/etc'
  166. sharedstatedir='${prefix}/com'
  167. localstatedir='${prefix}/var'
  168. libdir='${exec_prefix}/lib'
  169. includedir='${prefix}/include'
  170. oldincludedir='/usr/include'
  171. infodir='${prefix}/info'
  172. mandir='${prefix}/man'
  173.  
  174. # Initialize some other variables.
  175. subdirs=
  176. MFLAGS= MAKEFLAGS=
  177. SHELL=${CONFIG_SHELL-/bin/sh}
  178. # Maximum number of lines to put in a shell here document.
  179. ac_max_here_lines=12
  180.  
  181. ac_prev=
  182. for ac_option
  183. do
  184.  
  185.   # If the previous option needs an argument, assign it.
  186.   if test -n "$ac_prev"; then
  187.     eval "$ac_prev=\$ac_option"
  188.     ac_prev=
  189.     continue
  190.   fi
  191.  
  192.   case "$ac_option" in
  193.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  194.   *) ac_optarg= ;;
  195.   esac
  196.  
  197.   # Accept the important Cygnus configure options, so we can diagnose typos.
  198.  
  199.   case "$ac_option" in
  200.  
  201.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  202.     ac_prev=bindir ;;
  203.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  204.     bindir="$ac_optarg" ;;
  205.  
  206.   -build | --build | --buil | --bui | --bu)
  207.     ac_prev=build ;;
  208.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  209.     build="$ac_optarg" ;;
  210.  
  211.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  212.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  213.     ac_prev=cache_file ;;
  214.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  215.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  216.     cache_file="$ac_optarg" ;;
  217.  
  218.   -cc=* | --cc=* )
  219.     CC="$ac_optarg" ; echo using $CC as compiler ;;
  220.  
  221.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  222.     ac_prev=datadir ;;
  223.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  224.   | --da=*)
  225.     datadir="$ac_optarg" ;;
  226.  
  227.   -disable-* | --disable-*)
  228.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  229.     # Reject names that are not valid shell variable names.
  230.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  231.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  232.     fi
  233.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  234.     eval "enable_${ac_feature}=no" ;;
  235.  
  236.   -enable-* | --enable-*)
  237.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  238.     # Reject names that are not valid shell variable names.
  239.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  240.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  241.     fi
  242.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  243.     case "$ac_option" in
  244.       *=*) ;;
  245.       *) ac_optarg=yes ;;
  246.     esac
  247.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  248.  
  249.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  250.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  251.   | --exec | --exe | --ex)
  252.     ac_prev=exec_prefix ;;
  253.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  254.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  255.   | --exec=* | --exe=* | --ex=*)
  256.     exec_prefix="$ac_optarg" ;;
  257.  
  258.   -gas | --gas | --ga | --g)
  259.     # Obsolete; use --with-gas.
  260.     with_gas=yes ;;
  261.  
  262.   -help | --help | --hel | --he)
  263.     # Omit some internal or obsolete options to make the list less imposing.
  264.     # This message is too long to be a string in the A/UX 3.1 sh.
  265.     cat << EOF
  266. Usage: configure [options] [host]
  267. Options: [defaults in brackets after descriptions]
  268. Configuration:
  269.   --cache-file=FILE       cache test results in FILE
  270.   --help                  print this message
  271.   --no-create             do not create output files
  272.   --quiet, --silent       do not print \`checking...' messages
  273.   --version               print the version of autoconf that created configure
  274. Directory and file names:
  275.   --prefix=PREFIX         install architecture-independent files in PREFIX
  276.                           [$ac_default_prefix]
  277.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  278.                           [same as prefix]
  279.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  280.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  281.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  282.   --datadir=DIR           read-only architecture-independent data in DIR
  283.                           [PREFIX/share]
  284.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  285.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  286.                           [PREFIX/com]
  287.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  288.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  289.   --includedir=DIR        C header files in DIR [PREFIX/include]
  290.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  291.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  292.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  293.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  294.   --program-prefix=PREFIX prepend PREFIX to installed program names
  295.   --program-suffix=SUFFIX append SUFFIX to installed program names
  296.   --program-transform-name=PROGRAM
  297.                           run sed PROGRAM on installed program names
  298. EOF
  299.     cat << EOF
  300. Host type:
  301.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  302.   --host=HOST             configure for HOST [guessed]
  303.   --target=TARGET         configure for TARGET [TARGET=HOST]
  304. Features and packages:
  305.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  306.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  307.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  308.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  309.   --x-includes=DIR        X include files are in DIR
  310.   --x-libraries=DIR       X library files are in DIR
  311. EOF
  312.     if test -n "$ac_help"; then
  313.       echo "--enable and --with options recognized:$ac_help"
  314.     fi
  315.     exit 0 ;;
  316.  
  317.   -host | --host | --hos | --ho)
  318.     ac_prev=host ;;
  319.   -host=* | --host=* | --hos=* | --ho=*)
  320.     host="$ac_optarg" ;;
  321.  
  322.   -includedir | --includedir | --includedi | --included | --include \
  323.   | --includ | --inclu | --incl | --inc)
  324.     ac_prev=includedir ;;
  325.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  326.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  327.     includedir="$ac_optarg" ;;
  328.  
  329.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  330.     ac_prev=infodir ;;
  331.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  332.     infodir="$ac_optarg" ;;
  333.  
  334.   -libdir | --libdir | --libdi | --libd)
  335.     ac_prev=libdir ;;
  336.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  337.     libdir="$ac_optarg" ;;
  338.  
  339.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  340.   | --libexe | --libex | --libe)
  341.     ac_prev=libexecdir ;;
  342.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  343.   | --libexe=* | --libex=* | --libe=*)
  344.     libexecdir="$ac_optarg" ;;
  345.  
  346.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  347.   | --localstate | --localstat | --localsta | --localst \
  348.   | --locals | --local | --loca | --loc | --lo)
  349.     ac_prev=localstatedir ;;
  350.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  351.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  352.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  353.     localstatedir="$ac_optarg" ;;
  354.  
  355.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  356.     ac_prev=mandir ;;
  357.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  358.     mandir="$ac_optarg" ;;
  359.  
  360.   -nfp | --nfp | --nf)
  361.     # Obsolete; use --without-fp.
  362.     with_fp=no ;;
  363.  
  364.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  365.   | --no-cr | --no-c)
  366.     no_create=yes ;;
  367.  
  368.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  369.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  370.     no_recursion=yes ;;
  371.  
  372.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  373.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  374.   | --oldin | --oldi | --old | --ol | --o)
  375.     ac_prev=oldincludedir ;;
  376.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  377.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  378.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  379.     oldincludedir="$ac_optarg" ;;
  380.  
  381.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  382.     ac_prev=prefix ;;
  383.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  384.     prefix="$ac_optarg" ;;
  385.  
  386.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  387.   | --program-pre | --program-pr | --program-p)
  388.     ac_prev=program_prefix ;;
  389.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  390.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  391.     program_prefix="$ac_optarg" ;;
  392.  
  393.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  394.   | --program-suf | --program-su | --program-s)
  395.     ac_prev=program_suffix ;;
  396.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  397.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  398.     program_suffix="$ac_optarg" ;;
  399.  
  400.   -program-transform-name | --program-transform-name \
  401.   | --program-transform-nam | --program-transform-na \
  402.   | --program-transform-n | --program-transform- \
  403.   | --program-transform | --program-transfor \
  404.   | --program-transfo | --program-transf \
  405.   | --program-trans | --program-tran \
  406.   | --progr-tra | --program-tr | --program-t)
  407.     ac_prev=program_transform_name ;;
  408.   -program-transform-name=* | --program-transform-name=* \
  409.   | --program-transform-nam=* | --program-transform-na=* \
  410.   | --program-transform-n=* | --program-transform-=* \
  411.   | --program-transform=* | --program-transfor=* \
  412.   | --program-transfo=* | --program-transf=* \
  413.   | --program-trans=* | --program-tran=* \
  414.   | --progr-tra=* | --program-tr=* | --program-t=*)
  415.     program_transform_name="$ac_optarg" ;;
  416.  
  417.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  418.   | -silent | --silent | --silen | --sile | --sil)
  419.     silent=yes ;;
  420.  
  421.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  422.     ac_prev=sbindir ;;
  423.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  424.   | --sbi=* | --sb=*)
  425.     sbindir="$ac_optarg" ;;
  426.  
  427.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  428.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  429.   | --sharedst | --shareds | --shared | --share | --shar \
  430.   | --sha | --sh)
  431.     ac_prev=sharedstatedir ;;
  432.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  433.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  434.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  435.   | --sha=* | --sh=*)
  436.     sharedstatedir="$ac_optarg" ;;
  437.  
  438.   -site | --site | --sit)
  439.     ac_prev=site ;;
  440.   -site=* | --site=* | --sit=*)
  441.     site="$ac_optarg" ;;
  442.  
  443.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  444.     ac_prev=srcdir ;;
  445.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  446.     srcdir="$ac_optarg" ;;
  447.  
  448.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  449.   | --syscon | --sysco | --sysc | --sys | --sy)
  450.     ac_prev=sysconfdir ;;
  451.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  452.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  453.     sysconfdir="$ac_optarg" ;;
  454.  
  455.   -target | --target | --targe | --targ | --tar | --ta | --t)
  456.     ac_prev=target ;;
  457.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  458.     target="$ac_optarg" ;;
  459.  
  460.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  461.     verbose=yes ;;
  462.  
  463.   -version | --version | --versio | --versi | --vers)
  464.     echo "configure generated by autoconf version 2.13"
  465.     exit 0 ;;
  466.  
  467.   -with-* | --with-*)
  468.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  469.     # Reject names that are not valid shell variable names.
  470.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  471.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  472.     fi
  473.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  474.     case "$ac_option" in
  475.       *=*) ;;
  476.       *) ac_optarg=yes ;;
  477.     esac
  478.     eval "with_${ac_package}='$ac_optarg'" ;;
  479.  
  480.   -without-* | --without-*)
  481.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  482.     # Reject names that are not valid shell variable names.
  483.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  484.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  485.     fi
  486.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  487.     eval "with_${ac_package}=no" ;;
  488.  
  489.   --x)
  490.     # Obsolete; use --with-x.
  491.     with_x=yes ;;
  492.  
  493.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  494.   | --x-incl | --x-inc | --x-in | --x-i)
  495.     ac_prev=x_includes ;;
  496.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  497.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  498.     x_includes="$ac_optarg" ;;
  499.  
  500.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  501.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  502.     ac_prev=x_libraries ;;
  503.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  504.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  505.     x_libraries="$ac_optarg" ;;
  506.  
  507.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  508.     ;;
  509.  
  510.   *)
  511.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  512.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  513.     fi
  514.     if test "x$nonopt" != xNONE; then
  515.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  516.     fi
  517.     nonopt="$ac_option"
  518.     ;;
  519.  
  520.   esac
  521. done
  522.  
  523. if test -n "$ac_prev"; then
  524.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  525. fi
  526.  
  527. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  528.  
  529. # File descriptor usage:
  530. # 0 standard input
  531. # 1 file creation
  532. # 2 errors and warnings
  533. # 3 some systems may open it to /dev/tty
  534. # 4 used on the Kubota Titan
  535. # 6 checking for... messages and results
  536. # 5 compiler messages saved in config.log
  537. if test "$silent" = yes; then
  538.   exec 6>/dev/null
  539. else
  540.   exec 6>&1
  541. fi
  542. exec 5>./config.log
  543.  
  544. echo "\
  545. This file contains any messages produced by compilers while
  546. running configure, to aid debugging if configure makes a mistake.
  547. " 1>&5
  548.  
  549. # Strip out --no-create and --no-recursion so they do not pile up.
  550. # Also quote any args containing shell metacharacters.
  551. ac_configure_args=
  552. for ac_arg
  553. do
  554.   case "$ac_arg" in
  555.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  556.   | --no-cr | --no-c) ;;
  557.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  558.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  559.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  560.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  561.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  562.   esac
  563. done
  564.  
  565. # NLS nuisances.
  566. # Only set these to C if already set.  These must not be set unconditionally
  567. # because not all systems understand e.g. LANG=C (notably SCO).
  568. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  569. # Non-C LC_CTYPE values break the ctype check.
  570. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  571. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  572. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  573. if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  574.  
  575. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  576. rm -rf conftest* confdefs.h
  577. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  578. echo > confdefs.h
  579.  
  580. # A filename unique to this package, relative to the directory that
  581. # configure is in, which we can look for to find out if srcdir is correct.
  582. ac_unique_file=xconfig.h.in
  583.  
  584. # Find the source files, if location was not specified.
  585. if test -z "$srcdir"; then
  586.   ac_srcdir_defaulted=yes
  587.   # Try the directory containing this script, then its parent.
  588.   ac_prog=$0
  589.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  590.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  591.   srcdir=$ac_confdir
  592.   if test ! -r $srcdir/$ac_unique_file; then
  593.     srcdir=..
  594.   fi
  595. else
  596.   ac_srcdir_defaulted=no
  597. fi
  598. if test ! -r $srcdir/$ac_unique_file; then
  599.   if test "$ac_srcdir_defaulted" = yes; then
  600.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  601.   else
  602.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  603.   fi
  604. fi
  605. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  606.  
  607. # Prefer explicitly selected file to automatically selected ones.
  608. if test -z "$CONFIG_SITE"; then
  609.   if test "x$prefix" != xNONE; then
  610.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  611.   else
  612.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  613.   fi
  614. fi
  615. for ac_site_file in $CONFIG_SITE; do
  616.   if test -r "$ac_site_file"; then
  617.     echo "loading site script $ac_site_file"
  618.     . "$ac_site_file"
  619.   fi
  620. done
  621.  
  622. if test -r "$cache_file"; then
  623.   echo "loading cache $cache_file"
  624.   . $cache_file
  625. else
  626.   echo "creating cache $cache_file"
  627.   > $cache_file
  628. fi
  629.  
  630. ac_ext=c
  631. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  632. ac_cpp='$CPP $CPPFLAGS'
  633. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  634. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  635. cross_compiling=$ac_cv_prog_cc_cross
  636.  
  637. ac_exeext=
  638. ac_objext=o
  639. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  640.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  641.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  642.     ac_n= ac_c='
  643. ' ac_t='    '
  644.   else
  645.     ac_n=-n ac_c= ac_t=
  646.   fi
  647. else
  648.   ac_n= ac_c='\c' ac_t=
  649. fi
  650.  
  651.  
  652.  
  653. ac_aux_dir=
  654. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  655.   if test -f $ac_dir/install-sh; then
  656.     ac_aux_dir=$ac_dir
  657.     ac_install_sh="$ac_aux_dir/install-sh -c"
  658.     break
  659.   elif test -f $ac_dir/install.sh; then
  660.     ac_aux_dir=$ac_dir
  661.     ac_install_sh="$ac_aux_dir/install.sh -c"
  662.     break
  663.   fi
  664. done
  665. if test -z "$ac_aux_dir"; then
  666.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  667. fi
  668. ac_config_guess=$ac_aux_dir/config.guess
  669. ac_config_sub=$ac_aux_dir/config.sub
  670. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  671.  
  672.  
  673. # Make sure we can run config.sub.
  674. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  675. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  676. fi
  677.  
  678. echo $ac_n "checking host system type""... $ac_c" 1>&6
  679. echo "configure:680: checking host system type" >&5
  680.  
  681. host_alias=$host
  682. case "$host_alias" in
  683. NONE)
  684.   case $nonopt in
  685.   NONE)
  686.     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  687.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  688.     fi ;;
  689.   *) host_alias=$nonopt ;;
  690.   esac ;;
  691. esac
  692.  
  693. host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  694. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  695. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  696. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  697. echo "$ac_t""$host" 1>&6
  698.  
  699.  
  700. echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
  701. echo "configure:702: checking for Cygwin environment" >&5
  702. if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
  703.   echo $ac_n "(cached) $ac_c" 1>&6
  704. else
  705.   cat > conftest.$ac_ext <<EOF
  706. #line 707 "configure"
  707. #include "confdefs.h"
  708.  
  709. int main() {
  710.  
  711. #ifndef __CYGWIN__
  712. #define __CYGWIN__ __CYGWIN32__
  713. #endif
  714. return __CYGWIN__;
  715. ; return 0; }
  716. EOF
  717. if { (eval echo configure:718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  718.   rm -rf conftest*
  719.   ac_cv_cygwin=yes
  720. else
  721.   echo "configure: failed program was:" >&5
  722.   cat conftest.$ac_ext >&5
  723.   rm -rf conftest*
  724.   ac_cv_cygwin=no
  725. fi
  726. rm -f conftest*
  727. rm -f conftest*
  728. fi
  729.  
  730. echo "$ac_t""$ac_cv_cygwin" 1>&6
  731. CYGWIN=
  732. test "$ac_cv_cygwin" = yes && CYGWIN=yes
  733. echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
  734. echo "configure:735: checking for mingw32 environment" >&5
  735. if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
  736.   echo $ac_n "(cached) $ac_c" 1>&6
  737. else
  738.   cat > conftest.$ac_ext <<EOF
  739. #line 740 "configure"
  740. #include "confdefs.h"
  741.  
  742. int main() {
  743. return __MINGW32__;
  744. ; return 0; }
  745. EOF
  746. if { (eval echo configure:747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  747.   rm -rf conftest*
  748.   ac_cv_mingw32=yes
  749. else
  750.   echo "configure: failed program was:" >&5
  751.   cat conftest.$ac_ext >&5
  752.   rm -rf conftest*
  753.   ac_cv_mingw32=no
  754. fi
  755. rm -f conftest*
  756. rm -f conftest*
  757. fi
  758.  
  759. echo "$ac_t""$ac_cv_mingw32" 1>&6
  760. MINGW32=
  761. test "$ac_cv_mingw32" = yes && MINGW32=yes
  762. echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6
  763. echo "configure:764: checking for EMX/OS2 environment" >&5
  764. if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then
  765.   echo $ac_n "(cached) $ac_c" 1>&6
  766. else
  767.   cat > conftest.$ac_ext <<EOF
  768. #line 769 "configure"
  769. #include "confdefs.h"
  770.  
  771. int main() {
  772. return __EMX__;
  773. ; return 0; }
  774. EOF
  775. if { (eval echo configure:776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  776.   rm -rf conftest*
  777.   ac_cv_emxos2=yes
  778. else
  779.   echo "configure: failed program was:" >&5
  780.   cat conftest.$ac_ext >&5
  781.   rm -rf conftest*
  782.   ac_cv_emxos2=no
  783. fi
  784. rm -f conftest*
  785. rm -f conftest*
  786. fi
  787.  
  788. echo "$ac_t""$ac_cv_emxos2" 1>&6
  789. if eval "test \"`echo '$''{'ac_cv_libpre'+set}'`\" = set"; then
  790.   echo $ac_n "(cached) $ac_c" 1>&6
  791. else
  792.   if test "$ac_cv_emxos2" = yes ; then
  793.   ac_cv_libpre=
  794. else
  795.   ac_cv_libpre=lib
  796. fi
  797.  
  798. fi
  799.  
  800. EMXOS2=
  801. test "$ac_cv_emxos2" = yes && EMXOS2=yes
  802.  
  803.  
  804.  
  805. echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
  806. echo "configure:807: checking for executable suffix" >&5
  807. if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
  808.   echo $ac_n "(cached) $ac_c" 1>&6
  809. else
  810.   if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
  811.   ac_cv_exeext=.exe
  812. else
  813.   rm -f conftest*
  814.   echo 'int main () { return 0; }' > conftest.$ac_ext
  815.   ac_cv_exeext=
  816.   if { (eval echo configure:817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  817.     for file in conftest.*; do
  818.       case $file in
  819.       *.c | *.o | *.obj) ;;
  820.       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
  821.       esac
  822.     done
  823.   else
  824.     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
  825.   fi
  826.   rm -f conftest*
  827.   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
  828. fi
  829. fi
  830.  
  831. EXEEXT=""
  832. test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
  833. echo "$ac_t""${ac_cv_exeext}" 1>&6
  834. ac_exeext=$EXEEXT
  835.  
  836. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  837. echo "configure:838: checking how to run the C preprocessor" >&5
  838. # On Suns, sometimes $CPP names a directory.
  839. if test -n "$CPP" && test -d "$CPP"; then
  840.   CPP=
  841. fi
  842. if test -z "$CPP"; then
  843. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  844.   echo $ac_n "(cached) $ac_c" 1>&6
  845. else
  846.     # This must be in double quotes, not single quotes, because CPP may get
  847.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  848.   CPP="${CC-cc} -E"
  849.   # On the NeXT, cc -E runs the code through the compiler's parser,
  850.   # not just through cpp.
  851.   cat > conftest.$ac_ext <<EOF
  852. #line 853 "configure"
  853. #include "confdefs.h"
  854. #include <assert.h>
  855. Syntax Error
  856. EOF
  857. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  858. { (eval echo configure:859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  859. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  860. if test -z "$ac_err"; then
  861.   :
  862. else
  863.   echo "$ac_err" >&5
  864.   echo "configure: failed program was:" >&5
  865.   cat conftest.$ac_ext >&5
  866.   rm -rf conftest*
  867.   CPP="${CC-cc} -E -traditional-cpp"
  868.   cat > conftest.$ac_ext <<EOF
  869. #line 870 "configure"
  870. #include "confdefs.h"
  871. #include <assert.h>
  872. Syntax Error
  873. EOF
  874. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  875. { (eval echo configure:876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  876. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  877. if test -z "$ac_err"; then
  878.   :
  879. else
  880.   echo "$ac_err" >&5
  881.   echo "configure: failed program was:" >&5
  882.   cat conftest.$ac_ext >&5
  883.   rm -rf conftest*
  884.   CPP="${CC-cc} -nologo -E"
  885.   cat > conftest.$ac_ext <<EOF
  886. #line 887 "configure"
  887. #include "confdefs.h"
  888. #include <assert.h>
  889. Syntax Error
  890. EOF
  891. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  892. { (eval echo configure:893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  893. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  894. if test -z "$ac_err"; then
  895.   :
  896. else
  897.   echo "$ac_err" >&5
  898.   echo "configure: failed program was:" >&5
  899.   cat conftest.$ac_ext >&5
  900.   rm -rf conftest*
  901.   CPP=/lib/cpp
  902. fi
  903. rm -f conftest*
  904. fi
  905. rm -f conftest*
  906. fi
  907. rm -f conftest*
  908.   ac_cv_prog_CPP="$CPP"
  909. fi
  910.   CPP="$ac_cv_prog_CPP"
  911. else
  912.   ac_cv_prog_CPP="$CPP"
  913. fi
  914. echo "$ac_t""$CPP" 1>&6
  915.  
  916. # Extract the first word of "ranlib", so it can be a program name with args.
  917. set dummy ranlib; ac_word=$2
  918. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  919. echo "configure:920: checking for $ac_word" >&5
  920. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  921.   echo $ac_n "(cached) $ac_c" 1>&6
  922. else
  923.   if test -n "$RANLIB"; then
  924.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  925. else
  926.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  927.   ac_dummy="$PATH"
  928.   for ac_dir in $ac_dummy; do
  929.     test -z "$ac_dir" && ac_dir=.
  930.     if test -f $ac_dir/$ac_word; then
  931.       ac_cv_prog_RANLIB="ranlib"
  932.       break
  933.     fi
  934.   done
  935.   IFS="$ac_save_ifs"
  936.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  937. fi
  938. fi
  939. RANLIB="$ac_cv_prog_RANLIB"
  940. if test -n "$RANLIB"; then
  941.   echo "$ac_t""$RANLIB" 1>&6
  942. else
  943.   echo "$ac_t""no" 1>&6
  944. fi
  945.  
  946. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  947. echo "configure:948: checking whether ${MAKE-make} sets \${MAKE}" >&5
  948. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  949. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  950.   echo $ac_n "(cached) $ac_c" 1>&6
  951. else
  952.   cat > conftestmake <<\EOF
  953. all:
  954.     @echo 'ac_maketemp="${MAKE}"'
  955. EOF
  956. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  957. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  958. if test -n "$ac_maketemp"; then
  959.   eval ac_cv_prog_make_${ac_make}_set=yes
  960. else
  961.   eval ac_cv_prog_make_${ac_make}_set=no
  962. fi
  963. rm -f conftestmake
  964. fi
  965. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  966.   echo "$ac_t""yes" 1>&6
  967.   SET_MAKE=
  968. else
  969.   echo "$ac_t""no" 1>&6
  970.   SET_MAKE="MAKE=${MAKE-make}"
  971. fi
  972.  
  973.  
  974. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  975. echo "configure:976: checking for ANSI C header files" >&5
  976. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  977.   echo $ac_n "(cached) $ac_c" 1>&6
  978. else
  979.   cat > conftest.$ac_ext <<EOF
  980. #line 981 "configure"
  981. #include "confdefs.h"
  982. #include <stdlib.h>
  983. #include <stdarg.h>
  984. #include <string.h>
  985. #include <float.h>
  986. EOF
  987. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  988. { (eval echo configure:989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  989. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  990. if test -z "$ac_err"; then
  991.   rm -rf conftest*
  992.   ac_cv_header_stdc=yes
  993. else
  994.   echo "$ac_err" >&5
  995.   echo "configure: failed program was:" >&5
  996.   cat conftest.$ac_ext >&5
  997.   rm -rf conftest*
  998.   ac_cv_header_stdc=no
  999. fi
  1000. rm -f conftest*
  1001.  
  1002. if test $ac_cv_header_stdc = yes; then
  1003.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1004. cat > conftest.$ac_ext <<EOF
  1005. #line 1006 "configure"
  1006. #include "confdefs.h"
  1007. #include <string.h>
  1008. EOF
  1009. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1010.   egrep "memchr" >/dev/null 2>&1; then
  1011.   :
  1012. else
  1013.   rm -rf conftest*
  1014.   ac_cv_header_stdc=no
  1015. fi
  1016. rm -f conftest*
  1017.  
  1018. fi
  1019.  
  1020. if test $ac_cv_header_stdc = yes; then
  1021.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1022. cat > conftest.$ac_ext <<EOF
  1023. #line 1024 "configure"
  1024. #include "confdefs.h"
  1025. #include <stdlib.h>
  1026. EOF
  1027. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1028.   egrep "free" >/dev/null 2>&1; then
  1029.   :
  1030. else
  1031.   rm -rf conftest*
  1032.   ac_cv_header_stdc=no
  1033. fi
  1034. rm -f conftest*
  1035.  
  1036. fi
  1037.  
  1038. if test $ac_cv_header_stdc = yes; then
  1039.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1040. if test "$cross_compiling" = yes; then
  1041.   :
  1042. else
  1043.   cat > conftest.$ac_ext <<EOF
  1044. #line 1045 "configure"
  1045. #include "confdefs.h"
  1046. #include <ctype.h>
  1047. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1048. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1049. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1050. int main () { int i; for (i = 0; i < 256; i++)
  1051. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1052. exit (0); }
  1053.  
  1054. EOF
  1055. if { (eval echo configure:1056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1056. then
  1057.   :
  1058. else
  1059.   echo "configure: failed program was:" >&5
  1060.   cat conftest.$ac_ext >&5
  1061.   rm -fr conftest*
  1062.   ac_cv_header_stdc=no
  1063. fi
  1064. rm -fr conftest*
  1065. fi
  1066.  
  1067. fi
  1068. fi
  1069.  
  1070. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1071. if test $ac_cv_header_stdc = yes; then
  1072.   cat >> confdefs.h <<\EOF
  1073. #define STDC_HEADERS 1
  1074. EOF
  1075.  
  1076. fi
  1077.  
  1078. echo $ac_n "checking for UNIX-98 compliant inttypes.h""... $ac_c" 1>&6
  1079. echo "configure:1080: checking for UNIX-98 compliant inttypes.h" >&5
  1080. if eval "test \"`echo '$''{'ac_cv_header_inttypes'+set}'`\" = set"; then
  1081.   echo $ac_n "(cached) $ac_c" 1>&6
  1082. else
  1083.   cat > conftest.$ac_ext <<EOF
  1084. #line 1085 "configure"
  1085. #include "confdefs.h"
  1086. #include <inttypes.h>
  1087. int main() {
  1088. int8_t c; uint8_t uc; int16_t s; uint16_t us; int32_t i; uint32_t ui;
  1089. int64_t ll; uint64_t ull;
  1090. intptr_t ip; uintptr_t uip;
  1091. ; return 0; }
  1092. EOF
  1093. if { (eval echo configure:1094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1094.   rm -rf conftest*
  1095.   ac_cv_header_inttypes=yes
  1096. else
  1097.   echo "configure: failed program was:" >&5
  1098.   cat conftest.$ac_ext >&5
  1099.   rm -rf conftest*
  1100.   ac_cv_header_inttypes=no
  1101. fi
  1102. rm -f conftest*
  1103. fi
  1104.  
  1105. echo "$ac_t""$ac_cv_header_inttypes" 1>&6
  1106. if test $ac_cv_header_inttypes = yes; then
  1107.   cat >> confdefs.h <<\EOF
  1108. #define HAVE_INTTYPES_H 1
  1109. EOF
  1110.  
  1111. fi
  1112. ac_header_dirent=no
  1113. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  1114. do
  1115. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1116. echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  1117. echo "configure:1118: checking for $ac_hdr that defines DIR" >&5
  1118. if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  1119.   echo $ac_n "(cached) $ac_c" 1>&6
  1120. else
  1121.   cat > conftest.$ac_ext <<EOF
  1122. #line 1123 "configure"
  1123. #include "confdefs.h"
  1124. #include <sys/types.h>
  1125. #include <$ac_hdr>
  1126. int main() {
  1127. DIR *dirp = 0;
  1128. ; return 0; }
  1129. EOF
  1130. if { (eval echo configure:1131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1131.   rm -rf conftest*
  1132.   eval "ac_cv_header_dirent_$ac_safe=yes"
  1133. else
  1134.   echo "configure: failed program was:" >&5
  1135.   cat conftest.$ac_ext >&5
  1136.   rm -rf conftest*
  1137.   eval "ac_cv_header_dirent_$ac_safe=no"
  1138. fi
  1139. rm -f conftest*
  1140. fi
  1141. if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  1142.   echo "$ac_t""yes" 1>&6
  1143.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1144.   cat >> confdefs.h <<EOF
  1145. #define $ac_tr_hdr 1
  1146. EOF
  1147.  ac_header_dirent=$ac_hdr; break
  1148. else
  1149.   echo "$ac_t""no" 1>&6
  1150. fi
  1151. done
  1152. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  1153. if test $ac_header_dirent = dirent.h; then
  1154. echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
  1155. echo "configure:1156: checking for opendir in -ldir" >&5
  1156. ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
  1157. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1158.   echo $ac_n "(cached) $ac_c" 1>&6
  1159. else
  1160.   ac_save_LIBS="$LIBS"
  1161. LIBS="-ldir  $LIBS"
  1162. cat > conftest.$ac_ext <<EOF
  1163. #line 1164 "configure"
  1164. #include "confdefs.h"
  1165. /* Override any gcc2 internal prototype to avoid an error.  */
  1166. /* We use char because int might match the return type of a gcc2
  1167.     builtin and then its argument prototype would still apply.  */
  1168. char opendir();
  1169.  
  1170. int main() {
  1171. opendir()
  1172. ; return 0; }
  1173. EOF
  1174. if { (eval echo configure:1175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1175.   rm -rf conftest*
  1176.   eval "ac_cv_lib_$ac_lib_var=yes"
  1177. else
  1178.   echo "configure: failed program was:" >&5
  1179.   cat conftest.$ac_ext >&5
  1180.   rm -rf conftest*
  1181.   eval "ac_cv_lib_$ac_lib_var=no"
  1182. fi
  1183. rm -f conftest*
  1184. LIBS="$ac_save_LIBS"
  1185.  
  1186. fi
  1187. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1188.   echo "$ac_t""yes" 1>&6
  1189.   LIBS="$LIBS -ldir"
  1190. else
  1191.   echo "$ac_t""no" 1>&6
  1192. fi
  1193.  
  1194. else
  1195. echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
  1196. echo "configure:1197: checking for opendir in -lx" >&5
  1197. ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
  1198. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1199.   echo $ac_n "(cached) $ac_c" 1>&6
  1200. else
  1201.   ac_save_LIBS="$LIBS"
  1202. LIBS="-lx  $LIBS"
  1203. cat > conftest.$ac_ext <<EOF
  1204. #line 1205 "configure"
  1205. #include "confdefs.h"
  1206. /* Override any gcc2 internal prototype to avoid an error.  */
  1207. /* We use char because int might match the return type of a gcc2
  1208.     builtin and then its argument prototype would still apply.  */
  1209. char opendir();
  1210.  
  1211. int main() {
  1212. opendir()
  1213. ; return 0; }
  1214. EOF
  1215. if { (eval echo configure:1216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1216.   rm -rf conftest*
  1217.   eval "ac_cv_lib_$ac_lib_var=yes"
  1218. else
  1219.   echo "configure: failed program was:" >&5
  1220.   cat conftest.$ac_ext >&5
  1221.   rm -rf conftest*
  1222.   eval "ac_cv_lib_$ac_lib_var=no"
  1223. fi
  1224. rm -f conftest*
  1225. LIBS="$ac_save_LIBS"
  1226.  
  1227. fi
  1228. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1229.   echo "$ac_t""yes" 1>&6
  1230.   LIBS="$LIBS -lx"
  1231. else
  1232.   echo "$ac_t""no" 1>&6
  1233. fi
  1234.  
  1235. fi
  1236.  
  1237. echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
  1238. echo "configure:1239: checking whether stat file-mode macros are broken" >&5
  1239. if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
  1240.   echo $ac_n "(cached) $ac_c" 1>&6
  1241. else
  1242.   cat > conftest.$ac_ext <<EOF
  1243. #line 1244 "configure"
  1244. #include "confdefs.h"
  1245. #include <sys/types.h>
  1246. #include <sys/stat.h>
  1247.  
  1248. #if defined(S_ISBLK) && defined(S_IFDIR)
  1249. # if S_ISBLK (S_IFDIR)
  1250. You lose.
  1251. # endif
  1252. #endif
  1253.  
  1254. #if defined(S_ISBLK) && defined(S_IFCHR)
  1255. # if S_ISBLK (S_IFCHR)
  1256. You lose.
  1257. # endif
  1258. #endif
  1259.  
  1260. #if defined(S_ISLNK) && defined(S_IFREG)
  1261. # if S_ISLNK (S_IFREG)
  1262. You lose.
  1263. # endif
  1264. #endif
  1265.  
  1266. #if defined(S_ISSOCK) && defined(S_IFREG)
  1267. # if S_ISSOCK (S_IFREG)
  1268. You lose.
  1269. # endif
  1270. #endif
  1271.  
  1272. EOF
  1273. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1274.   egrep "You lose" >/dev/null 2>&1; then
  1275.   rm -rf conftest*
  1276.   ac_cv_header_stat_broken=yes
  1277. else
  1278.   rm -rf conftest*
  1279.   ac_cv_header_stat_broken=no
  1280. fi
  1281. rm -f conftest*
  1282.  
  1283. fi
  1284.  
  1285. echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
  1286. if test $ac_cv_header_stat_broken = yes; then
  1287.   cat >> confdefs.h <<\EOF
  1288. #define STAT_MACROS_BROKEN 1
  1289. EOF
  1290.  
  1291. fi
  1292.  
  1293. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  1294. echo "configure:1295: checking whether time.h and sys/time.h may both be included" >&5
  1295. if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  1296.   echo $ac_n "(cached) $ac_c" 1>&6
  1297. else
  1298.   cat > conftest.$ac_ext <<EOF
  1299. #line 1300 "configure"
  1300. #include "confdefs.h"
  1301. #include <sys/types.h>
  1302. #include <sys/time.h>
  1303. #include <time.h>
  1304. int main() {
  1305. struct tm *tp;
  1306. ; return 0; }
  1307. EOF
  1308. if { (eval echo configure:1309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1309.   rm -rf conftest*
  1310.   ac_cv_header_time=yes
  1311. else
  1312.   echo "configure: failed program was:" >&5
  1313.   cat conftest.$ac_ext >&5
  1314.   rm -rf conftest*
  1315.   ac_cv_header_time=no
  1316. fi
  1317. rm -f conftest*
  1318. fi
  1319.  
  1320. echo "$ac_t""$ac_cv_header_time" 1>&6
  1321. if test $ac_cv_header_time = yes; then
  1322.   cat >> confdefs.h <<\EOF
  1323. #define TIME_WITH_SYS_TIME 1
  1324. EOF
  1325.  
  1326. fi
  1327.  
  1328. echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
  1329. echo "configure:1330: checking for sys/wait.h that is POSIX.1 compatible" >&5
  1330. if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
  1331.   echo $ac_n "(cached) $ac_c" 1>&6
  1332. else
  1333.   cat > conftest.$ac_ext <<EOF
  1334. #line 1335 "configure"
  1335. #include "confdefs.h"
  1336. #include <sys/types.h>
  1337. #include <sys/wait.h>
  1338. #ifndef WEXITSTATUS
  1339. #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  1340. #endif
  1341. #ifndef WIFEXITED
  1342. #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  1343. #endif
  1344. int main() {
  1345. int s;
  1346. wait (&s);
  1347. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  1348. ; return 0; }
  1349. EOF
  1350. if { (eval echo configure:1351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1351.   rm -rf conftest*
  1352.   ac_cv_header_sys_wait_h=yes
  1353. else
  1354.   echo "configure: failed program was:" >&5
  1355.   cat conftest.$ac_ext >&5
  1356.   rm -rf conftest*
  1357.   ac_cv_header_sys_wait_h=no
  1358. fi
  1359. rm -f conftest*
  1360. fi
  1361.  
  1362. echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
  1363. if test $ac_cv_header_sys_wait_h = yes; then
  1364.   cat >> confdefs.h <<\EOF
  1365. #define HAVE_SYS_WAIT_H 1
  1366. EOF
  1367.  
  1368. fi
  1369.  
  1370. echo $ac_n "checking if select needs nonstd include files""... $ac_c" 1>&6
  1371. echo "configure:1372: checking if select needs nonstd include files" >&5
  1372. if eval "test \"`echo '$''{'ac_cv_header_slect_nonstd_hdr'+set}'`\" = set"; then
  1373.   echo $ac_n "(cached) $ac_c" 1>&6
  1374. else
  1375.   cat > conftest.$ac_ext <<EOF
  1376. #line 1377 "configure"
  1377. #include "confdefs.h"
  1378. #include <sys/types.h>
  1379. #include <sys/time.h>
  1380. int main() {
  1381. fd_set rfd; FD_ZERO(&rfd); select(1, &rfd, 0, 0, 0);
  1382. ; return 0; }
  1383. EOF
  1384. if { (eval echo configure:1385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1385.   rm -rf conftest*
  1386.   ac_cv_header_slect_nonstd_hdr=no
  1387. else
  1388.   echo "configure: failed program was:" >&5
  1389.   cat conftest.$ac_ext >&5
  1390.   rm -rf conftest*
  1391.   ac_cv_header_slect_nonstd_hdr=yes
  1392. fi
  1393. rm -f conftest*
  1394. fi
  1395.  
  1396. echo "$ac_t""$ac_cv_header_slect_nonstd_hdr" 1>&6
  1397. if test $ac_cv_header_slect_nonstd_hdr = yes; then
  1398.   cat >> confdefs.h <<\EOF
  1399. #define SELECT_NONSTD_HDR 1
  1400. EOF
  1401.  
  1402. fi
  1403. echo $ac_n "checking if sys/select.h is needed for select""... $ac_c" 1>&6
  1404. echo "configure:1405: checking if sys/select.h is needed for select" >&5
  1405. if eval "test \"`echo '$''{'ac_cv_header_need_sys_select_h'+set}'`\" = set"; then
  1406.   echo $ac_n "(cached) $ac_c" 1>&6
  1407. else
  1408.   cat > conftest.$ac_ext <<EOF
  1409. #line 1410 "configure"
  1410. #include "confdefs.h"
  1411. #include <sys/types.h>
  1412. #include <sys/time.h>
  1413. #include <sys/select.h>
  1414. #ifndef    SELECT_NONSTD_HDR
  1415. do not compile if we do not need nonstandard headers
  1416. #endif
  1417. int main() {
  1418. fd_set rfd; FD_ZERO(&rfd); select(1, &rfd, 0, 0, 0);
  1419. ; return 0; }
  1420. EOF
  1421. if { (eval echo configure:1422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1422.   rm -rf conftest*
  1423.   ac_cv_header_need_sys_select_h=yes
  1424. else
  1425.   echo "configure: failed program was:" >&5
  1426.   cat conftest.$ac_ext >&5
  1427.   rm -rf conftest*
  1428.   ac_cv_header_need_sys_select_h=no
  1429. fi
  1430. rm -f conftest*
  1431. fi
  1432.  
  1433. echo "$ac_t""$ac_cv_header_need_sys_select_h" 1>&6
  1434. if test $ac_cv_header_need_sys_select_h = yes; then
  1435.   cat >> confdefs.h <<\EOF
  1436. #define NEED_SYS_SELECT_H 1
  1437. EOF
  1438.  
  1439. fi
  1440. for ac_hdr in varargs.h stdarg.h stdlib.h string.h strings.h unistd.h fcntl.h sys/file.h
  1441. do
  1442. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1443. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1444. echo "configure:1445: checking for $ac_hdr" >&5
  1445. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1446.   echo $ac_n "(cached) $ac_c" 1>&6
  1447. else
  1448.   cat > conftest.$ac_ext <<EOF
  1449. #line 1450 "configure"
  1450. #include "confdefs.h"
  1451. #include <$ac_hdr>
  1452. EOF
  1453. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1454. { (eval echo configure:1455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1455. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1456. if test -z "$ac_err"; then
  1457.   rm -rf conftest*
  1458.   eval "ac_cv_header_$ac_safe=yes"
  1459. else
  1460.   echo "$ac_err" >&5
  1461.   echo "configure: failed program was:" >&5
  1462.   cat conftest.$ac_ext >&5
  1463.   rm -rf conftest*
  1464.   eval "ac_cv_header_$ac_safe=no"
  1465. fi
  1466. rm -f conftest*
  1467. fi
  1468. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1469.   echo "$ac_t""yes" 1>&6
  1470.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1471.   cat >> confdefs.h <<EOF
  1472. #define $ac_tr_hdr 1
  1473. EOF
  1474.  
  1475. else
  1476.   echo "$ac_t""no" 1>&6
  1477. fi
  1478. done
  1479.  
  1480. for ac_hdr in getopt.h
  1481. do
  1482. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1483. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1484. echo "configure:1485: checking for $ac_hdr" >&5
  1485. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1486.   echo $ac_n "(cached) $ac_c" 1>&6
  1487. else
  1488.   cat > conftest.$ac_ext <<EOF
  1489. #line 1490 "configure"
  1490. #include "confdefs.h"
  1491. #include <$ac_hdr>
  1492. EOF
  1493. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1494. { (eval echo configure:1495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1495. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1496. if test -z "$ac_err"; then
  1497.   rm -rf conftest*
  1498.   eval "ac_cv_header_$ac_safe=yes"
  1499. else
  1500.   echo "$ac_err" >&5
  1501.   echo "configure: failed program was:" >&5
  1502.   cat conftest.$ac_ext >&5
  1503.   rm -rf conftest*
  1504.   eval "ac_cv_header_$ac_safe=no"
  1505. fi
  1506. rm -f conftest*
  1507. fi
  1508. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1509.   echo "$ac_t""yes" 1>&6
  1510.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1511.   cat >> confdefs.h <<EOF
  1512. #define $ac_tr_hdr 1
  1513. EOF
  1514.  
  1515. else
  1516.   echo "$ac_t""no" 1>&6
  1517. fi
  1518. done
  1519.  
  1520. for ac_hdr in limits.h
  1521. do
  1522. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1523. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1524. echo "configure:1525: checking for $ac_hdr" >&5
  1525. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1526.   echo $ac_n "(cached) $ac_c" 1>&6
  1527. else
  1528.   cat > conftest.$ac_ext <<EOF
  1529. #line 1530 "configure"
  1530. #include "confdefs.h"
  1531. #include <$ac_hdr>
  1532. EOF
  1533. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1534. { (eval echo configure:1535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1535. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1536. if test -z "$ac_err"; then
  1537.   rm -rf conftest*
  1538.   eval "ac_cv_header_$ac_safe=yes"
  1539. else
  1540.   echo "$ac_err" >&5
  1541.   echo "configure: failed program was:" >&5
  1542.   cat conftest.$ac_ext >&5
  1543.   rm -rf conftest*
  1544.   eval "ac_cv_header_$ac_safe=no"
  1545. fi
  1546. rm -f conftest*
  1547. fi
  1548. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1549.   echo "$ac_t""yes" 1>&6
  1550.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1551.   cat >> confdefs.h <<EOF
  1552. #define $ac_tr_hdr 1
  1553. EOF
  1554.  
  1555. else
  1556.   echo "$ac_t""no" 1>&6
  1557. fi
  1558. done
  1559.  
  1560. for ac_hdr in a.out.h aouthdr.h elf.h
  1561. do
  1562. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1563. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1564. echo "configure:1565: checking for $ac_hdr" >&5
  1565. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1566.   echo $ac_n "(cached) $ac_c" 1>&6
  1567. else
  1568.   cat > conftest.$ac_ext <<EOF
  1569. #line 1570 "configure"
  1570. #include "confdefs.h"
  1571. #include <$ac_hdr>
  1572. EOF
  1573. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1574. { (eval echo configure:1575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1575. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1576. if test -z "$ac_err"; then
  1577.   rm -rf conftest*
  1578.   eval "ac_cv_header_$ac_safe=yes"
  1579. else
  1580.   echo "$ac_err" >&5
  1581.   echo "configure: failed program was:" >&5
  1582.   cat conftest.$ac_ext >&5
  1583.   rm -rf conftest*
  1584.   eval "ac_cv_header_$ac_safe=no"
  1585. fi
  1586. rm -f conftest*
  1587. fi
  1588. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1589.   echo "$ac_t""yes" 1>&6
  1590.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1591.   cat >> confdefs.h <<EOF
  1592. #define $ac_tr_hdr 1
  1593. EOF
  1594.  
  1595. else
  1596.   echo "$ac_t""no" 1>&6
  1597. fi
  1598. done
  1599.  
  1600. for ac_hdr in malloc.h termios.h termio.h
  1601. do
  1602. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1603. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1604. echo "configure:1605: checking for $ac_hdr" >&5
  1605. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1606.   echo $ac_n "(cached) $ac_c" 1>&6
  1607. else
  1608.   cat > conftest.$ac_ext <<EOF
  1609. #line 1610 "configure"
  1610. #include "confdefs.h"
  1611. #include <$ac_hdr>
  1612. EOF
  1613. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1614. { (eval echo configure:1615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1615. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1616. if test -z "$ac_err"; then
  1617.   rm -rf conftest*
  1618.   eval "ac_cv_header_$ac_safe=yes"
  1619. else
  1620.   echo "$ac_err" >&5
  1621.   echo "configure: failed program was:" >&5
  1622.   cat conftest.$ac_ext >&5
  1623.   rm -rf conftest*
  1624.   eval "ac_cv_header_$ac_safe=no"
  1625. fi
  1626. rm -f conftest*
  1627. fi
  1628. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1629.   echo "$ac_t""yes" 1>&6
  1630.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1631.   cat >> confdefs.h <<EOF
  1632. #define $ac_tr_hdr 1
  1633. EOF
  1634.  
  1635. else
  1636.   echo "$ac_t""no" 1>&6
  1637. fi
  1638. done
  1639.  
  1640. for ac_hdr in shadow.h syslog.h
  1641. do
  1642. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1643. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1644. echo "configure:1645: checking for $ac_hdr" >&5
  1645. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1646.   echo $ac_n "(cached) $ac_c" 1>&6
  1647. else
  1648.   cat > conftest.$ac_ext <<EOF
  1649. #line 1650 "configure"
  1650. #include "confdefs.h"
  1651. #include <$ac_hdr>
  1652. EOF
  1653. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1654. { (eval echo configure:1655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1655. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1656. if test -z "$ac_err"; then
  1657.   rm -rf conftest*
  1658.   eval "ac_cv_header_$ac_safe=yes"
  1659. else
  1660.   echo "$ac_err" >&5
  1661.   echo "configure: failed program was:" >&5
  1662.   cat conftest.$ac_ext >&5
  1663.   rm -rf conftest*
  1664.   eval "ac_cv_header_$ac_safe=no"
  1665. fi
  1666. rm -f conftest*
  1667. fi
  1668. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1669.   echo "$ac_t""yes" 1>&6
  1670.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1671.   cat >> confdefs.h <<EOF
  1672. #define $ac_tr_hdr 1
  1673. EOF
  1674.  
  1675. else
  1676.   echo "$ac_t""no" 1>&6
  1677. fi
  1678. done
  1679.  
  1680. for ac_hdr in sys/time.h sys/times.h utime.h sys/utime.h sys/ioctl.h sys/filio.h sys/param.h sys/systeminfo.h
  1681. do
  1682. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1683. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1684. echo "configure:1685: checking for $ac_hdr" >&5
  1685. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1686.   echo $ac_n "(cached) $ac_c" 1>&6
  1687. else
  1688.   cat > conftest.$ac_ext <<EOF
  1689. #line 1690 "configure"
  1690. #include "confdefs.h"
  1691. #include <$ac_hdr>
  1692. EOF
  1693. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1694. { (eval echo configure:1695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1695. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1696. if test -z "$ac_err"; then
  1697.   rm -rf conftest*
  1698.   eval "ac_cv_header_$ac_safe=yes"
  1699. else
  1700.   echo "$ac_err" >&5
  1701.   echo "configure: failed program was:" >&5
  1702.   cat conftest.$ac_ext >&5
  1703.   rm -rf conftest*
  1704.   eval "ac_cv_header_$ac_safe=no"
  1705. fi
  1706. rm -f conftest*
  1707. fi
  1708. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1709.   echo "$ac_t""yes" 1>&6
  1710.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1711.   cat >> confdefs.h <<EOF
  1712. #define $ac_tr_hdr 1
  1713. EOF
  1714.  
  1715. else
  1716.   echo "$ac_t""no" 1>&6
  1717. fi
  1718. done
  1719.  
  1720. for ac_hdr in mntent.h sys/mntent.h sys/mnttab.h sys/mount.h
  1721. do
  1722. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1723. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1724. echo "configure:1725: checking for $ac_hdr" >&5
  1725. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1726.   echo $ac_n "(cached) $ac_c" 1>&6
  1727. else
  1728.   cat > conftest.$ac_ext <<EOF
  1729. #line 1730 "configure"
  1730. #include "confdefs.h"
  1731. #include <$ac_hdr>
  1732. EOF
  1733. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1734. { (eval echo configure:1735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1735. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1736. if test -z "$ac_err"; then
  1737.   rm -rf conftest*
  1738.   eval "ac_cv_header_$ac_safe=yes"
  1739. else
  1740.   echo "$ac_err" >&5
  1741.   echo "configure: failed program was:" >&5
  1742.   cat conftest.$ac_ext >&5
  1743.   rm -rf conftest*
  1744.   eval "ac_cv_header_$ac_safe=no"
  1745. fi
  1746. rm -f conftest*
  1747. fi
  1748. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1749.   echo "$ac_t""yes" 1>&6
  1750.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1751.   cat >> confdefs.h <<EOF
  1752. #define $ac_tr_hdr 1
  1753. EOF
  1754.  
  1755. else
  1756.   echo "$ac_t""no" 1>&6
  1757. fi
  1758. done
  1759.  
  1760. for ac_hdr in wait.h sys/resource.h sys/procfs.h
  1761. do
  1762. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1763. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1764. echo "configure:1765: checking for $ac_hdr" >&5
  1765. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1766.   echo $ac_n "(cached) $ac_c" 1>&6
  1767. else
  1768.   cat > conftest.$ac_ext <<EOF
  1769. #line 1770 "configure"
  1770. #include "confdefs.h"
  1771. #include <$ac_hdr>
  1772. EOF
  1773. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1774. { (eval echo configure:1775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1775. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1776. if test -z "$ac_err"; then
  1777.   rm -rf conftest*
  1778.   eval "ac_cv_header_$ac_safe=yes"
  1779. else
  1780.   echo "$ac_err" >&5
  1781.   echo "configure: failed program was:" >&5
  1782.   cat conftest.$ac_ext >&5
  1783.   rm -rf conftest*
  1784.   eval "ac_cv_header_$ac_safe=no"
  1785. fi
  1786. rm -f conftest*
  1787. fi
  1788. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1789.   echo "$ac_t""yes" 1>&6
  1790.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1791.   cat >> confdefs.h <<EOF
  1792. #define $ac_tr_hdr 1
  1793. EOF
  1794.  
  1795. else
  1796.   echo "$ac_t""no" 1>&6
  1797. fi
  1798. done
  1799.  
  1800. for ac_hdr in sys/utsname.h sys/priocntl.h sys/rtpriocntl.h
  1801. do
  1802. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1803. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1804. echo "configure:1805: checking for $ac_hdr" >&5
  1805. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1806.   echo $ac_n "(cached) $ac_c" 1>&6
  1807. else
  1808.   cat > conftest.$ac_ext <<EOF
  1809. #line 1810 "configure"
  1810. #include "confdefs.h"
  1811. #include <$ac_hdr>
  1812. EOF
  1813. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1814. { (eval echo configure:1815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1815. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1816. if test -z "$ac_err"; then
  1817.   rm -rf conftest*
  1818.   eval "ac_cv_header_$ac_safe=yes"
  1819. else
  1820.   echo "$ac_err" >&5
  1821.   echo "configure: failed program was:" >&5
  1822.   cat conftest.$ac_ext >&5
  1823.   rm -rf conftest*
  1824.   eval "ac_cv_header_$ac_safe=no"
  1825. fi
  1826. rm -f conftest*
  1827. fi
  1828. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1829.   echo "$ac_t""yes" 1>&6
  1830.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1831.   cat >> confdefs.h <<EOF
  1832. #define $ac_tr_hdr 1
  1833. EOF
  1834.  
  1835. else
  1836.   echo "$ac_t""no" 1>&6
  1837. fi
  1838. done
  1839.  
  1840. for ac_hdr in sys/mtio.h sys/mman.h linux/pg.h camlib.h
  1841. do
  1842. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1843. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1844. echo "configure:1845: checking for $ac_hdr" >&5
  1845. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1846.   echo $ac_n "(cached) $ac_c" 1>&6
  1847. else
  1848.   cat > conftest.$ac_ext <<EOF
  1849. #line 1850 "configure"
  1850. #include "confdefs.h"
  1851. #include <$ac_hdr>
  1852. EOF
  1853. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1854. { (eval echo configure:1855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1855. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1856. if test -z "$ac_err"; then
  1857.   rm -rf conftest*
  1858.   eval "ac_cv_header_$ac_safe=yes"
  1859. else
  1860.   echo "$ac_err" >&5
  1861.   echo "configure: failed program was:" >&5
  1862.   cat conftest.$ac_ext >&5
  1863.   rm -rf conftest*
  1864.   eval "ac_cv_header_$ac_safe=no"
  1865. fi
  1866. rm -f conftest*
  1867. fi
  1868. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1869.   echo "$ac_t""yes" 1>&6
  1870.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1871.   cat >> confdefs.h <<EOF
  1872. #define $ac_tr_hdr 1
  1873. EOF
  1874.  
  1875. else
  1876.   echo "$ac_t""no" 1>&6
  1877. fi
  1878. done
  1879.  
  1880. for ac_hdr in sys/shm.h sys/ipc.h
  1881. do
  1882. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1883. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1884. echo "configure:1885: checking for $ac_hdr" >&5
  1885. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1886.   echo $ac_n "(cached) $ac_c" 1>&6
  1887. else
  1888.   cat > conftest.$ac_ext <<EOF
  1889. #line 1890 "configure"
  1890. #include "confdefs.h"
  1891. #include <$ac_hdr>
  1892. EOF
  1893. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1894. { (eval echo configure:1895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1895. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1896. if test -z "$ac_err"; then
  1897.   rm -rf conftest*
  1898.   eval "ac_cv_header_$ac_safe=yes"
  1899. else
  1900.   echo "$ac_err" >&5
  1901.   echo "configure: failed program was:" >&5
  1902.   cat conftest.$ac_ext >&5
  1903.   rm -rf conftest*
  1904.   eval "ac_cv_header_$ac_safe=no"
  1905. fi
  1906. rm -f conftest*
  1907. fi
  1908. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1909.   echo "$ac_t""yes" 1>&6
  1910.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1911.   cat >> confdefs.h <<EOF
  1912. #define $ac_tr_hdr 1
  1913. EOF
  1914.  
  1915. else
  1916.   echo "$ac_t""no" 1>&6
  1917. fi
  1918. done
  1919.  
  1920. for ac_hdr in sys/dkio.h sys/dklabel.h sun/dkio.h sun/dklabel.h
  1921. do
  1922. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1923. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1924. echo "configure:1925: checking for $ac_hdr" >&5
  1925. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1926.   echo $ac_n "(cached) $ac_c" 1>&6
  1927. else
  1928.   cat > conftest.$ac_ext <<EOF
  1929. #line 1930 "configure"
  1930. #include "confdefs.h"
  1931. #include <$ac_hdr>
  1932. EOF
  1933. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1934. { (eval echo configure:1935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1935. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1936. if test -z "$ac_err"; then
  1937.   rm -rf conftest*
  1938.   eval "ac_cv_header_$ac_safe=yes"
  1939. else
  1940.   echo "$ac_err" >&5
  1941.   echo "configure: failed program was:" >&5
  1942.   cat conftest.$ac_ext >&5
  1943.   rm -rf conftest*
  1944.   eval "ac_cv_header_$ac_safe=no"
  1945. fi
  1946. rm -f conftest*
  1947. fi
  1948. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1949.   echo "$ac_t""yes" 1>&6
  1950.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1951.   cat >> confdefs.h <<EOF
  1952. #define $ac_tr_hdr 1
  1953. EOF
  1954.  
  1955. else
  1956.   echo "$ac_t""no" 1>&6
  1957. fi
  1958. done
  1959.  
  1960. for ac_hdr in poll.h sys/poll.h sys/select.h
  1961. do
  1962. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1963. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1964. echo "configure:1965: checking for $ac_hdr" >&5
  1965. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1966.   echo $ac_n "(cached) $ac_c" 1>&6
  1967. else
  1968.   cat > conftest.$ac_ext <<EOF
  1969. #line 1970 "configure"
  1970. #include "confdefs.h"
  1971. #include <$ac_hdr>
  1972. EOF
  1973. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1974. { (eval echo configure:1975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1975. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1976. if test -z "$ac_err"; then
  1977.   rm -rf conftest*
  1978.   eval "ac_cv_header_$ac_safe=yes"
  1979. else
  1980.   echo "$ac_err" >&5
  1981.   echo "configure: failed program was:" >&5
  1982.   cat conftest.$ac_ext >&5
  1983.   rm -rf conftest*
  1984.   eval "ac_cv_header_$ac_safe=no"
  1985. fi
  1986. rm -f conftest*
  1987. fi
  1988. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1989.   echo "$ac_t""yes" 1>&6
  1990.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1991.   cat >> confdefs.h <<EOF
  1992. #define $ac_tr_hdr 1
  1993. EOF
  1994.  
  1995. else
  1996.   echo "$ac_t""no" 1>&6
  1997. fi
  1998. done
  1999.  
  2000. for ac_hdr in ieeefp.h fp.h
  2001. do
  2002. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2003. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2004. echo "configure:2005: checking for $ac_hdr" >&5
  2005. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2006.   echo $ac_n "(cached) $ac_c" 1>&6
  2007. else
  2008.   cat > conftest.$ac_ext <<EOF
  2009. #line 2010 "configure"
  2010. #include "confdefs.h"
  2011. #include <$ac_hdr>
  2012. EOF
  2013. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2014. { (eval echo configure:2015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2015. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2016. if test -z "$ac_err"; then
  2017.   rm -rf conftest*
  2018.   eval "ac_cv_header_$ac_safe=yes"
  2019. else
  2020.   echo "$ac_err" >&5
  2021.   echo "configure: failed program was:" >&5
  2022.   cat conftest.$ac_ext >&5
  2023.   rm -rf conftest*
  2024.   eval "ac_cv_header_$ac_safe=no"
  2025. fi
  2026. rm -f conftest*
  2027. fi
  2028. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2029.   echo "$ac_t""yes" 1>&6
  2030.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2031.   cat >> confdefs.h <<EOF
  2032. #define $ac_tr_hdr 1
  2033. EOF
  2034.  
  2035. else
  2036.   echo "$ac_t""no" 1>&6
  2037. fi
  2038. done
  2039.  
  2040. for ac_hdr in values.h float.h
  2041. do
  2042. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2043. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2044. echo "configure:2045: checking for $ac_hdr" >&5
  2045. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2046.   echo $ac_n "(cached) $ac_c" 1>&6
  2047. else
  2048.   cat > conftest.$ac_ext <<EOF
  2049. #line 2050 "configure"
  2050. #include "confdefs.h"
  2051. #include <$ac_hdr>
  2052. EOF
  2053. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2054. { (eval echo configure:2055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2055. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2056. if test -z "$ac_err"; then
  2057.   rm -rf conftest*
  2058.   eval "ac_cv_header_$ac_safe=yes"
  2059. else
  2060.   echo "$ac_err" >&5
  2061.   echo "configure: failed program was:" >&5
  2062.   cat conftest.$ac_ext >&5
  2063.   rm -rf conftest*
  2064.   eval "ac_cv_header_$ac_safe=no"
  2065. fi
  2066. rm -f conftest*
  2067. fi
  2068. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2069.   echo "$ac_t""yes" 1>&6
  2070.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2071.   cat >> confdefs.h <<EOF
  2072. #define $ac_tr_hdr 1
  2073. EOF
  2074.  
  2075. else
  2076.   echo "$ac_t""no" 1>&6
  2077. fi
  2078. done
  2079.  
  2080. for ac_hdr in bsd/dev/scsireg.h
  2081. do
  2082. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2083. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2084. echo "configure:2085: checking for $ac_hdr" >&5
  2085. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2086.   echo $ac_n "(cached) $ac_c" 1>&6
  2087. else
  2088.   cat > conftest.$ac_ext <<EOF
  2089. #line 2090 "configure"
  2090. #include "confdefs.h"
  2091. #include <$ac_hdr>
  2092. EOF
  2093. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2094. { (eval echo configure:2095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2095. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2096. if test -z "$ac_err"; then
  2097.   rm -rf conftest*
  2098.   eval "ac_cv_header_$ac_safe=yes"
  2099. else
  2100.   echo "$ac_err" >&5
  2101.   echo "configure: failed program was:" >&5
  2102.   cat conftest.$ac_ext >&5
  2103.   rm -rf conftest*
  2104.   eval "ac_cv_header_$ac_safe=no"
  2105. fi
  2106. rm -f conftest*
  2107. fi
  2108. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2109.   echo "$ac_t""yes" 1>&6
  2110.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2111.   cat >> confdefs.h <<EOF
  2112. #define $ac_tr_hdr 1
  2113. EOF
  2114.  
  2115. else
  2116.   echo "$ac_t""no" 1>&6
  2117. fi
  2118. done
  2119.  
  2120.  
  2121. echo $ac_n "checking for header file containing  major(), minor() and makedev()""... $ac_c" 1>&6
  2122. echo "configure:2123: checking for header file containing  major(), minor() and makedev()" >&5
  2123. if eval "test \"`echo '$''{'ac_cv_header_makedev'+set}'`\" = set"; then
  2124.   echo $ac_n "(cached) $ac_c" 1>&6
  2125. else
  2126.   ac_cv_header_makedev=none
  2127. cat > conftest.$ac_ext <<EOF
  2128. #line 2129 "configure"
  2129. #include "confdefs.h"
  2130. #include <sys/types.h>
  2131. #include <sys/mkdev.h>
  2132. int main() {
  2133. int i = major(0); i = minor(0); i = makedev(0,0);
  2134. ; return 0; }
  2135. EOF
  2136. if { (eval echo configure:2137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2137.   rm -rf conftest*
  2138.   ac_cv_header_makedev=sys/mkdev.h
  2139. else
  2140.   echo "configure: failed program was:" >&5
  2141.   cat conftest.$ac_ext >&5
  2142. fi
  2143. rm -f conftest*
  2144. if test $ac_cv_header_makedev = none; then
  2145.   cat > conftest.$ac_ext <<EOF
  2146. #line 2147 "configure"
  2147. #include "confdefs.h"
  2148. #include <sys/types.h>
  2149. #include <sys/sysmacros.h>
  2150. int main() {
  2151. int i = major(0); i = minor(0); i = makedev(0,0);
  2152. ; return 0; }
  2153. EOF
  2154. if { (eval echo configure:2155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2155.   rm -rf conftest*
  2156.   ac_cv_header_makedev=sys/sysmacros.h
  2157. else
  2158.   echo "configure: failed program was:" >&5
  2159.   cat conftest.$ac_ext >&5
  2160. fi
  2161. rm -f conftest*
  2162. fi
  2163. fi
  2164.  
  2165. echo "$ac_t""$ac_cv_header_makedev" 1>&6
  2166. if test $ac_cv_header_makedev = sys/mkdev.h; then
  2167.   cat >> confdefs.h <<\EOF
  2168. #define MAJOR_IN_MKDEV 1
  2169. EOF
  2170.  
  2171. fi
  2172. if test $ac_cv_header_makedev = sys/sysmacros.h; then
  2173.   cat >> confdefs.h <<\EOF
  2174. #define MAJOR_IN_SYSMACROS 1
  2175. EOF
  2176.  
  2177. fi
  2178.  
  2179.  
  2180. echo $ac_n "checking bits in minor device number""... $ac_c" 1>&6
  2181. echo "configure:2182: checking bits in minor device number" >&5
  2182. if eval "test \"`echo '$''{'ac_cv_dev_minor_bits'+set}'`\" = set"; then
  2183.   echo $ac_n "(cached) $ac_c" 1>&6
  2184. else
  2185.   if test "$cross_compiling" = yes; then
  2186.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  2187. else
  2188.   cat > conftest.$ac_ext <<EOF
  2189. #line 2190 "configure"
  2190. #include "confdefs.h"
  2191. #include <stdio.h>
  2192. #include <sys/types.h>
  2193. #ifdef major
  2194. #    define _FOUND_MAJOR_
  2195. #endif
  2196.  
  2197. #ifdef MAJOR_IN_MKDEV
  2198. #    include <sys/mkdev.h>
  2199. #    define _FOUND_MAJOR_
  2200. #endif
  2201.  
  2202. #ifndef _FOUND_MAJOR_
  2203. #    ifdef MAJOR_IN_SYSMACROS
  2204. #        include <sys/sysmacros.h>
  2205. #        define _FOUND_MAJOR_
  2206. #    endif
  2207. #endif
  2208.  
  2209. #ifndef _FOUND_MAJOR_
  2210. #    if defined(hpux) || defined(__hpux__) || defined(__hpux)
  2211. #        include <sys/mknod.h>
  2212. #        define _FOUND_MAJOR_
  2213. #    endif
  2214. #endif
  2215.  
  2216. #ifndef _FOUND_MAJOR_
  2217. #    define major(dev)        (((dev) >> 8) & 0xFF)
  2218. #    define minor(dev)        ((dev) & 0xFF)
  2219. #    define makedev(majo, mino)    (((majo) << 8) | (mino))
  2220. #endif
  2221. int
  2222. main()
  2223. {
  2224.     long    l = 1;
  2225.     int    i;
  2226.     int    m;
  2227.     int    c = 0;
  2228.     FILE    *f=fopen("conftestval", "w");
  2229.  
  2230.     if (!f) exit(1);
  2231.  
  2232.     for (i=1, m=0; i <= 32; i++, l<<=1) {
  2233.         if (minor(l) == 0 && c == 0)
  2234.             c = m;
  2235.         if (minor(l) != 0)
  2236.             m = i;
  2237.     }
  2238.     fprintf(f, "%d\n", m);
  2239.     exit(0);
  2240. }
  2241. EOF
  2242. if { (eval echo configure:2243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2243. then
  2244.   ac_cv_dev_minor_bits=`cat conftestval`
  2245. else
  2246.   echo "configure: failed program was:" >&5
  2247.   cat conftest.$ac_ext >&5
  2248.   rm -fr conftest*
  2249.   ac_cv_dev_minor_bits=0
  2250. fi
  2251. rm -fr conftest*
  2252. fi
  2253.  
  2254. fi
  2255. echo "$ac_t""$ac_cv_dev_minor_bits" 1>&6
  2256. cat >> confdefs.h <<EOF
  2257. #define DEV_MINOR_BITS $ac_cv_dev_minor_bits
  2258. EOF
  2259.  
  2260.  
  2261. echo $ac_n "checking whether bits in minor device numbers are non contiguous""... $ac_c" 1>&6
  2262. echo "configure:2263: checking whether bits in minor device numbers are non contiguous" >&5
  2263. if eval "test \"`echo '$''{'ac_cv_dev_minor_noncontig'+set}'`\" = set"; then
  2264.   echo $ac_n "(cached) $ac_c" 1>&6
  2265. else
  2266.   if test "$cross_compiling" = yes; then
  2267.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  2268. else
  2269.   cat > conftest.$ac_ext <<EOF
  2270. #line 2271 "configure"
  2271. #include "confdefs.h"
  2272.  
  2273. #include <sys/types.h>
  2274. #ifdef major
  2275. #    define _FOUND_MAJOR_
  2276. #endif
  2277.  
  2278. #ifdef MAJOR_IN_MKDEV
  2279. #    include <sys/mkdev.h>
  2280. #    define _FOUND_MAJOR_
  2281. #endif
  2282.  
  2283. #ifndef _FOUND_MAJOR_
  2284. #    ifdef MAJOR_IN_SYSMACROS
  2285. #        include <sys/sysmacros.h>
  2286. #        define _FOUND_MAJOR_
  2287. #    endif
  2288. #endif
  2289.  
  2290. #ifndef _FOUND_MAJOR_
  2291. #    if defined(hpux) || defined(__hpux__) || defined(__hpux)
  2292. #        include <sys/mknod.h>
  2293. #        define _FOUND_MAJOR_
  2294. #    endif
  2295. #endif
  2296.  
  2297. #ifndef _FOUND_MAJOR_
  2298. #    define major(dev)        (((dev) >> 8) & 0xFF)
  2299. #    define minor(dev)        ((dev) & 0xFF)
  2300. #    define makedev(majo, mino)    (((majo) << 8) | (mino))
  2301. #endif
  2302. int
  2303. main()
  2304. {
  2305.     long    l = 1;
  2306.     int    i;
  2307.     int    m;
  2308.     int    c = 0;
  2309.  
  2310.     for (i=1, m=0; i <= 32; i++, l<<=1) {
  2311.         if (minor(l) == 0 && c == 0)
  2312.             c = m;
  2313.         if (minor(l) != 0)
  2314.             m = i;
  2315.     }
  2316. exit (m == c);}
  2317. EOF
  2318. if { (eval echo configure:2319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2319. then
  2320.   ac_cv_dev_minor_noncontig=yes
  2321. else
  2322.   echo "configure: failed program was:" >&5
  2323.   cat conftest.$ac_ext >&5
  2324.   rm -fr conftest*
  2325.   ac_cv_dev_minor_noncontig=no
  2326. fi
  2327. rm -fr conftest*
  2328. fi
  2329.  
  2330. fi
  2331.  
  2332. echo "$ac_t""$ac_cv_dev_minor_noncontig" 1>&6
  2333. if test $ac_cv_dev_minor_noncontig = yes; then
  2334.   cat >> confdefs.h <<\EOF
  2335. #define DEV_MINOR_NONCONTIG 1
  2336. EOF
  2337.  
  2338. fi
  2339.  
  2340. echo $ac_n "checking for _filbuf()""... $ac_c" 1>&6
  2341. echo "configure:2342: checking for _filbuf()" >&5
  2342. if eval "test \"`echo '$''{'ac_cv_header__filbuf'+set}'`\" = set"; then
  2343.   echo $ac_n "(cached) $ac_c" 1>&6
  2344. else
  2345.   cat > conftest.$ac_ext <<EOF
  2346. #line 2347 "configure"
  2347. #include "confdefs.h"
  2348. #include <stdio.h>
  2349. int main() {
  2350. FILE    *f;
  2351. int     flag;
  2352. int     count;
  2353. char    *ptr;
  2354. char    c = 0;
  2355. f = fopen("confdefs.h", "r");
  2356. _filbuf(f);
  2357. _flsbuf(c, f);
  2358. flag  = f->_flag & _IONBF;
  2359. flag |= f->_flag & _IOERR;
  2360. flag |= f->_flag & _IOEOF;
  2361. count = f->_cnt;
  2362. ptr = (char *)f->_ptr;
  2363. fclose(f);
  2364. ; return 0; }
  2365. EOF
  2366. if { (eval echo configure:2367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2367.   rm -rf conftest*
  2368.   ac_cv_header__filbuf=yes
  2369. else
  2370.   echo "configure: failed program was:" >&5
  2371.   cat conftest.$ac_ext >&5
  2372.   rm -rf conftest*
  2373.   ac_cv_header__filbuf=no
  2374. fi
  2375. rm -f conftest*
  2376. fi
  2377.  
  2378. echo "$ac_t""$ac_cv_header__filbuf" 1>&6
  2379. if test $ac_cv_header__filbuf = yes; then
  2380.   cat >> confdefs.h <<\EOF
  2381. #define HAVE__FILBUF 1
  2382. EOF
  2383.  
  2384. fi
  2385. echo $ac_n "checking for __filbuf()""... $ac_c" 1>&6
  2386. echo "configure:2387: checking for __filbuf()" >&5
  2387. if eval "test \"`echo '$''{'ac_cv_header___filbuf'+set}'`\" = set"; then
  2388.   echo $ac_n "(cached) $ac_c" 1>&6
  2389. else
  2390.   cat > conftest.$ac_ext <<EOF
  2391. #line 2392 "configure"
  2392. #include "confdefs.h"
  2393. #include <stdio.h>
  2394. int main() {
  2395. FILE    *f;
  2396. int     flag;
  2397. int     count;
  2398. char    *ptr;
  2399. char    c = 0;
  2400. f = fopen("confdefs.h", "r");
  2401. __filbuf(f);
  2402. __flsbuf(c, f);
  2403. flag  = f->_flag & _IONBF;
  2404. flag |= f->_flag & _IOERR;
  2405. flag |= f->_flag & _IOEOF;
  2406. count = f->_cnt;
  2407. ptr = (char *)f->_ptr;
  2408. fclose(f);
  2409. ; return 0; }
  2410. EOF
  2411. if { (eval echo configure:2412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2412.   rm -rf conftest*
  2413.   ac_cv_header___filbuf=yes
  2414. else
  2415.   echo "configure: failed program was:" >&5
  2416.   cat conftest.$ac_ext >&5
  2417.   rm -rf conftest*
  2418.   ac_cv_header___filbuf=no
  2419. fi
  2420. rm -f conftest*
  2421. fi
  2422.  
  2423. echo "$ac_t""$ac_cv_header___filbuf" 1>&6
  2424. if test $ac_cv_header___filbuf = yes; then
  2425.   cat >> confdefs.h <<\EOF
  2426. #define HAVE___FILBUF 1
  2427. EOF
  2428.  
  2429. fi
  2430. echo $ac_n "checking for USG derived STDIO""... $ac_c" 1>&6
  2431. echo "configure:2432: checking for USG derived STDIO" >&5
  2432. if eval "test \"`echo '$''{'ac_cv_header_usg_stdio'+set}'`\" = set"; then
  2433.   echo $ac_n "(cached) $ac_c" 1>&6
  2434. else
  2435.   cat > conftest.$ac_ext <<EOF
  2436. #line 2437 "configure"
  2437. #include "confdefs.h"
  2438. #include <stdio.h>
  2439. int main() {
  2440. FILE    *f;
  2441. int     flag;
  2442. int     count;
  2443. char    *ptr;
  2444. char    c = 0;
  2445. f = fopen("confdefs.h", "r");
  2446. #ifdef    HAVE___FILBUF
  2447. __filbuf(f);
  2448. __flsbuf(c, f);
  2449. #else
  2450. #    ifdef    HAVE__FILBUF
  2451. _filbuf(f);
  2452. _flsbuf(c, f);
  2453. #    else
  2454. no filbuf()
  2455. #    endif
  2456. #endif
  2457. flag  = f->_flag & _IONBF;
  2458. flag |= f->_flag & _IOERR;
  2459. flag |= f->_flag & _IOEOF;
  2460. count = f->_cnt;
  2461. ptr = (char *)f->_ptr;
  2462. fclose(f);
  2463. ; return 0; }
  2464. EOF
  2465. if { (eval echo configure:2466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2466.   rm -rf conftest*
  2467.   ac_cv_header_usg_stdio=yes
  2468. else
  2469.   echo "configure: failed program was:" >&5
  2470.   cat conftest.$ac_ext >&5
  2471.   rm -rf conftest*
  2472.   ac_cv_header_usg_stdio=no
  2473. fi
  2474. rm -f conftest*
  2475. fi
  2476.  
  2477. echo "$ac_t""$ac_cv_header_usg_stdio" 1>&6
  2478. if test $ac_cv_header_usg_stdio = yes; then
  2479.   cat >> confdefs.h <<\EOF
  2480. #define HAVE_USG_STDIO 1
  2481. EOF
  2482.  
  2483. fi
  2484. echo $ac_n "checking for errno definition in errno.h""... $ac_c" 1>&6
  2485. echo "configure:2486: checking for errno definition in errno.h" >&5
  2486. if eval "test \"`echo '$''{'ac_cv_header_errno_def'+set}'`\" = set"; then
  2487.   echo $ac_n "(cached) $ac_c" 1>&6
  2488. else
  2489.   cat > conftest.$ac_ext <<EOF
  2490. #line 2491 "configure"
  2491. #include "confdefs.h"
  2492. #include <errno.h>
  2493. int main() {
  2494. errno = 0;
  2495. ; return 0; }
  2496. EOF
  2497. if { (eval echo configure:2498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2498.   rm -rf conftest*
  2499.   ac_cv_header_errno_def=yes
  2500. else
  2501.   echo "configure: failed program was:" >&5
  2502.   cat conftest.$ac_ext >&5
  2503.   rm -rf conftest*
  2504.   ac_cv_header_errno_def=no
  2505. fi
  2506. rm -f conftest*
  2507. fi
  2508.  
  2509. echo "$ac_t""$ac_cv_header_errno_def" 1>&6
  2510. if test $ac_cv_header_errno_def = yes; then
  2511.   cat >> confdefs.h <<\EOF
  2512. #define HAVE_ERRNO_DEF 1
  2513. EOF
  2514.  
  2515. fi
  2516.  
  2517. echo $ac_n "checking for working const""... $ac_c" 1>&6
  2518. echo "configure:2519: checking for working const" >&5
  2519. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  2520.   echo $ac_n "(cached) $ac_c" 1>&6
  2521. else
  2522.   cat > conftest.$ac_ext <<EOF
  2523. #line 2524 "configure"
  2524. #include "confdefs.h"
  2525.  
  2526. int main() {
  2527.  
  2528. /* Ultrix mips cc rejects this.  */
  2529. typedef int charset[2]; const charset x;
  2530. /* SunOS 4.1.1 cc rejects this.  */
  2531. char const *const *ccp;
  2532. char **p;
  2533. /* NEC SVR4.0.2 mips cc rejects this.  */
  2534. struct point {int x, y;};
  2535. static struct point const zero = {0,0};
  2536. /* AIX XL C 1.02.0.0 rejects this.
  2537.    It does not let you subtract one const X* pointer from another in an arm
  2538.    of an if-expression whose if-part is not a constant expression */
  2539. const char *g = "string";
  2540. ccp = &g + (g ? g-g : 0);
  2541. /* HPUX 7.0 cc rejects these. */
  2542. ++ccp;
  2543. p = (char**) ccp;
  2544. ccp = (char const *const *) p;
  2545. { /* SCO 3.2v4 cc rejects this.  */
  2546.   char *t;
  2547.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  2548.  
  2549.   *t++ = 0;
  2550. }
  2551. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  2552.   int x[] = {25, 17};
  2553.   const int *foo = &x[0];
  2554.   ++foo;
  2555. }
  2556. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  2557.   typedef const int *iptr;
  2558.   iptr p = 0;
  2559.   ++p;
  2560. }
  2561. { /* AIX XL C 1.02.0.0 rejects this saying
  2562.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  2563.   struct s { int j; const int *ap[3]; };
  2564.   struct s *b; b->j = 5;
  2565. }
  2566. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  2567.   const int foo = 10;
  2568. }
  2569.  
  2570. ; return 0; }
  2571. EOF
  2572. if { (eval echo configure:2573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2573.   rm -rf conftest*
  2574.   ac_cv_c_const=yes
  2575. else
  2576.   echo "configure: failed program was:" >&5
  2577.   cat conftest.$ac_ext >&5
  2578.   rm -rf conftest*
  2579.   ac_cv_c_const=no
  2580. fi
  2581. rm -f conftest*
  2582. fi
  2583.  
  2584. echo "$ac_t""$ac_cv_c_const" 1>&6
  2585. if test $ac_cv_c_const = no; then
  2586.   cat >> confdefs.h <<\EOF
  2587. #define const 
  2588. EOF
  2589.  
  2590. fi
  2591.  
  2592. echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
  2593. echo "configure:2594: checking whether byte ordering is bigendian" >&5
  2594. if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
  2595.   echo $ac_n "(cached) $ac_c" 1>&6
  2596. else
  2597.   ac_cv_c_bigendian=unknown
  2598. # See if sys/param.h defines the BYTE_ORDER macro.
  2599. cat > conftest.$ac_ext <<EOF
  2600. #line 2601 "configure"
  2601. #include "confdefs.h"
  2602. #include <sys/types.h>
  2603. #include <sys/param.h>
  2604. int main() {
  2605.  
  2606. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  2607.  bogus endian macros
  2608. #endif
  2609. ; return 0; }
  2610. EOF
  2611. if { (eval echo configure:2612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2612.   rm -rf conftest*
  2613.   # It does; now see whether it defined to BIG_ENDIAN or not.
  2614. cat > conftest.$ac_ext <<EOF
  2615. #line 2616 "configure"
  2616. #include "confdefs.h"
  2617. #include <sys/types.h>
  2618. #include <sys/param.h>
  2619. int main() {
  2620.  
  2621. #if BYTE_ORDER != BIG_ENDIAN
  2622.  not big endian
  2623. #endif
  2624. ; return 0; }
  2625. EOF
  2626. if { (eval echo configure:2627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2627.   rm -rf conftest*
  2628.   ac_cv_c_bigendian=yes
  2629. else
  2630.   echo "configure: failed program was:" >&5
  2631.   cat conftest.$ac_ext >&5
  2632.   rm -rf conftest*
  2633.   ac_cv_c_bigendian=no
  2634. fi
  2635. rm -f conftest*
  2636. else
  2637.   echo "configure: failed program was:" >&5
  2638.   cat conftest.$ac_ext >&5
  2639. fi
  2640. rm -f conftest*
  2641. if test $ac_cv_c_bigendian = unknown; then
  2642. if test "$cross_compiling" = yes; then
  2643.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  2644. else
  2645.   cat > conftest.$ac_ext <<EOF
  2646. #line 2647 "configure"
  2647. #include "confdefs.h"
  2648. main () {
  2649.   /* Are we little or big endian?  From Harbison&Steele.  */
  2650.   union
  2651.   {
  2652.     long l;
  2653.     char c[sizeof (long)];
  2654.   } u;
  2655.   u.l = 1;
  2656.   exit (u.c[sizeof (long) - 1] == 1);
  2657. }
  2658. EOF
  2659. if { (eval echo configure:2660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2660. then
  2661.   ac_cv_c_bigendian=no
  2662. else
  2663.   echo "configure: failed program was:" >&5
  2664.   cat conftest.$ac_ext >&5
  2665.   rm -fr conftest*
  2666.   ac_cv_c_bigendian=yes
  2667. fi
  2668. rm -fr conftest*
  2669. fi
  2670.  
  2671. fi
  2672. fi
  2673.  
  2674. echo "$ac_t""$ac_cv_c_bigendian" 1>&6
  2675. if test $ac_cv_c_bigendian = yes; then
  2676.   cat >> confdefs.h <<\EOF
  2677. #define WORDS_BIGENDIAN 1
  2678. EOF
  2679.  
  2680. fi
  2681.  
  2682. echo $ac_n "checking whether bitorder in bitfields is htol""... $ac_c" 1>&6
  2683. echo "configure:2684: checking whether bitorder in bitfields is htol" >&5
  2684. if eval "test \"`echo '$''{'ac_cv_c_bitfields_htol'+set}'`\" = set"; then
  2685.   echo $ac_n "(cached) $ac_c" 1>&6
  2686. else
  2687.   if test "$cross_compiling" = yes; then
  2688.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  2689. else
  2690.   cat > conftest.$ac_ext <<EOF
  2691. #line 2692 "configure"
  2692. #include "confdefs.h"
  2693.  
  2694. struct {
  2695.     unsigned char    x1:4;
  2696.     unsigned char    x2:4;
  2697. } a;
  2698. int
  2699. main()
  2700. {
  2701. char    *cp;
  2702.  
  2703. cp = (char *)&a;
  2704. *cp = 0x12;
  2705. exit(a.x1 == 2);}
  2706. EOF
  2707. if { (eval echo configure:2708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2708. then
  2709.   ac_cv_c_bitfields_htol=yes
  2710. else
  2711.   echo "configure: failed program was:" >&5
  2712.   cat conftest.$ac_ext >&5
  2713.   rm -fr conftest*
  2714.   ac_cv_c_bitfields_htol=no
  2715. fi
  2716. rm -fr conftest*
  2717. fi
  2718.  
  2719. fi
  2720.  
  2721. echo "$ac_t""$ac_cv_c_bitfields_htol" 1>&6
  2722. if test $ac_cv_c_bitfields_htol = yes; then
  2723.   cat >> confdefs.h <<\EOF
  2724. #define BITFIELDS_HTOL 1
  2725. EOF
  2726.  
  2727. fi
  2728. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  2729. echo "configure:2730: checking return type of signal handlers" >&5
  2730. if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  2731.   echo $ac_n "(cached) $ac_c" 1>&6
  2732. else
  2733.   cat > conftest.$ac_ext <<EOF
  2734. #line 2735 "configure"
  2735. #include "confdefs.h"
  2736. #include <sys/types.h>
  2737. #include <signal.h>
  2738. #ifdef signal
  2739. #undef signal
  2740. #endif
  2741. #ifdef __cplusplus
  2742. extern "C" void (*signal (int, void (*)(int)))(int);
  2743. #else
  2744. void (*signal ()) ();
  2745. #endif
  2746.  
  2747. int main() {
  2748. int i;
  2749. ; return 0; }
  2750. EOF
  2751. if { (eval echo configure:2752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2752.   rm -rf conftest*
  2753.   ac_cv_type_signal=void
  2754. else
  2755.   echo "configure: failed program was:" >&5
  2756.   cat conftest.$ac_ext >&5
  2757.   rm -rf conftest*
  2758.   ac_cv_type_signal=int
  2759. fi
  2760. rm -f conftest*
  2761. fi
  2762.  
  2763. echo "$ac_t""$ac_cv_type_signal" 1>&6
  2764. cat >> confdefs.h <<EOF
  2765. #define RETSIGTYPE $ac_cv_type_signal
  2766. EOF
  2767.  
  2768.  
  2769. echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
  2770. echo "configure:2771: checking for uid_t in sys/types.h" >&5
  2771. if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
  2772.   echo $ac_n "(cached) $ac_c" 1>&6
  2773. else
  2774.   cat > conftest.$ac_ext <<EOF
  2775. #line 2776 "configure"
  2776. #include "confdefs.h"
  2777. #include <sys/types.h>
  2778. EOF
  2779. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2780.   egrep "uid_t" >/dev/null 2>&1; then
  2781.   rm -rf conftest*
  2782.   ac_cv_type_uid_t=yes
  2783. else
  2784.   rm -rf conftest*
  2785.   ac_cv_type_uid_t=no
  2786. fi
  2787. rm -f conftest*
  2788.  
  2789. fi
  2790.  
  2791. echo "$ac_t""$ac_cv_type_uid_t" 1>&6
  2792. if test $ac_cv_type_uid_t = no; then
  2793.   cat >> confdefs.h <<\EOF
  2794. #define uid_t int
  2795. EOF
  2796.  
  2797.   cat >> confdefs.h <<\EOF
  2798. #define gid_t int
  2799. EOF
  2800.  
  2801. fi
  2802.  
  2803. echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
  2804. echo "configure:2805: checking type of array argument to getgroups" >&5
  2805. if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
  2806.   echo $ac_n "(cached) $ac_c" 1>&6
  2807. else
  2808.   if test "$cross_compiling" = yes; then
  2809.   ac_cv_type_getgroups=cross
  2810. else
  2811.   cat > conftest.$ac_ext <<EOF
  2812. #line 2813 "configure"
  2813. #include "confdefs.h"
  2814.  
  2815. /* Thanks to Mike Rendell for this test.  */
  2816. #include <sys/types.h>
  2817. #define NGID 256
  2818. #undef MAX
  2819. #define MAX(x, y) ((x) > (y) ? (x) : (y))
  2820. main()
  2821. {
  2822.   gid_t gidset[NGID];
  2823.   int i, n;
  2824.   union { gid_t gval; long lval; }  val;
  2825.  
  2826.   val.lval = -1;
  2827.   for (i = 0; i < NGID; i++)
  2828.     gidset[i] = val.gval;
  2829.   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
  2830.                  gidset);
  2831.   /* Exit non-zero if getgroups seems to require an array of ints.  This
  2832.      happens when gid_t is short but getgroups modifies an array of ints.  */
  2833.   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
  2834. }
  2835.  
  2836. EOF
  2837. if { (eval echo configure:2838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2838. then
  2839.     ac_cv_type_getgroups=gid_t
  2840. else
  2841.   echo "configure: failed program was:" >&5
  2842.   cat conftest.$ac_ext >&5
  2843.   rm -fr conftest*
  2844.   ac_cv_type_getgroups=int
  2845. fi
  2846. rm -fr conftest*
  2847. fi
  2848.  
  2849. if test $ac_cv_type_getgroups = cross; then
  2850.         cat > conftest.$ac_ext <<EOF
  2851. #line 2852 "configure"
  2852. #include "confdefs.h"
  2853. #include <unistd.h>
  2854. EOF
  2855. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2856.   egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
  2857.   rm -rf conftest*
  2858.   ac_cv_type_getgroups=gid_t
  2859. else
  2860.   rm -rf conftest*
  2861.   ac_cv_type_getgroups=int
  2862. fi
  2863. rm -f conftest*
  2864.  
  2865. fi
  2866. fi
  2867.  
  2868. echo "$ac_t""$ac_cv_type_getgroups" 1>&6
  2869. cat >> confdefs.h <<EOF
  2870. #define GETGROUPS_T $ac_cv_type_getgroups
  2871. EOF
  2872.  
  2873.  
  2874. echo $ac_n "checking for type long long""... $ac_c" 1>&6
  2875. echo "configure:2876: checking for type long long" >&5
  2876. if eval "test \"`echo '$''{'ac_cv_type_longlong'+set}'`\" = set"; then
  2877.   echo $ac_n "(cached) $ac_c" 1>&6
  2878. else
  2879.   cat > conftest.$ac_ext <<EOF
  2880. #line 2881 "configure"
  2881. #include "confdefs.h"
  2882.  
  2883. int main() {
  2884. long long i;
  2885. ; return 0; }
  2886. EOF
  2887. if { (eval echo configure:2888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2888.   rm -rf conftest*
  2889.   ac_cv_type_longlong=yes
  2890. else
  2891.   echo "configure: failed program was:" >&5
  2892.   cat conftest.$ac_ext >&5
  2893.   rm -rf conftest*
  2894.   ac_cv_type_longlong=no
  2895. fi
  2896. rm -f conftest*
  2897. fi
  2898.  
  2899. echo "$ac_t""$ac_cv_type_longlong" 1>&6
  2900. if test $ac_cv_type_longlong = yes; then
  2901.   cat >> confdefs.h <<\EOF
  2902. #define HAVE_LONGLONG 1
  2903. EOF
  2904.  
  2905. fi
  2906. echo $ac_n "checking for prototypes""... $ac_c" 1>&6
  2907. echo "configure:2908: checking for prototypes" >&5
  2908. if eval "test \"`echo '$''{'ac_cv_type_prototypes'+set}'`\" = set"; then
  2909.   echo $ac_n "(cached) $ac_c" 1>&6
  2910. else
  2911.   if test "$cross_compiling" = yes; then
  2912.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  2913. else
  2914.   cat > conftest.$ac_ext <<EOF
  2915. #line 2916 "configure"
  2916. #include "confdefs.h"
  2917.  
  2918. doit(int i, ...)
  2919. {return 0;}
  2920. int
  2921. main(int ac, char *av[])
  2922. { doit(1, 2, 3);
  2923. exit(0);}
  2924. EOF
  2925. if { (eval echo configure:2926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2926. then
  2927.   ac_cv_type_prototypes=yes
  2928. else
  2929.   echo "configure: failed program was:" >&5
  2930.   cat conftest.$ac_ext >&5
  2931.   rm -fr conftest*
  2932.   ac_cv_type_prototypes=no
  2933. fi
  2934. rm -fr conftest*
  2935. fi
  2936.  
  2937. fi
  2938.  
  2939. echo "$ac_t""$ac_cv_type_prototypes" 1>&6
  2940. if test $ac_cv_type_prototypes = yes; then
  2941.   cat >> confdefs.h <<\EOF
  2942. #define PROTOTYPES 1
  2943. EOF
  2944.  
  2945. fi
  2946. echo $ac_n "checking if we may not define our own malloc()""... $ac_c" 1>&6
  2947. echo "configure:2948: checking if we may not define our own malloc()" >&5
  2948. if eval "test \"`echo '$''{'ac_cv_no_user_malloc'+set}'`\" = set"; then
  2949.   echo $ac_n "(cached) $ac_c" 1>&6
  2950. else
  2951.   cat > conftest.$ac_ext <<EOF
  2952. #line 2953 "configure"
  2953. #include "confdefs.h"
  2954.  
  2955. char * malloc(x)
  2956.     int     x; 
  2957. {
  2958.     return ((char *)0);
  2959. }
  2960. int main() {
  2961.  
  2962. ; return 0; }
  2963. EOF
  2964. if { (eval echo configure:2965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2965.   rm -rf conftest*
  2966.   ac_cv_no_user_malloc=no
  2967. else
  2968.   echo "configure: failed program was:" >&5
  2969.   cat conftest.$ac_ext >&5
  2970.   rm -rf conftest*
  2971.   ac_cv_no_user_malloc=yes
  2972. fi
  2973. rm -f conftest*
  2974. fi
  2975.  
  2976. echo "$ac_t""$ac_cv_no_user_malloc" 1>&6
  2977. if test $ac_cv_no_user_malloc = yes; then
  2978.   cat >> confdefs.h <<\EOF
  2979. #define NO_USER_MALLOC 1
  2980. EOF
  2981.  
  2982. fi
  2983.  
  2984. echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
  2985. echo "configure:2986: checking for uid_t in sys/types.h" >&5
  2986. if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
  2987.   echo $ac_n "(cached) $ac_c" 1>&6
  2988. else
  2989.   cat > conftest.$ac_ext <<EOF
  2990. #line 2991 "configure"
  2991. #include "confdefs.h"
  2992. #include <sys/types.h>
  2993. EOF
  2994. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2995.   egrep "uid_t" >/dev/null 2>&1; then
  2996.   rm -rf conftest*
  2997.   ac_cv_type_uid_t=yes
  2998. else
  2999.   rm -rf conftest*
  3000.   ac_cv_type_uid_t=no
  3001. fi
  3002. rm -f conftest*
  3003.  
  3004. fi
  3005.  
  3006. echo "$ac_t""$ac_cv_type_uid_t" 1>&6
  3007. if test $ac_cv_type_uid_t = no; then
  3008.   cat >> confdefs.h <<\EOF
  3009. #define uid_t int
  3010. EOF
  3011.  
  3012.   cat >> confdefs.h <<\EOF
  3013. #define gid_t int
  3014. EOF
  3015.  
  3016. fi
  3017.  
  3018. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  3019. echo "configure:3020: checking for size_t" >&5
  3020. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  3021.   echo $ac_n "(cached) $ac_c" 1>&6
  3022. else
  3023.   cat > conftest.$ac_ext <<EOF
  3024. #line 3025 "configure"
  3025. #include "confdefs.h"
  3026. #include <sys/types.h>
  3027. #if STDC_HEADERS
  3028. #include <stdlib.h>
  3029. #include <stddef.h>
  3030. #endif
  3031. EOF
  3032. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3033.   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  3034.   rm -rf conftest*
  3035.   ac_cv_type_size_t=yes
  3036. else
  3037.   rm -rf conftest*
  3038.   ac_cv_type_size_t=no
  3039. fi
  3040. rm -f conftest*
  3041.  
  3042. fi
  3043. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  3044. if test $ac_cv_type_size_t = no; then
  3045.   cat >> confdefs.h <<\EOF
  3046. #define size_t unsigned
  3047. EOF
  3048.  
  3049. fi
  3050.  
  3051. echo $ac_n "checking for pid_t""... $ac_c" 1>&6
  3052. echo "configure:3053: checking for pid_t" >&5
  3053. if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
  3054.   echo $ac_n "(cached) $ac_c" 1>&6
  3055. else
  3056.   cat > conftest.$ac_ext <<EOF
  3057. #line 3058 "configure"
  3058. #include "confdefs.h"
  3059. #include <sys/types.h>
  3060. #if STDC_HEADERS
  3061. #include <stdlib.h>
  3062. #include <stddef.h>
  3063. #endif
  3064. EOF
  3065. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3066.   egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  3067.   rm -rf conftest*
  3068.   ac_cv_type_pid_t=yes
  3069. else
  3070.   rm -rf conftest*
  3071.   ac_cv_type_pid_t=no
  3072. fi
  3073. rm -f conftest*
  3074.  
  3075. fi
  3076. echo "$ac_t""$ac_cv_type_pid_t" 1>&6
  3077. if test $ac_cv_type_pid_t = no; then
  3078.   cat >> confdefs.h <<\EOF
  3079. #define pid_t int
  3080. EOF
  3081.  
  3082. fi
  3083.  
  3084. echo $ac_n "checking for off_t""... $ac_c" 1>&6
  3085. echo "configure:3086: checking for off_t" >&5
  3086. if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
  3087.   echo $ac_n "(cached) $ac_c" 1>&6
  3088. else
  3089.   cat > conftest.$ac_ext <<EOF
  3090. #line 3091 "configure"
  3091. #include "confdefs.h"
  3092. #include <sys/types.h>
  3093. #if STDC_HEADERS
  3094. #include <stdlib.h>
  3095. #include <stddef.h>
  3096. #endif
  3097. EOF
  3098. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3099.   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  3100.   rm -rf conftest*
  3101.   ac_cv_type_off_t=yes
  3102. else
  3103.   rm -rf conftest*
  3104.   ac_cv_type_off_t=no
  3105. fi
  3106. rm -f conftest*
  3107.  
  3108. fi
  3109. echo "$ac_t""$ac_cv_type_off_t" 1>&6
  3110. if test $ac_cv_type_off_t = no; then
  3111.   cat >> confdefs.h <<\EOF
  3112. #define off_t long
  3113. EOF
  3114.  
  3115. fi
  3116.  
  3117. echo $ac_n "checking for mode_t""... $ac_c" 1>&6
  3118. echo "configure:3119: checking for mode_t" >&5
  3119. if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
  3120.   echo $ac_n "(cached) $ac_c" 1>&6
  3121. else
  3122.   cat > conftest.$ac_ext <<EOF
  3123. #line 3124 "configure"
  3124. #include "confdefs.h"
  3125. #include <sys/types.h>
  3126. #if STDC_HEADERS
  3127. #include <stdlib.h>
  3128. #include <stddef.h>
  3129. #endif
  3130. EOF
  3131. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3132.   egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  3133.   rm -rf conftest*
  3134.   ac_cv_type_mode_t=yes
  3135. else
  3136.   rm -rf conftest*
  3137.   ac_cv_type_mode_t=no
  3138. fi
  3139. rm -f conftest*
  3140.  
  3141. fi
  3142. echo "$ac_t""$ac_cv_type_mode_t" 1>&6
  3143. if test $ac_cv_type_mode_t = no; then
  3144.   cat >> confdefs.h <<\EOF
  3145. #define mode_t int
  3146. EOF
  3147.  
  3148. fi
  3149.  
  3150. echo $ac_n "checking for time_t""... $ac_c" 1>&6
  3151. echo "configure:3152: checking for time_t" >&5
  3152. if eval "test \"`echo '$''{'ac_cv_type_time_t'+set}'`\" = set"; then
  3153.   echo $ac_n "(cached) $ac_c" 1>&6
  3154. else
  3155.   cat > conftest.$ac_ext <<EOF
  3156. #line 3157 "configure"
  3157. #include "confdefs.h"
  3158.  
  3159. #include <sys/types.h>
  3160. #ifdef    TIME_WITH_SYS_TIME_H
  3161. #    include <sys/time.h>
  3162. #    include <time.h>
  3163. #else
  3164. #ifdef    HAVE_SYS_TIME_H
  3165. #    include <sys/time.h>
  3166. #else
  3167. #    include <time.h>
  3168. #endif
  3169. #endif
  3170. int main() {
  3171. time_t t;
  3172. ; return 0; }
  3173. EOF
  3174. if { (eval echo configure:3175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3175.   rm -rf conftest*
  3176.   ac_cv_type_time_t=yes
  3177. else
  3178.   echo "configure: failed program was:" >&5
  3179.   cat conftest.$ac_ext >&5
  3180.   rm -rf conftest*
  3181.   ac_cv_type_time_t=no
  3182. fi
  3183. rm -f conftest*
  3184. fi
  3185.  
  3186. echo "$ac_t""$ac_cv_type_time_t" 1>&6
  3187. if test $ac_cv_type_time_t = no; then
  3188.   cat >> confdefs.h <<\EOF
  3189. #define time_t long
  3190. EOF
  3191.  
  3192. fi
  3193. echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
  3194. echo "configure:3195: checking for caddr_t" >&5
  3195. if eval "test \"`echo '$''{'ac_cv_type_caddr_t'+set}'`\" = set"; then
  3196.   echo $ac_n "(cached) $ac_c" 1>&6
  3197. else
  3198.   cat > conftest.$ac_ext <<EOF
  3199. #line 3200 "configure"
  3200. #include "confdefs.h"
  3201. #include <sys/types.h>
  3202. #if STDC_HEADERS
  3203. #include <stdlib.h>
  3204. #include <stddef.h>
  3205. #endif
  3206. EOF
  3207. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3208.   egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  3209.   rm -rf conftest*
  3210.   ac_cv_type_caddr_t=yes
  3211. else
  3212.   rm -rf conftest*
  3213.   ac_cv_type_caddr_t=no
  3214. fi
  3215. rm -f conftest*
  3216.  
  3217. fi
  3218. echo "$ac_t""$ac_cv_type_caddr_t" 1>&6
  3219. if test $ac_cv_type_caddr_t = no; then
  3220.   cat >> confdefs.h <<\EOF
  3221. #define caddr_t char *
  3222. EOF
  3223.  
  3224. fi
  3225.  
  3226. echo $ac_n "checking for daddr_t""... $ac_c" 1>&6
  3227. echo "configure:3228: checking for daddr_t" >&5
  3228. if eval "test \"`echo '$''{'ac_cv_type_daddr_t'+set}'`\" = set"; then
  3229.   echo $ac_n "(cached) $ac_c" 1>&6
  3230. else
  3231.   cat > conftest.$ac_ext <<EOF
  3232. #line 3233 "configure"
  3233. #include "confdefs.h"
  3234. #include <sys/types.h>
  3235. #if STDC_HEADERS
  3236. #include <stdlib.h>
  3237. #include <stddef.h>
  3238. #endif
  3239. EOF
  3240. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3241.   egrep "(^|[^a-zA-Z_0-9])daddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  3242.   rm -rf conftest*
  3243.   ac_cv_type_daddr_t=yes
  3244. else
  3245.   rm -rf conftest*
  3246.   ac_cv_type_daddr_t=no
  3247. fi
  3248. rm -f conftest*
  3249.  
  3250. fi
  3251. echo "$ac_t""$ac_cv_type_daddr_t" 1>&6
  3252. if test $ac_cv_type_daddr_t = no; then
  3253.   cat >> confdefs.h <<\EOF
  3254. #define daddr_t long
  3255. EOF
  3256.  
  3257. fi
  3258.  
  3259. echo $ac_n "checking for dev_t""... $ac_c" 1>&6
  3260. echo "configure:3261: checking for dev_t" >&5
  3261. if eval "test \"`echo '$''{'ac_cv_type_dev_t'+set}'`\" = set"; then
  3262.   echo $ac_n "(cached) $ac_c" 1>&6
  3263. else
  3264.   cat > conftest.$ac_ext <<EOF
  3265. #line 3266 "configure"
  3266. #include "confdefs.h"
  3267. #include <sys/types.h>
  3268. #if STDC_HEADERS
  3269. #include <stdlib.h>
  3270. #include <stddef.h>
  3271. #endif
  3272. EOF
  3273. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3274.   egrep "(^|[^a-zA-Z_0-9])dev_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  3275.   rm -rf conftest*
  3276.   ac_cv_type_dev_t=yes
  3277. else
  3278.   rm -rf conftest*
  3279.   ac_cv_type_dev_t=no
  3280. fi
  3281. rm -f conftest*
  3282.  
  3283. fi
  3284. echo "$ac_t""$ac_cv_type_dev_t" 1>&6
  3285. if test $ac_cv_type_dev_t = no; then
  3286.   cat >> confdefs.h <<\EOF
  3287. #define dev_t unsigned short
  3288. EOF
  3289.  
  3290. fi
  3291.  
  3292. echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
  3293. echo "configure:3294: checking for socklen_t" >&5
  3294. if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then
  3295.   echo $ac_n "(cached) $ac_c" 1>&6
  3296. else
  3297.   cat > conftest.$ac_ext <<EOF
  3298. #line 3299 "configure"
  3299. #include "confdefs.h"
  3300. #include <sys/types.h>
  3301. #if STDC_HEADERS
  3302. #include <stdlib.h>
  3303. #include <stddef.h>
  3304. #endif
  3305. #include <sys/socket.h>
  3306. EOF
  3307. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3308.   egrep "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  3309.   rm -rf conftest*
  3310.   ac_cv_type_socklen_t=yes
  3311. else
  3312.   rm -rf conftest*
  3313.   ac_cv_type_socklen_t=no
  3314. fi
  3315. rm -f conftest*
  3316.  
  3317. fi
  3318. echo "$ac_t""$ac_cv_type_socklen_t" 1>&6
  3319. if test $ac_cv_type_socklen_t = no; then
  3320.   cat >> confdefs.h <<\EOF
  3321. #define socklen_t int
  3322. EOF
  3323.  
  3324. fi
  3325.  
  3326. echo $ac_n "checking for u_char""... $ac_c" 1>&6
  3327. echo "configure:3328: checking for u_char" >&5
  3328. if eval "test \"`echo '$''{'ac_cv_type_u_char'+set}'`\" = set"; then
  3329.   echo $ac_n "(cached) $ac_c" 1>&6
  3330. else
  3331.   cat > conftest.$ac_ext <<EOF
  3332. #line 3333 "configure"
  3333. #include "confdefs.h"
  3334. #include <sys/types.h>
  3335. #if STDC_HEADERS
  3336. #include <stdlib.h>
  3337. #include <stddef.h>
  3338. #endif
  3339. EOF
  3340. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3341.   egrep "(^|[^a-zA-Z_0-9])u_char[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  3342.   rm -rf conftest*
  3343.   ac_cv_type_u_char=yes
  3344. else
  3345.   rm -rf conftest*
  3346.   ac_cv_type_u_char=no
  3347. fi
  3348. rm -f conftest*
  3349.  
  3350. fi
  3351. echo "$ac_t""$ac_cv_type_u_char" 1>&6
  3352. if test $ac_cv_type_u_char = no; then
  3353.   cat >> confdefs.h <<\EOF
  3354. #define u_char unsigned char
  3355. EOF
  3356.  
  3357. fi
  3358.  
  3359. echo $ac_n "checking for u_short""... $ac_c" 1>&6
  3360. echo "configure:3361: checking for u_short" >&5
  3361. if eval "test \"`echo '$''{'ac_cv_type_u_short'+set}'`\" = set"; then
  3362.   echo $ac_n "(cached) $ac_c" 1>&6
  3363. else
  3364.   cat > conftest.$ac_ext <<EOF
  3365. #line 3366 "configure"
  3366. #include "confdefs.h"
  3367. #include <sys/types.h>
  3368. #if STDC_HEADERS
  3369. #include <stdlib.h>
  3370. #include <stddef.h>
  3371. #endif
  3372. EOF
  3373. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3374.   egrep "(^|[^a-zA-Z_0-9])u_short[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  3375.   rm -rf conftest*
  3376.   ac_cv_type_u_short=yes
  3377. else
  3378.   rm -rf conftest*
  3379.   ac_cv_type_u_short=no
  3380. fi
  3381. rm -f conftest*
  3382.  
  3383. fi
  3384. echo "$ac_t""$ac_cv_type_u_short" 1>&6
  3385. if test $ac_cv_type_u_short = no; then
  3386.   cat >> confdefs.h <<\EOF
  3387. #define u_short unsigned short
  3388. EOF
  3389.  
  3390. fi
  3391.  
  3392. echo $ac_n "checking for u_int""... $ac_c" 1>&6
  3393. echo "configure:3394: checking for u_int" >&5
  3394. if eval "test \"`echo '$''{'ac_cv_type_u_int'+set}'`\" = set"; then
  3395.   echo $ac_n "(cached) $ac_c" 1>&6
  3396. else
  3397.   cat > conftest.$ac_ext <<EOF
  3398. #line 3399 "configure"
  3399. #include "confdefs.h"
  3400. #include <sys/types.h>
  3401. #if STDC_HEADERS
  3402. #include <stdlib.h>
  3403. #include <stddef.h>
  3404. #endif
  3405. EOF
  3406. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3407.   egrep "(^|[^a-zA-Z_0-9])u_int[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  3408.   rm -rf conftest*
  3409.   ac_cv_type_u_int=yes
  3410. else
  3411.   rm -rf conftest*
  3412.   ac_cv_type_u_int=no
  3413. fi
  3414. rm -f conftest*
  3415.  
  3416. fi
  3417. echo "$ac_t""$ac_cv_type_u_int" 1>&6
  3418. if test $ac_cv_type_u_int = no; then
  3419.   cat >> confdefs.h <<\EOF
  3420. #define u_int unsigned int
  3421. EOF
  3422.  
  3423. fi
  3424.  
  3425. echo $ac_n "checking for u_long""... $ac_c" 1>&6
  3426. echo "configure:3427: checking for u_long" >&5
  3427. if eval "test \"`echo '$''{'ac_cv_type_u_long'+set}'`\" = set"; then
  3428.   echo $ac_n "(cached) $ac_c" 1>&6
  3429. else
  3430.   cat > conftest.$ac_ext <<EOF
  3431. #line 3432 "configure"
  3432. #include "confdefs.h"
  3433. #include <sys/types.h>
  3434. #if STDC_HEADERS
  3435. #include <stdlib.h>
  3436. #include <stddef.h>
  3437. #endif
  3438. EOF
  3439. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3440.   egrep "(^|[^a-zA-Z_0-9])u_long[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  3441.   rm -rf conftest*
  3442.   ac_cv_type_u_long=yes
  3443. else
  3444.   rm -rf conftest*
  3445.   ac_cv_type_u_long=no
  3446. fi
  3447. rm -f conftest*
  3448.  
  3449. fi
  3450. echo "$ac_t""$ac_cv_type_u_long" 1>&6
  3451. if test $ac_cv_type_u_long = no; then
  3452.   cat >> confdefs.h <<\EOF
  3453. #define u_long unsigned long
  3454. EOF
  3455.  
  3456. fi
  3457.  
  3458.  
  3459. echo $ac_n "checking size of char""... $ac_c" 1>&6
  3460. echo "configure:3461: checking size of char" >&5
  3461. if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
  3462.   echo $ac_n "(cached) $ac_c" 1>&6
  3463. else
  3464.   if test "$cross_compiling" = yes; then
  3465.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  3466. else
  3467.   cat > conftest.$ac_ext <<EOF
  3468. #line 3469 "configure"
  3469. #include "confdefs.h"
  3470. #include <stdio.h>
  3471. main()
  3472. {
  3473.   FILE *f=fopen("conftestval", "w");
  3474.   if (!f) exit(1);
  3475.   fprintf(f, "%d\n", sizeof(char));
  3476.   exit(0);
  3477. }
  3478. EOF
  3479. if { (eval echo configure:3480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3480. then
  3481.   ac_cv_sizeof_char=`cat conftestval`
  3482. else
  3483.   echo "configure: failed program was:" >&5
  3484.   cat conftest.$ac_ext >&5
  3485.   rm -fr conftest*
  3486.   ac_cv_sizeof_char=0
  3487. fi
  3488. rm -fr conftest*
  3489. fi
  3490.  
  3491. fi
  3492. echo "$ac_t""$ac_cv_sizeof_char" 1>&6
  3493. cat >> confdefs.h <<EOF
  3494. #define SIZEOF_CHAR $ac_cv_sizeof_char
  3495. EOF
  3496.  
  3497.  
  3498. echo $ac_n "checking size of short int""... $ac_c" 1>&6
  3499. echo "configure:3500: checking size of short int" >&5
  3500. if eval "test \"`echo '$''{'ac_cv_sizeof_short_int'+set}'`\" = set"; then
  3501.   echo $ac_n "(cached) $ac_c" 1>&6
  3502. else
  3503.   if test "$cross_compiling" = yes; then
  3504.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  3505. else
  3506.   cat > conftest.$ac_ext <<EOF
  3507. #line 3508 "configure"
  3508. #include "confdefs.h"
  3509. #include <stdio.h>
  3510. main()
  3511. {
  3512.   FILE *f=fopen("conftestval", "w");
  3513.   if (!f) exit(1);
  3514.   fprintf(f, "%d\n", sizeof(short int));
  3515.   exit(0);
  3516. }
  3517. EOF
  3518. if { (eval echo configure:3519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3519. then
  3520.   ac_cv_sizeof_short_int=`cat conftestval`
  3521. else
  3522.   echo "configure: failed program was:" >&5
  3523.   cat conftest.$ac_ext >&5
  3524.   rm -fr conftest*
  3525.   ac_cv_sizeof_short_int=0
  3526. fi
  3527. rm -fr conftest*
  3528. fi
  3529.  
  3530. fi
  3531. echo "$ac_t""$ac_cv_sizeof_short_int" 1>&6
  3532. cat >> confdefs.h <<EOF
  3533. #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
  3534. EOF
  3535.  
  3536.  
  3537. echo $ac_n "checking size of int""... $ac_c" 1>&6
  3538. echo "configure:3539: checking size of int" >&5
  3539. if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
  3540.   echo $ac_n "(cached) $ac_c" 1>&6
  3541. else
  3542.   if test "$cross_compiling" = yes; then
  3543.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  3544. else
  3545.   cat > conftest.$ac_ext <<EOF
  3546. #line 3547 "configure"
  3547. #include "confdefs.h"
  3548. #include <stdio.h>
  3549. main()
  3550. {
  3551.   FILE *f=fopen("conftestval", "w");
  3552.   if (!f) exit(1);
  3553.   fprintf(f, "%d\n", sizeof(int));
  3554.   exit(0);
  3555. }
  3556. EOF
  3557. if { (eval echo configure:3558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3558. then
  3559.   ac_cv_sizeof_int=`cat conftestval`
  3560. else
  3561.   echo "configure: failed program was:" >&5
  3562.   cat conftest.$ac_ext >&5
  3563.   rm -fr conftest*
  3564.   ac_cv_sizeof_int=0
  3565. fi
  3566. rm -fr conftest*
  3567. fi
  3568.  
  3569. fi
  3570. echo "$ac_t""$ac_cv_sizeof_int" 1>&6
  3571. cat >> confdefs.h <<EOF
  3572. #define SIZEOF_INT $ac_cv_sizeof_int
  3573. EOF
  3574.  
  3575.  
  3576. echo $ac_n "checking size of long int""... $ac_c" 1>&6
  3577. echo "configure:3578: checking size of long int" >&5
  3578. if eval "test \"`echo '$''{'ac_cv_sizeof_long_int'+set}'`\" = set"; then
  3579.   echo $ac_n "(cached) $ac_c" 1>&6
  3580. else
  3581.   if test "$cross_compiling" = yes; then
  3582.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  3583. else
  3584.   cat > conftest.$ac_ext <<EOF
  3585. #line 3586 "configure"
  3586. #include "confdefs.h"
  3587. #include <stdio.h>
  3588. main()
  3589. {
  3590.   FILE *f=fopen("conftestval", "w");
  3591.   if (!f) exit(1);
  3592.   fprintf(f, "%d\n", sizeof(long int));
  3593.   exit(0);
  3594. }
  3595. EOF
  3596. if { (eval echo configure:3597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3597. then
  3598.   ac_cv_sizeof_long_int=`cat conftestval`
  3599. else
  3600.   echo "configure: failed program was:" >&5
  3601.   cat conftest.$ac_ext >&5
  3602.   rm -fr conftest*
  3603.   ac_cv_sizeof_long_int=0
  3604. fi
  3605. rm -fr conftest*
  3606. fi
  3607.  
  3608. fi
  3609. echo "$ac_t""$ac_cv_sizeof_long_int" 1>&6
  3610. cat >> confdefs.h <<EOF
  3611. #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
  3612. EOF
  3613.  
  3614.  
  3615. echo $ac_n "checking size of long long""... $ac_c" 1>&6
  3616. echo "configure:3617: checking size of long long" >&5
  3617. if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
  3618.   echo $ac_n "(cached) $ac_c" 1>&6
  3619. else
  3620.   if test "$cross_compiling" = yes; then
  3621.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  3622. else
  3623.   cat > conftest.$ac_ext <<EOF
  3624. #line 3625 "configure"
  3625. #include "confdefs.h"
  3626. #include <stdio.h>
  3627. main()
  3628. {
  3629.   FILE *f=fopen("conftestval", "w");
  3630.   if (!f) exit(1);
  3631.   fprintf(f, "%d\n", sizeof(long long));
  3632.   exit(0);
  3633. }
  3634. EOF
  3635. if { (eval echo configure:3636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3636. then
  3637.   ac_cv_sizeof_long_long=`cat conftestval`
  3638. else
  3639.   echo "configure: failed program was:" >&5
  3640.   cat conftest.$ac_ext >&5
  3641.   rm -fr conftest*
  3642.   ac_cv_sizeof_long_long=0
  3643. fi
  3644. rm -fr conftest*
  3645. fi
  3646.  
  3647. fi
  3648. echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
  3649. cat >> confdefs.h <<EOF
  3650. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  3651. EOF
  3652.  
  3653.  
  3654. echo $ac_n "checking size of char *""... $ac_c" 1>&6
  3655. echo "configure:3656: checking size of char *" >&5
  3656. if eval "test \"`echo '$''{'ac_cv_sizeof_char_p'+set}'`\" = set"; then
  3657.   echo $ac_n "(cached) $ac_c" 1>&6
  3658. else
  3659.   if test "$cross_compiling" = yes; then
  3660.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  3661. else
  3662.   cat > conftest.$ac_ext <<EOF
  3663. #line 3664 "configure"
  3664. #include "confdefs.h"
  3665. #include <stdio.h>
  3666. main()
  3667. {
  3668.   FILE *f=fopen("conftestval", "w");
  3669.   if (!f) exit(1);
  3670.   fprintf(f, "%d\n", sizeof(char *));
  3671.   exit(0);
  3672. }
  3673. EOF
  3674. if { (eval echo configure:3675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3675. then
  3676.   ac_cv_sizeof_char_p=`cat conftestval`
  3677. else
  3678.   echo "configure: failed program was:" >&5
  3679.   cat conftest.$ac_ext >&5
  3680.   rm -fr conftest*
  3681.   ac_cv_sizeof_char_p=0
  3682. fi
  3683. rm -fr conftest*
  3684. fi
  3685.  
  3686. fi
  3687. echo "$ac_t""$ac_cv_sizeof_char_p" 1>&6
  3688. cat >> confdefs.h <<EOF
  3689. #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
  3690. EOF
  3691.  
  3692.  
  3693.  
  3694. echo $ac_n "checking size of unsigned char""... $ac_c" 1>&6
  3695. echo "configure:3696: checking size of unsigned char" >&5
  3696. if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_char'+set}'`\" = set"; then
  3697.   echo $ac_n "(cached) $ac_c" 1>&6
  3698. else
  3699.   if test "$cross_compiling" = yes; then
  3700.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  3701. else
  3702.   cat > conftest.$ac_ext <<EOF
  3703. #line 3704 "configure"
  3704. #include "confdefs.h"
  3705. #include <stdio.h>
  3706. main()
  3707. {
  3708.   FILE *f=fopen("conftestval", "w");
  3709.   if (!f) exit(1);
  3710.   fprintf(f, "%d\n", sizeof(unsigned char));
  3711.   exit(0);
  3712. }
  3713. EOF
  3714. if { (eval echo configure:3715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3715. then
  3716.   ac_cv_sizeof_unsigned_char=`cat conftestval`
  3717. else
  3718.   echo "configure: failed program was:" >&5
  3719.   cat conftest.$ac_ext >&5
  3720.   rm -fr conftest*
  3721.   ac_cv_sizeof_unsigned_char=0
  3722. fi
  3723. rm -fr conftest*
  3724. fi
  3725.  
  3726. fi
  3727. echo "$ac_t""$ac_cv_sizeof_unsigned_char" 1>&6
  3728. cat >> confdefs.h <<EOF
  3729. #define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
  3730. EOF
  3731.  
  3732.  
  3733. echo $ac_n "checking size of unsigned short int""... $ac_c" 1>&6
  3734. echo "configure:3735: checking size of unsigned short int" >&5
  3735. if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_short_int'+set}'`\" = set"; then
  3736.   echo $ac_n "(cached) $ac_c" 1>&6
  3737. else
  3738.   if test "$cross_compiling" = yes; then
  3739.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  3740. else
  3741.   cat > conftest.$ac_ext <<EOF
  3742. #line 3743 "configure"
  3743. #include "confdefs.h"
  3744. #include <stdio.h>
  3745. main()
  3746. {
  3747.   FILE *f=fopen("conftestval", "w");
  3748.   if (!f) exit(1);
  3749.   fprintf(f, "%d\n", sizeof(unsigned short int));
  3750.   exit(0);
  3751. }
  3752. EOF
  3753. if { (eval echo configure:3754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3754. then
  3755.   ac_cv_sizeof_unsigned_short_int=`cat conftestval`
  3756. else
  3757.   echo "configure: failed program was:" >&5
  3758.   cat conftest.$ac_ext >&5
  3759.   rm -fr conftest*
  3760.   ac_cv_sizeof_unsigned_short_int=0
  3761. fi
  3762. rm -fr conftest*
  3763. fi
  3764.  
  3765. fi
  3766. echo "$ac_t""$ac_cv_sizeof_unsigned_short_int" 1>&6
  3767. cat >> confdefs.h <<EOF
  3768. #define SIZEOF_UNSIGNED_SHORT_INT $ac_cv_sizeof_unsigned_short_int
  3769. EOF
  3770.  
  3771.  
  3772. echo $ac_n "checking size of unsigned int""... $ac_c" 1>&6
  3773. echo "configure:3774: checking size of unsigned int" >&5
  3774. if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_int'+set}'`\" = set"; then
  3775.   echo $ac_n "(cached) $ac_c" 1>&6
  3776. else
  3777.   if test "$cross_compiling" = yes; then
  3778.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  3779. else
  3780.   cat > conftest.$ac_ext <<EOF
  3781. #line 3782 "configure"
  3782. #include "confdefs.h"
  3783. #include <stdio.h>
  3784. main()
  3785. {
  3786.   FILE *f=fopen("conftestval", "w");
  3787.   if (!f) exit(1);
  3788.   fprintf(f, "%d\n", sizeof(unsigned int));
  3789.   exit(0);
  3790. }
  3791. EOF
  3792. if { (eval echo configure:3793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3793. then
  3794.   ac_cv_sizeof_unsigned_int=`cat conftestval`
  3795. else
  3796.   echo "configure: failed program was:" >&5
  3797.   cat conftest.$ac_ext >&5
  3798.   rm -fr conftest*
  3799.   ac_cv_sizeof_unsigned_int=0
  3800. fi
  3801. rm -fr conftest*
  3802. fi
  3803.  
  3804. fi
  3805. echo "$ac_t""$ac_cv_sizeof_unsigned_int" 1>&6
  3806. cat >> confdefs.h <<EOF
  3807. #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
  3808. EOF
  3809.  
  3810.  
  3811. echo $ac_n "checking size of unsigned long int""... $ac_c" 1>&6
  3812. echo "configure:3813: checking size of unsigned long int" >&5
  3813. if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long_int'+set}'`\" = set"; then
  3814.   echo $ac_n "(cached) $ac_c" 1>&6
  3815. else
  3816.   if test "$cross_compiling" = yes; then
  3817.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  3818. else
  3819.   cat > conftest.$ac_ext <<EOF
  3820. #line 3821 "configure"
  3821. #include "confdefs.h"
  3822. #include <stdio.h>
  3823. main()
  3824. {
  3825.   FILE *f=fopen("conftestval", "w");
  3826.   if (!f) exit(1);
  3827.   fprintf(f, "%d\n", sizeof(unsigned long int));
  3828.   exit(0);
  3829. }
  3830. EOF
  3831. if { (eval echo configure:3832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3832. then
  3833.   ac_cv_sizeof_unsigned_long_int=`cat conftestval`
  3834. else
  3835.   echo "configure: failed program was:" >&5
  3836.   cat conftest.$ac_ext >&5
  3837.   rm -fr conftest*
  3838.   ac_cv_sizeof_unsigned_long_int=0
  3839. fi
  3840. rm -fr conftest*
  3841. fi
  3842.  
  3843. fi
  3844. echo "$ac_t""$ac_cv_sizeof_unsigned_long_int" 1>&6
  3845. cat >> confdefs.h <<EOF
  3846. #define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int
  3847. EOF
  3848.  
  3849.  
  3850. echo $ac_n "checking size of unsigned long long""... $ac_c" 1>&6
  3851. echo "configure:3852: checking size of unsigned long long" >&5
  3852. if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long_long'+set}'`\" = set"; then
  3853.   echo $ac_n "(cached) $ac_c" 1>&6
  3854. else
  3855.   if test "$cross_compiling" = yes; then
  3856.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  3857. else
  3858.   cat > conftest.$ac_ext <<EOF
  3859. #line 3860 "configure"
  3860. #include "confdefs.h"
  3861. #include <stdio.h>
  3862. main()
  3863. {
  3864.   FILE *f=fopen("conftestval", "w");
  3865.   if (!f) exit(1);
  3866.   fprintf(f, "%d\n", sizeof(unsigned long long));
  3867.   exit(0);
  3868. }
  3869. EOF
  3870. if { (eval echo configure:3871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3871. then
  3872.   ac_cv_sizeof_unsigned_long_long=`cat conftestval`
  3873. else
  3874.   echo "configure: failed program was:" >&5
  3875.   cat conftest.$ac_ext >&5
  3876.   rm -fr conftest*
  3877.   ac_cv_sizeof_unsigned_long_long=0
  3878. fi
  3879. rm -fr conftest*
  3880. fi
  3881.  
  3882. fi
  3883. echo "$ac_t""$ac_cv_sizeof_unsigned_long_long" 1>&6
  3884. cat >> confdefs.h <<EOF
  3885. #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
  3886. EOF
  3887.  
  3888.  
  3889. echo $ac_n "checking size of unsigned char *""... $ac_c" 1>&6
  3890. echo "configure:3891: checking size of unsigned char *" >&5
  3891. if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_char_p'+set}'`\" = set"; then
  3892.   echo $ac_n "(cached) $ac_c" 1>&6
  3893. else
  3894.   if test "$cross_compiling" = yes; then
  3895.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  3896. else
  3897.   cat > conftest.$ac_ext <<EOF
  3898. #line 3899 "configure"
  3899. #include "confdefs.h"
  3900. #include <stdio.h>
  3901. main()
  3902. {
  3903.   FILE *f=fopen("conftestval", "w");
  3904.   if (!f) exit(1);
  3905.   fprintf(f, "%d\n", sizeof(unsigned char *));
  3906.   exit(0);
  3907. }
  3908. EOF
  3909. if { (eval echo configure:3910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3910. then
  3911.   ac_cv_sizeof_unsigned_char_p=`cat conftestval`
  3912. else
  3913.   echo "configure: failed program was:" >&5
  3914.   cat conftest.$ac_ext >&5
  3915.   rm -fr conftest*
  3916.   ac_cv_sizeof_unsigned_char_p=0
  3917. fi
  3918. rm -fr conftest*
  3919. fi
  3920.  
  3921. fi
  3922. echo "$ac_t""$ac_cv_sizeof_unsigned_char_p" 1>&6
  3923. cat >> confdefs.h <<EOF
  3924. #define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p
  3925. EOF
  3926.  
  3927.  
  3928.  
  3929. echo $ac_n "checking if char is unsigned""... $ac_c" 1>&6
  3930. echo "configure:3931: checking if char is unsigned" >&5
  3931. if eval "test \"`echo '$''{'ac_cv_type_char_unsigned'+set}'`\" = set"; then
  3932.   echo $ac_n "(cached) $ac_c" 1>&6
  3933. else
  3934.   if test "$cross_compiling" = yes; then
  3935.   ac_cv_type_char_unsigned=no
  3936. else
  3937.   cat > conftest.$ac_ext <<EOF
  3938. #line 3939 "configure"
  3939. #include "confdefs.h"
  3940.  
  3941. int
  3942. main()
  3943. {
  3944.     char c;
  3945.  
  3946.     c = -1;
  3947.     exit(c < 0);}
  3948. EOF
  3949. if { (eval echo configure:3950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3950. then
  3951.   ac_cv_type_char_unsigned=yes
  3952. else
  3953.   echo "configure: failed program was:" >&5
  3954.   cat conftest.$ac_ext >&5
  3955.   rm -fr conftest*
  3956.   ac_cv_type_char_unsigned=no
  3957. fi
  3958. rm -fr conftest*
  3959. fi
  3960.  
  3961. fi
  3962.  
  3963. echo "$ac_t""$ac_cv_type_char_unsigned" 1>&6 
  3964. if test $ac_cv_type_char_unsigned = yes; then
  3965.   cat >> confdefs.h <<\EOF
  3966. #define CHAR_IS_UNSIGNED 1
  3967. EOF
  3968.  
  3969. fi
  3970. echo $ac_n "checking if va_list is an array""... $ac_c" 1>&6
  3971. echo "configure:3972: checking if va_list is an array" >&5
  3972. if eval "test \"`echo '$''{'ac_cv_type_va_list_array'+set}'`\" = set"; then
  3973.   echo $ac_n "(cached) $ac_c" 1>&6
  3974. else
  3975.   cat > conftest.$ac_ext <<EOF
  3976. #line 3977 "configure"
  3977. #include "confdefs.h"
  3978.  
  3979. #ifdef    HAVE_STDARG_H
  3980. #    include <stdarg.h>
  3981. #else
  3982. #    include <varargs.h>
  3983. #endif
  3984.  
  3985. int main() {
  3986.  
  3987. va_list a, b;
  3988.  
  3989. a = b;
  3990. ; return 0; }
  3991. EOF
  3992. if { (eval echo configure:3993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3993.   rm -rf conftest*
  3994.   ac_cv_type_va_list_array=no
  3995. else
  3996.   echo "configure: failed program was:" >&5
  3997.   cat conftest.$ac_ext >&5
  3998.   rm -rf conftest*
  3999.   ac_cv_type_va_list_array=yes
  4000. fi
  4001. rm -f conftest*
  4002. fi
  4003.  
  4004. echo "$ac_t""$ac_cv_type_va_list_array" 1>&6 
  4005. if test $ac_cv_type_va_list_array = yes; then
  4006.   cat >> confdefs.h <<\EOF
  4007. #define VA_LIST_IS_ARRAY 1
  4008. EOF
  4009.  
  4010. fi
  4011. echo $ac_n "checking if struct mtget contains mt_type""... $ac_c" 1>&6
  4012. echo "configure:4013: checking if struct mtget contains mt_type" >&5
  4013. if eval "test \"`echo '$''{'ac_cv_struct_mtget_type'+set}'`\" = set"; then
  4014.   echo $ac_n "(cached) $ac_c" 1>&6
  4015. else
  4016.   cat > conftest.$ac_ext <<EOF
  4017. #line 4018 "configure"
  4018. #include "confdefs.h"
  4019. #include <sys/types.h>
  4020. #include <sys/mtio.h>
  4021. int main() {
  4022. struct  mtget t; t.mt_type = 0;
  4023. ; return 0; }
  4024. EOF
  4025. if { (eval echo configure:4026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4026.   rm -rf conftest*
  4027.   ac_cv_struct_mtget_type=yes
  4028. else
  4029.   echo "configure: failed program was:" >&5
  4030.   cat conftest.$ac_ext >&5
  4031.   rm -rf conftest*
  4032.   ac_cv_struct_mtget_type=no
  4033. fi
  4034. rm -f conftest*
  4035. fi
  4036.  
  4037. echo "$ac_t""$ac_cv_struct_mtget_type" 1>&6
  4038. if test $ac_cv_struct_mtget_type = yes; then
  4039.   cat >> confdefs.h <<\EOF
  4040. #define HAVE_MTGET_TYPE 1
  4041. EOF
  4042.  
  4043. fi
  4044. echo $ac_n "checking if struct mtget contains mt_dsreg""... $ac_c" 1>&6
  4045. echo "configure:4046: checking if struct mtget contains mt_dsreg" >&5
  4046. if eval "test \"`echo '$''{'ac_cv_struct_mtget_dsreg'+set}'`\" = set"; then
  4047.   echo $ac_n "(cached) $ac_c" 1>&6
  4048. else
  4049.   cat > conftest.$ac_ext <<EOF
  4050. #line 4051 "configure"
  4051. #include "confdefs.h"
  4052. #include <sys/types.h>
  4053. #include <sys/mtio.h>
  4054. int main() {
  4055. struct  mtget t; t.mt_dsreg = 0;
  4056. ; return 0; }
  4057. EOF
  4058. if { (eval echo configure:4059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4059.   rm -rf conftest*
  4060.   ac_cv_struct_mtget_dsreg=yes
  4061. else
  4062.   echo "configure: failed program was:" >&5
  4063.   cat conftest.$ac_ext >&5
  4064.   rm -rf conftest*
  4065.   ac_cv_struct_mtget_dsreg=no
  4066. fi
  4067. rm -f conftest*
  4068. fi
  4069.  
  4070. echo "$ac_t""$ac_cv_struct_mtget_dsreg" 1>&6
  4071. if test $ac_cv_struct_mtget_dsreg = yes; then
  4072.   cat >> confdefs.h <<\EOF
  4073. #define HAVE_MTGET_DSREG 1
  4074. EOF
  4075.  
  4076. fi
  4077. echo $ac_n "checking if struct mtget contains mt_erreg""... $ac_c" 1>&6
  4078. echo "configure:4079: checking if struct mtget contains mt_erreg" >&5
  4079. if eval "test \"`echo '$''{'ac_cv_struct_mtget_erreg'+set}'`\" = set"; then
  4080.   echo $ac_n "(cached) $ac_c" 1>&6
  4081. else
  4082.   cat > conftest.$ac_ext <<EOF
  4083. #line 4084 "configure"
  4084. #include "confdefs.h"
  4085. #include <sys/types.h>
  4086. #include <sys/mtio.h>
  4087. int main() {
  4088. struct  mtget t; t.mt_erreg = 0;
  4089. ; return 0; }
  4090. EOF
  4091. if { (eval echo configure:4092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4092.   rm -rf conftest*
  4093.   ac_cv_struct_mtget_erreg=yes
  4094. else
  4095.   echo "configure: failed program was:" >&5
  4096.   cat conftest.$ac_ext >&5
  4097.   rm -rf conftest*
  4098.   ac_cv_struct_mtget_erreg=no
  4099. fi
  4100. rm -f conftest*
  4101. fi
  4102.  
  4103. echo "$ac_t""$ac_cv_struct_mtget_erreg" 1>&6
  4104. if test $ac_cv_struct_mtget_erreg = yes; then
  4105.   cat >> confdefs.h <<\EOF
  4106. #define HAVE_MTGET_ERREG 1
  4107. EOF
  4108.  
  4109. fi
  4110. echo $ac_n "checking if struct mtget contains mt_resid""... $ac_c" 1>&6
  4111. echo "configure:4112: checking if struct mtget contains mt_resid" >&5
  4112. if eval "test \"`echo '$''{'ac_cv_struct_mtget_resid'+set}'`\" = set"; then
  4113.   echo $ac_n "(cached) $ac_c" 1>&6
  4114. else
  4115.   cat > conftest.$ac_ext <<EOF
  4116. #line 4117 "configure"
  4117. #include "confdefs.h"
  4118. #include <sys/types.h>
  4119. #include <sys/mtio.h>
  4120. int main() {
  4121. struct  mtget t; t.mt_resid = 0;
  4122. ; return 0; }
  4123. EOF
  4124. if { (eval echo configure:4125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4125.   rm -rf conftest*
  4126.   ac_cv_struct_mtget_resid=yes
  4127. else
  4128.   echo "configure: failed program was:" >&5
  4129.   cat conftest.$ac_ext >&5
  4130.   rm -rf conftest*
  4131.   ac_cv_struct_mtget_resid=no
  4132. fi
  4133. rm -f conftest*
  4134. fi
  4135.  
  4136. echo "$ac_t""$ac_cv_struct_mtget_resid" 1>&6
  4137. if test $ac_cv_struct_mtget_resid = yes; then
  4138.   cat >> confdefs.h <<\EOF
  4139. #define HAVE_MTGET_RESID 1
  4140. EOF
  4141.  
  4142. fi
  4143. echo $ac_n "checking if struct mtget contains mt_fileno""... $ac_c" 1>&6
  4144. echo "configure:4145: checking if struct mtget contains mt_fileno" >&5
  4145. if eval "test \"`echo '$''{'ac_cv_struct_mtget_fileno'+set}'`\" = set"; then
  4146.   echo $ac_n "(cached) $ac_c" 1>&6
  4147. else
  4148.   cat > conftest.$ac_ext <<EOF
  4149. #line 4150 "configure"
  4150. #include "confdefs.h"
  4151. #include <sys/types.h>
  4152. #include <sys/mtio.h>
  4153. int main() {
  4154. struct  mtget t; t.mt_fileno = 0;
  4155. ; return 0; }
  4156. EOF
  4157. if { (eval echo configure:4158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4158.   rm -rf conftest*
  4159.   ac_cv_struct_mtget_fileno=yes
  4160. else
  4161.   echo "configure: failed program was:" >&5
  4162.   cat conftest.$ac_ext >&5
  4163.   rm -rf conftest*
  4164.   ac_cv_struct_mtget_fileno=no
  4165. fi
  4166. rm -f conftest*
  4167. fi
  4168.  
  4169. echo "$ac_t""$ac_cv_struct_mtget_fileno" 1>&6
  4170. if test $ac_cv_struct_mtget_fileno = yes; then
  4171.   cat >> confdefs.h <<\EOF
  4172. #define HAVE_MTGET_FILENO 1
  4173. EOF
  4174.  
  4175. fi
  4176. echo $ac_n "checking if struct mtget contains mt_blkno""... $ac_c" 1>&6
  4177. echo "configure:4178: checking if struct mtget contains mt_blkno" >&5
  4178. if eval "test \"`echo '$''{'ac_cv_struct_mtget_blkno'+set}'`\" = set"; then
  4179.   echo $ac_n "(cached) $ac_c" 1>&6
  4180. else
  4181.   cat > conftest.$ac_ext <<EOF
  4182. #line 4183 "configure"
  4183. #include "confdefs.h"
  4184. #include <sys/types.h>
  4185. #include <sys/mtio.h>
  4186. int main() {
  4187. struct  mtget t; t.mt_blkno = 0;
  4188. ; return 0; }
  4189. EOF
  4190. if { (eval echo configure:4191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4191.   rm -rf conftest*
  4192.   ac_cv_struct_mtget_blkno=yes
  4193. else
  4194.   echo "configure: failed program was:" >&5
  4195.   cat conftest.$ac_ext >&5
  4196.   rm -rf conftest*
  4197.   ac_cv_struct_mtget_blkno=no
  4198. fi
  4199. rm -f conftest*
  4200. fi
  4201.  
  4202. echo "$ac_t""$ac_cv_struct_mtget_blkno" 1>&6
  4203. if test $ac_cv_struct_mtget_blkno = yes; then
  4204.   cat >> confdefs.h <<\EOF
  4205. #define HAVE_MTGET_BLKNO 1
  4206. EOF
  4207.  
  4208. fi
  4209. echo $ac_n "checking if struct mtget contains mt_flags""... $ac_c" 1>&6
  4210. echo "configure:4211: checking if struct mtget contains mt_flags" >&5
  4211. if eval "test \"`echo '$''{'ac_cv_struct_mtget_flags'+set}'`\" = set"; then
  4212.   echo $ac_n "(cached) $ac_c" 1>&6
  4213. else
  4214.   cat > conftest.$ac_ext <<EOF
  4215. #line 4216 "configure"
  4216. #include "confdefs.h"
  4217. #include <sys/types.h>
  4218. #include <sys/mtio.h>
  4219. int main() {
  4220. struct  mtget t; t.mt_flags = 0;
  4221. ; return 0; }
  4222. EOF
  4223. if { (eval echo configure:4224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4224.   rm -rf conftest*
  4225.   ac_cv_struct_mtget_flags=yes
  4226. else
  4227.   echo "configure: failed program was:" >&5
  4228.   cat conftest.$ac_ext >&5
  4229.   rm -rf conftest*
  4230.   ac_cv_struct_mtget_flags=no
  4231. fi
  4232. rm -f conftest*
  4233. fi
  4234.  
  4235. echo "$ac_t""$ac_cv_struct_mtget_flags" 1>&6
  4236. if test $ac_cv_struct_mtget_flags = yes; then
  4237.   cat >> confdefs.h <<\EOF
  4238. #define HAVE_MTGET_FLAGS 1
  4239. EOF
  4240.  
  4241. fi
  4242. echo $ac_n "checking if struct mtget contains mt_bf""... $ac_c" 1>&6
  4243. echo "configure:4244: checking if struct mtget contains mt_bf" >&5
  4244. if eval "test \"`echo '$''{'ac_cv_struct_mtget_bf'+set}'`\" = set"; then
  4245.   echo $ac_n "(cached) $ac_c" 1>&6
  4246. else
  4247.   cat > conftest.$ac_ext <<EOF
  4248. #line 4249 "configure"
  4249. #include "confdefs.h"
  4250. #include <sys/types.h>
  4251. #include <sys/mtio.h>
  4252. int main() {
  4253. struct  mtget t; t.mt_bf = 0;
  4254. ; return 0; }
  4255. EOF
  4256. if { (eval echo configure:4257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4257.   rm -rf conftest*
  4258.   ac_cv_struct_mtget_bf=yes
  4259. else
  4260.   echo "configure: failed program was:" >&5
  4261.   cat conftest.$ac_ext >&5
  4262.   rm -rf conftest*
  4263.   ac_cv_struct_mtget_bf=no
  4264. fi
  4265. rm -f conftest*
  4266. fi
  4267.  
  4268. echo "$ac_t""$ac_cv_struct_mtget_bf" 1>&6
  4269. if test $ac_cv_struct_mtget_bf = yes; then
  4270.   cat >> confdefs.h <<\EOF
  4271. #define HAVE_MTGET_BF 1
  4272. EOF
  4273.  
  4274. fi
  4275. echo $ac_n "checking if struct rusage is declared in sys/resource.h""... $ac_c" 1>&6
  4276. echo "configure:4277: checking if struct rusage is declared in sys/resource.h" >&5
  4277. if eval "test \"`echo '$''{'ac_cv_struct_rusage'+set}'`\" = set"; then
  4278.   echo $ac_n "(cached) $ac_c" 1>&6
  4279. else
  4280.   cat > conftest.$ac_ext <<EOF
  4281. #line 4282 "configure"
  4282. #include "confdefs.h"
  4283. #include <sys/time.h>
  4284. #include <sys/resource.h>
  4285. int main() {
  4286. struct rusage r;
  4287. ; return 0; }
  4288. EOF
  4289. if { (eval echo configure:4290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4290.   rm -rf conftest*
  4291.   ac_cv_struct_rusage=yes
  4292. else
  4293.   echo "configure: failed program was:" >&5
  4294.   cat conftest.$ac_ext >&5
  4295.   rm -rf conftest*
  4296.   ac_cv_struct_rusage=no
  4297. fi
  4298. rm -f conftest*
  4299. fi
  4300.  
  4301. echo "$ac_t""$ac_cv_struct_rusage" 1>&6
  4302. if test $ac_cv_struct_rusage = yes; then
  4303.   cat >> confdefs.h <<\EOF
  4304. #define HAVE_STRUCT_RUSAGE 1
  4305. EOF
  4306.  
  4307. fi
  4308. echo $ac_n "checking if an illegal declaration for union semun in sys/sem.h exists""... $ac_c" 1>&6
  4309. echo "configure:4310: checking if an illegal declaration for union semun in sys/sem.h exists" >&5
  4310. if eval "test \"`echo '$''{'ac_cv_struct_union_semun'+set}'`\" = set"; then
  4311.   echo $ac_n "(cached) $ac_c" 1>&6
  4312. else
  4313.   cat > conftest.$ac_ext <<EOF
  4314. #line 4315 "configure"
  4315. #include "confdefs.h"
  4316. #include <sys/types.h>
  4317. #include <sys/ipc.h>
  4318. #include <sys/sem.h>
  4319. int main() {
  4320. union semun s;
  4321. ; return 0; }
  4322. EOF
  4323. if { (eval echo configure:4324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4324.   rm -rf conftest*
  4325.   ac_cv_struct_union_semun=yes
  4326. else
  4327.   echo "configure: failed program was:" >&5
  4328.   cat conftest.$ac_ext >&5
  4329.   rm -rf conftest*
  4330.   ac_cv_struct_union_semun=no
  4331. fi
  4332. rm -f conftest*
  4333. fi
  4334.  
  4335. echo "$ac_t""$ac_cv_struct_union_semun" 1>&6
  4336. if test $ac_cv_struct_union_semun = yes; then
  4337.   cat >> confdefs.h <<\EOF
  4338. #define HAVE_UNION_SEMUN 1
  4339. EOF
  4340.  
  4341. fi
  4342. echo $ac_n "checking if union wait is declared in wait.h or sys/wait.h""... $ac_c" 1>&6
  4343. echo "configure:4344: checking if union wait is declared in wait.h or sys/wait.h" >&5
  4344. if eval "test \"`echo '$''{'ac_cv_struct_union_wait'+set}'`\" = set"; then
  4345.   echo $ac_n "(cached) $ac_c" 1>&6
  4346. else
  4347.   cat > conftest.$ac_ext <<EOF
  4348. #line 4349 "configure"
  4349. #include "confdefs.h"
  4350. #include <sys/types.h>
  4351. #if    defined(HAVE_WAIT_H)
  4352. #    include <wait.h>
  4353. #else
  4354. #include <sys/wait.h>
  4355. #endif
  4356. int main() {
  4357. union wait w;
  4358. ; return 0; }
  4359. EOF
  4360. if { (eval echo configure:4361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4361.   rm -rf conftest*
  4362.   ac_cv_struct_union_wait=yes
  4363. else
  4364.   echo "configure: failed program was:" >&5
  4365.   cat conftest.$ac_ext >&5
  4366.   rm -rf conftest*
  4367.   ac_cv_struct_union_wait=no
  4368. fi
  4369. rm -f conftest*
  4370. fi
  4371.  
  4372. echo "$ac_t""$ac_cv_struct_union_wait" 1>&6
  4373. if test $ac_cv_struct_union_wait = yes; then
  4374.   cat >> confdefs.h <<\EOF
  4375. #define HAVE_UNION_WAIT 1
  4376. EOF
  4377.  
  4378. fi
  4379. echo $ac_n "checking if struct stat contains st_spare1""... $ac_c" 1>&6
  4380. echo "configure:4381: checking if struct stat contains st_spare1" >&5
  4381. if eval "test \"`echo '$''{'ac_cv_struct_st_spare1'+set}'`\" = set"; then
  4382.   echo $ac_n "(cached) $ac_c" 1>&6
  4383. else
  4384.   cat > conftest.$ac_ext <<EOF
  4385. #line 4386 "configure"
  4386. #include "confdefs.h"
  4387. #include <sys/types.h>
  4388. #include <sys/stat.h>
  4389. int main() {
  4390. struct  stat s; s.st_spare1 = 0;
  4391. ; return 0; }
  4392. EOF
  4393. if { (eval echo configure:4394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4394.   rm -rf conftest*
  4395.   ac_cv_struct_st_spare1=yes
  4396. else
  4397.   echo "configure: failed program was:" >&5
  4398.   cat conftest.$ac_ext >&5
  4399.   rm -rf conftest*
  4400.   ac_cv_struct_st_spare1=no
  4401. fi
  4402. rm -f conftest*
  4403. fi
  4404.  
  4405. echo "$ac_t""$ac_cv_struct_st_spare1" 1>&6
  4406. if test $ac_cv_struct_st_spare1 = yes; then
  4407.   cat >> confdefs.h <<\EOF
  4408. #define HAVE_ST_SPARE1 1
  4409. EOF
  4410.  
  4411. fi
  4412. echo $ac_n "checking if struct stat contains st_atim.tv_nsec""... $ac_c" 1>&6
  4413. echo "configure:4414: checking if struct stat contains st_atim.tv_nsec" >&5
  4414. if eval "test \"`echo '$''{'ac_cv_struct_st_nsec'+set}'`\" = set"; then
  4415.   echo $ac_n "(cached) $ac_c" 1>&6
  4416. else
  4417.   cat > conftest.$ac_ext <<EOF
  4418. #line 4419 "configure"
  4419. #include "confdefs.h"
  4420. #include <sys/types.h>
  4421. #include <sys/stat.h>
  4422. int main() {
  4423. struct  stat s; s.st_atim.tv_nsec = 0;
  4424. ; return 0; }
  4425. EOF
  4426. if { (eval echo configure:4427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4427.   rm -rf conftest*
  4428.   ac_cv_struct_st_nsec=yes
  4429. else
  4430.   echo "configure: failed program was:" >&5
  4431.   cat conftest.$ac_ext >&5
  4432.   rm -rf conftest*
  4433.   ac_cv_struct_st_nsec=no
  4434. fi
  4435. rm -f conftest*
  4436. fi
  4437.  
  4438. echo "$ac_t""$ac_cv_struct_st_nsec" 1>&6
  4439. if test $ac_cv_struct_st_nsec = yes; then
  4440.   cat >> confdefs.h <<\EOF
  4441. #define HAVE_ST_NSEC 1
  4442. EOF
  4443.  
  4444. fi
  4445. echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
  4446. echo "configure:4447: checking for st_blksize in struct stat" >&5
  4447. if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
  4448.   echo $ac_n "(cached) $ac_c" 1>&6
  4449. else
  4450.   cat > conftest.$ac_ext <<EOF
  4451. #line 4452 "configure"
  4452. #include "confdefs.h"
  4453. #include <sys/types.h>
  4454. #include <sys/stat.h>
  4455. int main() {
  4456. struct stat s; s.st_blksize;
  4457. ; return 0; }
  4458. EOF
  4459. if { (eval echo configure:4460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4460.   rm -rf conftest*
  4461.   ac_cv_struct_st_blksize=yes
  4462. else
  4463.   echo "configure: failed program was:" >&5
  4464.   cat conftest.$ac_ext >&5
  4465.   rm -rf conftest*
  4466.   ac_cv_struct_st_blksize=no
  4467. fi
  4468. rm -f conftest*
  4469. fi
  4470.  
  4471. echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
  4472. if test $ac_cv_struct_st_blksize = yes; then
  4473.   cat >> confdefs.h <<\EOF
  4474. #define HAVE_ST_BLKSIZE 1
  4475. EOF
  4476.  
  4477. fi
  4478.  
  4479. echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
  4480. echo "configure:4481: checking for st_blocks in struct stat" >&5
  4481. if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
  4482.   echo $ac_n "(cached) $ac_c" 1>&6
  4483. else
  4484.   cat > conftest.$ac_ext <<EOF
  4485. #line 4486 "configure"
  4486. #include "confdefs.h"
  4487. #include <sys/types.h>
  4488. #include <sys/stat.h>
  4489. int main() {
  4490. struct stat s; s.st_blocks;
  4491. ; return 0; }
  4492. EOF
  4493. if { (eval echo configure:4494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4494.   rm -rf conftest*
  4495.   ac_cv_struct_st_blocks=yes
  4496. else
  4497.   echo "configure: failed program was:" >&5
  4498.   cat conftest.$ac_ext >&5
  4499.   rm -rf conftest*
  4500.   ac_cv_struct_st_blocks=no
  4501. fi
  4502. rm -f conftest*
  4503. fi
  4504.  
  4505. echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
  4506. if test $ac_cv_struct_st_blocks = yes; then
  4507.   cat >> confdefs.h <<\EOF
  4508. #define HAVE_ST_BLOCKS 1
  4509. EOF
  4510.  
  4511. else
  4512.   LIBOBJS="$LIBOBJS fileblocks.${ac_objext}"
  4513. fi
  4514.  
  4515. echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
  4516. echo "configure:4517: checking for st_rdev in struct stat" >&5
  4517. if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
  4518.   echo $ac_n "(cached) $ac_c" 1>&6
  4519. else
  4520.   cat > conftest.$ac_ext <<EOF
  4521. #line 4522 "configure"
  4522. #include "confdefs.h"
  4523. #include <sys/types.h>
  4524. #include <sys/stat.h>
  4525. int main() {
  4526. struct stat s; s.st_rdev;
  4527. ; return 0; }
  4528. EOF
  4529. if { (eval echo configure:4530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4530.   rm -rf conftest*
  4531.   ac_cv_struct_st_rdev=yes
  4532. else
  4533.   echo "configure: failed program was:" >&5
  4534.   cat conftest.$ac_ext >&5
  4535.   rm -rf conftest*
  4536.   ac_cv_struct_st_rdev=no
  4537. fi
  4538. rm -f conftest*
  4539. fi
  4540.  
  4541. echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
  4542. if test $ac_cv_struct_st_rdev = yes; then
  4543.   cat >> confdefs.h <<\EOF
  4544. #define HAVE_ST_RDEV 1
  4545. EOF
  4546.  
  4547. fi
  4548.  
  4549.  
  4550. echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6
  4551. echo "configure:4552: checking for wait3 that fills in rusage" >&5
  4552. if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then
  4553.   echo $ac_n "(cached) $ac_c" 1>&6
  4554. else
  4555.   if test "$cross_compiling" = yes; then
  4556.   ac_cv_func_wait3_rusage=no
  4557. else
  4558.   cat > conftest.$ac_ext <<EOF
  4559. #line 4560 "configure"
  4560. #include "confdefs.h"
  4561. #include <sys/types.h>
  4562. #include <sys/time.h>
  4563. #include <sys/resource.h>
  4564. #include <stdio.h>
  4565. /* HP-UX has wait3 but does not fill in rusage at all.  */
  4566. main() {
  4567.   struct rusage r;
  4568.   int i;
  4569.   /* Use a field that we can force nonzero --
  4570.      voluntary context switches.
  4571.      For systems like NeXT and OSF/1 that don't set it,
  4572.      also use the system CPU time.  And page faults (I/O) for Linux.  */
  4573.   r.ru_nvcsw = 0;
  4574.   r.ru_stime.tv_sec = 0;
  4575.   r.ru_stime.tv_usec = 0;
  4576.   r.ru_majflt = r.ru_minflt = 0;
  4577.   switch (fork()) {
  4578.   case 0: /* Child.  */
  4579.     sleep(1); /* Give up the CPU.  */
  4580.     _exit(0);
  4581.   case -1: _exit(0); /* What can we do?  */
  4582.   default: /* Parent.  */
  4583.     wait3(&i, 0, &r);
  4584.     sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines.  */
  4585.     exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
  4586.      && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
  4587.   }
  4588. }
  4589. EOF
  4590. if { (eval echo configure:4591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4591. then
  4592.   ac_cv_func_wait3_rusage=yes
  4593. else
  4594.   echo "configure: failed program was:" >&5
  4595.   cat conftest.$ac_ext >&5
  4596.   rm -fr conftest*
  4597.   ac_cv_func_wait3_rusage=no
  4598. fi
  4599. rm -fr conftest*
  4600. fi
  4601.  
  4602. fi
  4603.  
  4604. echo "$ac_t""$ac_cv_func_wait3_rusage" 1>&6
  4605. if test $ac_cv_func_wait3_rusage = yes; then
  4606.   cat >> confdefs.h <<\EOF
  4607. #define HAVE_WAIT3 1
  4608. EOF
  4609.  
  4610. fi
  4611.  
  4612. echo $ac_n "checking for mlockall""... $ac_c" 1>&6
  4613. echo "configure:4614: checking for mlockall" >&5
  4614. if eval "test \"`echo '$''{'ac_cv_func_mlockall'+set}'`\" = set"; then
  4615.   echo $ac_n "(cached) $ac_c" 1>&6
  4616. else
  4617.   if test "$cross_compiling" = yes; then
  4618.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  4619. else
  4620.   cat > conftest.$ac_ext <<EOF
  4621. #line 4622 "configure"
  4622. #include "confdefs.h"
  4623.  
  4624. #include <sys/types.h>
  4625. #include <sys/mman.h>
  4626. #include <errno.h>
  4627.  
  4628. int
  4629. main()
  4630. {
  4631.     if (mlockall(MCL_CURRENT|MCL_FUTURE) < 0) {
  4632.         if (errno == EPERM || errno ==  EACCES)
  4633.             exit(0);
  4634.         exit(-1);
  4635.     }
  4636.     exit(0);
  4637. }
  4638.  
  4639. EOF
  4640. if { (eval echo configure:4641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4641. then
  4642.   ac_cv_func_mlockall=yes
  4643. else
  4644.   echo "configure: failed program was:" >&5
  4645.   cat conftest.$ac_ext >&5
  4646.   rm -fr conftest*
  4647.   ac_cv_func_mlockall=no
  4648. fi
  4649. rm -fr conftest*
  4650. fi
  4651.  
  4652. fi
  4653.  
  4654. echo "$ac_t""$ac_cv_func_mlockall" 1>&6
  4655. if test $ac_cv_func_mlockall = yes; then
  4656.   cat >> confdefs.h <<\EOF
  4657. #define HAVE_MLOCKALL 1
  4658. EOF
  4659.  
  4660. fi
  4661. echo $ac_n "checking for va_copy""... $ac_c" 1>&6
  4662. echo "configure:4663: checking for va_copy" >&5
  4663. if eval "test \"`echo '$''{'ac_cv_func_va_copy'+set}'`\" = set"; then
  4664.   echo $ac_n "(cached) $ac_c" 1>&6
  4665. else
  4666.   cat > conftest.$ac_ext <<EOF
  4667. #line 4668 "configure"
  4668. #include "confdefs.h"
  4669.  
  4670. #ifdef    HAVE_STDARG_H
  4671. #    include <stdarg.h>
  4672. #else
  4673. #    include <varargs.h>
  4674. #endif
  4675. int main() {
  4676.  
  4677. va_list a, b;
  4678.  
  4679. va_copy(a, b);
  4680. ; return 0; }
  4681. EOF
  4682. if { (eval echo configure:4683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4683.   rm -rf conftest*
  4684.   ac_cv_func_va_copy=yes
  4685. else
  4686.   echo "configure: failed program was:" >&5
  4687.   cat conftest.$ac_ext >&5
  4688.   rm -rf conftest*
  4689.   ac_cv_func_va_copy=no
  4690. fi
  4691. rm -f conftest*
  4692. fi
  4693.  
  4694. echo "$ac_t""$ac_cv_func_va_copy" 1>&6
  4695. if test $ac_cv_func_va_copy = yes; then
  4696.   cat >> confdefs.h <<\EOF
  4697. #define HAVE_VA_COPY 1
  4698. EOF
  4699.  
  4700. fi
  4701. echo $ac_n "checking for __va_copy""... $ac_c" 1>&6
  4702. echo "configure:4703: checking for __va_copy" >&5
  4703. if eval "test \"`echo '$''{'ac_cv_func__va_copy'+set}'`\" = set"; then
  4704.   echo $ac_n "(cached) $ac_c" 1>&6
  4705. else
  4706.   cat > conftest.$ac_ext <<EOF
  4707. #line 4708 "configure"
  4708. #include "confdefs.h"
  4709.  
  4710. #ifdef    HAVE_STDARG_H
  4711. #    include <stdarg.h>
  4712. #else
  4713. #    include <varargs.h>
  4714. #endif
  4715. int main() {
  4716.  
  4717. va_list a, b;
  4718.  
  4719. __va_copy(a, b);
  4720. ; return 0; }
  4721. EOF
  4722. if { (eval echo configure:4723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4723.   rm -rf conftest*
  4724.   ac_cv_func__va_copy=yes
  4725. else
  4726.   echo "configure: failed program was:" >&5
  4727.   cat conftest.$ac_ext >&5
  4728.   rm -rf conftest*
  4729.   ac_cv_func__va_copy=no
  4730. fi
  4731. rm -f conftest*
  4732. fi
  4733.  
  4734. echo "$ac_t""$ac_cv_func__va_copy" 1>&6
  4735. if test $ac_cv_func__va_copy = yes; then
  4736.   cat >> confdefs.h <<\EOF
  4737. #define HAVE__VA_COPY 1
  4738. EOF
  4739.  
  4740. fi
  4741. echo $ac_n "checking for working ecvt() ""... $ac_c" 1>&6
  4742. echo "configure:4743: checking for working ecvt() " >&5
  4743. if eval "test \"`echo '$''{'ac_cv_func_ecvt'+set}'`\" = set"; then
  4744.   echo $ac_n "(cached) $ac_c" 1>&6
  4745. else
  4746.   if test "$cross_compiling" = yes; then
  4747.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  4748. else
  4749.   cat > conftest.$ac_ext <<EOF
  4750. #line 4751 "configure"
  4751. #include "confdefs.h"
  4752.  
  4753. extern    char *ecvt();
  4754.  
  4755. sprintf(s)
  4756.     char    *s;
  4757. {
  4758.     strcpy(s, "DEAD");
  4759. }
  4760.  
  4761. int
  4762. main()
  4763. {
  4764.     int a, b;
  4765.  
  4766. /*    exit (strcmp("DEAD", ecvt(1.9, 2, &a, &b)) == 0);*/
  4767.     exit (strcmp("19", ecvt(1.9, 2, &a, &b)) != 0);
  4768. }
  4769. EOF
  4770. if { (eval echo configure:4771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4771. then
  4772.   ac_cv_func_ecvt=yes
  4773. else
  4774.   echo "configure: failed program was:" >&5
  4775.   cat conftest.$ac_ext >&5
  4776.   rm -fr conftest*
  4777.   ac_cv_func_ecvt=no
  4778. fi
  4779. rm -fr conftest*
  4780. fi
  4781.  
  4782. fi
  4783.  
  4784. echo "$ac_t""$ac_cv_func_ecvt" 1>&6
  4785. if test $ac_cv_func_ecvt = yes; then
  4786.   cat >> confdefs.h <<\EOF
  4787. #define HAVE_ECVT 1
  4788. EOF
  4789.  
  4790. fi
  4791. echo $ac_n "checking for working fcvt() ""... $ac_c" 1>&6
  4792. echo "configure:4793: checking for working fcvt() " >&5
  4793. if eval "test \"`echo '$''{'ac_cv_func_fcvt'+set}'`\" = set"; then
  4794.   echo $ac_n "(cached) $ac_c" 1>&6
  4795. else
  4796.   if test "$cross_compiling" = yes; then
  4797.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  4798. else
  4799.   cat > conftest.$ac_ext <<EOF
  4800. #line 4801 "configure"
  4801. #include "confdefs.h"
  4802.  
  4803. extern    char *fcvt();
  4804.  
  4805. sprintf(s)
  4806.     char    *s;
  4807. {
  4808.     strcpy(s, "DEAD");
  4809. }
  4810.  
  4811. int
  4812. main()
  4813. {
  4814.     int a, b;
  4815.  
  4816. /*    exit (strcmp("DEAD", fcvt(1.9, 2, &a, &b)) == 0);*/
  4817.     exit (strcmp("190", fcvt(1.9, 2, &a, &b)) != 0);
  4818. }
  4819. EOF
  4820. if { (eval echo configure:4821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4821. then
  4822.   ac_cv_func_fcvt=yes
  4823. else
  4824.   echo "configure: failed program was:" >&5
  4825.   cat conftest.$ac_ext >&5
  4826.   rm -fr conftest*
  4827.   ac_cv_func_fcvt=no
  4828. fi
  4829. rm -fr conftest*
  4830. fi
  4831.  
  4832. fi
  4833.  
  4834. echo "$ac_t""$ac_cv_func_fcvt" 1>&6
  4835. if test $ac_cv_func_fcvt = yes; then
  4836.   cat >> confdefs.h <<\EOF
  4837. #define HAVE_FCVT 1
  4838. EOF
  4839.  
  4840. fi
  4841. echo $ac_n "checking for working gcvt() ""... $ac_c" 1>&6
  4842. echo "configure:4843: checking for working gcvt() " >&5
  4843. if eval "test \"`echo '$''{'ac_cv_func_gcvt'+set}'`\" = set"; then
  4844.   echo $ac_n "(cached) $ac_c" 1>&6
  4845. else
  4846.   if test "$cross_compiling" = yes; then
  4847.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  4848. else
  4849.   cat > conftest.$ac_ext <<EOF
  4850. #line 4851 "configure"
  4851. #include "confdefs.h"
  4852.  
  4853. extern    char *gcvt();
  4854.  
  4855. sprintf(s)
  4856.     char    *s;
  4857. {
  4858.     strcpy(s, "DEAD");
  4859. }
  4860.  
  4861. int
  4862. main()
  4863. {
  4864.     char    buf[32];
  4865.  
  4866. /*    exit (strcmp("DEAD", gcvt(1.9, 10, buf)) == 0);*/
  4867.     exit (strcmp("1.9", gcvt(1.9, 10, buf)) != 0);
  4868. }
  4869. EOF
  4870. if { (eval echo configure:4871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4871. then
  4872.   ac_cv_func_gcvt=yes
  4873. else
  4874.   echo "configure: failed program was:" >&5
  4875.   cat conftest.$ac_ext >&5
  4876.   rm -fr conftest*
  4877.   ac_cv_func_gcvt=no
  4878. fi
  4879. rm -fr conftest*
  4880. fi
  4881.  
  4882. fi
  4883.  
  4884. echo "$ac_t""$ac_cv_func_gcvt" 1>&6
  4885. if test $ac_cv_func_gcvt = yes; then
  4886.   cat >> confdefs.h <<\EOF
  4887. #define HAVE_GCVT 1
  4888. EOF
  4889.  
  4890. fi
  4891. echo $ac_n "checking for __dtoa""... $ac_c" 1>&6
  4892. echo "configure:4893: checking for __dtoa" >&5
  4893. if eval "test \"`echo '$''{'ac_cv_func_dtoa'+set}'`\" = set"; then
  4894.   echo $ac_n "(cached) $ac_c" 1>&6
  4895. else
  4896.   cat > conftest.$ac_ext <<EOF
  4897. #line 4898 "configure"
  4898. #include "confdefs.h"
  4899. extern  char *__dtoa();
  4900. int main() {
  4901. int decpt; int sign; char *ep; char *bp;
  4902. bp = __dtoa(0.0, 2, 6, &decpt, &sign, &ep);
  4903. ; return 0; }
  4904. EOF
  4905. if { (eval echo configure:4906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4906.   rm -rf conftest*
  4907.   ac_cv_func_dtoa=yes
  4908. else
  4909.   echo "configure: failed program was:" >&5
  4910.   cat conftest.$ac_ext >&5
  4911.   rm -rf conftest*
  4912.   ac_cv_func_dtoa=no
  4913. fi
  4914. rm -f conftest*
  4915. fi
  4916.  
  4917. echo "$ac_t""$ac_cv_func_dtoa" 1>&6
  4918. if test $ac_cv_func_dtoa = yes; then
  4919.   cat >> confdefs.h <<\EOF
  4920. #define HAVE_DTOA 1
  4921. EOF
  4922.  
  4923. fi
  4924. echo $ac_n "checking for __dtoa that needs result ptr""... $ac_c" 1>&6
  4925. echo "configure:4926: checking for __dtoa that needs result ptr" >&5
  4926. if eval "test \"`echo '$''{'ac_cv_func_dtoa_r'+set}'`\" = set"; then
  4927.   echo $ac_n "(cached) $ac_c" 1>&6
  4928. else
  4929.   if test "$cross_compiling" = yes; then
  4930.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  4931. else
  4932.   cat > conftest.$ac_ext <<EOF
  4933. #line 4934 "configure"
  4934. #include "confdefs.h"
  4935.  
  4936. extern    char *__dtoa();
  4937. int
  4938. main()
  4939. {
  4940. #ifdef    HAVE_DTOA
  4941.     int    decpt, sign;
  4942.     char    *bp;
  4943.     char    *ep;
  4944.     char    *result;
  4945.  
  4946.     result = 0;
  4947.     bp = __dtoa(1.9, 2, 5, &decpt, &sign, &ep, &result);
  4948.     exit(result == 0);
  4949. #else
  4950.     exit(1);
  4951. #endif
  4952. }
  4953. EOF
  4954. if { (eval echo configure:4955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4955. then
  4956.   ac_cv_func_dtoa_r=yes
  4957. else
  4958.   echo "configure: failed program was:" >&5
  4959.   cat conftest.$ac_ext >&5
  4960.   rm -fr conftest*
  4961.   ac_cv_func_dtoa_r=no
  4962. fi
  4963. rm -fr conftest*
  4964. fi
  4965.  
  4966. fi
  4967.  
  4968. echo "$ac_t""$ac_cv_func_dtoa_r" 1>&6
  4969. if test $ac_cv_func_dtoa_r = yes; then
  4970.   cat >> confdefs.h <<\EOF
  4971. #define HAVE_DTOA_R 1
  4972. EOF
  4973.  
  4974. fi
  4975. for ac_hdr in unistd.h
  4976. do
  4977. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4978. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4979. echo "configure:4980: checking for $ac_hdr" >&5
  4980. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4981.   echo $ac_n "(cached) $ac_c" 1>&6
  4982. else
  4983.   cat > conftest.$ac_ext <<EOF
  4984. #line 4985 "configure"
  4985. #include "confdefs.h"
  4986. #include <$ac_hdr>
  4987. EOF
  4988. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4989. { (eval echo configure:4990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4990. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4991. if test -z "$ac_err"; then
  4992.   rm -rf conftest*
  4993.   eval "ac_cv_header_$ac_safe=yes"
  4994. else
  4995.   echo "$ac_err" >&5
  4996.   echo "configure: failed program was:" >&5
  4997.   cat conftest.$ac_ext >&5
  4998.   rm -rf conftest*
  4999.   eval "ac_cv_header_$ac_safe=no"
  5000. fi
  5001. rm -f conftest*
  5002. fi
  5003. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5004.   echo "$ac_t""yes" 1>&6
  5005.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5006.   cat >> confdefs.h <<EOF
  5007. #define $ac_tr_hdr 1
  5008. EOF
  5009.  
  5010. else
  5011.   echo "$ac_t""no" 1>&6
  5012. fi
  5013. done
  5014.  
  5015. for ac_func in getpagesize
  5016. do
  5017. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  5018. echo "configure:5019: checking for $ac_func" >&5
  5019. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  5020.   echo $ac_n "(cached) $ac_c" 1>&6
  5021. else
  5022.   cat > conftest.$ac_ext <<EOF
  5023. #line 5024 "configure"
  5024. #include "confdefs.h"
  5025. /* System header to define __stub macros and hopefully few prototypes,
  5026.     which can conflict with char $ac_func(); below.  */
  5027. #include <assert.h>
  5028. /* Override any gcc2 internal prototype to avoid an error.  */
  5029. /* We use char because int might match the return type of a gcc2
  5030.     builtin and then its argument prototype would still apply.  */
  5031. char $ac_func();
  5032.  
  5033. int main() {
  5034.  
  5035. /* The GNU C library defines this for functions which it implements
  5036.     to always fail with ENOSYS.  Some functions are actually named
  5037.     something starting with __ and the normal name is an alias.  */
  5038. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5039. choke me
  5040. #else
  5041. $ac_func();
  5042. #endif
  5043.  
  5044. ; return 0; }
  5045. EOF
  5046. if { (eval echo configure:5047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5047.   rm -rf conftest*
  5048.   eval "ac_cv_func_$ac_func=yes"
  5049. else
  5050.   echo "configure: failed program was:" >&5
  5051.   cat conftest.$ac_ext >&5
  5052.   rm -rf conftest*
  5053.   eval "ac_cv_func_$ac_func=no"
  5054. fi
  5055. rm -f conftest*
  5056. fi
  5057.  
  5058. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  5059.   echo "$ac_t""yes" 1>&6
  5060.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  5061.   cat >> confdefs.h <<EOF
  5062. #define $ac_tr_func 1
  5063. EOF
  5064.  
  5065. else
  5066.   echo "$ac_t""no" 1>&6
  5067. fi
  5068. done
  5069.  
  5070. echo $ac_n "checking for mmap that needs ptr to size""... $ac_c" 1>&6
  5071. echo "configure:5072: checking for mmap that needs ptr to size" >&5
  5072. if eval "test \"`echo '$''{'ac_cv_func_mmap_sizep'+set}'`\" = set"; then
  5073.   echo $ac_n "(cached) $ac_c" 1>&6
  5074. else
  5075.   if test "$cross_compiling" = yes; then
  5076.   ac_cv_func_mmap_sizep=no
  5077. else
  5078.   cat > conftest.$ac_ext <<EOF
  5079. #line 5080 "configure"
  5080. #include "confdefs.h"
  5081.  
  5082. #include <sys/types.h>
  5083. #include <fcntl.h>
  5084. #include <signal.h>
  5085. #include <setjmp.h>
  5086. #include <sys/mman.h>
  5087.  
  5088. #ifndef MAP_FILE
  5089. #define MAP_FILE   0        /* Needed on Apollo Domain/OS */
  5090. #endif
  5091.  
  5092. /* This mess was copied from the GNU getpagesize.h.  */
  5093. #ifndef HAVE_GETPAGESIZE
  5094. # ifdef HAVE_UNISTD_H
  5095. #  include <unistd.h>
  5096. # endif
  5097.  
  5098. /* Assume that all systems that can run configure have sys/param.h.  */
  5099. # ifndef HAVE_SYS_PARAM_H
  5100. #  define HAVE_SYS_PARAM_H 1
  5101. # endif
  5102.  
  5103. # ifdef _SC_PAGESIZE
  5104. #  define getpagesize() sysconf(_SC_PAGESIZE)
  5105. # else /* no _SC_PAGESIZE */
  5106. #  ifdef HAVE_SYS_PARAM_H
  5107. #   include <sys/param.h>
  5108. #   ifdef EXEC_PAGESIZE
  5109. #    define getpagesize() EXEC_PAGESIZE
  5110. #   else /* no EXEC_PAGESIZE */
  5111. #    ifdef NBPG
  5112. #     define getpagesize() NBPG * CLSIZE
  5113. #     ifndef CLSIZE
  5114. #      define CLSIZE 1
  5115. #     endif /* no CLSIZE */
  5116. #    else /* no NBPG */
  5117. #     ifdef NBPC
  5118. #      define getpagesize() NBPC
  5119. #     else /* no NBPC */
  5120. #      ifdef PAGESIZE
  5121. #       define getpagesize() PAGESIZE
  5122. #      endif /* PAGESIZE */
  5123. #     endif /* no NBPC */
  5124. #    endif /* no NBPG */
  5125. #   endif /* no EXEC_PAGESIZE */
  5126. #  else /* no HAVE_SYS_PARAM_H */
  5127. #   define getpagesize() 8192    /* punt totally */
  5128. #  endif /* no HAVE_SYS_PARAM_H */
  5129. # endif /* no _SC_PAGESIZE */
  5130.  
  5131. #endif /* no HAVE_GETPAGESIZE */
  5132.  
  5133. #ifdef __cplusplus
  5134. extern "C" { void *malloc(unsigned); }
  5135. #else
  5136. char *malloc();
  5137. #endif
  5138.  
  5139. jmp_buf jenv;
  5140.  
  5141. int
  5142. intr()
  5143. {
  5144.     signal(SIGSEGV, intr);
  5145.     longjmp(jenv, 1);
  5146. }
  5147.  
  5148. int
  5149. main()
  5150. {
  5151.     char *data, *data2;
  5152.     int i, pagesize, ps;
  5153.     int fd;
  5154.  
  5155.     pagesize = getpagesize();
  5156.  
  5157.     /*
  5158.      * First, make a file with some known garbage in it.
  5159.      */
  5160.     data = malloc(pagesize);
  5161.     if (!data)
  5162.         exit(1);
  5163.     for (i = 0; i < pagesize; ++i)
  5164.         *(data + i) = rand();
  5165.     umask(0);
  5166.     fd = creat("conftestmmap", 0600);
  5167.     if (fd < 0)
  5168.         exit(1);
  5169.     if (write(fd, data, pagesize) != pagesize)
  5170.         exit(1);
  5171.     close(fd);
  5172.  
  5173.     /*
  5174.      * Next, try to mmap the file at a fixed address which
  5175.      * already has something else allocated at it.  If we can,
  5176.      * also make sure that we see the same garbage.
  5177.      */
  5178.     fd = open("conftestmmap", O_RDWR);
  5179.     if (fd < 0)
  5180.         exit(1);
  5181.  
  5182.     /*
  5183.      * Keep a copy, Apollo modifies the value...
  5184.      */
  5185.     ps = pagesize;
  5186.  
  5187.     /*
  5188.      * Apollo mmap() is not a syscall but a library function and fails
  5189.      * if it tries to dereference 'ps'. We must use setjmp in order to
  5190.      * catch the failure.
  5191.      */
  5192.     signal(SIGSEGV, intr);
  5193.     if (setjmp(jenv) == 0) {
  5194.         data2 = mmap(0, ps, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, 0L);
  5195.     } else {
  5196.         data2 = (char *)-1;
  5197.     }
  5198.     if (data2 != (char *)-1)
  5199.         exit(1);
  5200.  
  5201.     signal(SIGSEGV, intr);
  5202.     if (setjmp(jenv) == 0) {
  5203.         data2 = mmap(0, &ps, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, 0L);
  5204.     } else {
  5205.         data2 = (char *)-1;
  5206.     }
  5207.     if (data2 == (char *)-1)
  5208.         exit(1);
  5209.  
  5210.     for (i = 0; i < pagesize; ++i)
  5211.         if (*(data + i) != *(data2 + i))
  5212.             exit(1);
  5213.  
  5214.     close(fd);
  5215.     unlink("conftestmmap");
  5216.     exit(0);
  5217. }
  5218.  
  5219. EOF
  5220. if { (eval echo configure:5221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  5221. then
  5222.   ac_cv_func_mmap_sizep=yes
  5223. else
  5224.   echo "configure: failed program was:" >&5
  5225.   cat conftest.$ac_ext >&5
  5226.   rm -fr conftest*
  5227.   ac_cv_func_mmap_sizep=no
  5228. fi
  5229. rm -fr conftest*
  5230. fi
  5231.  
  5232. fi
  5233.  
  5234. echo "$ac_t""$ac_cv_func_mmap_sizep" 1>&6
  5235. if test $ac_cv_func_mmap_sizep = yes; then
  5236.   cat >> confdefs.h <<\EOF
  5237. #define _MMAP_WITH_SIZEP 1
  5238. EOF
  5239.  
  5240. fi
  5241.  
  5242. for ac_hdr in unistd.h
  5243. do
  5244. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5245. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5246. echo "configure:5247: checking for $ac_hdr" >&5
  5247. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  5248.   echo $ac_n "(cached) $ac_c" 1>&6
  5249. else
  5250.   cat > conftest.$ac_ext <<EOF
  5251. #line 5252 "configure"
  5252. #include "confdefs.h"
  5253. #include <$ac_hdr>
  5254. EOF
  5255. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5256. { (eval echo configure:5257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5257. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5258. if test -z "$ac_err"; then
  5259.   rm -rf conftest*
  5260.   eval "ac_cv_header_$ac_safe=yes"
  5261. else
  5262.   echo "$ac_err" >&5
  5263.   echo "configure: failed program was:" >&5
  5264.   cat conftest.$ac_ext >&5
  5265.   rm -rf conftest*
  5266.   eval "ac_cv_header_$ac_safe=no"
  5267. fi
  5268. rm -f conftest*
  5269. fi
  5270. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5271.   echo "$ac_t""yes" 1>&6
  5272.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5273.   cat >> confdefs.h <<EOF
  5274. #define $ac_tr_hdr 1
  5275. EOF
  5276.  
  5277. else
  5278.   echo "$ac_t""no" 1>&6
  5279. fi
  5280. done
  5281.  
  5282. for ac_func in getpagesize
  5283. do
  5284. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  5285. echo "configure:5286: checking for $ac_func" >&5
  5286. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  5287.   echo $ac_n "(cached) $ac_c" 1>&6
  5288. else
  5289.   cat > conftest.$ac_ext <<EOF
  5290. #line 5291 "configure"
  5291. #include "confdefs.h"
  5292. /* System header to define __stub macros and hopefully few prototypes,
  5293.     which can conflict with char $ac_func(); below.  */
  5294. #include <assert.h>
  5295. /* Override any gcc2 internal prototype to avoid an error.  */
  5296. /* We use char because int might match the return type of a gcc2
  5297.     builtin and then its argument prototype would still apply.  */
  5298. char $ac_func();
  5299.  
  5300. int main() {
  5301.  
  5302. /* The GNU C library defines this for functions which it implements
  5303.     to always fail with ENOSYS.  Some functions are actually named
  5304.     something starting with __ and the normal name is an alias.  */
  5305. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5306. choke me
  5307. #else
  5308. $ac_func();
  5309. #endif
  5310.  
  5311. ; return 0; }
  5312. EOF
  5313. if { (eval echo configure:5314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5314.   rm -rf conftest*
  5315.   eval "ac_cv_func_$ac_func=yes"
  5316. else
  5317.   echo "configure: failed program was:" >&5
  5318.   cat conftest.$ac_ext >&5
  5319.   rm -rf conftest*
  5320.   eval "ac_cv_func_$ac_func=no"
  5321. fi
  5322. rm -f conftest*
  5323. fi
  5324.  
  5325. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  5326.   echo "$ac_t""yes" 1>&6
  5327.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  5328.   cat >> confdefs.h <<EOF
  5329. #define $ac_tr_func 1
  5330. EOF
  5331.  
  5332. else
  5333.   echo "$ac_t""no" 1>&6
  5334. fi
  5335. done
  5336.  
  5337. echo $ac_n "checking for working mmap""... $ac_c" 1>&6
  5338. echo "configure:5339: checking for working mmap" >&5
  5339. if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
  5340.   echo $ac_n "(cached) $ac_c" 1>&6
  5341. else
  5342.   if test "$cross_compiling" = yes; then
  5343.   ac_cv_func_mmap_fixed_mapped=no
  5344. else
  5345.   cat > conftest.$ac_ext <<EOF
  5346. #line 5347 "configure"
  5347. #include "confdefs.h"
  5348.  
  5349. /* Thanks to Mike Haertel and Jim Avera for this test.
  5350.    Here is a matrix of mmap possibilities:
  5351.     mmap private not fixed
  5352.     mmap private fixed at somewhere currently unmapped
  5353.     mmap private fixed at somewhere already mapped
  5354.     mmap shared not fixed
  5355.     mmap shared fixed at somewhere currently unmapped
  5356.     mmap shared fixed at somewhere already mapped
  5357.    For private mappings, we should verify that changes cannot be read()
  5358.    back from the file, nor mmap's back from the file at a different
  5359.    address.  (There have been systems where private was not correctly
  5360.    implemented like the infamous i386 svr4.0, and systems where the
  5361.    VM page cache was not coherent with the filesystem buffer cache
  5362.    like early versions of FreeBSD and possibly contemporary NetBSD.)
  5363.    For shared mappings, we should conversely verify that changes get
  5364.    propogated back to all the places they're supposed to be.
  5365.  
  5366.    Grep wants private fixed already mapped.
  5367.    The main things grep needs to know about mmap are:
  5368.    * does it exist and is it safe to write into the mmap'd area
  5369.    * how to use it (BSD variants)  */
  5370. #include <sys/types.h>
  5371. #include <fcntl.h>
  5372. #include <sys/mman.h>
  5373.  
  5374. /*
  5375.  * Needed for Apollo Domain/OS and may be for others?
  5376.  */
  5377. #ifdef    _MMAP_WITH_SIZEP
  5378. #    define    mmap_sizeparm(s)    (&(s))
  5379. #else
  5380. #    define    mmap_sizeparm(s)    (s)
  5381. #endif
  5382.  
  5383. /* This mess was copied from the GNU getpagesize.h.  */
  5384. #ifndef HAVE_GETPAGESIZE
  5385. # ifdef HAVE_UNISTD_H
  5386. #  include <unistd.h>
  5387. # endif
  5388.  
  5389. /* Assume that all systems that can run configure have sys/param.h.  */
  5390. # ifndef HAVE_SYS_PARAM_H
  5391. #  define HAVE_SYS_PARAM_H 1
  5392. # endif
  5393.  
  5394. # ifdef _SC_PAGESIZE
  5395. #  define getpagesize() sysconf(_SC_PAGESIZE)
  5396. # else /* no _SC_PAGESIZE */
  5397. #  ifdef HAVE_SYS_PARAM_H
  5398. #   include <sys/param.h>
  5399. #   ifdef EXEC_PAGESIZE
  5400. #    define getpagesize() EXEC_PAGESIZE
  5401. #   else /* no EXEC_PAGESIZE */
  5402. #    ifdef NBPG
  5403. #     define getpagesize() NBPG * CLSIZE
  5404. #     ifndef CLSIZE
  5405. #      define CLSIZE 1
  5406. #     endif /* no CLSIZE */
  5407. #    else /* no NBPG */
  5408. #     ifdef NBPC
  5409. #      define getpagesize() NBPC
  5410. #     else /* no NBPC */
  5411. #      ifdef PAGESIZE
  5412. #       define getpagesize() PAGESIZE
  5413. #      endif /* PAGESIZE */
  5414. #     endif /* no NBPC */
  5415. #    endif /* no NBPG */
  5416. #   endif /* no EXEC_PAGESIZE */
  5417. #  else /* no HAVE_SYS_PARAM_H */
  5418. #   define getpagesize() 8192    /* punt totally */
  5419. #  endif /* no HAVE_SYS_PARAM_H */
  5420. # endif /* no _SC_PAGESIZE */
  5421.  
  5422. #endif /* no HAVE_GETPAGESIZE */
  5423.  
  5424. #ifdef __cplusplus
  5425. extern "C" { void *malloc(unsigned); }
  5426. #else
  5427. char *malloc();
  5428. #endif
  5429.  
  5430. int
  5431. main()
  5432. {
  5433.     char *data, *data2, *data3;
  5434.     int i, pagesize;
  5435.     int fd;
  5436.  
  5437.     pagesize = getpagesize();
  5438.  
  5439.     /*
  5440.      * First, make a file with some known garbage in it.
  5441.      */
  5442.     data = malloc(pagesize);
  5443.     if (!data)
  5444.         exit(1);
  5445.     for (i = 0; i < pagesize; ++i)
  5446.         *(data + i) = rand();
  5447.     umask(0);
  5448.     fd = creat("conftestmmap", 0600);
  5449.     if (fd < 0)
  5450.         exit(1);
  5451.     if (write(fd, data, pagesize) != pagesize)
  5452.         exit(1);
  5453.     close(fd);
  5454.  
  5455.     /*
  5456.      * Next, try to mmap the file at a fixed address which
  5457.      * already has something else allocated at it.  If we can,
  5458.      * also make sure that we see the same garbage.
  5459.      */
  5460.     fd = open("conftestmmap", O_RDWR);
  5461.     if (fd < 0)
  5462.         exit(1);
  5463.     data2 = malloc(2 * pagesize);
  5464.     if (!data2)
  5465.         exit(1);
  5466.     data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
  5467.     if (data2 != mmap(data2, mmap_sizeparm(pagesize), PROT_READ | PROT_WRITE,
  5468.         MAP_PRIVATE | MAP_FIXED, fd, 0L))
  5469.         exit(1);
  5470.     for (i = 0; i < pagesize; ++i)
  5471.         if (*(data + i) != *(data2 + i))
  5472.             exit(1);
  5473.  
  5474.     /*
  5475.      * Finally, make sure that changes to the mapped area
  5476.      * do not percolate back to the file as seen by read().
  5477.      * (This is a bug on some variants of i386 svr4.0.)
  5478.      */
  5479.     for (i = 0; i < pagesize; ++i)
  5480.         *(data2 + i) = *(data2 + i) + 1;
  5481.     data3 = malloc(pagesize);
  5482.     if (!data3)
  5483.         exit(1);
  5484.     if (read(fd, data3, pagesize) != pagesize)
  5485.         exit(1);
  5486.     for (i = 0; i < pagesize; ++i)
  5487.         if (*(data + i) != *(data3 + i))
  5488.             exit(1);
  5489.     close(fd);
  5490.     unlink("conftestmmap");
  5491.     exit(0);
  5492. }
  5493.  
  5494. EOF
  5495. if { (eval echo configure:5496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  5496. then
  5497.   ac_cv_func_mmap_fixed_mapped=yes
  5498. else
  5499.   echo "configure: failed program was:" >&5
  5500.   cat conftest.$ac_ext >&5
  5501.   rm -fr conftest*
  5502.   ac_cv_func_mmap_fixed_mapped=no
  5503. fi
  5504. rm -fr conftest*
  5505. fi
  5506.  
  5507. fi
  5508.  
  5509. echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
  5510. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  5511.   cat >> confdefs.h <<\EOF
  5512. #define HAVE_MMAP 1
  5513. EOF
  5514.  
  5515. fi
  5516.  
  5517. for ac_hdr in unistd.h
  5518. do
  5519. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5520. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5521. echo "configure:5522: checking for $ac_hdr" >&5
  5522. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  5523.   echo $ac_n "(cached) $ac_c" 1>&6
  5524. else
  5525.   cat > conftest.$ac_ext <<EOF
  5526. #line 5527 "configure"
  5527. #include "confdefs.h"
  5528. #include <$ac_hdr>
  5529. EOF
  5530. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5531. { (eval echo configure:5532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5532. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5533. if test -z "$ac_err"; then
  5534.   rm -rf conftest*
  5535.   eval "ac_cv_header_$ac_safe=yes"
  5536. else
  5537.   echo "$ac_err" >&5
  5538.   echo "configure: failed program was:" >&5
  5539.   cat conftest.$ac_ext >&5
  5540.   rm -rf conftest*
  5541.   eval "ac_cv_header_$ac_safe=no"
  5542. fi
  5543. rm -f conftest*
  5544. fi
  5545. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5546.   echo "$ac_t""yes" 1>&6
  5547.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5548.   cat >> confdefs.h <<EOF
  5549. #define $ac_tr_hdr 1
  5550. EOF
  5551.  
  5552. else
  5553.   echo "$ac_t""no" 1>&6
  5554. fi
  5555. done
  5556.  
  5557. for ac_func in getpagesize
  5558. do
  5559. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  5560. echo "configure:5561: checking for $ac_func" >&5
  5561. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  5562.   echo $ac_n "(cached) $ac_c" 1>&6
  5563. else
  5564.   cat > conftest.$ac_ext <<EOF
  5565. #line 5566 "configure"
  5566. #include "confdefs.h"
  5567. /* System header to define __stub macros and hopefully few prototypes,
  5568.     which can conflict with char $ac_func(); below.  */
  5569. #include <assert.h>
  5570. /* Override any gcc2 internal prototype to avoid an error.  */
  5571. /* We use char because int might match the return type of a gcc2
  5572.     builtin and then its argument prototype would still apply.  */
  5573. char $ac_func();
  5574.  
  5575. int main() {
  5576.  
  5577. /* The GNU C library defines this for functions which it implements
  5578.     to always fail with ENOSYS.  Some functions are actually named
  5579.     something starting with __ and the normal name is an alias.  */
  5580. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5581. choke me
  5582. #else
  5583. $ac_func();
  5584. #endif
  5585.  
  5586. ; return 0; }
  5587. EOF
  5588. if { (eval echo configure:5589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5589.   rm -rf conftest*
  5590.   eval "ac_cv_func_$ac_func=yes"
  5591. else
  5592.   echo "configure: failed program was:" >&5
  5593.   cat conftest.$ac_ext >&5
  5594.   rm -rf conftest*
  5595.   eval "ac_cv_func_$ac_func=no"
  5596. fi
  5597. rm -f conftest*
  5598. fi
  5599.  
  5600. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  5601.   echo "$ac_t""yes" 1>&6
  5602.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  5603.   cat >> confdefs.h <<EOF
  5604. #define $ac_tr_func 1
  5605. EOF
  5606.  
  5607. else
  5608.   echo "$ac_t""no" 1>&6
  5609. fi
  5610. done
  5611.  
  5612. echo $ac_n "checking for mmap that needs ptr to size""... $ac_c" 1>&6
  5613. echo "configure:5614: checking for mmap that needs ptr to size" >&5
  5614. if eval "test \"`echo '$''{'ac_cv_func_mmap_sizep'+set}'`\" = set"; then
  5615.   echo $ac_n "(cached) $ac_c" 1>&6
  5616. else
  5617.   if test "$cross_compiling" = yes; then
  5618.   ac_cv_func_mmap_sizep=no
  5619. else
  5620.   cat > conftest.$ac_ext <<EOF
  5621. #line 5622 "configure"
  5622. #include "confdefs.h"
  5623.  
  5624. #include <sys/types.h>
  5625. #include <fcntl.h>
  5626. #include <signal.h>
  5627. #include <setjmp.h>
  5628. #include <sys/mman.h>
  5629.  
  5630. #ifndef MAP_FILE
  5631. #define MAP_FILE   0        /* Needed on Apollo Domain/OS */
  5632. #endif
  5633.  
  5634. /* This mess was copied from the GNU getpagesize.h.  */
  5635. #ifndef HAVE_GETPAGESIZE
  5636. # ifdef HAVE_UNISTD_H
  5637. #  include <unistd.h>
  5638. # endif
  5639.  
  5640. /* Assume that all systems that can run configure have sys/param.h.  */
  5641. # ifndef HAVE_SYS_PARAM_H
  5642. #  define HAVE_SYS_PARAM_H 1
  5643. # endif
  5644.  
  5645. # ifdef _SC_PAGESIZE
  5646. #  define getpagesize() sysconf(_SC_PAGESIZE)
  5647. # else /* no _SC_PAGESIZE */
  5648. #  ifdef HAVE_SYS_PARAM_H
  5649. #   include <sys/param.h>
  5650. #   ifdef EXEC_PAGESIZE
  5651. #    define getpagesize() EXEC_PAGESIZE
  5652. #   else /* no EXEC_PAGESIZE */
  5653. #    ifdef NBPG
  5654. #     define getpagesize() NBPG * CLSIZE
  5655. #     ifndef CLSIZE
  5656. #      define CLSIZE 1
  5657. #     endif /* no CLSIZE */
  5658. #    else /* no NBPG */
  5659. #     ifdef NBPC
  5660. #      define getpagesize() NBPC
  5661. #     else /* no NBPC */
  5662. #      ifdef PAGESIZE
  5663. #       define getpagesize() PAGESIZE
  5664. #      endif /* PAGESIZE */
  5665. #     endif /* no NBPC */
  5666. #    endif /* no NBPG */
  5667. #   endif /* no EXEC_PAGESIZE */
  5668. #  else /* no HAVE_SYS_PARAM_H */
  5669. #   define getpagesize() 8192    /* punt totally */
  5670. #  endif /* no HAVE_SYS_PARAM_H */
  5671. # endif /* no _SC_PAGESIZE */
  5672.  
  5673. #endif /* no HAVE_GETPAGESIZE */
  5674.  
  5675. #ifdef __cplusplus
  5676. extern "C" { void *malloc(unsigned); }
  5677. #else
  5678. char *malloc();
  5679. #endif
  5680.  
  5681. jmp_buf jenv;
  5682.  
  5683. int
  5684. intr()
  5685. {
  5686.     signal(SIGSEGV, intr);
  5687.     longjmp(jenv, 1);
  5688. }
  5689.  
  5690. int
  5691. main()
  5692. {
  5693.     char *data, *data2;
  5694.     int i, pagesize, ps;
  5695.     int fd;
  5696.  
  5697.     pagesize = getpagesize();
  5698.  
  5699.     /*
  5700.      * First, make a file with some known garbage in it.
  5701.      */
  5702.     data = malloc(pagesize);
  5703.     if (!data)
  5704.         exit(1);
  5705.     for (i = 0; i < pagesize; ++i)
  5706.         *(data + i) = rand();
  5707.     umask(0);
  5708.     fd = creat("conftestmmap", 0600);
  5709.     if (fd < 0)
  5710.         exit(1);
  5711.     if (write(fd, data, pagesize) != pagesize)
  5712.         exit(1);
  5713.     close(fd);
  5714.  
  5715.     /*
  5716.      * Next, try to mmap the file at a fixed address which
  5717.      * already has something else allocated at it.  If we can,
  5718.      * also make sure that we see the same garbage.
  5719.      */
  5720.     fd = open("conftestmmap", O_RDWR);
  5721.     if (fd < 0)
  5722.         exit(1);
  5723.  
  5724.     /*
  5725.      * Keep a copy, Apollo modifies the value...
  5726.      */
  5727.     ps = pagesize;
  5728.  
  5729.     /*
  5730.      * Apollo mmap() is not a syscall but a library function and fails
  5731.      * if it tries to dereference 'ps'. We must use setjmp in order to
  5732.      * catch the failure.
  5733.      */
  5734.     signal(SIGSEGV, intr);
  5735.     if (setjmp(jenv) == 0) {
  5736.         data2 = mmap(0, ps, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, 0L);
  5737.     } else {
  5738.         data2 = (char *)-1;
  5739.     }
  5740.     if (data2 != (char *)-1)
  5741.         exit(1);
  5742.  
  5743.     signal(SIGSEGV, intr);
  5744.     if (setjmp(jenv) == 0) {
  5745.         data2 = mmap(0, &ps, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, 0L);
  5746.     } else {
  5747.         data2 = (char *)-1;
  5748.     }
  5749.     if (data2 == (char *)-1)
  5750.         exit(1);
  5751.  
  5752.     for (i = 0; i < pagesize; ++i)
  5753.         if (*(data + i) != *(data2 + i))
  5754.             exit(1);
  5755.  
  5756.     close(fd);
  5757.     unlink("conftestmmap");
  5758.     exit(0);
  5759. }
  5760.  
  5761. EOF
  5762. if { (eval echo configure:5763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  5763. then
  5764.   ac_cv_func_mmap_sizep=yes
  5765. else
  5766.   echo "configure: failed program was:" >&5
  5767.   cat conftest.$ac_ext >&5
  5768.   rm -fr conftest*
  5769.   ac_cv_func_mmap_sizep=no
  5770. fi
  5771. rm -fr conftest*
  5772. fi
  5773.  
  5774. fi
  5775.  
  5776. echo "$ac_t""$ac_cv_func_mmap_sizep" 1>&6
  5777. if test $ac_cv_func_mmap_sizep = yes; then
  5778.   cat >> confdefs.h <<\EOF
  5779. #define _MMAP_WITH_SIZEP 1
  5780. EOF
  5781.  
  5782. fi
  5783.  
  5784. echo $ac_n "checking if mmap works to get shared memory""... $ac_c" 1>&6
  5785. echo "configure:5786: checking if mmap works to get shared memory" >&5
  5786. if eval "test \"`echo '$''{'ac_cv_func_smmap'+set}'`\" = set"; then
  5787.   echo $ac_n "(cached) $ac_c" 1>&6
  5788. else
  5789.   if test "$cross_compiling" = yes; then
  5790.   ac_cv_func_smmap=no
  5791. else
  5792.   cat > conftest.$ac_ext <<EOF
  5793. #line 5794 "configure"
  5794. #include "confdefs.h"
  5795.  
  5796. #include <sys/types.h>
  5797. #include <sys/mman.h>
  5798.  
  5799. #ifndef    MAP_ANONYMOUS
  5800. #    ifdef    MAP_ANON
  5801. #        define MAP_ANONYMOUS MAP_ANON
  5802. #    endif
  5803. #endif
  5804.  
  5805. /*
  5806.  * Needed for Apollo Domain/OS and may be for others?
  5807.  */
  5808. #ifdef    _MMAP_WITH_SIZEP
  5809. #    define    mmap_sizeparm(s)    (&(s))
  5810. #else
  5811. #    define    mmap_sizeparm(s)    (s)
  5812. #endif
  5813.  
  5814. char *
  5815. mkshare()
  5816. {
  5817.         int     size = 8192;
  5818.         int     f;
  5819.         char    *addr;
  5820.  
  5821. #ifdef  MAP_ANONYMOUS   /* HP/UX */
  5822.         f = -1;
  5823.         addr = mmap(0, mmap_sizeparm(size), PROT_READ|PROT_WRITE, MAP_SHARED|MAP_ANONYMOUS, f, 0);
  5824. #else
  5825.         if ((f = open("/dev/zero", 2)) < 0)
  5826.                 exit(1);
  5827.         addr = mmap(0, mmap_sizeparm(size), PROT_READ|PROT_WRITE, MAP_SHARED, f, 0);
  5828. #endif
  5829.         if (addr == (char *)-1)
  5830.                 exit(1);
  5831.         close(f);
  5832.  
  5833.         return (addr);
  5834. }
  5835.  
  5836. int
  5837. main()
  5838. {
  5839.         char    *addr;
  5840.         
  5841.         addr = mkshare();
  5842.         *addr = 'I';
  5843.  
  5844.         switch (fork()) {
  5845.  
  5846.         case -1:
  5847.                 printf("help\n"); exit(1);
  5848.  
  5849.         case 0: /* child */
  5850.                 *addr = 'N';
  5851.                 _exit(0);
  5852.                 break;
  5853.         default: /* parent */
  5854.                 wait(0);
  5855.                 sleep(1);
  5856.                 break;
  5857.         }
  5858.  
  5859.         if (*addr != 'N')
  5860.                 exit(1);
  5861.         exit(0);
  5862. }
  5863.  
  5864. EOF
  5865. if { (eval echo configure:5866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  5866. then
  5867.   ac_cv_func_smmap=yes
  5868. else
  5869.   echo "configure: failed program was:" >&5
  5870.   cat conftest.$ac_ext >&5
  5871.   rm -fr conftest*
  5872.   ac_cv_func_smmap=no
  5873. fi
  5874. rm -fr conftest*
  5875. fi
  5876.  
  5877. fi
  5878.  
  5879. echo "$ac_t""$ac_cv_func_smmap" 1>&6
  5880. if test $ac_cv_func_smmap = yes; then
  5881.   cat >> confdefs.h <<\EOF
  5882. #define HAVE_SMMAP 1
  5883. EOF
  5884.  
  5885. fi
  5886. echo $ac_n "checking if quotactl is an ioctl""... $ac_c" 1>&6
  5887. echo "configure:5888: checking if quotactl is an ioctl" >&5
  5888. if eval "test \"`echo '$''{'ac_cv_func_quotaioctl'+set}'`\" = set"; then
  5889.   echo $ac_n "(cached) $ac_c" 1>&6
  5890. else
  5891.   cat > conftest.$ac_ext <<EOF
  5892. #line 5893 "configure"
  5893. #include "confdefs.h"
  5894. #include <sys/types.h>
  5895. #include <sys/fs/ufs_quota.h>
  5896. int main() {
  5897. struct quotctl q; ioctl(0, Q_QUOTACTL, &q)
  5898. ; return 0; }
  5899. EOF
  5900. if { (eval echo configure:5901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5901.   rm -rf conftest*
  5902.   ac_cv_func_quotaioctl=yes
  5903. else
  5904.   echo "configure: failed program was:" >&5
  5905.   cat conftest.$ac_ext >&5
  5906.   rm -rf conftest*
  5907.   ac_cv_func_quotaioctl=no
  5908. fi
  5909. rm -f conftest*
  5910. fi
  5911.  
  5912. echo "$ac_t""$ac_cv_func_quotaioctl" 1>&6 
  5913. if test $ac_cv_func_quotaioctl = yes; then
  5914.   cat >> confdefs.h <<\EOF
  5915. #define HAVE_QUOTAIOCTL 1
  5916. EOF
  5917.  
  5918. fi
  5919. echo $ac_n "checking for file locking via fcntl""... $ac_c" 1>&6
  5920. echo "configure:5921: checking for file locking via fcntl" >&5
  5921. if eval "test \"`echo '$''{'ac_cv_func_fcntl_lock'+set}'`\" = set"; then
  5922.   echo $ac_n "(cached) $ac_c" 1>&6
  5923. else
  5924.   cat > conftest.$ac_ext <<EOF
  5925. #line 5926 "configure"
  5926. #include "confdefs.h"
  5927.  
  5928. #include <sys/types.h>
  5929. #include <fcntl.h>
  5930. int main() {
  5931.  
  5932. struct flock fl;
  5933. fcntl(0, F_SETLK, &fl);
  5934. ; return 0; }
  5935. EOF
  5936. if { (eval echo configure:5937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5937.   rm -rf conftest*
  5938.   ac_cv_func_fcntl_lock=yes
  5939. else
  5940.   echo "configure: failed program was:" >&5
  5941.   cat conftest.$ac_ext >&5
  5942.   rm -rf conftest*
  5943.   ac_cv_func_fcntl_lock=no
  5944. fi
  5945. rm -f conftest*
  5946. fi
  5947.  
  5948. echo "$ac_t""$ac_cv_func_fcntl_lock" 1>&6
  5949. if test $ac_cv_func_fcntl_lock = yes; then
  5950.   cat >> confdefs.h <<\EOF
  5951. #define HAVE_FCNTL_LOCKF 1
  5952. EOF
  5953.  
  5954. fi
  5955. echo $ac_n "checking for uname""... $ac_c" 1>&6
  5956. echo "configure:5957: checking for uname" >&5
  5957. if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then
  5958.   echo $ac_n "(cached) $ac_c" 1>&6
  5959. else
  5960.   cat > conftest.$ac_ext <<EOF
  5961. #line 5962 "configure"
  5962. #include "confdefs.h"
  5963. #include <sys/utsname.h>
  5964. int main() {
  5965. struct    utsname un;
  5966. uname(&un);
  5967. ; return 0; }
  5968. EOF
  5969. if { (eval echo configure:5970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5970.   rm -rf conftest*
  5971.   ac_cv_func_uname=yes
  5972. else
  5973.   echo "configure: failed program was:" >&5
  5974.   cat conftest.$ac_ext >&5
  5975.   rm -rf conftest*
  5976.   ac_cv_func_uname=no
  5977. fi
  5978. rm -f conftest*
  5979. fi
  5980.  
  5981. echo "$ac_t""$ac_cv_func_uname" 1>&6
  5982. if test $ac_cv_func_uname = yes; then
  5983.   cat >> confdefs.h <<\EOF
  5984. #define HAVE_UNAME 1
  5985. EOF
  5986.  
  5987. fi
  5988. ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
  5989. echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
  5990. echo "configure:5991: checking for vfork.h" >&5
  5991. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  5992.   echo $ac_n "(cached) $ac_c" 1>&6
  5993. else
  5994.   cat > conftest.$ac_ext <<EOF
  5995. #line 5996 "configure"
  5996. #include "confdefs.h"
  5997. #include <vfork.h>
  5998. EOF
  5999. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6000. { (eval echo configure:6001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6001. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6002. if test -z "$ac_err"; then
  6003.   rm -rf conftest*
  6004.   eval "ac_cv_header_$ac_safe=yes"
  6005. else
  6006.   echo "$ac_err" >&5
  6007.   echo "configure: failed program was:" >&5
  6008.   cat conftest.$ac_ext >&5
  6009.   rm -rf conftest*
  6010.   eval "ac_cv_header_$ac_safe=no"
  6011. fi
  6012. rm -f conftest*
  6013. fi
  6014. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6015.   echo "$ac_t""yes" 1>&6
  6016.   cat >> confdefs.h <<\EOF
  6017. #define HAVE_VFORK_H 1
  6018. EOF
  6019.  
  6020. else
  6021.   echo "$ac_t""no" 1>&6
  6022. fi
  6023.  
  6024. echo $ac_n "checking for working vfork""... $ac_c" 1>&6
  6025. echo "configure:6026: checking for working vfork" >&5
  6026. if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
  6027.   echo $ac_n "(cached) $ac_c" 1>&6
  6028. else
  6029.   if test "$cross_compiling" = yes; then
  6030.   echo $ac_n "checking for vfork""... $ac_c" 1>&6
  6031. echo "configure:6032: checking for vfork" >&5
  6032. if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
  6033.   echo $ac_n "(cached) $ac_c" 1>&6
  6034. else
  6035.   cat > conftest.$ac_ext <<EOF
  6036. #line 6037 "configure"
  6037. #include "confdefs.h"
  6038. /* System header to define __stub macros and hopefully few prototypes,
  6039.     which can conflict with char vfork(); below.  */
  6040. #include <assert.h>
  6041. /* Override any gcc2 internal prototype to avoid an error.  */
  6042. /* We use char because int might match the return type of a gcc2
  6043.     builtin and then its argument prototype would still apply.  */
  6044. char vfork();
  6045.  
  6046. int main() {
  6047.  
  6048. /* The GNU C library defines this for functions which it implements
  6049.     to always fail with ENOSYS.  Some functions are actually named
  6050.     something starting with __ and the normal name is an alias.  */
  6051. #if defined (__stub_vfork) || defined (__stub___vfork)
  6052. choke me
  6053. #else
  6054. vfork();
  6055. #endif
  6056.  
  6057. ; return 0; }
  6058. EOF
  6059. if { (eval echo configure:6060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6060.   rm -rf conftest*
  6061.   eval "ac_cv_func_vfork=yes"
  6062. else
  6063.   echo "configure: failed program was:" >&5
  6064.   cat conftest.$ac_ext >&5
  6065.   rm -rf conftest*
  6066.   eval "ac_cv_func_vfork=no"
  6067. fi
  6068. rm -f conftest*
  6069. fi
  6070.  
  6071. if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
  6072.   echo "$ac_t""yes" 1>&6
  6073.   :
  6074. else
  6075.   echo "$ac_t""no" 1>&6
  6076. fi
  6077.  
  6078. ac_cv_func_vfork_works=$ac_cv_func_vfork
  6079. else
  6080.   cat > conftest.$ac_ext <<EOF
  6081. #line 6082 "configure"
  6082. #include "confdefs.h"
  6083. /* Thanks to Paul Eggert for this test.  */
  6084. #include <stdio.h>
  6085. #include <sys/types.h>
  6086. #include <sys/stat.h>
  6087. #ifdef HAVE_UNISTD_H
  6088. #include <unistd.h>
  6089. #endif
  6090. #ifdef HAVE_VFORK_H
  6091. #include <vfork.h>
  6092. #endif
  6093. /* On some sparc systems, changes by the child to local and incoming
  6094.    argument registers are propagated back to the parent.
  6095.    The compiler is told about this with #include <vfork.h>,
  6096.    but some compilers (e.g. gcc -O) don't grok <vfork.h>.
  6097.    Test for this by using a static variable whose address
  6098.    is put into a register that is clobbered by the vfork.  */
  6099. static
  6100. #ifdef __cplusplus
  6101. sparc_address_test (int arg)
  6102. #else
  6103. sparc_address_test (arg) int arg;
  6104. #endif
  6105. {
  6106.   static pid_t child;
  6107.   if (!child) {
  6108.     child = vfork ();
  6109.     if (child < 0) {
  6110.       perror ("vfork");
  6111.       _exit(2);
  6112.     }
  6113.     if (!child) {
  6114.       arg = getpid();
  6115.       write(-1, "", 0);
  6116.       _exit (arg);
  6117.     }
  6118.   }
  6119. }
  6120. main() {
  6121.   pid_t parent = getpid ();
  6122.   pid_t child;
  6123.  
  6124.   sparc_address_test ();
  6125.  
  6126.   child = vfork ();
  6127.  
  6128.   if (child == 0) {
  6129.     /* Here is another test for sparc vfork register problems.
  6130.        This test uses lots of local variables, at least
  6131.        as many local variables as main has allocated so far
  6132.        including compiler temporaries.  4 locals are enough for
  6133.        gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
  6134.        A buggy compiler should reuse the register of parent
  6135.        for one of the local variables, since it will think that
  6136.        parent can't possibly be used any more in this routine.
  6137.        Assigning to the local variable will thus munge parent
  6138.        in the parent process.  */
  6139.     pid_t
  6140.       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  6141.       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  6142.     /* Convince the compiler that p..p7 are live; otherwise, it might
  6143.        use the same hardware register for all 8 local variables.  */
  6144.     if (p != p1 || p != p2 || p != p3 || p != p4
  6145.     || p != p5 || p != p6 || p != p7)
  6146.       _exit(1);
  6147.  
  6148.     /* On some systems (e.g. IRIX 3.3),
  6149.        vfork doesn't separate parent from child file descriptors.
  6150.        If the child closes a descriptor before it execs or exits,
  6151.        this munges the parent's descriptor as well.
  6152.        Test for this by closing stdout in the child.  */
  6153.     _exit(close(fileno(stdout)) != 0);
  6154.   } else {
  6155.     int status;
  6156.     struct stat st;
  6157.  
  6158.     while (wait(&status) != child)
  6159.       ;
  6160.     exit(
  6161.      /* Was there some problem with vforking?  */
  6162.      child < 0
  6163.  
  6164.      /* Did the child fail?  (This shouldn't happen.)  */
  6165.      || status
  6166.  
  6167.      /* Did the vfork/compiler bug occur?  */
  6168.      || parent != getpid()
  6169.  
  6170.      /* Did the file descriptor bug occur?  */
  6171.      || fstat(fileno(stdout), &st) != 0
  6172.      );
  6173.   }
  6174. }
  6175. EOF
  6176. if { (eval echo configure:6177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  6177. then
  6178.   ac_cv_func_vfork_works=yes
  6179. else
  6180.   echo "configure: failed program was:" >&5
  6181.   cat conftest.$ac_ext >&5
  6182.   rm -fr conftest*
  6183.   ac_cv_func_vfork_works=no
  6184. fi
  6185. rm -fr conftest*
  6186. fi
  6187.  
  6188. fi
  6189.  
  6190. echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
  6191. if test $ac_cv_func_vfork_works = no; then
  6192.   cat >> confdefs.h <<\EOF
  6193. #define vfork fork
  6194. EOF
  6195.  
  6196. fi
  6197.  
  6198. echo $ac_n "checking for sys_siglist""... $ac_c" 1>&6
  6199. echo "configure:6200: checking for sys_siglist" >&5
  6200. if eval "test \"`echo '$''{'ac_cv_func_sys_siglist'+set}'`\" = set"; then
  6201.   echo $ac_n "(cached) $ac_c" 1>&6
  6202. else
  6203.   if test "$cross_compiling" = yes; then
  6204.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  6205. else
  6206.   cat > conftest.$ac_ext <<EOF
  6207. #line 6208 "configure"
  6208. #include "confdefs.h"
  6209.  
  6210. int
  6211. main()
  6212. { extern char *sys_siglist[];
  6213. if (sys_siglist[1] == 0)
  6214.     exit(1);
  6215. exit(0);}
  6216. EOF
  6217. if { (eval echo configure:6218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  6218. then
  6219.   ac_cv_func_sys_siglist=yes
  6220. else
  6221.   echo "configure: failed program was:" >&5
  6222.   cat conftest.$ac_ext >&5
  6223.   rm -fr conftest*
  6224.   ac_cv_func_sys_siglist=no
  6225. fi
  6226. rm -fr conftest*
  6227. fi
  6228.  
  6229. fi
  6230.  
  6231. echo "$ac_t""$ac_cv_func_sys_siglist" 1>&6
  6232. if test $ac_cv_func_sys_siglist = yes; then
  6233.   cat >> confdefs.h <<\EOF
  6234. #define HAVE_SYS_SIGLIST 1
  6235. EOF
  6236.  
  6237. fi
  6238. echo $ac_n "checking for BSD compliant getpgrp""... $ac_c" 1>&6
  6239. echo "configure:6240: checking for BSD compliant getpgrp" >&5
  6240. if eval "test \"`echo '$''{'ac_cv_func_bsd_getpgrp'+set}'`\" = set"; then
  6241.   echo $ac_n "(cached) $ac_c" 1>&6
  6242. else
  6243.   if test "$cross_compiling" = yes; then
  6244.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  6245. else
  6246.   cat > conftest.$ac_ext <<EOF
  6247. #line 6248 "configure"
  6248. #include "confdefs.h"
  6249.  
  6250. int
  6251. main()
  6252. { long p;
  6253. /*
  6254.  * POSIX getpgrp() has void parameter...
  6255.  */
  6256.     p = getpgrp(-1);
  6257.     if (p == getpgrp(1) && p == getpgrp(getpid()))
  6258.         exit(1);
  6259. exit(0);}
  6260. EOF
  6261. if { (eval echo configure:6262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  6262. then
  6263.   ac_cv_func_bsd_getpgrp=yes
  6264. else
  6265.   echo "configure: failed program was:" >&5
  6266.   cat conftest.$ac_ext >&5
  6267.   rm -fr conftest*
  6268.   ac_cv_func_bsd_getpgrp=no
  6269. fi
  6270. rm -fr conftest*
  6271. fi
  6272.  
  6273. fi
  6274.  
  6275. echo "$ac_t""$ac_cv_func_bsd_getpgrp" 1>&6
  6276. if test $ac_cv_func_bsd_getpgrp = yes; then
  6277.   cat >> confdefs.h <<\EOF
  6278. #define HAVE_BSD_GETPGRP 1
  6279. EOF
  6280.  
  6281. fi
  6282. echo $ac_n "checking for BSD compliant setpgrp""... $ac_c" 1>&6
  6283. echo "configure:6284: checking for BSD compliant setpgrp" >&5
  6284. if eval "test \"`echo '$''{'ac_cv_func_bsd_setpgrp'+set}'`\" = set"; then
  6285.   echo $ac_n "(cached) $ac_c" 1>&6
  6286. else
  6287.   if test "$cross_compiling" = yes; then
  6288.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  6289. else
  6290.   cat > conftest.$ac_ext <<EOF
  6291. #line 6292 "configure"
  6292. #include "confdefs.h"
  6293.  
  6294. #include <errno.h>
  6295. #ifndef    HAVE_ERRNO_DEF
  6296. extern    int    errno;
  6297. #endif
  6298. int
  6299. main()
  6300. { errno = 0;
  6301. /*
  6302.  * Force illegal pid on BSD
  6303.  */
  6304. if (setpgrp(-1, 100) < 0 && errno == ESRCH)
  6305.     exit(0);
  6306. exit(1);}
  6307. EOF
  6308. if { (eval echo configure:6309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  6309. then
  6310.   ac_cv_func_bsd_setpgrp=yes
  6311. else
  6312.   echo "configure: failed program was:" >&5
  6313.   cat conftest.$ac_ext >&5
  6314.   rm -fr conftest*
  6315.   ac_cv_func_bsd_setpgrp=no
  6316. fi
  6317. rm -fr conftest*
  6318. fi
  6319.  
  6320. fi
  6321.  
  6322. echo "$ac_t""$ac_cv_func_bsd_setpgrp" 1>&6
  6323. if test $ac_cv_func_bsd_setpgrp = yes; then
  6324.   cat >> confdefs.h <<\EOF
  6325. #define HAVE_BSD_SETPGRP 1
  6326. EOF
  6327.  
  6328. fi
  6329. for ac_func in brk sbrk strerror nice memmove flock lockf fchdir statvfs quotactl
  6330. do
  6331. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  6332. echo "configure:6333: checking for $ac_func" >&5
  6333. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  6334.   echo $ac_n "(cached) $ac_c" 1>&6
  6335. else
  6336.   cat > conftest.$ac_ext <<EOF
  6337. #line 6338 "configure"
  6338. #include "confdefs.h"
  6339. /* System header to define __stub macros and hopefully few prototypes,
  6340.     which can conflict with char $ac_func(); below.  */
  6341. #include <assert.h>
  6342. /* Override any gcc2 internal prototype to avoid an error.  */
  6343. /* We use char because int might match the return type of a gcc2
  6344.     builtin and then its argument prototype would still apply.  */
  6345. char $ac_func();
  6346.  
  6347. int main() {
  6348.  
  6349. /* The GNU C library defines this for functions which it implements
  6350.     to always fail with ENOSYS.  Some functions are actually named
  6351.     something starting with __ and the normal name is an alias.  */
  6352. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6353. choke me
  6354. #else
  6355. $ac_func();
  6356. #endif
  6357.  
  6358. ; return 0; }
  6359. EOF
  6360. if { (eval echo configure:6361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6361.   rm -rf conftest*
  6362.   eval "ac_cv_func_$ac_func=yes"
  6363. else
  6364.   echo "configure: failed program was:" >&5
  6365.   cat conftest.$ac_ext >&5
  6366.   rm -rf conftest*
  6367.   eval "ac_cv_func_$ac_func=no"
  6368. fi
  6369. rm -f conftest*
  6370. fi
  6371.  
  6372. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  6373.   echo "$ac_t""yes" 1>&6
  6374.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  6375.   cat >> confdefs.h <<EOF
  6376. #define $ac_tr_func 1
  6377. EOF
  6378.  
  6379. else
  6380.   echo "$ac_t""no" 1>&6
  6381. fi
  6382. done
  6383.  
  6384. for ac_func in getcwd shmat semget
  6385. do
  6386. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  6387. echo "configure:6388: checking for $ac_func" >&5
  6388. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  6389.   echo $ac_n "(cached) $ac_c" 1>&6
  6390. else
  6391.   cat > conftest.$ac_ext <<EOF
  6392. #line 6393 "configure"
  6393. #include "confdefs.h"
  6394. /* System header to define __stub macros and hopefully few prototypes,
  6395.     which can conflict with char $ac_func(); below.  */
  6396. #include <assert.h>
  6397. /* Override any gcc2 internal prototype to avoid an error.  */
  6398. /* We use char because int might match the return type of a gcc2
  6399.     builtin and then its argument prototype would still apply.  */
  6400. char $ac_func();
  6401.  
  6402. int main() {
  6403.  
  6404. /* The GNU C library defines this for functions which it implements
  6405.     to always fail with ENOSYS.  Some functions are actually named
  6406.     something starting with __ and the normal name is an alias.  */
  6407. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6408. choke me
  6409. #else
  6410. $ac_func();
  6411. #endif
  6412.  
  6413. ; return 0; }
  6414. EOF
  6415. if { (eval echo configure:6416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6416.   rm -rf conftest*
  6417.   eval "ac_cv_func_$ac_func=yes"
  6418. else
  6419.   echo "configure: failed program was:" >&5
  6420.   cat conftest.$ac_ext >&5
  6421.   rm -rf conftest*
  6422.   eval "ac_cv_func_$ac_func=no"
  6423. fi
  6424. rm -f conftest*
  6425. fi
  6426.  
  6427. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  6428.   echo "$ac_t""yes" 1>&6
  6429.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  6430.   cat >> confdefs.h <<EOF
  6431. #define $ac_tr_func 1
  6432. EOF
  6433.  
  6434. else
  6435.   echo "$ac_t""no" 1>&6
  6436. fi
  6437. done
  6438.  
  6439. for ac_func in lstat readlink link rename mkfifo mknod
  6440. do
  6441. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  6442. echo "configure:6443: checking for $ac_func" >&5
  6443. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  6444.   echo $ac_n "(cached) $ac_c" 1>&6
  6445. else
  6446.   cat > conftest.$ac_ext <<EOF
  6447. #line 6448 "configure"
  6448. #include "confdefs.h"
  6449. /* System header to define __stub macros and hopefully few prototypes,
  6450.     which can conflict with char $ac_func(); below.  */
  6451. #include <assert.h>
  6452. /* Override any gcc2 internal prototype to avoid an error.  */
  6453. /* We use char because int might match the return type of a gcc2
  6454.     builtin and then its argument prototype would still apply.  */
  6455. char $ac_func();
  6456.  
  6457. int main() {
  6458.  
  6459. /* The GNU C library defines this for functions which it implements
  6460.     to always fail with ENOSYS.  Some functions are actually named
  6461.     something starting with __ and the normal name is an alias.  */
  6462. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6463. choke me
  6464. #else
  6465. $ac_func();
  6466. #endif
  6467.  
  6468. ; return 0; }
  6469. EOF
  6470. if { (eval echo configure:6471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6471.   rm -rf conftest*
  6472.   eval "ac_cv_func_$ac_func=yes"
  6473. else
  6474.   echo "configure: failed program was:" >&5
  6475.   cat conftest.$ac_ext >&5
  6476.   rm -rf conftest*
  6477.   eval "ac_cv_func_$ac_func=no"
  6478. fi
  6479. rm -f conftest*
  6480. fi
  6481.  
  6482. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  6483.   echo "$ac_t""yes" 1>&6
  6484.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  6485.   cat >> confdefs.h <<EOF
  6486. #define $ac_tr_func 1
  6487. EOF
  6488.  
  6489. else
  6490.   echo "$ac_t""no" 1>&6
  6491. fi
  6492. done
  6493.  
  6494. for ac_func in setreuid setresuid seteuid setuid
  6495. do
  6496. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  6497. echo "configure:6498: checking for $ac_func" >&5
  6498. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  6499.   echo $ac_n "(cached) $ac_c" 1>&6
  6500. else
  6501.   cat > conftest.$ac_ext <<EOF
  6502. #line 6503 "configure"
  6503. #include "confdefs.h"
  6504. /* System header to define __stub macros and hopefully few prototypes,
  6505.     which can conflict with char $ac_func(); below.  */
  6506. #include <assert.h>
  6507. /* Override any gcc2 internal prototype to avoid an error.  */
  6508. /* We use char because int might match the return type of a gcc2
  6509.     builtin and then its argument prototype would still apply.  */
  6510. char $ac_func();
  6511.  
  6512. int main() {
  6513.  
  6514. /* The GNU C library defines this for functions which it implements
  6515.     to always fail with ENOSYS.  Some functions are actually named
  6516.     something starting with __ and the normal name is an alias.  */
  6517. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6518. choke me
  6519. #else
  6520. $ac_func();
  6521. #endif
  6522.  
  6523. ; return 0; }
  6524. EOF
  6525. if { (eval echo configure:6526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6526.   rm -rf conftest*
  6527.   eval "ac_cv_func_$ac_func=yes"
  6528. else
  6529.   echo "configure: failed program was:" >&5
  6530.   cat conftest.$ac_ext >&5
  6531.   rm -rf conftest*
  6532.   eval "ac_cv_func_$ac_func=no"
  6533. fi
  6534. rm -f conftest*
  6535. fi
  6536.  
  6537. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  6538.   echo "$ac_t""yes" 1>&6
  6539.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  6540.   cat >> confdefs.h <<EOF
  6541. #define $ac_tr_func 1
  6542. EOF
  6543.  
  6544. else
  6545.   echo "$ac_t""no" 1>&6
  6546. fi
  6547. done
  6548.  
  6549. for ac_func in setregid setresgid setegid setgid
  6550. do
  6551. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  6552. echo "configure:6553: checking for $ac_func" >&5
  6553. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  6554.   echo $ac_n "(cached) $ac_c" 1>&6
  6555. else
  6556.   cat > conftest.$ac_ext <<EOF
  6557. #line 6558 "configure"
  6558. #include "confdefs.h"
  6559. /* System header to define __stub macros and hopefully few prototypes,
  6560.     which can conflict with char $ac_func(); below.  */
  6561. #include <assert.h>
  6562. /* Override any gcc2 internal prototype to avoid an error.  */
  6563. /* We use char because int might match the return type of a gcc2
  6564.     builtin and then its argument prototype would still apply.  */
  6565. char $ac_func();
  6566.  
  6567. int main() {
  6568.  
  6569. /* The GNU C library defines this for functions which it implements
  6570.     to always fail with ENOSYS.  Some functions are actually named
  6571.     something starting with __ and the normal name is an alias.  */
  6572. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6573. choke me
  6574. #else
  6575. $ac_func();
  6576. #endif
  6577.  
  6578. ; return 0; }
  6579. EOF
  6580. if { (eval echo configure:6581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6581.   rm -rf conftest*
  6582.   eval "ac_cv_func_$ac_func=yes"
  6583. else
  6584.   echo "configure: failed program was:" >&5
  6585.   cat conftest.$ac_ext >&5
  6586.   rm -rf conftest*
  6587.   eval "ac_cv_func_$ac_func=no"
  6588. fi
  6589. rm -f conftest*
  6590. fi
  6591.  
  6592. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  6593.   echo "$ac_t""yes" 1>&6
  6594.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  6595.   cat >> confdefs.h <<EOF
  6596. #define $ac_tr_func 1
  6597. EOF
  6598.  
  6599. else
  6600.   echo "$ac_t""no" 1>&6
  6601. fi
  6602. done
  6603.  
  6604. for ac_func in getpgid setpgid
  6605. do
  6606. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  6607. echo "configure:6608: checking for $ac_func" >&5
  6608. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  6609.   echo $ac_n "(cached) $ac_c" 1>&6
  6610. else
  6611.   cat > conftest.$ac_ext <<EOF
  6612. #line 6613 "configure"
  6613. #include "confdefs.h"
  6614. /* System header to define __stub macros and hopefully few prototypes,
  6615.     which can conflict with char $ac_func(); below.  */
  6616. #include <assert.h>
  6617. /* Override any gcc2 internal prototype to avoid an error.  */
  6618. /* We use char because int might match the return type of a gcc2
  6619.     builtin and then its argument prototype would still apply.  */
  6620. char $ac_func();
  6621.  
  6622. int main() {
  6623.  
  6624. /* The GNU C library defines this for functions which it implements
  6625.     to always fail with ENOSYS.  Some functions are actually named
  6626.     something starting with __ and the normal name is an alias.  */
  6627. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6628. choke me
  6629. #else
  6630. $ac_func();
  6631. #endif
  6632.  
  6633. ; return 0; }
  6634. EOF
  6635. if { (eval echo configure:6636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6636.   rm -rf conftest*
  6637.   eval "ac_cv_func_$ac_func=yes"
  6638. else
  6639.   echo "configure: failed program was:" >&5
  6640.   cat conftest.$ac_ext >&5
  6641.   rm -rf conftest*
  6642.   eval "ac_cv_func_$ac_func=no"
  6643. fi
  6644. rm -f conftest*
  6645. fi
  6646.  
  6647. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  6648.   echo "$ac_t""yes" 1>&6
  6649.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  6650.   cat >> confdefs.h <<EOF
  6651. #define $ac_tr_func 1
  6652. EOF
  6653.  
  6654. else
  6655.   echo "$ac_t""no" 1>&6
  6656. fi
  6657. done
  6658.  
  6659. for ac_func in getpgrp setpgrp
  6660. do
  6661. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  6662. echo "configure:6663: checking for $ac_func" >&5
  6663. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  6664.   echo $ac_n "(cached) $ac_c" 1>&6
  6665. else
  6666.   cat > conftest.$ac_ext <<EOF
  6667. #line 6668 "configure"
  6668. #include "confdefs.h"
  6669. /* System header to define __stub macros and hopefully few prototypes,
  6670.     which can conflict with char $ac_func(); below.  */
  6671. #include <assert.h>
  6672. /* Override any gcc2 internal prototype to avoid an error.  */
  6673. /* We use char because int might match the return type of a gcc2
  6674.     builtin and then its argument prototype would still apply.  */
  6675. char $ac_func();
  6676.  
  6677. int main() {
  6678.  
  6679. /* The GNU C library defines this for functions which it implements
  6680.     to always fail with ENOSYS.  Some functions are actually named
  6681.     something starting with __ and the normal name is an alias.  */
  6682. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6683. choke me
  6684. #else
  6685. $ac_func();
  6686. #endif
  6687.  
  6688. ; return 0; }
  6689. EOF
  6690. if { (eval echo configure:6691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6691.   rm -rf conftest*
  6692.   eval "ac_cv_func_$ac_func=yes"
  6693. else
  6694.   echo "configure: failed program was:" >&5
  6695.   cat conftest.$ac_ext >&5
  6696.   rm -rf conftest*
  6697.   eval "ac_cv_func_$ac_func=no"
  6698. fi
  6699. rm -f conftest*
  6700. fi
  6701.  
  6702. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  6703.   echo "$ac_t""yes" 1>&6
  6704.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  6705.   cat >> confdefs.h <<EOF
  6706. #define $ac_tr_func 1
  6707. EOF
  6708.  
  6709. else
  6710.   echo "$ac_t""no" 1>&6
  6711. fi
  6712. done
  6713.  
  6714. for ac_func in getspnam getspwnam
  6715. do
  6716. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  6717. echo "configure:6718: checking for $ac_func" >&5
  6718. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  6719.   echo $ac_n "(cached) $ac_c" 1>&6
  6720. else
  6721.   cat > conftest.$ac_ext <<EOF
  6722. #line 6723 "configure"
  6723. #include "confdefs.h"
  6724. /* System header to define __stub macros and hopefully few prototypes,
  6725.     which can conflict with char $ac_func(); below.  */
  6726. #include <assert.h>
  6727. /* Override any gcc2 internal prototype to avoid an error.  */
  6728. /* We use char because int might match the return type of a gcc2
  6729.     builtin and then its argument prototype would still apply.  */
  6730. char $ac_func();
  6731.  
  6732. int main() {
  6733.  
  6734. /* The GNU C library defines this for functions which it implements
  6735.     to always fail with ENOSYS.  Some functions are actually named
  6736.     something starting with __ and the normal name is an alias.  */
  6737. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6738. choke me
  6739. #else
  6740. $ac_func();
  6741. #endif
  6742.  
  6743. ; return 0; }
  6744. EOF
  6745. if { (eval echo configure:6746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6746.   rm -rf conftest*
  6747.   eval "ac_cv_func_$ac_func=yes"
  6748. else
  6749.   echo "configure: failed program was:" >&5
  6750.   cat conftest.$ac_ext >&5
  6751.   rm -rf conftest*
  6752.   eval "ac_cv_func_$ac_func=no"
  6753. fi
  6754. rm -f conftest*
  6755. fi
  6756.  
  6757. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  6758.   echo "$ac_t""yes" 1>&6
  6759.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  6760.   cat >> confdefs.h <<EOF
  6761. #define $ac_tr_func 1
  6762. EOF
  6763.  
  6764. else
  6765.   echo "$ac_t""no" 1>&6
  6766. fi
  6767. done
  6768.  
  6769. for ac_func in sync fsync fork wait4 waitid waitpid getrusage
  6770. do
  6771. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  6772. echo "configure:6773: checking for $ac_func" >&5
  6773. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  6774.   echo $ac_n "(cached) $ac_c" 1>&6
  6775. else
  6776.   cat > conftest.$ac_ext <<EOF
  6777. #line 6778 "configure"
  6778. #include "confdefs.h"
  6779. /* System header to define __stub macros and hopefully few prototypes,
  6780.     which can conflict with char $ac_func(); below.  */
  6781. #include <assert.h>
  6782. /* Override any gcc2 internal prototype to avoid an error.  */
  6783. /* We use char because int might match the return type of a gcc2
  6784.     builtin and then its argument prototype would still apply.  */
  6785. char $ac_func();
  6786.  
  6787. int main() {
  6788.  
  6789. /* The GNU C library defines this for functions which it implements
  6790.     to always fail with ENOSYS.  Some functions are actually named
  6791.     something starting with __ and the normal name is an alias.  */
  6792. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6793. choke me
  6794. #else
  6795. $ac_func();
  6796. #endif
  6797.  
  6798. ; return 0; }
  6799. EOF
  6800. if { (eval echo configure:6801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6801.   rm -rf conftest*
  6802.   eval "ac_cv_func_$ac_func=yes"
  6803. else
  6804.   echo "configure: failed program was:" >&5
  6805.   cat conftest.$ac_ext >&5
  6806.   rm -rf conftest*
  6807.   eval "ac_cv_func_$ac_func=no"
  6808. fi
  6809. rm -f conftest*
  6810. fi
  6811.  
  6812. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  6813.   echo "$ac_t""yes" 1>&6
  6814.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  6815.   cat >> confdefs.h <<EOF
  6816. #define $ac_tr_func 1
  6817. EOF
  6818.  
  6819. else
  6820.   echo "$ac_t""no" 1>&6
  6821. fi
  6822. done
  6823.  
  6824. for ac_func in gethostid gethostname getdomainname getpagesize
  6825. do
  6826. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  6827. echo "configure:6828: checking for $ac_func" >&5
  6828. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  6829.   echo $ac_n "(cached) $ac_c" 1>&6
  6830. else
  6831.   cat > conftest.$ac_ext <<EOF
  6832. #line 6833 "configure"
  6833. #include "confdefs.h"
  6834. /* System header to define __stub macros and hopefully few prototypes,
  6835.     which can conflict with char $ac_func(); below.  */
  6836. #include <assert.h>
  6837. /* Override any gcc2 internal prototype to avoid an error.  */
  6838. /* We use char because int might match the return type of a gcc2
  6839.     builtin and then its argument prototype would still apply.  */
  6840. char $ac_func();
  6841.  
  6842. int main() {
  6843.  
  6844. /* The GNU C library defines this for functions which it implements
  6845.     to always fail with ENOSYS.  Some functions are actually named
  6846.     something starting with __ and the normal name is an alias.  */
  6847. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6848. choke me
  6849. #else
  6850. $ac_func();
  6851. #endif
  6852.  
  6853. ; return 0; }
  6854. EOF
  6855. if { (eval echo configure:6856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6856.   rm -rf conftest*
  6857.   eval "ac_cv_func_$ac_func=yes"
  6858. else
  6859.   echo "configure: failed program was:" >&5
  6860.   cat conftest.$ac_ext >&5
  6861.   rm -rf conftest*
  6862.   eval "ac_cv_func_$ac_func=no"
  6863. fi
  6864. rm -f conftest*
  6865. fi
  6866.  
  6867. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  6868.   echo "$ac_t""yes" 1>&6
  6869.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  6870.   cat >> confdefs.h <<EOF
  6871. #define $ac_tr_func 1
  6872. EOF
  6873.  
  6874. else
  6875.   echo "$ac_t""no" 1>&6
  6876. fi
  6877. done
  6878.  
  6879. for ac_func in poll select lchown times utimes
  6880. do
  6881. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  6882. echo "configure:6883: checking for $ac_func" >&5
  6883. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  6884.   echo $ac_n "(cached) $ac_c" 1>&6
  6885. else
  6886.   cat > conftest.$ac_ext <<EOF
  6887. #line 6888 "configure"
  6888. #include "confdefs.h"
  6889. /* System header to define __stub macros and hopefully few prototypes,
  6890.     which can conflict with char $ac_func(); below.  */
  6891. #include <assert.h>
  6892. /* Override any gcc2 internal prototype to avoid an error.  */
  6893. /* We use char because int might match the return type of a gcc2
  6894.     builtin and then its argument prototype would still apply.  */
  6895. char $ac_func();
  6896.  
  6897. int main() {
  6898.  
  6899. /* The GNU C library defines this for functions which it implements
  6900.     to always fail with ENOSYS.  Some functions are actually named
  6901.     something starting with __ and the normal name is an alias.  */
  6902. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6903. choke me
  6904. #else
  6905. $ac_func();
  6906. #endif
  6907.  
  6908. ; return 0; }
  6909. EOF
  6910. if { (eval echo configure:6911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6911.   rm -rf conftest*
  6912.   eval "ac_cv_func_$ac_func=yes"
  6913. else
  6914.   echo "configure: failed program was:" >&5
  6915.   cat conftest.$ac_ext >&5
  6916.   rm -rf conftest*
  6917.   eval "ac_cv_func_$ac_func=no"
  6918. fi
  6919. rm -f conftest*
  6920. fi
  6921.  
  6922. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  6923.   echo "$ac_t""yes" 1>&6
  6924.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  6925.   cat >> confdefs.h <<EOF
  6926. #define $ac_tr_func 1
  6927. EOF
  6928.  
  6929. else
  6930.   echo "$ac_t""no" 1>&6
  6931. fi
  6932. done
  6933.  
  6934. for ac_func in ecvt_r fcvt_r gcvt_r
  6935. do
  6936. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  6937. echo "configure:6938: checking for $ac_func" >&5
  6938. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  6939.   echo $ac_n "(cached) $ac_c" 1>&6
  6940. else
  6941.   cat > conftest.$ac_ext <<EOF
  6942. #line 6943 "configure"
  6943. #include "confdefs.h"
  6944. /* System header to define __stub macros and hopefully few prototypes,
  6945.     which can conflict with char $ac_func(); below.  */
  6946. #include <assert.h>
  6947. /* Override any gcc2 internal prototype to avoid an error.  */
  6948. /* We use char because int might match the return type of a gcc2
  6949.     builtin and then its argument prototype would still apply.  */
  6950. char $ac_func();
  6951.  
  6952. int main() {
  6953.  
  6954. /* The GNU C library defines this for functions which it implements
  6955.     to always fail with ENOSYS.  Some functions are actually named
  6956.     something starting with __ and the normal name is an alias.  */
  6957. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6958. choke me
  6959. #else
  6960. $ac_func();
  6961. #endif
  6962.  
  6963. ; return 0; }
  6964. EOF
  6965. if { (eval echo configure:6966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6966.   rm -rf conftest*
  6967.   eval "ac_cv_func_$ac_func=yes"
  6968. else
  6969.   echo "configure: failed program was:" >&5
  6970.   cat conftest.$ac_ext >&5
  6971.   rm -rf conftest*
  6972.   eval "ac_cv_func_$ac_func=no"
  6973. fi
  6974. rm -f conftest*
  6975. fi
  6976.  
  6977. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  6978.   echo "$ac_t""yes" 1>&6
  6979.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  6980.   cat >> confdefs.h <<EOF
  6981. #define $ac_tr_func 1
  6982. EOF
  6983.  
  6984. else
  6985.   echo "$ac_t""no" 1>&6
  6986. fi
  6987. done
  6988.  
  6989. for ac_func in econvert fconvert gconvert
  6990. do
  6991. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  6992. echo "configure:6993: checking for $ac_func" >&5
  6993. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  6994.   echo $ac_n "(cached) $ac_c" 1>&6
  6995. else
  6996.   cat > conftest.$ac_ext <<EOF
  6997. #line 6998 "configure"
  6998. #include "confdefs.h"
  6999. /* System header to define __stub macros and hopefully few prototypes,
  7000.     which can conflict with char $ac_func(); below.  */
  7001. #include <assert.h>
  7002. /* Override any gcc2 internal prototype to avoid an error.  */
  7003. /* We use char because int might match the return type of a gcc2
  7004.     builtin and then its argument prototype would still apply.  */
  7005. char $ac_func();
  7006.  
  7007. int main() {
  7008.  
  7009. /* The GNU C library defines this for functions which it implements
  7010.     to always fail with ENOSYS.  Some functions are actually named
  7011.     something starting with __ and the normal name is an alias.  */
  7012. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7013. choke me
  7014. #else
  7015. $ac_func();
  7016. #endif
  7017.  
  7018. ; return 0; }
  7019. EOF
  7020. if { (eval echo configure:7021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7021.   rm -rf conftest*
  7022.   eval "ac_cv_func_$ac_func=yes"
  7023. else
  7024.   echo "configure: failed program was:" >&5
  7025.   cat conftest.$ac_ext >&5
  7026.   rm -rf conftest*
  7027.   eval "ac_cv_func_$ac_func=no"
  7028. fi
  7029. rm -f conftest*
  7030. fi
  7031.  
  7032. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  7033.   echo "$ac_t""yes" 1>&6
  7034.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  7035.   cat >> confdefs.h <<EOF
  7036. #define $ac_tr_func 1
  7037. EOF
  7038.  
  7039. else
  7040.   echo "$ac_t""no" 1>&6
  7041. fi
  7042. done
  7043.  
  7044. for ac_func in isinf isnan
  7045. do
  7046. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  7047. echo "configure:7048: checking for $ac_func" >&5
  7048. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  7049.   echo $ac_n "(cached) $ac_c" 1>&6
  7050. else
  7051.   cat > conftest.$ac_ext <<EOF
  7052. #line 7053 "configure"
  7053. #include "confdefs.h"
  7054. /* System header to define __stub macros and hopefully few prototypes,
  7055.     which can conflict with char $ac_func(); below.  */
  7056. #include <assert.h>
  7057. /* Override any gcc2 internal prototype to avoid an error.  */
  7058. /* We use char because int might match the return type of a gcc2
  7059.     builtin and then its argument prototype would still apply.  */
  7060. char $ac_func();
  7061.  
  7062. int main() {
  7063.  
  7064. /* The GNU C library defines this for functions which it implements
  7065.     to always fail with ENOSYS.  Some functions are actually named
  7066.     something starting with __ and the normal name is an alias.  */
  7067. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7068. choke me
  7069. #else
  7070. $ac_func();
  7071. #endif
  7072.  
  7073. ; return 0; }
  7074. EOF
  7075. if { (eval echo configure:7076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7076.   rm -rf conftest*
  7077.   eval "ac_cv_func_$ac_func=yes"
  7078. else
  7079.   echo "configure: failed program was:" >&5
  7080.   cat conftest.$ac_ext >&5
  7081.   rm -rf conftest*
  7082.   eval "ac_cv_func_$ac_func=no"
  7083. fi
  7084. rm -f conftest*
  7085. fi
  7086.  
  7087. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  7088.   echo "$ac_t""yes" 1>&6
  7089.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  7090.   cat >> confdefs.h <<EOF
  7091. #define $ac_tr_func 1
  7092. EOF
  7093.  
  7094. else
  7095.   echo "$ac_t""no" 1>&6
  7096. fi
  7097. done
  7098.  
  7099. for ac_func in rand drand48
  7100. do
  7101. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  7102. echo "configure:7103: checking for $ac_func" >&5
  7103. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  7104.   echo $ac_n "(cached) $ac_c" 1>&6
  7105. else
  7106.   cat > conftest.$ac_ext <<EOF
  7107. #line 7108 "configure"
  7108. #include "confdefs.h"
  7109. /* System header to define __stub macros and hopefully few prototypes,
  7110.     which can conflict with char $ac_func(); below.  */
  7111. #include <assert.h>
  7112. /* Override any gcc2 internal prototype to avoid an error.  */
  7113. /* We use char because int might match the return type of a gcc2
  7114.     builtin and then its argument prototype would still apply.  */
  7115. char $ac_func();
  7116.  
  7117. int main() {
  7118.  
  7119. /* The GNU C library defines this for functions which it implements
  7120.     to always fail with ENOSYS.  Some functions are actually named
  7121.     something starting with __ and the normal name is an alias.  */
  7122. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7123. choke me
  7124. #else
  7125. $ac_func();
  7126. #endif
  7127.  
  7128. ; return 0; }
  7129. EOF
  7130. if { (eval echo configure:7131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7131.   rm -rf conftest*
  7132.   eval "ac_cv_func_$ac_func=yes"
  7133. else
  7134.   echo "configure: failed program was:" >&5
  7135.   cat conftest.$ac_ext >&5
  7136.   rm -rf conftest*
  7137.   eval "ac_cv_func_$ac_func=no"
  7138. fi
  7139. rm -f conftest*
  7140. fi
  7141.  
  7142. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  7143.   echo "$ac_t""yes" 1>&6
  7144.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  7145.   cat >> confdefs.h <<EOF
  7146. #define $ac_tr_func 1
  7147. EOF
  7148.  
  7149. else
  7150.   echo "$ac_t""no" 1>&6
  7151. fi
  7152. done
  7153.  
  7154. for ac_func in setpriority DosSetPriority
  7155. do
  7156. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  7157. echo "configure:7158: checking for $ac_func" >&5
  7158. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  7159.   echo $ac_n "(cached) $ac_c" 1>&6
  7160. else
  7161.   cat > conftest.$ac_ext <<EOF
  7162. #line 7163 "configure"
  7163. #include "confdefs.h"
  7164. /* System header to define __stub macros and hopefully few prototypes,
  7165.     which can conflict with char $ac_func(); below.  */
  7166. #include <assert.h>
  7167. /* Override any gcc2 internal prototype to avoid an error.  */
  7168. /* We use char because int might match the return type of a gcc2
  7169.     builtin and then its argument prototype would still apply.  */
  7170. char $ac_func();
  7171.  
  7172. int main() {
  7173.  
  7174. /* The GNU C library defines this for functions which it implements
  7175.     to always fail with ENOSYS.  Some functions are actually named
  7176.     something starting with __ and the normal name is an alias.  */
  7177. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7178. choke me
  7179. #else
  7180. $ac_func();
  7181. #endif
  7182.  
  7183. ; return 0; }
  7184. EOF
  7185. if { (eval echo configure:7186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7186.   rm -rf conftest*
  7187.   eval "ac_cv_func_$ac_func=yes"
  7188. else
  7189.   echo "configure: failed program was:" >&5
  7190.   cat conftest.$ac_ext >&5
  7191.   rm -rf conftest*
  7192.   eval "ac_cv_func_$ac_func=no"
  7193. fi
  7194. rm -f conftest*
  7195. fi
  7196.  
  7197. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  7198.   echo "$ac_t""yes" 1>&6
  7199.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  7200.   cat >> confdefs.h <<EOF
  7201. #define $ac_tr_func 1
  7202. EOF
  7203.  
  7204. else
  7205.   echo "$ac_t""no" 1>&6
  7206. fi
  7207. done
  7208.  
  7209. for ac_func in DosAllocSharedMem
  7210. do
  7211. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  7212. echo "configure:7213: checking for $ac_func" >&5
  7213. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  7214.   echo $ac_n "(cached) $ac_c" 1>&6
  7215. else
  7216.   cat > conftest.$ac_ext <<EOF
  7217. #line 7218 "configure"
  7218. #include "confdefs.h"
  7219. /* System header to define __stub macros and hopefully few prototypes,
  7220.     which can conflict with char $ac_func(); below.  */
  7221. #include <assert.h>
  7222. /* Override any gcc2 internal prototype to avoid an error.  */
  7223. /* We use char because int might match the return type of a gcc2
  7224.     builtin and then its argument prototype would still apply.  */
  7225. char $ac_func();
  7226.  
  7227. int main() {
  7228.  
  7229. /* The GNU C library defines this for functions which it implements
  7230.     to always fail with ENOSYS.  Some functions are actually named
  7231.     something starting with __ and the normal name is an alias.  */
  7232. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7233. choke me
  7234. #else
  7235. $ac_func();
  7236. #endif
  7237.  
  7238. ; return 0; }
  7239. EOF
  7240. if { (eval echo configure:7241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7241.   rm -rf conftest*
  7242.   eval "ac_cv_func_$ac_func=yes"
  7243. else
  7244.   echo "configure: failed program was:" >&5
  7245.   cat conftest.$ac_ext >&5
  7246.   rm -rf conftest*
  7247.   eval "ac_cv_func_$ac_func=no"
  7248. fi
  7249. rm -f conftest*
  7250. fi
  7251.  
  7252. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  7253.   echo "$ac_t""yes" 1>&6
  7254.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  7255.   cat >> confdefs.h <<EOF
  7256. #define $ac_tr_func 1
  7257. EOF
  7258.  
  7259. else
  7260.   echo "$ac_t""no" 1>&6
  7261. fi
  7262. done
  7263.  
  7264. for ac_func in seekdir
  7265. do
  7266. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  7267. echo "configure:7268: checking for $ac_func" >&5
  7268. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  7269.   echo $ac_n "(cached) $ac_c" 1>&6
  7270. else
  7271.   cat > conftest.$ac_ext <<EOF
  7272. #line 7273 "configure"
  7273. #include "confdefs.h"
  7274. /* System header to define __stub macros and hopefully few prototypes,
  7275.     which can conflict with char $ac_func(); below.  */
  7276. #include <assert.h>
  7277. /* Override any gcc2 internal prototype to avoid an error.  */
  7278. /* We use char because int might match the return type of a gcc2
  7279.     builtin and then its argument prototype would still apply.  */
  7280. char $ac_func();
  7281.  
  7282. int main() {
  7283.  
  7284. /* The GNU C library defines this for functions which it implements
  7285.     to always fail with ENOSYS.  Some functions are actually named
  7286.     something starting with __ and the normal name is an alias.  */
  7287. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7288. choke me
  7289. #else
  7290. $ac_func();
  7291. #endif
  7292.  
  7293. ; return 0; }
  7294. EOF
  7295. if { (eval echo configure:7296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7296.   rm -rf conftest*
  7297.   eval "ac_cv_func_$ac_func=yes"
  7298. else
  7299.   echo "configure: failed program was:" >&5
  7300.   cat conftest.$ac_ext >&5
  7301.   rm -rf conftest*
  7302.   eval "ac_cv_func_$ac_func=no"
  7303. fi
  7304. rm -f conftest*
  7305. fi
  7306.  
  7307. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  7308.   echo "$ac_t""yes" 1>&6
  7309.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  7310.   cat >> confdefs.h <<EOF
  7311. #define $ac_tr_func 1
  7312. EOF
  7313.  
  7314. else
  7315.   echo "$ac_t""no" 1>&6
  7316. fi
  7317. done
  7318.  
  7319. for ac_func in strsignal str2sig sig2str
  7320. do
  7321. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  7322. echo "configure:7323: checking for $ac_func" >&5
  7323. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  7324.   echo $ac_n "(cached) $ac_c" 1>&6
  7325. else
  7326.   cat > conftest.$ac_ext <<EOF
  7327. #line 7328 "configure"
  7328. #include "confdefs.h"
  7329. /* System header to define __stub macros and hopefully few prototypes,
  7330.     which can conflict with char $ac_func(); below.  */
  7331. #include <assert.h>
  7332. /* Override any gcc2 internal prototype to avoid an error.  */
  7333. /* We use char because int might match the return type of a gcc2
  7334.     builtin and then its argument prototype would still apply.  */
  7335. char $ac_func();
  7336.  
  7337. int main() {
  7338.  
  7339. /* The GNU C library defines this for functions which it implements
  7340.     to always fail with ENOSYS.  Some functions are actually named
  7341.     something starting with __ and the normal name is an alias.  */
  7342. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7343. choke me
  7344. #else
  7345. $ac_func();
  7346. #endif
  7347.  
  7348. ; return 0; }
  7349. EOF
  7350. if { (eval echo configure:7351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7351.   rm -rf conftest*
  7352.   eval "ac_cv_func_$ac_func=yes"
  7353. else
  7354.   echo "configure: failed program was:" >&5
  7355.   cat conftest.$ac_ext >&5
  7356.   rm -rf conftest*
  7357.   eval "ac_cv_func_$ac_func=no"
  7358. fi
  7359. rm -f conftest*
  7360. fi
  7361.  
  7362. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  7363.   echo "$ac_t""yes" 1>&6
  7364.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  7365.   cat >> confdefs.h <<EOF
  7366. #define $ac_tr_func 1
  7367. EOF
  7368.  
  7369. else
  7370.   echo "$ac_t""no" 1>&6
  7371. fi
  7372. done
  7373.  
  7374. for ac_func in killpg sigrelse sigprocmask sigsetmask
  7375. do
  7376. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  7377. echo "configure:7378: checking for $ac_func" >&5
  7378. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  7379.   echo $ac_n "(cached) $ac_c" 1>&6
  7380. else
  7381.   cat > conftest.$ac_ext <<EOF
  7382. #line 7383 "configure"
  7383. #include "confdefs.h"
  7384. /* System header to define __stub macros and hopefully few prototypes,
  7385.     which can conflict with char $ac_func(); below.  */
  7386. #include <assert.h>
  7387. /* Override any gcc2 internal prototype to avoid an error.  */
  7388. /* We use char because int might match the return type of a gcc2
  7389.     builtin and then its argument prototype would still apply.  */
  7390. char $ac_func();
  7391.  
  7392. int main() {
  7393.  
  7394. /* The GNU C library defines this for functions which it implements
  7395.     to always fail with ENOSYS.  Some functions are actually named
  7396.     something starting with __ and the normal name is an alias.  */
  7397. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7398. choke me
  7399. #else
  7400. $ac_func();
  7401. #endif
  7402.  
  7403. ; return 0; }
  7404. EOF
  7405. if { (eval echo configure:7406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7406.   rm -rf conftest*
  7407.   eval "ac_cv_func_$ac_func=yes"
  7408. else
  7409.   echo "configure: failed program was:" >&5
  7410.   cat conftest.$ac_ext >&5
  7411.   rm -rf conftest*
  7412.   eval "ac_cv_func_$ac_func=no"
  7413. fi
  7414. rm -f conftest*
  7415. fi
  7416.  
  7417. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  7418.   echo "$ac_t""yes" 1>&6
  7419.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  7420.   cat >> confdefs.h <<EOF
  7421. #define $ac_tr_func 1
  7422. EOF
  7423.  
  7424. else
  7425.   echo "$ac_t""no" 1>&6
  7426. fi
  7427. done
  7428.  
  7429. for ac_func in nanosleep usleep
  7430. do
  7431. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  7432. echo "configure:7433: checking for $ac_func" >&5
  7433. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  7434.   echo $ac_n "(cached) $ac_c" 1>&6
  7435. else
  7436.   cat > conftest.$ac_ext <<EOF
  7437. #line 7438 "configure"
  7438. #include "confdefs.h"
  7439. /* System header to define __stub macros and hopefully few prototypes,
  7440.     which can conflict with char $ac_func(); below.  */
  7441. #include <assert.h>
  7442. /* Override any gcc2 internal prototype to avoid an error.  */
  7443. /* We use char because int might match the return type of a gcc2
  7444.     builtin and then its argument prototype would still apply.  */
  7445. char $ac_func();
  7446.  
  7447. int main() {
  7448.  
  7449. /* The GNU C library defines this for functions which it implements
  7450.     to always fail with ENOSYS.  Some functions are actually named
  7451.     something starting with __ and the normal name is an alias.  */
  7452. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7453. choke me
  7454. #else
  7455. $ac_func();
  7456. #endif
  7457.  
  7458. ; return 0; }
  7459. EOF
  7460. if { (eval echo configure:7461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7461.   rm -rf conftest*
  7462.   eval "ac_cv_func_$ac_func=yes"
  7463. else
  7464.   echo "configure: failed program was:" >&5
  7465.   cat conftest.$ac_ext >&5
  7466.   rm -rf conftest*
  7467.   eval "ac_cv_func_$ac_func=no"
  7468. fi
  7469. rm -f conftest*
  7470. fi
  7471.  
  7472. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  7473.   echo "$ac_t""yes" 1>&6
  7474.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  7475.   cat >> confdefs.h <<EOF
  7476. #define $ac_tr_func 1
  7477. EOF
  7478.  
  7479. else
  7480.   echo "$ac_t""no" 1>&6
  7481. fi
  7482. done
  7483.  
  7484. for ac_func in putenv setenv snprintf strcasecmp
  7485. do
  7486. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  7487. echo "configure:7488: checking for $ac_func" >&5
  7488. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  7489.   echo $ac_n "(cached) $ac_c" 1>&6
  7490. else
  7491.   cat > conftest.$ac_ext <<EOF
  7492. #line 7493 "configure"
  7493. #include "confdefs.h"
  7494. /* System header to define __stub macros and hopefully few prototypes,
  7495.     which can conflict with char $ac_func(); below.  */
  7496. #include <assert.h>
  7497. /* Override any gcc2 internal prototype to avoid an error.  */
  7498. /* We use char because int might match the return type of a gcc2
  7499.     builtin and then its argument prototype would still apply.  */
  7500. char $ac_func();
  7501.  
  7502. int main() {
  7503.  
  7504. /* The GNU C library defines this for functions which it implements
  7505.     to always fail with ENOSYS.  Some functions are actually named
  7506.     something starting with __ and the normal name is an alias.  */
  7507. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7508. choke me
  7509. #else
  7510. $ac_func();
  7511. #endif
  7512.  
  7513. ; return 0; }
  7514. EOF
  7515. if { (eval echo configure:7516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7516.   rm -rf conftest*
  7517.   eval "ac_cv_func_$ac_func=yes"
  7518. else
  7519.   echo "configure: failed program was:" >&5
  7520.   cat conftest.$ac_ext >&5
  7521.   rm -rf conftest*
  7522.   eval "ac_cv_func_$ac_func=no"
  7523. fi
  7524. rm -f conftest*
  7525. fi
  7526.  
  7527. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  7528.   echo "$ac_t""yes" 1>&6
  7529.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  7530.   cat >> confdefs.h <<EOF
  7531. #define $ac_tr_func 1
  7532. EOF
  7533.  
  7534. else
  7535.   echo "$ac_t""no" 1>&6
  7536. fi
  7537. done
  7538.  
  7539. for ac_func in valloc
  7540. do
  7541. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  7542. echo "configure:7543: checking for $ac_func" >&5
  7543. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  7544.   echo $ac_n "(cached) $ac_c" 1>&6
  7545. else
  7546.   cat > conftest.$ac_ext <<EOF
  7547. #line 7548 "configure"
  7548. #include "confdefs.h"
  7549. /* System header to define __stub macros and hopefully few prototypes,
  7550.     which can conflict with char $ac_func(); below.  */
  7551. #include <assert.h>
  7552. /* Override any gcc2 internal prototype to avoid an error.  */
  7553. /* We use char because int might match the return type of a gcc2
  7554.     builtin and then its argument prototype would still apply.  */
  7555. char $ac_func();
  7556.  
  7557. int main() {
  7558.  
  7559. /* The GNU C library defines this for functions which it implements
  7560.     to always fail with ENOSYS.  Some functions are actually named
  7561.     something starting with __ and the normal name is an alias.  */
  7562. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7563. choke me
  7564. #else
  7565. $ac_func();
  7566. #endif
  7567.  
  7568. ; return 0; }
  7569. EOF
  7570. if { (eval echo configure:7571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7571.   rm -rf conftest*
  7572.   eval "ac_cv_func_$ac_func=yes"
  7573. else
  7574.   echo "configure: failed program was:" >&5
  7575.   cat conftest.$ac_ext >&5
  7576.   rm -rf conftest*
  7577.   eval "ac_cv_func_$ac_func=no"
  7578. fi
  7579. rm -f conftest*
  7580. fi
  7581.  
  7582. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  7583.   echo "$ac_t""yes" 1>&6
  7584.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  7585.   cat >> confdefs.h <<EOF
  7586. #define $ac_tr_func 1
  7587. EOF
  7588.  
  7589. else
  7590.   echo "$ac_t""no" 1>&6
  7591. fi
  7592. done
  7593.  
  7594.  
  7595. # Check whether --enable-largefile or --disable-largefile was given.
  7596. if test "${enable_largefile+set}" = set; then
  7597.   enableval="$enable_largefile"
  7598.   :
  7599. fi
  7600.  
  7601.    if test "$enable_largefile" != no; then
  7602.  
  7603.      echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6
  7604. echo "configure:7605: checking for special C compiler options needed for large files" >&5
  7605. if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then
  7606.   echo $ac_n "(cached) $ac_c" 1>&6
  7607. else
  7608.   ac_cv_sys_largefile_CC=no
  7609.         if test "$GCC" != yes; then
  7610.       # IRIX 6.2 and later do not support large files by default,
  7611.       # so use the C compiler's -n32 option if that helps.
  7612.       cat > conftest.$ac_ext <<EOF
  7613. #line 7614 "configure"
  7614. #include "confdefs.h"
  7615. #include <sys/types.h>
  7616.     /* Check that off_t can represent 2**63 - 1 correctly.
  7617.        We can't simply "#define LARGE_OFF_T 9223372036854775807",
  7618.        since some C++ compilers masquerading as C compilers
  7619.        incorrectly reject 9223372036854775807.  */
  7620. #   define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7621.     int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7622.             && LARGE_OFF_T % 2147483647 == 1)
  7623.                ? 1 : -1];
  7624.   
  7625. int main() {
  7626.  
  7627. ; return 0; }
  7628. EOF
  7629. if { (eval echo configure:7630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7630.   :
  7631. else
  7632.   echo "configure: failed program was:" >&5
  7633.   cat conftest.$ac_ext >&5
  7634.   rm -rf conftest*
  7635.   ac_save_CC="${CC-cc}"
  7636.          CC="$CC -n32"
  7637.          cat > conftest.$ac_ext <<EOF
  7638. #line 7639 "configure"
  7639. #include "confdefs.h"
  7640. #include <sys/types.h>
  7641.     /* Check that off_t can represent 2**63 - 1 correctly.
  7642.        We can't simply "#define LARGE_OFF_T 9223372036854775807",
  7643.        since some C++ compilers masquerading as C compilers
  7644.        incorrectly reject 9223372036854775807.  */
  7645. #   define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7646.     int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7647.             && LARGE_OFF_T % 2147483647 == 1)
  7648.                ? 1 : -1];
  7649.   
  7650. int main() {
  7651.  
  7652. ; return 0; }
  7653. EOF
  7654. if { (eval echo configure:7655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7655.   rm -rf conftest*
  7656.   ac_cv_sys_largefile_CC=' -n32'
  7657. else
  7658.   echo "configure: failed program was:" >&5
  7659.   cat conftest.$ac_ext >&5
  7660. fi
  7661. rm -f conftest*
  7662.          CC="$ac_save_CC"
  7663. fi
  7664. rm -f conftest*
  7665.         fi
  7666. fi
  7667.  
  7668. echo "$ac_t""$ac_cv_sys_largefile_CC" 1>&6
  7669.      if test "$ac_cv_sys_largefile_CC" != no; then
  7670.        CC="$CC$ac_cv_sys_largefile_CC"
  7671.      fi
  7672.  
  7673.      echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
  7674. echo "configure:7675: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  7675. if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
  7676.   echo $ac_n "(cached) $ac_c" 1>&6
  7677. else
  7678.   ac_cv_sys_file_offset_bits=no
  7679.       cat > conftest.$ac_ext <<EOF
  7680. #line 7681 "configure"
  7681. #include "confdefs.h"
  7682. #include <sys/types.h>
  7683.     /* Check that off_t can represent 2**63 - 1 correctly.
  7684.        We can't simply "#define LARGE_OFF_T 9223372036854775807",
  7685.        since some C++ compilers masquerading as C compilers
  7686.        incorrectly reject 9223372036854775807.  */
  7687. #   define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7688.     int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7689.             && LARGE_OFF_T % 2147483647 == 1)
  7690.                ? 1 : -1];
  7691.   
  7692. int main() {
  7693.  
  7694. ; return 0; }
  7695. EOF
  7696. if { (eval echo configure:7697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7697.   :
  7698. else
  7699.   echo "configure: failed program was:" >&5
  7700.   cat conftest.$ac_ext >&5
  7701.   rm -rf conftest*
  7702.   cat > conftest.$ac_ext <<EOF
  7703. #line 7704 "configure"
  7704. #include "confdefs.h"
  7705. #define _FILE_OFFSET_BITS 64
  7706. #include <sys/types.h>
  7707.     /* Check that off_t can represent 2**63 - 1 correctly.
  7708.        We can't simply "#define LARGE_OFF_T 9223372036854775807",
  7709.        since some C++ compilers masquerading as C compilers
  7710.        incorrectly reject 9223372036854775807.  */
  7711. #   define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7712.     int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7713.             && LARGE_OFF_T % 2147483647 == 1)
  7714.                ? 1 : -1];
  7715.   
  7716.        
  7717. int main() {
  7718.  
  7719. ; return 0; }
  7720. EOF
  7721. if { (eval echo configure:7722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7722.   rm -rf conftest*
  7723.   ac_cv_sys_file_offset_bits=64
  7724. else
  7725.   echo "configure: failed program was:" >&5
  7726.   cat conftest.$ac_ext >&5
  7727. fi
  7728. rm -f conftest*
  7729. fi
  7730. rm -f conftest*
  7731. fi
  7732.  
  7733. echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
  7734.    if test "$ac_cv_sys_file_offset_bits" != no; then
  7735.      cat >> confdefs.h <<EOF
  7736. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  7737. EOF
  7738.  
  7739.    fi
  7740.      echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
  7741. echo "configure:7742: checking for _LARGE_FILES value needed for large files" >&5
  7742. if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
  7743.   echo $ac_n "(cached) $ac_c" 1>&6
  7744. else
  7745.   ac_cv_sys_large_files=no
  7746.       cat > conftest.$ac_ext <<EOF
  7747. #line 7748 "configure"
  7748. #include "confdefs.h"
  7749. #include <sys/types.h>
  7750.     /* Check that off_t can represent 2**63 - 1 correctly.
  7751.        We can't simply "#define LARGE_OFF_T 9223372036854775807",
  7752.        since some C++ compilers masquerading as C compilers
  7753.        incorrectly reject 9223372036854775807.  */
  7754. #   define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7755.     int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7756.             && LARGE_OFF_T % 2147483647 == 1)
  7757.                ? 1 : -1];
  7758.   
  7759. int main() {
  7760.  
  7761. ; return 0; }
  7762. EOF
  7763. if { (eval echo configure:7764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7764.   :
  7765. else
  7766.   echo "configure: failed program was:" >&5
  7767.   cat conftest.$ac_ext >&5
  7768.   rm -rf conftest*
  7769.   cat > conftest.$ac_ext <<EOF
  7770. #line 7771 "configure"
  7771. #include "confdefs.h"
  7772. #define _LARGE_FILES 1
  7773. #include <sys/types.h>
  7774.     /* Check that off_t can represent 2**63 - 1 correctly.
  7775.        We can't simply "#define LARGE_OFF_T 9223372036854775807",
  7776.        since some C++ compilers masquerading as C compilers
  7777.        incorrectly reject 9223372036854775807.  */
  7778. #   define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7779.     int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7780.             && LARGE_OFF_T % 2147483647 == 1)
  7781.                ? 1 : -1];
  7782.   
  7783.        
  7784. int main() {
  7785.  
  7786. ; return 0; }
  7787. EOF
  7788. if { (eval echo configure:7789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7789.   rm -rf conftest*
  7790.   ac_cv_sys_large_files=1
  7791. else
  7792.   echo "configure: failed program was:" >&5
  7793.   cat conftest.$ac_ext >&5
  7794. fi
  7795. rm -f conftest*
  7796. fi
  7797. rm -f conftest*
  7798. fi
  7799.  
  7800. echo "$ac_t""$ac_cv_sys_large_files" 1>&6
  7801.    if test "$ac_cv_sys_large_files" != no; then
  7802.      cat >> confdefs.h <<EOF
  7803. #define _LARGE_FILES $ac_cv_sys_large_files
  7804. EOF
  7805.  
  7806.    fi
  7807.    fi
  7808.   
  7809. echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
  7810. echo "configure:7811: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  7811. if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then
  7812.   echo $ac_n "(cached) $ac_c" 1>&6
  7813. else
  7814.   ac_cv_sys_largefile_source=no
  7815.       cat > conftest.$ac_ext <<EOF
  7816. #line 7817 "configure"
  7817. #include "confdefs.h"
  7818. #include <stdio.h>
  7819. int main() {
  7820. return !fseeko;
  7821. ; return 0; }
  7822. EOF
  7823. if { (eval echo configure:7824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7824.   :
  7825. else
  7826.   echo "configure: failed program was:" >&5
  7827.   cat conftest.$ac_ext >&5
  7828.   rm -rf conftest*
  7829.   cat > conftest.$ac_ext <<EOF
  7830. #line 7831 "configure"
  7831. #include "confdefs.h"
  7832. #define _LARGEFILE_SOURCE 1
  7833. #include <stdio.h>
  7834.        
  7835. int main() {
  7836. return !fseeko;
  7837. ; return 0; }
  7838. EOF
  7839. if { (eval echo configure:7840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7840.   rm -rf conftest*
  7841.   ac_cv_sys_largefile_source=1
  7842. else
  7843.   echo "configure: failed program was:" >&5
  7844.   cat conftest.$ac_ext >&5
  7845. fi
  7846. rm -f conftest*
  7847. fi
  7848. rm -f conftest*
  7849. fi
  7850.  
  7851. echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
  7852.    if test "$ac_cv_sys_largefile_source" != no; then
  7853.      cat >> confdefs.h <<EOF
  7854. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  7855. EOF
  7856.  
  7857.    fi
  7858.    # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  7859.    # in glibc 2.1.3, but that breaks too many other things.
  7860.    # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  7861.  
  7862.    echo $ac_n "checking for fseeko""... $ac_c" 1>&6
  7863. echo "configure:7864: checking for fseeko" >&5
  7864. if eval "test \"`echo '$''{'ac_cv_func_fseeko'+set}'`\" = set"; then
  7865.   echo $ac_n "(cached) $ac_c" 1>&6
  7866. else
  7867.   ac_cv_func_fseeko=no
  7868.       cat > conftest.$ac_ext <<EOF
  7869. #line 7870 "configure"
  7870. #include "confdefs.h"
  7871. #include <stdio.h>
  7872. int main() {
  7873. return fseeko && fseeko (stdin, 0, 0);
  7874. ; return 0; }
  7875. EOF
  7876. if { (eval echo configure:7877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7877.   rm -rf conftest*
  7878.   ac_cv_func_fseeko=yes
  7879. else
  7880.   echo "configure: failed program was:" >&5
  7881.   cat conftest.$ac_ext >&5
  7882. fi
  7883. rm -f conftest*
  7884. fi
  7885.  
  7886. echo "$ac_t""$ac_cv_func_fseeko" 1>&6
  7887.    if test $ac_cv_func_fseeko != no; then
  7888.      cat >> confdefs.h <<\EOF
  7889. #define HAVE_FSEEKO 1
  7890. EOF
  7891.  
  7892.    fi
  7893. echo $ac_n "checking if system supports Large Files at all""... $ac_c" 1>&6
  7894. echo "configure:7895: checking if system supports Large Files at all" >&5
  7895. if eval "test \"`echo '$''{'ac_cv_largefiles'+set}'`\" = set"; then
  7896.   echo $ac_n "(cached) $ac_c" 1>&6
  7897. else
  7898.   cat > conftest.$ac_ext <<EOF
  7899. #line 7900 "configure"
  7900. #include "confdefs.h"
  7901. #include <stdio.h>
  7902. #include <sys/types.h>
  7903. int main() {
  7904.  
  7905. /*
  7906.  * Check that off_t can represent 2**63 - 1 correctly.
  7907.  * We can't simply "#define LARGE_OFF_T 9223372036854775807",
  7908.  * since some C++ compilers masquerading as C compilers
  7909.  * incorrectly reject 9223372036854775807.
  7910.  */
  7911. #   define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7912.     int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7913.             && LARGE_OFF_T % 2147483647 == 1)
  7914.                ? 1 : -1];
  7915. return !ftello;
  7916. ; return 0; }
  7917. EOF
  7918. if { (eval echo configure:7919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7919.   rm -rf conftest*
  7920.   ac_cv_largefiles=yes
  7921. else
  7922.   echo "configure: failed program was:" >&5
  7923.   cat conftest.$ac_ext >&5
  7924.   rm -rf conftest*
  7925.   ac_cv_largefiles=no
  7926. fi
  7927. rm -f conftest*
  7928. fi
  7929.  
  7930. echo "$ac_t""$ac_cv_largefiles" 1>&6
  7931.     if test $ac_cv_largefiles = yes; then
  7932.         cat >> confdefs.h <<\EOF
  7933. #define HAVE_LARGEFILES 1
  7934. EOF
  7935.  
  7936.     fi
  7937.  
  7938. cat >> confdefs.h <<EOF
  7939. #define HOST_ALIAS "$host_alias"
  7940. EOF
  7941.  
  7942. cat >> confdefs.h <<EOF
  7943. #define HOST_SUB "$host"
  7944. EOF
  7945.  
  7946. cat >> confdefs.h <<EOF
  7947. #define HOST_CPU "$host_cpu"
  7948. EOF
  7949.  
  7950. cat >> confdefs.h <<EOF
  7951. #define HOST_VENDOR "$host_vendor"
  7952. EOF
  7953.  
  7954. cat >> confdefs.h <<EOF
  7955. #define HOST_OS "$host_os"
  7956. EOF
  7957.  
  7958.  
  7959.  
  7960. echo $ac_n "checking for crypt in -lc""... $ac_c" 1>&6
  7961. echo "configure:7962: checking for crypt in -lc" >&5
  7962. ac_lib_var=`echo c'_'crypt | sed 'y%./+-%__p_%'`
  7963. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  7964.   echo $ac_n "(cached) $ac_c" 1>&6
  7965. else
  7966.   ac_save_LIBS="$LIBS"
  7967. LIBS="-lc  $LIBS"
  7968. cat > conftest.$ac_ext <<EOF
  7969. #line 7970 "configure"
  7970. #include "confdefs.h"
  7971. /* Override any gcc2 internal prototype to avoid an error.  */
  7972. /* We use char because int might match the return type of a gcc2
  7973.     builtin and then its argument prototype would still apply.  */
  7974. char crypt();
  7975.  
  7976. int main() {
  7977. crypt()
  7978. ; return 0; }
  7979. EOF
  7980. if { (eval echo configure:7981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7981.   rm -rf conftest*
  7982.   eval "ac_cv_lib_$ac_lib_var=yes"
  7983. else
  7984.   echo "configure: failed program was:" >&5
  7985.   cat conftest.$ac_ext >&5
  7986.   rm -rf conftest*
  7987.   eval "ac_cv_lib_$ac_lib_var=no"
  7988. fi
  7989. rm -f conftest*
  7990. LIBS="$ac_save_LIBS"
  7991.  
  7992. fi
  7993. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7994.   echo "$ac_t""yes" 1>&6
  7995.   lib_crypt=""
  7996. else
  7997.   echo "$ac_t""no" 1>&6
  7998. echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
  7999. echo "configure:8000: checking for crypt in -lcrypt" >&5
  8000. ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
  8001. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  8002.   echo $ac_n "(cached) $ac_c" 1>&6
  8003. else
  8004.   ac_save_LIBS="$LIBS"
  8005. LIBS="-lcrypt  $LIBS"
  8006. cat > conftest.$ac_ext <<EOF
  8007. #line 8008 "configure"
  8008. #include "confdefs.h"
  8009. /* Override any gcc2 internal prototype to avoid an error.  */
  8010. /* We use char because int might match the return type of a gcc2
  8011.     builtin and then its argument prototype would still apply.  */
  8012. char crypt();
  8013.  
  8014. int main() {
  8015. crypt()
  8016. ; return 0; }
  8017. EOF
  8018. if { (eval echo configure:8019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8019.   rm -rf conftest*
  8020.   eval "ac_cv_lib_$ac_lib_var=yes"
  8021. else
  8022.   echo "configure: failed program was:" >&5
  8023.   cat conftest.$ac_ext >&5
  8024.   rm -rf conftest*
  8025.   eval "ac_cv_lib_$ac_lib_var=no"
  8026. fi
  8027. rm -f conftest*
  8028. LIBS="$ac_save_LIBS"
  8029.  
  8030. fi
  8031. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8032.   echo "$ac_t""yes" 1>&6
  8033.   lib_crypt="-lcrypt"
  8034. else
  8035.   echo "$ac_t""no" 1>&6
  8036. fi
  8037.  
  8038. fi
  8039.  
  8040.  
  8041. if test $ac_cv_header_camlib_h = yes; then
  8042.   scsi_lib=-lcam
  8043. fi
  8044.  
  8045.  
  8046.  
  8047.  
  8048. trap '' 1 2 15
  8049. cat > confcache <<\EOF
  8050. # This file is a shell script that caches the results of configure
  8051. # tests run on this system so they can be shared between configure
  8052. # scripts and configure runs.  It is not useful on other systems.
  8053. # If it contains results you don't want to keep, you may remove or edit it.
  8054. #
  8055. # By default, configure uses ./config.cache as the cache file,
  8056. # creating it if it does not exist already.  You can give configure
  8057. # the --cache-file=FILE option to use a different cache file; that is
  8058. # what configure does when it calls configure scripts in
  8059. # subdirectories, so they share the cache.
  8060. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  8061. # config.status only pays attention to the cache file if you give it the
  8062. # --recheck option to rerun configure.
  8063. #
  8064. EOF
  8065. # The following way of writing the cache mishandles newlines in values,
  8066. # but we know of no workaround that is simple, portable, and efficient.
  8067. # So, don't put newlines in cache variables' values.
  8068. # Ultrix sh set writes to stderr and can't be redirected directly,
  8069. # and sets the high bit in the cache file unless we assign to the vars.
  8070. (set) 2>&1 |
  8071.   case `(ac_space=' '; set | grep ac_space) 2>&1` in
  8072.   *ac_space=\ *)
  8073.     # `set' does not quote correctly, so add quotes (double-quote substitution
  8074.     # turns \\\\ into \\, and sed turns \\ into \).
  8075.     sed -n \
  8076.       -e "s/'/'\\\\''/g" \
  8077.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  8078.     ;;
  8079.   *)
  8080.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  8081.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  8082.     ;;
  8083.   esac >> confcache
  8084. if cmp -s $cache_file confcache; then
  8085.   :
  8086. else
  8087.   if test -w $cache_file; then
  8088.     echo "updating cache $cache_file"
  8089.     cat confcache > $cache_file
  8090.   else
  8091.     echo "not updating unwritable cache $cache_file"
  8092.   fi
  8093. fi
  8094. rm -f confcache
  8095.  
  8096. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  8097.  
  8098. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  8099. # Let make expand exec_prefix.
  8100. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  8101.  
  8102. # Any assignment to VPATH causes Sun make to only execute
  8103. # the first set of double-colon rules, so remove it if not needed.
  8104. # If there is a colon in the path, we need to keep it.
  8105. if test "x$srcdir" = x.; then
  8106.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  8107. fi
  8108.  
  8109. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  8110.  
  8111. DEFS=-DHAVE_CONFIG_H
  8112.  
  8113. # Without the "./", some shells look in PATH for config.status.
  8114. : ${CONFIG_STATUS=./config.status}
  8115.  
  8116. echo creating $CONFIG_STATUS
  8117. rm -f $CONFIG_STATUS
  8118. cat > $CONFIG_STATUS <<EOF
  8119. #! /bin/sh
  8120. # Generated automatically by configure.
  8121. # Run this file to recreate the current configuration.
  8122. # This directory was configured as follows,
  8123. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  8124. #
  8125. # $0 $ac_configure_args
  8126. #
  8127. # Compiler output produced by configure, useful for debugging
  8128. # configure, is in ./config.log if it exists.
  8129.  
  8130. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  8131. for ac_option
  8132. do
  8133.   case "\$ac_option" in
  8134.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  8135.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  8136.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  8137.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  8138.     echo "$CONFIG_STATUS generated by autoconf version 2.13"
  8139.     exit 0 ;;
  8140.   -help | --help | --hel | --he | --h)
  8141.     echo "\$ac_cs_usage"; exit 0 ;;
  8142.   *) echo "\$ac_cs_usage"; exit 1 ;;
  8143.   esac
  8144. done
  8145.  
  8146. ac_given_srcdir=$srcdir
  8147.  
  8148. trap 'rm -fr `echo "rules.cnf xconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  8149. EOF
  8150. cat >> $CONFIG_STATUS <<EOF
  8151.  
  8152. # Protect against being on the right side of a sed subst in config.status.
  8153. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  8154.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  8155. $ac_vpsub
  8156. $extrasub
  8157. s%@SHELL@%$SHELL%g
  8158. s%@CFLAGS@%$CFLAGS%g
  8159. s%@CPPFLAGS@%$CPPFLAGS%g
  8160. s%@CXXFLAGS@%$CXXFLAGS%g
  8161. s%@FFLAGS@%$FFLAGS%g
  8162. s%@DEFS@%$DEFS%g
  8163. s%@LDFLAGS@%$LDFLAGS%g
  8164. s%@LIBS@%$LIBS%g
  8165. s%@exec_prefix@%$exec_prefix%g
  8166. s%@prefix@%$prefix%g
  8167. s%@program_transform_name@%$program_transform_name%g
  8168. s%@bindir@%$bindir%g
  8169. s%@sbindir@%$sbindir%g
  8170. s%@libexecdir@%$libexecdir%g
  8171. s%@datadir@%$datadir%g
  8172. s%@sysconfdir@%$sysconfdir%g
  8173. s%@sharedstatedir@%$sharedstatedir%g
  8174. s%@localstatedir@%$localstatedir%g
  8175. s%@libdir@%$libdir%g
  8176. s%@includedir@%$includedir%g
  8177. s%@oldincludedir@%$oldincludedir%g
  8178. s%@infodir@%$infodir%g
  8179. s%@mandir@%$mandir%g
  8180. s%@host@%$host%g
  8181. s%@host_alias@%$host_alias%g
  8182. s%@host_cpu@%$host_cpu%g
  8183. s%@host_vendor@%$host_vendor%g
  8184. s%@host_os@%$host_os%g
  8185. s%@EXEEXT@%$EXEEXT%g
  8186. s%@CPP@%$CPP%g
  8187. s%@RANLIB@%$RANLIB%g
  8188. s%@SET_MAKE@%$SET_MAKE%g
  8189. s%@LIBOBJS@%$LIBOBJS%g
  8190. s%@lib_crypt@%$lib_crypt%g
  8191. s%@scsi_lib@%$scsi_lib%g
  8192.  
  8193. CEOF
  8194. EOF
  8195.  
  8196. cat >> $CONFIG_STATUS <<\EOF
  8197.  
  8198. # Split the substitutions into bite-sized pieces for seds with
  8199. # small command number limits, like on Digital OSF/1 and HP-UX.
  8200. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  8201. ac_file=1 # Number of current file.
  8202. ac_beg=1 # First line for current file.
  8203. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  8204. ac_more_lines=:
  8205. ac_sed_cmds=""
  8206. while $ac_more_lines; do
  8207.   if test $ac_beg -gt 1; then
  8208.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  8209.   else
  8210.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  8211.   fi
  8212.   if test ! -s conftest.s$ac_file; then
  8213.     ac_more_lines=false
  8214.     rm -f conftest.s$ac_file
  8215.   else
  8216.     if test -z "$ac_sed_cmds"; then
  8217.       ac_sed_cmds="sed -f conftest.s$ac_file"
  8218.     else
  8219.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  8220.     fi
  8221.     ac_file=`expr $ac_file + 1`
  8222.     ac_beg=$ac_end
  8223.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  8224.   fi
  8225. done
  8226. if test -z "$ac_sed_cmds"; then
  8227.   ac_sed_cmds=cat
  8228. fi
  8229. EOF
  8230.  
  8231. cat >> $CONFIG_STATUS <<EOF
  8232.  
  8233. CONFIG_FILES=\${CONFIG_FILES-"rules.cnf"}
  8234. EOF
  8235. cat >> $CONFIG_STATUS <<\EOF
  8236. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  8237.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  8238.   case "$ac_file" in
  8239.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  8240.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  8241.   *) ac_file_in="${ac_file}.in" ;;
  8242.   esac
  8243.  
  8244.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  8245.  
  8246.   # Remove last slash and all that follows it.  Not all systems have dirname.
  8247.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  8248.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  8249.     # The file is in a subdirectory.
  8250.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  8251.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  8252.     # A "../" for each directory in $ac_dir_suffix.
  8253.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  8254.   else
  8255.     ac_dir_suffix= ac_dots=
  8256.   fi
  8257.  
  8258.   case "$ac_given_srcdir" in
  8259.   .)  srcdir=.
  8260.       if test -z "$ac_dots"; then top_srcdir=.
  8261.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  8262.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  8263.   *) # Relative path.
  8264.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  8265.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  8266.   esac
  8267.  
  8268.  
  8269.   echo creating "$ac_file"
  8270.   rm -f "$ac_file"
  8271.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  8272.   case "$ac_file" in
  8273.   *Makefile*) ac_comsub="1i\\
  8274. # $configure_input" ;;
  8275.   *) ac_comsub= ;;
  8276.   esac
  8277.  
  8278.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  8279.   sed -e "$ac_comsub
  8280. s%@configure_input@%$configure_input%g
  8281. s%@srcdir@%$srcdir%g
  8282. s%@top_srcdir@%$top_srcdir%g
  8283. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  8284. fi; done
  8285. rm -f conftest.s*
  8286.  
  8287. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  8288. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  8289. #
  8290. # ac_d sets the value in "#define NAME VALUE" lines.
  8291. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  8292. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  8293. ac_dC='\3'
  8294. ac_dD='%g'
  8295. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  8296. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  8297. ac_uB='\([     ]\)%\1#\2define\3'
  8298. ac_uC=' '
  8299. ac_uD='\4%g'
  8300. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  8301. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  8302. ac_eB='$%\1#\2define\3'
  8303. ac_eC=' '
  8304. ac_eD='%g'
  8305.  
  8306. if test "${CONFIG_HEADERS+set}" != set; then
  8307. EOF
  8308. cat >> $CONFIG_STATUS <<EOF
  8309.   CONFIG_HEADERS="xconfig.h"
  8310. EOF
  8311. cat >> $CONFIG_STATUS <<\EOF
  8312. fi
  8313. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  8314.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  8315.   case "$ac_file" in
  8316.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  8317.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  8318.   *) ac_file_in="${ac_file}.in" ;;
  8319.   esac
  8320.  
  8321.   echo creating $ac_file
  8322.  
  8323.   rm -f conftest.frag conftest.in conftest.out
  8324.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  8325.   cat $ac_file_inputs > conftest.in
  8326.  
  8327. EOF
  8328.  
  8329. # Transform confdefs.h into a sed script conftest.vals that substitutes
  8330. # the proper values into config.h.in to produce config.h.  And first:
  8331. # Protect against being on the right side of a sed subst in config.status.
  8332. # Protect against being in an unquoted here document in config.status.
  8333. rm -f conftest.vals
  8334. cat > conftest.hdr <<\EOF
  8335. s/[\\&%]/\\&/g
  8336. s%[\\$`]%\\&%g
  8337. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  8338. s%ac_d%ac_u%gp
  8339. s%ac_u%ac_e%gp
  8340. EOF
  8341. sed -n -f conftest.hdr confdefs.h > conftest.vals
  8342. rm -f conftest.hdr
  8343.  
  8344. # This sed command replaces #undef with comments.  This is necessary, for
  8345. # example, in the case of _POSIX_SOURCE, which is predefined and required
  8346. # on some systems where configure will not decide to define it.
  8347. cat >> conftest.vals <<\EOF
  8348. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  8349. EOF
  8350.  
  8351. # Break up conftest.vals because some shells have a limit on
  8352. # the size of here documents, and old seds have small limits too.
  8353.  
  8354. rm -f conftest.tail
  8355. while :
  8356. do
  8357.   ac_lines=`grep -c . conftest.vals`
  8358.   # grep -c gives empty output for an empty file on some AIX systems.
  8359.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  8360.   # Write a limited-size here document to conftest.frag.
  8361.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  8362.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  8363.   echo 'CEOF
  8364.   sed -f conftest.frag conftest.in > conftest.out
  8365.   rm -f conftest.in
  8366.   mv conftest.out conftest.in
  8367. ' >> $CONFIG_STATUS
  8368.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  8369.   rm -f conftest.vals
  8370.   mv conftest.tail conftest.vals
  8371. done
  8372. rm -f conftest.vals
  8373.  
  8374. cat >> $CONFIG_STATUS <<\EOF
  8375.   rm -f conftest.frag conftest.h
  8376.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  8377.   cat conftest.in >> conftest.h
  8378.   rm -f conftest.in
  8379.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  8380.     echo "$ac_file is unchanged"
  8381.     rm -f conftest.h
  8382.   else
  8383.     # Remove last slash and all that follows it.  Not all systems have dirname.
  8384.       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  8385.       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  8386.       # The file is in a subdirectory.
  8387.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  8388.     fi
  8389.     rm -f $ac_file
  8390.     mv conftest.h $ac_file
  8391.   fi
  8392. fi; done
  8393.  
  8394. EOF
  8395. cat >> $CONFIG_STATUS <<EOF
  8396.  
  8397. EOF
  8398. cat >> $CONFIG_STATUS <<\EOF
  8399.  
  8400. exit 0
  8401. EOF
  8402. chmod +x $CONFIG_STATUS
  8403. rm -fr confdefs* $ac_clean_files
  8404. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  8405.  
  8406.