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