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