]> git.ipfire.org Git - thirdparty/gcc.git/blob - libcpp/configure
*: add modern gettext
[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 ac_aux_dir=
2674 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2675 if test -f "$ac_dir/install-sh"; then
2676 ac_aux_dir=$ac_dir
2677 ac_install_sh="$ac_aux_dir/install-sh -c"
2678 break
2679 elif test -f "$ac_dir/install.sh"; then
2680 ac_aux_dir=$ac_dir
2681 ac_install_sh="$ac_aux_dir/install.sh -c"
2682 break
2683 elif test -f "$ac_dir/shtool"; then
2684 ac_aux_dir=$ac_dir
2685 ac_install_sh="$ac_aux_dir/shtool install -c"
2686 break
2687 fi
2688 done
2689 if test -z "$ac_aux_dir"; then
2690 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2691 fi
2692
2693 # These three variables are undocumented and unsupported,
2694 # and are intended to be withdrawn in a future Autoconf release.
2695 # They can cause serious problems if a builder's source tree is in a directory
2696 # whose full name contains unusual characters.
2697 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2698 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2699 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2700
2701
2702 # Make sure we can run config.sub.
2703 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2704 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2705
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2707 $as_echo_n "checking build system type... " >&6; }
2708 if ${ac_cv_build+:} false; then :
2709 $as_echo_n "(cached) " >&6
2710 else
2711 ac_build_alias=$build_alias
2712 test "x$ac_build_alias" = x &&
2713 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2714 test "x$ac_build_alias" = x &&
2715 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2716 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2717 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2718
2719 fi
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2721 $as_echo "$ac_cv_build" >&6; }
2722 case $ac_cv_build in
2723 *-*-*) ;;
2724 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2725 esac
2726 build=$ac_cv_build
2727 ac_save_IFS=$IFS; IFS='-'
2728 set x $ac_cv_build
2729 shift
2730 build_cpu=$1
2731 build_vendor=$2
2732 shift; shift
2733 # Remember, the first character of IFS is used to create $*,
2734 # except with old shells:
2735 build_os=$*
2736 IFS=$ac_save_IFS
2737 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2738
2739
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2741 $as_echo_n "checking host system type... " >&6; }
2742 if ${ac_cv_host+:} false; then :
2743 $as_echo_n "(cached) " >&6
2744 else
2745 if test "x$host_alias" = x; then
2746 ac_cv_host=$ac_cv_build
2747 else
2748 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2749 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2750 fi
2751
2752 fi
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2754 $as_echo "$ac_cv_host" >&6; }
2755 case $ac_cv_host in
2756 *-*-*) ;;
2757 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2758 esac
2759 host=$ac_cv_host
2760 ac_save_IFS=$IFS; IFS='-'
2761 set x $ac_cv_host
2762 shift
2763 host_cpu=$1
2764 host_vendor=$2
2765 shift; shift
2766 # Remember, the first character of IFS is used to create $*,
2767 # except with old shells:
2768 host_os=$*
2769 IFS=$ac_save_IFS
2770 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2771
2772
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2774 $as_echo_n "checking target system type... " >&6; }
2775 if ${ac_cv_target+:} false; then :
2776 $as_echo_n "(cached) " >&6
2777 else
2778 if test "x$target_alias" = x; then
2779 ac_cv_target=$ac_cv_host
2780 else
2781 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2782 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2783 fi
2784
2785 fi
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2787 $as_echo "$ac_cv_target" >&6; }
2788 case $ac_cv_target in
2789 *-*-*) ;;
2790 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2791 esac
2792 target=$ac_cv_target
2793 ac_save_IFS=$IFS; IFS='-'
2794 set x $ac_cv_target
2795 shift
2796 target_cpu=$1
2797 target_vendor=$2
2798 shift; shift
2799 # Remember, the first character of IFS is used to create $*,
2800 # except with old shells:
2801 target_os=$*
2802 IFS=$ac_save_IFS
2803 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2804
2805
2806 # The aliases save the names the user supplied, while $host etc.
2807 # will get canonicalized.
2808 test -n "$target_alias" &&
2809 test "$program_prefix$program_suffix$program_transform_name" = \
2810 NONENONEs,x,x, &&
2811 program_prefix=${target_alias}-
2812
2813
2814 # Checks for programs.
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2816 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2817 set x ${MAKE-make}
2818 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2819 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2820 $as_echo_n "(cached) " >&6
2821 else
2822 cat >conftest.make <<\_ACEOF
2823 SHELL = /bin/sh
2824 all:
2825 @echo '@@@%%%=$(MAKE)=@@@%%%'
2826 _ACEOF
2827 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2828 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2829 *@@@%%%=?*=@@@%%%*)
2830 eval ac_cv_prog_make_${ac_make}_set=yes;;
2831 *)
2832 eval ac_cv_prog_make_${ac_make}_set=no;;
2833 esac
2834 rm -f conftest.make
2835 fi
2836 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2838 $as_echo "yes" >&6; }
2839 SET_MAKE=
2840 else
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2842 $as_echo "no" >&6; }
2843 SET_MAKE="MAKE=${MAKE-make}"
2844 fi
2845
2846 # Find a good install program. We prefer a C program (faster),
2847 # so one script is as good as another. But avoid the broken or
2848 # incompatible versions:
2849 # SysV /etc/install, /usr/sbin/install
2850 # SunOS /usr/etc/install
2851 # IRIX /sbin/install
2852 # AIX /bin/install
2853 # AmigaOS /C/install, which installs bootblocks on floppy discs
2854 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2855 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2856 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2857 # OS/2's system install, which has a completely different semantic
2858 # ./install, which can be erroneously created by make from ./install.sh.
2859 # Reject install programs that cannot install multiple files.
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2861 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2862 if test -z "$INSTALL"; then
2863 if ${ac_cv_path_install+:} false; then :
2864 $as_echo_n "(cached) " >&6
2865 else
2866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 for as_dir in $PATH
2868 do
2869 IFS=$as_save_IFS
2870 test -z "$as_dir" && as_dir=.
2871 # Account for people who put trailing slashes in PATH elements.
2872 case $as_dir/ in #((
2873 ./ | .// | /[cC]/* | \
2874 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2875 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2876 /usr/ucb/* ) ;;
2877 *)
2878 # OSF1 and SCO ODT 3.0 have their own names for install.
2879 # Don't use installbsd from OSF since it installs stuff as root
2880 # by default.
2881 for ac_prog in ginstall scoinst install; do
2882 for ac_exec_ext in '' $ac_executable_extensions; do
2883 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2884 if test $ac_prog = install &&
2885 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2886 # AIX install. It has an incompatible calling convention.
2887 :
2888 elif test $ac_prog = install &&
2889 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2890 # program-specific install script used by HP pwplus--don't use.
2891 :
2892 else
2893 rm -rf conftest.one conftest.two conftest.dir
2894 echo one > conftest.one
2895 echo two > conftest.two
2896 mkdir conftest.dir
2897 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2898 test -s conftest.one && test -s conftest.two &&
2899 test -s conftest.dir/conftest.one &&
2900 test -s conftest.dir/conftest.two
2901 then
2902 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2903 break 3
2904 fi
2905 fi
2906 fi
2907 done
2908 done
2909 ;;
2910 esac
2911
2912 done
2913 IFS=$as_save_IFS
2914
2915 rm -rf conftest.one conftest.two conftest.dir
2916
2917 fi
2918 if test "${ac_cv_path_install+set}" = set; then
2919 INSTALL=$ac_cv_path_install
2920 else
2921 # As a last resort, use the slow shell script. Don't cache a
2922 # value for INSTALL within a source directory, because that will
2923 # break other packages using the cache if that directory is
2924 # removed, or if the value is a relative name.
2925 INSTALL=$ac_install_sh
2926 fi
2927 fi
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2929 $as_echo "$INSTALL" >&6; }
2930
2931 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2932 # It thinks the first close brace ends the variable substitution.
2933 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2934
2935 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2936
2937 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2938
2939 ac_ext=c
2940 ac_cpp='$CPP $CPPFLAGS'
2941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2944 if test -n "$ac_tool_prefix"; then
2945 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2946 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2948 $as_echo_n "checking for $ac_word... " >&6; }
2949 if ${ac_cv_prog_CC+:} false; then :
2950 $as_echo_n "(cached) " >&6
2951 else
2952 if test -n "$CC"; then
2953 ac_cv_prog_CC="$CC" # Let the user override the test.
2954 else
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 for as_dir in $PATH
2957 do
2958 IFS=$as_save_IFS
2959 test -z "$as_dir" && as_dir=.
2960 for ac_exec_ext in '' $ac_executable_extensions; do
2961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2962 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2964 break 2
2965 fi
2966 done
2967 done
2968 IFS=$as_save_IFS
2969
2970 fi
2971 fi
2972 CC=$ac_cv_prog_CC
2973 if test -n "$CC"; then
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2975 $as_echo "$CC" >&6; }
2976 else
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978 $as_echo "no" >&6; }
2979 fi
2980
2981
2982 fi
2983 if test -z "$ac_cv_prog_CC"; then
2984 ac_ct_CC=$CC
2985 # Extract the first word of "gcc", so it can be a program name with args.
2986 set dummy gcc; ac_word=$2
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2988 $as_echo_n "checking for $ac_word... " >&6; }
2989 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2990 $as_echo_n "(cached) " >&6
2991 else
2992 if test -n "$ac_ct_CC"; then
2993 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2994 else
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 for as_dir in $PATH
2997 do
2998 IFS=$as_save_IFS
2999 test -z "$as_dir" && as_dir=.
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3002 ac_cv_prog_ac_ct_CC="gcc"
3003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 break 2
3005 fi
3006 done
3007 done
3008 IFS=$as_save_IFS
3009
3010 fi
3011 fi
3012 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3013 if test -n "$ac_ct_CC"; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3015 $as_echo "$ac_ct_CC" >&6; }
3016 else
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 $as_echo "no" >&6; }
3019 fi
3020
3021 if test "x$ac_ct_CC" = x; then
3022 CC=""
3023 else
3024 case $cross_compiling:$ac_tool_warned in
3025 yes:)
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3028 ac_tool_warned=yes ;;
3029 esac
3030 CC=$ac_ct_CC
3031 fi
3032 else
3033 CC="$ac_cv_prog_CC"
3034 fi
3035
3036 if test -z "$CC"; then
3037 if test -n "$ac_tool_prefix"; then
3038 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3039 set dummy ${ac_tool_prefix}cc; ac_word=$2
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3041 $as_echo_n "checking for $ac_word... " >&6; }
3042 if ${ac_cv_prog_CC+:} false; then :
3043 $as_echo_n "(cached) " >&6
3044 else
3045 if test -n "$CC"; then
3046 ac_cv_prog_CC="$CC" # Let the user override the test.
3047 else
3048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049 for as_dir in $PATH
3050 do
3051 IFS=$as_save_IFS
3052 test -z "$as_dir" && as_dir=.
3053 for ac_exec_ext in '' $ac_executable_extensions; do
3054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3055 ac_cv_prog_CC="${ac_tool_prefix}cc"
3056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3057 break 2
3058 fi
3059 done
3060 done
3061 IFS=$as_save_IFS
3062
3063 fi
3064 fi
3065 CC=$ac_cv_prog_CC
3066 if test -n "$CC"; then
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3068 $as_echo "$CC" >&6; }
3069 else
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3071 $as_echo "no" >&6; }
3072 fi
3073
3074
3075 fi
3076 fi
3077 if test -z "$CC"; then
3078 # Extract the first word of "cc", so it can be a program name with args.
3079 set dummy cc; ac_word=$2
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3081 $as_echo_n "checking for $ac_word... " >&6; }
3082 if ${ac_cv_prog_CC+:} false; then :
3083 $as_echo_n "(cached) " >&6
3084 else
3085 if test -n "$CC"; then
3086 ac_cv_prog_CC="$CC" # Let the user override the test.
3087 else
3088 ac_prog_rejected=no
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 for as_dir in $PATH
3091 do
3092 IFS=$as_save_IFS
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
3095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3096 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3097 ac_prog_rejected=yes
3098 continue
3099 fi
3100 ac_cv_prog_CC="cc"
3101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3102 break 2
3103 fi
3104 done
3105 done
3106 IFS=$as_save_IFS
3107
3108 if test $ac_prog_rejected = yes; then
3109 # We found a bogon in the path, so make sure we never use it.
3110 set dummy $ac_cv_prog_CC
3111 shift
3112 if test $# != 0; then
3113 # We chose a different compiler from the bogus one.
3114 # However, it has the same basename, so the bogon will be chosen
3115 # first if we set CC to just the basename; use the full file name.
3116 shift
3117 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3118 fi
3119 fi
3120 fi
3121 fi
3122 CC=$ac_cv_prog_CC
3123 if test -n "$CC"; then
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3125 $as_echo "$CC" >&6; }
3126 else
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128 $as_echo "no" >&6; }
3129 fi
3130
3131
3132 fi
3133 if test -z "$CC"; then
3134 if test -n "$ac_tool_prefix"; then
3135 for ac_prog in cl.exe
3136 do
3137 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3138 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if ${ac_cv_prog_CC+:} false; then :
3142 $as_echo_n "(cached) " >&6
3143 else
3144 if test -n "$CC"; then
3145 ac_cv_prog_CC="$CC" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3149 do
3150 IFS=$as_save_IFS
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3154 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3156 break 2
3157 fi
3158 done
3159 done
3160 IFS=$as_save_IFS
3161
3162 fi
3163 fi
3164 CC=$ac_cv_prog_CC
3165 if test -n "$CC"; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3167 $as_echo "$CC" >&6; }
3168 else
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3171 fi
3172
3173
3174 test -n "$CC" && break
3175 done
3176 fi
3177 if test -z "$CC"; then
3178 ac_ct_CC=$CC
3179 for ac_prog in cl.exe
3180 do
3181 # Extract the first word of "$ac_prog", so it can be a program name with args.
3182 set dummy $ac_prog; ac_word=$2
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3186 $as_echo_n "(cached) " >&6
3187 else
3188 if test -n "$ac_ct_CC"; then
3189 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3190 else
3191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192 for as_dir in $PATH
3193 do
3194 IFS=$as_save_IFS
3195 test -z "$as_dir" && as_dir=.
3196 for ac_exec_ext in '' $ac_executable_extensions; do
3197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3198 ac_cv_prog_ac_ct_CC="$ac_prog"
3199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3200 break 2
3201 fi
3202 done
3203 done
3204 IFS=$as_save_IFS
3205
3206 fi
3207 fi
3208 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3209 if test -n "$ac_ct_CC"; then
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3211 $as_echo "$ac_ct_CC" >&6; }
3212 else
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214 $as_echo "no" >&6; }
3215 fi
3216
3217
3218 test -n "$ac_ct_CC" && break
3219 done
3220
3221 if test "x$ac_ct_CC" = x; then
3222 CC=""
3223 else
3224 case $cross_compiling:$ac_tool_warned in
3225 yes:)
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3228 ac_tool_warned=yes ;;
3229 esac
3230 CC=$ac_ct_CC
3231 fi
3232 fi
3233
3234 fi
3235
3236
3237 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3239 as_fn_error $? "no acceptable C compiler found in \$PATH
3240 See \`config.log' for more details" "$LINENO" 5; }
3241
3242 # Provide some information about the compiler.
3243 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3244 set X $ac_compile
3245 ac_compiler=$2
3246 for ac_option in --version -v -V -qversion; do
3247 { { ac_try="$ac_compiler $ac_option >&5"
3248 case "(($ac_try" in
3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3251 esac
3252 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3253 $as_echo "$ac_try_echo"; } >&5
3254 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3255 ac_status=$?
3256 if test -s conftest.err; then
3257 sed '10a\
3258 ... rest of stderr output deleted ...
3259 10q' conftest.err >conftest.er1
3260 cat conftest.er1 >&5
3261 fi
3262 rm -f conftest.er1 conftest.err
3263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3264 test $ac_status = 0; }
3265 done
3266
3267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3268 /* end confdefs.h. */
3269
3270 int
3271 main ()
3272 {
3273
3274 ;
3275 return 0;
3276 }
3277 _ACEOF
3278 ac_clean_files_save=$ac_clean_files
3279 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3280 # Try to create an executable without -o first, disregard a.out.
3281 # It will help us diagnose broken compilers, and finding out an intuition
3282 # of exeext.
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3284 $as_echo_n "checking whether the C compiler works... " >&6; }
3285 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3286
3287 # The possible output files:
3288 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3289
3290 ac_rmfiles=
3291 for ac_file in $ac_files
3292 do
3293 case $ac_file in
3294 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3295 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3296 esac
3297 done
3298 rm -f $ac_rmfiles
3299
3300 if { { ac_try="$ac_link_default"
3301 case "(($ac_try" in
3302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303 *) ac_try_echo=$ac_try;;
3304 esac
3305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3306 $as_echo "$ac_try_echo"; } >&5
3307 (eval "$ac_link_default") 2>&5
3308 ac_status=$?
3309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3310 test $ac_status = 0; }; then :
3311 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3312 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3313 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3314 # so that the user can short-circuit this test for compilers unknown to
3315 # Autoconf.
3316 for ac_file in $ac_files ''
3317 do
3318 test -f "$ac_file" || continue
3319 case $ac_file in
3320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3321 ;;
3322 [ab].out )
3323 # We found the default executable, but exeext='' is most
3324 # certainly right.
3325 break;;
3326 *.* )
3327 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3328 then :; else
3329 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3330 fi
3331 # We set ac_cv_exeext here because the later test for it is not
3332 # safe: cross compilers may not add the suffix if given an `-o'
3333 # argument, so we may need to know it at that point already.
3334 # Even if this section looks crufty: it has the advantage of
3335 # actually working.
3336 break;;
3337 * )
3338 break;;
3339 esac
3340 done
3341 test "$ac_cv_exeext" = no && ac_cv_exeext=
3342
3343 else
3344 ac_file=''
3345 fi
3346 if test -z "$ac_file"; then :
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348 $as_echo "no" >&6; }
3349 $as_echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3351
3352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3354 as_fn_error 77 "C compiler cannot create executables
3355 See \`config.log' for more details" "$LINENO" 5; }
3356 else
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3358 $as_echo "yes" >&6; }
3359 fi
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3361 $as_echo_n "checking for C compiler default output file name... " >&6; }
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3363 $as_echo "$ac_file" >&6; }
3364 ac_exeext=$ac_cv_exeext
3365
3366 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3367 ac_clean_files=$ac_clean_files_save
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3369 $as_echo_n "checking for suffix of executables... " >&6; }
3370 if { { ac_try="$ac_link"
3371 case "(($ac_try" in
3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373 *) ac_try_echo=$ac_try;;
3374 esac
3375 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3376 $as_echo "$ac_try_echo"; } >&5
3377 (eval "$ac_link") 2>&5
3378 ac_status=$?
3379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3380 test $ac_status = 0; }; then :
3381 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3382 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3383 # work properly (i.e., refer to `conftest.exe'), while it won't with
3384 # `rm'.
3385 for ac_file in conftest.exe conftest conftest.*; do
3386 test -f "$ac_file" || continue
3387 case $ac_file in
3388 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3389 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3390 break;;
3391 * ) break;;
3392 esac
3393 done
3394 else
3395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3397 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3398 See \`config.log' for more details" "$LINENO" 5; }
3399 fi
3400 rm -f conftest conftest$ac_cv_exeext
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3402 $as_echo "$ac_cv_exeext" >&6; }
3403
3404 rm -f conftest.$ac_ext
3405 EXEEXT=$ac_cv_exeext
3406 ac_exeext=$EXEEXT
3407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408 /* end confdefs.h. */
3409 #include <stdio.h>
3410 int
3411 main ()
3412 {
3413 FILE *f = fopen ("conftest.out", "w");
3414 return ferror (f) || fclose (f) != 0;
3415
3416 ;
3417 return 0;
3418 }
3419 _ACEOF
3420 ac_clean_files="$ac_clean_files conftest.out"
3421 # Check that the compiler produces executables we can run. If not, either
3422 # the compiler is broken, or we cross compile.
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3424 $as_echo_n "checking whether we are cross compiling... " >&6; }
3425 if test "$cross_compiling" != yes; then
3426 { { ac_try="$ac_link"
3427 case "(($ac_try" in
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3430 esac
3431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432 $as_echo "$ac_try_echo"; } >&5
3433 (eval "$ac_link") 2>&5
3434 ac_status=$?
3435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3436 test $ac_status = 0; }
3437 if { ac_try='./conftest$ac_cv_exeext'
3438 { { case "(($ac_try" in
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3441 esac
3442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3443 $as_echo "$ac_try_echo"; } >&5
3444 (eval "$ac_try") 2>&5
3445 ac_status=$?
3446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3447 test $ac_status = 0; }; }; then
3448 cross_compiling=no
3449 else
3450 if test "$cross_compiling" = maybe; then
3451 cross_compiling=yes
3452 else
3453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3455 as_fn_error $? "cannot run C compiled programs.
3456 If you meant to cross compile, use \`--host'.
3457 See \`config.log' for more details" "$LINENO" 5; }
3458 fi
3459 fi
3460 fi
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3462 $as_echo "$cross_compiling" >&6; }
3463
3464 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3465 ac_clean_files=$ac_clean_files_save
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3467 $as_echo_n "checking for suffix of object files... " >&6; }
3468 if ${ac_cv_objext+:} false; then :
3469 $as_echo_n "(cached) " >&6
3470 else
3471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472 /* end confdefs.h. */
3473
3474 int
3475 main ()
3476 {
3477
3478 ;
3479 return 0;
3480 }
3481 _ACEOF
3482 rm -f conftest.o conftest.obj
3483 if { { ac_try="$ac_compile"
3484 case "(($ac_try" in
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3487 esac
3488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3489 $as_echo "$ac_try_echo"; } >&5
3490 (eval "$ac_compile") 2>&5
3491 ac_status=$?
3492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3493 test $ac_status = 0; }; then :
3494 for ac_file in conftest.o conftest.obj conftest.*; do
3495 test -f "$ac_file" || continue;
3496 case $ac_file in
3497 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3498 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3499 break;;
3500 esac
3501 done
3502 else
3503 $as_echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3505
3506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3508 as_fn_error $? "cannot compute suffix of object files: cannot compile
3509 See \`config.log' for more details" "$LINENO" 5; }
3510 fi
3511 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3512 fi
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3514 $as_echo "$ac_cv_objext" >&6; }
3515 OBJEXT=$ac_cv_objext
3516 ac_objext=$OBJEXT
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3518 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3519 if ${ac_cv_c_compiler_gnu+:} false; then :
3520 $as_echo_n "(cached) " >&6
3521 else
3522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523 /* end confdefs.h. */
3524
3525 int
3526 main ()
3527 {
3528 #ifndef __GNUC__
3529 choke me
3530 #endif
3531
3532 ;
3533 return 0;
3534 }
3535 _ACEOF
3536 if ac_fn_c_try_compile "$LINENO"; then :
3537 ac_compiler_gnu=yes
3538 else
3539 ac_compiler_gnu=no
3540 fi
3541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3542 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3543
3544 fi
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3546 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3547 if test $ac_compiler_gnu = yes; then
3548 GCC=yes
3549 else
3550 GCC=
3551 fi
3552 ac_test_CFLAGS=${CFLAGS+set}
3553 ac_save_CFLAGS=$CFLAGS
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3555 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3556 if ${ac_cv_prog_cc_g+:} false; then :
3557 $as_echo_n "(cached) " >&6
3558 else
3559 ac_save_c_werror_flag=$ac_c_werror_flag
3560 ac_c_werror_flag=yes
3561 ac_cv_prog_cc_g=no
3562 CFLAGS="-g"
3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h. */
3565
3566 int
3567 main ()
3568 {
3569
3570 ;
3571 return 0;
3572 }
3573 _ACEOF
3574 if ac_fn_c_try_compile "$LINENO"; then :
3575 ac_cv_prog_cc_g=yes
3576 else
3577 CFLAGS=""
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h. */
3580
3581 int
3582 main ()
3583 {
3584
3585 ;
3586 return 0;
3587 }
3588 _ACEOF
3589 if ac_fn_c_try_compile "$LINENO"; then :
3590
3591 else
3592 ac_c_werror_flag=$ac_save_c_werror_flag
3593 CFLAGS="-g"
3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595 /* end confdefs.h. */
3596
3597 int
3598 main ()
3599 {
3600
3601 ;
3602 return 0;
3603 }
3604 _ACEOF
3605 if ac_fn_c_try_compile "$LINENO"; then :
3606 ac_cv_prog_cc_g=yes
3607 fi
3608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3609 fi
3610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3611 fi
3612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3613 ac_c_werror_flag=$ac_save_c_werror_flag
3614 fi
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3616 $as_echo "$ac_cv_prog_cc_g" >&6; }
3617 if test "$ac_test_CFLAGS" = set; then
3618 CFLAGS=$ac_save_CFLAGS
3619 elif test $ac_cv_prog_cc_g = yes; then
3620 if test "$GCC" = yes; then
3621 CFLAGS="-g -O2"
3622 else
3623 CFLAGS="-g"
3624 fi
3625 else
3626 if test "$GCC" = yes; then
3627 CFLAGS="-O2"
3628 else
3629 CFLAGS=
3630 fi
3631 fi
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3633 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3634 if ${ac_cv_prog_cc_c89+:} false; then :
3635 $as_echo_n "(cached) " >&6
3636 else
3637 ac_cv_prog_cc_c89=no
3638 ac_save_CC=$CC
3639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640 /* end confdefs.h. */
3641 #include <stdarg.h>
3642 #include <stdio.h>
3643 struct stat;
3644 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3645 struct buf { int x; };
3646 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3647 static char *e (p, i)
3648 char **p;
3649 int i;
3650 {
3651 return p[i];
3652 }
3653 static char *f (char * (*g) (char **, int), char **p, ...)
3654 {
3655 char *s;
3656 va_list v;
3657 va_start (v,p);
3658 s = g (p, va_arg (v,int));
3659 va_end (v);
3660 return s;
3661 }
3662
3663 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3664 function prototypes and stuff, but not '\xHH' hex character constants.
3665 These don't provoke an error unfortunately, instead are silently treated
3666 as 'x'. The following induces an error, until -std is added to get
3667 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3668 array size at least. It's necessary to write '\x00'==0 to get something
3669 that's true only with -std. */
3670 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3671
3672 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3673 inside strings and character constants. */
3674 #define FOO(x) 'x'
3675 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3676
3677 int test (int i, double x);
3678 struct s1 {int (*f) (int a);};
3679 struct s2 {int (*f) (double a);};
3680 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3681 int argc;
3682 char **argv;
3683 int
3684 main ()
3685 {
3686 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3687 ;
3688 return 0;
3689 }
3690 _ACEOF
3691 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3692 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3693 do
3694 CC="$ac_save_CC $ac_arg"
3695 if ac_fn_c_try_compile "$LINENO"; then :
3696 ac_cv_prog_cc_c89=$ac_arg
3697 fi
3698 rm -f core conftest.err conftest.$ac_objext
3699 test "x$ac_cv_prog_cc_c89" != "xno" && break
3700 done
3701 rm -f conftest.$ac_ext
3702 CC=$ac_save_CC
3703
3704 fi
3705 # AC_CACHE_VAL
3706 case "x$ac_cv_prog_cc_c89" in
3707 x)
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3709 $as_echo "none needed" >&6; } ;;
3710 xno)
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3712 $as_echo "unsupported" >&6; } ;;
3713 *)
3714 CC="$CC $ac_cv_prog_cc_c89"
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3716 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3717 esac
3718 if test "x$ac_cv_prog_cc_c89" != xno; then :
3719
3720 fi
3721
3722 ac_ext=c
3723 ac_cpp='$CPP $CPPFLAGS'
3724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3727
3728 ac_ext=cpp
3729 ac_cpp='$CXXCPP $CPPFLAGS'
3730 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3731 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3732 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3733 if test -z "$CXX"; then
3734 if test -n "$CCC"; then
3735 CXX=$CCC
3736 else
3737 if test -n "$ac_tool_prefix"; then
3738 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3739 do
3740 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3741 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3743 $as_echo_n "checking for $ac_word... " >&6; }
3744 if ${ac_cv_prog_CXX+:} false; then :
3745 $as_echo_n "(cached) " >&6
3746 else
3747 if test -n "$CXX"; then
3748 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3749 else
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 for as_dir in $PATH
3752 do
3753 IFS=$as_save_IFS
3754 test -z "$as_dir" && as_dir=.
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3759 break 2
3760 fi
3761 done
3762 done
3763 IFS=$as_save_IFS
3764
3765 fi
3766 fi
3767 CXX=$ac_cv_prog_CXX
3768 if test -n "$CXX"; then
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3770 $as_echo "$CXX" >&6; }
3771 else
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3773 $as_echo "no" >&6; }
3774 fi
3775
3776
3777 test -n "$CXX" && break
3778 done
3779 fi
3780 if test -z "$CXX"; then
3781 ac_ct_CXX=$CXX
3782 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3783 do
3784 # Extract the first word of "$ac_prog", so it can be a program name with args.
3785 set dummy $ac_prog; ac_word=$2
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3787 $as_echo_n "checking for $ac_word... " >&6; }
3788 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3789 $as_echo_n "(cached) " >&6
3790 else
3791 if test -n "$ac_ct_CXX"; then
3792 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3793 else
3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795 for as_dir in $PATH
3796 do
3797 IFS=$as_save_IFS
3798 test -z "$as_dir" && as_dir=.
3799 for ac_exec_ext in '' $ac_executable_extensions; do
3800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3801 ac_cv_prog_ac_ct_CXX="$ac_prog"
3802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3803 break 2
3804 fi
3805 done
3806 done
3807 IFS=$as_save_IFS
3808
3809 fi
3810 fi
3811 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3812 if test -n "$ac_ct_CXX"; then
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3814 $as_echo "$ac_ct_CXX" >&6; }
3815 else
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3817 $as_echo "no" >&6; }
3818 fi
3819
3820
3821 test -n "$ac_ct_CXX" && break
3822 done
3823
3824 if test "x$ac_ct_CXX" = x; then
3825 CXX="g++"
3826 else
3827 case $cross_compiling:$ac_tool_warned in
3828 yes:)
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3831 ac_tool_warned=yes ;;
3832 esac
3833 CXX=$ac_ct_CXX
3834 fi
3835 fi
3836
3837 fi
3838 fi
3839 # Provide some information about the compiler.
3840 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3841 set X $ac_compile
3842 ac_compiler=$2
3843 for ac_option in --version -v -V -qversion; do
3844 { { ac_try="$ac_compiler $ac_option >&5"
3845 case "(($ac_try" in
3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847 *) ac_try_echo=$ac_try;;
3848 esac
3849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3850 $as_echo "$ac_try_echo"; } >&5
3851 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3852 ac_status=$?
3853 if test -s conftest.err; then
3854 sed '10a\
3855 ... rest of stderr output deleted ...
3856 10q' conftest.err >conftest.er1
3857 cat conftest.er1 >&5
3858 fi
3859 rm -f conftest.er1 conftest.err
3860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3861 test $ac_status = 0; }
3862 done
3863
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3865 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3866 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3867 $as_echo_n "(cached) " >&6
3868 else
3869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870 /* end confdefs.h. */
3871
3872 int
3873 main ()
3874 {
3875 #ifndef __GNUC__
3876 choke me
3877 #endif
3878
3879 ;
3880 return 0;
3881 }
3882 _ACEOF
3883 if ac_fn_cxx_try_compile "$LINENO"; then :
3884 ac_compiler_gnu=yes
3885 else
3886 ac_compiler_gnu=no
3887 fi
3888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3889 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3890
3891 fi
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3893 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3894 if test $ac_compiler_gnu = yes; then
3895 GXX=yes
3896 else
3897 GXX=
3898 fi
3899 ac_test_CXXFLAGS=${CXXFLAGS+set}
3900 ac_save_CXXFLAGS=$CXXFLAGS
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3902 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3903 if ${ac_cv_prog_cxx_g+:} false; then :
3904 $as_echo_n "(cached) " >&6
3905 else
3906 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3907 ac_cxx_werror_flag=yes
3908 ac_cv_prog_cxx_g=no
3909 CXXFLAGS="-g"
3910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911 /* end confdefs.h. */
3912
3913 int
3914 main ()
3915 {
3916
3917 ;
3918 return 0;
3919 }
3920 _ACEOF
3921 if ac_fn_cxx_try_compile "$LINENO"; then :
3922 ac_cv_prog_cxx_g=yes
3923 else
3924 CXXFLAGS=""
3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926 /* end confdefs.h. */
3927
3928 int
3929 main ()
3930 {
3931
3932 ;
3933 return 0;
3934 }
3935 _ACEOF
3936 if ac_fn_cxx_try_compile "$LINENO"; then :
3937
3938 else
3939 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3940 CXXFLAGS="-g"
3941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3942 /* end confdefs.h. */
3943
3944 int
3945 main ()
3946 {
3947
3948 ;
3949 return 0;
3950 }
3951 _ACEOF
3952 if ac_fn_cxx_try_compile "$LINENO"; then :
3953 ac_cv_prog_cxx_g=yes
3954 fi
3955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3956 fi
3957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3958 fi
3959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3960 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3961 fi
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3963 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3964 if test "$ac_test_CXXFLAGS" = set; then
3965 CXXFLAGS=$ac_save_CXXFLAGS
3966 elif test $ac_cv_prog_cxx_g = yes; then
3967 if test "$GXX" = yes; then
3968 CXXFLAGS="-g -O2"
3969 else
3970 CXXFLAGS="-g"
3971 fi
3972 else
3973 if test "$GXX" = yes; then
3974 CXXFLAGS="-O2"
3975 else
3976 CXXFLAGS=
3977 fi
3978 fi
3979 ac_ext=c
3980 ac_cpp='$CPP $CPPFLAGS'
3981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3984
3985 if test -n "$ac_tool_prefix"; then
3986 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3987 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3989 $as_echo_n "checking for $ac_word... " >&6; }
3990 if ${ac_cv_prog_RANLIB+:} false; then :
3991 $as_echo_n "(cached) " >&6
3992 else
3993 if test -n "$RANLIB"; then
3994 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3995 else
3996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997 for as_dir in $PATH
3998 do
3999 IFS=$as_save_IFS
4000 test -z "$as_dir" && as_dir=.
4001 for ac_exec_ext in '' $ac_executable_extensions; do
4002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4003 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4005 break 2
4006 fi
4007 done
4008 done
4009 IFS=$as_save_IFS
4010
4011 fi
4012 fi
4013 RANLIB=$ac_cv_prog_RANLIB
4014 if test -n "$RANLIB"; then
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4016 $as_echo "$RANLIB" >&6; }
4017 else
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4019 $as_echo "no" >&6; }
4020 fi
4021
4022
4023 fi
4024 if test -z "$ac_cv_prog_RANLIB"; then
4025 ac_ct_RANLIB=$RANLIB
4026 # Extract the first word of "ranlib", so it can be a program name with args.
4027 set dummy ranlib; ac_word=$2
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4029 $as_echo_n "checking for $ac_word... " >&6; }
4030 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4031 $as_echo_n "(cached) " >&6
4032 else
4033 if test -n "$ac_ct_RANLIB"; then
4034 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4035 else
4036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 for as_dir in $PATH
4038 do
4039 IFS=$as_save_IFS
4040 test -z "$as_dir" && as_dir=.
4041 for ac_exec_ext in '' $ac_executable_extensions; do
4042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4043 ac_cv_prog_ac_ct_RANLIB="ranlib"
4044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4045 break 2
4046 fi
4047 done
4048 done
4049 IFS=$as_save_IFS
4050
4051 fi
4052 fi
4053 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4054 if test -n "$ac_ct_RANLIB"; then
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4056 $as_echo "$ac_ct_RANLIB" >&6; }
4057 else
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4059 $as_echo "no" >&6; }
4060 fi
4061
4062 if test "x$ac_ct_RANLIB" = x; then
4063 RANLIB=":"
4064 else
4065 case $cross_compiling:$ac_tool_warned in
4066 yes:)
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4069 ac_tool_warned=yes ;;
4070 esac
4071 RANLIB=$ac_ct_RANLIB
4072 fi
4073 else
4074 RANLIB="$ac_cv_prog_RANLIB"
4075 fi
4076
4077 if test -n "$ac_tool_prefix"; then
4078 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4079 set dummy ${ac_tool_prefix}ar; ac_word=$2
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4081 $as_echo_n "checking for $ac_word... " >&6; }
4082 if ${ac_cv_prog_AR+:} false; then :
4083 $as_echo_n "(cached) " >&6
4084 else
4085 if test -n "$AR"; then
4086 ac_cv_prog_AR="$AR" # Let the user override the test.
4087 else
4088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089 for as_dir in $PATH
4090 do
4091 IFS=$as_save_IFS
4092 test -z "$as_dir" && as_dir=.
4093 for ac_exec_ext in '' $ac_executable_extensions; do
4094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4095 ac_cv_prog_AR="${ac_tool_prefix}ar"
4096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4097 break 2
4098 fi
4099 done
4100 done
4101 IFS=$as_save_IFS
4102
4103 fi
4104 fi
4105 AR=$ac_cv_prog_AR
4106 if test -n "$AR"; then
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4108 $as_echo "$AR" >&6; }
4109 else
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4111 $as_echo "no" >&6; }
4112 fi
4113
4114
4115 fi
4116 if test -z "$ac_cv_prog_AR"; then
4117 ac_ct_AR=$AR
4118 # Extract the first word of "ar", so it can be a program name with args.
4119 set dummy ar; ac_word=$2
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4121 $as_echo_n "checking for $ac_word... " >&6; }
4122 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4123 $as_echo_n "(cached) " >&6
4124 else
4125 if test -n "$ac_ct_AR"; then
4126 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4127 else
4128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129 for as_dir in $PATH
4130 do
4131 IFS=$as_save_IFS
4132 test -z "$as_dir" && as_dir=.
4133 for ac_exec_ext in '' $ac_executable_extensions; do
4134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4135 ac_cv_prog_ac_ct_AR="ar"
4136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4137 break 2
4138 fi
4139 done
4140 done
4141 IFS=$as_save_IFS
4142
4143 fi
4144 fi
4145 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4146 if test -n "$ac_ct_AR"; then
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4148 $as_echo "$ac_ct_AR" >&6; }
4149 else
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4151 $as_echo "no" >&6; }
4152 fi
4153
4154 if test "x$ac_ct_AR" = x; then
4155 AR=""
4156 else
4157 case $cross_compiling:$ac_tool_warned in
4158 yes:)
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4161 ac_tool_warned=yes ;;
4162 esac
4163 AR=$ac_ct_AR
4164 fi
4165 else
4166 AR="$ac_cv_prog_AR"
4167 fi
4168
4169
4170
4171 ac_ext=c
4172 ac_cpp='$CPP $CPPFLAGS'
4173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4177 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4178 # On Suns, sometimes $CPP names a directory.
4179 if test -n "$CPP" && test -d "$CPP"; then
4180 CPP=
4181 fi
4182 if test -z "$CPP"; then
4183 if ${ac_cv_prog_CPP+:} false; then :
4184 $as_echo_n "(cached) " >&6
4185 else
4186 # Double quotes because CPP needs to be expanded
4187 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4188 do
4189 ac_preproc_ok=false
4190 for ac_c_preproc_warn_flag in '' yes
4191 do
4192 # Use a header file that comes with gcc, so configuring glibc
4193 # with a fresh cross-compiler works.
4194 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4195 # <limits.h> exists even on freestanding compilers.
4196 # On the NeXT, cc -E runs the code through the compiler's parser,
4197 # not just through cpp. "Syntax error" is here to catch this case.
4198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4199 /* end confdefs.h. */
4200 #ifdef __STDC__
4201 # include <limits.h>
4202 #else
4203 # include <assert.h>
4204 #endif
4205 Syntax error
4206 _ACEOF
4207 if ac_fn_c_try_cpp "$LINENO"; then :
4208
4209 else
4210 # Broken: fails on valid input.
4211 continue
4212 fi
4213 rm -f conftest.err conftest.i conftest.$ac_ext
4214
4215 # OK, works on sane cases. Now check whether nonexistent headers
4216 # can be detected and how.
4217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218 /* end confdefs.h. */
4219 #include <ac_nonexistent.h>
4220 _ACEOF
4221 if ac_fn_c_try_cpp "$LINENO"; then :
4222 # Broken: success on invalid input.
4223 continue
4224 else
4225 # Passes both tests.
4226 ac_preproc_ok=:
4227 break
4228 fi
4229 rm -f conftest.err conftest.i conftest.$ac_ext
4230
4231 done
4232 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4233 rm -f conftest.i conftest.err conftest.$ac_ext
4234 if $ac_preproc_ok; then :
4235 break
4236 fi
4237
4238 done
4239 ac_cv_prog_CPP=$CPP
4240
4241 fi
4242 CPP=$ac_cv_prog_CPP
4243 else
4244 ac_cv_prog_CPP=$CPP
4245 fi
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4247 $as_echo "$CPP" >&6; }
4248 ac_preproc_ok=false
4249 for ac_c_preproc_warn_flag in '' yes
4250 do
4251 # Use a header file that comes with gcc, so configuring glibc
4252 # with a fresh cross-compiler works.
4253 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4254 # <limits.h> exists even on freestanding compilers.
4255 # On the NeXT, cc -E runs the code through the compiler's parser,
4256 # not just through cpp. "Syntax error" is here to catch this case.
4257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258 /* end confdefs.h. */
4259 #ifdef __STDC__
4260 # include <limits.h>
4261 #else
4262 # include <assert.h>
4263 #endif
4264 Syntax error
4265 _ACEOF
4266 if ac_fn_c_try_cpp "$LINENO"; then :
4267
4268 else
4269 # Broken: fails on valid input.
4270 continue
4271 fi
4272 rm -f conftest.err conftest.i conftest.$ac_ext
4273
4274 # OK, works on sane cases. Now check whether nonexistent headers
4275 # can be detected and how.
4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4277 /* end confdefs.h. */
4278 #include <ac_nonexistent.h>
4279 _ACEOF
4280 if ac_fn_c_try_cpp "$LINENO"; then :
4281 # Broken: success on invalid input.
4282 continue
4283 else
4284 # Passes both tests.
4285 ac_preproc_ok=:
4286 break
4287 fi
4288 rm -f conftest.err conftest.i conftest.$ac_ext
4289
4290 done
4291 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4292 rm -f conftest.i conftest.err conftest.$ac_ext
4293 if $ac_preproc_ok; then :
4294
4295 else
4296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4298 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4299 See \`config.log' for more details" "$LINENO" 5; }
4300 fi
4301
4302 ac_ext=c
4303 ac_cpp='$CPP $CPPFLAGS'
4304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4307
4308
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4310 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4311 if ${ac_cv_path_GREP+:} false; then :
4312 $as_echo_n "(cached) " >&6
4313 else
4314 if test -z "$GREP"; then
4315 ac_path_GREP_found=false
4316 # Loop through the user's path and test for each of PROGNAME-LIST
4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4319 do
4320 IFS=$as_save_IFS
4321 test -z "$as_dir" && as_dir=.
4322 for ac_prog in grep ggrep; do
4323 for ac_exec_ext in '' $ac_executable_extensions; do
4324 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4325 as_fn_executable_p "$ac_path_GREP" || continue
4326 # Check for GNU ac_path_GREP and select it if it is found.
4327 # Check for GNU $ac_path_GREP
4328 case `"$ac_path_GREP" --version 2>&1` in
4329 *GNU*)
4330 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4331 *)
4332 ac_count=0
4333 $as_echo_n 0123456789 >"conftest.in"
4334 while :
4335 do
4336 cat "conftest.in" "conftest.in" >"conftest.tmp"
4337 mv "conftest.tmp" "conftest.in"
4338 cp "conftest.in" "conftest.nl"
4339 $as_echo 'GREP' >> "conftest.nl"
4340 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4341 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4342 as_fn_arith $ac_count + 1 && ac_count=$as_val
4343 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4344 # Best one so far, save it but keep looking for a better one
4345 ac_cv_path_GREP="$ac_path_GREP"
4346 ac_path_GREP_max=$ac_count
4347 fi
4348 # 10*(2^10) chars as input seems more than enough
4349 test $ac_count -gt 10 && break
4350 done
4351 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4352 esac
4353
4354 $ac_path_GREP_found && break 3
4355 done
4356 done
4357 done
4358 IFS=$as_save_IFS
4359 if test -z "$ac_cv_path_GREP"; then
4360 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4361 fi
4362 else
4363 ac_cv_path_GREP=$GREP
4364 fi
4365
4366 fi
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4368 $as_echo "$ac_cv_path_GREP" >&6; }
4369 GREP="$ac_cv_path_GREP"
4370
4371
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4373 $as_echo_n "checking for egrep... " >&6; }
4374 if ${ac_cv_path_EGREP+:} false; then :
4375 $as_echo_n "(cached) " >&6
4376 else
4377 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4378 then ac_cv_path_EGREP="$GREP -E"
4379 else
4380 if test -z "$EGREP"; then
4381 ac_path_EGREP_found=false
4382 # Loop through the user's path and test for each of PROGNAME-LIST
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4385 do
4386 IFS=$as_save_IFS
4387 test -z "$as_dir" && as_dir=.
4388 for ac_prog in egrep; do
4389 for ac_exec_ext in '' $ac_executable_extensions; do
4390 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4391 as_fn_executable_p "$ac_path_EGREP" || continue
4392 # Check for GNU ac_path_EGREP and select it if it is found.
4393 # Check for GNU $ac_path_EGREP
4394 case `"$ac_path_EGREP" --version 2>&1` in
4395 *GNU*)
4396 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4397 *)
4398 ac_count=0
4399 $as_echo_n 0123456789 >"conftest.in"
4400 while :
4401 do
4402 cat "conftest.in" "conftest.in" >"conftest.tmp"
4403 mv "conftest.tmp" "conftest.in"
4404 cp "conftest.in" "conftest.nl"
4405 $as_echo 'EGREP' >> "conftest.nl"
4406 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4407 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4408 as_fn_arith $ac_count + 1 && ac_count=$as_val
4409 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4410 # Best one so far, save it but keep looking for a better one
4411 ac_cv_path_EGREP="$ac_path_EGREP"
4412 ac_path_EGREP_max=$ac_count
4413 fi
4414 # 10*(2^10) chars as input seems more than enough
4415 test $ac_count -gt 10 && break
4416 done
4417 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4418 esac
4419
4420 $ac_path_EGREP_found && break 3
4421 done
4422 done
4423 done
4424 IFS=$as_save_IFS
4425 if test -z "$ac_cv_path_EGREP"; then
4426 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4427 fi
4428 else
4429 ac_cv_path_EGREP=$EGREP
4430 fi
4431
4432 fi
4433 fi
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4435 $as_echo "$ac_cv_path_EGREP" >&6; }
4436 EGREP="$ac_cv_path_EGREP"
4437
4438
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4440 $as_echo_n "checking for ANSI C header files... " >&6; }
4441 if ${ac_cv_header_stdc+:} false; then :
4442 $as_echo_n "(cached) " >&6
4443 else
4444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445 /* end confdefs.h. */
4446 #include <stdlib.h>
4447 #include <stdarg.h>
4448 #include <string.h>
4449 #include <float.h>
4450
4451 int
4452 main ()
4453 {
4454
4455 ;
4456 return 0;
4457 }
4458 _ACEOF
4459 if ac_fn_c_try_compile "$LINENO"; then :
4460 ac_cv_header_stdc=yes
4461 else
4462 ac_cv_header_stdc=no
4463 fi
4464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4465
4466 if test $ac_cv_header_stdc = yes; then
4467 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h. */
4470 #include <string.h>
4471
4472 _ACEOF
4473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4474 $EGREP "memchr" >/dev/null 2>&1; then :
4475
4476 else
4477 ac_cv_header_stdc=no
4478 fi
4479 rm -f conftest*
4480
4481 fi
4482
4483 if test $ac_cv_header_stdc = yes; then
4484 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h. */
4487 #include <stdlib.h>
4488
4489 _ACEOF
4490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4491 $EGREP "free" >/dev/null 2>&1; then :
4492
4493 else
4494 ac_cv_header_stdc=no
4495 fi
4496 rm -f conftest*
4497
4498 fi
4499
4500 if test $ac_cv_header_stdc = yes; then
4501 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4502 if test "$cross_compiling" = yes; then :
4503 :
4504 else
4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h. */
4507 #include <ctype.h>
4508 #include <stdlib.h>
4509 #if ((' ' & 0x0FF) == 0x020)
4510 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4511 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4512 #else
4513 # define ISLOWER(c) \
4514 (('a' <= (c) && (c) <= 'i') \
4515 || ('j' <= (c) && (c) <= 'r') \
4516 || ('s' <= (c) && (c) <= 'z'))
4517 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4518 #endif
4519
4520 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4521 int
4522 main ()
4523 {
4524 int i;
4525 for (i = 0; i < 256; i++)
4526 if (XOR (islower (i), ISLOWER (i))
4527 || toupper (i) != TOUPPER (i))
4528 return 2;
4529 return 0;
4530 }
4531 _ACEOF
4532 if ac_fn_c_try_run "$LINENO"; then :
4533
4534 else
4535 ac_cv_header_stdc=no
4536 fi
4537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4538 conftest.$ac_objext conftest.beam conftest.$ac_ext
4539 fi
4540
4541 fi
4542 fi
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4544 $as_echo "$ac_cv_header_stdc" >&6; }
4545 if test $ac_cv_header_stdc = yes; then
4546
4547 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4548
4549 fi
4550
4551 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4552 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4553 inttypes.h stdint.h unistd.h
4554 do :
4555 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4556 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4557 "
4558 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4559 cat >>confdefs.h <<_ACEOF
4560 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4561 _ACEOF
4562
4563 fi
4564
4565 done
4566
4567
4568
4569 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4570 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4571 MINIX=yes
4572 else
4573 MINIX=
4574 fi
4575
4576
4577 if test "$MINIX" = yes; then
4578
4579 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4580
4581
4582 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4583
4584
4585 $as_echo "#define _MINIX 1" >>confdefs.h
4586
4587 fi
4588
4589
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4591 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4592 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4593 $as_echo_n "(cached) " >&6
4594 else
4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596 /* end confdefs.h. */
4597
4598 # define __EXTENSIONS__ 1
4599 $ac_includes_default
4600 int
4601 main ()
4602 {
4603
4604 ;
4605 return 0;
4606 }
4607 _ACEOF
4608 if ac_fn_c_try_compile "$LINENO"; then :
4609 ac_cv_safe_to_define___extensions__=yes
4610 else
4611 ac_cv_safe_to_define___extensions__=no
4612 fi
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614 fi
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4616 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4617 test $ac_cv_safe_to_define___extensions__ = yes &&
4618 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4619
4620 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4621
4622 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4623
4624 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4625
4626 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4627
4628
4629 # Check whether --enable-largefile was given.
4630 if test "${enable_largefile+set}" = set; then :
4631 enableval=$enable_largefile;
4632 fi
4633
4634 if test "$enable_largefile" != no; then
4635
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4637 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4638 if ${ac_cv_sys_largefile_CC+:} false; then :
4639 $as_echo_n "(cached) " >&6
4640 else
4641 ac_cv_sys_largefile_CC=no
4642 if test "$GCC" != yes; then
4643 ac_save_CC=$CC
4644 while :; do
4645 # IRIX 6.2 and later do not support large files by default,
4646 # so use the C compiler's -n32 option if that helps.
4647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648 /* end confdefs.h. */
4649 #include <sys/types.h>
4650 /* Check that off_t can represent 2**63 - 1 correctly.
4651 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4652 since some C++ compilers masquerading as C compilers
4653 incorrectly reject 9223372036854775807. */
4654 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4655 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4656 && LARGE_OFF_T % 2147483647 == 1)
4657 ? 1 : -1];
4658 int
4659 main ()
4660 {
4661
4662 ;
4663 return 0;
4664 }
4665 _ACEOF
4666 if ac_fn_c_try_compile "$LINENO"; then :
4667 break
4668 fi
4669 rm -f core conftest.err conftest.$ac_objext
4670 CC="$CC -n32"
4671 if ac_fn_c_try_compile "$LINENO"; then :
4672 ac_cv_sys_largefile_CC=' -n32'; break
4673 fi
4674 rm -f core conftest.err conftest.$ac_objext
4675 break
4676 done
4677 CC=$ac_save_CC
4678 rm -f conftest.$ac_ext
4679 fi
4680 fi
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4682 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4683 if test "$ac_cv_sys_largefile_CC" != no; then
4684 CC=$CC$ac_cv_sys_largefile_CC
4685 fi
4686
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4688 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4689 if ${ac_cv_sys_file_offset_bits+:} false; then :
4690 $as_echo_n "(cached) " >&6
4691 else
4692 while :; do
4693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4694 /* end confdefs.h. */
4695 #include <sys/types.h>
4696 /* Check that off_t can represent 2**63 - 1 correctly.
4697 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4698 since some C++ compilers masquerading as C compilers
4699 incorrectly reject 9223372036854775807. */
4700 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4701 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4702 && LARGE_OFF_T % 2147483647 == 1)
4703 ? 1 : -1];
4704 int
4705 main ()
4706 {
4707
4708 ;
4709 return 0;
4710 }
4711 _ACEOF
4712 if ac_fn_c_try_compile "$LINENO"; then :
4713 ac_cv_sys_file_offset_bits=no; break
4714 fi
4715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4717 /* end confdefs.h. */
4718 #define _FILE_OFFSET_BITS 64
4719 #include <sys/types.h>
4720 /* Check that off_t can represent 2**63 - 1 correctly.
4721 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4722 since some C++ compilers masquerading as C compilers
4723 incorrectly reject 9223372036854775807. */
4724 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4725 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4726 && LARGE_OFF_T % 2147483647 == 1)
4727 ? 1 : -1];
4728 int
4729 main ()
4730 {
4731
4732 ;
4733 return 0;
4734 }
4735 _ACEOF
4736 if ac_fn_c_try_compile "$LINENO"; then :
4737 ac_cv_sys_file_offset_bits=64; break
4738 fi
4739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4740 ac_cv_sys_file_offset_bits=unknown
4741 break
4742 done
4743 fi
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4745 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4746 case $ac_cv_sys_file_offset_bits in #(
4747 no | unknown) ;;
4748 *)
4749 cat >>confdefs.h <<_ACEOF
4750 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4751 _ACEOF
4752 ;;
4753 esac
4754 rm -rf conftest*
4755 if test $ac_cv_sys_file_offset_bits = unknown; then
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4757 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4758 if ${ac_cv_sys_large_files+:} false; then :
4759 $as_echo_n "(cached) " >&6
4760 else
4761 while :; do
4762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4763 /* end confdefs.h. */
4764 #include <sys/types.h>
4765 /* Check that off_t can represent 2**63 - 1 correctly.
4766 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4767 since some C++ compilers masquerading as C compilers
4768 incorrectly reject 9223372036854775807. */
4769 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4770 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4771 && LARGE_OFF_T % 2147483647 == 1)
4772 ? 1 : -1];
4773 int
4774 main ()
4775 {
4776
4777 ;
4778 return 0;
4779 }
4780 _ACEOF
4781 if ac_fn_c_try_compile "$LINENO"; then :
4782 ac_cv_sys_large_files=no; break
4783 fi
4784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786 /* end confdefs.h. */
4787 #define _LARGE_FILES 1
4788 #include <sys/types.h>
4789 /* Check that off_t can represent 2**63 - 1 correctly.
4790 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4791 since some C++ compilers masquerading as C compilers
4792 incorrectly reject 9223372036854775807. */
4793 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4794 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4795 && LARGE_OFF_T % 2147483647 == 1)
4796 ? 1 : -1];
4797 int
4798 main ()
4799 {
4800
4801 ;
4802 return 0;
4803 }
4804 _ACEOF
4805 if ac_fn_c_try_compile "$LINENO"; then :
4806 ac_cv_sys_large_files=1; break
4807 fi
4808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4809 ac_cv_sys_large_files=unknown
4810 break
4811 done
4812 fi
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4814 $as_echo "$ac_cv_sys_large_files" >&6; }
4815 case $ac_cv_sys_large_files in #(
4816 no | unknown) ;;
4817 *)
4818 cat >>confdefs.h <<_ACEOF
4819 #define _LARGE_FILES $ac_cv_sys_large_files
4820 _ACEOF
4821 ;;
4822 esac
4823 rm -rf conftest*
4824 fi
4825
4826
4827 fi
4828
4829
4830 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
4831 for ac_prog in aclocal
4832 do
4833 # Extract the first word of "$ac_prog", so it can be a program name with args.
4834 set dummy $ac_prog; ac_word=$2
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4836 $as_echo_n "checking for $ac_word... " >&6; }
4837 if ${ac_cv_prog_ACLOCAL+:} false; then :
4838 $as_echo_n "(cached) " >&6
4839 else
4840 if test -n "$ACLOCAL"; then
4841 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
4842 else
4843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844 for as_dir in $PATH
4845 do
4846 IFS=$as_save_IFS
4847 test -z "$as_dir" && as_dir=.
4848 for ac_exec_ext in '' $ac_executable_extensions; do
4849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4850 ac_cv_prog_ACLOCAL="$ac_prog"
4851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4852 break 2
4853 fi
4854 done
4855 done
4856 IFS=$as_save_IFS
4857
4858 fi
4859 fi
4860 ACLOCAL=$ac_cv_prog_ACLOCAL
4861 if test -n "$ACLOCAL"; then
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
4863 $as_echo "$ACLOCAL" >&6; }
4864 else
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4866 $as_echo "no" >&6; }
4867 fi
4868
4869
4870 test -n "$ACLOCAL" && break
4871 done
4872 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
4873
4874 for ac_prog in autoconf
4875 do
4876 # Extract the first word of "$ac_prog", so it can be a program name with args.
4877 set dummy $ac_prog; ac_word=$2
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4879 $as_echo_n "checking for $ac_word... " >&6; }
4880 if ${ac_cv_prog_AUTOCONF+:} false; then :
4881 $as_echo_n "(cached) " >&6
4882 else
4883 if test -n "$AUTOCONF"; then
4884 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
4885 else
4886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887 for as_dir in $PATH
4888 do
4889 IFS=$as_save_IFS
4890 test -z "$as_dir" && as_dir=.
4891 for ac_exec_ext in '' $ac_executable_extensions; do
4892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4893 ac_cv_prog_AUTOCONF="$ac_prog"
4894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4895 break 2
4896 fi
4897 done
4898 done
4899 IFS=$as_save_IFS
4900
4901 fi
4902 fi
4903 AUTOCONF=$ac_cv_prog_AUTOCONF
4904 if test -n "$AUTOCONF"; then
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
4906 $as_echo "$AUTOCONF" >&6; }
4907 else
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4909 $as_echo "no" >&6; }
4910 fi
4911
4912
4913 test -n "$AUTOCONF" && break
4914 done
4915 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
4916
4917 for ac_prog in autoheader
4918 do
4919 # Extract the first word of "$ac_prog", so it can be a program name with args.
4920 set dummy $ac_prog; ac_word=$2
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4922 $as_echo_n "checking for $ac_word... " >&6; }
4923 if ${ac_cv_prog_AUTOHEADER+:} false; then :
4924 $as_echo_n "(cached) " >&6
4925 else
4926 if test -n "$AUTOHEADER"; then
4927 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
4928 else
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 for as_dir in $PATH
4931 do
4932 IFS=$as_save_IFS
4933 test -z "$as_dir" && as_dir=.
4934 for ac_exec_ext in '' $ac_executable_extensions; do
4935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4936 ac_cv_prog_AUTOHEADER="$ac_prog"
4937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4938 break 2
4939 fi
4940 done
4941 done
4942 IFS=$as_save_IFS
4943
4944 fi
4945 fi
4946 AUTOHEADER=$ac_cv_prog_AUTOHEADER
4947 if test -n "$AUTOHEADER"; then
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
4949 $as_echo "$AUTOHEADER" >&6; }
4950 else
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4952 $as_echo "no" >&6; }
4953 fi
4954
4955
4956 test -n "$AUTOHEADER" && break
4957 done
4958 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
4959
4960
4961 if test -z "$ETAGS"; then
4962 ETAGS=etags
4963 fi
4964
4965
4966 # Figure out what compiler warnings we can enable.
4967 # See config/warnings.m4 for details.
4968
4969 ac_ext=c
4970 ac_cpp='$CPP $CPPFLAGS'
4971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4974
4975 warn=
4976 save_CFLAGS="$CFLAGS"
4977 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings \
4978 -Wmissing-format-attribute; do
4979 # Do the check with the no- prefix removed since gcc silently
4980 # accepts any -Wno-* option on purpose
4981 case $real_option in
4982 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4983 *) option=$real_option ;;
4984 esac
4985 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4986
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4988 $as_echo_n "checking whether $CC supports $option... " >&6; }
4989 if eval \${$as_acx_Woption+:} false; then :
4990 $as_echo_n "(cached) " >&6
4991 else
4992 CFLAGS="$option"
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h. */
4995
4996 int
4997 main ()
4998 {
4999
5000 ;
5001 return 0;
5002 }
5003 _ACEOF
5004 if ac_fn_c_try_compile "$LINENO"; then :
5005 eval "$as_acx_Woption=yes"
5006 else
5007 eval "$as_acx_Woption=no"
5008 fi
5009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5010
5011 fi
5012 eval ac_res=\$$as_acx_Woption
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5014 $as_echo "$ac_res" >&6; }
5015 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5016 warn="$warn${warn:+ }$real_option"
5017 fi
5018 done
5019 CFLAGS="$save_CFLAGS"
5020 ac_ext=c
5021 ac_cpp='$CPP $CPPFLAGS'
5022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5025
5026
5027 ac_ext=c
5028 ac_cpp='$CPP $CPPFLAGS'
5029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5032
5033 c_warn=
5034 save_CFLAGS="$CFLAGS"
5035 for real_option in -Wstrict-prototypes -Wmissing-prototypes \
5036 -Wold-style-definition -Wc++-compat; do
5037 # Do the check with the no- prefix removed since gcc silently
5038 # accepts any -Wno-* option on purpose
5039 case $real_option in
5040 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
5041 *) option=$real_option ;;
5042 esac
5043 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5044
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5046 $as_echo_n "checking whether $CC supports $option... " >&6; }
5047 if eval \${$as_acx_Woption+:} false; then :
5048 $as_echo_n "(cached) " >&6
5049 else
5050 CFLAGS="$option"
5051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5052 /* end confdefs.h. */
5053
5054 int
5055 main ()
5056 {
5057
5058 ;
5059 return 0;
5060 }
5061 _ACEOF
5062 if ac_fn_c_try_compile "$LINENO"; then :
5063 eval "$as_acx_Woption=yes"
5064 else
5065 eval "$as_acx_Woption=no"
5066 fi
5067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5068
5069 fi
5070 eval ac_res=\$$as_acx_Woption
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5072 $as_echo "$ac_res" >&6; }
5073 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5074 c_warn="$c_warn${c_warn:+ }$real_option"
5075 fi
5076 done
5077 CFLAGS="$save_CFLAGS"
5078 ac_ext=c
5079 ac_cpp='$CPP $CPPFLAGS'
5080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5083
5084
5085 ac_ext=c
5086 ac_cpp='$CPP $CPPFLAGS'
5087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5090
5091 WARN_PEDANTIC=
5092 # Do the check with the no- prefix removed from the warning options
5093 # since gcc silently accepts any -Wno-* option on purpose
5094 if test "$GCC" = yes; then :
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5
5096 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; }
5097 if ${acx_cv_prog_cc_pedantic__Wlong_long+:} false; then :
5098 $as_echo_n "(cached) " >&6
5099 else
5100 save_CFLAGS="$CFLAGS"
5101 CFLAGS="-pedantic -Wlong-long"
5102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5103 /* end confdefs.h. */
5104
5105 int
5106 main ()
5107 {
5108
5109 ;
5110 return 0;
5111 }
5112 _ACEOF
5113 if ac_fn_c_try_compile "$LINENO"; then :
5114 acx_cv_prog_cc_pedantic__Wlong_long=yes
5115 else
5116 acx_cv_prog_cc_pedantic__Wlong_long=no
5117 fi
5118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5119 CFLAGS="$save_CFLAGS"
5120 fi
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5
5122 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; }
5123 if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then :
5124 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
5125 fi
5126
5127 fi
5128 ac_ext=c
5129 ac_cpp='$CPP $CPPFLAGS'
5130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5133
5134
5135
5136 # Disable exceptions and RTTI if building with g++
5137 ac_ext=c
5138 ac_cpp='$CPP $CPPFLAGS'
5139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5142
5143 noexception_flags=
5144 save_CFLAGS="$CFLAGS"
5145 for real_option in -fno-exceptions -fno-rtti; do
5146 # Do the check with the no- prefix removed since gcc silently
5147 # accepts any -Wno-* option on purpose
5148 case $real_option in
5149 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
5150 *) option=$real_option ;;
5151 esac
5152 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5153
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5155 $as_echo_n "checking whether $CC supports $option... " >&6; }
5156 if eval \${$as_acx_Woption+:} false; then :
5157 $as_echo_n "(cached) " >&6
5158 else
5159 CFLAGS="$option"
5160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161 /* end confdefs.h. */
5162
5163 int
5164 main ()
5165 {
5166
5167 ;
5168 return 0;
5169 }
5170 _ACEOF
5171 if ac_fn_c_try_compile "$LINENO"; then :
5172 eval "$as_acx_Woption=yes"
5173 else
5174 eval "$as_acx_Woption=no"
5175 fi
5176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5177
5178 fi
5179 eval ac_res=\$$as_acx_Woption
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5181 $as_echo "$ac_res" >&6; }
5182 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5183 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
5184 fi
5185 done
5186 CFLAGS="$save_CFLAGS"
5187 ac_ext=c
5188 ac_cpp='$CPP $CPPFLAGS'
5189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5192
5193
5194
5195 # Only enable with --enable-werror-always until existing warnings are
5196 # corrected.
5197 ac_ext=c
5198 ac_cpp='$CPP $CPPFLAGS'
5199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5202
5203 WERROR=
5204 # Check whether --enable-werror-always was given.
5205 if test "${enable_werror_always+set}" = set; then :
5206 enableval=$enable_werror_always;
5207 else
5208 enable_werror_always=no
5209 fi
5210
5211 if test $enable_werror_always = yes; then :
5212 WERROR="$WERROR${WERROR:+ }-Werror"
5213 fi
5214
5215 ac_ext=c
5216 ac_cpp='$CPP $CPPFLAGS'
5217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5220
5221
5222
5223 # Dependency checking.
5224 rm -rf .tst 2>/dev/null
5225 mkdir .tst 2>/dev/null
5226 if test -d .tst; then
5227 am__leading_dot=.
5228 else
5229 am__leading_dot=_
5230 fi
5231 rmdir .tst 2>/dev/null
5232
5233 DEPDIR="${am__leading_dot}deps"
5234
5235 ac_config_commands="$ac_config_commands depdir"
5236
5237
5238 ac_ext=cpp
5239 ac_cpp='$CXXCPP $CPPFLAGS'
5240 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5241 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5242 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5243
5244
5245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5246 /* end confdefs.h. */
5247 int i;
5248 _ACEOF
5249 if ac_fn_cxx_try_compile "$LINENO"; then :
5250
5251 else
5252 as_fn_error $? "C++ compiler missing or inoperational" "$LINENO" 5
5253 fi
5254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5255 ac_ext=c
5256 ac_cpp='$CPP $CPPFLAGS'
5257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5260
5261 depcc="$CXX" am_compiler_list=
5262
5263 am_depcomp=$ac_aux_dir/depcomp
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5265 $as_echo_n "checking dependency style of $depcc... " >&6; }
5266 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5267 $as_echo_n "(cached) " >&6
5268 else
5269 if test -f "$am_depcomp"; then
5270 # We make a subdir and do the tests there. Otherwise we can end up
5271 # making bogus files that we don't know about and never remove. For
5272 # instance it was reported that on HP-UX the gcc test will end up
5273 # making a dummy file named `D' -- because `-MD' means `put the output
5274 # in D'.
5275 mkdir conftest.dir
5276 # Copy depcomp to subdir because otherwise we won't find it if we're
5277 # using a relative directory.
5278 cp "$am_depcomp" conftest.dir
5279 cd conftest.dir
5280 # We will build objects and dependencies in a subdirectory because
5281 # it helps to detect inapplicable dependency modes. For instance
5282 # both Tru64's cc and ICC support -MD to output dependencies as a
5283 # side effect of compilation, but ICC will put the dependencies in
5284 # the current directory while Tru64 will put them in the object
5285 # directory.
5286 mkdir sub
5287
5288 am_cv_CXX_dependencies_compiler_type=none
5289 if test "$am_compiler_list" = ""; then
5290 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5291 fi
5292 for depmode in $am_compiler_list; do
5293 if test $depmode = none; then break; fi
5294
5295 $as_echo "$as_me:$LINENO: trying $depmode" >&5
5296 # Setup a source with many dependencies, because some compilers
5297 # like to wrap large dependency lists on column 80 (with \), and
5298 # we should not choose a depcomp mode which is confused by this.
5299 #
5300 # We need to recreate these files for each test, as the compiler may
5301 # overwrite some of them when testing with obscure command lines.
5302 # This happens at least with the AIX C compiler.
5303 : > sub/conftest.c
5304 for i in 1 2 3 4 5 6; do
5305 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5306 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5307 # Solaris 8's {/usr,}/bin/sh.
5308 touch sub/conftst$i.h
5309 done
5310 echo "include sub/conftest.Po" > confmf
5311
5312 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5313 # mode. It turns out that the SunPro C++ compiler does not properly
5314 # handle `-M -o', and we need to detect this.
5315 depcmd="depmode=$depmode \
5316 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5317 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5318 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
5319 echo "| $depcmd" | sed -e 's/ */ /g' >&5
5320 if env $depcmd > conftest.err 2>&1 &&
5321 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
5322 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
5323 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
5324 # icc doesn't choke on unknown options, it will just issue warnings
5325 # or remarks (even with -Werror). So we grep stderr for any message
5326 # that says an option was ignored or not supported.
5327 # When given -MP, icc 7.0 and 7.1 complain thusly:
5328 # icc: Command line warning: ignoring option '-M'; no argument required
5329 # The diagnosis changed in icc 8.0:
5330 # icc: Command line remark: option '-MP' not supported
5331 if (grep 'ignoring option' conftest.err ||
5332 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5333 am_cv_CXX_dependencies_compiler_type=$depmode
5334 $as_echo "$as_me:$LINENO: success" >&5
5335 break
5336 fi
5337 fi
5338 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
5339 sed -e 's/^/| /' < conftest.err >&5
5340 done
5341
5342 cd ..
5343 rm -rf conftest.dir
5344 else
5345 am_cv_CXX_dependencies_compiler_type=none
5346 fi
5347
5348 fi
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5350 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5351 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
5352 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
5353 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5354
5355 fi
5356
5357
5358 # Checks for header files.
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5360 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5361 if ${ac_cv_header_time+:} false; then :
5362 $as_echo_n "(cached) " >&6
5363 else
5364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5365 /* end confdefs.h. */
5366 #include <sys/types.h>
5367 #include <sys/time.h>
5368 #include <time.h>
5369
5370 int
5371 main ()
5372 {
5373 if ((struct tm *) 0)
5374 return 0;
5375 ;
5376 return 0;
5377 }
5378 _ACEOF
5379 if ac_fn_c_try_compile "$LINENO"; then :
5380 ac_cv_header_time=yes
5381 else
5382 ac_cv_header_time=no
5383 fi
5384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5385 fi
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5387 $as_echo "$ac_cv_header_time" >&6; }
5388 if test $ac_cv_header_time = yes; then
5389
5390 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5391
5392 fi
5393
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
5395 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
5396 if ${gcc_cv_header_string+:} false; then :
5397 $as_echo_n "(cached) " >&6
5398 else
5399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5400 /* end confdefs.h. */
5401 #include <string.h>
5402 #include <strings.h>
5403 int
5404 main ()
5405 {
5406
5407 ;
5408 return 0;
5409 }
5410 _ACEOF
5411 if ac_fn_c_try_compile "$LINENO"; then :
5412 gcc_cv_header_string=yes
5413 else
5414 gcc_cv_header_string=no
5415 fi
5416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5417 fi
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
5419 $as_echo "$gcc_cv_header_string" >&6; }
5420 if test $gcc_cv_header_string = yes; then
5421
5422 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
5423
5424 fi
5425
5426
5427 for ac_header in locale.h fcntl.h limits.h stddef.h \
5428 stdlib.h strings.h string.h sys/file.h unistd.h
5429 do :
5430 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5431 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5432 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5433 cat >>confdefs.h <<_ACEOF
5434 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5435 _ACEOF
5436
5437 fi
5438
5439 done
5440
5441
5442 # Checks for typedefs, structures, and compiler characteristics.
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5444 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5445 if ${ac_cv_c_bigendian+:} false; then :
5446 $as_echo_n "(cached) " >&6
5447 else
5448 ac_cv_c_bigendian=unknown
5449 # See if we're dealing with a universal compiler.
5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h. */
5452 #ifndef __APPLE_CC__
5453 not a universal capable compiler
5454 #endif
5455 typedef int dummy;
5456
5457 _ACEOF
5458 if ac_fn_c_try_compile "$LINENO"; then :
5459
5460 # Check for potential -arch flags. It is not universal unless
5461 # there are at least two -arch flags with different values.
5462 ac_arch=
5463 ac_prev=
5464 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5465 if test -n "$ac_prev"; then
5466 case $ac_word in
5467 i?86 | x86_64 | ppc | ppc64)
5468 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5469 ac_arch=$ac_word
5470 else
5471 ac_cv_c_bigendian=universal
5472 break
5473 fi
5474 ;;
5475 esac
5476 ac_prev=
5477 elif test "x$ac_word" = "x-arch"; then
5478 ac_prev=arch
5479 fi
5480 done
5481 fi
5482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5483 if test $ac_cv_c_bigendian = unknown; then
5484 # See if sys/param.h defines the BYTE_ORDER macro.
5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486 /* end confdefs.h. */
5487 #include <sys/types.h>
5488 #include <sys/param.h>
5489
5490 int
5491 main ()
5492 {
5493 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5494 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5495 && LITTLE_ENDIAN)
5496 bogus endian macros
5497 #endif
5498
5499 ;
5500 return 0;
5501 }
5502 _ACEOF
5503 if ac_fn_c_try_compile "$LINENO"; then :
5504 # It does; now see whether it defined to BIG_ENDIAN or not.
5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5506 /* end confdefs.h. */
5507 #include <sys/types.h>
5508 #include <sys/param.h>
5509
5510 int
5511 main ()
5512 {
5513 #if BYTE_ORDER != BIG_ENDIAN
5514 not big endian
5515 #endif
5516
5517 ;
5518 return 0;
5519 }
5520 _ACEOF
5521 if ac_fn_c_try_compile "$LINENO"; then :
5522 ac_cv_c_bigendian=yes
5523 else
5524 ac_cv_c_bigendian=no
5525 fi
5526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5527 fi
5528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5529 fi
5530 if test $ac_cv_c_bigendian = unknown; then
5531 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5533 /* end confdefs.h. */
5534 #include <limits.h>
5535
5536 int
5537 main ()
5538 {
5539 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5540 bogus endian macros
5541 #endif
5542
5543 ;
5544 return 0;
5545 }
5546 _ACEOF
5547 if ac_fn_c_try_compile "$LINENO"; then :
5548 # It does; now see whether it defined to _BIG_ENDIAN or not.
5549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5550 /* end confdefs.h. */
5551 #include <limits.h>
5552
5553 int
5554 main ()
5555 {
5556 #ifndef _BIG_ENDIAN
5557 not big endian
5558 #endif
5559
5560 ;
5561 return 0;
5562 }
5563 _ACEOF
5564 if ac_fn_c_try_compile "$LINENO"; then :
5565 ac_cv_c_bigendian=yes
5566 else
5567 ac_cv_c_bigendian=no
5568 fi
5569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5570 fi
5571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5572 fi
5573 if test $ac_cv_c_bigendian = unknown; then
5574 # Compile a test program.
5575 if test "$cross_compiling" = yes; then :
5576 # Try to guess by grepping values from an object file.
5577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578 /* end confdefs.h. */
5579 short int ascii_mm[] =
5580 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5581 short int ascii_ii[] =
5582 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5583 int use_ascii (int i) {
5584 return ascii_mm[i] + ascii_ii[i];
5585 }
5586 short int ebcdic_ii[] =
5587 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5588 short int ebcdic_mm[] =
5589 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5590 int use_ebcdic (int i) {
5591 return ebcdic_mm[i] + ebcdic_ii[i];
5592 }
5593 extern int foo;
5594
5595 int
5596 main ()
5597 {
5598 return use_ascii (foo) == use_ebcdic (foo);
5599 ;
5600 return 0;
5601 }
5602 _ACEOF
5603 if ac_fn_c_try_compile "$LINENO"; then :
5604 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5605 ac_cv_c_bigendian=yes
5606 fi
5607 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5608 if test "$ac_cv_c_bigendian" = unknown; then
5609 ac_cv_c_bigendian=no
5610 else
5611 # finding both strings is unlikely to happen, but who knows?
5612 ac_cv_c_bigendian=unknown
5613 fi
5614 fi
5615 fi
5616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5617 else
5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5619 /* end confdefs.h. */
5620 $ac_includes_default
5621 int
5622 main ()
5623 {
5624
5625 /* Are we little or big endian? From Harbison&Steele. */
5626 union
5627 {
5628 long int l;
5629 char c[sizeof (long int)];
5630 } u;
5631 u.l = 1;
5632 return u.c[sizeof (long int) - 1] == 1;
5633
5634 ;
5635 return 0;
5636 }
5637 _ACEOF
5638 if ac_fn_c_try_run "$LINENO"; then :
5639 ac_cv_c_bigendian=no
5640 else
5641 ac_cv_c_bigendian=yes
5642 fi
5643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5644 conftest.$ac_objext conftest.beam conftest.$ac_ext
5645 fi
5646
5647 fi
5648 fi
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5650 $as_echo "$ac_cv_c_bigendian" >&6; }
5651 case $ac_cv_c_bigendian in #(
5652 yes)
5653 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5654 ;; #(
5655 no)
5656 ;; #(
5657 universal)
5658
5659 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5660
5661 ;; #(
5662 *)
5663 as_fn_error $? "unknown endianness
5664 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5665 esac
5666
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5668 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5669 if ${ac_cv_c_const+:} false; then :
5670 $as_echo_n "(cached) " >&6
5671 else
5672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5673 /* end confdefs.h. */
5674
5675 int
5676 main ()
5677 {
5678
5679 #ifndef __cplusplus
5680 /* Ultrix mips cc rejects this sort of thing. */
5681 typedef int charset[2];
5682 const charset cs = { 0, 0 };
5683 /* SunOS 4.1.1 cc rejects this. */
5684 char const *const *pcpcc;
5685 char **ppc;
5686 /* NEC SVR4.0.2 mips cc rejects this. */
5687 struct point {int x, y;};
5688 static struct point const zero = {0,0};
5689 /* AIX XL C 1.02.0.0 rejects this.
5690 It does not let you subtract one const X* pointer from another in
5691 an arm of an if-expression whose if-part is not a constant
5692 expression */
5693 const char *g = "string";
5694 pcpcc = &g + (g ? g-g : 0);
5695 /* HPUX 7.0 cc rejects these. */
5696 ++pcpcc;
5697 ppc = (char**) pcpcc;
5698 pcpcc = (char const *const *) ppc;
5699 { /* SCO 3.2v4 cc rejects this sort of thing. */
5700 char tx;
5701 char *t = &tx;
5702 char const *s = 0 ? (char *) 0 : (char const *) 0;
5703
5704 *t++ = 0;
5705 if (s) return 0;
5706 }
5707 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5708 int x[] = {25, 17};
5709 const int *foo = &x[0];
5710 ++foo;
5711 }
5712 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5713 typedef const int *iptr;
5714 iptr p = 0;
5715 ++p;
5716 }
5717 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5718 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5719 struct s { int j; const int *ap[3]; } bx;
5720 struct s *b = &bx; b->j = 5;
5721 }
5722 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5723 const int foo = 10;
5724 if (!foo) return 0;
5725 }
5726 return !cs[0] && !zero.x;
5727 #endif
5728
5729 ;
5730 return 0;
5731 }
5732 _ACEOF
5733 if ac_fn_c_try_compile "$LINENO"; then :
5734 ac_cv_c_const=yes
5735 else
5736 ac_cv_c_const=no
5737 fi
5738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5739 fi
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5741 $as_echo "$ac_cv_c_const" >&6; }
5742 if test $ac_cv_c_const = no; then
5743
5744 $as_echo "#define const /**/" >>confdefs.h
5745
5746 fi
5747
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5749 $as_echo_n "checking for inline... " >&6; }
5750 if ${ac_cv_c_inline+:} false; then :
5751 $as_echo_n "(cached) " >&6
5752 else
5753 ac_cv_c_inline=no
5754 for ac_kw in inline __inline__ __inline; do
5755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756 /* end confdefs.h. */
5757 #ifndef __cplusplus
5758 typedef int foo_t;
5759 static $ac_kw foo_t static_foo () {return 0; }
5760 $ac_kw foo_t foo () {return 0; }
5761 #endif
5762
5763 _ACEOF
5764 if ac_fn_c_try_compile "$LINENO"; then :
5765 ac_cv_c_inline=$ac_kw
5766 fi
5767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5768 test "$ac_cv_c_inline" != no && break
5769 done
5770
5771 fi
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5773 $as_echo "$ac_cv_c_inline" >&6; }
5774
5775 case $ac_cv_c_inline in
5776 inline | yes) ;;
5777 *)
5778 case $ac_cv_c_inline in
5779 no) ac_val=;;
5780 *) ac_val=$ac_cv_c_inline;;
5781 esac
5782 cat >>confdefs.h <<_ACEOF
5783 #ifndef __cplusplus
5784 #define inline $ac_val
5785 #endif
5786 _ACEOF
5787 ;;
5788 esac
5789
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obstacks" >&5
5791 $as_echo_n "checking for obstacks... " >&6; }
5792 if ${ac_cv_func_obstack+:} false; then :
5793 $as_echo_n "(cached) " >&6
5794 else
5795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5796 /* end confdefs.h. */
5797 $ac_includes_default
5798 #include "obstack.h"
5799 int
5800 main ()
5801 {
5802 struct obstack mem;
5803 #define obstack_chunk_alloc malloc
5804 #define obstack_chunk_free free
5805 obstack_init (&mem);
5806 obstack_free (&mem, 0);
5807 ;
5808 return 0;
5809 }
5810 _ACEOF
5811 if ac_fn_c_try_link "$LINENO"; then :
5812 ac_cv_func_obstack=yes
5813 else
5814 ac_cv_func_obstack=no
5815 fi
5816 rm -f core conftest.err conftest.$ac_objext \
5817 conftest$ac_exeext conftest.$ac_ext
5818 fi
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_obstack" >&5
5820 $as_echo "$ac_cv_func_obstack" >&6; }
5821 if test $ac_cv_func_obstack = yes; then
5822
5823 $as_echo "#define HAVE_OBSTACK 1" >>confdefs.h
5824
5825 else
5826 case " $LIBOBJS " in
5827 *" obstack.$ac_objext "* ) ;;
5828 *) LIBOBJS="$LIBOBJS obstack.$ac_objext"
5829 ;;
5830 esac
5831
5832 fi
5833
5834 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5835 if test "x$ac_cv_type_off_t" = xyes; then :
5836
5837 else
5838
5839 cat >>confdefs.h <<_ACEOF
5840 #define off_t long int
5841 _ACEOF
5842
5843 fi
5844
5845 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5846 if test "x$ac_cv_type_size_t" = xyes; then :
5847
5848 else
5849
5850 cat >>confdefs.h <<_ACEOF
5851 #define size_t unsigned int
5852 _ACEOF
5853
5854 fi
5855
5856 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5857 if test "x$ac_cv_type_ssize_t" = xyes; then :
5858
5859 else
5860
5861 cat >>confdefs.h <<_ACEOF
5862 #define ssize_t int
5863 _ACEOF
5864
5865 fi
5866
5867
5868 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
5869 if test "x$ac_cv_type_uintptr_t" = xyes; then :
5870
5871 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
5872
5873 else
5874 for ac_type in 'unsigned int' 'unsigned long int' \
5875 'unsigned long long int'; do
5876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5877 /* end confdefs.h. */
5878 $ac_includes_default
5879 int
5880 main ()
5881 {
5882 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5883 test_array [0] = 0;
5884 return test_array [0];
5885
5886 ;
5887 return 0;
5888 }
5889 _ACEOF
5890 if ac_fn_c_try_compile "$LINENO"; then :
5891
5892 cat >>confdefs.h <<_ACEOF
5893 #define uintptr_t $ac_type
5894 _ACEOF
5895
5896 ac_type=
5897 fi
5898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5899 test -z "$ac_type" && break
5900 done
5901 fi
5902
5903
5904 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
5905 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
5906
5907 else
5908
5909 cat >>confdefs.h <<_ACEOF
5910 #define ptrdiff_t int
5911 _ACEOF
5912
5913 fi
5914
5915 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5916 case $ac_cv_c_uint64_t in #(
5917 no|yes) ;; #(
5918 *)
5919
5920 $as_echo "#define _UINT64_T 1" >>confdefs.h
5921
5922
5923 cat >>confdefs.h <<_ACEOF
5924 #define uint64_t $ac_cv_c_uint64_t
5925 _ACEOF
5926 ;;
5927 esac
5928
5929 if test x"$ac_cv_c_uint64_t" = x"no"; then
5930 as_fn_error $? "uint64_t not found" "$LINENO" 5
5931 fi
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5933 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5934 if ${ac_cv_struct_tm+:} false; then :
5935 $as_echo_n "(cached) " >&6
5936 else
5937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5938 /* end confdefs.h. */
5939 #include <sys/types.h>
5940 #include <time.h>
5941
5942 int
5943 main ()
5944 {
5945 struct tm tm;
5946 int *p = &tm.tm_sec;
5947 return !p;
5948 ;
5949 return 0;
5950 }
5951 _ACEOF
5952 if ac_fn_c_try_compile "$LINENO"; then :
5953 ac_cv_struct_tm=time.h
5954 else
5955 ac_cv_struct_tm=sys/time.h
5956 fi
5957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5958 fi
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5960 $as_echo "$ac_cv_struct_tm" >&6; }
5961 if test $ac_cv_struct_tm = sys/time.h; then
5962
5963 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5964
5965 fi
5966
5967 # The cast to long int works around a bug in the HP C Compiler
5968 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5969 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5970 # This bug is HP SR number 8606223364.
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5972 $as_echo_n "checking size of int... " >&6; }
5973 if ${ac_cv_sizeof_int+:} false; then :
5974 $as_echo_n "(cached) " >&6
5975 else
5976 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5977
5978 else
5979 if test "$ac_cv_type_int" = yes; then
5980 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5982 as_fn_error 77 "cannot compute sizeof (int)
5983 See \`config.log' for more details" "$LINENO" 5; }
5984 else
5985 ac_cv_sizeof_int=0
5986 fi
5987 fi
5988
5989 fi
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5991 $as_echo "$ac_cv_sizeof_int" >&6; }
5992
5993
5994
5995 cat >>confdefs.h <<_ACEOF
5996 #define SIZEOF_INT $ac_cv_sizeof_int
5997 _ACEOF
5998
5999
6000 # The cast to long int works around a bug in the HP C Compiler
6001 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6002 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6003 # This bug is HP SR number 8606223364.
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6005 $as_echo_n "checking size of long... " >&6; }
6006 if ${ac_cv_sizeof_long+:} false; then :
6007 $as_echo_n "(cached) " >&6
6008 else
6009 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6010
6011 else
6012 if test "$ac_cv_type_long" = yes; then
6013 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6015 as_fn_error 77 "cannot compute sizeof (long)
6016 See \`config.log' for more details" "$LINENO" 5; }
6017 else
6018 ac_cv_sizeof_long=0
6019 fi
6020 fi
6021
6022 fi
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6024 $as_echo "$ac_cv_sizeof_long" >&6; }
6025
6026
6027
6028 cat >>confdefs.h <<_ACEOF
6029 #define SIZEOF_LONG $ac_cv_sizeof_long
6030 _ACEOF
6031
6032
6033
6034 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
6035 do :
6036 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6037 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6038 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6039 cat >>confdefs.h <<_ACEOF
6040 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6041 _ACEOF
6042
6043 fi
6044 done
6045
6046 ac_fn_c_check_decl "$LINENO" "abort" "ac_cv_have_decl_abort" "$ac_includes_default"
6047 if test "x$ac_cv_have_decl_abort" = xyes; then :
6048 ac_have_decl=1
6049 else
6050 ac_have_decl=0
6051 fi
6052
6053 cat >>confdefs.h <<_ACEOF
6054 #define HAVE_DECL_ABORT $ac_have_decl
6055 _ACEOF
6056 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
6057 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
6058 ac_have_decl=1
6059 else
6060 ac_have_decl=0
6061 fi
6062
6063 cat >>confdefs.h <<_ACEOF
6064 #define HAVE_DECL_ASPRINTF $ac_have_decl
6065 _ACEOF
6066 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
6067 ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
6068 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
6069 ac_have_decl=1
6070 else
6071 ac_have_decl=0
6072 fi
6073
6074 cat >>confdefs.h <<_ACEOF
6075 #define HAVE_DECL_BASENAME $ac_have_decl
6076 _ACEOF
6077 ac_fn_c_check_decl "$LINENO" "errno" "ac_cv_have_decl_errno" "$ac_includes_default"
6078 if test "x$ac_cv_have_decl_errno" = xyes; then :
6079 ac_have_decl=1
6080 else
6081 ac_have_decl=0
6082 fi
6083
6084 cat >>confdefs.h <<_ACEOF
6085 #define HAVE_DECL_ERRNO $ac_have_decl
6086 _ACEOF
6087 ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
6088 if test "x$ac_cv_have_decl_getopt" = xyes; then :
6089 ac_have_decl=1
6090 else
6091 ac_have_decl=0
6092 fi
6093
6094 cat >>confdefs.h <<_ACEOF
6095 #define HAVE_DECL_GETOPT $ac_have_decl
6096 _ACEOF
6097 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
6098 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
6099 ac_have_decl=1
6100 else
6101 ac_have_decl=0
6102 fi
6103
6104 cat >>confdefs.h <<_ACEOF
6105 #define HAVE_DECL_VASPRINTF $ac_have_decl
6106 _ACEOF
6107
6108 ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
6109 if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes; then :
6110 ac_have_decl=1
6111 else
6112 ac_have_decl=0
6113 fi
6114
6115 cat >>confdefs.h <<_ACEOF
6116 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
6117 _ACEOF
6118 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
6119 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
6120 ac_have_decl=1
6121 else
6122 ac_have_decl=0
6123 fi
6124
6125 cat >>confdefs.h <<_ACEOF
6126 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
6127 _ACEOF
6128 ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
6129 if test "x$ac_cv_have_decl_ferror_unlocked" = xyes; then :
6130 ac_have_decl=1
6131 else
6132 ac_have_decl=0
6133 fi
6134
6135 cat >>confdefs.h <<_ACEOF
6136 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
6137 _ACEOF
6138 ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
6139 if test "x$ac_cv_have_decl_fflush_unlocked" = xyes; then :
6140 ac_have_decl=1
6141 else
6142 ac_have_decl=0
6143 fi
6144
6145 cat >>confdefs.h <<_ACEOF
6146 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
6147 _ACEOF
6148 ac_fn_c_check_decl "$LINENO" "fgetc_unlocked" "ac_cv_have_decl_fgetc_unlocked" "$ac_includes_default"
6149 if test "x$ac_cv_have_decl_fgetc_unlocked" = xyes; then :
6150 ac_have_decl=1
6151 else
6152 ac_have_decl=0
6153 fi
6154
6155 cat >>confdefs.h <<_ACEOF
6156 #define HAVE_DECL_FGETC_UNLOCKED $ac_have_decl
6157 _ACEOF
6158 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
6159 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
6160 ac_have_decl=1
6161 else
6162 ac_have_decl=0
6163 fi
6164
6165 cat >>confdefs.h <<_ACEOF
6166 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
6167 _ACEOF
6168 ac_fn_c_check_decl "$LINENO" "fileno_unlocked" "ac_cv_have_decl_fileno_unlocked" "$ac_includes_default"
6169 if test "x$ac_cv_have_decl_fileno_unlocked" = xyes; then :
6170 ac_have_decl=1
6171 else
6172 ac_have_decl=0
6173 fi
6174
6175 cat >>confdefs.h <<_ACEOF
6176 #define HAVE_DECL_FILENO_UNLOCKED $ac_have_decl
6177 _ACEOF
6178 ac_fn_c_check_decl "$LINENO" "fprintf_unlocked" "ac_cv_have_decl_fprintf_unlocked" "$ac_includes_default"
6179 if test "x$ac_cv_have_decl_fprintf_unlocked" = xyes; then :
6180 ac_have_decl=1
6181 else
6182 ac_have_decl=0
6183 fi
6184
6185 cat >>confdefs.h <<_ACEOF
6186 #define HAVE_DECL_FPRINTF_UNLOCKED $ac_have_decl
6187 _ACEOF
6188 ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
6189 if test "x$ac_cv_have_decl_fputc_unlocked" = xyes; then :
6190 ac_have_decl=1
6191 else
6192 ac_have_decl=0
6193 fi
6194
6195 cat >>confdefs.h <<_ACEOF
6196 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
6197 _ACEOF
6198 ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
6199 if test "x$ac_cv_have_decl_fputs_unlocked" = xyes; then :
6200 ac_have_decl=1
6201 else
6202 ac_have_decl=0
6203 fi
6204
6205 cat >>confdefs.h <<_ACEOF
6206 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
6207 _ACEOF
6208 ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
6209 if test "x$ac_cv_have_decl_fread_unlocked" = xyes; then :
6210 ac_have_decl=1
6211 else
6212 ac_have_decl=0
6213 fi
6214
6215 cat >>confdefs.h <<_ACEOF
6216 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
6217 _ACEOF
6218 ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
6219 if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes; then :
6220 ac_have_decl=1
6221 else
6222 ac_have_decl=0
6223 fi
6224
6225 cat >>confdefs.h <<_ACEOF
6226 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
6227 _ACEOF
6228 ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
6229 if test "x$ac_cv_have_decl_getchar_unlocked" = xyes; then :
6230 ac_have_decl=1
6231 else
6232 ac_have_decl=0
6233 fi
6234
6235 cat >>confdefs.h <<_ACEOF
6236 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
6237 _ACEOF
6238 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
6239 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
6240 ac_have_decl=1
6241 else
6242 ac_have_decl=0
6243 fi
6244
6245 cat >>confdefs.h <<_ACEOF
6246 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
6247 _ACEOF
6248 ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
6249 if test "x$ac_cv_have_decl_putchar_unlocked" = xyes; then :
6250 ac_have_decl=1
6251 else
6252 ac_have_decl=0
6253 fi
6254
6255 cat >>confdefs.h <<_ACEOF
6256 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
6257 _ACEOF
6258 ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
6259 if test "x$ac_cv_have_decl_putc_unlocked" = xyes; then :
6260 ac_have_decl=1
6261 else
6262 ac_have_decl=0
6263 fi
6264
6265 cat >>confdefs.h <<_ACEOF
6266 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
6267 _ACEOF
6268
6269
6270 # Checks for library functions.
6271 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6272 # for constant arguments. Useless!
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6274 $as_echo_n "checking for working alloca.h... " >&6; }
6275 if ${ac_cv_working_alloca_h+:} false; then :
6276 $as_echo_n "(cached) " >&6
6277 else
6278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6279 /* end confdefs.h. */
6280 #include <alloca.h>
6281 int
6282 main ()
6283 {
6284 char *p = (char *) alloca (2 * sizeof (int));
6285 if (p) return 0;
6286 ;
6287 return 0;
6288 }
6289 _ACEOF
6290 if ac_fn_c_try_link "$LINENO"; then :
6291 ac_cv_working_alloca_h=yes
6292 else
6293 ac_cv_working_alloca_h=no
6294 fi
6295 rm -f core conftest.err conftest.$ac_objext \
6296 conftest$ac_exeext conftest.$ac_ext
6297 fi
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6299 $as_echo "$ac_cv_working_alloca_h" >&6; }
6300 if test $ac_cv_working_alloca_h = yes; then
6301
6302 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6303
6304 fi
6305
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6307 $as_echo_n "checking for alloca... " >&6; }
6308 if ${ac_cv_func_alloca_works+:} false; then :
6309 $as_echo_n "(cached) " >&6
6310 else
6311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6312 /* end confdefs.h. */
6313 #ifdef __GNUC__
6314 # define alloca __builtin_alloca
6315 #else
6316 # ifdef _MSC_VER
6317 # include <malloc.h>
6318 # define alloca _alloca
6319 # else
6320 # ifdef HAVE_ALLOCA_H
6321 # include <alloca.h>
6322 # else
6323 # ifdef _AIX
6324 #pragma alloca
6325 # else
6326 # ifndef alloca /* predefined by HP cc +Olibcalls */
6327 void *alloca (size_t);
6328 # endif
6329 # endif
6330 # endif
6331 # endif
6332 #endif
6333
6334 int
6335 main ()
6336 {
6337 char *p = (char *) alloca (1);
6338 if (p) return 0;
6339 ;
6340 return 0;
6341 }
6342 _ACEOF
6343 if ac_fn_c_try_link "$LINENO"; then :
6344 ac_cv_func_alloca_works=yes
6345 else
6346 ac_cv_func_alloca_works=no
6347 fi
6348 rm -f core conftest.err conftest.$ac_objext \
6349 conftest$ac_exeext conftest.$ac_ext
6350 fi
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6352 $as_echo "$ac_cv_func_alloca_works" >&6; }
6353
6354 if test $ac_cv_func_alloca_works = yes; then
6355
6356 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6357
6358 else
6359 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6360 # that cause trouble. Some versions do not even contain alloca or
6361 # contain a buggy version. If you still want to use their alloca,
6362 # use ar to extract alloca.o from them instead of compiling alloca.c.
6363
6364 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6365
6366 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6367
6368
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6370 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6371 if ${ac_cv_os_cray+:} false; then :
6372 $as_echo_n "(cached) " >&6
6373 else
6374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6375 /* end confdefs.h. */
6376 #if defined CRAY && ! defined CRAY2
6377 webecray
6378 #else
6379 wenotbecray
6380 #endif
6381
6382 _ACEOF
6383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6384 $EGREP "webecray" >/dev/null 2>&1; then :
6385 ac_cv_os_cray=yes
6386 else
6387 ac_cv_os_cray=no
6388 fi
6389 rm -f conftest*
6390
6391 fi
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6393 $as_echo "$ac_cv_os_cray" >&6; }
6394 if test $ac_cv_os_cray = yes; then
6395 for ac_func in _getb67 GETB67 getb67; do
6396 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6397 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6398 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6399
6400 cat >>confdefs.h <<_ACEOF
6401 #define CRAY_STACKSEG_END $ac_func
6402 _ACEOF
6403
6404 break
6405 fi
6406
6407 done
6408 fi
6409
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6411 $as_echo_n "checking stack direction for C alloca... " >&6; }
6412 if ${ac_cv_c_stack_direction+:} false; then :
6413 $as_echo_n "(cached) " >&6
6414 else
6415 if test "$cross_compiling" = yes; then :
6416 ac_cv_c_stack_direction=0
6417 else
6418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6419 /* end confdefs.h. */
6420 $ac_includes_default
6421 int
6422 find_stack_direction (int *addr, int depth)
6423 {
6424 int dir, dummy = 0;
6425 if (! addr)
6426 addr = &dummy;
6427 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6428 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6429 return dir + dummy;
6430 }
6431
6432 int
6433 main (int argc, char **argv)
6434 {
6435 return find_stack_direction (0, argc + !argv + 20) < 0;
6436 }
6437 _ACEOF
6438 if ac_fn_c_try_run "$LINENO"; then :
6439 ac_cv_c_stack_direction=1
6440 else
6441 ac_cv_c_stack_direction=-1
6442 fi
6443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6444 conftest.$ac_objext conftest.beam conftest.$ac_ext
6445 fi
6446
6447 fi
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6449 $as_echo "$ac_cv_c_stack_direction" >&6; }
6450 cat >>confdefs.h <<_ACEOF
6451 #define STACK_DIRECTION $ac_cv_c_stack_direction
6452 _ACEOF
6453
6454
6455 fi
6456
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6458 $as_echo_n "checking for ANSI C header files... " >&6; }
6459 if ${ac_cv_header_stdc+:} false; then :
6460 $as_echo_n "(cached) " >&6
6461 else
6462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463 /* end confdefs.h. */
6464 #include <stdlib.h>
6465 #include <stdarg.h>
6466 #include <string.h>
6467 #include <float.h>
6468
6469 int
6470 main ()
6471 {
6472
6473 ;
6474 return 0;
6475 }
6476 _ACEOF
6477 if ac_fn_c_try_compile "$LINENO"; then :
6478 ac_cv_header_stdc=yes
6479 else
6480 ac_cv_header_stdc=no
6481 fi
6482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6483
6484 if test $ac_cv_header_stdc = yes; then
6485 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6487 /* end confdefs.h. */
6488 #include <string.h>
6489
6490 _ACEOF
6491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6492 $EGREP "memchr" >/dev/null 2>&1; then :
6493
6494 else
6495 ac_cv_header_stdc=no
6496 fi
6497 rm -f conftest*
6498
6499 fi
6500
6501 if test $ac_cv_header_stdc = yes; then
6502 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6504 /* end confdefs.h. */
6505 #include <stdlib.h>
6506
6507 _ACEOF
6508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6509 $EGREP "free" >/dev/null 2>&1; then :
6510
6511 else
6512 ac_cv_header_stdc=no
6513 fi
6514 rm -f conftest*
6515
6516 fi
6517
6518 if test $ac_cv_header_stdc = yes; then
6519 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6520 if test "$cross_compiling" = yes; then :
6521 :
6522 else
6523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6524 /* end confdefs.h. */
6525 #include <ctype.h>
6526 #include <stdlib.h>
6527 #if ((' ' & 0x0FF) == 0x020)
6528 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6529 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6530 #else
6531 # define ISLOWER(c) \
6532 (('a' <= (c) && (c) <= 'i') \
6533 || ('j' <= (c) && (c) <= 'r') \
6534 || ('s' <= (c) && (c) <= 'z'))
6535 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6536 #endif
6537
6538 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6539 int
6540 main ()
6541 {
6542 int i;
6543 for (i = 0; i < 256; i++)
6544 if (XOR (islower (i), ISLOWER (i))
6545 || toupper (i) != TOUPPER (i))
6546 return 2;
6547 return 0;
6548 }
6549 _ACEOF
6550 if ac_fn_c_try_run "$LINENO"; then :
6551
6552 else
6553 ac_cv_header_stdc=no
6554 fi
6555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6556 conftest.$ac_objext conftest.beam conftest.$ac_ext
6557 fi
6558
6559 fi
6560 fi
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6562 $as_echo "$ac_cv_header_stdc" >&6; }
6563 if test $ac_cv_header_stdc = yes; then
6564
6565 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6566
6567 fi
6568
6569
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6571 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6572 if ${am_cv_langinfo_codeset+:} false; then :
6573 $as_echo_n "(cached) " >&6
6574 else
6575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6576 /* end confdefs.h. */
6577 #include <langinfo.h>
6578 int
6579 main ()
6580 {
6581 char* cs = nl_langinfo(CODESET);
6582 ;
6583 return 0;
6584 }
6585 _ACEOF
6586 if ac_fn_c_try_link "$LINENO"; then :
6587 am_cv_langinfo_codeset=yes
6588 else
6589 am_cv_langinfo_codeset=no
6590 fi
6591 rm -f core conftest.err conftest.$ac_objext \
6592 conftest$ac_exeext conftest.$ac_ext
6593
6594 fi
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6596 $as_echo "$am_cv_langinfo_codeset" >&6; }
6597 if test $am_cv_langinfo_codeset = yes; then
6598
6599 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6600
6601 fi
6602
6603
6604 MKINSTALLDIRS=
6605 if test -n "$ac_aux_dir"; then
6606 case "$ac_aux_dir" in
6607 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
6608 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
6609 esac
6610 fi
6611 if test -z "$MKINSTALLDIRS"; then
6612 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
6613 fi
6614
6615
6616
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6618 $as_echo_n "checking whether NLS is requested... " >&6; }
6619 # Check whether --enable-nls was given.
6620 if test "${enable_nls+set}" = set; then :
6621 enableval=$enable_nls; USE_NLS=$enableval
6622 else
6623 USE_NLS=yes
6624 fi
6625
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6627 $as_echo "$USE_NLS" >&6; }
6628
6629
6630
6631
6632
6633
6634 # Prepare PATH_SEPARATOR.
6635 # The user is always right.
6636 if test "${PATH_SEPARATOR+set}" != set; then
6637 echo "#! /bin/sh" >conf$$.sh
6638 echo "exit 0" >>conf$$.sh
6639 chmod +x conf$$.sh
6640 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6641 PATH_SEPARATOR=';'
6642 else
6643 PATH_SEPARATOR=:
6644 fi
6645 rm -f conf$$.sh
6646 fi
6647
6648 # Find out how to test for executable files. Don't use a zero-byte file,
6649 # as systems may use methods other than mode bits to determine executability.
6650 cat >conf$$.file <<_ASEOF
6651 #! /bin/sh
6652 exit 0
6653 _ASEOF
6654 chmod +x conf$$.file
6655 if test -x conf$$.file >/dev/null 2>&1; then
6656 ac_executable_p="test -x"
6657 else
6658 ac_executable_p="test -f"
6659 fi
6660 rm -f conf$$.file
6661
6662 # Extract the first word of "msgfmt", so it can be a program name with args.
6663 set dummy msgfmt; ac_word=$2
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6665 $as_echo_n "checking for $ac_word... " >&6; }
6666 if ${ac_cv_path_MSGFMT+:} false; then :
6667 $as_echo_n "(cached) " >&6
6668 else
6669 case "$MSGFMT" in
6670 [\\/]* | ?:[\\/]*)
6671 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6672 ;;
6673 *)
6674 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6675 for ac_dir in $PATH; do
6676 IFS="$ac_save_IFS"
6677 test -z "$ac_dir" && ac_dir=.
6678 for ac_exec_ext in '' $ac_executable_extensions; do
6679 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6680 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
6681 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6682 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6683 break 2
6684 fi
6685 fi
6686 done
6687 done
6688 IFS="$ac_save_IFS"
6689 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6690 ;;
6691 esac
6692 fi
6693 MSGFMT="$ac_cv_path_MSGFMT"
6694 if test "$MSGFMT" != ":"; then
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6696 $as_echo "$MSGFMT" >&6; }
6697 else
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6699 $as_echo "no" >&6; }
6700 fi
6701
6702 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6703 set dummy gmsgfmt; ac_word=$2
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6705 $as_echo_n "checking for $ac_word... " >&6; }
6706 if ${ac_cv_path_GMSGFMT+:} false; then :
6707 $as_echo_n "(cached) " >&6
6708 else
6709 case $GMSGFMT in
6710 [\\/]* | ?:[\\/]*)
6711 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6712 ;;
6713 *)
6714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715 for as_dir in $PATH
6716 do
6717 IFS=$as_save_IFS
6718 test -z "$as_dir" && as_dir=.
6719 for ac_exec_ext in '' $ac_executable_extensions; do
6720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6721 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6723 break 2
6724 fi
6725 done
6726 done
6727 IFS=$as_save_IFS
6728
6729 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6730 ;;
6731 esac
6732 fi
6733 GMSGFMT=$ac_cv_path_GMSGFMT
6734 if test -n "$GMSGFMT"; then
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6736 $as_echo "$GMSGFMT" >&6; }
6737 else
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6739 $as_echo "no" >&6; }
6740 fi
6741
6742
6743
6744
6745 # Prepare PATH_SEPARATOR.
6746 # The user is always right.
6747 if test "${PATH_SEPARATOR+set}" != set; then
6748 echo "#! /bin/sh" >conf$$.sh
6749 echo "exit 0" >>conf$$.sh
6750 chmod +x conf$$.sh
6751 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6752 PATH_SEPARATOR=';'
6753 else
6754 PATH_SEPARATOR=:
6755 fi
6756 rm -f conf$$.sh
6757 fi
6758
6759 # Find out how to test for executable files. Don't use a zero-byte file,
6760 # as systems may use methods other than mode bits to determine executability.
6761 cat >conf$$.file <<_ASEOF
6762 #! /bin/sh
6763 exit 0
6764 _ASEOF
6765 chmod +x conf$$.file
6766 if test -x conf$$.file >/dev/null 2>&1; then
6767 ac_executable_p="test -x"
6768 else
6769 ac_executable_p="test -f"
6770 fi
6771 rm -f conf$$.file
6772
6773 # Extract the first word of "xgettext", so it can be a program name with args.
6774 set dummy xgettext; ac_word=$2
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6776 $as_echo_n "checking for $ac_word... " >&6; }
6777 if ${ac_cv_path_XGETTEXT+:} false; then :
6778 $as_echo_n "(cached) " >&6
6779 else
6780 case "$XGETTEXT" in
6781 [\\/]* | ?:[\\/]*)
6782 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6783 ;;
6784 *)
6785 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6786 for ac_dir in $PATH; do
6787 IFS="$ac_save_IFS"
6788 test -z "$ac_dir" && ac_dir=.
6789 for ac_exec_ext in '' $ac_executable_extensions; do
6790 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6791 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6792 (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
6793 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6794 break 2
6795 fi
6796 fi
6797 done
6798 done
6799 IFS="$ac_save_IFS"
6800 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6801 ;;
6802 esac
6803 fi
6804 XGETTEXT="$ac_cv_path_XGETTEXT"
6805 if test "$XGETTEXT" != ":"; then
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6807 $as_echo "$XGETTEXT" >&6; }
6808 else
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6810 $as_echo "no" >&6; }
6811 fi
6812
6813 rm -f messages.po
6814
6815
6816 # Prepare PATH_SEPARATOR.
6817 # The user is always right.
6818 if test "${PATH_SEPARATOR+set}" != set; then
6819 echo "#! /bin/sh" >conf$$.sh
6820 echo "exit 0" >>conf$$.sh
6821 chmod +x conf$$.sh
6822 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6823 PATH_SEPARATOR=';'
6824 else
6825 PATH_SEPARATOR=:
6826 fi
6827 rm -f conf$$.sh
6828 fi
6829
6830 # Find out how to test for executable files. Don't use a zero-byte file,
6831 # as systems may use methods other than mode bits to determine executability.
6832 cat >conf$$.file <<_ASEOF
6833 #! /bin/sh
6834 exit 0
6835 _ASEOF
6836 chmod +x conf$$.file
6837 if test -x conf$$.file >/dev/null 2>&1; then
6838 ac_executable_p="test -x"
6839 else
6840 ac_executable_p="test -f"
6841 fi
6842 rm -f conf$$.file
6843
6844 # Extract the first word of "msgmerge", so it can be a program name with args.
6845 set dummy msgmerge; ac_word=$2
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6847 $as_echo_n "checking for $ac_word... " >&6; }
6848 if ${ac_cv_path_MSGMERGE+:} false; then :
6849 $as_echo_n "(cached) " >&6
6850 else
6851 case "$MSGMERGE" in
6852 [\\/]* | ?:[\\/]*)
6853 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6854 ;;
6855 *)
6856 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6857 for ac_dir in $PATH; do
6858 IFS="$ac_save_IFS"
6859 test -z "$ac_dir" && ac_dir=.
6860 for ac_exec_ext in '' $ac_executable_extensions; do
6861 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6862 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6863 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6864 break 2
6865 fi
6866 fi
6867 done
6868 done
6869 IFS="$ac_save_IFS"
6870 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6871 ;;
6872 esac
6873 fi
6874 MSGMERGE="$ac_cv_path_MSGMERGE"
6875 if test "$MSGMERGE" != ":"; then
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6877 $as_echo "$MSGMERGE" >&6; }
6878 else
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6880 $as_echo "no" >&6; }
6881 fi
6882
6883
6884 if test "$GMSGFMT" != ":"; then
6885 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6886 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6887 : ;
6888 else
6889 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6891 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6892 GMSGFMT=":"
6893 fi
6894 fi
6895
6896 if test "$XGETTEXT" != ":"; then
6897 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6898 (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
6899 : ;
6900 else
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6902 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6903 XGETTEXT=":"
6904 fi
6905 rm -f messages.po
6906 fi
6907
6908 ac_config_commands="$ac_config_commands default-1"
6909
6910
6911
6912 if test "X$prefix" = "XNONE"; then
6913 acl_final_prefix="$ac_default_prefix"
6914 else
6915 acl_final_prefix="$prefix"
6916 fi
6917 if test "X$exec_prefix" = "XNONE"; then
6918 acl_final_exec_prefix='${prefix}'
6919 else
6920 acl_final_exec_prefix="$exec_prefix"
6921 fi
6922 acl_save_prefix="$prefix"
6923 prefix="$acl_final_prefix"
6924 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6925 prefix="$acl_save_prefix"
6926
6927
6928 # Check whether --with-gnu-ld was given.
6929 if test "${with_gnu_ld+set}" = set; then :
6930 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6931 else
6932 with_gnu_ld=no
6933 fi
6934
6935 # Prepare PATH_SEPARATOR.
6936 # The user is always right.
6937 if test "${PATH_SEPARATOR+set}" != set; then
6938 echo "#! /bin/sh" >conf$$.sh
6939 echo "exit 0" >>conf$$.sh
6940 chmod +x conf$$.sh
6941 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6942 PATH_SEPARATOR=';'
6943 else
6944 PATH_SEPARATOR=:
6945 fi
6946 rm -f conf$$.sh
6947 fi
6948 ac_prog=ld
6949 if test "$GCC" = yes; then
6950 # Check if gcc -print-prog-name=ld gives a path.
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6952 $as_echo_n "checking for ld used by GCC... " >&6; }
6953 case $host in
6954 *-*-mingw*)
6955 # gcc leaves a trailing carriage return which upsets mingw
6956 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6957 *)
6958 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6959 esac
6960 case $ac_prog in
6961 # Accept absolute paths.
6962 [\\/]* | [A-Za-z]:[\\/]*)
6963 re_direlt='/[^/][^/]*/\.\./'
6964 # Canonicalize the path of ld
6965 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6966 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6967 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6968 done
6969 test -z "$LD" && LD="$ac_prog"
6970 ;;
6971 "")
6972 # If it fails, then pretend we aren't using GCC.
6973 ac_prog=ld
6974 ;;
6975 *)
6976 # If it is relative, then search for the first ld in PATH.
6977 with_gnu_ld=unknown
6978 ;;
6979 esac
6980 elif test "$with_gnu_ld" = yes; then
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6982 $as_echo_n "checking for GNU ld... " >&6; }
6983 else
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6985 $as_echo_n "checking for non-GNU ld... " >&6; }
6986 fi
6987 if ${acl_cv_path_LD+:} false; then :
6988 $as_echo_n "(cached) " >&6
6989 else
6990 if test -z "$LD"; then
6991 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6992 for ac_dir in $PATH; do
6993 test -z "$ac_dir" && ac_dir=.
6994 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6995 acl_cv_path_LD="$ac_dir/$ac_prog"
6996 # Check to see if the program is GNU ld. I'd rather use --version,
6997 # but apparently some GNU ld's only accept -v.
6998 # Break only if it was the GNU/non-GNU ld that we prefer.
6999 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
7000 test "$with_gnu_ld" != no && break
7001 else
7002 test "$with_gnu_ld" != yes && break
7003 fi
7004 fi
7005 done
7006 IFS="$ac_save_ifs"
7007 else
7008 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7009 fi
7010 fi
7011
7012 LD="$acl_cv_path_LD"
7013 if test -n "$LD"; then
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7015 $as_echo "$LD" >&6; }
7016 else
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7018 $as_echo "no" >&6; }
7019 fi
7020 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7022 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7023 if ${acl_cv_prog_gnu_ld+:} false; then :
7024 $as_echo_n "(cached) " >&6
7025 else
7026 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7027 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
7028 acl_cv_prog_gnu_ld=yes
7029 else
7030 acl_cv_prog_gnu_ld=no
7031 fi
7032 fi
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7034 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7035 with_gnu_ld=$acl_cv_prog_gnu_ld
7036
7037
7038
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7040 $as_echo_n "checking for shared library run path origin... " >&6; }
7041 if ${acl_cv_rpath+:} false; then :
7042 $as_echo_n "(cached) " >&6
7043 else
7044
7045 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7046 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7047 . ./conftest.sh
7048 rm -f ./conftest.sh
7049 acl_cv_rpath=done
7050
7051 fi
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7053 $as_echo "$acl_cv_rpath" >&6; }
7054 wl="$acl_cv_wl"
7055 libext="$acl_cv_libext"
7056 shlibext="$acl_cv_shlibext"
7057 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7058 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7059 hardcode_direct="$acl_cv_hardcode_direct"
7060 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7061 # Check whether --enable-rpath was given.
7062 if test "${enable_rpath+set}" = set; then :
7063 enableval=$enable_rpath; :
7064 else
7065 enable_rpath=yes
7066 fi
7067
7068
7069
7070
7071
7072
7073
7074
7075 use_additional=yes
7076
7077 acl_save_prefix="$prefix"
7078 prefix="$acl_final_prefix"
7079 acl_save_exec_prefix="$exec_prefix"
7080 exec_prefix="$acl_final_exec_prefix"
7081
7082 eval additional_includedir=\"$includedir\"
7083 eval additional_libdir=\"$libdir\"
7084
7085 exec_prefix="$acl_save_exec_prefix"
7086 prefix="$acl_save_prefix"
7087
7088
7089 # Check whether --with-libiconv-prefix was given.
7090 if test "${with_libiconv_prefix+set}" = set; then :
7091 withval=$with_libiconv_prefix;
7092 if test "X$withval" = "Xno"; then
7093 use_additional=no
7094 else
7095 if test "X$withval" = "X"; then
7096
7097 acl_save_prefix="$prefix"
7098 prefix="$acl_final_prefix"
7099 acl_save_exec_prefix="$exec_prefix"
7100 exec_prefix="$acl_final_exec_prefix"
7101
7102 eval additional_includedir=\"$includedir\"
7103 eval additional_libdir=\"$libdir\"
7104
7105 exec_prefix="$acl_save_exec_prefix"
7106 prefix="$acl_save_prefix"
7107
7108 else
7109 additional_includedir="$withval/include"
7110 additional_libdir="$withval/lib"
7111 fi
7112 fi
7113
7114 fi
7115
7116
7117 # Check whether --with-libiconv-type was given.
7118 if test "${with_libiconv_type+set}" = set; then :
7119 withval=$with_libiconv_type; with_libiconv_type=$withval
7120 else
7121 with_libiconv_type=auto
7122 fi
7123
7124 lib_type=`eval echo \$with_libiconv_type`
7125
7126 LIBICONV=
7127 LTLIBICONV=
7128 INCICONV=
7129 rpathdirs=
7130 ltrpathdirs=
7131 names_already_handled=
7132 names_next_round='iconv '
7133 while test -n "$names_next_round"; do
7134 names_this_round="$names_next_round"
7135 names_next_round=
7136 for name in $names_this_round; do
7137 already_handled=
7138 for n in $names_already_handled; do
7139 if test "$n" = "$name"; then
7140 already_handled=yes
7141 break
7142 fi
7143 done
7144 if test -z "$already_handled"; then
7145 names_already_handled="$names_already_handled $name"
7146 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7147 eval value=\"\$HAVE_LIB$uppername\"
7148 if test -n "$value"; then
7149 if test "$value" = yes; then
7150 eval value=\"\$LIB$uppername\"
7151 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7152 eval value=\"\$LTLIB$uppername\"
7153 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7154 else
7155 :
7156 fi
7157 else
7158 found_dir=
7159 found_la=
7160 found_so=
7161 found_a=
7162 if test $use_additional = yes; then
7163 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
7164 found_dir="$additional_libdir"
7165 found_so="$additional_libdir/lib$name.$shlibext"
7166 if test -f "$additional_libdir/lib$name.la"; then
7167 found_la="$additional_libdir/lib$name.la"
7168 fi
7169 elif test x$lib_type != xshared; then
7170 if test -f "$additional_libdir/lib$name.$libext"; then
7171 found_dir="$additional_libdir"
7172 found_a="$additional_libdir/lib$name.$libext"
7173 if test -f "$additional_libdir/lib$name.la"; then
7174 found_la="$additional_libdir/lib$name.la"
7175 fi
7176 fi
7177 fi
7178 fi
7179 if test "X$found_dir" = "X"; then
7180 for x in $LDFLAGS $LTLIBICONV; do
7181
7182 acl_save_prefix="$prefix"
7183 prefix="$acl_final_prefix"
7184 acl_save_exec_prefix="$exec_prefix"
7185 exec_prefix="$acl_final_exec_prefix"
7186 eval x=\"$x\"
7187 exec_prefix="$acl_save_exec_prefix"
7188 prefix="$acl_save_prefix"
7189
7190 case "$x" in
7191 -L*)
7192 dir=`echo "X$x" | sed -e 's/^X-L//'`
7193 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
7194 found_dir="$dir"
7195 found_so="$dir/lib$name.$shlibext"
7196 if test -f "$dir/lib$name.la"; then
7197 found_la="$dir/lib$name.la"
7198 fi
7199 elif test x$lib_type != xshared; then
7200 if test -f "$dir/lib$name.$libext"; then
7201 found_dir="$dir"
7202 found_a="$dir/lib$name.$libext"
7203 if test -f "$dir/lib$name.la"; then
7204 found_la="$dir/lib$name.la"
7205 fi
7206 fi
7207 fi
7208 ;;
7209 esac
7210 if test "X$found_dir" != "X"; then
7211 break
7212 fi
7213 done
7214 fi
7215 if test "X$found_dir" != "X"; then
7216 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7217 if test "X$found_so" != "X"; then
7218 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7219 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7220 else
7221 haveit=
7222 for x in $ltrpathdirs; do
7223 if test "X$x" = "X$found_dir"; then
7224 haveit=yes
7225 break
7226 fi
7227 done
7228 if test -z "$haveit"; then
7229 ltrpathdirs="$ltrpathdirs $found_dir"
7230 fi
7231 if test "$hardcode_direct" = yes; then
7232 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7233 else
7234 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7235 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7236 haveit=
7237 for x in $rpathdirs; do
7238 if test "X$x" = "X$found_dir"; then
7239 haveit=yes
7240 break
7241 fi
7242 done
7243 if test -z "$haveit"; then
7244 rpathdirs="$rpathdirs $found_dir"
7245 fi
7246 else
7247 haveit=
7248 for x in $LDFLAGS $LIBICONV; do
7249
7250 acl_save_prefix="$prefix"
7251 prefix="$acl_final_prefix"
7252 acl_save_exec_prefix="$exec_prefix"
7253 exec_prefix="$acl_final_exec_prefix"
7254 eval x=\"$x\"
7255 exec_prefix="$acl_save_exec_prefix"
7256 prefix="$acl_save_prefix"
7257
7258 if test "X$x" = "X-L$found_dir"; then
7259 haveit=yes
7260 break
7261 fi
7262 done
7263 if test -z "$haveit"; then
7264 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7265 fi
7266 if test "$hardcode_minus_L" != no; then
7267 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7268 else
7269 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7270 fi
7271 fi
7272 fi
7273 fi
7274 else
7275 if test "X$found_a" != "X"; then
7276 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7277 else
7278 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7279 fi
7280 fi
7281 additional_includedir=
7282 case "$found_dir" in
7283 */lib | */lib/)
7284 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7285 additional_includedir="$basedir/include"
7286 ;;
7287 esac
7288 if test "X$additional_includedir" != "X"; then
7289 if test "X$additional_includedir" != "X/usr/include"; then
7290 haveit=
7291 if test "X$additional_includedir" = "X/usr/local/include"; then
7292 if test -n "$GCC"; then
7293 case $host_os in
7294 linux*) haveit=yes;;
7295 esac
7296 fi
7297 fi
7298 if test -z "$haveit"; then
7299 for x in $CPPFLAGS $INCICONV; do
7300
7301 acl_save_prefix="$prefix"
7302 prefix="$acl_final_prefix"
7303 acl_save_exec_prefix="$exec_prefix"
7304 exec_prefix="$acl_final_exec_prefix"
7305 eval x=\"$x\"
7306 exec_prefix="$acl_save_exec_prefix"
7307 prefix="$acl_save_prefix"
7308
7309 if test "X$x" = "X-I$additional_includedir"; then
7310 haveit=yes
7311 break
7312 fi
7313 done
7314 if test -z "$haveit"; then
7315 if test -d "$additional_includedir"; then
7316 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7317 fi
7318 fi
7319 fi
7320 fi
7321 fi
7322 if test -n "$found_la"; then
7323 save_libdir="$libdir"
7324 case "$found_la" in
7325 */* | *\\*) . "$found_la" ;;
7326 *) . "./$found_la" ;;
7327 esac
7328 libdir="$save_libdir"
7329 for dep in $dependency_libs; do
7330 case "$dep" in
7331 -L*)
7332 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7333 if test "X$additional_libdir" != "X/usr/lib"; then
7334 haveit=
7335 if test "X$additional_libdir" = "X/usr/local/lib"; then
7336 if test -n "$GCC"; then
7337 case $host_os in
7338 linux*) haveit=yes;;
7339 esac
7340 fi
7341 fi
7342 if test -z "$haveit"; then
7343 haveit=
7344 for x in $LDFLAGS $LIBICONV; do
7345
7346 acl_save_prefix="$prefix"
7347 prefix="$acl_final_prefix"
7348 acl_save_exec_prefix="$exec_prefix"
7349 exec_prefix="$acl_final_exec_prefix"
7350 eval x=\"$x\"
7351 exec_prefix="$acl_save_exec_prefix"
7352 prefix="$acl_save_prefix"
7353
7354 if test "X$x" = "X-L$additional_libdir"; then
7355 haveit=yes
7356 break
7357 fi
7358 done
7359 if test -z "$haveit"; then
7360 if test -d "$additional_libdir"; then
7361 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7362 fi
7363 fi
7364 haveit=
7365 for x in $LDFLAGS $LTLIBICONV; do
7366
7367 acl_save_prefix="$prefix"
7368 prefix="$acl_final_prefix"
7369 acl_save_exec_prefix="$exec_prefix"
7370 exec_prefix="$acl_final_exec_prefix"
7371 eval x=\"$x\"
7372 exec_prefix="$acl_save_exec_prefix"
7373 prefix="$acl_save_prefix"
7374
7375 if test "X$x" = "X-L$additional_libdir"; then
7376 haveit=yes
7377 break
7378 fi
7379 done
7380 if test -z "$haveit"; then
7381 if test -d "$additional_libdir"; then
7382 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7383 fi
7384 fi
7385 fi
7386 fi
7387 ;;
7388 -R*)
7389 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7390 if test "$enable_rpath" != no; then
7391 haveit=
7392 for x in $rpathdirs; do
7393 if test "X$x" = "X$dir"; then
7394 haveit=yes
7395 break
7396 fi
7397 done
7398 if test -z "$haveit"; then
7399 rpathdirs="$rpathdirs $dir"
7400 fi
7401 haveit=
7402 for x in $ltrpathdirs; do
7403 if test "X$x" = "X$dir"; then
7404 haveit=yes
7405 break
7406 fi
7407 done
7408 if test -z "$haveit"; then
7409 ltrpathdirs="$ltrpathdirs $dir"
7410 fi
7411 fi
7412 ;;
7413 -l*)
7414 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7415 ;;
7416 *.la)
7417 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7418 ;;
7419 *)
7420 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7421 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7422 ;;
7423 esac
7424 done
7425 fi
7426 else
7427 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
7428 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7429 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7430 else
7431 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
7432 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
7433 fi
7434 fi
7435 fi
7436 fi
7437 done
7438 done
7439 if test "X$rpathdirs" != "X"; then
7440 if test -n "$hardcode_libdir_separator"; then
7441 alldirs=
7442 for found_dir in $rpathdirs; do
7443 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7444 done
7445 acl_save_libdir="$libdir"
7446 libdir="$alldirs"
7447 eval flag=\"$hardcode_libdir_flag_spec\"
7448 libdir="$acl_save_libdir"
7449 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7450 else
7451 for found_dir in $rpathdirs; do
7452 acl_save_libdir="$libdir"
7453 libdir="$found_dir"
7454 eval flag=\"$hardcode_libdir_flag_spec\"
7455 libdir="$acl_save_libdir"
7456 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7457 done
7458 fi
7459 fi
7460 if test "X$ltrpathdirs" != "X"; then
7461 for found_dir in $ltrpathdirs; do
7462 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7463 done
7464 fi
7465
7466
7467
7468
7469
7470 if test -f ../gettext/uninstalled-config.sh; then
7471 relative_builddir='$(top_builddir)/../gettext'
7472 . ../gettext/uninstalled-config.sh
7473 else
7474 # The sister gettext directory doesn't exist and won't collect information on
7475 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
7500 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
7501 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
7502 $as_echo_n "(cached) " >&6
7503 else
7504 gt_save_LIBS="$LIBS"
7505 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7507 /* end confdefs.h. */
7508 #include <CoreFoundation/CFPreferences.h>
7509 int
7510 main ()
7511 {
7512 CFPreferencesCopyAppValue(NULL, NULL)
7513 ;
7514 return 0;
7515 }
7516 _ACEOF
7517 if ac_fn_c_try_link "$LINENO"; then :
7518 gt_cv_func_CFPreferencesCopyAppValue=yes
7519 else
7520 gt_cv_func_CFPreferencesCopyAppValue=no
7521 fi
7522 rm -f core conftest.err conftest.$ac_objext \
7523 conftest$ac_exeext conftest.$ac_ext
7524 LIBS="$gt_save_LIBS"
7525 fi
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
7527 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
7528 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
7529
7530 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
7531
7532 fi
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
7534 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
7535 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
7536 $as_echo_n "(cached) " >&6
7537 else
7538 gt_save_LIBS="$LIBS"
7539 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7541 /* end confdefs.h. */
7542 #include <CoreFoundation/CFLocale.h>
7543 int
7544 main ()
7545 {
7546 CFLocaleCopyPreferredLanguages();
7547 ;
7548 return 0;
7549 }
7550 _ACEOF
7551 if ac_fn_c_try_link "$LINENO"; then :
7552 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
7553 else
7554 gt_cv_func_CFLocaleCopyPreferredLanguages=no
7555 fi
7556 rm -f core conftest.err conftest.$ac_objext \
7557 conftest$ac_exeext conftest.$ac_ext
7558 LIBS="$gt_save_LIBS"
7559 fi
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
7561 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
7562 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
7563
7564 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
7565
7566 fi
7567 INTL_MACOSX_LIBS=
7568 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
7569 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
7570 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
7571 fi
7572
7573
7574
7575
7576
7577
7578 LIBINTL=
7579 LTLIBINTL=
7580 POSUB=
7581
7582 case " $gt_needs " in
7583 *" need-formatstring-macros "*) gt_api_version=3 ;;
7584 *" need-ngettext "*) gt_api_version=2 ;;
7585 *) gt_api_version=1 ;;
7586 esac
7587 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
7588 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
7589
7590 if test "$USE_NLS" = "yes"; then
7591 gt_use_preinstalled_gnugettext=no
7592
7593
7594 if test $gt_api_version -ge 3; then
7595 gt_revision_test_code='
7596 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7597 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
7598 #endif
7599 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
7600 '
7601 else
7602 gt_revision_test_code=
7603 fi
7604 if test $gt_api_version -ge 2; then
7605 gt_expression_test_code=' + * ngettext ("", "", 0)'
7606 else
7607 gt_expression_test_code=
7608 fi
7609
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
7611 $as_echo_n "checking for GNU gettext in libc... " >&6; }
7612 if eval \${$gt_func_gnugettext_libc+:} false; then :
7613 $as_echo_n "(cached) " >&6
7614 else
7615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7616 /* end confdefs.h. */
7617
7618 #include <libintl.h>
7619 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7620 extern int _nl_msg_cat_cntr;
7621 extern int *_nl_domain_bindings;
7622 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
7623 #else
7624 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
7625 #endif
7626 $gt_revision_test_code
7627
7628 int
7629 main ()
7630 {
7631
7632 bindtextdomain ("", "");
7633 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
7634
7635 ;
7636 return 0;
7637 }
7638 _ACEOF
7639 if ac_fn_c_try_link "$LINENO"; then :
7640 eval "$gt_func_gnugettext_libc=yes"
7641 else
7642 eval "$gt_func_gnugettext_libc=no"
7643 fi
7644 rm -f core conftest.err conftest.$ac_objext \
7645 conftest$ac_exeext conftest.$ac_ext
7646 fi
7647 eval ac_res=\$$gt_func_gnugettext_libc
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7649 $as_echo "$ac_res" >&6; }
7650
7651 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
7652
7653
7654
7655
7656
7657 am_save_CPPFLAGS="$CPPFLAGS"
7658
7659 for element in $INCICONV; do
7660 haveit=
7661 for x in $CPPFLAGS; do
7662
7663 acl_save_prefix="$prefix"
7664 prefix="$acl_final_prefix"
7665 acl_save_exec_prefix="$exec_prefix"
7666 exec_prefix="$acl_final_exec_prefix"
7667 eval x=\"$x\"
7668 exec_prefix="$acl_save_exec_prefix"
7669 prefix="$acl_save_prefix"
7670
7671 if test "X$x" = "X$element"; then
7672 haveit=yes
7673 break
7674 fi
7675 done
7676 if test -z "$haveit"; then
7677 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7678 fi
7679 done
7680
7681
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7683 $as_echo_n "checking for iconv... " >&6; }
7684 if ${am_cv_func_iconv+:} false; then :
7685 $as_echo_n "(cached) " >&6
7686 else
7687
7688 am_cv_func_iconv="no, consider installing GNU libiconv"
7689 am_cv_lib_iconv=no
7690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7691 /* end confdefs.h. */
7692
7693 #include <stdlib.h>
7694 #include <iconv.h>
7695
7696 int
7697 main ()
7698 {
7699 iconv_t cd = iconv_open("","");
7700 iconv(cd,NULL,NULL,NULL,NULL);
7701 iconv_close(cd);
7702 ;
7703 return 0;
7704 }
7705 _ACEOF
7706 if ac_fn_c_try_link "$LINENO"; then :
7707 am_cv_func_iconv=yes
7708 fi
7709 rm -f core conftest.err conftest.$ac_objext \
7710 conftest$ac_exeext conftest.$ac_ext
7711 if test "$am_cv_func_iconv" != yes; then
7712 am_save_LIBS="$LIBS"
7713 LIBS="$LIBS $LIBICONV"
7714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7715 /* end confdefs.h. */
7716
7717 #include <stdlib.h>
7718 #include <iconv.h>
7719
7720 int
7721 main ()
7722 {
7723 iconv_t cd = iconv_open("","");
7724 iconv(cd,NULL,NULL,NULL,NULL);
7725 iconv_close(cd);
7726 ;
7727 return 0;
7728 }
7729 _ACEOF
7730 if ac_fn_c_try_link "$LINENO"; then :
7731 am_cv_lib_iconv=yes
7732 am_cv_func_iconv=yes
7733 fi
7734 rm -f core conftest.err conftest.$ac_objext \
7735 conftest$ac_exeext conftest.$ac_ext
7736 LIBS="$am_save_LIBS"
7737 fi
7738
7739 fi
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7741 $as_echo "$am_cv_func_iconv" >&6; }
7742 if test "$am_cv_func_iconv" = yes; then
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7744 $as_echo_n "checking for working iconv... " >&6; }
7745 if ${am_cv_func_iconv_works+:} false; then :
7746 $as_echo_n "(cached) " >&6
7747 else
7748
7749 am_save_LIBS="$LIBS"
7750 if test $am_cv_lib_iconv = yes; then
7751 LIBS="$LIBS $LIBICONV"
7752 fi
7753 am_cv_func_iconv_works=no
7754 for ac_iconv_const in '' 'const'; do
7755 if test "$cross_compiling" = yes; then :
7756 case "$host_os" in
7757 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
7758 *) am_cv_func_iconv_works="guessing yes" ;;
7759 esac
7760 else
7761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7762 /* end confdefs.h. */
7763
7764 #include <iconv.h>
7765 #include <string.h>
7766
7767 #ifndef ICONV_CONST
7768 # define ICONV_CONST $ac_iconv_const
7769 #endif
7770
7771 int
7772 main ()
7773 {
7774 int result = 0;
7775 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
7776 successful returns. This is even documented in
7777 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
7778 {
7779 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
7780 if (cd_utf8_to_88591 != (iconv_t)(-1))
7781 {
7782 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
7783 char buf[10];
7784 ICONV_CONST char *inptr = input;
7785 size_t inbytesleft = strlen (input);
7786 char *outptr = buf;
7787 size_t outbytesleft = sizeof (buf);
7788 size_t res = iconv (cd_utf8_to_88591,
7789 &inptr, &inbytesleft,
7790 &outptr, &outbytesleft);
7791 if (res == 0)
7792 result |= 1;
7793 iconv_close (cd_utf8_to_88591);
7794 }
7795 }
7796 /* Test against Solaris 10 bug: Failures are not distinguishable from
7797 successful returns. */
7798 {
7799 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
7800 if (cd_ascii_to_88591 != (iconv_t)(-1))
7801 {
7802 static ICONV_CONST char input[] = "\263";
7803 char buf[10];
7804 ICONV_CONST char *inptr = input;
7805 size_t inbytesleft = strlen (input);
7806 char *outptr = buf;
7807 size_t outbytesleft = sizeof (buf);
7808 size_t res = iconv (cd_ascii_to_88591,
7809 &inptr, &inbytesleft,
7810 &outptr, &outbytesleft);
7811 if (res == 0)
7812 result |= 2;
7813 iconv_close (cd_ascii_to_88591);
7814 }
7815 }
7816 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
7817 {
7818 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
7819 if (cd_88591_to_utf8 != (iconv_t)(-1))
7820 {
7821 static ICONV_CONST char input[] = "\304";
7822 static char buf[2] = { (char)0xDE, (char)0xAD };
7823 ICONV_CONST char *inptr = input;
7824 size_t inbytesleft = 1;
7825 char *outptr = buf;
7826 size_t outbytesleft = 1;
7827 size_t res = iconv (cd_88591_to_utf8,
7828 &inptr, &inbytesleft,
7829 &outptr, &outbytesleft);
7830 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
7831 result |= 4;
7832 iconv_close (cd_88591_to_utf8);
7833 }
7834 }
7835 #if 0 /* This bug could be worked around by the caller. */
7836 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
7837 {
7838 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
7839 if (cd_88591_to_utf8 != (iconv_t)(-1))
7840 {
7841 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
7842 char buf[50];
7843 ICONV_CONST char *inptr = input;
7844 size_t inbytesleft = strlen (input);
7845 char *outptr = buf;
7846 size_t outbytesleft = sizeof (buf);
7847 size_t res = iconv (cd_88591_to_utf8,
7848 &inptr, &inbytesleft,
7849 &outptr, &outbytesleft);
7850 if ((int)res > 0)
7851 result |= 8;
7852 iconv_close (cd_88591_to_utf8);
7853 }
7854 }
7855 #endif
7856 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
7857 provided. */
7858 {
7859 /* Try standardized names. */
7860 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
7861 /* Try IRIX, OSF/1 names. */
7862 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
7863 /* Try AIX names. */
7864 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
7865 /* Try HP-UX names. */
7866 iconv_t cd4 = iconv_open ("utf8", "eucJP");
7867 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
7868 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
7869 result |= 16;
7870 if (cd1 != (iconv_t)(-1))
7871 iconv_close (cd1);
7872 if (cd2 != (iconv_t)(-1))
7873 iconv_close (cd2);
7874 if (cd3 != (iconv_t)(-1))
7875 iconv_close (cd3);
7876 if (cd4 != (iconv_t)(-1))
7877 iconv_close (cd4);
7878 }
7879 return result;
7880
7881 ;
7882 return 0;
7883 }
7884 _ACEOF
7885 if ac_fn_c_try_run "$LINENO"; then :
7886 am_cv_func_iconv_works=yes
7887 fi
7888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7889 conftest.$ac_objext conftest.beam conftest.$ac_ext
7890 fi
7891
7892 test "$am_cv_func_iconv_works" = no || break
7893 done
7894 LIBS="$am_save_LIBS"
7895
7896 fi
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
7898 $as_echo "$am_cv_func_iconv_works" >&6; }
7899 case "$am_cv_func_iconv_works" in
7900 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
7901 *) am_func_iconv=yes ;;
7902 esac
7903 else
7904 am_func_iconv=no am_cv_lib_iconv=no
7905 fi
7906 if test "$am_func_iconv" = yes; then
7907
7908 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7909
7910 fi
7911 if test "$am_cv_lib_iconv" = yes; then
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7913 $as_echo_n "checking how to link with libiconv... " >&6; }
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7915 $as_echo "$LIBICONV" >&6; }
7916 else
7917 CPPFLAGS="$am_save_CPPFLAGS"
7918 LIBICONV=
7919 LTLIBICONV=
7920 fi
7921
7922
7923
7924
7925
7926
7927 use_additional=yes
7928
7929 acl_save_prefix="$prefix"
7930 prefix="$acl_final_prefix"
7931 acl_save_exec_prefix="$exec_prefix"
7932 exec_prefix="$acl_final_exec_prefix"
7933
7934 eval additional_includedir=\"$includedir\"
7935 eval additional_libdir=\"$libdir\"
7936
7937 exec_prefix="$acl_save_exec_prefix"
7938 prefix="$acl_save_prefix"
7939
7940
7941 # Check whether --with-libintl-prefix was given.
7942 if test "${with_libintl_prefix+set}" = set; then :
7943 withval=$with_libintl_prefix;
7944 if test "X$withval" = "Xno"; then
7945 use_additional=no
7946 else
7947 if test "X$withval" = "X"; then
7948
7949 acl_save_prefix="$prefix"
7950 prefix="$acl_final_prefix"
7951 acl_save_exec_prefix="$exec_prefix"
7952 exec_prefix="$acl_final_exec_prefix"
7953
7954 eval additional_includedir=\"$includedir\"
7955 eval additional_libdir=\"$libdir\"
7956
7957 exec_prefix="$acl_save_exec_prefix"
7958 prefix="$acl_save_prefix"
7959
7960 else
7961 additional_includedir="$withval/include"
7962 additional_libdir="$withval/lib"
7963 fi
7964 fi
7965
7966 fi
7967
7968
7969 # Check whether --with-libintl-type was given.
7970 if test "${with_libintl_type+set}" = set; then :
7971 withval=$with_libintl_type; with_libintl_type=$withval
7972 else
7973 with_libintl_type=auto
7974 fi
7975
7976 lib_type=`eval echo \$with_libintl_type`
7977
7978 LIBINTL=
7979 LTLIBINTL=
7980 INCINTL=
7981 rpathdirs=
7982 ltrpathdirs=
7983 names_already_handled=
7984 names_next_round='intl '
7985 while test -n "$names_next_round"; do
7986 names_this_round="$names_next_round"
7987 names_next_round=
7988 for name in $names_this_round; do
7989 already_handled=
7990 for n in $names_already_handled; do
7991 if test "$n" = "$name"; then
7992 already_handled=yes
7993 break
7994 fi
7995 done
7996 if test -z "$already_handled"; then
7997 names_already_handled="$names_already_handled $name"
7998 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7999 eval value=\"\$HAVE_LIB$uppername\"
8000 if test -n "$value"; then
8001 if test "$value" = yes; then
8002 eval value=\"\$LIB$uppername\"
8003 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8004 eval value=\"\$LTLIB$uppername\"
8005 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8006 else
8007 :
8008 fi
8009 else
8010 found_dir=
8011 found_la=
8012 found_so=
8013 found_a=
8014 if test $use_additional = yes; then
8015 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
8016 found_dir="$additional_libdir"
8017 found_so="$additional_libdir/lib$name.$shlibext"
8018 if test -f "$additional_libdir/lib$name.la"; then
8019 found_la="$additional_libdir/lib$name.la"
8020 fi
8021 elif test x$lib_type != xshared; then
8022 if test -f "$additional_libdir/lib$name.$libext"; then
8023 found_dir="$additional_libdir"
8024 found_a="$additional_libdir/lib$name.$libext"
8025 if test -f "$additional_libdir/lib$name.la"; then
8026 found_la="$additional_libdir/lib$name.la"
8027 fi
8028 fi
8029 fi
8030 fi
8031 if test "X$found_dir" = "X"; then
8032 for x in $LDFLAGS $LTLIBINTL; do
8033
8034 acl_save_prefix="$prefix"
8035 prefix="$acl_final_prefix"
8036 acl_save_exec_prefix="$exec_prefix"
8037 exec_prefix="$acl_final_exec_prefix"
8038 eval x=\"$x\"
8039 exec_prefix="$acl_save_exec_prefix"
8040 prefix="$acl_save_prefix"
8041
8042 case "$x" in
8043 -L*)
8044 dir=`echo "X$x" | sed -e 's/^X-L//'`
8045 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
8046 found_dir="$dir"
8047 found_so="$dir/lib$name.$shlibext"
8048 if test -f "$dir/lib$name.la"; then
8049 found_la="$dir/lib$name.la"
8050 fi
8051 elif test x$lib_type != xshared; then
8052 if test -f "$dir/lib$name.$libext"; then
8053 found_dir="$dir"
8054 found_a="$dir/lib$name.$libext"
8055 if test -f "$dir/lib$name.la"; then
8056 found_la="$dir/lib$name.la"
8057 fi
8058 fi
8059 fi
8060 ;;
8061 esac
8062 if test "X$found_dir" != "X"; then
8063 break
8064 fi
8065 done
8066 fi
8067 if test "X$found_dir" != "X"; then
8068 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8069 if test "X$found_so" != "X"; then
8070 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8071 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8072 else
8073 haveit=
8074 for x in $ltrpathdirs; do
8075 if test "X$x" = "X$found_dir"; then
8076 haveit=yes
8077 break
8078 fi
8079 done
8080 if test -z "$haveit"; then
8081 ltrpathdirs="$ltrpathdirs $found_dir"
8082 fi
8083 if test "$hardcode_direct" = yes; then
8084 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8085 else
8086 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8087 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8088 haveit=
8089 for x in $rpathdirs; do
8090 if test "X$x" = "X$found_dir"; then
8091 haveit=yes
8092 break
8093 fi
8094 done
8095 if test -z "$haveit"; then
8096 rpathdirs="$rpathdirs $found_dir"
8097 fi
8098 else
8099 haveit=
8100 for x in $LDFLAGS $LIBINTL; do
8101
8102 acl_save_prefix="$prefix"
8103 prefix="$acl_final_prefix"
8104 acl_save_exec_prefix="$exec_prefix"
8105 exec_prefix="$acl_final_exec_prefix"
8106 eval x=\"$x\"
8107 exec_prefix="$acl_save_exec_prefix"
8108 prefix="$acl_save_prefix"
8109
8110 if test "X$x" = "X-L$found_dir"; then
8111 haveit=yes
8112 break
8113 fi
8114 done
8115 if test -z "$haveit"; then
8116 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8117 fi
8118 if test "$hardcode_minus_L" != no; then
8119 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8120 else
8121 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8122 fi
8123 fi
8124 fi
8125 fi
8126 else
8127 if test "X$found_a" != "X"; then
8128 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8129 else
8130 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8131 fi
8132 fi
8133 additional_includedir=
8134 case "$found_dir" in
8135 */lib | */lib/)
8136 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8137 additional_includedir="$basedir/include"
8138 ;;
8139 esac
8140 if test "X$additional_includedir" != "X"; then
8141 if test "X$additional_includedir" != "X/usr/include"; then
8142 haveit=
8143 if test "X$additional_includedir" = "X/usr/local/include"; then
8144 if test -n "$GCC"; then
8145 case $host_os in
8146 linux*) haveit=yes;;
8147 esac
8148 fi
8149 fi
8150 if test -z "$haveit"; then
8151 for x in $CPPFLAGS $INCINTL; do
8152
8153 acl_save_prefix="$prefix"
8154 prefix="$acl_final_prefix"
8155 acl_save_exec_prefix="$exec_prefix"
8156 exec_prefix="$acl_final_exec_prefix"
8157 eval x=\"$x\"
8158 exec_prefix="$acl_save_exec_prefix"
8159 prefix="$acl_save_prefix"
8160
8161 if test "X$x" = "X-I$additional_includedir"; then
8162 haveit=yes
8163 break
8164 fi
8165 done
8166 if test -z "$haveit"; then
8167 if test -d "$additional_includedir"; then
8168 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8169 fi
8170 fi
8171 fi
8172 fi
8173 fi
8174 if test -n "$found_la"; then
8175 save_libdir="$libdir"
8176 case "$found_la" in
8177 */* | *\\*) . "$found_la" ;;
8178 *) . "./$found_la" ;;
8179 esac
8180 libdir="$save_libdir"
8181 for dep in $dependency_libs; do
8182 case "$dep" in
8183 -L*)
8184 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8185 if test "X$additional_libdir" != "X/usr/lib"; then
8186 haveit=
8187 if test "X$additional_libdir" = "X/usr/local/lib"; then
8188 if test -n "$GCC"; then
8189 case $host_os in
8190 linux*) haveit=yes;;
8191 esac
8192 fi
8193 fi
8194 if test -z "$haveit"; then
8195 haveit=
8196 for x in $LDFLAGS $LIBINTL; do
8197
8198 acl_save_prefix="$prefix"
8199 prefix="$acl_final_prefix"
8200 acl_save_exec_prefix="$exec_prefix"
8201 exec_prefix="$acl_final_exec_prefix"
8202 eval x=\"$x\"
8203 exec_prefix="$acl_save_exec_prefix"
8204 prefix="$acl_save_prefix"
8205
8206 if test "X$x" = "X-L$additional_libdir"; then
8207 haveit=yes
8208 break
8209 fi
8210 done
8211 if test -z "$haveit"; then
8212 if test -d "$additional_libdir"; then
8213 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8214 fi
8215 fi
8216 haveit=
8217 for x in $LDFLAGS $LTLIBINTL; do
8218
8219 acl_save_prefix="$prefix"
8220 prefix="$acl_final_prefix"
8221 acl_save_exec_prefix="$exec_prefix"
8222 exec_prefix="$acl_final_exec_prefix"
8223 eval x=\"$x\"
8224 exec_prefix="$acl_save_exec_prefix"
8225 prefix="$acl_save_prefix"
8226
8227 if test "X$x" = "X-L$additional_libdir"; then
8228 haveit=yes
8229 break
8230 fi
8231 done
8232 if test -z "$haveit"; then
8233 if test -d "$additional_libdir"; then
8234 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8235 fi
8236 fi
8237 fi
8238 fi
8239 ;;
8240 -R*)
8241 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8242 if test "$enable_rpath" != no; then
8243 haveit=
8244 for x in $rpathdirs; do
8245 if test "X$x" = "X$dir"; then
8246 haveit=yes
8247 break
8248 fi
8249 done
8250 if test -z "$haveit"; then
8251 rpathdirs="$rpathdirs $dir"
8252 fi
8253 haveit=
8254 for x in $ltrpathdirs; do
8255 if test "X$x" = "X$dir"; then
8256 haveit=yes
8257 break
8258 fi
8259 done
8260 if test -z "$haveit"; then
8261 ltrpathdirs="$ltrpathdirs $dir"
8262 fi
8263 fi
8264 ;;
8265 -l*)
8266 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8267 ;;
8268 *.la)
8269 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8270 ;;
8271 *)
8272 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8273 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8274 ;;
8275 esac
8276 done
8277 fi
8278 else
8279 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
8280 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8281 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8282 else
8283 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
8284 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
8285 fi
8286 fi
8287 fi
8288 fi
8289 done
8290 done
8291 if test "X$rpathdirs" != "X"; then
8292 if test -n "$hardcode_libdir_separator"; then
8293 alldirs=
8294 for found_dir in $rpathdirs; do
8295 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8296 done
8297 acl_save_libdir="$libdir"
8298 libdir="$alldirs"
8299 eval flag=\"$hardcode_libdir_flag_spec\"
8300 libdir="$acl_save_libdir"
8301 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8302 else
8303 for found_dir in $rpathdirs; do
8304 acl_save_libdir="$libdir"
8305 libdir="$found_dir"
8306 eval flag=\"$hardcode_libdir_flag_spec\"
8307 libdir="$acl_save_libdir"
8308 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8309 done
8310 fi
8311 fi
8312 if test "X$ltrpathdirs" != "X"; then
8313 for found_dir in $ltrpathdirs; do
8314 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8315 done
8316 fi
8317
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
8319 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
8320 if eval \${$gt_func_gnugettext_libintl+:} false; then :
8321 $as_echo_n "(cached) " >&6
8322 else
8323 gt_save_CPPFLAGS="$CPPFLAGS"
8324 CPPFLAGS="$CPPFLAGS $INCINTL"
8325 gt_save_LIBS="$LIBS"
8326 LIBS="$LIBS $LIBINTL"
8327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8328 /* end confdefs.h. */
8329
8330 #include <libintl.h>
8331 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8332 extern int _nl_msg_cat_cntr;
8333 extern
8334 #ifdef __cplusplus
8335 "C"
8336 #endif
8337 const char *_nl_expand_alias (const char *);
8338 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
8339 #else
8340 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
8341 #endif
8342 $gt_revision_test_code
8343
8344 int
8345 main ()
8346 {
8347
8348 bindtextdomain ("", "");
8349 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
8350
8351 ;
8352 return 0;
8353 }
8354 _ACEOF
8355 if ac_fn_c_try_link "$LINENO"; then :
8356 eval "$gt_func_gnugettext_libintl=yes"
8357 else
8358 eval "$gt_func_gnugettext_libintl=no"
8359 fi
8360 rm -f core conftest.err conftest.$ac_objext \
8361 conftest$ac_exeext conftest.$ac_ext
8362 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
8363 LIBS="$LIBS $LIBICONV"
8364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8365 /* end confdefs.h. */
8366
8367 #include <libintl.h>
8368 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8369 extern int _nl_msg_cat_cntr;
8370 extern
8371 #ifdef __cplusplus
8372 "C"
8373 #endif
8374 const char *_nl_expand_alias (const char *);
8375 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
8376 #else
8377 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
8378 #endif
8379 $gt_revision_test_code
8380
8381 int
8382 main ()
8383 {
8384
8385 bindtextdomain ("", "");
8386 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
8387
8388 ;
8389 return 0;
8390 }
8391 _ACEOF
8392 if ac_fn_c_try_link "$LINENO"; then :
8393 LIBINTL="$LIBINTL $LIBICONV"
8394 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
8395 eval "$gt_func_gnugettext_libintl=yes"
8396
8397 fi
8398 rm -f core conftest.err conftest.$ac_objext \
8399 conftest$ac_exeext conftest.$ac_ext
8400 fi
8401 CPPFLAGS="$gt_save_CPPFLAGS"
8402 LIBS="$gt_save_LIBS"
8403 fi
8404 eval ac_res=\$$gt_func_gnugettext_libintl
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8406 $as_echo "$ac_res" >&6; }
8407 fi
8408
8409 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
8410 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
8411 && test "$PACKAGE" != gettext-runtime \
8412 && test "$PACKAGE" != gettext-tools; }; then
8413 gt_use_preinstalled_gnugettext=yes
8414 else
8415 LIBINTL=
8416 LTLIBINTL=
8417 INCINTL=
8418 fi
8419
8420
8421
8422 if test -n "$INTL_MACOSX_LIBS"; then
8423 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8424 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8425 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
8426 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
8427 fi
8428 fi
8429
8430 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8431 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8432
8433 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8434
8435 else
8436 USE_NLS=no
8437 fi
8438 fi
8439
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
8441 $as_echo_n "checking whether to use NLS... " >&6; }
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8443 $as_echo "$USE_NLS" >&6; }
8444 if test "$USE_NLS" = "yes"; then
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
8446 $as_echo_n "checking where the gettext function comes from... " >&6; }
8447 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8448 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8449 gt_source="external libintl"
8450 else
8451 gt_source="libc"
8452 fi
8453 else
8454 gt_source="included intl directory"
8455 fi
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
8457 $as_echo "$gt_source" >&6; }
8458 fi
8459
8460 if test "$USE_NLS" = "yes"; then
8461
8462 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8463 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
8465 $as_echo_n "checking how to link with libintl... " >&6; }
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
8467 $as_echo "$LIBINTL" >&6; }
8468
8469 for element in $INCINTL; do
8470 haveit=
8471 for x in $CPPFLAGS; do
8472
8473 acl_save_prefix="$prefix"
8474 prefix="$acl_final_prefix"
8475 acl_save_exec_prefix="$exec_prefix"
8476 exec_prefix="$acl_final_exec_prefix"
8477 eval x=\"$x\"
8478 exec_prefix="$acl_save_exec_prefix"
8479 prefix="$acl_save_prefix"
8480
8481 if test "X$x" = "X$element"; then
8482 haveit=yes
8483 break
8484 fi
8485 done
8486 if test -z "$haveit"; then
8487 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8488 fi
8489 done
8490
8491 fi
8492
8493
8494 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
8495
8496
8497 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
8498
8499 fi
8500
8501 POSUB=po
8502 fi
8503
8504
8505
8506 INTLLIBS="$LIBINTL"
8507
8508
8509
8510
8511
8512
8513 fi
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8526 $as_echo_n "checking whether NLS is requested... " >&6; }
8527 if test x"$USE_NLS" != xyes; then
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8529 $as_echo "no" >&6; }
8530 else
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8532 $as_echo "yes" >&6; }
8533
8534 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8535
8536
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
8538 $as_echo_n "checking for catalogs to be installed... " >&6; }
8539 # Look for .po and .gmo files in the source directory.
8540 CATALOGS=
8541 XLINGUAS=
8542 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
8543 # If there aren't any .gmo files the shell will give us the
8544 # literal string "../path/to/srcdir/po/*.gmo" which has to be
8545 # weeded out.
8546 case "$cat" in *\**)
8547 continue;;
8548 esac
8549 # The quadruple backslash is collapsed to a double backslash
8550 # by the backticks, then collapsed again by the double quotes,
8551 # leaving us with one backslash in the sed expression (right
8552 # before the dot that mustn't act as a wildcard).
8553 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
8554 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
8555 # The user is allowed to set LINGUAS to a list of languages to
8556 # install catalogs for. If it's empty that means "all of them."
8557 if test "x$LINGUAS" = x; then
8558 CATALOGS="$CATALOGS $cat"
8559 XLINGUAS="$XLINGUAS $lang"
8560 else
8561 case "$LINGUAS" in *$lang*)
8562 CATALOGS="$CATALOGS $cat"
8563 XLINGUAS="$XLINGUAS $lang"
8564 ;;
8565 esac
8566 fi
8567 done
8568 LINGUAS="$XLINGUAS"
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
8570 $as_echo "$LINGUAS" >&6; }
8571
8572
8573 DATADIRNAME=share
8574
8575 INSTOBJEXT=.mo
8576
8577 GENCAT=gencat
8578
8579 CATOBJEXT=.gmo
8580
8581 fi
8582
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uchar" >&5
8584 $as_echo_n "checking for uchar... " >&6; }
8585 if ${gcc_cv_type_uchar+:} false; then :
8586 $as_echo_n "(cached) " >&6
8587 else
8588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8589 /* end confdefs.h. */
8590
8591 #include <sys/types.h>
8592
8593 int
8594 main ()
8595 {
8596 if ((uchar *)0) return 0;
8597 if (sizeof(uchar)) return 0;
8598 ;
8599 return 0;
8600 }
8601 _ACEOF
8602 if ac_fn_c_try_compile "$LINENO"; then :
8603 ac_cv_type_uchar=yes
8604 else
8605 ac_cv_type_uchar=no
8606 fi
8607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8608 fi
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_uchar" >&5
8610 $as_echo "$gcc_cv_type_uchar" >&6; }
8611 if test $ac_cv_type_uchar = yes; then
8612
8613 $as_echo "#define HAVE_UCHAR 1" >>confdefs.h
8614
8615 fi
8616
8617 # The cast to long int works around a bug in the HP C Compiler
8618 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8619 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8620 # This bug is HP SR number 8606223364.
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
8622 $as_echo_n "checking size of ino_t... " >&6; }
8623 if ${ac_cv_sizeof_ino_t+:} false; then :
8624 $as_echo_n "(cached) " >&6
8625 else
8626 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then :
8627
8628 else
8629 if test "$ac_cv_type_ino_t" = yes; then
8630 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8631 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8632 as_fn_error 77 "cannot compute sizeof (ino_t)
8633 See \`config.log' for more details" "$LINENO" 5; }
8634 else
8635 ac_cv_sizeof_ino_t=0
8636 fi
8637 fi
8638
8639 fi
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
8641 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
8642
8643
8644
8645 cat >>confdefs.h <<_ACEOF
8646 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
8647 _ACEOF
8648
8649
8650 # The cast to long int works around a bug in the HP C Compiler
8651 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8652 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8653 # This bug is HP SR number 8606223364.
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5
8655 $as_echo_n "checking size of dev_t... " >&6; }
8656 if ${ac_cv_sizeof_dev_t+:} false; then :
8657 $as_echo_n "(cached) " >&6
8658 else
8659 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then :
8660
8661 else
8662 if test "$ac_cv_type_dev_t" = yes; then
8663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8665 as_fn_error 77 "cannot compute sizeof (dev_t)
8666 See \`config.log' for more details" "$LINENO" 5; }
8667 else
8668 ac_cv_sizeof_dev_t=0
8669 fi
8670 fi
8671
8672 fi
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5
8674 $as_echo "$ac_cv_sizeof_dev_t" >&6; }
8675
8676
8677
8678 cat >>confdefs.h <<_ACEOF
8679 #define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
8680 _ACEOF
8681
8682
8683
8684 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
8685 # iconv() prototype.
8686 ac_ext=cpp
8687 ac_cpp='$CXXCPP $CPPFLAGS'
8688 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8689 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8690 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8691
8692
8693
8694
8695
8696
8697 am_save_CPPFLAGS="$CPPFLAGS"
8698
8699 for element in $INCICONV; do
8700 haveit=
8701 for x in $CPPFLAGS; do
8702
8703 acl_save_prefix="$prefix"
8704 prefix="$acl_final_prefix"
8705 acl_save_exec_prefix="$exec_prefix"
8706 exec_prefix="$acl_final_exec_prefix"
8707 eval x=\"$x\"
8708 exec_prefix="$acl_save_exec_prefix"
8709 prefix="$acl_save_prefix"
8710
8711 if test "X$x" = "X$element"; then
8712 haveit=yes
8713 break
8714 fi
8715 done
8716 if test -z "$haveit"; then
8717 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8718 fi
8719 done
8720
8721
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8723 $as_echo_n "checking for iconv... " >&6; }
8724 if ${am_cv_func_iconv+:} false; then :
8725 $as_echo_n "(cached) " >&6
8726 else
8727
8728 am_cv_func_iconv="no, consider installing GNU libiconv"
8729 am_cv_lib_iconv=no
8730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8731 /* end confdefs.h. */
8732
8733 #include <stdlib.h>
8734 #include <iconv.h>
8735
8736 int
8737 main ()
8738 {
8739 iconv_t cd = iconv_open("","");
8740 iconv(cd,NULL,NULL,NULL,NULL);
8741 iconv_close(cd);
8742 ;
8743 return 0;
8744 }
8745 _ACEOF
8746 if ac_fn_cxx_try_link "$LINENO"; then :
8747 am_cv_func_iconv=yes
8748 fi
8749 rm -f core conftest.err conftest.$ac_objext \
8750 conftest$ac_exeext conftest.$ac_ext
8751 if test "$am_cv_func_iconv" != yes; then
8752 am_save_LIBS="$LIBS"
8753 LIBS="$LIBS $LIBICONV"
8754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8755 /* end confdefs.h. */
8756
8757 #include <stdlib.h>
8758 #include <iconv.h>
8759
8760 int
8761 main ()
8762 {
8763 iconv_t cd = iconv_open("","");
8764 iconv(cd,NULL,NULL,NULL,NULL);
8765 iconv_close(cd);
8766 ;
8767 return 0;
8768 }
8769 _ACEOF
8770 if ac_fn_cxx_try_link "$LINENO"; then :
8771 am_cv_lib_iconv=yes
8772 am_cv_func_iconv=yes
8773 fi
8774 rm -f core conftest.err conftest.$ac_objext \
8775 conftest$ac_exeext conftest.$ac_ext
8776 LIBS="$am_save_LIBS"
8777 fi
8778
8779 fi
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8781 $as_echo "$am_cv_func_iconv" >&6; }
8782 if test "$am_cv_func_iconv" = yes; then
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
8784 $as_echo_n "checking for working iconv... " >&6; }
8785 if ${am_cv_func_iconv_works+:} false; then :
8786 $as_echo_n "(cached) " >&6
8787 else
8788
8789 am_save_LIBS="$LIBS"
8790 if test $am_cv_lib_iconv = yes; then
8791 LIBS="$LIBS $LIBICONV"
8792 fi
8793 am_cv_func_iconv_works=no
8794 for ac_iconv_const in '' 'const'; do
8795 if test "$cross_compiling" = yes; then :
8796 case "$host_os" in
8797 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
8798 *) am_cv_func_iconv_works="guessing yes" ;;
8799 esac
8800 else
8801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8802 /* end confdefs.h. */
8803
8804 #include <iconv.h>
8805 #include <string.h>
8806
8807 #ifndef ICONV_CONST
8808 # define ICONV_CONST $ac_iconv_const
8809 #endif
8810
8811 int
8812 main ()
8813 {
8814 int result = 0;
8815 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
8816 successful returns. This is even documented in
8817 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
8818 {
8819 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
8820 if (cd_utf8_to_88591 != (iconv_t)(-1))
8821 {
8822 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
8823 char buf[10];
8824 ICONV_CONST char *inptr = input;
8825 size_t inbytesleft = strlen (input);
8826 char *outptr = buf;
8827 size_t outbytesleft = sizeof (buf);
8828 size_t res = iconv (cd_utf8_to_88591,
8829 &inptr, &inbytesleft,
8830 &outptr, &outbytesleft);
8831 if (res == 0)
8832 result |= 1;
8833 iconv_close (cd_utf8_to_88591);
8834 }
8835 }
8836 /* Test against Solaris 10 bug: Failures are not distinguishable from
8837 successful returns. */
8838 {
8839 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
8840 if (cd_ascii_to_88591 != (iconv_t)(-1))
8841 {
8842 static ICONV_CONST char input[] = "\263";
8843 char buf[10];
8844 ICONV_CONST char *inptr = input;
8845 size_t inbytesleft = strlen (input);
8846 char *outptr = buf;
8847 size_t outbytesleft = sizeof (buf);
8848 size_t res = iconv (cd_ascii_to_88591,
8849 &inptr, &inbytesleft,
8850 &outptr, &outbytesleft);
8851 if (res == 0)
8852 result |= 2;
8853 iconv_close (cd_ascii_to_88591);
8854 }
8855 }
8856 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
8857 {
8858 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
8859 if (cd_88591_to_utf8 != (iconv_t)(-1))
8860 {
8861 static ICONV_CONST char input[] = "\304";
8862 static char buf[2] = { (char)0xDE, (char)0xAD };
8863 ICONV_CONST char *inptr = input;
8864 size_t inbytesleft = 1;
8865 char *outptr = buf;
8866 size_t outbytesleft = 1;
8867 size_t res = iconv (cd_88591_to_utf8,
8868 &inptr, &inbytesleft,
8869 &outptr, &outbytesleft);
8870 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
8871 result |= 4;
8872 iconv_close (cd_88591_to_utf8);
8873 }
8874 }
8875 #if 0 /* This bug could be worked around by the caller. */
8876 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
8877 {
8878 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
8879 if (cd_88591_to_utf8 != (iconv_t)(-1))
8880 {
8881 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
8882 char buf[50];
8883 ICONV_CONST char *inptr = input;
8884 size_t inbytesleft = strlen (input);
8885 char *outptr = buf;
8886 size_t outbytesleft = sizeof (buf);
8887 size_t res = iconv (cd_88591_to_utf8,
8888 &inptr, &inbytesleft,
8889 &outptr, &outbytesleft);
8890 if ((int)res > 0)
8891 result |= 8;
8892 iconv_close (cd_88591_to_utf8);
8893 }
8894 }
8895 #endif
8896 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
8897 provided. */
8898 {
8899 /* Try standardized names. */
8900 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
8901 /* Try IRIX, OSF/1 names. */
8902 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
8903 /* Try AIX names. */
8904 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
8905 /* Try HP-UX names. */
8906 iconv_t cd4 = iconv_open ("utf8", "eucJP");
8907 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
8908 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
8909 result |= 16;
8910 if (cd1 != (iconv_t)(-1))
8911 iconv_close (cd1);
8912 if (cd2 != (iconv_t)(-1))
8913 iconv_close (cd2);
8914 if (cd3 != (iconv_t)(-1))
8915 iconv_close (cd3);
8916 if (cd4 != (iconv_t)(-1))
8917 iconv_close (cd4);
8918 }
8919 return result;
8920
8921 ;
8922 return 0;
8923 }
8924 _ACEOF
8925 if ac_fn_cxx_try_run "$LINENO"; then :
8926 am_cv_func_iconv_works=yes
8927 fi
8928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8929 conftest.$ac_objext conftest.beam conftest.$ac_ext
8930 fi
8931
8932 test "$am_cv_func_iconv_works" = no || break
8933 done
8934 LIBS="$am_save_LIBS"
8935
8936 fi
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
8938 $as_echo "$am_cv_func_iconv_works" >&6; }
8939 case "$am_cv_func_iconv_works" in
8940 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
8941 *) am_func_iconv=yes ;;
8942 esac
8943 else
8944 am_func_iconv=no am_cv_lib_iconv=no
8945 fi
8946 if test "$am_func_iconv" = yes; then
8947
8948 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8949
8950 fi
8951 if test "$am_cv_lib_iconv" = yes; then
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8953 $as_echo_n "checking how to link with libiconv... " >&6; }
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8955 $as_echo "$LIBICONV" >&6; }
8956 else
8957 CPPFLAGS="$am_save_CPPFLAGS"
8958 LIBICONV=
8959 LTLIBICONV=
8960 fi
8961
8962
8963
8964 if test "$am_cv_func_iconv" = yes; then
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv is compatible with its POSIX signature" >&5
8966 $as_echo_n "checking whether iconv is compatible with its POSIX signature... " >&6; }
8967 if ${gl_cv_iconv_nonconst+:} false; then :
8968 $as_echo_n "(cached) " >&6
8969 else
8970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8971 /* end confdefs.h. */
8972
8973 #include <stdlib.h>
8974 #include <iconv.h>
8975 extern
8976 #ifdef __cplusplus
8977 "C"
8978 #endif
8979 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8980
8981 int
8982 main ()
8983 {
8984
8985 ;
8986 return 0;
8987 }
8988 _ACEOF
8989 if ac_fn_cxx_try_compile "$LINENO"; then :
8990 gl_cv_iconv_nonconst=yes
8991 else
8992 gl_cv_iconv_nonconst=no
8993 fi
8994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8995
8996 fi
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_iconv_nonconst" >&5
8998 $as_echo "$gl_cv_iconv_nonconst" >&6; }
8999 else
9000 gl_cv_iconv_nonconst=yes
9001 fi
9002 if test $gl_cv_iconv_nonconst = yes; then
9003 iconv_arg1=""
9004 else
9005 iconv_arg1="const"
9006 fi
9007
9008 cat >>confdefs.h <<_ACEOF
9009 #define ICONV_CONST $iconv_arg1
9010 _ACEOF
9011
9012
9013
9014 if test "$am_func_iconv" = yes; then
9015 if test -n "$LIBICONV"; then
9016 am_cv_func_iconv_summary='yes, in libiconv'
9017 else
9018 am_cv_func_iconv_summary='yes, in libc'
9019 fi
9020 else
9021 if test "$am_cv_func_iconv" = yes; then
9022 am_cv_func_iconv_summary='not working, consider installing GNU libiconv'
9023 else
9024 am_cv_func_iconv_summary='no, consider installing GNU libiconv'
9025 fi
9026 fi
9027
9028 ac_ext=c
9029 ac_cpp='$CPP $CPPFLAGS'
9030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9033
9034
9035 # More defines and substitutions.
9036 PACKAGE="$PACKAGE_TARNAME"
9037
9038 cat >>confdefs.h <<_ACEOF
9039 #define PACKAGE "$PACKAGE"
9040 _ACEOF
9041
9042
9043
9044 if test "x$enable_nls" != xno; then
9045 USED_CATALOGS='$(CATALOGS)'
9046 else
9047 USED_CATALOGS=
9048 fi
9049
9050
9051 # Check whether --enable-maintainer-mode was given.
9052 if test "${enable_maintainer_mode+set}" = set; then :
9053 enableval=$enable_maintainer_mode;
9054 else
9055 enable_maintainer_mode=no
9056 fi
9057
9058
9059 if test "x$enable_maintainer_mode" = xno; then
9060 MAINT='#'
9061 else
9062 MAINT=
9063 fi
9064
9065
9066 # Enable expensive internal checks
9067 is_release=
9068 if test -f $srcdir/../gcc/DEV-PHASE \
9069 && test x"`cat $srcdir/../gcc/DEV-PHASE`" != xexperimental; then
9070 is_release=yes
9071 fi
9072
9073 # Check whether --enable-checking was given.
9074 if test "${enable_checking+set}" = set; then :
9075 enableval=$enable_checking; ac_checking_flags="${enableval}"
9076 else
9077
9078 # Determine the default checks.
9079 if test x$is_release = x ; then
9080 ac_checking_flags=yes
9081 else
9082 ac_checking_flags=release
9083 fi
9084 fi
9085
9086 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
9087 for check in release $ac_checking_flags
9088 do
9089 case $check in
9090 # these set all the flags to specific states
9091 yes|all) ac_checking=1 ; ac_assert_checking=1 ; ac_valgrind_checking= ;;
9092 no|none) ac_checking= ; ac_assert_checking= ; ac_valgrind_checking= ;;
9093 release) ac_checking= ; ac_assert_checking=1 ; ac_valgrind_checking= ;;
9094 # these enable particular checks
9095 assert) ac_assert_checking=1 ;;
9096 misc) ac_checking=1 ;;
9097 valgrind) ac_valgrind_checking=1 ;;
9098 # accept
9099 *) ;;
9100 esac
9101 done
9102 IFS="$ac_save_IFS"
9103
9104 if test x$ac_checking != x ; then
9105
9106 $as_echo "#define CHECKING_P 1" >>confdefs.h
9107
9108 else
9109 $as_echo "#define CHECKING_P 0" >>confdefs.h
9110
9111 fi
9112
9113 if test x$ac_assert_checking != x ; then
9114
9115 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
9116
9117 fi
9118
9119 if test x$ac_valgrind_checking != x ; then
9120
9121 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
9122
9123 fi
9124
9125 # Check whether --enable-canonical-system-headers was given.
9126 if test "${enable_canonical_system_headers+set}" = set; then :
9127 enableval=$enable_canonical_system_headers;
9128 else
9129 enable_canonical_system_headers=yes
9130 fi
9131
9132 if test $enable_canonical_system_headers != no; then
9133
9134 $as_echo "#define ENABLE_CANONICAL_SYSTEM_HEADERS 1" >>confdefs.h
9135
9136 fi
9137
9138 case $target in
9139 i?86-* | x86_64-*)
9140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9141 /* end confdefs.h. */
9142
9143 int
9144 main ()
9145 {
9146 asm ("pcmpestri %0, %%xmm0, %%xmm1" : : "i"(0))
9147 ;
9148 return 0;
9149 }
9150 _ACEOF
9151 if ac_fn_c_try_compile "$LINENO"; then :
9152
9153 $as_echo "#define HAVE_SSE4 1" >>confdefs.h
9154
9155 fi
9156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9157 esac
9158
9159 # Enable --enable-host-shared.
9160 # Check whether --enable-host-shared was given.
9161 if test "${enable_host_shared+set}" = set; then :
9162 enableval=$enable_host_shared;
9163 fi
9164
9165
9166
9167 # Enable --enable-host-pie.
9168 # Check whether --enable-host-pie was given.
9169 if test "${enable_host_pie+set}" = set; then :
9170 enableval=$enable_host_pie;
9171 fi
9172
9173
9174
9175 if test x$enable_host_shared = xyes; then
9176 PICFLAG=-fPIC
9177 elif test x$enable_host_pie = xyes; then
9178 PICFLAG=-fPIE
9179 else
9180 PICFLAG=
9181 fi
9182
9183
9184
9185 # Enable Intel CET on Intel CET enabled host if jit is enabled.
9186 # Check whether --enable-cet was given.
9187 if test "${enable_cet+set}" = set; then :
9188 enableval=$enable_cet;
9189 case "$enableval" in
9190 yes|no|auto) ;;
9191 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
9192 esac
9193
9194 else
9195 enable_cet=auto
9196 fi
9197
9198
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
9200 $as_echo_n "checking for CET support... " >&6; }
9201
9202 case "$host" in
9203 i[34567]86-*-linux* | x86_64-*-linux*)
9204 may_have_cet=yes
9205 cet_save_CFLAGS="$CFLAGS"
9206 CFLAGS="$CFLAGS -fcf-protection"
9207 case "$enable_cet" in
9208 auto)
9209 # Check if target supports multi-byte NOPs
9210 # and if compiler and assembler support CET.
9211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9212 /* end confdefs.h. */
9213
9214 int
9215 main ()
9216 {
9217
9218 #if !defined(__SSE2__)
9219 #error target does not support multi-byte NOPs
9220 #else
9221 asm ("setssbsy");
9222 #endif
9223
9224 ;
9225 return 0;
9226 }
9227 _ACEOF
9228 if ac_fn_c_try_compile "$LINENO"; then :
9229 enable_cet=yes
9230 else
9231 enable_cet=no
9232 fi
9233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9234 ;;
9235 yes)
9236 # Check if compiler and assembler support CET.
9237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9238 /* end confdefs.h. */
9239
9240 int
9241 main ()
9242 {
9243 asm ("setssbsy");
9244 ;
9245 return 0;
9246 }
9247 _ACEOF
9248 if ac_fn_c_try_compile "$LINENO"; then :
9249 support_cet=yes
9250 else
9251 support_cet=no
9252 fi
9253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9254 if test $support_cet = "no"; then
9255 if test x$enable_bootstrap != xno \
9256 && test -z "${with_build_subdir}" \
9257 && (test ! -f ../stage_current \
9258 || test `cat ../stage_current` != "stage1"); then
9259 # Require CET support only for the final GCC build.
9260 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
9261 else
9262 # Don't enable CET without CET support for non-bootstrap
9263 # build, in stage1 nor for build support.
9264 enable_cet=no
9265 fi
9266 fi
9267 ;;
9268 esac
9269 CFLAGS="$cet_save_CFLAGS"
9270 ;;
9271 *)
9272 may_have_cet=no
9273 enable_cet=no
9274 ;;
9275 esac
9276
9277 cet_save_CFLAGS="$CFLAGS"
9278 CFLAGS="$CFLAGS -fcf-protection=none"
9279 cet_save_LDFLAGS="$LDFLAGS"
9280 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
9281 if test x$may_have_cet = xyes; then
9282 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
9283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9284 /* end confdefs.h. */
9285
9286 int
9287 main ()
9288 {
9289 return 0;
9290 ;
9291 return 0;
9292 }
9293 _ACEOF
9294 if ac_fn_c_try_link "$LINENO"; then :
9295 may_have_cet=yes
9296 else
9297 may_have_cet=no
9298 fi
9299 rm -f core conftest.err conftest.$ac_objext \
9300 conftest$ac_exeext conftest.$ac_ext
9301 fi
9302
9303 if test x$may_have_cet = xyes; then
9304 if test x$cross_compiling = xno; then
9305 if test "$cross_compiling" = yes; then :
9306 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9308 as_fn_error $? "cannot run test program while cross compiling
9309 See \`config.log' for more details" "$LINENO" 5; }
9310 else
9311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9312 /* end confdefs.h. */
9313
9314 int
9315 main ()
9316 {
9317 asm ("endbr32");
9318 return 0;
9319 }
9320
9321 _ACEOF
9322 if ac_fn_c_try_run "$LINENO"; then :
9323 have_multi_byte_nop=yes
9324 else
9325 have_multi_byte_nop=no
9326 fi
9327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9328 conftest.$ac_objext conftest.beam conftest.$ac_ext
9329 fi
9330
9331 have_cet=no
9332 if test x$have_multi_byte_nop = xyes; then
9333 if test "$cross_compiling" = yes; then :
9334 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9335 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9336 as_fn_error $? "cannot run test program while cross compiling
9337 See \`config.log' for more details" "$LINENO" 5; }
9338 else
9339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9340 /* end confdefs.h. */
9341
9342 static void
9343 foo (void)
9344 {
9345 }
9346
9347 static void
9348 __attribute__ ((noinline, noclone))
9349 xxx (void (*f) (void))
9350 {
9351 f ();
9352 }
9353
9354 static void
9355 __attribute__ ((noinline, noclone))
9356 bar (void)
9357 {
9358 xxx (foo);
9359 }
9360
9361 int
9362 main ()
9363 {
9364 bar ();
9365 return 0;
9366 }
9367
9368 _ACEOF
9369 if ac_fn_c_try_run "$LINENO"; then :
9370 have_cet=no
9371 else
9372 have_cet=yes
9373 fi
9374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9375 conftest.$ac_objext conftest.beam conftest.$ac_ext
9376 fi
9377
9378 fi
9379 if test x$enable_cet = xno -a x$have_cet = xyes; then
9380 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
9381 fi
9382 fi
9383 else
9384 # Enable CET in cross compiler if possible so that it will run on both
9385 # CET and non-CET hosts.
9386 have_cet=yes
9387 fi
9388 if test x$enable_cet = xyes; then
9389 CET_HOST_FLAGS="-fcf-protection"
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9391 $as_echo "yes" >&6; }
9392 else
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9394 $as_echo "no" >&6; }
9395 fi
9396 CFLAGS="$cet_save_CFLAGS"
9397 LDFLAGS="$cet_save_LDFLAGS"
9398
9399 case x$enable_languages in
9400 *jit*)
9401 ;;
9402 *)
9403 CET_HOST_FLAGS=
9404 ;;
9405 esac
9406
9407
9408 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
9409 if test "x$ac_cv_header_valgrind_h" = xyes; then :
9410 have_valgrind_h=yes
9411 else
9412 have_valgrind_h=no
9413 fi
9414
9415
9416
9417 # It is certainly possible that there's valgrind but no valgrind.h.
9418 # GCC relies on making annotations so we must have both.
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
9420 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
9421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9422 /* end confdefs.h. */
9423 #include <valgrind/memcheck.h>
9424 #ifndef VALGRIND_DISCARD
9425 #error VALGRIND_DISCARD not defined
9426 #endif
9427 _ACEOF
9428 if ac_fn_c_try_cpp "$LINENO"; then :
9429 gcc_cv_header_valgrind_memcheck_h=yes
9430 else
9431 gcc_cv_header_valgrind_memcheck_h=no
9432 fi
9433 rm -f conftest.err conftest.i conftest.$ac_ext
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
9435 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
9437 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
9438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9439 /* end confdefs.h. */
9440 #include <memcheck.h>
9441 #ifndef VALGRIND_DISCARD
9442 #error VALGRIND_DISCARD not defined
9443 #endif
9444 _ACEOF
9445 if ac_fn_c_try_cpp "$LINENO"; then :
9446 gcc_cv_header_memcheck_h=yes
9447 else
9448 gcc_cv_header_memcheck_h=no
9449 fi
9450 rm -f conftest.err conftest.i conftest.$ac_ext
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
9452 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
9453 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
9454
9455 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
9456
9457 fi
9458 if test $gcc_cv_header_memcheck_h = yes; then
9459
9460 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
9461
9462 fi
9463
9464 # Check whether --enable-valgrind-annotations was given.
9465 if test "${enable_valgrind_annotations+set}" = set; then :
9466 enableval=$enable_valgrind_annotations;
9467 else
9468 enable_valgrind_annotations=no
9469 fi
9470
9471 if test x$enable_valgrind_annotations != xno \
9472 || test x$ac_valgrind_checking != x; then
9473 if (test $have_valgrind_h = no \
9474 && test $gcc_cv_header_memcheck_h = no \
9475 && test $gcc_cv_header_valgrind_memcheck_h = no); then
9476 as_fn_error $? "*** valgrind annotations requested, but" "$LINENO" 5
9477 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
9478 fi
9479
9480 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
9481
9482 fi
9483
9484 # Output.
9485
9486 ac_config_headers="$ac_config_headers config.h:config.in"
9487
9488 ac_config_files="$ac_config_files Makefile"
9489
9490 cat >confcache <<\_ACEOF
9491 # This file is a shell script that caches the results of configure
9492 # tests run on this system so they can be shared between configure
9493 # scripts and configure runs, see configure's option --config-cache.
9494 # It is not useful on other systems. If it contains results you don't
9495 # want to keep, you may remove or edit it.
9496 #
9497 # config.status only pays attention to the cache file if you give it
9498 # the --recheck option to rerun configure.
9499 #
9500 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9501 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9502 # following values.
9503
9504 _ACEOF
9505
9506 # The following way of writing the cache mishandles newlines in values,
9507 # but we know of no workaround that is simple, portable, and efficient.
9508 # So, we kill variables containing newlines.
9509 # Ultrix sh set writes to stderr and can't be redirected directly,
9510 # and sets the high bit in the cache file unless we assign to the vars.
9511 (
9512 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9513 eval ac_val=\$$ac_var
9514 case $ac_val in #(
9515 *${as_nl}*)
9516 case $ac_var in #(
9517 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9518 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9519 esac
9520 case $ac_var in #(
9521 _ | IFS | as_nl) ;; #(
9522 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9523 *) { eval $ac_var=; unset $ac_var;} ;;
9524 esac ;;
9525 esac
9526 done
9527
9528 (set) 2>&1 |
9529 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9530 *${as_nl}ac_space=\ *)
9531 # `set' does not quote correctly, so add quotes: double-quote
9532 # substitution turns \\\\ into \\, and sed turns \\ into \.
9533 sed -n \
9534 "s/'/'\\\\''/g;
9535 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9536 ;; #(
9537 *)
9538 # `set' quotes correctly as required by POSIX, so do not add quotes.
9539 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9540 ;;
9541 esac |
9542 sort
9543 ) |
9544 sed '
9545 /^ac_cv_env_/b end
9546 t clear
9547 :clear
9548 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9549 t end
9550 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9551 :end' >>confcache
9552 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9553 if test -w "$cache_file"; then
9554 if test "x$cache_file" != "x/dev/null"; then
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9556 $as_echo "$as_me: updating cache $cache_file" >&6;}
9557 if test ! -f "$cache_file" || test -h "$cache_file"; then
9558 cat confcache >"$cache_file"
9559 else
9560 case $cache_file in #(
9561 */* | ?:*)
9562 mv -f confcache "$cache_file"$$ &&
9563 mv -f "$cache_file"$$ "$cache_file" ;; #(
9564 *)
9565 mv -f confcache "$cache_file" ;;
9566 esac
9567 fi
9568 fi
9569 else
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9571 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9572 fi
9573 fi
9574 rm -f confcache
9575
9576 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9577 # Let make expand exec_prefix.
9578 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9579
9580 DEFS=-DHAVE_CONFIG_H
9581
9582 ac_libobjs=
9583 ac_ltlibobjs=
9584 U=
9585 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9586 # 1. Remove the extension, and $U if already installed.
9587 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9588 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9589 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9590 # will be set to the directory where LIBOBJS objects are built.
9591 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9592 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9593 done
9594 LIBOBJS=$ac_libobjs
9595
9596 LTLIBOBJS=$ac_ltlibobjs
9597
9598
9599
9600
9601 : "${CONFIG_STATUS=./config.status}"
9602 ac_write_fail=0
9603 ac_clean_files_save=$ac_clean_files
9604 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9606 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9607 as_write_fail=0
9608 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9609 #! $SHELL
9610 # Generated by $as_me.
9611 # Run this file to recreate the current configuration.
9612 # Compiler output produced by configure, useful for debugging
9613 # configure, is in config.log if it exists.
9614
9615 debug=false
9616 ac_cs_recheck=false
9617 ac_cs_silent=false
9618
9619 SHELL=\${CONFIG_SHELL-$SHELL}
9620 export SHELL
9621 _ASEOF
9622 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9623 ## -------------------- ##
9624 ## M4sh Initialization. ##
9625 ## -------------------- ##
9626
9627 # Be more Bourne compatible
9628 DUALCASE=1; export DUALCASE # for MKS sh
9629 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9630 emulate sh
9631 NULLCMD=:
9632 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9633 # is contrary to our usage. Disable this feature.
9634 alias -g '${1+"$@"}'='"$@"'
9635 setopt NO_GLOB_SUBST
9636 else
9637 case `(set -o) 2>/dev/null` in #(
9638 *posix*) :
9639 set -o posix ;; #(
9640 *) :
9641 ;;
9642 esac
9643 fi
9644
9645
9646 as_nl='
9647 '
9648 export as_nl
9649 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9650 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9651 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9652 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9653 # Prefer a ksh shell builtin over an external printf program on Solaris,
9654 # but without wasting forks for bash or zsh.
9655 if test -z "$BASH_VERSION$ZSH_VERSION" \
9656 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9657 as_echo='print -r --'
9658 as_echo_n='print -rn --'
9659 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9660 as_echo='printf %s\n'
9661 as_echo_n='printf %s'
9662 else
9663 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9664 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9665 as_echo_n='/usr/ucb/echo -n'
9666 else
9667 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9668 as_echo_n_body='eval
9669 arg=$1;
9670 case $arg in #(
9671 *"$as_nl"*)
9672 expr "X$arg" : "X\\(.*\\)$as_nl";
9673 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9674 esac;
9675 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9676 '
9677 export as_echo_n_body
9678 as_echo_n='sh -c $as_echo_n_body as_echo'
9679 fi
9680 export as_echo_body
9681 as_echo='sh -c $as_echo_body as_echo'
9682 fi
9683
9684 # The user is always right.
9685 if test "${PATH_SEPARATOR+set}" != set; then
9686 PATH_SEPARATOR=:
9687 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9688 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9689 PATH_SEPARATOR=';'
9690 }
9691 fi
9692
9693
9694 # IFS
9695 # We need space, tab and new line, in precisely that order. Quoting is
9696 # there to prevent editors from complaining about space-tab.
9697 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9698 # splitting by setting IFS to empty value.)
9699 IFS=" "" $as_nl"
9700
9701 # Find who we are. Look in the path if we contain no directory separator.
9702 as_myself=
9703 case $0 in #((
9704 *[\\/]* ) as_myself=$0 ;;
9705 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9706 for as_dir in $PATH
9707 do
9708 IFS=$as_save_IFS
9709 test -z "$as_dir" && as_dir=.
9710 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9711 done
9712 IFS=$as_save_IFS
9713
9714 ;;
9715 esac
9716 # We did not find ourselves, most probably we were run as `sh COMMAND'
9717 # in which case we are not to be found in the path.
9718 if test "x$as_myself" = x; then
9719 as_myself=$0
9720 fi
9721 if test ! -f "$as_myself"; then
9722 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9723 exit 1
9724 fi
9725
9726 # Unset variables that we do not need and which cause bugs (e.g. in
9727 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9728 # suppresses any "Segmentation fault" message there. '((' could
9729 # trigger a bug in pdksh 5.2.14.
9730 for as_var in BASH_ENV ENV MAIL MAILPATH
9731 do eval test x\${$as_var+set} = xset \
9732 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9733 done
9734 PS1='$ '
9735 PS2='> '
9736 PS4='+ '
9737
9738 # NLS nuisances.
9739 LC_ALL=C
9740 export LC_ALL
9741 LANGUAGE=C
9742 export LANGUAGE
9743
9744 # CDPATH.
9745 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9746
9747
9748 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9749 # ----------------------------------------
9750 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9751 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9752 # script with STATUS, using 1 if that was 0.
9753 as_fn_error ()
9754 {
9755 as_status=$1; test $as_status -eq 0 && as_status=1
9756 if test "$4"; then
9757 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9758 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9759 fi
9760 $as_echo "$as_me: error: $2" >&2
9761 as_fn_exit $as_status
9762 } # as_fn_error
9763
9764
9765 # as_fn_set_status STATUS
9766 # -----------------------
9767 # Set $? to STATUS, without forking.
9768 as_fn_set_status ()
9769 {
9770 return $1
9771 } # as_fn_set_status
9772
9773 # as_fn_exit STATUS
9774 # -----------------
9775 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9776 as_fn_exit ()
9777 {
9778 set +e
9779 as_fn_set_status $1
9780 exit $1
9781 } # as_fn_exit
9782
9783 # as_fn_unset VAR
9784 # ---------------
9785 # Portably unset VAR.
9786 as_fn_unset ()
9787 {
9788 { eval $1=; unset $1;}
9789 }
9790 as_unset=as_fn_unset
9791 # as_fn_append VAR VALUE
9792 # ----------------------
9793 # Append the text in VALUE to the end of the definition contained in VAR. Take
9794 # advantage of any shell optimizations that allow amortized linear growth over
9795 # repeated appends, instead of the typical quadratic growth present in naive
9796 # implementations.
9797 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9798 eval 'as_fn_append ()
9799 {
9800 eval $1+=\$2
9801 }'
9802 else
9803 as_fn_append ()
9804 {
9805 eval $1=\$$1\$2
9806 }
9807 fi # as_fn_append
9808
9809 # as_fn_arith ARG...
9810 # ------------------
9811 # Perform arithmetic evaluation on the ARGs, and store the result in the
9812 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9813 # must be portable across $(()) and expr.
9814 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9815 eval 'as_fn_arith ()
9816 {
9817 as_val=$(( $* ))
9818 }'
9819 else
9820 as_fn_arith ()
9821 {
9822 as_val=`expr "$@" || test $? -eq 1`
9823 }
9824 fi # as_fn_arith
9825
9826
9827 if expr a : '\(a\)' >/dev/null 2>&1 &&
9828 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9829 as_expr=expr
9830 else
9831 as_expr=false
9832 fi
9833
9834 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9835 as_basename=basename
9836 else
9837 as_basename=false
9838 fi
9839
9840 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9841 as_dirname=dirname
9842 else
9843 as_dirname=false
9844 fi
9845
9846 as_me=`$as_basename -- "$0" ||
9847 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9848 X"$0" : 'X\(//\)$' \| \
9849 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9850 $as_echo X/"$0" |
9851 sed '/^.*\/\([^/][^/]*\)\/*$/{
9852 s//\1/
9853 q
9854 }
9855 /^X\/\(\/\/\)$/{
9856 s//\1/
9857 q
9858 }
9859 /^X\/\(\/\).*/{
9860 s//\1/
9861 q
9862 }
9863 s/.*/./; q'`
9864
9865 # Avoid depending upon Character Ranges.
9866 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9867 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9868 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9869 as_cr_digits='0123456789'
9870 as_cr_alnum=$as_cr_Letters$as_cr_digits
9871
9872 ECHO_C= ECHO_N= ECHO_T=
9873 case `echo -n x` in #(((((
9874 -n*)
9875 case `echo 'xy\c'` in
9876 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9877 xy) ECHO_C='\c';;
9878 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9879 ECHO_T=' ';;
9880 esac;;
9881 *)
9882 ECHO_N='-n';;
9883 esac
9884
9885 rm -f conf$$ conf$$.exe conf$$.file
9886 if test -d conf$$.dir; then
9887 rm -f conf$$.dir/conf$$.file
9888 else
9889 rm -f conf$$.dir
9890 mkdir conf$$.dir 2>/dev/null
9891 fi
9892 if (echo >conf$$.file) 2>/dev/null; then
9893 if ln -s conf$$.file conf$$ 2>/dev/null; then
9894 as_ln_s='ln -s'
9895 # ... but there are two gotchas:
9896 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9897 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9898 # In both cases, we have to default to `cp -pR'.
9899 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9900 as_ln_s='cp -pR'
9901 elif ln conf$$.file conf$$ 2>/dev/null; then
9902 as_ln_s=ln
9903 else
9904 as_ln_s='cp -pR'
9905 fi
9906 else
9907 as_ln_s='cp -pR'
9908 fi
9909 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9910 rmdir conf$$.dir 2>/dev/null
9911
9912
9913 # as_fn_mkdir_p
9914 # -------------
9915 # Create "$as_dir" as a directory, including parents if necessary.
9916 as_fn_mkdir_p ()
9917 {
9918
9919 case $as_dir in #(
9920 -*) as_dir=./$as_dir;;
9921 esac
9922 test -d "$as_dir" || eval $as_mkdir_p || {
9923 as_dirs=
9924 while :; do
9925 case $as_dir in #(
9926 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9927 *) as_qdir=$as_dir;;
9928 esac
9929 as_dirs="'$as_qdir' $as_dirs"
9930 as_dir=`$as_dirname -- "$as_dir" ||
9931 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9932 X"$as_dir" : 'X\(//\)[^/]' \| \
9933 X"$as_dir" : 'X\(//\)$' \| \
9934 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9935 $as_echo X"$as_dir" |
9936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9937 s//\1/
9938 q
9939 }
9940 /^X\(\/\/\)[^/].*/{
9941 s//\1/
9942 q
9943 }
9944 /^X\(\/\/\)$/{
9945 s//\1/
9946 q
9947 }
9948 /^X\(\/\).*/{
9949 s//\1/
9950 q
9951 }
9952 s/.*/./; q'`
9953 test -d "$as_dir" && break
9954 done
9955 test -z "$as_dirs" || eval "mkdir $as_dirs"
9956 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9957
9958
9959 } # as_fn_mkdir_p
9960 if mkdir -p . 2>/dev/null; then
9961 as_mkdir_p='mkdir -p "$as_dir"'
9962 else
9963 test -d ./-p && rmdir ./-p
9964 as_mkdir_p=false
9965 fi
9966
9967
9968 # as_fn_executable_p FILE
9969 # -----------------------
9970 # Test if FILE is an executable regular file.
9971 as_fn_executable_p ()
9972 {
9973 test -f "$1" && test -x "$1"
9974 } # as_fn_executable_p
9975 as_test_x='test -x'
9976 as_executable_p=as_fn_executable_p
9977
9978 # Sed expression to map a string onto a valid CPP name.
9979 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9980
9981 # Sed expression to map a string onto a valid variable name.
9982 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9983
9984
9985 exec 6>&1
9986 ## ----------------------------------- ##
9987 ## Main body of $CONFIG_STATUS script. ##
9988 ## ----------------------------------- ##
9989 _ASEOF
9990 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9991
9992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9993 # Save the log message, to keep $0 and so on meaningful, and to
9994 # report actual input values of CONFIG_FILES etc. instead of their
9995 # values after options handling.
9996 ac_log="
9997 This file was extended by cpplib $as_me , which was
9998 generated by GNU Autoconf 2.69. Invocation command line was
9999
10000 CONFIG_FILES = $CONFIG_FILES
10001 CONFIG_HEADERS = $CONFIG_HEADERS
10002 CONFIG_LINKS = $CONFIG_LINKS
10003 CONFIG_COMMANDS = $CONFIG_COMMANDS
10004 $ $0 $@
10005
10006 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10007 "
10008
10009 _ACEOF
10010
10011 case $ac_config_files in *"
10012 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10013 esac
10014
10015 case $ac_config_headers in *"
10016 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10017 esac
10018
10019
10020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10021 # Files that config.status was made for.
10022 config_files="$ac_config_files"
10023 config_headers="$ac_config_headers"
10024 config_commands="$ac_config_commands"
10025
10026 _ACEOF
10027
10028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10029 ac_cs_usage="\
10030 \`$as_me' instantiates files and other configuration actions
10031 from templates according to the current configuration. Unless the files
10032 and actions are specified as TAGs, all are instantiated by default.
10033
10034 Usage: $0 [OPTION]... [TAG]...
10035
10036 -h, --help print this help, then exit
10037 -V, --version print version number and configuration settings, then exit
10038 --config print configuration, then exit
10039 -q, --quiet, --silent
10040 do not print progress messages
10041 -d, --debug don't remove temporary files
10042 --recheck update $as_me by reconfiguring in the same conditions
10043 --file=FILE[:TEMPLATE]
10044 instantiate the configuration file FILE
10045 --header=FILE[:TEMPLATE]
10046 instantiate the configuration header FILE
10047
10048 Configuration files:
10049 $config_files
10050
10051 Configuration headers:
10052 $config_headers
10053
10054 Configuration commands:
10055 $config_commands
10056
10057 Report bugs to <gcc-bugs@gcc.gnu.org>."
10058
10059 _ACEOF
10060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10061 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10062 ac_cs_version="\\
10063 cpplib config.status
10064 configured by $0, generated by GNU Autoconf 2.69,
10065 with options \\"\$ac_cs_config\\"
10066
10067 Copyright (C) 2012 Free Software Foundation, Inc.
10068 This config.status script is free software; the Free Software Foundation
10069 gives unlimited permission to copy, distribute and modify it."
10070
10071 ac_pwd='$ac_pwd'
10072 srcdir='$srcdir'
10073 INSTALL='$INSTALL'
10074 test -n "\$AWK" || AWK=awk
10075 _ACEOF
10076
10077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10078 # The default lists apply if the user does not specify any file.
10079 ac_need_defaults=:
10080 while test $# != 0
10081 do
10082 case $1 in
10083 --*=?*)
10084 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10085 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10086 ac_shift=:
10087 ;;
10088 --*=)
10089 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10090 ac_optarg=
10091 ac_shift=:
10092 ;;
10093 *)
10094 ac_option=$1
10095 ac_optarg=$2
10096 ac_shift=shift
10097 ;;
10098 esac
10099
10100 case $ac_option in
10101 # Handling of the options.
10102 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10103 ac_cs_recheck=: ;;
10104 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10105 $as_echo "$ac_cs_version"; exit ;;
10106 --config | --confi | --conf | --con | --co | --c )
10107 $as_echo "$ac_cs_config"; exit ;;
10108 --debug | --debu | --deb | --de | --d | -d )
10109 debug=: ;;
10110 --file | --fil | --fi | --f )
10111 $ac_shift
10112 case $ac_optarg in
10113 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10114 '') as_fn_error $? "missing file argument" ;;
10115 esac
10116 as_fn_append CONFIG_FILES " '$ac_optarg'"
10117 ac_need_defaults=false;;
10118 --header | --heade | --head | --hea )
10119 $ac_shift
10120 case $ac_optarg in
10121 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10122 esac
10123 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10124 ac_need_defaults=false;;
10125 --he | --h)
10126 # Conflict between --help and --header
10127 as_fn_error $? "ambiguous option: \`$1'
10128 Try \`$0 --help' for more information.";;
10129 --help | --hel | -h )
10130 $as_echo "$ac_cs_usage"; exit ;;
10131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10132 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10133 ac_cs_silent=: ;;
10134
10135 # This is an error.
10136 -*) as_fn_error $? "unrecognized option: \`$1'
10137 Try \`$0 --help' for more information." ;;
10138
10139 *) as_fn_append ac_config_targets " $1"
10140 ac_need_defaults=false ;;
10141
10142 esac
10143 shift
10144 done
10145
10146 ac_configure_extra_args=
10147
10148 if $ac_cs_silent; then
10149 exec 6>/dev/null
10150 ac_configure_extra_args="$ac_configure_extra_args --silent"
10151 fi
10152
10153 _ACEOF
10154 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10155 if \$ac_cs_recheck; then
10156 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10157 shift
10158 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10159 CONFIG_SHELL='$SHELL'
10160 export CONFIG_SHELL
10161 exec "\$@"
10162 fi
10163
10164 _ACEOF
10165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10166 exec 5>>config.log
10167 {
10168 echo
10169 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10170 ## Running $as_me. ##
10171 _ASBOX
10172 $as_echo "$ac_log"
10173 } >&5
10174
10175 _ACEOF
10176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10177 #
10178 # INIT-COMMANDS
10179 #
10180 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
10181 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
10182 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
10183 # from automake.
10184 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
10185 # Capture the value of LINGUAS because we need it to compute CATALOGS.
10186 LINGUAS="${LINGUAS-%UNSET%}"
10187
10188
10189 _ACEOF
10190
10191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10192
10193 # Handling of arguments.
10194 for ac_config_target in $ac_config_targets
10195 do
10196 case $ac_config_target in
10197 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
10198 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10199 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
10200 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10201
10202 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10203 esac
10204 done
10205
10206
10207 # If the user did not use the arguments to specify the items to instantiate,
10208 # then the envvar interface is used. Set only those that are not.
10209 # We use the long form for the default assignment because of an extremely
10210 # bizarre bug on SunOS 4.1.3.
10211 if $ac_need_defaults; then
10212 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10213 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10214 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10215 fi
10216
10217 # Have a temporary directory for convenience. Make it in the build tree
10218 # simply because there is no reason against having it here, and in addition,
10219 # creating and moving files from /tmp can sometimes cause problems.
10220 # Hook for its removal unless debugging.
10221 # Note that there is a small window in which the directory will not be cleaned:
10222 # after its creation but before its name has been assigned to `$tmp'.
10223 $debug ||
10224 {
10225 tmp= ac_tmp=
10226 trap 'exit_status=$?
10227 : "${ac_tmp:=$tmp}"
10228 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10229 ' 0
10230 trap 'as_fn_exit 1' 1 2 13 15
10231 }
10232 # Create a (secure) tmp directory for tmp files.
10233
10234 {
10235 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10236 test -d "$tmp"
10237 } ||
10238 {
10239 tmp=./conf$$-$RANDOM
10240 (umask 077 && mkdir "$tmp")
10241 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10242 ac_tmp=$tmp
10243
10244 # Set up the scripts for CONFIG_FILES section.
10245 # No need to generate them if there are no CONFIG_FILES.
10246 # This happens for instance with `./config.status config.h'.
10247 if test -n "$CONFIG_FILES"; then
10248
10249
10250 ac_cr=`echo X | tr X '\015'`
10251 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10252 # But we know of no other shell where ac_cr would be empty at this
10253 # point, so we can use a bashism as a fallback.
10254 if test "x$ac_cr" = x; then
10255 eval ac_cr=\$\'\\r\'
10256 fi
10257 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10258 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10259 ac_cs_awk_cr='\\r'
10260 else
10261 ac_cs_awk_cr=$ac_cr
10262 fi
10263
10264 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10265 _ACEOF
10266
10267
10268 {
10269 echo "cat >conf$$subs.awk <<_ACEOF" &&
10270 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10271 echo "_ACEOF"
10272 } >conf$$subs.sh ||
10273 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10274 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10275 ac_delim='%!_!# '
10276 for ac_last_try in false false false false false :; do
10277 . ./conf$$subs.sh ||
10278 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10279
10280 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10281 if test $ac_delim_n = $ac_delim_num; then
10282 break
10283 elif $ac_last_try; then
10284 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10285 else
10286 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10287 fi
10288 done
10289 rm -f conf$$subs.sh
10290
10291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10292 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10293 _ACEOF
10294 sed -n '
10295 h
10296 s/^/S["/; s/!.*/"]=/
10297 p
10298 g
10299 s/^[^!]*!//
10300 :repl
10301 t repl
10302 s/'"$ac_delim"'$//
10303 t delim
10304 :nl
10305 h
10306 s/\(.\{148\}\)..*/\1/
10307 t more1
10308 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10309 p
10310 n
10311 b repl
10312 :more1
10313 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10314 p
10315 g
10316 s/.\{148\}//
10317 t nl
10318 :delim
10319 h
10320 s/\(.\{148\}\)..*/\1/
10321 t more2
10322 s/["\\]/\\&/g; s/^/"/; s/$/"/
10323 p
10324 b
10325 :more2
10326 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10327 p
10328 g
10329 s/.\{148\}//
10330 t delim
10331 ' <conf$$subs.awk | sed '
10332 /^[^""]/{
10333 N
10334 s/\n//
10335 }
10336 ' >>$CONFIG_STATUS || ac_write_fail=1
10337 rm -f conf$$subs.awk
10338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10339 _ACAWK
10340 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10341 for (key in S) S_is_set[key] = 1
10342 FS = "\a"
10343
10344 }
10345 {
10346 line = $ 0
10347 nfields = split(line, field, "@")
10348 substed = 0
10349 len = length(field[1])
10350 for (i = 2; i < nfields; i++) {
10351 key = field[i]
10352 keylen = length(key)
10353 if (S_is_set[key]) {
10354 value = S[key]
10355 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10356 len += length(value) + length(field[++i])
10357 substed = 1
10358 } else
10359 len += 1 + keylen
10360 }
10361
10362 print line
10363 }
10364
10365 _ACAWK
10366 _ACEOF
10367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10368 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10369 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10370 else
10371 cat
10372 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10373 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10374 _ACEOF
10375
10376 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10377 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10378 # trailing colons and then remove the whole line if VPATH becomes empty
10379 # (actually we leave an empty line to preserve line numbers).
10380 if test "x$srcdir" = x.; then
10381 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10382 h
10383 s///
10384 s/^/:/
10385 s/[ ]*$/:/
10386 s/:\$(srcdir):/:/g
10387 s/:\${srcdir}:/:/g
10388 s/:@srcdir@:/:/g
10389 s/^:*//
10390 s/:*$//
10391 x
10392 s/\(=[ ]*\).*/\1/
10393 G
10394 s/\n//
10395 s/^[^=]*=[ ]*$//
10396 }'
10397 fi
10398
10399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10400 fi # test -n "$CONFIG_FILES"
10401
10402 # Set up the scripts for CONFIG_HEADERS section.
10403 # No need to generate them if there are no CONFIG_HEADERS.
10404 # This happens for instance with `./config.status Makefile'.
10405 if test -n "$CONFIG_HEADERS"; then
10406 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10407 BEGIN {
10408 _ACEOF
10409
10410 # Transform confdefs.h into an awk script `defines.awk', embedded as
10411 # here-document in config.status, that substitutes the proper values into
10412 # config.h.in to produce config.h.
10413
10414 # Create a delimiter string that does not exist in confdefs.h, to ease
10415 # handling of long lines.
10416 ac_delim='%!_!# '
10417 for ac_last_try in false false :; do
10418 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10419 if test -z "$ac_tt"; then
10420 break
10421 elif $ac_last_try; then
10422 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10423 else
10424 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10425 fi
10426 done
10427
10428 # For the awk script, D is an array of macro values keyed by name,
10429 # likewise P contains macro parameters if any. Preserve backslash
10430 # newline sequences.
10431
10432 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10433 sed -n '
10434 s/.\{148\}/&'"$ac_delim"'/g
10435 t rset
10436 :rset
10437 s/^[ ]*#[ ]*define[ ][ ]*/ /
10438 t def
10439 d
10440 :def
10441 s/\\$//
10442 t bsnl
10443 s/["\\]/\\&/g
10444 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10445 D["\1"]=" \3"/p
10446 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10447 d
10448 :bsnl
10449 s/["\\]/\\&/g
10450 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10451 D["\1"]=" \3\\\\\\n"\\/p
10452 t cont
10453 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10454 t cont
10455 d
10456 :cont
10457 n
10458 s/.\{148\}/&'"$ac_delim"'/g
10459 t clear
10460 :clear
10461 s/\\$//
10462 t bsnlc
10463 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10464 d
10465 :bsnlc
10466 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10467 b cont
10468 ' <confdefs.h | sed '
10469 s/'"$ac_delim"'/"\\\
10470 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10471
10472 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10473 for (key in D) D_is_set[key] = 1
10474 FS = "\a"
10475 }
10476 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10477 line = \$ 0
10478 split(line, arg, " ")
10479 if (arg[1] == "#") {
10480 defundef = arg[2]
10481 mac1 = arg[3]
10482 } else {
10483 defundef = substr(arg[1], 2)
10484 mac1 = arg[2]
10485 }
10486 split(mac1, mac2, "(") #)
10487 macro = mac2[1]
10488 prefix = substr(line, 1, index(line, defundef) - 1)
10489 if (D_is_set[macro]) {
10490 # Preserve the white space surrounding the "#".
10491 print prefix "define", macro P[macro] D[macro]
10492 next
10493 } else {
10494 # Replace #undef with comments. This is necessary, for example,
10495 # in the case of _POSIX_SOURCE, which is predefined and required
10496 # on some systems where configure will not decide to define it.
10497 if (defundef == "undef") {
10498 print "/*", prefix defundef, macro, "*/"
10499 next
10500 }
10501 }
10502 }
10503 { print }
10504 _ACAWK
10505 _ACEOF
10506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10507 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10508 fi # test -n "$CONFIG_HEADERS"
10509
10510
10511 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10512 shift
10513 for ac_tag
10514 do
10515 case $ac_tag in
10516 :[FHLC]) ac_mode=$ac_tag; continue;;
10517 esac
10518 case $ac_mode$ac_tag in
10519 :[FHL]*:*);;
10520 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10521 :[FH]-) ac_tag=-:-;;
10522 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10523 esac
10524 ac_save_IFS=$IFS
10525 IFS=:
10526 set x $ac_tag
10527 IFS=$ac_save_IFS
10528 shift
10529 ac_file=$1
10530 shift
10531
10532 case $ac_mode in
10533 :L) ac_source=$1;;
10534 :[FH])
10535 ac_file_inputs=
10536 for ac_f
10537 do
10538 case $ac_f in
10539 -) ac_f="$ac_tmp/stdin";;
10540 *) # Look for the file first in the build tree, then in the source tree
10541 # (if the path is not absolute). The absolute path cannot be DOS-style,
10542 # because $ac_f cannot contain `:'.
10543 test -f "$ac_f" ||
10544 case $ac_f in
10545 [\\/$]*) false;;
10546 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10547 esac ||
10548 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10549 esac
10550 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10551 as_fn_append ac_file_inputs " '$ac_f'"
10552 done
10553
10554 # Let's still pretend it is `configure' which instantiates (i.e., don't
10555 # use $as_me), people would be surprised to read:
10556 # /* config.h. Generated by config.status. */
10557 configure_input='Generated from '`
10558 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10559 `' by configure.'
10560 if test x"$ac_file" != x-; then
10561 configure_input="$ac_file. $configure_input"
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10563 $as_echo "$as_me: creating $ac_file" >&6;}
10564 fi
10565 # Neutralize special characters interpreted by sed in replacement strings.
10566 case $configure_input in #(
10567 *\&* | *\|* | *\\* )
10568 ac_sed_conf_input=`$as_echo "$configure_input" |
10569 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10570 *) ac_sed_conf_input=$configure_input;;
10571 esac
10572
10573 case $ac_tag in
10574 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10575 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10576 esac
10577 ;;
10578 esac
10579
10580 ac_dir=`$as_dirname -- "$ac_file" ||
10581 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10582 X"$ac_file" : 'X\(//\)[^/]' \| \
10583 X"$ac_file" : 'X\(//\)$' \| \
10584 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10585 $as_echo X"$ac_file" |
10586 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10587 s//\1/
10588 q
10589 }
10590 /^X\(\/\/\)[^/].*/{
10591 s//\1/
10592 q
10593 }
10594 /^X\(\/\/\)$/{
10595 s//\1/
10596 q
10597 }
10598 /^X\(\/\).*/{
10599 s//\1/
10600 q
10601 }
10602 s/.*/./; q'`
10603 as_dir="$ac_dir"; as_fn_mkdir_p
10604 ac_builddir=.
10605
10606 case "$ac_dir" in
10607 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10608 *)
10609 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10610 # A ".." for each directory in $ac_dir_suffix.
10611 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10612 case $ac_top_builddir_sub in
10613 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10614 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10615 esac ;;
10616 esac
10617 ac_abs_top_builddir=$ac_pwd
10618 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10619 # for backward compatibility:
10620 ac_top_builddir=$ac_top_build_prefix
10621
10622 case $srcdir in
10623 .) # We are building in place.
10624 ac_srcdir=.
10625 ac_top_srcdir=$ac_top_builddir_sub
10626 ac_abs_top_srcdir=$ac_pwd ;;
10627 [\\/]* | ?:[\\/]* ) # Absolute name.
10628 ac_srcdir=$srcdir$ac_dir_suffix;
10629 ac_top_srcdir=$srcdir
10630 ac_abs_top_srcdir=$srcdir ;;
10631 *) # Relative name.
10632 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10633 ac_top_srcdir=$ac_top_build_prefix$srcdir
10634 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10635 esac
10636 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10637
10638
10639 case $ac_mode in
10640 :F)
10641 #
10642 # CONFIG_FILE
10643 #
10644
10645 case $INSTALL in
10646 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10647 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10648 esac
10649 _ACEOF
10650
10651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10652 # If the template does not know about datarootdir, expand it.
10653 # FIXME: This hack should be removed a few years after 2.60.
10654 ac_datarootdir_hack=; ac_datarootdir_seen=
10655 ac_sed_dataroot='
10656 /datarootdir/ {
10657 p
10658 q
10659 }
10660 /@datadir@/p
10661 /@docdir@/p
10662 /@infodir@/p
10663 /@localedir@/p
10664 /@mandir@/p'
10665 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10666 *datarootdir*) ac_datarootdir_seen=yes;;
10667 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10669 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10670 _ACEOF
10671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10672 ac_datarootdir_hack='
10673 s&@datadir@&$datadir&g
10674 s&@docdir@&$docdir&g
10675 s&@infodir@&$infodir&g
10676 s&@localedir@&$localedir&g
10677 s&@mandir@&$mandir&g
10678 s&\\\${datarootdir}&$datarootdir&g' ;;
10679 esac
10680 _ACEOF
10681
10682 # Neutralize VPATH when `$srcdir' = `.'.
10683 # Shell code in configure.ac might set extrasub.
10684 # FIXME: do we really want to maintain this feature?
10685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10686 ac_sed_extra="$ac_vpsub
10687 $extrasub
10688 _ACEOF
10689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10690 :t
10691 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10692 s|@configure_input@|$ac_sed_conf_input|;t t
10693 s&@top_builddir@&$ac_top_builddir_sub&;t t
10694 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10695 s&@srcdir@&$ac_srcdir&;t t
10696 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10697 s&@top_srcdir@&$ac_top_srcdir&;t t
10698 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10699 s&@builddir@&$ac_builddir&;t t
10700 s&@abs_builddir@&$ac_abs_builddir&;t t
10701 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10702 s&@INSTALL@&$ac_INSTALL&;t t
10703 $ac_datarootdir_hack
10704 "
10705 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10706 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10707
10708 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10709 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10710 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10711 "$ac_tmp/out"`; test -z "$ac_out"; } &&
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10713 which seems to be undefined. Please make sure it is defined" >&5
10714 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10715 which seems to be undefined. Please make sure it is defined" >&2;}
10716
10717 rm -f "$ac_tmp/stdin"
10718 case $ac_file in
10719 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10720 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10721 esac \
10722 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10723 ;;
10724 :H)
10725 #
10726 # CONFIG_HEADER
10727 #
10728 if test x"$ac_file" != x-; then
10729 {
10730 $as_echo "/* $configure_input */" \
10731 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10732 } >"$ac_tmp/config.h" \
10733 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10734 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10736 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10737 else
10738 rm -f "$ac_file"
10739 mv "$ac_tmp/config.h" "$ac_file" \
10740 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10741 fi
10742 else
10743 $as_echo "/* $configure_input */" \
10744 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10745 || as_fn_error $? "could not create -" "$LINENO" 5
10746 fi
10747 ;;
10748
10749 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10750 $as_echo "$as_me: executing $ac_file commands" >&6;}
10751 ;;
10752 esac
10753
10754
10755 case $ac_file$ac_mode in
10756 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
10757 "default-1":C)
10758 for ac_file in $CONFIG_FILES; do
10759 # Support "outfile[:infile[:infile...]]"
10760 case "$ac_file" in
10761 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10762 esac
10763 # PO directories have a Makefile.in generated from Makefile.in.in.
10764 case "$ac_file" in */Makefile.in)
10765 # Adjust a relative srcdir.
10766 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10767 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
10768 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10769 # In autoconf-2.13 it is called $ac_given_srcdir.
10770 # In autoconf-2.50 it is called $srcdir.
10771 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10772 case "$ac_given_srcdir" in
10773 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10774 /*) top_srcdir="$ac_given_srcdir" ;;
10775 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10776 esac
10777 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10778 rm -f "$ac_dir/POTFILES"
10779 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10780 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10781 POMAKEFILEDEPS="POTFILES.in"
10782 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
10783 # on $ac_dir but don't depend on user-specified configuration
10784 # parameters.
10785 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10786 # The LINGUAS file contains the set of available languages.
10787 if test -n "$OBSOLETE_ALL_LINGUAS"; then
10788 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
10789 fi
10790 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10791 # Hide the ALL_LINGUAS assigment from automake.
10792 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10793 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10794 else
10795 # The set of available languages was given in configure.ac.
10796 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10797 fi
10798 case "$ac_given_srcdir" in
10799 .) srcdirpre= ;;
10800 *) srcdirpre='$(srcdir)/' ;;
10801 esac
10802 POFILES=
10803 GMOFILES=
10804 UPDATEPOFILES=
10805 DUMMYPOFILES=
10806 for lang in $ALL_LINGUAS; do
10807 POFILES="$POFILES $srcdirpre$lang.po"
10808 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10809 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10810 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10811 done
10812 # CATALOGS depends on both $ac_dir and the user's LINGUAS
10813 # environment variable.
10814 INST_LINGUAS=
10815 if test -n "$ALL_LINGUAS"; then
10816 for presentlang in $ALL_LINGUAS; do
10817 useit=no
10818 if test "%UNSET%" != "$LINGUAS"; then
10819 desiredlanguages="$LINGUAS"
10820 else
10821 desiredlanguages="$ALL_LINGUAS"
10822 fi
10823 for desiredlang in $desiredlanguages; do
10824 # Use the presentlang catalog if desiredlang is
10825 # a. equal to presentlang, or
10826 # b. a variant of presentlang (because in this case,
10827 # presentlang can be used as a fallback for messages
10828 # which are not translated in the desiredlang catalog).
10829 case "$desiredlang" in
10830 "$presentlang"*) useit=yes;;
10831 esac
10832 done
10833 if test $useit = yes; then
10834 INST_LINGUAS="$INST_LINGUAS $presentlang"
10835 fi
10836 done
10837 fi
10838 CATALOGS=
10839 if test -n "$INST_LINGUAS"; then
10840 for lang in $INST_LINGUAS; do
10841 CATALOGS="$CATALOGS $lang.gmo"
10842 done
10843 fi
10844 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10845 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"
10846 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10847 if test -f "$f"; then
10848 case "$f" in
10849 *.orig | *.bak | *~) ;;
10850 *) cat "$f" >> "$ac_dir/Makefile" ;;
10851 esac
10852 fi
10853 done
10854 fi
10855 ;;
10856 esac
10857 done ;;
10858 "config.h":H) echo timestamp > stamp-h1 ;;
10859
10860 esac
10861 done # for ac_tag
10862
10863
10864 as_fn_exit 0
10865 _ACEOF
10866 ac_clean_files=$ac_clean_files_save
10867
10868 test $ac_write_fail = 0 ||
10869 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10870
10871
10872 # configure is writing to config.log, and then calls config.status.
10873 # config.status does its own redirection, appending to config.log.
10874 # Unfortunately, on DOS this fails, as config.log is still kept open
10875 # by configure, so config.status won't be able to write to it; its
10876 # output is simply discarded. So we exec the FD to /dev/null,
10877 # effectively closing config.log, so it can be properly (re)opened and
10878 # appended to by config.status. When coming back to configure, we
10879 # need to make the FD available again.
10880 if test "$no_create" != yes; then
10881 ac_cs_success=:
10882 ac_config_status_args=
10883 test "$silent" = yes &&
10884 ac_config_status_args="$ac_config_status_args --quiet"
10885 exec 5>/dev/null
10886 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10887 exec 5>>config.log
10888 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10889 # would make configure fail if this is the last instruction.
10890 $ac_cs_success || as_fn_exit 1
10891 fi
10892 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10894 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10895 fi
10896