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