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