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