]> git.saurik.com Git - apt-legacy.git/blob - configure
Added some initial debtags data.
[apt-legacy.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
69
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
160
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335 break
336 fi
337
338 fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419 }
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="configure.in"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 PACKAGE
654 build
655 build_cpu
656 build_vendor
657 build_os
658 host
659 host_cpu
660 host_vendor
661 host_os
662 target
663 target_cpu
664 target_vendor
665 target_os
666 CC
667 CFLAGS
668 LDFLAGS
669 CPPFLAGS
670 ac_ct_CC
671 EXEEXT
672 OBJEXT
673 CXX
674 CXXFLAGS
675 ac_ct_CXX
676 CPP
677 RANLIB
678 AR
679 SOCKETLIBS
680 PTHREADLIB
681 GREP
682 EGREP
683 BDBLIB
684 HAVE_STATVFS
685 HAVE_TIMEGM
686 HAVE_C9X
687 NEED_SOCKLEN_T_DEFINE
688 DEBIANDOC_HTML
689 DEBIANDOC_TEXT
690 DOCBOOK2MAN
691 XMLTO
692 GETCONF
693 NUM_CPUS
694 PROC_MULTIPLY
695 NUM_PROCS
696 GLIBC_VER
697 LIBSTDCPP_VER
698 GCC3DEP
699 SET_MAKE
700 INSTALL_PROGRAM
701 INSTALL_SCRIPT
702 INSTALL_DATA
703 mkdir_p
704 USE_NLS
705 MSGFMT
706 GMSGFMT
707 MSGFMT_015
708 GMSGFMT_015
709 XGETTEXT
710 XGETTEXT_015
711 MSGMERGE
712 INTL_MACOSX_LIBS
713 LIBICONV
714 LTLIBICONV
715 INTLLIBS
716 LIBINTL
717 LTLIBINTL
718 POSUB
719 BASH
720 LIBOBJS
721 LTLIBOBJS'
722 ac_subst_files=''
723 ac_precious_vars='build_alias
724 host_alias
725 target_alias
726 CC
727 CFLAGS
728 LDFLAGS
729 LIBS
730 CPPFLAGS
731 CXX
732 CXXFLAGS
733 CCC
734 CPP'
735
736
737 # Initialize some variables set by options.
738 ac_init_help=
739 ac_init_version=false
740 # The variables have the same names as the options, with
741 # dashes changed to underlines.
742 cache_file=/dev/null
743 exec_prefix=NONE
744 no_create=
745 no_recursion=
746 prefix=NONE
747 program_prefix=NONE
748 program_suffix=NONE
749 program_transform_name=s,x,x,
750 silent=
751 site=
752 srcdir=
753 verbose=
754 x_includes=NONE
755 x_libraries=NONE
756
757 # Installation directory options.
758 # These are left unexpanded so users can "make install exec_prefix=/foo"
759 # and all the variables that are supposed to be based on exec_prefix
760 # by default will actually change.
761 # Use braces instead of parens because sh, perl, etc. also accept them.
762 # (The list follows the same order as the GNU Coding Standards.)
763 bindir='${exec_prefix}/bin'
764 sbindir='${exec_prefix}/sbin'
765 libexecdir='${exec_prefix}/libexec'
766 datarootdir='${prefix}/share'
767 datadir='${datarootdir}'
768 sysconfdir='${prefix}/etc'
769 sharedstatedir='${prefix}/com'
770 localstatedir='${prefix}/var'
771 includedir='${prefix}/include'
772 oldincludedir='/usr/include'
773 docdir='${datarootdir}/doc/${PACKAGE}'
774 infodir='${datarootdir}/info'
775 htmldir='${docdir}'
776 dvidir='${docdir}'
777 pdfdir='${docdir}'
778 psdir='${docdir}'
779 libdir='${exec_prefix}/lib'
780 localedir='${datarootdir}/locale'
781 mandir='${datarootdir}/man'
782
783 ac_prev=
784 ac_dashdash=
785 for ac_option
786 do
787 # If the previous option needs an argument, assign it.
788 if test -n "$ac_prev"; then
789 eval $ac_prev=\$ac_option
790 ac_prev=
791 continue
792 fi
793
794 case $ac_option in
795 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
796 *) ac_optarg=yes ;;
797 esac
798
799 # Accept the important Cygnus configure options, so we can diagnose typos.
800
801 case $ac_dashdash$ac_option in
802 --)
803 ac_dashdash=yes ;;
804
805 -bindir | --bindir | --bindi | --bind | --bin | --bi)
806 ac_prev=bindir ;;
807 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
808 bindir=$ac_optarg ;;
809
810 -build | --build | --buil | --bui | --bu)
811 ac_prev=build_alias ;;
812 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
813 build_alias=$ac_optarg ;;
814
815 -cache-file | --cache-file | --cache-fil | --cache-fi \
816 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
817 ac_prev=cache_file ;;
818 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
819 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
820 cache_file=$ac_optarg ;;
821
822 --config-cache | -C)
823 cache_file=config.cache ;;
824
825 -datadir | --datadir | --datadi | --datad)
826 ac_prev=datadir ;;
827 -datadir=* | --datadir=* | --datadi=* | --datad=*)
828 datadir=$ac_optarg ;;
829
830 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
831 | --dataroo | --dataro | --datar)
832 ac_prev=datarootdir ;;
833 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
834 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
835 datarootdir=$ac_optarg ;;
836
837 -disable-* | --disable-*)
838 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
839 # Reject names that are not valid shell variable names.
840 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
841 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
842 { (exit 1); exit 1; }; }
843 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
844 eval enable_$ac_feature=no ;;
845
846 -docdir | --docdir | --docdi | --doc | --do)
847 ac_prev=docdir ;;
848 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
849 docdir=$ac_optarg ;;
850
851 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
852 ac_prev=dvidir ;;
853 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
854 dvidir=$ac_optarg ;;
855
856 -enable-* | --enable-*)
857 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
858 # Reject names that are not valid shell variable names.
859 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
860 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
861 { (exit 1); exit 1; }; }
862 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
863 eval enable_$ac_feature=\$ac_optarg ;;
864
865 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
866 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
867 | --exec | --exe | --ex)
868 ac_prev=exec_prefix ;;
869 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
870 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
871 | --exec=* | --exe=* | --ex=*)
872 exec_prefix=$ac_optarg ;;
873
874 -gas | --gas | --ga | --g)
875 # Obsolete; use --with-gas.
876 with_gas=yes ;;
877
878 -help | --help | --hel | --he | -h)
879 ac_init_help=long ;;
880 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
881 ac_init_help=recursive ;;
882 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
883 ac_init_help=short ;;
884
885 -host | --host | --hos | --ho)
886 ac_prev=host_alias ;;
887 -host=* | --host=* | --hos=* | --ho=*)
888 host_alias=$ac_optarg ;;
889
890 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
891 ac_prev=htmldir ;;
892 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
893 | --ht=*)
894 htmldir=$ac_optarg ;;
895
896 -includedir | --includedir | --includedi | --included | --include \
897 | --includ | --inclu | --incl | --inc)
898 ac_prev=includedir ;;
899 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
900 | --includ=* | --inclu=* | --incl=* | --inc=*)
901 includedir=$ac_optarg ;;
902
903 -infodir | --infodir | --infodi | --infod | --info | --inf)
904 ac_prev=infodir ;;
905 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
906 infodir=$ac_optarg ;;
907
908 -libdir | --libdir | --libdi | --libd)
909 ac_prev=libdir ;;
910 -libdir=* | --libdir=* | --libdi=* | --libd=*)
911 libdir=$ac_optarg ;;
912
913 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
914 | --libexe | --libex | --libe)
915 ac_prev=libexecdir ;;
916 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
917 | --libexe=* | --libex=* | --libe=*)
918 libexecdir=$ac_optarg ;;
919
920 -localedir | --localedir | --localedi | --localed | --locale)
921 ac_prev=localedir ;;
922 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
923 localedir=$ac_optarg ;;
924
925 -localstatedir | --localstatedir | --localstatedi | --localstated \
926 | --localstate | --localstat | --localsta | --localst | --locals)
927 ac_prev=localstatedir ;;
928 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
929 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
930 localstatedir=$ac_optarg ;;
931
932 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
933 ac_prev=mandir ;;
934 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
935 mandir=$ac_optarg ;;
936
937 -nfp | --nfp | --nf)
938 # Obsolete; use --without-fp.
939 with_fp=no ;;
940
941 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
942 | --no-cr | --no-c | -n)
943 no_create=yes ;;
944
945 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
946 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
947 no_recursion=yes ;;
948
949 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
950 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
951 | --oldin | --oldi | --old | --ol | --o)
952 ac_prev=oldincludedir ;;
953 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
954 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
955 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
956 oldincludedir=$ac_optarg ;;
957
958 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
959 ac_prev=prefix ;;
960 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
961 prefix=$ac_optarg ;;
962
963 -program-prefix | --program-prefix | --program-prefi | --program-pref \
964 | --program-pre | --program-pr | --program-p)
965 ac_prev=program_prefix ;;
966 -program-prefix=* | --program-prefix=* | --program-prefi=* \
967 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
968 program_prefix=$ac_optarg ;;
969
970 -program-suffix | --program-suffix | --program-suffi | --program-suff \
971 | --program-suf | --program-su | --program-s)
972 ac_prev=program_suffix ;;
973 -program-suffix=* | --program-suffix=* | --program-suffi=* \
974 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
975 program_suffix=$ac_optarg ;;
976
977 -program-transform-name | --program-transform-name \
978 | --program-transform-nam | --program-transform-na \
979 | --program-transform-n | --program-transform- \
980 | --program-transform | --program-transfor \
981 | --program-transfo | --program-transf \
982 | --program-trans | --program-tran \
983 | --progr-tra | --program-tr | --program-t)
984 ac_prev=program_transform_name ;;
985 -program-transform-name=* | --program-transform-name=* \
986 | --program-transform-nam=* | --program-transform-na=* \
987 | --program-transform-n=* | --program-transform-=* \
988 | --program-transform=* | --program-transfor=* \
989 | --program-transfo=* | --program-transf=* \
990 | --program-trans=* | --program-tran=* \
991 | --progr-tra=* | --program-tr=* | --program-t=*)
992 program_transform_name=$ac_optarg ;;
993
994 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
995 ac_prev=pdfdir ;;
996 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
997 pdfdir=$ac_optarg ;;
998
999 -psdir | --psdir | --psdi | --psd | --ps)
1000 ac_prev=psdir ;;
1001 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1002 psdir=$ac_optarg ;;
1003
1004 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1005 | -silent | --silent | --silen | --sile | --sil)
1006 silent=yes ;;
1007
1008 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1009 ac_prev=sbindir ;;
1010 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1011 | --sbi=* | --sb=*)
1012 sbindir=$ac_optarg ;;
1013
1014 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1015 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1016 | --sharedst | --shareds | --shared | --share | --shar \
1017 | --sha | --sh)
1018 ac_prev=sharedstatedir ;;
1019 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1020 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1021 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1022 | --sha=* | --sh=*)
1023 sharedstatedir=$ac_optarg ;;
1024
1025 -site | --site | --sit)
1026 ac_prev=site ;;
1027 -site=* | --site=* | --sit=*)
1028 site=$ac_optarg ;;
1029
1030 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1031 ac_prev=srcdir ;;
1032 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1033 srcdir=$ac_optarg ;;
1034
1035 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1036 | --syscon | --sysco | --sysc | --sys | --sy)
1037 ac_prev=sysconfdir ;;
1038 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1039 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1040 sysconfdir=$ac_optarg ;;
1041
1042 -target | --target | --targe | --targ | --tar | --ta | --t)
1043 ac_prev=target_alias ;;
1044 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1045 target_alias=$ac_optarg ;;
1046
1047 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1048 verbose=yes ;;
1049
1050 -version | --version | --versio | --versi | --vers | -V)
1051 ac_init_version=: ;;
1052
1053 -with-* | --with-*)
1054 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1057 { echo "$as_me: error: invalid package name: $ac_package" >&2
1058 { (exit 1); exit 1; }; }
1059 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1060 eval with_$ac_package=\$ac_optarg ;;
1061
1062 -without-* | --without-*)
1063 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1064 # Reject names that are not valid shell variable names.
1065 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1066 { echo "$as_me: error: invalid package name: $ac_package" >&2
1067 { (exit 1); exit 1; }; }
1068 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1069 eval with_$ac_package=no ;;
1070
1071 --x)
1072 # Obsolete; use --with-x.
1073 with_x=yes ;;
1074
1075 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1076 | --x-incl | --x-inc | --x-in | --x-i)
1077 ac_prev=x_includes ;;
1078 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1079 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1080 x_includes=$ac_optarg ;;
1081
1082 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1083 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1084 ac_prev=x_libraries ;;
1085 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1086 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1087 x_libraries=$ac_optarg ;;
1088
1089 -*) { echo "$as_me: error: unrecognized option: $ac_option
1090 Try \`$0 --help' for more information." >&2
1091 { (exit 1); exit 1; }; }
1092 ;;
1093
1094 *=*)
1095 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1098 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1099 { (exit 1); exit 1; }; }
1100 eval $ac_envvar=\$ac_optarg
1101 export $ac_envvar ;;
1102
1103 *)
1104 # FIXME: should be removed in autoconf 3.0.
1105 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1106 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1107 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1108 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1109 ;;
1110
1111 esac
1112 done
1113
1114 if test -n "$ac_prev"; then
1115 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1116 { echo "$as_me: error: missing argument to $ac_option" >&2
1117 { (exit 1); exit 1; }; }
1118 fi
1119
1120 # Be sure to have absolute directory names.
1121 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1122 datadir sysconfdir sharedstatedir localstatedir includedir \
1123 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1124 libdir localedir mandir
1125 do
1126 eval ac_val=\$$ac_var
1127 case $ac_val in
1128 [\\/$]* | ?:[\\/]* ) continue;;
1129 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1130 esac
1131 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1132 { (exit 1); exit 1; }; }
1133 done
1134
1135 # There might be people who depend on the old broken behavior: `$host'
1136 # used to hold the argument of --host etc.
1137 # FIXME: To remove some day.
1138 build=$build_alias
1139 host=$host_alias
1140 target=$target_alias
1141
1142 # FIXME: To remove some day.
1143 if test "x$host_alias" != x; then
1144 if test "x$build_alias" = x; then
1145 cross_compiling=maybe
1146 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1147 If a cross compiler is detected then cross compile mode will be used." >&2
1148 elif test "x$build_alias" != "x$host_alias"; then
1149 cross_compiling=yes
1150 fi
1151 fi
1152
1153 ac_tool_prefix=
1154 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1155
1156 test "$silent" = yes && exec 6>/dev/null
1157
1158
1159 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1160 ac_ls_di=`ls -di .` &&
1161 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1162 { echo "$as_me: error: Working directory cannot be determined" >&2
1163 { (exit 1); exit 1; }; }
1164 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1165 { echo "$as_me: error: pwd does not report name of working directory" >&2
1166 { (exit 1); exit 1; }; }
1167
1168
1169 # Find the source files, if location was not specified.
1170 if test -z "$srcdir"; then
1171 ac_srcdir_defaulted=yes
1172 # Try the directory containing this script, then the parent directory.
1173 ac_confdir=`$as_dirname -- "$0" ||
1174 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1175 X"$0" : 'X\(//\)[^/]' \| \
1176 X"$0" : 'X\(//\)$' \| \
1177 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1178 echo X"$0" |
1179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1180 s//\1/
1181 q
1182 }
1183 /^X\(\/\/\)[^/].*/{
1184 s//\1/
1185 q
1186 }
1187 /^X\(\/\/\)$/{
1188 s//\1/
1189 q
1190 }
1191 /^X\(\/\).*/{
1192 s//\1/
1193 q
1194 }
1195 s/.*/./; q'`
1196 srcdir=$ac_confdir
1197 if test ! -r "$srcdir/$ac_unique_file"; then
1198 srcdir=..
1199 fi
1200 else
1201 ac_srcdir_defaulted=no
1202 fi
1203 if test ! -r "$srcdir/$ac_unique_file"; then
1204 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1205 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1206 { (exit 1); exit 1; }; }
1207 fi
1208 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1209 ac_abs_confdir=`(
1210 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1211 { (exit 1); exit 1; }; }
1212 pwd)`
1213 # When building in place, set srcdir=.
1214 if test "$ac_abs_confdir" = "$ac_pwd"; then
1215 srcdir=.
1216 fi
1217 # Remove unnecessary trailing slashes from srcdir.
1218 # Double slashes in file names in object file debugging info
1219 # mess up M-x gdb in Emacs.
1220 case $srcdir in
1221 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1222 esac
1223 for ac_var in $ac_precious_vars; do
1224 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1225 eval ac_env_${ac_var}_value=\$${ac_var}
1226 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1227 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1228 done
1229
1230 #
1231 # Report the --help message.
1232 #
1233 if test "$ac_init_help" = "long"; then
1234 # Omit some internal or obsolete options to make the list less imposing.
1235 # This message is too long to be a string in the A/UX 3.1 sh.
1236 cat <<_ACEOF
1237 \`configure' configures this package to adapt to many kinds of systems.
1238
1239 Usage: $0 [OPTION]... [VAR=VALUE]...
1240
1241 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1242 VAR=VALUE. See below for descriptions of some of the useful variables.
1243
1244 Defaults for the options are specified in brackets.
1245
1246 Configuration:
1247 -h, --help display this help and exit
1248 --help=short display options specific to this package
1249 --help=recursive display the short help of all the included packages
1250 -V, --version display version information and exit
1251 -q, --quiet, --silent do not print \`checking...' messages
1252 --cache-file=FILE cache test results in FILE [disabled]
1253 -C, --config-cache alias for \`--cache-file=config.cache'
1254 -n, --no-create do not create output files
1255 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1256
1257 Installation directories:
1258 --prefix=PREFIX install architecture-independent files in PREFIX
1259 [$ac_default_prefix]
1260 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1261 [PREFIX]
1262
1263 By default, \`make install' will install all the files in
1264 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1265 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1266 for instance \`--prefix=\$HOME'.
1267
1268 For better control, use the options below.
1269
1270 Fine tuning of the installation directories:
1271 --bindir=DIR user executables [EPREFIX/bin]
1272 --sbindir=DIR system admin executables [EPREFIX/sbin]
1273 --libexecdir=DIR program executables [EPREFIX/libexec]
1274 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1275 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1276 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1277 --libdir=DIR object code libraries [EPREFIX/lib]
1278 --includedir=DIR C header files [PREFIX/include]
1279 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1280 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1281 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1282 --infodir=DIR info documentation [DATAROOTDIR/info]
1283 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1284 --mandir=DIR man documentation [DATAROOTDIR/man]
1285 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1286 --htmldir=DIR html documentation [DOCDIR]
1287 --dvidir=DIR dvi documentation [DOCDIR]
1288 --pdfdir=DIR pdf documentation [DOCDIR]
1289 --psdir=DIR ps documentation [DOCDIR]
1290 _ACEOF
1291
1292 cat <<\_ACEOF
1293
1294 System types:
1295 --build=BUILD configure for building on BUILD [guessed]
1296 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1297 --target=TARGET configure for building compilers for TARGET [HOST]
1298 _ACEOF
1299 fi
1300
1301 if test -n "$ac_init_help"; then
1302
1303 cat <<\_ACEOF
1304
1305 Optional Features:
1306 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1307 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1308 --disable-nls do not use Native Language Support
1309 --disable-rpath do not hardcode runtime library paths
1310
1311 Optional Packages:
1312 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1313 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1314 --with-cpus The number of cpus to be used for building(see --with-procs, default 1)
1315 --with-getconf Enable automagical buildtime configuration
1316 --with-proc-multiply Multiply this * number of cpus for parallel making(default 2).
1317 --with-procs The number of processes to run in parallel during make(num_cpus * multiplier).
1318 --with-gnu-ld assume the C compiler uses GNU ld default=no
1319 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1320 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1321 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1322 --without-libintl-prefix don't search for libintl in includedir and libdir
1323
1324 Some influential environment variables:
1325 CC C compiler command
1326 CFLAGS C compiler flags
1327 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1328 nonstandard directory <lib dir>
1329 LIBS libraries to pass to the linker, e.g. -l<library>
1330 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1331 you have headers in a nonstandard directory <include dir>
1332 CXX C++ compiler command
1333 CXXFLAGS C++ compiler flags
1334 CPP C preprocessor
1335
1336 Use these variables to override the choices made by `configure' or to help
1337 it to find libraries and programs with nonstandard names/locations.
1338
1339 _ACEOF
1340 ac_status=$?
1341 fi
1342
1343 if test "$ac_init_help" = "recursive"; then
1344 # If there are subdirs, report their specific --help.
1345 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1346 test -d "$ac_dir" || continue
1347 ac_builddir=.
1348
1349 case "$ac_dir" in
1350 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1351 *)
1352 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1353 # A ".." for each directory in $ac_dir_suffix.
1354 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1355 case $ac_top_builddir_sub in
1356 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1357 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1358 esac ;;
1359 esac
1360 ac_abs_top_builddir=$ac_pwd
1361 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1362 # for backward compatibility:
1363 ac_top_builddir=$ac_top_build_prefix
1364
1365 case $srcdir in
1366 .) # We are building in place.
1367 ac_srcdir=.
1368 ac_top_srcdir=$ac_top_builddir_sub
1369 ac_abs_top_srcdir=$ac_pwd ;;
1370 [\\/]* | ?:[\\/]* ) # Absolute name.
1371 ac_srcdir=$srcdir$ac_dir_suffix;
1372 ac_top_srcdir=$srcdir
1373 ac_abs_top_srcdir=$srcdir ;;
1374 *) # Relative name.
1375 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1376 ac_top_srcdir=$ac_top_build_prefix$srcdir
1377 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1378 esac
1379 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1380
1381 cd "$ac_dir" || { ac_status=$?; continue; }
1382 # Check for guested configure.
1383 if test -f "$ac_srcdir/configure.gnu"; then
1384 echo &&
1385 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1386 elif test -f "$ac_srcdir/configure"; then
1387 echo &&
1388 $SHELL "$ac_srcdir/configure" --help=recursive
1389 else
1390 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1391 fi || ac_status=$?
1392 cd "$ac_pwd" || { ac_status=$?; break; }
1393 done
1394 fi
1395
1396 test -n "$ac_init_help" && exit $ac_status
1397 if $ac_init_version; then
1398 cat <<\_ACEOF
1399 configure
1400 generated by GNU Autoconf 2.61
1401
1402 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1403 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1404 This configure script is free software; the Free Software Foundation
1405 gives unlimited permission to copy, distribute and modify it.
1406 _ACEOF
1407 exit
1408 fi
1409 cat >config.log <<_ACEOF
1410 This file contains any messages produced by compilers while
1411 running configure, to aid debugging if configure makes a mistake.
1412
1413 It was created by $as_me, which was
1414 generated by GNU Autoconf 2.61. Invocation command line was
1415
1416 $ $0 $@
1417
1418 _ACEOF
1419 exec 5>>config.log
1420 {
1421 cat <<_ASUNAME
1422 ## --------- ##
1423 ## Platform. ##
1424 ## --------- ##
1425
1426 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1427 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1428 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1429 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1430 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1431
1432 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1433 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1434
1435 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1436 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1437 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1438 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1439 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1440 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1441 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1442
1443 _ASUNAME
1444
1445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1446 for as_dir in $PATH
1447 do
1448 IFS=$as_save_IFS
1449 test -z "$as_dir" && as_dir=.
1450 echo "PATH: $as_dir"
1451 done
1452 IFS=$as_save_IFS
1453
1454 } >&5
1455
1456 cat >&5 <<_ACEOF
1457
1458
1459 ## ----------- ##
1460 ## Core tests. ##
1461 ## ----------- ##
1462
1463 _ACEOF
1464
1465
1466 # Keep a trace of the command line.
1467 # Strip out --no-create and --no-recursion so they do not pile up.
1468 # Strip out --silent because we don't want to record it for future runs.
1469 # Also quote any args containing shell meta-characters.
1470 # Make two passes to allow for proper duplicate-argument suppression.
1471 ac_configure_args=
1472 ac_configure_args0=
1473 ac_configure_args1=
1474 ac_must_keep_next=false
1475 for ac_pass in 1 2
1476 do
1477 for ac_arg
1478 do
1479 case $ac_arg in
1480 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1481 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1482 | -silent | --silent | --silen | --sile | --sil)
1483 continue ;;
1484 *\'*)
1485 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1486 esac
1487 case $ac_pass in
1488 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1489 2)
1490 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1491 if test $ac_must_keep_next = true; then
1492 ac_must_keep_next=false # Got value, back to normal.
1493 else
1494 case $ac_arg in
1495 *=* | --config-cache | -C | -disable-* | --disable-* \
1496 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1497 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1498 | -with-* | --with-* | -without-* | --without-* | --x)
1499 case "$ac_configure_args0 " in
1500 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1501 esac
1502 ;;
1503 -* ) ac_must_keep_next=true ;;
1504 esac
1505 fi
1506 ac_configure_args="$ac_configure_args '$ac_arg'"
1507 ;;
1508 esac
1509 done
1510 done
1511 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1512 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1513
1514 # When interrupted or exit'd, cleanup temporary files, and complete
1515 # config.log. We remove comments because anyway the quotes in there
1516 # would cause problems or look ugly.
1517 # WARNING: Use '\'' to represent an apostrophe within the trap.
1518 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1519 trap 'exit_status=$?
1520 # Save into config.log some information that might help in debugging.
1521 {
1522 echo
1523
1524 cat <<\_ASBOX
1525 ## ---------------- ##
1526 ## Cache variables. ##
1527 ## ---------------- ##
1528 _ASBOX
1529 echo
1530 # The following way of writing the cache mishandles newlines in values,
1531 (
1532 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1533 eval ac_val=\$$ac_var
1534 case $ac_val in #(
1535 *${as_nl}*)
1536 case $ac_var in #(
1537 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1538 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1539 esac
1540 case $ac_var in #(
1541 _ | IFS | as_nl) ;; #(
1542 *) $as_unset $ac_var ;;
1543 esac ;;
1544 esac
1545 done
1546 (set) 2>&1 |
1547 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1548 *${as_nl}ac_space=\ *)
1549 sed -n \
1550 "s/'\''/'\''\\\\'\'''\''/g;
1551 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1552 ;; #(
1553 *)
1554 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1555 ;;
1556 esac |
1557 sort
1558 )
1559 echo
1560
1561 cat <<\_ASBOX
1562 ## ----------------- ##
1563 ## Output variables. ##
1564 ## ----------------- ##
1565 _ASBOX
1566 echo
1567 for ac_var in $ac_subst_vars
1568 do
1569 eval ac_val=\$$ac_var
1570 case $ac_val in
1571 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1572 esac
1573 echo "$ac_var='\''$ac_val'\''"
1574 done | sort
1575 echo
1576
1577 if test -n "$ac_subst_files"; then
1578 cat <<\_ASBOX
1579 ## ------------------- ##
1580 ## File substitutions. ##
1581 ## ------------------- ##
1582 _ASBOX
1583 echo
1584 for ac_var in $ac_subst_files
1585 do
1586 eval ac_val=\$$ac_var
1587 case $ac_val in
1588 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1589 esac
1590 echo "$ac_var='\''$ac_val'\''"
1591 done | sort
1592 echo
1593 fi
1594
1595 if test -s confdefs.h; then
1596 cat <<\_ASBOX
1597 ## ----------- ##
1598 ## confdefs.h. ##
1599 ## ----------- ##
1600 _ASBOX
1601 echo
1602 cat confdefs.h
1603 echo
1604 fi
1605 test "$ac_signal" != 0 &&
1606 echo "$as_me: caught signal $ac_signal"
1607 echo "$as_me: exit $exit_status"
1608 } >&5
1609 rm -f core *.core core.conftest.* &&
1610 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1611 exit $exit_status
1612 ' 0
1613 for ac_signal in 1 2 13 15; do
1614 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1615 done
1616 ac_signal=0
1617
1618 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1619 rm -f -r conftest* confdefs.h
1620
1621 # Predefined preprocessor variables.
1622
1623 cat >>confdefs.h <<_ACEOF
1624 #define PACKAGE_NAME "$PACKAGE_NAME"
1625 _ACEOF
1626
1627
1628 cat >>confdefs.h <<_ACEOF
1629 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1630 _ACEOF
1631
1632
1633 cat >>confdefs.h <<_ACEOF
1634 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1635 _ACEOF
1636
1637
1638 cat >>confdefs.h <<_ACEOF
1639 #define PACKAGE_STRING "$PACKAGE_STRING"
1640 _ACEOF
1641
1642
1643 cat >>confdefs.h <<_ACEOF
1644 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1645 _ACEOF
1646
1647
1648 # Let the site file select an alternate cache file if it wants to.
1649 # Prefer explicitly selected file to automatically selected ones.
1650 if test -n "$CONFIG_SITE"; then
1651 set x "$CONFIG_SITE"
1652 elif test "x$prefix" != xNONE; then
1653 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1654 else
1655 set x "$ac_default_prefix/share/config.site" \
1656 "$ac_default_prefix/etc/config.site"
1657 fi
1658 shift
1659 for ac_site_file
1660 do
1661 if test -r "$ac_site_file"; then
1662 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1663 echo "$as_me: loading site script $ac_site_file" >&6;}
1664 sed 's/^/| /' "$ac_site_file" >&5
1665 . "$ac_site_file"
1666 fi
1667 done
1668
1669 if test -r "$cache_file"; then
1670 # Some versions of bash will fail to source /dev/null (special
1671 # files actually), so we avoid doing that.
1672 if test -f "$cache_file"; then
1673 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1674 echo "$as_me: loading cache $cache_file" >&6;}
1675 case $cache_file in
1676 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1677 *) . "./$cache_file";;
1678 esac
1679 fi
1680 else
1681 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1682 echo "$as_me: creating cache $cache_file" >&6;}
1683 >$cache_file
1684 fi
1685
1686 # Check that the precious variables saved in the cache have kept the same
1687 # value.
1688 ac_cache_corrupted=false
1689 for ac_var in $ac_precious_vars; do
1690 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1691 eval ac_new_set=\$ac_env_${ac_var}_set
1692 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1693 eval ac_new_val=\$ac_env_${ac_var}_value
1694 case $ac_old_set,$ac_new_set in
1695 set,)
1696 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1697 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1698 ac_cache_corrupted=: ;;
1699 ,set)
1700 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1701 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1702 ac_cache_corrupted=: ;;
1703 ,);;
1704 *)
1705 if test "x$ac_old_val" != "x$ac_new_val"; then
1706 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1707 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1708 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1709 echo "$as_me: former value: $ac_old_val" >&2;}
1710 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1711 echo "$as_me: current value: $ac_new_val" >&2;}
1712 ac_cache_corrupted=:
1713 fi;;
1714 esac
1715 # Pass precious variables to config.status.
1716 if test "$ac_new_set" = set; then
1717 case $ac_new_val in
1718 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1719 *) ac_arg=$ac_var=$ac_new_val ;;
1720 esac
1721 case " $ac_configure_args " in
1722 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1723 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1724 esac
1725 fi
1726 done
1727 if $ac_cache_corrupted; then
1728 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1729 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1730 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1731 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1732 { (exit 1); exit 1; }; }
1733 fi
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751 ac_ext=c
1752 ac_cpp='$CPP $CPPFLAGS'
1753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1756
1757
1758 ac_aux_dir=
1759 for ac_dir in buildlib "$srcdir"/buildlib; do
1760 if test -f "$ac_dir/install-sh"; then
1761 ac_aux_dir=$ac_dir
1762 ac_install_sh="$ac_aux_dir/install-sh -c"
1763 break
1764 elif test -f "$ac_dir/install.sh"; then
1765 ac_aux_dir=$ac_dir
1766 ac_install_sh="$ac_aux_dir/install.sh -c"
1767 break
1768 elif test -f "$ac_dir/shtool"; then
1769 ac_aux_dir=$ac_dir
1770 ac_install_sh="$ac_aux_dir/shtool install -c"
1771 break
1772 fi
1773 done
1774 if test -z "$ac_aux_dir"; then
1775 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in buildlib \"$srcdir\"/buildlib" >&5
1776 echo "$as_me: error: cannot find install-sh or install.sh in buildlib \"$srcdir\"/buildlib" >&2;}
1777 { (exit 1); exit 1; }; }
1778 fi
1779
1780 # These three variables are undocumented and unsupported,
1781 # and are intended to be withdrawn in a future Autoconf release.
1782 # They can cause serious problems if a builder's source tree is in a directory
1783 # whose full name contains unusual characters.
1784 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1785 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1786 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1787
1788
1789 ac_config_headers="$ac_config_headers include/config.h:buildlib/config.h.in include/apti18n.h:buildlib/apti18n.h.in"
1790
1791
1792 cat >>confdefs.h <<_ACEOF
1793 #define VERSION "0.6.46.4-0.1"
1794 _ACEOF
1795
1796 PACKAGE="apt"
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE "$PACKAGE"
1799 _ACEOF
1800
1801
1802
1803 # Make sure we can run config.sub.
1804 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1805 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1806 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1807 { (exit 1); exit 1; }; }
1808
1809 { echo "$as_me:$LINENO: checking build system type" >&5
1810 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1811 if test "${ac_cv_build+set}" = set; then
1812 echo $ECHO_N "(cached) $ECHO_C" >&6
1813 else
1814 ac_build_alias=$build_alias
1815 test "x$ac_build_alias" = x &&
1816 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1817 test "x$ac_build_alias" = x &&
1818 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1819 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1820 { (exit 1); exit 1; }; }
1821 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1822 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1823 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1824 { (exit 1); exit 1; }; }
1825
1826 fi
1827 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1828 echo "${ECHO_T}$ac_cv_build" >&6; }
1829 case $ac_cv_build in
1830 *-*-*) ;;
1831 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1832 echo "$as_me: error: invalid value of canonical build" >&2;}
1833 { (exit 1); exit 1; }; };;
1834 esac
1835 build=$ac_cv_build
1836 ac_save_IFS=$IFS; IFS='-'
1837 set x $ac_cv_build
1838 shift
1839 build_cpu=$1
1840 build_vendor=$2
1841 shift; shift
1842 # Remember, the first character of IFS is used to create $*,
1843 # except with old shells:
1844 build_os=$*
1845 IFS=$ac_save_IFS
1846 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1847
1848
1849 { echo "$as_me:$LINENO: checking host system type" >&5
1850 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1851 if test "${ac_cv_host+set}" = set; then
1852 echo $ECHO_N "(cached) $ECHO_C" >&6
1853 else
1854 if test "x$host_alias" = x; then
1855 ac_cv_host=$ac_cv_build
1856 else
1857 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1858 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1859 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1860 { (exit 1); exit 1; }; }
1861 fi
1862
1863 fi
1864 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1865 echo "${ECHO_T}$ac_cv_host" >&6; }
1866 case $ac_cv_host in
1867 *-*-*) ;;
1868 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1869 echo "$as_me: error: invalid value of canonical host" >&2;}
1870 { (exit 1); exit 1; }; };;
1871 esac
1872 host=$ac_cv_host
1873 ac_save_IFS=$IFS; IFS='-'
1874 set x $ac_cv_host
1875 shift
1876 host_cpu=$1
1877 host_vendor=$2
1878 shift; shift
1879 # Remember, the first character of IFS is used to create $*,
1880 # except with old shells:
1881 host_os=$*
1882 IFS=$ac_save_IFS
1883 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1884
1885
1886 { echo "$as_me:$LINENO: checking target system type" >&5
1887 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1888 if test "${ac_cv_target+set}" = set; then
1889 echo $ECHO_N "(cached) $ECHO_C" >&6
1890 else
1891 if test "x$target_alias" = x; then
1892 ac_cv_target=$ac_cv_host
1893 else
1894 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1895 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1896 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1897 { (exit 1); exit 1; }; }
1898 fi
1899
1900 fi
1901 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1902 echo "${ECHO_T}$ac_cv_target" >&6; }
1903 case $ac_cv_target in
1904 *-*-*) ;;
1905 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1906 echo "$as_me: error: invalid value of canonical target" >&2;}
1907 { (exit 1); exit 1; }; };;
1908 esac
1909 target=$ac_cv_target
1910 ac_save_IFS=$IFS; IFS='-'
1911 set x $ac_cv_target
1912 shift
1913 target_cpu=$1
1914 target_vendor=$2
1915 shift; shift
1916 # Remember, the first character of IFS is used to create $*,
1917 # except with old shells:
1918 target_os=$*
1919 IFS=$ac_save_IFS
1920 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1921
1922
1923 # The aliases save the names the user supplied, while $host etc.
1924 # will get canonicalized.
1925 test -n "$target_alias" &&
1926 test "$program_prefix$program_suffix$program_transform_name" = \
1927 NONENONEs,x,x, &&
1928 program_prefix=${target_alias}-
1929
1930
1931 ac_ext=c
1932 ac_cpp='$CPP $CPPFLAGS'
1933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1936 if test -n "$ac_tool_prefix"; then
1937 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1938 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1941 if test "${ac_cv_prog_CC+set}" = set; then
1942 echo $ECHO_N "(cached) $ECHO_C" >&6
1943 else
1944 if test -n "$CC"; then
1945 ac_cv_prog_CC="$CC" # Let the user override the test.
1946 else
1947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1948 for as_dir in $PATH
1949 do
1950 IFS=$as_save_IFS
1951 test -z "$as_dir" && as_dir=.
1952 for ac_exec_ext in '' $ac_executable_extensions; do
1953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1954 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1956 break 2
1957 fi
1958 done
1959 done
1960 IFS=$as_save_IFS
1961
1962 fi
1963 fi
1964 CC=$ac_cv_prog_CC
1965 if test -n "$CC"; then
1966 { echo "$as_me:$LINENO: result: $CC" >&5
1967 echo "${ECHO_T}$CC" >&6; }
1968 else
1969 { echo "$as_me:$LINENO: result: no" >&5
1970 echo "${ECHO_T}no" >&6; }
1971 fi
1972
1973
1974 fi
1975 if test -z "$ac_cv_prog_CC"; then
1976 ac_ct_CC=$CC
1977 # Extract the first word of "gcc", so it can be a program name with args.
1978 set dummy gcc; ac_word=$2
1979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1981 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1982 echo $ECHO_N "(cached) $ECHO_C" >&6
1983 else
1984 if test -n "$ac_ct_CC"; then
1985 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1986 else
1987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988 for as_dir in $PATH
1989 do
1990 IFS=$as_save_IFS
1991 test -z "$as_dir" && as_dir=.
1992 for ac_exec_ext in '' $ac_executable_extensions; do
1993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1994 ac_cv_prog_ac_ct_CC="gcc"
1995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1996 break 2
1997 fi
1998 done
1999 done
2000 IFS=$as_save_IFS
2001
2002 fi
2003 fi
2004 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2005 if test -n "$ac_ct_CC"; then
2006 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2007 echo "${ECHO_T}$ac_ct_CC" >&6; }
2008 else
2009 { echo "$as_me:$LINENO: result: no" >&5
2010 echo "${ECHO_T}no" >&6; }
2011 fi
2012
2013 if test "x$ac_ct_CC" = x; then
2014 CC=""
2015 else
2016 case $cross_compiling:$ac_tool_warned in
2017 yes:)
2018 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2019 whose name does not start with the host triplet. If you think this
2020 configuration is useful to you, please write to autoconf@gnu.org." >&5
2021 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2022 whose name does not start with the host triplet. If you think this
2023 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2024 ac_tool_warned=yes ;;
2025 esac
2026 CC=$ac_ct_CC
2027 fi
2028 else
2029 CC="$ac_cv_prog_CC"
2030 fi
2031
2032 if test -z "$CC"; then
2033 if test -n "$ac_tool_prefix"; then
2034 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2035 set dummy ${ac_tool_prefix}cc; ac_word=$2
2036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2038 if test "${ac_cv_prog_CC+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2040 else
2041 if test -n "$CC"; then
2042 ac_cv_prog_CC="$CC" # Let the user override the test.
2043 else
2044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045 for as_dir in $PATH
2046 do
2047 IFS=$as_save_IFS
2048 test -z "$as_dir" && as_dir=.
2049 for ac_exec_ext in '' $ac_executable_extensions; do
2050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2051 ac_cv_prog_CC="${ac_tool_prefix}cc"
2052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053 break 2
2054 fi
2055 done
2056 done
2057 IFS=$as_save_IFS
2058
2059 fi
2060 fi
2061 CC=$ac_cv_prog_CC
2062 if test -n "$CC"; then
2063 { echo "$as_me:$LINENO: result: $CC" >&5
2064 echo "${ECHO_T}$CC" >&6; }
2065 else
2066 { echo "$as_me:$LINENO: result: no" >&5
2067 echo "${ECHO_T}no" >&6; }
2068 fi
2069
2070
2071 fi
2072 fi
2073 if test -z "$CC"; then
2074 # Extract the first word of "cc", so it can be a program name with args.
2075 set dummy cc; ac_word=$2
2076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2078 if test "${ac_cv_prog_CC+set}" = set; then
2079 echo $ECHO_N "(cached) $ECHO_C" >&6
2080 else
2081 if test -n "$CC"; then
2082 ac_cv_prog_CC="$CC" # Let the user override the test.
2083 else
2084 ac_prog_rejected=no
2085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086 for as_dir in $PATH
2087 do
2088 IFS=$as_save_IFS
2089 test -z "$as_dir" && as_dir=.
2090 for ac_exec_ext in '' $ac_executable_extensions; do
2091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2092 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2093 ac_prog_rejected=yes
2094 continue
2095 fi
2096 ac_cv_prog_CC="cc"
2097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2098 break 2
2099 fi
2100 done
2101 done
2102 IFS=$as_save_IFS
2103
2104 if test $ac_prog_rejected = yes; then
2105 # We found a bogon in the path, so make sure we never use it.
2106 set dummy $ac_cv_prog_CC
2107 shift
2108 if test $# != 0; then
2109 # We chose a different compiler from the bogus one.
2110 # However, it has the same basename, so the bogon will be chosen
2111 # first if we set CC to just the basename; use the full file name.
2112 shift
2113 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2114 fi
2115 fi
2116 fi
2117 fi
2118 CC=$ac_cv_prog_CC
2119 if test -n "$CC"; then
2120 { echo "$as_me:$LINENO: result: $CC" >&5
2121 echo "${ECHO_T}$CC" >&6; }
2122 else
2123 { echo "$as_me:$LINENO: result: no" >&5
2124 echo "${ECHO_T}no" >&6; }
2125 fi
2126
2127
2128 fi
2129 if test -z "$CC"; then
2130 if test -n "$ac_tool_prefix"; then
2131 for ac_prog in cl.exe
2132 do
2133 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2134 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2137 if test "${ac_cv_prog_CC+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2139 else
2140 if test -n "$CC"; then
2141 ac_cv_prog_CC="$CC" # Let the user override the test.
2142 else
2143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144 for as_dir in $PATH
2145 do
2146 IFS=$as_save_IFS
2147 test -z "$as_dir" && as_dir=.
2148 for ac_exec_ext in '' $ac_executable_extensions; do
2149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2150 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2152 break 2
2153 fi
2154 done
2155 done
2156 IFS=$as_save_IFS
2157
2158 fi
2159 fi
2160 CC=$ac_cv_prog_CC
2161 if test -n "$CC"; then
2162 { echo "$as_me:$LINENO: result: $CC" >&5
2163 echo "${ECHO_T}$CC" >&6; }
2164 else
2165 { echo "$as_me:$LINENO: result: no" >&5
2166 echo "${ECHO_T}no" >&6; }
2167 fi
2168
2169
2170 test -n "$CC" && break
2171 done
2172 fi
2173 if test -z "$CC"; then
2174 ac_ct_CC=$CC
2175 for ac_prog in cl.exe
2176 do
2177 # Extract the first word of "$ac_prog", so it can be a program name with args.
2178 set dummy $ac_prog; ac_word=$2
2179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2181 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2182 echo $ECHO_N "(cached) $ECHO_C" >&6
2183 else
2184 if test -n "$ac_ct_CC"; then
2185 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2186 else
2187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2188 for as_dir in $PATH
2189 do
2190 IFS=$as_save_IFS
2191 test -z "$as_dir" && as_dir=.
2192 for ac_exec_ext in '' $ac_executable_extensions; do
2193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2194 ac_cv_prog_ac_ct_CC="$ac_prog"
2195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2196 break 2
2197 fi
2198 done
2199 done
2200 IFS=$as_save_IFS
2201
2202 fi
2203 fi
2204 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2205 if test -n "$ac_ct_CC"; then
2206 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2207 echo "${ECHO_T}$ac_ct_CC" >&6; }
2208 else
2209 { echo "$as_me:$LINENO: result: no" >&5
2210 echo "${ECHO_T}no" >&6; }
2211 fi
2212
2213
2214 test -n "$ac_ct_CC" && break
2215 done
2216
2217 if test "x$ac_ct_CC" = x; then
2218 CC=""
2219 else
2220 case $cross_compiling:$ac_tool_warned in
2221 yes:)
2222 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2223 whose name does not start with the host triplet. If you think this
2224 configuration is useful to you, please write to autoconf@gnu.org." >&5
2225 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2226 whose name does not start with the host triplet. If you think this
2227 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2228 ac_tool_warned=yes ;;
2229 esac
2230 CC=$ac_ct_CC
2231 fi
2232 fi
2233
2234 fi
2235
2236
2237 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2238 See \`config.log' for more details." >&5
2239 echo "$as_me: error: no acceptable C compiler found in \$PATH
2240 See \`config.log' for more details." >&2;}
2241 { (exit 1); exit 1; }; }
2242
2243 # Provide some information about the compiler.
2244 echo "$as_me:$LINENO: checking for C compiler version" >&5
2245 ac_compiler=`set X $ac_compile; echo $2`
2246 { (ac_try="$ac_compiler --version >&5"
2247 case "(($ac_try" in
2248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2249 *) ac_try_echo=$ac_try;;
2250 esac
2251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2252 (eval "$ac_compiler --version >&5") 2>&5
2253 ac_status=$?
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }
2256 { (ac_try="$ac_compiler -v >&5"
2257 case "(($ac_try" in
2258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2259 *) ac_try_echo=$ac_try;;
2260 esac
2261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2262 (eval "$ac_compiler -v >&5") 2>&5
2263 ac_status=$?
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }
2266 { (ac_try="$ac_compiler -V >&5"
2267 case "(($ac_try" in
2268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2269 *) ac_try_echo=$ac_try;;
2270 esac
2271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2272 (eval "$ac_compiler -V >&5") 2>&5
2273 ac_status=$?
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }
2276
2277 cat >conftest.$ac_ext <<_ACEOF
2278 /* confdefs.h. */
2279 _ACEOF
2280 cat confdefs.h >>conftest.$ac_ext
2281 cat >>conftest.$ac_ext <<_ACEOF
2282 /* end confdefs.h. */
2283
2284 int
2285 main ()
2286 {
2287
2288 ;
2289 return 0;
2290 }
2291 _ACEOF
2292 ac_clean_files_save=$ac_clean_files
2293 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2294 # Try to create an executable without -o first, disregard a.out.
2295 # It will help us diagnose broken compilers, and finding out an intuition
2296 # of exeext.
2297 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2298 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2299 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2300 #
2301 # List of possible output files, starting from the most likely.
2302 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2303 # only as a last resort. b.out is created by i960 compilers.
2304 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2305 #
2306 # The IRIX 6 linker writes into existing files which may not be
2307 # executable, retaining their permissions. Remove them first so a
2308 # subsequent execution test works.
2309 ac_rmfiles=
2310 for ac_file in $ac_files
2311 do
2312 case $ac_file in
2313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2314 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2315 esac
2316 done
2317 rm -f $ac_rmfiles
2318
2319 if { (ac_try="$ac_link_default"
2320 case "(($ac_try" in
2321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2322 *) ac_try_echo=$ac_try;;
2323 esac
2324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2325 (eval "$ac_link_default") 2>&5
2326 ac_status=$?
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }; then
2329 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2330 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2331 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2332 # so that the user can short-circuit this test for compilers unknown to
2333 # Autoconf.
2334 for ac_file in $ac_files ''
2335 do
2336 test -f "$ac_file" || continue
2337 case $ac_file in
2338 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2339 ;;
2340 [ab].out )
2341 # We found the default executable, but exeext='' is most
2342 # certainly right.
2343 break;;
2344 *.* )
2345 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2346 then :; else
2347 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2348 fi
2349 # We set ac_cv_exeext here because the later test for it is not
2350 # safe: cross compilers may not add the suffix if given an `-o'
2351 # argument, so we may need to know it at that point already.
2352 # Even if this section looks crufty: it has the advantage of
2353 # actually working.
2354 break;;
2355 * )
2356 break;;
2357 esac
2358 done
2359 test "$ac_cv_exeext" = no && ac_cv_exeext=
2360
2361 else
2362 ac_file=''
2363 fi
2364
2365 { echo "$as_me:$LINENO: result: $ac_file" >&5
2366 echo "${ECHO_T}$ac_file" >&6; }
2367 if test -z "$ac_file"; then
2368 echo "$as_me: failed program was:" >&5
2369 sed 's/^/| /' conftest.$ac_ext >&5
2370
2371 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2372 See \`config.log' for more details." >&5
2373 echo "$as_me: error: C compiler cannot create executables
2374 See \`config.log' for more details." >&2;}
2375 { (exit 77); exit 77; }; }
2376 fi
2377
2378 ac_exeext=$ac_cv_exeext
2379
2380 # Check that the compiler produces executables we can run. If not, either
2381 # the compiler is broken, or we cross compile.
2382 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2383 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2384 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2385 # If not cross compiling, check that we can run a simple program.
2386 if test "$cross_compiling" != yes; then
2387 if { ac_try='./$ac_file'
2388 { (case "(($ac_try" in
2389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390 *) ac_try_echo=$ac_try;;
2391 esac
2392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2393 (eval "$ac_try") 2>&5
2394 ac_status=$?
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; }; then
2397 cross_compiling=no
2398 else
2399 if test "$cross_compiling" = maybe; then
2400 cross_compiling=yes
2401 else
2402 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2403 If you meant to cross compile, use \`--host'.
2404 See \`config.log' for more details." >&5
2405 echo "$as_me: error: cannot run C compiled programs.
2406 If you meant to cross compile, use \`--host'.
2407 See \`config.log' for more details." >&2;}
2408 { (exit 1); exit 1; }; }
2409 fi
2410 fi
2411 fi
2412 { echo "$as_me:$LINENO: result: yes" >&5
2413 echo "${ECHO_T}yes" >&6; }
2414
2415 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2416 ac_clean_files=$ac_clean_files_save
2417 # Check that the compiler produces executables we can run. If not, either
2418 # the compiler is broken, or we cross compile.
2419 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2420 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2421 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2422 echo "${ECHO_T}$cross_compiling" >&6; }
2423
2424 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2425 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2426 if { (ac_try="$ac_link"
2427 case "(($ac_try" in
2428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2429 *) ac_try_echo=$ac_try;;
2430 esac
2431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2432 (eval "$ac_link") 2>&5
2433 ac_status=$?
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }; then
2436 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2437 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2438 # work properly (i.e., refer to `conftest.exe'), while it won't with
2439 # `rm'.
2440 for ac_file in conftest.exe conftest conftest.*; do
2441 test -f "$ac_file" || continue
2442 case $ac_file in
2443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2444 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2445 break;;
2446 * ) break;;
2447 esac
2448 done
2449 else
2450 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2451 See \`config.log' for more details." >&5
2452 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2453 See \`config.log' for more details." >&2;}
2454 { (exit 1); exit 1; }; }
2455 fi
2456
2457 rm -f conftest$ac_cv_exeext
2458 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2459 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2460
2461 rm -f conftest.$ac_ext
2462 EXEEXT=$ac_cv_exeext
2463 ac_exeext=$EXEEXT
2464 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2465 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2466 if test "${ac_cv_objext+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2468 else
2469 cat >conftest.$ac_ext <<_ACEOF
2470 /* confdefs.h. */
2471 _ACEOF
2472 cat confdefs.h >>conftest.$ac_ext
2473 cat >>conftest.$ac_ext <<_ACEOF
2474 /* end confdefs.h. */
2475
2476 int
2477 main ()
2478 {
2479
2480 ;
2481 return 0;
2482 }
2483 _ACEOF
2484 rm -f conftest.o conftest.obj
2485 if { (ac_try="$ac_compile"
2486 case "(($ac_try" in
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2489 esac
2490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491 (eval "$ac_compile") 2>&5
2492 ac_status=$?
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; then
2495 for ac_file in conftest.o conftest.obj conftest.*; do
2496 test -f "$ac_file" || continue;
2497 case $ac_file in
2498 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2499 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2500 break;;
2501 esac
2502 done
2503 else
2504 echo "$as_me: failed program was:" >&5
2505 sed 's/^/| /' conftest.$ac_ext >&5
2506
2507 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2508 See \`config.log' for more details." >&5
2509 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2510 See \`config.log' for more details." >&2;}
2511 { (exit 1); exit 1; }; }
2512 fi
2513
2514 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2515 fi
2516 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2517 echo "${ECHO_T}$ac_cv_objext" >&6; }
2518 OBJEXT=$ac_cv_objext
2519 ac_objext=$OBJEXT
2520 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2521 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2522 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2523 echo $ECHO_N "(cached) $ECHO_C" >&6
2524 else
2525 cat >conftest.$ac_ext <<_ACEOF
2526 /* confdefs.h. */
2527 _ACEOF
2528 cat confdefs.h >>conftest.$ac_ext
2529 cat >>conftest.$ac_ext <<_ACEOF
2530 /* end confdefs.h. */
2531
2532 int
2533 main ()
2534 {
2535 #ifndef __GNUC__
2536 choke me
2537 #endif
2538
2539 ;
2540 return 0;
2541 }
2542 _ACEOF
2543 rm -f conftest.$ac_objext
2544 if { (ac_try="$ac_compile"
2545 case "(($ac_try" in
2546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2547 *) ac_try_echo=$ac_try;;
2548 esac
2549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2550 (eval "$ac_compile") 2>conftest.er1
2551 ac_status=$?
2552 grep -v '^ *+' conftest.er1 >conftest.err
2553 rm -f conftest.er1
2554 cat conftest.err >&5
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); } && {
2557 test -z "$ac_c_werror_flag" ||
2558 test ! -s conftest.err
2559 } && test -s conftest.$ac_objext; then
2560 ac_compiler_gnu=yes
2561 else
2562 echo "$as_me: failed program was:" >&5
2563 sed 's/^/| /' conftest.$ac_ext >&5
2564
2565 ac_compiler_gnu=no
2566 fi
2567
2568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2569 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2570
2571 fi
2572 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2573 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2574 GCC=`test $ac_compiler_gnu = yes && echo yes`
2575 ac_test_CFLAGS=${CFLAGS+set}
2576 ac_save_CFLAGS=$CFLAGS
2577 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2578 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2579 if test "${ac_cv_prog_cc_g+set}" = set; then
2580 echo $ECHO_N "(cached) $ECHO_C" >&6
2581 else
2582 ac_save_c_werror_flag=$ac_c_werror_flag
2583 ac_c_werror_flag=yes
2584 ac_cv_prog_cc_g=no
2585 CFLAGS="-g"
2586 cat >conftest.$ac_ext <<_ACEOF
2587 /* confdefs.h. */
2588 _ACEOF
2589 cat confdefs.h >>conftest.$ac_ext
2590 cat >>conftest.$ac_ext <<_ACEOF
2591 /* end confdefs.h. */
2592
2593 int
2594 main ()
2595 {
2596
2597 ;
2598 return 0;
2599 }
2600 _ACEOF
2601 rm -f conftest.$ac_objext
2602 if { (ac_try="$ac_compile"
2603 case "(($ac_try" in
2604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2605 *) ac_try_echo=$ac_try;;
2606 esac
2607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2608 (eval "$ac_compile") 2>conftest.er1
2609 ac_status=$?
2610 grep -v '^ *+' conftest.er1 >conftest.err
2611 rm -f conftest.er1
2612 cat conftest.err >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); } && {
2615 test -z "$ac_c_werror_flag" ||
2616 test ! -s conftest.err
2617 } && test -s conftest.$ac_objext; then
2618 ac_cv_prog_cc_g=yes
2619 else
2620 echo "$as_me: failed program was:" >&5
2621 sed 's/^/| /' conftest.$ac_ext >&5
2622
2623 CFLAGS=""
2624 cat >conftest.$ac_ext <<_ACEOF
2625 /* confdefs.h. */
2626 _ACEOF
2627 cat confdefs.h >>conftest.$ac_ext
2628 cat >>conftest.$ac_ext <<_ACEOF
2629 /* end confdefs.h. */
2630
2631 int
2632 main ()
2633 {
2634
2635 ;
2636 return 0;
2637 }
2638 _ACEOF
2639 rm -f conftest.$ac_objext
2640 if { (ac_try="$ac_compile"
2641 case "(($ac_try" in
2642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2643 *) ac_try_echo=$ac_try;;
2644 esac
2645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2646 (eval "$ac_compile") 2>conftest.er1
2647 ac_status=$?
2648 grep -v '^ *+' conftest.er1 >conftest.err
2649 rm -f conftest.er1
2650 cat conftest.err >&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); } && {
2653 test -z "$ac_c_werror_flag" ||
2654 test ! -s conftest.err
2655 } && test -s conftest.$ac_objext; then
2656 :
2657 else
2658 echo "$as_me: failed program was:" >&5
2659 sed 's/^/| /' conftest.$ac_ext >&5
2660
2661 ac_c_werror_flag=$ac_save_c_werror_flag
2662 CFLAGS="-g"
2663 cat >conftest.$ac_ext <<_ACEOF
2664 /* confdefs.h. */
2665 _ACEOF
2666 cat confdefs.h >>conftest.$ac_ext
2667 cat >>conftest.$ac_ext <<_ACEOF
2668 /* end confdefs.h. */
2669
2670 int
2671 main ()
2672 {
2673
2674 ;
2675 return 0;
2676 }
2677 _ACEOF
2678 rm -f conftest.$ac_objext
2679 if { (ac_try="$ac_compile"
2680 case "(($ac_try" in
2681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682 *) ac_try_echo=$ac_try;;
2683 esac
2684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2685 (eval "$ac_compile") 2>conftest.er1
2686 ac_status=$?
2687 grep -v '^ *+' conftest.er1 >conftest.err
2688 rm -f conftest.er1
2689 cat conftest.err >&5
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); } && {
2692 test -z "$ac_c_werror_flag" ||
2693 test ! -s conftest.err
2694 } && test -s conftest.$ac_objext; then
2695 ac_cv_prog_cc_g=yes
2696 else
2697 echo "$as_me: failed program was:" >&5
2698 sed 's/^/| /' conftest.$ac_ext >&5
2699
2700
2701 fi
2702
2703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2704 fi
2705
2706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2707 fi
2708
2709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2710 ac_c_werror_flag=$ac_save_c_werror_flag
2711 fi
2712 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2713 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2714 if test "$ac_test_CFLAGS" = set; then
2715 CFLAGS=$ac_save_CFLAGS
2716 elif test $ac_cv_prog_cc_g = yes; then
2717 if test "$GCC" = yes; then
2718 CFLAGS="-g -O2"
2719 else
2720 CFLAGS="-g"
2721 fi
2722 else
2723 if test "$GCC" = yes; then
2724 CFLAGS="-O2"
2725 else
2726 CFLAGS=
2727 fi
2728 fi
2729 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2730 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2731 if test "${ac_cv_prog_cc_c89+set}" = set; then
2732 echo $ECHO_N "(cached) $ECHO_C" >&6
2733 else
2734 ac_cv_prog_cc_c89=no
2735 ac_save_CC=$CC
2736 cat >conftest.$ac_ext <<_ACEOF
2737 /* confdefs.h. */
2738 _ACEOF
2739 cat confdefs.h >>conftest.$ac_ext
2740 cat >>conftest.$ac_ext <<_ACEOF
2741 /* end confdefs.h. */
2742 #include <stdarg.h>
2743 #include <stdio.h>
2744 #include <sys/types.h>
2745 #include <sys/stat.h>
2746 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2747 struct buf { int x; };
2748 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2749 static char *e (p, i)
2750 char **p;
2751 int i;
2752 {
2753 return p[i];
2754 }
2755 static char *f (char * (*g) (char **, int), char **p, ...)
2756 {
2757 char *s;
2758 va_list v;
2759 va_start (v,p);
2760 s = g (p, va_arg (v,int));
2761 va_end (v);
2762 return s;
2763 }
2764
2765 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2766 function prototypes and stuff, but not '\xHH' hex character constants.
2767 These don't provoke an error unfortunately, instead are silently treated
2768 as 'x'. The following induces an error, until -std is added to get
2769 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2770 array size at least. It's necessary to write '\x00'==0 to get something
2771 that's true only with -std. */
2772 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2773
2774 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2775 inside strings and character constants. */
2776 #define FOO(x) 'x'
2777 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2778
2779 int test (int i, double x);
2780 struct s1 {int (*f) (int a);};
2781 struct s2 {int (*f) (double a);};
2782 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2783 int argc;
2784 char **argv;
2785 int
2786 main ()
2787 {
2788 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2789 ;
2790 return 0;
2791 }
2792 _ACEOF
2793 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2794 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2795 do
2796 CC="$ac_save_CC $ac_arg"
2797 rm -f conftest.$ac_objext
2798 if { (ac_try="$ac_compile"
2799 case "(($ac_try" in
2800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2801 *) ac_try_echo=$ac_try;;
2802 esac
2803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2804 (eval "$ac_compile") 2>conftest.er1
2805 ac_status=$?
2806 grep -v '^ *+' conftest.er1 >conftest.err
2807 rm -f conftest.er1
2808 cat conftest.err >&5
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); } && {
2811 test -z "$ac_c_werror_flag" ||
2812 test ! -s conftest.err
2813 } && test -s conftest.$ac_objext; then
2814 ac_cv_prog_cc_c89=$ac_arg
2815 else
2816 echo "$as_me: failed program was:" >&5
2817 sed 's/^/| /' conftest.$ac_ext >&5
2818
2819
2820 fi
2821
2822 rm -f core conftest.err conftest.$ac_objext
2823 test "x$ac_cv_prog_cc_c89" != "xno" && break
2824 done
2825 rm -f conftest.$ac_ext
2826 CC=$ac_save_CC
2827
2828 fi
2829 # AC_CACHE_VAL
2830 case "x$ac_cv_prog_cc_c89" in
2831 x)
2832 { echo "$as_me:$LINENO: result: none needed" >&5
2833 echo "${ECHO_T}none needed" >&6; } ;;
2834 xno)
2835 { echo "$as_me:$LINENO: result: unsupported" >&5
2836 echo "${ECHO_T}unsupported" >&6; } ;;
2837 *)
2838 CC="$CC $ac_cv_prog_cc_c89"
2839 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2840 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2841 esac
2842
2843
2844 ac_ext=c
2845 ac_cpp='$CPP $CPPFLAGS'
2846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2849
2850
2851 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
2852 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
2853 if test "${ac_cv_search_strerror+set}" = set; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
2855 else
2856 ac_func_search_save_LIBS=$LIBS
2857 cat >conftest.$ac_ext <<_ACEOF
2858 /* confdefs.h. */
2859 _ACEOF
2860 cat confdefs.h >>conftest.$ac_ext
2861 cat >>conftest.$ac_ext <<_ACEOF
2862 /* end confdefs.h. */
2863
2864 /* Override any GCC internal prototype to avoid an error.
2865 Use char because int might match the return type of a GCC
2866 builtin and then its argument prototype would still apply. */
2867 #ifdef __cplusplus
2868 extern "C"
2869 #endif
2870 char strerror ();
2871 int
2872 main ()
2873 {
2874 return strerror ();
2875 ;
2876 return 0;
2877 }
2878 _ACEOF
2879 for ac_lib in '' cposix; do
2880 if test -z "$ac_lib"; then
2881 ac_res="none required"
2882 else
2883 ac_res=-l$ac_lib
2884 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2885 fi
2886 rm -f conftest.$ac_objext conftest$ac_exeext
2887 if { (ac_try="$ac_link"
2888 case "(($ac_try" in
2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2891 esac
2892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2893 (eval "$ac_link") 2>conftest.er1
2894 ac_status=$?
2895 grep -v '^ *+' conftest.er1 >conftest.err
2896 rm -f conftest.er1
2897 cat conftest.err >&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); } && {
2900 test -z "$ac_c_werror_flag" ||
2901 test ! -s conftest.err
2902 } && test -s conftest$ac_exeext &&
2903 $as_test_x conftest$ac_exeext; then
2904 ac_cv_search_strerror=$ac_res
2905 else
2906 echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2908
2909
2910 fi
2911
2912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2913 conftest$ac_exeext
2914 if test "${ac_cv_search_strerror+set}" = set; then
2915 break
2916 fi
2917 done
2918 if test "${ac_cv_search_strerror+set}" = set; then
2919 :
2920 else
2921 ac_cv_search_strerror=no
2922 fi
2923 rm conftest.$ac_ext
2924 LIBS=$ac_func_search_save_LIBS
2925 fi
2926 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2927 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
2928 ac_res=$ac_cv_search_strerror
2929 if test "$ac_res" != no; then
2930 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2931
2932 fi
2933
2934
2935 ac_ext=cpp
2936 ac_cpp='$CXXCPP $CPPFLAGS'
2937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2940 if test -z "$CXX"; then
2941 if test -n "$CCC"; then
2942 CXX=$CCC
2943 else
2944 if test -n "$ac_tool_prefix"; then
2945 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2946 do
2947 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2948 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2949 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2951 if test "${ac_cv_prog_CXX+set}" = set; then
2952 echo $ECHO_N "(cached) $ECHO_C" >&6
2953 else
2954 if test -n "$CXX"; then
2955 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2956 else
2957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958 for as_dir in $PATH
2959 do
2960 IFS=$as_save_IFS
2961 test -z "$as_dir" && as_dir=.
2962 for ac_exec_ext in '' $ac_executable_extensions; do
2963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2964 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2966 break 2
2967 fi
2968 done
2969 done
2970 IFS=$as_save_IFS
2971
2972 fi
2973 fi
2974 CXX=$ac_cv_prog_CXX
2975 if test -n "$CXX"; then
2976 { echo "$as_me:$LINENO: result: $CXX" >&5
2977 echo "${ECHO_T}$CXX" >&6; }
2978 else
2979 { echo "$as_me:$LINENO: result: no" >&5
2980 echo "${ECHO_T}no" >&6; }
2981 fi
2982
2983
2984 test -n "$CXX" && break
2985 done
2986 fi
2987 if test -z "$CXX"; then
2988 ac_ct_CXX=$CXX
2989 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2990 do
2991 # Extract the first word of "$ac_prog", so it can be a program name with args.
2992 set dummy $ac_prog; ac_word=$2
2993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2995 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2996 echo $ECHO_N "(cached) $ECHO_C" >&6
2997 else
2998 if test -n "$ac_ct_CXX"; then
2999 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3000 else
3001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002 for as_dir in $PATH
3003 do
3004 IFS=$as_save_IFS
3005 test -z "$as_dir" && as_dir=.
3006 for ac_exec_ext in '' $ac_executable_extensions; do
3007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3008 ac_cv_prog_ac_ct_CXX="$ac_prog"
3009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3010 break 2
3011 fi
3012 done
3013 done
3014 IFS=$as_save_IFS
3015
3016 fi
3017 fi
3018 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3019 if test -n "$ac_ct_CXX"; then
3020 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3021 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3022 else
3023 { echo "$as_me:$LINENO: result: no" >&5
3024 echo "${ECHO_T}no" >&6; }
3025 fi
3026
3027
3028 test -n "$ac_ct_CXX" && break
3029 done
3030
3031 if test "x$ac_ct_CXX" = x; then
3032 CXX="g++"
3033 else
3034 case $cross_compiling:$ac_tool_warned in
3035 yes:)
3036 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3037 whose name does not start with the host triplet. If you think this
3038 configuration is useful to you, please write to autoconf@gnu.org." >&5
3039 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3040 whose name does not start with the host triplet. If you think this
3041 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3042 ac_tool_warned=yes ;;
3043 esac
3044 CXX=$ac_ct_CXX
3045 fi
3046 fi
3047
3048 fi
3049 fi
3050 # Provide some information about the compiler.
3051 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3052 ac_compiler=`set X $ac_compile; echo $2`
3053 { (ac_try="$ac_compiler --version >&5"
3054 case "(($ac_try" in
3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3057 esac
3058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3059 (eval "$ac_compiler --version >&5") 2>&5
3060 ac_status=$?
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); }
3063 { (ac_try="$ac_compiler -v >&5"
3064 case "(($ac_try" in
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3067 esac
3068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3069 (eval "$ac_compiler -v >&5") 2>&5
3070 ac_status=$?
3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); }
3073 { (ac_try="$ac_compiler -V >&5"
3074 case "(($ac_try" in
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3077 esac
3078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3079 (eval "$ac_compiler -V >&5") 2>&5
3080 ac_status=$?
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); }
3083
3084 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3085 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3086 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
3088 else
3089 cat >conftest.$ac_ext <<_ACEOF
3090 /* confdefs.h. */
3091 _ACEOF
3092 cat confdefs.h >>conftest.$ac_ext
3093 cat >>conftest.$ac_ext <<_ACEOF
3094 /* end confdefs.h. */
3095
3096 int
3097 main ()
3098 {
3099 #ifndef __GNUC__
3100 choke me
3101 #endif
3102
3103 ;
3104 return 0;
3105 }
3106 _ACEOF
3107 rm -f conftest.$ac_objext
3108 if { (ac_try="$ac_compile"
3109 case "(($ac_try" in
3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3112 esac
3113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3114 (eval "$ac_compile") 2>conftest.er1
3115 ac_status=$?
3116 grep -v '^ *+' conftest.er1 >conftest.err
3117 rm -f conftest.er1
3118 cat conftest.err >&5
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); } && {
3121 test -z "$ac_cxx_werror_flag" ||
3122 test ! -s conftest.err
3123 } && test -s conftest.$ac_objext; then
3124 ac_compiler_gnu=yes
3125 else
3126 echo "$as_me: failed program was:" >&5
3127 sed 's/^/| /' conftest.$ac_ext >&5
3128
3129 ac_compiler_gnu=no
3130 fi
3131
3132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3133 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3134
3135 fi
3136 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3137 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3138 GXX=`test $ac_compiler_gnu = yes && echo yes`
3139 ac_test_CXXFLAGS=${CXXFLAGS+set}
3140 ac_save_CXXFLAGS=$CXXFLAGS
3141 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3142 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3143 if test "${ac_cv_prog_cxx_g+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3147 ac_cxx_werror_flag=yes
3148 ac_cv_prog_cxx_g=no
3149 CXXFLAGS="-g"
3150 cat >conftest.$ac_ext <<_ACEOF
3151 /* confdefs.h. */
3152 _ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h. */
3156
3157 int
3158 main ()
3159 {
3160
3161 ;
3162 return 0;
3163 }
3164 _ACEOF
3165 rm -f conftest.$ac_objext
3166 if { (ac_try="$ac_compile"
3167 case "(($ac_try" in
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3170 esac
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172 (eval "$ac_compile") 2>conftest.er1
3173 ac_status=$?
3174 grep -v '^ *+' conftest.er1 >conftest.err
3175 rm -f conftest.er1
3176 cat conftest.err >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); } && {
3179 test -z "$ac_cxx_werror_flag" ||
3180 test ! -s conftest.err
3181 } && test -s conftest.$ac_objext; then
3182 ac_cv_prog_cxx_g=yes
3183 else
3184 echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3186
3187 CXXFLAGS=""
3188 cat >conftest.$ac_ext <<_ACEOF
3189 /* confdefs.h. */
3190 _ACEOF
3191 cat confdefs.h >>conftest.$ac_ext
3192 cat >>conftest.$ac_ext <<_ACEOF
3193 /* end confdefs.h. */
3194
3195 int
3196 main ()
3197 {
3198
3199 ;
3200 return 0;
3201 }
3202 _ACEOF
3203 rm -f conftest.$ac_objext
3204 if { (ac_try="$ac_compile"
3205 case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3208 esac
3209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210 (eval "$ac_compile") 2>conftest.er1
3211 ac_status=$?
3212 grep -v '^ *+' conftest.er1 >conftest.err
3213 rm -f conftest.er1
3214 cat conftest.err >&5
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); } && {
3217 test -z "$ac_cxx_werror_flag" ||
3218 test ! -s conftest.err
3219 } && test -s conftest.$ac_objext; then
3220 :
3221 else
3222 echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3224
3225 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3226 CXXFLAGS="-g"
3227 cat >conftest.$ac_ext <<_ACEOF
3228 /* confdefs.h. */
3229 _ACEOF
3230 cat confdefs.h >>conftest.$ac_ext
3231 cat >>conftest.$ac_ext <<_ACEOF
3232 /* end confdefs.h. */
3233
3234 int
3235 main ()
3236 {
3237
3238 ;
3239 return 0;
3240 }
3241 _ACEOF
3242 rm -f conftest.$ac_objext
3243 if { (ac_try="$ac_compile"
3244 case "(($ac_try" in
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3247 esac
3248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3249 (eval "$ac_compile") 2>conftest.er1
3250 ac_status=$?
3251 grep -v '^ *+' conftest.er1 >conftest.err
3252 rm -f conftest.er1
3253 cat conftest.err >&5
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); } && {
3256 test -z "$ac_cxx_werror_flag" ||
3257 test ! -s conftest.err
3258 } && test -s conftest.$ac_objext; then
3259 ac_cv_prog_cxx_g=yes
3260 else
3261 echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.$ac_ext >&5
3263
3264
3265 fi
3266
3267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3268 fi
3269
3270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3271 fi
3272
3273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3274 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3275 fi
3276 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3277 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3278 if test "$ac_test_CXXFLAGS" = set; then
3279 CXXFLAGS=$ac_save_CXXFLAGS
3280 elif test $ac_cv_prog_cxx_g = yes; then
3281 if test "$GXX" = yes; then
3282 CXXFLAGS="-g -O2"
3283 else
3284 CXXFLAGS="-g"
3285 fi
3286 else
3287 if test "$GXX" = yes; then
3288 CXXFLAGS="-O2"
3289 else
3290 CXXFLAGS=
3291 fi
3292 fi
3293 ac_ext=c
3294 ac_cpp='$CPP $CPPFLAGS'
3295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3298
3299 ac_ext=c
3300 ac_cpp='$CPP $CPPFLAGS'
3301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3304 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3305 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3306 # On Suns, sometimes $CPP names a directory.
3307 if test -n "$CPP" && test -d "$CPP"; then
3308 CPP=
3309 fi
3310 if test -z "$CPP"; then
3311 if test "${ac_cv_prog_CPP+set}" = set; then
3312 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 else
3314 # Double quotes because CPP needs to be expanded
3315 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3316 do
3317 ac_preproc_ok=false
3318 for ac_c_preproc_warn_flag in '' yes
3319 do
3320 # Use a header file that comes with gcc, so configuring glibc
3321 # with a fresh cross-compiler works.
3322 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3323 # <limits.h> exists even on freestanding compilers.
3324 # On the NeXT, cc -E runs the code through the compiler's parser,
3325 # not just through cpp. "Syntax error" is here to catch this case.
3326 cat >conftest.$ac_ext <<_ACEOF
3327 /* confdefs.h. */
3328 _ACEOF
3329 cat confdefs.h >>conftest.$ac_ext
3330 cat >>conftest.$ac_ext <<_ACEOF
3331 /* end confdefs.h. */
3332 #ifdef __STDC__
3333 # include <limits.h>
3334 #else
3335 # include <assert.h>
3336 #endif
3337 Syntax error
3338 _ACEOF
3339 if { (ac_try="$ac_cpp conftest.$ac_ext"
3340 case "(($ac_try" in
3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342 *) ac_try_echo=$ac_try;;
3343 esac
3344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3345 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3346 ac_status=$?
3347 grep -v '^ *+' conftest.er1 >conftest.err
3348 rm -f conftest.er1
3349 cat conftest.err >&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); } >/dev/null && {
3352 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3353 test ! -s conftest.err
3354 }; then
3355 :
3356 else
3357 echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3359
3360 # Broken: fails on valid input.
3361 continue
3362 fi
3363
3364 rm -f conftest.err conftest.$ac_ext
3365
3366 # OK, works on sane cases. Now check whether nonexistent headers
3367 # can be detected and how.
3368 cat >conftest.$ac_ext <<_ACEOF
3369 /* confdefs.h. */
3370 _ACEOF
3371 cat confdefs.h >>conftest.$ac_ext
3372 cat >>conftest.$ac_ext <<_ACEOF
3373 /* end confdefs.h. */
3374 #include <ac_nonexistent.h>
3375 _ACEOF
3376 if { (ac_try="$ac_cpp conftest.$ac_ext"
3377 case "(($ac_try" in
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3380 esac
3381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3383 ac_status=$?
3384 grep -v '^ *+' conftest.er1 >conftest.err
3385 rm -f conftest.er1
3386 cat conftest.err >&5
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); } >/dev/null && {
3389 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3390 test ! -s conftest.err
3391 }; then
3392 # Broken: success on invalid input.
3393 continue
3394 else
3395 echo "$as_me: failed program was:" >&5
3396 sed 's/^/| /' conftest.$ac_ext >&5
3397
3398 # Passes both tests.
3399 ac_preproc_ok=:
3400 break
3401 fi
3402
3403 rm -f conftest.err conftest.$ac_ext
3404
3405 done
3406 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3407 rm -f conftest.err conftest.$ac_ext
3408 if $ac_preproc_ok; then
3409 break
3410 fi
3411
3412 done
3413 ac_cv_prog_CPP=$CPP
3414
3415 fi
3416 CPP=$ac_cv_prog_CPP
3417 else
3418 ac_cv_prog_CPP=$CPP
3419 fi
3420 { echo "$as_me:$LINENO: result: $CPP" >&5
3421 echo "${ECHO_T}$CPP" >&6; }
3422 ac_preproc_ok=false
3423 for ac_c_preproc_warn_flag in '' yes
3424 do
3425 # Use a header file that comes with gcc, so configuring glibc
3426 # with a fresh cross-compiler works.
3427 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3428 # <limits.h> exists even on freestanding compilers.
3429 # On the NeXT, cc -E runs the code through the compiler's parser,
3430 # not just through cpp. "Syntax error" is here to catch this case.
3431 cat >conftest.$ac_ext <<_ACEOF
3432 /* confdefs.h. */
3433 _ACEOF
3434 cat confdefs.h >>conftest.$ac_ext
3435 cat >>conftest.$ac_ext <<_ACEOF
3436 /* end confdefs.h. */
3437 #ifdef __STDC__
3438 # include <limits.h>
3439 #else
3440 # include <assert.h>
3441 #endif
3442 Syntax error
3443 _ACEOF
3444 if { (ac_try="$ac_cpp conftest.$ac_ext"
3445 case "(($ac_try" in
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3448 esac
3449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3451 ac_status=$?
3452 grep -v '^ *+' conftest.er1 >conftest.err
3453 rm -f conftest.er1
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } >/dev/null && {
3457 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3458 test ! -s conftest.err
3459 }; then
3460 :
3461 else
3462 echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3464
3465 # Broken: fails on valid input.
3466 continue
3467 fi
3468
3469 rm -f conftest.err conftest.$ac_ext
3470
3471 # OK, works on sane cases. Now check whether nonexistent headers
3472 # can be detected and how.
3473 cat >conftest.$ac_ext <<_ACEOF
3474 /* confdefs.h. */
3475 _ACEOF
3476 cat confdefs.h >>conftest.$ac_ext
3477 cat >>conftest.$ac_ext <<_ACEOF
3478 /* end confdefs.h. */
3479 #include <ac_nonexistent.h>
3480 _ACEOF
3481 if { (ac_try="$ac_cpp conftest.$ac_ext"
3482 case "(($ac_try" in
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3485 esac
3486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3488 ac_status=$?
3489 grep -v '^ *+' conftest.er1 >conftest.err
3490 rm -f conftest.er1
3491 cat conftest.err >&5
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); } >/dev/null && {
3494 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3495 test ! -s conftest.err
3496 }; then
3497 # Broken: success on invalid input.
3498 continue
3499 else
3500 echo "$as_me: failed program was:" >&5
3501 sed 's/^/| /' conftest.$ac_ext >&5
3502
3503 # Passes both tests.
3504 ac_preproc_ok=:
3505 break
3506 fi
3507
3508 rm -f conftest.err conftest.$ac_ext
3509
3510 done
3511 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3512 rm -f conftest.err conftest.$ac_ext
3513 if $ac_preproc_ok; then
3514 :
3515 else
3516 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3517 See \`config.log' for more details." >&5
3518 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3519 See \`config.log' for more details." >&2;}
3520 { (exit 1); exit 1; }; }
3521 fi
3522
3523 ac_ext=c
3524 ac_cpp='$CPP $CPPFLAGS'
3525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3528
3529 if test -n "$ac_tool_prefix"; then
3530 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3531 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3534 if test "${ac_cv_prog_RANLIB+set}" = set; then
3535 echo $ECHO_N "(cached) $ECHO_C" >&6
3536 else
3537 if test -n "$RANLIB"; then
3538 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3539 else
3540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541 for as_dir in $PATH
3542 do
3543 IFS=$as_save_IFS
3544 test -z "$as_dir" && as_dir=.
3545 for ac_exec_ext in '' $ac_executable_extensions; do
3546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3547 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3549 break 2
3550 fi
3551 done
3552 done
3553 IFS=$as_save_IFS
3554
3555 fi
3556 fi
3557 RANLIB=$ac_cv_prog_RANLIB
3558 if test -n "$RANLIB"; then
3559 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3560 echo "${ECHO_T}$RANLIB" >&6; }
3561 else
3562 { echo "$as_me:$LINENO: result: no" >&5
3563 echo "${ECHO_T}no" >&6; }
3564 fi
3565
3566
3567 fi
3568 if test -z "$ac_cv_prog_RANLIB"; then
3569 ac_ct_RANLIB=$RANLIB
3570 # Extract the first word of "ranlib", so it can be a program name with args.
3571 set dummy ranlib; ac_word=$2
3572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3574 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3575 echo $ECHO_N "(cached) $ECHO_C" >&6
3576 else
3577 if test -n "$ac_ct_RANLIB"; then
3578 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3579 else
3580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581 for as_dir in $PATH
3582 do
3583 IFS=$as_save_IFS
3584 test -z "$as_dir" && as_dir=.
3585 for ac_exec_ext in '' $ac_executable_extensions; do
3586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3587 ac_cv_prog_ac_ct_RANLIB="ranlib"
3588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3589 break 2
3590 fi
3591 done
3592 done
3593 IFS=$as_save_IFS
3594
3595 fi
3596 fi
3597 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3598 if test -n "$ac_ct_RANLIB"; then
3599 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3600 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3601 else
3602 { echo "$as_me:$LINENO: result: no" >&5
3603 echo "${ECHO_T}no" >&6; }
3604 fi
3605
3606 if test "x$ac_ct_RANLIB" = x; then
3607 RANLIB=":"
3608 else
3609 case $cross_compiling:$ac_tool_warned in
3610 yes:)
3611 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3612 whose name does not start with the host triplet. If you think this
3613 configuration is useful to you, please write to autoconf@gnu.org." >&5
3614 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3615 whose name does not start with the host triplet. If you think this
3616 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3617 ac_tool_warned=yes ;;
3618 esac
3619 RANLIB=$ac_ct_RANLIB
3620 fi
3621 else
3622 RANLIB="$ac_cv_prog_RANLIB"
3623 fi
3624
3625 if test -n "$ac_tool_prefix"; then
3626 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3627 set dummy ${ac_tool_prefix}ar; ac_word=$2
3628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3630 if test "${ac_cv_prog_AR+set}" = set; then
3631 echo $ECHO_N "(cached) $ECHO_C" >&6
3632 else
3633 if test -n "$AR"; then
3634 ac_cv_prog_AR="$AR" # Let the user override the test.
3635 else
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637 for as_dir in $PATH
3638 do
3639 IFS=$as_save_IFS
3640 test -z "$as_dir" && as_dir=.
3641 for ac_exec_ext in '' $ac_executable_extensions; do
3642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3643 ac_cv_prog_AR="${ac_tool_prefix}ar"
3644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3645 break 2
3646 fi
3647 done
3648 done
3649 IFS=$as_save_IFS
3650
3651 fi
3652 fi
3653 AR=$ac_cv_prog_AR
3654 if test -n "$AR"; then
3655 { echo "$as_me:$LINENO: result: $AR" >&5
3656 echo "${ECHO_T}$AR" >&6; }
3657 else
3658 { echo "$as_me:$LINENO: result: no" >&5
3659 echo "${ECHO_T}no" >&6; }
3660 fi
3661
3662
3663 fi
3664 if test -z "$ac_cv_prog_AR"; then
3665 ac_ct_AR=$AR
3666 # Extract the first word of "ar", so it can be a program name with args.
3667 set dummy ar; ac_word=$2
3668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3670 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 else
3673 if test -n "$ac_ct_AR"; then
3674 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3675 else
3676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 for as_dir in $PATH
3678 do
3679 IFS=$as_save_IFS
3680 test -z "$as_dir" && as_dir=.
3681 for ac_exec_ext in '' $ac_executable_extensions; do
3682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3683 ac_cv_prog_ac_ct_AR="ar"
3684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3685 break 2
3686 fi
3687 done
3688 done
3689 IFS=$as_save_IFS
3690
3691 fi
3692 fi
3693 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3694 if test -n "$ac_ct_AR"; then
3695 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3696 echo "${ECHO_T}$ac_ct_AR" >&6; }
3697 else
3698 { echo "$as_me:$LINENO: result: no" >&5
3699 echo "${ECHO_T}no" >&6; }
3700 fi
3701
3702 if test "x$ac_ct_AR" = x; then
3703 AR=""ar""
3704 else
3705 case $cross_compiling:$ac_tool_warned in
3706 yes:)
3707 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3708 whose name does not start with the host triplet. If you think this
3709 configuration is useful to you, please write to autoconf@gnu.org." >&5
3710 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3711 whose name does not start with the host triplet. If you think this
3712 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3713 ac_tool_warned=yes ;;
3714 esac
3715 AR=$ac_ct_AR
3716 fi
3717 else
3718 AR="$ac_cv_prog_AR"
3719 fi
3720
3721
3722 SAVE_LIBS="$LIBS"
3723 LIBS=""
3724 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
3725 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
3726 if test "${ac_cv_search_gethostbyname+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3728 else
3729 ac_func_search_save_LIBS=$LIBS
3730 cat >conftest.$ac_ext <<_ACEOF
3731 /* confdefs.h. */
3732 _ACEOF
3733 cat confdefs.h >>conftest.$ac_ext
3734 cat >>conftest.$ac_ext <<_ACEOF
3735 /* end confdefs.h. */
3736
3737 /* Override any GCC internal prototype to avoid an error.
3738 Use char because int might match the return type of a GCC
3739 builtin and then its argument prototype would still apply. */
3740 #ifdef __cplusplus
3741 extern "C"
3742 #endif
3743 char gethostbyname ();
3744 int
3745 main ()
3746 {
3747 return gethostbyname ();
3748 ;
3749 return 0;
3750 }
3751 _ACEOF
3752 for ac_lib in '' nsl; do
3753 if test -z "$ac_lib"; then
3754 ac_res="none required"
3755 else
3756 ac_res=-l$ac_lib
3757 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3758 fi
3759 rm -f conftest.$ac_objext conftest$ac_exeext
3760 if { (ac_try="$ac_link"
3761 case "(($ac_try" in
3762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763 *) ac_try_echo=$ac_try;;
3764 esac
3765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3766 (eval "$ac_link") 2>conftest.er1
3767 ac_status=$?
3768 grep -v '^ *+' conftest.er1 >conftest.err
3769 rm -f conftest.er1
3770 cat conftest.err >&5
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); } && {
3773 test -z "$ac_c_werror_flag" ||
3774 test ! -s conftest.err
3775 } && test -s conftest$ac_exeext &&
3776 $as_test_x conftest$ac_exeext; then
3777 ac_cv_search_gethostbyname=$ac_res
3778 else
3779 echo "$as_me: failed program was:" >&5
3780 sed 's/^/| /' conftest.$ac_ext >&5
3781
3782
3783 fi
3784
3785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3786 conftest$ac_exeext
3787 if test "${ac_cv_search_gethostbyname+set}" = set; then
3788 break
3789 fi
3790 done
3791 if test "${ac_cv_search_gethostbyname+set}" = set; then
3792 :
3793 else
3794 ac_cv_search_gethostbyname=no
3795 fi
3796 rm conftest.$ac_ext
3797 LIBS=$ac_func_search_save_LIBS
3798 fi
3799 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
3800 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
3801 ac_res=$ac_cv_search_gethostbyname
3802 if test "$ac_res" != no; then
3803 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3804
3805 fi
3806
3807 { echo "$as_me:$LINENO: checking for library containing connect" >&5
3808 echo $ECHO_N "checking for library containing connect... $ECHO_C" >&6; }
3809 if test "${ac_cv_search_connect+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
3811 else
3812 ac_func_search_save_LIBS=$LIBS
3813 cat >conftest.$ac_ext <<_ACEOF
3814 /* confdefs.h. */
3815 _ACEOF
3816 cat confdefs.h >>conftest.$ac_ext
3817 cat >>conftest.$ac_ext <<_ACEOF
3818 /* end confdefs.h. */
3819
3820 /* Override any GCC internal prototype to avoid an error.
3821 Use char because int might match the return type of a GCC
3822 builtin and then its argument prototype would still apply. */
3823 #ifdef __cplusplus
3824 extern "C"
3825 #endif
3826 char connect ();
3827 int
3828 main ()
3829 {
3830 return connect ();
3831 ;
3832 return 0;
3833 }
3834 _ACEOF
3835 for ac_lib in '' socket; do
3836 if test -z "$ac_lib"; then
3837 ac_res="none required"
3838 else
3839 ac_res=-l$ac_lib
3840 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3841 fi
3842 rm -f conftest.$ac_objext conftest$ac_exeext
3843 if { (ac_try="$ac_link"
3844 case "(($ac_try" in
3845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846 *) ac_try_echo=$ac_try;;
3847 esac
3848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3849 (eval "$ac_link") 2>conftest.er1
3850 ac_status=$?
3851 grep -v '^ *+' conftest.er1 >conftest.err
3852 rm -f conftest.er1
3853 cat conftest.err >&5
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); } && {
3856 test -z "$ac_c_werror_flag" ||
3857 test ! -s conftest.err
3858 } && test -s conftest$ac_exeext &&
3859 $as_test_x conftest$ac_exeext; then
3860 ac_cv_search_connect=$ac_res
3861 else
3862 echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.$ac_ext >&5
3864
3865
3866 fi
3867
3868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3869 conftest$ac_exeext
3870 if test "${ac_cv_search_connect+set}" = set; then
3871 break
3872 fi
3873 done
3874 if test "${ac_cv_search_connect+set}" = set; then
3875 :
3876 else
3877 ac_cv_search_connect=no
3878 fi
3879 rm conftest.$ac_ext
3880 LIBS=$ac_func_search_save_LIBS
3881 fi
3882 { echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5
3883 echo "${ECHO_T}$ac_cv_search_connect" >&6; }
3884 ac_res=$ac_cv_search_connect
3885 if test "$ac_res" != no; then
3886 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3887
3888 fi
3889
3890 SOCKETLIBS="$LIBS"
3891
3892 LIBS="$SAVE_LIBS"
3893
3894
3895
3896 saveLIBS="$LIBS"
3897 LIBS="$LIBS -ldb"
3898
3899
3900 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3901 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3902 if test "${ac_cv_path_GREP+set}" = set; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3904 else
3905 # Extract the first word of "grep ggrep" to use in msg output
3906 if test -z "$GREP"; then
3907 set dummy grep ggrep; ac_prog_name=$2
3908 if test "${ac_cv_path_GREP+set}" = set; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
3910 else
3911 ac_path_GREP_found=false
3912 # Loop through the user's path and test for each of PROGNAME-LIST
3913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3915 do
3916 IFS=$as_save_IFS
3917 test -z "$as_dir" && as_dir=.
3918 for ac_prog in grep ggrep; do
3919 for ac_exec_ext in '' $ac_executable_extensions; do
3920 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3921 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3922 # Check for GNU ac_path_GREP and select it if it is found.
3923 # Check for GNU $ac_path_GREP
3924 case `"$ac_path_GREP" --version 2>&1` in
3925 *GNU*)
3926 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3927 *)
3928 ac_count=0
3929 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3930 while :
3931 do
3932 cat "conftest.in" "conftest.in" >"conftest.tmp"
3933 mv "conftest.tmp" "conftest.in"
3934 cp "conftest.in" "conftest.nl"
3935 echo 'GREP' >> "conftest.nl"
3936 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3937 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3938 ac_count=`expr $ac_count + 1`
3939 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3940 # Best one so far, save it but keep looking for a better one
3941 ac_cv_path_GREP="$ac_path_GREP"
3942 ac_path_GREP_max=$ac_count
3943 fi
3944 # 10*(2^10) chars as input seems more than enough
3945 test $ac_count -gt 10 && break
3946 done
3947 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3948 esac
3949
3950
3951 $ac_path_GREP_found && break 3
3952 done
3953 done
3954
3955 done
3956 IFS=$as_save_IFS
3957
3958
3959 fi
3960
3961 GREP="$ac_cv_path_GREP"
3962 if test -z "$GREP"; then
3963 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3964 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3965 { (exit 1); exit 1; }; }
3966 fi
3967
3968 else
3969 ac_cv_path_GREP=$GREP
3970 fi
3971
3972
3973 fi
3974 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3975 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3976 GREP="$ac_cv_path_GREP"
3977
3978
3979 { echo "$as_me:$LINENO: checking for egrep" >&5
3980 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3981 if test "${ac_cv_path_EGREP+set}" = set; then
3982 echo $ECHO_N "(cached) $ECHO_C" >&6
3983 else
3984 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3985 then ac_cv_path_EGREP="$GREP -E"
3986 else
3987 # Extract the first word of "egrep" to use in msg output
3988 if test -z "$EGREP"; then
3989 set dummy egrep; ac_prog_name=$2
3990 if test "${ac_cv_path_EGREP+set}" = set; then
3991 echo $ECHO_N "(cached) $ECHO_C" >&6
3992 else
3993 ac_path_EGREP_found=false
3994 # Loop through the user's path and test for each of PROGNAME-LIST
3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3997 do
3998 IFS=$as_save_IFS
3999 test -z "$as_dir" && as_dir=.
4000 for ac_prog in egrep; do
4001 for ac_exec_ext in '' $ac_executable_extensions; do
4002 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4003 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4004 # Check for GNU ac_path_EGREP and select it if it is found.
4005 # Check for GNU $ac_path_EGREP
4006 case `"$ac_path_EGREP" --version 2>&1` in
4007 *GNU*)
4008 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4009 *)
4010 ac_count=0
4011 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4012 while :
4013 do
4014 cat "conftest.in" "conftest.in" >"conftest.tmp"
4015 mv "conftest.tmp" "conftest.in"
4016 cp "conftest.in" "conftest.nl"
4017 echo 'EGREP' >> "conftest.nl"
4018 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4019 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4020 ac_count=`expr $ac_count + 1`
4021 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4022 # Best one so far, save it but keep looking for a better one
4023 ac_cv_path_EGREP="$ac_path_EGREP"
4024 ac_path_EGREP_max=$ac_count
4025 fi
4026 # 10*(2^10) chars as input seems more than enough
4027 test $ac_count -gt 10 && break
4028 done
4029 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4030 esac
4031
4032
4033 $ac_path_EGREP_found && break 3
4034 done
4035 done
4036
4037 done
4038 IFS=$as_save_IFS
4039
4040
4041 fi
4042
4043 EGREP="$ac_cv_path_EGREP"
4044 if test -z "$EGREP"; then
4045 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4046 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4047 { (exit 1); exit 1; }; }
4048 fi
4049
4050 else
4051 ac_cv_path_EGREP=$EGREP
4052 fi
4053
4054
4055 fi
4056 fi
4057 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4058 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4059 EGREP="$ac_cv_path_EGREP"
4060
4061
4062 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4063 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4064 if test "${ac_cv_header_stdc+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067 cat >conftest.$ac_ext <<_ACEOF
4068 /* confdefs.h. */
4069 _ACEOF
4070 cat confdefs.h >>conftest.$ac_ext
4071 cat >>conftest.$ac_ext <<_ACEOF
4072 /* end confdefs.h. */
4073 #include <stdlib.h>
4074 #include <stdarg.h>
4075 #include <string.h>
4076 #include <float.h>
4077
4078 int
4079 main ()
4080 {
4081
4082 ;
4083 return 0;
4084 }
4085 _ACEOF
4086 rm -f conftest.$ac_objext
4087 if { (ac_try="$ac_compile"
4088 case "(($ac_try" in
4089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090 *) ac_try_echo=$ac_try;;
4091 esac
4092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4093 (eval "$ac_compile") 2>conftest.er1
4094 ac_status=$?
4095 grep -v '^ *+' conftest.er1 >conftest.err
4096 rm -f conftest.er1
4097 cat conftest.err >&5
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); } && {
4100 test -z "$ac_c_werror_flag" ||
4101 test ! -s conftest.err
4102 } && test -s conftest.$ac_objext; then
4103 ac_cv_header_stdc=yes
4104 else
4105 echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4107
4108 ac_cv_header_stdc=no
4109 fi
4110
4111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4112
4113 if test $ac_cv_header_stdc = yes; then
4114 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4115 cat >conftest.$ac_ext <<_ACEOF
4116 /* confdefs.h. */
4117 _ACEOF
4118 cat confdefs.h >>conftest.$ac_ext
4119 cat >>conftest.$ac_ext <<_ACEOF
4120 /* end confdefs.h. */
4121 #include <string.h>
4122
4123 _ACEOF
4124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4125 $EGREP "memchr" >/dev/null 2>&1; then
4126 :
4127 else
4128 ac_cv_header_stdc=no
4129 fi
4130 rm -f conftest*
4131
4132 fi
4133
4134 if test $ac_cv_header_stdc = yes; then
4135 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4136 cat >conftest.$ac_ext <<_ACEOF
4137 /* confdefs.h. */
4138 _ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h. */
4142 #include <stdlib.h>
4143
4144 _ACEOF
4145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4146 $EGREP "free" >/dev/null 2>&1; then
4147 :
4148 else
4149 ac_cv_header_stdc=no
4150 fi
4151 rm -f conftest*
4152
4153 fi
4154
4155 if test $ac_cv_header_stdc = yes; then
4156 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4157 if test "$cross_compiling" = yes; then
4158 :
4159 else
4160 cat >conftest.$ac_ext <<_ACEOF
4161 /* confdefs.h. */
4162 _ACEOF
4163 cat confdefs.h >>conftest.$ac_ext
4164 cat >>conftest.$ac_ext <<_ACEOF
4165 /* end confdefs.h. */
4166 #include <ctype.h>
4167 #include <stdlib.h>
4168 #if ((' ' & 0x0FF) == 0x020)
4169 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4170 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4171 #else
4172 # define ISLOWER(c) \
4173 (('a' <= (c) && (c) <= 'i') \
4174 || ('j' <= (c) && (c) <= 'r') \
4175 || ('s' <= (c) && (c) <= 'z'))
4176 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4177 #endif
4178
4179 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4180 int
4181 main ()
4182 {
4183 int i;
4184 for (i = 0; i < 256; i++)
4185 if (XOR (islower (i), ISLOWER (i))
4186 || toupper (i) != TOUPPER (i))
4187 return 2;
4188 return 0;
4189 }
4190 _ACEOF
4191 rm -f conftest$ac_exeext
4192 if { (ac_try="$ac_link"
4193 case "(($ac_try" in
4194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4195 *) ac_try_echo=$ac_try;;
4196 esac
4197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4198 (eval "$ac_link") 2>&5
4199 ac_status=$?
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4202 { (case "(($ac_try" in
4203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4204 *) ac_try_echo=$ac_try;;
4205 esac
4206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4207 (eval "$ac_try") 2>&5
4208 ac_status=$?
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); }; }; then
4211 :
4212 else
4213 echo "$as_me: program exited with status $ac_status" >&5
4214 echo "$as_me: failed program was:" >&5
4215 sed 's/^/| /' conftest.$ac_ext >&5
4216
4217 ( exit $ac_status )
4218 ac_cv_header_stdc=no
4219 fi
4220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4221 fi
4222
4223
4224 fi
4225 fi
4226 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4227 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4228 if test $ac_cv_header_stdc = yes; then
4229
4230 cat >>confdefs.h <<\_ACEOF
4231 #define STDC_HEADERS 1
4232 _ACEOF
4233
4234 fi
4235
4236 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4247 inttypes.h stdint.h unistd.h
4248 do
4249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4250 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4253 echo $ECHO_N "(cached) $ECHO_C" >&6
4254 else
4255 cat >conftest.$ac_ext <<_ACEOF
4256 /* confdefs.h. */
4257 _ACEOF
4258 cat confdefs.h >>conftest.$ac_ext
4259 cat >>conftest.$ac_ext <<_ACEOF
4260 /* end confdefs.h. */
4261 $ac_includes_default
4262
4263 #include <$ac_header>
4264 _ACEOF
4265 rm -f conftest.$ac_objext
4266 if { (ac_try="$ac_compile"
4267 case "(($ac_try" in
4268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269 *) ac_try_echo=$ac_try;;
4270 esac
4271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4272 (eval "$ac_compile") 2>conftest.er1
4273 ac_status=$?
4274 grep -v '^ *+' conftest.er1 >conftest.err
4275 rm -f conftest.er1
4276 cat conftest.err >&5
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); } && {
4279 test -z "$ac_c_werror_flag" ||
4280 test ! -s conftest.err
4281 } && test -s conftest.$ac_objext; then
4282 eval "$as_ac_Header=yes"
4283 else
4284 echo "$as_me: failed program was:" >&5
4285 sed 's/^/| /' conftest.$ac_ext >&5
4286
4287 eval "$as_ac_Header=no"
4288 fi
4289
4290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4291 fi
4292 ac_res=`eval echo '${'$as_ac_Header'}'`
4293 { echo "$as_me:$LINENO: result: $ac_res" >&5
4294 echo "${ECHO_T}$ac_res" >&6; }
4295 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4296 cat >>confdefs.h <<_ACEOF
4297 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4298 _ACEOF
4299
4300 fi
4301
4302 done
4303
4304
4305 if test "${ac_cv_header_db_h+set}" = set; then
4306 { echo "$as_me:$LINENO: checking for db.h" >&5
4307 echo $ECHO_N "checking for db.h... $ECHO_C" >&6; }
4308 if test "${ac_cv_header_db_h+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4310 fi
4311 { echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
4312 echo "${ECHO_T}$ac_cv_header_db_h" >&6; }
4313 else
4314 # Is the header compilable?
4315 { echo "$as_me:$LINENO: checking db.h usability" >&5
4316 echo $ECHO_N "checking db.h usability... $ECHO_C" >&6; }
4317 cat >conftest.$ac_ext <<_ACEOF
4318 /* confdefs.h. */
4319 _ACEOF
4320 cat confdefs.h >>conftest.$ac_ext
4321 cat >>conftest.$ac_ext <<_ACEOF
4322 /* end confdefs.h. */
4323 $ac_includes_default
4324 #include <db.h>
4325 _ACEOF
4326 rm -f conftest.$ac_objext
4327 if { (ac_try="$ac_compile"
4328 case "(($ac_try" in
4329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330 *) ac_try_echo=$ac_try;;
4331 esac
4332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4333 (eval "$ac_compile") 2>conftest.er1
4334 ac_status=$?
4335 grep -v '^ *+' conftest.er1 >conftest.err
4336 rm -f conftest.er1
4337 cat conftest.err >&5
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); } && {
4340 test -z "$ac_c_werror_flag" ||
4341 test ! -s conftest.err
4342 } && test -s conftest.$ac_objext; then
4343 ac_header_compiler=yes
4344 else
4345 echo "$as_me: failed program was:" >&5
4346 sed 's/^/| /' conftest.$ac_ext >&5
4347
4348 ac_header_compiler=no
4349 fi
4350
4351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4352 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4353 echo "${ECHO_T}$ac_header_compiler" >&6; }
4354
4355 # Is the header present?
4356 { echo "$as_me:$LINENO: checking db.h presence" >&5
4357 echo $ECHO_N "checking db.h presence... $ECHO_C" >&6; }
4358 cat >conftest.$ac_ext <<_ACEOF
4359 /* confdefs.h. */
4360 _ACEOF
4361 cat confdefs.h >>conftest.$ac_ext
4362 cat >>conftest.$ac_ext <<_ACEOF
4363 /* end confdefs.h. */
4364 #include <db.h>
4365 _ACEOF
4366 if { (ac_try="$ac_cpp conftest.$ac_ext"
4367 case "(($ac_try" in
4368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4369 *) ac_try_echo=$ac_try;;
4370 esac
4371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4372 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4373 ac_status=$?
4374 grep -v '^ *+' conftest.er1 >conftest.err
4375 rm -f conftest.er1
4376 cat conftest.err >&5
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); } >/dev/null && {
4379 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4380 test ! -s conftest.err
4381 }; then
4382 ac_header_preproc=yes
4383 else
4384 echo "$as_me: failed program was:" >&5
4385 sed 's/^/| /' conftest.$ac_ext >&5
4386
4387 ac_header_preproc=no
4388 fi
4389
4390 rm -f conftest.err conftest.$ac_ext
4391 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4392 echo "${ECHO_T}$ac_header_preproc" >&6; }
4393
4394 # So? What about this header?
4395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4396 yes:no: )
4397 { echo "$as_me:$LINENO: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&5
4398 echo "$as_me: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4399 { echo "$as_me:$LINENO: WARNING: db.h: proceeding with the compiler's result" >&5
4400 echo "$as_me: WARNING: db.h: proceeding with the compiler's result" >&2;}
4401 ac_header_preproc=yes
4402 ;;
4403 no:yes:* )
4404 { echo "$as_me:$LINENO: WARNING: db.h: present but cannot be compiled" >&5
4405 echo "$as_me: WARNING: db.h: present but cannot be compiled" >&2;}
4406 { echo "$as_me:$LINENO: WARNING: db.h: check for missing prerequisite headers?" >&5
4407 echo "$as_me: WARNING: db.h: check for missing prerequisite headers?" >&2;}
4408 { echo "$as_me:$LINENO: WARNING: db.h: see the Autoconf documentation" >&5
4409 echo "$as_me: WARNING: db.h: see the Autoconf documentation" >&2;}
4410 { echo "$as_me:$LINENO: WARNING: db.h: section \"Present But Cannot Be Compiled\"" >&5
4411 echo "$as_me: WARNING: db.h: section \"Present But Cannot Be Compiled\"" >&2;}
4412 { echo "$as_me:$LINENO: WARNING: db.h: proceeding with the preprocessor's result" >&5
4413 echo "$as_me: WARNING: db.h: proceeding with the preprocessor's result" >&2;}
4414 { echo "$as_me:$LINENO: WARNING: db.h: in the future, the compiler will take precedence" >&5
4415 echo "$as_me: WARNING: db.h: in the future, the compiler will take precedence" >&2;}
4416
4417 ;;
4418 esac
4419 { echo "$as_me:$LINENO: checking for db.h" >&5
4420 echo $ECHO_N "checking for db.h... $ECHO_C" >&6; }
4421 if test "${ac_cv_header_db_h+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4423 else
4424 ac_cv_header_db_h=$ac_header_preproc
4425 fi
4426 { echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
4427 echo "${ECHO_T}$ac_cv_header_db_h" >&6; }
4428
4429 fi
4430 if test $ac_cv_header_db_h = yes; then
4431 { echo "$as_me:$LINENO: checking if we can link against BerkeleyDB" >&5
4432 echo $ECHO_N "checking if we can link against BerkeleyDB... $ECHO_C" >&6; }
4433 cat >conftest.$ac_ext <<_ACEOF
4434 /* confdefs.h. */
4435 _ACEOF
4436 cat confdefs.h >>conftest.$ac_ext
4437 cat >>conftest.$ac_ext <<_ACEOF
4438 /* end confdefs.h. */
4439 #include <db.h>
4440 int
4441 main ()
4442 {
4443 int r, s, t; db_version(&r, &s, &t);
4444
4445 ;
4446 return 0;
4447 }
4448 _ACEOF
4449 rm -f conftest.$ac_objext conftest$ac_exeext
4450 if { (ac_try="$ac_link"
4451 case "(($ac_try" in
4452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4453 *) ac_try_echo=$ac_try;;
4454 esac
4455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4456 (eval "$ac_link") 2>conftest.er1
4457 ac_status=$?
4458 grep -v '^ *+' conftest.er1 >conftest.err
4459 rm -f conftest.er1
4460 cat conftest.err >&5
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); } && {
4463 test -z "$ac_c_werror_flag" ||
4464 test ! -s conftest.err
4465 } && test -s conftest$ac_exeext &&
4466 $as_test_x conftest$ac_exeext; then
4467 cat >>confdefs.h <<\_ACEOF
4468 #define HAVE_BDB 1
4469 _ACEOF
4470
4471 BDBLIB="-ldb"
4472 { echo "$as_me:$LINENO: result: yes" >&5
4473 echo "${ECHO_T}yes" >&6; }
4474 else
4475 echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4477
4478 BDBLIB=""
4479 { echo "$as_me:$LINENO: result: no" >&5
4480 echo "${ECHO_T}no" >&6; }
4481
4482 fi
4483
4484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4485 conftest$ac_exeext conftest.$ac_ext
4486
4487 fi
4488
4489
4490
4491 LIBS="$saveLIBS"
4492
4493
4494
4495 { echo "$as_me:$LINENO: checking system architecture" >&5
4496 echo $ECHO_N "checking system architecture... $ECHO_C" >&6; }
4497 archset="`awk \" ! /^#|^\\\$/ { if(match(\\\"$target_cpu\\\",\\\"^\\\"\\\$1\\\"\\\$\\\")) {print \\\$2; exit}}\" $srcdir/buildlib/archtable`"
4498 if test "x$archset" = "x"; then
4499 { { echo "$as_me:$LINENO: error: failed: use --host= or check buildlib/archtable" >&5
4500 echo "$as_me: error: failed: use --host= or check buildlib/archtable" >&2;}
4501 { (exit 1); exit 1; }; }
4502 fi
4503 { echo "$as_me:$LINENO: result: $archset" >&5
4504 echo "${ECHO_T}$archset" >&6; }
4505 cat >>confdefs.h <<_ACEOF
4506 #define COMMON_CPU "$archset"
4507 _ACEOF
4508
4509
4510 { echo "$as_me:$LINENO: checking system OS" >&5
4511 echo $ECHO_N "checking system OS... $ECHO_C" >&6; }
4512 osset="`awk \" ! /^#|^\\\$/ {if (match(\\\"$target_vendor-$target_os\\\",\\\$1)) {print \\\$2; exit}}\" $srcdir/buildlib/ostable`"
4513 { echo "$as_me:$LINENO: result: $osset" >&5
4514 echo "${ECHO_T}$osset" >&6; }
4515 cat >>confdefs.h <<_ACEOF
4516 #define COMMON_OS "$osset"
4517 _ACEOF
4518
4519
4520 { echo "$as_me:$LINENO: checking for C99 integer types" >&5
4521 echo $ECHO_N "checking for C99 integer types... $ECHO_C" >&6; }
4522 if test "${c9x_ints+set}" = set; then
4523 echo $ECHO_N "(cached) $ECHO_C" >&6
4524 else
4525
4526 cat >conftest.$ac_ext <<_ACEOF
4527 /* confdefs.h. */
4528 _ACEOF
4529 cat confdefs.h >>conftest.$ac_ext
4530 cat >>conftest.$ac_ext <<_ACEOF
4531 /* end confdefs.h. */
4532 #include <inttypes.h>
4533 int
4534 main ()
4535 {
4536 uint8_t Foo1;uint16_t Foo2;uint32_t Foo3;
4537 ;
4538 return 0;
4539 }
4540 _ACEOF
4541 rm -f conftest.$ac_objext
4542 if { (ac_try="$ac_compile"
4543 case "(($ac_try" in
4544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545 *) ac_try_echo=$ac_try;;
4546 esac
4547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4548 (eval "$ac_compile") 2>conftest.er1
4549 ac_status=$?
4550 grep -v '^ *+' conftest.er1 >conftest.err
4551 rm -f conftest.er1
4552 cat conftest.err >&5
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); } && {
4555 test -z "$ac_c_werror_flag" ||
4556 test ! -s conftest.err
4557 } && test -s conftest.$ac_objext; then
4558 c9x_ints=yes
4559 else
4560 echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.$ac_ext >&5
4562
4563 c9x_ints=no
4564 fi
4565
4566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4567 fi
4568 { echo "$as_me:$LINENO: result: $c9x_ints" >&5
4569 echo "${ECHO_T}$c9x_ints" >&6; }
4570
4571 { echo "$as_me:$LINENO: checking for statvfs" >&5
4572 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
4573 if test "${ac_cv_func_statvfs+set}" = set; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4575 else
4576 cat >conftest.$ac_ext <<_ACEOF
4577 /* confdefs.h. */
4578 _ACEOF
4579 cat confdefs.h >>conftest.$ac_ext
4580 cat >>conftest.$ac_ext <<_ACEOF
4581 /* end confdefs.h. */
4582 /* Define statvfs to an innocuous variant, in case <limits.h> declares statvfs.
4583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4584 #define statvfs innocuous_statvfs
4585
4586 /* System header to define __stub macros and hopefully few prototypes,
4587 which can conflict with char statvfs (); below.
4588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4589 <limits.h> exists even on freestanding compilers. */
4590
4591 #ifdef __STDC__
4592 # include <limits.h>
4593 #else
4594 # include <assert.h>
4595 #endif
4596
4597 #undef statvfs
4598
4599 /* Override any GCC internal prototype to avoid an error.
4600 Use char because int might match the return type of a GCC
4601 builtin and then its argument prototype would still apply. */
4602 #ifdef __cplusplus
4603 extern "C"
4604 #endif
4605 char statvfs ();
4606 /* The GNU C library defines this for functions which it implements
4607 to always fail with ENOSYS. Some functions are actually named
4608 something starting with __ and the normal name is an alias. */
4609 #if defined __stub_statvfs || defined __stub___statvfs
4610 choke me
4611 #endif
4612
4613 int
4614 main ()
4615 {
4616 return statvfs ();
4617 ;
4618 return 0;
4619 }
4620 _ACEOF
4621 rm -f conftest.$ac_objext conftest$ac_exeext
4622 if { (ac_try="$ac_link"
4623 case "(($ac_try" in
4624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625 *) ac_try_echo=$ac_try;;
4626 esac
4627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4628 (eval "$ac_link") 2>conftest.er1
4629 ac_status=$?
4630 grep -v '^ *+' conftest.er1 >conftest.err
4631 rm -f conftest.er1
4632 cat conftest.err >&5
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); } && {
4635 test -z "$ac_c_werror_flag" ||
4636 test ! -s conftest.err
4637 } && test -s conftest$ac_exeext &&
4638 $as_test_x conftest$ac_exeext; then
4639 ac_cv_func_statvfs=yes
4640 else
4641 echo "$as_me: failed program was:" >&5
4642 sed 's/^/| /' conftest.$ac_ext >&5
4643
4644 ac_cv_func_statvfs=no
4645 fi
4646
4647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4648 conftest$ac_exeext conftest.$ac_ext
4649 fi
4650 { echo "$as_me:$LINENO: result: $ac_cv_func_statvfs" >&5
4651 echo "${ECHO_T}$ac_cv_func_statvfs" >&6; }
4652 if test $ac_cv_func_statvfs = yes; then
4653 HAVE_STATVFS=yes
4654 fi
4655
4656
4657
4658 if test x"$HAVE_STATVFS" != x"yes"; then
4659 cat >conftest.$ac_ext <<_ACEOF
4660 /* confdefs.h. */
4661 _ACEOF
4662 cat confdefs.h >>conftest.$ac_ext
4663 cat >>conftest.$ac_ext <<_ACEOF
4664 /* end confdefs.h. */
4665 #include <sys/vfs.h>
4666
4667 _ACEOF
4668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4669 $EGREP "statfs" >/dev/null 2>&1; then
4670 cat >>confdefs.h <<\_ACEOF
4671 #define HAVE_VFS_H 1
4672 _ACEOF
4673
4674 else
4675
4676 cat >conftest.$ac_ext <<_ACEOF
4677 /* confdefs.h. */
4678 _ACEOF
4679 cat confdefs.h >>conftest.$ac_ext
4680 cat >>conftest.$ac_ext <<_ACEOF
4681 /* end confdefs.h. */
4682 #include <sys/mount.h>
4683
4684 _ACEOF
4685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4686 $EGREP "statfs" >/dev/null 2>&1; then
4687 cat >>confdefs.h <<\_ACEOF
4688 #define HAVE_MOUNT_H 1
4689 _ACEOF
4690
4691 else
4692 { { echo "$as_me:$LINENO: error: failed: Need statvfs" >&5
4693 echo "$as_me: error: failed: Need statvfs" >&2;}
4694 { (exit 1); exit 1; }; }
4695 fi
4696 rm -f conftest*
4697
4698
4699 fi
4700 rm -f conftest*
4701
4702 fi
4703
4704 { echo "$as_me:$LINENO: checking for timegm" >&5
4705 echo $ECHO_N "checking for timegm... $ECHO_C" >&6; }
4706 if test "${ac_cv_func_timegm+set}" = set; then
4707 echo $ECHO_N "(cached) $ECHO_C" >&6
4708 else
4709 cat >conftest.$ac_ext <<_ACEOF
4710 /* confdefs.h. */
4711 _ACEOF
4712 cat confdefs.h >>conftest.$ac_ext
4713 cat >>conftest.$ac_ext <<_ACEOF
4714 /* end confdefs.h. */
4715 /* Define timegm to an innocuous variant, in case <limits.h> declares timegm.
4716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4717 #define timegm innocuous_timegm
4718
4719 /* System header to define __stub macros and hopefully few prototypes,
4720 which can conflict with char timegm (); below.
4721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4722 <limits.h> exists even on freestanding compilers. */
4723
4724 #ifdef __STDC__
4725 # include <limits.h>
4726 #else
4727 # include <assert.h>
4728 #endif
4729
4730 #undef timegm
4731
4732 /* Override any GCC internal prototype to avoid an error.
4733 Use char because int might match the return type of a GCC
4734 builtin and then its argument prototype would still apply. */
4735 #ifdef __cplusplus
4736 extern "C"
4737 #endif
4738 char timegm ();
4739 /* The GNU C library defines this for functions which it implements
4740 to always fail with ENOSYS. Some functions are actually named
4741 something starting with __ and the normal name is an alias. */
4742 #if defined __stub_timegm || defined __stub___timegm
4743 choke me
4744 #endif
4745
4746 int
4747 main ()
4748 {
4749 return timegm ();
4750 ;
4751 return 0;
4752 }
4753 _ACEOF
4754 rm -f conftest.$ac_objext conftest$ac_exeext
4755 if { (ac_try="$ac_link"
4756 case "(($ac_try" in
4757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4758 *) ac_try_echo=$ac_try;;
4759 esac
4760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4761 (eval "$ac_link") 2>conftest.er1
4762 ac_status=$?
4763 grep -v '^ *+' conftest.er1 >conftest.err
4764 rm -f conftest.er1
4765 cat conftest.err >&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); } && {
4768 test -z "$ac_c_werror_flag" ||
4769 test ! -s conftest.err
4770 } && test -s conftest$ac_exeext &&
4771 $as_test_x conftest$ac_exeext; then
4772 ac_cv_func_timegm=yes
4773 else
4774 echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.$ac_ext >&5
4776
4777 ac_cv_func_timegm=no
4778 fi
4779
4780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4781 conftest$ac_exeext conftest.$ac_ext
4782 fi
4783 { echo "$as_me:$LINENO: result: $ac_cv_func_timegm" >&5
4784 echo "${ECHO_T}$ac_cv_func_timegm" >&6; }
4785 if test $ac_cv_func_timegm = yes; then
4786 cat >>confdefs.h <<\_ACEOF
4787 #define HAVE_TIMEGM 1
4788 _ACEOF
4789
4790 fi
4791
4792
4793
4794
4795 archline="`awk \" ! /^#|^\\\$/ {if (match(\\\"$archset\\\",\\\$1)) {print; exit}}\" $srcdir/buildlib/sizetable | cut -f 2- -d ' '`"
4796 if test "x$archline" != "x"; then
4797
4798 set $archline
4799 if test "$1" = "little"; then
4800 ac_cv_c_bigendian=no
4801 else
4802 ac_cv_c_bigendian=yes
4803 fi
4804 size_char=$2
4805 size_int=$3
4806 size_short=$4
4807 size_long=$5
4808 fi
4809
4810 if test "$cross_compiling" = "yes" -a "x$archline" = "x"; then
4811 { { echo "$as_me:$LINENO: error: When cross compiling" >&5
4812 echo "$as_me: error: When cross compiling" >&2;}
4813 { (exit architecture must be present in sizetable); exit architecture must be present in sizetable; }; }
4814 fi
4815 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4816 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4817 if test "${ac_cv_c_bigendian+set}" = set; then
4818 echo $ECHO_N "(cached) $ECHO_C" >&6
4819 else
4820 # See if sys/param.h defines the BYTE_ORDER macro.
4821 cat >conftest.$ac_ext <<_ACEOF
4822 /* confdefs.h. */
4823 _ACEOF
4824 cat confdefs.h >>conftest.$ac_ext
4825 cat >>conftest.$ac_ext <<_ACEOF
4826 /* end confdefs.h. */
4827 #include <sys/types.h>
4828 #include <sys/param.h>
4829
4830 int
4831 main ()
4832 {
4833 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4834 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4835 bogus endian macros
4836 #endif
4837
4838 ;
4839 return 0;
4840 }
4841 _ACEOF
4842 rm -f conftest.$ac_objext
4843 if { (ac_try="$ac_compile"
4844 case "(($ac_try" in
4845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4846 *) ac_try_echo=$ac_try;;
4847 esac
4848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4849 (eval "$ac_compile") 2>conftest.er1
4850 ac_status=$?
4851 grep -v '^ *+' conftest.er1 >conftest.err
4852 rm -f conftest.er1
4853 cat conftest.err >&5
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); } && {
4856 test -z "$ac_c_werror_flag" ||
4857 test ! -s conftest.err
4858 } && test -s conftest.$ac_objext; then
4859 # It does; now see whether it defined to BIG_ENDIAN or not.
4860 cat >conftest.$ac_ext <<_ACEOF
4861 /* confdefs.h. */
4862 _ACEOF
4863 cat confdefs.h >>conftest.$ac_ext
4864 cat >>conftest.$ac_ext <<_ACEOF
4865 /* end confdefs.h. */
4866 #include <sys/types.h>
4867 #include <sys/param.h>
4868
4869 int
4870 main ()
4871 {
4872 #if BYTE_ORDER != BIG_ENDIAN
4873 not big endian
4874 #endif
4875
4876 ;
4877 return 0;
4878 }
4879 _ACEOF
4880 rm -f conftest.$ac_objext
4881 if { (ac_try="$ac_compile"
4882 case "(($ac_try" in
4883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4884 *) ac_try_echo=$ac_try;;
4885 esac
4886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4887 (eval "$ac_compile") 2>conftest.er1
4888 ac_status=$?
4889 grep -v '^ *+' conftest.er1 >conftest.err
4890 rm -f conftest.er1
4891 cat conftest.err >&5
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); } && {
4894 test -z "$ac_c_werror_flag" ||
4895 test ! -s conftest.err
4896 } && test -s conftest.$ac_objext; then
4897 ac_cv_c_bigendian=yes
4898 else
4899 echo "$as_me: failed program was:" >&5
4900 sed 's/^/| /' conftest.$ac_ext >&5
4901
4902 ac_cv_c_bigendian=no
4903 fi
4904
4905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4906 else
4907 echo "$as_me: failed program was:" >&5
4908 sed 's/^/| /' conftest.$ac_ext >&5
4909
4910 # It does not; compile a test program.
4911 if test "$cross_compiling" = yes; then
4912 # try to guess the endianness by grepping values into an object file
4913 ac_cv_c_bigendian=unknown
4914 cat >conftest.$ac_ext <<_ACEOF
4915 /* confdefs.h. */
4916 _ACEOF
4917 cat confdefs.h >>conftest.$ac_ext
4918 cat >>conftest.$ac_ext <<_ACEOF
4919 /* end confdefs.h. */
4920 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4921 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4922 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4923 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4924 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4925 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4926 int
4927 main ()
4928 {
4929 _ascii (); _ebcdic ();
4930 ;
4931 return 0;
4932 }
4933 _ACEOF
4934 rm -f conftest.$ac_objext
4935 if { (ac_try="$ac_compile"
4936 case "(($ac_try" in
4937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4938 *) ac_try_echo=$ac_try;;
4939 esac
4940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4941 (eval "$ac_compile") 2>conftest.er1
4942 ac_status=$?
4943 grep -v '^ *+' conftest.er1 >conftest.err
4944 rm -f conftest.er1
4945 cat conftest.err >&5
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); } && {
4948 test -z "$ac_c_werror_flag" ||
4949 test ! -s conftest.err
4950 } && test -s conftest.$ac_objext; then
4951 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4952 ac_cv_c_bigendian=yes
4953 fi
4954 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4955 if test "$ac_cv_c_bigendian" = unknown; then
4956 ac_cv_c_bigendian=no
4957 else
4958 # finding both strings is unlikely to happen, but who knows?
4959 ac_cv_c_bigendian=unknown
4960 fi
4961 fi
4962 else
4963 echo "$as_me: failed program was:" >&5
4964 sed 's/^/| /' conftest.$ac_ext >&5
4965
4966
4967 fi
4968
4969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4970 else
4971 cat >conftest.$ac_ext <<_ACEOF
4972 /* confdefs.h. */
4973 _ACEOF
4974 cat confdefs.h >>conftest.$ac_ext
4975 cat >>conftest.$ac_ext <<_ACEOF
4976 /* end confdefs.h. */
4977 $ac_includes_default
4978 int
4979 main ()
4980 {
4981
4982 /* Are we little or big endian? From Harbison&Steele. */
4983 union
4984 {
4985 long int l;
4986 char c[sizeof (long int)];
4987 } u;
4988 u.l = 1;
4989 return u.c[sizeof (long int) - 1] == 1;
4990
4991 ;
4992 return 0;
4993 }
4994 _ACEOF
4995 rm -f conftest$ac_exeext
4996 if { (ac_try="$ac_link"
4997 case "(($ac_try" in
4998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4999 *) ac_try_echo=$ac_try;;
5000 esac
5001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5002 (eval "$ac_link") 2>&5
5003 ac_status=$?
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5006 { (case "(($ac_try" in
5007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5008 *) ac_try_echo=$ac_try;;
5009 esac
5010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5011 (eval "$ac_try") 2>&5
5012 ac_status=$?
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); }; }; then
5015 ac_cv_c_bigendian=no
5016 else
5017 echo "$as_me: program exited with status $ac_status" >&5
5018 echo "$as_me: failed program was:" >&5
5019 sed 's/^/| /' conftest.$ac_ext >&5
5020
5021 ( exit $ac_status )
5022 ac_cv_c_bigendian=yes
5023 fi
5024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5025 fi
5026
5027
5028 fi
5029
5030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5031 fi
5032 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5033 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
5034 case $ac_cv_c_bigendian in
5035 yes)
5036
5037 cat >>confdefs.h <<\_ACEOF
5038 #define WORDS_BIGENDIAN 1
5039 _ACEOF
5040 ;;
5041 no)
5042 ;;
5043 *)
5044 { { echo "$as_me:$LINENO: error: unknown endianness
5045 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5046 echo "$as_me: error: unknown endianness
5047 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5048 { (exit 1); exit 1; }; } ;;
5049 esac
5050
5051
5052 HAVE_C9X=yes
5053 if test x"$c9x_ints" = x"no"; then
5054 { echo "$as_me:$LINENO: checking for char" >&5
5055 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
5056 if test "${ac_cv_type_char+set}" = set; then
5057 echo $ECHO_N "(cached) $ECHO_C" >&6
5058 else
5059 cat >conftest.$ac_ext <<_ACEOF
5060 /* confdefs.h. */
5061 _ACEOF
5062 cat confdefs.h >>conftest.$ac_ext
5063 cat >>conftest.$ac_ext <<_ACEOF
5064 /* end confdefs.h. */
5065 $ac_includes_default
5066 typedef char ac__type_new_;
5067 int
5068 main ()
5069 {
5070 if ((ac__type_new_ *) 0)
5071 return 0;
5072 if (sizeof (ac__type_new_))
5073 return 0;
5074 ;
5075 return 0;
5076 }
5077 _ACEOF
5078 rm -f conftest.$ac_objext
5079 if { (ac_try="$ac_compile"
5080 case "(($ac_try" in
5081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5082 *) ac_try_echo=$ac_try;;
5083 esac
5084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5085 (eval "$ac_compile") 2>conftest.er1
5086 ac_status=$?
5087 grep -v '^ *+' conftest.er1 >conftest.err
5088 rm -f conftest.er1
5089 cat conftest.err >&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); } && {
5092 test -z "$ac_c_werror_flag" ||
5093 test ! -s conftest.err
5094 } && test -s conftest.$ac_objext; then
5095 ac_cv_type_char=yes
5096 else
5097 echo "$as_me: failed program was:" >&5
5098 sed 's/^/| /' conftest.$ac_ext >&5
5099
5100 ac_cv_type_char=no
5101 fi
5102
5103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5104 fi
5105 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
5106 echo "${ECHO_T}$ac_cv_type_char" >&6; }
5107
5108 # The cast to long int works around a bug in the HP C Compiler
5109 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5110 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5111 # This bug is HP SR number 8606223364.
5112 { echo "$as_me:$LINENO: checking size of char" >&5
5113 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
5114 if test "${ac_cv_sizeof_char+set}" = set; then
5115 echo $ECHO_N "(cached) $ECHO_C" >&6
5116 else
5117 if test "$cross_compiling" = yes; then
5118 # Depending upon the size, compute the lo and hi bounds.
5119 cat >conftest.$ac_ext <<_ACEOF
5120 /* confdefs.h. */
5121 _ACEOF
5122 cat confdefs.h >>conftest.$ac_ext
5123 cat >>conftest.$ac_ext <<_ACEOF
5124 /* end confdefs.h. */
5125 $ac_includes_default
5126 typedef char ac__type_sizeof_;
5127 int
5128 main ()
5129 {
5130 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5131 test_array [0] = 0
5132
5133 ;
5134 return 0;
5135 }
5136 _ACEOF
5137 rm -f conftest.$ac_objext
5138 if { (ac_try="$ac_compile"
5139 case "(($ac_try" in
5140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5141 *) ac_try_echo=$ac_try;;
5142 esac
5143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5144 (eval "$ac_compile") 2>conftest.er1
5145 ac_status=$?
5146 grep -v '^ *+' conftest.er1 >conftest.err
5147 rm -f conftest.er1
5148 cat conftest.err >&5
5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); } && {
5151 test -z "$ac_c_werror_flag" ||
5152 test ! -s conftest.err
5153 } && test -s conftest.$ac_objext; then
5154 ac_lo=0 ac_mid=0
5155 while :; do
5156 cat >conftest.$ac_ext <<_ACEOF
5157 /* confdefs.h. */
5158 _ACEOF
5159 cat confdefs.h >>conftest.$ac_ext
5160 cat >>conftest.$ac_ext <<_ACEOF
5161 /* end confdefs.h. */
5162 $ac_includes_default
5163 typedef char ac__type_sizeof_;
5164 int
5165 main ()
5166 {
5167 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5168 test_array [0] = 0
5169
5170 ;
5171 return 0;
5172 }
5173 _ACEOF
5174 rm -f conftest.$ac_objext
5175 if { (ac_try="$ac_compile"
5176 case "(($ac_try" in
5177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5178 *) ac_try_echo=$ac_try;;
5179 esac
5180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5181 (eval "$ac_compile") 2>conftest.er1
5182 ac_status=$?
5183 grep -v '^ *+' conftest.er1 >conftest.err
5184 rm -f conftest.er1
5185 cat conftest.err >&5
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); } && {
5188 test -z "$ac_c_werror_flag" ||
5189 test ! -s conftest.err
5190 } && test -s conftest.$ac_objext; then
5191 ac_hi=$ac_mid; break
5192 else
5193 echo "$as_me: failed program was:" >&5
5194 sed 's/^/| /' conftest.$ac_ext >&5
5195
5196 ac_lo=`expr $ac_mid + 1`
5197 if test $ac_lo -le $ac_mid; then
5198 ac_lo= ac_hi=
5199 break
5200 fi
5201 ac_mid=`expr 2 '*' $ac_mid + 1`
5202 fi
5203
5204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5205 done
5206 else
5207 echo "$as_me: failed program was:" >&5
5208 sed 's/^/| /' conftest.$ac_ext >&5
5209
5210 cat >conftest.$ac_ext <<_ACEOF
5211 /* confdefs.h. */
5212 _ACEOF
5213 cat confdefs.h >>conftest.$ac_ext
5214 cat >>conftest.$ac_ext <<_ACEOF
5215 /* end confdefs.h. */
5216 $ac_includes_default
5217 typedef char ac__type_sizeof_;
5218 int
5219 main ()
5220 {
5221 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5222 test_array [0] = 0
5223
5224 ;
5225 return 0;
5226 }
5227 _ACEOF
5228 rm -f conftest.$ac_objext
5229 if { (ac_try="$ac_compile"
5230 case "(($ac_try" in
5231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5232 *) ac_try_echo=$ac_try;;
5233 esac
5234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5235 (eval "$ac_compile") 2>conftest.er1
5236 ac_status=$?
5237 grep -v '^ *+' conftest.er1 >conftest.err
5238 rm -f conftest.er1
5239 cat conftest.err >&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); } && {
5242 test -z "$ac_c_werror_flag" ||
5243 test ! -s conftest.err
5244 } && test -s conftest.$ac_objext; then
5245 ac_hi=-1 ac_mid=-1
5246 while :; do
5247 cat >conftest.$ac_ext <<_ACEOF
5248 /* confdefs.h. */
5249 _ACEOF
5250 cat confdefs.h >>conftest.$ac_ext
5251 cat >>conftest.$ac_ext <<_ACEOF
5252 /* end confdefs.h. */
5253 $ac_includes_default
5254 typedef char ac__type_sizeof_;
5255 int
5256 main ()
5257 {
5258 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5259 test_array [0] = 0
5260
5261 ;
5262 return 0;
5263 }
5264 _ACEOF
5265 rm -f conftest.$ac_objext
5266 if { (ac_try="$ac_compile"
5267 case "(($ac_try" in
5268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5269 *) ac_try_echo=$ac_try;;
5270 esac
5271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5272 (eval "$ac_compile") 2>conftest.er1
5273 ac_status=$?
5274 grep -v '^ *+' conftest.er1 >conftest.err
5275 rm -f conftest.er1
5276 cat conftest.err >&5
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); } && {
5279 test -z "$ac_c_werror_flag" ||
5280 test ! -s conftest.err
5281 } && test -s conftest.$ac_objext; then
5282 ac_lo=$ac_mid; break
5283 else
5284 echo "$as_me: failed program was:" >&5
5285 sed 's/^/| /' conftest.$ac_ext >&5
5286
5287 ac_hi=`expr '(' $ac_mid ')' - 1`
5288 if test $ac_mid -le $ac_hi; then
5289 ac_lo= ac_hi=
5290 break
5291 fi
5292 ac_mid=`expr 2 '*' $ac_mid`
5293 fi
5294
5295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5296 done
5297 else
5298 echo "$as_me: failed program was:" >&5
5299 sed 's/^/| /' conftest.$ac_ext >&5
5300
5301 ac_lo= ac_hi=
5302 fi
5303
5304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5305 fi
5306
5307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5308 # Binary search between lo and hi bounds.
5309 while test "x$ac_lo" != "x$ac_hi"; do
5310 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5311 cat >conftest.$ac_ext <<_ACEOF
5312 /* confdefs.h. */
5313 _ACEOF
5314 cat confdefs.h >>conftest.$ac_ext
5315 cat >>conftest.$ac_ext <<_ACEOF
5316 /* end confdefs.h. */
5317 $ac_includes_default
5318 typedef char ac__type_sizeof_;
5319 int
5320 main ()
5321 {
5322 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5323 test_array [0] = 0
5324
5325 ;
5326 return 0;
5327 }
5328 _ACEOF
5329 rm -f conftest.$ac_objext
5330 if { (ac_try="$ac_compile"
5331 case "(($ac_try" in
5332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5333 *) ac_try_echo=$ac_try;;
5334 esac
5335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5336 (eval "$ac_compile") 2>conftest.er1
5337 ac_status=$?
5338 grep -v '^ *+' conftest.er1 >conftest.err
5339 rm -f conftest.er1
5340 cat conftest.err >&5
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); } && {
5343 test -z "$ac_c_werror_flag" ||
5344 test ! -s conftest.err
5345 } && test -s conftest.$ac_objext; then
5346 ac_hi=$ac_mid
5347 else
5348 echo "$as_me: failed program was:" >&5
5349 sed 's/^/| /' conftest.$ac_ext >&5
5350
5351 ac_lo=`expr '(' $ac_mid ')' + 1`
5352 fi
5353
5354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5355 done
5356 case $ac_lo in
5357 ?*) ac_cv_sizeof_char=$ac_lo;;
5358 '') if test "$ac_cv_type_char" = yes; then
5359 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
5360 See \`config.log' for more details." >&5
5361 echo "$as_me: error: cannot compute sizeof (char)
5362 See \`config.log' for more details." >&2;}
5363 { (exit 77); exit 77; }; }
5364 else
5365 ac_cv_sizeof_char=0
5366 fi ;;
5367 esac
5368 else
5369 cat >conftest.$ac_ext <<_ACEOF
5370 /* confdefs.h. */
5371 _ACEOF
5372 cat confdefs.h >>conftest.$ac_ext
5373 cat >>conftest.$ac_ext <<_ACEOF
5374 /* end confdefs.h. */
5375 $ac_includes_default
5376 typedef char ac__type_sizeof_;
5377 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5378 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5379 #include <stdio.h>
5380 #include <stdlib.h>
5381 int
5382 main ()
5383 {
5384
5385 FILE *f = fopen ("conftest.val", "w");
5386 if (! f)
5387 return 1;
5388 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5389 {
5390 long int i = longval ();
5391 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5392 return 1;
5393 fprintf (f, "%ld\n", i);
5394 }
5395 else
5396 {
5397 unsigned long int i = ulongval ();
5398 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5399 return 1;
5400 fprintf (f, "%lu\n", i);
5401 }
5402 return ferror (f) || fclose (f) != 0;
5403
5404 ;
5405 return 0;
5406 }
5407 _ACEOF
5408 rm -f conftest$ac_exeext
5409 if { (ac_try="$ac_link"
5410 case "(($ac_try" in
5411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5412 *) ac_try_echo=$ac_try;;
5413 esac
5414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5415 (eval "$ac_link") 2>&5
5416 ac_status=$?
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5419 { (case "(($ac_try" in
5420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5421 *) ac_try_echo=$ac_try;;
5422 esac
5423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5424 (eval "$ac_try") 2>&5
5425 ac_status=$?
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); }; }; then
5428 ac_cv_sizeof_char=`cat conftest.val`
5429 else
5430 echo "$as_me: program exited with status $ac_status" >&5
5431 echo "$as_me: failed program was:" >&5
5432 sed 's/^/| /' conftest.$ac_ext >&5
5433
5434 ( exit $ac_status )
5435 if test "$ac_cv_type_char" = yes; then
5436 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
5437 See \`config.log' for more details." >&5
5438 echo "$as_me: error: cannot compute sizeof (char)
5439 See \`config.log' for more details." >&2;}
5440 { (exit 77); exit 77; }; }
5441 else
5442 ac_cv_sizeof_char=0
5443 fi
5444 fi
5445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5446 fi
5447 rm -f conftest.val
5448 fi
5449 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
5450 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
5451
5452
5453
5454 cat >>confdefs.h <<_ACEOF
5455 #define SIZEOF_CHAR $ac_cv_sizeof_char
5456 _ACEOF
5457
5458
5459 { echo "$as_me:$LINENO: checking for int" >&5
5460 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
5461 if test "${ac_cv_type_int+set}" = set; then
5462 echo $ECHO_N "(cached) $ECHO_C" >&6
5463 else
5464 cat >conftest.$ac_ext <<_ACEOF
5465 /* confdefs.h. */
5466 _ACEOF
5467 cat confdefs.h >>conftest.$ac_ext
5468 cat >>conftest.$ac_ext <<_ACEOF
5469 /* end confdefs.h. */
5470 $ac_includes_default
5471 typedef int ac__type_new_;
5472 int
5473 main ()
5474 {
5475 if ((ac__type_new_ *) 0)
5476 return 0;
5477 if (sizeof (ac__type_new_))
5478 return 0;
5479 ;
5480 return 0;
5481 }
5482 _ACEOF
5483 rm -f conftest.$ac_objext
5484 if { (ac_try="$ac_compile"
5485 case "(($ac_try" in
5486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5487 *) ac_try_echo=$ac_try;;
5488 esac
5489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5490 (eval "$ac_compile") 2>conftest.er1
5491 ac_status=$?
5492 grep -v '^ *+' conftest.er1 >conftest.err
5493 rm -f conftest.er1
5494 cat conftest.err >&5
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); } && {
5497 test -z "$ac_c_werror_flag" ||
5498 test ! -s conftest.err
5499 } && test -s conftest.$ac_objext; then
5500 ac_cv_type_int=yes
5501 else
5502 echo "$as_me: failed program was:" >&5
5503 sed 's/^/| /' conftest.$ac_ext >&5
5504
5505 ac_cv_type_int=no
5506 fi
5507
5508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5509 fi
5510 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5511 echo "${ECHO_T}$ac_cv_type_int" >&6; }
5512
5513 # The cast to long int works around a bug in the HP C Compiler
5514 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5515 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5516 # This bug is HP SR number 8606223364.
5517 { echo "$as_me:$LINENO: checking size of int" >&5
5518 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
5519 if test "${ac_cv_sizeof_int+set}" = set; then
5520 echo $ECHO_N "(cached) $ECHO_C" >&6
5521 else
5522 if test "$cross_compiling" = yes; then
5523 # Depending upon the size, compute the lo and hi bounds.
5524 cat >conftest.$ac_ext <<_ACEOF
5525 /* confdefs.h. */
5526 _ACEOF
5527 cat confdefs.h >>conftest.$ac_ext
5528 cat >>conftest.$ac_ext <<_ACEOF
5529 /* end confdefs.h. */
5530 $ac_includes_default
5531 typedef int ac__type_sizeof_;
5532 int
5533 main ()
5534 {
5535 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5536 test_array [0] = 0
5537
5538 ;
5539 return 0;
5540 }
5541 _ACEOF
5542 rm -f conftest.$ac_objext
5543 if { (ac_try="$ac_compile"
5544 case "(($ac_try" in
5545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5546 *) ac_try_echo=$ac_try;;
5547 esac
5548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5549 (eval "$ac_compile") 2>conftest.er1
5550 ac_status=$?
5551 grep -v '^ *+' conftest.er1 >conftest.err
5552 rm -f conftest.er1
5553 cat conftest.err >&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); } && {
5556 test -z "$ac_c_werror_flag" ||
5557 test ! -s conftest.err
5558 } && test -s conftest.$ac_objext; then
5559 ac_lo=0 ac_mid=0
5560 while :; do
5561 cat >conftest.$ac_ext <<_ACEOF
5562 /* confdefs.h. */
5563 _ACEOF
5564 cat confdefs.h >>conftest.$ac_ext
5565 cat >>conftest.$ac_ext <<_ACEOF
5566 /* end confdefs.h. */
5567 $ac_includes_default
5568 typedef int ac__type_sizeof_;
5569 int
5570 main ()
5571 {
5572 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5573 test_array [0] = 0
5574
5575 ;
5576 return 0;
5577 }
5578 _ACEOF
5579 rm -f conftest.$ac_objext
5580 if { (ac_try="$ac_compile"
5581 case "(($ac_try" in
5582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5583 *) ac_try_echo=$ac_try;;
5584 esac
5585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5586 (eval "$ac_compile") 2>conftest.er1
5587 ac_status=$?
5588 grep -v '^ *+' conftest.er1 >conftest.err
5589 rm -f conftest.er1
5590 cat conftest.err >&5
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); } && {
5593 test -z "$ac_c_werror_flag" ||
5594 test ! -s conftest.err
5595 } && test -s conftest.$ac_objext; then
5596 ac_hi=$ac_mid; break
5597 else
5598 echo "$as_me: failed program was:" >&5
5599 sed 's/^/| /' conftest.$ac_ext >&5
5600
5601 ac_lo=`expr $ac_mid + 1`
5602 if test $ac_lo -le $ac_mid; then
5603 ac_lo= ac_hi=
5604 break
5605 fi
5606 ac_mid=`expr 2 '*' $ac_mid + 1`
5607 fi
5608
5609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5610 done
5611 else
5612 echo "$as_me: failed program was:" >&5
5613 sed 's/^/| /' conftest.$ac_ext >&5
5614
5615 cat >conftest.$ac_ext <<_ACEOF
5616 /* confdefs.h. */
5617 _ACEOF
5618 cat confdefs.h >>conftest.$ac_ext
5619 cat >>conftest.$ac_ext <<_ACEOF
5620 /* end confdefs.h. */
5621 $ac_includes_default
5622 typedef int ac__type_sizeof_;
5623 int
5624 main ()
5625 {
5626 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5627 test_array [0] = 0
5628
5629 ;
5630 return 0;
5631 }
5632 _ACEOF
5633 rm -f conftest.$ac_objext
5634 if { (ac_try="$ac_compile"
5635 case "(($ac_try" in
5636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5637 *) ac_try_echo=$ac_try;;
5638 esac
5639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5640 (eval "$ac_compile") 2>conftest.er1
5641 ac_status=$?
5642 grep -v '^ *+' conftest.er1 >conftest.err
5643 rm -f conftest.er1
5644 cat conftest.err >&5
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); } && {
5647 test -z "$ac_c_werror_flag" ||
5648 test ! -s conftest.err
5649 } && test -s conftest.$ac_objext; then
5650 ac_hi=-1 ac_mid=-1
5651 while :; do
5652 cat >conftest.$ac_ext <<_ACEOF
5653 /* confdefs.h. */
5654 _ACEOF
5655 cat confdefs.h >>conftest.$ac_ext
5656 cat >>conftest.$ac_ext <<_ACEOF
5657 /* end confdefs.h. */
5658 $ac_includes_default
5659 typedef int ac__type_sizeof_;
5660 int
5661 main ()
5662 {
5663 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5664 test_array [0] = 0
5665
5666 ;
5667 return 0;
5668 }
5669 _ACEOF
5670 rm -f conftest.$ac_objext
5671 if { (ac_try="$ac_compile"
5672 case "(($ac_try" in
5673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5674 *) ac_try_echo=$ac_try;;
5675 esac
5676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5677 (eval "$ac_compile") 2>conftest.er1
5678 ac_status=$?
5679 grep -v '^ *+' conftest.er1 >conftest.err
5680 rm -f conftest.er1
5681 cat conftest.err >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); } && {
5684 test -z "$ac_c_werror_flag" ||
5685 test ! -s conftest.err
5686 } && test -s conftest.$ac_objext; then
5687 ac_lo=$ac_mid; break
5688 else
5689 echo "$as_me: failed program was:" >&5
5690 sed 's/^/| /' conftest.$ac_ext >&5
5691
5692 ac_hi=`expr '(' $ac_mid ')' - 1`
5693 if test $ac_mid -le $ac_hi; then
5694 ac_lo= ac_hi=
5695 break
5696 fi
5697 ac_mid=`expr 2 '*' $ac_mid`
5698 fi
5699
5700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5701 done
5702 else
5703 echo "$as_me: failed program was:" >&5
5704 sed 's/^/| /' conftest.$ac_ext >&5
5705
5706 ac_lo= ac_hi=
5707 fi
5708
5709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5710 fi
5711
5712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5713 # Binary search between lo and hi bounds.
5714 while test "x$ac_lo" != "x$ac_hi"; do
5715 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5716 cat >conftest.$ac_ext <<_ACEOF
5717 /* confdefs.h. */
5718 _ACEOF
5719 cat confdefs.h >>conftest.$ac_ext
5720 cat >>conftest.$ac_ext <<_ACEOF
5721 /* end confdefs.h. */
5722 $ac_includes_default
5723 typedef int ac__type_sizeof_;
5724 int
5725 main ()
5726 {
5727 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5728 test_array [0] = 0
5729
5730 ;
5731 return 0;
5732 }
5733 _ACEOF
5734 rm -f conftest.$ac_objext
5735 if { (ac_try="$ac_compile"
5736 case "(($ac_try" in
5737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5738 *) ac_try_echo=$ac_try;;
5739 esac
5740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5741 (eval "$ac_compile") 2>conftest.er1
5742 ac_status=$?
5743 grep -v '^ *+' conftest.er1 >conftest.err
5744 rm -f conftest.er1
5745 cat conftest.err >&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); } && {
5748 test -z "$ac_c_werror_flag" ||
5749 test ! -s conftest.err
5750 } && test -s conftest.$ac_objext; then
5751 ac_hi=$ac_mid
5752 else
5753 echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5755
5756 ac_lo=`expr '(' $ac_mid ')' + 1`
5757 fi
5758
5759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5760 done
5761 case $ac_lo in
5762 ?*) ac_cv_sizeof_int=$ac_lo;;
5763 '') if test "$ac_cv_type_int" = yes; then
5764 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5765 See \`config.log' for more details." >&5
5766 echo "$as_me: error: cannot compute sizeof (int)
5767 See \`config.log' for more details." >&2;}
5768 { (exit 77); exit 77; }; }
5769 else
5770 ac_cv_sizeof_int=0
5771 fi ;;
5772 esac
5773 else
5774 cat >conftest.$ac_ext <<_ACEOF
5775 /* confdefs.h. */
5776 _ACEOF
5777 cat confdefs.h >>conftest.$ac_ext
5778 cat >>conftest.$ac_ext <<_ACEOF
5779 /* end confdefs.h. */
5780 $ac_includes_default
5781 typedef int ac__type_sizeof_;
5782 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5783 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5784 #include <stdio.h>
5785 #include <stdlib.h>
5786 int
5787 main ()
5788 {
5789
5790 FILE *f = fopen ("conftest.val", "w");
5791 if (! f)
5792 return 1;
5793 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5794 {
5795 long int i = longval ();
5796 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5797 return 1;
5798 fprintf (f, "%ld\n", i);
5799 }
5800 else
5801 {
5802 unsigned long int i = ulongval ();
5803 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5804 return 1;
5805 fprintf (f, "%lu\n", i);
5806 }
5807 return ferror (f) || fclose (f) != 0;
5808
5809 ;
5810 return 0;
5811 }
5812 _ACEOF
5813 rm -f conftest$ac_exeext
5814 if { (ac_try="$ac_link"
5815 case "(($ac_try" in
5816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5817 *) ac_try_echo=$ac_try;;
5818 esac
5819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5820 (eval "$ac_link") 2>&5
5821 ac_status=$?
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5824 { (case "(($ac_try" in
5825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5826 *) ac_try_echo=$ac_try;;
5827 esac
5828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5829 (eval "$ac_try") 2>&5
5830 ac_status=$?
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }; }; then
5833 ac_cv_sizeof_int=`cat conftest.val`
5834 else
5835 echo "$as_me: program exited with status $ac_status" >&5
5836 echo "$as_me: failed program was:" >&5
5837 sed 's/^/| /' conftest.$ac_ext >&5
5838
5839 ( exit $ac_status )
5840 if test "$ac_cv_type_int" = yes; then
5841 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5842 See \`config.log' for more details." >&5
5843 echo "$as_me: error: cannot compute sizeof (int)
5844 See \`config.log' for more details." >&2;}
5845 { (exit 77); exit 77; }; }
5846 else
5847 ac_cv_sizeof_int=0
5848 fi
5849 fi
5850 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5851 fi
5852 rm -f conftest.val
5853 fi
5854 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5855 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
5856
5857
5858
5859 cat >>confdefs.h <<_ACEOF
5860 #define SIZEOF_INT $ac_cv_sizeof_int
5861 _ACEOF
5862
5863
5864 { echo "$as_me:$LINENO: checking for short" >&5
5865 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
5866 if test "${ac_cv_type_short+set}" = set; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
5868 else
5869 cat >conftest.$ac_ext <<_ACEOF
5870 /* confdefs.h. */
5871 _ACEOF
5872 cat confdefs.h >>conftest.$ac_ext
5873 cat >>conftest.$ac_ext <<_ACEOF
5874 /* end confdefs.h. */
5875 $ac_includes_default
5876 typedef short ac__type_new_;
5877 int
5878 main ()
5879 {
5880 if ((ac__type_new_ *) 0)
5881 return 0;
5882 if (sizeof (ac__type_new_))
5883 return 0;
5884 ;
5885 return 0;
5886 }
5887 _ACEOF
5888 rm -f conftest.$ac_objext
5889 if { (ac_try="$ac_compile"
5890 case "(($ac_try" in
5891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5892 *) ac_try_echo=$ac_try;;
5893 esac
5894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5895 (eval "$ac_compile") 2>conftest.er1
5896 ac_status=$?
5897 grep -v '^ *+' conftest.er1 >conftest.err
5898 rm -f conftest.er1
5899 cat conftest.err >&5
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); } && {
5902 test -z "$ac_c_werror_flag" ||
5903 test ! -s conftest.err
5904 } && test -s conftest.$ac_objext; then
5905 ac_cv_type_short=yes
5906 else
5907 echo "$as_me: failed program was:" >&5
5908 sed 's/^/| /' conftest.$ac_ext >&5
5909
5910 ac_cv_type_short=no
5911 fi
5912
5913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5914 fi
5915 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5916 echo "${ECHO_T}$ac_cv_type_short" >&6; }
5917
5918 # The cast to long int works around a bug in the HP C Compiler
5919 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5920 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5921 # This bug is HP SR number 8606223364.
5922 { echo "$as_me:$LINENO: checking size of short" >&5
5923 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
5924 if test "${ac_cv_sizeof_short+set}" = set; then
5925 echo $ECHO_N "(cached) $ECHO_C" >&6
5926 else
5927 if test "$cross_compiling" = yes; then
5928 # Depending upon the size, compute the lo and hi bounds.
5929 cat >conftest.$ac_ext <<_ACEOF
5930 /* confdefs.h. */
5931 _ACEOF
5932 cat confdefs.h >>conftest.$ac_ext
5933 cat >>conftest.$ac_ext <<_ACEOF
5934 /* end confdefs.h. */
5935 $ac_includes_default
5936 typedef short ac__type_sizeof_;
5937 int
5938 main ()
5939 {
5940 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5941 test_array [0] = 0
5942
5943 ;
5944 return 0;
5945 }
5946 _ACEOF
5947 rm -f conftest.$ac_objext
5948 if { (ac_try="$ac_compile"
5949 case "(($ac_try" in
5950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5951 *) ac_try_echo=$ac_try;;
5952 esac
5953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5954 (eval "$ac_compile") 2>conftest.er1
5955 ac_status=$?
5956 grep -v '^ *+' conftest.er1 >conftest.err
5957 rm -f conftest.er1
5958 cat conftest.err >&5
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); } && {
5961 test -z "$ac_c_werror_flag" ||
5962 test ! -s conftest.err
5963 } && test -s conftest.$ac_objext; then
5964 ac_lo=0 ac_mid=0
5965 while :; do
5966 cat >conftest.$ac_ext <<_ACEOF
5967 /* confdefs.h. */
5968 _ACEOF
5969 cat confdefs.h >>conftest.$ac_ext
5970 cat >>conftest.$ac_ext <<_ACEOF
5971 /* end confdefs.h. */
5972 $ac_includes_default
5973 typedef short ac__type_sizeof_;
5974 int
5975 main ()
5976 {
5977 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5978 test_array [0] = 0
5979
5980 ;
5981 return 0;
5982 }
5983 _ACEOF
5984 rm -f conftest.$ac_objext
5985 if { (ac_try="$ac_compile"
5986 case "(($ac_try" in
5987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5988 *) ac_try_echo=$ac_try;;
5989 esac
5990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5991 (eval "$ac_compile") 2>conftest.er1
5992 ac_status=$?
5993 grep -v '^ *+' conftest.er1 >conftest.err
5994 rm -f conftest.er1
5995 cat conftest.err >&5
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); } && {
5998 test -z "$ac_c_werror_flag" ||
5999 test ! -s conftest.err
6000 } && test -s conftest.$ac_objext; then
6001 ac_hi=$ac_mid; break
6002 else
6003 echo "$as_me: failed program was:" >&5
6004 sed 's/^/| /' conftest.$ac_ext >&5
6005
6006 ac_lo=`expr $ac_mid + 1`
6007 if test $ac_lo -le $ac_mid; then
6008 ac_lo= ac_hi=
6009 break
6010 fi
6011 ac_mid=`expr 2 '*' $ac_mid + 1`
6012 fi
6013
6014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6015 done
6016 else
6017 echo "$as_me: failed program was:" >&5
6018 sed 's/^/| /' conftest.$ac_ext >&5
6019
6020 cat >conftest.$ac_ext <<_ACEOF
6021 /* confdefs.h. */
6022 _ACEOF
6023 cat confdefs.h >>conftest.$ac_ext
6024 cat >>conftest.$ac_ext <<_ACEOF
6025 /* end confdefs.h. */
6026 $ac_includes_default
6027 typedef short ac__type_sizeof_;
6028 int
6029 main ()
6030 {
6031 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6032 test_array [0] = 0
6033
6034 ;
6035 return 0;
6036 }
6037 _ACEOF
6038 rm -f conftest.$ac_objext
6039 if { (ac_try="$ac_compile"
6040 case "(($ac_try" in
6041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6042 *) ac_try_echo=$ac_try;;
6043 esac
6044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6045 (eval "$ac_compile") 2>conftest.er1
6046 ac_status=$?
6047 grep -v '^ *+' conftest.er1 >conftest.err
6048 rm -f conftest.er1
6049 cat conftest.err >&5
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); } && {
6052 test -z "$ac_c_werror_flag" ||
6053 test ! -s conftest.err
6054 } && test -s conftest.$ac_objext; then
6055 ac_hi=-1 ac_mid=-1
6056 while :; do
6057 cat >conftest.$ac_ext <<_ACEOF
6058 /* confdefs.h. */
6059 _ACEOF
6060 cat confdefs.h >>conftest.$ac_ext
6061 cat >>conftest.$ac_ext <<_ACEOF
6062 /* end confdefs.h. */
6063 $ac_includes_default
6064 typedef short ac__type_sizeof_;
6065 int
6066 main ()
6067 {
6068 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6069 test_array [0] = 0
6070
6071 ;
6072 return 0;
6073 }
6074 _ACEOF
6075 rm -f conftest.$ac_objext
6076 if { (ac_try="$ac_compile"
6077 case "(($ac_try" in
6078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6079 *) ac_try_echo=$ac_try;;
6080 esac
6081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6082 (eval "$ac_compile") 2>conftest.er1
6083 ac_status=$?
6084 grep -v '^ *+' conftest.er1 >conftest.err
6085 rm -f conftest.er1
6086 cat conftest.err >&5
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); } && {
6089 test -z "$ac_c_werror_flag" ||
6090 test ! -s conftest.err
6091 } && test -s conftest.$ac_objext; then
6092 ac_lo=$ac_mid; break
6093 else
6094 echo "$as_me: failed program was:" >&5
6095 sed 's/^/| /' conftest.$ac_ext >&5
6096
6097 ac_hi=`expr '(' $ac_mid ')' - 1`
6098 if test $ac_mid -le $ac_hi; then
6099 ac_lo= ac_hi=
6100 break
6101 fi
6102 ac_mid=`expr 2 '*' $ac_mid`
6103 fi
6104
6105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6106 done
6107 else
6108 echo "$as_me: failed program was:" >&5
6109 sed 's/^/| /' conftest.$ac_ext >&5
6110
6111 ac_lo= ac_hi=
6112 fi
6113
6114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6115 fi
6116
6117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6118 # Binary search between lo and hi bounds.
6119 while test "x$ac_lo" != "x$ac_hi"; do
6120 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6121 cat >conftest.$ac_ext <<_ACEOF
6122 /* confdefs.h. */
6123 _ACEOF
6124 cat confdefs.h >>conftest.$ac_ext
6125 cat >>conftest.$ac_ext <<_ACEOF
6126 /* end confdefs.h. */
6127 $ac_includes_default
6128 typedef short ac__type_sizeof_;
6129 int
6130 main ()
6131 {
6132 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6133 test_array [0] = 0
6134
6135 ;
6136 return 0;
6137 }
6138 _ACEOF
6139 rm -f conftest.$ac_objext
6140 if { (ac_try="$ac_compile"
6141 case "(($ac_try" in
6142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6143 *) ac_try_echo=$ac_try;;
6144 esac
6145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6146 (eval "$ac_compile") 2>conftest.er1
6147 ac_status=$?
6148 grep -v '^ *+' conftest.er1 >conftest.err
6149 rm -f conftest.er1
6150 cat conftest.err >&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); } && {
6153 test -z "$ac_c_werror_flag" ||
6154 test ! -s conftest.err
6155 } && test -s conftest.$ac_objext; then
6156 ac_hi=$ac_mid
6157 else
6158 echo "$as_me: failed program was:" >&5
6159 sed 's/^/| /' conftest.$ac_ext >&5
6160
6161 ac_lo=`expr '(' $ac_mid ')' + 1`
6162 fi
6163
6164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6165 done
6166 case $ac_lo in
6167 ?*) ac_cv_sizeof_short=$ac_lo;;
6168 '') if test "$ac_cv_type_short" = yes; then
6169 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6170 See \`config.log' for more details." >&5
6171 echo "$as_me: error: cannot compute sizeof (short)
6172 See \`config.log' for more details." >&2;}
6173 { (exit 77); exit 77; }; }
6174 else
6175 ac_cv_sizeof_short=0
6176 fi ;;
6177 esac
6178 else
6179 cat >conftest.$ac_ext <<_ACEOF
6180 /* confdefs.h. */
6181 _ACEOF
6182 cat confdefs.h >>conftest.$ac_ext
6183 cat >>conftest.$ac_ext <<_ACEOF
6184 /* end confdefs.h. */
6185 $ac_includes_default
6186 typedef short ac__type_sizeof_;
6187 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6188 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6189 #include <stdio.h>
6190 #include <stdlib.h>
6191 int
6192 main ()
6193 {
6194
6195 FILE *f = fopen ("conftest.val", "w");
6196 if (! f)
6197 return 1;
6198 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6199 {
6200 long int i = longval ();
6201 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6202 return 1;
6203 fprintf (f, "%ld\n", i);
6204 }
6205 else
6206 {
6207 unsigned long int i = ulongval ();
6208 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6209 return 1;
6210 fprintf (f, "%lu\n", i);
6211 }
6212 return ferror (f) || fclose (f) != 0;
6213
6214 ;
6215 return 0;
6216 }
6217 _ACEOF
6218 rm -f conftest$ac_exeext
6219 if { (ac_try="$ac_link"
6220 case "(($ac_try" in
6221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6222 *) ac_try_echo=$ac_try;;
6223 esac
6224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6225 (eval "$ac_link") 2>&5
6226 ac_status=$?
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6229 { (case "(($ac_try" in
6230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6231 *) ac_try_echo=$ac_try;;
6232 esac
6233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6234 (eval "$ac_try") 2>&5
6235 ac_status=$?
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); }; }; then
6238 ac_cv_sizeof_short=`cat conftest.val`
6239 else
6240 echo "$as_me: program exited with status $ac_status" >&5
6241 echo "$as_me: failed program was:" >&5
6242 sed 's/^/| /' conftest.$ac_ext >&5
6243
6244 ( exit $ac_status )
6245 if test "$ac_cv_type_short" = yes; then
6246 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6247 See \`config.log' for more details." >&5
6248 echo "$as_me: error: cannot compute sizeof (short)
6249 See \`config.log' for more details." >&2;}
6250 { (exit 77); exit 77; }; }
6251 else
6252 ac_cv_sizeof_short=0
6253 fi
6254 fi
6255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6256 fi
6257 rm -f conftest.val
6258 fi
6259 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
6260 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
6261
6262
6263
6264 cat >>confdefs.h <<_ACEOF
6265 #define SIZEOF_SHORT $ac_cv_sizeof_short
6266 _ACEOF
6267
6268
6269 { echo "$as_me:$LINENO: checking for long" >&5
6270 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
6271 if test "${ac_cv_type_long+set}" = set; then
6272 echo $ECHO_N "(cached) $ECHO_C" >&6
6273 else
6274 cat >conftest.$ac_ext <<_ACEOF
6275 /* confdefs.h. */
6276 _ACEOF
6277 cat confdefs.h >>conftest.$ac_ext
6278 cat >>conftest.$ac_ext <<_ACEOF
6279 /* end confdefs.h. */
6280 $ac_includes_default
6281 typedef long ac__type_new_;
6282 int
6283 main ()
6284 {
6285 if ((ac__type_new_ *) 0)
6286 return 0;
6287 if (sizeof (ac__type_new_))
6288 return 0;
6289 ;
6290 return 0;
6291 }
6292 _ACEOF
6293 rm -f conftest.$ac_objext
6294 if { (ac_try="$ac_compile"
6295 case "(($ac_try" in
6296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6297 *) ac_try_echo=$ac_try;;
6298 esac
6299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6300 (eval "$ac_compile") 2>conftest.er1
6301 ac_status=$?
6302 grep -v '^ *+' conftest.er1 >conftest.err
6303 rm -f conftest.er1
6304 cat conftest.err >&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); } && {
6307 test -z "$ac_c_werror_flag" ||
6308 test ! -s conftest.err
6309 } && test -s conftest.$ac_objext; then
6310 ac_cv_type_long=yes
6311 else
6312 echo "$as_me: failed program was:" >&5
6313 sed 's/^/| /' conftest.$ac_ext >&5
6314
6315 ac_cv_type_long=no
6316 fi
6317
6318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6319 fi
6320 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6321 echo "${ECHO_T}$ac_cv_type_long" >&6; }
6322
6323 # The cast to long int works around a bug in the HP C Compiler
6324 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6325 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6326 # This bug is HP SR number 8606223364.
6327 { echo "$as_me:$LINENO: checking size of long" >&5
6328 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
6329 if test "${ac_cv_sizeof_long+set}" = set; then
6330 echo $ECHO_N "(cached) $ECHO_C" >&6
6331 else
6332 if test "$cross_compiling" = yes; then
6333 # Depending upon the size, compute the lo and hi bounds.
6334 cat >conftest.$ac_ext <<_ACEOF
6335 /* confdefs.h. */
6336 _ACEOF
6337 cat confdefs.h >>conftest.$ac_ext
6338 cat >>conftest.$ac_ext <<_ACEOF
6339 /* end confdefs.h. */
6340 $ac_includes_default
6341 typedef long ac__type_sizeof_;
6342 int
6343 main ()
6344 {
6345 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6346 test_array [0] = 0
6347
6348 ;
6349 return 0;
6350 }
6351 _ACEOF
6352 rm -f conftest.$ac_objext
6353 if { (ac_try="$ac_compile"
6354 case "(($ac_try" in
6355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6356 *) ac_try_echo=$ac_try;;
6357 esac
6358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6359 (eval "$ac_compile") 2>conftest.er1
6360 ac_status=$?
6361 grep -v '^ *+' conftest.er1 >conftest.err
6362 rm -f conftest.er1
6363 cat conftest.err >&5
6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); } && {
6366 test -z "$ac_c_werror_flag" ||
6367 test ! -s conftest.err
6368 } && test -s conftest.$ac_objext; then
6369 ac_lo=0 ac_mid=0
6370 while :; do
6371 cat >conftest.$ac_ext <<_ACEOF
6372 /* confdefs.h. */
6373 _ACEOF
6374 cat confdefs.h >>conftest.$ac_ext
6375 cat >>conftest.$ac_ext <<_ACEOF
6376 /* end confdefs.h. */
6377 $ac_includes_default
6378 typedef long ac__type_sizeof_;
6379 int
6380 main ()
6381 {
6382 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6383 test_array [0] = 0
6384
6385 ;
6386 return 0;
6387 }
6388 _ACEOF
6389 rm -f conftest.$ac_objext
6390 if { (ac_try="$ac_compile"
6391 case "(($ac_try" in
6392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6393 *) ac_try_echo=$ac_try;;
6394 esac
6395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6396 (eval "$ac_compile") 2>conftest.er1
6397 ac_status=$?
6398 grep -v '^ *+' conftest.er1 >conftest.err
6399 rm -f conftest.er1
6400 cat conftest.err >&5
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); } && {
6403 test -z "$ac_c_werror_flag" ||
6404 test ! -s conftest.err
6405 } && test -s conftest.$ac_objext; then
6406 ac_hi=$ac_mid; break
6407 else
6408 echo "$as_me: failed program was:" >&5
6409 sed 's/^/| /' conftest.$ac_ext >&5
6410
6411 ac_lo=`expr $ac_mid + 1`
6412 if test $ac_lo -le $ac_mid; then
6413 ac_lo= ac_hi=
6414 break
6415 fi
6416 ac_mid=`expr 2 '*' $ac_mid + 1`
6417 fi
6418
6419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6420 done
6421 else
6422 echo "$as_me: failed program was:" >&5
6423 sed 's/^/| /' conftest.$ac_ext >&5
6424
6425 cat >conftest.$ac_ext <<_ACEOF
6426 /* confdefs.h. */
6427 _ACEOF
6428 cat confdefs.h >>conftest.$ac_ext
6429 cat >>conftest.$ac_ext <<_ACEOF
6430 /* end confdefs.h. */
6431 $ac_includes_default
6432 typedef long ac__type_sizeof_;
6433 int
6434 main ()
6435 {
6436 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6437 test_array [0] = 0
6438
6439 ;
6440 return 0;
6441 }
6442 _ACEOF
6443 rm -f conftest.$ac_objext
6444 if { (ac_try="$ac_compile"
6445 case "(($ac_try" in
6446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6447 *) ac_try_echo=$ac_try;;
6448 esac
6449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6450 (eval "$ac_compile") 2>conftest.er1
6451 ac_status=$?
6452 grep -v '^ *+' conftest.er1 >conftest.err
6453 rm -f conftest.er1
6454 cat conftest.err >&5
6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); } && {
6457 test -z "$ac_c_werror_flag" ||
6458 test ! -s conftest.err
6459 } && test -s conftest.$ac_objext; then
6460 ac_hi=-1 ac_mid=-1
6461 while :; do
6462 cat >conftest.$ac_ext <<_ACEOF
6463 /* confdefs.h. */
6464 _ACEOF
6465 cat confdefs.h >>conftest.$ac_ext
6466 cat >>conftest.$ac_ext <<_ACEOF
6467 /* end confdefs.h. */
6468 $ac_includes_default
6469 typedef long ac__type_sizeof_;
6470 int
6471 main ()
6472 {
6473 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6474 test_array [0] = 0
6475
6476 ;
6477 return 0;
6478 }
6479 _ACEOF
6480 rm -f conftest.$ac_objext
6481 if { (ac_try="$ac_compile"
6482 case "(($ac_try" in
6483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6484 *) ac_try_echo=$ac_try;;
6485 esac
6486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6487 (eval "$ac_compile") 2>conftest.er1
6488 ac_status=$?
6489 grep -v '^ *+' conftest.er1 >conftest.err
6490 rm -f conftest.er1
6491 cat conftest.err >&5
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); } && {
6494 test -z "$ac_c_werror_flag" ||
6495 test ! -s conftest.err
6496 } && test -s conftest.$ac_objext; then
6497 ac_lo=$ac_mid; break
6498 else
6499 echo "$as_me: failed program was:" >&5
6500 sed 's/^/| /' conftest.$ac_ext >&5
6501
6502 ac_hi=`expr '(' $ac_mid ')' - 1`
6503 if test $ac_mid -le $ac_hi; then
6504 ac_lo= ac_hi=
6505 break
6506 fi
6507 ac_mid=`expr 2 '*' $ac_mid`
6508 fi
6509
6510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6511 done
6512 else
6513 echo "$as_me: failed program was:" >&5
6514 sed 's/^/| /' conftest.$ac_ext >&5
6515
6516 ac_lo= ac_hi=
6517 fi
6518
6519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6520 fi
6521
6522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6523 # Binary search between lo and hi bounds.
6524 while test "x$ac_lo" != "x$ac_hi"; do
6525 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6526 cat >conftest.$ac_ext <<_ACEOF
6527 /* confdefs.h. */
6528 _ACEOF
6529 cat confdefs.h >>conftest.$ac_ext
6530 cat >>conftest.$ac_ext <<_ACEOF
6531 /* end confdefs.h. */
6532 $ac_includes_default
6533 typedef long ac__type_sizeof_;
6534 int
6535 main ()
6536 {
6537 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6538 test_array [0] = 0
6539
6540 ;
6541 return 0;
6542 }
6543 _ACEOF
6544 rm -f conftest.$ac_objext
6545 if { (ac_try="$ac_compile"
6546 case "(($ac_try" in
6547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6548 *) ac_try_echo=$ac_try;;
6549 esac
6550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6551 (eval "$ac_compile") 2>conftest.er1
6552 ac_status=$?
6553 grep -v '^ *+' conftest.er1 >conftest.err
6554 rm -f conftest.er1
6555 cat conftest.err >&5
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); } && {
6558 test -z "$ac_c_werror_flag" ||
6559 test ! -s conftest.err
6560 } && test -s conftest.$ac_objext; then
6561 ac_hi=$ac_mid
6562 else
6563 echo "$as_me: failed program was:" >&5
6564 sed 's/^/| /' conftest.$ac_ext >&5
6565
6566 ac_lo=`expr '(' $ac_mid ')' + 1`
6567 fi
6568
6569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6570 done
6571 case $ac_lo in
6572 ?*) ac_cv_sizeof_long=$ac_lo;;
6573 '') if test "$ac_cv_type_long" = yes; then
6574 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6575 See \`config.log' for more details." >&5
6576 echo "$as_me: error: cannot compute sizeof (long)
6577 See \`config.log' for more details." >&2;}
6578 { (exit 77); exit 77; }; }
6579 else
6580 ac_cv_sizeof_long=0
6581 fi ;;
6582 esac
6583 else
6584 cat >conftest.$ac_ext <<_ACEOF
6585 /* confdefs.h. */
6586 _ACEOF
6587 cat confdefs.h >>conftest.$ac_ext
6588 cat >>conftest.$ac_ext <<_ACEOF
6589 /* end confdefs.h. */
6590 $ac_includes_default
6591 typedef long ac__type_sizeof_;
6592 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6593 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6594 #include <stdio.h>
6595 #include <stdlib.h>
6596 int
6597 main ()
6598 {
6599
6600 FILE *f = fopen ("conftest.val", "w");
6601 if (! f)
6602 return 1;
6603 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6604 {
6605 long int i = longval ();
6606 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6607 return 1;
6608 fprintf (f, "%ld\n", i);
6609 }
6610 else
6611 {
6612 unsigned long int i = ulongval ();
6613 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6614 return 1;
6615 fprintf (f, "%lu\n", i);
6616 }
6617 return ferror (f) || fclose (f) != 0;
6618
6619 ;
6620 return 0;
6621 }
6622 _ACEOF
6623 rm -f conftest$ac_exeext
6624 if { (ac_try="$ac_link"
6625 case "(($ac_try" in
6626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6627 *) ac_try_echo=$ac_try;;
6628 esac
6629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6630 (eval "$ac_link") 2>&5
6631 ac_status=$?
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6634 { (case "(($ac_try" in
6635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6636 *) ac_try_echo=$ac_try;;
6637 esac
6638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6639 (eval "$ac_try") 2>&5
6640 ac_status=$?
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); }; }; then
6643 ac_cv_sizeof_long=`cat conftest.val`
6644 else
6645 echo "$as_me: program exited with status $ac_status" >&5
6646 echo "$as_me: failed program was:" >&5
6647 sed 's/^/| /' conftest.$ac_ext >&5
6648
6649 ( exit $ac_status )
6650 if test "$ac_cv_type_long" = yes; then
6651 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6652 See \`config.log' for more details." >&5
6653 echo "$as_me: error: cannot compute sizeof (long)
6654 See \`config.log' for more details." >&2;}
6655 { (exit 77); exit 77; }; }
6656 else
6657 ac_cv_sizeof_long=0
6658 fi
6659 fi
6660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6661 fi
6662 rm -f conftest.val
6663 fi
6664 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6665 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
6666
6667
6668
6669 cat >>confdefs.h <<_ACEOF
6670 #define SIZEOF_LONG $ac_cv_sizeof_long
6671 _ACEOF
6672
6673
6674
6675 HAVE_C9X=
6676
6677 fi
6678
6679 { echo "$as_me:$LINENO: checking for missing socklen_t" >&5
6680 echo $ECHO_N "checking for missing socklen_t... $ECHO_C" >&6; }
6681 cat >conftest.$ac_ext <<_ACEOF
6682 /* confdefs.h. */
6683 _ACEOF
6684 cat confdefs.h >>conftest.$ac_ext
6685 cat >>conftest.$ac_ext <<_ACEOF
6686 /* end confdefs.h. */
6687 #include <sys/socket.h>
6688
6689 _ACEOF
6690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6691 $EGREP "socklen_t" >/dev/null 2>&1; then
6692 { echo "$as_me:$LINENO: result: no" >&5
6693 echo "${ECHO_T}no" >&6; }
6694 else
6695
6696 cat >>confdefs.h <<\_ACEOF
6697 #define NEED_SOCKLEN_T_DEFINE 1
6698 _ACEOF
6699
6700 NEED_SOCKLEN_T_DEFINE=yes
6701 { echo "$as_me:$LINENO: result: missing." >&5
6702 echo "${ECHO_T}missing." >&6; }
6703 fi
6704 rm -f conftest*
6705
6706
6707
6708 { echo "$as_me:$LINENO: checking for h_errno" >&5
6709 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6; }
6710 cat >conftest.$ac_ext <<_ACEOF
6711 /* confdefs.h. */
6712 _ACEOF
6713 cat confdefs.h >>conftest.$ac_ext
6714 cat >>conftest.$ac_ext <<_ACEOF
6715 /* end confdefs.h. */
6716 #include <netdb.h>
6717
6718 _ACEOF
6719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6720 $EGREP "h_errno" >/dev/null 2>&1; then
6721 { echo "$as_me:$LINENO: result: normal" >&5
6722 echo "${ECHO_T}normal" >&6; }
6723 else
6724 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
6725 cat >conftest.$ac_ext <<_ACEOF
6726 /* confdefs.h. */
6727 _ACEOF
6728 cat confdefs.h >>conftest.$ac_ext
6729 cat >>conftest.$ac_ext <<_ACEOF
6730 /* end confdefs.h. */
6731 #include <netdb.h>
6732
6733 _ACEOF
6734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6735 $EGREP "h_errno" >/dev/null 2>&1; then
6736 { echo "$as_me:$LINENO: result: needs _XOPEN_SOURCE_EXTENDED" >&5
6737 echo "${ECHO_T}needs _XOPEN_SOURCE_EXTENDED" >&6; }
6738 else
6739 { { echo "$as_me:$LINENO: error: \"not found.\"" >&5
6740 echo "$as_me: error: \"not found.\"" >&2;}
6741 { (exit 1); exit 1; }; }
6742 fi
6743 rm -f conftest*
6744
6745
6746 fi
6747 rm -f conftest*
6748
6749
6750 # Extract the first word of "debiandoc2html", so it can be a program name with args.
6751 set dummy debiandoc2html; ac_word=$2
6752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6754 if test "${ac_cv_path_DEBIANDOC_HTML+set}" = set; then
6755 echo $ECHO_N "(cached) $ECHO_C" >&6
6756 else
6757 case $DEBIANDOC_HTML in
6758 [\\/]* | ?:[\\/]*)
6759 ac_cv_path_DEBIANDOC_HTML="$DEBIANDOC_HTML" # Let the user override the test with a path.
6760 ;;
6761 *)
6762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763 for as_dir in $PATH
6764 do
6765 IFS=$as_save_IFS
6766 test -z "$as_dir" && as_dir=.
6767 for ac_exec_ext in '' $ac_executable_extensions; do
6768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6769 ac_cv_path_DEBIANDOC_HTML="$as_dir/$ac_word$ac_exec_ext"
6770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6771 break 2
6772 fi
6773 done
6774 done
6775 IFS=$as_save_IFS
6776
6777 ;;
6778 esac
6779 fi
6780 DEBIANDOC_HTML=$ac_cv_path_DEBIANDOC_HTML
6781 if test -n "$DEBIANDOC_HTML"; then
6782 { echo "$as_me:$LINENO: result: $DEBIANDOC_HTML" >&5
6783 echo "${ECHO_T}$DEBIANDOC_HTML" >&6; }
6784 else
6785 { echo "$as_me:$LINENO: result: no" >&5
6786 echo "${ECHO_T}no" >&6; }
6787 fi
6788
6789
6790 # Extract the first word of "debiandoc2text", so it can be a program name with args.
6791 set dummy debiandoc2text; ac_word=$2
6792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6794 if test "${ac_cv_path_DEBIANDOC_TEXT+set}" = set; then
6795 echo $ECHO_N "(cached) $ECHO_C" >&6
6796 else
6797 case $DEBIANDOC_TEXT in
6798 [\\/]* | ?:[\\/]*)
6799 ac_cv_path_DEBIANDOC_TEXT="$DEBIANDOC_TEXT" # Let the user override the test with a path.
6800 ;;
6801 *)
6802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803 for as_dir in $PATH
6804 do
6805 IFS=$as_save_IFS
6806 test -z "$as_dir" && as_dir=.
6807 for ac_exec_ext in '' $ac_executable_extensions; do
6808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6809 ac_cv_path_DEBIANDOC_TEXT="$as_dir/$ac_word$ac_exec_ext"
6810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6811 break 2
6812 fi
6813 done
6814 done
6815 IFS=$as_save_IFS
6816
6817 ;;
6818 esac
6819 fi
6820 DEBIANDOC_TEXT=$ac_cv_path_DEBIANDOC_TEXT
6821 if test -n "$DEBIANDOC_TEXT"; then
6822 { echo "$as_me:$LINENO: result: $DEBIANDOC_TEXT" >&5
6823 echo "${ECHO_T}$DEBIANDOC_TEXT" >&6; }
6824 else
6825 { echo "$as_me:$LINENO: result: no" >&5
6826 echo "${ECHO_T}no" >&6; }
6827 fi
6828
6829
6830
6831 # Extract the first word of "docbook2man", so it can be a program name with args.
6832 set dummy docbook2man; ac_word=$2
6833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6835 if test "${ac_cv_path_DOCBOOK2MAN+set}" = set; then
6836 echo $ECHO_N "(cached) $ECHO_C" >&6
6837 else
6838 case $DOCBOOK2MAN in
6839 [\\/]* | ?:[\\/]*)
6840 ac_cv_path_DOCBOOK2MAN="$DOCBOOK2MAN" # Let the user override the test with a path.
6841 ;;
6842 *)
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 for as_dir in $PATH
6845 do
6846 IFS=$as_save_IFS
6847 test -z "$as_dir" && as_dir=.
6848 for ac_exec_ext in '' $ac_executable_extensions; do
6849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6850 ac_cv_path_DOCBOOK2MAN="$as_dir/$ac_word$ac_exec_ext"
6851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6852 break 2
6853 fi
6854 done
6855 done
6856 IFS=$as_save_IFS
6857
6858 ;;
6859 esac
6860 fi
6861 DOCBOOK2MAN=$ac_cv_path_DOCBOOK2MAN
6862 if test -n "$DOCBOOK2MAN"; then
6863 { echo "$as_me:$LINENO: result: $DOCBOOK2MAN" >&5
6864 echo "${ECHO_T}$DOCBOOK2MAN" >&6; }
6865 else
6866 { echo "$as_me:$LINENO: result: no" >&5
6867 echo "${ECHO_T}no" >&6; }
6868 fi
6869
6870
6871
6872 # Extract the first word of "xmlto", so it can be a program name with args.
6873 set dummy xmlto; ac_word=$2
6874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6876 if test "${ac_cv_path_XMLTO+set}" = set; then
6877 echo $ECHO_N "(cached) $ECHO_C" >&6
6878 else
6879 case $XMLTO in
6880 [\\/]* | ?:[\\/]*)
6881 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
6882 ;;
6883 *)
6884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 for as_dir in $PATH
6886 do
6887 IFS=$as_save_IFS
6888 test -z "$as_dir" && as_dir=.
6889 for ac_exec_ext in '' $ac_executable_extensions; do
6890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6891 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
6892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6893 break 2
6894 fi
6895 done
6896 done
6897 IFS=$as_save_IFS
6898
6899 ;;
6900 esac
6901 fi
6902 XMLTO=$ac_cv_path_XMLTO
6903 if test -n "$XMLTO"; then
6904 { echo "$as_me:$LINENO: result: $XMLTO" >&5
6905 echo "${ECHO_T}$XMLTO" >&6; }
6906 else
6907 { echo "$as_me:$LINENO: result: no" >&5
6908 echo "${ECHO_T}no" >&6; }
6909 fi
6910
6911
6912
6913
6914
6915 # Check whether --with-getconf was given.
6916 if test "${with_getconf+set}" = set; then
6917 withval=$with_getconf; if test "$withval" = "yes"; then
6918 # Extract the first word of "getconf", so it can be a program name with args.
6919 set dummy getconf; ac_word=$2
6920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6922 if test "${ac_cv_path_GETCONF+set}" = set; then
6923 echo $ECHO_N "(cached) $ECHO_C" >&6
6924 else
6925 case $GETCONF in
6926 [\\/]* | ?:[\\/]*)
6927 ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
6928 ;;
6929 *)
6930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6931 for as_dir in $PATH
6932 do
6933 IFS=$as_save_IFS
6934 test -z "$as_dir" && as_dir=.
6935 for ac_exec_ext in '' $ac_executable_extensions; do
6936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6937 ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
6938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6939 break 2
6940 fi
6941 done
6942 done
6943 IFS=$as_save_IFS
6944
6945 ;;
6946 esac
6947 fi
6948 GETCONF=$ac_cv_path_GETCONF
6949 if test -n "$GETCONF"; then
6950 { echo "$as_me:$LINENO: result: $GETCONF" >&5
6951 echo "${ECHO_T}$GETCONF" >&6; }
6952 else
6953 { echo "$as_me:$LINENO: result: no" >&5
6954 echo "${ECHO_T}no" >&6; }
6955 fi
6956
6957
6958 elif test ! "$withval" = "no";then
6959 { echo "$as_me:$LINENO: checking getconf" >&5
6960 echo $ECHO_N "checking getconf... $ECHO_C" >&6; }
6961 { echo "$as_me:$LINENO: result: $withval" >&5
6962 echo "${ECHO_T}$withval" >&6; }
6963 GETCONF=$withval
6964 fi
6965 else
6966 # Extract the first word of "getconf", so it can be a program name with args.
6967 set dummy getconf; ac_word=$2
6968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6970 if test "${ac_cv_path_GETCONF+set}" = set; then
6971 echo $ECHO_N "(cached) $ECHO_C" >&6
6972 else
6973 case $GETCONF in
6974 [\\/]* | ?:[\\/]*)
6975 ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
6976 ;;
6977 *)
6978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979 for as_dir in $PATH
6980 do
6981 IFS=$as_save_IFS
6982 test -z "$as_dir" && as_dir=.
6983 for ac_exec_ext in '' $ac_executable_extensions; do
6984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6985 ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
6986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6987 break 2
6988 fi
6989 done
6990 done
6991 IFS=$as_save_IFS
6992
6993 ;;
6994 esac
6995 fi
6996 GETCONF=$ac_cv_path_GETCONF
6997 if test -n "$GETCONF"; then
6998 { echo "$as_me:$LINENO: result: $GETCONF" >&5
6999 echo "${ECHO_T}$GETCONF" >&6; }
7000 else
7001 { echo "$as_me:$LINENO: result: no" >&5
7002 echo "${ECHO_T}no" >&6; }
7003 fi
7004
7005
7006
7007 fi
7008
7009
7010
7011 { echo "$as_me:$LINENO: checking number of cpus" >&5
7012 echo $ECHO_N "checking number of cpus... $ECHO_C" >&6; }
7013
7014 # Check whether --with-cpus was given.
7015 if test "${with_cpus+set}" = set; then
7016 withval=$with_cpus;
7017 if test "$withval" = "yes"; then
7018
7019 if test ! -z "$GETCONF";then
7020 old_args="$@"
7021 set -- SC_NPROCESSORS_ONLN _NPROCESSORS_ONLN
7022 while eval test -z \"\$NUM_CPUS\" -a ! -z \"$1\";do
7023 eval NUM_CPUS=`$GETCONF "$1" 2>/dev/null`
7024 shift
7025 done
7026 fi
7027 if eval test -z \"\$NUM_CPUS\" -o \"\$NUM_CPUS\" = "-1";then
7028 eval NUM_CPUS="1"
7029 fi
7030
7031 elif test ! "$withval" = "no";then
7032 NUM_CPUS=$withval
7033 elif test "$withval" = "no";then
7034 NUM_CPUS=1
7035 fi
7036 else
7037
7038 if test ! -z "$GETCONF";then
7039 old_args="$@"
7040 set -- SC_NPROCESSORS_ONLN _NPROCESSORS_ONLN
7041 while eval test -z \"\$NUM_CPUS\" -a ! -z \"$1\";do
7042 eval NUM_CPUS=`$GETCONF "$1" 2>/dev/null`
7043 shift
7044 done
7045 fi
7046 if eval test -z \"\$NUM_CPUS\" -o \"\$NUM_CPUS\" = "-1";then
7047 eval NUM_CPUS="1"
7048 fi
7049
7050
7051 fi
7052
7053 ah_NUM_CPUS_msg="$NUM_CPUS"
7054 if test "$NUM_CPUS" = "0"; then
7055 # broken getconf, time to bitch.
7056 ah_NUM_CPUS_msg="found 0 cpus. Has someone done a lobotomy?"
7057 NUM_CPUS=1
7058 fi
7059 if test $NUM_CPUS = 1 ;then
7060 default_PROC_MULTIPLY=1
7061 else
7062 default_PROC_MULTIPLY=2
7063 fi
7064 { echo "$as_me:$LINENO: result: $ah_NUM_CPUS_msg" >&5
7065 echo "${ECHO_T}$ah_NUM_CPUS_msg" >&6; }
7066
7067
7068
7069 { echo "$as_me:$LINENO: checking processor multiplier" >&5
7070 echo $ECHO_N "checking processor multiplier... $ECHO_C" >&6; }
7071
7072 # Check whether --with-proc-multiply was given.
7073 if test "${with_proc_multiply+set}" = set; then
7074 withval=$with_proc_multiply; if test "$withval" = "yes"; then
7075 PROC_MULTIPLY=$default_PROC_MULTIPLY
7076 elif test ! "$withval" = "no";then
7077 PROC_MULTIPLY=$withval
7078 fi
7079 else
7080 PROC_MULTIPLY=$default_PROC_MULTIPLY
7081
7082 fi
7083
7084 { echo "$as_me:$LINENO: result: $PROC_MULTIPLY" >&5
7085 echo "${ECHO_T}$PROC_MULTIPLY" >&6; }
7086
7087
7088
7089
7090 { echo "$as_me:$LINENO: checking number of processes to run during make" >&5
7091 echo $ECHO_N "checking number of processes to run during make... $ECHO_C" >&6; }
7092
7093 # Check whether --with-procs was given.
7094 if test "${with_procs+set}" = set; then
7095 withval=$with_procs; if test "$withval" = "yes"; then
7096 NUM_PROCS=`expr $NUM_CPUS \* $PROC_MULTIPLY`
7097 elif test ! "$withval" = "no";then
7098 NUM_PROCS=$withval
7099 fi
7100 else
7101 NUM_PROCS=`expr $NUM_CPUS \* $PROC_MULTIPLY`
7102
7103 fi
7104
7105 { echo "$as_me:$LINENO: result: $NUM_PROCS" >&5
7106 echo "${ECHO_T}$NUM_PROCS" >&6; }
7107
7108
7109 { echo "$as_me:$LINENO: checking glibc version" >&5
7110 echo $ECHO_N "checking glibc version... $ECHO_C" >&6; }
7111 if test "${ac_cv_glibc_ver+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7113 else
7114 dummy=if$$
7115 cat <<_GLIBC_>$dummy.c
7116 #include <features.h>
7117 #include <stdio.h>
7118 #include <stdlib.h>
7119 int main(int argc, char **argv) { printf("libc6.%d",__GLIBC_MINOR__); exit(0); }
7120 _GLIBC_
7121 ${CC-cc} $dummy.c -o $dummy > /dev/null 2>&1
7122 if test "$?" = 0; then
7123 GLIBC_VER=`./$dummy`
7124 { echo "$as_me:$LINENO: result: $GLIBC_VER" >&5
7125 echo "${ECHO_T}$GLIBC_VER" >&6; }
7126 ac_cv_glibc_ver=$GLIBC_VER
7127 else
7128 { echo "$as_me:$LINENO: WARNING: cannot determine GNU C library minor version number" >&5
7129 echo "$as_me: WARNING: cannot determine GNU C library minor version number" >&2;}
7130 fi
7131 rm -f $dummy $dummy.c
7132
7133 fi
7134
7135 GLIBC_VER="-$ac_cv_glibc_ver"
7136
7137
7138 { echo "$as_me:$LINENO: checking libstdc++ version" >&5
7139 echo $ECHO_N "checking libstdc++ version... $ECHO_C" >&6; }
7140 dummy=if$$
7141 cat <<_LIBSTDCPP_>$dummy.cc
7142 #include <features.h>
7143 #include <stdio.h>
7144 #include <stdlib.h>
7145 int main(int argc, char **argv) { exit(0); }
7146 _LIBSTDCPP_
7147 ${CXX-c++} $dummy.cc -o $dummy > /dev/null 2>&1
7148
7149 if test "$?" = 0; then
7150 soname=`objdump -p ./$dummy |grep NEEDED|grep libstd`
7151 LIBSTDCPP_VER=`echo $soname | sed -e 's/.*NEEDED.*libstdc++\(-libc.*\(-.*\)\)\?.so.\(.*\)/\3\2/'`
7152 fi
7153 rm -f $dummy $dummy.cc
7154
7155 if test -z "$LIBSTDCPP_VER"; then
7156 { echo "$as_me:$LINENO: WARNING: cannot determine standard C++ library version number" >&5
7157 echo "$as_me: WARNING: cannot determine standard C++ library version number" >&2;}
7158 else
7159 { echo "$as_me:$LINENO: result: $LIBSTDCPP_VER" >&5
7160 echo "${ECHO_T}$LIBSTDCPP_VER" >&6; }
7161 LIBSTDCPP_VER="-$LIBSTDCPP_VER"
7162 fi
7163
7164
7165
7166 { echo "$as_me:$LINENO: checking if $CXX -MD works" >&5
7167 echo $ECHO_N "checking if $CXX -MD works... $ECHO_C" >&6; }
7168 touch gcc3dep.cc
7169 ${CXX-c++} -MD -o gcc3dep_test.o -c gcc3dep.cc
7170 rm -f gcc3dep.cc gcc3dep_test.o
7171 if test -e gcc3dep.d; then
7172 rm -f gcc3dep.d
7173 GCC_MD=input
7174 GCC3DEP=
7175 elif test -e gcc3dep_test.d; then
7176 rm -f gcc3dep_test.d
7177 GCC_MD=output
7178 GCC3DEP=yes
7179 else
7180 { { echo "$as_me:$LINENO: error: no" >&5
7181 echo "$as_me: error: no" >&2;}
7182 { (exit 1); exit 1; }; }
7183 fi
7184 { echo "$as_me:$LINENO: result: yes, for $GCC_MD" >&5
7185 echo "${ECHO_T}yes, for $GCC_MD" >&6; }
7186
7187
7188
7189 ALL_LINGUAS="bg bs ca cs cy da de dz el en_GB es eu fi fr gl hu it ja ko ku nb nl nn pl pt_BR pt ro ru sk sl sv tl vi zn_CN zh_TW"
7190 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7191 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
7192 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7193 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
7195 else
7196 cat >conftest.make <<\_ACEOF
7197 SHELL = /bin/sh
7198 all:
7199 @echo '@@@%%%=$(MAKE)=@@@%%%'
7200 _ACEOF
7201 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7202 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7203 *@@@%%%=?*=@@@%%%*)
7204 eval ac_cv_prog_make_${ac_make}_set=yes;;
7205 *)
7206 eval ac_cv_prog_make_${ac_make}_set=no;;
7207 esac
7208 rm -f conftest.make
7209 fi
7210 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7211 { echo "$as_me:$LINENO: result: yes" >&5
7212 echo "${ECHO_T}yes" >&6; }
7213 SET_MAKE=
7214 else
7215 { echo "$as_me:$LINENO: result: no" >&5
7216 echo "${ECHO_T}no" >&6; }
7217 SET_MAKE="MAKE=${MAKE-make}"
7218 fi
7219
7220 # Find a good install program. We prefer a C program (faster),
7221 # so one script is as good as another. But avoid the broken or
7222 # incompatible versions:
7223 # SysV /etc/install, /usr/sbin/install
7224 # SunOS /usr/etc/install
7225 # IRIX /sbin/install
7226 # AIX /bin/install
7227 # AmigaOS /C/install, which installs bootblocks on floppy discs
7228 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7229 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7230 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7231 # OS/2's system install, which has a completely different semantic
7232 # ./install, which can be erroneously created by make from ./install.sh.
7233 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7234 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7235 if test -z "$INSTALL"; then
7236 if test "${ac_cv_path_install+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7238 else
7239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240 for as_dir in $PATH
7241 do
7242 IFS=$as_save_IFS
7243 test -z "$as_dir" && as_dir=.
7244 # Account for people who put trailing slashes in PATH elements.
7245 case $as_dir/ in
7246 ./ | .// | /cC/* | \
7247 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7248 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7249 /usr/ucb/* ) ;;
7250 *)
7251 # OSF1 and SCO ODT 3.0 have their own names for install.
7252 # Don't use installbsd from OSF since it installs stuff as root
7253 # by default.
7254 for ac_prog in ginstall scoinst install; do
7255 for ac_exec_ext in '' $ac_executable_extensions; do
7256 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7257 if test $ac_prog = install &&
7258 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7259 # AIX install. It has an incompatible calling convention.
7260 :
7261 elif test $ac_prog = install &&
7262 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7263 # program-specific install script used by HP pwplus--don't use.
7264 :
7265 else
7266 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7267 break 3
7268 fi
7269 fi
7270 done
7271 done
7272 ;;
7273 esac
7274 done
7275 IFS=$as_save_IFS
7276
7277
7278 fi
7279 if test "${ac_cv_path_install+set}" = set; then
7280 INSTALL=$ac_cv_path_install
7281 else
7282 # As a last resort, use the slow shell script. Don't cache a
7283 # value for INSTALL within a source directory, because that will
7284 # break other packages using the cache if that directory is
7285 # removed, or if the value is a relative name.
7286 INSTALL=$ac_install_sh
7287 fi
7288 fi
7289 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7290 echo "${ECHO_T}$INSTALL" >&6; }
7291
7292 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7293 # It thinks the first close brace ends the variable substitution.
7294 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7295
7296 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7297
7298 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7299
7300 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
7301 # We used to keeping the `.' as first argument, in order to
7302 # allow $(mkdir_p) to be used without argument. As in
7303 # $(mkdir_p) $(somedir)
7304 # where $(somedir) is conditionally defined. However this is wrong
7305 # for two reasons:
7306 # 1. if the package is installed by a user who cannot write `.'
7307 # make install will fail,
7308 # 2. the above comment should most certainly read
7309 # $(mkdir_p) $(DESTDIR)$(somedir)
7310 # so it does not work when $(somedir) is undefined and
7311 # $(DESTDIR) is not.
7312 # To support the latter case, we have to write
7313 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
7314 # so the `.' trick is pointless.
7315 mkdir_p='mkdir -p --'
7316 else
7317 # On NextStep and OpenStep, the `mkdir' command does not
7318 # recognize any option. It will interpret all options as
7319 # directories to create, and then abort because `.' already
7320 # exists.
7321 for d in ./-p ./--version;
7322 do
7323 test -d $d && rmdir $d
7324 done
7325 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
7326 if test -f "$ac_aux_dir/mkinstalldirs"; then
7327 mkdir_p='$(mkinstalldirs)'
7328 else
7329 mkdir_p='$(install_sh) -d'
7330 fi
7331 fi
7332
7333
7334 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7335 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
7336 # Check whether --enable-nls was given.
7337 if test "${enable_nls+set}" = set; then
7338 enableval=$enable_nls; USE_NLS=$enableval
7339 else
7340 USE_NLS=yes
7341 fi
7342
7343 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7344 echo "${ECHO_T}$USE_NLS" >&6; }
7345
7346
7347
7348
7349
7350
7351 # Prepare PATH_SEPARATOR.
7352 # The user is always right.
7353 if test "${PATH_SEPARATOR+set}" != set; then
7354 echo "#! /bin/sh" >conf$$.sh
7355 echo "exit 0" >>conf$$.sh
7356 chmod +x conf$$.sh
7357 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7358 PATH_SEPARATOR=';'
7359 else
7360 PATH_SEPARATOR=:
7361 fi
7362 rm -f conf$$.sh
7363 fi
7364
7365 # Find out how to test for executable files. Don't use a zero-byte file,
7366 # as systems may use methods other than mode bits to determine executability.
7367 cat >conf$$.file <<_ASEOF
7368 #! /bin/sh
7369 exit 0
7370 _ASEOF
7371 chmod +x conf$$.file
7372 if test -x conf$$.file >/dev/null 2>&1; then
7373 ac_executable_p="test -x"
7374 else
7375 ac_executable_p="test -f"
7376 fi
7377 rm -f conf$$.file
7378
7379 # Extract the first word of "msgfmt", so it can be a program name with args.
7380 set dummy msgfmt; ac_word=$2
7381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7383 if test "${ac_cv_path_MSGFMT+set}" = set; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
7385 else
7386 case "$MSGFMT" in
7387 [\\/]* | ?:[\\/]*)
7388 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7389 ;;
7390 *)
7391 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7392 for ac_dir in $PATH; do
7393 IFS="$ac_save_IFS"
7394 test -z "$ac_dir" && ac_dir=.
7395 for ac_exec_ext in '' $ac_executable_extensions; do
7396 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7397 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7398 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
7399 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7400 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7401 break 2
7402 fi
7403 fi
7404 done
7405 done
7406 IFS="$ac_save_IFS"
7407 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7408 ;;
7409 esac
7410 fi
7411 MSGFMT="$ac_cv_path_MSGFMT"
7412 if test "$MSGFMT" != ":"; then
7413 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7414 echo "${ECHO_T}$MSGFMT" >&6; }
7415 else
7416 { echo "$as_me:$LINENO: result: no" >&5
7417 echo "${ECHO_T}no" >&6; }
7418 fi
7419
7420 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7421 set dummy gmsgfmt; ac_word=$2
7422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7424 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7425 echo $ECHO_N "(cached) $ECHO_C" >&6
7426 else
7427 case $GMSGFMT in
7428 [\\/]* | ?:[\\/]*)
7429 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7430 ;;
7431 *)
7432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7433 for as_dir in $PATH
7434 do
7435 IFS=$as_save_IFS
7436 test -z "$as_dir" && as_dir=.
7437 for ac_exec_ext in '' $ac_executable_extensions; do
7438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7439 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7441 break 2
7442 fi
7443 done
7444 done
7445 IFS=$as_save_IFS
7446
7447 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7448 ;;
7449 esac
7450 fi
7451 GMSGFMT=$ac_cv_path_GMSGFMT
7452 if test -n "$GMSGFMT"; then
7453 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7454 echo "${ECHO_T}$GMSGFMT" >&6; }
7455 else
7456 { echo "$as_me:$LINENO: result: no" >&5
7457 echo "${ECHO_T}no" >&6; }
7458 fi
7459
7460
7461
7462 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7463 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
7464 *) MSGFMT_015=$MSGFMT ;;
7465 esac
7466
7467 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7468 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
7469 *) GMSGFMT_015=$GMSGFMT ;;
7470 esac
7471
7472
7473
7474 # Prepare PATH_SEPARATOR.
7475 # The user is always right.
7476 if test "${PATH_SEPARATOR+set}" != set; then
7477 echo "#! /bin/sh" >conf$$.sh
7478 echo "exit 0" >>conf$$.sh
7479 chmod +x conf$$.sh
7480 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7481 PATH_SEPARATOR=';'
7482 else
7483 PATH_SEPARATOR=:
7484 fi
7485 rm -f conf$$.sh
7486 fi
7487
7488 # Find out how to test for executable files. Don't use a zero-byte file,
7489 # as systems may use methods other than mode bits to determine executability.
7490 cat >conf$$.file <<_ASEOF
7491 #! /bin/sh
7492 exit 0
7493 _ASEOF
7494 chmod +x conf$$.file
7495 if test -x conf$$.file >/dev/null 2>&1; then
7496 ac_executable_p="test -x"
7497 else
7498 ac_executable_p="test -f"
7499 fi
7500 rm -f conf$$.file
7501
7502 # Extract the first word of "xgettext", so it can be a program name with args.
7503 set dummy xgettext; ac_word=$2
7504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7506 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7507 echo $ECHO_N "(cached) $ECHO_C" >&6
7508 else
7509 case "$XGETTEXT" in
7510 [\\/]* | ?:[\\/]*)
7511 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7512 ;;
7513 *)
7514 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7515 for ac_dir in $PATH; do
7516 IFS="$ac_save_IFS"
7517 test -z "$ac_dir" && ac_dir=.
7518 for ac_exec_ext in '' $ac_executable_extensions; do
7519 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7520 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7521 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
7522 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7523 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7524 break 2
7525 fi
7526 fi
7527 done
7528 done
7529 IFS="$ac_save_IFS"
7530 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7531 ;;
7532 esac
7533 fi
7534 XGETTEXT="$ac_cv_path_XGETTEXT"
7535 if test "$XGETTEXT" != ":"; then
7536 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7537 echo "${ECHO_T}$XGETTEXT" >&6; }
7538 else
7539 { echo "$as_me:$LINENO: result: no" >&5
7540 echo "${ECHO_T}no" >&6; }
7541 fi
7542
7543 rm -f messages.po
7544
7545 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7546 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
7547 *) XGETTEXT_015=$XGETTEXT ;;
7548 esac
7549
7550
7551
7552 # Prepare PATH_SEPARATOR.
7553 # The user is always right.
7554 if test "${PATH_SEPARATOR+set}" != set; then
7555 echo "#! /bin/sh" >conf$$.sh
7556 echo "exit 0" >>conf$$.sh
7557 chmod +x conf$$.sh
7558 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7559 PATH_SEPARATOR=';'
7560 else
7561 PATH_SEPARATOR=:
7562 fi
7563 rm -f conf$$.sh
7564 fi
7565
7566 # Find out how to test for executable files. Don't use a zero-byte file,
7567 # as systems may use methods other than mode bits to determine executability.
7568 cat >conf$$.file <<_ASEOF
7569 #! /bin/sh
7570 exit 0
7571 _ASEOF
7572 chmod +x conf$$.file
7573 if test -x conf$$.file >/dev/null 2>&1; then
7574 ac_executable_p="test -x"
7575 else
7576 ac_executable_p="test -f"
7577 fi
7578 rm -f conf$$.file
7579
7580 # Extract the first word of "msgmerge", so it can be a program name with args.
7581 set dummy msgmerge; ac_word=$2
7582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7584 if test "${ac_cv_path_MSGMERGE+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7586 else
7587 case "$MSGMERGE" in
7588 [\\/]* | ?:[\\/]*)
7589 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7590 ;;
7591 *)
7592 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7593 for ac_dir in $PATH; do
7594 IFS="$ac_save_IFS"
7595 test -z "$ac_dir" && ac_dir=.
7596 for ac_exec_ext in '' $ac_executable_extensions; do
7597 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7598 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7599 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
7600 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7601 break 2
7602 fi
7603 fi
7604 done
7605 done
7606 IFS="$ac_save_IFS"
7607 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7608 ;;
7609 esac
7610 fi
7611 MSGMERGE="$ac_cv_path_MSGMERGE"
7612 if test "$MSGMERGE" != ":"; then
7613 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
7614 echo "${ECHO_T}$MSGMERGE" >&6; }
7615 else
7616 { echo "$as_me:$LINENO: result: no" >&5
7617 echo "${ECHO_T}no" >&6; }
7618 fi
7619
7620
7621 test -n "$localedir" || localedir='${datadir}/locale'
7622
7623
7624 ac_config_commands="$ac_config_commands po-directories"
7625
7626
7627
7628 if test "X$prefix" = "XNONE"; then
7629 acl_final_prefix="$ac_default_prefix"
7630 else
7631 acl_final_prefix="$prefix"
7632 fi
7633 if test "X$exec_prefix" = "XNONE"; then
7634 acl_final_exec_prefix='${prefix}'
7635 else
7636 acl_final_exec_prefix="$exec_prefix"
7637 fi
7638 acl_save_prefix="$prefix"
7639 prefix="$acl_final_prefix"
7640 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7641 prefix="$acl_save_prefix"
7642
7643
7644 # Check whether --with-gnu-ld was given.
7645 if test "${with_gnu_ld+set}" = set; then
7646 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7647 else
7648 with_gnu_ld=no
7649 fi
7650
7651 # Prepare PATH_SEPARATOR.
7652 # The user is always right.
7653 if test "${PATH_SEPARATOR+set}" != set; then
7654 echo "#! /bin/sh" >conf$$.sh
7655 echo "exit 0" >>conf$$.sh
7656 chmod +x conf$$.sh
7657 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7658 PATH_SEPARATOR=';'
7659 else
7660 PATH_SEPARATOR=:
7661 fi
7662 rm -f conf$$.sh
7663 fi
7664 ac_prog=ld
7665 if test "$GCC" = yes; then
7666 # Check if gcc -print-prog-name=ld gives a path.
7667 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7668 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
7669 case $host in
7670 *-*-mingw*)
7671 # gcc leaves a trailing carriage return which upsets mingw
7672 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7673 *)
7674 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7675 esac
7676 case $ac_prog in
7677 # Accept absolute paths.
7678 [\\/]* | [A-Za-z]:[\\/]*)
7679 re_direlt='/[^/][^/]*/\.\./'
7680 # Canonicalize the path of ld
7681 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7682 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7683 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7684 done
7685 test -z "$LD" && LD="$ac_prog"
7686 ;;
7687 "")
7688 # If it fails, then pretend we aren't using GCC.
7689 ac_prog=ld
7690 ;;
7691 *)
7692 # If it is relative, then search for the first ld in PATH.
7693 with_gnu_ld=unknown
7694 ;;
7695 esac
7696 elif test "$with_gnu_ld" = yes; then
7697 { echo "$as_me:$LINENO: checking for GNU ld" >&5
7698 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
7699 else
7700 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7701 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
7702 fi
7703 if test "${acl_cv_path_LD+set}" = set; then
7704 echo $ECHO_N "(cached) $ECHO_C" >&6
7705 else
7706 if test -z "$LD"; then
7707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7708 for ac_dir in $PATH; do
7709 test -z "$ac_dir" && ac_dir=.
7710 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7711 acl_cv_path_LD="$ac_dir/$ac_prog"
7712 # Check to see if the program is GNU ld. I'd rather use --version,
7713 # but apparently some GNU ld's only accept -v.
7714 # Break only if it was the GNU/non-GNU ld that we prefer.
7715 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7716 *GNU* | *'with BFD'*)
7717 test "$with_gnu_ld" != no && break ;;
7718 *)
7719 test "$with_gnu_ld" != yes && break ;;
7720 esac
7721 fi
7722 done
7723 IFS="$ac_save_ifs"
7724 else
7725 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7726 fi
7727 fi
7728
7729 LD="$acl_cv_path_LD"
7730 if test -n "$LD"; then
7731 { echo "$as_me:$LINENO: result: $LD" >&5
7732 echo "${ECHO_T}$LD" >&6; }
7733 else
7734 { echo "$as_me:$LINENO: result: no" >&5
7735 echo "${ECHO_T}no" >&6; }
7736 fi
7737 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7738 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7739 { (exit 1); exit 1; }; }
7740 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7741 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
7742 if test "${acl_cv_prog_gnu_ld+set}" = set; then
7743 echo $ECHO_N "(cached) $ECHO_C" >&6
7744 else
7745 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7746 case `$LD -v 2>&1 </dev/null` in
7747 *GNU* | *'with BFD'*)
7748 acl_cv_prog_gnu_ld=yes ;;
7749 *)
7750 acl_cv_prog_gnu_ld=no ;;
7751 esac
7752 fi
7753 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7754 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
7755 with_gnu_ld=$acl_cv_prog_gnu_ld
7756
7757
7758
7759
7760 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7761 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
7762 if test "${acl_cv_rpath+set}" = set; then
7763 echo $ECHO_N "(cached) $ECHO_C" >&6
7764 else
7765
7766 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7767 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7768 . ./conftest.sh
7769 rm -f ./conftest.sh
7770 acl_cv_rpath=done
7771
7772 fi
7773 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7774 echo "${ECHO_T}$acl_cv_rpath" >&6; }
7775 wl="$acl_cv_wl"
7776 libext="$acl_cv_libext"
7777 shlibext="$acl_cv_shlibext"
7778 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7779 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7780 hardcode_direct="$acl_cv_hardcode_direct"
7781 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7782 # Check whether --enable-rpath was given.
7783 if test "${enable_rpath+set}" = set; then
7784 enableval=$enable_rpath; :
7785 else
7786 enable_rpath=yes
7787 fi
7788
7789
7790
7791 acl_libdirstem=lib
7792 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7793 if test -n "$searchpath"; then
7794 acl_save_IFS="${IFS= }"; IFS=":"
7795 for searchdir in $searchpath; do
7796 if test -d "$searchdir"; then
7797 case "$searchdir" in
7798 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7799 *) searchdir=`cd "$searchdir" && pwd`
7800 case "$searchdir" in
7801 */lib64 ) acl_libdirstem=lib64 ;;
7802 esac ;;
7803 esac
7804 fi
7805 done
7806 IFS="$acl_save_IFS"
7807 fi
7808
7809
7810
7811
7812
7813
7814
7815
7816 use_additional=yes
7817
7818 acl_save_prefix="$prefix"
7819 prefix="$acl_final_prefix"
7820 acl_save_exec_prefix="$exec_prefix"
7821 exec_prefix="$acl_final_exec_prefix"
7822
7823 eval additional_includedir=\"$includedir\"
7824 eval additional_libdir=\"$libdir\"
7825
7826 exec_prefix="$acl_save_exec_prefix"
7827 prefix="$acl_save_prefix"
7828
7829
7830 # Check whether --with-libiconv-prefix was given.
7831 if test "${with_libiconv_prefix+set}" = set; then
7832 withval=$with_libiconv_prefix;
7833 if test "X$withval" = "Xno"; then
7834 use_additional=no
7835 else
7836 if test "X$withval" = "X"; then
7837
7838 acl_save_prefix="$prefix"
7839 prefix="$acl_final_prefix"
7840 acl_save_exec_prefix="$exec_prefix"
7841 exec_prefix="$acl_final_exec_prefix"
7842
7843 eval additional_includedir=\"$includedir\"
7844 eval additional_libdir=\"$libdir\"
7845
7846 exec_prefix="$acl_save_exec_prefix"
7847 prefix="$acl_save_prefix"
7848
7849 else
7850 additional_includedir="$withval/include"
7851 additional_libdir="$withval/$acl_libdirstem"
7852 fi
7853 fi
7854
7855 fi
7856
7857 LIBICONV=
7858 LTLIBICONV=
7859 INCICONV=
7860 rpathdirs=
7861 ltrpathdirs=
7862 names_already_handled=
7863 names_next_round='iconv '
7864 while test -n "$names_next_round"; do
7865 names_this_round="$names_next_round"
7866 names_next_round=
7867 for name in $names_this_round; do
7868 already_handled=
7869 for n in $names_already_handled; do
7870 if test "$n" = "$name"; then
7871 already_handled=yes
7872 break
7873 fi
7874 done
7875 if test -z "$already_handled"; then
7876 names_already_handled="$names_already_handled $name"
7877 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7878 eval value=\"\$HAVE_LIB$uppername\"
7879 if test -n "$value"; then
7880 if test "$value" = yes; then
7881 eval value=\"\$LIB$uppername\"
7882 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7883 eval value=\"\$LTLIB$uppername\"
7884 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7885 else
7886 :
7887 fi
7888 else
7889 found_dir=
7890 found_la=
7891 found_so=
7892 found_a=
7893 if test $use_additional = yes; then
7894 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7895 found_dir="$additional_libdir"
7896 found_so="$additional_libdir/lib$name.$shlibext"
7897 if test -f "$additional_libdir/lib$name.la"; then
7898 found_la="$additional_libdir/lib$name.la"
7899 fi
7900 else
7901 if test -f "$additional_libdir/lib$name.$libext"; then
7902 found_dir="$additional_libdir"
7903 found_a="$additional_libdir/lib$name.$libext"
7904 if test -f "$additional_libdir/lib$name.la"; then
7905 found_la="$additional_libdir/lib$name.la"
7906 fi
7907 fi
7908 fi
7909 fi
7910 if test "X$found_dir" = "X"; then
7911 for x in $LDFLAGS $LTLIBICONV; do
7912
7913 acl_save_prefix="$prefix"
7914 prefix="$acl_final_prefix"
7915 acl_save_exec_prefix="$exec_prefix"
7916 exec_prefix="$acl_final_exec_prefix"
7917 eval x=\"$x\"
7918 exec_prefix="$acl_save_exec_prefix"
7919 prefix="$acl_save_prefix"
7920
7921 case "$x" in
7922 -L*)
7923 dir=`echo "X$x" | sed -e 's/^X-L//'`
7924 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7925 found_dir="$dir"
7926 found_so="$dir/lib$name.$shlibext"
7927 if test -f "$dir/lib$name.la"; then
7928 found_la="$dir/lib$name.la"
7929 fi
7930 else
7931 if test -f "$dir/lib$name.$libext"; then
7932 found_dir="$dir"
7933 found_a="$dir/lib$name.$libext"
7934 if test -f "$dir/lib$name.la"; then
7935 found_la="$dir/lib$name.la"
7936 fi
7937 fi
7938 fi
7939 ;;
7940 esac
7941 if test "X$found_dir" != "X"; then
7942 break
7943 fi
7944 done
7945 fi
7946 if test "X$found_dir" != "X"; then
7947 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7948 if test "X$found_so" != "X"; then
7949 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
7950 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7951 else
7952 haveit=
7953 for x in $ltrpathdirs; do
7954 if test "X$x" = "X$found_dir"; then
7955 haveit=yes
7956 break
7957 fi
7958 done
7959 if test -z "$haveit"; then
7960 ltrpathdirs="$ltrpathdirs $found_dir"
7961 fi
7962 if test "$hardcode_direct" = yes; then
7963 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7964 else
7965 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7966 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7967 haveit=
7968 for x in $rpathdirs; do
7969 if test "X$x" = "X$found_dir"; then
7970 haveit=yes
7971 break
7972 fi
7973 done
7974 if test -z "$haveit"; then
7975 rpathdirs="$rpathdirs $found_dir"
7976 fi
7977 else
7978 haveit=
7979 for x in $LDFLAGS $LIBICONV; do
7980
7981 acl_save_prefix="$prefix"
7982 prefix="$acl_final_prefix"
7983 acl_save_exec_prefix="$exec_prefix"
7984 exec_prefix="$acl_final_exec_prefix"
7985 eval x=\"$x\"
7986 exec_prefix="$acl_save_exec_prefix"
7987 prefix="$acl_save_prefix"
7988
7989 if test "X$x" = "X-L$found_dir"; then
7990 haveit=yes
7991 break
7992 fi
7993 done
7994 if test -z "$haveit"; then
7995 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7996 fi
7997 if test "$hardcode_minus_L" != no; then
7998 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7999 else
8000 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8001 fi
8002 fi
8003 fi
8004 fi
8005 else
8006 if test "X$found_a" != "X"; then
8007 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8008 else
8009 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8010 fi
8011 fi
8012 additional_includedir=
8013 case "$found_dir" in
8014 */$acl_libdirstem | */$acl_libdirstem/)
8015 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8016 additional_includedir="$basedir/include"
8017 ;;
8018 esac
8019 if test "X$additional_includedir" != "X"; then
8020 if test "X$additional_includedir" != "X/usr/include"; then
8021 haveit=
8022 if test "X$additional_includedir" = "X/usr/local/include"; then
8023 if test -n "$GCC"; then
8024 case $host_os in
8025 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8026 esac
8027 fi
8028 fi
8029 if test -z "$haveit"; then
8030 for x in $CPPFLAGS $INCICONV; do
8031
8032 acl_save_prefix="$prefix"
8033 prefix="$acl_final_prefix"
8034 acl_save_exec_prefix="$exec_prefix"
8035 exec_prefix="$acl_final_exec_prefix"
8036 eval x=\"$x\"
8037 exec_prefix="$acl_save_exec_prefix"
8038 prefix="$acl_save_prefix"
8039
8040 if test "X$x" = "X-I$additional_includedir"; then
8041 haveit=yes
8042 break
8043 fi
8044 done
8045 if test -z "$haveit"; then
8046 if test -d "$additional_includedir"; then
8047 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8048 fi
8049 fi
8050 fi
8051 fi
8052 fi
8053 if test -n "$found_la"; then
8054 save_libdir="$libdir"
8055 case "$found_la" in
8056 */* | *\\*) . "$found_la" ;;
8057 *) . "./$found_la" ;;
8058 esac
8059 libdir="$save_libdir"
8060 for dep in $dependency_libs; do
8061 case "$dep" in
8062 -L*)
8063 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8064 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
8065 haveit=
8066 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
8067 if test -n "$GCC"; then
8068 case $host_os in
8069 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8070 esac
8071 fi
8072 fi
8073 if test -z "$haveit"; then
8074 haveit=
8075 for x in $LDFLAGS $LIBICONV; do
8076
8077 acl_save_prefix="$prefix"
8078 prefix="$acl_final_prefix"
8079 acl_save_exec_prefix="$exec_prefix"
8080 exec_prefix="$acl_final_exec_prefix"
8081 eval x=\"$x\"
8082 exec_prefix="$acl_save_exec_prefix"
8083 prefix="$acl_save_prefix"
8084
8085 if test "X$x" = "X-L$additional_libdir"; then
8086 haveit=yes
8087 break
8088 fi
8089 done
8090 if test -z "$haveit"; then
8091 if test -d "$additional_libdir"; then
8092 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8093 fi
8094 fi
8095 haveit=
8096 for x in $LDFLAGS $LTLIBICONV; do
8097
8098 acl_save_prefix="$prefix"
8099 prefix="$acl_final_prefix"
8100 acl_save_exec_prefix="$exec_prefix"
8101 exec_prefix="$acl_final_exec_prefix"
8102 eval x=\"$x\"
8103 exec_prefix="$acl_save_exec_prefix"
8104 prefix="$acl_save_prefix"
8105
8106 if test "X$x" = "X-L$additional_libdir"; then
8107 haveit=yes
8108 break
8109 fi
8110 done
8111 if test -z "$haveit"; then
8112 if test -d "$additional_libdir"; then
8113 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8114 fi
8115 fi
8116 fi
8117 fi
8118 ;;
8119 -R*)
8120 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8121 if test "$enable_rpath" != no; then
8122 haveit=
8123 for x in $rpathdirs; do
8124 if test "X$x" = "X$dir"; then
8125 haveit=yes
8126 break
8127 fi
8128 done
8129 if test -z "$haveit"; then
8130 rpathdirs="$rpathdirs $dir"
8131 fi
8132 haveit=
8133 for x in $ltrpathdirs; do
8134 if test "X$x" = "X$dir"; then
8135 haveit=yes
8136 break
8137 fi
8138 done
8139 if test -z "$haveit"; then
8140 ltrpathdirs="$ltrpathdirs $dir"
8141 fi
8142 fi
8143 ;;
8144 -l*)
8145 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8146 ;;
8147 *.la)
8148 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8149 ;;
8150 *)
8151 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8152 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8153 ;;
8154 esac
8155 done
8156 fi
8157 else
8158 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8159 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8160 fi
8161 fi
8162 fi
8163 done
8164 done
8165 if test "X$rpathdirs" != "X"; then
8166 if test -n "$hardcode_libdir_separator"; then
8167 alldirs=
8168 for found_dir in $rpathdirs; do
8169 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8170 done
8171 acl_save_libdir="$libdir"
8172 libdir="$alldirs"
8173 eval flag=\"$hardcode_libdir_flag_spec\"
8174 libdir="$acl_save_libdir"
8175 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8176 else
8177 for found_dir in $rpathdirs; do
8178 acl_save_libdir="$libdir"
8179 libdir="$found_dir"
8180 eval flag=\"$hardcode_libdir_flag_spec\"
8181 libdir="$acl_save_libdir"
8182 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8183 done
8184 fi
8185 fi
8186 if test "X$ltrpathdirs" != "X"; then
8187 for found_dir in $ltrpathdirs; do
8188 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8189 done
8190 fi
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
8210 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
8211 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
8212 echo $ECHO_N "(cached) $ECHO_C" >&6
8213 else
8214 gt_save_LIBS="$LIBS"
8215 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8216 cat >conftest.$ac_ext <<_ACEOF
8217 /* confdefs.h. */
8218 _ACEOF
8219 cat confdefs.h >>conftest.$ac_ext
8220 cat >>conftest.$ac_ext <<_ACEOF
8221 /* end confdefs.h. */
8222 #include <CoreFoundation/CFPreferences.h>
8223 int
8224 main ()
8225 {
8226 CFPreferencesCopyAppValue(NULL, NULL)
8227 ;
8228 return 0;
8229 }
8230 _ACEOF
8231 rm -f conftest.$ac_objext conftest$ac_exeext
8232 if { (ac_try="$ac_link"
8233 case "(($ac_try" in
8234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8235 *) ac_try_echo=$ac_try;;
8236 esac
8237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8238 (eval "$ac_link") 2>conftest.er1
8239 ac_status=$?
8240 grep -v '^ *+' conftest.er1 >conftest.err
8241 rm -f conftest.er1
8242 cat conftest.err >&5
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); } && {
8245 test -z "$ac_c_werror_flag" ||
8246 test ! -s conftest.err
8247 } && test -s conftest$ac_exeext &&
8248 $as_test_x conftest$ac_exeext; then
8249 gt_cv_func_CFPreferencesCopyAppValue=yes
8250 else
8251 echo "$as_me: failed program was:" >&5
8252 sed 's/^/| /' conftest.$ac_ext >&5
8253
8254 gt_cv_func_CFPreferencesCopyAppValue=no
8255 fi
8256
8257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8258 conftest$ac_exeext conftest.$ac_ext
8259 LIBS="$gt_save_LIBS"
8260 fi
8261 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
8262 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
8263 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
8264
8265 cat >>confdefs.h <<\_ACEOF
8266 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
8267 _ACEOF
8268
8269 fi
8270 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
8271 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
8272 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
8273 echo $ECHO_N "(cached) $ECHO_C" >&6
8274 else
8275 gt_save_LIBS="$LIBS"
8276 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8277 cat >conftest.$ac_ext <<_ACEOF
8278 /* confdefs.h. */
8279 _ACEOF
8280 cat confdefs.h >>conftest.$ac_ext
8281 cat >>conftest.$ac_ext <<_ACEOF
8282 /* end confdefs.h. */
8283 #include <CoreFoundation/CFLocale.h>
8284 int
8285 main ()
8286 {
8287 CFLocaleCopyCurrent();
8288 ;
8289 return 0;
8290 }
8291 _ACEOF
8292 rm -f conftest.$ac_objext conftest$ac_exeext
8293 if { (ac_try="$ac_link"
8294 case "(($ac_try" in
8295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296 *) ac_try_echo=$ac_try;;
8297 esac
8298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8299 (eval "$ac_link") 2>conftest.er1
8300 ac_status=$?
8301 grep -v '^ *+' conftest.er1 >conftest.err
8302 rm -f conftest.er1
8303 cat conftest.err >&5
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); } && {
8306 test -z "$ac_c_werror_flag" ||
8307 test ! -s conftest.err
8308 } && test -s conftest$ac_exeext &&
8309 $as_test_x conftest$ac_exeext; then
8310 gt_cv_func_CFLocaleCopyCurrent=yes
8311 else
8312 echo "$as_me: failed program was:" >&5
8313 sed 's/^/| /' conftest.$ac_ext >&5
8314
8315 gt_cv_func_CFLocaleCopyCurrent=no
8316 fi
8317
8318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8319 conftest$ac_exeext conftest.$ac_ext
8320 LIBS="$gt_save_LIBS"
8321 fi
8322 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
8323 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
8324 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8325
8326 cat >>confdefs.h <<\_ACEOF
8327 #define HAVE_CFLOCALECOPYCURRENT 1
8328 _ACEOF
8329
8330 fi
8331 INTL_MACOSX_LIBS=
8332 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8333 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
8334 fi
8335
8336
8337
8338
8339
8340
8341 LIBINTL=
8342 LTLIBINTL=
8343 POSUB=
8344
8345 if test "$USE_NLS" = "yes"; then
8346 gt_use_preinstalled_gnugettext=no
8347
8348
8349
8350
8351
8352
8353 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
8354 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
8355 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
8356 echo $ECHO_N "(cached) $ECHO_C" >&6
8357 else
8358 cat >conftest.$ac_ext <<_ACEOF
8359 /* confdefs.h. */
8360 _ACEOF
8361 cat confdefs.h >>conftest.$ac_ext
8362 cat >>conftest.$ac_ext <<_ACEOF
8363 /* end confdefs.h. */
8364 #include <libintl.h>
8365 extern int _nl_msg_cat_cntr;
8366 extern int *_nl_domain_bindings;
8367 int
8368 main ()
8369 {
8370 bindtextdomain ("", "");
8371 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8372 ;
8373 return 0;
8374 }
8375 _ACEOF
8376 rm -f conftest.$ac_objext conftest$ac_exeext
8377 if { (ac_try="$ac_link"
8378 case "(($ac_try" in
8379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8380 *) ac_try_echo=$ac_try;;
8381 esac
8382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8383 (eval "$ac_link") 2>conftest.er1
8384 ac_status=$?
8385 grep -v '^ *+' conftest.er1 >conftest.err
8386 rm -f conftest.er1
8387 cat conftest.err >&5
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); } && {
8390 test -z "$ac_c_werror_flag" ||
8391 test ! -s conftest.err
8392 } && test -s conftest$ac_exeext &&
8393 $as_test_x conftest$ac_exeext; then
8394 gt_cv_func_gnugettext1_libc=yes
8395 else
8396 echo "$as_me: failed program was:" >&5
8397 sed 's/^/| /' conftest.$ac_ext >&5
8398
8399 gt_cv_func_gnugettext1_libc=no
8400 fi
8401
8402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8403 conftest$ac_exeext conftest.$ac_ext
8404 fi
8405 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
8406 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
8407
8408 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8409
8410
8411
8412
8413
8414 am_save_CPPFLAGS="$CPPFLAGS"
8415
8416 for element in $INCICONV; do
8417 haveit=
8418 for x in $CPPFLAGS; do
8419
8420 acl_save_prefix="$prefix"
8421 prefix="$acl_final_prefix"
8422 acl_save_exec_prefix="$exec_prefix"
8423 exec_prefix="$acl_final_exec_prefix"
8424 eval x=\"$x\"
8425 exec_prefix="$acl_save_exec_prefix"
8426 prefix="$acl_save_prefix"
8427
8428 if test "X$x" = "X$element"; then
8429 haveit=yes
8430 break
8431 fi
8432 done
8433 if test -z "$haveit"; then
8434 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8435 fi
8436 done
8437
8438
8439 { echo "$as_me:$LINENO: checking for iconv" >&5
8440 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
8441 if test "${am_cv_func_iconv+set}" = set; then
8442 echo $ECHO_N "(cached) $ECHO_C" >&6
8443 else
8444
8445 am_cv_func_iconv="no, consider installing GNU libiconv"
8446 am_cv_lib_iconv=no
8447 cat >conftest.$ac_ext <<_ACEOF
8448 /* confdefs.h. */
8449 _ACEOF
8450 cat confdefs.h >>conftest.$ac_ext
8451 cat >>conftest.$ac_ext <<_ACEOF
8452 /* end confdefs.h. */
8453 #include <stdlib.h>
8454 #include <iconv.h>
8455 int
8456 main ()
8457 {
8458 iconv_t cd = iconv_open("","");
8459 iconv(cd,NULL,NULL,NULL,NULL);
8460 iconv_close(cd);
8461 ;
8462 return 0;
8463 }
8464 _ACEOF
8465 rm -f conftest.$ac_objext conftest$ac_exeext
8466 if { (ac_try="$ac_link"
8467 case "(($ac_try" in
8468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8469 *) ac_try_echo=$ac_try;;
8470 esac
8471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8472 (eval "$ac_link") 2>conftest.er1
8473 ac_status=$?
8474 grep -v '^ *+' conftest.er1 >conftest.err
8475 rm -f conftest.er1
8476 cat conftest.err >&5
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); } && {
8479 test -z "$ac_c_werror_flag" ||
8480 test ! -s conftest.err
8481 } && test -s conftest$ac_exeext &&
8482 $as_test_x conftest$ac_exeext; then
8483 am_cv_func_iconv=yes
8484 else
8485 echo "$as_me: failed program was:" >&5
8486 sed 's/^/| /' conftest.$ac_ext >&5
8487
8488
8489 fi
8490
8491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8492 conftest$ac_exeext conftest.$ac_ext
8493 if test "$am_cv_func_iconv" != yes; then
8494 am_save_LIBS="$LIBS"
8495 LIBS="$LIBS $LIBICONV"
8496 cat >conftest.$ac_ext <<_ACEOF
8497 /* confdefs.h. */
8498 _ACEOF
8499 cat confdefs.h >>conftest.$ac_ext
8500 cat >>conftest.$ac_ext <<_ACEOF
8501 /* end confdefs.h. */
8502 #include <stdlib.h>
8503 #include <iconv.h>
8504 int
8505 main ()
8506 {
8507 iconv_t cd = iconv_open("","");
8508 iconv(cd,NULL,NULL,NULL,NULL);
8509 iconv_close(cd);
8510 ;
8511 return 0;
8512 }
8513 _ACEOF
8514 rm -f conftest.$ac_objext conftest$ac_exeext
8515 if { (ac_try="$ac_link"
8516 case "(($ac_try" in
8517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8518 *) ac_try_echo=$ac_try;;
8519 esac
8520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8521 (eval "$ac_link") 2>conftest.er1
8522 ac_status=$?
8523 grep -v '^ *+' conftest.er1 >conftest.err
8524 rm -f conftest.er1
8525 cat conftest.err >&5
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); } && {
8528 test -z "$ac_c_werror_flag" ||
8529 test ! -s conftest.err
8530 } && test -s conftest$ac_exeext &&
8531 $as_test_x conftest$ac_exeext; then
8532 am_cv_lib_iconv=yes
8533 am_cv_func_iconv=yes
8534 else
8535 echo "$as_me: failed program was:" >&5
8536 sed 's/^/| /' conftest.$ac_ext >&5
8537
8538
8539 fi
8540
8541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8542 conftest$ac_exeext conftest.$ac_ext
8543 LIBS="$am_save_LIBS"
8544 fi
8545
8546 fi
8547 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8548 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
8549 if test "$am_cv_func_iconv" = yes; then
8550
8551 cat >>confdefs.h <<\_ACEOF
8552 #define HAVE_ICONV 1
8553 _ACEOF
8554
8555 fi
8556 if test "$am_cv_lib_iconv" = yes; then
8557 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8558 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
8559 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
8560 echo "${ECHO_T}$LIBICONV" >&6; }
8561 else
8562 CPPFLAGS="$am_save_CPPFLAGS"
8563 LIBICONV=
8564 LTLIBICONV=
8565 fi
8566
8567
8568
8569
8570
8571
8572
8573 use_additional=yes
8574
8575 acl_save_prefix="$prefix"
8576 prefix="$acl_final_prefix"
8577 acl_save_exec_prefix="$exec_prefix"
8578 exec_prefix="$acl_final_exec_prefix"
8579
8580 eval additional_includedir=\"$includedir\"
8581 eval additional_libdir=\"$libdir\"
8582
8583 exec_prefix="$acl_save_exec_prefix"
8584 prefix="$acl_save_prefix"
8585
8586
8587 # Check whether --with-libintl-prefix was given.
8588 if test "${with_libintl_prefix+set}" = set; then
8589 withval=$with_libintl_prefix;
8590 if test "X$withval" = "Xno"; then
8591 use_additional=no
8592 else
8593 if test "X$withval" = "X"; then
8594
8595 acl_save_prefix="$prefix"
8596 prefix="$acl_final_prefix"
8597 acl_save_exec_prefix="$exec_prefix"
8598 exec_prefix="$acl_final_exec_prefix"
8599
8600 eval additional_includedir=\"$includedir\"
8601 eval additional_libdir=\"$libdir\"
8602
8603 exec_prefix="$acl_save_exec_prefix"
8604 prefix="$acl_save_prefix"
8605
8606 else
8607 additional_includedir="$withval/include"
8608 additional_libdir="$withval/$acl_libdirstem"
8609 fi
8610 fi
8611
8612 fi
8613
8614 LIBINTL=
8615 LTLIBINTL=
8616 INCINTL=
8617 rpathdirs=
8618 ltrpathdirs=
8619 names_already_handled=
8620 names_next_round='intl '
8621 while test -n "$names_next_round"; do
8622 names_this_round="$names_next_round"
8623 names_next_round=
8624 for name in $names_this_round; do
8625 already_handled=
8626 for n in $names_already_handled; do
8627 if test "$n" = "$name"; then
8628 already_handled=yes
8629 break
8630 fi
8631 done
8632 if test -z "$already_handled"; then
8633 names_already_handled="$names_already_handled $name"
8634 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8635 eval value=\"\$HAVE_LIB$uppername\"
8636 if test -n "$value"; then
8637 if test "$value" = yes; then
8638 eval value=\"\$LIB$uppername\"
8639 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8640 eval value=\"\$LTLIB$uppername\"
8641 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8642 else
8643 :
8644 fi
8645 else
8646 found_dir=
8647 found_la=
8648 found_so=
8649 found_a=
8650 if test $use_additional = yes; then
8651 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8652 found_dir="$additional_libdir"
8653 found_so="$additional_libdir/lib$name.$shlibext"
8654 if test -f "$additional_libdir/lib$name.la"; then
8655 found_la="$additional_libdir/lib$name.la"
8656 fi
8657 else
8658 if test -f "$additional_libdir/lib$name.$libext"; then
8659 found_dir="$additional_libdir"
8660 found_a="$additional_libdir/lib$name.$libext"
8661 if test -f "$additional_libdir/lib$name.la"; then
8662 found_la="$additional_libdir/lib$name.la"
8663 fi
8664 fi
8665 fi
8666 fi
8667 if test "X$found_dir" = "X"; then
8668 for x in $LDFLAGS $LTLIBINTL; do
8669
8670 acl_save_prefix="$prefix"
8671 prefix="$acl_final_prefix"
8672 acl_save_exec_prefix="$exec_prefix"
8673 exec_prefix="$acl_final_exec_prefix"
8674 eval x=\"$x\"
8675 exec_prefix="$acl_save_exec_prefix"
8676 prefix="$acl_save_prefix"
8677
8678 case "$x" in
8679 -L*)
8680 dir=`echo "X$x" | sed -e 's/^X-L//'`
8681 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8682 found_dir="$dir"
8683 found_so="$dir/lib$name.$shlibext"
8684 if test -f "$dir/lib$name.la"; then
8685 found_la="$dir/lib$name.la"
8686 fi
8687 else
8688 if test -f "$dir/lib$name.$libext"; then
8689 found_dir="$dir"
8690 found_a="$dir/lib$name.$libext"
8691 if test -f "$dir/lib$name.la"; then
8692 found_la="$dir/lib$name.la"
8693 fi
8694 fi
8695 fi
8696 ;;
8697 esac
8698 if test "X$found_dir" != "X"; then
8699 break
8700 fi
8701 done
8702 fi
8703 if test "X$found_dir" != "X"; then
8704 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8705 if test "X$found_so" != "X"; then
8706 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
8707 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8708 else
8709 haveit=
8710 for x in $ltrpathdirs; do
8711 if test "X$x" = "X$found_dir"; then
8712 haveit=yes
8713 break
8714 fi
8715 done
8716 if test -z "$haveit"; then
8717 ltrpathdirs="$ltrpathdirs $found_dir"
8718 fi
8719 if test "$hardcode_direct" = yes; then
8720 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8721 else
8722 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8723 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8724 haveit=
8725 for x in $rpathdirs; do
8726 if test "X$x" = "X$found_dir"; then
8727 haveit=yes
8728 break
8729 fi
8730 done
8731 if test -z "$haveit"; then
8732 rpathdirs="$rpathdirs $found_dir"
8733 fi
8734 else
8735 haveit=
8736 for x in $LDFLAGS $LIBINTL; do
8737
8738 acl_save_prefix="$prefix"
8739 prefix="$acl_final_prefix"
8740 acl_save_exec_prefix="$exec_prefix"
8741 exec_prefix="$acl_final_exec_prefix"
8742 eval x=\"$x\"
8743 exec_prefix="$acl_save_exec_prefix"
8744 prefix="$acl_save_prefix"
8745
8746 if test "X$x" = "X-L$found_dir"; then
8747 haveit=yes
8748 break
8749 fi
8750 done
8751 if test -z "$haveit"; then
8752 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8753 fi
8754 if test "$hardcode_minus_L" != no; then
8755 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8756 else
8757 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8758 fi
8759 fi
8760 fi
8761 fi
8762 else
8763 if test "X$found_a" != "X"; then
8764 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8765 else
8766 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8767 fi
8768 fi
8769 additional_includedir=
8770 case "$found_dir" in
8771 */$acl_libdirstem | */$acl_libdirstem/)
8772 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8773 additional_includedir="$basedir/include"
8774 ;;
8775 esac
8776 if test "X$additional_includedir" != "X"; then
8777 if test "X$additional_includedir" != "X/usr/include"; then
8778 haveit=
8779 if test "X$additional_includedir" = "X/usr/local/include"; then
8780 if test -n "$GCC"; then
8781 case $host_os in
8782 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8783 esac
8784 fi
8785 fi
8786 if test -z "$haveit"; then
8787 for x in $CPPFLAGS $INCINTL; do
8788
8789 acl_save_prefix="$prefix"
8790 prefix="$acl_final_prefix"
8791 acl_save_exec_prefix="$exec_prefix"
8792 exec_prefix="$acl_final_exec_prefix"
8793 eval x=\"$x\"
8794 exec_prefix="$acl_save_exec_prefix"
8795 prefix="$acl_save_prefix"
8796
8797 if test "X$x" = "X-I$additional_includedir"; then
8798 haveit=yes
8799 break
8800 fi
8801 done
8802 if test -z "$haveit"; then
8803 if test -d "$additional_includedir"; then
8804 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8805 fi
8806 fi
8807 fi
8808 fi
8809 fi
8810 if test -n "$found_la"; then
8811 save_libdir="$libdir"
8812 case "$found_la" in
8813 */* | *\\*) . "$found_la" ;;
8814 *) . "./$found_la" ;;
8815 esac
8816 libdir="$save_libdir"
8817 for dep in $dependency_libs; do
8818 case "$dep" in
8819 -L*)
8820 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8821 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
8822 haveit=
8823 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
8824 if test -n "$GCC"; then
8825 case $host_os in
8826 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8827 esac
8828 fi
8829 fi
8830 if test -z "$haveit"; then
8831 haveit=
8832 for x in $LDFLAGS $LIBINTL; do
8833
8834 acl_save_prefix="$prefix"
8835 prefix="$acl_final_prefix"
8836 acl_save_exec_prefix="$exec_prefix"
8837 exec_prefix="$acl_final_exec_prefix"
8838 eval x=\"$x\"
8839 exec_prefix="$acl_save_exec_prefix"
8840 prefix="$acl_save_prefix"
8841
8842 if test "X$x" = "X-L$additional_libdir"; then
8843 haveit=yes
8844 break
8845 fi
8846 done
8847 if test -z "$haveit"; then
8848 if test -d "$additional_libdir"; then
8849 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8850 fi
8851 fi
8852 haveit=
8853 for x in $LDFLAGS $LTLIBINTL; do
8854
8855 acl_save_prefix="$prefix"
8856 prefix="$acl_final_prefix"
8857 acl_save_exec_prefix="$exec_prefix"
8858 exec_prefix="$acl_final_exec_prefix"
8859 eval x=\"$x\"
8860 exec_prefix="$acl_save_exec_prefix"
8861 prefix="$acl_save_prefix"
8862
8863 if test "X$x" = "X-L$additional_libdir"; then
8864 haveit=yes
8865 break
8866 fi
8867 done
8868 if test -z "$haveit"; then
8869 if test -d "$additional_libdir"; then
8870 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8871 fi
8872 fi
8873 fi
8874 fi
8875 ;;
8876 -R*)
8877 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8878 if test "$enable_rpath" != no; then
8879 haveit=
8880 for x in $rpathdirs; do
8881 if test "X$x" = "X$dir"; then
8882 haveit=yes
8883 break
8884 fi
8885 done
8886 if test -z "$haveit"; then
8887 rpathdirs="$rpathdirs $dir"
8888 fi
8889 haveit=
8890 for x in $ltrpathdirs; do
8891 if test "X$x" = "X$dir"; then
8892 haveit=yes
8893 break
8894 fi
8895 done
8896 if test -z "$haveit"; then
8897 ltrpathdirs="$ltrpathdirs $dir"
8898 fi
8899 fi
8900 ;;
8901 -l*)
8902 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8903 ;;
8904 *.la)
8905 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8906 ;;
8907 *)
8908 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8909 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8910 ;;
8911 esac
8912 done
8913 fi
8914 else
8915 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8916 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8917 fi
8918 fi
8919 fi
8920 done
8921 done
8922 if test "X$rpathdirs" != "X"; then
8923 if test -n "$hardcode_libdir_separator"; then
8924 alldirs=
8925 for found_dir in $rpathdirs; do
8926 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8927 done
8928 acl_save_libdir="$libdir"
8929 libdir="$alldirs"
8930 eval flag=\"$hardcode_libdir_flag_spec\"
8931 libdir="$acl_save_libdir"
8932 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8933 else
8934 for found_dir in $rpathdirs; do
8935 acl_save_libdir="$libdir"
8936 libdir="$found_dir"
8937 eval flag=\"$hardcode_libdir_flag_spec\"
8938 libdir="$acl_save_libdir"
8939 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8940 done
8941 fi
8942 fi
8943 if test "X$ltrpathdirs" != "X"; then
8944 for found_dir in $ltrpathdirs; do
8945 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8946 done
8947 fi
8948
8949 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
8950 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
8951 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
8952 echo $ECHO_N "(cached) $ECHO_C" >&6
8953 else
8954 gt_save_CPPFLAGS="$CPPFLAGS"
8955 CPPFLAGS="$CPPFLAGS $INCINTL"
8956 gt_save_LIBS="$LIBS"
8957 LIBS="$LIBS $LIBINTL"
8958 cat >conftest.$ac_ext <<_ACEOF
8959 /* confdefs.h. */
8960 _ACEOF
8961 cat confdefs.h >>conftest.$ac_ext
8962 cat >>conftest.$ac_ext <<_ACEOF
8963 /* end confdefs.h. */
8964 #include <libintl.h>
8965 extern int _nl_msg_cat_cntr;
8966 extern
8967 #ifdef __cplusplus
8968 "C"
8969 #endif
8970 const char *_nl_expand_alias (const char *);
8971 int
8972 main ()
8973 {
8974 bindtextdomain ("", "");
8975 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
8976 ;
8977 return 0;
8978 }
8979 _ACEOF
8980 rm -f conftest.$ac_objext conftest$ac_exeext
8981 if { (ac_try="$ac_link"
8982 case "(($ac_try" in
8983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8984 *) ac_try_echo=$ac_try;;
8985 esac
8986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8987 (eval "$ac_link") 2>conftest.er1
8988 ac_status=$?
8989 grep -v '^ *+' conftest.er1 >conftest.err
8990 rm -f conftest.er1
8991 cat conftest.err >&5
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); } && {
8994 test -z "$ac_c_werror_flag" ||
8995 test ! -s conftest.err
8996 } && test -s conftest$ac_exeext &&
8997 $as_test_x conftest$ac_exeext; then
8998 gt_cv_func_gnugettext1_libintl=yes
8999 else
9000 echo "$as_me: failed program was:" >&5
9001 sed 's/^/| /' conftest.$ac_ext >&5
9002
9003 gt_cv_func_gnugettext1_libintl=no
9004 fi
9005
9006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9007 conftest$ac_exeext conftest.$ac_ext
9008 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9009 LIBS="$LIBS $LIBICONV"
9010 cat >conftest.$ac_ext <<_ACEOF
9011 /* confdefs.h. */
9012 _ACEOF
9013 cat confdefs.h >>conftest.$ac_ext
9014 cat >>conftest.$ac_ext <<_ACEOF
9015 /* end confdefs.h. */
9016 #include <libintl.h>
9017 extern int _nl_msg_cat_cntr;
9018 extern
9019 #ifdef __cplusplus
9020 "C"
9021 #endif
9022 const char *_nl_expand_alias (const char *);
9023 int
9024 main ()
9025 {
9026 bindtextdomain ("", "");
9027 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
9028 ;
9029 return 0;
9030 }
9031 _ACEOF
9032 rm -f conftest.$ac_objext conftest$ac_exeext
9033 if { (ac_try="$ac_link"
9034 case "(($ac_try" in
9035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9036 *) ac_try_echo=$ac_try;;
9037 esac
9038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9039 (eval "$ac_link") 2>conftest.er1
9040 ac_status=$?
9041 grep -v '^ *+' conftest.er1 >conftest.err
9042 rm -f conftest.er1
9043 cat conftest.err >&5
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); } && {
9046 test -z "$ac_c_werror_flag" ||
9047 test ! -s conftest.err
9048 } && test -s conftest$ac_exeext &&
9049 $as_test_x conftest$ac_exeext; then
9050 LIBINTL="$LIBINTL $LIBICONV"
9051 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9052 gt_cv_func_gnugettext1_libintl=yes
9053
9054 else
9055 echo "$as_me: failed program was:" >&5
9056 sed 's/^/| /' conftest.$ac_ext >&5
9057
9058
9059 fi
9060
9061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9062 conftest$ac_exeext conftest.$ac_ext
9063 fi
9064 CPPFLAGS="$gt_save_CPPFLAGS"
9065 LIBS="$gt_save_LIBS"
9066 fi
9067 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
9068 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
9069 fi
9070
9071 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9072 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9073 && test "$PACKAGE" != gettext-runtime \
9074 && test "$PACKAGE" != gettext-tools; }; then
9075 gt_use_preinstalled_gnugettext=yes
9076 else
9077 LIBINTL=
9078 LTLIBINTL=
9079 INCINTL=
9080 fi
9081
9082
9083
9084 if test -n "$INTL_MACOSX_LIBS"; then
9085 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9086 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9087 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
9088 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
9089 fi
9090 fi
9091
9092 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9093 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9094
9095 cat >>confdefs.h <<\_ACEOF
9096 #define ENABLE_NLS 1
9097 _ACEOF
9098
9099 else
9100 USE_NLS=no
9101 fi
9102 fi
9103
9104 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
9105 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
9106 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
9107 echo "${ECHO_T}$USE_NLS" >&6; }
9108 if test "$USE_NLS" = "yes"; then
9109 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
9110 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
9111 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9112 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9113 gt_source="external libintl"
9114 else
9115 gt_source="libc"
9116 fi
9117 else
9118 gt_source="included intl directory"
9119 fi
9120 { echo "$as_me:$LINENO: result: $gt_source" >&5
9121 echo "${ECHO_T}$gt_source" >&6; }
9122 fi
9123
9124 if test "$USE_NLS" = "yes"; then
9125
9126 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9127 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9128 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
9129 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
9130 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
9131 echo "${ECHO_T}$LIBINTL" >&6; }
9132
9133 for element in $INCINTL; do
9134 haveit=
9135 for x in $CPPFLAGS; do
9136
9137 acl_save_prefix="$prefix"
9138 prefix="$acl_final_prefix"
9139 acl_save_exec_prefix="$exec_prefix"
9140 exec_prefix="$acl_final_exec_prefix"
9141 eval x=\"$x\"
9142 exec_prefix="$acl_save_exec_prefix"
9143 prefix="$acl_save_prefix"
9144
9145 if test "X$x" = "X$element"; then
9146 haveit=yes
9147 break
9148 fi
9149 done
9150 if test -z "$haveit"; then
9151 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9152 fi
9153 done
9154
9155 fi
9156
9157
9158 cat >>confdefs.h <<\_ACEOF
9159 #define HAVE_GETTEXT 1
9160 _ACEOF
9161
9162
9163 cat >>confdefs.h <<\_ACEOF
9164 #define HAVE_DCGETTEXT 1
9165 _ACEOF
9166
9167 fi
9168
9169 POSUB=po
9170 fi
9171
9172
9173
9174 INTLLIBS="$LIBINTL"
9175
9176
9177
9178
9179
9180
9181 if test x"$USE_NLS" = "xyes"; then
9182 cat >>confdefs.h <<\_ACEOF
9183 #define USE_NLS 1
9184 _ACEOF
9185
9186 fi
9187
9188 # Extract the first word of "bash", so it can be a program name with args.
9189 set dummy bash; ac_word=$2
9190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9192 if test "${ac_cv_path_BASH+set}" = set; then
9193 echo $ECHO_N "(cached) $ECHO_C" >&6
9194 else
9195 case $BASH in
9196 [\\/]* | ?:[\\/]*)
9197 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
9198 ;;
9199 *)
9200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9201 for as_dir in $PATH
9202 do
9203 IFS=$as_save_IFS
9204 test -z "$as_dir" && as_dir=.
9205 for ac_exec_ext in '' $ac_executable_extensions; do
9206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9207 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
9208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9209 break 2
9210 fi
9211 done
9212 done
9213 IFS=$as_save_IFS
9214
9215 ;;
9216 esac
9217 fi
9218 BASH=$ac_cv_path_BASH
9219 if test -n "$BASH"; then
9220 { echo "$as_me:$LINENO: result: $BASH" >&5
9221 echo "${ECHO_T}$BASH" >&6; }
9222 else
9223 { echo "$as_me:$LINENO: result: no" >&5
9224 echo "${ECHO_T}no" >&6; }
9225 fi
9226
9227
9228
9229 ac_config_files="$ac_config_files environment.mak:buildlib/environment.mak.in makefile:buildlib/makefile.in"
9230
9231 ac_config_commands="$ac_config_commands default"
9232
9233 cat >confcache <<\_ACEOF
9234 # This file is a shell script that caches the results of configure
9235 # tests run on this system so they can be shared between configure
9236 # scripts and configure runs, see configure's option --config-cache.
9237 # It is not useful on other systems. If it contains results you don't
9238 # want to keep, you may remove or edit it.
9239 #
9240 # config.status only pays attention to the cache file if you give it
9241 # the --recheck option to rerun configure.
9242 #
9243 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9244 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9245 # following values.
9246
9247 _ACEOF
9248
9249 # The following way of writing the cache mishandles newlines in values,
9250 # but we know of no workaround that is simple, portable, and efficient.
9251 # So, we kill variables containing newlines.
9252 # Ultrix sh set writes to stderr and can't be redirected directly,
9253 # and sets the high bit in the cache file unless we assign to the vars.
9254 (
9255 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9256 eval ac_val=\$$ac_var
9257 case $ac_val in #(
9258 *${as_nl}*)
9259 case $ac_var in #(
9260 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
9261 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
9262 esac
9263 case $ac_var in #(
9264 _ | IFS | as_nl) ;; #(
9265 *) $as_unset $ac_var ;;
9266 esac ;;
9267 esac
9268 done
9269
9270 (set) 2>&1 |
9271 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9272 *${as_nl}ac_space=\ *)
9273 # `set' does not quote correctly, so add quotes (double-quote
9274 # substitution turns \\\\ into \\, and sed turns \\ into \).
9275 sed -n \
9276 "s/'/'\\\\''/g;
9277 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9278 ;; #(
9279 *)
9280 # `set' quotes correctly as required by POSIX, so do not add quotes.
9281 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9282 ;;
9283 esac |
9284 sort
9285 ) |
9286 sed '
9287 /^ac_cv_env_/b end
9288 t clear
9289 :clear
9290 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9291 t end
9292 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9293 :end' >>confcache
9294 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9295 if test -w "$cache_file"; then
9296 test "x$cache_file" != "x/dev/null" &&
9297 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
9298 echo "$as_me: updating cache $cache_file" >&6;}
9299 cat confcache >$cache_file
9300 else
9301 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
9302 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9303 fi
9304 fi
9305 rm -f confcache
9306
9307 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9308 # Let make expand exec_prefix.
9309 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9310
9311 DEFS=-DHAVE_CONFIG_H
9312
9313 ac_libobjs=
9314 ac_ltlibobjs=
9315 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9316 # 1. Remove the extension, and $U if already installed.
9317 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9318 ac_i=`echo "$ac_i" | sed "$ac_script"`
9319 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9320 # will be set to the directory where LIBOBJS objects are built.
9321 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9322 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
9323 done
9324 LIBOBJS=$ac_libobjs
9325
9326 LTLIBOBJS=$ac_ltlibobjs
9327
9328
9329
9330 : ${CONFIG_STATUS=./config.status}
9331 ac_clean_files_save=$ac_clean_files
9332 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9333 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9334 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9335 cat >$CONFIG_STATUS <<_ACEOF
9336 #! $SHELL
9337 # Generated by $as_me.
9338 # Run this file to recreate the current configuration.
9339 # Compiler output produced by configure, useful for debugging
9340 # configure, is in config.log if it exists.
9341
9342 debug=false
9343 ac_cs_recheck=false
9344 ac_cs_silent=false
9345 SHELL=\${CONFIG_SHELL-$SHELL}
9346 _ACEOF
9347
9348 cat >>$CONFIG_STATUS <<\_ACEOF
9349 ## --------------------- ##
9350 ## M4sh Initialization. ##
9351 ## --------------------- ##
9352
9353 # Be more Bourne compatible
9354 DUALCASE=1; export DUALCASE # for MKS sh
9355 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9356 emulate sh
9357 NULLCMD=:
9358 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9359 # is contrary to our usage. Disable this feature.
9360 alias -g '${1+"$@"}'='"$@"'
9361 setopt NO_GLOB_SUBST
9362 else
9363 case `(set -o) 2>/dev/null` in
9364 *posix*) set -o posix ;;
9365 esac
9366
9367 fi
9368
9369
9370
9371
9372 # PATH needs CR
9373 # Avoid depending upon Character Ranges.
9374 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9375 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9376 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9377 as_cr_digits='0123456789'
9378 as_cr_alnum=$as_cr_Letters$as_cr_digits
9379
9380 # The user is always right.
9381 if test "${PATH_SEPARATOR+set}" != set; then
9382 echo "#! /bin/sh" >conf$$.sh
9383 echo "exit 0" >>conf$$.sh
9384 chmod +x conf$$.sh
9385 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9386 PATH_SEPARATOR=';'
9387 else
9388 PATH_SEPARATOR=:
9389 fi
9390 rm -f conf$$.sh
9391 fi
9392
9393 # Support unset when possible.
9394 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9395 as_unset=unset
9396 else
9397 as_unset=false
9398 fi
9399
9400
9401 # IFS
9402 # We need space, tab and new line, in precisely that order. Quoting is
9403 # there to prevent editors from complaining about space-tab.
9404 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9405 # splitting by setting IFS to empty value.)
9406 as_nl='
9407 '
9408 IFS=" "" $as_nl"
9409
9410 # Find who we are. Look in the path if we contain no directory separator.
9411 case $0 in
9412 *[\\/]* ) as_myself=$0 ;;
9413 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9414 for as_dir in $PATH
9415 do
9416 IFS=$as_save_IFS
9417 test -z "$as_dir" && as_dir=.
9418 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9419 done
9420 IFS=$as_save_IFS
9421
9422 ;;
9423 esac
9424 # We did not find ourselves, most probably we were run as `sh COMMAND'
9425 # in which case we are not to be found in the path.
9426 if test "x$as_myself" = x; then
9427 as_myself=$0
9428 fi
9429 if test ! -f "$as_myself"; then
9430 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9431 { (exit 1); exit 1; }
9432 fi
9433
9434 # Work around bugs in pre-3.0 UWIN ksh.
9435 for as_var in ENV MAIL MAILPATH
9436 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9437 done
9438 PS1='$ '
9439 PS2='> '
9440 PS4='+ '
9441
9442 # NLS nuisances.
9443 for as_var in \
9444 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9445 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9446 LC_TELEPHONE LC_TIME
9447 do
9448 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9449 eval $as_var=C; export $as_var
9450 else
9451 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9452 fi
9453 done
9454
9455 # Required to use basename.
9456 if expr a : '\(a\)' >/dev/null 2>&1 &&
9457 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9458 as_expr=expr
9459 else
9460 as_expr=false
9461 fi
9462
9463 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9464 as_basename=basename
9465 else
9466 as_basename=false
9467 fi
9468
9469
9470 # Name of the executable.
9471 as_me=`$as_basename -- "$0" ||
9472 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9473 X"$0" : 'X\(//\)$' \| \
9474 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9475 echo X/"$0" |
9476 sed '/^.*\/\([^/][^/]*\)\/*$/{
9477 s//\1/
9478 q
9479 }
9480 /^X\/\(\/\/\)$/{
9481 s//\1/
9482 q
9483 }
9484 /^X\/\(\/\).*/{
9485 s//\1/
9486 q
9487 }
9488 s/.*/./; q'`
9489
9490 # CDPATH.
9491 $as_unset CDPATH
9492
9493
9494
9495 as_lineno_1=$LINENO
9496 as_lineno_2=$LINENO
9497 test "x$as_lineno_1" != "x$as_lineno_2" &&
9498 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
9499
9500 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9501 # uniformly replaced by the line number. The first 'sed' inserts a
9502 # line-number line after each line using $LINENO; the second 'sed'
9503 # does the real work. The second script uses 'N' to pair each
9504 # line-number line with the line containing $LINENO, and appends
9505 # trailing '-' during substitution so that $LINENO is not a special
9506 # case at line end.
9507 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9508 # scripts with optimization help from Paolo Bonzini. Blame Lee
9509 # E. McMahon (1931-1989) for sed's syntax. :-)
9510 sed -n '
9511 p
9512 /[$]LINENO/=
9513 ' <$as_myself |
9514 sed '
9515 s/[$]LINENO.*/&-/
9516 t lineno
9517 b
9518 :lineno
9519 N
9520 :loop
9521 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
9522 t loop
9523 s/-\n.*//
9524 ' >$as_me.lineno &&
9525 chmod +x "$as_me.lineno" ||
9526 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
9527 { (exit 1); exit 1; }; }
9528
9529 # Don't try to exec as it changes $[0], causing all sort of problems
9530 # (the dirname of $[0] is not the place where we might find the
9531 # original and so on. Autoconf is especially sensitive to this).
9532 . "./$as_me.lineno"
9533 # Exit status is that of the last command.
9534 exit
9535 }
9536
9537
9538 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9539 as_dirname=dirname
9540 else
9541 as_dirname=false
9542 fi
9543
9544 ECHO_C= ECHO_N= ECHO_T=
9545 case `echo -n x` in
9546 -n*)
9547 case `echo 'x\c'` in
9548 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9549 *) ECHO_C='\c';;
9550 esac;;
9551 *)
9552 ECHO_N='-n';;
9553 esac
9554
9555 if expr a : '\(a\)' >/dev/null 2>&1 &&
9556 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9557 as_expr=expr
9558 else
9559 as_expr=false
9560 fi
9561
9562 rm -f conf$$ conf$$.exe conf$$.file
9563 if test -d conf$$.dir; then
9564 rm -f conf$$.dir/conf$$.file
9565 else
9566 rm -f conf$$.dir
9567 mkdir conf$$.dir
9568 fi
9569 echo >conf$$.file
9570 if ln -s conf$$.file conf$$ 2>/dev/null; then
9571 as_ln_s='ln -s'
9572 # ... but there are two gotchas:
9573 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9574 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9575 # In both cases, we have to default to `cp -p'.
9576 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9577 as_ln_s='cp -p'
9578 elif ln conf$$.file conf$$ 2>/dev/null; then
9579 as_ln_s=ln
9580 else
9581 as_ln_s='cp -p'
9582 fi
9583 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9584 rmdir conf$$.dir 2>/dev/null
9585
9586 if mkdir -p . 2>/dev/null; then
9587 as_mkdir_p=:
9588 else
9589 test -d ./-p && rmdir ./-p
9590 as_mkdir_p=false
9591 fi
9592
9593 if test -x / >/dev/null 2>&1; then
9594 as_test_x='test -x'
9595 else
9596 if ls -dL / >/dev/null 2>&1; then
9597 as_ls_L_option=L
9598 else
9599 as_ls_L_option=
9600 fi
9601 as_test_x='
9602 eval sh -c '\''
9603 if test -d "$1"; then
9604 test -d "$1/.";
9605 else
9606 case $1 in
9607 -*)set "./$1";;
9608 esac;
9609 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
9610 ???[sx]*):;;*)false;;esac;fi
9611 '\'' sh
9612 '
9613 fi
9614 as_executable_p=$as_test_x
9615
9616 # Sed expression to map a string onto a valid CPP name.
9617 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9618
9619 # Sed expression to map a string onto a valid variable name.
9620 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9621
9622
9623 exec 6>&1
9624
9625 # Save the log message, to keep $[0] and so on meaningful, and to
9626 # report actual input values of CONFIG_FILES etc. instead of their
9627 # values after options handling.
9628 ac_log="
9629 This file was extended by $as_me, which was
9630 generated by GNU Autoconf 2.61. Invocation command line was
9631
9632 CONFIG_FILES = $CONFIG_FILES
9633 CONFIG_HEADERS = $CONFIG_HEADERS
9634 CONFIG_LINKS = $CONFIG_LINKS
9635 CONFIG_COMMANDS = $CONFIG_COMMANDS
9636 $ $0 $@
9637
9638 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9639 "
9640
9641 _ACEOF
9642
9643 cat >>$CONFIG_STATUS <<_ACEOF
9644 # Files that config.status was made for.
9645 config_files="$ac_config_files"
9646 config_headers="$ac_config_headers"
9647 config_commands="$ac_config_commands"
9648
9649 _ACEOF
9650
9651 cat >>$CONFIG_STATUS <<\_ACEOF
9652 ac_cs_usage="\
9653 \`$as_me' instantiates files from templates according to the
9654 current configuration.
9655
9656 Usage: $0 [OPTIONS] [FILE]...
9657
9658 -h, --help print this help, then exit
9659 -V, --version print version number and configuration settings, then exit
9660 -q, --quiet do not print progress messages
9661 -d, --debug don't remove temporary files
9662 --recheck update $as_me by reconfiguring in the same conditions
9663 --file=FILE[:TEMPLATE]
9664 instantiate the configuration file FILE
9665 --header=FILE[:TEMPLATE]
9666 instantiate the configuration header FILE
9667
9668 Configuration files:
9669 $config_files
9670
9671 Configuration headers:
9672 $config_headers
9673
9674 Configuration commands:
9675 $config_commands
9676
9677 Report bugs to <bug-autoconf@gnu.org>."
9678
9679 _ACEOF
9680 cat >>$CONFIG_STATUS <<_ACEOF
9681 ac_cs_version="\\
9682 config.status
9683 configured by $0, generated by GNU Autoconf 2.61,
9684 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
9685
9686 Copyright (C) 2006 Free Software Foundation, Inc.
9687 This config.status script is free software; the Free Software Foundation
9688 gives unlimited permission to copy, distribute and modify it."
9689
9690 ac_pwd='$ac_pwd'
9691 srcdir='$srcdir'
9692 INSTALL='$INSTALL'
9693 _ACEOF
9694
9695 cat >>$CONFIG_STATUS <<\_ACEOF
9696 # If no file are specified by the user, then we need to provide default
9697 # value. By we need to know if files were specified by the user.
9698 ac_need_defaults=:
9699 while test $# != 0
9700 do
9701 case $1 in
9702 --*=*)
9703 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9704 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9705 ac_shift=:
9706 ;;
9707 *)
9708 ac_option=$1
9709 ac_optarg=$2
9710 ac_shift=shift
9711 ;;
9712 esac
9713
9714 case $ac_option in
9715 # Handling of the options.
9716 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9717 ac_cs_recheck=: ;;
9718 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9719 echo "$ac_cs_version"; exit ;;
9720 --debug | --debu | --deb | --de | --d | -d )
9721 debug=: ;;
9722 --file | --fil | --fi | --f )
9723 $ac_shift
9724 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9725 ac_need_defaults=false;;
9726 --header | --heade | --head | --hea )
9727 $ac_shift
9728 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9729 ac_need_defaults=false;;
9730 --he | --h)
9731 # Conflict between --help and --header
9732 { echo "$as_me: error: ambiguous option: $1
9733 Try \`$0 --help' for more information." >&2
9734 { (exit 1); exit 1; }; };;
9735 --help | --hel | -h )
9736 echo "$ac_cs_usage"; exit ;;
9737 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9738 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9739 ac_cs_silent=: ;;
9740
9741 # This is an error.
9742 -*) { echo "$as_me: error: unrecognized option: $1
9743 Try \`$0 --help' for more information." >&2
9744 { (exit 1); exit 1; }; } ;;
9745
9746 *) ac_config_targets="$ac_config_targets $1"
9747 ac_need_defaults=false ;;
9748
9749 esac
9750 shift
9751 done
9752
9753 ac_configure_extra_args=
9754
9755 if $ac_cs_silent; then
9756 exec 6>/dev/null
9757 ac_configure_extra_args="$ac_configure_extra_args --silent"
9758 fi
9759
9760 _ACEOF
9761 cat >>$CONFIG_STATUS <<_ACEOF
9762 if \$ac_cs_recheck; then
9763 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9764 CONFIG_SHELL=$SHELL
9765 export CONFIG_SHELL
9766 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9767 fi
9768
9769 _ACEOF
9770 cat >>$CONFIG_STATUS <<\_ACEOF
9771 exec 5>>config.log
9772 {
9773 echo
9774 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9775 ## Running $as_me. ##
9776 _ASBOX
9777 echo "$ac_log"
9778 } >&5
9779
9780 _ACEOF
9781 cat >>$CONFIG_STATUS <<_ACEOF
9782 #
9783 # INIT-COMMANDS
9784 #
9785 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
9786 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
9787 # from automake < 1.5.
9788 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
9789 # Capture the value of LINGUAS because we need it to compute CATALOGS.
9790 LINGUAS="${LINGUAS-%UNSET%}"
9791
9792
9793 _ACEOF
9794
9795 cat >>$CONFIG_STATUS <<\_ACEOF
9796
9797 # Handling of arguments.
9798 for ac_config_target in $ac_config_targets
9799 do
9800 case $ac_config_target in
9801 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h:buildlib/config.h.in" ;;
9802 "include/apti18n.h") CONFIG_HEADERS="$CONFIG_HEADERS include/apti18n.h:buildlib/apti18n.h.in" ;;
9803 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
9804 "environment.mak") CONFIG_FILES="$CONFIG_FILES environment.mak:buildlib/environment.mak.in" ;;
9805 "makefile") CONFIG_FILES="$CONFIG_FILES makefile:buildlib/makefile.in" ;;
9806 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9807
9808 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9809 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9810 { (exit 1); exit 1; }; };;
9811 esac
9812 done
9813
9814
9815 # If the user did not use the arguments to specify the items to instantiate,
9816 # then the envvar interface is used. Set only those that are not.
9817 # We use the long form for the default assignment because of an extremely
9818 # bizarre bug on SunOS 4.1.3.
9819 if $ac_need_defaults; then
9820 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9821 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9822 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9823 fi
9824
9825 # Have a temporary directory for convenience. Make it in the build tree
9826 # simply because there is no reason against having it here, and in addition,
9827 # creating and moving files from /tmp can sometimes cause problems.
9828 # Hook for its removal unless debugging.
9829 # Note that there is a small window in which the directory will not be cleaned:
9830 # after its creation but before its name has been assigned to `$tmp'.
9831 $debug ||
9832 {
9833 tmp=
9834 trap 'exit_status=$?
9835 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9836 ' 0
9837 trap '{ (exit 1); exit 1; }' 1 2 13 15
9838 }
9839 # Create a (secure) tmp directory for tmp files.
9840
9841 {
9842 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9843 test -n "$tmp" && test -d "$tmp"
9844 } ||
9845 {
9846 tmp=./conf$$-$RANDOM
9847 (umask 077 && mkdir "$tmp")
9848 } ||
9849 {
9850 echo "$me: cannot create a temporary directory in ." >&2
9851 { (exit 1); exit 1; }
9852 }
9853
9854 #
9855 # Set up the sed scripts for CONFIG_FILES section.
9856 #
9857
9858 # No need to generate the scripts if there are no CONFIG_FILES.
9859 # This happens for instance when ./config.status config.h
9860 if test -n "$CONFIG_FILES"; then
9861
9862 _ACEOF
9863
9864
9865
9866 ac_delim='%!_!# '
9867 for ac_last_try in false false false false false :; do
9868 cat >conf$$subs.sed <<_ACEOF
9869 SHELL!$SHELL$ac_delim
9870 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
9871 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
9872 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
9873 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
9874 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
9875 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
9876 exec_prefix!$exec_prefix$ac_delim
9877 prefix!$prefix$ac_delim
9878 program_transform_name!$program_transform_name$ac_delim
9879 bindir!$bindir$ac_delim
9880 sbindir!$sbindir$ac_delim
9881 libexecdir!$libexecdir$ac_delim
9882 datarootdir!$datarootdir$ac_delim
9883 datadir!$datadir$ac_delim
9884 sysconfdir!$sysconfdir$ac_delim
9885 sharedstatedir!$sharedstatedir$ac_delim
9886 localstatedir!$localstatedir$ac_delim
9887 includedir!$includedir$ac_delim
9888 oldincludedir!$oldincludedir$ac_delim
9889 docdir!$docdir$ac_delim
9890 infodir!$infodir$ac_delim
9891 htmldir!$htmldir$ac_delim
9892 dvidir!$dvidir$ac_delim
9893 pdfdir!$pdfdir$ac_delim
9894 psdir!$psdir$ac_delim
9895 libdir!$libdir$ac_delim
9896 localedir!$localedir$ac_delim
9897 mandir!$mandir$ac_delim
9898 DEFS!$DEFS$ac_delim
9899 ECHO_C!$ECHO_C$ac_delim
9900 ECHO_N!$ECHO_N$ac_delim
9901 ECHO_T!$ECHO_T$ac_delim
9902 LIBS!$LIBS$ac_delim
9903 build_alias!$build_alias$ac_delim
9904 host_alias!$host_alias$ac_delim
9905 target_alias!$target_alias$ac_delim
9906 PACKAGE!$PACKAGE$ac_delim
9907 build!$build$ac_delim
9908 build_cpu!$build_cpu$ac_delim
9909 build_vendor!$build_vendor$ac_delim
9910 build_os!$build_os$ac_delim
9911 host!$host$ac_delim
9912 host_cpu!$host_cpu$ac_delim
9913 host_vendor!$host_vendor$ac_delim
9914 host_os!$host_os$ac_delim
9915 target!$target$ac_delim
9916 target_cpu!$target_cpu$ac_delim
9917 target_vendor!$target_vendor$ac_delim
9918 target_os!$target_os$ac_delim
9919 CC!$CC$ac_delim
9920 CFLAGS!$CFLAGS$ac_delim
9921 LDFLAGS!$LDFLAGS$ac_delim
9922 CPPFLAGS!$CPPFLAGS$ac_delim
9923 ac_ct_CC!$ac_ct_CC$ac_delim
9924 EXEEXT!$EXEEXT$ac_delim
9925 OBJEXT!$OBJEXT$ac_delim
9926 CXX!$CXX$ac_delim
9927 CXXFLAGS!$CXXFLAGS$ac_delim
9928 ac_ct_CXX!$ac_ct_CXX$ac_delim
9929 CPP!$CPP$ac_delim
9930 RANLIB!$RANLIB$ac_delim
9931 AR!$AR$ac_delim
9932 SOCKETLIBS!$SOCKETLIBS$ac_delim
9933 PTHREADLIB!$PTHREADLIB$ac_delim
9934 GREP!$GREP$ac_delim
9935 EGREP!$EGREP$ac_delim
9936 BDBLIB!$BDBLIB$ac_delim
9937 HAVE_STATVFS!$HAVE_STATVFS$ac_delim
9938 HAVE_TIMEGM!$HAVE_TIMEGM$ac_delim
9939 HAVE_C9X!$HAVE_C9X$ac_delim
9940 NEED_SOCKLEN_T_DEFINE!$NEED_SOCKLEN_T_DEFINE$ac_delim
9941 DEBIANDOC_HTML!$DEBIANDOC_HTML$ac_delim
9942 DEBIANDOC_TEXT!$DEBIANDOC_TEXT$ac_delim
9943 DOCBOOK2MAN!$DOCBOOK2MAN$ac_delim
9944 XMLTO!$XMLTO$ac_delim
9945 GETCONF!$GETCONF$ac_delim
9946 NUM_CPUS!$NUM_CPUS$ac_delim
9947 PROC_MULTIPLY!$PROC_MULTIPLY$ac_delim
9948 NUM_PROCS!$NUM_PROCS$ac_delim
9949 GLIBC_VER!$GLIBC_VER$ac_delim
9950 LIBSTDCPP_VER!$LIBSTDCPP_VER$ac_delim
9951 GCC3DEP!$GCC3DEP$ac_delim
9952 SET_MAKE!$SET_MAKE$ac_delim
9953 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
9954 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
9955 INSTALL_DATA!$INSTALL_DATA$ac_delim
9956 mkdir_p!$mkdir_p$ac_delim
9957 USE_NLS!$USE_NLS$ac_delim
9958 MSGFMT!$MSGFMT$ac_delim
9959 GMSGFMT!$GMSGFMT$ac_delim
9960 MSGFMT_015!$MSGFMT_015$ac_delim
9961 GMSGFMT_015!$GMSGFMT_015$ac_delim
9962 XGETTEXT!$XGETTEXT$ac_delim
9963 XGETTEXT_015!$XGETTEXT_015$ac_delim
9964 MSGMERGE!$MSGMERGE$ac_delim
9965 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
9966 _ACEOF
9967
9968 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
9969 break
9970 elif $ac_last_try; then
9971 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9972 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9973 { (exit 1); exit 1; }; }
9974 else
9975 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9976 fi
9977 done
9978
9979 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9980 if test -n "$ac_eof"; then
9981 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
9982 ac_eof=`expr $ac_eof + 1`
9983 fi
9984
9985 cat >>$CONFIG_STATUS <<_ACEOF
9986 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
9987 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9988 _ACEOF
9989 sed '
9990 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9991 s/^/s,@/; s/!/@,|#_!!_#|/
9992 :n
9993 t n
9994 s/'"$ac_delim"'$/,g/; t
9995 s/$/\\/; p
9996 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9997 ' >>$CONFIG_STATUS <conf$$subs.sed
9998 rm -f conf$$subs.sed
9999 cat >>$CONFIG_STATUS <<_ACEOF
10000 CEOF$ac_eof
10001 _ACEOF
10002
10003
10004 ac_delim='%!_!# '
10005 for ac_last_try in false false false false false :; do
10006 cat >conf$$subs.sed <<_ACEOF
10007 LIBICONV!$LIBICONV$ac_delim
10008 LTLIBICONV!$LTLIBICONV$ac_delim
10009 INTLLIBS!$INTLLIBS$ac_delim
10010 LIBINTL!$LIBINTL$ac_delim
10011 LTLIBINTL!$LTLIBINTL$ac_delim
10012 POSUB!$POSUB$ac_delim
10013 BASH!$BASH$ac_delim
10014 LIBOBJS!$LIBOBJS$ac_delim
10015 LTLIBOBJS!$LTLIBOBJS$ac_delim
10016 _ACEOF
10017
10018 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
10019 break
10020 elif $ac_last_try; then
10021 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10022 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10023 { (exit 1); exit 1; }; }
10024 else
10025 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10026 fi
10027 done
10028
10029 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10030 if test -n "$ac_eof"; then
10031 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10032 ac_eof=`expr $ac_eof + 1`
10033 fi
10034
10035 cat >>$CONFIG_STATUS <<_ACEOF
10036 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
10037 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10038 _ACEOF
10039 sed '
10040 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10041 s/^/s,@/; s/!/@,|#_!!_#|/
10042 :n
10043 t n
10044 s/'"$ac_delim"'$/,g/; t
10045 s/$/\\/; p
10046 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10047 ' >>$CONFIG_STATUS <conf$$subs.sed
10048 rm -f conf$$subs.sed
10049 cat >>$CONFIG_STATUS <<_ACEOF
10050 :end
10051 s/|#_!!_#|//g
10052 CEOF$ac_eof
10053 _ACEOF
10054
10055
10056 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10057 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10058 # trailing colons and then remove the whole line if VPATH becomes empty
10059 # (actually we leave an empty line to preserve line numbers).
10060 if test "x$srcdir" = x.; then
10061 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10062 s/:*\$(srcdir):*/:/
10063 s/:*\${srcdir}:*/:/
10064 s/:*@srcdir@:*/:/
10065 s/^\([^=]*=[ ]*\):*/\1/
10066 s/:*$//
10067 s/^[^=]*=[ ]*$//
10068 }'
10069 fi
10070
10071 cat >>$CONFIG_STATUS <<\_ACEOF
10072 fi # test -n "$CONFIG_FILES"
10073
10074
10075 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
10076 do
10077 case $ac_tag in
10078 :[FHLC]) ac_mode=$ac_tag; continue;;
10079 esac
10080 case $ac_mode$ac_tag in
10081 :[FHL]*:*);;
10082 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
10083 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
10084 { (exit 1); exit 1; }; };;
10085 :[FH]-) ac_tag=-:-;;
10086 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10087 esac
10088 ac_save_IFS=$IFS
10089 IFS=:
10090 set x $ac_tag
10091 IFS=$ac_save_IFS
10092 shift
10093 ac_file=$1
10094 shift
10095
10096 case $ac_mode in
10097 :L) ac_source=$1;;
10098 :[FH])
10099 ac_file_inputs=
10100 for ac_f
10101 do
10102 case $ac_f in
10103 -) ac_f="$tmp/stdin";;
10104 *) # Look for the file first in the build tree, then in the source tree
10105 # (if the path is not absolute). The absolute path cannot be DOS-style,
10106 # because $ac_f cannot contain `:'.
10107 test -f "$ac_f" ||
10108 case $ac_f in
10109 [\\/$]*) false;;
10110 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10111 esac ||
10112 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10113 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10114 { (exit 1); exit 1; }; };;
10115 esac
10116 ac_file_inputs="$ac_file_inputs $ac_f"
10117 done
10118
10119 # Let's still pretend it is `configure' which instantiates (i.e., don't
10120 # use $as_me), people would be surprised to read:
10121 # /* config.h. Generated by config.status. */
10122 configure_input="Generated from "`IFS=:
10123 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
10124 if test x"$ac_file" != x-; then
10125 configure_input="$ac_file. $configure_input"
10126 { echo "$as_me:$LINENO: creating $ac_file" >&5
10127 echo "$as_me: creating $ac_file" >&6;}
10128 fi
10129
10130 case $ac_tag in
10131 *:-:* | *:-) cat >"$tmp/stdin";;
10132 esac
10133 ;;
10134 esac
10135
10136 ac_dir=`$as_dirname -- "$ac_file" ||
10137 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10138 X"$ac_file" : 'X\(//\)[^/]' \| \
10139 X"$ac_file" : 'X\(//\)$' \| \
10140 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10141 echo X"$ac_file" |
10142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10143 s//\1/
10144 q
10145 }
10146 /^X\(\/\/\)[^/].*/{
10147 s//\1/
10148 q
10149 }
10150 /^X\(\/\/\)$/{
10151 s//\1/
10152 q
10153 }
10154 /^X\(\/\).*/{
10155 s//\1/
10156 q
10157 }
10158 s/.*/./; q'`
10159 { as_dir="$ac_dir"
10160 case $as_dir in #(
10161 -*) as_dir=./$as_dir;;
10162 esac
10163 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10164 as_dirs=
10165 while :; do
10166 case $as_dir in #(
10167 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10168 *) as_qdir=$as_dir;;
10169 esac
10170 as_dirs="'$as_qdir' $as_dirs"
10171 as_dir=`$as_dirname -- "$as_dir" ||
10172 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10173 X"$as_dir" : 'X\(//\)[^/]' \| \
10174 X"$as_dir" : 'X\(//\)$' \| \
10175 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10176 echo X"$as_dir" |
10177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10178 s//\1/
10179 q
10180 }
10181 /^X\(\/\/\)[^/].*/{
10182 s//\1/
10183 q
10184 }
10185 /^X\(\/\/\)$/{
10186 s//\1/
10187 q
10188 }
10189 /^X\(\/\).*/{
10190 s//\1/
10191 q
10192 }
10193 s/.*/./; q'`
10194 test -d "$as_dir" && break
10195 done
10196 test -z "$as_dirs" || eval "mkdir $as_dirs"
10197 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10198 echo "$as_me: error: cannot create directory $as_dir" >&2;}
10199 { (exit 1); exit 1; }; }; }
10200 ac_builddir=.
10201
10202 case "$ac_dir" in
10203 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10204 *)
10205 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10206 # A ".." for each directory in $ac_dir_suffix.
10207 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
10208 case $ac_top_builddir_sub in
10209 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10210 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10211 esac ;;
10212 esac
10213 ac_abs_top_builddir=$ac_pwd
10214 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10215 # for backward compatibility:
10216 ac_top_builddir=$ac_top_build_prefix
10217
10218 case $srcdir in
10219 .) # We are building in place.
10220 ac_srcdir=.
10221 ac_top_srcdir=$ac_top_builddir_sub
10222 ac_abs_top_srcdir=$ac_pwd ;;
10223 [\\/]* | ?:[\\/]* ) # Absolute name.
10224 ac_srcdir=$srcdir$ac_dir_suffix;
10225 ac_top_srcdir=$srcdir
10226 ac_abs_top_srcdir=$srcdir ;;
10227 *) # Relative name.
10228 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10229 ac_top_srcdir=$ac_top_build_prefix$srcdir
10230 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10231 esac
10232 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10233
10234
10235 case $ac_mode in
10236 :F)
10237 #
10238 # CONFIG_FILE
10239 #
10240
10241 case $INSTALL in
10242 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10243 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10244 esac
10245 _ACEOF
10246
10247 cat >>$CONFIG_STATUS <<\_ACEOF
10248 # If the template does not know about datarootdir, expand it.
10249 # FIXME: This hack should be removed a few years after 2.60.
10250 ac_datarootdir_hack=; ac_datarootdir_seen=
10251
10252 case `sed -n '/datarootdir/ {
10253 p
10254 q
10255 }
10256 /@datadir@/p
10257 /@docdir@/p
10258 /@infodir@/p
10259 /@localedir@/p
10260 /@mandir@/p
10261 ' $ac_file_inputs` in
10262 *datarootdir*) ac_datarootdir_seen=yes;;
10263 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10264 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10265 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10266 _ACEOF
10267 cat >>$CONFIG_STATUS <<_ACEOF
10268 ac_datarootdir_hack='
10269 s&@datadir@&$datadir&g
10270 s&@docdir@&$docdir&g
10271 s&@infodir@&$infodir&g
10272 s&@localedir@&$localedir&g
10273 s&@mandir@&$mandir&g
10274 s&\\\${datarootdir}&$datarootdir&g' ;;
10275 esac
10276 _ACEOF
10277
10278 # Neutralize VPATH when `$srcdir' = `.'.
10279 # Shell code in configure.ac might set extrasub.
10280 # FIXME: do we really want to maintain this feature?
10281 cat >>$CONFIG_STATUS <<_ACEOF
10282 sed "$ac_vpsub
10283 $extrasub
10284 _ACEOF
10285 cat >>$CONFIG_STATUS <<\_ACEOF
10286 :t
10287 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10288 s&@configure_input@&$configure_input&;t t
10289 s&@top_builddir@&$ac_top_builddir_sub&;t t
10290 s&@srcdir@&$ac_srcdir&;t t
10291 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10292 s&@top_srcdir@&$ac_top_srcdir&;t t
10293 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10294 s&@builddir@&$ac_builddir&;t t
10295 s&@abs_builddir@&$ac_abs_builddir&;t t
10296 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10297 s&@INSTALL@&$ac_INSTALL&;t t
10298 $ac_datarootdir_hack
10299 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
10300
10301 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10302 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10303 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10304 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10305 which seems to be undefined. Please make sure it is defined." >&5
10306 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10307 which seems to be undefined. Please make sure it is defined." >&2;}
10308
10309 rm -f "$tmp/stdin"
10310 case $ac_file in
10311 -) cat "$tmp/out"; rm -f "$tmp/out";;
10312 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
10313 esac
10314 ;;
10315 :H)
10316 #
10317 # CONFIG_HEADER
10318 #
10319 _ACEOF
10320
10321 # Transform confdefs.h into a sed script `conftest.defines', that
10322 # substitutes the proper values into config.h.in to produce config.h.
10323 rm -f conftest.defines conftest.tail
10324 # First, append a space to every undef/define line, to ease matching.
10325 echo 's/$/ /' >conftest.defines
10326 # Then, protect against being on the right side of a sed subst, or in
10327 # an unquoted here document, in config.status. If some macros were
10328 # called several times there might be several #defines for the same
10329 # symbol, which is useless. But do not sort them, since the last
10330 # AC_DEFINE must be honored.
10331 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10332 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
10333 # NAME is the cpp macro being defined, VALUE is the value it is being given.
10334 # PARAMS is the parameter list in the macro definition--in most cases, it's
10335 # just an empty string.
10336 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
10337 ac_dB='\\)[ (].*,\\1define\\2'
10338 ac_dC=' '
10339 ac_dD=' ,'
10340
10341 uniq confdefs.h |
10342 sed -n '
10343 t rset
10344 :rset
10345 s/^[ ]*#[ ]*define[ ][ ]*//
10346 t ok
10347 d
10348 :ok
10349 s/[\\&,]/\\&/g
10350 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
10351 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
10352 ' >>conftest.defines
10353
10354 # Remove the space that was appended to ease matching.
10355 # Then replace #undef with comments. This is necessary, for
10356 # example, in the case of _POSIX_SOURCE, which is predefined and required
10357 # on some systems where configure will not decide to define it.
10358 # (The regexp can be short, since the line contains either #define or #undef.)
10359 echo 's/ $//
10360 s,^[ #]*u.*,/* & */,' >>conftest.defines
10361
10362 # Break up conftest.defines:
10363 ac_max_sed_lines=50
10364
10365 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
10366 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
10367 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
10368 # et cetera.
10369 ac_in='$ac_file_inputs'
10370 ac_out='"$tmp/out1"'
10371 ac_nxt='"$tmp/out2"'
10372
10373 while :
10374 do
10375 # Write a here document:
10376 cat >>$CONFIG_STATUS <<_ACEOF
10377 # First, check the format of the line:
10378 cat >"\$tmp/defines.sed" <<\\CEOF
10379 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
10380 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
10381 b
10382 :def
10383 _ACEOF
10384 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
10385 echo 'CEOF
10386 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
10387 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
10388 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
10389 grep . conftest.tail >/dev/null || break
10390 rm -f conftest.defines
10391 mv conftest.tail conftest.defines
10392 done
10393 rm -f conftest.defines conftest.tail
10394
10395 echo "ac_result=$ac_in" >>$CONFIG_STATUS
10396 cat >>$CONFIG_STATUS <<\_ACEOF
10397 if test x"$ac_file" != x-; then
10398 echo "/* $configure_input */" >"$tmp/config.h"
10399 cat "$ac_result" >>"$tmp/config.h"
10400 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
10401 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10402 echo "$as_me: $ac_file is unchanged" >&6;}
10403 else
10404 rm -f $ac_file
10405 mv "$tmp/config.h" $ac_file
10406 fi
10407 else
10408 echo "/* $configure_input */"
10409 cat "$ac_result"
10410 fi
10411 rm -f "$tmp/out12"
10412 ;;
10413
10414 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
10415 echo "$as_me: executing $ac_file commands" >&6;}
10416 ;;
10417 esac
10418
10419
10420 case $ac_file$ac_mode in
10421 "po-directories":C)
10422 for ac_file in $CONFIG_FILES; do
10423 # Support "outfile[:infile[:infile...]]"
10424 case "$ac_file" in
10425 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10426 esac
10427 # PO directories have a Makefile.in generated from Makefile.in.in.
10428 case "$ac_file" in */Makefile.in)
10429 # Adjust a relative srcdir.
10430 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10431 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10432 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10433 # In autoconf-2.13 it is called $ac_given_srcdir.
10434 # In autoconf-2.50 it is called $srcdir.
10435 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10436 case "$ac_given_srcdir" in
10437 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10438 /*) top_srcdir="$ac_given_srcdir" ;;
10439 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10440 esac
10441 # Treat a directory as a PO directory if and only if it has a
10442 # POTFILES.in file. This allows packages to have multiple PO
10443 # directories under different names or in different locations.
10444 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10445 rm -f "$ac_dir/POTFILES"
10446 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10447 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10448 POMAKEFILEDEPS="POTFILES.in"
10449 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
10450 # on $ac_dir but don't depend on user-specified configuration
10451 # parameters.
10452 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10453 # The LINGUAS file contains the set of available languages.
10454 if test -n "$OBSOLETE_ALL_LINGUAS"; then
10455 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10456 fi
10457 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10458 # Hide the ALL_LINGUAS assigment from automake < 1.5.
10459 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10460 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10461 else
10462 # The set of available languages was given in configure.in.
10463 # Hide the ALL_LINGUAS assigment from automake < 1.5.
10464 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10465 fi
10466 # Compute POFILES
10467 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
10468 # Compute UPDATEPOFILES
10469 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
10470 # Compute DUMMYPOFILES
10471 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
10472 # Compute GMOFILES
10473 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
10474 case "$ac_given_srcdir" in
10475 .) srcdirpre= ;;
10476 *) srcdirpre='$(srcdir)/' ;;
10477 esac
10478 POFILES=
10479 UPDATEPOFILES=
10480 DUMMYPOFILES=
10481 GMOFILES=
10482 for lang in $ALL_LINGUAS; do
10483 POFILES="$POFILES $srcdirpre$lang.po"
10484 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10485 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10486 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10487 done
10488 # CATALOGS depends on both $ac_dir and the user's LINGUAS
10489 # environment variable.
10490 INST_LINGUAS=
10491 if test -n "$ALL_LINGUAS"; then
10492 for presentlang in $ALL_LINGUAS; do
10493 useit=no
10494 if test "%UNSET%" != "$LINGUAS"; then
10495 desiredlanguages="$LINGUAS"
10496 else
10497 desiredlanguages="$ALL_LINGUAS"
10498 fi
10499 for desiredlang in $desiredlanguages; do
10500 # Use the presentlang catalog if desiredlang is
10501 # a. equal to presentlang, or
10502 # b. a variant of presentlang (because in this case,
10503 # presentlang can be used as a fallback for messages
10504 # which are not translated in the desiredlang catalog).
10505 case "$desiredlang" in
10506 "$presentlang"*) useit=yes;;
10507 esac
10508 done
10509 if test $useit = yes; then
10510 INST_LINGUAS="$INST_LINGUAS $presentlang"
10511 fi
10512 done
10513 fi
10514 CATALOGS=
10515 if test -n "$INST_LINGUAS"; then
10516 for lang in $INST_LINGUAS; do
10517 CATALOGS="$CATALOGS $lang.gmo"
10518 done
10519 fi
10520 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10521 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10522 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10523 if test -f "$f"; then
10524 case "$f" in
10525 *.orig | *.bak | *~) ;;
10526 *) cat "$f" >> "$ac_dir/Makefile" ;;
10527 esac
10528 fi
10529 done
10530 fi
10531 ;;
10532 esac
10533 done ;;
10534 "default":C) make -s dirs ;;
10535
10536 esac
10537 done # for ac_tag
10538
10539
10540 { (exit 0); exit 0; }
10541 _ACEOF
10542 chmod +x $CONFIG_STATUS
10543 ac_clean_files=$ac_clean_files_save
10544
10545
10546 # configure is writing to config.log, and then calls config.status.
10547 # config.status does its own redirection, appending to config.log.
10548 # Unfortunately, on DOS this fails, as config.log is still kept open
10549 # by configure, so config.status won't be able to write to it; its
10550 # output is simply discarded. So we exec the FD to /dev/null,
10551 # effectively closing config.log, so it can be properly (re)opened and
10552 # appended to by config.status. When coming back to configure, we
10553 # need to make the FD available again.
10554 if test "$no_create" != yes; then
10555 ac_cs_success=:
10556 ac_config_status_args=
10557 test "$silent" = yes &&
10558 ac_config_status_args="$ac_config_status_args --quiet"
10559 exec 5>/dev/null
10560 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10561 exec 5>>config.log
10562 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10563 # would make configure fail if this is the last instruction.
10564 $ac_cs_success || { (exit 1); exit 1; }
10565 fi
10566