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