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