Explicit locations: introduce probe locations
[deliverable/binutils-gdb.git] / intl / configure
... / ...
CommitLineData
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
233 fi
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
263
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376else
377 as_expr=false
378fi
379
380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382else
383 as_basename=false
384fi
385
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
391
392as_me=`$as_basename -- "$0" ||
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
448}
449
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
461esac
462
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469fi
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
483 fi
484else
485 as_ln_s='cp -p'
486fi
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
489
490if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527exec 7<&0 </dev/null 6>&1
528
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534#
535# Initializations.
536#
537ac_default_prefix=/usr/local
538ac_clean_files=
539ac_config_libobj_dir=.
540LIBOBJS=
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
552PACKAGE_URL=
553
554ac_unique_file="gettext.c"
555# Factoring default headers for most tests.
556ac_includes_default="\
557#include <stdio.h>
558#ifdef HAVE_SYS_TYPES_H
559# include <sys/types.h>
560#endif
561#ifdef HAVE_SYS_STAT_H
562# include <sys/stat.h>
563#endif
564#ifdef STDC_HEADERS
565# include <stdlib.h>
566# include <stddef.h>
567#else
568# ifdef HAVE_STDLIB_H
569# include <stdlib.h>
570# endif
571#endif
572#ifdef HAVE_STRING_H
573# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
574# include <memory.h>
575# endif
576# include <string.h>
577#endif
578#ifdef HAVE_STRINGS_H
579# include <strings.h>
580#endif
581#ifdef HAVE_INTTYPES_H
582# include <inttypes.h>
583#endif
584#ifdef HAVE_STDINT_H
585# include <stdint.h>
586#endif
587#ifdef HAVE_UNISTD_H
588# include <unistd.h>
589#endif"
590
591ac_subst_vars='LTLIBOBJS
592LIBOBJS
593INCINTL
594LIBINTL_DEP
595MAINT
596AUTOHEADER
597AUTOCONF
598ACLOCAL
599POSUB
600LTLIBINTL
601LIBINTL
602INTLLIBS
603INTL_LIBTOOL_SUFFIX_PREFIX
604INTLOBJS
605GENCAT
606INSTOBJEXT
607DATADIRNAME
608CATOBJEXT
609USE_INCLUDED_LIBINTL
610BUILD_INCLUDED_LIBINTL
611INTLBISON
612GLIBC21
613ALLOCA
614EGREP
615GREP
616CPP
617RANLIB
618host_os
619host_vendor
620host_cpu
621host
622build_os
623build_vendor
624build_cpu
625build
626OBJEXT
627EXEEXT
628ac_ct_CC
629CPPFLAGS
630LDFLAGS
631CFLAGS
632CC
633MSGMERGE
634XGETTEXT
635GMSGFMT
636MSGFMT
637USE_NLS
638MKINSTALLDIRS
639INSTALL_DATA
640INSTALL_SCRIPT
641INSTALL_PROGRAM
642SET_MAKE
643target_alias
644host_alias
645build_alias
646LIBS
647ECHO_T
648ECHO_N
649ECHO_C
650DEFS
651mandir
652localedir
653libdir
654psdir
655pdfdir
656dvidir
657htmldir
658infodir
659docdir
660oldincludedir
661includedir
662localstatedir
663sharedstatedir
664sysconfdir
665datadir
666datarootdir
667libexecdir
668sbindir
669bindir
670program_transform_name
671prefix
672exec_prefix
673PACKAGE_URL
674PACKAGE_BUGREPORT
675PACKAGE_STRING
676PACKAGE_VERSION
677PACKAGE_TARNAME
678PACKAGE_NAME
679PATH_SEPARATOR
680SHELL'
681ac_subst_files=''
682ac_user_opts='
683enable_option_checking
684enable_nls
685with_libiconv_prefix
686with_gnu_ld
687enable_rpath
688with_included_gettext
689with_libintl_prefix
690enable_maintainer_mode
691'
692 ac_precious_vars='build_alias
693host_alias
694target_alias
695CC
696CFLAGS
697LDFLAGS
698LIBS
699CPPFLAGS
700CPP'
701
702
703# Initialize some variables set by options.
704ac_init_help=
705ac_init_version=false
706ac_unrecognized_opts=
707ac_unrecognized_sep=
708# The variables have the same names as the options, with
709# dashes changed to underlines.
710cache_file=/dev/null
711exec_prefix=NONE
712no_create=
713no_recursion=
714prefix=NONE
715program_prefix=NONE
716program_suffix=NONE
717program_transform_name=s,x,x,
718silent=
719site=
720srcdir=
721verbose=
722x_includes=NONE
723x_libraries=NONE
724
725# Installation directory options.
726# These are left unexpanded so users can "make install exec_prefix=/foo"
727# and all the variables that are supposed to be based on exec_prefix
728# by default will actually change.
729# Use braces instead of parens because sh, perl, etc. also accept them.
730# (The list follows the same order as the GNU Coding Standards.)
731bindir='${exec_prefix}/bin'
732sbindir='${exec_prefix}/sbin'
733libexecdir='${exec_prefix}/libexec'
734datarootdir='${prefix}/share'
735datadir='${datarootdir}'
736sysconfdir='${prefix}/etc'
737sharedstatedir='${prefix}/com'
738localstatedir='${prefix}/var'
739includedir='${prefix}/include'
740oldincludedir='/usr/include'
741docdir='${datarootdir}/doc/${PACKAGE}'
742infodir='${datarootdir}/info'
743htmldir='${docdir}'
744dvidir='${docdir}'
745pdfdir='${docdir}'
746psdir='${docdir}'
747libdir='${exec_prefix}/lib'
748localedir='${datarootdir}/locale'
749mandir='${datarootdir}/man'
750
751ac_prev=
752ac_dashdash=
753for ac_option
754do
755 # If the previous option needs an argument, assign it.
756 if test -n "$ac_prev"; then
757 eval $ac_prev=\$ac_option
758 ac_prev=
759 continue
760 fi
761
762 case $ac_option in
763 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
764 *) ac_optarg=yes ;;
765 esac
766
767 # Accept the important Cygnus configure options, so we can diagnose typos.
768
769 case $ac_dashdash$ac_option in
770 --)
771 ac_dashdash=yes ;;
772
773 -bindir | --bindir | --bindi | --bind | --bin | --bi)
774 ac_prev=bindir ;;
775 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
776 bindir=$ac_optarg ;;
777
778 -build | --build | --buil | --bui | --bu)
779 ac_prev=build_alias ;;
780 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
781 build_alias=$ac_optarg ;;
782
783 -cache-file | --cache-file | --cache-fil | --cache-fi \
784 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
785 ac_prev=cache_file ;;
786 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
787 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
788 cache_file=$ac_optarg ;;
789
790 --config-cache | -C)
791 cache_file=config.cache ;;
792
793 -datadir | --datadir | --datadi | --datad)
794 ac_prev=datadir ;;
795 -datadir=* | --datadir=* | --datadi=* | --datad=*)
796 datadir=$ac_optarg ;;
797
798 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
799 | --dataroo | --dataro | --datar)
800 ac_prev=datarootdir ;;
801 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
802 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
803 datarootdir=$ac_optarg ;;
804
805 -disable-* | --disable-*)
806 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
807 # Reject names that are not valid shell variable names.
808 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
809 as_fn_error "invalid feature name: $ac_useropt"
810 ac_useropt_orig=$ac_useropt
811 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
812 case $ac_user_opts in
813 *"
814"enable_$ac_useropt"
815"*) ;;
816 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
817 ac_unrecognized_sep=', ';;
818 esac
819 eval enable_$ac_useropt=no ;;
820
821 -docdir | --docdir | --docdi | --doc | --do)
822 ac_prev=docdir ;;
823 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
824 docdir=$ac_optarg ;;
825
826 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
827 ac_prev=dvidir ;;
828 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
829 dvidir=$ac_optarg ;;
830
831 -enable-* | --enable-*)
832 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
833 # Reject names that are not valid shell variable names.
834 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
835 as_fn_error "invalid feature name: $ac_useropt"
836 ac_useropt_orig=$ac_useropt
837 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
838 case $ac_user_opts in
839 *"
840"enable_$ac_useropt"
841"*) ;;
842 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
843 ac_unrecognized_sep=', ';;
844 esac
845 eval enable_$ac_useropt=\$ac_optarg ;;
846
847 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
848 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
849 | --exec | --exe | --ex)
850 ac_prev=exec_prefix ;;
851 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
852 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
853 | --exec=* | --exe=* | --ex=*)
854 exec_prefix=$ac_optarg ;;
855
856 -gas | --gas | --ga | --g)
857 # Obsolete; use --with-gas.
858 with_gas=yes ;;
859
860 -help | --help | --hel | --he | -h)
861 ac_init_help=long ;;
862 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
863 ac_init_help=recursive ;;
864 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
865 ac_init_help=short ;;
866
867 -host | --host | --hos | --ho)
868 ac_prev=host_alias ;;
869 -host=* | --host=* | --hos=* | --ho=*)
870 host_alias=$ac_optarg ;;
871
872 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
873 ac_prev=htmldir ;;
874 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
875 | --ht=*)
876 htmldir=$ac_optarg ;;
877
878 -includedir | --includedir | --includedi | --included | --include \
879 | --includ | --inclu | --incl | --inc)
880 ac_prev=includedir ;;
881 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
882 | --includ=* | --inclu=* | --incl=* | --inc=*)
883 includedir=$ac_optarg ;;
884
885 -infodir | --infodir | --infodi | --infod | --info | --inf)
886 ac_prev=infodir ;;
887 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
888 infodir=$ac_optarg ;;
889
890 -libdir | --libdir | --libdi | --libd)
891 ac_prev=libdir ;;
892 -libdir=* | --libdir=* | --libdi=* | --libd=*)
893 libdir=$ac_optarg ;;
894
895 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
896 | --libexe | --libex | --libe)
897 ac_prev=libexecdir ;;
898 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
899 | --libexe=* | --libex=* | --libe=*)
900 libexecdir=$ac_optarg ;;
901
902 -localedir | --localedir | --localedi | --localed | --locale)
903 ac_prev=localedir ;;
904 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
905 localedir=$ac_optarg ;;
906
907 -localstatedir | --localstatedir | --localstatedi | --localstated \
908 | --localstate | --localstat | --localsta | --localst | --locals)
909 ac_prev=localstatedir ;;
910 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
911 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
912 localstatedir=$ac_optarg ;;
913
914 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
915 ac_prev=mandir ;;
916 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
917 mandir=$ac_optarg ;;
918
919 -nfp | --nfp | --nf)
920 # Obsolete; use --without-fp.
921 with_fp=no ;;
922
923 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
924 | --no-cr | --no-c | -n)
925 no_create=yes ;;
926
927 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
928 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
929 no_recursion=yes ;;
930
931 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
932 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
933 | --oldin | --oldi | --old | --ol | --o)
934 ac_prev=oldincludedir ;;
935 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
936 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
937 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
938 oldincludedir=$ac_optarg ;;
939
940 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
941 ac_prev=prefix ;;
942 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
943 prefix=$ac_optarg ;;
944
945 -program-prefix | --program-prefix | --program-prefi | --program-pref \
946 | --program-pre | --program-pr | --program-p)
947 ac_prev=program_prefix ;;
948 -program-prefix=* | --program-prefix=* | --program-prefi=* \
949 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
950 program_prefix=$ac_optarg ;;
951
952 -program-suffix | --program-suffix | --program-suffi | --program-suff \
953 | --program-suf | --program-su | --program-s)
954 ac_prev=program_suffix ;;
955 -program-suffix=* | --program-suffix=* | --program-suffi=* \
956 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
957 program_suffix=$ac_optarg ;;
958
959 -program-transform-name | --program-transform-name \
960 | --program-transform-nam | --program-transform-na \
961 | --program-transform-n | --program-transform- \
962 | --program-transform | --program-transfor \
963 | --program-transfo | --program-transf \
964 | --program-trans | --program-tran \
965 | --progr-tra | --program-tr | --program-t)
966 ac_prev=program_transform_name ;;
967 -program-transform-name=* | --program-transform-name=* \
968 | --program-transform-nam=* | --program-transform-na=* \
969 | --program-transform-n=* | --program-transform-=* \
970 | --program-transform=* | --program-transfor=* \
971 | --program-transfo=* | --program-transf=* \
972 | --program-trans=* | --program-tran=* \
973 | --progr-tra=* | --program-tr=* | --program-t=*)
974 program_transform_name=$ac_optarg ;;
975
976 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
977 ac_prev=pdfdir ;;
978 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
979 pdfdir=$ac_optarg ;;
980
981 -psdir | --psdir | --psdi | --psd | --ps)
982 ac_prev=psdir ;;
983 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
984 psdir=$ac_optarg ;;
985
986 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
987 | -silent | --silent | --silen | --sile | --sil)
988 silent=yes ;;
989
990 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
991 ac_prev=sbindir ;;
992 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
993 | --sbi=* | --sb=*)
994 sbindir=$ac_optarg ;;
995
996 -sharedstatedir | --sharedstatedir | --sharedstatedi \
997 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
998 | --sharedst | --shareds | --shared | --share | --shar \
999 | --sha | --sh)
1000 ac_prev=sharedstatedir ;;
1001 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1002 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1003 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1004 | --sha=* | --sh=*)
1005 sharedstatedir=$ac_optarg ;;
1006
1007 -site | --site | --sit)
1008 ac_prev=site ;;
1009 -site=* | --site=* | --sit=*)
1010 site=$ac_optarg ;;
1011
1012 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1013 ac_prev=srcdir ;;
1014 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1015 srcdir=$ac_optarg ;;
1016
1017 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1018 | --syscon | --sysco | --sysc | --sys | --sy)
1019 ac_prev=sysconfdir ;;
1020 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1021 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1022 sysconfdir=$ac_optarg ;;
1023
1024 -target | --target | --targe | --targ | --tar | --ta | --t)
1025 ac_prev=target_alias ;;
1026 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1027 target_alias=$ac_optarg ;;
1028
1029 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1030 verbose=yes ;;
1031
1032 -version | --version | --versio | --versi | --vers | -V)
1033 ac_init_version=: ;;
1034
1035 -with-* | --with-*)
1036 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1037 # Reject names that are not valid shell variable names.
1038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1039 as_fn_error "invalid package name: $ac_useropt"
1040 ac_useropt_orig=$ac_useropt
1041 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1042 case $ac_user_opts in
1043 *"
1044"with_$ac_useropt"
1045"*) ;;
1046 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1047 ac_unrecognized_sep=', ';;
1048 esac
1049 eval with_$ac_useropt=\$ac_optarg ;;
1050
1051 -without-* | --without-*)
1052 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 as_fn_error "invalid package name: $ac_useropt"
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1059 *"
1060"with_$ac_useropt"
1061"*) ;;
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1064 esac
1065 eval with_$ac_useropt=no ;;
1066
1067 --x)
1068 # Obsolete; use --with-x.
1069 with_x=yes ;;
1070
1071 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1072 | --x-incl | --x-inc | --x-in | --x-i)
1073 ac_prev=x_includes ;;
1074 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1075 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1076 x_includes=$ac_optarg ;;
1077
1078 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1079 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1080 ac_prev=x_libraries ;;
1081 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1082 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1083 x_libraries=$ac_optarg ;;
1084
1085 -*) as_fn_error "unrecognized option: \`$ac_option'
1086Try \`$0 --help' for more information."
1087 ;;
1088
1089 *=*)
1090 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1091 # Reject names that are not valid shell variable names.
1092 case $ac_envvar in #(
1093 '' | [0-9]* | *[!_$as_cr_alnum]* )
1094 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1095 esac
1096 eval $ac_envvar=\$ac_optarg
1097 export $ac_envvar ;;
1098
1099 *)
1100 # FIXME: should be removed in autoconf 3.0.
1101 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1102 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1103 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1104 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1105 ;;
1106
1107 esac
1108done
1109
1110if test -n "$ac_prev"; then
1111 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1112 as_fn_error "missing argument to $ac_option"
1113fi
1114
1115if test -n "$ac_unrecognized_opts"; then
1116 case $enable_option_checking in
1117 no) ;;
1118 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1119 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1120 esac
1121fi
1122
1123# Check all directory arguments for consistency.
1124for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1125 datadir sysconfdir sharedstatedir localstatedir includedir \
1126 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1127 libdir localedir mandir
1128do
1129 eval ac_val=\$$ac_var
1130 # Remove trailing slashes.
1131 case $ac_val in
1132 */ )
1133 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1134 eval $ac_var=\$ac_val;;
1135 esac
1136 # Be sure to have absolute directory names.
1137 case $ac_val in
1138 [\\/$]* | ?:[\\/]* ) continue;;
1139 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1140 esac
1141 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1142done
1143
1144# There might be people who depend on the old broken behavior: `$host'
1145# used to hold the argument of --host etc.
1146# FIXME: To remove some day.
1147build=$build_alias
1148host=$host_alias
1149target=$target_alias
1150
1151# FIXME: To remove some day.
1152if test "x$host_alias" != x; then
1153 if test "x$build_alias" = x; then
1154 cross_compiling=maybe
1155 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1156 If a cross compiler is detected then cross compile mode will be used." >&2
1157 elif test "x$build_alias" != "x$host_alias"; then
1158 cross_compiling=yes
1159 fi
1160fi
1161
1162ac_tool_prefix=
1163test -n "$host_alias" && ac_tool_prefix=$host_alias-
1164
1165test "$silent" = yes && exec 6>/dev/null
1166
1167
1168ac_pwd=`pwd` && test -n "$ac_pwd" &&
1169ac_ls_di=`ls -di .` &&
1170ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1171 as_fn_error "working directory cannot be determined"
1172test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1173 as_fn_error "pwd does not report name of working directory"
1174
1175
1176# Find the source files, if location was not specified.
1177if test -z "$srcdir"; then
1178 ac_srcdir_defaulted=yes
1179 # Try the directory containing this script, then the parent directory.
1180 ac_confdir=`$as_dirname -- "$as_myself" ||
1181$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1182 X"$as_myself" : 'X\(//\)[^/]' \| \
1183 X"$as_myself" : 'X\(//\)$' \| \
1184 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1185$as_echo X"$as_myself" |
1186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1187 s//\1/
1188 q
1189 }
1190 /^X\(\/\/\)[^/].*/{
1191 s//\1/
1192 q
1193 }
1194 /^X\(\/\/\)$/{
1195 s//\1/
1196 q
1197 }
1198 /^X\(\/\).*/{
1199 s//\1/
1200 q
1201 }
1202 s/.*/./; q'`
1203 srcdir=$ac_confdir
1204 if test ! -r "$srcdir/$ac_unique_file"; then
1205 srcdir=..
1206 fi
1207else
1208 ac_srcdir_defaulted=no
1209fi
1210if test ! -r "$srcdir/$ac_unique_file"; then
1211 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1212 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1213fi
1214ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1215ac_abs_confdir=`(
1216 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1217 pwd)`
1218# When building in place, set srcdir=.
1219if test "$ac_abs_confdir" = "$ac_pwd"; then
1220 srcdir=.
1221fi
1222# Remove unnecessary trailing slashes from srcdir.
1223# Double slashes in file names in object file debugging info
1224# mess up M-x gdb in Emacs.
1225case $srcdir in
1226*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1227esac
1228for ac_var in $ac_precious_vars; do
1229 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1230 eval ac_env_${ac_var}_value=\$${ac_var}
1231 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1232 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1233done
1234
1235#
1236# Report the --help message.
1237#
1238if test "$ac_init_help" = "long"; then
1239 # Omit some internal or obsolete options to make the list less imposing.
1240 # This message is too long to be a string in the A/UX 3.1 sh.
1241 cat <<_ACEOF
1242\`configure' configures this package to adapt to many kinds of systems.
1243
1244Usage: $0 [OPTION]... [VAR=VALUE]...
1245
1246To assign environment variables (e.g., CC, CFLAGS...), specify them as
1247VAR=VALUE. See below for descriptions of some of the useful variables.
1248
1249Defaults for the options are specified in brackets.
1250
1251Configuration:
1252 -h, --help display this help and exit
1253 --help=short display options specific to this package
1254 --help=recursive display the short help of all the included packages
1255 -V, --version display version information and exit
1256 -q, --quiet, --silent do not print \`checking...' messages
1257 --cache-file=FILE cache test results in FILE [disabled]
1258 -C, --config-cache alias for \`--cache-file=config.cache'
1259 -n, --no-create do not create output files
1260 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1261
1262Installation directories:
1263 --prefix=PREFIX install architecture-independent files in PREFIX
1264 [$ac_default_prefix]
1265 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1266 [PREFIX]
1267
1268By default, \`make install' will install all the files in
1269\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1270an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1271for instance \`--prefix=\$HOME'.
1272
1273For better control, use the options below.
1274
1275Fine tuning of the installation directories:
1276 --bindir=DIR user executables [EPREFIX/bin]
1277 --sbindir=DIR system admin executables [EPREFIX/sbin]
1278 --libexecdir=DIR program executables [EPREFIX/libexec]
1279 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1280 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1281 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1282 --libdir=DIR object code libraries [EPREFIX/lib]
1283 --includedir=DIR C header files [PREFIX/include]
1284 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1285 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1286 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1287 --infodir=DIR info documentation [DATAROOTDIR/info]
1288 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1289 --mandir=DIR man documentation [DATAROOTDIR/man]
1290 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1291 --htmldir=DIR html documentation [DOCDIR]
1292 --dvidir=DIR dvi documentation [DOCDIR]
1293 --pdfdir=DIR pdf documentation [DOCDIR]
1294 --psdir=DIR ps documentation [DOCDIR]
1295_ACEOF
1296
1297 cat <<\_ACEOF
1298
1299System types:
1300 --build=BUILD configure for building on BUILD [guessed]
1301 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1302_ACEOF
1303fi
1304
1305if test -n "$ac_init_help"; then
1306
1307 cat <<\_ACEOF
1308
1309Optional Features:
1310 --disable-option-checking ignore unrecognized --enable/--with options
1311 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1312 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1313 --disable-nls do not use Native Language Support
1314 --disable-rpath do not hardcode runtime library paths
1315 --enable-maintainer-mode enable rules only needed by maintainers
1316
1317Optional Packages:
1318 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1319 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1320 --with-libiconv-prefix=DIR
1321 search for libiconv in DIR/include and DIR/lib
1322 --with-gnu-ld assume the C compiler uses GNU ld default=no
1323 --with-included-gettext use the GNU gettext library included here
1324 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1325 --without-libintl-prefix don't search for libintl in includedir and libdir
1326
1327Some influential environment variables:
1328 CC C compiler command
1329 CFLAGS C compiler flags
1330 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1331 nonstandard directory <lib dir>
1332 LIBS libraries to pass to the linker, e.g. -l<library>
1333 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1334 you have headers in a nonstandard directory <include dir>
1335 CPP C preprocessor
1336
1337Use these variables to override the choices made by `configure' or to help
1338it to find libraries and programs with nonstandard names/locations.
1339
1340Report bugs to the package provider.
1341_ACEOF
1342ac_status=$?
1343fi
1344
1345if test "$ac_init_help" = "recursive"; then
1346 # If there are subdirs, report their specific --help.
1347 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1348 test -d "$ac_dir" ||
1349 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1350 continue
1351 ac_builddir=.
1352
1353case "$ac_dir" in
1354.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1355*)
1356 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1357 # A ".." for each directory in $ac_dir_suffix.
1358 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1359 case $ac_top_builddir_sub in
1360 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1361 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1362 esac ;;
1363esac
1364ac_abs_top_builddir=$ac_pwd
1365ac_abs_builddir=$ac_pwd$ac_dir_suffix
1366# for backward compatibility:
1367ac_top_builddir=$ac_top_build_prefix
1368
1369case $srcdir in
1370 .) # We are building in place.
1371 ac_srcdir=.
1372 ac_top_srcdir=$ac_top_builddir_sub
1373 ac_abs_top_srcdir=$ac_pwd ;;
1374 [\\/]* | ?:[\\/]* ) # Absolute name.
1375 ac_srcdir=$srcdir$ac_dir_suffix;
1376 ac_top_srcdir=$srcdir
1377 ac_abs_top_srcdir=$srcdir ;;
1378 *) # Relative name.
1379 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1380 ac_top_srcdir=$ac_top_build_prefix$srcdir
1381 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1382esac
1383ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1384
1385 cd "$ac_dir" || { ac_status=$?; continue; }
1386 # Check for guested configure.
1387 if test -f "$ac_srcdir/configure.gnu"; then
1388 echo &&
1389 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1390 elif test -f "$ac_srcdir/configure"; then
1391 echo &&
1392 $SHELL "$ac_srcdir/configure" --help=recursive
1393 else
1394 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1395 fi || ac_status=$?
1396 cd "$ac_pwd" || { ac_status=$?; break; }
1397 done
1398fi
1399
1400test -n "$ac_init_help" && exit $ac_status
1401if $ac_init_version; then
1402 cat <<\_ACEOF
1403configure
1404generated by GNU Autoconf 2.64
1405
1406Copyright (C) 2009 Free Software Foundation, Inc.
1407This configure script is free software; the Free Software Foundation
1408gives unlimited permission to copy, distribute and modify it.
1409_ACEOF
1410 exit
1411fi
1412
1413## ------------------------ ##
1414## Autoconf initialization. ##
1415## ------------------------ ##
1416
1417# ac_fn_c_try_compile LINENO
1418# --------------------------
1419# Try to compile conftest.$ac_ext, and return whether this succeeded.
1420ac_fn_c_try_compile ()
1421{
1422 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1423 rm -f conftest.$ac_objext
1424 if { { ac_try="$ac_compile"
1425case "(($ac_try" in
1426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1427 *) ac_try_echo=$ac_try;;
1428esac
1429eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1430$as_echo "$ac_try_echo"; } >&5
1431 (eval "$ac_compile") 2>conftest.err
1432 ac_status=$?
1433 if test -s conftest.err; then
1434 grep -v '^ *+' conftest.err >conftest.er1
1435 cat conftest.er1 >&5
1436 mv -f conftest.er1 conftest.err
1437 fi
1438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1439 test $ac_status = 0; } && {
1440 test -z "$ac_c_werror_flag" ||
1441 test ! -s conftest.err
1442 } && test -s conftest.$ac_objext; then :
1443 ac_retval=0
1444else
1445 $as_echo "$as_me: failed program was:" >&5
1446sed 's/^/| /' conftest.$ac_ext >&5
1447
1448 ac_retval=1
1449fi
1450 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1451 return $ac_retval
1452
1453} # ac_fn_c_try_compile
1454
1455# ac_fn_c_try_link LINENO
1456# -----------------------
1457# Try to link conftest.$ac_ext, and return whether this succeeded.
1458ac_fn_c_try_link ()
1459{
1460 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1461 rm -f conftest.$ac_objext conftest$ac_exeext
1462 if { { ac_try="$ac_link"
1463case "(($ac_try" in
1464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1465 *) ac_try_echo=$ac_try;;
1466esac
1467eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1468$as_echo "$ac_try_echo"; } >&5
1469 (eval "$ac_link") 2>conftest.err
1470 ac_status=$?
1471 if test -s conftest.err; then
1472 grep -v '^ *+' conftest.err >conftest.er1
1473 cat conftest.er1 >&5
1474 mv -f conftest.er1 conftest.err
1475 fi
1476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1477 test $ac_status = 0; } && {
1478 test -z "$ac_c_werror_flag" ||
1479 test ! -s conftest.err
1480 } && test -s conftest$ac_exeext && {
1481 test "$cross_compiling" = yes ||
1482 $as_test_x conftest$ac_exeext
1483 }; then :
1484 ac_retval=0
1485else
1486 $as_echo "$as_me: failed program was:" >&5
1487sed 's/^/| /' conftest.$ac_ext >&5
1488
1489 ac_retval=1
1490fi
1491 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1492 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1493 # interfere with the next link command; also delete a directory that is
1494 # left behind by Apple's compiler. We do this before executing the actions.
1495 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1496 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1497 return $ac_retval
1498
1499} # ac_fn_c_try_link
1500
1501# ac_fn_c_try_cpp LINENO
1502# ----------------------
1503# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1504ac_fn_c_try_cpp ()
1505{
1506 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1507 if { { ac_try="$ac_cpp conftest.$ac_ext"
1508case "(($ac_try" in
1509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1510 *) ac_try_echo=$ac_try;;
1511esac
1512eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1513$as_echo "$ac_try_echo"; } >&5
1514 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1515 ac_status=$?
1516 if test -s conftest.err; then
1517 grep -v '^ *+' conftest.err >conftest.er1
1518 cat conftest.er1 >&5
1519 mv -f conftest.er1 conftest.err
1520 fi
1521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1522 test $ac_status = 0; } >/dev/null && {
1523 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1524 test ! -s conftest.err
1525 }; then :
1526 ac_retval=0
1527else
1528 $as_echo "$as_me: failed program was:" >&5
1529sed 's/^/| /' conftest.$ac_ext >&5
1530
1531 ac_retval=1
1532fi
1533 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1534 return $ac_retval
1535
1536} # ac_fn_c_try_cpp
1537
1538# ac_fn_c_try_run LINENO
1539# ----------------------
1540# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1541# that executables *can* be run.
1542ac_fn_c_try_run ()
1543{
1544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545 if { { ac_try="$ac_link"
1546case "(($ac_try" in
1547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1548 *) ac_try_echo=$ac_try;;
1549esac
1550eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551$as_echo "$ac_try_echo"; } >&5
1552 (eval "$ac_link") 2>&5
1553 ac_status=$?
1554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1556 { { case "(($ac_try" in
1557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1558 *) ac_try_echo=$ac_try;;
1559esac
1560eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1561$as_echo "$ac_try_echo"; } >&5
1562 (eval "$ac_try") 2>&5
1563 ac_status=$?
1564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1565 test $ac_status = 0; }; }; then :
1566 ac_retval=0
1567else
1568 $as_echo "$as_me: program exited with status $ac_status" >&5
1569 $as_echo "$as_me: failed program was:" >&5
1570sed 's/^/| /' conftest.$ac_ext >&5
1571
1572 ac_retval=$ac_status
1573fi
1574 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1575 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1576 return $ac_retval
1577
1578} # ac_fn_c_try_run
1579
1580# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1581# -------------------------------------------
1582# Tests whether TYPE exists after having included INCLUDES, setting cache
1583# variable VAR accordingly.
1584ac_fn_c_check_type ()
1585{
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1588$as_echo_n "checking for $2... " >&6; }
1589if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1590 $as_echo_n "(cached) " >&6
1591else
1592 eval "$3=no"
1593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1594/* end confdefs.h. */
1595$4
1596int
1597main ()
1598{
1599if (sizeof ($2))
1600 return 0;
1601 ;
1602 return 0;
1603}
1604_ACEOF
1605if ac_fn_c_try_compile "$LINENO"; then :
1606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1607/* end confdefs.h. */
1608$4
1609int
1610main ()
1611{
1612if (sizeof (($2)))
1613 return 0;
1614 ;
1615 return 0;
1616}
1617_ACEOF
1618if ac_fn_c_try_compile "$LINENO"; then :
1619
1620else
1621 eval "$3=yes"
1622fi
1623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1624fi
1625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1626fi
1627eval ac_res=\$$3
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1629$as_echo "$ac_res" >&6; }
1630 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1631
1632} # ac_fn_c_check_type
1633
1634# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1635# -------------------------------------------------------
1636# Tests whether HEADER exists and can be compiled using the include files in
1637# INCLUDES, setting the cache variable VAR accordingly.
1638ac_fn_c_check_header_compile ()
1639{
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1642$as_echo_n "checking for $2... " >&6; }
1643if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1644 $as_echo_n "(cached) " >&6
1645else
1646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1647/* end confdefs.h. */
1648$4
1649#include <$2>
1650_ACEOF
1651if ac_fn_c_try_compile "$LINENO"; then :
1652 eval "$3=yes"
1653else
1654 eval "$3=no"
1655fi
1656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1657fi
1658eval ac_res=\$$3
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1660$as_echo "$ac_res" >&6; }
1661 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1662
1663} # ac_fn_c_check_header_compile
1664
1665# ac_fn_c_check_func LINENO FUNC VAR
1666# ----------------------------------
1667# Tests whether FUNC exists, setting the cache variable VAR accordingly
1668ac_fn_c_check_func ()
1669{
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1672$as_echo_n "checking for $2... " >&6; }
1673if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1674 $as_echo_n "(cached) " >&6
1675else
1676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1677/* end confdefs.h. */
1678/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1680#define $2 innocuous_$2
1681
1682/* System header to define __stub macros and hopefully few prototypes,
1683 which can conflict with char $2 (); below.
1684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1685 <limits.h> exists even on freestanding compilers. */
1686
1687#ifdef __STDC__
1688# include <limits.h>
1689#else
1690# include <assert.h>
1691#endif
1692
1693#undef $2
1694
1695/* Override any GCC internal prototype to avoid an error.
1696 Use char because int might match the return type of a GCC
1697 builtin and then its argument prototype would still apply. */
1698#ifdef __cplusplus
1699extern "C"
1700#endif
1701char $2 ();
1702/* The GNU C library defines this for functions which it implements
1703 to always fail with ENOSYS. Some functions are actually named
1704 something starting with __ and the normal name is an alias. */
1705#if defined __stub_$2 || defined __stub___$2
1706choke me
1707#endif
1708
1709int
1710main ()
1711{
1712return $2 ();
1713 ;
1714 return 0;
1715}
1716_ACEOF
1717if ac_fn_c_try_link "$LINENO"; then :
1718 eval "$3=yes"
1719else
1720 eval "$3=no"
1721fi
1722rm -f core conftest.err conftest.$ac_objext \
1723 conftest$ac_exeext conftest.$ac_ext
1724fi
1725eval ac_res=\$$3
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727$as_echo "$ac_res" >&6; }
1728 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1729
1730} # ac_fn_c_check_func
1731
1732# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1733# -------------------------------------------------------
1734# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1735# the include files in INCLUDES and setting the cache variable VAR
1736# accordingly.
1737ac_fn_c_check_header_mongrel ()
1738{
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1742$as_echo_n "checking for $2... " >&6; }
1743if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1744 $as_echo_n "(cached) " >&6
1745fi
1746eval ac_res=\$$3
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748$as_echo "$ac_res" >&6; }
1749else
1750 # Is the header compilable?
1751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1752$as_echo_n "checking $2 usability... " >&6; }
1753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754/* end confdefs.h. */
1755$4
1756#include <$2>
1757_ACEOF
1758if ac_fn_c_try_compile "$LINENO"; then :
1759 ac_header_compiler=yes
1760else
1761 ac_header_compiler=no
1762fi
1763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1765$as_echo "$ac_header_compiler" >&6; }
1766
1767# Is the header present?
1768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1769$as_echo_n "checking $2 presence... " >&6; }
1770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1771/* end confdefs.h. */
1772#include <$2>
1773_ACEOF
1774if ac_fn_c_try_cpp "$LINENO"; then :
1775 ac_header_preproc=yes
1776else
1777 ac_header_preproc=no
1778fi
1779rm -f conftest.err conftest.$ac_ext
1780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1781$as_echo "$ac_header_preproc" >&6; }
1782
1783# So? What about this header?
1784case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1785 yes:no: )
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1787$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1789$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1790 ;;
1791 no:yes:* )
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1793$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1795$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1797$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1799$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1801$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1802 ;;
1803esac
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805$as_echo_n "checking for $2... " >&6; }
1806if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1807 $as_echo_n "(cached) " >&6
1808else
1809 eval "$3=\$ac_header_compiler"
1810fi
1811eval ac_res=\$$3
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813$as_echo "$ac_res" >&6; }
1814fi
1815 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1816
1817} # ac_fn_c_check_header_mongrel
1818cat >config.log <<_ACEOF
1819This file contains any messages produced by compilers while
1820running configure, to aid debugging if configure makes a mistake.
1821
1822It was created by $as_me, which was
1823generated by GNU Autoconf 2.64. Invocation command line was
1824
1825 $ $0 $@
1826
1827_ACEOF
1828exec 5>>config.log
1829{
1830cat <<_ASUNAME
1831## --------- ##
1832## Platform. ##
1833## --------- ##
1834
1835hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1836uname -m = `(uname -m) 2>/dev/null || echo unknown`
1837uname -r = `(uname -r) 2>/dev/null || echo unknown`
1838uname -s = `(uname -s) 2>/dev/null || echo unknown`
1839uname -v = `(uname -v) 2>/dev/null || echo unknown`
1840
1841/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1842/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1843
1844/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1845/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1846/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1847/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1848/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1849/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1850/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1851
1852_ASUNAME
1853
1854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1855for as_dir in $PATH
1856do
1857 IFS=$as_save_IFS
1858 test -z "$as_dir" && as_dir=.
1859 $as_echo "PATH: $as_dir"
1860 done
1861IFS=$as_save_IFS
1862
1863} >&5
1864
1865cat >&5 <<_ACEOF
1866
1867
1868## ----------- ##
1869## Core tests. ##
1870## ----------- ##
1871
1872_ACEOF
1873
1874
1875# Keep a trace of the command line.
1876# Strip out --no-create and --no-recursion so they do not pile up.
1877# Strip out --silent because we don't want to record it for future runs.
1878# Also quote any args containing shell meta-characters.
1879# Make two passes to allow for proper duplicate-argument suppression.
1880ac_configure_args=
1881ac_configure_args0=
1882ac_configure_args1=
1883ac_must_keep_next=false
1884for ac_pass in 1 2
1885do
1886 for ac_arg
1887 do
1888 case $ac_arg in
1889 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1890 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1891 | -silent | --silent | --silen | --sile | --sil)
1892 continue ;;
1893 *\'*)
1894 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1895 esac
1896 case $ac_pass in
1897 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1898 2)
1899 as_fn_append ac_configure_args1 " '$ac_arg'"
1900 if test $ac_must_keep_next = true; then
1901 ac_must_keep_next=false # Got value, back to normal.
1902 else
1903 case $ac_arg in
1904 *=* | --config-cache | -C | -disable-* | --disable-* \
1905 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1906 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1907 | -with-* | --with-* | -without-* | --without-* | --x)
1908 case "$ac_configure_args0 " in
1909 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1910 esac
1911 ;;
1912 -* ) ac_must_keep_next=true ;;
1913 esac
1914 fi
1915 as_fn_append ac_configure_args " '$ac_arg'"
1916 ;;
1917 esac
1918 done
1919done
1920{ ac_configure_args0=; unset ac_configure_args0;}
1921{ ac_configure_args1=; unset ac_configure_args1;}
1922
1923# When interrupted or exit'd, cleanup temporary files, and complete
1924# config.log. We remove comments because anyway the quotes in there
1925# would cause problems or look ugly.
1926# WARNING: Use '\'' to represent an apostrophe within the trap.
1927# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1928trap 'exit_status=$?
1929 # Save into config.log some information that might help in debugging.
1930 {
1931 echo
1932
1933 cat <<\_ASBOX
1934## ---------------- ##
1935## Cache variables. ##
1936## ---------------- ##
1937_ASBOX
1938 echo
1939 # The following way of writing the cache mishandles newlines in values,
1940(
1941 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1942 eval ac_val=\$$ac_var
1943 case $ac_val in #(
1944 *${as_nl}*)
1945 case $ac_var in #(
1946 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1947$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1948 esac
1949 case $ac_var in #(
1950 _ | IFS | as_nl) ;; #(
1951 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1952 *) { eval $ac_var=; unset $ac_var;} ;;
1953 esac ;;
1954 esac
1955 done
1956 (set) 2>&1 |
1957 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1958 *${as_nl}ac_space=\ *)
1959 sed -n \
1960 "s/'\''/'\''\\\\'\'''\''/g;
1961 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1962 ;; #(
1963 *)
1964 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1965 ;;
1966 esac |
1967 sort
1968)
1969 echo
1970
1971 cat <<\_ASBOX
1972## ----------------- ##
1973## Output variables. ##
1974## ----------------- ##
1975_ASBOX
1976 echo
1977 for ac_var in $ac_subst_vars
1978 do
1979 eval ac_val=\$$ac_var
1980 case $ac_val in
1981 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1982 esac
1983 $as_echo "$ac_var='\''$ac_val'\''"
1984 done | sort
1985 echo
1986
1987 if test -n "$ac_subst_files"; then
1988 cat <<\_ASBOX
1989## ------------------- ##
1990## File substitutions. ##
1991## ------------------- ##
1992_ASBOX
1993 echo
1994 for ac_var in $ac_subst_files
1995 do
1996 eval ac_val=\$$ac_var
1997 case $ac_val in
1998 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1999 esac
2000 $as_echo "$ac_var='\''$ac_val'\''"
2001 done | sort
2002 echo
2003 fi
2004
2005 if test -s confdefs.h; then
2006 cat <<\_ASBOX
2007## ----------- ##
2008## confdefs.h. ##
2009## ----------- ##
2010_ASBOX
2011 echo
2012 cat confdefs.h
2013 echo
2014 fi
2015 test "$ac_signal" != 0 &&
2016 $as_echo "$as_me: caught signal $ac_signal"
2017 $as_echo "$as_me: exit $exit_status"
2018 } >&5
2019 rm -f core *.core core.conftest.* &&
2020 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2021 exit $exit_status
2022' 0
2023for ac_signal in 1 2 13 15; do
2024 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2025done
2026ac_signal=0
2027
2028# confdefs.h avoids OS command line length limits that DEFS can exceed.
2029rm -f -r conftest* confdefs.h
2030
2031$as_echo "/* confdefs.h */" > confdefs.h
2032
2033# Predefined preprocessor variables.
2034
2035cat >>confdefs.h <<_ACEOF
2036#define PACKAGE_NAME "$PACKAGE_NAME"
2037_ACEOF
2038
2039cat >>confdefs.h <<_ACEOF
2040#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2041_ACEOF
2042
2043cat >>confdefs.h <<_ACEOF
2044#define PACKAGE_VERSION "$PACKAGE_VERSION"
2045_ACEOF
2046
2047cat >>confdefs.h <<_ACEOF
2048#define PACKAGE_STRING "$PACKAGE_STRING"
2049_ACEOF
2050
2051cat >>confdefs.h <<_ACEOF
2052#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2053_ACEOF
2054
2055cat >>confdefs.h <<_ACEOF
2056#define PACKAGE_URL "$PACKAGE_URL"
2057_ACEOF
2058
2059
2060# Let the site file select an alternate cache file if it wants to.
2061# Prefer an explicitly selected file to automatically selected ones.
2062ac_site_file1=NONE
2063ac_site_file2=NONE
2064if test -n "$CONFIG_SITE"; then
2065 ac_site_file1=$CONFIG_SITE
2066elif test "x$prefix" != xNONE; then
2067 ac_site_file1=$prefix/share/config.site
2068 ac_site_file2=$prefix/etc/config.site
2069else
2070 ac_site_file1=$ac_default_prefix/share/config.site
2071 ac_site_file2=$ac_default_prefix/etc/config.site
2072fi
2073for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2074do
2075 test "x$ac_site_file" = xNONE && continue
2076 if test -r "$ac_site_file"; then
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2078$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2079 sed 's/^/| /' "$ac_site_file" >&5
2080 . "$ac_site_file"
2081 fi
2082done
2083
2084if test -r "$cache_file"; then
2085 # Some versions of bash will fail to source /dev/null (special
2086 # files actually), so we avoid doing that.
2087 if test -f "$cache_file"; then
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2089$as_echo "$as_me: loading cache $cache_file" >&6;}
2090 case $cache_file in
2091 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2092 *) . "./$cache_file";;
2093 esac
2094 fi
2095else
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2097$as_echo "$as_me: creating cache $cache_file" >&6;}
2098 >$cache_file
2099fi
2100
2101# Check that the precious variables saved in the cache have kept the same
2102# value.
2103ac_cache_corrupted=false
2104for ac_var in $ac_precious_vars; do
2105 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2106 eval ac_new_set=\$ac_env_${ac_var}_set
2107 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2108 eval ac_new_val=\$ac_env_${ac_var}_value
2109 case $ac_old_set,$ac_new_set in
2110 set,)
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2112$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2113 ac_cache_corrupted=: ;;
2114 ,set)
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2116$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2117 ac_cache_corrupted=: ;;
2118 ,);;
2119 *)
2120 if test "x$ac_old_val" != "x$ac_new_val"; then
2121 # differences in whitespace do not lead to failure.
2122 ac_old_val_w=`echo x $ac_old_val`
2123 ac_new_val_w=`echo x $ac_new_val`
2124 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2126$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2127 ac_cache_corrupted=:
2128 else
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2130$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2131 eval $ac_var=\$ac_old_val
2132 fi
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2134$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2136$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2137 fi;;
2138 esac
2139 # Pass precious variables to config.status.
2140 if test "$ac_new_set" = set; then
2141 case $ac_new_val in
2142 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2143 *) ac_arg=$ac_var=$ac_new_val ;;
2144 esac
2145 case " $ac_configure_args " in
2146 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2147 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2148 esac
2149 fi
2150done
2151if $ac_cache_corrupted; then
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2153$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2155$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2156 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2157fi
2158## -------------------- ##
2159## Main body of script. ##
2160## -------------------- ##
2161
2162ac_ext=c
2163ac_cpp='$CPP $CPPFLAGS'
2164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2166ac_compiler_gnu=$ac_cv_c_compiler_gnu
2167
2168
2169
2170
2171
2172
2173ac_config_headers="$ac_config_headers config.h"
2174
2175
2176
2177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2178$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2179set x ${MAKE-make}
2180ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2181if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2182 $as_echo_n "(cached) " >&6
2183else
2184 cat >conftest.make <<\_ACEOF
2185SHELL = /bin/sh
2186all:
2187 @echo '@@@%%%=$(MAKE)=@@@%%%'
2188_ACEOF
2189# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2190case `${MAKE-make} -f conftest.make 2>/dev/null` in
2191 *@@@%%%=?*=@@@%%%*)
2192 eval ac_cv_prog_make_${ac_make}_set=yes;;
2193 *)
2194 eval ac_cv_prog_make_${ac_make}_set=no;;
2195esac
2196rm -f conftest.make
2197fi
2198if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2200$as_echo "yes" >&6; }
2201 SET_MAKE=
2202else
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2204$as_echo "no" >&6; }
2205 SET_MAKE="MAKE=${MAKE-make}"
2206fi
2207
2208ac_aux_dir=
2209for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2210 for ac_t in install-sh install.sh shtool; do
2211 if test -f "$ac_dir/$ac_t"; then
2212 ac_aux_dir=$ac_dir
2213 ac_install_sh="$ac_aux_dir/$ac_t -c"
2214 break 2
2215 fi
2216 done
2217done
2218if test -z "$ac_aux_dir"; then
2219 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2220fi
2221
2222# These three variables are undocumented and unsupported,
2223# and are intended to be withdrawn in a future Autoconf release.
2224# They can cause serious problems if a builder's source tree is in a directory
2225# whose full name contains unusual characters.
2226ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2227ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2228ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2229
2230
2231# Find a good install program. We prefer a C program (faster),
2232# so one script is as good as another. But avoid the broken or
2233# incompatible versions:
2234# SysV /etc/install, /usr/sbin/install
2235# SunOS /usr/etc/install
2236# IRIX /sbin/install
2237# AIX /bin/install
2238# AmigaOS /C/install, which installs bootblocks on floppy discs
2239# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2240# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2241# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2242# OS/2's system install, which has a completely different semantic
2243# ./install, which can be erroneously created by make from ./install.sh.
2244# Reject install programs that cannot install multiple files.
2245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2246$as_echo_n "checking for a BSD-compatible install... " >&6; }
2247if test -z "$INSTALL"; then
2248if test "${ac_cv_path_install+set}" = set; then :
2249 $as_echo_n "(cached) " >&6
2250else
2251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2252for as_dir in $PATH
2253do
2254 IFS=$as_save_IFS
2255 test -z "$as_dir" && as_dir=.
2256 # Account for people who put trailing slashes in PATH elements.
2257case $as_dir/ in #((
2258 ./ | .// | /[cC]/* | \
2259 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2260 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2261 /usr/ucb/* ) ;;
2262 *)
2263 # OSF1 and SCO ODT 3.0 have their own names for install.
2264 # Don't use installbsd from OSF since it installs stuff as root
2265 # by default.
2266 for ac_prog in ginstall scoinst install; do
2267 for ac_exec_ext in '' $ac_executable_extensions; do
2268 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2269 if test $ac_prog = install &&
2270 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2271 # AIX install. It has an incompatible calling convention.
2272 :
2273 elif test $ac_prog = install &&
2274 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2275 # program-specific install script used by HP pwplus--don't use.
2276 :
2277 else
2278 rm -rf conftest.one conftest.two conftest.dir
2279 echo one > conftest.one
2280 echo two > conftest.two
2281 mkdir conftest.dir
2282 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2283 test -s conftest.one && test -s conftest.two &&
2284 test -s conftest.dir/conftest.one &&
2285 test -s conftest.dir/conftest.two
2286 then
2287 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2288 break 3
2289 fi
2290 fi
2291 fi
2292 done
2293 done
2294 ;;
2295esac
2296
2297 done
2298IFS=$as_save_IFS
2299
2300rm -rf conftest.one conftest.two conftest.dir
2301
2302fi
2303 if test "${ac_cv_path_install+set}" = set; then
2304 INSTALL=$ac_cv_path_install
2305 else
2306 # As a last resort, use the slow shell script. Don't cache a
2307 # value for INSTALL within a source directory, because that will
2308 # break other packages using the cache if that directory is
2309 # removed, or if the value is a relative name.
2310 INSTALL=$ac_install_sh
2311 fi
2312fi
2313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2314$as_echo "$INSTALL" >&6; }
2315
2316# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2317# It thinks the first close brace ends the variable substitution.
2318test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2319
2320test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2321
2322test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2323
2324
2325 MKINSTALLDIRS=
2326 if test -n "$ac_aux_dir"; then
2327 case "$ac_aux_dir" in
2328 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
2329 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
2330 esac
2331 fi
2332 if test -z "$MKINSTALLDIRS"; then
2333 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
2334 fi
2335
2336
2337
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
2339$as_echo_n "checking whether NLS is requested... " >&6; }
2340 # Check whether --enable-nls was given.
2341if test "${enable_nls+set}" = set; then :
2342 enableval=$enable_nls; USE_NLS=$enableval
2343else
2344 USE_NLS=yes
2345fi
2346
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
2348$as_echo "$USE_NLS" >&6; }
2349
2350
2351
2352
2353
2354
2355# Prepare PATH_SEPARATOR.
2356# The user is always right.
2357if test "${PATH_SEPARATOR+set}" != set; then
2358 echo "#! /bin/sh" >conf$$.sh
2359 echo "exit 0" >>conf$$.sh
2360 chmod +x conf$$.sh
2361 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2362 PATH_SEPARATOR=';'
2363 else
2364 PATH_SEPARATOR=:
2365 fi
2366 rm -f conf$$.sh
2367fi
2368
2369# Find out how to test for executable files. Don't use a zero-byte file,
2370# as systems may use methods other than mode bits to determine executability.
2371cat >conf$$.file <<_ASEOF
2372#! /bin/sh
2373exit 0
2374_ASEOF
2375chmod +x conf$$.file
2376if test -x conf$$.file >/dev/null 2>&1; then
2377 ac_executable_p="test -x"
2378else
2379 ac_executable_p="test -f"
2380fi
2381rm -f conf$$.file
2382
2383# Extract the first word of "msgfmt", so it can be a program name with args.
2384set dummy msgfmt; ac_word=$2
2385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2386$as_echo_n "checking for $ac_word... " >&6; }
2387if test "${ac_cv_path_MSGFMT+set}" = set; then :
2388 $as_echo_n "(cached) " >&6
2389else
2390 case "$MSGFMT" in
2391 [\\/]* | ?:[\\/]*)
2392 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2393 ;;
2394 *)
2395 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2396 for ac_dir in $PATH; do
2397 IFS="$ac_save_IFS"
2398 test -z "$ac_dir" && ac_dir=.
2399 for ac_exec_ext in '' $ac_executable_extensions; do
2400 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2401 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
2402 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2403 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
2404 break 2
2405 fi
2406 fi
2407 done
2408 done
2409 IFS="$ac_save_IFS"
2410 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2411 ;;
2412esac
2413fi
2414MSGFMT="$ac_cv_path_MSGFMT"
2415if test "$MSGFMT" != ":"; then
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
2417$as_echo "$MSGFMT" >&6; }
2418else
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2420$as_echo "no" >&6; }
2421fi
2422
2423 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2424set dummy gmsgfmt; ac_word=$2
2425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2426$as_echo_n "checking for $ac_word... " >&6; }
2427if test "${ac_cv_path_GMSGFMT+set}" = set; then :
2428 $as_echo_n "(cached) " >&6
2429else
2430 case $GMSGFMT in
2431 [\\/]* | ?:[\\/]*)
2432 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2433 ;;
2434 *)
2435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436for as_dir in $PATH
2437do
2438 IFS=$as_save_IFS
2439 test -z "$as_dir" && as_dir=.
2440 for ac_exec_ext in '' $ac_executable_extensions; do
2441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2442 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
2443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2444 break 2
2445 fi
2446done
2447 done
2448IFS=$as_save_IFS
2449
2450 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2451 ;;
2452esac
2453fi
2454GMSGFMT=$ac_cv_path_GMSGFMT
2455if test -n "$GMSGFMT"; then
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
2457$as_echo "$GMSGFMT" >&6; }
2458else
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2460$as_echo "no" >&6; }
2461fi
2462
2463
2464
2465
2466# Prepare PATH_SEPARATOR.
2467# The user is always right.
2468if test "${PATH_SEPARATOR+set}" != set; then
2469 echo "#! /bin/sh" >conf$$.sh
2470 echo "exit 0" >>conf$$.sh
2471 chmod +x conf$$.sh
2472 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2473 PATH_SEPARATOR=';'
2474 else
2475 PATH_SEPARATOR=:
2476 fi
2477 rm -f conf$$.sh
2478fi
2479
2480# Find out how to test for executable files. Don't use a zero-byte file,
2481# as systems may use methods other than mode bits to determine executability.
2482cat >conf$$.file <<_ASEOF
2483#! /bin/sh
2484exit 0
2485_ASEOF
2486chmod +x conf$$.file
2487if test -x conf$$.file >/dev/null 2>&1; then
2488 ac_executable_p="test -x"
2489else
2490 ac_executable_p="test -f"
2491fi
2492rm -f conf$$.file
2493
2494# Extract the first word of "xgettext", so it can be a program name with args.
2495set dummy xgettext; ac_word=$2
2496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2497$as_echo_n "checking for $ac_word... " >&6; }
2498if test "${ac_cv_path_XGETTEXT+set}" = set; then :
2499 $as_echo_n "(cached) " >&6
2500else
2501 case "$XGETTEXT" in
2502 [\\/]* | ?:[\\/]*)
2503 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2504 ;;
2505 *)
2506 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2507 for ac_dir in $PATH; do
2508 IFS="$ac_save_IFS"
2509 test -z "$ac_dir" && ac_dir=.
2510 for ac_exec_ext in '' $ac_executable_extensions; do
2511 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2512 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
2513 (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
2514 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
2515 break 2
2516 fi
2517 fi
2518 done
2519 done
2520 IFS="$ac_save_IFS"
2521 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2522 ;;
2523esac
2524fi
2525XGETTEXT="$ac_cv_path_XGETTEXT"
2526if test "$XGETTEXT" != ":"; then
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
2528$as_echo "$XGETTEXT" >&6; }
2529else
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2531$as_echo "no" >&6; }
2532fi
2533
2534 rm -f messages.po
2535
2536
2537# Prepare PATH_SEPARATOR.
2538# The user is always right.
2539if test "${PATH_SEPARATOR+set}" != set; then
2540 echo "#! /bin/sh" >conf$$.sh
2541 echo "exit 0" >>conf$$.sh
2542 chmod +x conf$$.sh
2543 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2544 PATH_SEPARATOR=';'
2545 else
2546 PATH_SEPARATOR=:
2547 fi
2548 rm -f conf$$.sh
2549fi
2550
2551# Find out how to test for executable files. Don't use a zero-byte file,
2552# as systems may use methods other than mode bits to determine executability.
2553cat >conf$$.file <<_ASEOF
2554#! /bin/sh
2555exit 0
2556_ASEOF
2557chmod +x conf$$.file
2558if test -x conf$$.file >/dev/null 2>&1; then
2559 ac_executable_p="test -x"
2560else
2561 ac_executable_p="test -f"
2562fi
2563rm -f conf$$.file
2564
2565# Extract the first word of "msgmerge", so it can be a program name with args.
2566set dummy msgmerge; ac_word=$2
2567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2568$as_echo_n "checking for $ac_word... " >&6; }
2569if test "${ac_cv_path_MSGMERGE+set}" = set; then :
2570 $as_echo_n "(cached) " >&6
2571else
2572 case "$MSGMERGE" in
2573 [\\/]* | ?:[\\/]*)
2574 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
2575 ;;
2576 *)
2577 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2578 for ac_dir in $PATH; do
2579 IFS="$ac_save_IFS"
2580 test -z "$ac_dir" && ac_dir=.
2581 for ac_exec_ext in '' $ac_executable_extensions; do
2582 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2583 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
2584 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
2585 break 2
2586 fi
2587 fi
2588 done
2589 done
2590 IFS="$ac_save_IFS"
2591 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
2592 ;;
2593esac
2594fi
2595MSGMERGE="$ac_cv_path_MSGMERGE"
2596if test "$MSGMERGE" != ":"; then
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
2598$as_echo "$MSGMERGE" >&6; }
2599else
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2601$as_echo "no" >&6; }
2602fi
2603
2604
2605 if test "$GMSGFMT" != ":"; then
2606 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
2607 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2608 : ;
2609 else
2610 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
2612$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
2613 GMSGFMT=":"
2614 fi
2615 fi
2616
2617 if test "$XGETTEXT" != ":"; then
2618 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
2619 (if $XGETTEXT --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
2620 : ;
2621 else
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
2623$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
2624 XGETTEXT=":"
2625 fi
2626 rm -f messages.po
2627 fi
2628
2629 ac_config_commands="$ac_config_commands default-1"
2630
2631
2632ac_ext=c
2633ac_cpp='$CPP $CPPFLAGS'
2634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2636ac_compiler_gnu=$ac_cv_c_compiler_gnu
2637if test -n "$ac_tool_prefix"; then
2638 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2639set dummy ${ac_tool_prefix}gcc; ac_word=$2
2640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2641$as_echo_n "checking for $ac_word... " >&6; }
2642if test "${ac_cv_prog_CC+set}" = set; then :
2643 $as_echo_n "(cached) " >&6
2644else
2645 if test -n "$CC"; then
2646 ac_cv_prog_CC="$CC" # Let the user override the test.
2647else
2648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649for as_dir in $PATH
2650do
2651 IFS=$as_save_IFS
2652 test -z "$as_dir" && as_dir=.
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2655 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2657 break 2
2658 fi
2659done
2660 done
2661IFS=$as_save_IFS
2662
2663fi
2664fi
2665CC=$ac_cv_prog_CC
2666if test -n "$CC"; then
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2668$as_echo "$CC" >&6; }
2669else
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2671$as_echo "no" >&6; }
2672fi
2673
2674
2675fi
2676if test -z "$ac_cv_prog_CC"; then
2677 ac_ct_CC=$CC
2678 # Extract the first word of "gcc", so it can be a program name with args.
2679set dummy gcc; ac_word=$2
2680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2681$as_echo_n "checking for $ac_word... " >&6; }
2682if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2683 $as_echo_n "(cached) " >&6
2684else
2685 if test -n "$ac_ct_CC"; then
2686 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2687else
2688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689for as_dir in $PATH
2690do
2691 IFS=$as_save_IFS
2692 test -z "$as_dir" && as_dir=.
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2695 ac_cv_prog_ac_ct_CC="gcc"
2696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 break 2
2698 fi
2699done
2700 done
2701IFS=$as_save_IFS
2702
2703fi
2704fi
2705ac_ct_CC=$ac_cv_prog_ac_ct_CC
2706if test -n "$ac_ct_CC"; then
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2708$as_echo "$ac_ct_CC" >&6; }
2709else
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2711$as_echo "no" >&6; }
2712fi
2713
2714 if test "x$ac_ct_CC" = x; then
2715 CC=""
2716 else
2717 case $cross_compiling:$ac_tool_warned in
2718yes:)
2719{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2720$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2721ac_tool_warned=yes ;;
2722esac
2723 CC=$ac_ct_CC
2724 fi
2725else
2726 CC="$ac_cv_prog_CC"
2727fi
2728
2729if test -z "$CC"; then
2730 if test -n "$ac_tool_prefix"; then
2731 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2732set dummy ${ac_tool_prefix}cc; ac_word=$2
2733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2734$as_echo_n "checking for $ac_word... " >&6; }
2735if test "${ac_cv_prog_CC+set}" = set; then :
2736 $as_echo_n "(cached) " >&6
2737else
2738 if test -n "$CC"; then
2739 ac_cv_prog_CC="$CC" # Let the user override the test.
2740else
2741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742for as_dir in $PATH
2743do
2744 IFS=$as_save_IFS
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2748 ac_cv_prog_CC="${ac_tool_prefix}cc"
2749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 break 2
2751 fi
2752done
2753 done
2754IFS=$as_save_IFS
2755
2756fi
2757fi
2758CC=$ac_cv_prog_CC
2759if test -n "$CC"; then
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2761$as_echo "$CC" >&6; }
2762else
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764$as_echo "no" >&6; }
2765fi
2766
2767
2768 fi
2769fi
2770if test -z "$CC"; then
2771 # Extract the first word of "cc", so it can be a program name with args.
2772set dummy cc; ac_word=$2
2773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2774$as_echo_n "checking for $ac_word... " >&6; }
2775if test "${ac_cv_prog_CC+set}" = set; then :
2776 $as_echo_n "(cached) " >&6
2777else
2778 if test -n "$CC"; then
2779 ac_cv_prog_CC="$CC" # Let the user override the test.
2780else
2781 ac_prog_rejected=no
2782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783for as_dir in $PATH
2784do
2785 IFS=$as_save_IFS
2786 test -z "$as_dir" && as_dir=.
2787 for ac_exec_ext in '' $ac_executable_extensions; do
2788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2789 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2790 ac_prog_rejected=yes
2791 continue
2792 fi
2793 ac_cv_prog_CC="cc"
2794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2795 break 2
2796 fi
2797done
2798 done
2799IFS=$as_save_IFS
2800
2801if test $ac_prog_rejected = yes; then
2802 # We found a bogon in the path, so make sure we never use it.
2803 set dummy $ac_cv_prog_CC
2804 shift
2805 if test $# != 0; then
2806 # We chose a different compiler from the bogus one.
2807 # However, it has the same basename, so the bogon will be chosen
2808 # first if we set CC to just the basename; use the full file name.
2809 shift
2810 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2811 fi
2812fi
2813fi
2814fi
2815CC=$ac_cv_prog_CC
2816if test -n "$CC"; then
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2818$as_echo "$CC" >&6; }
2819else
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2821$as_echo "no" >&6; }
2822fi
2823
2824
2825fi
2826if test -z "$CC"; then
2827 if test -n "$ac_tool_prefix"; then
2828 for ac_prog in cl.exe
2829 do
2830 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2831set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833$as_echo_n "checking for $ac_word... " >&6; }
2834if test "${ac_cv_prog_CC+set}" = set; then :
2835 $as_echo_n "(cached) " >&6
2836else
2837 if test -n "$CC"; then
2838 ac_cv_prog_CC="$CC" # Let the user override the test.
2839else
2840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841for as_dir in $PATH
2842do
2843 IFS=$as_save_IFS
2844 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2847 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 break 2
2850 fi
2851done
2852 done
2853IFS=$as_save_IFS
2854
2855fi
2856fi
2857CC=$ac_cv_prog_CC
2858if test -n "$CC"; then
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2860$as_echo "$CC" >&6; }
2861else
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863$as_echo "no" >&6; }
2864fi
2865
2866
2867 test -n "$CC" && break
2868 done
2869fi
2870if test -z "$CC"; then
2871 ac_ct_CC=$CC
2872 for ac_prog in cl.exe
2873do
2874 # Extract the first word of "$ac_prog", so it can be a program name with args.
2875set dummy $ac_prog; ac_word=$2
2876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877$as_echo_n "checking for $ac_word... " >&6; }
2878if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2879 $as_echo_n "(cached) " >&6
2880else
2881 if test -n "$ac_ct_CC"; then
2882 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2883else
2884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885for as_dir in $PATH
2886do
2887 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2891 ac_cv_prog_ac_ct_CC="$ac_prog"
2892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 break 2
2894 fi
2895done
2896 done
2897IFS=$as_save_IFS
2898
2899fi
2900fi
2901ac_ct_CC=$ac_cv_prog_ac_ct_CC
2902if test -n "$ac_ct_CC"; then
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2904$as_echo "$ac_ct_CC" >&6; }
2905else
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907$as_echo "no" >&6; }
2908fi
2909
2910
2911 test -n "$ac_ct_CC" && break
2912done
2913
2914 if test "x$ac_ct_CC" = x; then
2915 CC=""
2916 else
2917 case $cross_compiling:$ac_tool_warned in
2918yes:)
2919{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2920$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2921ac_tool_warned=yes ;;
2922esac
2923 CC=$ac_ct_CC
2924 fi
2925fi
2926
2927fi
2928
2929
2930test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2931$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2932as_fn_error "no acceptable C compiler found in \$PATH
2933See \`config.log' for more details." "$LINENO" 5; }
2934
2935# Provide some information about the compiler.
2936$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2937set X $ac_compile
2938ac_compiler=$2
2939for ac_option in --version -v -V -qversion; do
2940 { { ac_try="$ac_compiler $ac_option >&5"
2941case "(($ac_try" in
2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943 *) ac_try_echo=$ac_try;;
2944esac
2945eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2946$as_echo "$ac_try_echo"; } >&5
2947 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2948 ac_status=$?
2949 if test -s conftest.err; then
2950 sed '10a\
2951... rest of stderr output deleted ...
2952 10q' conftest.err >conftest.er1
2953 cat conftest.er1 >&5
2954 rm -f conftest.er1 conftest.err
2955 fi
2956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2957 test $ac_status = 0; }
2958done
2959
2960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2961/* end confdefs.h. */
2962
2963int
2964main ()
2965{
2966
2967 ;
2968 return 0;
2969}
2970_ACEOF
2971ac_clean_files_save=$ac_clean_files
2972ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2973# Try to create an executable without -o first, disregard a.out.
2974# It will help us diagnose broken compilers, and finding out an intuition
2975# of exeext.
2976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2977$as_echo_n "checking for C compiler default output file name... " >&6; }
2978ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2979
2980# The possible output files:
2981ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2982
2983ac_rmfiles=
2984for ac_file in $ac_files
2985do
2986 case $ac_file in
2987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2988 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2989 esac
2990done
2991rm -f $ac_rmfiles
2992
2993if { { ac_try="$ac_link_default"
2994case "(($ac_try" in
2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996 *) ac_try_echo=$ac_try;;
2997esac
2998eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2999$as_echo "$ac_try_echo"; } >&5
3000 (eval "$ac_link_default") 2>&5
3001 ac_status=$?
3002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3003 test $ac_status = 0; }; then :
3004 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3005# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3006# in a Makefile. We should not override ac_cv_exeext if it was cached,
3007# so that the user can short-circuit this test for compilers unknown to
3008# Autoconf.
3009for ac_file in $ac_files ''
3010do
3011 test -f "$ac_file" || continue
3012 case $ac_file in
3013 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3014 ;;
3015 [ab].out )
3016 # We found the default executable, but exeext='' is most
3017 # certainly right.
3018 break;;
3019 *.* )
3020 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3021 then :; else
3022 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3023 fi
3024 # We set ac_cv_exeext here because the later test for it is not
3025 # safe: cross compilers may not add the suffix if given an `-o'
3026 # argument, so we may need to know it at that point already.
3027 # Even if this section looks crufty: it has the advantage of
3028 # actually working.
3029 break;;
3030 * )
3031 break;;
3032 esac
3033done
3034test "$ac_cv_exeext" = no && ac_cv_exeext=
3035
3036else
3037 ac_file=''
3038fi
3039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3040$as_echo "$ac_file" >&6; }
3041if test -z "$ac_file"; then :
3042 $as_echo "$as_me: failed program was:" >&5
3043sed 's/^/| /' conftest.$ac_ext >&5
3044
3045{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3046$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3047{ as_fn_set_status 77
3048as_fn_error "C compiler cannot create executables
3049See \`config.log' for more details." "$LINENO" 5; }; }
3050fi
3051ac_exeext=$ac_cv_exeext
3052
3053# Check that the compiler produces executables we can run. If not, either
3054# the compiler is broken, or we cross compile.
3055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3056$as_echo_n "checking whether the C compiler works... " >&6; }
3057# If not cross compiling, check that we can run a simple program.
3058if test "$cross_compiling" != yes; then
3059 if { ac_try='./$ac_file'
3060 { { case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3063esac
3064eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3065$as_echo "$ac_try_echo"; } >&5
3066 (eval "$ac_try") 2>&5
3067 ac_status=$?
3068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3069 test $ac_status = 0; }; }; then
3070 cross_compiling=no
3071 else
3072 if test "$cross_compiling" = maybe; then
3073 cross_compiling=yes
3074 else
3075 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3076$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3077as_fn_error "cannot run C compiled programs.
3078If you meant to cross compile, use \`--host'.
3079See \`config.log' for more details." "$LINENO" 5; }
3080 fi
3081 fi
3082fi
3083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3084$as_echo "yes" >&6; }
3085
3086rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3087ac_clean_files=$ac_clean_files_save
3088# Check that the compiler produces executables we can run. If not, either
3089# the compiler is broken, or we cross compile.
3090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3091$as_echo_n "checking whether we are cross compiling... " >&6; }
3092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3093$as_echo "$cross_compiling" >&6; }
3094
3095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3096$as_echo_n "checking for suffix of executables... " >&6; }
3097if { { ac_try="$ac_link"
3098case "(($ac_try" in
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3101esac
3102eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3103$as_echo "$ac_try_echo"; } >&5
3104 (eval "$ac_link") 2>&5
3105 ac_status=$?
3106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3107 test $ac_status = 0; }; then :
3108 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3109# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3110# work properly (i.e., refer to `conftest.exe'), while it won't with
3111# `rm'.
3112for ac_file in conftest.exe conftest conftest.*; do
3113 test -f "$ac_file" || continue
3114 case $ac_file in
3115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3116 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3117 break;;
3118 * ) break;;
3119 esac
3120done
3121else
3122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3123$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3124as_fn_error "cannot compute suffix of executables: cannot compile and link
3125See \`config.log' for more details." "$LINENO" 5; }
3126fi
3127rm -f conftest$ac_cv_exeext
3128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3129$as_echo "$ac_cv_exeext" >&6; }
3130
3131rm -f conftest.$ac_ext
3132EXEEXT=$ac_cv_exeext
3133ac_exeext=$EXEEXT
3134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3135$as_echo_n "checking for suffix of object files... " >&6; }
3136if test "${ac_cv_objext+set}" = set; then :
3137 $as_echo_n "(cached) " >&6
3138else
3139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3140/* end confdefs.h. */
3141
3142int
3143main ()
3144{
3145
3146 ;
3147 return 0;
3148}
3149_ACEOF
3150rm -f conftest.o conftest.obj
3151if { { ac_try="$ac_compile"
3152case "(($ac_try" in
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3155esac
3156eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3157$as_echo "$ac_try_echo"; } >&5
3158 (eval "$ac_compile") 2>&5
3159 ac_status=$?
3160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3161 test $ac_status = 0; }; then :
3162 for ac_file in conftest.o conftest.obj conftest.*; do
3163 test -f "$ac_file" || continue;
3164 case $ac_file in
3165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3166 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3167 break;;
3168 esac
3169done
3170else
3171 $as_echo "$as_me: failed program was:" >&5
3172sed 's/^/| /' conftest.$ac_ext >&5
3173
3174{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3175$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3176as_fn_error "cannot compute suffix of object files: cannot compile
3177See \`config.log' for more details." "$LINENO" 5; }
3178fi
3179rm -f conftest.$ac_cv_objext conftest.$ac_ext
3180fi
3181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3182$as_echo "$ac_cv_objext" >&6; }
3183OBJEXT=$ac_cv_objext
3184ac_objext=$OBJEXT
3185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3186$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3187if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3188 $as_echo_n "(cached) " >&6
3189else
3190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3191/* end confdefs.h. */
3192
3193int
3194main ()
3195{
3196#ifndef __GNUC__
3197 choke me
3198#endif
3199
3200 ;
3201 return 0;
3202}
3203_ACEOF
3204if ac_fn_c_try_compile "$LINENO"; then :
3205 ac_compiler_gnu=yes
3206else
3207 ac_compiler_gnu=no
3208fi
3209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3210ac_cv_c_compiler_gnu=$ac_compiler_gnu
3211
3212fi
3213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3214$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3215if test $ac_compiler_gnu = yes; then
3216 GCC=yes
3217else
3218 GCC=
3219fi
3220ac_test_CFLAGS=${CFLAGS+set}
3221ac_save_CFLAGS=$CFLAGS
3222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3223$as_echo_n "checking whether $CC accepts -g... " >&6; }
3224if test "${ac_cv_prog_cc_g+set}" = set; then :
3225 $as_echo_n "(cached) " >&6
3226else
3227 ac_save_c_werror_flag=$ac_c_werror_flag
3228 ac_c_werror_flag=yes
3229 ac_cv_prog_cc_g=no
3230 CFLAGS="-g"
3231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232/* end confdefs.h. */
3233
3234int
3235main ()
3236{
3237
3238 ;
3239 return 0;
3240}
3241_ACEOF
3242if ac_fn_c_try_compile "$LINENO"; then :
3243 ac_cv_prog_cc_g=yes
3244else
3245 CFLAGS=""
3246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3247/* end confdefs.h. */
3248
3249int
3250main ()
3251{
3252
3253 ;
3254 return 0;
3255}
3256_ACEOF
3257if ac_fn_c_try_compile "$LINENO"; then :
3258
3259else
3260 ac_c_werror_flag=$ac_save_c_werror_flag
3261 CFLAGS="-g"
3262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3263/* end confdefs.h. */
3264
3265int
3266main ()
3267{
3268
3269 ;
3270 return 0;
3271}
3272_ACEOF
3273if ac_fn_c_try_compile "$LINENO"; then :
3274 ac_cv_prog_cc_g=yes
3275fi
3276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3277fi
3278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3279fi
3280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3281 ac_c_werror_flag=$ac_save_c_werror_flag
3282fi
3283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3284$as_echo "$ac_cv_prog_cc_g" >&6; }
3285if test "$ac_test_CFLAGS" = set; then
3286 CFLAGS=$ac_save_CFLAGS
3287elif test $ac_cv_prog_cc_g = yes; then
3288 if test "$GCC" = yes; then
3289 CFLAGS="-g -O2"
3290 else
3291 CFLAGS="-g"
3292 fi
3293else
3294 if test "$GCC" = yes; then
3295 CFLAGS="-O2"
3296 else
3297 CFLAGS=
3298 fi
3299fi
3300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3301$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3302if test "${ac_cv_prog_cc_c89+set}" = set; then :
3303 $as_echo_n "(cached) " >&6
3304else
3305 ac_cv_prog_cc_c89=no
3306ac_save_CC=$CC
3307cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3308/* end confdefs.h. */
3309#include <stdarg.h>
3310#include <stdio.h>
3311#include <sys/types.h>
3312#include <sys/stat.h>
3313/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3314struct buf { int x; };
3315FILE * (*rcsopen) (struct buf *, struct stat *, int);
3316static char *e (p, i)
3317 char **p;
3318 int i;
3319{
3320 return p[i];
3321}
3322static char *f (char * (*g) (char **, int), char **p, ...)
3323{
3324 char *s;
3325 va_list v;
3326 va_start (v,p);
3327 s = g (p, va_arg (v,int));
3328 va_end (v);
3329 return s;
3330}
3331
3332/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3333 function prototypes and stuff, but not '\xHH' hex character constants.
3334 These don't provoke an error unfortunately, instead are silently treated
3335 as 'x'. The following induces an error, until -std is added to get
3336 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3337 array size at least. It's necessary to write '\x00'==0 to get something
3338 that's true only with -std. */
3339int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3340
3341/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3342 inside strings and character constants. */
3343#define FOO(x) 'x'
3344int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3345
3346int test (int i, double x);
3347struct s1 {int (*f) (int a);};
3348struct s2 {int (*f) (double a);};
3349int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3350int argc;
3351char **argv;
3352int
3353main ()
3354{
3355return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3356 ;
3357 return 0;
3358}
3359_ACEOF
3360for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3361 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3362do
3363 CC="$ac_save_CC $ac_arg"
3364 if ac_fn_c_try_compile "$LINENO"; then :
3365 ac_cv_prog_cc_c89=$ac_arg
3366fi
3367rm -f core conftest.err conftest.$ac_objext
3368 test "x$ac_cv_prog_cc_c89" != "xno" && break
3369done
3370rm -f conftest.$ac_ext
3371CC=$ac_save_CC
3372
3373fi
3374# AC_CACHE_VAL
3375case "x$ac_cv_prog_cc_c89" in
3376 x)
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3378$as_echo "none needed" >&6; } ;;
3379 xno)
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3381$as_echo "unsupported" >&6; } ;;
3382 *)
3383 CC="$CC $ac_cv_prog_cc_c89"
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3385$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3386esac
3387if test "x$ac_cv_prog_cc_c89" != xno; then :
3388
3389fi
3390
3391ac_ext=c
3392ac_cpp='$CPP $CPPFLAGS'
3393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3395ac_compiler_gnu=$ac_cv_c_compiler_gnu
3396
3397# Make sure we can run config.sub.
3398$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3399 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3400
3401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3402$as_echo_n "checking build system type... " >&6; }
3403if test "${ac_cv_build+set}" = set; then :
3404 $as_echo_n "(cached) " >&6
3405else
3406 ac_build_alias=$build_alias
3407test "x$ac_build_alias" = x &&
3408 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3409test "x$ac_build_alias" = x &&
3410 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3411ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3412 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3413
3414fi
3415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3416$as_echo "$ac_cv_build" >&6; }
3417case $ac_cv_build in
3418*-*-*) ;;
3419*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3420esac
3421build=$ac_cv_build
3422ac_save_IFS=$IFS; IFS='-'
3423set x $ac_cv_build
3424shift
3425build_cpu=$1
3426build_vendor=$2
3427shift; shift
3428# Remember, the first character of IFS is used to create $*,
3429# except with old shells:
3430build_os=$*
3431IFS=$ac_save_IFS
3432case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3433
3434
3435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3436$as_echo_n "checking host system type... " >&6; }
3437if test "${ac_cv_host+set}" = set; then :
3438 $as_echo_n "(cached) " >&6
3439else
3440 if test "x$host_alias" = x; then
3441 ac_cv_host=$ac_cv_build
3442else
3443 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3444 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3445fi
3446
3447fi
3448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3449$as_echo "$ac_cv_host" >&6; }
3450case $ac_cv_host in
3451*-*-*) ;;
3452*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3453esac
3454host=$ac_cv_host
3455ac_save_IFS=$IFS; IFS='-'
3456set x $ac_cv_host
3457shift
3458host_cpu=$1
3459host_vendor=$2
3460shift; shift
3461# Remember, the first character of IFS is used to create $*,
3462# except with old shells:
3463host_os=$*
3464IFS=$ac_save_IFS
3465case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3466
3467
3468if test -n "$ac_tool_prefix"; then
3469 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3470set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3472$as_echo_n "checking for $ac_word... " >&6; }
3473if test "${ac_cv_prog_RANLIB+set}" = set; then :
3474 $as_echo_n "(cached) " >&6
3475else
3476 if test -n "$RANLIB"; then
3477 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3478else
3479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480for as_dir in $PATH
3481do
3482 IFS=$as_save_IFS
3483 test -z "$as_dir" && as_dir=.
3484 for ac_exec_ext in '' $ac_executable_extensions; do
3485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3486 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3488 break 2
3489 fi
3490done
3491 done
3492IFS=$as_save_IFS
3493
3494fi
3495fi
3496RANLIB=$ac_cv_prog_RANLIB
3497if test -n "$RANLIB"; then
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3499$as_echo "$RANLIB" >&6; }
3500else
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502$as_echo "no" >&6; }
3503fi
3504
3505
3506fi
3507if test -z "$ac_cv_prog_RANLIB"; then
3508 ac_ct_RANLIB=$RANLIB
3509 # Extract the first word of "ranlib", so it can be a program name with args.
3510set dummy ranlib; ac_word=$2
3511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3512$as_echo_n "checking for $ac_word... " >&6; }
3513if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3514 $as_echo_n "(cached) " >&6
3515else
3516 if test -n "$ac_ct_RANLIB"; then
3517 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3518else
3519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520for as_dir in $PATH
3521do
3522 IFS=$as_save_IFS
3523 test -z "$as_dir" && as_dir=.
3524 for ac_exec_ext in '' $ac_executable_extensions; do
3525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3526 ac_cv_prog_ac_ct_RANLIB="ranlib"
3527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3528 break 2
3529 fi
3530done
3531 done
3532IFS=$as_save_IFS
3533
3534fi
3535fi
3536ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3537if test -n "$ac_ct_RANLIB"; then
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3539$as_echo "$ac_ct_RANLIB" >&6; }
3540else
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3542$as_echo "no" >&6; }
3543fi
3544
3545 if test "x$ac_ct_RANLIB" = x; then
3546 RANLIB=":"
3547 else
3548 case $cross_compiling:$ac_tool_warned in
3549yes:)
3550{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3551$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3552ac_tool_warned=yes ;;
3553esac
3554 RANLIB=$ac_ct_RANLIB
3555 fi
3556else
3557 RANLIB="$ac_cv_prog_RANLIB"
3558fi
3559
3560
3561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3562$as_echo_n "checking for library containing strerror... " >&6; }
3563if test "${ac_cv_search_strerror+set}" = set; then :
3564 $as_echo_n "(cached) " >&6
3565else
3566 ac_func_search_save_LIBS=$LIBS
3567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568/* end confdefs.h. */
3569
3570/* Override any GCC internal prototype to avoid an error.
3571 Use char because int might match the return type of a GCC
3572 builtin and then its argument prototype would still apply. */
3573#ifdef __cplusplus
3574extern "C"
3575#endif
3576char strerror ();
3577int
3578main ()
3579{
3580return strerror ();
3581 ;
3582 return 0;
3583}
3584_ACEOF
3585for ac_lib in '' cposix; do
3586 if test -z "$ac_lib"; then
3587 ac_res="none required"
3588 else
3589 ac_res=-l$ac_lib
3590 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3591 fi
3592 if ac_fn_c_try_link "$LINENO"; then :
3593 ac_cv_search_strerror=$ac_res
3594fi
3595rm -f core conftest.err conftest.$ac_objext \
3596 conftest$ac_exeext
3597 if test "${ac_cv_search_strerror+set}" = set; then :
3598 break
3599fi
3600done
3601if test "${ac_cv_search_strerror+set}" = set; then :
3602
3603else
3604 ac_cv_search_strerror=no
3605fi
3606rm conftest.$ac_ext
3607LIBS=$ac_func_search_save_LIBS
3608fi
3609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3610$as_echo "$ac_cv_search_strerror" >&6; }
3611ac_res=$ac_cv_search_strerror
3612if test "$ac_res" != no; then :
3613 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3614
3615fi
3616
3617ac_ext=c
3618ac_cpp='$CPP $CPPFLAGS'
3619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3621ac_compiler_gnu=$ac_cv_c_compiler_gnu
3622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3623$as_echo_n "checking how to run the C preprocessor... " >&6; }
3624# On Suns, sometimes $CPP names a directory.
3625if test -n "$CPP" && test -d "$CPP"; then
3626 CPP=
3627fi
3628if test -z "$CPP"; then
3629 if test "${ac_cv_prog_CPP+set}" = set; then :
3630 $as_echo_n "(cached) " >&6
3631else
3632 # Double quotes because CPP needs to be expanded
3633 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3634 do
3635 ac_preproc_ok=false
3636for ac_c_preproc_warn_flag in '' yes
3637do
3638 # Use a header file that comes with gcc, so configuring glibc
3639 # with a fresh cross-compiler works.
3640 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3641 # <limits.h> exists even on freestanding compilers.
3642 # On the NeXT, cc -E runs the code through the compiler's parser,
3643 # not just through cpp. "Syntax error" is here to catch this case.
3644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645/* end confdefs.h. */
3646#ifdef __STDC__
3647# include <limits.h>
3648#else
3649# include <assert.h>
3650#endif
3651 Syntax error
3652_ACEOF
3653if ac_fn_c_try_cpp "$LINENO"; then :
3654
3655else
3656 # Broken: fails on valid input.
3657continue
3658fi
3659rm -f conftest.err conftest.$ac_ext
3660
3661 # OK, works on sane cases. Now check whether nonexistent headers
3662 # can be detected and how.
3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664/* end confdefs.h. */
3665#include <ac_nonexistent.h>
3666_ACEOF
3667if ac_fn_c_try_cpp "$LINENO"; then :
3668 # Broken: success on invalid input.
3669continue
3670else
3671 # Passes both tests.
3672ac_preproc_ok=:
3673break
3674fi
3675rm -f conftest.err conftest.$ac_ext
3676
3677done
3678# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3679rm -f conftest.err conftest.$ac_ext
3680if $ac_preproc_ok; then :
3681 break
3682fi
3683
3684 done
3685 ac_cv_prog_CPP=$CPP
3686
3687fi
3688 CPP=$ac_cv_prog_CPP
3689else
3690 ac_cv_prog_CPP=$CPP
3691fi
3692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3693$as_echo "$CPP" >&6; }
3694ac_preproc_ok=false
3695for ac_c_preproc_warn_flag in '' yes
3696do
3697 # Use a header file that comes with gcc, so configuring glibc
3698 # with a fresh cross-compiler works.
3699 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3700 # <limits.h> exists even on freestanding compilers.
3701 # On the NeXT, cc -E runs the code through the compiler's parser,
3702 # not just through cpp. "Syntax error" is here to catch this case.
3703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704/* end confdefs.h. */
3705#ifdef __STDC__
3706# include <limits.h>
3707#else
3708# include <assert.h>
3709#endif
3710 Syntax error
3711_ACEOF
3712if ac_fn_c_try_cpp "$LINENO"; then :
3713
3714else
3715 # Broken: fails on valid input.
3716continue
3717fi
3718rm -f conftest.err conftest.$ac_ext
3719
3720 # OK, works on sane cases. Now check whether nonexistent headers
3721 # can be detected and how.
3722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3723/* end confdefs.h. */
3724#include <ac_nonexistent.h>
3725_ACEOF
3726if ac_fn_c_try_cpp "$LINENO"; then :
3727 # Broken: success on invalid input.
3728continue
3729else
3730 # Passes both tests.
3731ac_preproc_ok=:
3732break
3733fi
3734rm -f conftest.err conftest.$ac_ext
3735
3736done
3737# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3738rm -f conftest.err conftest.$ac_ext
3739if $ac_preproc_ok; then :
3740
3741else
3742 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3743$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3744as_fn_error "C preprocessor \"$CPP\" fails sanity check
3745See \`config.log' for more details." "$LINENO" 5; }
3746fi
3747
3748ac_ext=c
3749ac_cpp='$CPP $CPPFLAGS'
3750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752ac_compiler_gnu=$ac_cv_c_compiler_gnu
3753
3754
3755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3756$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3757if test "${ac_cv_path_GREP+set}" = set; then :
3758 $as_echo_n "(cached) " >&6
3759else
3760 if test -z "$GREP"; then
3761 ac_path_GREP_found=false
3762 # Loop through the user's path and test for each of PROGNAME-LIST
3763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3765do
3766 IFS=$as_save_IFS
3767 test -z "$as_dir" && as_dir=.
3768 for ac_prog in grep ggrep; do
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3771 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3772# Check for GNU ac_path_GREP and select it if it is found.
3773 # Check for GNU $ac_path_GREP
3774case `"$ac_path_GREP" --version 2>&1` in
3775*GNU*)
3776 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3777*)
3778 ac_count=0
3779 $as_echo_n 0123456789 >"conftest.in"
3780 while :
3781 do
3782 cat "conftest.in" "conftest.in" >"conftest.tmp"
3783 mv "conftest.tmp" "conftest.in"
3784 cp "conftest.in" "conftest.nl"
3785 $as_echo 'GREP' >> "conftest.nl"
3786 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3787 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3788 as_fn_arith $ac_count + 1 && ac_count=$as_val
3789 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3790 # Best one so far, save it but keep looking for a better one
3791 ac_cv_path_GREP="$ac_path_GREP"
3792 ac_path_GREP_max=$ac_count
3793 fi
3794 # 10*(2^10) chars as input seems more than enough
3795 test $ac_count -gt 10 && break
3796 done
3797 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3798esac
3799
3800 $ac_path_GREP_found && break 3
3801 done
3802 done
3803 done
3804IFS=$as_save_IFS
3805 if test -z "$ac_cv_path_GREP"; then
3806 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3807 fi
3808else
3809 ac_cv_path_GREP=$GREP
3810fi
3811
3812fi
3813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3814$as_echo "$ac_cv_path_GREP" >&6; }
3815 GREP="$ac_cv_path_GREP"
3816
3817
3818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3819$as_echo_n "checking for egrep... " >&6; }
3820if test "${ac_cv_path_EGREP+set}" = set; then :
3821 $as_echo_n "(cached) " >&6
3822else
3823 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3824 then ac_cv_path_EGREP="$GREP -E"
3825 else
3826 if test -z "$EGREP"; then
3827 ac_path_EGREP_found=false
3828 # Loop through the user's path and test for each of PROGNAME-LIST
3829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3831do
3832 IFS=$as_save_IFS
3833 test -z "$as_dir" && as_dir=.
3834 for ac_prog in egrep; do
3835 for ac_exec_ext in '' $ac_executable_extensions; do
3836 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3837 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3838# Check for GNU ac_path_EGREP and select it if it is found.
3839 # Check for GNU $ac_path_EGREP
3840case `"$ac_path_EGREP" --version 2>&1` in
3841*GNU*)
3842 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3843*)
3844 ac_count=0
3845 $as_echo_n 0123456789 >"conftest.in"
3846 while :
3847 do
3848 cat "conftest.in" "conftest.in" >"conftest.tmp"
3849 mv "conftest.tmp" "conftest.in"
3850 cp "conftest.in" "conftest.nl"
3851 $as_echo 'EGREP' >> "conftest.nl"
3852 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3853 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3854 as_fn_arith $ac_count + 1 && ac_count=$as_val
3855 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3856 # Best one so far, save it but keep looking for a better one
3857 ac_cv_path_EGREP="$ac_path_EGREP"
3858 ac_path_EGREP_max=$ac_count
3859 fi
3860 # 10*(2^10) chars as input seems more than enough
3861 test $ac_count -gt 10 && break
3862 done
3863 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3864esac
3865
3866 $ac_path_EGREP_found && break 3
3867 done
3868 done
3869 done
3870IFS=$as_save_IFS
3871 if test -z "$ac_cv_path_EGREP"; then
3872 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3873 fi
3874else
3875 ac_cv_path_EGREP=$EGREP
3876fi
3877
3878 fi
3879fi
3880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3881$as_echo "$ac_cv_path_EGREP" >&6; }
3882 EGREP="$ac_cv_path_EGREP"
3883
3884
3885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3886$as_echo_n "checking for ANSI C header files... " >&6; }
3887if test "${ac_cv_header_stdc+set}" = set; then :
3888 $as_echo_n "(cached) " >&6
3889else
3890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891/* end confdefs.h. */
3892#include <stdlib.h>
3893#include <stdarg.h>
3894#include <string.h>
3895#include <float.h>
3896
3897int
3898main ()
3899{
3900
3901 ;
3902 return 0;
3903}
3904_ACEOF
3905if ac_fn_c_try_compile "$LINENO"; then :
3906 ac_cv_header_stdc=yes
3907else
3908 ac_cv_header_stdc=no
3909fi
3910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3911
3912if test $ac_cv_header_stdc = yes; then
3913 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915/* end confdefs.h. */
3916#include <string.h>
3917
3918_ACEOF
3919if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3920 $EGREP "memchr" >/dev/null 2>&1; then :
3921
3922else
3923 ac_cv_header_stdc=no
3924fi
3925rm -f conftest*
3926
3927fi
3928
3929if test $ac_cv_header_stdc = yes; then
3930 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3932/* end confdefs.h. */
3933#include <stdlib.h>
3934
3935_ACEOF
3936if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3937 $EGREP "free" >/dev/null 2>&1; then :
3938
3939else
3940 ac_cv_header_stdc=no
3941fi
3942rm -f conftest*
3943
3944fi
3945
3946if test $ac_cv_header_stdc = yes; then
3947 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3948 if test "$cross_compiling" = yes; then :
3949 :
3950else
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952/* end confdefs.h. */
3953#include <ctype.h>
3954#include <stdlib.h>
3955#if ((' ' & 0x0FF) == 0x020)
3956# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3957# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3958#else
3959# define ISLOWER(c) \
3960 (('a' <= (c) && (c) <= 'i') \
3961 || ('j' <= (c) && (c) <= 'r') \
3962 || ('s' <= (c) && (c) <= 'z'))
3963# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3964#endif
3965
3966#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3967int
3968main ()
3969{
3970 int i;
3971 for (i = 0; i < 256; i++)
3972 if (XOR (islower (i), ISLOWER (i))
3973 || toupper (i) != TOUPPER (i))
3974 return 2;
3975 return 0;
3976}
3977_ACEOF
3978if ac_fn_c_try_run "$LINENO"; then :
3979
3980else
3981 ac_cv_header_stdc=no
3982fi
3983rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3984 conftest.$ac_objext conftest.beam conftest.$ac_ext
3985fi
3986
3987fi
3988fi
3989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3990$as_echo "$ac_cv_header_stdc" >&6; }
3991if test $ac_cv_header_stdc = yes; then
3992
3993$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3994
3995fi
3996
3997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
3998$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
3999if test "${ac_cv_c_const+set}" = set; then :
4000 $as_echo_n "(cached) " >&6
4001else
4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003/* end confdefs.h. */
4004
4005int
4006main ()
4007{
4008/* FIXME: Include the comments suggested by Paul. */
4009#ifndef __cplusplus
4010 /* Ultrix mips cc rejects this. */
4011 typedef int charset[2];
4012 const charset cs;
4013 /* SunOS 4.1.1 cc rejects this. */
4014 char const *const *pcpcc;
4015 char **ppc;
4016 /* NEC SVR4.0.2 mips cc rejects this. */
4017 struct point {int x, y;};
4018 static struct point const zero = {0,0};
4019 /* AIX XL C 1.02.0.0 rejects this.
4020 It does not let you subtract one const X* pointer from another in
4021 an arm of an if-expression whose if-part is not a constant
4022 expression */
4023 const char *g = "string";
4024 pcpcc = &g + (g ? g-g : 0);
4025 /* HPUX 7.0 cc rejects these. */
4026 ++pcpcc;
4027 ppc = (char**) pcpcc;
4028 pcpcc = (char const *const *) ppc;
4029 { /* SCO 3.2v4 cc rejects this. */
4030 char *t;
4031 char const *s = 0 ? (char *) 0 : (char const *) 0;
4032
4033 *t++ = 0;
4034 if (s) return 0;
4035 }
4036 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4037 int x[] = {25, 17};
4038 const int *foo = &x[0];
4039 ++foo;
4040 }
4041 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4042 typedef const int *iptr;
4043 iptr p = 0;
4044 ++p;
4045 }
4046 { /* AIX XL C 1.02.0.0 rejects this saying
4047 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4048 struct s { int j; const int *ap[3]; };
4049 struct s *b; b->j = 5;
4050 }
4051 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4052 const int foo = 10;
4053 if (!foo) return 0;
4054 }
4055 return !cs[0] && !zero.x;
4056#endif
4057
4058 ;
4059 return 0;
4060}
4061_ACEOF
4062if ac_fn_c_try_compile "$LINENO"; then :
4063 ac_cv_c_const=yes
4064else
4065 ac_cv_c_const=no
4066fi
4067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4068fi
4069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4070$as_echo "$ac_cv_c_const" >&6; }
4071if test $ac_cv_c_const = no; then
4072
4073$as_echo "#define const /**/" >>confdefs.h
4074
4075fi
4076
4077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4078$as_echo_n "checking for inline... " >&6; }
4079if test "${ac_cv_c_inline+set}" = set; then :
4080 $as_echo_n "(cached) " >&6
4081else
4082 ac_cv_c_inline=no
4083for ac_kw in inline __inline__ __inline; do
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085/* end confdefs.h. */
4086#ifndef __cplusplus
4087typedef int foo_t;
4088static $ac_kw foo_t static_foo () {return 0; }
4089$ac_kw foo_t foo () {return 0; }
4090#endif
4091
4092_ACEOF
4093if ac_fn_c_try_compile "$LINENO"; then :
4094 ac_cv_c_inline=$ac_kw
4095fi
4096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4097 test "$ac_cv_c_inline" != no && break
4098done
4099
4100fi
4101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4102$as_echo "$ac_cv_c_inline" >&6; }
4103
4104case $ac_cv_c_inline in
4105 inline | yes) ;;
4106 *)
4107 case $ac_cv_c_inline in
4108 no) ac_val=;;
4109 *) ac_val=$ac_cv_c_inline;;
4110 esac
4111 cat >>confdefs.h <<_ACEOF
4112#ifndef __cplusplus
4113#define inline $ac_val
4114#endif
4115_ACEOF
4116 ;;
4117esac
4118
4119# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4120for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4121 inttypes.h stdint.h unistd.h
4122do :
4123 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4124ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4125"
4126eval as_val=\$$as_ac_Header
4127 if test "x$as_val" = x""yes; then :
4128 cat >>confdefs.h <<_ACEOF
4129#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4130_ACEOF
4131
4132fi
4133
4134done
4135
4136
4137ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
4138if test "x$ac_cv_type_off_t" = x""yes; then :
4139
4140else
4141
4142cat >>confdefs.h <<_ACEOF
4143#define off_t long int
4144_ACEOF
4145
4146fi
4147
4148ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4149if test "x$ac_cv_type_size_t" = x""yes; then :
4150
4151else
4152
4153cat >>confdefs.h <<_ACEOF
4154#define size_t unsigned int
4155_ACEOF
4156
4157fi
4158
4159# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4160# for constant arguments. Useless!
4161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
4162$as_echo_n "checking for working alloca.h... " >&6; }
4163if test "${ac_cv_working_alloca_h+set}" = set; then :
4164 $as_echo_n "(cached) " >&6
4165else
4166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167/* end confdefs.h. */
4168#include <alloca.h>
4169int
4170main ()
4171{
4172char *p = (char *) alloca (2 * sizeof (int));
4173 if (p) return 0;
4174 ;
4175 return 0;
4176}
4177_ACEOF
4178if ac_fn_c_try_link "$LINENO"; then :
4179 ac_cv_working_alloca_h=yes
4180else
4181 ac_cv_working_alloca_h=no
4182fi
4183rm -f core conftest.err conftest.$ac_objext \
4184 conftest$ac_exeext conftest.$ac_ext
4185fi
4186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
4187$as_echo "$ac_cv_working_alloca_h" >&6; }
4188if test $ac_cv_working_alloca_h = yes; then
4189
4190$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
4191
4192fi
4193
4194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
4195$as_echo_n "checking for alloca... " >&6; }
4196if test "${ac_cv_func_alloca_works+set}" = set; then :
4197 $as_echo_n "(cached) " >&6
4198else
4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200/* end confdefs.h. */
4201#ifdef __GNUC__
4202# define alloca __builtin_alloca
4203#else
4204# ifdef _MSC_VER
4205# include <malloc.h>
4206# define alloca _alloca
4207# else
4208# ifdef HAVE_ALLOCA_H
4209# include <alloca.h>
4210# else
4211# ifdef _AIX
4212 #pragma alloca
4213# else
4214# ifndef alloca /* predefined by HP cc +Olibcalls */
4215char *alloca ();
4216# endif
4217# endif
4218# endif
4219# endif
4220#endif
4221
4222int
4223main ()
4224{
4225char *p = (char *) alloca (1);
4226 if (p) return 0;
4227 ;
4228 return 0;
4229}
4230_ACEOF
4231if ac_fn_c_try_link "$LINENO"; then :
4232 ac_cv_func_alloca_works=yes
4233else
4234 ac_cv_func_alloca_works=no
4235fi
4236rm -f core conftest.err conftest.$ac_objext \
4237 conftest$ac_exeext conftest.$ac_ext
4238fi
4239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
4240$as_echo "$ac_cv_func_alloca_works" >&6; }
4241
4242if test $ac_cv_func_alloca_works = yes; then
4243
4244$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
4245
4246else
4247 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4248# that cause trouble. Some versions do not even contain alloca or
4249# contain a buggy version. If you still want to use their alloca,
4250# use ar to extract alloca.o from them instead of compiling alloca.c.
4251
4252ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
4253
4254$as_echo "#define C_ALLOCA 1" >>confdefs.h
4255
4256
4257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
4258$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
4259if test "${ac_cv_os_cray+set}" = set; then :
4260 $as_echo_n "(cached) " >&6
4261else
4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263/* end confdefs.h. */
4264#if defined CRAY && ! defined CRAY2
4265webecray
4266#else
4267wenotbecray
4268#endif
4269
4270_ACEOF
4271if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4272 $EGREP "webecray" >/dev/null 2>&1; then :
4273 ac_cv_os_cray=yes
4274else
4275 ac_cv_os_cray=no
4276fi
4277rm -f conftest*
4278
4279fi
4280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
4281$as_echo "$ac_cv_os_cray" >&6; }
4282if test $ac_cv_os_cray = yes; then
4283 for ac_func in _getb67 GETB67 getb67; do
4284 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4285ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4286eval as_val=\$$as_ac_var
4287 if test "x$as_val" = x""yes; then :
4288
4289cat >>confdefs.h <<_ACEOF
4290#define CRAY_STACKSEG_END $ac_func
4291_ACEOF
4292
4293 break
4294fi
4295
4296 done
4297fi
4298
4299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
4300$as_echo_n "checking stack direction for C alloca... " >&6; }
4301if test "${ac_cv_c_stack_direction+set}" = set; then :
4302 $as_echo_n "(cached) " >&6
4303else
4304 if test "$cross_compiling" = yes; then :
4305 ac_cv_c_stack_direction=0
4306else
4307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308/* end confdefs.h. */
4309$ac_includes_default
4310int
4311find_stack_direction ()
4312{
4313 static char *addr = 0;
4314 auto char dummy;
4315 if (addr == 0)
4316 {
4317 addr = &dummy;
4318 return find_stack_direction ();
4319 }
4320 else
4321 return (&dummy > addr) ? 1 : -1;
4322}
4323
4324int
4325main ()
4326{
4327 return find_stack_direction () < 0;
4328}
4329_ACEOF
4330if ac_fn_c_try_run "$LINENO"; then :
4331 ac_cv_c_stack_direction=1
4332else
4333 ac_cv_c_stack_direction=-1
4334fi
4335rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4336 conftest.$ac_objext conftest.beam conftest.$ac_ext
4337fi
4338
4339fi
4340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
4341$as_echo "$ac_cv_c_stack_direction" >&6; }
4342cat >>confdefs.h <<_ACEOF
4343#define STACK_DIRECTION $ac_cv_c_stack_direction
4344_ACEOF
4345
4346
4347fi
4348
4349for ac_header in stdlib.h unistd.h
4350do :
4351 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4352ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4353eval as_val=\$$as_ac_Header
4354 if test "x$as_val" = x""yes; then :
4355 cat >>confdefs.h <<_ACEOF
4356#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4357_ACEOF
4358
4359fi
4360
4361done
4362
4363for ac_func in getpagesize
4364do :
4365 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
4366if test "x$ac_cv_func_getpagesize" = x""yes; then :
4367 cat >>confdefs.h <<_ACEOF
4368#define HAVE_GETPAGESIZE 1
4369_ACEOF
4370
4371fi
4372done
4373
4374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
4375$as_echo_n "checking for working mmap... " >&6; }
4376if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
4377 $as_echo_n "(cached) " >&6
4378else
4379 if test "$cross_compiling" = yes; then :
4380 ac_cv_func_mmap_fixed_mapped=no
4381else
4382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4383/* end confdefs.h. */
4384$ac_includes_default
4385/* malloc might have been renamed as rpl_malloc. */
4386#undef malloc
4387
4388/* Thanks to Mike Haertel and Jim Avera for this test.
4389 Here is a matrix of mmap possibilities:
4390 mmap private not fixed
4391 mmap private fixed at somewhere currently unmapped
4392 mmap private fixed at somewhere already mapped
4393 mmap shared not fixed
4394 mmap shared fixed at somewhere currently unmapped
4395 mmap shared fixed at somewhere already mapped
4396 For private mappings, we should verify that changes cannot be read()
4397 back from the file, nor mmap's back from the file at a different
4398 address. (There have been systems where private was not correctly
4399 implemented like the infamous i386 svr4.0, and systems where the
4400 VM page cache was not coherent with the file system buffer cache
4401 like early versions of FreeBSD and possibly contemporary NetBSD.)
4402 For shared mappings, we should conversely verify that changes get
4403 propagated back to all the places they're supposed to be.
4404
4405 Grep wants private fixed already mapped.
4406 The main things grep needs to know about mmap are:
4407 * does it exist and is it safe to write into the mmap'd area
4408 * how to use it (BSD variants) */
4409
4410#include <fcntl.h>
4411#include <sys/mman.h>
4412
4413#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
4414char *malloc ();
4415#endif
4416
4417/* This mess was copied from the GNU getpagesize.h. */
4418#ifndef HAVE_GETPAGESIZE
4419/* Assume that all systems that can run configure have sys/param.h. */
4420# ifndef HAVE_SYS_PARAM_H
4421# define HAVE_SYS_PARAM_H 1
4422# endif
4423
4424# ifdef _SC_PAGESIZE
4425# define getpagesize() sysconf(_SC_PAGESIZE)
4426# else /* no _SC_PAGESIZE */
4427# ifdef HAVE_SYS_PARAM_H
4428# include <sys/param.h>
4429# ifdef EXEC_PAGESIZE
4430# define getpagesize() EXEC_PAGESIZE
4431# else /* no EXEC_PAGESIZE */
4432# ifdef NBPG
4433# define getpagesize() NBPG * CLSIZE
4434# ifndef CLSIZE
4435# define CLSIZE 1
4436# endif /* no CLSIZE */
4437# else /* no NBPG */
4438# ifdef NBPC
4439# define getpagesize() NBPC
4440# else /* no NBPC */
4441# ifdef PAGESIZE
4442# define getpagesize() PAGESIZE
4443# endif /* PAGESIZE */
4444# endif /* no NBPC */
4445# endif /* no NBPG */
4446# endif /* no EXEC_PAGESIZE */
4447# else /* no HAVE_SYS_PARAM_H */
4448# define getpagesize() 8192 /* punt totally */
4449# endif /* no HAVE_SYS_PARAM_H */
4450# endif /* no _SC_PAGESIZE */
4451
4452#endif /* no HAVE_GETPAGESIZE */
4453
4454int
4455main ()
4456{
4457 char *data, *data2, *data3;
4458 int i, pagesize;
4459 int fd;
4460
4461 pagesize = getpagesize ();
4462
4463 /* First, make a file with some known garbage in it. */
4464 data = (char *) malloc (pagesize);
4465 if (!data)
4466 return 1;
4467 for (i = 0; i < pagesize; ++i)
4468 *(data + i) = rand ();
4469 umask (0);
4470 fd = creat ("conftest.mmap", 0600);
4471 if (fd < 0)
4472 return 1;
4473 if (write (fd, data, pagesize) != pagesize)
4474 return 1;
4475 close (fd);
4476
4477 /* Next, try to mmap the file at a fixed address which already has
4478 something else allocated at it. If we can, also make sure that
4479 we see the same garbage. */
4480 fd = open ("conftest.mmap", O_RDWR);
4481 if (fd < 0)
4482 return 1;
4483 data2 = (char *) malloc (2 * pagesize);
4484 if (!data2)
4485 return 1;
4486 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
4487 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4488 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4489 return 1;
4490 for (i = 0; i < pagesize; ++i)
4491 if (*(data + i) != *(data2 + i))
4492 return 1;
4493
4494 /* Finally, make sure that changes to the mapped area do not
4495 percolate back to the file as seen by read(). (This is a bug on
4496 some variants of i386 svr4.0.) */
4497 for (i = 0; i < pagesize; ++i)
4498 *(data2 + i) = *(data2 + i) + 1;
4499 data3 = (char *) malloc (pagesize);
4500 if (!data3)
4501 return 1;
4502 if (read (fd, data3, pagesize) != pagesize)
4503 return 1;
4504 for (i = 0; i < pagesize; ++i)
4505 if (*(data + i) != *(data3 + i))
4506 return 1;
4507 close (fd);
4508 return 0;
4509}
4510_ACEOF
4511if ac_fn_c_try_run "$LINENO"; then :
4512 ac_cv_func_mmap_fixed_mapped=yes
4513else
4514 ac_cv_func_mmap_fixed_mapped=no
4515fi
4516rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4517 conftest.$ac_objext conftest.beam conftest.$ac_ext
4518fi
4519
4520fi
4521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
4522$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
4523if test $ac_cv_func_mmap_fixed_mapped = yes; then
4524
4525$as_echo "#define HAVE_MMAP 1" >>confdefs.h
4526
4527fi
4528rm -f conftest.mmap
4529
4530
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
4532$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
4533if test "${ac_cv_gnu_library_2_1+set}" = set; then :
4534 $as_echo_n "(cached) " >&6
4535else
4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537/* end confdefs.h. */
4538
4539#include <features.h>
4540#ifdef __GNU_LIBRARY__
4541 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
4542 Lucky GNU user
4543 #endif
4544#endif
4545
4546_ACEOF
4547if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4548 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
4549 ac_cv_gnu_library_2_1=yes
4550else
4551 ac_cv_gnu_library_2_1=no
4552fi
4553rm -f conftest*
4554
4555
4556
4557fi
4558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
4559$as_echo "$ac_cv_gnu_library_2_1" >&6; }
4560
4561 GLIBC21="$ac_cv_gnu_library_2_1"
4562
4563
4564
4565
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
4567$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
4568if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
4569 $as_echo_n "(cached) " >&6
4570else
4571
4572 if test "$cross_compiling" = yes; then :
4573
4574 # Guess based on the CPU.
4575 case "$host_cpu" in
4576 alpha* | i3456786 | m68k | s390*)
4577 gt_cv_int_divbyzero_sigfpe="guessing yes";;
4578 *)
4579 gt_cv_int_divbyzero_sigfpe="guessing no";;
4580 esac
4581
4582else
4583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584/* end confdefs.h. */
4585
4586#include <stdlib.h>
4587#include <signal.h>
4588
4589static void
4590#ifdef __cplusplus
4591sigfpe_handler (int sig)
4592#else
4593sigfpe_handler (sig) int sig;
4594#endif
4595{
4596 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
4597 exit (sig != SIGFPE);
4598}
4599
4600int x = 1;
4601int y = 0;
4602int z;
4603int nan;
4604
4605int main ()
4606{
4607 signal (SIGFPE, sigfpe_handler);
4608/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
4609#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
4610 signal (SIGTRAP, sigfpe_handler);
4611#endif
4612/* Linux/SPARC yields signal SIGILL. */
4613#if defined (__sparc__) && defined (__linux__)
4614 signal (SIGILL, sigfpe_handler);
4615#endif
4616
4617 z = x / y;
4618 nan = y / y;
4619 exit (1);
4620}
4621
4622_ACEOF
4623if ac_fn_c_try_run "$LINENO"; then :
4624 gt_cv_int_divbyzero_sigfpe=yes
4625else
4626 gt_cv_int_divbyzero_sigfpe=no
4627fi
4628rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4629 conftest.$ac_objext conftest.beam conftest.$ac_ext
4630fi
4631
4632
4633fi
4634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
4635$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
4636 case "$gt_cv_int_divbyzero_sigfpe" in
4637 *yes) value=1;;
4638 *) value=0;;
4639 esac
4640
4641cat >>confdefs.h <<_ACEOF
4642#define INTDIV0_RAISES_SIGFPE $value
4643_ACEOF
4644
4645
4646
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
4648$as_echo_n "checking for inttypes.h... " >&6; }
4649if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
4650 $as_echo_n "(cached) " >&6
4651else
4652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653/* end confdefs.h. */
4654#include <sys/types.h>
4655#include <inttypes.h>
4656int
4657main ()
4658{
4659uintmax_t i = (uintmax_t) -1;
4660 ;
4661 return 0;
4662}
4663_ACEOF
4664if ac_fn_c_try_compile "$LINENO"; then :
4665 jm_ac_cv_header_inttypes_h=yes
4666else
4667 jm_ac_cv_header_inttypes_h=no
4668fi
4669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4670fi
4671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
4672$as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
4673 if test $jm_ac_cv_header_inttypes_h = yes; then
4674
4675cat >>confdefs.h <<_ACEOF
4676#define HAVE_INTTYPES_H_WITH_UINTMAX 1
4677_ACEOF
4678
4679 fi
4680
4681
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
4683$as_echo_n "checking for stdint.h... " >&6; }
4684if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
4685 $as_echo_n "(cached) " >&6
4686else
4687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4688/* end confdefs.h. */
4689#include <sys/types.h>
4690#include <stdint.h>
4691int
4692main ()
4693{
4694uintmax_t i = (uintmax_t) -1;
4695 ;
4696 return 0;
4697}
4698_ACEOF
4699if ac_fn_c_try_compile "$LINENO"; then :
4700 jm_ac_cv_header_stdint_h=yes
4701else
4702 jm_ac_cv_header_stdint_h=no
4703fi
4704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4705fi
4706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
4707$as_echo "$jm_ac_cv_header_stdint_h" >&6; }
4708 if test $jm_ac_cv_header_stdint_h = yes; then
4709
4710cat >>confdefs.h <<_ACEOF
4711#define HAVE_STDINT_H_WITH_UINTMAX 1
4712_ACEOF
4713
4714 fi
4715
4716
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
4718$as_echo_n "checking for unsigned long long... " >&6; }
4719if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
4720 $as_echo_n "(cached) " >&6
4721else
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723/* end confdefs.h. */
4724unsigned long long ull = 1; int i = 63;
4725int
4726main ()
4727{
4728unsigned long long ullmax = (unsigned long long) -1;
4729 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
4730 ;
4731 return 0;
4732}
4733_ACEOF
4734if ac_fn_c_try_link "$LINENO"; then :
4735 ac_cv_type_unsigned_long_long=yes
4736else
4737 ac_cv_type_unsigned_long_long=no
4738fi
4739rm -f core conftest.err conftest.$ac_objext \
4740 conftest$ac_exeext conftest.$ac_ext
4741fi
4742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
4743$as_echo "$ac_cv_type_unsigned_long_long" >&6; }
4744 if test $ac_cv_type_unsigned_long_long = yes; then
4745
4746$as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
4747
4748 fi
4749
4750
4751
4752
4753 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
4754
4755 test $ac_cv_type_unsigned_long_long = yes \
4756 && ac_type='unsigned long long' \
4757 || ac_type='unsigned long'
4758
4759cat >>confdefs.h <<_ACEOF
4760#define uintmax_t $ac_type
4761_ACEOF
4762
4763 else
4764
4765$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
4766
4767 fi
4768
4769
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
4771$as_echo_n "checking for inttypes.h... " >&6; }
4772if test "${gt_cv_header_inttypes_h+set}" = set; then :
4773 $as_echo_n "(cached) " >&6
4774else
4775
4776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777/* end confdefs.h. */
4778#include <sys/types.h>
4779#include <inttypes.h>
4780int
4781main ()
4782{
4783
4784 ;
4785 return 0;
4786}
4787_ACEOF
4788if ac_fn_c_try_compile "$LINENO"; then :
4789 gt_cv_header_inttypes_h=yes
4790else
4791 gt_cv_header_inttypes_h=no
4792fi
4793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4794
4795fi
4796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
4797$as_echo "$gt_cv_header_inttypes_h" >&6; }
4798 if test $gt_cv_header_inttypes_h = yes; then
4799
4800cat >>confdefs.h <<_ACEOF
4801#define HAVE_INTTYPES_H 1
4802_ACEOF
4803
4804 fi
4805
4806
4807
4808 if test $gt_cv_header_inttypes_h = yes; then
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
4810$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
4811if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
4812 $as_echo_n "(cached) " >&6
4813else
4814
4815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4816/* end confdefs.h. */
4817#include <inttypes.h>
4818#ifdef PRId32
4819char *p = PRId32;
4820#endif
4821
4822int
4823main ()
4824{
4825
4826 ;
4827 return 0;
4828}
4829_ACEOF
4830if ac_fn_c_try_compile "$LINENO"; then :
4831 gt_cv_inttypes_pri_broken=no
4832else
4833 gt_cv_inttypes_pri_broken=yes
4834fi
4835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4836
4837fi
4838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
4839$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
4840 fi
4841 if test "$gt_cv_inttypes_pri_broken" = yes; then
4842
4843cat >>confdefs.h <<_ACEOF
4844#define PRI_MACROS_BROKEN 1
4845_ACEOF
4846
4847 fi
4848
4849
4850
4851 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
4852stdlib.h string.h unistd.h sys/param.h
4853do :
4854 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4855ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4856eval as_val=\$$as_ac_Header
4857 if test "x$as_val" = x""yes; then :
4858 cat >>confdefs.h <<_ACEOF
4859#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4860_ACEOF
4861
4862fi
4863
4864done
4865
4866 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
4867geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
4868strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
4869__fsetlocking
4870do :
4871 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4872ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4873eval as_val=\$$as_ac_var
4874 if test "x$as_val" = x""yes; then :
4875 cat >>confdefs.h <<_ACEOF
4876#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4877_ACEOF
4878
4879fi
4880done
4881
4882
4883
4884
4885
4886# Check whether --with-libiconv-prefix was given.
4887if test "${with_libiconv_prefix+set}" = set; then :
4888 withval=$with_libiconv_prefix;
4889 for dir in `echo "$withval" | tr : ' '`; do
4890 if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
4891 if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
4892 done
4893
4894fi
4895
4896
4897 BUILD_LIBICONV_LIBDIRS="../libiconv/lib/.libs ../libiconv/lib/_libs"
4898 BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
4899
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
4901$as_echo_n "checking for iconv... " >&6; }
4902if test "${am_cv_func_iconv+set}" = set; then :
4903 $as_echo_n "(cached) " >&6
4904else
4905
4906 am_cv_func_iconv="no, consider installing GNU libiconv"
4907 am_cv_lib_iconv=no
4908 am_cv_use_build_libiconv=no
4909 am_cv_build_libiconv_path=
4910
4911 # First, try to find iconv in libc.
4912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4913/* end confdefs.h. */
4914#include <stdlib.h>
4915#include <iconv.h>
4916int
4917main ()
4918{
4919iconv_t cd = iconv_open("","");
4920 iconv(cd,NULL,NULL,NULL,NULL);
4921 iconv_close(cd);
4922 ;
4923 return 0;
4924}
4925_ACEOF
4926if ac_fn_c_try_link "$LINENO"; then :
4927 am_cv_func_iconv=yes
4928fi
4929rm -f core conftest.err conftest.$ac_objext \
4930 conftest$ac_exeext conftest.$ac_ext
4931
4932 # If libiconv is part of the build tree, then try using it over
4933 # any system libiconv.
4934 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
4935 for lib_dir in $BUILD_LIBICONV_LIBDIRS; do
4936 am_save_LIBS="$LIBS"
4937 am_save_CPPFLAGS="$CPPFLAGS"
4938 LIBS="$LIBS $lib_dir/libiconv.a"
4939 CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
4940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4941/* end confdefs.h. */
4942#include <stdlib.h>
4943#include <iconv.h>
4944int
4945main ()
4946{
4947iconv_t cd = iconv_open("","");
4948 iconv(cd,NULL,NULL,NULL,NULL);
4949 iconv_close(cd);
4950 ;
4951 return 0;
4952}
4953_ACEOF
4954if ac_fn_c_try_link "$LINENO"; then :
4955 am_cv_use_build_libiconv=yes
4956 am_cv_build_libiconv_path=$lib_dir/libiconv.a
4957 am_cv_lib_iconv=yes
4958 am_cv_func_iconv=yes
4959fi
4960rm -f core conftest.err conftest.$ac_objext \
4961 conftest$ac_exeext conftest.$ac_ext
4962 LIBS="$am_save_LIBS"
4963 CPPFLAGS="$am_save_CPPFLAGS"
4964 if test "$am_cv_use_build_libiconv" = "yes"; then
4965 break
4966 fi
4967 done
4968 fi
4969
4970 # If iconv was not in libc, try -liconv. In this case, arrange to
4971 # look in the libiconv prefix, if it was specified by the user.
4972 if test "$am_cv_func_iconv" != yes; then
4973 am_save_CPPFLAGS="$CPPFLAGS"
4974 am_save_LIBS="$LIBS"
4975 if test -n "$LIBICONV_INCLUDE"; then
4976 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
4977 LIBS="$LIBS $LIBICONV_LIBDIR"
4978 fi
4979 LIBS="$LIBS -liconv"
4980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4981/* end confdefs.h. */
4982#include <stdlib.h>
4983#include <iconv.h>
4984int
4985main ()
4986{
4987iconv_t cd = iconv_open("","");
4988 iconv(cd,NULL,NULL,NULL,NULL);
4989 iconv_close(cd);
4990 ;
4991 return 0;
4992}
4993_ACEOF
4994if ac_fn_c_try_link "$LINENO"; then :
4995 am_cv_lib_iconv=yes
4996 am_cv_func_iconv=yes
4997fi
4998rm -f core conftest.err conftest.$ac_objext \
4999 conftest$ac_exeext conftest.$ac_ext
5000 LIBS="$am_save_LIBS"
5001 CPPFLAGS="$am_save_CPPFLAGS"
5002 fi
5003
5004fi
5005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5006$as_echo "$am_cv_func_iconv" >&6; }
5007
5008 # Set the various flags based on the cache variables. We can't rely
5009 # on the flags to remain set from the above code, due to caching.
5010 LIBICONV=
5011 if test "$am_cv_lib_iconv" = yes; then
5012 LIBICONV="-liconv"
5013 else
5014 LIBICONV_LIBDIR=
5015 LIBICONV_INCLUDE=
5016 fi
5017 if test "$am_cv_use_build_libiconv" = yes; then
5018 LIBICONV="$am_cv_build_libiconv_path"
5019 LIBICONV_LIBDIR=""
5020 LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
5021 fi
5022 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
5023 LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
5024
5025 if test "$am_cv_func_iconv" = yes; then
5026
5027$as_echo "#define HAVE_ICONV 1" >>confdefs.h
5028
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
5030$as_echo_n "checking for iconv declaration... " >&6; }
5031 if test "${am_cv_proto_iconv+set}" = set; then :
5032 $as_echo_n "(cached) " >&6
5033else
5034
5035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5036/* end confdefs.h. */
5037
5038#include <stdlib.h>
5039#include <iconv.h>
5040extern
5041#ifdef __cplusplus
5042"C"
5043#endif
5044#if defined(__STDC__) || defined(__cplusplus)
5045size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5046#else
5047size_t iconv();
5048#endif
5049
5050int
5051main ()
5052{
5053
5054 ;
5055 return 0;
5056}
5057_ACEOF
5058if ac_fn_c_try_compile "$LINENO"; then :
5059 am_cv_proto_iconv_arg1=""
5060else
5061 am_cv_proto_iconv_arg1="const"
5062fi
5063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5064 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
5065fi
5066
5067 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
5069 }$am_cv_proto_iconv" >&5
5070$as_echo "${ac_t:-
5071 }$am_cv_proto_iconv" >&6; }
5072
5073cat >>confdefs.h <<_ACEOF
5074#define ICONV_CONST $am_cv_proto_iconv_arg1
5075_ACEOF
5076
5077 fi
5078
5079
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
5081$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
5082if test "${am_cv_langinfo_codeset+set}" = set; then :
5083 $as_echo_n "(cached) " >&6
5084else
5085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5086/* end confdefs.h. */
5087#include <langinfo.h>
5088int
5089main ()
5090{
5091char* cs = nl_langinfo(CODESET);
5092 ;
5093 return 0;
5094}
5095_ACEOF
5096if ac_fn_c_try_link "$LINENO"; then :
5097 am_cv_langinfo_codeset=yes
5098else
5099 am_cv_langinfo_codeset=no
5100fi
5101rm -f core conftest.err conftest.$ac_objext \
5102 conftest$ac_exeext conftest.$ac_ext
5103
5104fi
5105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
5106$as_echo "$am_cv_langinfo_codeset" >&6; }
5107 if test $am_cv_langinfo_codeset = yes; then
5108
5109$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
5110
5111 fi
5112
5113 if test $ac_cv_header_locale_h = yes; then
5114
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
5116$as_echo_n "checking for LC_MESSAGES... " >&6; }
5117if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
5118 $as_echo_n "(cached) " >&6
5119else
5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121/* end confdefs.h. */
5122#include <locale.h>
5123int
5124main ()
5125{
5126return LC_MESSAGES
5127 ;
5128 return 0;
5129}
5130_ACEOF
5131if ac_fn_c_try_link "$LINENO"; then :
5132 am_cv_val_LC_MESSAGES=yes
5133else
5134 am_cv_val_LC_MESSAGES=no
5135fi
5136rm -f core conftest.err conftest.$ac_objext \
5137 conftest$ac_exeext conftest.$ac_ext
5138fi
5139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
5140$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
5141 if test $am_cv_val_LC_MESSAGES = yes; then
5142
5143$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
5144
5145 fi
5146
5147 fi
5148
5149 for ac_prog in bison
5150do
5151 # Extract the first word of "$ac_prog", so it can be a program name with args.
5152set dummy $ac_prog; ac_word=$2
5153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5154$as_echo_n "checking for $ac_word... " >&6; }
5155if test "${ac_cv_prog_INTLBISON+set}" = set; then :
5156 $as_echo_n "(cached) " >&6
5157else
5158 if test -n "$INTLBISON"; then
5159 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
5160else
5161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162for as_dir in $PATH
5163do
5164 IFS=$as_save_IFS
5165 test -z "$as_dir" && as_dir=.
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5168 ac_cv_prog_INTLBISON="$ac_prog"
5169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 break 2
5171 fi
5172done
5173 done
5174IFS=$as_save_IFS
5175
5176fi
5177fi
5178INTLBISON=$ac_cv_prog_INTLBISON
5179if test -n "$INTLBISON"; then
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
5181$as_echo "$INTLBISON" >&6; }
5182else
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5184$as_echo "no" >&6; }
5185fi
5186
5187
5188 test -n "$INTLBISON" && break
5189done
5190
5191 if test -z "$INTLBISON"; then
5192 ac_verc_fail=yes
5193 else
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
5195$as_echo_n "checking version of bison... " >&6; }
5196 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5197 case $ac_prog_version in
5198 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5199 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
5200 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5201 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5202 esac
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5204$as_echo "$ac_prog_version" >&6; }
5205 fi
5206 if test $ac_verc_fail = yes; then
5207 INTLBISON=:
5208 fi
5209
5210
5211 if test "X$prefix" = "XNONE"; then
5212 acl_final_prefix="$ac_default_prefix"
5213 else
5214 acl_final_prefix="$prefix"
5215 fi
5216 if test "X$exec_prefix" = "XNONE"; then
5217 acl_final_exec_prefix='${prefix}'
5218 else
5219 acl_final_exec_prefix="$exec_prefix"
5220 fi
5221 acl_save_prefix="$prefix"
5222 prefix="$acl_final_prefix"
5223 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5224 prefix="$acl_save_prefix"
5225
5226
5227# Check whether --with-gnu-ld was given.
5228if test "${with_gnu_ld+set}" = set; then :
5229 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5230else
5231 with_gnu_ld=no
5232fi
5233
5234# Prepare PATH_SEPARATOR.
5235# The user is always right.
5236if test "${PATH_SEPARATOR+set}" != set; then
5237 echo "#! /bin/sh" >conf$$.sh
5238 echo "exit 0" >>conf$$.sh
5239 chmod +x conf$$.sh
5240 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5241 PATH_SEPARATOR=';'
5242 else
5243 PATH_SEPARATOR=:
5244 fi
5245 rm -f conf$$.sh
5246fi
5247ac_prog=ld
5248if test "$GCC" = yes; then
5249 # Check if gcc -print-prog-name=ld gives a path.
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5251$as_echo_n "checking for ld used by GCC... " >&6; }
5252 case $host in
5253 *-*-mingw*)
5254 # gcc leaves a trailing carriage return which upsets mingw
5255 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5256 *)
5257 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5258 esac
5259 case $ac_prog in
5260 # Accept absolute paths.
5261 [\\/]* | [A-Za-z]:[\\/]*)
5262 re_direlt='/[^/][^/]*/\.\./'
5263 # Canonicalize the path of ld
5264 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5265 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5266 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5267 done
5268 test -z "$LD" && LD="$ac_prog"
5269 ;;
5270 "")
5271 # If it fails, then pretend we aren't using GCC.
5272 ac_prog=ld
5273 ;;
5274 *)
5275 # If it is relative, then search for the first ld in PATH.
5276 with_gnu_ld=unknown
5277 ;;
5278 esac
5279elif test "$with_gnu_ld" = yes; then
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5281$as_echo_n "checking for GNU ld... " >&6; }
5282else
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5284$as_echo_n "checking for non-GNU ld... " >&6; }
5285fi
5286if test "${acl_cv_path_LD+set}" = set; then :
5287 $as_echo_n "(cached) " >&6
5288else
5289 if test -z "$LD"; then
5290 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5291 for ac_dir in $PATH; do
5292 test -z "$ac_dir" && ac_dir=.
5293 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5294 acl_cv_path_LD="$ac_dir/$ac_prog"
5295 # Check to see if the program is GNU ld. I'd rather use --version,
5296 # but apparently some GNU ld's only accept -v.
5297 # Break only if it was the GNU/non-GNU ld that we prefer.
5298 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5299 test "$with_gnu_ld" != no && break
5300 else
5301 test "$with_gnu_ld" != yes && break
5302 fi
5303 fi
5304 done
5305 IFS="$ac_save_ifs"
5306else
5307 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5308fi
5309fi
5310
5311LD="$acl_cv_path_LD"
5312if test -n "$LD"; then
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5314$as_echo "$LD" >&6; }
5315else
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5317$as_echo "no" >&6; }
5318fi
5319test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5321$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5322if test "${acl_cv_prog_gnu_ld+set}" = set; then :
5323 $as_echo_n "(cached) " >&6
5324else
5325 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5326if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5327 acl_cv_prog_gnu_ld=yes
5328else
5329 acl_cv_prog_gnu_ld=no
5330fi
5331fi
5332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5333$as_echo "$acl_cv_prog_gnu_ld" >&6; }
5334with_gnu_ld=$acl_cv_prog_gnu_ld
5335
5336
5337
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5339$as_echo_n "checking for shared library run path origin... " >&6; }
5340if test "${acl_cv_rpath+set}" = set; then :
5341 $as_echo_n "(cached) " >&6
5342else
5343
5344 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5345 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5346 . ./conftest.sh
5347 rm -f ./conftest.sh
5348 acl_cv_rpath=done
5349
5350fi
5351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5352$as_echo "$acl_cv_rpath" >&6; }
5353 wl="$acl_cv_wl"
5354 libext="$acl_cv_libext"
5355 shlibext="$acl_cv_shlibext"
5356 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5357 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5358 hardcode_direct="$acl_cv_hardcode_direct"
5359 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5360 # Check whether --enable-rpath was given.
5361if test "${enable_rpath+set}" = set; then :
5362 enableval=$enable_rpath; :
5363else
5364 enable_rpath=yes
5365fi
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5384$as_echo_n "checking whether NLS is requested... " >&6; }
5385 # Check whether --enable-nls was given.
5386if test "${enable_nls+set}" = set; then :
5387 enableval=$enable_nls; USE_NLS=$enableval
5388else
5389 USE_NLS=yes
5390fi
5391
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5393$as_echo "$USE_NLS" >&6; }
5394
5395
5396
5397
5398 BUILD_INCLUDED_LIBINTL=no
5399 USE_INCLUDED_LIBINTL=no
5400
5401 LIBINTL=
5402 LTLIBINTL=
5403 POSUB=
5404
5405 if test "$USE_NLS" = "yes"; then
5406 gt_use_preinstalled_gnugettext=no
5407
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
5409$as_echo_n "checking whether included gettext is requested... " >&6; }
5410
5411# Check whether --with-included-gettext was given.
5412if test "${with_included_gettext+set}" = set; then :
5413 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
5414else
5415 nls_cv_force_use_gnu_gettext=no
5416fi
5417
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
5419$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
5420
5421 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
5422 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
5423
5424
5425
5426
5427
5428
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5430$as_echo_n "checking for GNU gettext in libc... " >&6; }
5431if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
5432 $as_echo_n "(cached) " >&6
5433else
5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435/* end confdefs.h. */
5436#include <libintl.h>
5437extern int _nl_msg_cat_cntr;
5438extern int *_nl_domain_bindings;
5439int
5440main ()
5441{
5442bindtextdomain ("", "");
5443return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5444 ;
5445 return 0;
5446}
5447_ACEOF
5448if ac_fn_c_try_link "$LINENO"; then :
5449 gt_cv_func_gnugettext1_libc=yes
5450else
5451 gt_cv_func_gnugettext1_libc=no
5452fi
5453rm -f core conftest.err conftest.$ac_objext \
5454 conftest$ac_exeext conftest.$ac_ext
5455fi
5456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
5457$as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
5458
5459 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5460
5461
5462
5463 use_additional=yes
5464
5465 acl_save_prefix="$prefix"
5466 prefix="$acl_final_prefix"
5467 acl_save_exec_prefix="$exec_prefix"
5468 exec_prefix="$acl_final_exec_prefix"
5469
5470 eval additional_includedir=\"$includedir\"
5471 eval additional_libdir=\"$libdir\"
5472
5473 exec_prefix="$acl_save_exec_prefix"
5474 prefix="$acl_save_prefix"
5475
5476
5477# Check whether --with-libintl-prefix was given.
5478if test "${with_libintl_prefix+set}" = set; then :
5479 withval=$with_libintl_prefix;
5480 if test "X$withval" = "Xno"; then
5481 use_additional=no
5482 else
5483 if test "X$withval" = "X"; then
5484
5485 acl_save_prefix="$prefix"
5486 prefix="$acl_final_prefix"
5487 acl_save_exec_prefix="$exec_prefix"
5488 exec_prefix="$acl_final_exec_prefix"
5489
5490 eval additional_includedir=\"$includedir\"
5491 eval additional_libdir=\"$libdir\"
5492
5493 exec_prefix="$acl_save_exec_prefix"
5494 prefix="$acl_save_prefix"
5495
5496 else
5497 additional_includedir="$withval/include"
5498 additional_libdir="$withval/lib"
5499 fi
5500 fi
5501
5502fi
5503
5504 LIBINTL=
5505 LTLIBINTL=
5506 INCINTL=
5507 rpathdirs=
5508 ltrpathdirs=
5509 names_already_handled=
5510 names_next_round='intl '
5511 while test -n "$names_next_round"; do
5512 names_this_round="$names_next_round"
5513 names_next_round=
5514 for name in $names_this_round; do
5515 already_handled=
5516 for n in $names_already_handled; do
5517 if test "$n" = "$name"; then
5518 already_handled=yes
5519 break
5520 fi
5521 done
5522 if test -z "$already_handled"; then
5523 names_already_handled="$names_already_handled $name"
5524 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5525 eval value=\"\$HAVE_LIB$uppername\"
5526 if test -n "$value"; then
5527 if test "$value" = yes; then
5528 eval value=\"\$LIB$uppername\"
5529 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
5530 eval value=\"\$LTLIB$uppername\"
5531 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
5532 else
5533 :
5534 fi
5535 else
5536 found_dir=
5537 found_la=
5538 found_so=
5539 found_a=
5540 if test $use_additional = yes; then
5541 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5542 found_dir="$additional_libdir"
5543 found_so="$additional_libdir/lib$name.$shlibext"
5544 if test -f "$additional_libdir/lib$name.la"; then
5545 found_la="$additional_libdir/lib$name.la"
5546 fi
5547 else
5548 if test -f "$additional_libdir/lib$name.$libext"; then
5549 found_dir="$additional_libdir"
5550 found_a="$additional_libdir/lib$name.$libext"
5551 if test -f "$additional_libdir/lib$name.la"; then
5552 found_la="$additional_libdir/lib$name.la"
5553 fi
5554 fi
5555 fi
5556 fi
5557 if test "X$found_dir" = "X"; then
5558 for x in $LDFLAGS $LTLIBINTL; do
5559
5560 acl_save_prefix="$prefix"
5561 prefix="$acl_final_prefix"
5562 acl_save_exec_prefix="$exec_prefix"
5563 exec_prefix="$acl_final_exec_prefix"
5564 eval x=\"$x\"
5565 exec_prefix="$acl_save_exec_prefix"
5566 prefix="$acl_save_prefix"
5567
5568 case "$x" in
5569 -L*)
5570 dir=`echo "X$x" | sed -e 's/^X-L//'`
5571 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5572 found_dir="$dir"
5573 found_so="$dir/lib$name.$shlibext"
5574 if test -f "$dir/lib$name.la"; then
5575 found_la="$dir/lib$name.la"
5576 fi
5577 else
5578 if test -f "$dir/lib$name.$libext"; then
5579 found_dir="$dir"
5580 found_a="$dir/lib$name.$libext"
5581 if test -f "$dir/lib$name.la"; then
5582 found_la="$dir/lib$name.la"
5583 fi
5584 fi
5585 fi
5586 ;;
5587 esac
5588 if test "X$found_dir" != "X"; then
5589 break
5590 fi
5591 done
5592 fi
5593 if test "X$found_dir" != "X"; then
5594 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
5595 if test "X$found_so" != "X"; then
5596 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5597 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5598 else
5599 haveit=
5600 for x in $ltrpathdirs; do
5601 if test "X$x" = "X$found_dir"; then
5602 haveit=yes
5603 break
5604 fi
5605 done
5606 if test -z "$haveit"; then
5607 ltrpathdirs="$ltrpathdirs $found_dir"
5608 fi
5609 if test "$hardcode_direct" = yes; then
5610 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5611 else
5612 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5613 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5614 haveit=
5615 for x in $rpathdirs; do
5616 if test "X$x" = "X$found_dir"; then
5617 haveit=yes
5618 break
5619 fi
5620 done
5621 if test -z "$haveit"; then
5622 rpathdirs="$rpathdirs $found_dir"
5623 fi
5624 else
5625 haveit=
5626 for x in $LDFLAGS $LIBINTL; do
5627
5628 acl_save_prefix="$prefix"
5629 prefix="$acl_final_prefix"
5630 acl_save_exec_prefix="$exec_prefix"
5631 exec_prefix="$acl_final_exec_prefix"
5632 eval x=\"$x\"
5633 exec_prefix="$acl_save_exec_prefix"
5634 prefix="$acl_save_prefix"
5635
5636 if test "X$x" = "X-L$found_dir"; then
5637 haveit=yes
5638 break
5639 fi
5640 done
5641 if test -z "$haveit"; then
5642 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
5643 fi
5644 if test "$hardcode_minus_L" != no; then
5645 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5646 else
5647 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5648 fi
5649 fi
5650 fi
5651 fi
5652 else
5653 if test "X$found_a" != "X"; then
5654 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5655 else
5656 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5657 fi
5658 fi
5659 additional_includedir=
5660 case "$found_dir" in
5661 */lib | */lib/)
5662 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5663 additional_includedir="$basedir/include"
5664 ;;
5665 esac
5666 if test "X$additional_includedir" != "X"; then
5667 if test "X$additional_includedir" != "X/usr/include"; then
5668 haveit=
5669 if test "X$additional_includedir" = "X/usr/local/include"; then
5670 if test -n "$GCC"; then
5671 case $host_os in
5672 linux*) haveit=yes;;
5673 esac
5674 fi
5675 fi
5676 if test -z "$haveit"; then
5677 for x in $CPPFLAGS $INCINTL; do
5678
5679 acl_save_prefix="$prefix"
5680 prefix="$acl_final_prefix"
5681 acl_save_exec_prefix="$exec_prefix"
5682 exec_prefix="$acl_final_exec_prefix"
5683 eval x=\"$x\"
5684 exec_prefix="$acl_save_exec_prefix"
5685 prefix="$acl_save_prefix"
5686
5687 if test "X$x" = "X-I$additional_includedir"; then
5688 haveit=yes
5689 break
5690 fi
5691 done
5692 if test -z "$haveit"; then
5693 if test -d "$additional_includedir"; then
5694 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
5695 fi
5696 fi
5697 fi
5698 fi
5699 fi
5700 if test -n "$found_la"; then
5701 save_libdir="$libdir"
5702 case "$found_la" in
5703 */* | *\\*) . "$found_la" ;;
5704 *) . "./$found_la" ;;
5705 esac
5706 libdir="$save_libdir"
5707 for dep in $dependency_libs; do
5708 case "$dep" in
5709 -L*)
5710 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5711 if test "X$additional_libdir" != "X/usr/lib"; then
5712 haveit=
5713 if test "X$additional_libdir" = "X/usr/local/lib"; then
5714 if test -n "$GCC"; then
5715 case $host_os in
5716 linux*) haveit=yes;;
5717 esac
5718 fi
5719 fi
5720 if test -z "$haveit"; then
5721 haveit=
5722 for x in $LDFLAGS $LIBINTL; do
5723
5724 acl_save_prefix="$prefix"
5725 prefix="$acl_final_prefix"
5726 acl_save_exec_prefix="$exec_prefix"
5727 exec_prefix="$acl_final_exec_prefix"
5728 eval x=\"$x\"
5729 exec_prefix="$acl_save_exec_prefix"
5730 prefix="$acl_save_prefix"
5731
5732 if test "X$x" = "X-L$additional_libdir"; then
5733 haveit=yes
5734 break
5735 fi
5736 done
5737 if test -z "$haveit"; then
5738 if test -d "$additional_libdir"; then
5739 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
5740 fi
5741 fi
5742 haveit=
5743 for x in $LDFLAGS $LTLIBINTL; do
5744
5745 acl_save_prefix="$prefix"
5746 prefix="$acl_final_prefix"
5747 acl_save_exec_prefix="$exec_prefix"
5748 exec_prefix="$acl_final_exec_prefix"
5749 eval x=\"$x\"
5750 exec_prefix="$acl_save_exec_prefix"
5751 prefix="$acl_save_prefix"
5752
5753 if test "X$x" = "X-L$additional_libdir"; then
5754 haveit=yes
5755 break
5756 fi
5757 done
5758 if test -z "$haveit"; then
5759 if test -d "$additional_libdir"; then
5760 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
5761 fi
5762 fi
5763 fi
5764 fi
5765 ;;
5766 -R*)
5767 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5768 if test "$enable_rpath" != no; then
5769 haveit=
5770 for x in $rpathdirs; do
5771 if test "X$x" = "X$dir"; then
5772 haveit=yes
5773 break
5774 fi
5775 done
5776 if test -z "$haveit"; then
5777 rpathdirs="$rpathdirs $dir"
5778 fi
5779 haveit=
5780 for x in $ltrpathdirs; do
5781 if test "X$x" = "X$dir"; then
5782 haveit=yes
5783 break
5784 fi
5785 done
5786 if test -z "$haveit"; then
5787 ltrpathdirs="$ltrpathdirs $dir"
5788 fi
5789 fi
5790 ;;
5791 -l*)
5792 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5793 ;;
5794 *.la)
5795 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5796 ;;
5797 *)
5798 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
5799 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
5800 ;;
5801 esac
5802 done
5803 fi
5804 else
5805 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5806 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
5807 fi
5808 fi
5809 fi
5810 done
5811 done
5812 if test "X$rpathdirs" != "X"; then
5813 if test -n "$hardcode_libdir_separator"; then
5814 alldirs=
5815 for found_dir in $rpathdirs; do
5816 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5817 done
5818 acl_save_libdir="$libdir"
5819 libdir="$alldirs"
5820 eval flag=\"$hardcode_libdir_flag_spec\"
5821 libdir="$acl_save_libdir"
5822 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5823 else
5824 for found_dir in $rpathdirs; do
5825 acl_save_libdir="$libdir"
5826 libdir="$found_dir"
5827 eval flag=\"$hardcode_libdir_flag_spec\"
5828 libdir="$acl_save_libdir"
5829 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5830 done
5831 fi
5832 fi
5833 if test "X$ltrpathdirs" != "X"; then
5834 for found_dir in $ltrpathdirs; do
5835 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
5836 done
5837 fi
5838
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
5840$as_echo_n "checking for GNU gettext in libintl... " >&6; }
5841if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
5842 $as_echo_n "(cached) " >&6
5843else
5844 gt_save_CPPFLAGS="$CPPFLAGS"
5845 CPPFLAGS="$CPPFLAGS $INCINTL"
5846 gt_save_LIBS="$LIBS"
5847 LIBS="$LIBS $LIBINTL"
5848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5849/* end confdefs.h. */
5850#include <libintl.h>
5851extern int _nl_msg_cat_cntr;
5852extern
5853#ifdef __cplusplus
5854"C"
5855#endif
5856const char *_nl_expand_alias ();
5857int
5858main ()
5859{
5860bindtextdomain ("", "");
5861return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
5862 ;
5863 return 0;
5864}
5865_ACEOF
5866if ac_fn_c_try_link "$LINENO"; then :
5867 gt_cv_func_gnugettext1_libintl=yes
5868else
5869 gt_cv_func_gnugettext1_libintl=no
5870fi
5871rm -f core conftest.err conftest.$ac_objext \
5872 conftest$ac_exeext conftest.$ac_ext
5873 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
5874 LIBS="$LIBS $LIBICONV"
5875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5876/* end confdefs.h. */
5877#include <libintl.h>
5878extern int _nl_msg_cat_cntr;
5879extern
5880#ifdef __cplusplus
5881"C"
5882#endif
5883const char *_nl_expand_alias ();
5884int
5885main ()
5886{
5887bindtextdomain ("", "");
5888return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
5889 ;
5890 return 0;
5891}
5892_ACEOF
5893if ac_fn_c_try_link "$LINENO"; then :
5894 LIBINTL="$LIBINTL $LIBICONV"
5895 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
5896 gt_cv_func_gnugettext1_libintl=yes
5897
5898fi
5899rm -f core conftest.err conftest.$ac_objext \
5900 conftest$ac_exeext conftest.$ac_ext
5901 fi
5902 CPPFLAGS="$gt_save_CPPFLAGS"
5903 LIBS="$gt_save_LIBS"
5904fi
5905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
5906$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
5907 fi
5908
5909 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
5910 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
5911 && test "$PACKAGE" != gettext-runtime \
5912 && test "$PACKAGE" != gettext-tools; }; then
5913 gt_use_preinstalled_gnugettext=yes
5914 else
5915 LIBINTL=
5916 LTLIBINTL=
5917 INCINTL=
5918 fi
5919
5920
5921 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
5922 nls_cv_use_gnu_gettext=yes
5923 fi
5924 fi
5925
5926 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5927 BUILD_INCLUDED_LIBINTL=yes
5928 USE_INCLUDED_LIBINTL=yes
5929 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
5930 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
5931 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
5932 fi
5933
5934 if test "$gt_use_preinstalled_gnugettext" = "yes" \
5935 || test "$nls_cv_use_gnu_gettext" = "yes"; then
5936 CATOBJEXT=.gmo
5937 fi
5938
5939
5940 if test "$gt_use_preinstalled_gnugettext" = "yes" \
5941 || test "$nls_cv_use_gnu_gettext" = "yes"; then
5942
5943$as_echo "#define ENABLE_NLS 1" >>confdefs.h
5944
5945 else
5946 USE_NLS=no
5947 fi
5948 fi
5949
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
5951$as_echo_n "checking whether to use NLS... " >&6; }
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5953$as_echo "$USE_NLS" >&6; }
5954 if test "$USE_NLS" = "yes"; then
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
5956$as_echo_n "checking where the gettext function comes from... " >&6; }
5957 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5958 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5959 gt_source="external libintl"
5960 else
5961 gt_source="libc"
5962 fi
5963 else
5964 gt_source="included intl directory"
5965 fi
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
5967$as_echo "$gt_source" >&6; }
5968 fi
5969
5970 if test "$USE_NLS" = "yes"; then
5971
5972 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5973 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
5975$as_echo_n "checking how to link with libintl... " >&6; }
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
5977$as_echo "$LIBINTL" >&6; }
5978
5979 for element in $INCINTL; do
5980 haveit=
5981 for x in $CPPFLAGS; do
5982
5983 acl_save_prefix="$prefix"
5984 prefix="$acl_final_prefix"
5985 acl_save_exec_prefix="$exec_prefix"
5986 exec_prefix="$acl_final_exec_prefix"
5987 eval x=\"$x\"
5988 exec_prefix="$acl_save_exec_prefix"
5989 prefix="$acl_save_prefix"
5990
5991 if test "X$x" = "X$element"; then
5992 haveit=yes
5993 break
5994 fi
5995 done
5996 if test -z "$haveit"; then
5997 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5998 fi
5999 done
6000
6001 fi
6002
6003
6004$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6005
6006
6007$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6008
6009 fi
6010
6011 POSUB=po
6012 fi
6013
6014
6015 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
6016 BUILD_INCLUDED_LIBINTL=yes
6017 fi
6018
6019
6020
6021
6022
6023 nls_cv_header_intl=
6024 nls_cv_header_libgt=
6025
6026 DATADIRNAME=share
6027
6028
6029 INSTOBJEXT=.mo
6030
6031
6032 GENCAT=gencat
6033
6034
6035 if test "$USE_INCLUDED_LIBINTL" = yes; then
6036 INTLOBJS="\$(GETTOBJS)"
6037 fi
6038
6039
6040 INTL_LIBTOOL_SUFFIX_PREFIX=
6041
6042
6043
6044 INTLLIBS="$LIBINTL"
6045
6046
6047
6048
6049
6050
6051
6052# This replaces the extensive use of DEFS in the original Makefile.in.
6053
6054$as_echo "#define IN_LIBINTL 1" >>confdefs.h
6055
6056
6057$as_echo "#define IN_LIBRARY 1" >>confdefs.h
6058
6059
6060$as_echo "#define DEPENDS_ON_LIBICONV 1" >>confdefs.h
6061
6062
6063$as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
6064
6065
6066$as_echo "#define NO_XMALLOC 1" >>confdefs.h
6067
6068
6069$as_echo "#define set_relocation_prefix libintl_set_relocation_prefix" >>confdefs.h
6070
6071
6072$as_echo "#define relocate libintl_relocate" >>confdefs.h
6073
6074
6075MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6076for ac_prog in aclocal
6077do
6078 # Extract the first word of "$ac_prog", so it can be a program name with args.
6079set dummy $ac_prog; ac_word=$2
6080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6081$as_echo_n "checking for $ac_word... " >&6; }
6082if test "${ac_cv_prog_ACLOCAL+set}" = set; then :
6083 $as_echo_n "(cached) " >&6
6084else
6085 if test -n "$ACLOCAL"; then
6086 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
6087else
6088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089for as_dir in $PATH
6090do
6091 IFS=$as_save_IFS
6092 test -z "$as_dir" && as_dir=.
6093 for ac_exec_ext in '' $ac_executable_extensions; do
6094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6095 ac_cv_prog_ACLOCAL="$ac_prog"
6096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6097 break 2
6098 fi
6099done
6100 done
6101IFS=$as_save_IFS
6102
6103fi
6104fi
6105ACLOCAL=$ac_cv_prog_ACLOCAL
6106if test -n "$ACLOCAL"; then
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
6108$as_echo "$ACLOCAL" >&6; }
6109else
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6111$as_echo "no" >&6; }
6112fi
6113
6114
6115 test -n "$ACLOCAL" && break
6116done
6117test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
6118
6119for ac_prog in autoconf
6120do
6121 # Extract the first word of "$ac_prog", so it can be a program name with args.
6122set dummy $ac_prog; ac_word=$2
6123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6124$as_echo_n "checking for $ac_word... " >&6; }
6125if test "${ac_cv_prog_AUTOCONF+set}" = set; then :
6126 $as_echo_n "(cached) " >&6
6127else
6128 if test -n "$AUTOCONF"; then
6129 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
6130else
6131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6132for as_dir in $PATH
6133do
6134 IFS=$as_save_IFS
6135 test -z "$as_dir" && as_dir=.
6136 for ac_exec_ext in '' $ac_executable_extensions; do
6137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6138 ac_cv_prog_AUTOCONF="$ac_prog"
6139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6140 break 2
6141 fi
6142done
6143 done
6144IFS=$as_save_IFS
6145
6146fi
6147fi
6148AUTOCONF=$ac_cv_prog_AUTOCONF
6149if test -n "$AUTOCONF"; then
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
6151$as_echo "$AUTOCONF" >&6; }
6152else
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6154$as_echo "no" >&6; }
6155fi
6156
6157
6158 test -n "$AUTOCONF" && break
6159done
6160test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
6161
6162for ac_prog in autoheader
6163do
6164 # Extract the first word of "$ac_prog", so it can be a program name with args.
6165set dummy $ac_prog; ac_word=$2
6166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6167$as_echo_n "checking for $ac_word... " >&6; }
6168if test "${ac_cv_prog_AUTOHEADER+set}" = set; then :
6169 $as_echo_n "(cached) " >&6
6170else
6171 if test -n "$AUTOHEADER"; then
6172 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
6173else
6174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175for as_dir in $PATH
6176do
6177 IFS=$as_save_IFS
6178 test -z "$as_dir" && as_dir=.
6179 for ac_exec_ext in '' $ac_executable_extensions; do
6180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6181 ac_cv_prog_AUTOHEADER="$ac_prog"
6182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6183 break 2
6184 fi
6185done
6186 done
6187IFS=$as_save_IFS
6188
6189fi
6190fi
6191AUTOHEADER=$ac_cv_prog_AUTOHEADER
6192if test -n "$AUTOHEADER"; then
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
6194$as_echo "$AUTOHEADER" >&6; }
6195else
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6197$as_echo "no" >&6; }
6198fi
6199
6200
6201 test -n "$AUTOHEADER" && break
6202done
6203test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
6204
6205
6206# Check whether --enable-maintainer-mode was given.
6207if test "${enable_maintainer_mode+set}" = set; then :
6208 enableval=$enable_maintainer_mode;
6209else
6210 enable_maintainer_mode=no
6211fi
6212
6213if test "x$enable_maintainer_mode" = xno; then
6214 MAINT='#'
6215else
6216 MAINT=
6217fi
6218
6219
6220# Additional info for config.intl.
6221
6222
6223
6224LIBINTL_DEP=
6225INCINTL=
6226case $USE_INCLUDED_LIBINTL in
6227 yes)
6228 LIBINTL=`echo $LIBINTL | sed 's,${top_builddir},&/..,' `
6229 LTLIBINTL=`echo $LTLIBINTL | sed 's,${top_builddir},&/..,' `
6230 LIBINTL_DEP='${top_builddir}/../intl/libintl.a'
6231 INCINTL='-I${top_builddir}/../intl'
6232 ;;
6233esac
6234
6235ac_config_files="$ac_config_files Makefile config.intl"
6236
6237cat >confcache <<\_ACEOF
6238# This file is a shell script that caches the results of configure
6239# tests run on this system so they can be shared between configure
6240# scripts and configure runs, see configure's option --config-cache.
6241# It is not useful on other systems. If it contains results you don't
6242# want to keep, you may remove or edit it.
6243#
6244# config.status only pays attention to the cache file if you give it
6245# the --recheck option to rerun configure.
6246#
6247# `ac_cv_env_foo' variables (set or unset) will be overridden when
6248# loading this file, other *unset* `ac_cv_foo' will be assigned the
6249# following values.
6250
6251_ACEOF
6252
6253# The following way of writing the cache mishandles newlines in values,
6254# but we know of no workaround that is simple, portable, and efficient.
6255# So, we kill variables containing newlines.
6256# Ultrix sh set writes to stderr and can't be redirected directly,
6257# and sets the high bit in the cache file unless we assign to the vars.
6258(
6259 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6260 eval ac_val=\$$ac_var
6261 case $ac_val in #(
6262 *${as_nl}*)
6263 case $ac_var in #(
6264 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6265$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6266 esac
6267 case $ac_var in #(
6268 _ | IFS | as_nl) ;; #(
6269 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6270 *) { eval $ac_var=; unset $ac_var;} ;;
6271 esac ;;
6272 esac
6273 done
6274
6275 (set) 2>&1 |
6276 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6277 *${as_nl}ac_space=\ *)
6278 # `set' does not quote correctly, so add quotes: double-quote
6279 # substitution turns \\\\ into \\, and sed turns \\ into \.
6280 sed -n \
6281 "s/'/'\\\\''/g;
6282 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6283 ;; #(
6284 *)
6285 # `set' quotes correctly as required by POSIX, so do not add quotes.
6286 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6287 ;;
6288 esac |
6289 sort
6290) |
6291 sed '
6292 /^ac_cv_env_/b end
6293 t clear
6294 :clear
6295 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6296 t end
6297 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6298 :end' >>confcache
6299if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6300 if test -w "$cache_file"; then
6301 test "x$cache_file" != "x/dev/null" &&
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6303$as_echo "$as_me: updating cache $cache_file" >&6;}
6304 cat confcache >$cache_file
6305 else
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6307$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6308 fi
6309fi
6310rm -f confcache
6311
6312test "x$prefix" = xNONE && prefix=$ac_default_prefix
6313# Let make expand exec_prefix.
6314test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6315
6316DEFS=-DHAVE_CONFIG_H
6317
6318ac_libobjs=
6319ac_ltlibobjs=
6320for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6321 # 1. Remove the extension, and $U if already installed.
6322 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6323 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6324 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6325 # will be set to the directory where LIBOBJS objects are built.
6326 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6327 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6328done
6329LIBOBJS=$ac_libobjs
6330
6331LTLIBOBJS=$ac_ltlibobjs
6332
6333
6334
6335: ${CONFIG_STATUS=./config.status}
6336ac_write_fail=0
6337ac_clean_files_save=$ac_clean_files
6338ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6339{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6340$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6341as_write_fail=0
6342cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6343#! $SHELL
6344# Generated by $as_me.
6345# Run this file to recreate the current configuration.
6346# Compiler output produced by configure, useful for debugging
6347# configure, is in config.log if it exists.
6348
6349debug=false
6350ac_cs_recheck=false
6351ac_cs_silent=false
6352
6353SHELL=\${CONFIG_SHELL-$SHELL}
6354export SHELL
6355_ASEOF
6356cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6357## -------------------- ##
6358## M4sh Initialization. ##
6359## -------------------- ##
6360
6361# Be more Bourne compatible
6362DUALCASE=1; export DUALCASE # for MKS sh
6363if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6364 emulate sh
6365 NULLCMD=:
6366 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6367 # is contrary to our usage. Disable this feature.
6368 alias -g '${1+"$@"}'='"$@"'
6369 setopt NO_GLOB_SUBST
6370else
6371 case `(set -o) 2>/dev/null` in #(
6372 *posix*) :
6373 set -o posix ;; #(
6374 *) :
6375 ;;
6376esac
6377fi
6378
6379
6380as_nl='
6381'
6382export as_nl
6383# Printing a long string crashes Solaris 7 /usr/bin/printf.
6384as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6385as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6386as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6387# Prefer a ksh shell builtin over an external printf program on Solaris,
6388# but without wasting forks for bash or zsh.
6389if test -z "$BASH_VERSION$ZSH_VERSION" \
6390 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6391 as_echo='print -r --'
6392 as_echo_n='print -rn --'
6393elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6394 as_echo='printf %s\n'
6395 as_echo_n='printf %s'
6396else
6397 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6398 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6399 as_echo_n='/usr/ucb/echo -n'
6400 else
6401 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6402 as_echo_n_body='eval
6403 arg=$1;
6404 case $arg in #(
6405 *"$as_nl"*)
6406 expr "X$arg" : "X\\(.*\\)$as_nl";
6407 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6408 esac;
6409 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6410 '
6411 export as_echo_n_body
6412 as_echo_n='sh -c $as_echo_n_body as_echo'
6413 fi
6414 export as_echo_body
6415 as_echo='sh -c $as_echo_body as_echo'
6416fi
6417
6418# The user is always right.
6419if test "${PATH_SEPARATOR+set}" != set; then
6420 PATH_SEPARATOR=:
6421 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6422 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6423 PATH_SEPARATOR=';'
6424 }
6425fi
6426
6427
6428# IFS
6429# We need space, tab and new line, in precisely that order. Quoting is
6430# there to prevent editors from complaining about space-tab.
6431# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6432# splitting by setting IFS to empty value.)
6433IFS=" "" $as_nl"
6434
6435# Find who we are. Look in the path if we contain no directory separator.
6436case $0 in #((
6437 *[\\/]* ) as_myself=$0 ;;
6438 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439for as_dir in $PATH
6440do
6441 IFS=$as_save_IFS
6442 test -z "$as_dir" && as_dir=.
6443 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6444 done
6445IFS=$as_save_IFS
6446
6447 ;;
6448esac
6449# We did not find ourselves, most probably we were run as `sh COMMAND'
6450# in which case we are not to be found in the path.
6451if test "x$as_myself" = x; then
6452 as_myself=$0
6453fi
6454if test ! -f "$as_myself"; then
6455 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6456 exit 1
6457fi
6458
6459# Unset variables that we do not need and which cause bugs (e.g. in
6460# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6461# suppresses any "Segmentation fault" message there. '((' could
6462# trigger a bug in pdksh 5.2.14.
6463for as_var in BASH_ENV ENV MAIL MAILPATH
6464do eval test x\${$as_var+set} = xset \
6465 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6466done
6467PS1='$ '
6468PS2='> '
6469PS4='+ '
6470
6471# NLS nuisances.
6472LC_ALL=C
6473export LC_ALL
6474LANGUAGE=C
6475export LANGUAGE
6476
6477# CDPATH.
6478(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6479
6480
6481# as_fn_error ERROR [LINENO LOG_FD]
6482# ---------------------------------
6483# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6484# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6485# script with status $?, using 1 if that was 0.
6486as_fn_error ()
6487{
6488 as_status=$?; test $as_status -eq 0 && as_status=1
6489 if test "$3"; then
6490 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6491 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6492 fi
6493 $as_echo "$as_me: error: $1" >&2
6494 as_fn_exit $as_status
6495} # as_fn_error
6496
6497
6498# as_fn_set_status STATUS
6499# -----------------------
6500# Set $? to STATUS, without forking.
6501as_fn_set_status ()
6502{
6503 return $1
6504} # as_fn_set_status
6505
6506# as_fn_exit STATUS
6507# -----------------
6508# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6509as_fn_exit ()
6510{
6511 set +e
6512 as_fn_set_status $1
6513 exit $1
6514} # as_fn_exit
6515
6516# as_fn_unset VAR
6517# ---------------
6518# Portably unset VAR.
6519as_fn_unset ()
6520{
6521 { eval $1=; unset $1;}
6522}
6523as_unset=as_fn_unset
6524# as_fn_append VAR VALUE
6525# ----------------------
6526# Append the text in VALUE to the end of the definition contained in VAR. Take
6527# advantage of any shell optimizations that allow amortized linear growth over
6528# repeated appends, instead of the typical quadratic growth present in naive
6529# implementations.
6530if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6531 eval 'as_fn_append ()
6532 {
6533 eval $1+=\$2
6534 }'
6535else
6536 as_fn_append ()
6537 {
6538 eval $1=\$$1\$2
6539 }
6540fi # as_fn_append
6541
6542# as_fn_arith ARG...
6543# ------------------
6544# Perform arithmetic evaluation on the ARGs, and store the result in the
6545# global $as_val. Take advantage of shells that can avoid forks. The arguments
6546# must be portable across $(()) and expr.
6547if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6548 eval 'as_fn_arith ()
6549 {
6550 as_val=$(( $* ))
6551 }'
6552else
6553 as_fn_arith ()
6554 {
6555 as_val=`expr "$@" || test $? -eq 1`
6556 }
6557fi # as_fn_arith
6558
6559
6560if expr a : '\(a\)' >/dev/null 2>&1 &&
6561 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6562 as_expr=expr
6563else
6564 as_expr=false
6565fi
6566
6567if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6568 as_basename=basename
6569else
6570 as_basename=false
6571fi
6572
6573if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6574 as_dirname=dirname
6575else
6576 as_dirname=false
6577fi
6578
6579as_me=`$as_basename -- "$0" ||
6580$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6581 X"$0" : 'X\(//\)$' \| \
6582 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6583$as_echo X/"$0" |
6584 sed '/^.*\/\([^/][^/]*\)\/*$/{
6585 s//\1/
6586 q
6587 }
6588 /^X\/\(\/\/\)$/{
6589 s//\1/
6590 q
6591 }
6592 /^X\/\(\/\).*/{
6593 s//\1/
6594 q
6595 }
6596 s/.*/./; q'`
6597
6598# Avoid depending upon Character Ranges.
6599as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6600as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6601as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6602as_cr_digits='0123456789'
6603as_cr_alnum=$as_cr_Letters$as_cr_digits
6604
6605ECHO_C= ECHO_N= ECHO_T=
6606case `echo -n x` in #(((((
6607-n*)
6608 case `echo 'xy\c'` in
6609 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6610 xy) ECHO_C='\c';;
6611 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6612 ECHO_T=' ';;
6613 esac;;
6614*)
6615 ECHO_N='-n';;
6616esac
6617
6618rm -f conf$$ conf$$.exe conf$$.file
6619if test -d conf$$.dir; then
6620 rm -f conf$$.dir/conf$$.file
6621else
6622 rm -f conf$$.dir
6623 mkdir conf$$.dir 2>/dev/null
6624fi
6625if (echo >conf$$.file) 2>/dev/null; then
6626 if ln -s conf$$.file conf$$ 2>/dev/null; then
6627 as_ln_s='ln -s'
6628 # ... but there are two gotchas:
6629 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6630 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6631 # In both cases, we have to default to `cp -p'.
6632 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6633 as_ln_s='cp -p'
6634 elif ln conf$$.file conf$$ 2>/dev/null; then
6635 as_ln_s=ln
6636 else
6637 as_ln_s='cp -p'
6638 fi
6639else
6640 as_ln_s='cp -p'
6641fi
6642rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6643rmdir conf$$.dir 2>/dev/null
6644
6645
6646# as_fn_mkdir_p
6647# -------------
6648# Create "$as_dir" as a directory, including parents if necessary.
6649as_fn_mkdir_p ()
6650{
6651
6652 case $as_dir in #(
6653 -*) as_dir=./$as_dir;;
6654 esac
6655 test -d "$as_dir" || eval $as_mkdir_p || {
6656 as_dirs=
6657 while :; do
6658 case $as_dir in #(
6659 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6660 *) as_qdir=$as_dir;;
6661 esac
6662 as_dirs="'$as_qdir' $as_dirs"
6663 as_dir=`$as_dirname -- "$as_dir" ||
6664$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6665 X"$as_dir" : 'X\(//\)[^/]' \| \
6666 X"$as_dir" : 'X\(//\)$' \| \
6667 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6668$as_echo X"$as_dir" |
6669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6670 s//\1/
6671 q
6672 }
6673 /^X\(\/\/\)[^/].*/{
6674 s//\1/
6675 q
6676 }
6677 /^X\(\/\/\)$/{
6678 s//\1/
6679 q
6680 }
6681 /^X\(\/\).*/{
6682 s//\1/
6683 q
6684 }
6685 s/.*/./; q'`
6686 test -d "$as_dir" && break
6687 done
6688 test -z "$as_dirs" || eval "mkdir $as_dirs"
6689 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
6690
6691
6692} # as_fn_mkdir_p
6693if mkdir -p . 2>/dev/null; then
6694 as_mkdir_p='mkdir -p "$as_dir"'
6695else
6696 test -d ./-p && rmdir ./-p
6697 as_mkdir_p=false
6698fi
6699
6700if test -x / >/dev/null 2>&1; then
6701 as_test_x='test -x'
6702else
6703 if ls -dL / >/dev/null 2>&1; then
6704 as_ls_L_option=L
6705 else
6706 as_ls_L_option=
6707 fi
6708 as_test_x='
6709 eval sh -c '\''
6710 if test -d "$1"; then
6711 test -d "$1/.";
6712 else
6713 case $1 in #(
6714 -*)set "./$1";;
6715 esac;
6716 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6717 ???[sx]*):;;*)false;;esac;fi
6718 '\'' sh
6719 '
6720fi
6721as_executable_p=$as_test_x
6722
6723# Sed expression to map a string onto a valid CPP name.
6724as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6725
6726# Sed expression to map a string onto a valid variable name.
6727as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6728
6729
6730exec 6>&1
6731## ----------------------------------- ##
6732## Main body of $CONFIG_STATUS script. ##
6733## ----------------------------------- ##
6734_ASEOF
6735test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6736
6737cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6738# Save the log message, to keep $0 and so on meaningful, and to
6739# report actual input values of CONFIG_FILES etc. instead of their
6740# values after options handling.
6741ac_log="
6742This file was extended by $as_me, which was
6743generated by GNU Autoconf 2.64. Invocation command line was
6744
6745 CONFIG_FILES = $CONFIG_FILES
6746 CONFIG_HEADERS = $CONFIG_HEADERS
6747 CONFIG_LINKS = $CONFIG_LINKS
6748 CONFIG_COMMANDS = $CONFIG_COMMANDS
6749 $ $0 $@
6750
6751on `(hostname || uname -n) 2>/dev/null | sed 1q`
6752"
6753
6754_ACEOF
6755
6756case $ac_config_files in *"
6757"*) set x $ac_config_files; shift; ac_config_files=$*;;
6758esac
6759
6760case $ac_config_headers in *"
6761"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6762esac
6763
6764
6765cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6766# Files that config.status was made for.
6767config_files="$ac_config_files"
6768config_headers="$ac_config_headers"
6769config_commands="$ac_config_commands"
6770
6771_ACEOF
6772
6773cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6774ac_cs_usage="\
6775\`$as_me' instantiates files and other configuration actions
6776from templates according to the current configuration. Unless the files
6777and actions are specified as TAGs, all are instantiated by default.
6778
6779Usage: $0 [OPTION]... [TAG]...
6780
6781 -h, --help print this help, then exit
6782 -V, --version print version number and configuration settings, then exit
6783 -q, --quiet, --silent
6784 do not print progress messages
6785 -d, --debug don't remove temporary files
6786 --recheck update $as_me by reconfiguring in the same conditions
6787 --file=FILE[:TEMPLATE]
6788 instantiate the configuration file FILE
6789 --header=FILE[:TEMPLATE]
6790 instantiate the configuration header FILE
6791
6792Configuration files:
6793$config_files
6794
6795Configuration headers:
6796$config_headers
6797
6798Configuration commands:
6799$config_commands
6800
6801Report bugs to the package provider."
6802
6803_ACEOF
6804cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6805ac_cs_version="\\
6806config.status
6807configured by $0, generated by GNU Autoconf 2.64,
6808 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6809
6810Copyright (C) 2009 Free Software Foundation, Inc.
6811This config.status script is free software; the Free Software Foundation
6812gives unlimited permission to copy, distribute and modify it."
6813
6814ac_pwd='$ac_pwd'
6815srcdir='$srcdir'
6816INSTALL='$INSTALL'
6817test -n "\$AWK" || AWK=awk
6818_ACEOF
6819
6820cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6821# The default lists apply if the user does not specify any file.
6822ac_need_defaults=:
6823while test $# != 0
6824do
6825 case $1 in
6826 --*=*)
6827 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6828 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6829 ac_shift=:
6830 ;;
6831 *)
6832 ac_option=$1
6833 ac_optarg=$2
6834 ac_shift=shift
6835 ;;
6836 esac
6837
6838 case $ac_option in
6839 # Handling of the options.
6840 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6841 ac_cs_recheck=: ;;
6842 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6843 $as_echo "$ac_cs_version"; exit ;;
6844 --debug | --debu | --deb | --de | --d | -d )
6845 debug=: ;;
6846 --file | --fil | --fi | --f )
6847 $ac_shift
6848 case $ac_optarg in
6849 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6850 esac
6851 as_fn_append CONFIG_FILES " '$ac_optarg'"
6852 ac_need_defaults=false;;
6853 --header | --heade | --head | --hea )
6854 $ac_shift
6855 case $ac_optarg in
6856 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6857 esac
6858 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6859 ac_need_defaults=false;;
6860 --he | --h)
6861 # Conflict between --help and --header
6862 as_fn_error "ambiguous option: \`$1'
6863Try \`$0 --help' for more information.";;
6864 --help | --hel | -h )
6865 $as_echo "$ac_cs_usage"; exit ;;
6866 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6867 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6868 ac_cs_silent=: ;;
6869
6870 # This is an error.
6871 -*) as_fn_error "unrecognized option: \`$1'
6872Try \`$0 --help' for more information." ;;
6873
6874 *) as_fn_append ac_config_targets " $1"
6875 ac_need_defaults=false ;;
6876
6877 esac
6878 shift
6879done
6880
6881ac_configure_extra_args=
6882
6883if $ac_cs_silent; then
6884 exec 6>/dev/null
6885 ac_configure_extra_args="$ac_configure_extra_args --silent"
6886fi
6887
6888_ACEOF
6889cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6890if \$ac_cs_recheck; then
6891 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6892 shift
6893 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6894 CONFIG_SHELL='$SHELL'
6895 export CONFIG_SHELL
6896 exec "\$@"
6897fi
6898
6899_ACEOF
6900cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6901exec 5>>config.log
6902{
6903 echo
6904 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6905## Running $as_me. ##
6906_ASBOX
6907 $as_echo "$ac_log"
6908} >&5
6909
6910_ACEOF
6911cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6912#
6913# INIT-COMMANDS
6914#
6915# Capture the value of obsolete ALL_LINGUAS because we need it to compute
6916 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
6917 # from automake.
6918 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
6919 # Capture the value of LINGUAS because we need it to compute CATALOGS.
6920 LINGUAS="${LINGUAS-%UNSET%}"
6921
6922
6923_ACEOF
6924
6925cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6926
6927# Handling of arguments.
6928for ac_config_target in $ac_config_targets
6929do
6930 case $ac_config_target in
6931 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6932 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
6933 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6934 "config.intl") CONFIG_FILES="$CONFIG_FILES config.intl" ;;
6935
6936 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6937 esac
6938done
6939
6940
6941# If the user did not use the arguments to specify the items to instantiate,
6942# then the envvar interface is used. Set only those that are not.
6943# We use the long form for the default assignment because of an extremely
6944# bizarre bug on SunOS 4.1.3.
6945if $ac_need_defaults; then
6946 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6947 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6948 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6949fi
6950
6951# Have a temporary directory for convenience. Make it in the build tree
6952# simply because there is no reason against having it here, and in addition,
6953# creating and moving files from /tmp can sometimes cause problems.
6954# Hook for its removal unless debugging.
6955# Note that there is a small window in which the directory will not be cleaned:
6956# after its creation but before its name has been assigned to `$tmp'.
6957$debug ||
6958{
6959 tmp=
6960 trap 'exit_status=$?
6961 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6962' 0
6963 trap 'as_fn_exit 1' 1 2 13 15
6964}
6965# Create a (secure) tmp directory for tmp files.
6966
6967{
6968 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6969 test -n "$tmp" && test -d "$tmp"
6970} ||
6971{
6972 tmp=./conf$$-$RANDOM
6973 (umask 077 && mkdir "$tmp")
6974} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
6975
6976# Set up the scripts for CONFIG_FILES section.
6977# No need to generate them if there are no CONFIG_FILES.
6978# This happens for instance with `./config.status config.h'.
6979if test -n "$CONFIG_FILES"; then
6980
6981
6982ac_cr=`echo X | tr X '\015'`
6983# On cygwin, bash can eat \r inside `` if the user requested igncr.
6984# But we know of no other shell where ac_cr would be empty at this
6985# point, so we can use a bashism as a fallback.
6986if test "x$ac_cr" = x; then
6987 eval ac_cr=\$\'\\r\'
6988fi
6989ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6990if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6991 ac_cs_awk_cr='\r'
6992else
6993 ac_cs_awk_cr=$ac_cr
6994fi
6995
6996echo 'BEGIN {' >"$tmp/subs1.awk" &&
6997_ACEOF
6998
6999
7000{
7001 echo "cat >conf$$subs.awk <<_ACEOF" &&
7002 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7003 echo "_ACEOF"
7004} >conf$$subs.sh ||
7005 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7006ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
7007ac_delim='%!_!# '
7008for ac_last_try in false false false false false :; do
7009 . ./conf$$subs.sh ||
7010 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7011
7012 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7013 if test $ac_delim_n = $ac_delim_num; then
7014 break
7015 elif $ac_last_try; then
7016 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7017 else
7018 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7019 fi
7020done
7021rm -f conf$$subs.sh
7022
7023cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7024cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
7025_ACEOF
7026sed -n '
7027h
7028s/^/S["/; s/!.*/"]=/
7029p
7030g
7031s/^[^!]*!//
7032:repl
7033t repl
7034s/'"$ac_delim"'$//
7035t delim
7036:nl
7037h
7038s/\(.\{148\}\).*/\1/
7039t more1
7040s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7041p
7042n
7043b repl
7044:more1
7045s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7046p
7047g
7048s/.\{148\}//
7049t nl
7050:delim
7051h
7052s/\(.\{148\}\).*/\1/
7053t more2
7054s/["\\]/\\&/g; s/^/"/; s/$/"/
7055p
7056b
7057:more2
7058s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7059p
7060g
7061s/.\{148\}//
7062t delim
7063' <conf$$subs.awk | sed '
7064/^[^""]/{
7065 N
7066 s/\n//
7067}
7068' >>$CONFIG_STATUS || ac_write_fail=1
7069rm -f conf$$subs.awk
7070cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7071_ACAWK
7072cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7073 for (key in S) S_is_set[key] = 1
7074 FS = "\a"
7075
7076}
7077{
7078 line = $ 0
7079 nfields = split(line, field, "@")
7080 substed = 0
7081 len = length(field[1])
7082 for (i = 2; i < nfields; i++) {
7083 key = field[i]
7084 keylen = length(key)
7085 if (S_is_set[key]) {
7086 value = S[key]
7087 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7088 len += length(value) + length(field[++i])
7089 substed = 1
7090 } else
7091 len += 1 + keylen
7092 }
7093
7094 print line
7095}
7096
7097_ACAWK
7098_ACEOF
7099cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7100if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7101 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7102else
7103 cat
7104fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7105 || as_fn_error "could not setup config files machinery" "$LINENO" 5
7106_ACEOF
7107
7108# VPATH may cause trouble with some makes, so we remove $(srcdir),
7109# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7110# trailing colons and then remove the whole line if VPATH becomes empty
7111# (actually we leave an empty line to preserve line numbers).
7112if test "x$srcdir" = x.; then
7113 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7114s/:*\$(srcdir):*/:/
7115s/:*\${srcdir}:*/:/
7116s/:*@srcdir@:*/:/
7117s/^\([^=]*=[ ]*\):*/\1/
7118s/:*$//
7119s/^[^=]*=[ ]*$//
7120}'
7121fi
7122
7123cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7124fi # test -n "$CONFIG_FILES"
7125
7126# Set up the scripts for CONFIG_HEADERS section.
7127# No need to generate them if there are no CONFIG_HEADERS.
7128# This happens for instance with `./config.status Makefile'.
7129if test -n "$CONFIG_HEADERS"; then
7130cat >"$tmp/defines.awk" <<\_ACAWK ||
7131BEGIN {
7132_ACEOF
7133
7134# Transform confdefs.h into an awk script `defines.awk', embedded as
7135# here-document in config.status, that substitutes the proper values into
7136# config.h.in to produce config.h.
7137
7138# Create a delimiter string that does not exist in confdefs.h, to ease
7139# handling of long lines.
7140ac_delim='%!_!# '
7141for ac_last_try in false false :; do
7142 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
7143 if test -z "$ac_t"; then
7144 break
7145 elif $ac_last_try; then
7146 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
7147 else
7148 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7149 fi
7150done
7151
7152# For the awk script, D is an array of macro values keyed by name,
7153# likewise P contains macro parameters if any. Preserve backslash
7154# newline sequences.
7155
7156ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7157sed -n '
7158s/.\{148\}/&'"$ac_delim"'/g
7159t rset
7160:rset
7161s/^[ ]*#[ ]*define[ ][ ]*/ /
7162t def
7163d
7164:def
7165s/\\$//
7166t bsnl
7167s/["\\]/\\&/g
7168s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7169D["\1"]=" \3"/p
7170s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7171d
7172:bsnl
7173s/["\\]/\\&/g
7174s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7175D["\1"]=" \3\\\\\\n"\\/p
7176t cont
7177s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7178t cont
7179d
7180:cont
7181n
7182s/.\{148\}/&'"$ac_delim"'/g
7183t clear
7184:clear
7185s/\\$//
7186t bsnlc
7187s/["\\]/\\&/g; s/^/"/; s/$/"/p
7188d
7189:bsnlc
7190s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7191b cont
7192' <confdefs.h | sed '
7193s/'"$ac_delim"'/"\\\
7194"/g' >>$CONFIG_STATUS || ac_write_fail=1
7195
7196cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7197 for (key in D) D_is_set[key] = 1
7198 FS = "\a"
7199}
7200/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7201 line = \$ 0
7202 split(line, arg, " ")
7203 if (arg[1] == "#") {
7204 defundef = arg[2]
7205 mac1 = arg[3]
7206 } else {
7207 defundef = substr(arg[1], 2)
7208 mac1 = arg[2]
7209 }
7210 split(mac1, mac2, "(") #)
7211 macro = mac2[1]
7212 prefix = substr(line, 1, index(line, defundef) - 1)
7213 if (D_is_set[macro]) {
7214 # Preserve the white space surrounding the "#".
7215 print prefix "define", macro P[macro] D[macro]
7216 next
7217 } else {
7218 # Replace #undef with comments. This is necessary, for example,
7219 # in the case of _POSIX_SOURCE, which is predefined and required
7220 # on some systems where configure will not decide to define it.
7221 if (defundef == "undef") {
7222 print "/*", prefix defundef, macro, "*/"
7223 next
7224 }
7225 }
7226}
7227{ print }
7228_ACAWK
7229_ACEOF
7230cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7231 as_fn_error "could not setup config headers machinery" "$LINENO" 5
7232fi # test -n "$CONFIG_HEADERS"
7233
7234
7235eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7236shift
7237for ac_tag
7238do
7239 case $ac_tag in
7240 :[FHLC]) ac_mode=$ac_tag; continue;;
7241 esac
7242 case $ac_mode$ac_tag in
7243 :[FHL]*:*);;
7244 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
7245 :[FH]-) ac_tag=-:-;;
7246 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7247 esac
7248 ac_save_IFS=$IFS
7249 IFS=:
7250 set x $ac_tag
7251 IFS=$ac_save_IFS
7252 shift
7253 ac_file=$1
7254 shift
7255
7256 case $ac_mode in
7257 :L) ac_source=$1;;
7258 :[FH])
7259 ac_file_inputs=
7260 for ac_f
7261 do
7262 case $ac_f in
7263 -) ac_f="$tmp/stdin";;
7264 *) # Look for the file first in the build tree, then in the source tree
7265 # (if the path is not absolute). The absolute path cannot be DOS-style,
7266 # because $ac_f cannot contain `:'.
7267 test -f "$ac_f" ||
7268 case $ac_f in
7269 [\\/$]*) false;;
7270 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7271 esac ||
7272 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7273 esac
7274 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7275 as_fn_append ac_file_inputs " '$ac_f'"
7276 done
7277
7278 # Let's still pretend it is `configure' which instantiates (i.e., don't
7279 # use $as_me), people would be surprised to read:
7280 # /* config.h. Generated by config.status. */
7281 configure_input='Generated from '`
7282 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7283 `' by configure.'
7284 if test x"$ac_file" != x-; then
7285 configure_input="$ac_file. $configure_input"
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7287$as_echo "$as_me: creating $ac_file" >&6;}
7288 fi
7289 # Neutralize special characters interpreted by sed in replacement strings.
7290 case $configure_input in #(
7291 *\&* | *\|* | *\\* )
7292 ac_sed_conf_input=`$as_echo "$configure_input" |
7293 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7294 *) ac_sed_conf_input=$configure_input;;
7295 esac
7296
7297 case $ac_tag in
7298 *:-:* | *:-) cat >"$tmp/stdin" \
7299 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
7300 esac
7301 ;;
7302 esac
7303
7304 ac_dir=`$as_dirname -- "$ac_file" ||
7305$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7306 X"$ac_file" : 'X\(//\)[^/]' \| \
7307 X"$ac_file" : 'X\(//\)$' \| \
7308 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7309$as_echo X"$ac_file" |
7310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7311 s//\1/
7312 q
7313 }
7314 /^X\(\/\/\)[^/].*/{
7315 s//\1/
7316 q
7317 }
7318 /^X\(\/\/\)$/{
7319 s//\1/
7320 q
7321 }
7322 /^X\(\/\).*/{
7323 s//\1/
7324 q
7325 }
7326 s/.*/./; q'`
7327 as_dir="$ac_dir"; as_fn_mkdir_p
7328 ac_builddir=.
7329
7330case "$ac_dir" in
7331.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7332*)
7333 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7334 # A ".." for each directory in $ac_dir_suffix.
7335 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7336 case $ac_top_builddir_sub in
7337 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7338 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7339 esac ;;
7340esac
7341ac_abs_top_builddir=$ac_pwd
7342ac_abs_builddir=$ac_pwd$ac_dir_suffix
7343# for backward compatibility:
7344ac_top_builddir=$ac_top_build_prefix
7345
7346case $srcdir in
7347 .) # We are building in place.
7348 ac_srcdir=.
7349 ac_top_srcdir=$ac_top_builddir_sub
7350 ac_abs_top_srcdir=$ac_pwd ;;
7351 [\\/]* | ?:[\\/]* ) # Absolute name.
7352 ac_srcdir=$srcdir$ac_dir_suffix;
7353 ac_top_srcdir=$srcdir
7354 ac_abs_top_srcdir=$srcdir ;;
7355 *) # Relative name.
7356 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7357 ac_top_srcdir=$ac_top_build_prefix$srcdir
7358 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7359esac
7360ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7361
7362
7363 case $ac_mode in
7364 :F)
7365 #
7366 # CONFIG_FILE
7367 #
7368
7369 case $INSTALL in
7370 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7371 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7372 esac
7373_ACEOF
7374
7375cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7376# If the template does not know about datarootdir, expand it.
7377# FIXME: This hack should be removed a few years after 2.60.
7378ac_datarootdir_hack=; ac_datarootdir_seen=
7379ac_sed_dataroot='
7380/datarootdir/ {
7381 p
7382 q
7383}
7384/@datadir@/p
7385/@docdir@/p
7386/@infodir@/p
7387/@localedir@/p
7388/@mandir@/p'
7389case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7390*datarootdir*) ac_datarootdir_seen=yes;;
7391*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7393$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7394_ACEOF
7395cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7396 ac_datarootdir_hack='
7397 s&@datadir@&$datadir&g
7398 s&@docdir@&$docdir&g
7399 s&@infodir@&$infodir&g
7400 s&@localedir@&$localedir&g
7401 s&@mandir@&$mandir&g
7402 s&\\\${datarootdir}&$datarootdir&g' ;;
7403esac
7404_ACEOF
7405
7406# Neutralize VPATH when `$srcdir' = `.'.
7407# Shell code in configure.ac might set extrasub.
7408# FIXME: do we really want to maintain this feature?
7409cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7410ac_sed_extra="$ac_vpsub
7411$extrasub
7412_ACEOF
7413cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7414:t
7415/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7416s|@configure_input@|$ac_sed_conf_input|;t t
7417s&@top_builddir@&$ac_top_builddir_sub&;t t
7418s&@top_build_prefix@&$ac_top_build_prefix&;t t
7419s&@srcdir@&$ac_srcdir&;t t
7420s&@abs_srcdir@&$ac_abs_srcdir&;t t
7421s&@top_srcdir@&$ac_top_srcdir&;t t
7422s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7423s&@builddir@&$ac_builddir&;t t
7424s&@abs_builddir@&$ac_abs_builddir&;t t
7425s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7426s&@INSTALL@&$ac_INSTALL&;t t
7427$ac_datarootdir_hack
7428"
7429eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7430 || as_fn_error "could not create $ac_file" "$LINENO" 5
7431
7432test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7433 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7434 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7436which seems to be undefined. Please make sure it is defined." >&5
7437$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7438which seems to be undefined. Please make sure it is defined." >&2;}
7439
7440 rm -f "$tmp/stdin"
7441 case $ac_file in
7442 -) cat "$tmp/out" && rm -f "$tmp/out";;
7443 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7444 esac \
7445 || as_fn_error "could not create $ac_file" "$LINENO" 5
7446 ;;
7447 :H)
7448 #
7449 # CONFIG_HEADER
7450 #
7451 if test x"$ac_file" != x-; then
7452 {
7453 $as_echo "/* $configure_input */" \
7454 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7455 } >"$tmp/config.h" \
7456 || as_fn_error "could not create $ac_file" "$LINENO" 5
7457 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7459$as_echo "$as_me: $ac_file is unchanged" >&6;}
7460 else
7461 rm -f "$ac_file"
7462 mv "$tmp/config.h" "$ac_file" \
7463 || as_fn_error "could not create $ac_file" "$LINENO" 5
7464 fi
7465 else
7466 $as_echo "/* $configure_input */" \
7467 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7468 || as_fn_error "could not create -" "$LINENO" 5
7469 fi
7470 ;;
7471
7472 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7473$as_echo "$as_me: executing $ac_file commands" >&6;}
7474 ;;
7475 esac
7476
7477
7478 case $ac_file$ac_mode in
7479 "default-1":C)
7480 for ac_file in $CONFIG_FILES; do
7481 # Support "outfile[:infile[:infile...]]"
7482 case "$ac_file" in
7483 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7484 esac
7485 # PO directories have a Makefile.in generated from Makefile.in.in.
7486 case "$ac_file" in */Makefile.in)
7487 # Adjust a relative srcdir.
7488 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
7489 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
7490 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
7491 # In autoconf-2.13 it is called $ac_given_srcdir.
7492 # In autoconf-2.50 it is called $srcdir.
7493 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
7494 case "$ac_given_srcdir" in
7495 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
7496 /*) top_srcdir="$ac_given_srcdir" ;;
7497 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
7498 esac
7499 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
7500 rm -f "$ac_dir/POTFILES"
7501 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
7502 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
7503 POMAKEFILEDEPS="POTFILES.in"
7504 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
7505 # on $ac_dir but don't depend on user-specified configuration
7506 # parameters.
7507 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
7508 # The LINGUAS file contains the set of available languages.
7509 if test -n "$OBSOLETE_ALL_LINGUAS"; then
7510 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
7511 fi
7512 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
7513 # Hide the ALL_LINGUAS assigment from automake.
7514 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
7515 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
7516 else
7517 # The set of available languages was given in configure.in.
7518 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
7519 fi
7520 case "$ac_given_srcdir" in
7521 .) srcdirpre= ;;
7522 *) srcdirpre='$(srcdir)/' ;;
7523 esac
7524 POFILES=
7525 GMOFILES=
7526 UPDATEPOFILES=
7527 DUMMYPOFILES=
7528 for lang in $ALL_LINGUAS; do
7529 POFILES="$POFILES $srcdirpre$lang.po"
7530 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
7531 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
7532 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
7533 done
7534 # CATALOGS depends on both $ac_dir and the user's LINGUAS
7535 # environment variable.
7536 INST_LINGUAS=
7537 if test -n "$ALL_LINGUAS"; then
7538 for presentlang in $ALL_LINGUAS; do
7539 useit=no
7540 if test "%UNSET%" != "$LINGUAS"; then
7541 desiredlanguages="$LINGUAS"
7542 else
7543 desiredlanguages="$ALL_LINGUAS"
7544 fi
7545 for desiredlang in $desiredlanguages; do
7546 # Use the presentlang catalog if desiredlang is
7547 # a. equal to presentlang, or
7548 # b. a variant of presentlang (because in this case,
7549 # presentlang can be used as a fallback for messages
7550 # which are not translated in the desiredlang catalog).
7551 case "$desiredlang" in
7552 "$presentlang"*) useit=yes;;
7553 esac
7554 done
7555 if test $useit = yes; then
7556 INST_LINGUAS="$INST_LINGUAS $presentlang"
7557 fi
7558 done
7559 fi
7560 CATALOGS=
7561 if test -n "$INST_LINGUAS"; then
7562 for lang in $INST_LINGUAS; do
7563 CATALOGS="$CATALOGS $lang.gmo"
7564 done
7565 fi
7566 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
7567 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
7568 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
7569 if test -f "$f"; then
7570 case "$f" in
7571 *.orig | *.bak | *~) ;;
7572 *) cat "$f" >> "$ac_dir/Makefile" ;;
7573 esac
7574 fi
7575 done
7576 fi
7577 ;;
7578 esac
7579 done ;;
7580
7581 esac
7582done # for ac_tag
7583
7584
7585as_fn_exit 0
7586_ACEOF
7587ac_clean_files=$ac_clean_files_save
7588
7589test $ac_write_fail = 0 ||
7590 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
7591
7592
7593# configure is writing to config.log, and then calls config.status.
7594# config.status does its own redirection, appending to config.log.
7595# Unfortunately, on DOS this fails, as config.log is still kept open
7596# by configure, so config.status won't be able to write to it; its
7597# output is simply discarded. So we exec the FD to /dev/null,
7598# effectively closing config.log, so it can be properly (re)opened and
7599# appended to by config.status. When coming back to configure, we
7600# need to make the FD available again.
7601if test "$no_create" != yes; then
7602 ac_cs_success=:
7603 ac_config_status_args=
7604 test "$silent" = yes &&
7605 ac_config_status_args="$ac_config_status_args --quiet"
7606 exec 5>/dev/null
7607 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7608 exec 5>>config.log
7609 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7610 # would make configure fail if this is the last instruction.
7611 $ac_cs_success || as_fn_exit $?
7612fi
7613if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7615$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7616fi
7617
This page took 0.074834 seconds and 4 git commands to generate.