home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / sh-utils-1.12-src.tgz / tar.out / fsf / sh-utils / configure < prev    next >
Text File  |  1996-10-01  |  91KB  |  3,309 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.10 
  5. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14.  
  15. # Initialize some variables set by options.
  16. # The variables have the same names as the options, with
  17. # dashes changed to underlines.
  18. build=NONE
  19. cache_file=./config.cache
  20. exec_prefix=NONE
  21. host=NONE
  22. no_create=
  23. nonopt=NONE
  24. no_recursion=
  25. prefix=NONE
  26. program_prefix=NONE
  27. program_suffix=NONE
  28. program_transform_name=s,x,x,
  29. silent=
  30. site=
  31. srcdir=
  32. target=NONE
  33. verbose=
  34. x_includes=NONE
  35. x_libraries=NONE
  36. bindir='${exec_prefix}/bin'
  37. sbindir='${exec_prefix}/sbin'
  38. libexecdir='${exec_prefix}/libexec'
  39. datadir='${prefix}/share'
  40. sysconfdir='${prefix}/etc'
  41. sharedstatedir='${prefix}/com'
  42. localstatedir='${prefix}/var'
  43. libdir='${exec_prefix}/lib'
  44. includedir='${prefix}/include'
  45. oldincludedir='/usr/include'
  46. infodir='${prefix}/info'
  47. guidedir='${prefix}/guide'
  48. psdir='${prefix}/ps'
  49. dvidir='${prefix}/dvi'
  50. mandir='${prefix}/man'
  51.  
  52. # Initialize some other variables.
  53. subdirs=
  54. MFLAGS= MAKEFLAGS=
  55.  
  56. ac_prev=
  57. for ac_option
  58. do
  59.  
  60.   # If the previous option needs an argument, assign it.
  61.   if test -n "$ac_prev"; then
  62.     eval "$ac_prev=\$ac_option"
  63.     ac_prev=
  64.     continue
  65.   fi
  66.  
  67.   case "$ac_option" in
  68.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  69.   *) ac_optarg= ;;
  70.   esac
  71.  
  72.   # Accept the important Cygnus configure options, so we can diagnose typos.
  73.  
  74.   case "$ac_option" in
  75.  
  76.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  77.     ac_prev=bindir ;;
  78.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  79.     bindir="$ac_optarg" ;;
  80.  
  81.   -build | --build | --buil | --bui | --bu)
  82.     ac_prev=build ;;
  83.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  84.     build="$ac_optarg" ;;
  85.  
  86.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  87.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  88.     ac_prev=cache_file ;;
  89.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  90.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  91.     cache_file="$ac_optarg" ;;
  92.  
  93.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  94.     ac_prev=datadir ;;
  95.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  96.   | --da=*)
  97.     datadir="$ac_optarg" ;;
  98.  
  99.   -disable-* | --disable-*)
  100.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  101.     # Reject names that are not valid shell variable names.
  102.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  103.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  104.     fi
  105.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  106.     eval "enable_${ac_feature}=no" ;;
  107.  
  108.   -enable-* | --enable-*)
  109.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  110.     # Reject names that are not valid shell variable names.
  111.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  112.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  113.     fi
  114.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  115.     case "$ac_option" in
  116.       *=*) ;;
  117.       *) ac_optarg=yes ;;
  118.     esac
  119.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  120.  
  121.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  122.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  123.   | --exec | --exe | --ex)
  124.     ac_prev=exec_prefix ;;
  125.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  126.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  127.   | --exec=* | --exe=* | --ex=*)
  128.     exec_prefix="$ac_optarg" ;;
  129.  
  130.   -gas | --gas | --ga | --g)
  131.     # Obsolete; use --with-gas.
  132.     with_gas=yes ;;
  133.  
  134.   -help | --help | --hel | --he)
  135.     # Omit some internal or obsolete options to make the list less imposing.
  136.     # This message is too long to be a string in the A/UX 3.1 sh.
  137.     cat << EOF
  138. Usage: configure [options] [host]
  139. Options: [defaults in brackets after descriptions]
  140. Configuration:
  141.   --cache-file=FILE       cache test results in FILE
  142.   --help                  print this message
  143.   --no-create             do not create output files
  144.   --quiet, --silent       do not print \`checking...' messages
  145.   --version               print the version of autoconf that created configure
  146. Directory and file names:
  147.   --prefix=PREFIX         install architecture-independent files in PREFIX
  148.                           [$ac_default_prefix]
  149.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  150.                           [same as prefix]
  151.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  152.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  153.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  154.   --datadir=DIR           read-only architecture-independent data in DIR
  155.                           [PREFIX/share]
  156.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  157.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  158.                           [PREFIX/com]
  159.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  160.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  161.   --includedir=DIR        C header files in DIR [PREFIX/include]
  162.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  163.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  164.   --guidedir=DIR          Amigaguide documentation in DIR [PREFIX/guide]
  165.   --psdir=DIR             postscript documentation in DIR [PREFIX/ps]
  166.   --dvidir=DIR            TeX dvi documentation in DIR [PREFIX/dvi]
  167.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  168.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  169.   --program-prefix=PREFIX prepend PREFIX to installed program names
  170.   --program-suffix=SUFFIX append SUFFIX to installed program names
  171.   --program-transform-name=PROGRAM
  172.                           run sed PROGRAM on installed program names
  173. EOF
  174.     cat << EOF
  175. Host type:
  176.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  177.   --host=HOST             configure for HOST [guessed]
  178.   --target=TARGET         configure for TARGET [TARGET=HOST]
  179. Features and packages:
  180.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  181.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  182.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  183.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  184.   --x-includes=DIR        X include files are in DIR
  185.   --x-libraries=DIR       X library files are in DIR
  186. EOF
  187.     if test -n "$ac_help"; then
  188.       echo "--enable and --with options recognized:$ac_help"
  189.     fi
  190.     exit 0 ;;
  191.  
  192.   -host | --host | --hos | --ho)
  193.     ac_prev=host ;;
  194.   -host=* | --host=* | --hos=* | --ho=*)
  195.     host="$ac_optarg" ;;
  196.  
  197.   -includedir | --includedir | --includedi | --included | --include \
  198.   | --includ | --inclu | --incl | --inc)
  199.     ac_prev=includedir ;;
  200.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  201.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  202.     includedir="$ac_optarg" ;;
  203.  
  204.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  205.     ac_prev=infodir ;;
  206.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  207.     infodir="$ac_optarg" ;;
  208.  
  209.  -guidedir | --guidedir | --guidedi | --guided | --guide | --gui)
  210.    ac_prev=guidedir ;;
  211.  -guidedir=* | --guidedir=* | --guidedi=* | --guided=* | --guide=* |--gui=*)+    guidedir="$ac_optarg" ;;
  212.  
  213.  -psdir | --psdir | --psdi | --psd | --ps)
  214.    ac_prev=psdir ;;
  215.  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)+    psdir="$ac_optarg" ;;
  216.  
  217.  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  218.    ac_prev=dvidir ;;
  219.  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |--dv=*)+    dvidir="$ac_optarg" ;;
  220.  
  221.   -libdir | --libdir | --libdi | --libd)
  222.     ac_prev=libdir ;;
  223.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  224.     libdir="$ac_optarg" ;;
  225.  
  226.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  227.   | --libexe | --libex | --libe)
  228.     ac_prev=libexecdir ;;
  229.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  230.   | --libexe=* | --libex=* | --libe=*)
  231.     libexecdir="$ac_optarg" ;;
  232.  
  233.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  234.   | --localstate | --localstat | --localsta | --localst \
  235.   | --locals | --local | --loca | --loc | --lo)
  236.     ac_prev=localstatedir ;;
  237.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  238.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  239.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  240.     localstatedir="$ac_optarg" ;;
  241.  
  242.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  243.     ac_prev=mandir ;;
  244.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  245.     mandir="$ac_optarg" ;;
  246.  
  247.   -nfp | --nfp | --nf)
  248.     # Obsolete; use --without-fp.
  249.     with_fp=no ;;
  250.  
  251.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  252.   | --no-cr | --no-c)
  253.     no_create=yes ;;
  254.  
  255.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  256.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  257.     no_recursion=yes ;;
  258.  
  259.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  260.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  261.   | --oldin | --oldi | --old | --ol | --o)
  262.     ac_prev=oldincludedir ;;
  263.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  264.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  265.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  266.     oldincludedir="$ac_optarg" ;;
  267.  
  268.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  269.     ac_prev=prefix ;;
  270.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  271.     prefix="$ac_optarg" ;;
  272.  
  273.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  274.   | --program-pre | --program-pr | --program-p)
  275.     ac_prev=program_prefix ;;
  276.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  277.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  278.     program_prefix="$ac_optarg" ;;
  279.  
  280.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  281.   | --program-suf | --program-su | --program-s)
  282.     ac_prev=program_suffix ;;
  283.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  284.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  285.     program_suffix="$ac_optarg" ;;
  286.  
  287.   -program-transform-name | --program-transform-name \
  288.   | --program-transform-nam | --program-transform-na \
  289.   | --program-transform-n | --program-transform- \
  290.   | --program-transform | --program-transfor \
  291.   | --program-transfo | --program-transf \
  292.   | --program-trans | --program-tran \
  293.   | --progr-tra | --program-tr | --program-t)
  294.     ac_prev=program_transform_name ;;
  295.   -program-transform-name=* | --program-transform-name=* \
  296.   | --program-transform-nam=* | --program-transform-na=* \
  297.   | --program-transform-n=* | --program-transform-=* \
  298.   | --program-transform=* | --program-transfor=* \
  299.   | --program-transfo=* | --program-transf=* \
  300.   | --program-trans=* | --program-tran=* \
  301.   | --progr-tra=* | --program-tr=* | --program-t=*)
  302.     program_transform_name="$ac_optarg" ;;
  303.  
  304.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  305.   | -silent | --silent | --silen | --sile | --sil)
  306.     silent=yes ;;
  307.  
  308.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  309.     ac_prev=sbindir ;;
  310.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  311.   | --sbi=* | --sb=*)
  312.     sbindir="$ac_optarg" ;;
  313.  
  314.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  315.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  316.   | --sharedst | --shareds | --shared | --share | --shar \
  317.   | --sha | --sh)
  318.     ac_prev=sharedstatedir ;;
  319.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  320.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  321.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  322.   | --sha=* | --sh=*)
  323.     sharedstatedir="$ac_optarg" ;;
  324.  
  325.   -site | --site | --sit)
  326.     ac_prev=site ;;
  327.   -site=* | --site=* | --sit=*)
  328.     site="$ac_optarg" ;;
  329.  
  330.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  331.     ac_prev=srcdir ;;
  332.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  333.     srcdir="$ac_optarg" ;;
  334.  
  335.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  336.   | --syscon | --sysco | --sysc | --sys | --sy)
  337.     ac_prev=sysconfdir ;;
  338.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  339.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  340.     sysconfdir="$ac_optarg" ;;
  341.  
  342.   -target | --target | --targe | --targ | --tar | --ta | --t)
  343.     ac_prev=target ;;
  344.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  345.     target="$ac_optarg" ;;
  346.  
  347.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  348.     verbose=yes ;;
  349.  
  350.   -version | --version | --versio | --versi | --vers)
  351.     echo "configure generated by autoconf version 2.10"
  352.     exit 0 ;;
  353.  
  354.   -with-* | --with-*)
  355.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  356.     # Reject names that are not valid shell variable names.
  357.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  358.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  359.     fi
  360.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  361.     case "$ac_option" in
  362.       *=*) ;;
  363.       *) ac_optarg=yes ;;
  364.     esac
  365.     eval "with_${ac_package}='$ac_optarg'" ;;
  366.  
  367.   -without-* | --without-*)
  368.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  369.     # Reject names that are not valid shell variable names.
  370.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  371.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  372.     fi
  373.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  374.     eval "with_${ac_package}=no" ;;
  375.  
  376.   --x)
  377.     # Obsolete; use --with-x.
  378.     with_x=yes ;;
  379.  
  380.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  381.   | --x-incl | --x-inc | --x-in | --x-i)
  382.     ac_prev=x_includes ;;
  383.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  384.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  385.     x_includes="$ac_optarg" ;;
  386.  
  387.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  388.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  389.     ac_prev=x_libraries ;;
  390.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  391.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  392.     x_libraries="$ac_optarg" ;;
  393.  
  394.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  395.     ;;
  396.  
  397.   *)
  398.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  399.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  400.     fi
  401.     if test "x$nonopt" != xNONE; then
  402.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  403.     fi
  404.     nonopt="$ac_option"
  405.     ;;
  406.  
  407.   esac
  408. done
  409.  
  410. if test -n "$ac_prev"; then
  411.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  412. fi
  413.  
  414. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  415.  
  416. # File descriptor usage:
  417. # 0 standard input
  418. # 1 file creation
  419. # 2 errors and warnings
  420. # 3 some systems may open it to /dev/tty
  421. # 4 used on the Kubota Titan
  422. # 6 checking for... messages and results
  423. # 5 compiler messages saved in config.log
  424. if test "$silent" = yes; then
  425.   exec 6>/dev/null
  426. else
  427.   exec 6>&1
  428. fi
  429. exec 5>./config.log
  430.  
  431. echo "\
  432. This file contains any messages produced by compilers while
  433. running configure, to aid debugging if configure makes a mistake.
  434. " 1>&5
  435.  
  436. # Strip out --no-create and --no-recursion so they do not pile up.
  437. # Also quote any args containing shell metacharacters.
  438. ac_configure_args=
  439. for ac_arg
  440. do
  441.   case "$ac_arg" in
  442.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  443.   | --no-cr | --no-c) ;;
  444.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  445.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  446.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  447.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  448.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  449.   esac
  450. done
  451.  
  452. # NLS nuisances.
  453. # Only set LANG and LC_ALL to C if already set.
  454. # These must not be set unconditionally because not all systems understand
  455. # e.g. LANG=C (notably SCO).
  456. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  457. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  458.  
  459. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  460. rm -rf conftest* confdefs.h
  461. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  462. echo > confdefs.h
  463.  
  464. # A filename unique to this package, relative to the directory that
  465. # configure is in, which we can look for to find out if srcdir is correct.
  466. ac_unique_file=src/stty.c
  467.  
  468. # Find the source files, if location was not specified.
  469. if test -z "$srcdir"; then
  470.   ac_srcdir_defaulted=yes
  471.   # Try the directory containing this script, then its parent.
  472.   ac_prog=$0
  473.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  474.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  475.   srcdir=$ac_confdir
  476.   if test ! -r $srcdir/$ac_unique_file; then
  477.     srcdir=..
  478.   fi
  479. else
  480.   ac_srcdir_defaulted=no
  481. fi
  482. if test ! -r $srcdir/$ac_unique_file; then
  483.   if test "$ac_srcdir_defaulted" = yes; then
  484.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  485.   else
  486.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  487.   fi
  488. fi
  489. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  490.  
  491. # Prefer explicitly selected file to automatically selected ones.
  492. if test -z "$CONFIG_SITE"; then
  493.   if test "x$prefix" != xNONE; then
  494.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  495.   else
  496.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  497.   fi
  498. fi
  499. for ac_site_file in $CONFIG_SITE; do
  500.   if test -r "$ac_site_file"; then
  501.     echo "loading site script $ac_site_file"
  502.     . "$ac_site_file"
  503.   fi
  504. done
  505.  
  506. if test -r "$cache_file"; then
  507.   echo "loading cache $cache_file"
  508.   . $cache_file
  509. else
  510.   echo "creating cache $cache_file"
  511.   > $cache_file
  512. fi
  513.  
  514. ac_ext=c
  515. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  516. ac_cpp='$CPP $CPPFLAGS'
  517. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  518. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  519.  
  520. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  521.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  522.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  523.     ac_n= ac_c='
  524. ' ac_t='    '
  525.   else
  526.     ac_n=-n ac_c= ac_t=
  527.   fi
  528. else
  529.   ac_n= ac_c='\c' ac_t=
  530. fi
  531.  
  532.  
  533.  
  534.  
  535.  
  536.  
  537. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  538. set dummy ${MAKE-make}; ac_make=$2
  539. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  540.   echo $ac_n "(cached) $ac_c" 1>&6
  541. else
  542.   cat > conftestmake <<\EOF
  543. all:
  544.     @echo 'ac_maketemp="${MAKE}"'
  545. EOF
  546. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  547. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  548. if test -n "$ac_maketemp"; then
  549.   eval ac_cv_prog_make_${ac_make}_set=yes
  550. else
  551.   eval ac_cv_prog_make_${ac_make}_set=no
  552. fi
  553. rm -f conftestmake
  554. fi
  555. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  556.   echo "$ac_t""yes" 1>&6
  557.   SET_MAKE=
  558. else
  559.   echo "$ac_t""no" 1>&6
  560.   SET_MAKE="MAKE=${MAKE-make}"
  561. fi
  562.  
  563. # Extract the first word of "gcc", so it can be a program name with args.
  564. set dummy gcc; ac_word=$2
  565. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  566. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  567.   echo $ac_n "(cached) $ac_c" 1>&6
  568. else
  569.   if test -n "$CC"; then
  570.   ac_cv_prog_CC="$CC" # Let the user override the test.
  571. else
  572.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  573.   for ac_dir in $PATH; do
  574.     test -z "$ac_dir" && ac_dir=.
  575.     if test -f $ac_dir/$ac_word; then
  576.       ac_cv_prog_CC="gcc"
  577.       break
  578.     fi
  579.   done
  580.   IFS="$ac_save_ifs"
  581. fi
  582. fi
  583. CC="$ac_cv_prog_CC"
  584. if test -n "$CC"; then
  585.   echo "$ac_t""$CC" 1>&6
  586. else
  587.   echo "$ac_t""no" 1>&6
  588. fi
  589.  
  590. if test -z "$CC"; then
  591.   # Extract the first word of "cc", so it can be a program name with args.
  592. set dummy cc; ac_word=$2
  593. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  594. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  595.   echo $ac_n "(cached) $ac_c" 1>&6
  596. else
  597.   if test -n "$CC"; then
  598.   ac_cv_prog_CC="$CC" # Let the user override the test.
  599. else
  600.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  601.   ac_prog_rejected=no
  602.   for ac_dir in $PATH; do
  603.     test -z "$ac_dir" && ac_dir=.
  604.     if test -f $ac_dir/$ac_word; then
  605.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  606.         ac_prog_rejected=yes
  607.     continue
  608.       fi
  609.       ac_cv_prog_CC="cc"
  610.       break
  611.     fi
  612.   done
  613.   IFS="$ac_save_ifs"
  614. if test $ac_prog_rejected = yes; then
  615.   # We found a bogon in the path, so make sure we never use it.
  616.   set dummy $ac_cv_prog_CC
  617.   shift
  618.   if test $# -gt 0; then
  619.     # We chose a different compiler from the bogus one.
  620.     # However, it has the same basename, so the bogon will be chosen
  621.     # first if we set CC to just the basename; use the full file name.
  622.     shift
  623.     set dummy "$ac_dir/$ac_word" "$@"
  624.     shift
  625.     ac_cv_prog_CC="$@"
  626.   fi
  627. fi
  628. fi
  629. fi
  630. CC="$ac_cv_prog_CC"
  631. if test -n "$CC"; then
  632.   echo "$ac_t""$CC" 1>&6
  633. else
  634.   echo "$ac_t""no" 1>&6
  635. fi
  636.  
  637.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  638. fi
  639.  
  640. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  641. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  642.   echo $ac_n "(cached) $ac_c" 1>&6
  643. else
  644.   cat > conftest.c <<EOF
  645. #ifdef __GNUC__
  646.   yes;
  647. #endif
  648. EOF
  649. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  650.   ac_cv_prog_gcc=yes
  651. else
  652.   ac_cv_prog_gcc=no
  653. fi
  654. fi
  655.  
  656. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  657. if test $ac_cv_prog_gcc = yes; then
  658.   GCC=yes
  659.   if test "${CFLAGS+set}" != set; then
  660.     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  661. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  662.   echo $ac_n "(cached) $ac_c" 1>&6
  663. else
  664.   echo 'void f(){}' > conftest.c
  665. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  666.   ac_cv_prog_gcc_g=yes
  667. else
  668.   ac_cv_prog_gcc_g=no
  669. fi
  670. rm -f conftest*
  671.  
  672. fi
  673.  
  674. echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  675.     if test $ac_cv_prog_gcc_g = yes; then
  676.       CFLAGS="-g -O2"
  677.     else
  678.       CFLAGS="-O2"
  679.     fi
  680.   fi
  681. else
  682.   GCC=
  683.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  684. fi
  685.  
  686. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  687. # On Suns, sometimes $CPP names a directory.
  688. if test -n "$CPP" && test -d "$CPP"; then
  689.   CPP=
  690. fi
  691. if test -z "$CPP"; then
  692. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  693.   echo $ac_n "(cached) $ac_c" 1>&6
  694. else
  695.     # This must be in double quotes, not single quotes, because CPP may get
  696.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  697.   CPP="${CC-cc} -E"
  698.   # On the NeXT, cc -E runs the code through the compiler's parser,
  699.   # not just through cpp.
  700.   cat > conftest.$ac_ext <<EOF
  701. #line 702 "configure"
  702. #include "confdefs.h"
  703. #include <assert.h>
  704. Syntax Error
  705. EOF
  706. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  707. { (eval echo configure:708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  708. ac_err=`grep -v '^ *+' conftest.out`
  709. if test -z "$ac_err"; then
  710.   :
  711. else
  712.   echo "$ac_err" >&5
  713.   rm -rf conftest*
  714.   CPP="${CC-cc} -E -traditional-cpp"
  715.   cat > conftest.$ac_ext <<EOF
  716. #line 717 "configure"
  717. #include "confdefs.h"
  718. #include <assert.h>
  719. Syntax Error
  720. EOF
  721. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  722. { (eval echo configure:723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  723. ac_err=`grep -v '^ *+' conftest.out`
  724. if test -z "$ac_err"; then
  725.   :
  726. else
  727.   echo "$ac_err" >&5
  728.   rm -rf conftest*
  729.   CPP=/lib/cpp
  730. fi
  731. rm -f conftest*
  732. fi
  733. rm -f conftest*
  734.   ac_cv_prog_CPP="$CPP"
  735. fi
  736.   CPP="$ac_cv_prog_CPP"
  737. else
  738.   ac_cv_prog_CPP="$CPP"
  739. fi
  740. echo "$ac_t""$CPP" 1>&6
  741.  
  742. if test $ac_cv_prog_gcc = yes; then
  743.     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
  744. if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
  745.   echo $ac_n "(cached) $ac_c" 1>&6
  746. else
  747.     ac_pattern="Autoconf.*'x'"
  748.   cat > conftest.$ac_ext <<EOF
  749. #line 750 "configure"
  750. #include "confdefs.h"
  751. #include <sgtty.h>
  752. Autoconf TIOCGETP
  753. EOF
  754. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  755.   egrep "$ac_pattern" >/dev/null 2>&1; then
  756.   rm -rf conftest*
  757.   ac_cv_prog_gcc_traditional=yes
  758. else
  759.   rm -rf conftest*
  760.   ac_cv_prog_gcc_traditional=no
  761. fi
  762. rm -f conftest*
  763.  
  764.  
  765.   if test $ac_cv_prog_gcc_traditional = no; then
  766.     cat > conftest.$ac_ext <<EOF
  767. #line 768 "configure"
  768. #include "confdefs.h"
  769. #include <termio.h>
  770. Autoconf TCGETA
  771. EOF
  772. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  773.   egrep "$ac_pattern" >/dev/null 2>&1; then
  774.   rm -rf conftest*
  775.   ac_cv_prog_gcc_traditional=yes
  776. fi
  777. rm -f conftest*
  778.  
  779.   fi
  780. fi
  781.  
  782. echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
  783.   if test $ac_cv_prog_gcc_traditional = yes; then
  784.     CC="$CC -traditional"
  785.   fi
  786. fi
  787.  
  788. ac_aux_dir=
  789. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  790.   if test -f $ac_dir/install-sh; then
  791.     ac_aux_dir=$ac_dir
  792.     ac_install_sh="$ac_aux_dir/install-sh -c"
  793.     break
  794.   elif test -f $ac_dir/install.sh; then
  795.     ac_aux_dir=$ac_dir
  796.     ac_install_sh="$ac_aux_dir/install.sh -c"
  797.     break
  798.   fi
  799. done
  800. if test -z "$ac_aux_dir"; then
  801.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  802. fi
  803. ac_config_guess=$ac_aux_dir/config.guess
  804. ac_config_sub=$ac_aux_dir/config.sub
  805. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  806.  
  807. # Find a good install program.  We prefer a C program (faster),
  808. # so one script is as good as another.  But avoid the broken or
  809. # incompatible versions:
  810. # SysV /etc/install, /usr/sbin/install
  811. # SunOS /usr/etc/install
  812. # IRIX /sbin/install
  813. # AIX /bin/install
  814. # AmigaOS /c/install
  815. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  816. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  817. # ./install, which can be erroneously created by make from ./install.sh.
  818. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  819. if test -z "$INSTALL"; then
  820. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  821.   echo $ac_n "(cached) $ac_c" 1>&6
  822. else
  823.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  824.   for ac_dir in $PATH; do
  825.     # Account for people who put trailing slashes in PATH elements.
  826.     case "$ac_dir/" in
  827.     /|./|.//|/etc/*|/c/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  828.     *)
  829.       # OSF1 and SCO ODT 3.0 have their own names for install.
  830.       for ac_prog in ginstall installbsd scoinst install; do
  831.         if test -f $ac_dir/$ac_prog; then
  832.       if test $ac_prog = install &&
  833.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  834.         # AIX install.  It has an incompatible calling convention.
  835.         # OSF/1 installbsd also uses dspmsg, but is usable.
  836.         :
  837.       else
  838.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  839.         break 2
  840.       fi
  841.     fi
  842.       done
  843.       ;;
  844.     esac
  845.   done
  846.   IFS="$ac_save_ifs"
  847.  
  848. fi
  849.   if test "${ac_cv_path_install+set}" = set; then
  850.     INSTALL="$ac_cv_path_install"
  851.   else
  852.     # As a last resort, use the slow shell script.  We don't cache a
  853.     # path for INSTALL within a source directory, because that will
  854.     # break other packages using the cache if that directory is
  855.     # removed, or if the path is relative.
  856.     INSTALL="$ac_install_sh"
  857.   fi
  858. fi
  859. echo "$ac_t""$INSTALL" 1>&6
  860.  
  861. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  862. # It thinks the first close brace ends the variable substitution.
  863. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  864.  
  865. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  866.  
  867. # Extract the first word of "ranlib", so it can be a program name with args.
  868. set dummy ranlib; ac_word=$2
  869. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  870. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  871.   echo $ac_n "(cached) $ac_c" 1>&6
  872. else
  873.   if test -n "$RANLIB"; then
  874.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  875. else
  876.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  877.   for ac_dir in $PATH; do
  878.     test -z "$ac_dir" && ac_dir=.
  879.     if test -f $ac_dir/$ac_word; then
  880.       ac_cv_prog_RANLIB="ranlib"
  881.       break
  882.     fi
  883.   done
  884.   IFS="$ac_save_ifs"
  885.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  886. fi
  887. fi
  888. RANLIB="$ac_cv_prog_RANLIB"
  889. if test -n "$RANLIB"; then
  890.   echo "$ac_t""$RANLIB" 1>&6
  891. else
  892.   echo "$ac_t""no" 1>&6
  893. fi
  894.  
  895. for ac_prog in 'bison -y' byacc
  896. do
  897. # Extract the first word of "$ac_prog", so it can be a program name with args.
  898. set dummy $ac_prog; ac_word=$2
  899. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  900. if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
  901.   echo $ac_n "(cached) $ac_c" 1>&6
  902. else
  903.   if test -n "$YACC"; then
  904.   ac_cv_prog_YACC="$YACC" # Let the user override the test.
  905. else
  906.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  907.   for ac_dir in $PATH; do
  908.     test -z "$ac_dir" && ac_dir=.
  909.     if test -f $ac_dir/$ac_word; then
  910.       ac_cv_prog_YACC="$ac_prog"
  911.       break
  912.     fi
  913.   done
  914.   IFS="$ac_save_ifs"
  915. fi
  916. fi
  917. YACC="$ac_cv_prog_YACC"
  918. if test -n "$YACC"; then
  919.   echo "$ac_t""$YACC" 1>&6
  920. else
  921.   echo "$ac_t""no" 1>&6
  922. fi
  923.  
  924. test -n "$YACC" && break
  925. done
  926. test -n "$YACC" || YACC="yacc"
  927.  
  928. echo $ac_n "checking for AIX""... $ac_c" 1>&6
  929. cat > conftest.$ac_ext <<EOF
  930. #line 931 "configure"
  931. #include "confdefs.h"
  932. #ifdef _AIX
  933.   yes
  934. #endif
  935.  
  936. EOF
  937. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  938.   egrep "yes" >/dev/null 2>&1; then
  939.   rm -rf conftest*
  940.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  941. #define _ALL_SOURCE 1
  942. EOF
  943.  
  944. else
  945.   rm -rf conftest*
  946.   echo "$ac_t""no" 1>&6
  947. fi
  948. rm -f conftest*
  949.  
  950.  
  951. ac_safe=`echo "minix/config.h" | tr './\055' '___'`
  952. echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
  953. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  954.   echo $ac_n "(cached) $ac_c" 1>&6
  955. else
  956.   cat > conftest.$ac_ext <<EOF
  957. #line 958 "configure"
  958. #include "confdefs.h"
  959. #include <minix/config.h>
  960. EOF
  961. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  962. { (eval echo configure:963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  963. ac_err=`grep -v '^ *+' conftest.out`
  964. if test -z "$ac_err"; then
  965.   rm -rf conftest*
  966.   eval "ac_cv_header_$ac_safe=yes"
  967. else
  968.   echo "$ac_err" >&5
  969.   rm -rf conftest*
  970.   eval "ac_cv_header_$ac_safe=no"
  971. fi
  972. rm -f conftest*
  973. fi
  974. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  975.   echo "$ac_t""yes" 1>&6
  976.   MINIX=yes
  977. else
  978.   echo "$ac_t""no" 1>&6
  979. MINIX=
  980. fi
  981.  
  982. if test "$MINIX" = yes; then
  983.   cat >> confdefs.h <<\EOF
  984. #define _POSIX_SOURCE 1
  985. EOF
  986.  
  987.   cat >> confdefs.h <<\EOF
  988. #define _POSIX_1_SOURCE 2
  989. EOF
  990.  
  991.   cat >> confdefs.h <<\EOF
  992. #define _MINIX 1
  993. EOF
  994.  
  995. fi
  996.  
  997. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  998. if test -d /etc/conf/kconfig.d &&
  999.   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  1000. then
  1001.   echo "$ac_t""yes" 1>&6
  1002.   ISC=yes # If later tests want to check for ISC.
  1003.   cat >> confdefs.h <<\EOF
  1004. #define _POSIX_SOURCE 1
  1005. EOF
  1006.  
  1007.   if test "$GCC" = yes; then
  1008.     CC="$CC -posix"
  1009.   else
  1010.     CC="$CC -Xp"
  1011.   fi
  1012. else
  1013.   echo "$ac_t""no" 1>&6
  1014.   ISC=
  1015. fi
  1016.  
  1017. for ac_func in uname
  1018. do
  1019. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1020. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1021.   echo $ac_n "(cached) $ac_c" 1>&6
  1022. else
  1023.   cat > conftest.$ac_ext <<EOF
  1024. #line 1025 "configure"
  1025. #include "confdefs.h"
  1026. /* System header to define __stub macros and hopefully few prototypes,
  1027.     which can conflict with char $ac_func(); below.  */
  1028. #include <assert.h>
  1029. /* Override any gcc2 internal prototype to avoid an error.  */
  1030. /* We use char because int might match the return type of a gcc2
  1031.     builtin and then its argument prototype would still apply.  */
  1032. char $ac_func();
  1033.  
  1034. int main() { t(); return 0; }
  1035. int t() {
  1036.  
  1037. /* The GNU C library defines this for functions which it implements
  1038.     to always fail with ENOSYS.  Some functions are actually named
  1039.     something starting with __ and the normal name is an alias.  */
  1040. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1041. choke me
  1042. #else
  1043. $ac_func();
  1044. #endif
  1045.  
  1046. ; return 0; }
  1047. EOF
  1048. if { (eval echo configure:1049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1049.   rm -rf conftest*
  1050.   eval "ac_cv_func_$ac_func=yes"
  1051. else
  1052.   rm -rf conftest*
  1053.   eval "ac_cv_func_$ac_func=no"
  1054. fi
  1055. rm -f conftest*
  1056.  
  1057. fi
  1058. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1059.   echo "$ac_t""yes" 1>&6
  1060.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1061.   cat >> confdefs.h <<EOF
  1062. #define $ac_tr_func 1
  1063. EOF
  1064.  PROGS="$PROGS uname" MAN="$MAN uname.1"
  1065. else
  1066.   echo "$ac_t""no" 1>&6
  1067. fi
  1068. done
  1069.  
  1070. echo $ac_n "checking for working const""... $ac_c" 1>&6
  1071. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  1072.   echo $ac_n "(cached) $ac_c" 1>&6
  1073. else
  1074.   cat > conftest.$ac_ext <<EOF
  1075. #line 1076 "configure"
  1076. #include "confdefs.h"
  1077.  
  1078. int main() { return 0; }
  1079. int t() {
  1080.  
  1081. /* Ultrix mips cc rejects this.  */
  1082. typedef int charset[2]; const charset x;
  1083. /* SunOS 4.1.1 cc rejects this.  */
  1084. char const *const *ccp;
  1085. char **p;
  1086. /* NEC SVR4.0.2 mips cc rejects this.  */
  1087. struct point {int x, y;};
  1088. static struct point const zero = {0,0};
  1089. /* AIX XL C 1.02.0.0 rejects this.
  1090.    It does not let you subtract one const X* pointer from another in an arm
  1091.    of an if-expression whose if-part is not a constant expression */
  1092. const char *g = "string";
  1093. ccp = &g + (g ? g-g : 0);
  1094. /* HPUX 7.0 cc rejects these. */
  1095. ++ccp;
  1096. p = (char**) ccp;
  1097. ccp = (char const *const *) p;
  1098. { /* SCO 3.2v4 cc rejects this.  */
  1099.   char *t;
  1100.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  1101.  
  1102.   *t++ = 0;
  1103. }
  1104. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  1105.   int x[] = {25, 17};
  1106.   const int *foo = &x[0];
  1107.   ++foo;
  1108. }
  1109. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  1110.   typedef const int *iptr;
  1111.   iptr p = 0;
  1112.   ++p;
  1113. }
  1114. { /* AIX XL C 1.02.0.0 rejects this saying
  1115.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1116.   struct s { int j; const int *ap[3]; };
  1117.   struct s *b; b->j = 5;
  1118. }
  1119. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1120.   const int foo = 10;
  1121. }
  1122.  
  1123. ; return 0; }
  1124. EOF
  1125. if { (eval echo configure:1126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1126.   rm -rf conftest*
  1127.   ac_cv_c_const=yes
  1128. else
  1129.   rm -rf conftest*
  1130.   ac_cv_c_const=no
  1131. fi
  1132. rm -f conftest*
  1133.  
  1134. fi
  1135.  
  1136. echo "$ac_t""$ac_cv_c_const" 1>&6
  1137. if test $ac_cv_c_const = no; then
  1138.   cat >> confdefs.h <<\EOF
  1139. #define const 
  1140. EOF
  1141.  
  1142. fi
  1143.  
  1144. # If we cannot run a trivial program, we must be cross compiling.
  1145. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  1146. if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  1147.   echo $ac_n "(cached) $ac_c" 1>&6
  1148. else
  1149.   if test "$cross_compiling" = yes; then
  1150.   ac_cv_c_cross=yes
  1151. else
  1152. cat > conftest.$ac_ext <<EOF
  1153. #line 1154 "configure"
  1154. #include "confdefs.h"
  1155. main(){return(0);}
  1156. EOF
  1157. { (eval echo configure:1158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1158. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1159.   ac_cv_c_cross=no
  1160. else
  1161.   ac_cv_c_cross=yes
  1162. fi
  1163. fi
  1164. rm -fr conftest*
  1165. fi
  1166.  
  1167. echo "$ac_t""$ac_cv_c_cross" 1>&6
  1168. cross_compiling=$ac_cv_c_cross
  1169.  
  1170. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1171. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1172.   echo $ac_n "(cached) $ac_c" 1>&6
  1173. else
  1174.   cat > conftest.$ac_ext <<EOF
  1175. #line 1176 "configure"
  1176. #include "confdefs.h"
  1177. #include <stdlib.h>
  1178. #include <stdarg.h>
  1179. #include <string.h>
  1180. #include <float.h>
  1181. EOF
  1182. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1183. { (eval echo configure:1184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1184. ac_err=`grep -v '^ *+' conftest.out`
  1185. if test -z "$ac_err"; then
  1186.   rm -rf conftest*
  1187.   ac_cv_header_stdc=yes
  1188. else
  1189.   echo "$ac_err" >&5
  1190.   rm -rf conftest*
  1191.   ac_cv_header_stdc=no
  1192. fi
  1193. rm -f conftest*
  1194.  
  1195. if test $ac_cv_header_stdc = yes; then
  1196.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1197. cat > conftest.$ac_ext <<EOF
  1198. #line 1199 "configure"
  1199. #include "confdefs.h"
  1200. #include <string.h>
  1201. EOF
  1202. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1203.   egrep "memchr" >/dev/null 2>&1; then
  1204.   :
  1205. else
  1206.   rm -rf conftest*
  1207.   ac_cv_header_stdc=no
  1208. fi
  1209. rm -f conftest*
  1210.  
  1211. fi
  1212.  
  1213. if test $ac_cv_header_stdc = yes; then
  1214.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1215. cat > conftest.$ac_ext <<EOF
  1216. #line 1217 "configure"
  1217. #include "confdefs.h"
  1218. #include <stdlib.h>
  1219. EOF
  1220. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1221.   egrep "free" >/dev/null 2>&1; then
  1222.   :
  1223. else
  1224.   rm -rf conftest*
  1225.   ac_cv_header_stdc=no
  1226. fi
  1227. rm -f conftest*
  1228.  
  1229. fi
  1230.  
  1231. if test $ac_cv_header_stdc = yes; then
  1232.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1233. if test "$cross_compiling" = yes; then
  1234.   :
  1235. else
  1236. cat > conftest.$ac_ext <<EOF
  1237. #line 1238 "configure"
  1238. #include "confdefs.h"
  1239. #include <ctype.h>
  1240. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1241. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1242. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1243. int main () { int i; for (i = 0; i < 256; i++)
  1244. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1245. exit (0); }
  1246.  
  1247. EOF
  1248. { (eval echo configure:1249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1249. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1250.   :
  1251. else
  1252.   ac_cv_header_stdc=no
  1253. fi
  1254. fi
  1255. rm -fr conftest*
  1256. fi
  1257. fi
  1258.  
  1259. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1260. if test $ac_cv_header_stdc = yes; then
  1261.   cat >> confdefs.h <<\EOF
  1262. #define STDC_HEADERS 1
  1263. EOF
  1264.  
  1265. fi
  1266.  
  1267. echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
  1268. if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
  1269.   echo $ac_n "(cached) $ac_c" 1>&6
  1270. else
  1271.   ac_cv_c_bigendian=unknown
  1272. # See if sys/param.h defines the BYTE_ORDER macro.
  1273. cat > conftest.$ac_ext <<EOF
  1274. #line 1275 "configure"
  1275. #include "confdefs.h"
  1276. #include <sys/types.h>
  1277. #include <sys/param.h>
  1278. int main() { return 0; }
  1279. int t() {
  1280.  
  1281. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  1282.  bogus endian macros
  1283. #endif
  1284. ; return 0; }
  1285. EOF
  1286. if { (eval echo configure:1287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1287.   rm -rf conftest*
  1288.   # It does; now see whether it defined to BIG_ENDIAN or not.
  1289. cat > conftest.$ac_ext <<EOF
  1290. #line 1291 "configure"
  1291. #include "confdefs.h"
  1292. #include <sys/types.h>
  1293. #include <sys/param.h>
  1294. int main() { return 0; }
  1295. int t() {
  1296.  
  1297. #if BYTE_ORDER != BIG_ENDIAN
  1298.  not big endian
  1299. #endif
  1300. ; return 0; }
  1301. EOF
  1302. if { (eval echo configure:1303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1303.   rm -rf conftest*
  1304.   ac_cv_c_bigendian=yes
  1305. else
  1306.   rm -rf conftest*
  1307.   ac_cv_c_bigendian=no
  1308. fi
  1309. rm -f conftest*
  1310.  
  1311. fi
  1312. rm -f conftest*
  1313.  
  1314. if test $ac_cv_c_bigendian = unknown; then
  1315. if test "$cross_compiling" = yes; then
  1316.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1317. else
  1318. cat > conftest.$ac_ext <<EOF
  1319. #line 1320 "configure"
  1320. #include "confdefs.h"
  1321. main () {
  1322.   /* Are we little or big endian?  From Harbison&Steele.  */
  1323.   union
  1324.   {
  1325.     long l;
  1326.     char c[sizeof (long)];
  1327.   } u;
  1328.   u.l = 1;
  1329.   exit (u.c[sizeof (long) - 1] == 1);
  1330. }
  1331. EOF
  1332. { (eval echo configure:1333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1333. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1334.   ac_cv_c_bigendian=no
  1335. else
  1336.   ac_cv_c_bigendian=yes
  1337. fi
  1338. fi
  1339. rm -fr conftest*
  1340. fi
  1341. fi
  1342.  
  1343. echo "$ac_t""$ac_cv_c_bigendian" 1>&6
  1344. if test $ac_cv_c_bigendian = yes; then
  1345.   cat >> confdefs.h <<\EOF
  1346. #define WORDS_BIGENDIAN 1
  1347. EOF
  1348.  
  1349. fi
  1350.  
  1351.  
  1352. echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
  1353. if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
  1354.   echo $ac_n "(cached) $ac_c" 1>&6
  1355. else
  1356.   cat > conftest.$ac_ext <<EOF
  1357. #line 1358 "configure"
  1358. #include "confdefs.h"
  1359. #include <sys/types.h>
  1360. #include <time.h>
  1361. int main() { return 0; }
  1362. int t() {
  1363. struct tm *tp; tp->tm_sec;
  1364. ; return 0; }
  1365. EOF
  1366. if { (eval echo configure:1367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1367.   rm -rf conftest*
  1368.   ac_cv_struct_tm=time.h
  1369. else
  1370.   rm -rf conftest*
  1371.   ac_cv_struct_tm=sys/time.h
  1372. fi
  1373. rm -f conftest*
  1374.  
  1375. fi
  1376.  
  1377. echo "$ac_t""$ac_cv_struct_tm" 1>&6
  1378. if test $ac_cv_struct_tm = sys/time.h; then
  1379.   cat >> confdefs.h <<\EOF
  1380. #define TM_IN_SYS_TIME 1
  1381. EOF
  1382.  
  1383. fi
  1384.  
  1385. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  1386. if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  1387.   echo $ac_n "(cached) $ac_c" 1>&6
  1388. else
  1389.   cat > conftest.$ac_ext <<EOF
  1390. #line 1391 "configure"
  1391. #include "confdefs.h"
  1392. #include <sys/types.h>
  1393. #include <sys/time.h>
  1394. #include <time.h>
  1395. int main() { return 0; }
  1396. int t() {
  1397. struct tm *tp;
  1398. ; return 0; }
  1399. EOF
  1400. if { (eval echo configure:1401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1401.   rm -rf conftest*
  1402.   ac_cv_header_time=yes
  1403. else
  1404.   rm -rf conftest*
  1405.   ac_cv_header_time=no
  1406. fi
  1407. rm -f conftest*
  1408.  
  1409. fi
  1410.  
  1411. echo "$ac_t""$ac_cv_header_time" 1>&6
  1412. if test $ac_cv_header_time = yes; then
  1413.   cat >> confdefs.h <<\EOF
  1414. #define TIME_WITH_SYS_TIME 1
  1415. EOF
  1416.  
  1417. fi
  1418.  
  1419. echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
  1420. if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
  1421.   echo $ac_n "(cached) $ac_c" 1>&6
  1422. else
  1423.   cat > conftest.$ac_ext <<EOF
  1424. #line 1425 "configure"
  1425. #include "confdefs.h"
  1426. #include <sys/types.h>
  1427. #include <$ac_cv_struct_tm>
  1428. int main() { return 0; }
  1429. int t() {
  1430. struct tm tm; tm.tm_zone;
  1431. ; return 0; }
  1432. EOF
  1433. if { (eval echo configure:1434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1434.   rm -rf conftest*
  1435.   ac_cv_struct_tm_zone=yes
  1436. else
  1437.   rm -rf conftest*
  1438.   ac_cv_struct_tm_zone=no
  1439. fi
  1440. rm -f conftest*
  1441.  
  1442. fi
  1443.  
  1444. echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
  1445. if test "$ac_cv_struct_tm_zone" = yes; then
  1446.   cat >> confdefs.h <<\EOF
  1447. #define HAVE_TM_ZONE 1
  1448. EOF
  1449.  
  1450. else
  1451.   echo $ac_n "checking for tzname""... $ac_c" 1>&6
  1452. if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
  1453.   echo $ac_n "(cached) $ac_c" 1>&6
  1454. else
  1455.   cat > conftest.$ac_ext <<EOF
  1456. #line 1457 "configure"
  1457. #include "confdefs.h"
  1458. #include <time.h>
  1459. #ifndef tzname /* For SGI.  */
  1460. extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
  1461. #endif
  1462. int main() { t(); return 0; }
  1463. int t() {
  1464. atoi(*tzname);
  1465. ; return 0; }
  1466. EOF
  1467. if { (eval echo configure:1468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1468.   rm -rf conftest*
  1469.   ac_cv_var_tzname=yes
  1470. else
  1471.   rm -rf conftest*
  1472.   ac_cv_var_tzname=no
  1473. fi
  1474. rm -f conftest*
  1475.  
  1476. fi
  1477.  
  1478. echo "$ac_t""$ac_cv_var_tzname" 1>&6
  1479.   if test $ac_cv_var_tzname = yes; then
  1480.     cat >> confdefs.h <<\EOF
  1481. #define HAVE_TZNAME 1
  1482. EOF
  1483.  
  1484.   fi
  1485. fi
  1486.  
  1487. echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
  1488. if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
  1489.   echo $ac_n "(cached) $ac_c" 1>&6
  1490. else
  1491.   cat > conftest.$ac_ext <<EOF
  1492. #line 1493 "configure"
  1493. #include "confdefs.h"
  1494. #include <sys/types.h>
  1495. #include <sys/stat.h>
  1496.  
  1497. #if defined(S_ISBLK) && defined(S_IFDIR)
  1498. # if S_ISBLK (S_IFDIR)
  1499. You lose.
  1500. # endif
  1501. #endif
  1502.  
  1503. #if defined(S_ISBLK) && defined(S_IFCHR)
  1504. # if S_ISBLK (S_IFCHR)
  1505. You lose.
  1506. # endif
  1507. #endif
  1508.  
  1509. #if defined(S_ISLNK) && defined(S_IFREG)
  1510. # if S_ISLNK (S_IFREG)
  1511. You lose.
  1512. # endif
  1513. #endif
  1514.  
  1515. #if defined(S_ISSOCK) && defined(S_IFREG)
  1516. # if S_ISSOCK (S_IFREG)
  1517. You lose.
  1518. # endif
  1519. #endif
  1520.  
  1521. EOF
  1522. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1523.   egrep "You lose" >/dev/null 2>&1; then
  1524.   rm -rf conftest*
  1525.   ac_cv_header_stat_broken=yes
  1526. else
  1527.   rm -rf conftest*
  1528.   ac_cv_header_stat_broken=no
  1529. fi
  1530. rm -f conftest*
  1531.  
  1532. fi
  1533.  
  1534. echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
  1535. if test $ac_cv_header_stat_broken = yes; then
  1536.   cat >> confdefs.h <<\EOF
  1537. #define STAT_MACROS_BROKEN 1
  1538. EOF
  1539.  
  1540. fi
  1541.  
  1542. echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
  1543. if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
  1544.   echo $ac_n "(cached) $ac_c" 1>&6
  1545. else
  1546.   cat > conftest.$ac_ext <<EOF
  1547. #line 1548 "configure"
  1548. #include "confdefs.h"
  1549. #include <sys/types.h>
  1550. EOF
  1551. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1552.   egrep "uid_t" >/dev/null 2>&1; then
  1553.   rm -rf conftest*
  1554.   ac_cv_type_uid_t=yes
  1555. else
  1556.   rm -rf conftest*
  1557.   ac_cv_type_uid_t=no
  1558. fi
  1559. rm -f conftest*
  1560.  
  1561. fi
  1562.  
  1563. echo "$ac_t""$ac_cv_type_uid_t" 1>&6
  1564. if test $ac_cv_type_uid_t = no; then
  1565.   cat >> confdefs.h <<\EOF
  1566. #define uid_t int
  1567. EOF
  1568.  
  1569.   cat >> confdefs.h <<\EOF
  1570. #define gid_t int
  1571. EOF
  1572.  
  1573. fi
  1574.  
  1575. echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
  1576. if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
  1577.   echo $ac_n "(cached) $ac_c" 1>&6
  1578. else
  1579.   if test "$cross_compiling" = yes; then
  1580.   ac_cv_type_getgroups=cross
  1581. else
  1582. cat > conftest.$ac_ext <<EOF
  1583. #line 1584 "configure"
  1584. #include "confdefs.h"
  1585.  
  1586. /* Thanks to Mike Rendell for this test.  */
  1587. #include <sys/types.h>
  1588. #define NGID 256
  1589. #undef MAX
  1590. #define MAX(x, y) ((x) > (y) ? (x) : (y))
  1591. main()
  1592. {
  1593.   gid_t gidset[NGID];
  1594.   int i, n;
  1595.   union { gid_t gval; long lval; }  val;
  1596.  
  1597.   val.lval = -1;
  1598.   for (i = 0; i < NGID; i++)
  1599.     gidset[i] = val.gval;
  1600.   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
  1601.                  gidset);
  1602.   /* Exit non-zero if getgroups seems to require an array of ints.  This
  1603.      happens when gid_t is short but getgroups modifies an array of ints.  */
  1604.   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
  1605. }
  1606.  
  1607. EOF
  1608. { (eval echo configure:1609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1609. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1610.     ac_cv_type_getgroups=gid_t
  1611. else
  1612.   ac_cv_type_getgroups=int
  1613. fi
  1614. fi
  1615. rm -fr conftest*
  1616. if test $ac_cv_type_getgroups = cross; then
  1617.         cat > conftest.$ac_ext <<EOF
  1618. #line 1619 "configure"
  1619. #include "confdefs.h"
  1620. #include <unistd.h>
  1621. EOF
  1622. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1623.   egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
  1624.   rm -rf conftest*
  1625.   ac_cv_type_getgroups=gid_t
  1626. else
  1627.   rm -rf conftest*
  1628.   ac_cv_type_getgroups=int
  1629. fi
  1630. rm -f conftest*
  1631.  
  1632. fi
  1633. fi
  1634.  
  1635. echo "$ac_t""$ac_cv_type_getgroups" 1>&6
  1636. cat >> confdefs.h <<EOF
  1637. #define GETGROUPS_T $ac_cv_type_getgroups
  1638. EOF
  1639.  
  1640.  
  1641. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  1642. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  1643.   echo $ac_n "(cached) $ac_c" 1>&6
  1644. else
  1645.   cat > conftest.$ac_ext <<EOF
  1646. #line 1647 "configure"
  1647. #include "confdefs.h"
  1648. #include <sys/types.h>
  1649. #if STDC_HEADERS
  1650. #include <stdlib.h>
  1651. #endif
  1652. EOF
  1653. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1654.   egrep "size_t" >/dev/null 2>&1; then
  1655.   rm -rf conftest*
  1656.   ac_cv_type_size_t=yes
  1657. else
  1658.   rm -rf conftest*
  1659.   ac_cv_type_size_t=no
  1660. fi
  1661. rm -f conftest*
  1662.  
  1663. fi
  1664. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  1665. if test $ac_cv_type_size_t = no; then
  1666.   cat >> confdefs.h <<\EOF
  1667. #define size_t unsigned
  1668. EOF
  1669.  
  1670. fi
  1671.  
  1672.  
  1673. for ac_func in bcopy endgrent endpwent ftime getcwd getgroups gettimeofday \
  1674.            isascii memcpy sethostname strerror sysinfo
  1675. do
  1676. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1677. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1678.   echo $ac_n "(cached) $ac_c" 1>&6
  1679. else
  1680.   cat > conftest.$ac_ext <<EOF
  1681. #line 1682 "configure"
  1682. #include "confdefs.h"
  1683. /* System header to define __stub macros and hopefully few prototypes,
  1684.     which can conflict with char $ac_func(); below.  */
  1685. #include <assert.h>
  1686. /* Override any gcc2 internal prototype to avoid an error.  */
  1687. /* We use char because int might match the return type of a gcc2
  1688.     builtin and then its argument prototype would still apply.  */
  1689. char $ac_func();
  1690.  
  1691. int main() { t(); return 0; }
  1692. int t() {
  1693.  
  1694. /* The GNU C library defines this for functions which it implements
  1695.     to always fail with ENOSYS.  Some functions are actually named
  1696.     something starting with __ and the normal name is an alias.  */
  1697. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1698. choke me
  1699. #else
  1700. $ac_func();
  1701. #endif
  1702.  
  1703. ; return 0; }
  1704. EOF
  1705. if { (eval echo configure:1706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1706.   rm -rf conftest*
  1707.   eval "ac_cv_func_$ac_func=yes"
  1708. else
  1709.   rm -rf conftest*
  1710.   eval "ac_cv_func_$ac_func=no"
  1711. fi
  1712. rm -f conftest*
  1713.  
  1714. fi
  1715. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1716.   echo "$ac_t""yes" 1>&6
  1717.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1718.   cat >> confdefs.h <<EOF
  1719. #define $ac_tr_func 1
  1720. EOF
  1721.  
  1722. else
  1723.   echo "$ac_t""no" 1>&6
  1724. fi
  1725. done
  1726.  
  1727.  
  1728. # SCO-ODT-3.0 is reported to need -los to link programs using initgroups
  1729. for ac_func in initgroups
  1730. do
  1731. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1732. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1733.   echo $ac_n "(cached) $ac_c" 1>&6
  1734. else
  1735.   cat > conftest.$ac_ext <<EOF
  1736. #line 1737 "configure"
  1737. #include "confdefs.h"
  1738. /* System header to define __stub macros and hopefully few prototypes,
  1739.     which can conflict with char $ac_func(); below.  */
  1740. #include <assert.h>
  1741. /* Override any gcc2 internal prototype to avoid an error.  */
  1742. /* We use char because int might match the return type of a gcc2
  1743.     builtin and then its argument prototype would still apply.  */
  1744. char $ac_func();
  1745.  
  1746. int main() { t(); return 0; }
  1747. int t() {
  1748.  
  1749. /* The GNU C library defines this for functions which it implements
  1750.     to always fail with ENOSYS.  Some functions are actually named
  1751.     something starting with __ and the normal name is an alias.  */
  1752. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1753. choke me
  1754. #else
  1755. $ac_func();
  1756. #endif
  1757.  
  1758. ; return 0; }
  1759. EOF
  1760. if { (eval echo configure:1761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1761.   rm -rf conftest*
  1762.   eval "ac_cv_func_$ac_func=yes"
  1763. else
  1764.   rm -rf conftest*
  1765.   eval "ac_cv_func_$ac_func=no"
  1766. fi
  1767. rm -f conftest*
  1768.  
  1769. fi
  1770. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1771.   echo "$ac_t""yes" 1>&6
  1772.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1773.   cat >> confdefs.h <<EOF
  1774. #define $ac_tr_func 1
  1775. EOF
  1776.  
  1777. else
  1778.   echo "$ac_t""no" 1>&6
  1779. fi
  1780. done
  1781.  
  1782. if test $ac_cv_func_initgroups = no; then
  1783.   echo $ac_n "checking for -los""... $ac_c" 1>&6
  1784. ac_lib_var=`echo os'_'initgroups | tr './+\055' '__p_'`
  1785. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1786.   echo $ac_n "(cached) $ac_c" 1>&6
  1787. else
  1788.   ac_save_LIBS="$LIBS"
  1789. LIBS="-los  $LIBS"
  1790. cat > conftest.$ac_ext <<EOF
  1791. #line 1792 "configure"
  1792. #include "confdefs.h"
  1793. /* Override any gcc2 internal prototype to avoid an error.  */
  1794. /* We use char because int might match the return type of a gcc2
  1795.     builtin and then its argument prototype would still apply.  */
  1796. char initgroups();
  1797.  
  1798. int main() { t(); return 0; }
  1799. int t() {
  1800. initgroups()
  1801. ; return 0; }
  1802. EOF
  1803. if { (eval echo configure:1804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1804.   rm -rf conftest*
  1805.   eval "ac_cv_lib_$ac_lib_var=yes"
  1806. else
  1807.   rm -rf conftest*
  1808.   eval "ac_cv_lib_$ac_lib_var=no"
  1809. fi
  1810. rm -f conftest*
  1811. LIBS="$ac_save_LIBS"
  1812.  
  1813. fi
  1814. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1815.   echo "$ac_t""yes" 1>&6
  1816.     ac_tr_lib=HAVE_LIB`echo os | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  1817.   cat >> confdefs.h <<EOF
  1818. #define $ac_tr_lib 1
  1819. EOF
  1820.  
  1821.   LIBS="-los $LIBS"
  1822.  
  1823. else
  1824.   echo "$ac_t""no" 1>&6
  1825. fi
  1826.  
  1827. fi
  1828.  
  1829. for ac_func in syslog
  1830. do
  1831. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1832. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1833.   echo $ac_n "(cached) $ac_c" 1>&6
  1834. else
  1835.   cat > conftest.$ac_ext <<EOF
  1836. #line 1837 "configure"
  1837. #include "confdefs.h"
  1838. /* System header to define __stub macros and hopefully few prototypes,
  1839.     which can conflict with char $ac_func(); below.  */
  1840. #include <assert.h>
  1841. /* Override any gcc2 internal prototype to avoid an error.  */
  1842. /* We use char because int might match the return type of a gcc2
  1843.     builtin and then its argument prototype would still apply.  */
  1844. char $ac_func();
  1845.  
  1846. int main() { t(); return 0; }
  1847. int t() {
  1848.  
  1849. /* The GNU C library defines this for functions which it implements
  1850.     to always fail with ENOSYS.  Some functions are actually named
  1851.     something starting with __ and the normal name is an alias.  */
  1852. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1853. choke me
  1854. #else
  1855. $ac_func();
  1856. #endif
  1857.  
  1858. ; return 0; }
  1859. EOF
  1860. if { (eval echo configure:1861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1861.   rm -rf conftest*
  1862.   eval "ac_cv_func_$ac_func=yes"
  1863. else
  1864.   rm -rf conftest*
  1865.   eval "ac_cv_func_$ac_func=no"
  1866. fi
  1867. rm -f conftest*
  1868.  
  1869. fi
  1870. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1871.   echo "$ac_t""yes" 1>&6
  1872.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1873.   cat >> confdefs.h <<EOF
  1874. #define $ac_tr_func 1
  1875. EOF
  1876.  
  1877. else
  1878.   echo "$ac_t""no" 1>&6
  1879. fi
  1880. done
  1881.  
  1882. if test $ac_cv_func_syslog = no; then
  1883.   # syslog is not in the default libraries.  See if it's in some other.
  1884.   for lib in bsd socket inet; do
  1885.     echo $ac_n "checking for -l$lib""... $ac_c" 1>&6
  1886. ac_lib_var=`echo $lib'_'syslog | tr './+\055' '__p_'`
  1887. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1888.   echo $ac_n "(cached) $ac_c" 1>&6
  1889. else
  1890.   ac_save_LIBS="$LIBS"
  1891. LIBS="-l$lib  $LIBS"
  1892. cat > conftest.$ac_ext <<EOF
  1893. #line 1894 "configure"
  1894. #include "confdefs.h"
  1895. /* Override any gcc2 internal prototype to avoid an error.  */
  1896. /* We use char because int might match the return type of a gcc2
  1897.     builtin and then its argument prototype would still apply.  */
  1898. char syslog();
  1899.  
  1900. int main() { t(); return 0; }
  1901. int t() {
  1902. syslog()
  1903. ; return 0; }
  1904. EOF
  1905. if { (eval echo configure:1906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1906.   rm -rf conftest*
  1907.   eval "ac_cv_lib_$ac_lib_var=yes"
  1908. else
  1909.   rm -rf conftest*
  1910.   eval "ac_cv_lib_$ac_lib_var=no"
  1911. fi
  1912. rm -f conftest*
  1913. LIBS="$ac_save_LIBS"
  1914.  
  1915. fi
  1916. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1917.   echo "$ac_t""yes" 1>&6
  1918.   cat >> confdefs.h <<\EOF
  1919. #define HAVE_SYSLOG 1
  1920. EOF
  1921.  
  1922.       LIBS="$LIBS -l$lib"; break
  1923. else
  1924.   echo "$ac_t""no" 1>&6
  1925. fi
  1926.  
  1927.   done
  1928. fi
  1929.  
  1930. for ac_hdr in string.h fcntl.h limits.h syslog.h sys/time.h unistd.h \
  1931.          sys/timeb.h float.h sys/systeminfo.h sys/param.h
  1932. do
  1933. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1934. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1935. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1936.   echo $ac_n "(cached) $ac_c" 1>&6
  1937. else
  1938.   cat > conftest.$ac_ext <<EOF
  1939. #line 1940 "configure"
  1940. #include "confdefs.h"
  1941. #include <$ac_hdr>
  1942. EOF
  1943. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1944. { (eval echo configure:1945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1945. ac_err=`grep -v '^ *+' conftest.out`
  1946. if test -z "$ac_err"; then
  1947.   rm -rf conftest*
  1948.   eval "ac_cv_header_$ac_safe=yes"
  1949. else
  1950.   echo "$ac_err" >&5
  1951.   rm -rf conftest*
  1952.   eval "ac_cv_header_$ac_safe=no"
  1953. fi
  1954. rm -f conftest*
  1955. fi
  1956. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1957.   echo "$ac_t""yes" 1>&6
  1958.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1959.   cat >> confdefs.h <<EOF
  1960. #define $ac_tr_hdr 1
  1961. EOF
  1962.  
  1963. else
  1964.   echo "$ac_t""no" 1>&6
  1965. fi
  1966. done
  1967.  
  1968.  
  1969. for ac_func in gethostname getusershell mktime stime \
  1970.          strcspn strstr strtol strtoul strtod
  1971. do
  1972. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1973. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1974.   echo $ac_n "(cached) $ac_c" 1>&6
  1975. else
  1976.   cat > conftest.$ac_ext <<EOF
  1977. #line 1978 "configure"
  1978. #include "confdefs.h"
  1979. /* System header to define __stub macros and hopefully few prototypes,
  1980.     which can conflict with char $ac_func(); below.  */
  1981. #include <assert.h>
  1982. /* Override any gcc2 internal prototype to avoid an error.  */
  1983. /* We use char because int might match the return type of a gcc2
  1984.     builtin and then its argument prototype would still apply.  */
  1985. char $ac_func();
  1986.  
  1987. int main() { t(); return 0; }
  1988. int t() {
  1989.  
  1990. /* The GNU C library defines this for functions which it implements
  1991.     to always fail with ENOSYS.  Some functions are actually named
  1992.     something starting with __ and the normal name is an alias.  */
  1993. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1994. choke me
  1995. #else
  1996. $ac_func();
  1997. #endif
  1998.  
  1999. ; return 0; }
  2000. EOF
  2001. if { (eval echo configure:2002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2002.   rm -rf conftest*
  2003.   eval "ac_cv_func_$ac_func=yes"
  2004. else
  2005.   rm -rf conftest*
  2006.   eval "ac_cv_func_$ac_func=no"
  2007. fi
  2008. rm -f conftest*
  2009.  
  2010. fi
  2011. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2012.   echo "$ac_t""yes" 1>&6
  2013.   :
  2014. else
  2015.   echo "$ac_t""no" 1>&6
  2016. LIBOBJS="$LIBOBJS ${ac_func}.o"
  2017. fi
  2018.  
  2019. done
  2020.  
  2021. echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
  2022. if eval "test \"`echo '$''{'ac_cv_func_memcmp'+set}'`\" = set"; then
  2023.   echo $ac_n "(cached) $ac_c" 1>&6
  2024. else
  2025.   if test "$cross_compiling" = yes; then
  2026.   ac_cv_func_memcmp=no
  2027. else
  2028. cat > conftest.$ac_ext <<EOF
  2029. #line 2030 "configure"
  2030. #include "confdefs.h"
  2031.  
  2032. main()
  2033. {
  2034.   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  2035.   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
  2036. }
  2037.  
  2038. EOF
  2039. { (eval echo configure:2040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2040. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2041.   ac_cv_func_memcmp=yes
  2042. else
  2043.   ac_cv_func_memcmp=no
  2044. fi
  2045. fi
  2046. rm -fr conftest*
  2047. fi
  2048.  
  2049. echo "$ac_t""$ac_cv_func_memcmp" 1>&6
  2050. test $ac_cv_func_memcmp = no && LIBOBJS="$LIBOBJS memcmp.o"
  2051.  
  2052. echo $ac_n "checking for vprintf""... $ac_c" 1>&6
  2053. if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
  2054.   echo $ac_n "(cached) $ac_c" 1>&6
  2055. else
  2056.   cat > conftest.$ac_ext <<EOF
  2057. #line 2058 "configure"
  2058. #include "confdefs.h"
  2059. /* System header to define __stub macros and hopefully few prototypes,
  2060.     which can conflict with char vprintf(); below.  */
  2061. #include <assert.h>
  2062. /* Override any gcc2 internal prototype to avoid an error.  */
  2063. /* We use char because int might match the return type of a gcc2
  2064.     builtin and then its argument prototype would still apply.  */
  2065. char vprintf();
  2066.  
  2067. int main() { t(); return 0; }
  2068. int t() {
  2069.  
  2070. /* The GNU C library defines this for functions which it implements
  2071.     to always fail with ENOSYS.  Some functions are actually named
  2072.     something starting with __ and the normal name is an alias.  */
  2073. #if defined (__stub_vprintf) || defined (__stub___vprintf)
  2074. choke me
  2075. #else
  2076. vprintf();
  2077. #endif
  2078.  
  2079. ; return 0; }
  2080. EOF
  2081. if { (eval echo configure:2082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2082.   rm -rf conftest*
  2083.   eval "ac_cv_func_vprintf=yes"
  2084. else
  2085.   rm -rf conftest*
  2086.   eval "ac_cv_func_vprintf=no"
  2087. fi
  2088. rm -f conftest*
  2089.  
  2090. fi
  2091. if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
  2092.   echo "$ac_t""yes" 1>&6
  2093.   cat >> confdefs.h <<\EOF
  2094. #define HAVE_VPRINTF 1
  2095. EOF
  2096.  
  2097. else
  2098.   echo "$ac_t""no" 1>&6
  2099. fi
  2100.  
  2101. if test "$ac_cv_func_vprintf" != yes; then
  2102. echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
  2103. if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
  2104.   echo $ac_n "(cached) $ac_c" 1>&6
  2105. else
  2106.   cat > conftest.$ac_ext <<EOF
  2107. #line 2108 "configure"
  2108. #include "confdefs.h"
  2109. /* System header to define __stub macros and hopefully few prototypes,
  2110.     which can conflict with char _doprnt(); below.  */
  2111. #include <assert.h>
  2112. /* Override any gcc2 internal prototype to avoid an error.  */
  2113. /* We use char because int might match the return type of a gcc2
  2114.     builtin and then its argument prototype would still apply.  */
  2115. char _doprnt();
  2116.  
  2117. int main() { t(); return 0; }
  2118. int t() {
  2119.  
  2120. /* The GNU C library defines this for functions which it implements
  2121.     to always fail with ENOSYS.  Some functions are actually named
  2122.     something starting with __ and the normal name is an alias.  */
  2123. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  2124. choke me
  2125. #else
  2126. _doprnt();
  2127. #endif
  2128.  
  2129. ; return 0; }
  2130. EOF
  2131. if { (eval echo configure:2132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2132.   rm -rf conftest*
  2133.   eval "ac_cv_func__doprnt=yes"
  2134. else
  2135.   rm -rf conftest*
  2136.   eval "ac_cv_func__doprnt=no"
  2137. fi
  2138. rm -f conftest*
  2139.  
  2140. fi
  2141. if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
  2142.   echo "$ac_t""yes" 1>&6
  2143.   cat >> confdefs.h <<\EOF
  2144. #define HAVE_DOPRNT 1
  2145. EOF
  2146.  
  2147. else
  2148.   echo "$ac_t""no" 1>&6
  2149. fi
  2150.  
  2151. fi
  2152.  
  2153. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  2154. # for constant arguments.  Useless!
  2155. echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
  2156. if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
  2157.   echo $ac_n "(cached) $ac_c" 1>&6
  2158. else
  2159.   cat > conftest.$ac_ext <<EOF
  2160. #line 2161 "configure"
  2161. #include "confdefs.h"
  2162. #include <alloca.h>
  2163. int main() { t(); return 0; }
  2164. int t() {
  2165. char *p = alloca(2 * sizeof(int));
  2166. ; return 0; }
  2167. EOF
  2168. if { (eval echo configure:2169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2169.   rm -rf conftest*
  2170.   ac_cv_header_alloca_h=yes
  2171. else
  2172.   rm -rf conftest*
  2173.   ac_cv_header_alloca_h=no
  2174. fi
  2175. rm -f conftest*
  2176.  
  2177. fi
  2178.  
  2179. echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
  2180. if test $ac_cv_header_alloca_h = yes; then
  2181.   cat >> confdefs.h <<\EOF
  2182. #define HAVE_ALLOCA_H 1
  2183. EOF
  2184.  
  2185. fi
  2186.  
  2187. echo $ac_n "checking for alloca""... $ac_c" 1>&6
  2188. if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then
  2189.   echo $ac_n "(cached) $ac_c" 1>&6
  2190. else
  2191.   cat > conftest.$ac_ext <<EOF
  2192. #line 2193 "configure"
  2193. #include "confdefs.h"
  2194.  
  2195. #ifdef __GNUC__
  2196. # define alloca __builtin_alloca
  2197. #else
  2198. # if HAVE_ALLOCA_H
  2199. #  include <alloca.h>
  2200. # else
  2201. #  ifdef _AIX
  2202.  #pragma alloca
  2203. #  else
  2204. #   ifndef alloca /* predefined by HP cc +Olibcalls */
  2205. char *alloca ();
  2206. #   endif
  2207. #  endif
  2208. # endif
  2209. #endif
  2210.  
  2211. int main() { t(); return 0; }
  2212. int t() {
  2213. char *p = (char *) alloca(1);
  2214. ; return 0; }
  2215. EOF
  2216. if { (eval echo configure:2217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2217.   rm -rf conftest*
  2218.   ac_cv_func_alloca=yes
  2219. else
  2220.   rm -rf conftest*
  2221.   ac_cv_func_alloca=no
  2222. fi
  2223. rm -f conftest*
  2224.  
  2225. fi
  2226.  
  2227. echo "$ac_t""$ac_cv_func_alloca" 1>&6
  2228. if test $ac_cv_func_alloca = yes; then
  2229.   cat >> confdefs.h <<\EOF
  2230. #define HAVE_ALLOCA 1
  2231. EOF
  2232.  
  2233. fi
  2234.  
  2235. if test $ac_cv_func_alloca = no; then
  2236.   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  2237.   # that cause trouble.  Some versions do not even contain alloca or
  2238.   # contain a buggy version.  If you still want to use their alloca,
  2239.   # use ar to extract alloca.o from them instead of compiling alloca.c.
  2240.   ALLOCA=alloca.o
  2241.   cat >> confdefs.h <<\EOF
  2242. #define C_ALLOCA 1
  2243. EOF
  2244.  
  2245.  
  2246. echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
  2247. if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
  2248.   echo $ac_n "(cached) $ac_c" 1>&6
  2249. else
  2250.   cat > conftest.$ac_ext <<EOF
  2251. #line 2252 "configure"
  2252. #include "confdefs.h"
  2253. #if defined(CRAY) && ! defined(CRAY2)
  2254. webecray
  2255. #else
  2256. wenotbecray
  2257. #endif
  2258.  
  2259. EOF
  2260. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2261.   egrep "webecray" >/dev/null 2>&1; then
  2262.   rm -rf conftest*
  2263.   ac_cv_os_cray=yes
  2264. else
  2265.   rm -rf conftest*
  2266.   ac_cv_os_cray=no
  2267. fi
  2268. rm -f conftest*
  2269.  
  2270. fi
  2271.  
  2272. echo "$ac_t""$ac_cv_os_cray" 1>&6
  2273. if test $ac_cv_os_cray = yes; then
  2274. for ac_func in _getb67 GETB67 getb67; do
  2275.   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2276. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2277.   echo $ac_n "(cached) $ac_c" 1>&6
  2278. else
  2279.   cat > conftest.$ac_ext <<EOF
  2280. #line 2281 "configure"
  2281. #include "confdefs.h"
  2282. /* System header to define __stub macros and hopefully few prototypes,
  2283.     which can conflict with char $ac_func(); below.  */
  2284. #include <assert.h>
  2285. /* Override any gcc2 internal prototype to avoid an error.  */
  2286. /* We use char because int might match the return type of a gcc2
  2287.     builtin and then its argument prototype would still apply.  */
  2288. char $ac_func();
  2289.  
  2290. int main() { t(); return 0; }
  2291. int t() {
  2292.  
  2293. /* The GNU C library defines this for functions which it implements
  2294.     to always fail with ENOSYS.  Some functions are actually named
  2295.     something starting with __ and the normal name is an alias.  */
  2296. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2297. choke me
  2298. #else
  2299. $ac_func();
  2300. #endif
  2301.  
  2302. ; return 0; }
  2303. EOF
  2304. if { (eval echo configure:2305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2305.   rm -rf conftest*
  2306.   eval "ac_cv_func_$ac_func=yes"
  2307. else
  2308.   rm -rf conftest*
  2309.   eval "ac_cv_func_$ac_func=no"
  2310. fi
  2311. rm -f conftest*
  2312.  
  2313. fi
  2314. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2315.   echo "$ac_t""yes" 1>&6
  2316.   cat >> confdefs.h <<EOF
  2317. #define CRAY_STACKSEG_END $ac_func
  2318. EOF
  2319.  
  2320.   break
  2321. else
  2322.   echo "$ac_t""no" 1>&6
  2323. fi
  2324.  
  2325. done
  2326. fi
  2327.  
  2328. echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
  2329. if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
  2330.   echo $ac_n "(cached) $ac_c" 1>&6
  2331. else
  2332.   if test "$cross_compiling" = yes; then
  2333.   ac_cv_c_stack_direction=0
  2334. else
  2335. cat > conftest.$ac_ext <<EOF
  2336. #line 2337 "configure"
  2337. #include "confdefs.h"
  2338. find_stack_direction ()
  2339. {
  2340.   static char *addr = 0;
  2341.   auto char dummy;
  2342.   if (addr == 0)
  2343.     {
  2344.       addr = &dummy;
  2345.       return find_stack_direction ();
  2346.     }
  2347.   else
  2348.     return (&dummy > addr) ? 1 : -1;
  2349. }
  2350. main ()
  2351. {
  2352.   exit (find_stack_direction() < 0);
  2353. }
  2354. EOF
  2355. { (eval echo configure:2356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2356. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2357.   ac_cv_c_stack_direction=1
  2358. else
  2359.   ac_cv_c_stack_direction=-1
  2360. fi
  2361. fi
  2362. rm -fr conftest*
  2363. fi
  2364.  
  2365. echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
  2366. cat >> confdefs.h <<EOF
  2367. #define STACK_DIRECTION $ac_cv_c_stack_direction
  2368. EOF
  2369.  
  2370. fi
  2371.  
  2372.  
  2373. echo $ac_n "checking for 3-argument setpriority function""... $ac_c" 1>&6
  2374. if eval "test \"`echo '$''{'utils_cv_func_setpriority'+set}'`\" = set"; then
  2375.   echo $ac_n "(cached) $ac_c" 1>&6
  2376. else
  2377.   cat > conftest.$ac_ext <<EOF
  2378. #line 2379 "configure"
  2379. #include "confdefs.h"
  2380. #include <sys/time.h>
  2381. #include <sys/resource.h>
  2382. int main() { t(); return 0; }
  2383. int t() {
  2384. setpriority(0, 0, 0);
  2385. ; return 0; }
  2386. EOF
  2387. if { (eval echo configure:2388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2388.   rm -rf conftest*
  2389.   utils_cv_func_setpriority=yes
  2390. else
  2391.   rm -rf conftest*
  2392.   utils_cv_func_setpriority=no
  2393. fi
  2394. rm -f conftest*
  2395.  
  2396. fi
  2397.  
  2398. echo "$ac_t""$utils_cv_func_setpriority" 1>&6
  2399. if test $utils_cv_func_setpriority = yes; then
  2400.   PROGS="$PROGS nice nohup"
  2401.   MAN="$MAN nice.1 nohup.1"
  2402. else
  2403.   echo $ac_n "checking for nice function""... $ac_c" 1>&6
  2404.   if eval "test \"`echo '$''{'utils_cv_func_nice'+set}'`\" = set"; then
  2405.   echo $ac_n "(cached) $ac_c" 1>&6
  2406. else
  2407.   cat > conftest.$ac_ext <<EOF
  2408. #line 2409 "configure"
  2409. #include "confdefs.h"
  2410.  
  2411. int main() { t(); return 0; }
  2412. int t() {
  2413. nice();
  2414. ; return 0; }
  2415. EOF
  2416. if { (eval echo configure:2417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2417.   rm -rf conftest*
  2418.   utils_cv_func_nice=yes
  2419. else
  2420.   rm -rf conftest*
  2421.   utils_cv_func_nice=no
  2422. fi
  2423. rm -f conftest*
  2424.  
  2425. fi
  2426.  
  2427.   echo "$ac_t""$utils_cv_func_nice" 1>&6
  2428.   if test $utils_cv_func_nice = yes; then
  2429.     cat >> confdefs.h <<\EOF
  2430. #define NICE_PRIORITY 1
  2431. EOF
  2432.  
  2433.     PROGS="$PROGS nice nohup"
  2434.     MAN="$MAN nice.1 nohup.1"
  2435.   fi
  2436. fi
  2437.  
  2438. echo $ac_n "checking ut_host in struct utmp""... $ac_c" 1>&6
  2439. if eval "test \"`echo '$''{'su_cv_func_ut_host_in_utmp'+set}'`\" = set"; then
  2440.   echo $ac_n "(cached) $ac_c" 1>&6
  2441. else
  2442.   cat > conftest.$ac_ext <<EOF
  2443. #line 2444 "configure"
  2444. #include "confdefs.h"
  2445. #include <sys/types.h>
  2446. #include <utmp.h>
  2447. int main() { t(); return 0; }
  2448. int t() {
  2449. struct utmp ut; ut.ut_host;
  2450. ; return 0; }
  2451. EOF
  2452. if { (eval echo configure:2453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2453.   rm -rf conftest*
  2454.   su_cv_func_ut_host_in_utmp=yes
  2455. else
  2456.   rm -rf conftest*
  2457.   su_cv_func_ut_host_in_utmp=no
  2458. fi
  2459. rm -f conftest*
  2460.  
  2461. fi
  2462.  
  2463. echo "$ac_t""$su_cv_func_ut_host_in_utmp" 1>&6
  2464. if test $su_cv_func_ut_host_in_utmp = yes; then
  2465.   have_ut_host=1
  2466.   cat >> confdefs.h <<\EOF
  2467. #define HAVE_UT_HOST 1
  2468. EOF
  2469.  
  2470. fi
  2471.  
  2472. if test -z "$have_ut_host"; then
  2473.   echo $ac_n "checking ut_host in struct utmpx""... $ac_c" 1>&6
  2474.   if eval "test \"`echo '$''{'su_cv_func_ut_host_in_utmpx'+set}'`\" = set"; then
  2475.   echo $ac_n "(cached) $ac_c" 1>&6
  2476. else
  2477.   cat > conftest.$ac_ext <<EOF
  2478. #line 2479 "configure"
  2479. #include "confdefs.h"
  2480. #include <sys/types.h>
  2481. #include <utmpx.h>
  2482. int main() { t(); return 0; }
  2483. int t() {
  2484. struct utmpx ut; ut.ut_host;
  2485. ; return 0; }
  2486. EOF
  2487. if { (eval echo configure:2488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2488.   rm -rf conftest*
  2489.   su_cv_func_ut_host_in_utmpx=yes
  2490. else
  2491.   rm -rf conftest*
  2492.   su_cv_func_ut_host_in_utmpx=no
  2493. fi
  2494. rm -f conftest*
  2495.  
  2496. fi
  2497.  
  2498.   echo "$ac_t""$su_cv_func_ut_host_in_utmpx" 1>&6
  2499.   if test $su_cv_func_ut_host_in_utmpx = yes; then
  2500.     cat >> confdefs.h <<\EOF
  2501. #define HAVE_UTMPX_H 1
  2502. EOF
  2503.  
  2504.     cat >> confdefs.h <<\EOF
  2505. #define HAVE_UT_HOST 1
  2506. EOF
  2507.  
  2508.   fi
  2509. fi
  2510.  
  2511. echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
  2512. if eval "test \"`echo '$''{'su_cv_sys_posix_termios'+set}'`\" = set"; then
  2513.   echo $ac_n "(cached) $ac_c" 1>&6
  2514. else
  2515.   cat > conftest.$ac_ext <<EOF
  2516. #line 2517 "configure"
  2517. #include "confdefs.h"
  2518. #include <sys/types.h>
  2519. #include <unistd.h>
  2520. #include <termios.h>
  2521. int main() { t(); return 0; }
  2522. int t() {
  2523. /* SunOS 4.0.3 has termios.h but not the library calls.  */
  2524. tcgetattr(0, 0);
  2525. ; return 0; }
  2526. EOF
  2527. if { (eval echo configure:2528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2528.   rm -rf conftest*
  2529.   su_cv_sys_posix_termios=yes
  2530. else
  2531.   rm -rf conftest*
  2532.   su_cv_sys_posix_termios=no
  2533. fi
  2534. rm -f conftest*
  2535.  
  2536. fi
  2537.  
  2538. echo "$ac_t""$su_cv_sys_posix_termios" 1>&6
  2539.  
  2540. if test $su_cv_sys_posix_termios = yes; then
  2541.   PROGS="$PROGS stty" MAN="$MAN stty.1"
  2542.  
  2543.   echo $ac_n "checking c_line in struct termios""... $ac_c" 1>&6
  2544.   if eval "test \"`echo '$''{'su_cv_sys_c_line_in_termios'+set}'`\" = set"; then
  2545.   echo $ac_n "(cached) $ac_c" 1>&6
  2546. else
  2547.   cat > conftest.$ac_ext <<EOF
  2548. #line 2549 "configure"
  2549. #include "confdefs.h"
  2550. #include <sys/types.h>
  2551. #include <termios.h>
  2552. int main() { t(); return 0; }
  2553. int t() {
  2554. struct termios t; t.c_line;
  2555. ; return 0; }
  2556. EOF
  2557. if { (eval echo configure:2558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2558.   rm -rf conftest*
  2559.   su_cv_sys_c_line_in_termios=yes
  2560. else
  2561.   rm -rf conftest*
  2562.   su_cv_sys_c_line_in_termios=no
  2563. fi
  2564. rm -f conftest*
  2565.  
  2566. fi
  2567.  
  2568.   echo "$ac_t""$su_cv_sys_c_line_in_termios" 1>&6
  2569.   test $su_cv_sys_c_line_in_termios = yes && cat >> confdefs.h <<\EOF
  2570. #define HAVE_C_LINE 1
  2571. EOF
  2572.  
  2573.  
  2574.   echo $ac_n "checking TIOCGWINSZ in termios.h""... $ac_c" 1>&6
  2575.   if eval "test \"`echo '$''{'su_cv_sys_tiocgwinsz_in_termios_h'+set}'`\" = set"; then
  2576.   echo $ac_n "(cached) $ac_c" 1>&6
  2577. else
  2578.   cat > conftest.$ac_ext <<EOF
  2579. #line 2580 "configure"
  2580. #include "confdefs.h"
  2581. #include <sys/types.h>
  2582. #include <termios.h>
  2583. int main() { t(); return 0; }
  2584. int t() {
  2585. int x = TIOCGWINSZ;
  2586. ; return 0; }
  2587. EOF
  2588. if { (eval echo configure:2589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2589.   rm -rf conftest*
  2590.   su_cv_sys_tiocgwinsz_in_termios_h=yes
  2591. else
  2592.   rm -rf conftest*
  2593.   su_cv_sys_tiocgwinsz_in_termios_h=no
  2594. fi
  2595. rm -f conftest*
  2596.  
  2597. fi
  2598.  
  2599.   echo "$ac_t""$su_cv_sys_tiocgwinsz_in_termios_h" 1>&6
  2600. else
  2601.   su_cv_sys_tiocgwinsz_in_termios_h=no
  2602. fi
  2603.  
  2604. if test $su_cv_sys_tiocgwinsz_in_termios_h = no; then
  2605.   echo $ac_n "checking TIOCGWINSZ in sys/ioctl.h""... $ac_c" 1>&6
  2606.   if eval "test \"`echo '$''{'su_cv_sys_tiocgwinsz_in_sys_ioctl_h'+set}'`\" = set"; then
  2607.   echo $ac_n "(cached) $ac_c" 1>&6
  2608. else
  2609.   cat > conftest.$ac_ext <<EOF
  2610. #line 2611 "configure"
  2611. #include "confdefs.h"
  2612. #include <sys/types.h>
  2613. #include <sys/ioctl.h>
  2614. int main() { t(); return 0; }
  2615. int t() {
  2616. int x = TIOCGWINSZ;
  2617. ; return 0; }
  2618. EOF
  2619. if { (eval echo configure:2620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2620.   rm -rf conftest*
  2621.   su_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
  2622. else
  2623.   rm -rf conftest*
  2624.   su_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
  2625. fi
  2626. rm -f conftest*
  2627.  
  2628. fi
  2629.  
  2630.   echo "$ac_t""$su_cv_sys_tiocgwinsz_in_sys_ioctl_h" 1>&6
  2631.  
  2632.   test $su_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes \
  2633.       && cat >> confdefs.h <<\EOF
  2634. #define GWINSZ_IN_SYS_IOCTL 1
  2635. EOF
  2636.  
  2637. fi
  2638.  
  2639. ac_safe=`echo "sys/ptem.h" | tr './\055' '___'`
  2640. echo $ac_n "checking for sys/ptem.h""... $ac_c" 1>&6
  2641. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2642.   echo $ac_n "(cached) $ac_c" 1>&6
  2643. else
  2644.   cat > conftest.$ac_ext <<EOF
  2645. #line 2646 "configure"
  2646. #include "confdefs.h"
  2647. #include <sys/ptem.h>
  2648. EOF
  2649. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2650. { (eval echo configure:2651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2651. ac_err=`grep -v '^ *+' conftest.out`
  2652. if test -z "$ac_err"; then
  2653.   rm -rf conftest*
  2654.   eval "ac_cv_header_$ac_safe=yes"
  2655. else
  2656.   echo "$ac_err" >&5
  2657.   rm -rf conftest*
  2658.   eval "ac_cv_header_$ac_safe=no"
  2659. fi
  2660. rm -f conftest*
  2661. fi
  2662. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2663.   echo "$ac_t""yes" 1>&6
  2664.   cat >> confdefs.h <<\EOF
  2665. #define WINSIZE_IN_PTEM 1
  2666. EOF
  2667.  
  2668. else
  2669.   echo "$ac_t""no" 1>&6
  2670. fi
  2671.  
  2672.  
  2673. # The -lsun library is required for YP support on Irix-4.0.5 systems.
  2674. echo $ac_n "checking for -lsun""... $ac_c" 1>&6
  2675. ac_lib_var=`echo sun'_'yp_match | tr './+\055' '__p_'`
  2676. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2677.   echo $ac_n "(cached) $ac_c" 1>&6
  2678. else
  2679.   ac_save_LIBS="$LIBS"
  2680. LIBS="-lsun  $LIBS"
  2681. cat > conftest.$ac_ext <<EOF
  2682. #line 2683 "configure"
  2683. #include "confdefs.h"
  2684. /* Override any gcc2 internal prototype to avoid an error.  */
  2685. /* We use char because int might match the return type of a gcc2
  2686.     builtin and then its argument prototype would still apply.  */
  2687. char yp_match();
  2688.  
  2689. int main() { t(); return 0; }
  2690. int t() {
  2691. yp_match()
  2692. ; return 0; }
  2693. EOF
  2694. if { (eval echo configure:2695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2695.   rm -rf conftest*
  2696.   eval "ac_cv_lib_$ac_lib_var=yes"
  2697. else
  2698.   rm -rf conftest*
  2699.   eval "ac_cv_lib_$ac_lib_var=no"
  2700. fi
  2701. rm -f conftest*
  2702. LIBS="$ac_save_LIBS"
  2703.  
  2704. fi
  2705. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2706.   echo "$ac_t""yes" 1>&6
  2707.     ac_tr_lib=HAVE_LIB`echo sun | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  2708.   cat >> confdefs.h <<EOF
  2709. #define $ac_tr_lib 1
  2710. EOF
  2711.  
  2712.   LIBS="-lsun $LIBS"
  2713.  
  2714. else
  2715.   echo "$ac_t""no" 1>&6
  2716. fi
  2717.  
  2718.  
  2719. echo "checking for shadow password routines" 1>&6
  2720. # Needed on SysV for shadow passwords.
  2721. echo $ac_n "checking for -lsec""... $ac_c" 1>&6
  2722. ac_lib_var=`echo sec'_'main | tr './+\055' '__p_'`
  2723. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2724.   echo $ac_n "(cached) $ac_c" 1>&6
  2725. else
  2726.   ac_save_LIBS="$LIBS"
  2727. LIBS="-lsec  $LIBS"
  2728. cat > conftest.$ac_ext <<EOF
  2729. #line 2730 "configure"
  2730. #include "confdefs.h"
  2731.  
  2732. int main() { t(); return 0; }
  2733. int t() {
  2734. main()
  2735. ; return 0; }
  2736. EOF
  2737. if { (eval echo configure:2738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2738.   rm -rf conftest*
  2739.   eval "ac_cv_lib_$ac_lib_var=yes"
  2740. else
  2741.   rm -rf conftest*
  2742.   eval "ac_cv_lib_$ac_lib_var=no"
  2743. fi
  2744. rm -f conftest*
  2745. LIBS="$ac_save_LIBS"
  2746.  
  2747. fi
  2748. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2749.   echo "$ac_t""yes" 1>&6
  2750.     ac_tr_lib=HAVE_LIB`echo sec | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  2751.   cat >> confdefs.h <<EOF
  2752. #define $ac_tr_lib 1
  2753. EOF
  2754.  
  2755.   LIBS="-lsec $LIBS"
  2756.  
  2757. else
  2758.   echo "$ac_t""no" 1>&6
  2759. fi
  2760.  
  2761.  
  2762. # Needed on Linux for shadow passwords.
  2763. echo $ac_n "checking for -lshadow""... $ac_c" 1>&6
  2764. ac_lib_var=`echo shadow'_'main | tr './+\055' '__p_'`
  2765. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2766.   echo $ac_n "(cached) $ac_c" 1>&6
  2767. else
  2768.   ac_save_LIBS="$LIBS"
  2769. LIBS="-lshadow  $LIBS"
  2770. cat > conftest.$ac_ext <<EOF
  2771. #line 2772 "configure"
  2772. #include "confdefs.h"
  2773.  
  2774. int main() { t(); return 0; }
  2775. int t() {
  2776. main()
  2777. ; return 0; }
  2778. EOF
  2779. if { (eval echo configure:2780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2780.   rm -rf conftest*
  2781.   eval "ac_cv_lib_$ac_lib_var=yes"
  2782. else
  2783.   rm -rf conftest*
  2784.   eval "ac_cv_lib_$ac_lib_var=no"
  2785. fi
  2786. rm -f conftest*
  2787. LIBS="$ac_save_LIBS"
  2788.  
  2789. fi
  2790. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2791.   echo "$ac_t""yes" 1>&6
  2792.     ac_tr_lib=HAVE_LIB`echo shadow | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  2793.   cat >> confdefs.h <<EOF
  2794. #define $ac_tr_lib 1
  2795. EOF
  2796.  
  2797.   LIBS="-lshadow $LIBS"
  2798.  
  2799. else
  2800.   echo "$ac_t""no" 1>&6
  2801. fi
  2802.  
  2803.  
  2804. cat > conftest.$ac_ext <<EOF
  2805. #line 2806 "configure"
  2806. #include "confdefs.h"
  2807. #include <shadow.h>
  2808. EOF
  2809. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2810.   egrep "sp_pwdp" >/dev/null 2>&1; then
  2811.   rm -rf conftest*
  2812.   echo $ac_n "checking for getspnam""... $ac_c" 1>&6
  2813. if eval "test \"`echo '$''{'ac_cv_func_getspnam'+set}'`\" = set"; then
  2814.   echo $ac_n "(cached) $ac_c" 1>&6
  2815. else
  2816.   cat > conftest.$ac_ext <<EOF
  2817. #line 2818 "configure"
  2818. #include "confdefs.h"
  2819. /* System header to define __stub macros and hopefully few prototypes,
  2820.     which can conflict with char getspnam(); below.  */
  2821. #include <assert.h>
  2822. /* Override any gcc2 internal prototype to avoid an error.  */
  2823. /* We use char because int might match the return type of a gcc2
  2824.     builtin and then its argument prototype would still apply.  */
  2825. char getspnam();
  2826.  
  2827. int main() { t(); return 0; }
  2828. int t() {
  2829.  
  2830. /* The GNU C library defines this for functions which it implements
  2831.     to always fail with ENOSYS.  Some functions are actually named
  2832.     something starting with __ and the normal name is an alias.  */
  2833. #if defined (__stub_getspnam) || defined (__stub___getspnam)
  2834. choke me
  2835. #else
  2836. getspnam();
  2837. #endif
  2838.  
  2839. ; return 0; }
  2840. EOF
  2841. if { (eval echo configure:2842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2842.   rm -rf conftest*
  2843.   eval "ac_cv_func_getspnam=yes"
  2844. else
  2845.   rm -rf conftest*
  2846.   eval "ac_cv_func_getspnam=no"
  2847. fi
  2848. rm -f conftest*
  2849.  
  2850. fi
  2851. if eval "test \"`echo '$ac_cv_func_'getspnam`\" = yes"; then
  2852.   echo "$ac_t""yes" 1>&6
  2853.   cat >> confdefs.h <<\EOF
  2854. #define HAVE_SHADOW_H 1
  2855. EOF
  2856.  
  2857. else
  2858.   echo "$ac_t""no" 1>&6
  2859. fi
  2860.  
  2861. fi
  2862. rm -f conftest*
  2863.  
  2864.  
  2865. for ac_func in crypt
  2866. do
  2867. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2868. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2869.   echo $ac_n "(cached) $ac_c" 1>&6
  2870. else
  2871.   cat > conftest.$ac_ext <<EOF
  2872. #line 2873 "configure"
  2873. #include "confdefs.h"
  2874. /* System header to define __stub macros and hopefully few prototypes,
  2875.     which can conflict with char $ac_func(); below.  */
  2876. #include <assert.h>
  2877. /* Override any gcc2 internal prototype to avoid an error.  */
  2878. /* We use char because int might match the return type of a gcc2
  2879.     builtin and then its argument prototype would still apply.  */
  2880. char $ac_func();
  2881.  
  2882. int main() { t(); return 0; }
  2883. int t() {
  2884.  
  2885. /* The GNU C library defines this for functions which it implements
  2886.     to always fail with ENOSYS.  Some functions are actually named
  2887.     something starting with __ and the normal name is an alias.  */
  2888. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2889. choke me
  2890. #else
  2891. $ac_func();
  2892. #endif
  2893.  
  2894. ; return 0; }
  2895. EOF
  2896. if { (eval echo configure:2897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2897.   rm -rf conftest*
  2898.   eval "ac_cv_func_$ac_func=yes"
  2899. else
  2900.   rm -rf conftest*
  2901.   eval "ac_cv_func_$ac_func=no"
  2902. fi
  2903. rm -f conftest*
  2904.  
  2905. fi
  2906. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2907.   echo "$ac_t""yes" 1>&6
  2908.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2909.   cat >> confdefs.h <<EOF
  2910. #define $ac_tr_func 1
  2911. EOF
  2912.  
  2913. else
  2914.   echo "$ac_t""no" 1>&6
  2915. fi
  2916. done
  2917.  
  2918. if test $ac_cv_func_crypt = no; then
  2919.   # SCO-ODT-3.0 is reported to need this library for crypt.  
  2920.   echo $ac_n "checking for -lufc""... $ac_c" 1>&6
  2921. ac_lib_var=`echo ufc'_'crypt | tr './+\055' '__p_'`
  2922. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2923.   echo $ac_n "(cached) $ac_c" 1>&6
  2924. else
  2925.   ac_save_LIBS="$LIBS"
  2926. LIBS="-lufc  $LIBS"
  2927. cat > conftest.$ac_ext <<EOF
  2928. #line 2929 "configure"
  2929. #include "confdefs.h"
  2930. /* Override any gcc2 internal prototype to avoid an error.  */
  2931. /* We use char because int might match the return type of a gcc2
  2932.     builtin and then its argument prototype would still apply.  */
  2933. char crypt();
  2934.  
  2935. int main() { t(); return 0; }
  2936. int t() {
  2937. crypt()
  2938. ; return 0; }
  2939. EOF
  2940. if { (eval echo configure:2941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2941.   rm -rf conftest*
  2942.   eval "ac_cv_lib_$ac_lib_var=yes"
  2943. else
  2944.   rm -rf conftest*
  2945.   eval "ac_cv_lib_$ac_lib_var=no"
  2946. fi
  2947. rm -f conftest*
  2948. LIBS="$ac_save_LIBS"
  2949.  
  2950. fi
  2951. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2952.   echo "$ac_t""yes" 1>&6
  2953.   LIBS="$LIBS -lufc"
  2954. else
  2955.   echo "$ac_t""no" 1>&6
  2956. # NetBSD needs this library for crypt.  
  2957.     echo $ac_n "checking for -lcrypt""... $ac_c" 1>&6
  2958. ac_lib_var=`echo crypt'_'crypt | tr './+\055' '__p_'`
  2959. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2960.   echo $ac_n "(cached) $ac_c" 1>&6
  2961. else
  2962.   ac_save_LIBS="$LIBS"
  2963. LIBS="-lcrypt  $LIBS"
  2964. cat > conftest.$ac_ext <<EOF
  2965. #line 2966 "configure"
  2966. #include "confdefs.h"
  2967. /* Override any gcc2 internal prototype to avoid an error.  */
  2968. /* We use char because int might match the return type of a gcc2
  2969.     builtin and then its argument prototype would still apply.  */
  2970. char crypt();
  2971.  
  2972. int main() { t(); return 0; }
  2973. int t() {
  2974. crypt()
  2975. ; return 0; }
  2976. EOF
  2977. if { (eval echo configure:2978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2978.   rm -rf conftest*
  2979.   eval "ac_cv_lib_$ac_lib_var=yes"
  2980. else
  2981.   rm -rf conftest*
  2982.   eval "ac_cv_lib_$ac_lib_var=no"
  2983. fi
  2984. rm -f conftest*
  2985. LIBS="$ac_save_LIBS"
  2986.  
  2987. fi
  2988. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2989.   echo "$ac_t""yes" 1>&6
  2990.     ac_tr_lib=HAVE_LIB`echo crypt | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  2991.   cat >> confdefs.h <<EOF
  2992. #define $ac_tr_lib 1
  2993. EOF
  2994.  
  2995.   LIBS="-lcrypt $LIBS"
  2996.  
  2997. else
  2998.   echo "$ac_t""no" 1>&6
  2999. fi
  3000.  
  3001. fi
  3002.  
  3003. fi
  3004.  
  3005. trap '' 1 2 15
  3006. cat > confcache <<\EOF
  3007. # This file is a shell script that caches the results of configure
  3008. # tests run on this system so they can be shared between configure
  3009. # scripts and configure runs.  It is not useful on other systems.
  3010. # If it contains results you don't want to keep, you may remove or edit it.
  3011. #
  3012. # By default, configure uses ./config.cache as the cache file,
  3013. # creating it if it does not exist already.  You can give configure
  3014. # the --cache-file=FILE option to use a different cache file; that is
  3015. # what configure does when it calls configure scripts in
  3016. # subdirectories, so they share the cache.
  3017. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  3018. # config.status only pays attention to the cache file if you give it the
  3019. # --recheck option to rerun configure.
  3020. #
  3021. EOF
  3022. # Ultrix sh set writes to stderr and can't be redirected directly,
  3023. # and sets the high bit in the cache file unless we assign to the vars.
  3024. (set) 2>&1 |
  3025.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  3026.   >> confcache
  3027. if cmp -s $cache_file confcache; then
  3028.   :
  3029. else
  3030.   if test -w $cache_file; then
  3031.     echo "updating cache $cache_file"
  3032.     cat confcache > $cache_file
  3033.   else
  3034.     echo "not updating unwritable cache $cache_file"
  3035.   fi
  3036. fi
  3037. rm -f confcache
  3038.  
  3039. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  3040.  
  3041. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  3042. # Let make expand exec_prefix.
  3043. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  3044.  
  3045. # Any assignment to VPATH causes Sun make to only execute
  3046. # the first set of double-colon rules, so remove it if not needed.
  3047. # If there is a colon in the path, we need to keep it.
  3048. if test "x$srcdir" = x.; then
  3049.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  3050. fi
  3051.  
  3052. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  3053.  
  3054. DEFS=-DHAVE_CONFIG_H
  3055.  
  3056. # Without the "./", some shells look in PATH for config.status.
  3057. : ${CONFIG_STATUS=./config.status}
  3058.  
  3059. echo creating $CONFIG_STATUS
  3060. # Some systems, like AmigaOS, won't allow you to remove a script that is
  3061. # being executed, so just move it out of the way instead.
  3062. if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  3063. cat > $CONFIG_STATUS <<EOF
  3064. #! /bin/sh
  3065. # Generated automatically by configure.
  3066. # Run this file to recreate the current configuration.
  3067. # This directory was configured as follows,
  3068. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  3069. #
  3070. # $0 $ac_configure_args
  3071. #
  3072. # Compiler output produced by configure, useful for debugging
  3073. # configure, is in ./config.log if it exists.
  3074.  
  3075. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  3076. for ac_option
  3077. do
  3078.   case "\$ac_option" in
  3079.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  3080.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  3081.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  3082.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  3083.     echo "$CONFIG_STATUS generated by autoconf version 2.10"
  3084.     exit 0 ;;
  3085.   -help | --help | --hel | --he | --h)
  3086.     echo "\$ac_cs_usage"; exit 0 ;;
  3087.   *) echo "\$ac_cs_usage"; exit 1 ;;
  3088.   esac
  3089. done
  3090.  
  3091. ac_given_srcdir=$srcdir
  3092. ac_given_INSTALL="$INSTALL"
  3093.  
  3094. trap 'rm -fr `echo "Makefile doc/Makefile lib/Makefile man/Makefile src/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  3095. EOF
  3096. cat >> $CONFIG_STATUS <<EOF
  3097.  
  3098. # Protect against being on the right side of a sed subst in config.status.
  3099. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  3100.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  3101. $ac_vpsub
  3102. $extrasub
  3103. s%@CFLAGS@%$CFLAGS%g
  3104. s%@CPPFLAGS@%$CPPFLAGS%g
  3105. s%@CXXFLAGS@%$CXXFLAGS%g
  3106. s%@DEFS@%$DEFS%g
  3107. s%@LDFLAGS@%$LDFLAGS%g
  3108. s%@LIBS@%$LIBS%g
  3109. s%@exec_prefix@%$exec_prefix%g
  3110. s%@prefix@%$prefix%g
  3111. s%@program_transform_name@%$program_transform_name%g
  3112. s%@bindir@%$bindir%g
  3113. s%@sbindir@%$sbindir%g
  3114. s%@libexecdir@%$libexecdir%g
  3115. s%@datadir@%$datadir%g
  3116. s%@sysconfdir@%$sysconfdir%g
  3117. s%@sharedstatedir@%$sharedstatedir%g
  3118. s%@localstatedir@%$localstatedir%g
  3119. s%@libdir@%$libdir%g
  3120. s%@includedir@%$includedir%g
  3121. s%@oldincludedir@%$oldincludedir%g
  3122. s%@infodir@%$infodir%g
  3123. s%@guidedir@%$guidedir%g
  3124. s%@psdir@%$psdir%g
  3125. s%@dvidir@%$dvidir%g
  3126. s%@mandir@%$mandir%g
  3127. s%@PROGS@%$PROGS%g
  3128. s%@MAN@%$MAN%g
  3129. s%@SET_MAKE@%$SET_MAKE%g
  3130. s%@CC@%$CC%g
  3131. s%@CPP@%$CPP%g
  3132. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  3133. s%@INSTALL_DATA@%$INSTALL_DATA%g
  3134. s%@RANLIB@%$RANLIB%g
  3135. s%@YACC@%$YACC%g
  3136. s%@LIBOBJS@%$LIBOBJS%g
  3137. s%@ALLOCA@%$ALLOCA%g
  3138.  
  3139. CEOF
  3140. EOF
  3141. cat >> $CONFIG_STATUS <<EOF
  3142.  
  3143. CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile lib/Makefile man/Makefile src/Makefile"}
  3144. EOF
  3145. cat >> $CONFIG_STATUS <<\EOF
  3146. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  3147.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  3148.   case "$ac_file" in
  3149.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  3150.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  3151.   *) ac_file_in="${ac_file}.in" ;;
  3152.   esac
  3153.  
  3154.   # Adjust relative srcdir, etc. for subdirectories.
  3155.  
  3156.   # Remove last slash and all that follows it.  Not all systems have dirname.
  3157.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  3158.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  3159.     # The file is in a subdirectory.
  3160.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  3161.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  3162.     # A "../" for each directory in $ac_dir_suffix.
  3163.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  3164.   else
  3165.     ac_dir_suffix= ac_dots=
  3166.   fi
  3167.  
  3168.   case "$ac_given_srcdir" in
  3169.   .)  srcdir=.
  3170.       if test -z "$ac_dots"; then top_srcdir=.
  3171.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  3172.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  3173.   *) # Relative path.
  3174.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  3175.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  3176.   esac
  3177.  
  3178.   case "$ac_given_INSTALL" in
  3179.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  3180.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  3181.   esac
  3182.   echo creating "$ac_file"
  3183.   rm -f "$ac_file"
  3184.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  3185.   case "$ac_file" in
  3186.   *Makefile*) ac_comsub="1i\\
  3187. # $configure_input" ;;
  3188.   *) ac_comsub= ;;
  3189.   esac
  3190.   sed -e "$ac_comsub
  3191. s%@configure_input@%$configure_input%g
  3192. s%@srcdir@%$srcdir%g
  3193. s%@top_srcdir@%$top_srcdir%g
  3194. s%@INSTALL@%$INSTALL%g
  3195. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  3196. fi; done
  3197. rm -f conftest.subs
  3198.  
  3199. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  3200. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  3201. #
  3202. # ac_d sets the value in "#define NAME VALUE" lines.
  3203. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  3204. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  3205. ac_dC='\3'
  3206. ac_dD='%g'
  3207. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  3208. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3209. ac_uB='\([     ]\)%\1#\2define\3'
  3210. ac_uC=' '
  3211. ac_uD='\4%g'
  3212. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  3213. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3214. ac_eB='$%\1#\2define\3'
  3215. ac_eC=' '
  3216. ac_eD='%g'
  3217.  
  3218. CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
  3219. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  3220.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  3221.   case "$ac_file" in
  3222.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  3223.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  3224.   *) ac_file_in="${ac_file}.in" ;;
  3225.   esac
  3226.  
  3227.   echo creating $ac_file
  3228.  
  3229.   rm -f conftest.frag conftest.in conftest.out
  3230.   cp $ac_given_srcdir/$ac_file_in conftest.in
  3231.  
  3232. EOF
  3233.  
  3234. # Transform confdefs.h into a sed script conftest.vals that substitutes
  3235. # the proper values into config.h.in to produce config.h.  And first:
  3236. # Protect against being on the right side of a sed subst in config.status.
  3237. # Protect against being in an unquoted here document in config.status.
  3238. rm -f conftest.vals
  3239. cat > conftest.hdr <<\EOF
  3240. s/[\\&%]/\\&/g
  3241. s%[\\$`]%\\&%g
  3242. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  3243. s%ac_d%ac_u%gp
  3244. s%ac_u%ac_e%gp
  3245. EOF
  3246. sed -n -f conftest.hdr confdefs.h > conftest.vals
  3247. rm -f conftest.hdr
  3248.  
  3249. # This sed command replaces #undef with comments.  This is necessary, for
  3250. # example, in the case of _POSIX_SOURCE, which is predefined and required
  3251. # on some systems where configure will not decide to define it.
  3252. cat >> conftest.vals <<\EOF
  3253. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  3254. EOF
  3255.  
  3256. # Break up conftest.vals because some shells have a limit on
  3257. # the size of here documents, and old seds have small limits too.
  3258. # Maximum number of lines to put in a single here document.
  3259. ac_max_here_lines=12
  3260.  
  3261. rm -f conftest.tail
  3262. while :
  3263. do
  3264.   ac_lines=`grep -c . conftest.vals`
  3265.   # grep -c gives empty output for an empty file on some AIX systems.
  3266.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  3267.   # Write a limited-size here document to conftest.frag.
  3268.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  3269.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  3270.   echo 'CEOF
  3271.   sed -f conftest.frag conftest.in > conftest.out
  3272.   rm -f conftest.in
  3273.   mv conftest.out conftest.in
  3274. ' >> $CONFIG_STATUS
  3275.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  3276.   rm -f conftest.vals
  3277.   mv conftest.tail conftest.vals
  3278. done
  3279. rm -f conftest.vals
  3280.  
  3281. cat >> $CONFIG_STATUS <<\EOF
  3282.   rm -f conftest.frag conftest.h
  3283.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  3284.   cat conftest.in >> conftest.h
  3285.   rm -f conftest.in
  3286.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  3287.     echo "$ac_file is unchanged"
  3288.     rm -f conftest.h
  3289.   else
  3290.     # Remove last slash and all that follows it.  Not all systems have dirname.
  3291.       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  3292.       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  3293.       # The file is in a subdirectory.
  3294.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  3295.     fi
  3296.     rm -f $ac_file
  3297.     mv conftest.h $ac_file
  3298.   fi
  3299. fi; done
  3300.  
  3301.  
  3302. date > stamp-h
  3303. exit 0
  3304. EOF
  3305. chmod +x $CONFIG_STATUS
  3306. rm -f CONFIG.STATUS.old
  3307. rm -fr confdefs* $ac_clean_files
  3308. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  3309.