block read/write function for kernel added
[guestos.git] / configure
blob709852189be96071eaa021dc9975060b5960c084
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # 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 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
151 esac
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 else
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178 else
179 as_have_required=no
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
203 done;;
204 esac
205 as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
244 exit 1
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
262 { eval $1=; unset $1;}
264 as_unset=as_fn_unset
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
271 return $1
272 } # as_fn_set_status
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
279 set +e
280 as_fn_set_status $1
281 exit $1
282 } # as_fn_exit
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
315 /^X\(\/\/\)$/{
316 s//\1/
319 /^X\(\/\).*/{
320 s//\1/
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
340 eval $1+=\$2
342 else
343 as_fn_append ()
345 eval $1=\$$1\$2
347 fi # as_fn_append
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
357 as_val=$(( $* ))
359 else
360 as_fn_arith ()
362 as_val=`expr "$@" || test $? -eq 1`
364 fi # as_fn_arith
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
374 as_status=$1; test $as_status -eq 0 && as_status=1
375 if test "$4"; then
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
381 } # as_fn_error
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386 else
387 as_expr=false
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392 else
393 as_basename=false
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398 else
399 as_dirname=false
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
411 /^X\/\(\/\/\)$/{
412 s//\1/
415 /^X\/\(\/\).*/{
416 s//\1/
419 s/.*/./; q'`
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
442 :lineno
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
470 ECHO_N='-n';;
471 esac
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476 else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
494 else
495 as_ln_s='cp -p'
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502 else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
507 if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509 else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 test -n "$DJDIR" || exec 7<&0 </dev/null
538 exec 6>&1
540 # Name of the host.
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546 # Initializations.
548 ac_default_prefix=/usr/local
549 ac_clean_files=
550 ac_config_libobj_dir=.
551 LIBOBJS=
552 cross_compiling=no
553 subdirs=
554 MFLAGS=
555 MAKEFLAGS=
557 # Identity of this package.
558 PACKAGE_NAME=
559 PACKAGE_TARNAME=
560 PACKAGE_VERSION=
561 PACKAGE_STRING=
562 PACKAGE_BUGREPORT=
563 PACKAGE_URL=
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 EGREP
606 GREP
608 RANLIB
609 am__fastdepCXX_FALSE
610 am__fastdepCXX_TRUE
611 CXXDEPMODE
612 ac_ct_CXX
613 CXXFLAGS
615 am__fastdepCCAS_FALSE
616 am__fastdepCCAS_TRUE
617 CCASDEPMODE
618 CCASFLAGS
619 CCAS
620 am__fastdepCC_FALSE
621 am__fastdepCC_TRUE
622 CCDEPMODE
623 AMDEPBACKSLASH
624 AMDEP_FALSE
625 AMDEP_TRUE
626 am__quote
627 am__include
628 DEPDIR
629 OBJEXT
630 EXEEXT
631 ac_ct_CC
632 CPPFLAGS
633 LDFLAGS
634 CFLAGS
636 am__untar
637 am__tar
638 AMTAR
639 am__leading_dot
640 SET_MAKE
642 mkdir_p
643 MKDIR_P
644 INSTALL_STRIP_PROGRAM
645 STRIP
646 install_sh
647 MAKEINFO
648 AUTOHEADER
649 AUTOMAKE
650 AUTOCONF
651 ACLOCAL
652 VERSION
653 PACKAGE
654 CYGPATH_W
655 am__isrc
656 INSTALL_DATA
657 INSTALL_SCRIPT
658 INSTALL_PROGRAM
659 target_alias
660 host_alias
661 build_alias
662 LIBS
663 ECHO_T
664 ECHO_N
665 ECHO_C
666 DEFS
667 mandir
668 localedir
669 libdir
670 psdir
671 pdfdir
672 dvidir
673 htmldir
674 infodir
675 docdir
676 oldincludedir
677 includedir
678 localstatedir
679 sharedstatedir
680 sysconfdir
681 datadir
682 datarootdir
683 libexecdir
684 sbindir
685 bindir
686 program_transform_name
687 prefix
688 exec_prefix
689 PACKAGE_URL
690 PACKAGE_BUGREPORT
691 PACKAGE_STRING
692 PACKAGE_VERSION
693 PACKAGE_TARNAME
694 PACKAGE_NAME
695 PATH_SEPARATOR
696 SHELL'
697 ac_subst_files=''
698 ac_user_opts='
699 enable_option_checking
700 enable_dependency_tracking
702 ac_precious_vars='build_alias
703 host_alias
704 target_alias
706 CFLAGS
707 LDFLAGS
708 LIBS
709 CPPFLAGS
710 CCAS
711 CCASFLAGS
713 CXXFLAGS
715 CPP'
718 # Initialize some variables set by options.
719 ac_init_help=
720 ac_init_version=false
721 ac_unrecognized_opts=
722 ac_unrecognized_sep=
723 # The variables have the same names as the options, with
724 # dashes changed to underlines.
725 cache_file=/dev/null
726 exec_prefix=NONE
727 no_create=
728 no_recursion=
729 prefix=NONE
730 program_prefix=NONE
731 program_suffix=NONE
732 program_transform_name=s,x,x,
733 silent=
734 site=
735 srcdir=
736 verbose=
737 x_includes=NONE
738 x_libraries=NONE
740 # Installation directory options.
741 # These are left unexpanded so users can "make install exec_prefix=/foo"
742 # and all the variables that are supposed to be based on exec_prefix
743 # by default will actually change.
744 # Use braces instead of parens because sh, perl, etc. also accept them.
745 # (The list follows the same order as the GNU Coding Standards.)
746 bindir='${exec_prefix}/bin'
747 sbindir='${exec_prefix}/sbin'
748 libexecdir='${exec_prefix}/libexec'
749 datarootdir='${prefix}/share'
750 datadir='${datarootdir}'
751 sysconfdir='${prefix}/etc'
752 sharedstatedir='${prefix}/com'
753 localstatedir='${prefix}/var'
754 includedir='${prefix}/include'
755 oldincludedir='/usr/include'
756 docdir='${datarootdir}/doc/${PACKAGE}'
757 infodir='${datarootdir}/info'
758 htmldir='${docdir}'
759 dvidir='${docdir}'
760 pdfdir='${docdir}'
761 psdir='${docdir}'
762 libdir='${exec_prefix}/lib'
763 localedir='${datarootdir}/locale'
764 mandir='${datarootdir}/man'
766 ac_prev=
767 ac_dashdash=
768 for ac_option
770 # If the previous option needs an argument, assign it.
771 if test -n "$ac_prev"; then
772 eval $ac_prev=\$ac_option
773 ac_prev=
774 continue
777 case $ac_option in
778 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
779 *=) ac_optarg= ;;
780 *) ac_optarg=yes ;;
781 esac
783 # Accept the important Cygnus configure options, so we can diagnose typos.
785 case $ac_dashdash$ac_option in
787 ac_dashdash=yes ;;
789 -bindir | --bindir | --bindi | --bind | --bin | --bi)
790 ac_prev=bindir ;;
791 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
792 bindir=$ac_optarg ;;
794 -build | --build | --buil | --bui | --bu)
795 ac_prev=build_alias ;;
796 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
797 build_alias=$ac_optarg ;;
799 -cache-file | --cache-file | --cache-fil | --cache-fi \
800 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
801 ac_prev=cache_file ;;
802 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
803 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
804 cache_file=$ac_optarg ;;
806 --config-cache | -C)
807 cache_file=config.cache ;;
809 -datadir | --datadir | --datadi | --datad)
810 ac_prev=datadir ;;
811 -datadir=* | --datadir=* | --datadi=* | --datad=*)
812 datadir=$ac_optarg ;;
814 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
815 | --dataroo | --dataro | --datar)
816 ac_prev=datarootdir ;;
817 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
818 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
819 datarootdir=$ac_optarg ;;
821 -disable-* | --disable-*)
822 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
823 # Reject names that are not valid shell variable names.
824 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
825 as_fn_error $? "invalid feature name: $ac_useropt"
826 ac_useropt_orig=$ac_useropt
827 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
828 case $ac_user_opts in
830 "enable_$ac_useropt"
831 "*) ;;
832 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
833 ac_unrecognized_sep=', ';;
834 esac
835 eval enable_$ac_useropt=no ;;
837 -docdir | --docdir | --docdi | --doc | --do)
838 ac_prev=docdir ;;
839 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
840 docdir=$ac_optarg ;;
842 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
843 ac_prev=dvidir ;;
844 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
845 dvidir=$ac_optarg ;;
847 -enable-* | --enable-*)
848 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
849 # Reject names that are not valid shell variable names.
850 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
851 as_fn_error $? "invalid feature name: $ac_useropt"
852 ac_useropt_orig=$ac_useropt
853 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
854 case $ac_user_opts in
856 "enable_$ac_useropt"
857 "*) ;;
858 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
859 ac_unrecognized_sep=', ';;
860 esac
861 eval enable_$ac_useropt=\$ac_optarg ;;
863 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
864 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
865 | --exec | --exe | --ex)
866 ac_prev=exec_prefix ;;
867 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
868 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
869 | --exec=* | --exe=* | --ex=*)
870 exec_prefix=$ac_optarg ;;
872 -gas | --gas | --ga | --g)
873 # Obsolete; use --with-gas.
874 with_gas=yes ;;
876 -help | --help | --hel | --he | -h)
877 ac_init_help=long ;;
878 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
879 ac_init_help=recursive ;;
880 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
881 ac_init_help=short ;;
883 -host | --host | --hos | --ho)
884 ac_prev=host_alias ;;
885 -host=* | --host=* | --hos=* | --ho=*)
886 host_alias=$ac_optarg ;;
888 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
889 ac_prev=htmldir ;;
890 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
891 | --ht=*)
892 htmldir=$ac_optarg ;;
894 -includedir | --includedir | --includedi | --included | --include \
895 | --includ | --inclu | --incl | --inc)
896 ac_prev=includedir ;;
897 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
898 | --includ=* | --inclu=* | --incl=* | --inc=*)
899 includedir=$ac_optarg ;;
901 -infodir | --infodir | --infodi | --infod | --info | --inf)
902 ac_prev=infodir ;;
903 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
904 infodir=$ac_optarg ;;
906 -libdir | --libdir | --libdi | --libd)
907 ac_prev=libdir ;;
908 -libdir=* | --libdir=* | --libdi=* | --libd=*)
909 libdir=$ac_optarg ;;
911 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
912 | --libexe | --libex | --libe)
913 ac_prev=libexecdir ;;
914 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
915 | --libexe=* | --libex=* | --libe=*)
916 libexecdir=$ac_optarg ;;
918 -localedir | --localedir | --localedi | --localed | --locale)
919 ac_prev=localedir ;;
920 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
921 localedir=$ac_optarg ;;
923 -localstatedir | --localstatedir | --localstatedi | --localstated \
924 | --localstate | --localstat | --localsta | --localst | --locals)
925 ac_prev=localstatedir ;;
926 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
927 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
928 localstatedir=$ac_optarg ;;
930 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
931 ac_prev=mandir ;;
932 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
933 mandir=$ac_optarg ;;
935 -nfp | --nfp | --nf)
936 # Obsolete; use --without-fp.
937 with_fp=no ;;
939 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
940 | --no-cr | --no-c | -n)
941 no_create=yes ;;
943 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
944 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
945 no_recursion=yes ;;
947 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
948 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
949 | --oldin | --oldi | --old | --ol | --o)
950 ac_prev=oldincludedir ;;
951 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
952 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
953 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
954 oldincludedir=$ac_optarg ;;
956 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
957 ac_prev=prefix ;;
958 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
959 prefix=$ac_optarg ;;
961 -program-prefix | --program-prefix | --program-prefi | --program-pref \
962 | --program-pre | --program-pr | --program-p)
963 ac_prev=program_prefix ;;
964 -program-prefix=* | --program-prefix=* | --program-prefi=* \
965 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
966 program_prefix=$ac_optarg ;;
968 -program-suffix | --program-suffix | --program-suffi | --program-suff \
969 | --program-suf | --program-su | --program-s)
970 ac_prev=program_suffix ;;
971 -program-suffix=* | --program-suffix=* | --program-suffi=* \
972 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
973 program_suffix=$ac_optarg ;;
975 -program-transform-name | --program-transform-name \
976 | --program-transform-nam | --program-transform-na \
977 | --program-transform-n | --program-transform- \
978 | --program-transform | --program-transfor \
979 | --program-transfo | --program-transf \
980 | --program-trans | --program-tran \
981 | --progr-tra | --program-tr | --program-t)
982 ac_prev=program_transform_name ;;
983 -program-transform-name=* | --program-transform-name=* \
984 | --program-transform-nam=* | --program-transform-na=* \
985 | --program-transform-n=* | --program-transform-=* \
986 | --program-transform=* | --program-transfor=* \
987 | --program-transfo=* | --program-transf=* \
988 | --program-trans=* | --program-tran=* \
989 | --progr-tra=* | --program-tr=* | --program-t=*)
990 program_transform_name=$ac_optarg ;;
992 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
993 ac_prev=pdfdir ;;
994 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
995 pdfdir=$ac_optarg ;;
997 -psdir | --psdir | --psdi | --psd | --ps)
998 ac_prev=psdir ;;
999 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1000 psdir=$ac_optarg ;;
1002 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1003 | -silent | --silent | --silen | --sile | --sil)
1004 silent=yes ;;
1006 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1007 ac_prev=sbindir ;;
1008 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1009 | --sbi=* | --sb=*)
1010 sbindir=$ac_optarg ;;
1012 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1013 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1014 | --sharedst | --shareds | --shared | --share | --shar \
1015 | --sha | --sh)
1016 ac_prev=sharedstatedir ;;
1017 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1018 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1019 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1020 | --sha=* | --sh=*)
1021 sharedstatedir=$ac_optarg ;;
1023 -site | --site | --sit)
1024 ac_prev=site ;;
1025 -site=* | --site=* | --sit=*)
1026 site=$ac_optarg ;;
1028 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1029 ac_prev=srcdir ;;
1030 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1031 srcdir=$ac_optarg ;;
1033 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1034 | --syscon | --sysco | --sysc | --sys | --sy)
1035 ac_prev=sysconfdir ;;
1036 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1037 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1038 sysconfdir=$ac_optarg ;;
1040 -target | --target | --targe | --targ | --tar | --ta | --t)
1041 ac_prev=target_alias ;;
1042 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1043 target_alias=$ac_optarg ;;
1045 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1046 verbose=yes ;;
1048 -version | --version | --versio | --versi | --vers | -V)
1049 ac_init_version=: ;;
1051 -with-* | --with-*)
1052 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 as_fn_error $? "invalid package name: $ac_useropt"
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1060 "with_$ac_useropt"
1061 "*) ;;
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1064 esac
1065 eval with_$ac_useropt=\$ac_optarg ;;
1067 -without-* | --without-*)
1068 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071 as_fn_error $? "invalid package name: $ac_useropt"
1072 ac_useropt_orig=$ac_useropt
1073 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074 case $ac_user_opts in
1076 "with_$ac_useropt"
1077 "*) ;;
1078 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1079 ac_unrecognized_sep=', ';;
1080 esac
1081 eval with_$ac_useropt=no ;;
1083 --x)
1084 # Obsolete; use --with-x.
1085 with_x=yes ;;
1087 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1088 | --x-incl | --x-inc | --x-in | --x-i)
1089 ac_prev=x_includes ;;
1090 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1091 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1092 x_includes=$ac_optarg ;;
1094 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1095 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1096 ac_prev=x_libraries ;;
1097 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1098 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1099 x_libraries=$ac_optarg ;;
1101 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1102 Try \`$0 --help' for more information"
1105 *=*)
1106 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1107 # Reject names that are not valid shell variable names.
1108 case $ac_envvar in #(
1109 '' | [0-9]* | *[!_$as_cr_alnum]* )
1110 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1111 esac
1112 eval $ac_envvar=\$ac_optarg
1113 export $ac_envvar ;;
1116 # FIXME: should be removed in autoconf 3.0.
1117 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1118 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1119 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1120 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1123 esac
1124 done
1126 if test -n "$ac_prev"; then
1127 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1128 as_fn_error $? "missing argument to $ac_option"
1131 if test -n "$ac_unrecognized_opts"; then
1132 case $enable_option_checking in
1133 no) ;;
1134 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1135 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1136 esac
1139 # Check all directory arguments for consistency.
1140 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1141 datadir sysconfdir sharedstatedir localstatedir includedir \
1142 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1143 libdir localedir mandir
1145 eval ac_val=\$$ac_var
1146 # Remove trailing slashes.
1147 case $ac_val in
1148 */ )
1149 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1150 eval $ac_var=\$ac_val;;
1151 esac
1152 # Be sure to have absolute directory names.
1153 case $ac_val in
1154 [\\/$]* | ?:[\\/]* ) continue;;
1155 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1156 esac
1157 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1158 done
1160 # There might be people who depend on the old broken behavior: `$host'
1161 # used to hold the argument of --host etc.
1162 # FIXME: To remove some day.
1163 build=$build_alias
1164 host=$host_alias
1165 target=$target_alias
1167 # FIXME: To remove some day.
1168 if test "x$host_alias" != x; then
1169 if test "x$build_alias" = x; then
1170 cross_compiling=maybe
1171 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1172 If a cross compiler is detected then cross compile mode will be used" >&2
1173 elif test "x$build_alias" != "x$host_alias"; then
1174 cross_compiling=yes
1178 ac_tool_prefix=
1179 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1181 test "$silent" = yes && exec 6>/dev/null
1184 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1185 ac_ls_di=`ls -di .` &&
1186 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1187 as_fn_error $? "working directory cannot be determined"
1188 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1189 as_fn_error $? "pwd does not report name of working directory"
1192 # Find the source files, if location was not specified.
1193 if test -z "$srcdir"; then
1194 ac_srcdir_defaulted=yes
1195 # Try the directory containing this script, then the parent directory.
1196 ac_confdir=`$as_dirname -- "$as_myself" ||
1197 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1198 X"$as_myself" : 'X\(//\)[^/]' \| \
1199 X"$as_myself" : 'X\(//\)$' \| \
1200 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1201 $as_echo X"$as_myself" |
1202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1203 s//\1/
1206 /^X\(\/\/\)[^/].*/{
1207 s//\1/
1210 /^X\(\/\/\)$/{
1211 s//\1/
1214 /^X\(\/\).*/{
1215 s//\1/
1218 s/.*/./; q'`
1219 srcdir=$ac_confdir
1220 if test ! -r "$srcdir/$ac_unique_file"; then
1221 srcdir=..
1223 else
1224 ac_srcdir_defaulted=no
1226 if test ! -r "$srcdir/$ac_unique_file"; then
1227 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1228 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1230 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1231 ac_abs_confdir=`(
1232 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1233 pwd)`
1234 # When building in place, set srcdir=.
1235 if test "$ac_abs_confdir" = "$ac_pwd"; then
1236 srcdir=.
1238 # Remove unnecessary trailing slashes from srcdir.
1239 # Double slashes in file names in object file debugging info
1240 # mess up M-x gdb in Emacs.
1241 case $srcdir in
1242 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1243 esac
1244 for ac_var in $ac_precious_vars; do
1245 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1246 eval ac_env_${ac_var}_value=\$${ac_var}
1247 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1248 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1249 done
1252 # Report the --help message.
1254 if test "$ac_init_help" = "long"; then
1255 # Omit some internal or obsolete options to make the list less imposing.
1256 # This message is too long to be a string in the A/UX 3.1 sh.
1257 cat <<_ACEOF
1258 \`configure' configures this package to adapt to many kinds of systems.
1260 Usage: $0 [OPTION]... [VAR=VALUE]...
1262 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1263 VAR=VALUE. See below for descriptions of some of the useful variables.
1265 Defaults for the options are specified in brackets.
1267 Configuration:
1268 -h, --help display this help and exit
1269 --help=short display options specific to this package
1270 --help=recursive display the short help of all the included packages
1271 -V, --version display version information and exit
1272 -q, --quiet, --silent do not print \`checking ...' messages
1273 --cache-file=FILE cache test results in FILE [disabled]
1274 -C, --config-cache alias for \`--cache-file=config.cache'
1275 -n, --no-create do not create output files
1276 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1278 Installation directories:
1279 --prefix=PREFIX install architecture-independent files in PREFIX
1280 [$ac_default_prefix]
1281 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1282 [PREFIX]
1284 By default, \`make install' will install all the files in
1285 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1286 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1287 for instance \`--prefix=\$HOME'.
1289 For better control, use the options below.
1291 Fine tuning of the installation directories:
1292 --bindir=DIR user executables [EPREFIX/bin]
1293 --sbindir=DIR system admin executables [EPREFIX/sbin]
1294 --libexecdir=DIR program executables [EPREFIX/libexec]
1295 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1296 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1297 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1298 --libdir=DIR object code libraries [EPREFIX/lib]
1299 --includedir=DIR C header files [PREFIX/include]
1300 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1301 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1302 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1303 --infodir=DIR info documentation [DATAROOTDIR/info]
1304 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1305 --mandir=DIR man documentation [DATAROOTDIR/man]
1306 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1307 --htmldir=DIR html documentation [DOCDIR]
1308 --dvidir=DIR dvi documentation [DOCDIR]
1309 --pdfdir=DIR pdf documentation [DOCDIR]
1310 --psdir=DIR ps documentation [DOCDIR]
1311 _ACEOF
1313 cat <<\_ACEOF
1315 Program names:
1316 --program-prefix=PREFIX prepend PREFIX to installed program names
1317 --program-suffix=SUFFIX append SUFFIX to installed program names
1318 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1319 _ACEOF
1322 if test -n "$ac_init_help"; then
1324 cat <<\_ACEOF
1326 Optional Features:
1327 --disable-option-checking ignore unrecognized --enable/--with options
1328 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1329 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1330 --disable-dependency-tracking speeds up one-time build
1331 --enable-dependency-tracking do not reject slow dependency extractors
1333 Some influential environment variables:
1334 CC C compiler command
1335 CFLAGS C compiler flags
1336 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1337 nonstandard directory <lib dir>
1338 LIBS libraries to pass to the linker, e.g. -l<library>
1339 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1340 you have headers in a nonstandard directory <include dir>
1341 CCAS assembler compiler command (defaults to CC)
1342 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1343 CXX C++ compiler command
1344 CXXFLAGS C++ compiler flags
1345 CPP C preprocessor
1347 Use these variables to override the choices made by `configure' or to help
1348 it to find libraries and programs with nonstandard names/locations.
1350 Report bugs to the package provider.
1351 _ACEOF
1352 ac_status=$?
1355 if test "$ac_init_help" = "recursive"; then
1356 # If there are subdirs, report their specific --help.
1357 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1358 test -d "$ac_dir" ||
1359 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1360 continue
1361 ac_builddir=.
1363 case "$ac_dir" in
1364 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1366 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1367 # A ".." for each directory in $ac_dir_suffix.
1368 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1369 case $ac_top_builddir_sub in
1370 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1371 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1372 esac ;;
1373 esac
1374 ac_abs_top_builddir=$ac_pwd
1375 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1376 # for backward compatibility:
1377 ac_top_builddir=$ac_top_build_prefix
1379 case $srcdir in
1380 .) # We are building in place.
1381 ac_srcdir=.
1382 ac_top_srcdir=$ac_top_builddir_sub
1383 ac_abs_top_srcdir=$ac_pwd ;;
1384 [\\/]* | ?:[\\/]* ) # Absolute name.
1385 ac_srcdir=$srcdir$ac_dir_suffix;
1386 ac_top_srcdir=$srcdir
1387 ac_abs_top_srcdir=$srcdir ;;
1388 *) # Relative name.
1389 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1390 ac_top_srcdir=$ac_top_build_prefix$srcdir
1391 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1392 esac
1393 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1395 cd "$ac_dir" || { ac_status=$?; continue; }
1396 # Check for guested configure.
1397 if test -f "$ac_srcdir/configure.gnu"; then
1398 echo &&
1399 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1400 elif test -f "$ac_srcdir/configure"; then
1401 echo &&
1402 $SHELL "$ac_srcdir/configure" --help=recursive
1403 else
1404 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1405 fi || ac_status=$?
1406 cd "$ac_pwd" || { ac_status=$?; break; }
1407 done
1410 test -n "$ac_init_help" && exit $ac_status
1411 if $ac_init_version; then
1412 cat <<\_ACEOF
1413 configure
1414 generated by GNU Autoconf 2.68
1416 Copyright (C) 2010 Free Software Foundation, Inc.
1417 This configure script is free software; the Free Software Foundation
1418 gives unlimited permission to copy, distribute and modify it.
1419 _ACEOF
1420 exit
1423 ## ------------------------ ##
1424 ## Autoconf initialization. ##
1425 ## ------------------------ ##
1427 # ac_fn_c_try_compile LINENO
1428 # --------------------------
1429 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1430 ac_fn_c_try_compile ()
1432 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1433 rm -f conftest.$ac_objext
1434 if { { ac_try="$ac_compile"
1435 case "(($ac_try" in
1436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1437 *) ac_try_echo=$ac_try;;
1438 esac
1439 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1440 $as_echo "$ac_try_echo"; } >&5
1441 (eval "$ac_compile") 2>conftest.err
1442 ac_status=$?
1443 if test -s conftest.err; then
1444 grep -v '^ *+' conftest.err >conftest.er1
1445 cat conftest.er1 >&5
1446 mv -f conftest.er1 conftest.err
1448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1449 test $ac_status = 0; } && {
1450 test -z "$ac_c_werror_flag" ||
1451 test ! -s conftest.err
1452 } && test -s conftest.$ac_objext; then :
1453 ac_retval=0
1454 else
1455 $as_echo "$as_me: failed program was:" >&5
1456 sed 's/^/| /' conftest.$ac_ext >&5
1458 ac_retval=1
1460 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1461 as_fn_set_status $ac_retval
1463 } # ac_fn_c_try_compile
1465 # ac_fn_cxx_try_compile LINENO
1466 # ----------------------------
1467 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1468 ac_fn_cxx_try_compile ()
1470 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1471 rm -f conftest.$ac_objext
1472 if { { ac_try="$ac_compile"
1473 case "(($ac_try" in
1474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1475 *) ac_try_echo=$ac_try;;
1476 esac
1477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1478 $as_echo "$ac_try_echo"; } >&5
1479 (eval "$ac_compile") 2>conftest.err
1480 ac_status=$?
1481 if test -s conftest.err; then
1482 grep -v '^ *+' conftest.err >conftest.er1
1483 cat conftest.er1 >&5
1484 mv -f conftest.er1 conftest.err
1486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1487 test $ac_status = 0; } && {
1488 test -z "$ac_cxx_werror_flag" ||
1489 test ! -s conftest.err
1490 } && test -s conftest.$ac_objext; then :
1491 ac_retval=0
1492 else
1493 $as_echo "$as_me: failed program was:" >&5
1494 sed 's/^/| /' conftest.$ac_ext >&5
1496 ac_retval=1
1498 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1499 as_fn_set_status $ac_retval
1501 } # ac_fn_cxx_try_compile
1503 # ac_fn_c_try_cpp LINENO
1504 # ----------------------
1505 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1506 ac_fn_c_try_cpp ()
1508 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1509 if { { ac_try="$ac_cpp conftest.$ac_ext"
1510 case "(($ac_try" in
1511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1512 *) ac_try_echo=$ac_try;;
1513 esac
1514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1515 $as_echo "$ac_try_echo"; } >&5
1516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1517 ac_status=$?
1518 if test -s conftest.err; then
1519 grep -v '^ *+' conftest.err >conftest.er1
1520 cat conftest.er1 >&5
1521 mv -f conftest.er1 conftest.err
1523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1524 test $ac_status = 0; } > conftest.i && {
1525 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1526 test ! -s conftest.err
1527 }; then :
1528 ac_retval=0
1529 else
1530 $as_echo "$as_me: failed program was:" >&5
1531 sed 's/^/| /' conftest.$ac_ext >&5
1533 ac_retval=1
1535 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1536 as_fn_set_status $ac_retval
1538 } # ac_fn_c_try_cpp
1540 # ac_fn_c_try_run LINENO
1541 # ----------------------
1542 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1543 # that executables *can* be run.
1544 ac_fn_c_try_run ()
1546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1547 if { { ac_try="$ac_link"
1548 case "(($ac_try" in
1549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1550 *) ac_try_echo=$ac_try;;
1551 esac
1552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1553 $as_echo "$ac_try_echo"; } >&5
1554 (eval "$ac_link") 2>&5
1555 ac_status=$?
1556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1557 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1558 { { case "(($ac_try" in
1559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560 *) ac_try_echo=$ac_try;;
1561 esac
1562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563 $as_echo "$ac_try_echo"; } >&5
1564 (eval "$ac_try") 2>&5
1565 ac_status=$?
1566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1567 test $ac_status = 0; }; }; then :
1568 ac_retval=0
1569 else
1570 $as_echo "$as_me: program exited with status $ac_status" >&5
1571 $as_echo "$as_me: failed program was:" >&5
1572 sed 's/^/| /' conftest.$ac_ext >&5
1574 ac_retval=$ac_status
1576 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1577 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1578 as_fn_set_status $ac_retval
1580 } # ac_fn_c_try_run
1582 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1583 # -------------------------------------------------------
1584 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1585 # the include files in INCLUDES and setting the cache variable VAR
1586 # accordingly.
1587 ac_fn_c_check_header_mongrel ()
1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590 if eval \${$3+:} false; then :
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1592 $as_echo_n "checking for $2... " >&6; }
1593 if eval \${$3+:} false; then :
1594 $as_echo_n "(cached) " >&6
1596 eval ac_res=\$$3
1597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1598 $as_echo "$ac_res" >&6; }
1599 else
1600 # Is the header compilable?
1601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1602 $as_echo_n "checking $2 usability... " >&6; }
1603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1604 /* end confdefs.h. */
1606 #include <$2>
1607 _ACEOF
1608 if ac_fn_c_try_compile "$LINENO"; then :
1609 ac_header_compiler=yes
1610 else
1611 ac_header_compiler=no
1613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1615 $as_echo "$ac_header_compiler" >&6; }
1617 # Is the header present?
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1619 $as_echo_n "checking $2 presence... " >&6; }
1620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1621 /* end confdefs.h. */
1622 #include <$2>
1623 _ACEOF
1624 if ac_fn_c_try_cpp "$LINENO"; then :
1625 ac_header_preproc=yes
1626 else
1627 ac_header_preproc=no
1629 rm -f conftest.err conftest.i conftest.$ac_ext
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1631 $as_echo "$ac_header_preproc" >&6; }
1633 # So? What about this header?
1634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1635 yes:no: )
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1637 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1639 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1641 no:yes:* )
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1643 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1645 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1647 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1649 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&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 esac
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1655 $as_echo_n "checking for $2... " >&6; }
1656 if eval \${$3+:} false; then :
1657 $as_echo_n "(cached) " >&6
1658 else
1659 eval "$3=\$ac_header_compiler"
1661 eval ac_res=\$$3
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1663 $as_echo "$ac_res" >&6; }
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667 } # ac_fn_c_check_header_mongrel
1669 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1670 # -------------------------------------------------------
1671 # Tests whether HEADER exists and can be compiled using the include files in
1672 # INCLUDES, setting the cache variable VAR accordingly.
1673 ac_fn_c_check_header_compile ()
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1677 $as_echo_n "checking for $2... " >&6; }
1678 if eval \${$3+:} false; then :
1679 $as_echo_n "(cached) " >&6
1680 else
1681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1682 /* end confdefs.h. */
1684 #include <$2>
1685 _ACEOF
1686 if ac_fn_c_try_compile "$LINENO"; then :
1687 eval "$3=yes"
1688 else
1689 eval "$3=no"
1691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1693 eval ac_res=\$$3
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1695 $as_echo "$ac_res" >&6; }
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698 } # ac_fn_c_check_header_compile
1700 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1701 # -------------------------------------------
1702 # Tests whether TYPE exists after having included INCLUDES, setting cache
1703 # variable VAR accordingly.
1704 ac_fn_c_check_type ()
1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1708 $as_echo_n "checking for $2... " >&6; }
1709 if eval \${$3+:} false; then :
1710 $as_echo_n "(cached) " >&6
1711 else
1712 eval "$3=no"
1713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714 /* end confdefs.h. */
1717 main ()
1719 if (sizeof ($2))
1720 return 0;
1722 return 0;
1724 _ACEOF
1725 if ac_fn_c_try_compile "$LINENO"; then :
1726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1727 /* end confdefs.h. */
1730 main ()
1732 if (sizeof (($2)))
1733 return 0;
1735 return 0;
1737 _ACEOF
1738 if ac_fn_c_try_compile "$LINENO"; then :
1740 else
1741 eval "$3=yes"
1743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1747 eval ac_res=\$$3
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1749 $as_echo "$ac_res" >&6; }
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752 } # ac_fn_c_check_type
1754 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1755 # ----------------------------------------------------
1756 # Tries to find if the field MEMBER exists in type AGGR, after including
1757 # INCLUDES, setting cache variable VAR accordingly.
1758 ac_fn_c_check_member ()
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1762 $as_echo_n "checking for $2.$3... " >&6; }
1763 if eval \${$4+:} false; then :
1764 $as_echo_n "(cached) " >&6
1765 else
1766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1767 /* end confdefs.h. */
1770 main ()
1772 static $2 ac_aggr;
1773 if (ac_aggr.$3)
1774 return 0;
1776 return 0;
1778 _ACEOF
1779 if ac_fn_c_try_compile "$LINENO"; then :
1780 eval "$4=yes"
1781 else
1782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783 /* end confdefs.h. */
1786 main ()
1788 static $2 ac_aggr;
1789 if (sizeof ac_aggr.$3)
1790 return 0;
1792 return 0;
1794 _ACEOF
1795 if ac_fn_c_try_compile "$LINENO"; then :
1796 eval "$4=yes"
1797 else
1798 eval "$4=no"
1800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1804 eval ac_res=\$$4
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806 $as_echo "$ac_res" >&6; }
1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809 } # ac_fn_c_check_member
1811 # ac_fn_c_try_link LINENO
1812 # -----------------------
1813 # Try to link conftest.$ac_ext, and return whether this succeeded.
1814 ac_fn_c_try_link ()
1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817 rm -f conftest.$ac_objext conftest$ac_exeext
1818 if { { ac_try="$ac_link"
1819 case "(($ac_try" in
1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1822 esac
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_link") 2>conftest.err
1826 ac_status=$?
1827 if test -s conftest.err; then
1828 grep -v '^ *+' conftest.err >conftest.er1
1829 cat conftest.er1 >&5
1830 mv -f conftest.er1 conftest.err
1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } && {
1834 test -z "$ac_c_werror_flag" ||
1835 test ! -s conftest.err
1836 } && test -s conftest$ac_exeext && {
1837 test "$cross_compiling" = yes ||
1838 $as_test_x conftest$ac_exeext
1839 }; then :
1840 ac_retval=0
1841 else
1842 $as_echo "$as_me: failed program was:" >&5
1843 sed 's/^/| /' conftest.$ac_ext >&5
1845 ac_retval=1
1847 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1848 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1849 # interfere with the next link command; also delete a directory that is
1850 # left behind by Apple's compiler. We do this before executing the actions.
1851 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853 as_fn_set_status $ac_retval
1855 } # ac_fn_c_try_link
1857 # ac_fn_c_check_func LINENO FUNC VAR
1858 # ----------------------------------
1859 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1860 ac_fn_c_check_func ()
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1864 $as_echo_n "checking for $2... " >&6; }
1865 if eval \${$3+:} false; then :
1866 $as_echo_n "(cached) " >&6
1867 else
1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869 /* end confdefs.h. */
1870 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1872 #define $2 innocuous_$2
1874 /* System header to define __stub macros and hopefully few prototypes,
1875 which can conflict with char $2 (); below.
1876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1877 <limits.h> exists even on freestanding compilers. */
1879 #ifdef __STDC__
1880 # include <limits.h>
1881 #else
1882 # include <assert.h>
1883 #endif
1885 #undef $2
1887 /* Override any GCC internal prototype to avoid an error.
1888 Use char because int might match the return type of a GCC
1889 builtin and then its argument prototype would still apply. */
1890 #ifdef __cplusplus
1891 extern "C"
1892 #endif
1893 char $2 ();
1894 /* The GNU C library defines this for functions which it implements
1895 to always fail with ENOSYS. Some functions are actually named
1896 something starting with __ and the normal name is an alias. */
1897 #if defined __stub_$2 || defined __stub___$2
1898 choke me
1899 #endif
1902 main ()
1904 return $2 ();
1906 return 0;
1908 _ACEOF
1909 if ac_fn_c_try_link "$LINENO"; then :
1910 eval "$3=yes"
1911 else
1912 eval "$3=no"
1914 rm -f core conftest.err conftest.$ac_objext \
1915 conftest$ac_exeext conftest.$ac_ext
1917 eval ac_res=\$$3
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919 $as_echo "$ac_res" >&6; }
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922 } # ac_fn_c_check_func
1923 cat >config.log <<_ACEOF
1924 This file contains any messages produced by compilers while
1925 running configure, to aid debugging if configure makes a mistake.
1927 It was created by $as_me, which was
1928 generated by GNU Autoconf 2.68. Invocation command line was
1930 $ $0 $@
1932 _ACEOF
1933 exec 5>>config.log
1935 cat <<_ASUNAME
1936 ## --------- ##
1937 ## Platform. ##
1938 ## --------- ##
1940 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1941 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1942 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1943 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1944 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1946 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1947 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1949 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1950 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1951 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1952 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1953 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1954 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1955 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1957 _ASUNAME
1959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1960 for as_dir in $PATH
1962 IFS=$as_save_IFS
1963 test -z "$as_dir" && as_dir=.
1964 $as_echo "PATH: $as_dir"
1965 done
1966 IFS=$as_save_IFS
1968 } >&5
1970 cat >&5 <<_ACEOF
1973 ## ----------- ##
1974 ## Core tests. ##
1975 ## ----------- ##
1977 _ACEOF
1980 # Keep a trace of the command line.
1981 # Strip out --no-create and --no-recursion so they do not pile up.
1982 # Strip out --silent because we don't want to record it for future runs.
1983 # Also quote any args containing shell meta-characters.
1984 # Make two passes to allow for proper duplicate-argument suppression.
1985 ac_configure_args=
1986 ac_configure_args0=
1987 ac_configure_args1=
1988 ac_must_keep_next=false
1989 for ac_pass in 1 2
1991 for ac_arg
1993 case $ac_arg in
1994 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1995 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1996 | -silent | --silent | --silen | --sile | --sil)
1997 continue ;;
1998 *\'*)
1999 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2000 esac
2001 case $ac_pass in
2002 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2004 as_fn_append ac_configure_args1 " '$ac_arg'"
2005 if test $ac_must_keep_next = true; then
2006 ac_must_keep_next=false # Got value, back to normal.
2007 else
2008 case $ac_arg in
2009 *=* | --config-cache | -C | -disable-* | --disable-* \
2010 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2011 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2012 | -with-* | --with-* | -without-* | --without-* | --x)
2013 case "$ac_configure_args0 " in
2014 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2015 esac
2017 -* ) ac_must_keep_next=true ;;
2018 esac
2020 as_fn_append ac_configure_args " '$ac_arg'"
2022 esac
2023 done
2024 done
2025 { ac_configure_args0=; unset ac_configure_args0;}
2026 { ac_configure_args1=; unset ac_configure_args1;}
2028 # When interrupted or exit'd, cleanup temporary files, and complete
2029 # config.log. We remove comments because anyway the quotes in there
2030 # would cause problems or look ugly.
2031 # WARNING: Use '\'' to represent an apostrophe within the trap.
2032 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2033 trap 'exit_status=$?
2034 # Save into config.log some information that might help in debugging.
2036 echo
2038 $as_echo "## ---------------- ##
2039 ## Cache variables. ##
2040 ## ---------------- ##"
2041 echo
2042 # The following way of writing the cache mishandles newlines in values,
2044 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2045 eval ac_val=\$$ac_var
2046 case $ac_val in #(
2047 *${as_nl}*)
2048 case $ac_var in #(
2049 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2050 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2051 esac
2052 case $ac_var in #(
2053 _ | IFS | as_nl) ;; #(
2054 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2055 *) { eval $ac_var=; unset $ac_var;} ;;
2056 esac ;;
2057 esac
2058 done
2059 (set) 2>&1 |
2060 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2061 *${as_nl}ac_space=\ *)
2062 sed -n \
2063 "s/'\''/'\''\\\\'\'''\''/g;
2064 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2065 ;; #(
2067 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2069 esac |
2070 sort
2072 echo
2074 $as_echo "## ----------------- ##
2075 ## Output variables. ##
2076 ## ----------------- ##"
2077 echo
2078 for ac_var in $ac_subst_vars
2080 eval ac_val=\$$ac_var
2081 case $ac_val in
2082 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2083 esac
2084 $as_echo "$ac_var='\''$ac_val'\''"
2085 done | sort
2086 echo
2088 if test -n "$ac_subst_files"; then
2089 $as_echo "## ------------------- ##
2090 ## File substitutions. ##
2091 ## ------------------- ##"
2092 echo
2093 for ac_var in $ac_subst_files
2095 eval ac_val=\$$ac_var
2096 case $ac_val in
2097 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2098 esac
2099 $as_echo "$ac_var='\''$ac_val'\''"
2100 done | sort
2101 echo
2104 if test -s confdefs.h; then
2105 $as_echo "## ----------- ##
2106 ## confdefs.h. ##
2107 ## ----------- ##"
2108 echo
2109 cat confdefs.h
2110 echo
2112 test "$ac_signal" != 0 &&
2113 $as_echo "$as_me: caught signal $ac_signal"
2114 $as_echo "$as_me: exit $exit_status"
2115 } >&5
2116 rm -f core *.core core.conftest.* &&
2117 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2118 exit $exit_status
2120 for ac_signal in 1 2 13 15; do
2121 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2122 done
2123 ac_signal=0
2125 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2126 rm -f -r conftest* confdefs.h
2128 $as_echo "/* confdefs.h */" > confdefs.h
2130 # Predefined preprocessor variables.
2132 cat >>confdefs.h <<_ACEOF
2133 #define PACKAGE_NAME "$PACKAGE_NAME"
2134 _ACEOF
2136 cat >>confdefs.h <<_ACEOF
2137 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2138 _ACEOF
2140 cat >>confdefs.h <<_ACEOF
2141 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2142 _ACEOF
2144 cat >>confdefs.h <<_ACEOF
2145 #define PACKAGE_STRING "$PACKAGE_STRING"
2146 _ACEOF
2148 cat >>confdefs.h <<_ACEOF
2149 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2150 _ACEOF
2152 cat >>confdefs.h <<_ACEOF
2153 #define PACKAGE_URL "$PACKAGE_URL"
2154 _ACEOF
2157 # Let the site file select an alternate cache file if it wants to.
2158 # Prefer an explicitly selected file to automatically selected ones.
2159 ac_site_file1=NONE
2160 ac_site_file2=NONE
2161 if test -n "$CONFIG_SITE"; then
2162 # We do not want a PATH search for config.site.
2163 case $CONFIG_SITE in #((
2164 -*) ac_site_file1=./$CONFIG_SITE;;
2165 */*) ac_site_file1=$CONFIG_SITE;;
2166 *) ac_site_file1=./$CONFIG_SITE;;
2167 esac
2168 elif test "x$prefix" != xNONE; then
2169 ac_site_file1=$prefix/share/config.site
2170 ac_site_file2=$prefix/etc/config.site
2171 else
2172 ac_site_file1=$ac_default_prefix/share/config.site
2173 ac_site_file2=$ac_default_prefix/etc/config.site
2175 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2177 test "x$ac_site_file" = xNONE && continue
2178 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2180 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2181 sed 's/^/| /' "$ac_site_file" >&5
2182 . "$ac_site_file" \
2183 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2185 as_fn_error $? "failed to load site script $ac_site_file
2186 See \`config.log' for more details" "$LINENO" 5; }
2188 done
2190 if test -r "$cache_file"; then
2191 # Some versions of bash will fail to source /dev/null (special files
2192 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2193 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2195 $as_echo "$as_me: loading cache $cache_file" >&6;}
2196 case $cache_file in
2197 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2198 *) . "./$cache_file";;
2199 esac
2201 else
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2203 $as_echo "$as_me: creating cache $cache_file" >&6;}
2204 >$cache_file
2207 # Check that the precious variables saved in the cache have kept the same
2208 # value.
2209 ac_cache_corrupted=false
2210 for ac_var in $ac_precious_vars; do
2211 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2212 eval ac_new_set=\$ac_env_${ac_var}_set
2213 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2214 eval ac_new_val=\$ac_env_${ac_var}_value
2215 case $ac_old_set,$ac_new_set in
2216 set,)
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2218 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2219 ac_cache_corrupted=: ;;
2220 ,set)
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2222 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2223 ac_cache_corrupted=: ;;
2224 ,);;
2226 if test "x$ac_old_val" != "x$ac_new_val"; then
2227 # differences in whitespace do not lead to failure.
2228 ac_old_val_w=`echo x $ac_old_val`
2229 ac_new_val_w=`echo x $ac_new_val`
2230 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2232 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2233 ac_cache_corrupted=:
2234 else
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2236 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2237 eval $ac_var=\$ac_old_val
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2240 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2242 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2243 fi;;
2244 esac
2245 # Pass precious variables to config.status.
2246 if test "$ac_new_set" = set; then
2247 case $ac_new_val in
2248 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2249 *) ac_arg=$ac_var=$ac_new_val ;;
2250 esac
2251 case " $ac_configure_args " in
2252 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2253 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2254 esac
2256 done
2257 if $ac_cache_corrupted; then
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2261 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2262 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2264 ## -------------------- ##
2265 ## Main body of script. ##
2266 ## -------------------- ##
2268 ac_ext=c
2269 ac_cpp='$CPP $CPPFLAGS'
2270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2275 am__api_version='1.11'
2277 ac_aux_dir=
2278 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2279 if test -f "$ac_dir/install-sh"; then
2280 ac_aux_dir=$ac_dir
2281 ac_install_sh="$ac_aux_dir/install-sh -c"
2282 break
2283 elif test -f "$ac_dir/install.sh"; then
2284 ac_aux_dir=$ac_dir
2285 ac_install_sh="$ac_aux_dir/install.sh -c"
2286 break
2287 elif test -f "$ac_dir/shtool"; then
2288 ac_aux_dir=$ac_dir
2289 ac_install_sh="$ac_aux_dir/shtool install -c"
2290 break
2292 done
2293 if test -z "$ac_aux_dir"; then
2294 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2297 # These three variables are undocumented and unsupported,
2298 # and are intended to be withdrawn in a future Autoconf release.
2299 # They can cause serious problems if a builder's source tree is in a directory
2300 # whose full name contains unusual characters.
2301 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2302 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2303 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2306 # Find a good install program. We prefer a C program (faster),
2307 # so one script is as good as another. But avoid the broken or
2308 # incompatible versions:
2309 # SysV /etc/install, /usr/sbin/install
2310 # SunOS /usr/etc/install
2311 # IRIX /sbin/install
2312 # AIX /bin/install
2313 # AmigaOS /C/install, which installs bootblocks on floppy discs
2314 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2315 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2316 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2317 # OS/2's system install, which has a completely different semantic
2318 # ./install, which can be erroneously created by make from ./install.sh.
2319 # Reject install programs that cannot install multiple files.
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2321 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2322 if test -z "$INSTALL"; then
2323 if ${ac_cv_path_install+:} false; then :
2324 $as_echo_n "(cached) " >&6
2325 else
2326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327 for as_dir in $PATH
2329 IFS=$as_save_IFS
2330 test -z "$as_dir" && as_dir=.
2331 # Account for people who put trailing slashes in PATH elements.
2332 case $as_dir/ in #((
2333 ./ | .// | /[cC]/* | \
2334 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2335 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2336 /usr/ucb/* ) ;;
2338 # OSF1 and SCO ODT 3.0 have their own names for install.
2339 # Don't use installbsd from OSF since it installs stuff as root
2340 # by default.
2341 for ac_prog in ginstall scoinst install; do
2342 for ac_exec_ext in '' $ac_executable_extensions; do
2343 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2344 if test $ac_prog = install &&
2345 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2346 # AIX install. It has an incompatible calling convention.
2348 elif test $ac_prog = install &&
2349 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2350 # program-specific install script used by HP pwplus--don't use.
2352 else
2353 rm -rf conftest.one conftest.two conftest.dir
2354 echo one > conftest.one
2355 echo two > conftest.two
2356 mkdir conftest.dir
2357 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2358 test -s conftest.one && test -s conftest.two &&
2359 test -s conftest.dir/conftest.one &&
2360 test -s conftest.dir/conftest.two
2361 then
2362 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2363 break 3
2367 done
2368 done
2370 esac
2372 done
2373 IFS=$as_save_IFS
2375 rm -rf conftest.one conftest.two conftest.dir
2378 if test "${ac_cv_path_install+set}" = set; then
2379 INSTALL=$ac_cv_path_install
2380 else
2381 # As a last resort, use the slow shell script. Don't cache a
2382 # value for INSTALL within a source directory, because that will
2383 # break other packages using the cache if that directory is
2384 # removed, or if the value is a relative name.
2385 INSTALL=$ac_install_sh
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2389 $as_echo "$INSTALL" >&6; }
2391 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2392 # It thinks the first close brace ends the variable substitution.
2393 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2395 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2397 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2400 $as_echo_n "checking whether build environment is sane... " >&6; }
2401 # Just in case
2402 sleep 1
2403 echo timestamp > conftest.file
2404 # Reject unsafe characters in $srcdir or the absolute working directory
2405 # name. Accept space and tab only in the latter.
2406 am_lf='
2408 case `pwd` in
2409 *[\\\"\#\$\&\'\`$am_lf]*)
2410 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2411 esac
2412 case $srcdir in
2413 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2414 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2415 esac
2417 # Do `set' in a subshell so we don't clobber the current shell's
2418 # arguments. Must try -L first in case configure is actually a
2419 # symlink; some systems play weird games with the mod time of symlinks
2420 # (eg FreeBSD returns the mod time of the symlink's containing
2421 # directory).
2422 if (
2423 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2424 if test "$*" = "X"; then
2425 # -L didn't work.
2426 set X `ls -t "$srcdir/configure" conftest.file`
2428 rm -f conftest.file
2429 if test "$*" != "X $srcdir/configure conftest.file" \
2430 && test "$*" != "X conftest.file $srcdir/configure"; then
2432 # If neither matched, then we have a broken ls. This can happen
2433 # if, for instance, CONFIG_SHELL is bash and it inherits a
2434 # broken ls alias from the environment. This has actually
2435 # happened. Such a system could not be considered "sane".
2436 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2437 alias in your environment" "$LINENO" 5
2440 test "$2" = conftest.file
2442 then
2443 # Ok.
2445 else
2446 as_fn_error $? "newly created file is older than distributed files!
2447 Check your system clock" "$LINENO" 5
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2450 $as_echo "yes" >&6; }
2451 test "$program_prefix" != NONE &&
2452 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2453 # Use a double $ so make ignores it.
2454 test "$program_suffix" != NONE &&
2455 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2456 # Double any \ or $.
2457 # By default was `s,x,x', remove it if useless.
2458 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2459 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2461 # expand $ac_aux_dir to an absolute path
2462 am_aux_dir=`cd $ac_aux_dir && pwd`
2464 if test x"${MISSING+set}" != xset; then
2465 case $am_aux_dir in
2466 *\ * | *\ *)
2467 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2469 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2470 esac
2472 # Use eval to expand $SHELL
2473 if eval "$MISSING --run true"; then
2474 am_missing_run="$MISSING --run "
2475 else
2476 am_missing_run=
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2478 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2481 if test x"${install_sh}" != xset; then
2482 case $am_aux_dir in
2483 *\ * | *\ *)
2484 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2486 install_sh="\${SHELL} $am_aux_dir/install-sh"
2487 esac
2490 # Installed binaries are usually stripped using `strip' when the user
2491 # run `make install-strip'. However `strip' might not be the right
2492 # tool to use in cross-compilation environments, therefore Automake
2493 # will honor the `STRIP' environment variable to overrule this program.
2494 if test "$cross_compiling" != no; then
2495 if test -n "$ac_tool_prefix"; then
2496 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2497 set dummy ${ac_tool_prefix}strip; ac_word=$2
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2499 $as_echo_n "checking for $ac_word... " >&6; }
2500 if ${ac_cv_prog_STRIP+:} false; then :
2501 $as_echo_n "(cached) " >&6
2502 else
2503 if test -n "$STRIP"; then
2504 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2505 else
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 for as_dir in $PATH
2509 IFS=$as_save_IFS
2510 test -z "$as_dir" && as_dir=.
2511 for ac_exec_ext in '' $ac_executable_extensions; do
2512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2513 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2515 break 2
2517 done
2518 done
2519 IFS=$as_save_IFS
2523 STRIP=$ac_cv_prog_STRIP
2524 if test -n "$STRIP"; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2526 $as_echo "$STRIP" >&6; }
2527 else
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2529 $as_echo "no" >&6; }
2534 if test -z "$ac_cv_prog_STRIP"; then
2535 ac_ct_STRIP=$STRIP
2536 # Extract the first word of "strip", so it can be a program name with args.
2537 set dummy strip; ac_word=$2
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2539 $as_echo_n "checking for $ac_word... " >&6; }
2540 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2541 $as_echo_n "(cached) " >&6
2542 else
2543 if test -n "$ac_ct_STRIP"; then
2544 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2545 else
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 for as_dir in $PATH
2549 IFS=$as_save_IFS
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2553 ac_cv_prog_ac_ct_STRIP="strip"
2554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2555 break 2
2557 done
2558 done
2559 IFS=$as_save_IFS
2563 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2564 if test -n "$ac_ct_STRIP"; then
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2566 $as_echo "$ac_ct_STRIP" >&6; }
2567 else
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2569 $as_echo "no" >&6; }
2572 if test "x$ac_ct_STRIP" = x; then
2573 STRIP=":"
2574 else
2575 case $cross_compiling:$ac_tool_warned in
2576 yes:)
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2578 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2579 ac_tool_warned=yes ;;
2580 esac
2581 STRIP=$ac_ct_STRIP
2583 else
2584 STRIP="$ac_cv_prog_STRIP"
2588 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2591 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2592 if test -z "$MKDIR_P"; then
2593 if ${ac_cv_path_mkdir+:} false; then :
2594 $as_echo_n "(cached) " >&6
2595 else
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2599 IFS=$as_save_IFS
2600 test -z "$as_dir" && as_dir=.
2601 for ac_prog in mkdir gmkdir; do
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2604 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2605 'mkdir (GNU coreutils) '* | \
2606 'mkdir (coreutils) '* | \
2607 'mkdir (fileutils) '4.1*)
2608 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2609 break 3;;
2610 esac
2611 done
2612 done
2613 done
2614 IFS=$as_save_IFS
2618 test -d ./--version && rmdir ./--version
2619 if test "${ac_cv_path_mkdir+set}" = set; then
2620 MKDIR_P="$ac_cv_path_mkdir -p"
2621 else
2622 # As a last resort, use the slow shell script. Don't cache a
2623 # value for MKDIR_P within a source directory, because that will
2624 # break other packages using the cache if that directory is
2625 # removed, or if the value is a relative name.
2626 MKDIR_P="$ac_install_sh -d"
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2630 $as_echo "$MKDIR_P" >&6; }
2632 mkdir_p="$MKDIR_P"
2633 case $mkdir_p in
2634 [\\/$]* | ?:[\\/]*) ;;
2635 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2636 esac
2638 for ac_prog in gawk mawk nawk awk
2640 # Extract the first word of "$ac_prog", so it can be a program name with args.
2641 set dummy $ac_prog; ac_word=$2
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2643 $as_echo_n "checking for $ac_word... " >&6; }
2644 if ${ac_cv_prog_AWK+:} false; then :
2645 $as_echo_n "(cached) " >&6
2646 else
2647 if test -n "$AWK"; then
2648 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2649 else
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 for as_dir in $PATH
2653 IFS=$as_save_IFS
2654 test -z "$as_dir" && as_dir=.
2655 for ac_exec_ext in '' $ac_executable_extensions; do
2656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2657 ac_cv_prog_AWK="$ac_prog"
2658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2659 break 2
2661 done
2662 done
2663 IFS=$as_save_IFS
2667 AWK=$ac_cv_prog_AWK
2668 if test -n "$AWK"; then
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2670 $as_echo "$AWK" >&6; }
2671 else
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2673 $as_echo "no" >&6; }
2677 test -n "$AWK" && break
2678 done
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2681 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2682 set x ${MAKE-make}
2683 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2684 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2685 $as_echo_n "(cached) " >&6
2686 else
2687 cat >conftest.make <<\_ACEOF
2688 SHELL = /bin/sh
2689 all:
2690 @echo '@@@%%%=$(MAKE)=@@@%%%'
2691 _ACEOF
2692 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2693 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2694 *@@@%%%=?*=@@@%%%*)
2695 eval ac_cv_prog_make_${ac_make}_set=yes;;
2697 eval ac_cv_prog_make_${ac_make}_set=no;;
2698 esac
2699 rm -f conftest.make
2701 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2703 $as_echo "yes" >&6; }
2704 SET_MAKE=
2705 else
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707 $as_echo "no" >&6; }
2708 SET_MAKE="MAKE=${MAKE-make}"
2711 rm -rf .tst 2>/dev/null
2712 mkdir .tst 2>/dev/null
2713 if test -d .tst; then
2714 am__leading_dot=.
2715 else
2716 am__leading_dot=_
2718 rmdir .tst 2>/dev/null
2720 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2721 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2722 # is not polluted with repeated "-I."
2723 am__isrc=' -I$(srcdir)'
2724 # test to see if srcdir already configured
2725 if test -f $srcdir/config.status; then
2726 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2730 # test whether we have cygpath
2731 if test -z "$CYGPATH_W"; then
2732 if (cygpath --version) >/dev/null 2>/dev/null; then
2733 CYGPATH_W='cygpath -w'
2734 else
2735 CYGPATH_W=echo
2740 # Define the identity of the package.
2741 PACKAGE=multi2sim
2742 VERSION=3.0.2
2745 cat >>confdefs.h <<_ACEOF
2746 #define PACKAGE "$PACKAGE"
2747 _ACEOF
2750 cat >>confdefs.h <<_ACEOF
2751 #define VERSION "$VERSION"
2752 _ACEOF
2754 # Some tools Automake needs.
2756 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2759 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2762 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2765 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2768 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2770 # We need awk for the "check" target. The system "awk" is bad on
2771 # some platforms.
2772 # Always define AMTAR for backward compatibility.
2774 AMTAR=${AMTAR-"${am_missing_run}tar"}
2776 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2782 DEPDIR="${am__leading_dot}deps"
2784 ac_config_commands="$ac_config_commands depfiles"
2787 am_make=${MAKE-make}
2788 cat > confinc << 'END'
2789 am__doit:
2790 @echo this is the am__doit target
2791 .PHONY: am__doit
2793 # If we don't find an include directive, just comment out the code.
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2795 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2796 am__include="#"
2797 am__quote=
2798 _am_result=none
2799 # First try GNU make style include.
2800 echo "include confinc" > confmf
2801 # Ignore all kinds of additional output from `make'.
2802 case `$am_make -s -f confmf 2> /dev/null` in #(
2803 *the\ am__doit\ target*)
2804 am__include=include
2805 am__quote=
2806 _am_result=GNU
2808 esac
2809 # Now try BSD make style include.
2810 if test "$am__include" = "#"; then
2811 echo '.include "confinc"' > confmf
2812 case `$am_make -s -f confmf 2> /dev/null` in #(
2813 *the\ am__doit\ target*)
2814 am__include=.include
2815 am__quote="\""
2816 _am_result=BSD
2818 esac
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2823 $as_echo "$_am_result" >&6; }
2824 rm -f confinc confmf
2826 # Check whether --enable-dependency-tracking was given.
2827 if test "${enable_dependency_tracking+set}" = set; then :
2828 enableval=$enable_dependency_tracking;
2831 if test "x$enable_dependency_tracking" != xno; then
2832 am_depcomp="$ac_aux_dir/depcomp"
2833 AMDEPBACKSLASH='\'
2835 if test "x$enable_dependency_tracking" != xno; then
2836 AMDEP_TRUE=
2837 AMDEP_FALSE='#'
2838 else
2839 AMDEP_TRUE='#'
2840 AMDEP_FALSE=
2844 ac_ext=c
2845 ac_cpp='$CPP $CPPFLAGS'
2846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2849 if test -n "$ac_tool_prefix"; then
2850 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2851 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2853 $as_echo_n "checking for $ac_word... " >&6; }
2854 if ${ac_cv_prog_CC+:} false; then :
2855 $as_echo_n "(cached) " >&6
2856 else
2857 if test -n "$CC"; then
2858 ac_cv_prog_CC="$CC" # Let the user override the test.
2859 else
2860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861 for as_dir in $PATH
2863 IFS=$as_save_IFS
2864 test -z "$as_dir" && as_dir=.
2865 for ac_exec_ext in '' $ac_executable_extensions; do
2866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2867 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2869 break 2
2871 done
2872 done
2873 IFS=$as_save_IFS
2877 CC=$ac_cv_prog_CC
2878 if test -n "$CC"; then
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2880 $as_echo "$CC" >&6; }
2881 else
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2883 $as_echo "no" >&6; }
2888 if test -z "$ac_cv_prog_CC"; then
2889 ac_ct_CC=$CC
2890 # Extract the first word of "gcc", so it can be a program name with args.
2891 set dummy gcc; ac_word=$2
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2893 $as_echo_n "checking for $ac_word... " >&6; }
2894 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2895 $as_echo_n "(cached) " >&6
2896 else
2897 if test -n "$ac_ct_CC"; then
2898 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2899 else
2900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901 for as_dir in $PATH
2903 IFS=$as_save_IFS
2904 test -z "$as_dir" && as_dir=.
2905 for ac_exec_ext in '' $ac_executable_extensions; do
2906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2907 ac_cv_prog_ac_ct_CC="gcc"
2908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2909 break 2
2911 done
2912 done
2913 IFS=$as_save_IFS
2917 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2918 if test -n "$ac_ct_CC"; then
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2920 $as_echo "$ac_ct_CC" >&6; }
2921 else
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2923 $as_echo "no" >&6; }
2926 if test "x$ac_ct_CC" = x; then
2927 CC=""
2928 else
2929 case $cross_compiling:$ac_tool_warned in
2930 yes:)
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2932 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2933 ac_tool_warned=yes ;;
2934 esac
2935 CC=$ac_ct_CC
2937 else
2938 CC="$ac_cv_prog_CC"
2941 if test -z "$CC"; then
2942 if test -n "$ac_tool_prefix"; then
2943 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2944 set dummy ${ac_tool_prefix}cc; ac_word=$2
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2946 $as_echo_n "checking for $ac_word... " >&6; }
2947 if ${ac_cv_prog_CC+:} false; then :
2948 $as_echo_n "(cached) " >&6
2949 else
2950 if test -n "$CC"; then
2951 ac_cv_prog_CC="$CC" # Let the user override the test.
2952 else
2953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 for as_dir in $PATH
2956 IFS=$as_save_IFS
2957 test -z "$as_dir" && as_dir=.
2958 for ac_exec_ext in '' $ac_executable_extensions; do
2959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2960 ac_cv_prog_CC="${ac_tool_prefix}cc"
2961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2962 break 2
2964 done
2965 done
2966 IFS=$as_save_IFS
2970 CC=$ac_cv_prog_CC
2971 if test -n "$CC"; then
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2973 $as_echo "$CC" >&6; }
2974 else
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 $as_echo "no" >&6; }
2982 if test -z "$CC"; then
2983 # Extract the first word of "cc", so it can be a program name with args.
2984 set dummy cc; ac_word=$2
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2986 $as_echo_n "checking for $ac_word... " >&6; }
2987 if ${ac_cv_prog_CC+:} false; then :
2988 $as_echo_n "(cached) " >&6
2989 else
2990 if test -n "$CC"; then
2991 ac_cv_prog_CC="$CC" # Let the user override the test.
2992 else
2993 ac_prog_rejected=no
2994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995 for as_dir in $PATH
2997 IFS=$as_save_IFS
2998 test -z "$as_dir" && as_dir=.
2999 for ac_exec_ext in '' $ac_executable_extensions; do
3000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3001 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3002 ac_prog_rejected=yes
3003 continue
3005 ac_cv_prog_CC="cc"
3006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3007 break 2
3009 done
3010 done
3011 IFS=$as_save_IFS
3013 if test $ac_prog_rejected = yes; then
3014 # We found a bogon in the path, so make sure we never use it.
3015 set dummy $ac_cv_prog_CC
3016 shift
3017 if test $# != 0; then
3018 # We chose a different compiler from the bogus one.
3019 # However, it has the same basename, so the bogon will be chosen
3020 # first if we set CC to just the basename; use the full file name.
3021 shift
3022 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3027 CC=$ac_cv_prog_CC
3028 if test -n "$CC"; then
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3030 $as_echo "$CC" >&6; }
3031 else
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033 $as_echo "no" >&6; }
3038 if test -z "$CC"; then
3039 if test -n "$ac_tool_prefix"; then
3040 for ac_prog in cl.exe
3042 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3043 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3045 $as_echo_n "checking for $ac_word... " >&6; }
3046 if ${ac_cv_prog_CC+:} false; then :
3047 $as_echo_n "(cached) " >&6
3048 else
3049 if test -n "$CC"; then
3050 ac_cv_prog_CC="$CC" # Let the user override the test.
3051 else
3052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053 for as_dir in $PATH
3055 IFS=$as_save_IFS
3056 test -z "$as_dir" && as_dir=.
3057 for ac_exec_ext in '' $ac_executable_extensions; do
3058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3059 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3061 break 2
3063 done
3064 done
3065 IFS=$as_save_IFS
3069 CC=$ac_cv_prog_CC
3070 if test -n "$CC"; then
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3072 $as_echo "$CC" >&6; }
3073 else
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075 $as_echo "no" >&6; }
3079 test -n "$CC" && break
3080 done
3082 if test -z "$CC"; then
3083 ac_ct_CC=$CC
3084 for ac_prog in cl.exe
3086 # Extract the first word of "$ac_prog", so it can be a program name with args.
3087 set dummy $ac_prog; ac_word=$2
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3089 $as_echo_n "checking for $ac_word... " >&6; }
3090 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3091 $as_echo_n "(cached) " >&6
3092 else
3093 if test -n "$ac_ct_CC"; then
3094 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3095 else
3096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097 for as_dir in $PATH
3099 IFS=$as_save_IFS
3100 test -z "$as_dir" && as_dir=.
3101 for ac_exec_ext in '' $ac_executable_extensions; do
3102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3103 ac_cv_prog_ac_ct_CC="$ac_prog"
3104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3105 break 2
3107 done
3108 done
3109 IFS=$as_save_IFS
3113 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3114 if test -n "$ac_ct_CC"; then
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3116 $as_echo "$ac_ct_CC" >&6; }
3117 else
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119 $as_echo "no" >&6; }
3123 test -n "$ac_ct_CC" && break
3124 done
3126 if test "x$ac_ct_CC" = x; then
3127 CC=""
3128 else
3129 case $cross_compiling:$ac_tool_warned in
3130 yes:)
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3132 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3133 ac_tool_warned=yes ;;
3134 esac
3135 CC=$ac_ct_CC
3142 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3144 as_fn_error $? "no acceptable C compiler found in \$PATH
3145 See \`config.log' for more details" "$LINENO" 5; }
3147 # Provide some information about the compiler.
3148 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3149 set X $ac_compile
3150 ac_compiler=$2
3151 for ac_option in --version -v -V -qversion; do
3152 { { ac_try="$ac_compiler $ac_option >&5"
3153 case "(($ac_try" in
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3156 esac
3157 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3158 $as_echo "$ac_try_echo"; } >&5
3159 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3160 ac_status=$?
3161 if test -s conftest.err; then
3162 sed '10a\
3163 ... rest of stderr output deleted ...
3164 10q' conftest.err >conftest.er1
3165 cat conftest.er1 >&5
3167 rm -f conftest.er1 conftest.err
3168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3169 test $ac_status = 0; }
3170 done
3172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3173 /* end confdefs.h. */
3176 main ()
3180 return 0;
3182 _ACEOF
3183 ac_clean_files_save=$ac_clean_files
3184 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3185 # Try to create an executable without -o first, disregard a.out.
3186 # It will help us diagnose broken compilers, and finding out an intuition
3187 # of exeext.
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3189 $as_echo_n "checking whether the C compiler works... " >&6; }
3190 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3192 # The possible output files:
3193 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3195 ac_rmfiles=
3196 for ac_file in $ac_files
3198 case $ac_file in
3199 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3200 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3201 esac
3202 done
3203 rm -f $ac_rmfiles
3205 if { { ac_try="$ac_link_default"
3206 case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3209 esac
3210 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3211 $as_echo "$ac_try_echo"; } >&5
3212 (eval "$ac_link_default") 2>&5
3213 ac_status=$?
3214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3215 test $ac_status = 0; }; then :
3216 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3217 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3218 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3219 # so that the user can short-circuit this test for compilers unknown to
3220 # Autoconf.
3221 for ac_file in $ac_files ''
3223 test -f "$ac_file" || continue
3224 case $ac_file in
3225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3227 [ab].out )
3228 # We found the default executable, but exeext='' is most
3229 # certainly right.
3230 break;;
3231 *.* )
3232 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3233 then :; else
3234 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3236 # We set ac_cv_exeext here because the later test for it is not
3237 # safe: cross compilers may not add the suffix if given an `-o'
3238 # argument, so we may need to know it at that point already.
3239 # Even if this section looks crufty: it has the advantage of
3240 # actually working.
3241 break;;
3243 break;;
3244 esac
3245 done
3246 test "$ac_cv_exeext" = no && ac_cv_exeext=
3248 else
3249 ac_file=''
3251 if test -z "$ac_file"; then :
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253 $as_echo "no" >&6; }
3254 $as_echo "$as_me: failed program was:" >&5
3255 sed 's/^/| /' conftest.$ac_ext >&5
3257 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3259 as_fn_error 77 "C compiler cannot create executables
3260 See \`config.log' for more details" "$LINENO" 5; }
3261 else
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3263 $as_echo "yes" >&6; }
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3266 $as_echo_n "checking for C compiler default output file name... " >&6; }
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3268 $as_echo "$ac_file" >&6; }
3269 ac_exeext=$ac_cv_exeext
3271 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3272 ac_clean_files=$ac_clean_files_save
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3274 $as_echo_n "checking for suffix of executables... " >&6; }
3275 if { { ac_try="$ac_link"
3276 case "(($ac_try" in
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3279 esac
3280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3281 $as_echo "$ac_try_echo"; } >&5
3282 (eval "$ac_link") 2>&5
3283 ac_status=$?
3284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3285 test $ac_status = 0; }; then :
3286 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3287 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3288 # work properly (i.e., refer to `conftest.exe'), while it won't with
3289 # `rm'.
3290 for ac_file in conftest.exe conftest conftest.*; do
3291 test -f "$ac_file" || continue
3292 case $ac_file in
3293 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3294 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3295 break;;
3296 * ) break;;
3297 esac
3298 done
3299 else
3300 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3302 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3303 See \`config.log' for more details" "$LINENO" 5; }
3305 rm -f conftest conftest$ac_cv_exeext
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3307 $as_echo "$ac_cv_exeext" >&6; }
3309 rm -f conftest.$ac_ext
3310 EXEEXT=$ac_cv_exeext
3311 ac_exeext=$EXEEXT
3312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3313 /* end confdefs.h. */
3314 #include <stdio.h>
3316 main ()
3318 FILE *f = fopen ("conftest.out", "w");
3319 return ferror (f) || fclose (f) != 0;
3322 return 0;
3324 _ACEOF
3325 ac_clean_files="$ac_clean_files conftest.out"
3326 # Check that the compiler produces executables we can run. If not, either
3327 # the compiler is broken, or we cross compile.
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3329 $as_echo_n "checking whether we are cross compiling... " >&6; }
3330 if test "$cross_compiling" != yes; then
3331 { { ac_try="$ac_link"
3332 case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3335 esac
3336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3337 $as_echo "$ac_try_echo"; } >&5
3338 (eval "$ac_link") 2>&5
3339 ac_status=$?
3340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3341 test $ac_status = 0; }
3342 if { ac_try='./conftest$ac_cv_exeext'
3343 { { case "(($ac_try" in
3344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345 *) ac_try_echo=$ac_try;;
3346 esac
3347 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3348 $as_echo "$ac_try_echo"; } >&5
3349 (eval "$ac_try") 2>&5
3350 ac_status=$?
3351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3352 test $ac_status = 0; }; }; then
3353 cross_compiling=no
3354 else
3355 if test "$cross_compiling" = maybe; then
3356 cross_compiling=yes
3357 else
3358 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3360 as_fn_error $? "cannot run C compiled programs.
3361 If you meant to cross compile, use \`--host'.
3362 See \`config.log' for more details" "$LINENO" 5; }
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3367 $as_echo "$cross_compiling" >&6; }
3369 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3370 ac_clean_files=$ac_clean_files_save
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3372 $as_echo_n "checking for suffix of object files... " >&6; }
3373 if ${ac_cv_objext+:} false; then :
3374 $as_echo_n "(cached) " >&6
3375 else
3376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377 /* end confdefs.h. */
3380 main ()
3384 return 0;
3386 _ACEOF
3387 rm -f conftest.o conftest.obj
3388 if { { ac_try="$ac_compile"
3389 case "(($ac_try" in
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3392 esac
3393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3394 $as_echo "$ac_try_echo"; } >&5
3395 (eval "$ac_compile") 2>&5
3396 ac_status=$?
3397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398 test $ac_status = 0; }; then :
3399 for ac_file in conftest.o conftest.obj conftest.*; do
3400 test -f "$ac_file" || continue;
3401 case $ac_file in
3402 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3403 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3404 break;;
3405 esac
3406 done
3407 else
3408 $as_echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3413 as_fn_error $? "cannot compute suffix of object files: cannot compile
3414 See \`config.log' for more details" "$LINENO" 5; }
3416 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3419 $as_echo "$ac_cv_objext" >&6; }
3420 OBJEXT=$ac_cv_objext
3421 ac_objext=$OBJEXT
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3423 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3424 if ${ac_cv_c_compiler_gnu+:} false; then :
3425 $as_echo_n "(cached) " >&6
3426 else
3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428 /* end confdefs.h. */
3431 main ()
3433 #ifndef __GNUC__
3434 choke me
3435 #endif
3438 return 0;
3440 _ACEOF
3441 if ac_fn_c_try_compile "$LINENO"; then :
3442 ac_compiler_gnu=yes
3443 else
3444 ac_compiler_gnu=no
3446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3447 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3451 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3452 if test $ac_compiler_gnu = yes; then
3453 GCC=yes
3454 else
3455 GCC=
3457 ac_test_CFLAGS=${CFLAGS+set}
3458 ac_save_CFLAGS=$CFLAGS
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3460 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3461 if ${ac_cv_prog_cc_g+:} false; then :
3462 $as_echo_n "(cached) " >&6
3463 else
3464 ac_save_c_werror_flag=$ac_c_werror_flag
3465 ac_c_werror_flag=yes
3466 ac_cv_prog_cc_g=no
3467 CFLAGS="-g"
3468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469 /* end confdefs.h. */
3472 main ()
3476 return 0;
3478 _ACEOF
3479 if ac_fn_c_try_compile "$LINENO"; then :
3480 ac_cv_prog_cc_g=yes
3481 else
3482 CFLAGS=""
3483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484 /* end confdefs.h. */
3487 main ()
3491 return 0;
3493 _ACEOF
3494 if ac_fn_c_try_compile "$LINENO"; then :
3496 else
3497 ac_c_werror_flag=$ac_save_c_werror_flag
3498 CFLAGS="-g"
3499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500 /* end confdefs.h. */
3503 main ()
3507 return 0;
3509 _ACEOF
3510 if ac_fn_c_try_compile "$LINENO"; then :
3511 ac_cv_prog_cc_g=yes
3513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3518 ac_c_werror_flag=$ac_save_c_werror_flag
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3521 $as_echo "$ac_cv_prog_cc_g" >&6; }
3522 if test "$ac_test_CFLAGS" = set; then
3523 CFLAGS=$ac_save_CFLAGS
3524 elif test $ac_cv_prog_cc_g = yes; then
3525 if test "$GCC" = yes; then
3526 CFLAGS="-g -O2"
3527 else
3528 CFLAGS="-g"
3530 else
3531 if test "$GCC" = yes; then
3532 CFLAGS="-O2"
3533 else
3534 CFLAGS=
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3538 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3539 if ${ac_cv_prog_cc_c89+:} false; then :
3540 $as_echo_n "(cached) " >&6
3541 else
3542 ac_cv_prog_cc_c89=no
3543 ac_save_CC=$CC
3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545 /* end confdefs.h. */
3546 #include <stdarg.h>
3547 #include <stdio.h>
3548 #include <sys/types.h>
3549 #include <sys/stat.h>
3550 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3551 struct buf { int x; };
3552 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3553 static char *e (p, i)
3554 char **p;
3555 int i;
3557 return p[i];
3559 static char *f (char * (*g) (char **, int), char **p, ...)
3561 char *s;
3562 va_list v;
3563 va_start (v,p);
3564 s = g (p, va_arg (v,int));
3565 va_end (v);
3566 return s;
3569 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3570 function prototypes and stuff, but not '\xHH' hex character constants.
3571 These don't provoke an error unfortunately, instead are silently treated
3572 as 'x'. The following induces an error, until -std is added to get
3573 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3574 array size at least. It's necessary to write '\x00'==0 to get something
3575 that's true only with -std. */
3576 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3578 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3579 inside strings and character constants. */
3580 #define FOO(x) 'x'
3581 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3583 int test (int i, double x);
3584 struct s1 {int (*f) (int a);};
3585 struct s2 {int (*f) (double a);};
3586 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3587 int argc;
3588 char **argv;
3590 main ()
3592 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3594 return 0;
3596 _ACEOF
3597 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3598 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3600 CC="$ac_save_CC $ac_arg"
3601 if ac_fn_c_try_compile "$LINENO"; then :
3602 ac_cv_prog_cc_c89=$ac_arg
3604 rm -f core conftest.err conftest.$ac_objext
3605 test "x$ac_cv_prog_cc_c89" != "xno" && break
3606 done
3607 rm -f conftest.$ac_ext
3608 CC=$ac_save_CC
3611 # AC_CACHE_VAL
3612 case "x$ac_cv_prog_cc_c89" in
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3615 $as_echo "none needed" >&6; } ;;
3616 xno)
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3618 $as_echo "unsupported" >&6; } ;;
3620 CC="$CC $ac_cv_prog_cc_c89"
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3622 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3623 esac
3624 if test "x$ac_cv_prog_cc_c89" != xno; then :
3628 ac_ext=c
3629 ac_cpp='$CPP $CPPFLAGS'
3630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3634 depcc="$CC" am_compiler_list=
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3637 $as_echo_n "checking dependency style of $depcc... " >&6; }
3638 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3639 $as_echo_n "(cached) " >&6
3640 else
3641 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3642 # We make a subdir and do the tests there. Otherwise we can end up
3643 # making bogus files that we don't know about and never remove. For
3644 # instance it was reported that on HP-UX the gcc test will end up
3645 # making a dummy file named `D' -- because `-MD' means `put the output
3646 # in D'.
3647 mkdir conftest.dir
3648 # Copy depcomp to subdir because otherwise we won't find it if we're
3649 # using a relative directory.
3650 cp "$am_depcomp" conftest.dir
3651 cd conftest.dir
3652 # We will build objects and dependencies in a subdirectory because
3653 # it helps to detect inapplicable dependency modes. For instance
3654 # both Tru64's cc and ICC support -MD to output dependencies as a
3655 # side effect of compilation, but ICC will put the dependencies in
3656 # the current directory while Tru64 will put them in the object
3657 # directory.
3658 mkdir sub
3660 am_cv_CC_dependencies_compiler_type=none
3661 if test "$am_compiler_list" = ""; then
3662 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3664 am__universal=false
3665 case " $depcc " in #(
3666 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3667 esac
3669 for depmode in $am_compiler_list; do
3670 # Setup a source with many dependencies, because some compilers
3671 # like to wrap large dependency lists on column 80 (with \), and
3672 # we should not choose a depcomp mode which is confused by this.
3674 # We need to recreate these files for each test, as the compiler may
3675 # overwrite some of them when testing with obscure command lines.
3676 # This happens at least with the AIX C compiler.
3677 : > sub/conftest.c
3678 for i in 1 2 3 4 5 6; do
3679 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3680 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3681 # Solaris 8's {/usr,}/bin/sh.
3682 touch sub/conftst$i.h
3683 done
3684 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3686 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3687 # mode. It turns out that the SunPro C++ compiler does not properly
3688 # handle `-M -o', and we need to detect this. Also, some Intel
3689 # versions had trouble with output in subdirs
3690 am__obj=sub/conftest.${OBJEXT-o}
3691 am__minus_obj="-o $am__obj"
3692 case $depmode in
3693 gcc)
3694 # This depmode causes a compiler race in universal mode.
3695 test "$am__universal" = false || continue
3697 nosideeffect)
3698 # after this tag, mechanisms are not by side-effect, so they'll
3699 # only be used when explicitly requested
3700 if test "x$enable_dependency_tracking" = xyes; then
3701 continue
3702 else
3703 break
3706 msvisualcpp | msvcmsys)
3707 # This compiler won't grok `-c -o', but also, the minuso test has
3708 # not run yet. These depmodes are late enough in the game, and
3709 # so weak that their functioning should not be impacted.
3710 am__obj=conftest.${OBJEXT-o}
3711 am__minus_obj=
3713 none) break ;;
3714 esac
3715 if depmode=$depmode \
3716 source=sub/conftest.c object=$am__obj \
3717 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3718 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3719 >/dev/null 2>conftest.err &&
3720 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3721 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3722 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3723 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3724 # icc doesn't choke on unknown options, it will just issue warnings
3725 # or remarks (even with -Werror). So we grep stderr for any message
3726 # that says an option was ignored or not supported.
3727 # When given -MP, icc 7.0 and 7.1 complain thusly:
3728 # icc: Command line warning: ignoring option '-M'; no argument required
3729 # The diagnosis changed in icc 8.0:
3730 # icc: Command line remark: option '-MP' not supported
3731 if (grep 'ignoring option' conftest.err ||
3732 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3733 am_cv_CC_dependencies_compiler_type=$depmode
3734 break
3737 done
3739 cd ..
3740 rm -rf conftest.dir
3741 else
3742 am_cv_CC_dependencies_compiler_type=none
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3747 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3748 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3751 test "x$enable_dependency_tracking" != xno \
3752 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3753 am__fastdepCC_TRUE=
3754 am__fastdepCC_FALSE='#'
3755 else
3756 am__fastdepCC_TRUE='#'
3757 am__fastdepCC_FALSE=
3761 # By default we simply use the C compiler to build assembly code.
3763 test "${CCAS+set}" = set || CCAS=$CC
3764 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3768 depcc="$CCAS" am_compiler_list=
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3771 $as_echo_n "checking dependency style of $depcc... " >&6; }
3772 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
3773 $as_echo_n "(cached) " >&6
3774 else
3775 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3776 # We make a subdir and do the tests there. Otherwise we can end up
3777 # making bogus files that we don't know about and never remove. For
3778 # instance it was reported that on HP-UX the gcc test will end up
3779 # making a dummy file named `D' -- because `-MD' means `put the output
3780 # in D'.
3781 mkdir conftest.dir
3782 # Copy depcomp to subdir because otherwise we won't find it if we're
3783 # using a relative directory.
3784 cp "$am_depcomp" conftest.dir
3785 cd conftest.dir
3786 # We will build objects and dependencies in a subdirectory because
3787 # it helps to detect inapplicable dependency modes. For instance
3788 # both Tru64's cc and ICC support -MD to output dependencies as a
3789 # side effect of compilation, but ICC will put the dependencies in
3790 # the current directory while Tru64 will put them in the object
3791 # directory.
3792 mkdir sub
3794 am_cv_CCAS_dependencies_compiler_type=none
3795 if test "$am_compiler_list" = ""; then
3796 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3798 am__universal=false
3801 for depmode in $am_compiler_list; do
3802 # Setup a source with many dependencies, because some compilers
3803 # like to wrap large dependency lists on column 80 (with \), and
3804 # we should not choose a depcomp mode which is confused by this.
3806 # We need to recreate these files for each test, as the compiler may
3807 # overwrite some of them when testing with obscure command lines.
3808 # This happens at least with the AIX C compiler.
3809 : > sub/conftest.c
3810 for i in 1 2 3 4 5 6; do
3811 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3812 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3813 # Solaris 8's {/usr,}/bin/sh.
3814 touch sub/conftst$i.h
3815 done
3816 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3818 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3819 # mode. It turns out that the SunPro C++ compiler does not properly
3820 # handle `-M -o', and we need to detect this. Also, some Intel
3821 # versions had trouble with output in subdirs
3822 am__obj=sub/conftest.${OBJEXT-o}
3823 am__minus_obj="-o $am__obj"
3824 case $depmode in
3825 gcc)
3826 # This depmode causes a compiler race in universal mode.
3827 test "$am__universal" = false || continue
3829 nosideeffect)
3830 # after this tag, mechanisms are not by side-effect, so they'll
3831 # only be used when explicitly requested
3832 if test "x$enable_dependency_tracking" = xyes; then
3833 continue
3834 else
3835 break
3838 msvisualcpp | msvcmsys)
3839 # This compiler won't grok `-c -o', but also, the minuso test has
3840 # not run yet. These depmodes are late enough in the game, and
3841 # so weak that their functioning should not be impacted.
3842 am__obj=conftest.${OBJEXT-o}
3843 am__minus_obj=
3845 none) break ;;
3846 esac
3847 if depmode=$depmode \
3848 source=sub/conftest.c object=$am__obj \
3849 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3850 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3851 >/dev/null 2>conftest.err &&
3852 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3853 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3854 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3855 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3856 # icc doesn't choke on unknown options, it will just issue warnings
3857 # or remarks (even with -Werror). So we grep stderr for any message
3858 # that says an option was ignored or not supported.
3859 # When given -MP, icc 7.0 and 7.1 complain thusly:
3860 # icc: Command line warning: ignoring option '-M'; no argument required
3861 # The diagnosis changed in icc 8.0:
3862 # icc: Command line remark: option '-MP' not supported
3863 if (grep 'ignoring option' conftest.err ||
3864 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3865 am_cv_CCAS_dependencies_compiler_type=$depmode
3866 break
3869 done
3871 cd ..
3872 rm -rf conftest.dir
3873 else
3874 am_cv_CCAS_dependencies_compiler_type=none
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
3879 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
3880 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
3883 test "x$enable_dependency_tracking" != xno \
3884 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
3885 am__fastdepCCAS_TRUE=
3886 am__fastdepCCAS_FALSE='#'
3887 else
3888 am__fastdepCCAS_TRUE='#'
3889 am__fastdepCCAS_FALSE=
3893 ac_ext=c
3894 ac_cpp='$CPP $CPPFLAGS'
3895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3898 if test -n "$ac_tool_prefix"; then
3899 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3900 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3902 $as_echo_n "checking for $ac_word... " >&6; }
3903 if ${ac_cv_prog_CC+:} false; then :
3904 $as_echo_n "(cached) " >&6
3905 else
3906 if test -n "$CC"; then
3907 ac_cv_prog_CC="$CC" # Let the user override the test.
3908 else
3909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910 for as_dir in $PATH
3912 IFS=$as_save_IFS
3913 test -z "$as_dir" && as_dir=.
3914 for ac_exec_ext in '' $ac_executable_extensions; do
3915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3916 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3918 break 2
3920 done
3921 done
3922 IFS=$as_save_IFS
3926 CC=$ac_cv_prog_CC
3927 if test -n "$CC"; then
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3929 $as_echo "$CC" >&6; }
3930 else
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3932 $as_echo "no" >&6; }
3937 if test -z "$ac_cv_prog_CC"; then
3938 ac_ct_CC=$CC
3939 # Extract the first word of "gcc", so it can be a program name with args.
3940 set dummy gcc; ac_word=$2
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3942 $as_echo_n "checking for $ac_word... " >&6; }
3943 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3944 $as_echo_n "(cached) " >&6
3945 else
3946 if test -n "$ac_ct_CC"; then
3947 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3948 else
3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950 for as_dir in $PATH
3952 IFS=$as_save_IFS
3953 test -z "$as_dir" && as_dir=.
3954 for ac_exec_ext in '' $ac_executable_extensions; do
3955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3956 ac_cv_prog_ac_ct_CC="gcc"
3957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3958 break 2
3960 done
3961 done
3962 IFS=$as_save_IFS
3966 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3967 if test -n "$ac_ct_CC"; then
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3969 $as_echo "$ac_ct_CC" >&6; }
3970 else
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3972 $as_echo "no" >&6; }
3975 if test "x$ac_ct_CC" = x; then
3976 CC=""
3977 else
3978 case $cross_compiling:$ac_tool_warned in
3979 yes:)
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3982 ac_tool_warned=yes ;;
3983 esac
3984 CC=$ac_ct_CC
3986 else
3987 CC="$ac_cv_prog_CC"
3990 if test -z "$CC"; then
3991 if test -n "$ac_tool_prefix"; then
3992 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3993 set dummy ${ac_tool_prefix}cc; ac_word=$2
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3995 $as_echo_n "checking for $ac_word... " >&6; }
3996 if ${ac_cv_prog_CC+:} false; then :
3997 $as_echo_n "(cached) " >&6
3998 else
3999 if test -n "$CC"; then
4000 ac_cv_prog_CC="$CC" # Let the user override the test.
4001 else
4002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003 for as_dir in $PATH
4005 IFS=$as_save_IFS
4006 test -z "$as_dir" && as_dir=.
4007 for ac_exec_ext in '' $ac_executable_extensions; do
4008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4009 ac_cv_prog_CC="${ac_tool_prefix}cc"
4010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4011 break 2
4013 done
4014 done
4015 IFS=$as_save_IFS
4019 CC=$ac_cv_prog_CC
4020 if test -n "$CC"; then
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4022 $as_echo "$CC" >&6; }
4023 else
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4025 $as_echo "no" >&6; }
4031 if test -z "$CC"; then
4032 # Extract the first word of "cc", so it can be a program name with args.
4033 set dummy cc; ac_word=$2
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4035 $as_echo_n "checking for $ac_word... " >&6; }
4036 if ${ac_cv_prog_CC+:} false; then :
4037 $as_echo_n "(cached) " >&6
4038 else
4039 if test -n "$CC"; then
4040 ac_cv_prog_CC="$CC" # Let the user override the test.
4041 else
4042 ac_prog_rejected=no
4043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044 for as_dir in $PATH
4046 IFS=$as_save_IFS
4047 test -z "$as_dir" && as_dir=.
4048 for ac_exec_ext in '' $ac_executable_extensions; do
4049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4050 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4051 ac_prog_rejected=yes
4052 continue
4054 ac_cv_prog_CC="cc"
4055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4056 break 2
4058 done
4059 done
4060 IFS=$as_save_IFS
4062 if test $ac_prog_rejected = yes; then
4063 # We found a bogon in the path, so make sure we never use it.
4064 set dummy $ac_cv_prog_CC
4065 shift
4066 if test $# != 0; then
4067 # We chose a different compiler from the bogus one.
4068 # However, it has the same basename, so the bogon will be chosen
4069 # first if we set CC to just the basename; use the full file name.
4070 shift
4071 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4076 CC=$ac_cv_prog_CC
4077 if test -n "$CC"; then
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4079 $as_echo "$CC" >&6; }
4080 else
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4082 $as_echo "no" >&6; }
4087 if test -z "$CC"; then
4088 if test -n "$ac_tool_prefix"; then
4089 for ac_prog in cl.exe
4091 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4092 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4094 $as_echo_n "checking for $ac_word... " >&6; }
4095 if ${ac_cv_prog_CC+:} false; then :
4096 $as_echo_n "(cached) " >&6
4097 else
4098 if test -n "$CC"; then
4099 ac_cv_prog_CC="$CC" # Let the user override the test.
4100 else
4101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102 for as_dir in $PATH
4104 IFS=$as_save_IFS
4105 test -z "$as_dir" && as_dir=.
4106 for ac_exec_ext in '' $ac_executable_extensions; do
4107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4108 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4110 break 2
4112 done
4113 done
4114 IFS=$as_save_IFS
4118 CC=$ac_cv_prog_CC
4119 if test -n "$CC"; then
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4121 $as_echo "$CC" >&6; }
4122 else
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4124 $as_echo "no" >&6; }
4128 test -n "$CC" && break
4129 done
4131 if test -z "$CC"; then
4132 ac_ct_CC=$CC
4133 for ac_prog in cl.exe
4135 # Extract the first word of "$ac_prog", so it can be a program name with args.
4136 set dummy $ac_prog; ac_word=$2
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4138 $as_echo_n "checking for $ac_word... " >&6; }
4139 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4140 $as_echo_n "(cached) " >&6
4141 else
4142 if test -n "$ac_ct_CC"; then
4143 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4144 else
4145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4146 for as_dir in $PATH
4148 IFS=$as_save_IFS
4149 test -z "$as_dir" && as_dir=.
4150 for ac_exec_ext in '' $ac_executable_extensions; do
4151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4152 ac_cv_prog_ac_ct_CC="$ac_prog"
4153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4154 break 2
4156 done
4157 done
4158 IFS=$as_save_IFS
4162 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4163 if test -n "$ac_ct_CC"; then
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4165 $as_echo "$ac_ct_CC" >&6; }
4166 else
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4168 $as_echo "no" >&6; }
4172 test -n "$ac_ct_CC" && break
4173 done
4175 if test "x$ac_ct_CC" = x; then
4176 CC=""
4177 else
4178 case $cross_compiling:$ac_tool_warned in
4179 yes:)
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4182 ac_tool_warned=yes ;;
4183 esac
4184 CC=$ac_ct_CC
4191 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4193 as_fn_error $? "no acceptable C compiler found in \$PATH
4194 See \`config.log' for more details" "$LINENO" 5; }
4196 # Provide some information about the compiler.
4197 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4198 set X $ac_compile
4199 ac_compiler=$2
4200 for ac_option in --version -v -V -qversion; do
4201 { { ac_try="$ac_compiler $ac_option >&5"
4202 case "(($ac_try" in
4203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4204 *) ac_try_echo=$ac_try;;
4205 esac
4206 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4207 $as_echo "$ac_try_echo"; } >&5
4208 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4209 ac_status=$?
4210 if test -s conftest.err; then
4211 sed '10a\
4212 ... rest of stderr output deleted ...
4213 10q' conftest.err >conftest.er1
4214 cat conftest.er1 >&5
4216 rm -f conftest.er1 conftest.err
4217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4218 test $ac_status = 0; }
4219 done
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4222 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4223 if ${ac_cv_c_compiler_gnu+:} false; then :
4224 $as_echo_n "(cached) " >&6
4225 else
4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h. */
4230 main ()
4232 #ifndef __GNUC__
4233 choke me
4234 #endif
4237 return 0;
4239 _ACEOF
4240 if ac_fn_c_try_compile "$LINENO"; then :
4241 ac_compiler_gnu=yes
4242 else
4243 ac_compiler_gnu=no
4245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4246 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4250 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4251 if test $ac_compiler_gnu = yes; then
4252 GCC=yes
4253 else
4254 GCC=
4256 ac_test_CFLAGS=${CFLAGS+set}
4257 ac_save_CFLAGS=$CFLAGS
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4259 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4260 if ${ac_cv_prog_cc_g+:} false; then :
4261 $as_echo_n "(cached) " >&6
4262 else
4263 ac_save_c_werror_flag=$ac_c_werror_flag
4264 ac_c_werror_flag=yes
4265 ac_cv_prog_cc_g=no
4266 CFLAGS="-g"
4267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4268 /* end confdefs.h. */
4271 main ()
4275 return 0;
4277 _ACEOF
4278 if ac_fn_c_try_compile "$LINENO"; then :
4279 ac_cv_prog_cc_g=yes
4280 else
4281 CFLAGS=""
4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h. */
4286 main ()
4290 return 0;
4292 _ACEOF
4293 if ac_fn_c_try_compile "$LINENO"; then :
4295 else
4296 ac_c_werror_flag=$ac_save_c_werror_flag
4297 CFLAGS="-g"
4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h. */
4302 main ()
4306 return 0;
4308 _ACEOF
4309 if ac_fn_c_try_compile "$LINENO"; then :
4310 ac_cv_prog_cc_g=yes
4312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4317 ac_c_werror_flag=$ac_save_c_werror_flag
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4320 $as_echo "$ac_cv_prog_cc_g" >&6; }
4321 if test "$ac_test_CFLAGS" = set; then
4322 CFLAGS=$ac_save_CFLAGS
4323 elif test $ac_cv_prog_cc_g = yes; then
4324 if test "$GCC" = yes; then
4325 CFLAGS="-g -O2"
4326 else
4327 CFLAGS="-g"
4329 else
4330 if test "$GCC" = yes; then
4331 CFLAGS="-O2"
4332 else
4333 CFLAGS=
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4337 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4338 if ${ac_cv_prog_cc_c89+:} false; then :
4339 $as_echo_n "(cached) " >&6
4340 else
4341 ac_cv_prog_cc_c89=no
4342 ac_save_CC=$CC
4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h. */
4345 #include <stdarg.h>
4346 #include <stdio.h>
4347 #include <sys/types.h>
4348 #include <sys/stat.h>
4349 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4350 struct buf { int x; };
4351 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4352 static char *e (p, i)
4353 char **p;
4354 int i;
4356 return p[i];
4358 static char *f (char * (*g) (char **, int), char **p, ...)
4360 char *s;
4361 va_list v;
4362 va_start (v,p);
4363 s = g (p, va_arg (v,int));
4364 va_end (v);
4365 return s;
4368 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4369 function prototypes and stuff, but not '\xHH' hex character constants.
4370 These don't provoke an error unfortunately, instead are silently treated
4371 as 'x'. The following induces an error, until -std is added to get
4372 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4373 array size at least. It's necessary to write '\x00'==0 to get something
4374 that's true only with -std. */
4375 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4377 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4378 inside strings and character constants. */
4379 #define FOO(x) 'x'
4380 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4382 int test (int i, double x);
4383 struct s1 {int (*f) (int a);};
4384 struct s2 {int (*f) (double a);};
4385 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4386 int argc;
4387 char **argv;
4389 main ()
4391 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4393 return 0;
4395 _ACEOF
4396 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4397 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4399 CC="$ac_save_CC $ac_arg"
4400 if ac_fn_c_try_compile "$LINENO"; then :
4401 ac_cv_prog_cc_c89=$ac_arg
4403 rm -f core conftest.err conftest.$ac_objext
4404 test "x$ac_cv_prog_cc_c89" != "xno" && break
4405 done
4406 rm -f conftest.$ac_ext
4407 CC=$ac_save_CC
4410 # AC_CACHE_VAL
4411 case "x$ac_cv_prog_cc_c89" in
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4414 $as_echo "none needed" >&6; } ;;
4415 xno)
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4417 $as_echo "unsupported" >&6; } ;;
4419 CC="$CC $ac_cv_prog_cc_c89"
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4421 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4422 esac
4423 if test "x$ac_cv_prog_cc_c89" != xno; then :
4427 ac_ext=c
4428 ac_cpp='$CPP $CPPFLAGS'
4429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4433 depcc="$CC" am_compiler_list=
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4436 $as_echo_n "checking dependency style of $depcc... " >&6; }
4437 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4438 $as_echo_n "(cached) " >&6
4439 else
4440 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4441 # We make a subdir and do the tests there. Otherwise we can end up
4442 # making bogus files that we don't know about and never remove. For
4443 # instance it was reported that on HP-UX the gcc test will end up
4444 # making a dummy file named `D' -- because `-MD' means `put the output
4445 # in D'.
4446 mkdir conftest.dir
4447 # Copy depcomp to subdir because otherwise we won't find it if we're
4448 # using a relative directory.
4449 cp "$am_depcomp" conftest.dir
4450 cd conftest.dir
4451 # We will build objects and dependencies in a subdirectory because
4452 # it helps to detect inapplicable dependency modes. For instance
4453 # both Tru64's cc and ICC support -MD to output dependencies as a
4454 # side effect of compilation, but ICC will put the dependencies in
4455 # the current directory while Tru64 will put them in the object
4456 # directory.
4457 mkdir sub
4459 am_cv_CC_dependencies_compiler_type=none
4460 if test "$am_compiler_list" = ""; then
4461 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4463 am__universal=false
4464 case " $depcc " in #(
4465 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4466 esac
4468 for depmode in $am_compiler_list; do
4469 # Setup a source with many dependencies, because some compilers
4470 # like to wrap large dependency lists on column 80 (with \), and
4471 # we should not choose a depcomp mode which is confused by this.
4473 # We need to recreate these files for each test, as the compiler may
4474 # overwrite some of them when testing with obscure command lines.
4475 # This happens at least with the AIX C compiler.
4476 : > sub/conftest.c
4477 for i in 1 2 3 4 5 6; do
4478 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4479 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4480 # Solaris 8's {/usr,}/bin/sh.
4481 touch sub/conftst$i.h
4482 done
4483 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4485 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4486 # mode. It turns out that the SunPro C++ compiler does not properly
4487 # handle `-M -o', and we need to detect this. Also, some Intel
4488 # versions had trouble with output in subdirs
4489 am__obj=sub/conftest.${OBJEXT-o}
4490 am__minus_obj="-o $am__obj"
4491 case $depmode in
4492 gcc)
4493 # This depmode causes a compiler race in universal mode.
4494 test "$am__universal" = false || continue
4496 nosideeffect)
4497 # after this tag, mechanisms are not by side-effect, so they'll
4498 # only be used when explicitly requested
4499 if test "x$enable_dependency_tracking" = xyes; then
4500 continue
4501 else
4502 break
4505 msvisualcpp | msvcmsys)
4506 # This compiler won't grok `-c -o', but also, the minuso test has
4507 # not run yet. These depmodes are late enough in the game, and
4508 # so weak that their functioning should not be impacted.
4509 am__obj=conftest.${OBJEXT-o}
4510 am__minus_obj=
4512 none) break ;;
4513 esac
4514 if depmode=$depmode \
4515 source=sub/conftest.c object=$am__obj \
4516 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4517 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4518 >/dev/null 2>conftest.err &&
4519 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4520 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4521 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4522 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4523 # icc doesn't choke on unknown options, it will just issue warnings
4524 # or remarks (even with -Werror). So we grep stderr for any message
4525 # that says an option was ignored or not supported.
4526 # When given -MP, icc 7.0 and 7.1 complain thusly:
4527 # icc: Command line warning: ignoring option '-M'; no argument required
4528 # The diagnosis changed in icc 8.0:
4529 # icc: Command line remark: option '-MP' not supported
4530 if (grep 'ignoring option' conftest.err ||
4531 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4532 am_cv_CC_dependencies_compiler_type=$depmode
4533 break
4536 done
4538 cd ..
4539 rm -rf conftest.dir
4540 else
4541 am_cv_CC_dependencies_compiler_type=none
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4546 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4547 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4550 test "x$enable_dependency_tracking" != xno \
4551 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4552 am__fastdepCC_TRUE=
4553 am__fastdepCC_FALSE='#'
4554 else
4555 am__fastdepCC_TRUE='#'
4556 am__fastdepCC_FALSE=
4560 ac_ext=cpp
4561 ac_cpp='$CXXCPP $CPPFLAGS'
4562 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4563 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4564 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4565 if test -z "$CXX"; then
4566 if test -n "$CCC"; then
4567 CXX=$CCC
4568 else
4569 if test -n "$ac_tool_prefix"; then
4570 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4572 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4573 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4575 $as_echo_n "checking for $ac_word... " >&6; }
4576 if ${ac_cv_prog_CXX+:} false; then :
4577 $as_echo_n "(cached) " >&6
4578 else
4579 if test -n "$CXX"; then
4580 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4581 else
4582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583 for as_dir in $PATH
4585 IFS=$as_save_IFS
4586 test -z "$as_dir" && as_dir=.
4587 for ac_exec_ext in '' $ac_executable_extensions; do
4588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4589 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4591 break 2
4593 done
4594 done
4595 IFS=$as_save_IFS
4599 CXX=$ac_cv_prog_CXX
4600 if test -n "$CXX"; then
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4602 $as_echo "$CXX" >&6; }
4603 else
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4605 $as_echo "no" >&6; }
4609 test -n "$CXX" && break
4610 done
4612 if test -z "$CXX"; then
4613 ac_ct_CXX=$CXX
4614 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4616 # Extract the first word of "$ac_prog", so it can be a program name with args.
4617 set dummy $ac_prog; ac_word=$2
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4619 $as_echo_n "checking for $ac_word... " >&6; }
4620 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4621 $as_echo_n "(cached) " >&6
4622 else
4623 if test -n "$ac_ct_CXX"; then
4624 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4625 else
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH
4629 IFS=$as_save_IFS
4630 test -z "$as_dir" && as_dir=.
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4633 ac_cv_prog_ac_ct_CXX="$ac_prog"
4634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4635 break 2
4637 done
4638 done
4639 IFS=$as_save_IFS
4643 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4644 if test -n "$ac_ct_CXX"; then
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4646 $as_echo "$ac_ct_CXX" >&6; }
4647 else
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4649 $as_echo "no" >&6; }
4653 test -n "$ac_ct_CXX" && break
4654 done
4656 if test "x$ac_ct_CXX" = x; then
4657 CXX="g++"
4658 else
4659 case $cross_compiling:$ac_tool_warned in
4660 yes:)
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4663 ac_tool_warned=yes ;;
4664 esac
4665 CXX=$ac_ct_CXX
4671 # Provide some information about the compiler.
4672 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4673 set X $ac_compile
4674 ac_compiler=$2
4675 for ac_option in --version -v -V -qversion; do
4676 { { ac_try="$ac_compiler $ac_option >&5"
4677 case "(($ac_try" in
4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4680 esac
4681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4682 $as_echo "$ac_try_echo"; } >&5
4683 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4684 ac_status=$?
4685 if test -s conftest.err; then
4686 sed '10a\
4687 ... rest of stderr output deleted ...
4688 10q' conftest.err >conftest.er1
4689 cat conftest.er1 >&5
4691 rm -f conftest.er1 conftest.err
4692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4693 test $ac_status = 0; }
4694 done
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4697 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4698 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4699 $as_echo_n "(cached) " >&6
4700 else
4701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4702 /* end confdefs.h. */
4705 main ()
4707 #ifndef __GNUC__
4708 choke me
4709 #endif
4712 return 0;
4714 _ACEOF
4715 if ac_fn_cxx_try_compile "$LINENO"; then :
4716 ac_compiler_gnu=yes
4717 else
4718 ac_compiler_gnu=no
4720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4721 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4725 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4726 if test $ac_compiler_gnu = yes; then
4727 GXX=yes
4728 else
4729 GXX=
4731 ac_test_CXXFLAGS=${CXXFLAGS+set}
4732 ac_save_CXXFLAGS=$CXXFLAGS
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4734 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4735 if ${ac_cv_prog_cxx_g+:} false; then :
4736 $as_echo_n "(cached) " >&6
4737 else
4738 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4739 ac_cxx_werror_flag=yes
4740 ac_cv_prog_cxx_g=no
4741 CXXFLAGS="-g"
4742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4743 /* end confdefs.h. */
4746 main ()
4750 return 0;
4752 _ACEOF
4753 if ac_fn_cxx_try_compile "$LINENO"; then :
4754 ac_cv_prog_cxx_g=yes
4755 else
4756 CXXFLAGS=""
4757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758 /* end confdefs.h. */
4761 main ()
4765 return 0;
4767 _ACEOF
4768 if ac_fn_cxx_try_compile "$LINENO"; then :
4770 else
4771 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4772 CXXFLAGS="-g"
4773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774 /* end confdefs.h. */
4777 main ()
4781 return 0;
4783 _ACEOF
4784 if ac_fn_cxx_try_compile "$LINENO"; then :
4785 ac_cv_prog_cxx_g=yes
4787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4792 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4795 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4796 if test "$ac_test_CXXFLAGS" = set; then
4797 CXXFLAGS=$ac_save_CXXFLAGS
4798 elif test $ac_cv_prog_cxx_g = yes; then
4799 if test "$GXX" = yes; then
4800 CXXFLAGS="-g -O2"
4801 else
4802 CXXFLAGS="-g"
4804 else
4805 if test "$GXX" = yes; then
4806 CXXFLAGS="-O2"
4807 else
4808 CXXFLAGS=
4811 ac_ext=c
4812 ac_cpp='$CPP $CPPFLAGS'
4813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4817 depcc="$CXX" am_compiler_list=
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4820 $as_echo_n "checking dependency style of $depcc... " >&6; }
4821 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4822 $as_echo_n "(cached) " >&6
4823 else
4824 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4825 # We make a subdir and do the tests there. Otherwise we can end up
4826 # making bogus files that we don't know about and never remove. For
4827 # instance it was reported that on HP-UX the gcc test will end up
4828 # making a dummy file named `D' -- because `-MD' means `put the output
4829 # in D'.
4830 mkdir conftest.dir
4831 # Copy depcomp to subdir because otherwise we won't find it if we're
4832 # using a relative directory.
4833 cp "$am_depcomp" conftest.dir
4834 cd conftest.dir
4835 # We will build objects and dependencies in a subdirectory because
4836 # it helps to detect inapplicable dependency modes. For instance
4837 # both Tru64's cc and ICC support -MD to output dependencies as a
4838 # side effect of compilation, but ICC will put the dependencies in
4839 # the current directory while Tru64 will put them in the object
4840 # directory.
4841 mkdir sub
4843 am_cv_CXX_dependencies_compiler_type=none
4844 if test "$am_compiler_list" = ""; then
4845 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4847 am__universal=false
4848 case " $depcc " in #(
4849 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4850 esac
4852 for depmode in $am_compiler_list; do
4853 # Setup a source with many dependencies, because some compilers
4854 # like to wrap large dependency lists on column 80 (with \), and
4855 # we should not choose a depcomp mode which is confused by this.
4857 # We need to recreate these files for each test, as the compiler may
4858 # overwrite some of them when testing with obscure command lines.
4859 # This happens at least with the AIX C compiler.
4860 : > sub/conftest.c
4861 for i in 1 2 3 4 5 6; do
4862 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4863 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4864 # Solaris 8's {/usr,}/bin/sh.
4865 touch sub/conftst$i.h
4866 done
4867 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4869 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4870 # mode. It turns out that the SunPro C++ compiler does not properly
4871 # handle `-M -o', and we need to detect this. Also, some Intel
4872 # versions had trouble with output in subdirs
4873 am__obj=sub/conftest.${OBJEXT-o}
4874 am__minus_obj="-o $am__obj"
4875 case $depmode in
4876 gcc)
4877 # This depmode causes a compiler race in universal mode.
4878 test "$am__universal" = false || continue
4880 nosideeffect)
4881 # after this tag, mechanisms are not by side-effect, so they'll
4882 # only be used when explicitly requested
4883 if test "x$enable_dependency_tracking" = xyes; then
4884 continue
4885 else
4886 break
4889 msvisualcpp | msvcmsys)
4890 # This compiler won't grok `-c -o', but also, the minuso test has
4891 # not run yet. These depmodes are late enough in the game, and
4892 # so weak that their functioning should not be impacted.
4893 am__obj=conftest.${OBJEXT-o}
4894 am__minus_obj=
4896 none) break ;;
4897 esac
4898 if depmode=$depmode \
4899 source=sub/conftest.c object=$am__obj \
4900 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4901 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4902 >/dev/null 2>conftest.err &&
4903 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4904 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4905 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4906 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4907 # icc doesn't choke on unknown options, it will just issue warnings
4908 # or remarks (even with -Werror). So we grep stderr for any message
4909 # that says an option was ignored or not supported.
4910 # When given -MP, icc 7.0 and 7.1 complain thusly:
4911 # icc: Command line warning: ignoring option '-M'; no argument required
4912 # The diagnosis changed in icc 8.0:
4913 # icc: Command line remark: option '-MP' not supported
4914 if (grep 'ignoring option' conftest.err ||
4915 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4916 am_cv_CXX_dependencies_compiler_type=$depmode
4917 break
4920 done
4922 cd ..
4923 rm -rf conftest.dir
4924 else
4925 am_cv_CXX_dependencies_compiler_type=none
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4930 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4931 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4934 test "x$enable_dependency_tracking" != xno \
4935 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4936 am__fastdepCXX_TRUE=
4937 am__fastdepCXX_FALSE='#'
4938 else
4939 am__fastdepCXX_TRUE='#'
4940 am__fastdepCXX_FALSE=
4945 if test -n "$ac_tool_prefix"; then
4946 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4947 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4949 $as_echo_n "checking for $ac_word... " >&6; }
4950 if ${ac_cv_prog_RANLIB+:} false; then :
4951 $as_echo_n "(cached) " >&6
4952 else
4953 if test -n "$RANLIB"; then
4954 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4955 else
4956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4957 for as_dir in $PATH
4959 IFS=$as_save_IFS
4960 test -z "$as_dir" && as_dir=.
4961 for ac_exec_ext in '' $ac_executable_extensions; do
4962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4963 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4965 break 2
4967 done
4968 done
4969 IFS=$as_save_IFS
4973 RANLIB=$ac_cv_prog_RANLIB
4974 if test -n "$RANLIB"; then
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4976 $as_echo "$RANLIB" >&6; }
4977 else
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4979 $as_echo "no" >&6; }
4984 if test -z "$ac_cv_prog_RANLIB"; then
4985 ac_ct_RANLIB=$RANLIB
4986 # Extract the first word of "ranlib", so it can be a program name with args.
4987 set dummy ranlib; ac_word=$2
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4989 $as_echo_n "checking for $ac_word... " >&6; }
4990 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4991 $as_echo_n "(cached) " >&6
4992 else
4993 if test -n "$ac_ct_RANLIB"; then
4994 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4995 else
4996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997 for as_dir in $PATH
4999 IFS=$as_save_IFS
5000 test -z "$as_dir" && as_dir=.
5001 for ac_exec_ext in '' $ac_executable_extensions; do
5002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5003 ac_cv_prog_ac_ct_RANLIB="ranlib"
5004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5005 break 2
5007 done
5008 done
5009 IFS=$as_save_IFS
5013 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5014 if test -n "$ac_ct_RANLIB"; then
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5016 $as_echo "$ac_ct_RANLIB" >&6; }
5017 else
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5019 $as_echo "no" >&6; }
5022 if test "x$ac_ct_RANLIB" = x; then
5023 RANLIB=":"
5024 else
5025 case $cross_compiling:$ac_tool_warned in
5026 yes:)
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5029 ac_tool_warned=yes ;;
5030 esac
5031 RANLIB=$ac_ct_RANLIB
5033 else
5034 RANLIB="$ac_cv_prog_RANLIB"
5038 # Checks for header files.
5040 ac_ext=c
5041 ac_cpp='$CPP $CPPFLAGS'
5042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5046 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5047 # On Suns, sometimes $CPP names a directory.
5048 if test -n "$CPP" && test -d "$CPP"; then
5049 CPP=
5051 if test -z "$CPP"; then
5052 if ${ac_cv_prog_CPP+:} false; then :
5053 $as_echo_n "(cached) " >&6
5054 else
5055 # Double quotes because CPP needs to be expanded
5056 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5058 ac_preproc_ok=false
5059 for ac_c_preproc_warn_flag in '' yes
5061 # Use a header file that comes with gcc, so configuring glibc
5062 # with a fresh cross-compiler works.
5063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5064 # <limits.h> exists even on freestanding compilers.
5065 # On the NeXT, cc -E runs the code through the compiler's parser,
5066 # not just through cpp. "Syntax error" is here to catch this case.
5067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068 /* end confdefs.h. */
5069 #ifdef __STDC__
5070 # include <limits.h>
5071 #else
5072 # include <assert.h>
5073 #endif
5074 Syntax error
5075 _ACEOF
5076 if ac_fn_c_try_cpp "$LINENO"; then :
5078 else
5079 # Broken: fails on valid input.
5080 continue
5082 rm -f conftest.err conftest.i conftest.$ac_ext
5084 # OK, works on sane cases. Now check whether nonexistent headers
5085 # can be detected and how.
5086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087 /* end confdefs.h. */
5088 #include <ac_nonexistent.h>
5089 _ACEOF
5090 if ac_fn_c_try_cpp "$LINENO"; then :
5091 # Broken: success on invalid input.
5092 continue
5093 else
5094 # Passes both tests.
5095 ac_preproc_ok=:
5096 break
5098 rm -f conftest.err conftest.i conftest.$ac_ext
5100 done
5101 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5102 rm -f conftest.i conftest.err conftest.$ac_ext
5103 if $ac_preproc_ok; then :
5104 break
5107 done
5108 ac_cv_prog_CPP=$CPP
5111 CPP=$ac_cv_prog_CPP
5112 else
5113 ac_cv_prog_CPP=$CPP
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5116 $as_echo "$CPP" >&6; }
5117 ac_preproc_ok=false
5118 for ac_c_preproc_warn_flag in '' yes
5120 # Use a header file that comes with gcc, so configuring glibc
5121 # with a fresh cross-compiler works.
5122 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5123 # <limits.h> exists even on freestanding compilers.
5124 # On the NeXT, cc -E runs the code through the compiler's parser,
5125 # not just through cpp. "Syntax error" is here to catch this case.
5126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5127 /* end confdefs.h. */
5128 #ifdef __STDC__
5129 # include <limits.h>
5130 #else
5131 # include <assert.h>
5132 #endif
5133 Syntax error
5134 _ACEOF
5135 if ac_fn_c_try_cpp "$LINENO"; then :
5137 else
5138 # Broken: fails on valid input.
5139 continue
5141 rm -f conftest.err conftest.i conftest.$ac_ext
5143 # OK, works on sane cases. Now check whether nonexistent headers
5144 # can be detected and how.
5145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146 /* end confdefs.h. */
5147 #include <ac_nonexistent.h>
5148 _ACEOF
5149 if ac_fn_c_try_cpp "$LINENO"; then :
5150 # Broken: success on invalid input.
5151 continue
5152 else
5153 # Passes both tests.
5154 ac_preproc_ok=:
5155 break
5157 rm -f conftest.err conftest.i conftest.$ac_ext
5159 done
5160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5161 rm -f conftest.i conftest.err conftest.$ac_ext
5162 if $ac_preproc_ok; then :
5164 else
5165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5167 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5168 See \`config.log' for more details" "$LINENO" 5; }
5171 ac_ext=c
5172 ac_cpp='$CPP $CPPFLAGS'
5173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5179 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5180 if ${ac_cv_path_GREP+:} false; then :
5181 $as_echo_n "(cached) " >&6
5182 else
5183 if test -z "$GREP"; then
5184 ac_path_GREP_found=false
5185 # Loop through the user's path and test for each of PROGNAME-LIST
5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5189 IFS=$as_save_IFS
5190 test -z "$as_dir" && as_dir=.
5191 for ac_prog in grep ggrep; do
5192 for ac_exec_ext in '' $ac_executable_extensions; do
5193 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5194 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5195 # Check for GNU ac_path_GREP and select it if it is found.
5196 # Check for GNU $ac_path_GREP
5197 case `"$ac_path_GREP" --version 2>&1` in
5198 *GNU*)
5199 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5201 ac_count=0
5202 $as_echo_n 0123456789 >"conftest.in"
5203 while :
5205 cat "conftest.in" "conftest.in" >"conftest.tmp"
5206 mv "conftest.tmp" "conftest.in"
5207 cp "conftest.in" "conftest.nl"
5208 $as_echo 'GREP' >> "conftest.nl"
5209 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5210 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5211 as_fn_arith $ac_count + 1 && ac_count=$as_val
5212 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5213 # Best one so far, save it but keep looking for a better one
5214 ac_cv_path_GREP="$ac_path_GREP"
5215 ac_path_GREP_max=$ac_count
5217 # 10*(2^10) chars as input seems more than enough
5218 test $ac_count -gt 10 && break
5219 done
5220 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5221 esac
5223 $ac_path_GREP_found && break 3
5224 done
5225 done
5226 done
5227 IFS=$as_save_IFS
5228 if test -z "$ac_cv_path_GREP"; then
5229 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5231 else
5232 ac_cv_path_GREP=$GREP
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5237 $as_echo "$ac_cv_path_GREP" >&6; }
5238 GREP="$ac_cv_path_GREP"
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5242 $as_echo_n "checking for egrep... " >&6; }
5243 if ${ac_cv_path_EGREP+:} false; then :
5244 $as_echo_n "(cached) " >&6
5245 else
5246 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5247 then ac_cv_path_EGREP="$GREP -E"
5248 else
5249 if test -z "$EGREP"; then
5250 ac_path_EGREP_found=false
5251 # Loop through the user's path and test for each of PROGNAME-LIST
5252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5255 IFS=$as_save_IFS
5256 test -z "$as_dir" && as_dir=.
5257 for ac_prog in egrep; do
5258 for ac_exec_ext in '' $ac_executable_extensions; do
5259 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5260 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5261 # Check for GNU ac_path_EGREP and select it if it is found.
5262 # Check for GNU $ac_path_EGREP
5263 case `"$ac_path_EGREP" --version 2>&1` in
5264 *GNU*)
5265 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5267 ac_count=0
5268 $as_echo_n 0123456789 >"conftest.in"
5269 while :
5271 cat "conftest.in" "conftest.in" >"conftest.tmp"
5272 mv "conftest.tmp" "conftest.in"
5273 cp "conftest.in" "conftest.nl"
5274 $as_echo 'EGREP' >> "conftest.nl"
5275 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5276 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5277 as_fn_arith $ac_count + 1 && ac_count=$as_val
5278 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5279 # Best one so far, save it but keep looking for a better one
5280 ac_cv_path_EGREP="$ac_path_EGREP"
5281 ac_path_EGREP_max=$ac_count
5283 # 10*(2^10) chars as input seems more than enough
5284 test $ac_count -gt 10 && break
5285 done
5286 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5287 esac
5289 $ac_path_EGREP_found && break 3
5290 done
5291 done
5292 done
5293 IFS=$as_save_IFS
5294 if test -z "$ac_cv_path_EGREP"; then
5295 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5297 else
5298 ac_cv_path_EGREP=$EGREP
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5304 $as_echo "$ac_cv_path_EGREP" >&6; }
5305 EGREP="$ac_cv_path_EGREP"
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5309 $as_echo_n "checking for ANSI C header files... " >&6; }
5310 if ${ac_cv_header_stdc+:} false; then :
5311 $as_echo_n "(cached) " >&6
5312 else
5313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5314 /* end confdefs.h. */
5315 #include <stdlib.h>
5316 #include <stdarg.h>
5317 #include <string.h>
5318 #include <float.h>
5321 main ()
5325 return 0;
5327 _ACEOF
5328 if ac_fn_c_try_compile "$LINENO"; then :
5329 ac_cv_header_stdc=yes
5330 else
5331 ac_cv_header_stdc=no
5333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5335 if test $ac_cv_header_stdc = yes; then
5336 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338 /* end confdefs.h. */
5339 #include <string.h>
5341 _ACEOF
5342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5343 $EGREP "memchr" >/dev/null 2>&1; then :
5345 else
5346 ac_cv_header_stdc=no
5348 rm -f conftest*
5352 if test $ac_cv_header_stdc = yes; then
5353 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355 /* end confdefs.h. */
5356 #include <stdlib.h>
5358 _ACEOF
5359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5360 $EGREP "free" >/dev/null 2>&1; then :
5362 else
5363 ac_cv_header_stdc=no
5365 rm -f conftest*
5369 if test $ac_cv_header_stdc = yes; then
5370 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5371 if test "$cross_compiling" = yes; then :
5373 else
5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5375 /* end confdefs.h. */
5376 #include <ctype.h>
5377 #include <stdlib.h>
5378 #if ((' ' & 0x0FF) == 0x020)
5379 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5380 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5381 #else
5382 # define ISLOWER(c) \
5383 (('a' <= (c) && (c) <= 'i') \
5384 || ('j' <= (c) && (c) <= 'r') \
5385 || ('s' <= (c) && (c) <= 'z'))
5386 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5387 #endif
5389 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5391 main ()
5393 int i;
5394 for (i = 0; i < 256; i++)
5395 if (XOR (islower (i), ISLOWER (i))
5396 || toupper (i) != TOUPPER (i))
5397 return 2;
5398 return 0;
5400 _ACEOF
5401 if ac_fn_c_try_run "$LINENO"; then :
5403 else
5404 ac_cv_header_stdc=no
5406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5407 conftest.$ac_objext conftest.beam conftest.$ac_ext
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5413 $as_echo "$ac_cv_header_stdc" >&6; }
5414 if test $ac_cv_header_stdc = yes; then
5416 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
5421 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5422 if ${ac_cv_header_sys_wait_h+:} false; then :
5423 $as_echo_n "(cached) " >&6
5424 else
5425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5426 /* end confdefs.h. */
5427 #include <sys/types.h>
5428 #include <sys/wait.h>
5429 #ifndef WEXITSTATUS
5430 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5431 #endif
5432 #ifndef WIFEXITED
5433 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5434 #endif
5437 main ()
5439 int s;
5440 wait (&s);
5441 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5443 return 0;
5445 _ACEOF
5446 if ac_fn_c_try_compile "$LINENO"; then :
5447 ac_cv_header_sys_wait_h=yes
5448 else
5449 ac_cv_header_sys_wait_h=no
5451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
5454 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
5455 if test $ac_cv_header_sys_wait_h = yes; then
5457 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
5461 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5462 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5463 inttypes.h stdint.h unistd.h
5464 do :
5465 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5466 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5468 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5469 cat >>confdefs.h <<_ACEOF
5470 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5471 _ACEOF
5475 done
5478 for ac_header in fcntl.h stdint.h stdlib.h string.h sys/ioctl.h sys/time.h termios.h unistd.h
5479 do :
5480 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5481 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5482 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5483 cat >>confdefs.h <<_ACEOF
5484 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5485 _ACEOF
5489 done
5492 # Checks for typedefs, structures, and compiler characteristics.
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5494 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5495 if ${ac_cv_c_const+:} false; then :
5496 $as_echo_n "(cached) " >&6
5497 else
5498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5499 /* end confdefs.h. */
5502 main ()
5504 /* FIXME: Include the comments suggested by Paul. */
5505 #ifndef __cplusplus
5506 /* Ultrix mips cc rejects this. */
5507 typedef int charset[2];
5508 const charset cs;
5509 /* SunOS 4.1.1 cc rejects this. */
5510 char const *const *pcpcc;
5511 char **ppc;
5512 /* NEC SVR4.0.2 mips cc rejects this. */
5513 struct point {int x, y;};
5514 static struct point const zero = {0,0};
5515 /* AIX XL C 1.02.0.0 rejects this.
5516 It does not let you subtract one const X* pointer from another in
5517 an arm of an if-expression whose if-part is not a constant
5518 expression */
5519 const char *g = "string";
5520 pcpcc = &g + (g ? g-g : 0);
5521 /* HPUX 7.0 cc rejects these. */
5522 ++pcpcc;
5523 ppc = (char**) pcpcc;
5524 pcpcc = (char const *const *) ppc;
5525 { /* SCO 3.2v4 cc rejects this. */
5526 char *t;
5527 char const *s = 0 ? (char *) 0 : (char const *) 0;
5529 *t++ = 0;
5530 if (s) return 0;
5532 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5533 int x[] = {25, 17};
5534 const int *foo = &x[0];
5535 ++foo;
5537 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5538 typedef const int *iptr;
5539 iptr p = 0;
5540 ++p;
5542 { /* AIX XL C 1.02.0.0 rejects this saying
5543 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5544 struct s { int j; const int *ap[3]; };
5545 struct s *b; b->j = 5;
5547 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5548 const int foo = 10;
5549 if (!foo) return 0;
5551 return !cs[0] && !zero.x;
5552 #endif
5555 return 0;
5557 _ACEOF
5558 if ac_fn_c_try_compile "$LINENO"; then :
5559 ac_cv_c_const=yes
5560 else
5561 ac_cv_c_const=no
5563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5566 $as_echo "$ac_cv_c_const" >&6; }
5567 if test $ac_cv_c_const = no; then
5569 $as_echo "#define const /**/" >>confdefs.h
5573 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5574 if test "x$ac_cv_type_size_t" = xyes; then :
5576 else
5578 cat >>confdefs.h <<_ACEOF
5579 #define size_t unsigned int
5580 _ACEOF
5584 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
5585 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
5587 cat >>confdefs.h <<_ACEOF
5588 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
5589 _ACEOF
5594 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
5595 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
5597 cat >>confdefs.h <<_ACEOF
5598 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
5599 _ACEOF
5602 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
5604 else
5605 case " $LIBOBJS " in
5606 *" fileblocks.$ac_objext "* ) ;;
5607 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
5609 esac
5614 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5615 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
5617 cat >>confdefs.h <<_ACEOF
5618 #define HAVE_STRUCT_STAT_ST_RDEV 1
5619 _ACEOF
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5625 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5626 if ${ac_cv_header_time+:} false; then :
5627 $as_echo_n "(cached) " >&6
5628 else
5629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5630 /* end confdefs.h. */
5631 #include <sys/types.h>
5632 #include <sys/time.h>
5633 #include <time.h>
5636 main ()
5638 if ((struct tm *) 0)
5639 return 0;
5641 return 0;
5643 _ACEOF
5644 if ac_fn_c_try_compile "$LINENO"; then :
5645 ac_cv_header_time=yes
5646 else
5647 ac_cv_header_time=no
5649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5652 $as_echo "$ac_cv_header_time" >&6; }
5653 if test $ac_cv_header_time = yes; then
5655 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5660 # Checks for library functions.
5661 if test $ac_cv_c_compiler_gnu = yes; then
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
5663 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
5664 if ${ac_cv_prog_gcc_traditional+:} false; then :
5665 $as_echo_n "(cached) " >&6
5666 else
5667 ac_pattern="Autoconf.*'x'"
5668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5669 /* end confdefs.h. */
5670 #include <sgtty.h>
5671 Autoconf TIOCGETP
5672 _ACEOF
5673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5674 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5675 ac_cv_prog_gcc_traditional=yes
5676 else
5677 ac_cv_prog_gcc_traditional=no
5679 rm -f conftest*
5682 if test $ac_cv_prog_gcc_traditional = no; then
5683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5684 /* end confdefs.h. */
5685 #include <termio.h>
5686 Autoconf TCGETA
5687 _ACEOF
5688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5689 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5690 ac_cv_prog_gcc_traditional=yes
5692 rm -f conftest*
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
5697 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
5698 if test $ac_cv_prog_gcc_traditional = yes; then
5699 CC="$CC -traditional"
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
5704 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
5705 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
5706 $as_echo_n "(cached) " >&6
5707 else
5708 rm -f conftest.sym conftest.file
5709 echo >conftest.file
5710 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5711 if test "$cross_compiling" = yes; then :
5712 ac_cv_func_lstat_dereferences_slashed_symlink=no
5713 else
5714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5715 /* end confdefs.h. */
5716 $ac_includes_default
5718 main ()
5720 struct stat sbuf;
5721 /* Linux will dereference the symlink and fail, as required by POSIX.
5722 That is better in the sense that it means we will not
5723 have to compile and use the lstat wrapper. */
5724 return lstat ("conftest.sym/", &sbuf) == 0;
5726 return 0;
5728 _ACEOF
5729 if ac_fn_c_try_run "$LINENO"; then :
5730 ac_cv_func_lstat_dereferences_slashed_symlink=yes
5731 else
5732 ac_cv_func_lstat_dereferences_slashed_symlink=no
5734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5735 conftest.$ac_objext conftest.beam conftest.$ac_ext
5738 else
5739 # If the `ln -s' command failed, then we probably don't even
5740 # have an lstat function.
5741 ac_cv_func_lstat_dereferences_slashed_symlink=no
5743 rm -f conftest.sym conftest.file
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
5747 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
5749 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
5751 cat >>confdefs.h <<_ACEOF
5752 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
5753 _ACEOF
5756 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
5757 case " $LIBOBJS " in
5758 *" lstat.$ac_objext "* ) ;;
5759 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
5761 esac
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
5766 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
5767 if ${ac_cv_func_lstat_empty_string_bug+:} false; then :
5768 $as_echo_n "(cached) " >&6
5769 else
5770 if test "$cross_compiling" = yes; then :
5771 ac_cv_func_lstat_empty_string_bug=yes
5772 else
5773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5774 /* end confdefs.h. */
5775 $ac_includes_default
5777 main ()
5779 struct stat sbuf;
5780 return lstat ("", &sbuf) == 0;
5782 return 0;
5784 _ACEOF
5785 if ac_fn_c_try_run "$LINENO"; then :
5786 ac_cv_func_lstat_empty_string_bug=no
5787 else
5788 ac_cv_func_lstat_empty_string_bug=yes
5790 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5791 conftest.$ac_objext conftest.beam conftest.$ac_ext
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
5796 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
5797 if test $ac_cv_func_lstat_empty_string_bug = yes; then
5798 case " $LIBOBJS " in
5799 *" lstat.$ac_objext "* ) ;;
5800 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
5802 esac
5805 cat >>confdefs.h <<_ACEOF
5806 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
5807 _ACEOF
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
5812 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
5813 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
5814 $as_echo_n "(cached) " >&6
5815 else
5816 rm -f conftest.sym conftest.file
5817 echo >conftest.file
5818 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5819 if test "$cross_compiling" = yes; then :
5820 ac_cv_func_lstat_dereferences_slashed_symlink=no
5821 else
5822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5823 /* end confdefs.h. */
5824 $ac_includes_default
5826 main ()
5828 struct stat sbuf;
5829 /* Linux will dereference the symlink and fail, as required by POSIX.
5830 That is better in the sense that it means we will not
5831 have to compile and use the lstat wrapper. */
5832 return lstat ("conftest.sym/", &sbuf) == 0;
5834 return 0;
5836 _ACEOF
5837 if ac_fn_c_try_run "$LINENO"; then :
5838 ac_cv_func_lstat_dereferences_slashed_symlink=yes
5839 else
5840 ac_cv_func_lstat_dereferences_slashed_symlink=no
5842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5843 conftest.$ac_objext conftest.beam conftest.$ac_ext
5846 else
5847 # If the `ln -s' command failed, then we probably don't even
5848 # have an lstat function.
5849 ac_cv_func_lstat_dereferences_slashed_symlink=no
5851 rm -f conftest.sym conftest.file
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
5855 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
5857 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
5859 cat >>confdefs.h <<_ACEOF
5860 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
5861 _ACEOF
5864 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
5865 case " $LIBOBJS " in
5866 *" lstat.$ac_objext "* ) ;;
5867 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
5869 esac
5873 for ac_header in stdlib.h
5874 do :
5875 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5876 if test "x$ac_cv_header_stdlib_h" = xyes; then :
5877 cat >>confdefs.h <<_ACEOF
5878 #define HAVE_STDLIB_H 1
5879 _ACEOF
5883 done
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
5886 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
5887 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
5888 $as_echo_n "(cached) " >&6
5889 else
5890 if test "$cross_compiling" = yes; then :
5891 ac_cv_func_malloc_0_nonnull=no
5892 else
5893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5894 /* end confdefs.h. */
5895 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
5896 # include <stdlib.h>
5897 #else
5898 char *malloc ();
5899 #endif
5902 main ()
5904 return ! malloc (0);
5906 return 0;
5908 _ACEOF
5909 if ac_fn_c_try_run "$LINENO"; then :
5910 ac_cv_func_malloc_0_nonnull=yes
5911 else
5912 ac_cv_func_malloc_0_nonnull=no
5914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5915 conftest.$ac_objext conftest.beam conftest.$ac_ext
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
5920 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
5921 if test $ac_cv_func_malloc_0_nonnull = yes; then :
5923 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
5925 else
5926 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
5928 case " $LIBOBJS " in
5929 *" malloc.$ac_objext "* ) ;;
5930 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
5932 esac
5935 $as_echo "#define malloc rpl_malloc" >>confdefs.h
5940 for ac_header in stdlib.h
5941 do :
5942 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5943 if test "x$ac_cv_header_stdlib_h" = xyes; then :
5944 cat >>confdefs.h <<_ACEOF
5945 #define HAVE_STDLIB_H 1
5946 _ACEOF
5950 done
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
5953 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
5954 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
5955 $as_echo_n "(cached) " >&6
5956 else
5957 if test "$cross_compiling" = yes; then :
5958 ac_cv_func_realloc_0_nonnull=no
5959 else
5960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5961 /* end confdefs.h. */
5962 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
5963 # include <stdlib.h>
5964 #else
5965 char *realloc ();
5966 #endif
5969 main ()
5971 return ! realloc (0, 0);
5973 return 0;
5975 _ACEOF
5976 if ac_fn_c_try_run "$LINENO"; then :
5977 ac_cv_func_realloc_0_nonnull=yes
5978 else
5979 ac_cv_func_realloc_0_nonnull=no
5981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5982 conftest.$ac_objext conftest.beam conftest.$ac_ext
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
5987 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
5988 if test $ac_cv_func_realloc_0_nonnull = yes; then :
5990 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
5992 else
5993 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
5995 case " $LIBOBJS " in
5996 *" realloc.$ac_objext "* ) ;;
5997 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
5999 esac
6002 $as_echo "#define realloc rpl_realloc" >>confdefs.h
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6008 $as_echo_n "checking return type of signal handlers... " >&6; }
6009 if ${ac_cv_type_signal+:} false; then :
6010 $as_echo_n "(cached) " >&6
6011 else
6012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6013 /* end confdefs.h. */
6014 #include <sys/types.h>
6015 #include <signal.h>
6018 main ()
6020 return *(signal (0, 0)) (0) == 1;
6022 return 0;
6024 _ACEOF
6025 if ac_fn_c_try_compile "$LINENO"; then :
6026 ac_cv_type_signal=int
6027 else
6028 ac_cv_type_signal=void
6030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6033 $as_echo "$ac_cv_type_signal" >&6; }
6035 cat >>confdefs.h <<_ACEOF
6036 #define RETSIGTYPE $ac_cv_type_signal
6037 _ACEOF
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
6041 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
6042 if ${ac_cv_func_stat_empty_string_bug+:} false; then :
6043 $as_echo_n "(cached) " >&6
6044 else
6045 if test "$cross_compiling" = yes; then :
6046 ac_cv_func_stat_empty_string_bug=yes
6047 else
6048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049 /* end confdefs.h. */
6050 $ac_includes_default
6052 main ()
6054 struct stat sbuf;
6055 return stat ("", &sbuf) == 0;
6057 return 0;
6059 _ACEOF
6060 if ac_fn_c_try_run "$LINENO"; then :
6061 ac_cv_func_stat_empty_string_bug=no
6062 else
6063 ac_cv_func_stat_empty_string_bug=yes
6065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6066 conftest.$ac_objext conftest.beam conftest.$ac_ext
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
6071 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
6072 if test $ac_cv_func_stat_empty_string_bug = yes; then
6073 case " $LIBOBJS " in
6074 *" stat.$ac_objext "* ) ;;
6075 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
6077 esac
6080 cat >>confdefs.h <<_ACEOF
6081 #define HAVE_STAT_EMPTY_STRING_BUG 1
6082 _ACEOF
6086 for ac_func in vprintf
6087 do :
6088 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
6089 if test "x$ac_cv_func_vprintf" = xyes; then :
6090 cat >>confdefs.h <<_ACEOF
6091 #define HAVE_VPRINTF 1
6092 _ACEOF
6094 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6095 if test "x$ac_cv_func__doprnt" = xyes; then :
6097 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
6102 done
6105 for ac_func in alarm bzero ftruncate getcwd gettimeofday mkdir strcasecmp strdup strstr
6106 do :
6107 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6108 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6109 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6110 cat >>confdefs.h <<_ACEOF
6111 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6112 _ACEOF
6115 done
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
6118 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
6119 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
6120 $as_echo_n "(cached) " >&6
6121 else
6122 ac_check_lib_save_LIBS=$LIBS
6123 LIBS="-lpthread $LIBS"
6124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6125 /* end confdefs.h. */
6127 /* Override any GCC internal prototype to avoid an error.
6128 Use char because int might match the return type of a GCC
6129 builtin and then its argument prototype would still apply. */
6130 #ifdef __cplusplus
6131 extern "C"
6132 #endif
6133 char pthread_create ();
6135 main ()
6137 return pthread_create ();
6139 return 0;
6141 _ACEOF
6142 if ac_fn_c_try_link "$LINENO"; then :
6143 ac_cv_lib_pthread_pthread_create=yes
6144 else
6145 ac_cv_lib_pthread_pthread_create=no
6147 rm -f core conftest.err conftest.$ac_objext \
6148 conftest$ac_exeext conftest.$ac_ext
6149 LIBS=$ac_check_lib_save_LIBS
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
6152 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
6153 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
6154 LIBPTHREAD=true
6158 ac_config_files="$ac_config_files Makefile src/Makefile src/libnetwork/Makefile src/libgpukernel/Makefile src/libgpudisasm/Makefile src/libcachesystem/Makefile src/libm2skernel/Makefile src/libdisasm/Makefile src/libesim/Makefile src/libmhandle/Makefile src/libopt/Makefile src/libstruct/Makefile src/libmisc/Makefile src/libutils/Makefile src/libfs/Makefile src/libfs/hostfs/Makefile src/libfs/bfs/Makefile src/libintr/Makefile src/libbio/Makefile"
6160 cat >confcache <<\_ACEOF
6161 # This file is a shell script that caches the results of configure
6162 # tests run on this system so they can be shared between configure
6163 # scripts and configure runs, see configure's option --config-cache.
6164 # It is not useful on other systems. If it contains results you don't
6165 # want to keep, you may remove or edit it.
6167 # config.status only pays attention to the cache file if you give it
6168 # the --recheck option to rerun configure.
6170 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6171 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6172 # following values.
6174 _ACEOF
6176 # The following way of writing the cache mishandles newlines in values,
6177 # but we know of no workaround that is simple, portable, and efficient.
6178 # So, we kill variables containing newlines.
6179 # Ultrix sh set writes to stderr and can't be redirected directly,
6180 # and sets the high bit in the cache file unless we assign to the vars.
6182 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6183 eval ac_val=\$$ac_var
6184 case $ac_val in #(
6185 *${as_nl}*)
6186 case $ac_var in #(
6187 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6188 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6189 esac
6190 case $ac_var in #(
6191 _ | IFS | as_nl) ;; #(
6192 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6193 *) { eval $ac_var=; unset $ac_var;} ;;
6194 esac ;;
6195 esac
6196 done
6198 (set) 2>&1 |
6199 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6200 *${as_nl}ac_space=\ *)
6201 # `set' does not quote correctly, so add quotes: double-quote
6202 # substitution turns \\\\ into \\, and sed turns \\ into \.
6203 sed -n \
6204 "s/'/'\\\\''/g;
6205 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6206 ;; #(
6208 # `set' quotes correctly as required by POSIX, so do not add quotes.
6209 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6211 esac |
6212 sort
6214 sed '
6215 /^ac_cv_env_/b end
6216 t clear
6217 :clear
6218 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6219 t end
6220 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6221 :end' >>confcache
6222 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6223 if test -w "$cache_file"; then
6224 if test "x$cache_file" != "x/dev/null"; then
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6226 $as_echo "$as_me: updating cache $cache_file" >&6;}
6227 if test ! -f "$cache_file" || test -h "$cache_file"; then
6228 cat confcache >"$cache_file"
6229 else
6230 case $cache_file in #(
6231 */* | ?:*)
6232 mv -f confcache "$cache_file"$$ &&
6233 mv -f "$cache_file"$$ "$cache_file" ;; #(
6235 mv -f confcache "$cache_file" ;;
6236 esac
6239 else
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6241 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6244 rm -f confcache
6246 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6247 # Let make expand exec_prefix.
6248 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6250 # Transform confdefs.h into DEFS.
6251 # Protect against shell expansion while executing Makefile rules.
6252 # Protect against Makefile macro expansion.
6254 # If the first sed substitution is executed (which looks for macros that
6255 # take arguments), then branch to the quote section. Otherwise,
6256 # look for a macro that doesn't take arguments.
6257 ac_script='
6258 :mline
6259 /\\$/{
6261 s,\\\n,,
6262 b mline
6264 t clear
6265 :clear
6266 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
6267 t quote
6268 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
6269 t quote
6270 b any
6271 :quote
6272 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
6273 s/\[/\\&/g
6274 s/\]/\\&/g
6275 s/\$/$$/g
6277 :any
6280 s/^\n//
6281 s/\n/ /g
6285 DEFS=`sed -n "$ac_script" confdefs.h`
6288 ac_libobjs=
6289 ac_ltlibobjs=
6291 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6292 # 1. Remove the extension, and $U if already installed.
6293 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6294 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6295 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6296 # will be set to the directory where LIBOBJS objects are built.
6297 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6298 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6299 done
6300 LIBOBJS=$ac_libobjs
6302 LTLIBOBJS=$ac_ltlibobjs
6305 if test -n "$EXEEXT"; then
6306 am__EXEEXT_TRUE=
6307 am__EXEEXT_FALSE='#'
6308 else
6309 am__EXEEXT_TRUE='#'
6310 am__EXEEXT_FALSE=
6313 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6314 as_fn_error $? "conditional \"AMDEP\" was never defined.
6315 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6317 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6318 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6319 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6321 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
6322 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
6323 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6325 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6326 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6327 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6329 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
6330 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
6331 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6334 : "${CONFIG_STATUS=./config.status}"
6335 ac_write_fail=0
6336 ac_clean_files_save=$ac_clean_files
6337 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6339 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6340 as_write_fail=0
6341 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6342 #! $SHELL
6343 # Generated by $as_me.
6344 # Run this file to recreate the current configuration.
6345 # Compiler output produced by configure, useful for debugging
6346 # configure, is in config.log if it exists.
6348 debug=false
6349 ac_cs_recheck=false
6350 ac_cs_silent=false
6352 SHELL=\${CONFIG_SHELL-$SHELL}
6353 export SHELL
6354 _ASEOF
6355 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6356 ## -------------------- ##
6357 ## M4sh Initialization. ##
6358 ## -------------------- ##
6360 # Be more Bourne compatible
6361 DUALCASE=1; export DUALCASE # for MKS sh
6362 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6363 emulate sh
6364 NULLCMD=:
6365 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6366 # is contrary to our usage. Disable this feature.
6367 alias -g '${1+"$@"}'='"$@"'
6368 setopt NO_GLOB_SUBST
6369 else
6370 case `(set -o) 2>/dev/null` in #(
6371 *posix*) :
6372 set -o posix ;; #(
6373 *) :
6375 esac
6379 as_nl='
6381 export as_nl
6382 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6383 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6384 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6385 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6386 # Prefer a ksh shell builtin over an external printf program on Solaris,
6387 # but without wasting forks for bash or zsh.
6388 if test -z "$BASH_VERSION$ZSH_VERSION" \
6389 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6390 as_echo='print -r --'
6391 as_echo_n='print -rn --'
6392 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6393 as_echo='printf %s\n'
6394 as_echo_n='printf %s'
6395 else
6396 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6397 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6398 as_echo_n='/usr/ucb/echo -n'
6399 else
6400 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6401 as_echo_n_body='eval
6402 arg=$1;
6403 case $arg in #(
6404 *"$as_nl"*)
6405 expr "X$arg" : "X\\(.*\\)$as_nl";
6406 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6407 esac;
6408 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6410 export as_echo_n_body
6411 as_echo_n='sh -c $as_echo_n_body as_echo'
6413 export as_echo_body
6414 as_echo='sh -c $as_echo_body as_echo'
6417 # The user is always right.
6418 if test "${PATH_SEPARATOR+set}" != set; then
6419 PATH_SEPARATOR=:
6420 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6421 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6422 PATH_SEPARATOR=';'
6427 # IFS
6428 # We need space, tab and new line, in precisely that order. Quoting is
6429 # there to prevent editors from complaining about space-tab.
6430 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6431 # splitting by setting IFS to empty value.)
6432 IFS=" "" $as_nl"
6434 # Find who we are. Look in the path if we contain no directory separator.
6435 as_myself=
6436 case $0 in #((
6437 *[\\/]* ) as_myself=$0 ;;
6438 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439 for as_dir in $PATH
6441 IFS=$as_save_IFS
6442 test -z "$as_dir" && as_dir=.
6443 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6444 done
6445 IFS=$as_save_IFS
6448 esac
6449 # We did not find ourselves, most probably we were run as `sh COMMAND'
6450 # in which case we are not to be found in the path.
6451 if test "x$as_myself" = x; then
6452 as_myself=$0
6454 if test ! -f "$as_myself"; then
6455 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6456 exit 1
6459 # Unset variables that we do not need and which cause bugs (e.g. in
6460 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6461 # suppresses any "Segmentation fault" message there. '((' could
6462 # trigger a bug in pdksh 5.2.14.
6463 for as_var in BASH_ENV ENV MAIL MAILPATH
6464 do eval test x\${$as_var+set} = xset \
6465 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6466 done
6467 PS1='$ '
6468 PS2='> '
6469 PS4='+ '
6471 # NLS nuisances.
6472 LC_ALL=C
6473 export LC_ALL
6474 LANGUAGE=C
6475 export LANGUAGE
6477 # CDPATH.
6478 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6481 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6482 # ----------------------------------------
6483 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6484 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6485 # script with STATUS, using 1 if that was 0.
6486 as_fn_error ()
6488 as_status=$1; test $as_status -eq 0 && as_status=1
6489 if test "$4"; then
6490 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6491 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6493 $as_echo "$as_me: error: $2" >&2
6494 as_fn_exit $as_status
6495 } # as_fn_error
6498 # as_fn_set_status STATUS
6499 # -----------------------
6500 # Set $? to STATUS, without forking.
6501 as_fn_set_status ()
6503 return $1
6504 } # as_fn_set_status
6506 # as_fn_exit STATUS
6507 # -----------------
6508 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6509 as_fn_exit ()
6511 set +e
6512 as_fn_set_status $1
6513 exit $1
6514 } # as_fn_exit
6516 # as_fn_unset VAR
6517 # ---------------
6518 # Portably unset VAR.
6519 as_fn_unset ()
6521 { eval $1=; unset $1;}
6523 as_unset=as_fn_unset
6524 # as_fn_append VAR VALUE
6525 # ----------------------
6526 # Append the text in VALUE to the end of the definition contained in VAR. Take
6527 # advantage of any shell optimizations that allow amortized linear growth over
6528 # repeated appends, instead of the typical quadratic growth present in naive
6529 # implementations.
6530 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6531 eval 'as_fn_append ()
6533 eval $1+=\$2
6535 else
6536 as_fn_append ()
6538 eval $1=\$$1\$2
6540 fi # as_fn_append
6542 # as_fn_arith ARG...
6543 # ------------------
6544 # Perform arithmetic evaluation on the ARGs, and store the result in the
6545 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6546 # must be portable across $(()) and expr.
6547 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6548 eval 'as_fn_arith ()
6550 as_val=$(( $* ))
6552 else
6553 as_fn_arith ()
6555 as_val=`expr "$@" || test $? -eq 1`
6557 fi # as_fn_arith
6560 if expr a : '\(a\)' >/dev/null 2>&1 &&
6561 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6562 as_expr=expr
6563 else
6564 as_expr=false
6567 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6568 as_basename=basename
6569 else
6570 as_basename=false
6573 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6574 as_dirname=dirname
6575 else
6576 as_dirname=false
6579 as_me=`$as_basename -- "$0" ||
6580 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6581 X"$0" : 'X\(//\)$' \| \
6582 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6583 $as_echo X/"$0" |
6584 sed '/^.*\/\([^/][^/]*\)\/*$/{
6585 s//\1/
6588 /^X\/\(\/\/\)$/{
6589 s//\1/
6592 /^X\/\(\/\).*/{
6593 s//\1/
6596 s/.*/./; q'`
6598 # Avoid depending upon Character Ranges.
6599 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6600 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6601 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6602 as_cr_digits='0123456789'
6603 as_cr_alnum=$as_cr_Letters$as_cr_digits
6605 ECHO_C= ECHO_N= ECHO_T=
6606 case `echo -n x` in #(((((
6607 -n*)
6608 case `echo 'xy\c'` in
6609 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6610 xy) ECHO_C='\c';;
6611 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6612 ECHO_T=' ';;
6613 esac;;
6615 ECHO_N='-n';;
6616 esac
6618 rm -f conf$$ conf$$.exe conf$$.file
6619 if test -d conf$$.dir; then
6620 rm -f conf$$.dir/conf$$.file
6621 else
6622 rm -f conf$$.dir
6623 mkdir conf$$.dir 2>/dev/null
6625 if (echo >conf$$.file) 2>/dev/null; then
6626 if ln -s conf$$.file conf$$ 2>/dev/null; then
6627 as_ln_s='ln -s'
6628 # ... but there are two gotchas:
6629 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6630 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6631 # In both cases, we have to default to `cp -p'.
6632 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6633 as_ln_s='cp -p'
6634 elif ln conf$$.file conf$$ 2>/dev/null; then
6635 as_ln_s=ln
6636 else
6637 as_ln_s='cp -p'
6639 else
6640 as_ln_s='cp -p'
6642 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6643 rmdir conf$$.dir 2>/dev/null
6646 # as_fn_mkdir_p
6647 # -------------
6648 # Create "$as_dir" as a directory, including parents if necessary.
6649 as_fn_mkdir_p ()
6652 case $as_dir in #(
6653 -*) as_dir=./$as_dir;;
6654 esac
6655 test -d "$as_dir" || eval $as_mkdir_p || {
6656 as_dirs=
6657 while :; do
6658 case $as_dir in #(
6659 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6660 *) as_qdir=$as_dir;;
6661 esac
6662 as_dirs="'$as_qdir' $as_dirs"
6663 as_dir=`$as_dirname -- "$as_dir" ||
6664 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6665 X"$as_dir" : 'X\(//\)[^/]' \| \
6666 X"$as_dir" : 'X\(//\)$' \| \
6667 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6668 $as_echo X"$as_dir" |
6669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6670 s//\1/
6673 /^X\(\/\/\)[^/].*/{
6674 s//\1/
6677 /^X\(\/\/\)$/{
6678 s//\1/
6681 /^X\(\/\).*/{
6682 s//\1/
6685 s/.*/./; q'`
6686 test -d "$as_dir" && break
6687 done
6688 test -z "$as_dirs" || eval "mkdir $as_dirs"
6689 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6692 } # as_fn_mkdir_p
6693 if mkdir -p . 2>/dev/null; then
6694 as_mkdir_p='mkdir -p "$as_dir"'
6695 else
6696 test -d ./-p && rmdir ./-p
6697 as_mkdir_p=false
6700 if test -x / >/dev/null 2>&1; then
6701 as_test_x='test -x'
6702 else
6703 if ls -dL / >/dev/null 2>&1; then
6704 as_ls_L_option=L
6705 else
6706 as_ls_L_option=
6708 as_test_x='
6709 eval sh -c '\''
6710 if test -d "$1"; then
6711 test -d "$1/.";
6712 else
6713 case $1 in #(
6714 -*)set "./$1";;
6715 esac;
6716 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6717 ???[sx]*):;;*)false;;esac;fi
6718 '\'' sh
6721 as_executable_p=$as_test_x
6723 # Sed expression to map a string onto a valid CPP name.
6724 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6726 # Sed expression to map a string onto a valid variable name.
6727 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6730 exec 6>&1
6731 ## ----------------------------------- ##
6732 ## Main body of $CONFIG_STATUS script. ##
6733 ## ----------------------------------- ##
6734 _ASEOF
6735 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6738 # Save the log message, to keep $0 and so on meaningful, and to
6739 # report actual input values of CONFIG_FILES etc. instead of their
6740 # values after options handling.
6741 ac_log="
6742 This file was extended by $as_me, which was
6743 generated by GNU Autoconf 2.68. Invocation command line was
6745 CONFIG_FILES = $CONFIG_FILES
6746 CONFIG_HEADERS = $CONFIG_HEADERS
6747 CONFIG_LINKS = $CONFIG_LINKS
6748 CONFIG_COMMANDS = $CONFIG_COMMANDS
6749 $ $0 $@
6751 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6754 _ACEOF
6756 case $ac_config_files in *"
6757 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6758 esac
6762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6763 # Files that config.status was made for.
6764 config_files="$ac_config_files"
6765 config_commands="$ac_config_commands"
6767 _ACEOF
6769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6770 ac_cs_usage="\
6771 \`$as_me' instantiates files and other configuration actions
6772 from templates according to the current configuration. Unless the files
6773 and actions are specified as TAGs, all are instantiated by default.
6775 Usage: $0 [OPTION]... [TAG]...
6777 -h, --help print this help, then exit
6778 -V, --version print version number and configuration settings, then exit
6779 --config print configuration, then exit
6780 -q, --quiet, --silent
6781 do not print progress messages
6782 -d, --debug don't remove temporary files
6783 --recheck update $as_me by reconfiguring in the same conditions
6784 --file=FILE[:TEMPLATE]
6785 instantiate the configuration file FILE
6787 Configuration files:
6788 $config_files
6790 Configuration commands:
6791 $config_commands
6793 Report bugs to the package provider."
6795 _ACEOF
6796 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6797 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6798 ac_cs_version="\\
6799 config.status
6800 configured by $0, generated by GNU Autoconf 2.68,
6801 with options \\"\$ac_cs_config\\"
6803 Copyright (C) 2010 Free Software Foundation, Inc.
6804 This config.status script is free software; the Free Software Foundation
6805 gives unlimited permission to copy, distribute and modify it."
6807 ac_pwd='$ac_pwd'
6808 srcdir='$srcdir'
6809 INSTALL='$INSTALL'
6810 MKDIR_P='$MKDIR_P'
6811 AWK='$AWK'
6812 test -n "\$AWK" || AWK=awk
6813 _ACEOF
6815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6816 # The default lists apply if the user does not specify any file.
6817 ac_need_defaults=:
6818 while test $# != 0
6820 case $1 in
6821 --*=?*)
6822 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6823 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6824 ac_shift=:
6826 --*=)
6827 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6828 ac_optarg=
6829 ac_shift=:
6832 ac_option=$1
6833 ac_optarg=$2
6834 ac_shift=shift
6836 esac
6838 case $ac_option in
6839 # Handling of the options.
6840 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6841 ac_cs_recheck=: ;;
6842 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6843 $as_echo "$ac_cs_version"; exit ;;
6844 --config | --confi | --conf | --con | --co | --c )
6845 $as_echo "$ac_cs_config"; exit ;;
6846 --debug | --debu | --deb | --de | --d | -d )
6847 debug=: ;;
6848 --file | --fil | --fi | --f )
6849 $ac_shift
6850 case $ac_optarg in
6851 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6852 '') as_fn_error $? "missing file argument" ;;
6853 esac
6854 as_fn_append CONFIG_FILES " '$ac_optarg'"
6855 ac_need_defaults=false;;
6856 --he | --h | --help | --hel | -h )
6857 $as_echo "$ac_cs_usage"; exit ;;
6858 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6859 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6860 ac_cs_silent=: ;;
6862 # This is an error.
6863 -*) as_fn_error $? "unrecognized option: \`$1'
6864 Try \`$0 --help' for more information." ;;
6866 *) as_fn_append ac_config_targets " $1"
6867 ac_need_defaults=false ;;
6869 esac
6870 shift
6871 done
6873 ac_configure_extra_args=
6875 if $ac_cs_silent; then
6876 exec 6>/dev/null
6877 ac_configure_extra_args="$ac_configure_extra_args --silent"
6880 _ACEOF
6881 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6882 if \$ac_cs_recheck; then
6883 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6884 shift
6885 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6886 CONFIG_SHELL='$SHELL'
6887 export CONFIG_SHELL
6888 exec "\$@"
6891 _ACEOF
6892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6893 exec 5>>config.log
6895 echo
6896 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6897 ## Running $as_me. ##
6898 _ASBOX
6899 $as_echo "$ac_log"
6900 } >&5
6902 _ACEOF
6903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6905 # INIT-COMMANDS
6907 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6909 _ACEOF
6911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6913 # Handling of arguments.
6914 for ac_config_target in $ac_config_targets
6916 case $ac_config_target in
6917 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6918 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6919 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6920 "src/libnetwork/Makefile") CONFIG_FILES="$CONFIG_FILES src/libnetwork/Makefile" ;;
6921 "src/libgpukernel/Makefile") CONFIG_FILES="$CONFIG_FILES src/libgpukernel/Makefile" ;;
6922 "src/libgpudisasm/Makefile") CONFIG_FILES="$CONFIG_FILES src/libgpudisasm/Makefile" ;;
6923 "src/libcachesystem/Makefile") CONFIG_FILES="$CONFIG_FILES src/libcachesystem/Makefile" ;;
6924 "src/libm2skernel/Makefile") CONFIG_FILES="$CONFIG_FILES src/libm2skernel/Makefile" ;;
6925 "src/libdisasm/Makefile") CONFIG_FILES="$CONFIG_FILES src/libdisasm/Makefile" ;;
6926 "src/libesim/Makefile") CONFIG_FILES="$CONFIG_FILES src/libesim/Makefile" ;;
6927 "src/libmhandle/Makefile") CONFIG_FILES="$CONFIG_FILES src/libmhandle/Makefile" ;;
6928 "src/libopt/Makefile") CONFIG_FILES="$CONFIG_FILES src/libopt/Makefile" ;;
6929 "src/libstruct/Makefile") CONFIG_FILES="$CONFIG_FILES src/libstruct/Makefile" ;;
6930 "src/libmisc/Makefile") CONFIG_FILES="$CONFIG_FILES src/libmisc/Makefile" ;;
6931 "src/libutils/Makefile") CONFIG_FILES="$CONFIG_FILES src/libutils/Makefile" ;;
6932 "src/libfs/Makefile") CONFIG_FILES="$CONFIG_FILES src/libfs/Makefile" ;;
6933 "src/libfs/hostfs/Makefile") CONFIG_FILES="$CONFIG_FILES src/libfs/hostfs/Makefile" ;;
6934 "src/libfs/bfs/Makefile") CONFIG_FILES="$CONFIG_FILES src/libfs/bfs/Makefile" ;;
6935 "src/libintr/Makefile") CONFIG_FILES="$CONFIG_FILES src/libintr/Makefile" ;;
6936 "src/libbio/Makefile") CONFIG_FILES="$CONFIG_FILES src/libbio/Makefile" ;;
6938 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6939 esac
6940 done
6943 # If the user did not use the arguments to specify the items to instantiate,
6944 # then the envvar interface is used. Set only those that are not.
6945 # We use the long form for the default assignment because of an extremely
6946 # bizarre bug on SunOS 4.1.3.
6947 if $ac_need_defaults; then
6948 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6949 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6952 # Have a temporary directory for convenience. Make it in the build tree
6953 # simply because there is no reason against having it here, and in addition,
6954 # creating and moving files from /tmp can sometimes cause problems.
6955 # Hook for its removal unless debugging.
6956 # Note that there is a small window in which the directory will not be cleaned:
6957 # after its creation but before its name has been assigned to `$tmp'.
6958 $debug ||
6960 tmp= ac_tmp=
6961 trap 'exit_status=$?
6962 : "${ac_tmp:=$tmp}"
6963 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6965 trap 'as_fn_exit 1' 1 2 13 15
6967 # Create a (secure) tmp directory for tmp files.
6970 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6971 test -d "$tmp"
6972 } ||
6974 tmp=./conf$$-$RANDOM
6975 (umask 077 && mkdir "$tmp")
6976 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6977 ac_tmp=$tmp
6979 # Set up the scripts for CONFIG_FILES section.
6980 # No need to generate them if there are no CONFIG_FILES.
6981 # This happens for instance with `./config.status config.h'.
6982 if test -n "$CONFIG_FILES"; then
6985 ac_cr=`echo X | tr X '\015'`
6986 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6987 # But we know of no other shell where ac_cr would be empty at this
6988 # point, so we can use a bashism as a fallback.
6989 if test "x$ac_cr" = x; then
6990 eval ac_cr=\$\'\\r\'
6992 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6993 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6994 ac_cs_awk_cr='\\r'
6995 else
6996 ac_cs_awk_cr=$ac_cr
6999 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7000 _ACEOF
7004 echo "cat >conf$$subs.awk <<_ACEOF" &&
7005 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7006 echo "_ACEOF"
7007 } >conf$$subs.sh ||
7008 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7009 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7010 ac_delim='%!_!# '
7011 for ac_last_try in false false false false false :; do
7012 . ./conf$$subs.sh ||
7013 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7015 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7016 if test $ac_delim_n = $ac_delim_num; then
7017 break
7018 elif $ac_last_try; then
7019 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7020 else
7021 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7023 done
7024 rm -f conf$$subs.sh
7026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7027 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7028 _ACEOF
7029 sed -n '
7031 s/^/S["/; s/!.*/"]=/
7034 s/^[^!]*!//
7035 :repl
7036 t repl
7037 s/'"$ac_delim"'$//
7038 t delim
7041 s/\(.\{148\}\)..*/\1/
7042 t more1
7043 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7046 b repl
7047 :more1
7048 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7051 s/.\{148\}//
7052 t nl
7053 :delim
7055 s/\(.\{148\}\)..*/\1/
7056 t more2
7057 s/["\\]/\\&/g; s/^/"/; s/$/"/
7060 :more2
7061 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7064 s/.\{148\}//
7065 t delim
7066 ' <conf$$subs.awk | sed '
7067 /^[^""]/{
7069 s/\n//
7071 ' >>$CONFIG_STATUS || ac_write_fail=1
7072 rm -f conf$$subs.awk
7073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7074 _ACAWK
7075 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7076 for (key in S) S_is_set[key] = 1
7077 FS = "\a"
7081 line = $ 0
7082 nfields = split(line, field, "@")
7083 substed = 0
7084 len = length(field[1])
7085 for (i = 2; i < nfields; i++) {
7086 key = field[i]
7087 keylen = length(key)
7088 if (S_is_set[key]) {
7089 value = S[key]
7090 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7091 len += length(value) + length(field[++i])
7092 substed = 1
7093 } else
7094 len += 1 + keylen
7097 print line
7100 _ACAWK
7101 _ACEOF
7102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7103 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7104 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7105 else
7107 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7108 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7109 _ACEOF
7111 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7112 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7113 # trailing colons and then remove the whole line if VPATH becomes empty
7114 # (actually we leave an empty line to preserve line numbers).
7115 if test "x$srcdir" = x.; then
7116 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7118 s///
7119 s/^/:/
7120 s/[ ]*$/:/
7121 s/:\$(srcdir):/:/g
7122 s/:\${srcdir}:/:/g
7123 s/:@srcdir@:/:/g
7124 s/^:*//
7125 s/:*$//
7127 s/\(=[ ]*\).*/\1/
7129 s/\n//
7130 s/^[^=]*=[ ]*$//
7134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7135 fi # test -n "$CONFIG_FILES"
7138 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
7139 shift
7140 for ac_tag
7142 case $ac_tag in
7143 :[FHLC]) ac_mode=$ac_tag; continue;;
7144 esac
7145 case $ac_mode$ac_tag in
7146 :[FHL]*:*);;
7147 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7148 :[FH]-) ac_tag=-:-;;
7149 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7150 esac
7151 ac_save_IFS=$IFS
7152 IFS=:
7153 set x $ac_tag
7154 IFS=$ac_save_IFS
7155 shift
7156 ac_file=$1
7157 shift
7159 case $ac_mode in
7160 :L) ac_source=$1;;
7161 :[FH])
7162 ac_file_inputs=
7163 for ac_f
7165 case $ac_f in
7166 -) ac_f="$ac_tmp/stdin";;
7167 *) # Look for the file first in the build tree, then in the source tree
7168 # (if the path is not absolute). The absolute path cannot be DOS-style,
7169 # because $ac_f cannot contain `:'.
7170 test -f "$ac_f" ||
7171 case $ac_f in
7172 [\\/$]*) false;;
7173 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7174 esac ||
7175 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7176 esac
7177 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7178 as_fn_append ac_file_inputs " '$ac_f'"
7179 done
7181 # Let's still pretend it is `configure' which instantiates (i.e., don't
7182 # use $as_me), people would be surprised to read:
7183 # /* config.h. Generated by config.status. */
7184 configure_input='Generated from '`
7185 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7186 `' by configure.'
7187 if test x"$ac_file" != x-; then
7188 configure_input="$ac_file. $configure_input"
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7190 $as_echo "$as_me: creating $ac_file" >&6;}
7192 # Neutralize special characters interpreted by sed in replacement strings.
7193 case $configure_input in #(
7194 *\&* | *\|* | *\\* )
7195 ac_sed_conf_input=`$as_echo "$configure_input" |
7196 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7197 *) ac_sed_conf_input=$configure_input;;
7198 esac
7200 case $ac_tag in
7201 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7202 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7203 esac
7205 esac
7207 ac_dir=`$as_dirname -- "$ac_file" ||
7208 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7209 X"$ac_file" : 'X\(//\)[^/]' \| \
7210 X"$ac_file" : 'X\(//\)$' \| \
7211 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7212 $as_echo X"$ac_file" |
7213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7214 s//\1/
7217 /^X\(\/\/\)[^/].*/{
7218 s//\1/
7221 /^X\(\/\/\)$/{
7222 s//\1/
7225 /^X\(\/\).*/{
7226 s//\1/
7229 s/.*/./; q'`
7230 as_dir="$ac_dir"; as_fn_mkdir_p
7231 ac_builddir=.
7233 case "$ac_dir" in
7234 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7236 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7237 # A ".." for each directory in $ac_dir_suffix.
7238 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7239 case $ac_top_builddir_sub in
7240 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7241 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7242 esac ;;
7243 esac
7244 ac_abs_top_builddir=$ac_pwd
7245 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7246 # for backward compatibility:
7247 ac_top_builddir=$ac_top_build_prefix
7249 case $srcdir in
7250 .) # We are building in place.
7251 ac_srcdir=.
7252 ac_top_srcdir=$ac_top_builddir_sub
7253 ac_abs_top_srcdir=$ac_pwd ;;
7254 [\\/]* | ?:[\\/]* ) # Absolute name.
7255 ac_srcdir=$srcdir$ac_dir_suffix;
7256 ac_top_srcdir=$srcdir
7257 ac_abs_top_srcdir=$srcdir ;;
7258 *) # Relative name.
7259 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7260 ac_top_srcdir=$ac_top_build_prefix$srcdir
7261 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7262 esac
7263 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7266 case $ac_mode in
7269 # CONFIG_FILE
7272 case $INSTALL in
7273 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7274 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7275 esac
7276 ac_MKDIR_P=$MKDIR_P
7277 case $MKDIR_P in
7278 [\\/$]* | ?:[\\/]* ) ;;
7279 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7280 esac
7281 _ACEOF
7283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7284 # If the template does not know about datarootdir, expand it.
7285 # FIXME: This hack should be removed a few years after 2.60.
7286 ac_datarootdir_hack=; ac_datarootdir_seen=
7287 ac_sed_dataroot='
7288 /datarootdir/ {
7292 /@datadir@/p
7293 /@docdir@/p
7294 /@infodir@/p
7295 /@localedir@/p
7296 /@mandir@/p'
7297 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7298 *datarootdir*) ac_datarootdir_seen=yes;;
7299 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7301 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7302 _ACEOF
7303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7304 ac_datarootdir_hack='
7305 s&@datadir@&$datadir&g
7306 s&@docdir@&$docdir&g
7307 s&@infodir@&$infodir&g
7308 s&@localedir@&$localedir&g
7309 s&@mandir@&$mandir&g
7310 s&\\\${datarootdir}&$datarootdir&g' ;;
7311 esac
7312 _ACEOF
7314 # Neutralize VPATH when `$srcdir' = `.'.
7315 # Shell code in configure.ac might set extrasub.
7316 # FIXME: do we really want to maintain this feature?
7317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7318 ac_sed_extra="$ac_vpsub
7319 $extrasub
7320 _ACEOF
7321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7323 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7324 s|@configure_input@|$ac_sed_conf_input|;t t
7325 s&@top_builddir@&$ac_top_builddir_sub&;t t
7326 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7327 s&@srcdir@&$ac_srcdir&;t t
7328 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7329 s&@top_srcdir@&$ac_top_srcdir&;t t
7330 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7331 s&@builddir@&$ac_builddir&;t t
7332 s&@abs_builddir@&$ac_abs_builddir&;t t
7333 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7334 s&@INSTALL@&$ac_INSTALL&;t t
7335 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7336 $ac_datarootdir_hack
7338 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7339 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7341 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7342 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7343 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7344 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7346 which seems to be undefined. Please make sure it is defined" >&5
7347 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7348 which seems to be undefined. Please make sure it is defined" >&2;}
7350 rm -f "$ac_tmp/stdin"
7351 case $ac_file in
7352 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7353 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7354 esac \
7355 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7359 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7360 $as_echo "$as_me: executing $ac_file commands" >&6;}
7362 esac
7365 case $ac_file$ac_mode in
7366 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7367 # Autoconf 2.62 quotes --file arguments for eval, but not when files
7368 # are listed without --file. Let's play safe and only enable the eval
7369 # if we detect the quoting.
7370 case $CONFIG_FILES in
7371 *\'*) eval set x "$CONFIG_FILES" ;;
7372 *) set x $CONFIG_FILES ;;
7373 esac
7374 shift
7375 for mf
7377 # Strip MF so we end up with the name of the file.
7378 mf=`echo "$mf" | sed -e 's/:.*$//'`
7379 # Check whether this is an Automake generated Makefile or not.
7380 # We used to match only the files named `Makefile.in', but
7381 # some people rename them; so instead we look at the file content.
7382 # Grep'ing the first line is not enough: some people post-process
7383 # each Makefile.in and add a new line on top of each file to say so.
7384 # Grep'ing the whole file is not good either: AIX grep has a line
7385 # limit of 2048, but all sed's we know have understand at least 4000.
7386 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7387 dirpart=`$as_dirname -- "$mf" ||
7388 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7389 X"$mf" : 'X\(//\)[^/]' \| \
7390 X"$mf" : 'X\(//\)$' \| \
7391 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7392 $as_echo X"$mf" |
7393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7394 s//\1/
7397 /^X\(\/\/\)[^/].*/{
7398 s//\1/
7401 /^X\(\/\/\)$/{
7402 s//\1/
7405 /^X\(\/\).*/{
7406 s//\1/
7409 s/.*/./; q'`
7410 else
7411 continue
7413 # Extract the definition of DEPDIR, am__include, and am__quote
7414 # from the Makefile without running `make'.
7415 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7416 test -z "$DEPDIR" && continue
7417 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7418 test -z "am__include" && continue
7419 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7420 # When using ansi2knr, U may be empty or an underscore; expand it
7421 U=`sed -n 's/^U = //p' < "$mf"`
7422 # Find all dependency output files, they are included files with
7423 # $(DEPDIR) in their names. We invoke sed twice because it is the
7424 # simplest approach to changing $(DEPDIR) to its actual value in the
7425 # expansion.
7426 for file in `sed -n "
7427 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7428 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7429 # Make sure the directory exists.
7430 test -f "$dirpart/$file" && continue
7431 fdir=`$as_dirname -- "$file" ||
7432 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7433 X"$file" : 'X\(//\)[^/]' \| \
7434 X"$file" : 'X\(//\)$' \| \
7435 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7436 $as_echo X"$file" |
7437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7438 s//\1/
7441 /^X\(\/\/\)[^/].*/{
7442 s//\1/
7445 /^X\(\/\/\)$/{
7446 s//\1/
7449 /^X\(\/\).*/{
7450 s//\1/
7453 s/.*/./; q'`
7454 as_dir=$dirpart/$fdir; as_fn_mkdir_p
7455 # echo "creating $dirpart/$file"
7456 echo '# dummy' > "$dirpart/$file"
7457 done
7458 done
7462 esac
7463 done # for ac_tag
7466 as_fn_exit 0
7467 _ACEOF
7468 ac_clean_files=$ac_clean_files_save
7470 test $ac_write_fail = 0 ||
7471 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7474 # configure is writing to config.log, and then calls config.status.
7475 # config.status does its own redirection, appending to config.log.
7476 # Unfortunately, on DOS this fails, as config.log is still kept open
7477 # by configure, so config.status won't be able to write to it; its
7478 # output is simply discarded. So we exec the FD to /dev/null,
7479 # effectively closing config.log, so it can be properly (re)opened and
7480 # appended to by config.status. When coming back to configure, we
7481 # need to make the FD available again.
7482 if test "$no_create" != yes; then
7483 ac_cs_success=:
7484 ac_config_status_args=
7485 test "$silent" = yes &&
7486 ac_config_status_args="$ac_config_status_args --quiet"
7487 exec 5>/dev/null
7488 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7489 exec 5>>config.log
7490 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7491 # would make configure fail if this is the last instruction.
7492 $ac_cs_success || as_fn_exit 1
7494 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7496 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}