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