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