home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / inetutils-1.2-src.tgz / tar.out / fsf / inetutils / configure < prev    next >
Text File  |  1996-10-01  |  85KB  |  2,796 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. ac_help="$ac_help
  15.   --disable-servers       don't compile servers"
  16. ac_help="$ac_help
  17.   --disable-clients       don't compile clients"
  18. ac_help="$ac_help
  19.   --disable-talk          don't compile talk or talkd"
  20. ac_help="$ac_help
  21.   --enable-encryption     enable encryption"
  22. ac_help="$ac_help
  23.   --enable-authentication enable connection authentication"
  24.  
  25. # Initialize some variables set by options.
  26. # The variables have the same names as the options, with
  27. # dashes changed to underlines.
  28. build=NONE
  29. cache_file=./config.cache
  30. exec_prefix=NONE
  31. host=NONE
  32. no_create=
  33. nonopt=NONE
  34. no_recursion=
  35. prefix=NONE
  36. program_prefix=NONE
  37. program_suffix=NONE
  38. program_transform_name=s,x,x,
  39. silent=
  40. site=
  41. srcdir=
  42. target=NONE
  43. verbose=
  44. x_includes=NONE
  45. x_libraries=NONE
  46. bindir='${exec_prefix}/bin'
  47. sbindir='${exec_prefix}/sbin'
  48. libexecdir='${exec_prefix}/libexec'
  49. datadir='${prefix}/share'
  50. sysconfdir='${prefix}/etc'
  51. sharedstatedir='${prefix}/com'
  52. localstatedir='${prefix}/var'
  53. libdir='${exec_prefix}/lib'
  54. includedir='${prefix}/include'
  55. oldincludedir='/usr/include'
  56. infodir='${prefix}/info'
  57. guidedir='${prefix}/guide'
  58. psdir='${prefix}/ps'
  59. dvidir='${prefix}/dvi'
  60. mandir='${prefix}/man'
  61.  
  62. # Initialize some other variables.
  63. subdirs=
  64. MFLAGS= MAKEFLAGS=
  65.  
  66. ac_prev=
  67. for ac_option
  68. do
  69.  
  70.   # If the previous option needs an argument, assign it.
  71.   if test -n "$ac_prev"; then
  72.     eval "$ac_prev=\$ac_option"
  73.     ac_prev=
  74.     continue
  75.   fi
  76.  
  77.   case "$ac_option" in
  78.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  79.   *) ac_optarg= ;;
  80.   esac
  81.  
  82.   # Accept the important Cygnus configure options, so we can diagnose typos.
  83.  
  84.   case "$ac_option" in
  85.  
  86.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  87.     ac_prev=bindir ;;
  88.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  89.     bindir="$ac_optarg" ;;
  90.  
  91.   -build | --build | --buil | --bui | --bu)
  92.     ac_prev=build ;;
  93.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  94.     build="$ac_optarg" ;;
  95.  
  96.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  97.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  98.     ac_prev=cache_file ;;
  99.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  100.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  101.     cache_file="$ac_optarg" ;;
  102.  
  103.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  104.     ac_prev=datadir ;;
  105.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  106.   | --da=*)
  107.     datadir="$ac_optarg" ;;
  108.  
  109.   -disable-* | --disable-*)
  110.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  111.     # Reject names that are not valid shell variable names.
  112.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  113.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  114.     fi
  115.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  116.     eval "enable_${ac_feature}=no" ;;
  117.  
  118.   -enable-* | --enable-*)
  119.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  120.     # Reject names that are not valid shell variable names.
  121.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  122.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  123.     fi
  124.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  125.     case "$ac_option" in
  126.       *=*) ;;
  127.       *) ac_optarg=yes ;;
  128.     esac
  129.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  130.  
  131.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  132.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  133.   | --exec | --exe | --ex)
  134.     ac_prev=exec_prefix ;;
  135.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  136.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  137.   | --exec=* | --exe=* | --ex=*)
  138.     exec_prefix="$ac_optarg" ;;
  139.  
  140.   -gas | --gas | --ga | --g)
  141.     # Obsolete; use --with-gas.
  142.     with_gas=yes ;;
  143.  
  144.   -help | --help | --hel | --he)
  145.     # Omit some internal or obsolete options to make the list less imposing.
  146.     # This message is too long to be a string in the A/UX 3.1 sh.
  147.     cat << EOF
  148. Usage: configure [options] [host]
  149. Options: [defaults in brackets after descriptions]
  150. Configuration:
  151.   --cache-file=FILE       cache test results in FILE
  152.   --help                  print this message
  153.   --no-create             do not create output files
  154.   --quiet, --silent       do not print \`checking...' messages
  155.   --version               print the version of autoconf that created configure
  156. Directory and file names:
  157.   --prefix=PREFIX         install architecture-independent files in PREFIX
  158.                           [$ac_default_prefix]
  159.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  160.                           [same as prefix]
  161.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  162.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  163.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  164.   --datadir=DIR           read-only architecture-independent data in DIR
  165.                           [PREFIX/share]
  166.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  167.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  168.                           [PREFIX/com]
  169.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  170.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  171.   --includedir=DIR        C header files in DIR [PREFIX/include]
  172.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  173.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  174.   --guidedir=DIR          Amigaguide documentation in DIR [PREFIX/guide]
  175.   --psdir=DIR             postscript documentation in DIR [PREFIX/ps]
  176.   --dvidir=DIR            TeX dvi documentation in DIR [PREFIX/dvi]
  177.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  178.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  179.   --program-prefix=PREFIX prepend PREFIX to installed program names
  180.   --program-suffix=SUFFIX append SUFFIX to installed program names
  181.   --program-transform-name=PROGRAM
  182.                           run sed PROGRAM on installed program names
  183. EOF
  184.     cat << EOF
  185. Host type:
  186.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  187.   --host=HOST             configure for HOST [guessed]
  188.   --target=TARGET         configure for TARGET [TARGET=HOST]
  189. Features and packages:
  190.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  191.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  192.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  193.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  194.   --x-includes=DIR        X include files are in DIR
  195.   --x-libraries=DIR       X library files are in DIR
  196. EOF
  197.     if test -n "$ac_help"; then
  198.       echo "--enable and --with options recognized:$ac_help"
  199.     fi
  200.     exit 0 ;;
  201.  
  202.   -host | --host | --hos | --ho)
  203.     ac_prev=host ;;
  204.   -host=* | --host=* | --hos=* | --ho=*)
  205.     host="$ac_optarg" ;;
  206.  
  207.   -includedir | --includedir | --includedi | --included | --include \
  208.   | --includ | --inclu | --incl | --inc)
  209.     ac_prev=includedir ;;
  210.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  211.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  212.     includedir="$ac_optarg" ;;
  213.  
  214.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  215.     ac_prev=infodir ;;
  216.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  217.     infodir="$ac_optarg" ;;
  218.  
  219.  -guidedir | --guidedir | --guidedi | --guided | --guide | --gui)
  220.    ac_prev=guidedir ;;
  221.  -guidedir=* | --guidedir=* | --guidedi=* | --guided=* | --guide=* |--gui=*)+    guidedir="$ac_optarg" ;;
  222.  
  223.  -psdir | --psdir | --psdi | --psd | --ps)
  224.    ac_prev=psdir ;;
  225.  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)+    psdir="$ac_optarg" ;;
  226.  
  227.  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  228.    ac_prev=dvidir ;;
  229.  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |--dv=*)+    dvidir="$ac_optarg" ;;
  230.  
  231.   -libdir | --libdir | --libdi | --libd)
  232.     ac_prev=libdir ;;
  233.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  234.     libdir="$ac_optarg" ;;
  235.  
  236.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  237.   | --libexe | --libex | --libe)
  238.     ac_prev=libexecdir ;;
  239.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  240.   | --libexe=* | --libex=* | --libe=*)
  241.     libexecdir="$ac_optarg" ;;
  242.  
  243.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  244.   | --localstate | --localstat | --localsta | --localst \
  245.   | --locals | --local | --loca | --loc | --lo)
  246.     ac_prev=localstatedir ;;
  247.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  248.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  249.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  250.     localstatedir="$ac_optarg" ;;
  251.  
  252.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  253.     ac_prev=mandir ;;
  254.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  255.     mandir="$ac_optarg" ;;
  256.  
  257.   -nfp | --nfp | --nf)
  258.     # Obsolete; use --without-fp.
  259.     with_fp=no ;;
  260.  
  261.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  262.   | --no-cr | --no-c)
  263.     no_create=yes ;;
  264.  
  265.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  266.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  267.     no_recursion=yes ;;
  268.  
  269.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  270.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  271.   | --oldin | --oldi | --old | --ol | --o)
  272.     ac_prev=oldincludedir ;;
  273.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  274.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  275.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  276.     oldincludedir="$ac_optarg" ;;
  277.  
  278.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  279.     ac_prev=prefix ;;
  280.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  281.     prefix="$ac_optarg" ;;
  282.  
  283.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  284.   | --program-pre | --program-pr | --program-p)
  285.     ac_prev=program_prefix ;;
  286.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  287.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  288.     program_prefix="$ac_optarg" ;;
  289.  
  290.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  291.   | --program-suf | --program-su | --program-s)
  292.     ac_prev=program_suffix ;;
  293.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  294.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  295.     program_suffix="$ac_optarg" ;;
  296.  
  297.   -program-transform-name | --program-transform-name \
  298.   | --program-transform-nam | --program-transform-na \
  299.   | --program-transform-n | --program-transform- \
  300.   | --program-transform | --program-transfor \
  301.   | --program-transfo | --program-transf \
  302.   | --program-trans | --program-tran \
  303.   | --progr-tra | --program-tr | --program-t)
  304.     ac_prev=program_transform_name ;;
  305.   -program-transform-name=* | --program-transform-name=* \
  306.   | --program-transform-nam=* | --program-transform-na=* \
  307.   | --program-transform-n=* | --program-transform-=* \
  308.   | --program-transform=* | --program-transfor=* \
  309.   | --program-transfo=* | --program-transf=* \
  310.   | --program-trans=* | --program-tran=* \
  311.   | --progr-tra=* | --program-tr=* | --program-t=*)
  312.     program_transform_name="$ac_optarg" ;;
  313.  
  314.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  315.   | -silent | --silent | --silen | --sile | --sil)
  316.     silent=yes ;;
  317.  
  318.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  319.     ac_prev=sbindir ;;
  320.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  321.   | --sbi=* | --sb=*)
  322.     sbindir="$ac_optarg" ;;
  323.  
  324.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  325.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  326.   | --sharedst | --shareds | --shared | --share | --shar \
  327.   | --sha | --sh)
  328.     ac_prev=sharedstatedir ;;
  329.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  330.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  331.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  332.   | --sha=* | --sh=*)
  333.     sharedstatedir="$ac_optarg" ;;
  334.  
  335.   -site | --site | --sit)
  336.     ac_prev=site ;;
  337.   -site=* | --site=* | --sit=*)
  338.     site="$ac_optarg" ;;
  339.  
  340.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  341.     ac_prev=srcdir ;;
  342.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  343.     srcdir="$ac_optarg" ;;
  344.  
  345.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  346.   | --syscon | --sysco | --sysc | --sys | --sy)
  347.     ac_prev=sysconfdir ;;
  348.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  349.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  350.     sysconfdir="$ac_optarg" ;;
  351.  
  352.   -target | --target | --targe | --targ | --tar | --ta | --t)
  353.     ac_prev=target ;;
  354.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  355.     target="$ac_optarg" ;;
  356.  
  357.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  358.     verbose=yes ;;
  359.  
  360.   -version | --version | --versio | --versi | --vers)
  361.     echo "configure generated by autoconf version 2.10"
  362.     exit 0 ;;
  363.  
  364.   -with-* | --with-*)
  365.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  366.     # Reject names that are not valid shell variable names.
  367.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  368.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  369.     fi
  370.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  371.     case "$ac_option" in
  372.       *=*) ;;
  373.       *) ac_optarg=yes ;;
  374.     esac
  375.     eval "with_${ac_package}='$ac_optarg'" ;;
  376.  
  377.   -without-* | --without-*)
  378.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  379.     # Reject names that are not valid shell variable names.
  380.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  381.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  382.     fi
  383.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  384.     eval "with_${ac_package}=no" ;;
  385.  
  386.   --x)
  387.     # Obsolete; use --with-x.
  388.     with_x=yes ;;
  389.  
  390.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  391.   | --x-incl | --x-inc | --x-in | --x-i)
  392.     ac_prev=x_includes ;;
  393.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  394.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  395.     x_includes="$ac_optarg" ;;
  396.  
  397.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  398.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  399.     ac_prev=x_libraries ;;
  400.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  401.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  402.     x_libraries="$ac_optarg" ;;
  403.  
  404.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  405.     ;;
  406.  
  407.   *)
  408.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  409.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  410.     fi
  411.     if test "x$nonopt" != xNONE; then
  412.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  413.     fi
  414.     nonopt="$ac_option"
  415.     ;;
  416.  
  417.   esac
  418. done
  419.  
  420. if test -n "$ac_prev"; then
  421.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  422. fi
  423.  
  424. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  425.  
  426. # File descriptor usage:
  427. # 0 standard input
  428. # 1 file creation
  429. # 2 errors and warnings
  430. # 3 some systems may open it to /dev/tty
  431. # 4 used on the Kubota Titan
  432. # 6 checking for... messages and results
  433. # 5 compiler messages saved in config.log
  434. if test "$silent" = yes; then
  435.   exec 6>/dev/null
  436. else
  437.   exec 6>&1
  438. fi
  439. exec 5>./config.log
  440.  
  441. echo "\
  442. This file contains any messages produced by compilers while
  443. running configure, to aid debugging if configure makes a mistake.
  444. " 1>&5
  445.  
  446. # Strip out --no-create and --no-recursion so they do not pile up.
  447. # Also quote any args containing shell metacharacters.
  448. ac_configure_args=
  449. for ac_arg
  450. do
  451.   case "$ac_arg" in
  452.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  453.   | --no-cr | --no-c) ;;
  454.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  455.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  456.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  457.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  458.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  459.   esac
  460. done
  461.  
  462. # NLS nuisances.
  463. # Only set LANG and LC_ALL to C if already set.
  464. # These must not be set unconditionally because not all systems understand
  465. # e.g. LANG=C (notably SCO).
  466. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  467. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  468.  
  469. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  470. rm -rf conftest* confdefs.h
  471. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  472. echo > confdefs.h
  473.  
  474. # A filename unique to this package, relative to the directory that
  475. # configure is in, which we can look for to find out if srcdir is correct.
  476. ac_unique_file=inetd/inetd.c
  477.  
  478. # Find the source files, if location was not specified.
  479. if test -z "$srcdir"; then
  480.   ac_srcdir_defaulted=yes
  481.   # Try the directory containing this script, then its parent.
  482.   ac_prog=$0
  483.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  484.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  485.   srcdir=$ac_confdir
  486.   if test ! -r $srcdir/$ac_unique_file; then
  487.     srcdir=..
  488.   fi
  489. else
  490.   ac_srcdir_defaulted=no
  491. fi
  492. if test ! -r $srcdir/$ac_unique_file; then
  493.   if test "$ac_srcdir_defaulted" = yes; then
  494.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  495.   else
  496.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  497.   fi
  498. fi
  499. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  500.  
  501. # Prefer explicitly selected file to automatically selected ones.
  502. if test -z "$CONFIG_SITE"; then
  503.   if test "x$prefix" != xNONE; then
  504.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  505.   else
  506.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  507.   fi
  508. fi
  509. for ac_site_file in $CONFIG_SITE; do
  510.   if test -r "$ac_site_file"; then
  511.     echo "loading site script $ac_site_file"
  512.     . "$ac_site_file"
  513.   fi
  514. done
  515.  
  516. if test -r "$cache_file"; then
  517.   echo "loading cache $cache_file"
  518.   . $cache_file
  519. else
  520.   echo "creating cache $cache_file"
  521.   > $cache_file
  522. fi
  523.  
  524. ac_ext=c
  525. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  526. ac_cpp='$CPP $CPPFLAGS'
  527. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  528. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  529.  
  530. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  531.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  532.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  533.     ac_n= ac_c='
  534. ' ac_t='    '
  535.   else
  536.     ac_n=-n ac_c= ac_t=
  537.   fi
  538. else
  539.   ac_n= ac_c='\c' ac_t=
  540. fi
  541.  
  542.  
  543.  
  544. # Get macros that we use
  545.  
  546.  
  547. # Generate <config.h>; note that we use a `header' subdirectory, which
  548. # contains all include files distributed with inetutils, and an `include'
  549. # directory, which holds those actually needed for compilation
  550.  
  551.  
  552. # config.h turns this on, so make sure it's on for our tests too
  553. CPPFLAGS=-D_BSD_SOURCE
  554.  
  555. # The list of subdirs that may be built, split into subsets (which the user
  556. # may select for compilation at config or make time); the composite list of
  557. # everything to build by default is defined at the end of this file.
  558. # (These don't contain talk or talkd, which is added later if necessary)
  559. COMMON='libtelnet libinetutils'
  560. SERVERS='inetd ftpd telnetd rshd rlogind uucpd rexecd syslogd tftpd'
  561. CLIENTS='telnet ftp rsh rcp rlogin tftp syslog'
  562.  
  563.  
  564.  
  565.  
  566. # All subdirectories, whether built or not
  567. SUBDIRS="headers $SERVERS $CLIENTS $COMMON"
  568.  
  569.  
  570. # Optional things we put into libinetutils (we use the name `LIBOBJS' because
  571. # that's what AC_REPLACE_FUNCS uses).
  572. LIBOBJS=''
  573.  
  574.  
  575. # Include files that we link into our own include directory from headers.
  576. # Initialize it with the things we always want to use.
  577. INCLUDES="version.h crypt.h arpa/telnet.h arpa/ftp.h arpa/tftp.h"
  578.  
  579. # Files that we link from somewhere other than headers to includes .  The
  580. # number of entries in LINK_SRCS should match that in LINK_DSTS.
  581. LINK_SRCS=''
  582. LINK_DSTS=''
  583.  
  584. # By default we compile both servers and clients, but see what the user wants
  585. # Check whether --enable-servers or --disable-servers was given.
  586. if test "${enable_servers+set}" = set; then
  587.   enableval="$enable_servers"
  588.   :
  589. else
  590.   enable_servers=yes
  591. fi
  592.  
  593. # Check whether --enable-clients or --disable-clients was given.
  594. if test "${enable_clients+set}" = set; then
  595.   enableval="$enable_clients"
  596.   :
  597. else
  598.   enable_clients=yes
  599. fi
  600.  
  601. # By default, talk is only compiled if we can find libcurses
  602. # Check whether --enable-talk or --disable-talk was given.
  603. if test "${enable_talk+set}" = set; then
  604.   enableval="$enable_talk"
  605.   :
  606. else
  607.   enable_talk=maybe
  608. fi
  609.  
  610. # Encryption and authentication is turned off by default
  611. # Check whether --enable-encryption or --disable-encryption was given.
  612. if test "${enable_encryption+set}" = set; then
  613.   enableval="$enable_encryption"
  614.   :
  615. else
  616.   enable_encryption=no
  617. fi
  618.  
  619. # Check whether --enable-authentication or --disable-authentication was given.
  620. if test "${enable_authentication+set}" = set; then
  621.   enableval="$enable_authentication"
  622.   :
  623. else
  624.   enable_authentication=no
  625. fi
  626.  
  627.  
  628. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  629. set dummy ${MAKE-make}; ac_make=$2
  630. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  631.   echo $ac_n "(cached) $ac_c" 1>&6
  632. else
  633.   cat > conftestmake <<\EOF
  634. all:
  635.     @echo 'ac_maketemp="${MAKE}"'
  636. EOF
  637. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  638. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  639. if test -n "$ac_maketemp"; then
  640.   eval ac_cv_prog_make_${ac_make}_set=yes
  641. else
  642.   eval ac_cv_prog_make_${ac_make}_set=no
  643. fi
  644. rm -f conftestmake
  645. fi
  646. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  647.   echo "$ac_t""yes" 1>&6
  648.   SET_MAKE=
  649. else
  650.   echo "$ac_t""no" 1>&6
  651.   SET_MAKE="MAKE=${MAKE-make}"
  652. fi
  653.  
  654.  
  655. # Extract the first word of "gcc", so it can be a program name with args.
  656. set dummy gcc; ac_word=$2
  657. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  658. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  659.   echo $ac_n "(cached) $ac_c" 1>&6
  660. else
  661.   if test -n "$CC"; then
  662.   ac_cv_prog_CC="$CC" # Let the user override the test.
  663. else
  664.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  665.   for ac_dir in $PATH; do
  666.     test -z "$ac_dir" && ac_dir=.
  667.     if test -f $ac_dir/$ac_word; then
  668.       ac_cv_prog_CC="gcc"
  669.       break
  670.     fi
  671.   done
  672.   IFS="$ac_save_ifs"
  673. fi
  674. fi
  675. CC="$ac_cv_prog_CC"
  676. if test -n "$CC"; then
  677.   echo "$ac_t""$CC" 1>&6
  678. else
  679.   echo "$ac_t""no" 1>&6
  680. fi
  681.  
  682. if test -z "$CC"; then
  683.   # Extract the first word of "cc", so it can be a program name with args.
  684. set dummy cc; ac_word=$2
  685. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  686. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  687.   echo $ac_n "(cached) $ac_c" 1>&6
  688. else
  689.   if test -n "$CC"; then
  690.   ac_cv_prog_CC="$CC" # Let the user override the test.
  691. else
  692.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  693.   ac_prog_rejected=no
  694.   for ac_dir in $PATH; do
  695.     test -z "$ac_dir" && ac_dir=.
  696.     if test -f $ac_dir/$ac_word; then
  697.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  698.         ac_prog_rejected=yes
  699.     continue
  700.       fi
  701.       ac_cv_prog_CC="cc"
  702.       break
  703.     fi
  704.   done
  705.   IFS="$ac_save_ifs"
  706. if test $ac_prog_rejected = yes; then
  707.   # We found a bogon in the path, so make sure we never use it.
  708.   set dummy $ac_cv_prog_CC
  709.   shift
  710.   if test $# -gt 0; then
  711.     # We chose a different compiler from the bogus one.
  712.     # However, it has the same basename, so the bogon will be chosen
  713.     # first if we set CC to just the basename; use the full file name.
  714.     shift
  715.     set dummy "$ac_dir/$ac_word" "$@"
  716.     shift
  717.     ac_cv_prog_CC="$@"
  718.   fi
  719. fi
  720. fi
  721. fi
  722. CC="$ac_cv_prog_CC"
  723. if test -n "$CC"; then
  724.   echo "$ac_t""$CC" 1>&6
  725. else
  726.   echo "$ac_t""no" 1>&6
  727. fi
  728.  
  729.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  730. fi
  731.  
  732. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  733. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  734.   echo $ac_n "(cached) $ac_c" 1>&6
  735. else
  736.   cat > conftest.c <<EOF
  737. #ifdef __GNUC__
  738.   yes;
  739. #endif
  740. EOF
  741. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  742.   ac_cv_prog_gcc=yes
  743. else
  744.   ac_cv_prog_gcc=no
  745. fi
  746. fi
  747.  
  748. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  749. if test $ac_cv_prog_gcc = yes; then
  750.   GCC=yes
  751.   if test "${CFLAGS+set}" != set; then
  752.     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  753. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  754.   echo $ac_n "(cached) $ac_c" 1>&6
  755. else
  756.   echo 'void f(){}' > conftest.c
  757. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  758.   ac_cv_prog_gcc_g=yes
  759. else
  760.   ac_cv_prog_gcc_g=no
  761. fi
  762. rm -f conftest*
  763.  
  764. fi
  765.  
  766. echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  767.     if test $ac_cv_prog_gcc_g = yes; then
  768.       CFLAGS="-g -O2"
  769.     else
  770.       CFLAGS="-O2"
  771.     fi
  772.   fi
  773. else
  774.   GCC=
  775.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  776. fi
  777.  
  778. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  779. # On Suns, sometimes $CPP names a directory.
  780. if test -n "$CPP" && test -d "$CPP"; then
  781.   CPP=
  782. fi
  783. if test -z "$CPP"; then
  784. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  785.   echo $ac_n "(cached) $ac_c" 1>&6
  786. else
  787.     # This must be in double quotes, not single quotes, because CPP may get
  788.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  789.   CPP="${CC-cc} -E"
  790.   # On the NeXT, cc -E runs the code through the compiler's parser,
  791.   # not just through cpp.
  792.   cat > conftest.$ac_ext <<EOF
  793. #line 794 "configure"
  794. #include "confdefs.h"
  795. #include <assert.h>
  796. Syntax Error
  797. EOF
  798. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  799. { (eval echo configure:800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  800. ac_err=`grep -v '^ *+' conftest.out`
  801. if test -z "$ac_err"; then
  802.   :
  803. else
  804.   echo "$ac_err" >&5
  805.   rm -rf conftest*
  806.   CPP="${CC-cc} -E -traditional-cpp"
  807.   cat > conftest.$ac_ext <<EOF
  808. #line 809 "configure"
  809. #include "confdefs.h"
  810. #include <assert.h>
  811. Syntax Error
  812. EOF
  813. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  814. { (eval echo configure:815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  815. ac_err=`grep -v '^ *+' conftest.out`
  816. if test -z "$ac_err"; then
  817.   :
  818. else
  819.   echo "$ac_err" >&5
  820.   rm -rf conftest*
  821.   CPP=/lib/cpp
  822. fi
  823. rm -f conftest*
  824. fi
  825. rm -f conftest*
  826.   ac_cv_prog_CPP="$CPP"
  827. fi
  828.   CPP="$ac_cv_prog_CPP"
  829. else
  830.   ac_cv_prog_CPP="$CPP"
  831. fi
  832. echo "$ac_t""$CPP" 1>&6
  833.  
  834. ac_aux_dir=
  835. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  836.   if test -f $ac_dir/install-sh; then
  837.     ac_aux_dir=$ac_dir
  838.     ac_install_sh="$ac_aux_dir/install-sh -c"
  839.     break
  840.   elif test -f $ac_dir/install.sh; then
  841.     ac_aux_dir=$ac_dir
  842.     ac_install_sh="$ac_aux_dir/install.sh -c"
  843.     break
  844.   fi
  845. done
  846. if test -z "$ac_aux_dir"; then
  847.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  848. fi
  849. ac_config_guess=$ac_aux_dir/config.guess
  850. ac_config_sub=$ac_aux_dir/config.sub
  851. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  852.  
  853. # Find a good install program.  We prefer a C program (faster),
  854. # so one script is as good as another.  But avoid the broken or
  855. # incompatible versions:
  856. # SysV /etc/install, /usr/sbin/install
  857. # SunOS /usr/etc/install
  858. # IRIX /sbin/install
  859. # AIX /bin/install
  860. # AmigaOS /c/install
  861. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  862. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  863. # ./install, which can be erroneously created by make from ./install.sh.
  864. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  865. if test -z "$INSTALL"; then
  866. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  867.   echo $ac_n "(cached) $ac_c" 1>&6
  868. else
  869.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  870.   for ac_dir in $PATH; do
  871.     # Account for people who put trailing slashes in PATH elements.
  872.     case "$ac_dir/" in
  873.     /|./|.//|/etc/*|/c/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  874.     *)
  875.       # OSF1 and SCO ODT 3.0 have their own names for install.
  876.       for ac_prog in ginstall installbsd scoinst install; do
  877.         if test -f $ac_dir/$ac_prog; then
  878.       if test $ac_prog = install &&
  879.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  880.         # AIX install.  It has an incompatible calling convention.
  881.         # OSF/1 installbsd also uses dspmsg, but is usable.
  882.         :
  883.       else
  884.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  885.         break 2
  886.       fi
  887.     fi
  888.       done
  889.       ;;
  890.     esac
  891.   done
  892.   IFS="$ac_save_ifs"
  893.  
  894. fi
  895.   if test "${ac_cv_path_install+set}" = set; then
  896.     INSTALL="$ac_cv_path_install"
  897.   else
  898.     # As a last resort, use the slow shell script.  We don't cache a
  899.     # path for INSTALL within a source directory, because that will
  900.     # break other packages using the cache if that directory is
  901.     # removed, or if the path is relative.
  902.     INSTALL="$ac_install_sh"
  903.   fi
  904. fi
  905. echo "$ac_t""$INSTALL" 1>&6
  906.  
  907. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  908. # It thinks the first close brace ends the variable substitution.
  909. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  910.  
  911. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  912.  
  913. for ac_prog in 'bison -y' byacc
  914. do
  915. # Extract the first word of "$ac_prog", so it can be a program name with args.
  916. set dummy $ac_prog; ac_word=$2
  917. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  918. if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
  919.   echo $ac_n "(cached) $ac_c" 1>&6
  920. else
  921.   if test -n "$YACC"; then
  922.   ac_cv_prog_YACC="$YACC" # Let the user override the test.
  923. else
  924.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  925.   for ac_dir in $PATH; do
  926.     test -z "$ac_dir" && ac_dir=.
  927.     if test -f $ac_dir/$ac_word; then
  928.       ac_cv_prog_YACC="$ac_prog"
  929.       break
  930.     fi
  931.   done
  932.   IFS="$ac_save_ifs"
  933. fi
  934. fi
  935. YACC="$ac_cv_prog_YACC"
  936. if test -n "$YACC"; then
  937.   echo "$ac_t""$YACC" 1>&6
  938. else
  939.   echo "$ac_t""no" 1>&6
  940. fi
  941.  
  942. test -n "$YACC" && break
  943. done
  944. test -n "$YACC" || YACC="yacc"
  945.  
  946.  
  947. # Make sure we can run config.sub.
  948. if $ac_config_sub sun4 >/dev/null 2>&1; then :
  949. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  950. fi
  951.  
  952. echo $ac_n "checking host system type""... $ac_c" 1>&6
  953.  
  954. host_alias=$host
  955. case "$host_alias" in
  956. NONE)
  957.   case $nonopt in
  958.   NONE)
  959.     if host_alias=`$ac_config_guess`; then :
  960.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  961.     fi ;;
  962.   *) host_alias=$nonopt ;;
  963.   esac ;;
  964. esac
  965.  
  966. host=`$ac_config_sub $host_alias`
  967. host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
  968. host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
  969. host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
  970. echo "$ac_t""$host" 1>&6
  971.  
  972. echo $ac_n "checking build system type""... $ac_c" 1>&6
  973.  
  974. build_alias=$build
  975. case "$build_alias" in
  976. NONE)
  977.   case $nonopt in
  978.   NONE) build_alias=$host_alias ;;
  979.   *) build_alias=$nonopt ;;
  980.   esac ;;
  981. esac
  982.  
  983. build=`$ac_config_sub $build_alias`
  984. build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
  985. build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
  986. build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
  987. echo "$ac_t""$build" 1>&6
  988.  
  989. if test $host != $build; then
  990.   ac_tool_prefix=${host_alias}-
  991. else
  992.   ac_tool_prefix=
  993. fi
  994.  
  995. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  996. set dummy ${ac_tool_prefix}ar; ac_word=$2
  997. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  998. if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
  999.   echo $ac_n "(cached) $ac_c" 1>&6
  1000. else
  1001.   if test -n "$AR"; then
  1002.   ac_cv_prog_AR="$AR" # Let the user override the test.
  1003. else
  1004.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1005.   for ac_dir in $PATH; do
  1006.     test -z "$ac_dir" && ac_dir=.
  1007.     if test -f $ac_dir/$ac_word; then
  1008.       ac_cv_prog_AR="${ac_tool_prefix}ar"
  1009.       break
  1010.     fi
  1011.   done
  1012.   IFS="$ac_save_ifs"
  1013.   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
  1014. fi
  1015. fi
  1016. AR="$ac_cv_prog_AR"
  1017. if test -n "$AR"; then
  1018.   echo "$ac_t""$AR" 1>&6
  1019. else
  1020.   echo "$ac_t""no" 1>&6
  1021. fi
  1022.  
  1023.  
  1024.  
  1025. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  1026. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  1027. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1028. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  1029.   echo $ac_n "(cached) $ac_c" 1>&6
  1030. else
  1031.   if test -n "$RANLIB"; then
  1032.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1033. else
  1034.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1035.   for ac_dir in $PATH; do
  1036.     test -z "$ac_dir" && ac_dir=.
  1037.     if test -f $ac_dir/$ac_word; then
  1038.       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  1039.       break
  1040.     fi
  1041.   done
  1042.   IFS="$ac_save_ifs"
  1043. fi
  1044. fi
  1045. RANLIB="$ac_cv_prog_RANLIB"
  1046. if test -n "$RANLIB"; then
  1047.   echo "$ac_t""$RANLIB" 1>&6
  1048. else
  1049.   echo "$ac_t""no" 1>&6
  1050. fi
  1051.  
  1052.  
  1053. if test -z "$ac_cv_prog_RANLIB"; then
  1054. if test -n "$ac_tool_prefix"; then
  1055.   # Extract the first word of "ranlib", so it can be a program name with args.
  1056. set dummy ranlib; ac_word=$2
  1057. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1058. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  1059.   echo $ac_n "(cached) $ac_c" 1>&6
  1060. else
  1061.   if test -n "$RANLIB"; then
  1062.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1063. else
  1064.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1065.   for ac_dir in $PATH; do
  1066.     test -z "$ac_dir" && ac_dir=.
  1067.     if test -f $ac_dir/$ac_word; then
  1068.       ac_cv_prog_RANLIB="ranlib"
  1069.       break
  1070.     fi
  1071.   done
  1072.   IFS="$ac_save_ifs"
  1073.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  1074. fi
  1075. fi
  1076. RANLIB="$ac_cv_prog_RANLIB"
  1077. if test -n "$RANLIB"; then
  1078.   echo "$ac_t""$RANLIB" 1>&6
  1079. else
  1080.   echo "$ac_t""no" 1>&6
  1081. fi
  1082.  
  1083. else
  1084.   RANLIB=":"
  1085. fi
  1086. fi
  1087.  
  1088. # Extract the first word of "rm", so it can be a program name with args.
  1089. set dummy rm; ac_word=$2
  1090. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1091. if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
  1092.   echo $ac_n "(cached) $ac_c" 1>&6
  1093. else
  1094.   case "$RM" in
  1095.   /*)
  1096.   ac_cv_path_RM="$RM" # Let the user override the test with a path.
  1097.   ;;
  1098.   *)
  1099.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1100.   for ac_dir in $PATH; do
  1101.     test -z "$ac_dir" && ac_dir=.
  1102.     if test -f $ac_dir/$ac_word; then
  1103.       ac_cv_path_RM="$ac_dir/$ac_word"
  1104.       break
  1105.     fi
  1106.   done
  1107.   IFS="$ac_save_ifs"
  1108.   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
  1109.   ;;
  1110. esac
  1111. fi
  1112. RM="$ac_cv_path_RM"
  1113. if test -n "$RM"; then
  1114.   echo "$ac_t""$RM" 1>&6
  1115. else
  1116.   echo "$ac_t""no" 1>&6
  1117. fi
  1118.  
  1119.  
  1120. for ac_hdr in malloc.h errno.h string.h stdarg.h termio.h termios.h \
  1121.          stdlib.h sys/tty.h sys/utsname.h glob.h \
  1122.          sys/msgbuf.h krb.h des.h netinet/in_systm.h \
  1123.          netinet/ip.h netinet/ip_icmp.h netinet/ip_var.h vis.h \
  1124.          sys/ioctl_compat.h sys/cdefs.h utmp.h utmpx.h
  1125. do
  1126. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1127. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1128. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1129.   echo $ac_n "(cached) $ac_c" 1>&6
  1130. else
  1131.   cat > conftest.$ac_ext <<EOF
  1132. #line 1133 "configure"
  1133. #include "confdefs.h"
  1134. #include <$ac_hdr>
  1135. EOF
  1136. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1137. { (eval echo configure:1138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1138. ac_err=`grep -v '^ *+' conftest.out`
  1139. if test -z "$ac_err"; then
  1140.   rm -rf conftest*
  1141.   eval "ac_cv_header_$ac_safe=yes"
  1142. else
  1143.   echo "$ac_err" >&5
  1144.   rm -rf conftest*
  1145.   eval "ac_cv_header_$ac_safe=no"
  1146. fi
  1147. rm -f conftest*
  1148. fi
  1149. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1150.   echo "$ac_t""yes" 1>&6
  1151.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1152.   cat >> confdefs.h <<EOF
  1153. #define $ac_tr_hdr 1
  1154. EOF
  1155.  
  1156. else
  1157.   echo "$ac_t""no" 1>&6
  1158. fi
  1159. done
  1160.  
  1161.  
  1162. for ac_func in cgetent uname setutent_r fpathconf tcgetattr sigvec sigaction \
  1163.            flock ftruncate wait3
  1164. do
  1165. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1166. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1167.   echo $ac_n "(cached) $ac_c" 1>&6
  1168. else
  1169.   cat > conftest.$ac_ext <<EOF
  1170. #line 1171 "configure"
  1171. #include "confdefs.h"
  1172. /* System header to define __stub macros and hopefully few prototypes,
  1173.     which can conflict with char $ac_func(); below.  */
  1174. #include <assert.h>
  1175. /* Override any gcc2 internal prototype to avoid an error.  */
  1176. /* We use char because int might match the return type of a gcc2
  1177.     builtin and then its argument prototype would still apply.  */
  1178. char $ac_func();
  1179.  
  1180. int main() { t(); return 0; }
  1181. int t() {
  1182.  
  1183. /* The GNU C library defines this for functions which it implements
  1184.     to always fail with ENOSYS.  Some functions are actually named
  1185.     something starting with __ and the normal name is an alias.  */
  1186. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1187. choke me
  1188. #else
  1189. $ac_func();
  1190. #endif
  1191.  
  1192. ; return 0; }
  1193. EOF
  1194. if { (eval echo configure:1195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1195.   rm -rf conftest*
  1196.   eval "ac_cv_func_$ac_func=yes"
  1197. else
  1198.   rm -rf conftest*
  1199.   eval "ac_cv_func_$ac_func=no"
  1200. fi
  1201. rm -f conftest*
  1202.  
  1203. fi
  1204. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1205.   echo "$ac_t""yes" 1>&6
  1206.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1207.   cat >> confdefs.h <<EOF
  1208. #define $ac_tr_func 1
  1209. EOF
  1210.  
  1211. else
  1212.   echo "$ac_t""no" 1>&6
  1213. fi
  1214. done
  1215.  
  1216. # Functions that we will define (in libinetutils) if necessary.
  1217. for ac_func in daemon strdup
  1218. do
  1219. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1220. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1221.   echo $ac_n "(cached) $ac_c" 1>&6
  1222. else
  1223.   cat > conftest.$ac_ext <<EOF
  1224. #line 1225 "configure"
  1225. #include "confdefs.h"
  1226. /* System header to define __stub macros and hopefully few prototypes,
  1227.     which can conflict with char $ac_func(); below.  */
  1228. #include <assert.h>
  1229. /* Override any gcc2 internal prototype to avoid an error.  */
  1230. /* We use char because int might match the return type of a gcc2
  1231.     builtin and then its argument prototype would still apply.  */
  1232. char $ac_func();
  1233.  
  1234. int main() { t(); return 0; }
  1235. int t() {
  1236.  
  1237. /* The GNU C library defines this for functions which it implements
  1238.     to always fail with ENOSYS.  Some functions are actually named
  1239.     something starting with __ and the normal name is an alias.  */
  1240. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1241. choke me
  1242. #else
  1243. $ac_func();
  1244. #endif
  1245.  
  1246. ; return 0; }
  1247. EOF
  1248. if { (eval echo configure:1249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1249.   rm -rf conftest*
  1250.   eval "ac_cv_func_$ac_func=yes"
  1251. else
  1252.   rm -rf conftest*
  1253.   eval "ac_cv_func_$ac_func=no"
  1254. fi
  1255. rm -f conftest*
  1256.  
  1257. fi
  1258. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1259.   echo "$ac_t""yes" 1>&6
  1260.   :
  1261. else
  1262.   echo "$ac_t""no" 1>&6
  1263. LIBOBJS="$LIBOBJS ${ac_func}.o"
  1264. fi
  1265.  
  1266. done
  1267.  
  1268.  
  1269. # Use (posix) `setpgid' if it's around, otherwise assume a BSD setpgrp
  1270. echo $ac_n "checking for setpgid""... $ac_c" 1>&6
  1271. if eval "test \"`echo '$''{'ac_cv_func_setpgid'+set}'`\" = set"; then
  1272.   echo $ac_n "(cached) $ac_c" 1>&6
  1273. else
  1274.   cat > conftest.$ac_ext <<EOF
  1275. #line 1276 "configure"
  1276. #include "confdefs.h"
  1277. /* System header to define __stub macros and hopefully few prototypes,
  1278.     which can conflict with char setpgid(); below.  */
  1279. #include <assert.h>
  1280. /* Override any gcc2 internal prototype to avoid an error.  */
  1281. /* We use char because int might match the return type of a gcc2
  1282.     builtin and then its argument prototype would still apply.  */
  1283. char setpgid();
  1284.  
  1285. int main() { t(); return 0; }
  1286. int t() {
  1287.  
  1288. /* The GNU C library defines this for functions which it implements
  1289.     to always fail with ENOSYS.  Some functions are actually named
  1290.     something starting with __ and the normal name is an alias.  */
  1291. #if defined (__stub_setpgid) || defined (__stub___setpgid)
  1292. choke me
  1293. #else
  1294. setpgid();
  1295. #endif
  1296.  
  1297. ; return 0; }
  1298. EOF
  1299. if { (eval echo configure:1300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1300.   rm -rf conftest*
  1301.   eval "ac_cv_func_setpgid=yes"
  1302. else
  1303.   rm -rf conftest*
  1304.   eval "ac_cv_func_setpgid=no"
  1305. fi
  1306. rm -f conftest*
  1307.  
  1308. fi
  1309. if eval "test \"`echo '$ac_cv_func_'setpgid`\" = yes"; then
  1310.   echo "$ac_t""yes" 1>&6
  1311.   :
  1312. else
  1313.   echo "$ac_t""no" 1>&6
  1314. cat >> confdefs.h <<\EOF
  1315. #define setpgid setpgrp
  1316. EOF
  1317.  
  1318. fi
  1319.  
  1320.  
  1321. # EWOULDBLOCK is more or less the BSD version of posix EAGAIN.
  1322. IU_CHECK_MACRO(EWOULDBLOCK, #include <errno.h>, ,
  1323.   :, cat >> confdefs.h <<\EOF
  1324. #define EWOULDBLOCK EAGAIN
  1325. EOF
  1326. )
  1327. IU_CHECK_DECL(errno, #include <errno.h>)
  1328.  
  1329. # __P is the standard name for the ansi-or-not-ansi arg-decl macro.
  1330. # We define our own version in <config.h> if the system doesn't supply one.
  1331. IU_CHECK_MACRO(__P,
  1332.    #ifdef HAVE_SYS_CDEFS_H
  1333.     #include <sys/cdefs.h>
  1334.     #endif )
  1335.  
  1336. # libutil is a 4.4BSD library that defines several functions handy for
  1337. # inetutil daemons, doing such things as utmp frobbing, and pty setup.
  1338. echo $ac_n "checking for -lutil""... $ac_c" 1>&6
  1339. ac_lib_var=`echo util'_'logout | tr './+\055' '__p_'`
  1340. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1341.   echo $ac_n "(cached) $ac_c" 1>&6
  1342. else
  1343.   ac_save_LIBS="$LIBS"
  1344. LIBS="-lutil  $LIBS"
  1345. cat > conftest.$ac_ext <<EOF
  1346. #line 1347 "configure"
  1347. #include "confdefs.h"
  1348. /* Override any gcc2 internal prototype to avoid an error.  */
  1349. /* We use char because int might match the return type of a gcc2
  1350.     builtin and then its argument prototype would still apply.  */
  1351. char logout();
  1352.  
  1353. int main() { t(); return 0; }
  1354. int t() {
  1355. logout()
  1356. ; return 0; }
  1357. EOF
  1358. if { (eval echo configure:1359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1359.   rm -rf conftest*
  1360.   eval "ac_cv_lib_$ac_lib_var=yes"
  1361. else
  1362.   rm -rf conftest*
  1363.   eval "ac_cv_lib_$ac_lib_var=no"
  1364. fi
  1365. rm -f conftest*
  1366. LIBS="$ac_save_LIBS"
  1367.  
  1368. fi
  1369. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1370.   echo "$ac_t""yes" 1>&6
  1371.   LIBUTIL=-lutil
  1372. else
  1373.   echo "$ac_t""no" 1>&6
  1374. fi
  1375.  
  1376.  
  1377. # Look for the functions typically defined by libutil (which of course may
  1378. # not actually be in libutil), and and use our own versions if necesary.
  1379. _SAVE_LIBS="$LIBS"
  1380. LIBS="$LIBUTIL $LIBS"
  1381. for ac_func in login logout logwtmp openpty forkpty
  1382. do
  1383. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1384. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1385.   echo $ac_n "(cached) $ac_c" 1>&6
  1386. else
  1387.   cat > conftest.$ac_ext <<EOF
  1388. #line 1389 "configure"
  1389. #include "confdefs.h"
  1390. /* System header to define __stub macros and hopefully few prototypes,
  1391.     which can conflict with char $ac_func(); below.  */
  1392. #include <assert.h>
  1393. /* Override any gcc2 internal prototype to avoid an error.  */
  1394. /* We use char because int might match the return type of a gcc2
  1395.     builtin and then its argument prototype would still apply.  */
  1396. char $ac_func();
  1397.  
  1398. int main() { t(); return 0; }
  1399. int t() {
  1400.  
  1401. /* The GNU C library defines this for functions which it implements
  1402.     to always fail with ENOSYS.  Some functions are actually named
  1403.     something starting with __ and the normal name is an alias.  */
  1404. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1405. choke me
  1406. #else
  1407. $ac_func();
  1408. #endif
  1409.  
  1410. ; return 0; }
  1411. EOF
  1412. if { (eval echo configure:1413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1413.   rm -rf conftest*
  1414.   eval "ac_cv_func_$ac_func=yes"
  1415. else
  1416.   rm -rf conftest*
  1417.   eval "ac_cv_func_$ac_func=no"
  1418. fi
  1419. rm -f conftest*
  1420.  
  1421. fi
  1422. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1423.   echo "$ac_t""yes" 1>&6
  1424.   :
  1425. else
  1426.   echo "$ac_t""no" 1>&6
  1427. LIBOBJS="$LIBOBJS ${ac_func}.o"
  1428. fi
  1429.  
  1430. done
  1431.  
  1432. LIBS="$_SAVE_LIBS"
  1433.  
  1434. # See if `weak refs' are possible; these make it possible (with shared
  1435. # libraries) to check for the existance of a standard function at run-time
  1436. # instead of compile time, which is very handy for distributing binary
  1437. # version programs that automatically adapt -- in inetutils case, to whether
  1438. # or not crypt is available.
  1439. IU_CHECK_WEAK_REFS
  1440.  
  1441. # See if there's a separate libcrypt (many systems put crypt there)
  1442. echo $ac_n "checking for -lcrypt""... $ac_c" 1>&6
  1443. ac_lib_var=`echo crypt'_'crypt | tr './+\055' '__p_'`
  1444. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1445.   echo $ac_n "(cached) $ac_c" 1>&6
  1446. else
  1447.   ac_save_LIBS="$LIBS"
  1448. LIBS="-lcrypt  $LIBS"
  1449. cat > conftest.$ac_ext <<EOF
  1450. #line 1451 "configure"
  1451. #include "confdefs.h"
  1452. /* Override any gcc2 internal prototype to avoid an error.  */
  1453. /* We use char because int might match the return type of a gcc2
  1454.     builtin and then its argument prototype would still apply.  */
  1455. char crypt();
  1456.  
  1457. int main() { t(); return 0; }
  1458. int t() {
  1459. crypt()
  1460. ; return 0; }
  1461. EOF
  1462. if { (eval echo configure:1463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1463.   rm -rf conftest*
  1464.   eval "ac_cv_lib_$ac_lib_var=yes"
  1465. else
  1466.   rm -rf conftest*
  1467.   eval "ac_cv_lib_$ac_lib_var=no"
  1468. fi
  1469. rm -f conftest*
  1470. LIBS="$ac_save_LIBS"
  1471.  
  1472. fi
  1473. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1474.   echo "$ac_t""yes" 1>&6
  1475.   LIBCRYPT=-lcrypt
  1476. else
  1477.   echo "$ac_t""no" 1>&6
  1478. fi
  1479.  
  1480.  
  1481. # Look for the crypt function itself (in libcrypt if possible)
  1482. _SAVE_LIBS="$LIBS"
  1483. LIBS="$LIBCRYPT $LIBS"
  1484. for ac_func in crypt
  1485. do
  1486. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1487. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1488.   echo $ac_n "(cached) $ac_c" 1>&6
  1489. else
  1490.   cat > conftest.$ac_ext <<EOF
  1491. #line 1492 "configure"
  1492. #include "confdefs.h"
  1493. /* System header to define __stub macros and hopefully few prototypes,
  1494.     which can conflict with char $ac_func(); below.  */
  1495. #include <assert.h>
  1496. /* Override any gcc2 internal prototype to avoid an error.  */
  1497. /* We use char because int might match the return type of a gcc2
  1498.     builtin and then its argument prototype would still apply.  */
  1499. char $ac_func();
  1500.  
  1501. int main() { t(); return 0; }
  1502. int t() {
  1503.  
  1504. /* The GNU C library defines this for functions which it implements
  1505.     to always fail with ENOSYS.  Some functions are actually named
  1506.     something starting with __ and the normal name is an alias.  */
  1507. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1508. choke me
  1509. #else
  1510. $ac_func();
  1511. #endif
  1512.  
  1513. ; return 0; }
  1514. EOF
  1515. if { (eval echo configure:1516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1516.   rm -rf conftest*
  1517.   eval "ac_cv_func_$ac_func=yes"
  1518. else
  1519.   rm -rf conftest*
  1520.   eval "ac_cv_func_$ac_func=no"
  1521. fi
  1522. rm -f conftest*
  1523.  
  1524. fi
  1525. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1526.   echo "$ac_t""yes" 1>&6
  1527.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1528.   cat >> confdefs.h <<EOF
  1529. #define $ac_tr_func 1
  1530. EOF
  1531.  
  1532. else
  1533.   echo "$ac_t""no" 1>&6
  1534. fi
  1535. done
  1536.  
  1537. LIBS="$_SAVE_LIBS"
  1538. # ... and see if it's declared anywhere
  1539. IU_CHECK_DECL(crypt, #include <unistd.h>)
  1540.  
  1541. # Look for the posix SEEK_ macros (for lseek), and if not found, try the
  1542. # similar berkeley L_ macros; if neither can be found, use the classic unix
  1543. # values.
  1544. IU_CHECK_MACRO(SEEK_ macros,
  1545.   #include <unistd.h>, SEEK_SET SEEK_CUR SEEK_END,
  1546.   :,
  1547.   IU_CHECK_MACRO(L_ seek macros,
  1548.     #include <unistd.h>, L_SET L_INCR L_XTND,
  1549.     cat >> confdefs.h <<\EOF
  1550. #define SEEK_SET L_SET
  1551. EOF
  1552.  
  1553.     cat >> confdefs.h <<\EOF
  1554. #define SEEK_CUR L_INCR
  1555. EOF
  1556.  
  1557.     cat >> confdefs.h <<\EOF
  1558. #define SEEK_END L_XTND
  1559. EOF
  1560. ,
  1561.     cat >> confdefs.h <<\EOF
  1562. #define SEEK_SET 0
  1563. EOF
  1564.  
  1565.     cat >> confdefs.h <<\EOF
  1566. #define SEEK_CUR 1
  1567. EOF
  1568.  
  1569.     cat >> confdefs.h <<\EOF
  1570. #define SEEK_END 2
  1571. EOF
  1572. ))
  1573.  
  1574. # See where to find fd_set (bit-vectors for select) manipulation macros.
  1575. IU_CHECK_MACRO(fd_set macros, #include <sys/types.h>,
  1576.   FD_ZERO FD_CLR FD_SET FD_ISSET)
  1577. if test "$inetutils_cv_fd_set_macros" = no; then
  1578.   IU_CHECK_MACRO(fd_set macros in <sys/time.h>, #include <sys/time.h>,
  1579.     FD_ZERO FD_CLR FD_SET FD_ISSET)
  1580. fi
  1581.  
  1582. # See if stat includes sub-second time information (the st_?timespec form is
  1583. # from bsd, and the st_?time_usec form is used by the hurd; the latter will
  1584. # eventually be replaced by the former).
  1585. IU_CHECK_STRUCT_FIELD(stat, st_mtimespec,
  1586.    #include <sys/types.h>
  1587.     #include <sys/stat.h> ,
  1588.   :,
  1589.   IU_CHECK_STRUCT_FIELD(stat, st_mtime_usec,
  1590.      #include <sys/types.h>
  1591.       #include <sys/stat.h>))
  1592.  
  1593. # See if a termcap library is available (under one of several names)
  1594. IU_LIB_TERMCAP
  1595. # If not, add a bogus version of tgetent to libinetutils, as that's the only
  1596. # function actually used (to check terminal type validity), modulo any
  1597. # dependencies from curses.
  1598. if test -z "$LIBTERMCAP"; then
  1599.   # Some packages include termcap just ;
  1600.   # for those cases, we really don't need termcap.
  1601.   LIBOBJS="$LIBOBJS stub_tgetent.o"
  1602. fi
  1603.  
  1604. # Only talk uses curses, so only check for it if we want that
  1605. if test "$enable_talk" != no; then
  1606.   IU_LIB_CURSES
  1607. fi
  1608. if test "$enable_talk" = yes -a "$ac_cv_lib_curses_initscr" != yes; then
  1609.   echo "configure: warning: curses is not available" 1>&2
  1610. fi
  1611. enable_talk="$ac_cv_lib_curses_initscr"
  1612. if test "$enable_talk" = yes; then
  1613.   SERVERS="$SERVERS talkd"
  1614.   CLIENTS="$CLIENTS talk"
  1615.   # We may need our own definition for struct osockaddr (equivalent to the
  1616.   # old 4.3BSD struct sockaddr, and used in grotty bsd talk protocol)
  1617.   IU_CHECK_TYPE(struct osockaddr,
  1618.      #include <sys/types.h>
  1619.       #include <sys/socket.h> ,
  1620.     :, cat >> confdefs.h <<\EOF
  1621. #define HAVE_OSOCKADDR_H 1
  1622. EOF
  1623.  INCLUDES="$INCLUDES osockaddr.h")
  1624. fi
  1625. # SUBDIRS gets talk subdirs regardless of whether we're building them
  1626. SUBDIRS="$SUBDIRS talkd talk"
  1627.  
  1628. # Look for a system `glob' function, and use our own if we can't find one (or
  1629. # if the system one is missing features we need).
  1630. sys_glob=no
  1631. if test "$ac_cv_header_glob_h" = yes; then
  1632.   echo $ac_n "checking for -lglob""... $ac_c" 1>&6
  1633. ac_lib_var=`echo glob'_'glob | tr './+\055' '__p_'`
  1634. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1635.   echo $ac_n "(cached) $ac_c" 1>&6
  1636. else
  1637.   ac_save_LIBS="$LIBS"
  1638. LIBS="-lglob  $LIBS"
  1639. cat > conftest.$ac_ext <<EOF
  1640. #line 1641 "configure"
  1641. #include "confdefs.h"
  1642. /* Override any gcc2 internal prototype to avoid an error.  */
  1643. /* We use char because int might match the return type of a gcc2
  1644.     builtin and then its argument prototype would still apply.  */
  1645. char glob();
  1646.  
  1647. int main() { t(); return 0; }
  1648. int t() {
  1649. glob()
  1650. ; return 0; }
  1651. EOF
  1652. if { (eval echo configure:1653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1653.   rm -rf conftest*
  1654.   eval "ac_cv_lib_$ac_lib_var=yes"
  1655. else
  1656.   rm -rf conftest*
  1657.   eval "ac_cv_lib_$ac_lib_var=no"
  1658. fi
  1659. rm -f conftest*
  1660. LIBS="$ac_save_LIBS"
  1661.  
  1662. fi
  1663. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1664.   echo "$ac_t""yes" 1>&6
  1665.   LIBGLOB=-lglob
  1666. else
  1667.   echo "$ac_t""no" 1>&6
  1668. fi
  1669.  
  1670.   _SAVE_LIBS="$LIBS"
  1671.   LIBS="$LIBGLOB $LIBS"
  1672.   echo $ac_n "checking for glob""... $ac_c" 1>&6
  1673. if eval "test \"`echo '$''{'ac_cv_func_glob'+set}'`\" = set"; then
  1674.   echo $ac_n "(cached) $ac_c" 1>&6
  1675. else
  1676.   cat > conftest.$ac_ext <<EOF
  1677. #line 1678 "configure"
  1678. #include "confdefs.h"
  1679. /* System header to define __stub macros and hopefully few prototypes,
  1680.     which can conflict with char glob(); below.  */
  1681. #include <assert.h>
  1682. /* Override any gcc2 internal prototype to avoid an error.  */
  1683. /* We use char because int might match the return type of a gcc2
  1684.     builtin and then its argument prototype would still apply.  */
  1685. char glob();
  1686.  
  1687. int main() { t(); return 0; }
  1688. int t() {
  1689.  
  1690. /* The GNU C library defines this for functions which it implements
  1691.     to always fail with ENOSYS.  Some functions are actually named
  1692.     something starting with __ and the normal name is an alias.  */
  1693. #if defined (__stub_glob) || defined (__stub___glob)
  1694. choke me
  1695. #else
  1696. glob();
  1697. #endif
  1698.  
  1699. ; return 0; }
  1700. EOF
  1701. if { (eval echo configure:1702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1702.   rm -rf conftest*
  1703.   eval "ac_cv_func_glob=yes"
  1704. else
  1705.   rm -rf conftest*
  1706.   eval "ac_cv_func_glob=no"
  1707. fi
  1708. rm -f conftest*
  1709.  
  1710. fi
  1711. if eval "test \"`echo '$ac_cv_func_'glob`\" = yes"; then
  1712.   echo "$ac_t""yes" 1>&6
  1713.   IU_CHECK_MACRO(system glob is ok,
  1714.       #include <glob.h>, GLOB_BRACE GLOB_TILDE,
  1715.       sys_glob=yes)
  1716. else
  1717.   echo "$ac_t""no" 1>&6
  1718. fi
  1719.  
  1720.   LIBS="$_SAVE_LIBS"
  1721. fi
  1722. if test "$sys_glob" != yes; then
  1723.   subdirs="glob"
  1724.  
  1725.   LINK_SRCS="$LINK_SRCS glob/glob.h"
  1726.   LINK_DSTS="$LINK_DSTS include/glob.h"
  1727.   LIBGLOB="-L../glob -lglob"
  1728. fi
  1729.  
  1730.  
  1731. if test "$enable_encryption" = yes -o "$enable_authentication" = yes; then
  1732.   # Look for Kerberos and DES libraries
  1733.   echo $ac_n "checking for -lkrb""... $ac_c" 1>&6
  1734. ac_lib_var=`echo krb'_'krb_mk_req | tr './+\055' '__p_'`
  1735. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1736.   echo $ac_n "(cached) $ac_c" 1>&6
  1737. else
  1738.   ac_save_LIBS="$LIBS"
  1739. LIBS="-lkrb  $LIBS"
  1740. cat > conftest.$ac_ext <<EOF
  1741. #line 1742 "configure"
  1742. #include "confdefs.h"
  1743. /* Override any gcc2 internal prototype to avoid an error.  */
  1744. /* We use char because int might match the return type of a gcc2
  1745.     builtin and then its argument prototype would still apply.  */
  1746. char krb_mk_req();
  1747.  
  1748. int main() { t(); return 0; }
  1749. int t() {
  1750. krb_mk_req()
  1751. ; return 0; }
  1752. EOF
  1753. if { (eval echo configure:1754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1754.   rm -rf conftest*
  1755.   eval "ac_cv_lib_$ac_lib_var=yes"
  1756. else
  1757.   rm -rf conftest*
  1758.   eval "ac_cv_lib_$ac_lib_var=no"
  1759. fi
  1760. rm -f conftest*
  1761. LIBS="$ac_save_LIBS"
  1762.  
  1763. fi
  1764. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1765.   echo "$ac_t""yes" 1>&6
  1766.   LIBAUTH=-lkrb
  1767. else
  1768.   echo "$ac_t""no" 1>&6
  1769. fi
  1770.  
  1771.   echo $ac_n "checking for -ldes""... $ac_c" 1>&6
  1772. ac_lib_var=`echo des'_'des_key_sched | tr './+\055' '__p_'`
  1773. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1774.   echo $ac_n "(cached) $ac_c" 1>&6
  1775. else
  1776.   ac_save_LIBS="$LIBS"
  1777. LIBS="-ldes  $LIBS"
  1778. cat > conftest.$ac_ext <<EOF
  1779. #line 1780 "configure"
  1780. #include "confdefs.h"
  1781. /* Override any gcc2 internal prototype to avoid an error.  */
  1782. /* We use char because int might match the return type of a gcc2
  1783.     builtin and then its argument prototype would still apply.  */
  1784. char des_key_sched();
  1785.  
  1786. int main() { t(); return 0; }
  1787. int t() {
  1788. des_key_sched()
  1789. ; return 0; }
  1790. EOF
  1791. if { (eval echo configure:1792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1792.   rm -rf conftest*
  1793.   eval "ac_cv_lib_$ac_lib_var=yes"
  1794. else
  1795.   rm -rf conftest*
  1796.   eval "ac_cv_lib_$ac_lib_var=no"
  1797. fi
  1798. rm -f conftest*
  1799. LIBS="$ac_save_LIBS"
  1800.  
  1801. fi
  1802. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1803.   echo "$ac_t""yes" 1>&6
  1804.   LIBAUTH="$LIBAUTH -ldes"
  1805. else
  1806.   echo "$ac_t""no" 1>&6
  1807. fi
  1808.  
  1809. fi
  1810.  
  1811. # define CPP macros that enable auth/encrypt code
  1812. test "$enable_authentication" = yes && cat >> confdefs.h <<\EOF
  1813. #define AUTHENTICATION 1
  1814. EOF
  1815.  
  1816. test "$enable_encryption" = yes     && cat >> confdefs.h <<\EOF
  1817. #define ENCRYPTION 1
  1818. EOF
  1819.  
  1820. test "$enable_authentication" = yes -a "$ac_cv_lib_krb_krb_mk_req" = yes \
  1821.   && cat >> confdefs.h <<\EOF
  1822. #define KRB4 1
  1823. EOF
  1824.  
  1825. test "$enable_encryption" = yes -a "$ac_cv_lib_des_des_key_sched" = yes \
  1826.   && cat >> confdefs.h <<\EOF
  1827. #define DES_ENCRYPTION 1
  1828. EOF
  1829.  
  1830.  
  1831. # We use our own version of getopt (including our own header file) if the
  1832. # system one doesn't have getopt_long.
  1833. echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
  1834. if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
  1835.   echo $ac_n "(cached) $ac_c" 1>&6
  1836. else
  1837.   cat > conftest.$ac_ext <<EOF
  1838. #line 1839 "configure"
  1839. #include "confdefs.h"
  1840. /* System header to define __stub macros and hopefully few prototypes,
  1841.     which can conflict with char getopt_long(); below.  */
  1842. #include <assert.h>
  1843. /* Override any gcc2 internal prototype to avoid an error.  */
  1844. /* We use char because int might match the return type of a gcc2
  1845.     builtin and then its argument prototype would still apply.  */
  1846. char getopt_long();
  1847.  
  1848. int main() { t(); return 0; }
  1849. int t() {
  1850.  
  1851. /* The GNU C library defines this for functions which it implements
  1852.     to always fail with ENOSYS.  Some functions are actually named
  1853.     something starting with __ and the normal name is an alias.  */
  1854. #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
  1855. choke me
  1856. #else
  1857. getopt_long();
  1858. #endif
  1859.  
  1860. ; return 0; }
  1861. EOF
  1862. if { (eval echo configure:1863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1863.   rm -rf conftest*
  1864.   eval "ac_cv_func_getopt_long=yes"
  1865. else
  1866.   rm -rf conftest*
  1867.   eval "ac_cv_func_getopt_long=no"
  1868. fi
  1869. rm -f conftest*
  1870.  
  1871. fi
  1872. if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
  1873.   echo "$ac_t""yes" 1>&6
  1874.   :
  1875. else
  1876.   echo "$ac_t""no" 1>&6
  1877. INCLUDES="$INCLUDES getopt.h"
  1878.   LIBOBJS="$LIBOBJS getopt.o getopt1.o"
  1879. fi
  1880.  
  1881.  
  1882. # Supply versions of the BSD error reporting functions if the system doesn't
  1883. echo $ac_n "checking for verrx""... $ac_c" 1>&6
  1884. if eval "test \"`echo '$''{'ac_cv_func_verrx'+set}'`\" = set"; then
  1885.   echo $ac_n "(cached) $ac_c" 1>&6
  1886. else
  1887.   cat > conftest.$ac_ext <<EOF
  1888. #line 1889 "configure"
  1889. #include "confdefs.h"
  1890. /* System header to define __stub macros and hopefully few prototypes,
  1891.     which can conflict with char verrx(); below.  */
  1892. #include <assert.h>
  1893. /* Override any gcc2 internal prototype to avoid an error.  */
  1894. /* We use char because int might match the return type of a gcc2
  1895.     builtin and then its argument prototype would still apply.  */
  1896. char verrx();
  1897.  
  1898. int main() { t(); return 0; }
  1899. int t() {
  1900.  
  1901. /* The GNU C library defines this for functions which it implements
  1902.     to always fail with ENOSYS.  Some functions are actually named
  1903.     something starting with __ and the normal name is an alias.  */
  1904. #if defined (__stub_verrx) || defined (__stub___verrx)
  1905. choke me
  1906. #else
  1907. verrx();
  1908. #endif
  1909.  
  1910. ; return 0; }
  1911. EOF
  1912. if { (eval echo configure:1913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1913.   rm -rf conftest*
  1914.   eval "ac_cv_func_verrx=yes"
  1915. else
  1916.   rm -rf conftest*
  1917.   eval "ac_cv_func_verrx=no"
  1918. fi
  1919. rm -f conftest*
  1920.  
  1921. fi
  1922. if eval "test \"`echo '$ac_cv_func_'verrx`\" = yes"; then
  1923.   echo "$ac_t""yes" 1>&6
  1924.   :
  1925. else
  1926.   echo "$ac_t""no" 1>&6
  1927. INCLUDES="$INCLUDES err.h"
  1928.   LIBOBJS="$LIBOBJS err.o"
  1929. fi
  1930.  
  1931.  
  1932. IU_CHECK_TYPE(struct lastlog, #include <utmp.h>)
  1933. IU_CHECK_STRUCT_FIELD(utmp, ut_type, #include <utmp.h>)
  1934. IU_CHECK_STRUCT_FIELD(utmp, ut_host, #include <utmp.h>)
  1935. IU_CHECK_STRUCT_FIELD(utmp, ut_tv, #include <utmp.h>)
  1936.  
  1937. # See if the system has strerror, and replace it if not
  1938. echo $ac_n "checking for strerror""... $ac_c" 1>&6
  1939. if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
  1940.   echo $ac_n "(cached) $ac_c" 1>&6
  1941. else
  1942.   cat > conftest.$ac_ext <<EOF
  1943. #line 1944 "configure"
  1944. #include "confdefs.h"
  1945. /* System header to define __stub macros and hopefully few prototypes,
  1946.     which can conflict with char strerror(); below.  */
  1947. #include <assert.h>
  1948. /* Override any gcc2 internal prototype to avoid an error.  */
  1949. /* We use char because int might match the return type of a gcc2
  1950.     builtin and then its argument prototype would still apply.  */
  1951. char strerror();
  1952.  
  1953. int main() { t(); return 0; }
  1954. int t() {
  1955.  
  1956. /* The GNU C library defines this for functions which it implements
  1957.     to always fail with ENOSYS.  Some functions are actually named
  1958.     something starting with __ and the normal name is an alias.  */
  1959. #if defined (__stub_strerror) || defined (__stub___strerror)
  1960. choke me
  1961. #else
  1962. strerror();
  1963. #endif
  1964.  
  1965. ; return 0; }
  1966. EOF
  1967. if { (eval echo configure:1968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1968.   rm -rf conftest*
  1969.   eval "ac_cv_func_strerror=yes"
  1970. else
  1971.   rm -rf conftest*
  1972.   eval "ac_cv_func_strerror=no"
  1973. fi
  1974. rm -f conftest*
  1975.  
  1976. fi
  1977. if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
  1978.   echo "$ac_t""yes" 1>&6
  1979.   :
  1980. else
  1981.   echo "$ac_t""no" 1>&6
  1982. LIBOBJS="$LIBOBJS strerror.o"
  1983. fi
  1984.  
  1985. if test "$ac_cv_func_strerror" = no; then
  1986.   # No strerror, so see if the SYS_ERRLIST variable can be used by ours
  1987.   echo $ac_n "checking for sys_errlist""... $ac_c" 1>&6
  1988. if eval "test \"`echo '$''{'ac_cv_func_sys_errlist'+set}'`\" = set"; then
  1989.   echo $ac_n "(cached) $ac_c" 1>&6
  1990. else
  1991.   cat > conftest.$ac_ext <<EOF
  1992. #line 1993 "configure"
  1993. #include "confdefs.h"
  1994. /* System header to define __stub macros and hopefully few prototypes,
  1995.     which can conflict with char sys_errlist(); below.  */
  1996. #include <assert.h>
  1997. /* Override any gcc2 internal prototype to avoid an error.  */
  1998. /* We use char because int might match the return type of a gcc2
  1999.     builtin and then its argument prototype would still apply.  */
  2000. char sys_errlist();
  2001.  
  2002. int main() { t(); return 0; }
  2003. int t() {
  2004.  
  2005. /* The GNU C library defines this for functions which it implements
  2006.     to always fail with ENOSYS.  Some functions are actually named
  2007.     something starting with __ and the normal name is an alias.  */
  2008. #if defined (__stub_sys_errlist) || defined (__stub___sys_errlist)
  2009. choke me
  2010. #else
  2011. sys_errlist();
  2012. #endif
  2013.  
  2014. ; return 0; }
  2015. EOF
  2016. if { (eval echo configure:2017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2017.   rm -rf conftest*
  2018.   eval "ac_cv_func_sys_errlist=yes"
  2019. else
  2020.   rm -rf conftest*
  2021.   eval "ac_cv_func_sys_errlist=no"
  2022. fi
  2023. rm -f conftest*
  2024.  
  2025. fi
  2026. if eval "test \"`echo '$ac_cv_func_'sys_errlist`\" = yes"; then
  2027.   echo "$ac_t""yes" 1>&6
  2028.   :
  2029. else
  2030.   echo "$ac_t""no" 1>&6
  2031. fi
  2032.  
  2033.   if test "$ac_cv_func_sys_errlist" = yes; then
  2034.     IU_CHECK_DECL(sys_errlist, 
  2035.       #include <stdio.h>
  2036.       #ifdef HAVE_ERRNO_H
  2037.       #include <errno.h>
  2038.       #endif)
  2039.   fi
  2040. fi
  2041.  
  2042. # See if the system has hstrerror, and replace it if not
  2043. echo $ac_n "checking for hstrerror""... $ac_c" 1>&6
  2044. if eval "test \"`echo '$''{'ac_cv_func_hstrerror'+set}'`\" = set"; then
  2045.   echo $ac_n "(cached) $ac_c" 1>&6
  2046. else
  2047.   cat > conftest.$ac_ext <<EOF
  2048. #line 2049 "configure"
  2049. #include "confdefs.h"
  2050. /* System header to define __stub macros and hopefully few prototypes,
  2051.     which can conflict with char hstrerror(); below.  */
  2052. #include <assert.h>
  2053. /* Override any gcc2 internal prototype to avoid an error.  */
  2054. /* We use char because int might match the return type of a gcc2
  2055.     builtin and then its argument prototype would still apply.  */
  2056. char hstrerror();
  2057.  
  2058. int main() { t(); return 0; }
  2059. int t() {
  2060.  
  2061. /* The GNU C library defines this for functions which it implements
  2062.     to always fail with ENOSYS.  Some functions are actually named
  2063.     something starting with __ and the normal name is an alias.  */
  2064. #if defined (__stub_hstrerror) || defined (__stub___hstrerror)
  2065. choke me
  2066. #else
  2067. hstrerror();
  2068. #endif
  2069.  
  2070. ; return 0; }
  2071. EOF
  2072. if { (eval echo configure:2073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2073.   rm -rf conftest*
  2074.   eval "ac_cv_func_hstrerror=yes"
  2075. else
  2076.   rm -rf conftest*
  2077.   eval "ac_cv_func_hstrerror=no"
  2078. fi
  2079. rm -f conftest*
  2080.  
  2081. fi
  2082. if eval "test \"`echo '$ac_cv_func_'hstrerror`\" = yes"; then
  2083.   echo "$ac_t""yes" 1>&6
  2084.   :
  2085. else
  2086.   echo "$ac_t""no" 1>&6
  2087. LIBOBJS="$LIBOBJS hstrerror.o"
  2088. fi
  2089.  
  2090. if test "$ac_cv_func_hstrerror" = yes; then
  2091.   IU_CHECK_DECL(hstrerror, #include <netdb.h>)
  2092. else
  2093.   # No hstrerror, so see if the H_ERRLIST variable can be used by ours
  2094.   echo $ac_n "checking for h_errlist""... $ac_c" 1>&6
  2095. if eval "test \"`echo '$''{'ac_cv_func_h_errlist'+set}'`\" = set"; then
  2096.   echo $ac_n "(cached) $ac_c" 1>&6
  2097. else
  2098.   cat > conftest.$ac_ext <<EOF
  2099. #line 2100 "configure"
  2100. #include "confdefs.h"
  2101. /* System header to define __stub macros and hopefully few prototypes,
  2102.     which can conflict with char h_errlist(); below.  */
  2103. #include <assert.h>
  2104. /* Override any gcc2 internal prototype to avoid an error.  */
  2105. /* We use char because int might match the return type of a gcc2
  2106.     builtin and then its argument prototype would still apply.  */
  2107. char h_errlist();
  2108.  
  2109. int main() { t(); return 0; }
  2110. int t() {
  2111.  
  2112. /* The GNU C library defines this for functions which it implements
  2113.     to always fail with ENOSYS.  Some functions are actually named
  2114.     something starting with __ and the normal name is an alias.  */
  2115. #if defined (__stub_h_errlist) || defined (__stub___h_errlist)
  2116. choke me
  2117. #else
  2118. h_errlist();
  2119. #endif
  2120.  
  2121. ; return 0; }
  2122. EOF
  2123. if { (eval echo configure:2124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2124.   rm -rf conftest*
  2125.   eval "ac_cv_func_h_errlist=yes"
  2126. else
  2127.   rm -rf conftest*
  2128.   eval "ac_cv_func_h_errlist=no"
  2129. fi
  2130. rm -f conftest*
  2131.  
  2132. fi
  2133. if eval "test \"`echo '$ac_cv_func_'h_errlist`\" = yes"; then
  2134.   echo "$ac_t""yes" 1>&6
  2135.   :
  2136. else
  2137.   echo "$ac_t""no" 1>&6
  2138. fi
  2139.  
  2140.   if test "$ac_cv_func_h_errlist" = yes; then
  2141.     IU_CHECK_DECL(h_errlist, #include <netdb.h>)
  2142.   fi
  2143. fi
  2144. if test "$ac_cv_func_hstrerror" = yes -o "$ac_cv_func_h_errlist" = yes; then
  2145.   # If there's a system hstrerror, or we can reasonably replace it, say so.
  2146.   # We still provide some definition, regardless, but this allows people to use
  2147.   # a reasonable alternative if the situation allows, rather than using a
  2148.   # degenerate version that only says `Host lookup error N'.
  2149.   cat >> confdefs.h <<\EOF
  2150. #define HAVE_HSTRERROR 1
  2151. EOF
  2152.  
  2153. fi
  2154.  
  2155. # Checks return type of signal handlers
  2156. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  2157. if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  2158.   echo $ac_n "(cached) $ac_c" 1>&6
  2159. else
  2160.   cat > conftest.$ac_ext <<EOF
  2161. #line 2162 "configure"
  2162. #include "confdefs.h"
  2163. #include <sys/types.h>
  2164. #include <signal.h>
  2165. #ifdef signal
  2166. #undef signal
  2167. #endif
  2168. #ifdef __cplusplus
  2169. extern "C" void (*signal (int, void (*)(int)))(int);
  2170. #else
  2171. void (*signal ()) ();
  2172. #endif
  2173.  
  2174. int main() { return 0; }
  2175. int t() {
  2176. int i;
  2177. ; return 0; }
  2178. EOF
  2179. if { (eval echo configure:2180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2180.   rm -rf conftest*
  2181.   ac_cv_type_signal=void
  2182. else
  2183.   rm -rf conftest*
  2184.   ac_cv_type_signal=int
  2185. fi
  2186. rm -f conftest*
  2187.  
  2188. fi
  2189.  
  2190. echo "$ac_t""$ac_cv_type_signal" 1>&6
  2191. cat >> confdefs.h <<EOF
  2192. #define RETSIGTYPE $ac_cv_type_signal
  2193. EOF
  2194.  
  2195.  
  2196. # sig_t is the type of a signal handler (4.4BSD)
  2197. IU_CHECK_TYPE(sig_t,
  2198.    #include <sys/types.h>
  2199.     #include <sys/signal.h> )
  2200.  
  2201. # See if the __PROGNAME variable is defined, otherwise use our own.
  2202. echo $ac_n "checking for __progname""... $ac_c" 1>&6
  2203. if eval "test \"`echo '$''{'ac_cv_func___progname'+set}'`\" = set"; then
  2204.   echo $ac_n "(cached) $ac_c" 1>&6
  2205. else
  2206.   cat > conftest.$ac_ext <<EOF
  2207. #line 2208 "configure"
  2208. #include "confdefs.h"
  2209. /* System header to define __stub macros and hopefully few prototypes,
  2210.     which can conflict with char __progname(); below.  */
  2211. #include <assert.h>
  2212. /* Override any gcc2 internal prototype to avoid an error.  */
  2213. /* We use char because int might match the return type of a gcc2
  2214.     builtin and then its argument prototype would still apply.  */
  2215. char __progname();
  2216.  
  2217. int main() { t(); return 0; }
  2218. int t() {
  2219.  
  2220. /* The GNU C library defines this for functions which it implements
  2221.     to always fail with ENOSYS.  Some functions are actually named
  2222.     something starting with __ and the normal name is an alias.  */
  2223. #if defined (__stub___progname) || defined (__stub_____progname)
  2224. choke me
  2225. #else
  2226. __progname();
  2227. #endif
  2228.  
  2229. ; return 0; }
  2230. EOF
  2231. if { (eval echo configure:2232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2232.   rm -rf conftest*
  2233.   eval "ac_cv_func___progname=yes"
  2234. else
  2235.   rm -rf conftest*
  2236.   eval "ac_cv_func___progname=no"
  2237. fi
  2238. rm -f conftest*
  2239.  
  2240. fi
  2241. if eval "test \"`echo '$ac_cv_func_'__progname`\" = yes"; then
  2242.   echo "$ac_t""yes" 1>&6
  2243.   cat >> confdefs.h <<\EOF
  2244. #define HAVE___PROGNAME 1
  2245. EOF
  2246.  
  2247. else
  2248.   echo "$ac_t""no" 1>&6
  2249. LIBOBJS="$LIBOBJS __progname.o"
  2250. fi
  2251.  
  2252.  
  2253. # See if snprintf exists, otherwise just use a bogus version
  2254. echo $ac_n "checking for snprintf""... $ac_c" 1>&6
  2255. if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then
  2256.   echo $ac_n "(cached) $ac_c" 1>&6
  2257. else
  2258.   cat > conftest.$ac_ext <<EOF
  2259. #line 2260 "configure"
  2260. #include "confdefs.h"
  2261. /* System header to define __stub macros and hopefully few prototypes,
  2262.     which can conflict with char snprintf(); below.  */
  2263. #include <assert.h>
  2264. /* Override any gcc2 internal prototype to avoid an error.  */
  2265. /* We use char because int might match the return type of a gcc2
  2266.     builtin and then its argument prototype would still apply.  */
  2267. char snprintf();
  2268.  
  2269. int main() { t(); return 0; }
  2270. int t() {
  2271.  
  2272. /* The GNU C library defines this for functions which it implements
  2273.     to always fail with ENOSYS.  Some functions are actually named
  2274.     something starting with __ and the normal name is an alias.  */
  2275. #if defined (__stub_snprintf) || defined (__stub___snprintf)
  2276. choke me
  2277. #else
  2278. snprintf();
  2279. #endif
  2280.  
  2281. ; return 0; }
  2282. EOF
  2283. if { (eval echo configure:2284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2284.   rm -rf conftest*
  2285.   eval "ac_cv_func_snprintf=yes"
  2286. else
  2287.   rm -rf conftest*
  2288.   eval "ac_cv_func_snprintf=no"
  2289. fi
  2290. rm -f conftest*
  2291.  
  2292. fi
  2293. if eval "test \"`echo '$ac_cv_func_'snprintf`\" = yes"; then
  2294.   echo "$ac_t""yes" 1>&6
  2295.   cat >> confdefs.h <<\EOF
  2296. #define HAVE_SNPRINTF 1
  2297. EOF
  2298.  
  2299. else
  2300.   echo "$ac_t""no" 1>&6
  2301. LIBOBJS="$LIBOBJS snprintf.o"
  2302. fi
  2303.  
  2304.  
  2305. # SERVERS_OR_CLIENTS is the default set of things to build, and holds the
  2306. # union of SERVERS and CLIENTS (we set it way down here to allow talk subdirs
  2307. # to have been added to those variables by other code).
  2308. SERVERS_OR_CLIENTS=''
  2309. if test "$enable_servers" = yes; then
  2310.   SERVERS_OR_CLIENTS="$SERVERS"
  2311. fi
  2312. if test "$enable_clients" = yes; then
  2313.   SERVERS_OR_CLIENTS="$SERVERS_OR_CLIENTS $CLIENTS"
  2314. fi
  2315.  
  2316.  
  2317. # Configure paths used by inetutils programs.  See the file `paths' for
  2318. # details.
  2319. PATHDEFS_MAKE=pathdefs.make
  2320. PATHS_DEFS=paths.defs
  2321. IU_CONFIG_PATHS($srcdir/paths, PATHDEFS_MAKE, PATHS_DEFS)
  2322.  
  2323. # Supply optional header files by linking a copy into the object include dir
  2324. LINK_SRCS="$LINK_SRCS `for I in $INCLUDES; do echo $ac_n ' 'headers/$I$ac_c; done`"
  2325. LINK_DSTS="$LINK_DSTS `for I in $INCLUDES; do echo $ac_n ' 'include/$I$ac_c; done`"
  2326.  
  2327.  
  2328. SUBDIR_MAKEFILES="`for D in $SUBDIRS; do echo $ac_n ' '$D/Makefile$ac_c; done`"
  2329. trap '' 1 2 15
  2330. cat > confcache <<\EOF
  2331. # This file is a shell script that caches the results of configure
  2332. # tests run on this system so they can be shared between configure
  2333. # scripts and configure runs.  It is not useful on other systems.
  2334. # If it contains results you don't want to keep, you may remove or edit it.
  2335. #
  2336. # By default, configure uses ./config.cache as the cache file,
  2337. # creating it if it does not exist already.  You can give configure
  2338. # the --cache-file=FILE option to use a different cache file; that is
  2339. # what configure does when it calls configure scripts in
  2340. # subdirectories, so they share the cache.
  2341. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  2342. # config.status only pays attention to the cache file if you give it the
  2343. # --recheck option to rerun configure.
  2344. #
  2345. EOF
  2346. # Ultrix sh set writes to stderr and can't be redirected directly,
  2347. # and sets the high bit in the cache file unless we assign to the vars.
  2348. (set) 2>&1 |
  2349.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  2350.   >> confcache
  2351. if cmp -s $cache_file confcache; then
  2352.   :
  2353. else
  2354.   if test -w $cache_file; then
  2355.     echo "updating cache $cache_file"
  2356.     cat confcache > $cache_file
  2357.   else
  2358.     echo "not updating unwritable cache $cache_file"
  2359.   fi
  2360. fi
  2361. rm -f confcache
  2362.  
  2363. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  2364.  
  2365. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2366. # Let make expand exec_prefix.
  2367. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2368.  
  2369. # Any assignment to VPATH causes Sun make to only execute
  2370. # the first set of double-colon rules, so remove it if not needed.
  2371. # If there is a colon in the path, we need to keep it.
  2372. if test "x$srcdir" = x.; then
  2373.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  2374. fi
  2375.  
  2376. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  2377.  
  2378. DEFS=-DHAVE_CONFIG_H
  2379.  
  2380. # Without the "./", some shells look in PATH for config.status.
  2381. : ${CONFIG_STATUS=./config.status}
  2382.  
  2383. echo creating $CONFIG_STATUS
  2384. # Some systems, like AmigaOS, won't allow you to remove a script that is
  2385. # being executed, so just move it out of the way instead.
  2386. if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  2387. cat > $CONFIG_STATUS <<EOF
  2388. #! /bin/sh
  2389. # Generated automatically by configure.
  2390. # Run this file to recreate the current configuration.
  2391. # This directory was configured as follows,
  2392. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2393. #
  2394. # $0 $ac_configure_args
  2395. #
  2396. # Compiler output produced by configure, useful for debugging
  2397. # configure, is in ./config.log if it exists.
  2398.  
  2399. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  2400. for ac_option
  2401. do
  2402.   case "\$ac_option" in
  2403.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2404.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2405.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2406.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2407.     echo "$CONFIG_STATUS generated by autoconf version 2.10"
  2408.     exit 0 ;;
  2409.   -help | --help | --hel | --he | --h)
  2410.     echo "\$ac_cs_usage"; exit 0 ;;
  2411.   *) echo "\$ac_cs_usage"; exit 1 ;;
  2412.   esac
  2413. done
  2414.  
  2415. ac_given_srcdir=$srcdir
  2416. ac_given_INSTALL="$INSTALL"
  2417.  
  2418. trap 'rm -fr `echo "Makefile config.make include/confpaths.h:headers/confpaths.h.in \
  2419.       $SUBDIR_MAKEFILES include/config.h:headers/config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  2420. EOF
  2421. cat >> $CONFIG_STATUS <<EOF
  2422.  
  2423. # Protect against being on the right side of a sed subst in config.status.
  2424. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  2425.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  2426. $ac_vpsub
  2427. $extrasub
  2428. s%@CFLAGS@%$CFLAGS%g
  2429. s%@CPPFLAGS@%$CPPFLAGS%g
  2430. s%@CXXFLAGS@%$CXXFLAGS%g
  2431. s%@DEFS@%$DEFS%g
  2432. s%@LDFLAGS@%$LDFLAGS%g
  2433. s%@LIBS@%$LIBS%g
  2434. s%@exec_prefix@%$exec_prefix%g
  2435. s%@prefix@%$prefix%g
  2436. s%@program_transform_name@%$program_transform_name%g
  2437. s%@bindir@%$bindir%g
  2438. s%@sbindir@%$sbindir%g
  2439. s%@libexecdir@%$libexecdir%g
  2440. s%@datadir@%$datadir%g
  2441. s%@sysconfdir@%$sysconfdir%g
  2442. s%@sharedstatedir@%$sharedstatedir%g
  2443. s%@localstatedir@%$localstatedir%g
  2444. s%@libdir@%$libdir%g
  2445. s%@includedir@%$includedir%g
  2446. s%@oldincludedir@%$oldincludedir%g
  2447. s%@infodir@%$infodir%g
  2448. s%@guidedir@%$guidedir%g
  2449. s%@psdir@%$psdir%g
  2450. s%@dvidir@%$dvidir%g
  2451. s%@mandir@%$mandir%g
  2452. s%@COMMON@%$COMMON%g
  2453. s%@SERVERS@%$SERVERS%g
  2454. s%@CLIENTS@%$CLIENTS%g
  2455. s%@SUBDIRS@%$SUBDIRS%g
  2456. s%@LIBOBJS@%$LIBOBJS%g
  2457. s%@SET_MAKE@%$SET_MAKE%g
  2458. s%@CC@%$CC%g
  2459. s%@CPP@%$CPP%g
  2460. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  2461. s%@INSTALL_DATA@%$INSTALL_DATA%g
  2462. s%@YACC@%$YACC%g
  2463. s%@host@%$host%g
  2464. s%@host_alias@%$host_alias%g
  2465. s%@host_cpu@%$host_cpu%g
  2466. s%@host_vendor@%$host_vendor%g
  2467. s%@host_os@%$host_os%g
  2468. s%@build@%$build%g
  2469. s%@build_alias@%$build_alias%g
  2470. s%@build_cpu@%$build_cpu%g
  2471. s%@build_vendor@%$build_vendor%g
  2472. s%@build_os@%$build_os%g
  2473. s%@AR@%$AR%g
  2474. s%@RANLIB@%$RANLIB%g
  2475. s%@RM@%$RM%g
  2476. s%@LIBUTIL@%$LIBUTIL%g
  2477. s%@LIBCRYPT@%$LIBCRYPT%g
  2478. s%@subdirs@%$subdirs%g
  2479. s%@LIBGLOB@%$LIBGLOB%g
  2480. s%@LIBAUTH@%$LIBAUTH%g
  2481. s%@SERVERS_OR_CLIENTS@%$SERVERS_OR_CLIENTS%g
  2482.  
  2483. CEOF
  2484. EOF
  2485. cat >> $CONFIG_STATUS <<EOF
  2486.  
  2487. CONFIG_FILES=\${CONFIG_FILES-"Makefile config.make include/confpaths.h:headers/confpaths.h.in \
  2488.       $SUBDIR_MAKEFILES"}
  2489. EOF
  2490. cat >> $CONFIG_STATUS <<\EOF
  2491. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  2492.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  2493.   case "$ac_file" in
  2494.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  2495.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2496.   *) ac_file_in="${ac_file}.in" ;;
  2497.   esac
  2498.  
  2499.   # Adjust relative srcdir, etc. for subdirectories.
  2500.  
  2501.   # Remove last slash and all that follows it.  Not all systems have dirname.
  2502.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2503.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2504.     # The file is in a subdirectory.
  2505.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  2506.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  2507.     # A "../" for each directory in $ac_dir_suffix.
  2508.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2509.   else
  2510.     ac_dir_suffix= ac_dots=
  2511.   fi
  2512.  
  2513.   case "$ac_given_srcdir" in
  2514.   .)  srcdir=.
  2515.       if test -z "$ac_dots"; then top_srcdir=.
  2516.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2517.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2518.   *) # Relative path.
  2519.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2520.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2521.   esac
  2522.  
  2523.   case "$ac_given_INSTALL" in
  2524.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  2525.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  2526.   esac
  2527.   echo creating "$ac_file"
  2528.   rm -f "$ac_file"
  2529.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  2530.   case "$ac_file" in
  2531.   *Makefile*) ac_comsub="1i\\
  2532. # $configure_input" ;;
  2533.   *) ac_comsub= ;;
  2534.   esac
  2535.   sed -e "$ac_comsub
  2536. s%@configure_input@%$configure_input%g
  2537. s%@srcdir@%$srcdir%g
  2538. s%@top_srcdir@%$top_srcdir%g
  2539. s%@INSTALL@%$INSTALL%g
  2540. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  2541. fi; done
  2542. rm -f conftest.subs
  2543.  
  2544. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  2545. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  2546. #
  2547. # ac_d sets the value in "#define NAME VALUE" lines.
  2548. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  2549. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  2550. ac_dC='\3'
  2551. ac_dD='%g'
  2552. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  2553. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2554. ac_uB='\([     ]\)%\1#\2define\3'
  2555. ac_uC=' '
  2556. ac_uD='\4%g'
  2557. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  2558. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2559. ac_eB='$%\1#\2define\3'
  2560. ac_eC=' '
  2561. ac_eD='%g'
  2562.  
  2563. CONFIG_HEADERS=${CONFIG_HEADERS-"include/config.h:headers/config.h.in"}
  2564. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  2565.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  2566.   case "$ac_file" in
  2567.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  2568.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2569.   *) ac_file_in="${ac_file}.in" ;;
  2570.   esac
  2571.  
  2572.   echo creating $ac_file
  2573.  
  2574.   rm -f conftest.frag conftest.in conftest.out
  2575.   cp $ac_given_srcdir/$ac_file_in conftest.in
  2576.  
  2577. EOF
  2578.  
  2579. # Transform confdefs.h into a sed script conftest.vals that substitutes
  2580. # the proper values into config.h.in to produce config.h.  And first:
  2581. # Protect against being on the right side of a sed subst in config.status.
  2582. # Protect against being in an unquoted here document in config.status.
  2583. rm -f conftest.vals
  2584. cat > conftest.hdr <<\EOF
  2585. s/[\\&%]/\\&/g
  2586. s%[\\$`]%\\&%g
  2587. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  2588. s%ac_d%ac_u%gp
  2589. s%ac_u%ac_e%gp
  2590. EOF
  2591. sed -n -f conftest.hdr confdefs.h > conftest.vals
  2592. rm -f conftest.hdr
  2593.  
  2594. # This sed command replaces #undef with comments.  This is necessary, for
  2595. # example, in the case of _POSIX_SOURCE, which is predefined and required
  2596. # on some systems where configure will not decide to define it.
  2597. cat >> conftest.vals <<\EOF
  2598. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  2599. EOF
  2600.  
  2601. # Break up conftest.vals because some shells have a limit on
  2602. # the size of here documents, and old seds have small limits too.
  2603. # Maximum number of lines to put in a single here document.
  2604. ac_max_here_lines=12
  2605.  
  2606. rm -f conftest.tail
  2607. while :
  2608. do
  2609.   ac_lines=`grep -c . conftest.vals`
  2610.   # grep -c gives empty output for an empty file on some AIX systems.
  2611.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  2612.   # Write a limited-size here document to conftest.frag.
  2613.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  2614.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  2615.   echo 'CEOF
  2616.   sed -f conftest.frag conftest.in > conftest.out
  2617.   rm -f conftest.in
  2618.   mv conftest.out conftest.in
  2619. ' >> $CONFIG_STATUS
  2620.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  2621.   rm -f conftest.vals
  2622.   mv conftest.tail conftest.vals
  2623. done
  2624. rm -f conftest.vals
  2625.  
  2626. cat >> $CONFIG_STATUS <<\EOF
  2627.   rm -f conftest.frag conftest.h
  2628.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  2629.   cat conftest.in >> conftest.h
  2630.   rm -f conftest.in
  2631.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  2632.     echo "$ac_file is unchanged"
  2633.     rm -f conftest.h
  2634.   else
  2635.     # Remove last slash and all that follows it.  Not all systems have dirname.
  2636.       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2637.       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2638.       # The file is in a subdirectory.
  2639.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  2640.     fi
  2641.     rm -f $ac_file
  2642.     mv conftest.h $ac_file
  2643.   fi
  2644. fi; done
  2645.  
  2646. EOF
  2647.  
  2648. cat >> $CONFIG_STATUS <<EOF
  2649. ac_sources="$LINK_SRCS"
  2650. ac_dests="$LINK_DSTS"
  2651. EOF
  2652.  
  2653. cat >> $CONFIG_STATUS <<\EOF
  2654. srcdir=$ac_given_srcdir
  2655. while test -n "$ac_sources"; do
  2656.   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
  2657.   set $ac_sources; ac_source=$1; shift; ac_sources=$*
  2658.  
  2659.   echo "linking $srcdir/$ac_source to $ac_dest"
  2660.  
  2661.   if test ! -r $srcdir/$ac_source; then
  2662.     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
  2663.   fi
  2664.   rm -f $ac_dest
  2665.  
  2666.   # Make relative symlinks.
  2667.   # Remove last slash and all that follows it.  Not all systems have dirname.
  2668.   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
  2669.   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
  2670.     # The dest file is in a subdirectory.
  2671.     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
  2672.     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
  2673.     # A "../" for each directory in $ac_dest_dir_suffix.
  2674.     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
  2675.   else
  2676.     ac_dest_dir_suffix= ac_dots=
  2677.   fi
  2678.  
  2679.   case "$srcdir" in
  2680.   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
  2681.   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
  2682.   esac
  2683.  
  2684.   # Make a symlink if possible; otherwise try a hard link.
  2685.   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
  2686.     ln $srcdir/$ac_source $ac_dest; then :
  2687.   else
  2688.     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
  2689.   fi
  2690. done
  2691.  
  2692.  
  2693. exit 0
  2694. EOF
  2695. chmod +x $CONFIG_STATUS
  2696. rm -f CONFIG.STATUS.old
  2697. rm -fr confdefs* $ac_clean_files
  2698. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  2699.  
  2700. if test "$no_recursion" != yes; then
  2701.  
  2702.   # Remove --cache-file and --srcdir arguments so they do not pile up.
  2703.   ac_sub_configure_args=
  2704.   ac_prev=
  2705.   for ac_arg in $ac_configure_args; do
  2706.     if test -n "$ac_prev"; then
  2707.       ac_prev=
  2708.       continue
  2709.     fi
  2710.     case "$ac_arg" in
  2711.     -cache-file | --cache-file | --cache-fil | --cache-fi \
  2712.     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  2713.       ac_prev=cache_file ;;
  2714.     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  2715.     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  2716.       ;;
  2717.     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  2718.       ac_prev=srcdir ;;
  2719.     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  2720.       ;;
  2721.     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
  2722.     esac
  2723.   done
  2724.  
  2725.   for ac_config_dir in glob; do
  2726.  
  2727.     # Do not complain, so a configure script can configure whichever
  2728.     # parts of a large source tree are present.
  2729.     if test ! -d $srcdir/$ac_config_dir; then
  2730.       continue
  2731.     fi
  2732.  
  2733.     echo configuring in $ac_config_dir
  2734.  
  2735.     case "$srcdir" in
  2736.     .) ;;
  2737.     *)
  2738.       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
  2739.       else
  2740.         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
  2741.       fi
  2742.       ;;
  2743.     esac
  2744.  
  2745.     ac_popdir=`pwd`
  2746.     cd $ac_config_dir
  2747.  
  2748.     case "$srcdir" in
  2749.     .) # No --srcdir option.  We are building in place.
  2750.       ac_sub_srcdir=$srcdir ;;
  2751.     /*) # Absolute path.
  2752.       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
  2753.     *) # Relative path.
  2754.       ac_sub_srcdir=../$srcdir/$ac_config_dir ;;
  2755.     esac
  2756.  
  2757.     # Check for guested configure; otherwise get Cygnus style configure.
  2758.     if test -f $ac_sub_srcdir/configure; then
  2759.       ac_sub_configure=$ac_sub_srcdir/configure
  2760.     elif test -f $ac_sub_srcdir/configure.in; then
  2761.       ac_sub_configure=$ac_configure
  2762.     else
  2763.       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
  2764.       ac_sub_configure=
  2765.     fi
  2766.  
  2767.     # The recursion is here.
  2768.     if test -n "$ac_sub_configure"; then
  2769.  
  2770.       # Make the cache file name correct relative to the subdirectory.
  2771.       # A "../" for each directory in /$ac_config_dir.
  2772.       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
  2773.       case "$cache_file" in
  2774.       /*) ac_sub_cache_file=$cache_file ;;
  2775.       *) # Relative path.
  2776.         ac_sub_cache_file="$ac_dots$cache_file" ;;
  2777.       esac
  2778.   case "$ac_given_INSTALL" in
  2779.         [/$]*) INSTALL="$ac_given_INSTALL" ;;
  2780.         *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  2781.         esac
  2782.  
  2783.       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
  2784.       # The eval makes quoting arguments work.
  2785.       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
  2786.       then :
  2787.       else
  2788.         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
  2789.       fi
  2790.     fi
  2791.  
  2792.     cd $ac_popdir
  2793.   done
  2794. fi
  2795.  
  2796.