home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Mail / qpopper-2.4-MIHS / configure < prev    next >
Encoding:
Text File  |  1997-09-16  |  73.1 KB  |  2,602 lines

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