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