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