Initial commit to Gerrit
[profile/ivi/quota.git] / autom4te.cache / output.0
1 @%:@! /bin/sh
2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.61.
4 @%:@ 
5 @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 @%:@ 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 @%:@ This configure script is free software; the Free Software Foundation
8 @%:@ gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359     
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIB@&t@OBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="quota.c"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 CC
654 CFLAGS
655 LDFLAGS
656 CPPFLAGS
657 ac_ct_CC
658 EXEEXT
659 OBJEXT
660 CPP
661 GREP
662 EGREP
663 INSTALL_PROGRAM
664 INSTALL_SCRIPT
665 INSTALL_DATA
666 LDAPLIBS
667 EXT2_DIRECT
668 EXT2LIBS
669 QUOTA_NETLINK_PROG
670 NETLINKLIBS
671 HOSTS_ACCESS
672 COMPILE_OPTS
673 LIBMALLOC
674 INSTMO
675 ROOTSBIN
676 LIB@&t@OBJS
677 LTLIBOBJS'
678 ac_subst_files=''
679       ac_precious_vars='build_alias
680 host_alias
681 target_alias
682 CC
683 CFLAGS
684 LDFLAGS
685 LIBS
686 CPPFLAGS
687 CPP'
688
689
690 # Initialize some variables set by options.
691 ac_init_help=
692 ac_init_version=false
693 # The variables have the same names as the options, with
694 # dashes changed to underlines.
695 cache_file=/dev/null
696 exec_prefix=NONE
697 no_create=
698 no_recursion=
699 prefix=NONE
700 program_prefix=NONE
701 program_suffix=NONE
702 program_transform_name=s,x,x,
703 silent=
704 site=
705 srcdir=
706 verbose=
707 x_includes=NONE
708 x_libraries=NONE
709
710 # Installation directory options.
711 # These are left unexpanded so users can "make install exec_prefix=/foo"
712 # and all the variables that are supposed to be based on exec_prefix
713 # by default will actually change.
714 # Use braces instead of parens because sh, perl, etc. also accept them.
715 # (The list follows the same order as the GNU Coding Standards.)
716 bindir='${exec_prefix}/bin'
717 sbindir='${exec_prefix}/sbin'
718 libexecdir='${exec_prefix}/libexec'
719 datarootdir='${prefix}/share'
720 datadir='${datarootdir}'
721 sysconfdir='${prefix}/etc'
722 sharedstatedir='${prefix}/com'
723 localstatedir='${prefix}/var'
724 includedir='${prefix}/include'
725 oldincludedir='/usr/include'
726 docdir='${datarootdir}/doc/${PACKAGE}'
727 infodir='${datarootdir}/info'
728 htmldir='${docdir}'
729 dvidir='${docdir}'
730 pdfdir='${docdir}'
731 psdir='${docdir}'
732 libdir='${exec_prefix}/lib'
733 localedir='${datarootdir}/locale'
734 mandir='${datarootdir}/man'
735
736 ac_prev=
737 ac_dashdash=
738 for ac_option
739 do
740   # If the previous option needs an argument, assign it.
741   if test -n "$ac_prev"; then
742     eval $ac_prev=\$ac_option
743     ac_prev=
744     continue
745   fi
746
747   case $ac_option in
748   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
749   *)    ac_optarg=yes ;;
750   esac
751
752   # Accept the important Cygnus configure options, so we can diagnose typos.
753
754   case $ac_dashdash$ac_option in
755   --)
756     ac_dashdash=yes ;;
757
758   -bindir | --bindir | --bindi | --bind | --bin | --bi)
759     ac_prev=bindir ;;
760   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
761     bindir=$ac_optarg ;;
762
763   -build | --build | --buil | --bui | --bu)
764     ac_prev=build_alias ;;
765   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
766     build_alias=$ac_optarg ;;
767
768   -cache-file | --cache-file | --cache-fil | --cache-fi \
769   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
770     ac_prev=cache_file ;;
771   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
772   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
773     cache_file=$ac_optarg ;;
774
775   --config-cache | -C)
776     cache_file=config.cache ;;
777
778   -datadir | --datadir | --datadi | --datad)
779     ac_prev=datadir ;;
780   -datadir=* | --datadir=* | --datadi=* | --datad=*)
781     datadir=$ac_optarg ;;
782
783   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
784   | --dataroo | --dataro | --datar)
785     ac_prev=datarootdir ;;
786   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
787   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
788     datarootdir=$ac_optarg ;;
789
790   -disable-* | --disable-*)
791     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
792     # Reject names that are not valid shell variable names.
793     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
795    { (exit 1); exit 1; }; }
796     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
797     eval enable_$ac_feature=no ;;
798
799   -docdir | --docdir | --docdi | --doc | --do)
800     ac_prev=docdir ;;
801   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
802     docdir=$ac_optarg ;;
803
804   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
805     ac_prev=dvidir ;;
806   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
807     dvidir=$ac_optarg ;;
808
809   -enable-* | --enable-*)
810     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
811     # Reject names that are not valid shell variable names.
812     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
813       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
814    { (exit 1); exit 1; }; }
815     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
816     eval enable_$ac_feature=\$ac_optarg ;;
817
818   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
819   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
820   | --exec | --exe | --ex)
821     ac_prev=exec_prefix ;;
822   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
823   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
824   | --exec=* | --exe=* | --ex=*)
825     exec_prefix=$ac_optarg ;;
826
827   -gas | --gas | --ga | --g)
828     # Obsolete; use --with-gas.
829     with_gas=yes ;;
830
831   -help | --help | --hel | --he | -h)
832     ac_init_help=long ;;
833   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
834     ac_init_help=recursive ;;
835   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
836     ac_init_help=short ;;
837
838   -host | --host | --hos | --ho)
839     ac_prev=host_alias ;;
840   -host=* | --host=* | --hos=* | --ho=*)
841     host_alias=$ac_optarg ;;
842
843   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
844     ac_prev=htmldir ;;
845   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
846   | --ht=*)
847     htmldir=$ac_optarg ;;
848
849   -includedir | --includedir | --includedi | --included | --include \
850   | --includ | --inclu | --incl | --inc)
851     ac_prev=includedir ;;
852   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
853   | --includ=* | --inclu=* | --incl=* | --inc=*)
854     includedir=$ac_optarg ;;
855
856   -infodir | --infodir | --infodi | --infod | --info | --inf)
857     ac_prev=infodir ;;
858   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
859     infodir=$ac_optarg ;;
860
861   -libdir | --libdir | --libdi | --libd)
862     ac_prev=libdir ;;
863   -libdir=* | --libdir=* | --libdi=* | --libd=*)
864     libdir=$ac_optarg ;;
865
866   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
867   | --libexe | --libex | --libe)
868     ac_prev=libexecdir ;;
869   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
870   | --libexe=* | --libex=* | --libe=*)
871     libexecdir=$ac_optarg ;;
872
873   -localedir | --localedir | --localedi | --localed | --locale)
874     ac_prev=localedir ;;
875   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
876     localedir=$ac_optarg ;;
877
878   -localstatedir | --localstatedir | --localstatedi | --localstated \
879   | --localstate | --localstat | --localsta | --localst | --locals)
880     ac_prev=localstatedir ;;
881   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
882   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
883     localstatedir=$ac_optarg ;;
884
885   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
886     ac_prev=mandir ;;
887   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
888     mandir=$ac_optarg ;;
889
890   -nfp | --nfp | --nf)
891     # Obsolete; use --without-fp.
892     with_fp=no ;;
893
894   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
895   | --no-cr | --no-c | -n)
896     no_create=yes ;;
897
898   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
899   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
900     no_recursion=yes ;;
901
902   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
903   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
904   | --oldin | --oldi | --old | --ol | --o)
905     ac_prev=oldincludedir ;;
906   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
907   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
908   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
909     oldincludedir=$ac_optarg ;;
910
911   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
912     ac_prev=prefix ;;
913   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
914     prefix=$ac_optarg ;;
915
916   -program-prefix | --program-prefix | --program-prefi | --program-pref \
917   | --program-pre | --program-pr | --program-p)
918     ac_prev=program_prefix ;;
919   -program-prefix=* | --program-prefix=* | --program-prefi=* \
920   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
921     program_prefix=$ac_optarg ;;
922
923   -program-suffix | --program-suffix | --program-suffi | --program-suff \
924   | --program-suf | --program-su | --program-s)
925     ac_prev=program_suffix ;;
926   -program-suffix=* | --program-suffix=* | --program-suffi=* \
927   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
928     program_suffix=$ac_optarg ;;
929
930   -program-transform-name | --program-transform-name \
931   | --program-transform-nam | --program-transform-na \
932   | --program-transform-n | --program-transform- \
933   | --program-transform | --program-transfor \
934   | --program-transfo | --program-transf \
935   | --program-trans | --program-tran \
936   | --progr-tra | --program-tr | --program-t)
937     ac_prev=program_transform_name ;;
938   -program-transform-name=* | --program-transform-name=* \
939   | --program-transform-nam=* | --program-transform-na=* \
940   | --program-transform-n=* | --program-transform-=* \
941   | --program-transform=* | --program-transfor=* \
942   | --program-transfo=* | --program-transf=* \
943   | --program-trans=* | --program-tran=* \
944   | --progr-tra=* | --program-tr=* | --program-t=*)
945     program_transform_name=$ac_optarg ;;
946
947   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
948     ac_prev=pdfdir ;;
949   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
950     pdfdir=$ac_optarg ;;
951
952   -psdir | --psdir | --psdi | --psd | --ps)
953     ac_prev=psdir ;;
954   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
955     psdir=$ac_optarg ;;
956
957   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
958   | -silent | --silent | --silen | --sile | --sil)
959     silent=yes ;;
960
961   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
962     ac_prev=sbindir ;;
963   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
964   | --sbi=* | --sb=*)
965     sbindir=$ac_optarg ;;
966
967   -sharedstatedir | --sharedstatedir | --sharedstatedi \
968   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
969   | --sharedst | --shareds | --shared | --share | --shar \
970   | --sha | --sh)
971     ac_prev=sharedstatedir ;;
972   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
973   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
974   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
975   | --sha=* | --sh=*)
976     sharedstatedir=$ac_optarg ;;
977
978   -site | --site | --sit)
979     ac_prev=site ;;
980   -site=* | --site=* | --sit=*)
981     site=$ac_optarg ;;
982
983   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
984     ac_prev=srcdir ;;
985   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
986     srcdir=$ac_optarg ;;
987
988   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
989   | --syscon | --sysco | --sysc | --sys | --sy)
990     ac_prev=sysconfdir ;;
991   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
992   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
993     sysconfdir=$ac_optarg ;;
994
995   -target | --target | --targe | --targ | --tar | --ta | --t)
996     ac_prev=target_alias ;;
997   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
998     target_alias=$ac_optarg ;;
999
1000   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1001     verbose=yes ;;
1002
1003   -version | --version | --versio | --versi | --vers | -V)
1004     ac_init_version=: ;;
1005
1006   -with-* | --with-*)
1007     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1008     # Reject names that are not valid shell variable names.
1009     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1010       { echo "$as_me: error: invalid package name: $ac_package" >&2
1011    { (exit 1); exit 1; }; }
1012     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1013     eval with_$ac_package=\$ac_optarg ;;
1014
1015   -without-* | --without-*)
1016     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1017     # Reject names that are not valid shell variable names.
1018     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1019       { echo "$as_me: error: invalid package name: $ac_package" >&2
1020    { (exit 1); exit 1; }; }
1021     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1022     eval with_$ac_package=no ;;
1023
1024   --x)
1025     # Obsolete; use --with-x.
1026     with_x=yes ;;
1027
1028   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1029   | --x-incl | --x-inc | --x-in | --x-i)
1030     ac_prev=x_includes ;;
1031   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1032   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1033     x_includes=$ac_optarg ;;
1034
1035   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1036   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1037     ac_prev=x_libraries ;;
1038   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1039   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1040     x_libraries=$ac_optarg ;;
1041
1042   -*) { echo "$as_me: error: unrecognized option: $ac_option
1043 Try \`$0 --help' for more information." >&2
1044    { (exit 1); exit 1; }; }
1045     ;;
1046
1047   *=*)
1048     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1049     # Reject names that are not valid shell variable names.
1050     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1051       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1052    { (exit 1); exit 1; }; }
1053     eval $ac_envvar=\$ac_optarg
1054     export $ac_envvar ;;
1055
1056   *)
1057     # FIXME: should be removed in autoconf 3.0.
1058     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1059     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1060       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1061     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1062     ;;
1063
1064   esac
1065 done
1066
1067 if test -n "$ac_prev"; then
1068   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1069   { echo "$as_me: error: missing argument to $ac_option" >&2
1070    { (exit 1); exit 1; }; }
1071 fi
1072
1073 # Be sure to have absolute directory names.
1074 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1075                 datadir sysconfdir sharedstatedir localstatedir includedir \
1076                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1077                 libdir localedir mandir
1078 do
1079   eval ac_val=\$$ac_var
1080   case $ac_val in
1081     [\\/$]* | ?:[\\/]* )  continue;;
1082     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1083   esac
1084   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1085    { (exit 1); exit 1; }; }
1086 done
1087
1088 # There might be people who depend on the old broken behavior: `$host'
1089 # used to hold the argument of --host etc.
1090 # FIXME: To remove some day.
1091 build=$build_alias
1092 host=$host_alias
1093 target=$target_alias
1094
1095 # FIXME: To remove some day.
1096 if test "x$host_alias" != x; then
1097   if test "x$build_alias" = x; then
1098     cross_compiling=maybe
1099     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1100     If a cross compiler is detected then cross compile mode will be used." >&2
1101   elif test "x$build_alias" != "x$host_alias"; then
1102     cross_compiling=yes
1103   fi
1104 fi
1105
1106 ac_tool_prefix=
1107 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1108
1109 test "$silent" = yes && exec 6>/dev/null
1110
1111
1112 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1113 ac_ls_di=`ls -di .` &&
1114 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1115   { echo "$as_me: error: Working directory cannot be determined" >&2
1116    { (exit 1); exit 1; }; }
1117 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1118   { echo "$as_me: error: pwd does not report name of working directory" >&2
1119    { (exit 1); exit 1; }; }
1120
1121
1122 # Find the source files, if location was not specified.
1123 if test -z "$srcdir"; then
1124   ac_srcdir_defaulted=yes
1125   # Try the directory containing this script, then the parent directory.
1126   ac_confdir=`$as_dirname -- "$0" ||
1127 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1128          X"$0" : 'X\(//\)[^/]' \| \
1129          X"$0" : 'X\(//\)$' \| \
1130          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1131 echo X"$0" |
1132     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1133             s//\1/
1134             q
1135           }
1136           /^X\(\/\/\)[^/].*/{
1137             s//\1/
1138             q
1139           }
1140           /^X\(\/\/\)$/{
1141             s//\1/
1142             q
1143           }
1144           /^X\(\/\).*/{
1145             s//\1/
1146             q
1147           }
1148           s/.*/./; q'`
1149   srcdir=$ac_confdir
1150   if test ! -r "$srcdir/$ac_unique_file"; then
1151     srcdir=..
1152   fi
1153 else
1154   ac_srcdir_defaulted=no
1155 fi
1156 if test ! -r "$srcdir/$ac_unique_file"; then
1157   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1158   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1159    { (exit 1); exit 1; }; }
1160 fi
1161 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1162 ac_abs_confdir=`(
1163         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1164    { (exit 1); exit 1; }; }
1165         pwd)`
1166 # When building in place, set srcdir=.
1167 if test "$ac_abs_confdir" = "$ac_pwd"; then
1168   srcdir=.
1169 fi
1170 # Remove unnecessary trailing slashes from srcdir.
1171 # Double slashes in file names in object file debugging info
1172 # mess up M-x gdb in Emacs.
1173 case $srcdir in
1174 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1175 esac
1176 for ac_var in $ac_precious_vars; do
1177   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1178   eval ac_env_${ac_var}_value=\$${ac_var}
1179   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1180   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1181 done
1182
1183 #
1184 # Report the --help message.
1185 #
1186 if test "$ac_init_help" = "long"; then
1187   # Omit some internal or obsolete options to make the list less imposing.
1188   # This message is too long to be a string in the A/UX 3.1 sh.
1189   cat <<_ACEOF
1190 \`configure' configures this package to adapt to many kinds of systems.
1191
1192 Usage: $0 [OPTION]... [VAR=VALUE]...
1193
1194 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1195 VAR=VALUE.  See below for descriptions of some of the useful variables.
1196
1197 Defaults for the options are specified in brackets.
1198
1199 Configuration:
1200   -h, --help              display this help and exit
1201       --help=short        display options specific to this package
1202       --help=recursive    display the short help of all the included packages
1203   -V, --version           display version information and exit
1204   -q, --quiet, --silent   do not print \`checking...' messages
1205       --cache-file=FILE   cache test results in FILE [disabled]
1206   -C, --config-cache      alias for \`--cache-file=config.cache'
1207   -n, --no-create         do not create output files
1208       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1209
1210 Installation directories:
1211   --prefix=PREFIX         install architecture-independent files in PREFIX
1212                           [$ac_default_prefix]
1213   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1214                           [PREFIX]
1215
1216 By default, \`make install' will install all the files in
1217 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1218 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1219 for instance \`--prefix=\$HOME'.
1220
1221 For better control, use the options below.
1222
1223 Fine tuning of the installation directories:
1224   --bindir=DIR           user executables [EPREFIX/bin]
1225   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1226   --libexecdir=DIR       program executables [EPREFIX/libexec]
1227   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1228   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1229   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1230   --libdir=DIR           object code libraries [EPREFIX/lib]
1231   --includedir=DIR       C header files [PREFIX/include]
1232   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1233   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1234   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1235   --infodir=DIR          info documentation [DATAROOTDIR/info]
1236   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1237   --mandir=DIR           man documentation [DATAROOTDIR/man]
1238   --docdir=DIR           documentation root @<:@DATAROOTDIR/doc/PACKAGE@:>@
1239   --htmldir=DIR          html documentation [DOCDIR]
1240   --dvidir=DIR           dvi documentation [DOCDIR]
1241   --pdfdir=DIR           pdf documentation [DOCDIR]
1242   --psdir=DIR            ps documentation [DOCDIR]
1243 _ACEOF
1244
1245   cat <<\_ACEOF
1246 _ACEOF
1247 fi
1248
1249 if test -n "$ac_init_help"; then
1250
1251   cat <<\_ACEOF
1252
1253 Optional Features:
1254   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1255   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1256   --enable-ldapmail=yes/no/try       Enable ldap mail address lookups default=no.
1257   --enable-ext2direct=yes/no/try     Enable scanning of EXT2/EXT3 filesystem using e2fslib default=try.
1258   --enable-netlink=yes/no/try   Compile daemon receiving quota messages via netlink default=no.
1259   --enable-altformat=yes/no     Enable alternative format used by edquota default=yes.
1260   --enable-rpc=yes/no           Enable RPC support default=yes.
1261   --enable-rpcsetquota=yes/no   Use RPC for setting quotas default=no.
1262   --enable-xfs_roothack=yes/no  Support old XFS root filesystems default=no.
1263   --enable-bsd_behaviour=yes/no Mimic BSD behaviour default=yes.
1264   --enable-libefence=yes/no     Use Electric Fence memory checks default=no.
1265   --enable-nls=yes/no           Enable gettext dafault=yes.
1266   --enable-rootsbin=yes/no      Use /sbin for some important binaries regardless $prefix default=no.
1267
1268 Some influential environment variables:
1269   CC          C compiler command
1270   CFLAGS      C compiler flags
1271   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1272               nonstandard directory <lib dir>
1273   LIBS        libraries to pass to the linker, e.g. -l<library>
1274   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1275               you have headers in a nonstandard directory <include dir>
1276   CPP         C preprocessor
1277
1278 Use these variables to override the choices made by `configure' or to help
1279 it to find libraries and programs with nonstandard names/locations.
1280
1281 _ACEOF
1282 ac_status=$?
1283 fi
1284
1285 if test "$ac_init_help" = "recursive"; then
1286   # If there are subdirs, report their specific --help.
1287   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1288     test -d "$ac_dir" || continue
1289     ac_builddir=.
1290
1291 case "$ac_dir" in
1292 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1293 *)
1294   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1295   # A ".." for each directory in $ac_dir_suffix.
1296   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1297   case $ac_top_builddir_sub in
1298   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1299   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1300   esac ;;
1301 esac
1302 ac_abs_top_builddir=$ac_pwd
1303 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1304 # for backward compatibility:
1305 ac_top_builddir=$ac_top_build_prefix
1306
1307 case $srcdir in
1308   .)  # We are building in place.
1309     ac_srcdir=.
1310     ac_top_srcdir=$ac_top_builddir_sub
1311     ac_abs_top_srcdir=$ac_pwd ;;
1312   [\\/]* | ?:[\\/]* )  # Absolute name.
1313     ac_srcdir=$srcdir$ac_dir_suffix;
1314     ac_top_srcdir=$srcdir
1315     ac_abs_top_srcdir=$srcdir ;;
1316   *) # Relative name.
1317     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1318     ac_top_srcdir=$ac_top_build_prefix$srcdir
1319     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1320 esac
1321 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1322
1323     cd "$ac_dir" || { ac_status=$?; continue; }
1324     # Check for guested configure.
1325     if test -f "$ac_srcdir/configure.gnu"; then
1326       echo &&
1327       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1328     elif test -f "$ac_srcdir/configure"; then
1329       echo &&
1330       $SHELL "$ac_srcdir/configure" --help=recursive
1331     else
1332       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1333     fi || ac_status=$?
1334     cd "$ac_pwd" || { ac_status=$?; break; }
1335   done
1336 fi
1337
1338 test -n "$ac_init_help" && exit $ac_status
1339 if $ac_init_version; then
1340   cat <<\_ACEOF
1341 configure
1342 generated by GNU Autoconf 2.61
1343
1344 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1345 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1346 This configure script is free software; the Free Software Foundation
1347 gives unlimited permission to copy, distribute and modify it.
1348 _ACEOF
1349   exit
1350 fi
1351 cat >config.log <<_ACEOF
1352 This file contains any messages produced by compilers while
1353 running configure, to aid debugging if configure makes a mistake.
1354
1355 It was created by $as_me, which was
1356 generated by GNU Autoconf 2.61.  Invocation command line was
1357
1358   $ $0 $@
1359
1360 _ACEOF
1361 exec 5>>config.log
1362 {
1363 cat <<_ASUNAME
1364 @%:@@%:@ --------- @%:@@%:@
1365 @%:@@%:@ Platform. @%:@@%:@
1366 @%:@@%:@ --------- @%:@@%:@
1367
1368 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1369 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1370 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1371 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1372 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1373
1374 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1375 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1376
1377 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1378 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1379 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1380 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1381 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1382 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1383 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1384
1385 _ASUNAME
1386
1387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1388 for as_dir in $PATH
1389 do
1390   IFS=$as_save_IFS
1391   test -z "$as_dir" && as_dir=.
1392   echo "PATH: $as_dir"
1393 done
1394 IFS=$as_save_IFS
1395
1396 } >&5
1397
1398 cat >&5 <<_ACEOF
1399
1400
1401 @%:@@%:@ ----------- @%:@@%:@
1402 @%:@@%:@ Core tests. @%:@@%:@
1403 @%:@@%:@ ----------- @%:@@%:@
1404
1405 _ACEOF
1406
1407
1408 # Keep a trace of the command line.
1409 # Strip out --no-create and --no-recursion so they do not pile up.
1410 # Strip out --silent because we don't want to record it for future runs.
1411 # Also quote any args containing shell meta-characters.
1412 # Make two passes to allow for proper duplicate-argument suppression.
1413 ac_configure_args=
1414 ac_configure_args0=
1415 ac_configure_args1=
1416 ac_must_keep_next=false
1417 for ac_pass in 1 2
1418 do
1419   for ac_arg
1420   do
1421     case $ac_arg in
1422     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1423     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1424     | -silent | --silent | --silen | --sile | --sil)
1425       continue ;;
1426     *\'*)
1427       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1428     esac
1429     case $ac_pass in
1430     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1431     2)
1432       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1433       if test $ac_must_keep_next = true; then
1434         ac_must_keep_next=false # Got value, back to normal.
1435       else
1436         case $ac_arg in
1437           *=* | --config-cache | -C | -disable-* | --disable-* \
1438           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1439           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1440           | -with-* | --with-* | -without-* | --without-* | --x)
1441             case "$ac_configure_args0 " in
1442               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1443             esac
1444             ;;
1445           -* ) ac_must_keep_next=true ;;
1446         esac
1447       fi
1448       ac_configure_args="$ac_configure_args '$ac_arg'"
1449       ;;
1450     esac
1451   done
1452 done
1453 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1454 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1455
1456 # When interrupted or exit'd, cleanup temporary files, and complete
1457 # config.log.  We remove comments because anyway the quotes in there
1458 # would cause problems or look ugly.
1459 # WARNING: Use '\'' to represent an apostrophe within the trap.
1460 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1461 trap 'exit_status=$?
1462   # Save into config.log some information that might help in debugging.
1463   {
1464     echo
1465
1466     cat <<\_ASBOX
1467 @%:@@%:@ ---------------- @%:@@%:@
1468 @%:@@%:@ Cache variables. @%:@@%:@
1469 @%:@@%:@ ---------------- @%:@@%:@
1470 _ASBOX
1471     echo
1472     # The following way of writing the cache mishandles newlines in values,
1473 (
1474   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1475     eval ac_val=\$$ac_var
1476     case $ac_val in #(
1477     *${as_nl}*)
1478       case $ac_var in #(
1479       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1480 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1481       esac
1482       case $ac_var in #(
1483       _ | IFS | as_nl) ;; #(
1484       *) $as_unset $ac_var ;;
1485       esac ;;
1486     esac
1487   done
1488   (set) 2>&1 |
1489     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1490     *${as_nl}ac_space=\ *)
1491       sed -n \
1492         "s/'\''/'\''\\\\'\'''\''/g;
1493           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1494       ;; #(
1495     *)
1496       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1497       ;;
1498     esac |
1499     sort
1500 )
1501     echo
1502
1503     cat <<\_ASBOX
1504 @%:@@%:@ ----------------- @%:@@%:@
1505 @%:@@%:@ Output variables. @%:@@%:@
1506 @%:@@%:@ ----------------- @%:@@%:@
1507 _ASBOX
1508     echo
1509     for ac_var in $ac_subst_vars
1510     do
1511       eval ac_val=\$$ac_var
1512       case $ac_val in
1513       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1514       esac
1515       echo "$ac_var='\''$ac_val'\''"
1516     done | sort
1517     echo
1518
1519     if test -n "$ac_subst_files"; then
1520       cat <<\_ASBOX
1521 @%:@@%:@ ------------------- @%:@@%:@
1522 @%:@@%:@ File substitutions. @%:@@%:@
1523 @%:@@%:@ ------------------- @%:@@%:@
1524 _ASBOX
1525       echo
1526       for ac_var in $ac_subst_files
1527       do
1528         eval ac_val=\$$ac_var
1529         case $ac_val in
1530         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1531         esac
1532         echo "$ac_var='\''$ac_val'\''"
1533       done | sort
1534       echo
1535     fi
1536
1537     if test -s confdefs.h; then
1538       cat <<\_ASBOX
1539 @%:@@%:@ ----------- @%:@@%:@
1540 @%:@@%:@ confdefs.h. @%:@@%:@
1541 @%:@@%:@ ----------- @%:@@%:@
1542 _ASBOX
1543       echo
1544       cat confdefs.h
1545       echo
1546     fi
1547     test "$ac_signal" != 0 &&
1548       echo "$as_me: caught signal $ac_signal"
1549     echo "$as_me: exit $exit_status"
1550   } >&5
1551   rm -f core *.core core.conftest.* &&
1552     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1553     exit $exit_status
1554 ' 0
1555 for ac_signal in 1 2 13 15; do
1556   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1557 done
1558 ac_signal=0
1559
1560 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1561 rm -f -r conftest* confdefs.h
1562
1563 # Predefined preprocessor variables.
1564
1565 cat >>confdefs.h <<_ACEOF
1566 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1567 _ACEOF
1568
1569
1570 cat >>confdefs.h <<_ACEOF
1571 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1572 _ACEOF
1573
1574
1575 cat >>confdefs.h <<_ACEOF
1576 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1577 _ACEOF
1578
1579
1580 cat >>confdefs.h <<_ACEOF
1581 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1582 _ACEOF
1583
1584
1585 cat >>confdefs.h <<_ACEOF
1586 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1587 _ACEOF
1588
1589
1590 # Let the site file select an alternate cache file if it wants to.
1591 # Prefer explicitly selected file to automatically selected ones.
1592 if test -n "$CONFIG_SITE"; then
1593   set x "$CONFIG_SITE"
1594 elif test "x$prefix" != xNONE; then
1595   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1596 else
1597   set x "$ac_default_prefix/share/config.site" \
1598         "$ac_default_prefix/etc/config.site"
1599 fi
1600 shift
1601 for ac_site_file
1602 do
1603   if test -r "$ac_site_file"; then
1604     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1605 echo "$as_me: loading site script $ac_site_file" >&6;}
1606     sed 's/^/| /' "$ac_site_file" >&5
1607     . "$ac_site_file"
1608   fi
1609 done
1610
1611 if test -r "$cache_file"; then
1612   # Some versions of bash will fail to source /dev/null (special
1613   # files actually), so we avoid doing that.
1614   if test -f "$cache_file"; then
1615     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1616 echo "$as_me: loading cache $cache_file" >&6;}
1617     case $cache_file in
1618       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1619       *)                      . "./$cache_file";;
1620     esac
1621   fi
1622 else
1623   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1624 echo "$as_me: creating cache $cache_file" >&6;}
1625   >$cache_file
1626 fi
1627
1628 # Check that the precious variables saved in the cache have kept the same
1629 # value.
1630 ac_cache_corrupted=false
1631 for ac_var in $ac_precious_vars; do
1632   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1633   eval ac_new_set=\$ac_env_${ac_var}_set
1634   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1635   eval ac_new_val=\$ac_env_${ac_var}_value
1636   case $ac_old_set,$ac_new_set in
1637     set,)
1638       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1639 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1640       ac_cache_corrupted=: ;;
1641     ,set)
1642       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1643 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1644       ac_cache_corrupted=: ;;
1645     ,);;
1646     *)
1647       if test "x$ac_old_val" != "x$ac_new_val"; then
1648         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1649 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1650         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1651 echo "$as_me:   former value:  $ac_old_val" >&2;}
1652         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1653 echo "$as_me:   current value: $ac_new_val" >&2;}
1654         ac_cache_corrupted=:
1655       fi;;
1656   esac
1657   # Pass precious variables to config.status.
1658   if test "$ac_new_set" = set; then
1659     case $ac_new_val in
1660     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1661     *) ac_arg=$ac_var=$ac_new_val ;;
1662     esac
1663     case " $ac_configure_args " in
1664       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1665       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1666     esac
1667   fi
1668 done
1669 if $ac_cache_corrupted; then
1670   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1671 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1672   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1673 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1674    { (exit 1); exit 1; }; }
1675 fi
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693 ac_ext=c
1694 ac_cpp='$CPP $CPPFLAGS'
1695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1698
1699
1700
1701 ac_ext=c
1702 ac_cpp='$CPP $CPPFLAGS'
1703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1706 if test -n "$ac_tool_prefix"; then
1707   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1708 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1711 if test "${ac_cv_prog_CC+set}" = set; then
1712   echo $ECHO_N "(cached) $ECHO_C" >&6
1713 else
1714   if test -n "$CC"; then
1715   ac_cv_prog_CC="$CC" # Let the user override the test.
1716 else
1717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1718 for as_dir in $PATH
1719 do
1720   IFS=$as_save_IFS
1721   test -z "$as_dir" && as_dir=.
1722   for ac_exec_ext in '' $ac_executable_extensions; do
1723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1724     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1726     break 2
1727   fi
1728 done
1729 done
1730 IFS=$as_save_IFS
1731
1732 fi
1733 fi
1734 CC=$ac_cv_prog_CC
1735 if test -n "$CC"; then
1736   { echo "$as_me:$LINENO: result: $CC" >&5
1737 echo "${ECHO_T}$CC" >&6; }
1738 else
1739   { echo "$as_me:$LINENO: result: no" >&5
1740 echo "${ECHO_T}no" >&6; }
1741 fi
1742
1743
1744 fi
1745 if test -z "$ac_cv_prog_CC"; then
1746   ac_ct_CC=$CC
1747   # Extract the first word of "gcc", so it can be a program name with args.
1748 set dummy gcc; ac_word=$2
1749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1751 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1752   echo $ECHO_N "(cached) $ECHO_C" >&6
1753 else
1754   if test -n "$ac_ct_CC"; then
1755   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1756 else
1757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1758 for as_dir in $PATH
1759 do
1760   IFS=$as_save_IFS
1761   test -z "$as_dir" && as_dir=.
1762   for ac_exec_ext in '' $ac_executable_extensions; do
1763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1764     ac_cv_prog_ac_ct_CC="gcc"
1765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1766     break 2
1767   fi
1768 done
1769 done
1770 IFS=$as_save_IFS
1771
1772 fi
1773 fi
1774 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1775 if test -n "$ac_ct_CC"; then
1776   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1777 echo "${ECHO_T}$ac_ct_CC" >&6; }
1778 else
1779   { echo "$as_me:$LINENO: result: no" >&5
1780 echo "${ECHO_T}no" >&6; }
1781 fi
1782
1783   if test "x$ac_ct_CC" = x; then
1784     CC=""
1785   else
1786     case $cross_compiling:$ac_tool_warned in
1787 yes:)
1788 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1789 whose name does not start with the host triplet.  If you think this
1790 configuration is useful to you, please write to autoconf@gnu.org." >&5
1791 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1792 whose name does not start with the host triplet.  If you think this
1793 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1794 ac_tool_warned=yes ;;
1795 esac
1796     CC=$ac_ct_CC
1797   fi
1798 else
1799   CC="$ac_cv_prog_CC"
1800 fi
1801
1802 if test -z "$CC"; then
1803           if test -n "$ac_tool_prefix"; then
1804     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1805 set dummy ${ac_tool_prefix}cc; ac_word=$2
1806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1808 if test "${ac_cv_prog_CC+set}" = set; then
1809   echo $ECHO_N "(cached) $ECHO_C" >&6
1810 else
1811   if test -n "$CC"; then
1812   ac_cv_prog_CC="$CC" # Let the user override the test.
1813 else
1814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815 for as_dir in $PATH
1816 do
1817   IFS=$as_save_IFS
1818   test -z "$as_dir" && as_dir=.
1819   for ac_exec_ext in '' $ac_executable_extensions; do
1820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1821     ac_cv_prog_CC="${ac_tool_prefix}cc"
1822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1823     break 2
1824   fi
1825 done
1826 done
1827 IFS=$as_save_IFS
1828
1829 fi
1830 fi
1831 CC=$ac_cv_prog_CC
1832 if test -n "$CC"; then
1833   { echo "$as_me:$LINENO: result: $CC" >&5
1834 echo "${ECHO_T}$CC" >&6; }
1835 else
1836   { echo "$as_me:$LINENO: result: no" >&5
1837 echo "${ECHO_T}no" >&6; }
1838 fi
1839
1840
1841   fi
1842 fi
1843 if test -z "$CC"; then
1844   # Extract the first word of "cc", so it can be a program name with args.
1845 set dummy cc; ac_word=$2
1846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1848 if test "${ac_cv_prog_CC+set}" = set; then
1849   echo $ECHO_N "(cached) $ECHO_C" >&6
1850 else
1851   if test -n "$CC"; then
1852   ac_cv_prog_CC="$CC" # Let the user override the test.
1853 else
1854   ac_prog_rejected=no
1855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1856 for as_dir in $PATH
1857 do
1858   IFS=$as_save_IFS
1859   test -z "$as_dir" && as_dir=.
1860   for ac_exec_ext in '' $ac_executable_extensions; do
1861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1862     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1863        ac_prog_rejected=yes
1864        continue
1865      fi
1866     ac_cv_prog_CC="cc"
1867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1868     break 2
1869   fi
1870 done
1871 done
1872 IFS=$as_save_IFS
1873
1874 if test $ac_prog_rejected = yes; then
1875   # We found a bogon in the path, so make sure we never use it.
1876   set dummy $ac_cv_prog_CC
1877   shift
1878   if test $@%:@ != 0; then
1879     # We chose a different compiler from the bogus one.
1880     # However, it has the same basename, so the bogon will be chosen
1881     # first if we set CC to just the basename; use the full file name.
1882     shift
1883     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1884   fi
1885 fi
1886 fi
1887 fi
1888 CC=$ac_cv_prog_CC
1889 if test -n "$CC"; then
1890   { echo "$as_me:$LINENO: result: $CC" >&5
1891 echo "${ECHO_T}$CC" >&6; }
1892 else
1893   { echo "$as_me:$LINENO: result: no" >&5
1894 echo "${ECHO_T}no" >&6; }
1895 fi
1896
1897
1898 fi
1899 if test -z "$CC"; then
1900   if test -n "$ac_tool_prefix"; then
1901   for ac_prog in cl.exe
1902   do
1903     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1904 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1907 if test "${ac_cv_prog_CC+set}" = set; then
1908   echo $ECHO_N "(cached) $ECHO_C" >&6
1909 else
1910   if test -n "$CC"; then
1911   ac_cv_prog_CC="$CC" # Let the user override the test.
1912 else
1913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1914 for as_dir in $PATH
1915 do
1916   IFS=$as_save_IFS
1917   test -z "$as_dir" && as_dir=.
1918   for ac_exec_ext in '' $ac_executable_extensions; do
1919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1920     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1922     break 2
1923   fi
1924 done
1925 done
1926 IFS=$as_save_IFS
1927
1928 fi
1929 fi
1930 CC=$ac_cv_prog_CC
1931 if test -n "$CC"; then
1932   { echo "$as_me:$LINENO: result: $CC" >&5
1933 echo "${ECHO_T}$CC" >&6; }
1934 else
1935   { echo "$as_me:$LINENO: result: no" >&5
1936 echo "${ECHO_T}no" >&6; }
1937 fi
1938
1939
1940     test -n "$CC" && break
1941   done
1942 fi
1943 if test -z "$CC"; then
1944   ac_ct_CC=$CC
1945   for ac_prog in cl.exe
1946 do
1947   # Extract the first word of "$ac_prog", so it can be a program name with args.
1948 set dummy $ac_prog; ac_word=$2
1949 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1951 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1952   echo $ECHO_N "(cached) $ECHO_C" >&6
1953 else
1954   if test -n "$ac_ct_CC"; then
1955   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1956 else
1957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1958 for as_dir in $PATH
1959 do
1960   IFS=$as_save_IFS
1961   test -z "$as_dir" && as_dir=.
1962   for ac_exec_ext in '' $ac_executable_extensions; do
1963   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1964     ac_cv_prog_ac_ct_CC="$ac_prog"
1965     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1966     break 2
1967   fi
1968 done
1969 done
1970 IFS=$as_save_IFS
1971
1972 fi
1973 fi
1974 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1975 if test -n "$ac_ct_CC"; then
1976   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1977 echo "${ECHO_T}$ac_ct_CC" >&6; }
1978 else
1979   { echo "$as_me:$LINENO: result: no" >&5
1980 echo "${ECHO_T}no" >&6; }
1981 fi
1982
1983
1984   test -n "$ac_ct_CC" && break
1985 done
1986
1987   if test "x$ac_ct_CC" = x; then
1988     CC=""
1989   else
1990     case $cross_compiling:$ac_tool_warned in
1991 yes:)
1992 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1993 whose name does not start with the host triplet.  If you think this
1994 configuration is useful to you, please write to autoconf@gnu.org." >&5
1995 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1996 whose name does not start with the host triplet.  If you think this
1997 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1998 ac_tool_warned=yes ;;
1999 esac
2000     CC=$ac_ct_CC
2001   fi
2002 fi
2003
2004 fi
2005
2006
2007 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2008 See \`config.log' for more details." >&5
2009 echo "$as_me: error: no acceptable C compiler found in \$PATH
2010 See \`config.log' for more details." >&2;}
2011    { (exit 1); exit 1; }; }
2012
2013 # Provide some information about the compiler.
2014 echo "$as_me:$LINENO: checking for C compiler version" >&5
2015 ac_compiler=`set X $ac_compile; echo $2`
2016 { (ac_try="$ac_compiler --version >&5"
2017 case "(($ac_try" in
2018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2019   *) ac_try_echo=$ac_try;;
2020 esac
2021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2022   (eval "$ac_compiler --version >&5") 2>&5
2023   ac_status=$?
2024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025   (exit $ac_status); }
2026 { (ac_try="$ac_compiler -v >&5"
2027 case "(($ac_try" in
2028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2029   *) ac_try_echo=$ac_try;;
2030 esac
2031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2032   (eval "$ac_compiler -v >&5") 2>&5
2033   ac_status=$?
2034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035   (exit $ac_status); }
2036 { (ac_try="$ac_compiler -V >&5"
2037 case "(($ac_try" in
2038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2039   *) ac_try_echo=$ac_try;;
2040 esac
2041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2042   (eval "$ac_compiler -V >&5") 2>&5
2043   ac_status=$?
2044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045   (exit $ac_status); }
2046
2047 cat >conftest.$ac_ext <<_ACEOF
2048 /* confdefs.h.  */
2049 _ACEOF
2050 cat confdefs.h >>conftest.$ac_ext
2051 cat >>conftest.$ac_ext <<_ACEOF
2052 /* end confdefs.h.  */
2053
2054 int
2055 main ()
2056 {
2057
2058   ;
2059   return 0;
2060 }
2061 _ACEOF
2062 ac_clean_files_save=$ac_clean_files
2063 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2064 # Try to create an executable without -o first, disregard a.out.
2065 # It will help us diagnose broken compilers, and finding out an intuition
2066 # of exeext.
2067 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2068 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2069 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2070 #
2071 # List of possible output files, starting from the most likely.
2072 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2073 # only as a last resort.  b.out is created by i960 compilers.
2074 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2075 #
2076 # The IRIX 6 linker writes into existing files which may not be
2077 # executable, retaining their permissions.  Remove them first so a
2078 # subsequent execution test works.
2079 ac_rmfiles=
2080 for ac_file in $ac_files
2081 do
2082   case $ac_file in
2083     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2084     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2085   esac
2086 done
2087 rm -f $ac_rmfiles
2088
2089 if { (ac_try="$ac_link_default"
2090 case "(($ac_try" in
2091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2092   *) ac_try_echo=$ac_try;;
2093 esac
2094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2095   (eval "$ac_link_default") 2>&5
2096   ac_status=$?
2097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098   (exit $ac_status); }; then
2099   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2100 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2101 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2102 # so that the user can short-circuit this test for compilers unknown to
2103 # Autoconf.
2104 for ac_file in $ac_files ''
2105 do
2106   test -f "$ac_file" || continue
2107   case $ac_file in
2108     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2109         ;;
2110     [ab].out )
2111         # We found the default executable, but exeext='' is most
2112         # certainly right.
2113         break;;
2114     *.* )
2115         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2116         then :; else
2117            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2118         fi
2119         # We set ac_cv_exeext here because the later test for it is not
2120         # safe: cross compilers may not add the suffix if given an `-o'
2121         # argument, so we may need to know it at that point already.
2122         # Even if this section looks crufty: it has the advantage of
2123         # actually working.
2124         break;;
2125     * )
2126         break;;
2127   esac
2128 done
2129 test "$ac_cv_exeext" = no && ac_cv_exeext=
2130
2131 else
2132   ac_file=''
2133 fi
2134
2135 { echo "$as_me:$LINENO: result: $ac_file" >&5
2136 echo "${ECHO_T}$ac_file" >&6; }
2137 if test -z "$ac_file"; then
2138   echo "$as_me: failed program was:" >&5
2139 sed 's/^/| /' conftest.$ac_ext >&5
2140
2141 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2142 See \`config.log' for more details." >&5
2143 echo "$as_me: error: C compiler cannot create executables
2144 See \`config.log' for more details." >&2;}
2145    { (exit 77); exit 77; }; }
2146 fi
2147
2148 ac_exeext=$ac_cv_exeext
2149
2150 # Check that the compiler produces executables we can run.  If not, either
2151 # the compiler is broken, or we cross compile.
2152 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2153 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2154 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2155 # If not cross compiling, check that we can run a simple program.
2156 if test "$cross_compiling" != yes; then
2157   if { ac_try='./$ac_file'
2158   { (case "(($ac_try" in
2159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2160   *) ac_try_echo=$ac_try;;
2161 esac
2162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2163   (eval "$ac_try") 2>&5
2164   ac_status=$?
2165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166   (exit $ac_status); }; }; then
2167     cross_compiling=no
2168   else
2169     if test "$cross_compiling" = maybe; then
2170         cross_compiling=yes
2171     else
2172         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2173 If you meant to cross compile, use \`--host'.
2174 See \`config.log' for more details." >&5
2175 echo "$as_me: error: cannot run C compiled programs.
2176 If you meant to cross compile, use \`--host'.
2177 See \`config.log' for more details." >&2;}
2178    { (exit 1); exit 1; }; }
2179     fi
2180   fi
2181 fi
2182 { echo "$as_me:$LINENO: result: yes" >&5
2183 echo "${ECHO_T}yes" >&6; }
2184
2185 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2186 ac_clean_files=$ac_clean_files_save
2187 # Check that the compiler produces executables we can run.  If not, either
2188 # the compiler is broken, or we cross compile.
2189 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2190 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2191 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2192 echo "${ECHO_T}$cross_compiling" >&6; }
2193
2194 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2195 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2196 if { (ac_try="$ac_link"
2197 case "(($ac_try" in
2198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2199   *) ac_try_echo=$ac_try;;
2200 esac
2201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2202   (eval "$ac_link") 2>&5
2203   ac_status=$?
2204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205   (exit $ac_status); }; then
2206   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2207 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2208 # work properly (i.e., refer to `conftest.exe'), while it won't with
2209 # `rm'.
2210 for ac_file in conftest.exe conftest conftest.*; do
2211   test -f "$ac_file" || continue
2212   case $ac_file in
2213     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2214     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2215           break;;
2216     * ) break;;
2217   esac
2218 done
2219 else
2220   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2221 See \`config.log' for more details." >&5
2222 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2223 See \`config.log' for more details." >&2;}
2224    { (exit 1); exit 1; }; }
2225 fi
2226
2227 rm -f conftest$ac_cv_exeext
2228 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2229 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2230
2231 rm -f conftest.$ac_ext
2232 EXEEXT=$ac_cv_exeext
2233 ac_exeext=$EXEEXT
2234 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2235 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2236 if test "${ac_cv_objext+set}" = set; then
2237   echo $ECHO_N "(cached) $ECHO_C" >&6
2238 else
2239   cat >conftest.$ac_ext <<_ACEOF
2240 /* confdefs.h.  */
2241 _ACEOF
2242 cat confdefs.h >>conftest.$ac_ext
2243 cat >>conftest.$ac_ext <<_ACEOF
2244 /* end confdefs.h.  */
2245
2246 int
2247 main ()
2248 {
2249
2250   ;
2251   return 0;
2252 }
2253 _ACEOF
2254 rm -f conftest.o conftest.obj
2255 if { (ac_try="$ac_compile"
2256 case "(($ac_try" in
2257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2258   *) ac_try_echo=$ac_try;;
2259 esac
2260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2261   (eval "$ac_compile") 2>&5
2262   ac_status=$?
2263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264   (exit $ac_status); }; then
2265   for ac_file in conftest.o conftest.obj conftest.*; do
2266   test -f "$ac_file" || continue;
2267   case $ac_file in
2268     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2269     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2270        break;;
2271   esac
2272 done
2273 else
2274   echo "$as_me: failed program was:" >&5
2275 sed 's/^/| /' conftest.$ac_ext >&5
2276
2277 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2278 See \`config.log' for more details." >&5
2279 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2280 See \`config.log' for more details." >&2;}
2281    { (exit 1); exit 1; }; }
2282 fi
2283
2284 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2285 fi
2286 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2287 echo "${ECHO_T}$ac_cv_objext" >&6; }
2288 OBJEXT=$ac_cv_objext
2289 ac_objext=$OBJEXT
2290 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2291 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2292 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2293   echo $ECHO_N "(cached) $ECHO_C" >&6
2294 else
2295   cat >conftest.$ac_ext <<_ACEOF
2296 /* confdefs.h.  */
2297 _ACEOF
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h.  */
2301
2302 int
2303 main ()
2304 {
2305 #ifndef __GNUC__
2306        choke me
2307 #endif
2308
2309   ;
2310   return 0;
2311 }
2312 _ACEOF
2313 rm -f conftest.$ac_objext
2314 if { (ac_try="$ac_compile"
2315 case "(($ac_try" in
2316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2317   *) ac_try_echo=$ac_try;;
2318 esac
2319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2320   (eval "$ac_compile") 2>conftest.er1
2321   ac_status=$?
2322   grep -v '^ *+' conftest.er1 >conftest.err
2323   rm -f conftest.er1
2324   cat conftest.err >&5
2325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326   (exit $ac_status); } && {
2327          test -z "$ac_c_werror_flag" ||
2328          test ! -s conftest.err
2329        } && test -s conftest.$ac_objext; then
2330   ac_compiler_gnu=yes
2331 else
2332   echo "$as_me: failed program was:" >&5
2333 sed 's/^/| /' conftest.$ac_ext >&5
2334
2335         ac_compiler_gnu=no
2336 fi
2337
2338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2339 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2340
2341 fi
2342 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2343 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2344 GCC=`test $ac_compiler_gnu = yes && echo yes`
2345 ac_test_CFLAGS=${CFLAGS+set}
2346 ac_save_CFLAGS=$CFLAGS
2347 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2348 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2349 if test "${ac_cv_prog_cc_g+set}" = set; then
2350   echo $ECHO_N "(cached) $ECHO_C" >&6
2351 else
2352   ac_save_c_werror_flag=$ac_c_werror_flag
2353    ac_c_werror_flag=yes
2354    ac_cv_prog_cc_g=no
2355    CFLAGS="-g"
2356    cat >conftest.$ac_ext <<_ACEOF
2357 /* confdefs.h.  */
2358 _ACEOF
2359 cat confdefs.h >>conftest.$ac_ext
2360 cat >>conftest.$ac_ext <<_ACEOF
2361 /* end confdefs.h.  */
2362
2363 int
2364 main ()
2365 {
2366
2367   ;
2368   return 0;
2369 }
2370 _ACEOF
2371 rm -f conftest.$ac_objext
2372 if { (ac_try="$ac_compile"
2373 case "(($ac_try" in
2374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2375   *) ac_try_echo=$ac_try;;
2376 esac
2377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2378   (eval "$ac_compile") 2>conftest.er1
2379   ac_status=$?
2380   grep -v '^ *+' conftest.er1 >conftest.err
2381   rm -f conftest.er1
2382   cat conftest.err >&5
2383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384   (exit $ac_status); } && {
2385          test -z "$ac_c_werror_flag" ||
2386          test ! -s conftest.err
2387        } && test -s conftest.$ac_objext; then
2388   ac_cv_prog_cc_g=yes
2389 else
2390   echo "$as_me: failed program was:" >&5
2391 sed 's/^/| /' conftest.$ac_ext >&5
2392
2393         CFLAGS=""
2394       cat >conftest.$ac_ext <<_ACEOF
2395 /* confdefs.h.  */
2396 _ACEOF
2397 cat confdefs.h >>conftest.$ac_ext
2398 cat >>conftest.$ac_ext <<_ACEOF
2399 /* end confdefs.h.  */
2400
2401 int
2402 main ()
2403 {
2404
2405   ;
2406   return 0;
2407 }
2408 _ACEOF
2409 rm -f conftest.$ac_objext
2410 if { (ac_try="$ac_compile"
2411 case "(($ac_try" in
2412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2413   *) ac_try_echo=$ac_try;;
2414 esac
2415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2416   (eval "$ac_compile") 2>conftest.er1
2417   ac_status=$?
2418   grep -v '^ *+' conftest.er1 >conftest.err
2419   rm -f conftest.er1
2420   cat conftest.err >&5
2421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422   (exit $ac_status); } && {
2423          test -z "$ac_c_werror_flag" ||
2424          test ! -s conftest.err
2425        } && test -s conftest.$ac_objext; then
2426   :
2427 else
2428   echo "$as_me: failed program was:" >&5
2429 sed 's/^/| /' conftest.$ac_ext >&5
2430
2431         ac_c_werror_flag=$ac_save_c_werror_flag
2432          CFLAGS="-g"
2433          cat >conftest.$ac_ext <<_ACEOF
2434 /* confdefs.h.  */
2435 _ACEOF
2436 cat confdefs.h >>conftest.$ac_ext
2437 cat >>conftest.$ac_ext <<_ACEOF
2438 /* end confdefs.h.  */
2439
2440 int
2441 main ()
2442 {
2443
2444   ;
2445   return 0;
2446 }
2447 _ACEOF
2448 rm -f conftest.$ac_objext
2449 if { (ac_try="$ac_compile"
2450 case "(($ac_try" in
2451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2452   *) ac_try_echo=$ac_try;;
2453 esac
2454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2455   (eval "$ac_compile") 2>conftest.er1
2456   ac_status=$?
2457   grep -v '^ *+' conftest.er1 >conftest.err
2458   rm -f conftest.er1
2459   cat conftest.err >&5
2460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461   (exit $ac_status); } && {
2462          test -z "$ac_c_werror_flag" ||
2463          test ! -s conftest.err
2464        } && test -s conftest.$ac_objext; then
2465   ac_cv_prog_cc_g=yes
2466 else
2467   echo "$as_me: failed program was:" >&5
2468 sed 's/^/| /' conftest.$ac_ext >&5
2469
2470         
2471 fi
2472
2473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2474 fi
2475
2476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2477 fi
2478
2479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2480    ac_c_werror_flag=$ac_save_c_werror_flag
2481 fi
2482 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2483 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2484 if test "$ac_test_CFLAGS" = set; then
2485   CFLAGS=$ac_save_CFLAGS
2486 elif test $ac_cv_prog_cc_g = yes; then
2487   if test "$GCC" = yes; then
2488     CFLAGS="-g -O2"
2489   else
2490     CFLAGS="-g"
2491   fi
2492 else
2493   if test "$GCC" = yes; then
2494     CFLAGS="-O2"
2495   else
2496     CFLAGS=
2497   fi
2498 fi
2499 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2500 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2501 if test "${ac_cv_prog_cc_c89+set}" = set; then
2502   echo $ECHO_N "(cached) $ECHO_C" >&6
2503 else
2504   ac_cv_prog_cc_c89=no
2505 ac_save_CC=$CC
2506 cat >conftest.$ac_ext <<_ACEOF
2507 /* confdefs.h.  */
2508 _ACEOF
2509 cat confdefs.h >>conftest.$ac_ext
2510 cat >>conftest.$ac_ext <<_ACEOF
2511 /* end confdefs.h.  */
2512 #include <stdarg.h>
2513 #include <stdio.h>
2514 #include <sys/types.h>
2515 #include <sys/stat.h>
2516 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2517 struct buf { int x; };
2518 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2519 static char *e (p, i)
2520      char **p;
2521      int i;
2522 {
2523   return p[i];
2524 }
2525 static char *f (char * (*g) (char **, int), char **p, ...)
2526 {
2527   char *s;
2528   va_list v;
2529   va_start (v,p);
2530   s = g (p, va_arg (v,int));
2531   va_end (v);
2532   return s;
2533 }
2534
2535 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2536    function prototypes and stuff, but not '\xHH' hex character constants.
2537    These don't provoke an error unfortunately, instead are silently treated
2538    as 'x'.  The following induces an error, until -std is added to get
2539    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2540    array size at least.  It's necessary to write '\x00'==0 to get something
2541    that's true only with -std.  */
2542 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2543
2544 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2545    inside strings and character constants.  */
2546 #define FOO(x) 'x'
2547 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2548
2549 int test (int i, double x);
2550 struct s1 {int (*f) (int a);};
2551 struct s2 {int (*f) (double a);};
2552 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2553 int argc;
2554 char **argv;
2555 int
2556 main ()
2557 {
2558 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2559   ;
2560   return 0;
2561 }
2562 _ACEOF
2563 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2564         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2565 do
2566   CC="$ac_save_CC $ac_arg"
2567   rm -f conftest.$ac_objext
2568 if { (ac_try="$ac_compile"
2569 case "(($ac_try" in
2570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2571   *) ac_try_echo=$ac_try;;
2572 esac
2573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2574   (eval "$ac_compile") 2>conftest.er1
2575   ac_status=$?
2576   grep -v '^ *+' conftest.er1 >conftest.err
2577   rm -f conftest.er1
2578   cat conftest.err >&5
2579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580   (exit $ac_status); } && {
2581          test -z "$ac_c_werror_flag" ||
2582          test ! -s conftest.err
2583        } && test -s conftest.$ac_objext; then
2584   ac_cv_prog_cc_c89=$ac_arg
2585 else
2586   echo "$as_me: failed program was:" >&5
2587 sed 's/^/| /' conftest.$ac_ext >&5
2588
2589         
2590 fi
2591
2592 rm -f core conftest.err conftest.$ac_objext 
2593   test "x$ac_cv_prog_cc_c89" != "xno" && break
2594 done
2595 rm -f conftest.$ac_ext
2596 CC=$ac_save_CC
2597
2598 fi
2599 # AC_CACHE_VAL
2600 case "x$ac_cv_prog_cc_c89" in
2601   x)
2602     { echo "$as_me:$LINENO: result: none needed" >&5
2603 echo "${ECHO_T}none needed" >&6; } ;;
2604   xno)
2605     { echo "$as_me:$LINENO: result: unsupported" >&5
2606 echo "${ECHO_T}unsupported" >&6; } ;;
2607   *)
2608     CC="$CC $ac_cv_prog_cc_c89"
2609     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2610 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2611 esac
2612
2613
2614 ac_ext=c
2615 ac_cpp='$CPP $CPPFLAGS'
2616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2619
2620
2621 ac_ext=c
2622 ac_cpp='$CPP $CPPFLAGS'
2623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2626 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2627 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2628 # On Suns, sometimes $CPP names a directory.
2629 if test -n "$CPP" && test -d "$CPP"; then
2630   CPP=
2631 fi
2632 if test -z "$CPP"; then
2633   if test "${ac_cv_prog_CPP+set}" = set; then
2634   echo $ECHO_N "(cached) $ECHO_C" >&6
2635 else
2636       # Double quotes because CPP needs to be expanded
2637     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2638     do
2639       ac_preproc_ok=false
2640 for ac_c_preproc_warn_flag in '' yes
2641 do
2642   # Use a header file that comes with gcc, so configuring glibc
2643   # with a fresh cross-compiler works.
2644   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2645   # <limits.h> exists even on freestanding compilers.
2646   # On the NeXT, cc -E runs the code through the compiler's parser,
2647   # not just through cpp. "Syntax error" is here to catch this case.
2648   cat >conftest.$ac_ext <<_ACEOF
2649 /* confdefs.h.  */
2650 _ACEOF
2651 cat confdefs.h >>conftest.$ac_ext
2652 cat >>conftest.$ac_ext <<_ACEOF
2653 /* end confdefs.h.  */
2654 @%:@ifdef __STDC__
2655 @%:@ include <limits.h>
2656 @%:@else
2657 @%:@ include <assert.h>
2658 @%:@endif
2659                      Syntax error
2660 _ACEOF
2661 if { (ac_try="$ac_cpp conftest.$ac_ext"
2662 case "(($ac_try" in
2663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2664   *) ac_try_echo=$ac_try;;
2665 esac
2666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2667   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2668   ac_status=$?
2669   grep -v '^ *+' conftest.er1 >conftest.err
2670   rm -f conftest.er1
2671   cat conftest.err >&5
2672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673   (exit $ac_status); } >/dev/null && {
2674          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2675          test ! -s conftest.err
2676        }; then
2677   :
2678 else
2679   echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2681
2682   # Broken: fails on valid input.
2683 continue
2684 fi
2685
2686 rm -f conftest.err conftest.$ac_ext
2687
2688   # OK, works on sane cases.  Now check whether nonexistent headers
2689   # can be detected and how.
2690   cat >conftest.$ac_ext <<_ACEOF
2691 /* confdefs.h.  */
2692 _ACEOF
2693 cat confdefs.h >>conftest.$ac_ext
2694 cat >>conftest.$ac_ext <<_ACEOF
2695 /* end confdefs.h.  */
2696 @%:@include <ac_nonexistent.h>
2697 _ACEOF
2698 if { (ac_try="$ac_cpp conftest.$ac_ext"
2699 case "(($ac_try" in
2700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701   *) ac_try_echo=$ac_try;;
2702 esac
2703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2704   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2705   ac_status=$?
2706   grep -v '^ *+' conftest.er1 >conftest.err
2707   rm -f conftest.er1
2708   cat conftest.err >&5
2709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710   (exit $ac_status); } >/dev/null && {
2711          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2712          test ! -s conftest.err
2713        }; then
2714   # Broken: success on invalid input.
2715 continue
2716 else
2717   echo "$as_me: failed program was:" >&5
2718 sed 's/^/| /' conftest.$ac_ext >&5
2719
2720   # Passes both tests.
2721 ac_preproc_ok=:
2722 break
2723 fi
2724
2725 rm -f conftest.err conftest.$ac_ext
2726
2727 done
2728 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2729 rm -f conftest.err conftest.$ac_ext
2730 if $ac_preproc_ok; then
2731   break
2732 fi
2733
2734     done
2735     ac_cv_prog_CPP=$CPP
2736   
2737 fi
2738   CPP=$ac_cv_prog_CPP
2739 else
2740   ac_cv_prog_CPP=$CPP
2741 fi
2742 { echo "$as_me:$LINENO: result: $CPP" >&5
2743 echo "${ECHO_T}$CPP" >&6; }
2744 ac_preproc_ok=false
2745 for ac_c_preproc_warn_flag in '' yes
2746 do
2747   # Use a header file that comes with gcc, so configuring glibc
2748   # with a fresh cross-compiler works.
2749   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2750   # <limits.h> exists even on freestanding compilers.
2751   # On the NeXT, cc -E runs the code through the compiler's parser,
2752   # not just through cpp. "Syntax error" is here to catch this case.
2753   cat >conftest.$ac_ext <<_ACEOF
2754 /* confdefs.h.  */
2755 _ACEOF
2756 cat confdefs.h >>conftest.$ac_ext
2757 cat >>conftest.$ac_ext <<_ACEOF
2758 /* end confdefs.h.  */
2759 @%:@ifdef __STDC__
2760 @%:@ include <limits.h>
2761 @%:@else
2762 @%:@ include <assert.h>
2763 @%:@endif
2764                      Syntax error
2765 _ACEOF
2766 if { (ac_try="$ac_cpp conftest.$ac_ext"
2767 case "(($ac_try" in
2768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2769   *) ac_try_echo=$ac_try;;
2770 esac
2771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2772   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2773   ac_status=$?
2774   grep -v '^ *+' conftest.er1 >conftest.err
2775   rm -f conftest.er1
2776   cat conftest.err >&5
2777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778   (exit $ac_status); } >/dev/null && {
2779          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2780          test ! -s conftest.err
2781        }; then
2782   :
2783 else
2784   echo "$as_me: failed program was:" >&5
2785 sed 's/^/| /' conftest.$ac_ext >&5
2786
2787   # Broken: fails on valid input.
2788 continue
2789 fi
2790
2791 rm -f conftest.err conftest.$ac_ext
2792
2793   # OK, works on sane cases.  Now check whether nonexistent headers
2794   # can be detected and how.
2795   cat >conftest.$ac_ext <<_ACEOF
2796 /* confdefs.h.  */
2797 _ACEOF
2798 cat confdefs.h >>conftest.$ac_ext
2799 cat >>conftest.$ac_ext <<_ACEOF
2800 /* end confdefs.h.  */
2801 @%:@include <ac_nonexistent.h>
2802 _ACEOF
2803 if { (ac_try="$ac_cpp conftest.$ac_ext"
2804 case "(($ac_try" in
2805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2806   *) ac_try_echo=$ac_try;;
2807 esac
2808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2809   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2810   ac_status=$?
2811   grep -v '^ *+' conftest.er1 >conftest.err
2812   rm -f conftest.er1
2813   cat conftest.err >&5
2814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815   (exit $ac_status); } >/dev/null && {
2816          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2817          test ! -s conftest.err
2818        }; then
2819   # Broken: success on invalid input.
2820 continue
2821 else
2822   echo "$as_me: failed program was:" >&5
2823 sed 's/^/| /' conftest.$ac_ext >&5
2824
2825   # Passes both tests.
2826 ac_preproc_ok=:
2827 break
2828 fi
2829
2830 rm -f conftest.err conftest.$ac_ext
2831
2832 done
2833 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2834 rm -f conftest.err conftest.$ac_ext
2835 if $ac_preproc_ok; then
2836   :
2837 else
2838   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2839 See \`config.log' for more details." >&5
2840 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2841 See \`config.log' for more details." >&2;}
2842    { (exit 1); exit 1; }; }
2843 fi
2844
2845 ac_ext=c
2846 ac_cpp='$CPP $CPPFLAGS'
2847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2850
2851
2852 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
2853 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
2854 if test "${ac_cv_path_GREP+set}" = set; then
2855   echo $ECHO_N "(cached) $ECHO_C" >&6
2856 else
2857   # Extract the first word of "grep ggrep" to use in msg output
2858 if test -z "$GREP"; then
2859 set dummy grep ggrep; ac_prog_name=$2
2860 if test "${ac_cv_path_GREP+set}" = set; then
2861   echo $ECHO_N "(cached) $ECHO_C" >&6
2862 else
2863   ac_path_GREP_found=false
2864 # Loop through the user's path and test for each of PROGNAME-LIST
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2867 do
2868   IFS=$as_save_IFS
2869   test -z "$as_dir" && as_dir=.
2870   for ac_prog in grep ggrep; do
2871   for ac_exec_ext in '' $ac_executable_extensions; do
2872     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2873     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
2874     # Check for GNU ac_path_GREP and select it if it is found.
2875   # Check for GNU $ac_path_GREP
2876 case `"$ac_path_GREP" --version 2>&1` in
2877 *GNU*)
2878   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
2879 *)
2880   ac_count=0
2881   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2882   while :
2883   do
2884     cat "conftest.in" "conftest.in" >"conftest.tmp"
2885     mv "conftest.tmp" "conftest.in"
2886     cp "conftest.in" "conftest.nl"
2887     echo 'GREP' >> "conftest.nl"
2888     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2889     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2890     ac_count=`expr $ac_count + 1`
2891     if test $ac_count -gt ${ac_path_GREP_max-0}; then
2892       # Best one so far, save it but keep looking for a better one
2893       ac_cv_path_GREP="$ac_path_GREP"
2894       ac_path_GREP_max=$ac_count
2895     fi
2896     # 10*(2^10) chars as input seems more than enough
2897     test $ac_count -gt 10 && break
2898   done
2899   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2900 esac
2901
2902
2903     $ac_path_GREP_found && break 3
2904   done
2905 done
2906
2907 done
2908 IFS=$as_save_IFS
2909
2910
2911 fi
2912
2913 GREP="$ac_cv_path_GREP"
2914 if test -z "$GREP"; then
2915   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
2916 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
2917    { (exit 1); exit 1; }; }
2918 fi
2919
2920 else
2921   ac_cv_path_GREP=$GREP
2922 fi
2923
2924
2925 fi
2926 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
2927 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
2928  GREP="$ac_cv_path_GREP"
2929  
2930
2931 { echo "$as_me:$LINENO: checking for egrep" >&5
2932 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
2933 if test "${ac_cv_path_EGREP+set}" = set; then
2934   echo $ECHO_N "(cached) $ECHO_C" >&6
2935 else
2936   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
2937    then ac_cv_path_EGREP="$GREP -E"
2938    else
2939      # Extract the first word of "egrep" to use in msg output
2940 if test -z "$EGREP"; then
2941 set dummy egrep; ac_prog_name=$2
2942 if test "${ac_cv_path_EGREP+set}" = set; then
2943   echo $ECHO_N "(cached) $ECHO_C" >&6
2944 else
2945   ac_path_EGREP_found=false
2946 # Loop through the user's path and test for each of PROGNAME-LIST
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2949 do
2950   IFS=$as_save_IFS
2951   test -z "$as_dir" && as_dir=.
2952   for ac_prog in egrep; do
2953   for ac_exec_ext in '' $ac_executable_extensions; do
2954     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
2955     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
2956     # Check for GNU ac_path_EGREP and select it if it is found.
2957   # Check for GNU $ac_path_EGREP
2958 case `"$ac_path_EGREP" --version 2>&1` in
2959 *GNU*)
2960   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
2961 *)
2962   ac_count=0
2963   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2964   while :
2965   do
2966     cat "conftest.in" "conftest.in" >"conftest.tmp"
2967     mv "conftest.tmp" "conftest.in"
2968     cp "conftest.in" "conftest.nl"
2969     echo 'EGREP' >> "conftest.nl"
2970     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2971     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2972     ac_count=`expr $ac_count + 1`
2973     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
2974       # Best one so far, save it but keep looking for a better one
2975       ac_cv_path_EGREP="$ac_path_EGREP"
2976       ac_path_EGREP_max=$ac_count
2977     fi
2978     # 10*(2^10) chars as input seems more than enough
2979     test $ac_count -gt 10 && break
2980   done
2981   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2982 esac
2983
2984
2985     $ac_path_EGREP_found && break 3
2986   done
2987 done
2988
2989 done
2990 IFS=$as_save_IFS
2991
2992
2993 fi
2994
2995 EGREP="$ac_cv_path_EGREP"
2996 if test -z "$EGREP"; then
2997   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
2998 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
2999    { (exit 1); exit 1; }; }
3000 fi
3001
3002 else
3003   ac_cv_path_EGREP=$EGREP
3004 fi
3005
3006
3007    fi
3008 fi
3009 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3010 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3011  EGREP="$ac_cv_path_EGREP"
3012  
3013
3014 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3015 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3016 if test "${ac_cv_header_stdc+set}" = set; then
3017   echo $ECHO_N "(cached) $ECHO_C" >&6
3018 else
3019   cat >conftest.$ac_ext <<_ACEOF
3020 /* confdefs.h.  */
3021 _ACEOF
3022 cat confdefs.h >>conftest.$ac_ext
3023 cat >>conftest.$ac_ext <<_ACEOF
3024 /* end confdefs.h.  */
3025 #include <stdlib.h>
3026 #include <stdarg.h>
3027 #include <string.h>
3028 #include <float.h>
3029
3030 int
3031 main ()
3032 {
3033
3034   ;
3035   return 0;
3036 }
3037 _ACEOF
3038 rm -f conftest.$ac_objext
3039 if { (ac_try="$ac_compile"
3040 case "(($ac_try" in
3041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042   *) ac_try_echo=$ac_try;;
3043 esac
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045   (eval "$ac_compile") 2>conftest.er1
3046   ac_status=$?
3047   grep -v '^ *+' conftest.er1 >conftest.err
3048   rm -f conftest.er1
3049   cat conftest.err >&5
3050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051   (exit $ac_status); } && {
3052          test -z "$ac_c_werror_flag" ||
3053          test ! -s conftest.err
3054        } && test -s conftest.$ac_objext; then
3055   ac_cv_header_stdc=yes
3056 else
3057   echo "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.$ac_ext >&5
3059
3060         ac_cv_header_stdc=no
3061 fi
3062
3063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3064
3065 if test $ac_cv_header_stdc = yes; then
3066   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3067   cat >conftest.$ac_ext <<_ACEOF
3068 /* confdefs.h.  */
3069 _ACEOF
3070 cat confdefs.h >>conftest.$ac_ext
3071 cat >>conftest.$ac_ext <<_ACEOF
3072 /* end confdefs.h.  */
3073 #include <string.h>
3074
3075 _ACEOF
3076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3077   $EGREP "memchr" >/dev/null 2>&1; then
3078   :
3079 else
3080   ac_cv_header_stdc=no
3081 fi
3082 rm -f conftest*
3083
3084 fi
3085
3086 if test $ac_cv_header_stdc = yes; then
3087   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3088   cat >conftest.$ac_ext <<_ACEOF
3089 /* confdefs.h.  */
3090 _ACEOF
3091 cat confdefs.h >>conftest.$ac_ext
3092 cat >>conftest.$ac_ext <<_ACEOF
3093 /* end confdefs.h.  */
3094 #include <stdlib.h>
3095
3096 _ACEOF
3097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3098   $EGREP "free" >/dev/null 2>&1; then
3099   :
3100 else
3101   ac_cv_header_stdc=no
3102 fi
3103 rm -f conftest*
3104
3105 fi
3106
3107 if test $ac_cv_header_stdc = yes; then
3108   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3109   if test "$cross_compiling" = yes; then
3110   :
3111 else
3112   cat >conftest.$ac_ext <<_ACEOF
3113 /* confdefs.h.  */
3114 _ACEOF
3115 cat confdefs.h >>conftest.$ac_ext
3116 cat >>conftest.$ac_ext <<_ACEOF
3117 /* end confdefs.h.  */
3118 #include <ctype.h>
3119 #include <stdlib.h>
3120 #if ((' ' & 0x0FF) == 0x020)
3121 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3122 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3123 #else
3124 # define ISLOWER(c) \
3125                    (('a' <= (c) && (c) <= 'i') \
3126                      || ('j' <= (c) && (c) <= 'r') \
3127                      || ('s' <= (c) && (c) <= 'z'))
3128 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3129 #endif
3130
3131 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3132 int
3133 main ()
3134 {
3135   int i;
3136   for (i = 0; i < 256; i++)
3137     if (XOR (islower (i), ISLOWER (i))
3138         || toupper (i) != TOUPPER (i))
3139       return 2;
3140   return 0;
3141 }
3142 _ACEOF
3143 rm -f conftest$ac_exeext
3144 if { (ac_try="$ac_link"
3145 case "(($ac_try" in
3146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147   *) ac_try_echo=$ac_try;;
3148 esac
3149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150   (eval "$ac_link") 2>&5
3151   ac_status=$?
3152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3154   { (case "(($ac_try" in
3155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156   *) ac_try_echo=$ac_try;;
3157 esac
3158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3159   (eval "$ac_try") 2>&5
3160   ac_status=$?
3161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162   (exit $ac_status); }; }; then
3163   :
3164 else
3165   echo "$as_me: program exited with status $ac_status" >&5
3166 echo "$as_me: failed program was:" >&5
3167 sed 's/^/| /' conftest.$ac_ext >&5
3168
3169 ( exit $ac_status )
3170 ac_cv_header_stdc=no
3171 fi
3172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3173 fi
3174
3175
3176 fi
3177 fi
3178 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3179 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3180 if test $ac_cv_header_stdc = yes; then
3181   
3182 cat >>confdefs.h <<\_ACEOF
3183 @%:@define STDC_HEADERS 1
3184 _ACEOF
3185
3186 fi
3187
3188 ac_aux_dir=
3189 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3190   if test -f "$ac_dir/install-sh"; then
3191     ac_aux_dir=$ac_dir
3192     ac_install_sh="$ac_aux_dir/install-sh -c"
3193     break
3194   elif test -f "$ac_dir/install.sh"; then
3195     ac_aux_dir=$ac_dir
3196     ac_install_sh="$ac_aux_dir/install.sh -c"
3197     break
3198   elif test -f "$ac_dir/shtool"; then
3199     ac_aux_dir=$ac_dir
3200     ac_install_sh="$ac_aux_dir/shtool install -c"
3201     break
3202   fi
3203 done
3204 if test -z "$ac_aux_dir"; then
3205   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3206 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3207    { (exit 1); exit 1; }; }
3208 fi
3209
3210 # These three variables are undocumented and unsupported,
3211 # and are intended to be withdrawn in a future Autoconf release.
3212 # They can cause serious problems if a builder's source tree is in a directory
3213 # whose full name contains unusual characters.
3214 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3215 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3216 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3217
3218
3219 # Find a good install program.  We prefer a C program (faster),
3220 # so one script is as good as another.  But avoid the broken or
3221 # incompatible versions:
3222 # SysV /etc/install, /usr/sbin/install
3223 # SunOS /usr/etc/install
3224 # IRIX /sbin/install
3225 # AIX /bin/install
3226 # AmigaOS /C/install, which installs bootblocks on floppy discs
3227 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3228 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3229 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3230 # OS/2's system install, which has a completely different semantic
3231 # ./install, which can be erroneously created by make from ./install.sh.
3232 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3233 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3234 if test -z "$INSTALL"; then
3235 if test "${ac_cv_path_install+set}" = set; then
3236   echo $ECHO_N "(cached) $ECHO_C" >&6
3237 else
3238   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239 for as_dir in $PATH
3240 do
3241   IFS=$as_save_IFS
3242   test -z "$as_dir" && as_dir=.
3243   # Account for people who put trailing slashes in PATH elements.
3244 case $as_dir/ in
3245   ./ | .// | /cC/* | \
3246   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3247   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3248   /usr/ucb/* ) ;;
3249   *)
3250     # OSF1 and SCO ODT 3.0 have their own names for install.
3251     # Don't use installbsd from OSF since it installs stuff as root
3252     # by default.
3253     for ac_prog in ginstall scoinst install; do
3254       for ac_exec_ext in '' $ac_executable_extensions; do
3255         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3256           if test $ac_prog = install &&
3257             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3258             # AIX install.  It has an incompatible calling convention.
3259             :
3260           elif test $ac_prog = install &&
3261             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3262             # program-specific install script used by HP pwplus--don't use.
3263             :
3264           else
3265             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3266             break 3
3267           fi
3268         fi
3269       done
3270     done
3271     ;;
3272 esac
3273 done
3274 IFS=$as_save_IFS
3275
3276
3277 fi
3278   if test "${ac_cv_path_install+set}" = set; then
3279     INSTALL=$ac_cv_path_install
3280   else
3281     # As a last resort, use the slow shell script.  Don't cache a
3282     # value for INSTALL within a source directory, because that will
3283     # break other packages using the cache if that directory is
3284     # removed, or if the value is a relative name.
3285     INSTALL=$ac_install_sh
3286   fi
3287 fi
3288 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3289 echo "${ECHO_T}$INSTALL" >&6; }
3290
3291 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3292 # It thinks the first close brace ends the variable substitution.
3293 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3294
3295 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3296
3297 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3298
3299
3300 { echo "$as_me:$LINENO: checking whether compiler supports PIE" >&5
3301 echo $ECHO_N "checking whether compiler supports PIE... $ECHO_C" >&6; }
3302 oldCFLAGS="$CFLAGS"
3303 CFLAGS="$CFLAGS -fPIE"
3304 oldLDFLAGS="$LDFLAGS"
3305 LDFLAGS="$LDFLAGS -pie"
3306 cat >conftest.$ac_ext <<_ACEOF
3307 /* confdefs.h.  */
3308 _ACEOF
3309 cat confdefs.h >>conftest.$ac_ext
3310 cat >>conftest.$ac_ext <<_ACEOF
3311 /* end confdefs.h.  */
3312
3313 int
3314 main ()
3315 {
3316
3317   ;
3318   return 0;
3319 }
3320 _ACEOF
3321 rm -f conftest.$ac_objext conftest$ac_exeext
3322 if { (ac_try="$ac_link"
3323 case "(($ac_try" in
3324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325   *) ac_try_echo=$ac_try;;
3326 esac
3327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3328   (eval "$ac_link") 2>conftest.er1
3329   ac_status=$?
3330   grep -v '^ *+' conftest.er1 >conftest.err
3331   rm -f conftest.er1
3332   cat conftest.err >&5
3333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334   (exit $ac_status); } && {
3335          test -z "$ac_c_werror_flag" ||
3336          test ! -s conftest.err
3337        } && test -s conftest$ac_exeext &&
3338        $as_test_x conftest$ac_exeext; then
3339   compilepie="yes"
3340 else
3341   echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.$ac_ext >&5
3343
3344         
3345 fi
3346
3347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3348       conftest$ac_exeext conftest.$ac_ext
3349 if test "x$compilepie" != "xyes"; then
3350         CFLAGS="$oldCFLAGS"
3351         LDFLAGS="$oldLDFLAGS"
3352         { echo "$as_me:$LINENO: result: no" >&5
3353 echo "${ECHO_T}no" >&6; }
3354 else
3355         { echo "$as_me:$LINENO: result: yes" >&5
3356 echo "${ECHO_T}yes" >&6; }
3357 fi
3358
3359 # Check whether --enable-ldapmail was given.
3360 if test "${enable_ldapmail+set}" = set; then
3361   enableval=$enable_ldapmail; 
3362 else
3363   enable_ldapmail="no"
3364 fi
3365
3366 if test "x$enable_ldapmail" != "xno"; then
3367         have_new_ldap="no"
3368         have_old_ldap="no"
3369         { echo "$as_me:$LINENO: checking for ldap_initialize in -lldap" >&5
3370 echo $ECHO_N "checking for ldap_initialize in -lldap... $ECHO_C" >&6; }
3371 if test "${ac_cv_lib_ldap_ldap_initialize+set}" = set; then
3372   echo $ECHO_N "(cached) $ECHO_C" >&6
3373 else
3374   ac_check_lib_save_LIBS=$LIBS
3375 LIBS="-lldap  $LIBS"
3376 cat >conftest.$ac_ext <<_ACEOF
3377 /* confdefs.h.  */
3378 _ACEOF
3379 cat confdefs.h >>conftest.$ac_ext
3380 cat >>conftest.$ac_ext <<_ACEOF
3381 /* end confdefs.h.  */
3382
3383 /* Override any GCC internal prototype to avoid an error.
3384    Use char because int might match the return type of a GCC
3385    builtin and then its argument prototype would still apply.  */
3386 #ifdef __cplusplus
3387 extern "C"
3388 #endif
3389 char ldap_initialize ();
3390 int
3391 main ()
3392 {
3393 return ldap_initialize ();
3394   ;
3395   return 0;
3396 }
3397 _ACEOF
3398 rm -f conftest.$ac_objext conftest$ac_exeext
3399 if { (ac_try="$ac_link"
3400 case "(($ac_try" in
3401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402   *) ac_try_echo=$ac_try;;
3403 esac
3404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3405   (eval "$ac_link") 2>conftest.er1
3406   ac_status=$?
3407   grep -v '^ *+' conftest.er1 >conftest.err
3408   rm -f conftest.er1
3409   cat conftest.err >&5
3410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411   (exit $ac_status); } && {
3412          test -z "$ac_c_werror_flag" ||
3413          test ! -s conftest.err
3414        } && test -s conftest$ac_exeext &&
3415        $as_test_x conftest$ac_exeext; then
3416   ac_cv_lib_ldap_ldap_initialize=yes
3417 else
3418   echo "$as_me: failed program was:" >&5
3419 sed 's/^/| /' conftest.$ac_ext >&5
3420
3421         ac_cv_lib_ldap_ldap_initialize=no
3422 fi
3423
3424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3425       conftest$ac_exeext conftest.$ac_ext
3426 LIBS=$ac_check_lib_save_LIBS
3427 fi
3428 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_initialize" >&5
3429 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_initialize" >&6; }
3430 if test $ac_cv_lib_ldap_ldap_initialize = yes; then
3431   have_new_ldap="yes"
3432 else
3433   { echo "$as_me:$LINENO: checking for ldap_init in -lldap" >&5
3434 echo $ECHO_N "checking for ldap_init in -lldap... $ECHO_C" >&6; }
3435 if test "${ac_cv_lib_ldap_ldap_init+set}" = set; then
3436   echo $ECHO_N "(cached) $ECHO_C" >&6
3437 else
3438   ac_check_lib_save_LIBS=$LIBS
3439 LIBS="-lldap  $LIBS"
3440 cat >conftest.$ac_ext <<_ACEOF
3441 /* confdefs.h.  */
3442 _ACEOF
3443 cat confdefs.h >>conftest.$ac_ext
3444 cat >>conftest.$ac_ext <<_ACEOF
3445 /* end confdefs.h.  */
3446
3447 /* Override any GCC internal prototype to avoid an error.
3448    Use char because int might match the return type of a GCC
3449    builtin and then its argument prototype would still apply.  */
3450 #ifdef __cplusplus
3451 extern "C"
3452 #endif
3453 char ldap_init ();
3454 int
3455 main ()
3456 {
3457 return ldap_init ();
3458   ;
3459   return 0;
3460 }
3461 _ACEOF
3462 rm -f conftest.$ac_objext conftest$ac_exeext
3463 if { (ac_try="$ac_link"
3464 case "(($ac_try" in
3465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466   *) ac_try_echo=$ac_try;;
3467 esac
3468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3469   (eval "$ac_link") 2>conftest.er1
3470   ac_status=$?
3471   grep -v '^ *+' conftest.er1 >conftest.err
3472   rm -f conftest.er1
3473   cat conftest.err >&5
3474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475   (exit $ac_status); } && {
3476          test -z "$ac_c_werror_flag" ||
3477          test ! -s conftest.err
3478        } && test -s conftest$ac_exeext &&
3479        $as_test_x conftest$ac_exeext; then
3480   ac_cv_lib_ldap_ldap_init=yes
3481 else
3482   echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.$ac_ext >&5
3484
3485         ac_cv_lib_ldap_ldap_init=no
3486 fi
3487
3488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3489       conftest$ac_exeext conftest.$ac_ext
3490 LIBS=$ac_check_lib_save_LIBS
3491 fi
3492 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_init" >&5
3493 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_init" >&6; }
3494 if test $ac_cv_lib_ldap_ldap_init = yes; then
3495   have_old_ldap="yes"
3496 fi
3497
3498 fi
3499
3500         if test "x$have_new_ldap" != "xno" -o "x$have_old_ldap" != "xno"; then
3501                 LDAPLIBS="-L/usr/lib -lldap"
3502                 CFLAGS="$CFLAGS -DUSE_LDAP_MAIL_LOOKUP"
3503                 COMPILE_OPTS="$COMPILE_OPTS USE_LDAP_MAIL_LOOKUP"
3504                 if test "x$have_new_ldap" = "xyes"; then
3505                         CFLAGS="$CFLAGS -DUSE_LDAP_23"
3506                         { echo "$as_me:$LINENO: checking whether ldap_perror is declared" >&5
3507 echo $ECHO_N "checking whether ldap_perror is declared... $ECHO_C" >&6; }
3508 if test "${ac_cv_have_decl_ldap_perror+set}" = set; then
3509   echo $ECHO_N "(cached) $ECHO_C" >&6
3510 else
3511   cat >conftest.$ac_ext <<_ACEOF
3512 /* confdefs.h.  */
3513 _ACEOF
3514 cat confdefs.h >>conftest.$ac_ext
3515 cat >>conftest.$ac_ext <<_ACEOF
3516 /* end confdefs.h.  */
3517 #include <ldap.h>
3518
3519 int
3520 main ()
3521 {
3522 #ifndef ldap_perror
3523   (void) ldap_perror;
3524 #endif
3525
3526   ;
3527   return 0;
3528 }
3529 _ACEOF
3530 rm -f conftest.$ac_objext
3531 if { (ac_try="$ac_compile"
3532 case "(($ac_try" in
3533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534   *) ac_try_echo=$ac_try;;
3535 esac
3536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3537   (eval "$ac_compile") 2>conftest.er1
3538   ac_status=$?
3539   grep -v '^ *+' conftest.er1 >conftest.err
3540   rm -f conftest.er1
3541   cat conftest.err >&5
3542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543   (exit $ac_status); } && {
3544          test -z "$ac_c_werror_flag" ||
3545          test ! -s conftest.err
3546        } && test -s conftest.$ac_objext; then
3547   ac_cv_have_decl_ldap_perror=yes
3548 else
3549   echo "$as_me: failed program was:" >&5
3550 sed 's/^/| /' conftest.$ac_ext >&5
3551
3552         ac_cv_have_decl_ldap_perror=no
3553 fi
3554
3555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3556 fi
3557 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ldap_perror" >&5
3558 echo "${ECHO_T}$ac_cv_have_decl_ldap_perror" >&6; }
3559 if test $ac_cv_have_decl_ldap_perror = yes; then
3560   :
3561 else
3562   CFLAGS="$CFLAGS -DNEED_LDAP_PERROR"
3563 fi
3564
3565                 fi
3566         else
3567                 if test "x$enable_ldapmail" = "xyes"; then
3568                         { { echo "$as_me:$LINENO: error: LDAP support required but library not found." >&5
3569 echo "$as_me: error: LDAP support required but library not found." >&2;}
3570    { (exit 1); exit 1; }; };
3571                 fi
3572         fi
3573 fi
3574
3575
3576         
3577 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3588                   inttypes.h stdint.h unistd.h
3589 do
3590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3591 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3594   echo $ECHO_N "(cached) $ECHO_C" >&6
3595 else
3596   cat >conftest.$ac_ext <<_ACEOF
3597 /* confdefs.h.  */
3598 _ACEOF
3599 cat confdefs.h >>conftest.$ac_ext
3600 cat >>conftest.$ac_ext <<_ACEOF
3601 /* end confdefs.h.  */
3602 $ac_includes_default
3603
3604 @%:@include <$ac_header>
3605 _ACEOF
3606 rm -f conftest.$ac_objext
3607 if { (ac_try="$ac_compile"
3608 case "(($ac_try" in
3609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610   *) ac_try_echo=$ac_try;;
3611 esac
3612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3613   (eval "$ac_compile") 2>conftest.er1
3614   ac_status=$?
3615   grep -v '^ *+' conftest.er1 >conftest.err
3616   rm -f conftest.er1
3617   cat conftest.err >&5
3618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619   (exit $ac_status); } && {
3620          test -z "$ac_c_werror_flag" ||
3621          test ! -s conftest.err
3622        } && test -s conftest.$ac_objext; then
3623   eval "$as_ac_Header=yes"
3624 else
3625   echo "$as_me: failed program was:" >&5
3626 sed 's/^/| /' conftest.$ac_ext >&5
3627
3628         eval "$as_ac_Header=no"
3629 fi
3630
3631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3632 fi
3633 ac_res=`eval echo '${'$as_ac_Header'}'`
3634                { echo "$as_me:$LINENO: result: $ac_res" >&5
3635 echo "${ECHO_T}$ac_res" >&6; }
3636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3637   cat >>confdefs.h <<_ACEOF
3638 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3639 _ACEOF
3640  
3641 fi
3642
3643 done
3644
3645
3646 if test "${ac_cv_header_ext2fs_ext2fs_h+set}" = set; then
3647   { echo "$as_me:$LINENO: checking for ext2fs/ext2fs.h" >&5
3648 echo $ECHO_N "checking for ext2fs/ext2fs.h... $ECHO_C" >&6; }
3649 if test "${ac_cv_header_ext2fs_ext2fs_h+set}" = set; then
3650   echo $ECHO_N "(cached) $ECHO_C" >&6
3651 fi
3652 { echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2fs_h" >&5
3653 echo "${ECHO_T}$ac_cv_header_ext2fs_ext2fs_h" >&6; }
3654 else
3655   # Is the header compilable?
3656 { echo "$as_me:$LINENO: checking ext2fs/ext2fs.h usability" >&5
3657 echo $ECHO_N "checking ext2fs/ext2fs.h usability... $ECHO_C" >&6; }
3658 cat >conftest.$ac_ext <<_ACEOF
3659 /* confdefs.h.  */
3660 _ACEOF
3661 cat confdefs.h >>conftest.$ac_ext
3662 cat >>conftest.$ac_ext <<_ACEOF
3663 /* end confdefs.h.  */
3664 $ac_includes_default
3665 @%:@include <ext2fs/ext2fs.h>
3666 _ACEOF
3667 rm -f conftest.$ac_objext
3668 if { (ac_try="$ac_compile"
3669 case "(($ac_try" in
3670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671   *) ac_try_echo=$ac_try;;
3672 esac
3673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3674   (eval "$ac_compile") 2>conftest.er1
3675   ac_status=$?
3676   grep -v '^ *+' conftest.er1 >conftest.err
3677   rm -f conftest.er1
3678   cat conftest.err >&5
3679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680   (exit $ac_status); } && {
3681          test -z "$ac_c_werror_flag" ||
3682          test ! -s conftest.err
3683        } && test -s conftest.$ac_objext; then
3684   ac_header_compiler=yes
3685 else
3686   echo "$as_me: failed program was:" >&5
3687 sed 's/^/| /' conftest.$ac_ext >&5
3688
3689         ac_header_compiler=no
3690 fi
3691
3692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3693 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3694 echo "${ECHO_T}$ac_header_compiler" >&6; }
3695
3696 # Is the header present?
3697 { echo "$as_me:$LINENO: checking ext2fs/ext2fs.h presence" >&5
3698 echo $ECHO_N "checking ext2fs/ext2fs.h presence... $ECHO_C" >&6; }
3699 cat >conftest.$ac_ext <<_ACEOF
3700 /* confdefs.h.  */
3701 _ACEOF
3702 cat confdefs.h >>conftest.$ac_ext
3703 cat >>conftest.$ac_ext <<_ACEOF
3704 /* end confdefs.h.  */
3705 @%:@include <ext2fs/ext2fs.h>
3706 _ACEOF
3707 if { (ac_try="$ac_cpp conftest.$ac_ext"
3708 case "(($ac_try" in
3709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710   *) ac_try_echo=$ac_try;;
3711 esac
3712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3713   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3714   ac_status=$?
3715   grep -v '^ *+' conftest.er1 >conftest.err
3716   rm -f conftest.er1
3717   cat conftest.err >&5
3718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719   (exit $ac_status); } >/dev/null && {
3720          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3721          test ! -s conftest.err
3722        }; then
3723   ac_header_preproc=yes
3724 else
3725   echo "$as_me: failed program was:" >&5
3726 sed 's/^/| /' conftest.$ac_ext >&5
3727
3728   ac_header_preproc=no
3729 fi
3730
3731 rm -f conftest.err conftest.$ac_ext
3732 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3733 echo "${ECHO_T}$ac_header_preproc" >&6; }
3734
3735 # So?  What about this header?
3736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3737   yes:no: )
3738     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3739 echo "$as_me: WARNING: ext2fs/ext2fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3740     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2fs.h: proceeding with the compiler's result" >&5
3741 echo "$as_me: WARNING: ext2fs/ext2fs.h: proceeding with the compiler's result" >&2;}
3742     ac_header_preproc=yes
3743     ;;
3744   no:yes:* )
3745     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2fs.h: present but cannot be compiled" >&5
3746 echo "$as_me: WARNING: ext2fs/ext2fs.h: present but cannot be compiled" >&2;}
3747     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2fs.h:     check for missing prerequisite headers?" >&5
3748 echo "$as_me: WARNING: ext2fs/ext2fs.h:     check for missing prerequisite headers?" >&2;}
3749     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2fs.h: see the Autoconf documentation" >&5
3750 echo "$as_me: WARNING: ext2fs/ext2fs.h: see the Autoconf documentation" >&2;}
3751     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2fs.h:     section \"Present But Cannot Be Compiled\"" >&5
3752 echo "$as_me: WARNING: ext2fs/ext2fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3753     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2fs.h: proceeding with the preprocessor's result" >&5
3754 echo "$as_me: WARNING: ext2fs/ext2fs.h: proceeding with the preprocessor's result" >&2;}
3755     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2fs.h: in the future, the compiler will take precedence" >&5
3756 echo "$as_me: WARNING: ext2fs/ext2fs.h: in the future, the compiler will take precedence" >&2;}
3757     
3758     ;;
3759 esac
3760 { echo "$as_me:$LINENO: checking for ext2fs/ext2fs.h" >&5
3761 echo $ECHO_N "checking for ext2fs/ext2fs.h... $ECHO_C" >&6; }
3762 if test "${ac_cv_header_ext2fs_ext2fs_h+set}" = set; then
3763   echo $ECHO_N "(cached) $ECHO_C" >&6
3764 else
3765   ac_cv_header_ext2fs_ext2fs_h=$ac_header_preproc
3766 fi
3767 { echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2fs_h" >&5
3768 echo "${ECHO_T}$ac_cv_header_ext2fs_ext2fs_h" >&6; }
3769
3770 fi
3771 if test $ac_cv_header_ext2fs_ext2fs_h = yes; then
3772   ext2fshead="yes"
3773 fi
3774
3775
3776 if test "x$ext2fshead" = "xyes"; then
3777         CFLAGS="-DHAVE_EXT2_INCLUDE $CFLAGS"
3778         { echo "$as_me:$LINENO: checking for ext2_ino_t" >&5
3779 echo $ECHO_N "checking for ext2_ino_t... $ECHO_C" >&6; }
3780         have_ext2_ino_t="no"
3781         cat >conftest.$ac_ext <<_ACEOF
3782 /* confdefs.h.  */
3783 _ACEOF
3784 cat confdefs.h >>conftest.$ac_ext
3785 cat >>conftest.$ac_ext <<_ACEOF
3786 /* end confdefs.h.  */
3787 #include <ext2fs/ext2fs.h>
3788
3789 _ACEOF
3790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3791   $EGREP "ext2_ino_t" >/dev/null 2>&1; then
3792   have_ext2_ino_t="yes"
3793 fi
3794 rm -f conftest*
3795
3796         if test "x$have_ext2_ino_t" != "xyes"; then
3797                 { echo "$as_me:$LINENO: result: not found" >&5
3798 echo "${ECHO_T}not found" >&6; }
3799         else
3800                 { echo "$as_me:$LINENO: result: found" >&5
3801 echo "${ECHO_T}found" >&6; }
3802                 CFLAGS="-DHAVE_EXT2_INO_T $CFLAGS"
3803         fi
3804 fi
3805
3806 # Check whether --enable-ext2direct was given.
3807 if test "${enable_ext2direct+set}" = set; then
3808   enableval=$enable_ext2direct; 
3809 else
3810   enable_ext2direct="try"
3811 fi
3812
3813 if test "x$enable_ext2direct" != "xno"; then
3814         { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
3815 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
3816 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
3817   echo $ECHO_N "(cached) $ECHO_C" >&6
3818 else
3819   ac_check_lib_save_LIBS=$LIBS
3820 LIBS="-lcom_err  $LIBS"
3821 cat >conftest.$ac_ext <<_ACEOF
3822 /* confdefs.h.  */
3823 _ACEOF
3824 cat confdefs.h >>conftest.$ac_ext
3825 cat >>conftest.$ac_ext <<_ACEOF
3826 /* end confdefs.h.  */
3827
3828 /* Override any GCC internal prototype to avoid an error.
3829    Use char because int might match the return type of a GCC
3830    builtin and then its argument prototype would still apply.  */
3831 #ifdef __cplusplus
3832 extern "C"
3833 #endif
3834 char com_err ();
3835 int
3836 main ()
3837 {
3838 return com_err ();
3839   ;
3840   return 0;
3841 }
3842 _ACEOF
3843 rm -f conftest.$ac_objext conftest$ac_exeext
3844 if { (ac_try="$ac_link"
3845 case "(($ac_try" in
3846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847   *) ac_try_echo=$ac_try;;
3848 esac
3849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3850   (eval "$ac_link") 2>conftest.er1
3851   ac_status=$?
3852   grep -v '^ *+' conftest.er1 >conftest.err
3853   rm -f conftest.er1
3854   cat conftest.err >&5
3855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856   (exit $ac_status); } && {
3857          test -z "$ac_c_werror_flag" ||
3858          test ! -s conftest.err
3859        } && test -s conftest$ac_exeext &&
3860        $as_test_x conftest$ac_exeext; then
3861   ac_cv_lib_com_err_com_err=yes
3862 else
3863   echo "$as_me: failed program was:" >&5
3864 sed 's/^/| /' conftest.$ac_ext >&5
3865
3866         ac_cv_lib_com_err_com_err=no
3867 fi
3868
3869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3870       conftest$ac_exeext conftest.$ac_ext
3871 LIBS=$ac_check_lib_save_LIBS
3872 fi
3873 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
3874 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
3875 if test $ac_cv_lib_com_err_com_err = yes; then
3876   EXT2LIBS="-lcom_err $EXT2LIBS"
3877 fi
3878
3879         { echo "$as_me:$LINENO: checking for ext2fs_initialize in -lext2fs" >&5
3880 echo $ECHO_N "checking for ext2fs_initialize in -lext2fs... $ECHO_C" >&6; }
3881 if test "${ac_cv_lib_ext2fs_ext2fs_initialize+set}" = set; then
3882   echo $ECHO_N "(cached) $ECHO_C" >&6
3883 else
3884   ac_check_lib_save_LIBS=$LIBS
3885 LIBS="-lext2fs "-lcom_err" $LIBS"
3886 cat >conftest.$ac_ext <<_ACEOF
3887 /* confdefs.h.  */
3888 _ACEOF
3889 cat confdefs.h >>conftest.$ac_ext
3890 cat >>conftest.$ac_ext <<_ACEOF
3891 /* end confdefs.h.  */
3892
3893 /* Override any GCC internal prototype to avoid an error.
3894    Use char because int might match the return type of a GCC
3895    builtin and then its argument prototype would still apply.  */
3896 #ifdef __cplusplus
3897 extern "C"
3898 #endif
3899 char ext2fs_initialize ();
3900 int
3901 main ()
3902 {
3903 return ext2fs_initialize ();
3904   ;
3905   return 0;
3906 }
3907 _ACEOF
3908 rm -f conftest.$ac_objext conftest$ac_exeext
3909 if { (ac_try="$ac_link"
3910 case "(($ac_try" in
3911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912   *) ac_try_echo=$ac_try;;
3913 esac
3914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3915   (eval "$ac_link") 2>conftest.er1
3916   ac_status=$?
3917   grep -v '^ *+' conftest.er1 >conftest.err
3918   rm -f conftest.er1
3919   cat conftest.err >&5
3920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921   (exit $ac_status); } && {
3922          test -z "$ac_c_werror_flag" ||
3923          test ! -s conftest.err
3924        } && test -s conftest$ac_exeext &&
3925        $as_test_x conftest$ac_exeext; then
3926   ac_cv_lib_ext2fs_ext2fs_initialize=yes
3927 else
3928   echo "$as_me: failed program was:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3930
3931         ac_cv_lib_ext2fs_ext2fs_initialize=no
3932 fi
3933
3934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3935       conftest$ac_exeext conftest.$ac_ext
3936 LIBS=$ac_check_lib_save_LIBS
3937 fi
3938 { echo "$as_me:$LINENO: result: $ac_cv_lib_ext2fs_ext2fs_initialize" >&5
3939 echo "${ECHO_T}$ac_cv_lib_ext2fs_ext2fs_initialize" >&6; }
3940 if test $ac_cv_lib_ext2fs_ext2fs_initialize = yes; then
3941   EXT2LIBS="-lext2fs $EXT2LIBS"
3942 fi
3943
3944         if test "${ac_cv_lib_com_err_com_err}" != "yes" -o "${ac_cv_lib_ext2fs_ext2fs_initialize}" != "yes"; then
3945                 if test "x$enable_ext2direct" = "xyes"; then
3946                         { { echo "$as_me:$LINENO: error: Ext2 direct support required but libraries not found." >&5
3947 echo "$as_me: error: Ext2 direct support required but libraries not found." >&2;}
3948    { (exit 1); exit 1; }; }
3949                 else
3950                         { echo "$as_me:$LINENO: WARNING: Ext2 direct support won't be compiled. Libraries not found." >&5
3951 echo "$as_me: WARNING: Ext2 direct support won't be compiled. Libraries not found." >&2;}
3952                 fi
3953                 enable_ext2direct="no"
3954                 EXT2LIBS=""
3955         else
3956                 if test "x$ext2fshead" != "xyes"; then
3957                         if test "x$enable_ext2direct" = "xyes"; then
3958                                 { { echo "$as_me:$LINENO: error: Ext2 direct support required but header files not found." >&5
3959 echo "$as_me: error: Ext2 direct support required but header files not found." >&2;}
3960    { (exit 1); exit 1; }; }
3961                         else
3962                                 { echo "$as_me:$LINENO: WARNING: Ext2 direct support won't be compiled. Header files not found." >&5
3963 echo "$as_me: WARNING: Ext2 direct support won't be compiled. Header files not found." >&2;}
3964                         fi
3965                         enable_ext2direct="no"
3966                         EXT2LIBS=""
3967                 else
3968                         enable_ext2direct="yes"
3969                 fi
3970         fi
3971         if test "x$enable_ext2direct" = "xyes"; then
3972                 EXT2_DIRECT="-DEXT2_DIRECT"
3973                 COMPILE_OPTS="$COMPILE_OPTS EXT2_DIRECT"
3974                 
3975         fi
3976 fi
3977
3978
3979 #AC_ARG_WITH(dbus_include,
3980 #       [  --with-dbus_include=path        Path to directory with dbus include directory [default=/usr/include/dbus-1.0/]],
3981 #       DBUS_INCLUDE="$with_dbus_include",
3982 #       DBUS_INCLUDE="/usr/include/dbus-1.0/")
3983 #AC_ARG_WITH(dbus_arch_include,
3984 #       [  --with-dbus_arch_include=path   Path to directory with dbus arch-dependent include directory [default=/usr/lib/dbus-1.0/include/]],
3985 #       DBUS_ARCH_INCLUDE="$with_dbus_arch_include",
3986 #       DBUS_ARCH_INCLUDE="/usr/lib/dbus-1.0/include/")
3987
3988 # Check whether --enable-netlink was given.
3989 if test "${enable_netlink+set}" = set; then
3990   enableval=$enable_netlink; 
3991 else
3992   enable_netlink="no"
3993 fi
3994
3995 if test "x$enable_netlink" != "xno"; then
3996         PKG_CHECK_MODULES(DBUS, dbus-1)
3997         NETLINKLIBS="$DBUS_LIBS"
3998
3999         { echo "$as_me:$LINENO: checking for genl_register in -lnl" >&5
4000 echo $ECHO_N "checking for genl_register in -lnl... $ECHO_C" >&6; }
4001 if test "${ac_cv_lib_nl_genl_register+set}" = set; then
4002   echo $ECHO_N "(cached) $ECHO_C" >&6
4003 else
4004   ac_check_lib_save_LIBS=$LIBS
4005 LIBS="-lnl  $LIBS"
4006 cat >conftest.$ac_ext <<_ACEOF
4007 /* confdefs.h.  */
4008 _ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h.  */
4012
4013 /* Override any GCC internal prototype to avoid an error.
4014    Use char because int might match the return type of a GCC
4015    builtin and then its argument prototype would still apply.  */
4016 #ifdef __cplusplus
4017 extern "C"
4018 #endif
4019 char genl_register ();
4020 int
4021 main ()
4022 {
4023 return genl_register ();
4024   ;
4025   return 0;
4026 }
4027 _ACEOF
4028 rm -f conftest.$ac_objext conftest$ac_exeext
4029 if { (ac_try="$ac_link"
4030 case "(($ac_try" in
4031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032   *) ac_try_echo=$ac_try;;
4033 esac
4034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4035   (eval "$ac_link") 2>conftest.er1
4036   ac_status=$?
4037   grep -v '^ *+' conftest.er1 >conftest.err
4038   rm -f conftest.er1
4039   cat conftest.err >&5
4040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041   (exit $ac_status); } && {
4042          test -z "$ac_c_werror_flag" ||
4043          test ! -s conftest.err
4044        } && test -s conftest$ac_exeext &&
4045        $as_test_x conftest$ac_exeext; then
4046   ac_cv_lib_nl_genl_register=yes
4047 else
4048   echo "$as_me: failed program was:" >&5
4049 sed 's/^/| /' conftest.$ac_ext >&5
4050
4051         ac_cv_lib_nl_genl_register=no
4052 fi
4053
4054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4055       conftest$ac_exeext conftest.$ac_ext
4056 LIBS=$ac_check_lib_save_LIBS
4057 fi
4058 { echo "$as_me:$LINENO: result: $ac_cv_lib_nl_genl_register" >&5
4059 echo "${ECHO_T}$ac_cv_lib_nl_genl_register" >&6; }
4060 if test $ac_cv_lib_nl_genl_register = yes; then
4061   NETLINKLIBS="-lnl $NETLINKLIBS"
4062 fi
4063
4064         if test -z "$NETLINKLIBS" -o -z "$DBUS_LIBS"; then
4065                 if test "x$enable_netlink" = "xyes"; then
4066                         { { echo "$as_me:$LINENO: error: Required libraries for quota netlink daemon not found." >&5
4067 echo "$as_me: error: Required libraries for quota netlink daemon not found." >&2;}
4068    { (exit 1); exit 1; }; }
4069                 else
4070                         { echo "$as_me:$LINENO: WARNING: Quota netlink daemon won't be compiled. Required libraries not found." >&5
4071 echo "$as_me: WARNING: Quota netlink daemon won't be compiled. Required libraries not found." >&2;}
4072                 fi
4073                 enable_netlink="no"
4074                 NETLINKLIBS=""
4075         else
4076                 CPPFLAGS="$DBUS_CFLAGS $CPPFLAGS"
4077                 if test -z "$DBUS_LIBS"; then
4078                         if test "x$enable_netlink" = "xyes"; then
4079                                 { { echo "$as_me:$LINENO: error: Required headers for quota netlink daemon not found." >&5
4080 echo "$as_me: error: Required headers for quota netlink daemon not found." >&2;}
4081    { (exit 1); exit 1; }; }
4082                         else
4083                                 { echo "$as_me:$LINENO: WARNING: Quota netlink daemon won't be compiled. Required headers not found." >&5
4084 echo "$as_me: WARNING: Quota netlink daemon won't be compiled. Required headers not found." >&2;}
4085                         fi
4086                         NETLINKLIBS=""
4087                         enable_netlink="no"
4088                 else
4089                         QUOTA_NETLINK_PROG=quota_nld
4090                 fi
4091         fi
4092 fi
4093
4094
4095
4096 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
4097 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
4098 if test "${ac_cv_search_gethostbyname+set}" = set; then
4099   echo $ECHO_N "(cached) $ECHO_C" >&6
4100 else
4101   ac_func_search_save_LIBS=$LIBS
4102 cat >conftest.$ac_ext <<_ACEOF
4103 /* confdefs.h.  */
4104 _ACEOF
4105 cat confdefs.h >>conftest.$ac_ext
4106 cat >>conftest.$ac_ext <<_ACEOF
4107 /* end confdefs.h.  */
4108
4109 /* Override any GCC internal prototype to avoid an error.
4110    Use char because int might match the return type of a GCC
4111    builtin and then its argument prototype would still apply.  */
4112 #ifdef __cplusplus
4113 extern "C"
4114 #endif
4115 char gethostbyname ();
4116 int
4117 main ()
4118 {
4119 return gethostbyname ();
4120   ;
4121   return 0;
4122 }
4123 _ACEOF
4124 for ac_lib in '' nsl; do
4125   if test -z "$ac_lib"; then
4126     ac_res="none required"
4127   else
4128     ac_res=-l$ac_lib
4129     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4130   fi
4131   rm -f conftest.$ac_objext conftest$ac_exeext
4132 if { (ac_try="$ac_link"
4133 case "(($ac_try" in
4134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4135   *) ac_try_echo=$ac_try;;
4136 esac
4137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4138   (eval "$ac_link") 2>conftest.er1
4139   ac_status=$?
4140   grep -v '^ *+' conftest.er1 >conftest.err
4141   rm -f conftest.er1
4142   cat conftest.err >&5
4143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144   (exit $ac_status); } && {
4145          test -z "$ac_c_werror_flag" ||
4146          test ! -s conftest.err
4147        } && test -s conftest$ac_exeext &&
4148        $as_test_x conftest$ac_exeext; then
4149   ac_cv_search_gethostbyname=$ac_res
4150 else
4151   echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.$ac_ext >&5
4153
4154         
4155 fi
4156
4157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4158       conftest$ac_exeext 
4159   if test "${ac_cv_search_gethostbyname+set}" = set; then
4160   break
4161 fi
4162 done
4163 if test "${ac_cv_search_gethostbyname+set}" = set; then
4164   :
4165 else
4166   ac_cv_search_gethostbyname=no
4167 fi
4168 rm conftest.$ac_ext
4169 LIBS=$ac_func_search_save_LIBS
4170 fi
4171 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
4172 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
4173 ac_res=$ac_cv_search_gethostbyname
4174 if test "$ac_res" != no; then
4175   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4176   
4177 fi
4178
4179 { echo "$as_me:$LINENO: checking for host_access in -lwrap" >&5
4180 echo $ECHO_N "checking for host_access in -lwrap... $ECHO_C" >&6; }
4181 if test "${ac_cv_lib_wrap_main+set}" = set; then
4182   echo $ECHO_N "(cached) $ECHO_C" >&6
4183 else
4184   saved_LIBS="$LIBS"
4185         LIBS="$LIBS -lwrap"
4186         cat >conftest.$ac_ext <<_ACEOF
4187 /* confdefs.h.  */
4188 _ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h.  */
4192
4193         #include <stdio.h>
4194         #include <sys/types.h>
4195         #include <sys/socket.h>
4196         #include <netinet/in.h>
4197         #include <tcpd.h>
4198         struct request_info request;
4199         int deny_severity, allow_severity;
4200 int
4201 main ()
4202 {
4203 hosts_access(&request);
4204   ;
4205   return 0;
4206 }
4207 _ACEOF
4208 rm -f conftest.$ac_objext conftest$ac_exeext
4209 if { (ac_try="$ac_link"
4210 case "(($ac_try" in
4211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212   *) ac_try_echo=$ac_try;;
4213 esac
4214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4215   (eval "$ac_link") 2>conftest.er1
4216   ac_status=$?
4217   grep -v '^ *+' conftest.er1 >conftest.err
4218   rm -f conftest.er1
4219   cat conftest.err >&5
4220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221   (exit $ac_status); } && {
4222          test -z "$ac_c_werror_flag" ||
4223          test ! -s conftest.err
4224        } && test -s conftest$ac_exeext &&
4225        $as_test_x conftest$ac_exeext; then
4226         ac_cv_lib_wrap_main=yes; LIBS="$saved_LIBS"; { echo "$as_me:$LINENO: result: yes" >&5
4227 echo "${ECHO_T}yes" >&6; }
4228 else
4229   echo "$as_me: failed program was:" >&5
4230 sed 's/^/| /' conftest.$ac_ext >&5
4231
4232         ac_cv_lib_wrap_main=no; LIBS="$saved_LIBS"; { echo "$as_me:$LINENO: result: no" >&5
4233 echo "${ECHO_T}no" >&6; }
4234 fi
4235
4236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4237       conftest$ac_exeext conftest.$ac_ext
4238         
4239 fi
4240
4241
4242 if test ${ac_cv_lib_wrap_main} = yes; then
4243         if test "${ac_cv_header_tcpd_h+set}" = set; then
4244   { echo "$as_me:$LINENO: checking for tcpd.h" >&5
4245 echo $ECHO_N "checking for tcpd.h... $ECHO_C" >&6; }
4246 if test "${ac_cv_header_tcpd_h+set}" = set; then
4247   echo $ECHO_N "(cached) $ECHO_C" >&6
4248 fi
4249 { echo "$as_me:$LINENO: result: $ac_cv_header_tcpd_h" >&5
4250 echo "${ECHO_T}$ac_cv_header_tcpd_h" >&6; }
4251 else
4252   # Is the header compilable?
4253 { echo "$as_me:$LINENO: checking tcpd.h usability" >&5
4254 echo $ECHO_N "checking tcpd.h usability... $ECHO_C" >&6; }
4255 cat >conftest.$ac_ext <<_ACEOF
4256 /* confdefs.h.  */
4257 _ACEOF
4258 cat confdefs.h >>conftest.$ac_ext
4259 cat >>conftest.$ac_ext <<_ACEOF
4260 /* end confdefs.h.  */
4261 $ac_includes_default
4262 @%:@include <tcpd.h>
4263 _ACEOF
4264 rm -f conftest.$ac_objext
4265 if { (ac_try="$ac_compile"
4266 case "(($ac_try" in
4267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4268   *) ac_try_echo=$ac_try;;
4269 esac
4270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4271   (eval "$ac_compile") 2>conftest.er1
4272   ac_status=$?
4273   grep -v '^ *+' conftest.er1 >conftest.err
4274   rm -f conftest.er1
4275   cat conftest.err >&5
4276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277   (exit $ac_status); } && {
4278          test -z "$ac_c_werror_flag" ||
4279          test ! -s conftest.err
4280        } && test -s conftest.$ac_objext; then
4281   ac_header_compiler=yes
4282 else
4283   echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.$ac_ext >&5
4285
4286         ac_header_compiler=no
4287 fi
4288
4289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4290 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4291 echo "${ECHO_T}$ac_header_compiler" >&6; }
4292
4293 # Is the header present?
4294 { echo "$as_me:$LINENO: checking tcpd.h presence" >&5
4295 echo $ECHO_N "checking tcpd.h presence... $ECHO_C" >&6; }
4296 cat >conftest.$ac_ext <<_ACEOF
4297 /* confdefs.h.  */
4298 _ACEOF
4299 cat confdefs.h >>conftest.$ac_ext
4300 cat >>conftest.$ac_ext <<_ACEOF
4301 /* end confdefs.h.  */
4302 @%:@include <tcpd.h>
4303 _ACEOF
4304 if { (ac_try="$ac_cpp conftest.$ac_ext"
4305 case "(($ac_try" in
4306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307   *) ac_try_echo=$ac_try;;
4308 esac
4309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4311   ac_status=$?
4312   grep -v '^ *+' conftest.er1 >conftest.err
4313   rm -f conftest.er1
4314   cat conftest.err >&5
4315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316   (exit $ac_status); } >/dev/null && {
4317          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4318          test ! -s conftest.err
4319        }; then
4320   ac_header_preproc=yes
4321 else
4322   echo "$as_me: failed program was:" >&5
4323 sed 's/^/| /' conftest.$ac_ext >&5
4324
4325   ac_header_preproc=no
4326 fi
4327
4328 rm -f conftest.err conftest.$ac_ext
4329 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4330 echo "${ECHO_T}$ac_header_preproc" >&6; }
4331
4332 # So?  What about this header?
4333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4334   yes:no: )
4335     { echo "$as_me:$LINENO: WARNING: tcpd.h: accepted by the compiler, rejected by the preprocessor!" >&5
4336 echo "$as_me: WARNING: tcpd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4337     { echo "$as_me:$LINENO: WARNING: tcpd.h: proceeding with the compiler's result" >&5
4338 echo "$as_me: WARNING: tcpd.h: proceeding with the compiler's result" >&2;}
4339     ac_header_preproc=yes
4340     ;;
4341   no:yes:* )
4342     { echo "$as_me:$LINENO: WARNING: tcpd.h: present but cannot be compiled" >&5
4343 echo "$as_me: WARNING: tcpd.h: present but cannot be compiled" >&2;}
4344     { echo "$as_me:$LINENO: WARNING: tcpd.h:     check for missing prerequisite headers?" >&5
4345 echo "$as_me: WARNING: tcpd.h:     check for missing prerequisite headers?" >&2;}
4346     { echo "$as_me:$LINENO: WARNING: tcpd.h: see the Autoconf documentation" >&5
4347 echo "$as_me: WARNING: tcpd.h: see the Autoconf documentation" >&2;}
4348     { echo "$as_me:$LINENO: WARNING: tcpd.h:     section \"Present But Cannot Be Compiled\"" >&5
4349 echo "$as_me: WARNING: tcpd.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4350     { echo "$as_me:$LINENO: WARNING: tcpd.h: proceeding with the preprocessor's result" >&5
4351 echo "$as_me: WARNING: tcpd.h: proceeding with the preprocessor's result" >&2;}
4352     { echo "$as_me:$LINENO: WARNING: tcpd.h: in the future, the compiler will take precedence" >&5
4353 echo "$as_me: WARNING: tcpd.h: in the future, the compiler will take precedence" >&2;}
4354     
4355     ;;
4356 esac
4357 { echo "$as_me:$LINENO: checking for tcpd.h" >&5
4358 echo $ECHO_N "checking for tcpd.h... $ECHO_C" >&6; }
4359 if test "${ac_cv_header_tcpd_h+set}" = set; then
4360   echo $ECHO_N "(cached) $ECHO_C" >&6
4361 else
4362   ac_cv_header_tcpd_h=$ac_header_preproc
4363 fi
4364 { echo "$as_me:$LINENO: result: $ac_cv_header_tcpd_h" >&5
4365 echo "${ECHO_T}$ac_cv_header_tcpd_h" >&6; }
4366
4367 fi
4368 if test $ac_cv_header_tcpd_h = yes; then
4369   :
4370 else
4371   
4372                 echo 'ERROR: could not find tcpd.h - missing TCP wrappers package'
4373                 exit 1
4374         
4375 fi
4376
4377
4378         LIBS="$LIBS -lwrap"
4379         HOSTS_ACCESS="-DHOSTS_ACCESS"
4380         COMPILE_OPTS="$COMPILE_OPTS HOST_ACCESS"
4381         
4382 fi
4383
4384 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4385 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4386 if test "${ac_cv_c_const+set}" = set; then
4387   echo $ECHO_N "(cached) $ECHO_C" >&6
4388 else
4389   cat >conftest.$ac_ext <<_ACEOF
4390 /* confdefs.h.  */
4391 _ACEOF
4392 cat confdefs.h >>conftest.$ac_ext
4393 cat >>conftest.$ac_ext <<_ACEOF
4394 /* end confdefs.h.  */
4395
4396 int
4397 main ()
4398 {
4399 /* FIXME: Include the comments suggested by Paul. */
4400 #ifndef __cplusplus
4401   /* Ultrix mips cc rejects this.  */
4402   typedef int charset[2];
4403   const charset cs;
4404   /* SunOS 4.1.1 cc rejects this.  */
4405   char const *const *pcpcc;
4406   char **ppc;
4407   /* NEC SVR4.0.2 mips cc rejects this.  */
4408   struct point {int x, y;};
4409   static struct point const zero = {0,0};
4410   /* AIX XL C 1.02.0.0 rejects this.
4411      It does not let you subtract one const X* pointer from another in
4412      an arm of an if-expression whose if-part is not a constant
4413      expression */
4414   const char *g = "string";
4415   pcpcc = &g + (g ? g-g : 0);
4416   /* HPUX 7.0 cc rejects these. */
4417   ++pcpcc;
4418   ppc = (char**) pcpcc;
4419   pcpcc = (char const *const *) ppc;
4420   { /* SCO 3.2v4 cc rejects this.  */
4421     char *t;
4422     char const *s = 0 ? (char *) 0 : (char const *) 0;
4423
4424     *t++ = 0;
4425     if (s) return 0;
4426   }
4427   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4428     int x[] = {25, 17};
4429     const int *foo = &x[0];
4430     ++foo;
4431   }
4432   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4433     typedef const int *iptr;
4434     iptr p = 0;
4435     ++p;
4436   }
4437   { /* AIX XL C 1.02.0.0 rejects this saying
4438        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4439     struct s { int j; const int *ap[3]; };
4440     struct s *b; b->j = 5;
4441   }
4442   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4443     const int foo = 10;
4444     if (!foo) return 0;
4445   }
4446   return !cs[0] && !zero.x;
4447 #endif
4448
4449   ;
4450   return 0;
4451 }
4452 _ACEOF
4453 rm -f conftest.$ac_objext
4454 if { (ac_try="$ac_compile"
4455 case "(($ac_try" in
4456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4457   *) ac_try_echo=$ac_try;;
4458 esac
4459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4460   (eval "$ac_compile") 2>conftest.er1
4461   ac_status=$?
4462   grep -v '^ *+' conftest.er1 >conftest.err
4463   rm -f conftest.er1
4464   cat conftest.err >&5
4465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466   (exit $ac_status); } && {
4467          test -z "$ac_c_werror_flag" ||
4468          test ! -s conftest.err
4469        } && test -s conftest.$ac_objext; then
4470   ac_cv_c_const=yes
4471 else
4472   echo "$as_me: failed program was:" >&5
4473 sed 's/^/| /' conftest.$ac_ext >&5
4474
4475         ac_cv_c_const=no
4476 fi
4477
4478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4479 fi
4480 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4481 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4482 if test $ac_cv_c_const = no; then
4483   
4484 cat >>confdefs.h <<\_ACEOF
4485 @%:@define const 
4486 _ACEOF
4487
4488 fi
4489
4490 { echo "$as_me:$LINENO: checking for inline" >&5
4491 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4492 if test "${ac_cv_c_inline+set}" = set; then
4493   echo $ECHO_N "(cached) $ECHO_C" >&6
4494 else
4495   ac_cv_c_inline=no
4496 for ac_kw in inline __inline__ __inline; do
4497   cat >conftest.$ac_ext <<_ACEOF
4498 /* confdefs.h.  */
4499 _ACEOF
4500 cat confdefs.h >>conftest.$ac_ext
4501 cat >>conftest.$ac_ext <<_ACEOF
4502 /* end confdefs.h.  */
4503 #ifndef __cplusplus
4504 typedef int foo_t;
4505 static $ac_kw foo_t static_foo () {return 0; }
4506 $ac_kw foo_t foo () {return 0; }
4507 #endif
4508
4509 _ACEOF
4510 rm -f conftest.$ac_objext
4511 if { (ac_try="$ac_compile"
4512 case "(($ac_try" in
4513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514   *) ac_try_echo=$ac_try;;
4515 esac
4516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4517   (eval "$ac_compile") 2>conftest.er1
4518   ac_status=$?
4519   grep -v '^ *+' conftest.er1 >conftest.err
4520   rm -f conftest.er1
4521   cat conftest.err >&5
4522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523   (exit $ac_status); } && {
4524          test -z "$ac_c_werror_flag" ||
4525          test ! -s conftest.err
4526        } && test -s conftest.$ac_objext; then
4527   ac_cv_c_inline=$ac_kw
4528 else
4529   echo "$as_me: failed program was:" >&5
4530 sed 's/^/| /' conftest.$ac_ext >&5
4531
4532         
4533 fi
4534
4535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4536   test "$ac_cv_c_inline" != no && break
4537 done
4538
4539 fi
4540 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4541 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4542
4543
4544 case $ac_cv_c_inline in
4545   inline | yes) ;;
4546   *)
4547     case $ac_cv_c_inline in
4548       no) ac_val=;;
4549       *) ac_val=$ac_cv_c_inline;;
4550     esac
4551     cat >>confdefs.h <<_ACEOF
4552 #ifndef __cplusplus
4553 #define inline $ac_val
4554 #endif
4555 _ACEOF
4556     ;;
4557 esac
4558
4559
4560 # Check whether --enable-altformat was given.
4561 if test "${enable_altformat+set}" = set; then
4562   enableval=$enable_altformat; 
4563 else
4564   enable_altformat="yes"
4565 fi
4566
4567 # Check whether --enable-rpc was given.
4568 if test "${enable_rpc+set}" = set; then
4569   enableval=$enable_rpc; 
4570 else
4571   enable_rpc="yes"
4572 fi
4573
4574 # Check whether --enable-rpcsetquota was given.
4575 if test "${enable_rpcsetquota+set}" = set; then
4576   enableval=$enable_rpcsetquota; 
4577 else
4578   enable_rpcsetquota="no"
4579 fi
4580
4581 # Check whether --enable-xfs_roothack was given.
4582 if test "${enable_xfs_roothack+set}" = set; then
4583   enableval=$enable_xfs_roothack; 
4584 else
4585   enable_xfs_roothack="no"
4586 fi
4587
4588 # Check whether --enable-bsd_behaviour was given.
4589 if test "${enable_bsd_behaviour+set}" = set; then
4590   enableval=$enable_bsd_behaviour; 
4591 else
4592   enable_bsd_behaviour="yes"
4593 fi
4594
4595 # Check whether --enable-libefence was given.
4596 if test "${enable_libefence+set}" = set; then
4597   enableval=$enable_libefence; 
4598 else
4599   enable_libefence="no"
4600 fi
4601
4602
4603 # Check whether --enable-nls was given.
4604 if test "${enable_nls+set}" = set; then
4605   enableval=$enable_nls; 
4606 else
4607   enable_nls="yes"
4608 fi
4609
4610 # Check whether --enable-rootsbin was given.
4611 if test "${enable_rootsbin+set}" = set; then
4612   enableval=$enable_rootsbin; 
4613 else
4614   enable_rootsbin="no"
4615 fi
4616
4617
4618 if test "$enable_altformat" = "yes" ; then
4619         CFLAGS="-DALT_FORMAT $CFLAGS"
4620         COMPILE_OPTS="$COMPILE_OPTS ALT_FORMAT"
4621 fi
4622 if test "$enable_rpc" = "yes" ; then
4623         CFLAGS="-DRPC $CFLAGS"
4624         COMPILE_OPTS="$COMPILE_OPTS RPC"
4625 fi
4626 if test "$enable_rpcsetquota" = "yes" ; then
4627         CFLAGS="-DRPC_SETQUOTA $CFLAGS"
4628         COMPILE_OPTS="$COMPILE_OPTS RPC_SETQUOTA"
4629 fi
4630 if test "$enable_xfs_roothack" = "yes" ; then
4631         CFLAGS="-DXFS_ROOTHACK $CFLAGS"
4632         COMPILE_OPTS="$COMPILE_OPTS XFS_ROOTHACK"
4633 fi
4634 if test "$enable_bsd_behaviour" = "yes" ; then
4635         CFLAGS="-DBSD_BEHAVIOUR $CFLAGS"
4636         COMPILE_OPTS="$COMPILE_OPTS BSD_BEHAVIOUR"
4637 fi
4638 if test "$enable_libefence" = "yes" ; then
4639         LIBMALLOC="/usr/lib/libefence.a"
4640 fi
4641 if test "$enable_nls" = "yes" ; then
4642         CFLAGS="-D__GETTEXT__ $CFLAGS"
4643         INSTMO="inst_mo"
4644 fi
4645 if test "$enable_rootsbin" = "yes" ; then
4646         ROOTSBIN="/sbin"
4647 else
4648         ROOTSBIN='$(prefix)/sbin'
4649 fi
4650
4651
4652
4653
4654
4655
4656 ac_config_files="$ac_config_files Makefile"
4657
4658 cat >confcache <<\_ACEOF
4659 # This file is a shell script that caches the results of configure
4660 # tests run on this system so they can be shared between configure
4661 # scripts and configure runs, see configure's option --config-cache.
4662 # It is not useful on other systems.  If it contains results you don't
4663 # want to keep, you may remove or edit it.
4664 #
4665 # config.status only pays attention to the cache file if you give it
4666 # the --recheck option to rerun configure.
4667 #
4668 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4669 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4670 # following values.
4671
4672 _ACEOF
4673
4674 # The following way of writing the cache mishandles newlines in values,
4675 # but we know of no workaround that is simple, portable, and efficient.
4676 # So, we kill variables containing newlines.
4677 # Ultrix sh set writes to stderr and can't be redirected directly,
4678 # and sets the high bit in the cache file unless we assign to the vars.
4679 (
4680   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4681     eval ac_val=\$$ac_var
4682     case $ac_val in #(
4683     *${as_nl}*)
4684       case $ac_var in #(
4685       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
4686 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
4687       esac
4688       case $ac_var in #(
4689       _ | IFS | as_nl) ;; #(
4690       *) $as_unset $ac_var ;;
4691       esac ;;
4692     esac
4693   done
4694
4695   (set) 2>&1 |
4696     case $as_nl`(ac_space=' '; set) 2>&1` in #(
4697     *${as_nl}ac_space=\ *)
4698       # `set' does not quote correctly, so add quotes (double-quote
4699       # substitution turns \\\\ into \\, and sed turns \\ into \).
4700       sed -n \
4701         "s/'/'\\\\''/g;
4702           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4703       ;; #(
4704     *)
4705       # `set' quotes correctly as required by POSIX, so do not add quotes.
4706       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4707       ;;
4708     esac |
4709     sort
4710 ) |
4711   sed '
4712      /^ac_cv_env_/b end
4713      t clear
4714      :clear
4715      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4716      t end
4717      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4718      :end' >>confcache
4719 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4720   if test -w "$cache_file"; then
4721     test "x$cache_file" != "x/dev/null" &&
4722       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
4723 echo "$as_me: updating cache $cache_file" >&6;}
4724     cat confcache >$cache_file
4725   else
4726     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
4727 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4728   fi
4729 fi
4730 rm -f confcache
4731
4732 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4733 # Let make expand exec_prefix.
4734 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4735
4736 # Transform confdefs.h into DEFS.
4737 # Protect against shell expansion while executing Makefile rules.
4738 # Protect against Makefile macro expansion.
4739 #
4740 # If the first sed substitution is executed (which looks for macros that
4741 # take arguments), then branch to the quote section.  Otherwise,
4742 # look for a macro that doesn't take arguments.
4743 ac_script='
4744 t clear
4745 :clear
4746 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
4747 t quote
4748 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
4749 t quote
4750 b any
4751 :quote
4752 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
4753 s/\[/\\&/g
4754 s/\]/\\&/g
4755 s/\$/$$/g
4756 H
4757 :any
4758 ${
4759         g
4760         s/^\n//
4761         s/\n/ /g
4762         p
4763 }
4764 '
4765 DEFS=`sed -n "$ac_script" confdefs.h`
4766
4767
4768 ac_libobjs=
4769 ac_ltlibobjs=
4770 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
4771   # 1. Remove the extension, and $U if already installed.
4772   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4773   ac_i=`echo "$ac_i" | sed "$ac_script"`
4774   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
4775   #    will be set to the directory where LIBOBJS objects are built.
4776   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4777   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
4778 done
4779 LIB@&t@OBJS=$ac_libobjs
4780
4781 LTLIBOBJS=$ac_ltlibobjs
4782
4783
4784
4785 : ${CONFIG_STATUS=./config.status}
4786 ac_clean_files_save=$ac_clean_files
4787 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4788 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4789 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4790 cat >$CONFIG_STATUS <<_ACEOF
4791 #! $SHELL
4792 # Generated by $as_me.
4793 # Run this file to recreate the current configuration.
4794 # Compiler output produced by configure, useful for debugging
4795 # configure, is in config.log if it exists.
4796
4797 debug=false
4798 ac_cs_recheck=false
4799 ac_cs_silent=false
4800 SHELL=\${CONFIG_SHELL-$SHELL}
4801 _ACEOF
4802
4803 cat >>$CONFIG_STATUS <<\_ACEOF
4804 ## --------------------- ##
4805 ## M4sh Initialization.  ##
4806 ## --------------------- ##
4807
4808 # Be more Bourne compatible
4809 DUALCASE=1; export DUALCASE # for MKS sh
4810 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4811   emulate sh
4812   NULLCMD=:
4813   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4814   # is contrary to our usage.  Disable this feature.
4815   alias -g '${1+"$@"}'='"$@"'
4816   setopt NO_GLOB_SUBST
4817 else
4818   case `(set -o) 2>/dev/null` in
4819   *posix*) set -o posix ;;
4820 esac
4821
4822 fi
4823
4824
4825
4826
4827 # PATH needs CR
4828 # Avoid depending upon Character Ranges.
4829 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4830 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4831 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4832 as_cr_digits='0123456789'
4833 as_cr_alnum=$as_cr_Letters$as_cr_digits
4834
4835 # The user is always right.
4836 if test "${PATH_SEPARATOR+set}" != set; then
4837   echo "#! /bin/sh" >conf$$.sh
4838   echo  "exit 0"   >>conf$$.sh
4839   chmod +x conf$$.sh
4840   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4841     PATH_SEPARATOR=';'
4842   else
4843     PATH_SEPARATOR=:
4844   fi
4845   rm -f conf$$.sh
4846 fi
4847
4848 # Support unset when possible.
4849 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4850   as_unset=unset
4851 else
4852   as_unset=false
4853 fi
4854
4855
4856 # IFS
4857 # We need space, tab and new line, in precisely that order.  Quoting is
4858 # there to prevent editors from complaining about space-tab.
4859 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4860 # splitting by setting IFS to empty value.)
4861 as_nl='
4862 '
4863 IFS=" ""        $as_nl"
4864
4865 # Find who we are.  Look in the path if we contain no directory separator.
4866 case $0 in
4867   *[\\/]* ) as_myself=$0 ;;
4868   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 for as_dir in $PATH
4870 do
4871   IFS=$as_save_IFS
4872   test -z "$as_dir" && as_dir=.
4873   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4874 done
4875 IFS=$as_save_IFS
4876
4877      ;;
4878 esac
4879 # We did not find ourselves, most probably we were run as `sh COMMAND'
4880 # in which case we are not to be found in the path.
4881 if test "x$as_myself" = x; then
4882   as_myself=$0
4883 fi
4884 if test ! -f "$as_myself"; then
4885   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4886   { (exit 1); exit 1; }
4887 fi
4888
4889 # Work around bugs in pre-3.0 UWIN ksh.
4890 for as_var in ENV MAIL MAILPATH
4891 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
4892 done
4893 PS1='$ '
4894 PS2='> '
4895 PS4='+ '
4896
4897 # NLS nuisances.
4898 for as_var in \
4899   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4900   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4901   LC_TELEPHONE LC_TIME
4902 do
4903   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4904     eval $as_var=C; export $as_var
4905   else
4906     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
4907   fi
4908 done
4909
4910 # Required to use basename.
4911 if expr a : '\(a\)' >/dev/null 2>&1 &&
4912    test "X`expr 00001 : '.*\(...\)'`" = X001; then
4913   as_expr=expr
4914 else
4915   as_expr=false
4916 fi
4917
4918 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4919   as_basename=basename
4920 else
4921   as_basename=false
4922 fi
4923
4924
4925 # Name of the executable.
4926 as_me=`$as_basename -- "$0" ||
4927 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4928          X"$0" : 'X\(//\)$' \| \
4929          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4930 echo X/"$0" |
4931     sed '/^.*\/\([^/][^/]*\)\/*$/{
4932             s//\1/
4933             q
4934           }
4935           /^X\/\(\/\/\)$/{
4936             s//\1/
4937             q
4938           }
4939           /^X\/\(\/\).*/{
4940             s//\1/
4941             q
4942           }
4943           s/.*/./; q'`
4944
4945 # CDPATH.
4946 $as_unset CDPATH
4947
4948
4949
4950   as_lineno_1=$LINENO
4951   as_lineno_2=$LINENO
4952   test "x$as_lineno_1" != "x$as_lineno_2" &&
4953   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
4954
4955   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4956   # uniformly replaced by the line number.  The first 'sed' inserts a
4957   # line-number line after each line using $LINENO; the second 'sed'
4958   # does the real work.  The second script uses 'N' to pair each
4959   # line-number line with the line containing $LINENO, and appends
4960   # trailing '-' during substitution so that $LINENO is not a special
4961   # case at line end.
4962   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4963   # scripts with optimization help from Paolo Bonzini.  Blame Lee
4964   # E. McMahon (1931-1989) for sed's syntax.  :-)
4965   sed -n '
4966     p
4967     /[$]LINENO/=
4968   ' <$as_myself |
4969     sed '
4970       s/[$]LINENO.*/&-/
4971       t lineno
4972       b
4973       :lineno
4974       N
4975       :loop
4976       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4977       t loop
4978       s/-\n.*//
4979     ' >$as_me.lineno &&
4980   chmod +x "$as_me.lineno" ||
4981     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
4982    { (exit 1); exit 1; }; }
4983
4984   # Don't try to exec as it changes $[0], causing all sort of problems
4985   # (the dirname of $[0] is not the place where we might find the
4986   # original and so on.  Autoconf is especially sensitive to this).
4987   . "./$as_me.lineno"
4988   # Exit status is that of the last command.
4989   exit
4990 }
4991
4992
4993 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4994   as_dirname=dirname
4995 else
4996   as_dirname=false
4997 fi
4998
4999 ECHO_C= ECHO_N= ECHO_T=
5000 case `echo -n x` in
5001 -n*)
5002   case `echo 'x\c'` in
5003   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
5004   *)   ECHO_C='\c';;
5005   esac;;
5006 *)
5007   ECHO_N='-n';;
5008 esac
5009
5010 if expr a : '\(a\)' >/dev/null 2>&1 &&
5011    test "X`expr 00001 : '.*\(...\)'`" = X001; then
5012   as_expr=expr
5013 else
5014   as_expr=false
5015 fi
5016
5017 rm -f conf$$ conf$$.exe conf$$.file
5018 if test -d conf$$.dir; then
5019   rm -f conf$$.dir/conf$$.file
5020 else
5021   rm -f conf$$.dir
5022   mkdir conf$$.dir
5023 fi
5024 echo >conf$$.file
5025 if ln -s conf$$.file conf$$ 2>/dev/null; then
5026   as_ln_s='ln -s'
5027   # ... but there are two gotchas:
5028   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5029   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5030   # In both cases, we have to default to `cp -p'.
5031   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5032     as_ln_s='cp -p'
5033 elif ln conf$$.file conf$$ 2>/dev/null; then
5034   as_ln_s=ln
5035 else
5036   as_ln_s='cp -p'
5037 fi
5038 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5039 rmdir conf$$.dir 2>/dev/null
5040
5041 if mkdir -p . 2>/dev/null; then
5042   as_mkdir_p=:
5043 else
5044   test -d ./-p && rmdir ./-p
5045   as_mkdir_p=false
5046 fi
5047
5048 if test -x / >/dev/null 2>&1; then
5049   as_test_x='test -x'
5050 else
5051   if ls -dL / >/dev/null 2>&1; then
5052     as_ls_L_option=L
5053   else
5054     as_ls_L_option=
5055   fi
5056   as_test_x='
5057     eval sh -c '\''
5058       if test -d "$1"; then
5059         test -d "$1/.";
5060       else
5061         case $1 in
5062         -*)set "./$1";;
5063         esac;
5064         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5065         ???[sx]*):;;*)false;;esac;fi
5066     '\'' sh
5067   '
5068 fi
5069 as_executable_p=$as_test_x
5070
5071 # Sed expression to map a string onto a valid CPP name.
5072 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5073
5074 # Sed expression to map a string onto a valid variable name.
5075 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5076
5077
5078 exec 6>&1
5079
5080 # Save the log message, to keep $[0] and so on meaningful, and to
5081 # report actual input values of CONFIG_FILES etc. instead of their
5082 # values after options handling.
5083 ac_log="
5084 This file was extended by $as_me, which was
5085 generated by GNU Autoconf 2.61.  Invocation command line was
5086
5087   CONFIG_FILES    = $CONFIG_FILES
5088   CONFIG_HEADERS  = $CONFIG_HEADERS
5089   CONFIG_LINKS    = $CONFIG_LINKS
5090   CONFIG_COMMANDS = $CONFIG_COMMANDS
5091   $ $0 $@
5092
5093 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5094 "
5095
5096 _ACEOF
5097
5098 cat >>$CONFIG_STATUS <<_ACEOF
5099 # Files that config.status was made for.
5100 config_files="$ac_config_files"
5101
5102 _ACEOF
5103
5104 cat >>$CONFIG_STATUS <<\_ACEOF
5105 ac_cs_usage="\
5106 \`$as_me' instantiates files from templates according to the
5107 current configuration.
5108
5109 Usage: $0 [OPTIONS] [FILE]...
5110
5111   -h, --help       print this help, then exit
5112   -V, --version    print version number and configuration settings, then exit
5113   -q, --quiet      do not print progress messages
5114   -d, --debug      don't remove temporary files
5115       --recheck    update $as_me by reconfiguring in the same conditions
5116   --file=FILE[:TEMPLATE]
5117                    instantiate the configuration file FILE
5118
5119 Configuration files:
5120 $config_files
5121
5122 Report bugs to <bug-autoconf@gnu.org>."
5123
5124 _ACEOF
5125 cat >>$CONFIG_STATUS <<_ACEOF
5126 ac_cs_version="\\
5127 config.status
5128 configured by $0, generated by GNU Autoconf 2.61,
5129   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5130
5131 Copyright (C) 2006 Free Software Foundation, Inc.
5132 This config.status script is free software; the Free Software Foundation
5133 gives unlimited permission to copy, distribute and modify it."
5134
5135 ac_pwd='$ac_pwd'
5136 srcdir='$srcdir'
5137 INSTALL='$INSTALL'
5138 _ACEOF
5139
5140 cat >>$CONFIG_STATUS <<\_ACEOF
5141 # If no file are specified by the user, then we need to provide default
5142 # value.  By we need to know if files were specified by the user.
5143 ac_need_defaults=:
5144 while test $# != 0
5145 do
5146   case $1 in
5147   --*=*)
5148     ac_option=`expr "X$1" : 'X\([^=]*\)='`
5149     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5150     ac_shift=:
5151     ;;
5152   *)
5153     ac_option=$1
5154     ac_optarg=$2
5155     ac_shift=shift
5156     ;;
5157   esac
5158
5159   case $ac_option in
5160   # Handling of the options.
5161   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5162     ac_cs_recheck=: ;;
5163   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5164     echo "$ac_cs_version"; exit ;;
5165   --debug | --debu | --deb | --de | --d | -d )
5166     debug=: ;;
5167   --file | --fil | --fi | --f )
5168     $ac_shift
5169     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5170     ac_need_defaults=false;;
5171   --he | --h |  --help | --hel | -h )
5172     echo "$ac_cs_usage"; exit ;;
5173   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5174   | -silent | --silent | --silen | --sile | --sil | --si | --s)
5175     ac_cs_silent=: ;;
5176
5177   # This is an error.
5178   -*) { echo "$as_me: error: unrecognized option: $1
5179 Try \`$0 --help' for more information." >&2
5180    { (exit 1); exit 1; }; } ;;
5181
5182   *) ac_config_targets="$ac_config_targets $1"
5183      ac_need_defaults=false ;;
5184
5185   esac
5186   shift
5187 done
5188
5189 ac_configure_extra_args=
5190
5191 if $ac_cs_silent; then
5192   exec 6>/dev/null
5193   ac_configure_extra_args="$ac_configure_extra_args --silent"
5194 fi
5195
5196 _ACEOF
5197 cat >>$CONFIG_STATUS <<_ACEOF
5198 if \$ac_cs_recheck; then
5199   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5200   CONFIG_SHELL=$SHELL
5201   export CONFIG_SHELL
5202   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5203 fi
5204
5205 _ACEOF
5206 cat >>$CONFIG_STATUS <<\_ACEOF
5207 exec 5>>config.log
5208 {
5209   echo
5210   sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
5211 @%:@@%:@ Running $as_me. @%:@@%:@
5212 _ASBOX
5213   echo "$ac_log"
5214 } >&5
5215
5216 _ACEOF
5217 cat >>$CONFIG_STATUS <<_ACEOF
5218 _ACEOF
5219
5220 cat >>$CONFIG_STATUS <<\_ACEOF
5221
5222 # Handling of arguments.
5223 for ac_config_target in $ac_config_targets
5224 do
5225   case $ac_config_target in
5226     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5227
5228   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5229 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5230    { (exit 1); exit 1; }; };;
5231   esac
5232 done
5233
5234
5235 # If the user did not use the arguments to specify the items to instantiate,
5236 # then the envvar interface is used.  Set only those that are not.
5237 # We use the long form for the default assignment because of an extremely
5238 # bizarre bug on SunOS 4.1.3.
5239 if $ac_need_defaults; then
5240   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5241 fi
5242
5243 # Have a temporary directory for convenience.  Make it in the build tree
5244 # simply because there is no reason against having it here, and in addition,
5245 # creating and moving files from /tmp can sometimes cause problems.
5246 # Hook for its removal unless debugging.
5247 # Note that there is a small window in which the directory will not be cleaned:
5248 # after its creation but before its name has been assigned to `$tmp'.
5249 $debug ||
5250 {
5251   tmp=
5252   trap 'exit_status=$?
5253   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5254 ' 0
5255   trap '{ (exit 1); exit 1; }' 1 2 13 15
5256 }
5257 # Create a (secure) tmp directory for tmp files.
5258
5259 {
5260   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5261   test -n "$tmp" && test -d "$tmp"
5262 }  ||
5263 {
5264   tmp=./conf$$-$RANDOM
5265   (umask 077 && mkdir "$tmp")
5266 } ||
5267 {
5268    echo "$me: cannot create a temporary directory in ." >&2
5269    { (exit 1); exit 1; }
5270 }
5271
5272 #
5273 # Set up the sed scripts for CONFIG_FILES section.
5274 #
5275
5276 # No need to generate the scripts if there are no CONFIG_FILES.
5277 # This happens for instance when ./config.status config.h
5278 if test -n "$CONFIG_FILES"; then
5279
5280 _ACEOF
5281
5282
5283
5284 ac_delim='%!_!# '
5285 for ac_last_try in false false false false false :; do
5286   cat >conf$$subs.sed <<_ACEOF
5287 SHELL!$SHELL$ac_delim
5288 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
5289 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
5290 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
5291 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
5292 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
5293 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
5294 exec_prefix!$exec_prefix$ac_delim
5295 prefix!$prefix$ac_delim
5296 program_transform_name!$program_transform_name$ac_delim
5297 bindir!$bindir$ac_delim
5298 sbindir!$sbindir$ac_delim
5299 libexecdir!$libexecdir$ac_delim
5300 datarootdir!$datarootdir$ac_delim
5301 datadir!$datadir$ac_delim
5302 sysconfdir!$sysconfdir$ac_delim
5303 sharedstatedir!$sharedstatedir$ac_delim
5304 localstatedir!$localstatedir$ac_delim
5305 includedir!$includedir$ac_delim
5306 oldincludedir!$oldincludedir$ac_delim
5307 docdir!$docdir$ac_delim
5308 infodir!$infodir$ac_delim
5309 htmldir!$htmldir$ac_delim
5310 dvidir!$dvidir$ac_delim
5311 pdfdir!$pdfdir$ac_delim
5312 psdir!$psdir$ac_delim
5313 libdir!$libdir$ac_delim
5314 localedir!$localedir$ac_delim
5315 mandir!$mandir$ac_delim
5316 DEFS!$DEFS$ac_delim
5317 ECHO_C!$ECHO_C$ac_delim
5318 ECHO_N!$ECHO_N$ac_delim
5319 ECHO_T!$ECHO_T$ac_delim
5320 LIBS!$LIBS$ac_delim
5321 build_alias!$build_alias$ac_delim
5322 host_alias!$host_alias$ac_delim
5323 target_alias!$target_alias$ac_delim
5324 CC!$CC$ac_delim
5325 CFLAGS!$CFLAGS$ac_delim
5326 LDFLAGS!$LDFLAGS$ac_delim
5327 CPPFLAGS!$CPPFLAGS$ac_delim
5328 ac_ct_CC!$ac_ct_CC$ac_delim
5329 EXEEXT!$EXEEXT$ac_delim
5330 OBJEXT!$OBJEXT$ac_delim
5331 CPP!$CPP$ac_delim
5332 GREP!$GREP$ac_delim
5333 EGREP!$EGREP$ac_delim
5334 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
5335 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
5336 INSTALL_DATA!$INSTALL_DATA$ac_delim
5337 LDAPLIBS!$LDAPLIBS$ac_delim
5338 EXT2_DIRECT!$EXT2_DIRECT$ac_delim
5339 EXT2LIBS!$EXT2LIBS$ac_delim
5340 QUOTA_NETLINK_PROG!$QUOTA_NETLINK_PROG$ac_delim
5341 NETLINKLIBS!$NETLINKLIBS$ac_delim
5342 HOSTS_ACCESS!$HOSTS_ACCESS$ac_delim
5343 COMPILE_OPTS!$COMPILE_OPTS$ac_delim
5344 LIBMALLOC!$LIBMALLOC$ac_delim
5345 INSTMO!$INSTMO$ac_delim
5346 ROOTSBIN!$ROOTSBIN$ac_delim
5347 LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
5348 LTLIBOBJS!$LTLIBOBJS$ac_delim
5349 _ACEOF
5350
5351   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 62; then
5352     break
5353   elif $ac_last_try; then
5354     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5355 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5356    { (exit 1); exit 1; }; }
5357   else
5358     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5359   fi
5360 done
5361
5362 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
5363 if test -n "$ac_eof"; then
5364   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
5365   ac_eof=`expr $ac_eof + 1`
5366 fi
5367
5368 cat >>$CONFIG_STATUS <<_ACEOF
5369 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
5370 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
5371 _ACEOF
5372 sed '
5373 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
5374 s/^/s,@/; s/!/@,|#_!!_#|/
5375 :n
5376 t n
5377 s/'"$ac_delim"'$/,g/; t
5378 s/$/\\/; p
5379 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
5380 ' >>$CONFIG_STATUS <conf$$subs.sed
5381 rm -f conf$$subs.sed
5382 cat >>$CONFIG_STATUS <<_ACEOF
5383 :end
5384 s/|#_!!_#|//g
5385 CEOF$ac_eof
5386 _ACEOF
5387
5388
5389 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5390 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5391 # trailing colons and then remove the whole line if VPATH becomes empty
5392 # (actually we leave an empty line to preserve line numbers).
5393 if test "x$srcdir" = x.; then
5394   ac_vpsub='/^[  ]*VPATH[        ]*=/{
5395 s/:*\$(srcdir):*/:/
5396 s/:*\${srcdir}:*/:/
5397 s/:*@srcdir@:*/:/
5398 s/^\([^=]*=[     ]*\):*/\1/
5399 s/:*$//
5400 s/^[^=]*=[       ]*$//
5401 }'
5402 fi
5403
5404 cat >>$CONFIG_STATUS <<\_ACEOF
5405 fi # test -n "$CONFIG_FILES"
5406
5407
5408 for ac_tag in  :F $CONFIG_FILES      
5409 do
5410   case $ac_tag in
5411   :[FHLC]) ac_mode=$ac_tag; continue;;
5412   esac
5413   case $ac_mode$ac_tag in
5414   :[FHL]*:*);;
5415   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
5416 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
5417    { (exit 1); exit 1; }; };;
5418   :[FH]-) ac_tag=-:-;;
5419   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5420   esac
5421   ac_save_IFS=$IFS
5422   IFS=:
5423   set x $ac_tag
5424   IFS=$ac_save_IFS
5425   shift
5426   ac_file=$1
5427   shift
5428
5429   case $ac_mode in
5430   :L) ac_source=$1;;
5431   :[FH])
5432     ac_file_inputs=
5433     for ac_f
5434     do
5435       case $ac_f in
5436       -) ac_f="$tmp/stdin";;
5437       *) # Look for the file first in the build tree, then in the source tree
5438          # (if the path is not absolute).  The absolute path cannot be DOS-style,
5439          # because $ac_f cannot contain `:'.
5440          test -f "$ac_f" ||
5441            case $ac_f in
5442            [\\/$]*) false;;
5443            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5444            esac ||
5445            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
5446 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
5447    { (exit 1); exit 1; }; };;
5448       esac
5449       ac_file_inputs="$ac_file_inputs $ac_f"
5450     done
5451
5452     # Let's still pretend it is `configure' which instantiates (i.e., don't
5453     # use $as_me), people would be surprised to read:
5454     #    /* config.h.  Generated by config.status.  */
5455     configure_input="Generated from "`IFS=:
5456           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
5457     if test x"$ac_file" != x-; then
5458       configure_input="$ac_file.  $configure_input"
5459       { echo "$as_me:$LINENO: creating $ac_file" >&5
5460 echo "$as_me: creating $ac_file" >&6;}
5461     fi
5462
5463     case $ac_tag in
5464     *:-:* | *:-) cat >"$tmp/stdin";;
5465     esac
5466     ;;
5467   esac
5468
5469   ac_dir=`$as_dirname -- "$ac_file" ||
5470 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5471          X"$ac_file" : 'X\(//\)[^/]' \| \
5472          X"$ac_file" : 'X\(//\)$' \| \
5473          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5474 echo X"$ac_file" |
5475     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5476             s//\1/
5477             q
5478           }
5479           /^X\(\/\/\)[^/].*/{
5480             s//\1/
5481             q
5482           }
5483           /^X\(\/\/\)$/{
5484             s//\1/
5485             q
5486           }
5487           /^X\(\/\).*/{
5488             s//\1/
5489             q
5490           }
5491           s/.*/./; q'`
5492   { as_dir="$ac_dir"
5493   case $as_dir in #(
5494   -*) as_dir=./$as_dir;;
5495   esac
5496   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
5497     as_dirs=
5498     while :; do
5499       case $as_dir in #(
5500       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
5501       *) as_qdir=$as_dir;;
5502       esac
5503       as_dirs="'$as_qdir' $as_dirs"
5504       as_dir=`$as_dirname -- "$as_dir" ||
5505 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5506          X"$as_dir" : 'X\(//\)[^/]' \| \
5507          X"$as_dir" : 'X\(//\)$' \| \
5508          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5509 echo X"$as_dir" |
5510     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5511             s//\1/
5512             q
5513           }
5514           /^X\(\/\/\)[^/].*/{
5515             s//\1/
5516             q
5517           }
5518           /^X\(\/\/\)$/{
5519             s//\1/
5520             q
5521           }
5522           /^X\(\/\).*/{
5523             s//\1/
5524             q
5525           }
5526           s/.*/./; q'`
5527       test -d "$as_dir" && break
5528     done
5529     test -z "$as_dirs" || eval "mkdir $as_dirs"
5530   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
5531 echo "$as_me: error: cannot create directory $as_dir" >&2;}
5532    { (exit 1); exit 1; }; }; }
5533   ac_builddir=.
5534
5535 case "$ac_dir" in
5536 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5537 *)
5538   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5539   # A ".." for each directory in $ac_dir_suffix.
5540   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
5541   case $ac_top_builddir_sub in
5542   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5543   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5544   esac ;;
5545 esac
5546 ac_abs_top_builddir=$ac_pwd
5547 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5548 # for backward compatibility:
5549 ac_top_builddir=$ac_top_build_prefix
5550
5551 case $srcdir in
5552   .)  # We are building in place.
5553     ac_srcdir=.
5554     ac_top_srcdir=$ac_top_builddir_sub
5555     ac_abs_top_srcdir=$ac_pwd ;;
5556   [\\/]* | ?:[\\/]* )  # Absolute name.
5557     ac_srcdir=$srcdir$ac_dir_suffix;
5558     ac_top_srcdir=$srcdir
5559     ac_abs_top_srcdir=$srcdir ;;
5560   *) # Relative name.
5561     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5562     ac_top_srcdir=$ac_top_build_prefix$srcdir
5563     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5564 esac
5565 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5566
5567
5568   case $ac_mode in
5569   :F)
5570   #
5571   # CONFIG_FILE
5572   #
5573
5574   case $INSTALL in
5575   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5576   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5577   esac
5578 _ACEOF
5579
5580 cat >>$CONFIG_STATUS <<\_ACEOF
5581 # If the template does not know about datarootdir, expand it.
5582 # FIXME: This hack should be removed a few years after 2.60.
5583 ac_datarootdir_hack=; ac_datarootdir_seen=
5584
5585 case `sed -n '/datarootdir/ {
5586   p
5587   q
5588 }
5589 /@datadir@/p
5590 /@docdir@/p
5591 /@infodir@/p
5592 /@localedir@/p
5593 /@mandir@/p
5594 ' $ac_file_inputs` in
5595 *datarootdir*) ac_datarootdir_seen=yes;;
5596 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5597   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5598 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5599 _ACEOF
5600 cat >>$CONFIG_STATUS <<_ACEOF
5601   ac_datarootdir_hack='
5602   s&@datadir@&$datadir&g
5603   s&@docdir@&$docdir&g
5604   s&@infodir@&$infodir&g
5605   s&@localedir@&$localedir&g
5606   s&@mandir@&$mandir&g
5607     s&\\\${datarootdir}&$datarootdir&g' ;;
5608 esac
5609 _ACEOF
5610
5611 # Neutralize VPATH when `$srcdir' = `.'.
5612 # Shell code in configure.ac might set extrasub.
5613 # FIXME: do we really want to maintain this feature?
5614 cat >>$CONFIG_STATUS <<_ACEOF
5615   sed "$ac_vpsub
5616 $extrasub
5617 _ACEOF
5618 cat >>$CONFIG_STATUS <<\_ACEOF
5619 :t
5620 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5621 s&@configure_input@&$configure_input&;t t
5622 s&@top_builddir@&$ac_top_builddir_sub&;t t
5623 s&@srcdir@&$ac_srcdir&;t t
5624 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5625 s&@top_srcdir@&$ac_top_srcdir&;t t
5626 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5627 s&@builddir@&$ac_builddir&;t t
5628 s&@abs_builddir@&$ac_abs_builddir&;t t
5629 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5630 s&@INSTALL@&$ac_INSTALL&;t t
5631 $ac_datarootdir_hack
5632 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
5633
5634 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5635   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
5636   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5637   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5638 which seems to be undefined.  Please make sure it is defined." >&5
5639 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5640 which seems to be undefined.  Please make sure it is defined." >&2;}
5641
5642   rm -f "$tmp/stdin"
5643   case $ac_file in
5644   -) cat "$tmp/out"; rm -f "$tmp/out";;
5645   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
5646   esac
5647  ;;
5648   
5649   
5650   
5651   esac
5652
5653 done # for ac_tag
5654
5655
5656 { (exit 0); exit 0; }
5657 _ACEOF
5658 chmod +x $CONFIG_STATUS
5659 ac_clean_files=$ac_clean_files_save
5660
5661
5662 # configure is writing to config.log, and then calls config.status.
5663 # config.status does its own redirection, appending to config.log.
5664 # Unfortunately, on DOS this fails, as config.log is still kept open
5665 # by configure, so config.status won't be able to write to it; its
5666 # output is simply discarded.  So we exec the FD to /dev/null,
5667 # effectively closing config.log, so it can be properly (re)opened and
5668 # appended to by config.status.  When coming back to configure, we
5669 # need to make the FD available again.
5670 if test "$no_create" != yes; then
5671   ac_cs_success=:
5672   ac_config_status_args=
5673   test "$silent" = yes &&
5674     ac_config_status_args="$ac_config_status_args --quiet"
5675   exec 5>/dev/null
5676   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5677   exec 5>>config.log
5678   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5679   # would make configure fail if this is the last instruction.
5680   $ac_cs_success || { (exit 1); exit 1; }
5681 fi
5682