modified: SpatialOmicsCoord.py
[GalaxyCodeBases.git] / c_cpp / etc / mbuffer / configure
blobb15de5755d67902442252287ee33d20dce9b8b90
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for mbuffer 20150412.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME='mbuffer'
579 PACKAGE_TARNAME='mbuffer'
580 PACKAGE_VERSION='20150412'
581 PACKAGE_STRING='mbuffer 20150412'
582 PACKAGE_BUGREPORT=''
583 PACKAGE_URL=''
585 ac_unique_file="mbuffer.c"
586 ac_default_prefix=/usr/local
587 # Factoring default headers for most tests.
588 ac_includes_default="\
589 #include <stdio.h>
590 #ifdef HAVE_SYS_TYPES_H
591 # include <sys/types.h>
592 #endif
593 #ifdef HAVE_SYS_STAT_H
594 # include <sys/stat.h>
595 #endif
596 #ifdef STDC_HEADERS
597 # include <stdlib.h>
598 # include <stddef.h>
599 #else
600 # ifdef HAVE_STDLIB_H
601 # include <stdlib.h>
602 # endif
603 #endif
604 #ifdef HAVE_STRING_H
605 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
606 # include <memory.h>
607 # endif
608 # include <string.h>
609 #endif
610 #ifdef HAVE_STRINGS_H
611 # include <strings.h>
612 #endif
613 #ifdef HAVE_INTTYPES_H
614 # include <inttypes.h>
615 #endif
616 #ifdef HAVE_STDINT_H
617 # include <stdint.h>
618 #endif
619 #ifdef HAVE_UNISTD_H
620 # include <unistd.h>
621 #endif"
623 ac_subst_vars='LTLIBOBJS
624 LIBOBJS
625 AUTOCONF
626 DEBUG
627 ALLOCA
628 EGREP
629 GREP
633 INSTALL_DATA
634 INSTALL_SCRIPT
635 INSTALL_PROGRAM
636 OBJEXT
637 EXEEXT
638 ac_ct_CC
639 CPPFLAGS
640 LDFLAGS
641 CFLAGS
643 target_os
644 target_vendor
645 target_cpu
646 target
647 host_os
648 host_vendor
649 host_cpu
650 host
651 build_os
652 build_vendor
653 build_cpu
654 build
655 target_alias
656 host_alias
657 build_alias
658 LIBS
659 ECHO_T
660 ECHO_N
661 ECHO_C
662 DEFS
663 mandir
664 localedir
665 libdir
666 psdir
667 pdfdir
668 dvidir
669 htmldir
670 infodir
671 docdir
672 oldincludedir
673 includedir
674 localstatedir
675 sharedstatedir
676 sysconfdir
677 datadir
678 datarootdir
679 libexecdir
680 sbindir
681 bindir
682 program_transform_name
683 prefix
684 exec_prefix
685 PACKAGE_URL
686 PACKAGE_BUGREPORT
687 PACKAGE_STRING
688 PACKAGE_VERSION
689 PACKAGE_TARNAME
690 PACKAGE_NAME
691 PATH_SEPARATOR
692 SHELL'
693 ac_subst_files=''
694 ac_user_opts='
695 enable_option_checking
696 enable_largefile
697 enable_assert
698 enable_debug
699 enable_md5
701 ac_precious_vars='build_alias
702 host_alias
703 target_alias
705 CFLAGS
706 LDFLAGS
707 LIBS
708 CPPFLAGS
709 CPP'
712 # Initialize some variables set by options.
713 ac_init_help=
714 ac_init_version=false
715 ac_unrecognized_opts=
716 ac_unrecognized_sep=
717 # The variables have the same names as the options, with
718 # dashes changed to underlines.
719 cache_file=/dev/null
720 exec_prefix=NONE
721 no_create=
722 no_recursion=
723 prefix=NONE
724 program_prefix=NONE
725 program_suffix=NONE
726 program_transform_name=s,x,x,
727 silent=
728 site=
729 srcdir=
730 verbose=
731 x_includes=NONE
732 x_libraries=NONE
734 # Installation directory options.
735 # These are left unexpanded so users can "make install exec_prefix=/foo"
736 # and all the variables that are supposed to be based on exec_prefix
737 # by default will actually change.
738 # Use braces instead of parens because sh, perl, etc. also accept them.
739 # (The list follows the same order as the GNU Coding Standards.)
740 bindir='${exec_prefix}/bin'
741 sbindir='${exec_prefix}/sbin'
742 libexecdir='${exec_prefix}/libexec'
743 datarootdir='${prefix}/share'
744 datadir='${datarootdir}'
745 sysconfdir='${prefix}/etc'
746 sharedstatedir='${prefix}/com'
747 localstatedir='${prefix}/var'
748 includedir='${prefix}/include'
749 oldincludedir='/usr/include'
750 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
751 infodir='${datarootdir}/info'
752 htmldir='${docdir}'
753 dvidir='${docdir}'
754 pdfdir='${docdir}'
755 psdir='${docdir}'
756 libdir='${exec_prefix}/lib'
757 localedir='${datarootdir}/locale'
758 mandir='${datarootdir}/man'
760 ac_prev=
761 ac_dashdash=
762 for ac_option
764 # If the previous option needs an argument, assign it.
765 if test -n "$ac_prev"; then
766 eval $ac_prev=\$ac_option
767 ac_prev=
768 continue
771 case $ac_option in
772 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
773 *=) ac_optarg= ;;
774 *) ac_optarg=yes ;;
775 esac
777 # Accept the important Cygnus configure options, so we can diagnose typos.
779 case $ac_dashdash$ac_option in
781 ac_dashdash=yes ;;
783 -bindir | --bindir | --bindi | --bind | --bin | --bi)
784 ac_prev=bindir ;;
785 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
786 bindir=$ac_optarg ;;
788 -build | --build | --buil | --bui | --bu)
789 ac_prev=build_alias ;;
790 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
791 build_alias=$ac_optarg ;;
793 -cache-file | --cache-file | --cache-fil | --cache-fi \
794 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
795 ac_prev=cache_file ;;
796 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
797 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
798 cache_file=$ac_optarg ;;
800 --config-cache | -C)
801 cache_file=config.cache ;;
803 -datadir | --datadir | --datadi | --datad)
804 ac_prev=datadir ;;
805 -datadir=* | --datadir=* | --datadi=* | --datad=*)
806 datadir=$ac_optarg ;;
808 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
809 | --dataroo | --dataro | --datar)
810 ac_prev=datarootdir ;;
811 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
812 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
813 datarootdir=$ac_optarg ;;
815 -disable-* | --disable-*)
816 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
817 # Reject names that are not valid shell variable names.
818 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
819 as_fn_error $? "invalid feature name: $ac_useropt"
820 ac_useropt_orig=$ac_useropt
821 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
822 case $ac_user_opts in
824 "enable_$ac_useropt"
825 "*) ;;
826 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
827 ac_unrecognized_sep=', ';;
828 esac
829 eval enable_$ac_useropt=no ;;
831 -docdir | --docdir | --docdi | --doc | --do)
832 ac_prev=docdir ;;
833 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
834 docdir=$ac_optarg ;;
836 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
837 ac_prev=dvidir ;;
838 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
839 dvidir=$ac_optarg ;;
841 -enable-* | --enable-*)
842 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
843 # Reject names that are not valid shell variable names.
844 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
845 as_fn_error $? "invalid feature name: $ac_useropt"
846 ac_useropt_orig=$ac_useropt
847 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
848 case $ac_user_opts in
850 "enable_$ac_useropt"
851 "*) ;;
852 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
853 ac_unrecognized_sep=', ';;
854 esac
855 eval enable_$ac_useropt=\$ac_optarg ;;
857 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
858 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
859 | --exec | --exe | --ex)
860 ac_prev=exec_prefix ;;
861 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
862 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
863 | --exec=* | --exe=* | --ex=*)
864 exec_prefix=$ac_optarg ;;
866 -gas | --gas | --ga | --g)
867 # Obsolete; use --with-gas.
868 with_gas=yes ;;
870 -help | --help | --hel | --he | -h)
871 ac_init_help=long ;;
872 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
873 ac_init_help=recursive ;;
874 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
875 ac_init_help=short ;;
877 -host | --host | --hos | --ho)
878 ac_prev=host_alias ;;
879 -host=* | --host=* | --hos=* | --ho=*)
880 host_alias=$ac_optarg ;;
882 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
883 ac_prev=htmldir ;;
884 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
885 | --ht=*)
886 htmldir=$ac_optarg ;;
888 -includedir | --includedir | --includedi | --included | --include \
889 | --includ | --inclu | --incl | --inc)
890 ac_prev=includedir ;;
891 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
892 | --includ=* | --inclu=* | --incl=* | --inc=*)
893 includedir=$ac_optarg ;;
895 -infodir | --infodir | --infodi | --infod | --info | --inf)
896 ac_prev=infodir ;;
897 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
898 infodir=$ac_optarg ;;
900 -libdir | --libdir | --libdi | --libd)
901 ac_prev=libdir ;;
902 -libdir=* | --libdir=* | --libdi=* | --libd=*)
903 libdir=$ac_optarg ;;
905 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
906 | --libexe | --libex | --libe)
907 ac_prev=libexecdir ;;
908 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
909 | --libexe=* | --libex=* | --libe=*)
910 libexecdir=$ac_optarg ;;
912 -localedir | --localedir | --localedi | --localed | --locale)
913 ac_prev=localedir ;;
914 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
915 localedir=$ac_optarg ;;
917 -localstatedir | --localstatedir | --localstatedi | --localstated \
918 | --localstate | --localstat | --localsta | --localst | --locals)
919 ac_prev=localstatedir ;;
920 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
921 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
922 localstatedir=$ac_optarg ;;
924 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
925 ac_prev=mandir ;;
926 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
927 mandir=$ac_optarg ;;
929 -nfp | --nfp | --nf)
930 # Obsolete; use --without-fp.
931 with_fp=no ;;
933 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
934 | --no-cr | --no-c | -n)
935 no_create=yes ;;
937 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
938 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
939 no_recursion=yes ;;
941 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
942 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
943 | --oldin | --oldi | --old | --ol | --o)
944 ac_prev=oldincludedir ;;
945 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
946 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
947 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
948 oldincludedir=$ac_optarg ;;
950 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
951 ac_prev=prefix ;;
952 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
953 prefix=$ac_optarg ;;
955 -program-prefix | --program-prefix | --program-prefi | --program-pref \
956 | --program-pre | --program-pr | --program-p)
957 ac_prev=program_prefix ;;
958 -program-prefix=* | --program-prefix=* | --program-prefi=* \
959 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
960 program_prefix=$ac_optarg ;;
962 -program-suffix | --program-suffix | --program-suffi | --program-suff \
963 | --program-suf | --program-su | --program-s)
964 ac_prev=program_suffix ;;
965 -program-suffix=* | --program-suffix=* | --program-suffi=* \
966 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
967 program_suffix=$ac_optarg ;;
969 -program-transform-name | --program-transform-name \
970 | --program-transform-nam | --program-transform-na \
971 | --program-transform-n | --program-transform- \
972 | --program-transform | --program-transfor \
973 | --program-transfo | --program-transf \
974 | --program-trans | --program-tran \
975 | --progr-tra | --program-tr | --program-t)
976 ac_prev=program_transform_name ;;
977 -program-transform-name=* | --program-transform-name=* \
978 | --program-transform-nam=* | --program-transform-na=* \
979 | --program-transform-n=* | --program-transform-=* \
980 | --program-transform=* | --program-transfor=* \
981 | --program-transfo=* | --program-transf=* \
982 | --program-trans=* | --program-tran=* \
983 | --progr-tra=* | --program-tr=* | --program-t=*)
984 program_transform_name=$ac_optarg ;;
986 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
987 ac_prev=pdfdir ;;
988 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
989 pdfdir=$ac_optarg ;;
991 -psdir | --psdir | --psdi | --psd | --ps)
992 ac_prev=psdir ;;
993 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
994 psdir=$ac_optarg ;;
996 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
997 | -silent | --silent | --silen | --sile | --sil)
998 silent=yes ;;
1000 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1001 ac_prev=sbindir ;;
1002 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1003 | --sbi=* | --sb=*)
1004 sbindir=$ac_optarg ;;
1006 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1007 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1008 | --sharedst | --shareds | --shared | --share | --shar \
1009 | --sha | --sh)
1010 ac_prev=sharedstatedir ;;
1011 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1012 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1013 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1014 | --sha=* | --sh=*)
1015 sharedstatedir=$ac_optarg ;;
1017 -site | --site | --sit)
1018 ac_prev=site ;;
1019 -site=* | --site=* | --sit=*)
1020 site=$ac_optarg ;;
1022 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1023 ac_prev=srcdir ;;
1024 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1025 srcdir=$ac_optarg ;;
1027 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1028 | --syscon | --sysco | --sysc | --sys | --sy)
1029 ac_prev=sysconfdir ;;
1030 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1031 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1032 sysconfdir=$ac_optarg ;;
1034 -target | --target | --targe | --targ | --tar | --ta | --t)
1035 ac_prev=target_alias ;;
1036 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1037 target_alias=$ac_optarg ;;
1039 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1040 verbose=yes ;;
1042 -version | --version | --versio | --versi | --vers | -V)
1043 ac_init_version=: ;;
1045 -with-* | --with-*)
1046 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1049 as_fn_error $? "invalid package name: $ac_useropt"
1050 ac_useropt_orig=$ac_useropt
1051 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052 case $ac_user_opts in
1054 "with_$ac_useropt"
1055 "*) ;;
1056 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1057 ac_unrecognized_sep=', ';;
1058 esac
1059 eval with_$ac_useropt=\$ac_optarg ;;
1061 -without-* | --without-*)
1062 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1065 as_fn_error $? "invalid package name: $ac_useropt"
1066 ac_useropt_orig=$ac_useropt
1067 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1068 case $ac_user_opts in
1070 "with_$ac_useropt"
1071 "*) ;;
1072 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1073 ac_unrecognized_sep=', ';;
1074 esac
1075 eval with_$ac_useropt=no ;;
1077 --x)
1078 # Obsolete; use --with-x.
1079 with_x=yes ;;
1081 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1082 | --x-incl | --x-inc | --x-in | --x-i)
1083 ac_prev=x_includes ;;
1084 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1085 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1086 x_includes=$ac_optarg ;;
1088 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1089 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1090 ac_prev=x_libraries ;;
1091 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1092 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1093 x_libraries=$ac_optarg ;;
1095 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1096 Try \`$0 --help' for more information"
1099 *=*)
1100 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1101 # Reject names that are not valid shell variable names.
1102 case $ac_envvar in #(
1103 '' | [0-9]* | *[!_$as_cr_alnum]* )
1104 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1105 esac
1106 eval $ac_envvar=\$ac_optarg
1107 export $ac_envvar ;;
1110 # FIXME: should be removed in autoconf 3.0.
1111 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1112 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1113 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1114 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1117 esac
1118 done
1120 if test -n "$ac_prev"; then
1121 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1122 as_fn_error $? "missing argument to $ac_option"
1125 if test -n "$ac_unrecognized_opts"; then
1126 case $enable_option_checking in
1127 no) ;;
1128 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1129 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1130 esac
1133 # Check all directory arguments for consistency.
1134 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1135 datadir sysconfdir sharedstatedir localstatedir includedir \
1136 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1137 libdir localedir mandir
1139 eval ac_val=\$$ac_var
1140 # Remove trailing slashes.
1141 case $ac_val in
1142 */ )
1143 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1144 eval $ac_var=\$ac_val;;
1145 esac
1146 # Be sure to have absolute directory names.
1147 case $ac_val in
1148 [\\/$]* | ?:[\\/]* ) continue;;
1149 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1150 esac
1151 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1152 done
1154 # There might be people who depend on the old broken behavior: `$host'
1155 # used to hold the argument of --host etc.
1156 # FIXME: To remove some day.
1157 build=$build_alias
1158 host=$host_alias
1159 target=$target_alias
1161 # FIXME: To remove some day.
1162 if test "x$host_alias" != x; then
1163 if test "x$build_alias" = x; then
1164 cross_compiling=maybe
1165 elif test "x$build_alias" != "x$host_alias"; then
1166 cross_compiling=yes
1170 ac_tool_prefix=
1171 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1173 test "$silent" = yes && exec 6>/dev/null
1176 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1177 ac_ls_di=`ls -di .` &&
1178 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1179 as_fn_error $? "working directory cannot be determined"
1180 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1181 as_fn_error $? "pwd does not report name of working directory"
1184 # Find the source files, if location was not specified.
1185 if test -z "$srcdir"; then
1186 ac_srcdir_defaulted=yes
1187 # Try the directory containing this script, then the parent directory.
1188 ac_confdir=`$as_dirname -- "$as_myself" ||
1189 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1190 X"$as_myself" : 'X\(//\)[^/]' \| \
1191 X"$as_myself" : 'X\(//\)$' \| \
1192 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1193 $as_echo X"$as_myself" |
1194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1195 s//\1/
1198 /^X\(\/\/\)[^/].*/{
1199 s//\1/
1202 /^X\(\/\/\)$/{
1203 s//\1/
1206 /^X\(\/\).*/{
1207 s//\1/
1210 s/.*/./; q'`
1211 srcdir=$ac_confdir
1212 if test ! -r "$srcdir/$ac_unique_file"; then
1213 srcdir=..
1215 else
1216 ac_srcdir_defaulted=no
1218 if test ! -r "$srcdir/$ac_unique_file"; then
1219 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1220 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1222 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1223 ac_abs_confdir=`(
1224 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1225 pwd)`
1226 # When building in place, set srcdir=.
1227 if test "$ac_abs_confdir" = "$ac_pwd"; then
1228 srcdir=.
1230 # Remove unnecessary trailing slashes from srcdir.
1231 # Double slashes in file names in object file debugging info
1232 # mess up M-x gdb in Emacs.
1233 case $srcdir in
1234 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1235 esac
1236 for ac_var in $ac_precious_vars; do
1237 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1238 eval ac_env_${ac_var}_value=\$${ac_var}
1239 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1240 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1241 done
1244 # Report the --help message.
1246 if test "$ac_init_help" = "long"; then
1247 # Omit some internal or obsolete options to make the list less imposing.
1248 # This message is too long to be a string in the A/UX 3.1 sh.
1249 cat <<_ACEOF
1250 \`configure' configures mbuffer 20150412 to adapt to many kinds of systems.
1252 Usage: $0 [OPTION]... [VAR=VALUE]...
1254 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1255 VAR=VALUE. See below for descriptions of some of the useful variables.
1257 Defaults for the options are specified in brackets.
1259 Configuration:
1260 -h, --help display this help and exit
1261 --help=short display options specific to this package
1262 --help=recursive display the short help of all the included packages
1263 -V, --version display version information and exit
1264 -q, --quiet, --silent do not print \`checking ...' messages
1265 --cache-file=FILE cache test results in FILE [disabled]
1266 -C, --config-cache alias for \`--cache-file=config.cache'
1267 -n, --no-create do not create output files
1268 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1270 Installation directories:
1271 --prefix=PREFIX install architecture-independent files in PREFIX
1272 [$ac_default_prefix]
1273 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1274 [PREFIX]
1276 By default, \`make install' will install all the files in
1277 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1278 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1279 for instance \`--prefix=\$HOME'.
1281 For better control, use the options below.
1283 Fine tuning of the installation directories:
1284 --bindir=DIR user executables [EPREFIX/bin]
1285 --sbindir=DIR system admin executables [EPREFIX/sbin]
1286 --libexecdir=DIR program executables [EPREFIX/libexec]
1287 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1288 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1289 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1290 --libdir=DIR object code libraries [EPREFIX/lib]
1291 --includedir=DIR C header files [PREFIX/include]
1292 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1293 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1294 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1295 --infodir=DIR info documentation [DATAROOTDIR/info]
1296 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1297 --mandir=DIR man documentation [DATAROOTDIR/man]
1298 --docdir=DIR documentation root [DATAROOTDIR/doc/mbuffer]
1299 --htmldir=DIR html documentation [DOCDIR]
1300 --dvidir=DIR dvi documentation [DOCDIR]
1301 --pdfdir=DIR pdf documentation [DOCDIR]
1302 --psdir=DIR ps documentation [DOCDIR]
1303 _ACEOF
1305 cat <<\_ACEOF
1307 System types:
1308 --build=BUILD configure for building on BUILD [guessed]
1309 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1310 --target=TARGET configure for building compilers for TARGET [HOST]
1311 _ACEOF
1314 if test -n "$ac_init_help"; then
1315 case $ac_init_help in
1316 short | recursive ) echo "Configuration of mbuffer 20150412:";;
1317 esac
1318 cat <<\_ACEOF
1320 Optional Features:
1321 --disable-option-checking ignore unrecognized --enable/--with options
1322 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1323 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1324 --disable-largefile omit support for large files
1325 --disable-assert turn off assertions
1326 --disable-debug disable verbose logging to console for debugging purpose
1327 --disable-md5 disable md5 hash generation
1329 Some influential environment variables:
1330 CC C compiler command
1331 CFLAGS C compiler flags
1332 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1333 nonstandard directory <lib dir>
1334 LIBS libraries to pass to the linker, e.g. -l<library>
1335 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1336 you have headers in a nonstandard directory <include dir>
1337 CPP C preprocessor
1339 Use these variables to override the choices made by `configure' or to help
1340 it to find libraries and programs with nonstandard names/locations.
1342 Report bugs to the package provider.
1343 _ACEOF
1344 ac_status=$?
1347 if test "$ac_init_help" = "recursive"; then
1348 # If there are subdirs, report their specific --help.
1349 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1350 test -d "$ac_dir" ||
1351 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1352 continue
1353 ac_builddir=.
1355 case "$ac_dir" in
1356 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1358 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1359 # A ".." for each directory in $ac_dir_suffix.
1360 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1361 case $ac_top_builddir_sub in
1362 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1363 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1364 esac ;;
1365 esac
1366 ac_abs_top_builddir=$ac_pwd
1367 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1368 # for backward compatibility:
1369 ac_top_builddir=$ac_top_build_prefix
1371 case $srcdir in
1372 .) # We are building in place.
1373 ac_srcdir=.
1374 ac_top_srcdir=$ac_top_builddir_sub
1375 ac_abs_top_srcdir=$ac_pwd ;;
1376 [\\/]* | ?:[\\/]* ) # Absolute name.
1377 ac_srcdir=$srcdir$ac_dir_suffix;
1378 ac_top_srcdir=$srcdir
1379 ac_abs_top_srcdir=$srcdir ;;
1380 *) # Relative name.
1381 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1382 ac_top_srcdir=$ac_top_build_prefix$srcdir
1383 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1384 esac
1385 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1387 cd "$ac_dir" || { ac_status=$?; continue; }
1388 # Check for guested configure.
1389 if test -f "$ac_srcdir/configure.gnu"; then
1390 echo &&
1391 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1392 elif test -f "$ac_srcdir/configure"; then
1393 echo &&
1394 $SHELL "$ac_srcdir/configure" --help=recursive
1395 else
1396 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1397 fi || ac_status=$?
1398 cd "$ac_pwd" || { ac_status=$?; break; }
1399 done
1402 test -n "$ac_init_help" && exit $ac_status
1403 if $ac_init_version; then
1404 cat <<\_ACEOF
1405 mbuffer configure 20150412
1406 generated by GNU Autoconf 2.69
1408 Copyright (C) 2012 Free Software Foundation, Inc.
1409 This configure script is free software; the Free Software Foundation
1410 gives unlimited permission to copy, distribute and modify it.
1411 _ACEOF
1412 exit
1415 ## ------------------------ ##
1416 ## Autoconf initialization. ##
1417 ## ------------------------ ##
1419 # ac_fn_c_try_compile LINENO
1420 # --------------------------
1421 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1422 ac_fn_c_try_compile ()
1424 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1425 rm -f conftest.$ac_objext
1426 if { { ac_try="$ac_compile"
1427 case "(($ac_try" in
1428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1429 *) ac_try_echo=$ac_try;;
1430 esac
1431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1432 $as_echo "$ac_try_echo"; } >&5
1433 (eval "$ac_compile") 2>conftest.err
1434 ac_status=$?
1435 if test -s conftest.err; then
1436 grep -v '^ *+' conftest.err >conftest.er1
1437 cat conftest.er1 >&5
1438 mv -f conftest.er1 conftest.err
1440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1441 test $ac_status = 0; } && {
1442 test -z "$ac_c_werror_flag" ||
1443 test ! -s conftest.err
1444 } && test -s conftest.$ac_objext; then :
1445 ac_retval=0
1446 else
1447 $as_echo "$as_me: failed program was:" >&5
1448 sed 's/^/| /' conftest.$ac_ext >&5
1450 ac_retval=1
1452 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1453 as_fn_set_status $ac_retval
1455 } # ac_fn_c_try_compile
1457 # ac_fn_c_try_run LINENO
1458 # ----------------------
1459 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1460 # that executables *can* be run.
1461 ac_fn_c_try_run ()
1463 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1464 if { { ac_try="$ac_link"
1465 case "(($ac_try" in
1466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1467 *) ac_try_echo=$ac_try;;
1468 esac
1469 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1470 $as_echo "$ac_try_echo"; } >&5
1471 (eval "$ac_link") 2>&5
1472 ac_status=$?
1473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1474 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1475 { { case "(($ac_try" in
1476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1477 *) ac_try_echo=$ac_try;;
1478 esac
1479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1480 $as_echo "$ac_try_echo"; } >&5
1481 (eval "$ac_try") 2>&5
1482 ac_status=$?
1483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1484 test $ac_status = 0; }; }; then :
1485 ac_retval=0
1486 else
1487 $as_echo "$as_me: program exited with status $ac_status" >&5
1488 $as_echo "$as_me: failed program was:" >&5
1489 sed 's/^/| /' conftest.$ac_ext >&5
1491 ac_retval=$ac_status
1493 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1494 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1495 as_fn_set_status $ac_retval
1497 } # ac_fn_c_try_run
1499 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1500 # ----------------------------------------------------
1501 # Tries to find if the field MEMBER exists in type AGGR, after including
1502 # INCLUDES, setting cache variable VAR accordingly.
1503 ac_fn_c_check_member ()
1505 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1507 $as_echo_n "checking for $2.$3... " >&6; }
1508 if eval \${$4+:} false; then :
1509 $as_echo_n "(cached) " >&6
1510 else
1511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1512 /* end confdefs.h. */
1515 main ()
1517 static $2 ac_aggr;
1518 if (ac_aggr.$3)
1519 return 0;
1521 return 0;
1523 _ACEOF
1524 if ac_fn_c_try_compile "$LINENO"; then :
1525 eval "$4=yes"
1526 else
1527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1528 /* end confdefs.h. */
1531 main ()
1533 static $2 ac_aggr;
1534 if (sizeof ac_aggr.$3)
1535 return 0;
1537 return 0;
1539 _ACEOF
1540 if ac_fn_c_try_compile "$LINENO"; then :
1541 eval "$4=yes"
1542 else
1543 eval "$4=no"
1545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1549 eval ac_res=\$$4
1550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1551 $as_echo "$ac_res" >&6; }
1552 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1554 } # ac_fn_c_check_member
1556 # ac_fn_c_try_cpp LINENO
1557 # ----------------------
1558 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1559 ac_fn_c_try_cpp ()
1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562 if { { ac_try="$ac_cpp conftest.$ac_ext"
1563 case "(($ac_try" in
1564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1565 *) ac_try_echo=$ac_try;;
1566 esac
1567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1568 $as_echo "$ac_try_echo"; } >&5
1569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1570 ac_status=$?
1571 if test -s conftest.err; then
1572 grep -v '^ *+' conftest.err >conftest.er1
1573 cat conftest.er1 >&5
1574 mv -f conftest.er1 conftest.err
1576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577 test $ac_status = 0; } > conftest.i && {
1578 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1579 test ! -s conftest.err
1580 }; then :
1581 ac_retval=0
1582 else
1583 $as_echo "$as_me: failed program was:" >&5
1584 sed 's/^/| /' conftest.$ac_ext >&5
1586 ac_retval=1
1588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1589 as_fn_set_status $ac_retval
1591 } # ac_fn_c_try_cpp
1593 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1594 # -------------------------------------------------------
1595 # Tests whether HEADER exists and can be compiled using the include files in
1596 # INCLUDES, setting the cache variable VAR accordingly.
1597 ac_fn_c_check_header_compile ()
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1601 $as_echo_n "checking for $2... " >&6; }
1602 if eval \${$3+:} false; then :
1603 $as_echo_n "(cached) " >&6
1604 else
1605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1606 /* end confdefs.h. */
1608 #include <$2>
1609 _ACEOF
1610 if ac_fn_c_try_compile "$LINENO"; then :
1611 eval "$3=yes"
1612 else
1613 eval "$3=no"
1615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1617 eval ac_res=\$$3
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1619 $as_echo "$ac_res" >&6; }
1620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622 } # ac_fn_c_check_header_compile
1624 # ac_fn_c_try_link LINENO
1625 # -----------------------
1626 # Try to link conftest.$ac_ext, and return whether this succeeded.
1627 ac_fn_c_try_link ()
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 rm -f conftest.$ac_objext conftest$ac_exeext
1631 if { { ac_try="$ac_link"
1632 case "(($ac_try" in
1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634 *) ac_try_echo=$ac_try;;
1635 esac
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 $as_echo "$ac_try_echo"; } >&5
1638 (eval "$ac_link") 2>conftest.err
1639 ac_status=$?
1640 if test -s conftest.err; then
1641 grep -v '^ *+' conftest.err >conftest.er1
1642 cat conftest.er1 >&5
1643 mv -f conftest.er1 conftest.err
1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; } && {
1647 test -z "$ac_c_werror_flag" ||
1648 test ! -s conftest.err
1649 } && test -s conftest$ac_exeext && {
1650 test "$cross_compiling" = yes ||
1651 test -x conftest$ac_exeext
1652 }; then :
1653 ac_retval=0
1654 else
1655 $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1658 ac_retval=1
1660 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1661 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1662 # interfere with the next link command; also delete a directory that is
1663 # left behind by Apple's compiler. We do this before executing the actions.
1664 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666 as_fn_set_status $ac_retval
1668 } # ac_fn_c_try_link
1670 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1671 # -------------------------------------------------------
1672 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1673 # the include files in INCLUDES and setting the cache variable VAR
1674 # accordingly.
1675 ac_fn_c_check_header_mongrel ()
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 if eval \${$3+:} false; then :
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1680 $as_echo_n "checking for $2... " >&6; }
1681 if eval \${$3+:} false; then :
1682 $as_echo_n "(cached) " >&6
1684 eval ac_res=\$$3
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1686 $as_echo "$ac_res" >&6; }
1687 else
1688 # Is the header compilable?
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1690 $as_echo_n "checking $2 usability... " >&6; }
1691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1692 /* end confdefs.h. */
1694 #include <$2>
1695 _ACEOF
1696 if ac_fn_c_try_compile "$LINENO"; then :
1697 ac_header_compiler=yes
1698 else
1699 ac_header_compiler=no
1701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1703 $as_echo "$ac_header_compiler" >&6; }
1705 # Is the header present?
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1707 $as_echo_n "checking $2 presence... " >&6; }
1708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1709 /* end confdefs.h. */
1710 #include <$2>
1711 _ACEOF
1712 if ac_fn_c_try_cpp "$LINENO"; then :
1713 ac_header_preproc=yes
1714 else
1715 ac_header_preproc=no
1717 rm -f conftest.err conftest.i conftest.$ac_ext
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1719 $as_echo "$ac_header_preproc" >&6; }
1721 # So? What about this header?
1722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1723 yes:no: )
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1725 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1727 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1729 no:yes:* )
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1731 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1733 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1735 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1737 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1739 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1741 esac
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743 $as_echo_n "checking for $2... " >&6; }
1744 if eval \${$3+:} false; then :
1745 $as_echo_n "(cached) " >&6
1746 else
1747 eval "$3=\$ac_header_compiler"
1749 eval ac_res=\$$3
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1751 $as_echo "$ac_res" >&6; }
1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755 } # ac_fn_c_check_header_mongrel
1757 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1758 # -------------------------------------------
1759 # Tests whether TYPE exists after having included INCLUDES, setting cache
1760 # variable VAR accordingly.
1761 ac_fn_c_check_type ()
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1765 $as_echo_n "checking for $2... " >&6; }
1766 if eval \${$3+:} false; then :
1767 $as_echo_n "(cached) " >&6
1768 else
1769 eval "$3=no"
1770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1771 /* end confdefs.h. */
1774 main ()
1776 if (sizeof ($2))
1777 return 0;
1779 return 0;
1781 _ACEOF
1782 if ac_fn_c_try_compile "$LINENO"; then :
1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784 /* end confdefs.h. */
1787 main ()
1789 if (sizeof (($2)))
1790 return 0;
1792 return 0;
1794 _ACEOF
1795 if ac_fn_c_try_compile "$LINENO"; then :
1797 else
1798 eval "$3=yes"
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=\$$3
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_type
1811 # ac_fn_c_check_func LINENO FUNC VAR
1812 # ----------------------------------
1813 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1814 ac_fn_c_check_func ()
1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1818 $as_echo_n "checking for $2... " >&6; }
1819 if eval \${$3+:} false; then :
1820 $as_echo_n "(cached) " >&6
1821 else
1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823 /* end confdefs.h. */
1824 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1826 #define $2 innocuous_$2
1828 /* System header to define __stub macros and hopefully few prototypes,
1829 which can conflict with char $2 (); below.
1830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1831 <limits.h> exists even on freestanding compilers. */
1833 #ifdef __STDC__
1834 # include <limits.h>
1835 #else
1836 # include <assert.h>
1837 #endif
1839 #undef $2
1841 /* Override any GCC internal prototype to avoid an error.
1842 Use char because int might match the return type of a GCC
1843 builtin and then its argument prototype would still apply. */
1844 #ifdef __cplusplus
1845 extern "C"
1846 #endif
1847 char $2 ();
1848 /* The GNU C library defines this for functions which it implements
1849 to always fail with ENOSYS. Some functions are actually named
1850 something starting with __ and the normal name is an alias. */
1851 #if defined __stub_$2 || defined __stub___$2
1852 choke me
1853 #endif
1856 main ()
1858 return $2 ();
1860 return 0;
1862 _ACEOF
1863 if ac_fn_c_try_link "$LINENO"; then :
1864 eval "$3=yes"
1865 else
1866 eval "$3=no"
1868 rm -f core conftest.err conftest.$ac_objext \
1869 conftest$ac_exeext conftest.$ac_ext
1871 eval ac_res=\$$3
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873 $as_echo "$ac_res" >&6; }
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876 } # ac_fn_c_check_func
1877 cat >config.log <<_ACEOF
1878 This file contains any messages produced by compilers while
1879 running configure, to aid debugging if configure makes a mistake.
1881 It was created by mbuffer $as_me 20150412, which was
1882 generated by GNU Autoconf 2.69. Invocation command line was
1884 $ $0 $@
1886 _ACEOF
1887 exec 5>>config.log
1889 cat <<_ASUNAME
1890 ## --------- ##
1891 ## Platform. ##
1892 ## --------- ##
1894 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1895 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1896 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1897 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1898 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1900 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1901 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1903 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1904 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1905 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1906 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1907 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1908 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1909 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1911 _ASUNAME
1913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1914 for as_dir in $PATH
1916 IFS=$as_save_IFS
1917 test -z "$as_dir" && as_dir=.
1918 $as_echo "PATH: $as_dir"
1919 done
1920 IFS=$as_save_IFS
1922 } >&5
1924 cat >&5 <<_ACEOF
1927 ## ----------- ##
1928 ## Core tests. ##
1929 ## ----------- ##
1931 _ACEOF
1934 # Keep a trace of the command line.
1935 # Strip out --no-create and --no-recursion so they do not pile up.
1936 # Strip out --silent because we don't want to record it for future runs.
1937 # Also quote any args containing shell meta-characters.
1938 # Make two passes to allow for proper duplicate-argument suppression.
1939 ac_configure_args=
1940 ac_configure_args0=
1941 ac_configure_args1=
1942 ac_must_keep_next=false
1943 for ac_pass in 1 2
1945 for ac_arg
1947 case $ac_arg in
1948 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1949 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1950 | -silent | --silent | --silen | --sile | --sil)
1951 continue ;;
1952 *\'*)
1953 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1954 esac
1955 case $ac_pass in
1956 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1958 as_fn_append ac_configure_args1 " '$ac_arg'"
1959 if test $ac_must_keep_next = true; then
1960 ac_must_keep_next=false # Got value, back to normal.
1961 else
1962 case $ac_arg in
1963 *=* | --config-cache | -C | -disable-* | --disable-* \
1964 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1965 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1966 | -with-* | --with-* | -without-* | --without-* | --x)
1967 case "$ac_configure_args0 " in
1968 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1969 esac
1971 -* ) ac_must_keep_next=true ;;
1972 esac
1974 as_fn_append ac_configure_args " '$ac_arg'"
1976 esac
1977 done
1978 done
1979 { ac_configure_args0=; unset ac_configure_args0;}
1980 { ac_configure_args1=; unset ac_configure_args1;}
1982 # When interrupted or exit'd, cleanup temporary files, and complete
1983 # config.log. We remove comments because anyway the quotes in there
1984 # would cause problems or look ugly.
1985 # WARNING: Use '\'' to represent an apostrophe within the trap.
1986 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1987 trap 'exit_status=$?
1988 # Save into config.log some information that might help in debugging.
1990 echo
1992 $as_echo "## ---------------- ##
1993 ## Cache variables. ##
1994 ## ---------------- ##"
1995 echo
1996 # The following way of writing the cache mishandles newlines in values,
1998 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1999 eval ac_val=\$$ac_var
2000 case $ac_val in #(
2001 *${as_nl}*)
2002 case $ac_var in #(
2003 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2004 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2005 esac
2006 case $ac_var in #(
2007 _ | IFS | as_nl) ;; #(
2008 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2009 *) { eval $ac_var=; unset $ac_var;} ;;
2010 esac ;;
2011 esac
2012 done
2013 (set) 2>&1 |
2014 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2015 *${as_nl}ac_space=\ *)
2016 sed -n \
2017 "s/'\''/'\''\\\\'\'''\''/g;
2018 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2019 ;; #(
2021 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2023 esac |
2024 sort
2026 echo
2028 $as_echo "## ----------------- ##
2029 ## Output variables. ##
2030 ## ----------------- ##"
2031 echo
2032 for ac_var in $ac_subst_vars
2034 eval ac_val=\$$ac_var
2035 case $ac_val in
2036 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2037 esac
2038 $as_echo "$ac_var='\''$ac_val'\''"
2039 done | sort
2040 echo
2042 if test -n "$ac_subst_files"; then
2043 $as_echo "## ------------------- ##
2044 ## File substitutions. ##
2045 ## ------------------- ##"
2046 echo
2047 for ac_var in $ac_subst_files
2049 eval ac_val=\$$ac_var
2050 case $ac_val in
2051 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2052 esac
2053 $as_echo "$ac_var='\''$ac_val'\''"
2054 done | sort
2055 echo
2058 if test -s confdefs.h; then
2059 $as_echo "## ----------- ##
2060 ## confdefs.h. ##
2061 ## ----------- ##"
2062 echo
2063 cat confdefs.h
2064 echo
2066 test "$ac_signal" != 0 &&
2067 $as_echo "$as_me: caught signal $ac_signal"
2068 $as_echo "$as_me: exit $exit_status"
2069 } >&5
2070 rm -f core *.core core.conftest.* &&
2071 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2072 exit $exit_status
2074 for ac_signal in 1 2 13 15; do
2075 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2076 done
2077 ac_signal=0
2079 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2080 rm -f -r conftest* confdefs.h
2082 $as_echo "/* confdefs.h */" > confdefs.h
2084 # Predefined preprocessor variables.
2086 cat >>confdefs.h <<_ACEOF
2087 #define PACKAGE_NAME "$PACKAGE_NAME"
2088 _ACEOF
2090 cat >>confdefs.h <<_ACEOF
2091 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2092 _ACEOF
2094 cat >>confdefs.h <<_ACEOF
2095 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2096 _ACEOF
2098 cat >>confdefs.h <<_ACEOF
2099 #define PACKAGE_STRING "$PACKAGE_STRING"
2100 _ACEOF
2102 cat >>confdefs.h <<_ACEOF
2103 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2104 _ACEOF
2106 cat >>confdefs.h <<_ACEOF
2107 #define PACKAGE_URL "$PACKAGE_URL"
2108 _ACEOF
2111 # Let the site file select an alternate cache file if it wants to.
2112 # Prefer an explicitly selected file to automatically selected ones.
2113 ac_site_file1=NONE
2114 ac_site_file2=NONE
2115 if test -n "$CONFIG_SITE"; then
2116 # We do not want a PATH search for config.site.
2117 case $CONFIG_SITE in #((
2118 -*) ac_site_file1=./$CONFIG_SITE;;
2119 */*) ac_site_file1=$CONFIG_SITE;;
2120 *) ac_site_file1=./$CONFIG_SITE;;
2121 esac
2122 elif test "x$prefix" != xNONE; then
2123 ac_site_file1=$prefix/share/config.site
2124 ac_site_file2=$prefix/etc/config.site
2125 else
2126 ac_site_file1=$ac_default_prefix/share/config.site
2127 ac_site_file2=$ac_default_prefix/etc/config.site
2129 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2131 test "x$ac_site_file" = xNONE && continue
2132 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2134 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2135 sed 's/^/| /' "$ac_site_file" >&5
2136 . "$ac_site_file" \
2137 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2139 as_fn_error $? "failed to load site script $ac_site_file
2140 See \`config.log' for more details" "$LINENO" 5; }
2142 done
2144 if test -r "$cache_file"; then
2145 # Some versions of bash will fail to source /dev/null (special files
2146 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2147 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2149 $as_echo "$as_me: loading cache $cache_file" >&6;}
2150 case $cache_file in
2151 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2152 *) . "./$cache_file";;
2153 esac
2155 else
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2157 $as_echo "$as_me: creating cache $cache_file" >&6;}
2158 >$cache_file
2161 # Check that the precious variables saved in the cache have kept the same
2162 # value.
2163 ac_cache_corrupted=false
2164 for ac_var in $ac_precious_vars; do
2165 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2166 eval ac_new_set=\$ac_env_${ac_var}_set
2167 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2168 eval ac_new_val=\$ac_env_${ac_var}_value
2169 case $ac_old_set,$ac_new_set in
2170 set,)
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2172 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2173 ac_cache_corrupted=: ;;
2174 ,set)
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2176 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2177 ac_cache_corrupted=: ;;
2178 ,);;
2180 if test "x$ac_old_val" != "x$ac_new_val"; then
2181 # differences in whitespace do not lead to failure.
2182 ac_old_val_w=`echo x $ac_old_val`
2183 ac_new_val_w=`echo x $ac_new_val`
2184 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2186 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2187 ac_cache_corrupted=:
2188 else
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2190 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2191 eval $ac_var=\$ac_old_val
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2194 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2196 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2197 fi;;
2198 esac
2199 # Pass precious variables to config.status.
2200 if test "$ac_new_set" = set; then
2201 case $ac_new_val in
2202 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2203 *) ac_arg=$ac_var=$ac_new_val ;;
2204 esac
2205 case " $ac_configure_args " in
2206 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2207 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2208 esac
2210 done
2211 if $ac_cache_corrupted; then
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2215 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2216 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2218 ## -------------------- ##
2219 ## Main body of script. ##
2220 ## -------------------- ##
2222 ac_ext=c
2223 ac_cpp='$CPP $CPPFLAGS'
2224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2229 ac_config_headers="$ac_config_headers config.h"
2233 ac_aux_dir=
2234 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2235 if test -f "$ac_dir/install-sh"; then
2236 ac_aux_dir=$ac_dir
2237 ac_install_sh="$ac_aux_dir/install-sh -c"
2238 break
2239 elif test -f "$ac_dir/install.sh"; then
2240 ac_aux_dir=$ac_dir
2241 ac_install_sh="$ac_aux_dir/install.sh -c"
2242 break
2243 elif test -f "$ac_dir/shtool"; then
2244 ac_aux_dir=$ac_dir
2245 ac_install_sh="$ac_aux_dir/shtool install -c"
2246 break
2248 done
2249 if test -z "$ac_aux_dir"; then
2250 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2253 # These three variables are undocumented and unsupported,
2254 # and are intended to be withdrawn in a future Autoconf release.
2255 # They can cause serious problems if a builder's source tree is in a directory
2256 # whose full name contains unusual characters.
2257 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2258 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2259 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2262 # Make sure we can run config.sub.
2263 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2264 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2267 $as_echo_n "checking build system type... " >&6; }
2268 if ${ac_cv_build+:} false; then :
2269 $as_echo_n "(cached) " >&6
2270 else
2271 ac_build_alias=$build_alias
2272 test "x$ac_build_alias" = x &&
2273 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2274 test "x$ac_build_alias" = x &&
2275 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2276 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2277 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2281 $as_echo "$ac_cv_build" >&6; }
2282 case $ac_cv_build in
2283 *-*-*) ;;
2284 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2285 esac
2286 build=$ac_cv_build
2287 ac_save_IFS=$IFS; IFS='-'
2288 set x $ac_cv_build
2289 shift
2290 build_cpu=$1
2291 build_vendor=$2
2292 shift; shift
2293 # Remember, the first character of IFS is used to create $*,
2294 # except with old shells:
2295 build_os=$*
2296 IFS=$ac_save_IFS
2297 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2301 $as_echo_n "checking host system type... " >&6; }
2302 if ${ac_cv_host+:} false; then :
2303 $as_echo_n "(cached) " >&6
2304 else
2305 if test "x$host_alias" = x; then
2306 ac_cv_host=$ac_cv_build
2307 else
2308 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2309 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2314 $as_echo "$ac_cv_host" >&6; }
2315 case $ac_cv_host in
2316 *-*-*) ;;
2317 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2318 esac
2319 host=$ac_cv_host
2320 ac_save_IFS=$IFS; IFS='-'
2321 set x $ac_cv_host
2322 shift
2323 host_cpu=$1
2324 host_vendor=$2
2325 shift; shift
2326 # Remember, the first character of IFS is used to create $*,
2327 # except with old shells:
2328 host_os=$*
2329 IFS=$ac_save_IFS
2330 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2334 $as_echo_n "checking target system type... " >&6; }
2335 if ${ac_cv_target+:} false; then :
2336 $as_echo_n "(cached) " >&6
2337 else
2338 if test "x$target_alias" = x; then
2339 ac_cv_target=$ac_cv_host
2340 else
2341 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2342 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2347 $as_echo "$ac_cv_target" >&6; }
2348 case $ac_cv_target in
2349 *-*-*) ;;
2350 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2351 esac
2352 target=$ac_cv_target
2353 ac_save_IFS=$IFS; IFS='-'
2354 set x $ac_cv_target
2355 shift
2356 target_cpu=$1
2357 target_vendor=$2
2358 shift; shift
2359 # Remember, the first character of IFS is used to create $*,
2360 # except with old shells:
2361 target_os=$*
2362 IFS=$ac_save_IFS
2363 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2366 # The aliases save the names the user supplied, while $host etc.
2367 # will get canonicalized.
2368 test -n "$target_alias" &&
2369 test "$program_prefix$program_suffix$program_transform_name" = \
2370 NONENONEs,x,x, &&
2371 program_prefix=${target_alias}-
2375 if test "${LD_LIBRARY_PATH}" != "" ; then
2376 echo ""
2377 echo " WARNING: LD_LIBRARY_PATH is set. This can cause severe problems!!!"
2378 echo " Please learn about using RUNPATH instead of LD_LIBRARY_PATH - e.g. here:"
2379 echo " - http://prefetch.net/articles/linkers.badldlibrary.html"
2380 echo " - http://blogs.sun.com/ali/entry/avoiding_ld_library_path_the"
2381 echo " For gcc, you can pass LDFLAGS=\"-R/usr/local/lib\" to configure,"
2382 echo " instead of setting LD_LIBRARY_PATH."
2383 echo ""
2384 sleep 5
2388 test "$prefix" = NONE && prefix=/usr/local
2389 test "$exec_prefix" = NONE && exec_prefix=$prefix
2391 USRCFLAGS=${CFLAGS}
2393 ac_ext=c
2394 ac_cpp='$CPP $CPPFLAGS'
2395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2399 ac_ext=c
2400 ac_cpp='$CPP $CPPFLAGS'
2401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2404 if test -n "$ac_tool_prefix"; then
2405 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2406 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2408 $as_echo_n "checking for $ac_word... " >&6; }
2409 if ${ac_cv_prog_CC+:} false; then :
2410 $as_echo_n "(cached) " >&6
2411 else
2412 if test -n "$CC"; then
2413 ac_cv_prog_CC="$CC" # Let the user override the test.
2414 else
2415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416 for as_dir in $PATH
2418 IFS=$as_save_IFS
2419 test -z "$as_dir" && as_dir=.
2420 for ac_exec_ext in '' $ac_executable_extensions; do
2421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2422 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2424 break 2
2426 done
2427 done
2428 IFS=$as_save_IFS
2432 CC=$ac_cv_prog_CC
2433 if test -n "$CC"; then
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2435 $as_echo "$CC" >&6; }
2436 else
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2438 $as_echo "no" >&6; }
2443 if test -z "$ac_cv_prog_CC"; then
2444 ac_ct_CC=$CC
2445 # Extract the first word of "gcc", so it can be a program name with args.
2446 set dummy gcc; ac_word=$2
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2448 $as_echo_n "checking for $ac_word... " >&6; }
2449 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2450 $as_echo_n "(cached) " >&6
2451 else
2452 if test -n "$ac_ct_CC"; then
2453 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2454 else
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 for as_dir in $PATH
2458 IFS=$as_save_IFS
2459 test -z "$as_dir" && as_dir=.
2460 for ac_exec_ext in '' $ac_executable_extensions; do
2461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2462 ac_cv_prog_ac_ct_CC="gcc"
2463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2464 break 2
2466 done
2467 done
2468 IFS=$as_save_IFS
2472 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2473 if test -n "$ac_ct_CC"; then
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2475 $as_echo "$ac_ct_CC" >&6; }
2476 else
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2478 $as_echo "no" >&6; }
2481 if test "x$ac_ct_CC" = x; then
2482 CC=""
2483 else
2484 case $cross_compiling:$ac_tool_warned in
2485 yes:)
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2488 ac_tool_warned=yes ;;
2489 esac
2490 CC=$ac_ct_CC
2492 else
2493 CC="$ac_cv_prog_CC"
2496 if test -z "$CC"; then
2497 if test -n "$ac_tool_prefix"; then
2498 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2499 set dummy ${ac_tool_prefix}cc; ac_word=$2
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2501 $as_echo_n "checking for $ac_word... " >&6; }
2502 if ${ac_cv_prog_CC+:} false; then :
2503 $as_echo_n "(cached) " >&6
2504 else
2505 if test -n "$CC"; then
2506 ac_cv_prog_CC="$CC" # Let the user override the test.
2507 else
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 for as_dir in $PATH
2511 IFS=$as_save_IFS
2512 test -z "$as_dir" && as_dir=.
2513 for ac_exec_ext in '' $ac_executable_extensions; do
2514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2515 ac_cv_prog_CC="${ac_tool_prefix}cc"
2516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2517 break 2
2519 done
2520 done
2521 IFS=$as_save_IFS
2525 CC=$ac_cv_prog_CC
2526 if test -n "$CC"; then
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2528 $as_echo "$CC" >&6; }
2529 else
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2531 $as_echo "no" >&6; }
2537 if test -z "$CC"; then
2538 # Extract the first word of "cc", so it can be a program name with args.
2539 set dummy cc; ac_word=$2
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2541 $as_echo_n "checking for $ac_word... " >&6; }
2542 if ${ac_cv_prog_CC+:} false; then :
2543 $as_echo_n "(cached) " >&6
2544 else
2545 if test -n "$CC"; then
2546 ac_cv_prog_CC="$CC" # Let the user override the test.
2547 else
2548 ac_prog_rejected=no
2549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 for as_dir in $PATH
2552 IFS=$as_save_IFS
2553 test -z "$as_dir" && as_dir=.
2554 for ac_exec_ext in '' $ac_executable_extensions; do
2555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2556 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2557 ac_prog_rejected=yes
2558 continue
2560 ac_cv_prog_CC="cc"
2561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2562 break 2
2564 done
2565 done
2566 IFS=$as_save_IFS
2568 if test $ac_prog_rejected = yes; then
2569 # We found a bogon in the path, so make sure we never use it.
2570 set dummy $ac_cv_prog_CC
2571 shift
2572 if test $# != 0; then
2573 # We chose a different compiler from the bogus one.
2574 # However, it has the same basename, so the bogon will be chosen
2575 # first if we set CC to just the basename; use the full file name.
2576 shift
2577 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2582 CC=$ac_cv_prog_CC
2583 if test -n "$CC"; then
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2585 $as_echo "$CC" >&6; }
2586 else
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2588 $as_echo "no" >&6; }
2593 if test -z "$CC"; then
2594 if test -n "$ac_tool_prefix"; then
2595 for ac_prog in cl.exe
2597 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2598 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2600 $as_echo_n "checking for $ac_word... " >&6; }
2601 if ${ac_cv_prog_CC+:} false; then :
2602 $as_echo_n "(cached) " >&6
2603 else
2604 if test -n "$CC"; then
2605 ac_cv_prog_CC="$CC" # Let the user override the test.
2606 else
2607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608 for as_dir in $PATH
2610 IFS=$as_save_IFS
2611 test -z "$as_dir" && as_dir=.
2612 for ac_exec_ext in '' $ac_executable_extensions; do
2613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2614 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2616 break 2
2618 done
2619 done
2620 IFS=$as_save_IFS
2624 CC=$ac_cv_prog_CC
2625 if test -n "$CC"; then
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2627 $as_echo "$CC" >&6; }
2628 else
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2630 $as_echo "no" >&6; }
2634 test -n "$CC" && break
2635 done
2637 if test -z "$CC"; then
2638 ac_ct_CC=$CC
2639 for ac_prog in cl.exe
2641 # Extract the first word of "$ac_prog", so it can be a program name with args.
2642 set dummy $ac_prog; ac_word=$2
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2644 $as_echo_n "checking for $ac_word... " >&6; }
2645 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2646 $as_echo_n "(cached) " >&6
2647 else
2648 if test -n "$ac_ct_CC"; then
2649 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2650 else
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 for as_dir in $PATH
2654 IFS=$as_save_IFS
2655 test -z "$as_dir" && as_dir=.
2656 for ac_exec_ext in '' $ac_executable_extensions; do
2657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2658 ac_cv_prog_ac_ct_CC="$ac_prog"
2659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 break 2
2662 done
2663 done
2664 IFS=$as_save_IFS
2668 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2669 if test -n "$ac_ct_CC"; then
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2671 $as_echo "$ac_ct_CC" >&6; }
2672 else
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2674 $as_echo "no" >&6; }
2678 test -n "$ac_ct_CC" && break
2679 done
2681 if test "x$ac_ct_CC" = x; then
2682 CC=""
2683 else
2684 case $cross_compiling:$ac_tool_warned in
2685 yes:)
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2687 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2688 ac_tool_warned=yes ;;
2689 esac
2690 CC=$ac_ct_CC
2697 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2698 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2699 as_fn_error $? "no acceptable C compiler found in \$PATH
2700 See \`config.log' for more details" "$LINENO" 5; }
2702 # Provide some information about the compiler.
2703 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2704 set X $ac_compile
2705 ac_compiler=$2
2706 for ac_option in --version -v -V -qversion; do
2707 { { ac_try="$ac_compiler $ac_option >&5"
2708 case "(($ac_try" in
2709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710 *) ac_try_echo=$ac_try;;
2711 esac
2712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2713 $as_echo "$ac_try_echo"; } >&5
2714 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2715 ac_status=$?
2716 if test -s conftest.err; then
2717 sed '10a\
2718 ... rest of stderr output deleted ...
2719 10q' conftest.err >conftest.er1
2720 cat conftest.er1 >&5
2722 rm -f conftest.er1 conftest.err
2723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2724 test $ac_status = 0; }
2725 done
2727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2728 /* end confdefs.h. */
2731 main ()
2735 return 0;
2737 _ACEOF
2738 ac_clean_files_save=$ac_clean_files
2739 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2740 # Try to create an executable without -o first, disregard a.out.
2741 # It will help us diagnose broken compilers, and finding out an intuition
2742 # of exeext.
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2744 $as_echo_n "checking whether the C compiler works... " >&6; }
2745 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2747 # The possible output files:
2748 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2750 ac_rmfiles=
2751 for ac_file in $ac_files
2753 case $ac_file in
2754 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2755 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2756 esac
2757 done
2758 rm -f $ac_rmfiles
2760 if { { ac_try="$ac_link_default"
2761 case "(($ac_try" in
2762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2763 *) ac_try_echo=$ac_try;;
2764 esac
2765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2766 $as_echo "$ac_try_echo"; } >&5
2767 (eval "$ac_link_default") 2>&5
2768 ac_status=$?
2769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2770 test $ac_status = 0; }; then :
2771 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2772 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2773 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2774 # so that the user can short-circuit this test for compilers unknown to
2775 # Autoconf.
2776 for ac_file in $ac_files ''
2778 test -f "$ac_file" || continue
2779 case $ac_file in
2780 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2782 [ab].out )
2783 # We found the default executable, but exeext='' is most
2784 # certainly right.
2785 break;;
2786 *.* )
2787 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2788 then :; else
2789 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2791 # We set ac_cv_exeext here because the later test for it is not
2792 # safe: cross compilers may not add the suffix if given an `-o'
2793 # argument, so we may need to know it at that point already.
2794 # Even if this section looks crufty: it has the advantage of
2795 # actually working.
2796 break;;
2798 break;;
2799 esac
2800 done
2801 test "$ac_cv_exeext" = no && ac_cv_exeext=
2803 else
2804 ac_file=''
2806 if test -z "$ac_file"; then :
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2808 $as_echo "no" >&6; }
2809 $as_echo "$as_me: failed program was:" >&5
2810 sed 's/^/| /' conftest.$ac_ext >&5
2812 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2814 as_fn_error 77 "C compiler cannot create executables
2815 See \`config.log' for more details" "$LINENO" 5; }
2816 else
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2818 $as_echo "yes" >&6; }
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2821 $as_echo_n "checking for C compiler default output file name... " >&6; }
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2823 $as_echo "$ac_file" >&6; }
2824 ac_exeext=$ac_cv_exeext
2826 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2827 ac_clean_files=$ac_clean_files_save
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2829 $as_echo_n "checking for suffix of executables... " >&6; }
2830 if { { ac_try="$ac_link"
2831 case "(($ac_try" in
2832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2833 *) ac_try_echo=$ac_try;;
2834 esac
2835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2836 $as_echo "$ac_try_echo"; } >&5
2837 (eval "$ac_link") 2>&5
2838 ac_status=$?
2839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2840 test $ac_status = 0; }; then :
2841 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2842 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2843 # work properly (i.e., refer to `conftest.exe'), while it won't with
2844 # `rm'.
2845 for ac_file in conftest.exe conftest conftest.*; do
2846 test -f "$ac_file" || continue
2847 case $ac_file in
2848 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2849 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2850 break;;
2851 * ) break;;
2852 esac
2853 done
2854 else
2855 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2857 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2858 See \`config.log' for more details" "$LINENO" 5; }
2860 rm -f conftest conftest$ac_cv_exeext
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2862 $as_echo "$ac_cv_exeext" >&6; }
2864 rm -f conftest.$ac_ext
2865 EXEEXT=$ac_cv_exeext
2866 ac_exeext=$EXEEXT
2867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2868 /* end confdefs.h. */
2869 #include <stdio.h>
2871 main ()
2873 FILE *f = fopen ("conftest.out", "w");
2874 return ferror (f) || fclose (f) != 0;
2877 return 0;
2879 _ACEOF
2880 ac_clean_files="$ac_clean_files conftest.out"
2881 # Check that the compiler produces executables we can run. If not, either
2882 # the compiler is broken, or we cross compile.
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2884 $as_echo_n "checking whether we are cross compiling... " >&6; }
2885 if test "$cross_compiling" != yes; then
2886 { { ac_try="$ac_link"
2887 case "(($ac_try" in
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2890 esac
2891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2892 $as_echo "$ac_try_echo"; } >&5
2893 (eval "$ac_link") 2>&5
2894 ac_status=$?
2895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2896 test $ac_status = 0; }
2897 if { ac_try='./conftest$ac_cv_exeext'
2898 { { case "(($ac_try" in
2899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900 *) ac_try_echo=$ac_try;;
2901 esac
2902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2903 $as_echo "$ac_try_echo"; } >&5
2904 (eval "$ac_try") 2>&5
2905 ac_status=$?
2906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2907 test $ac_status = 0; }; }; then
2908 cross_compiling=no
2909 else
2910 if test "$cross_compiling" = maybe; then
2911 cross_compiling=yes
2912 else
2913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2915 as_fn_error $? "cannot run C compiled programs.
2916 If you meant to cross compile, use \`--host'.
2917 See \`config.log' for more details" "$LINENO" 5; }
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2922 $as_echo "$cross_compiling" >&6; }
2924 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2925 ac_clean_files=$ac_clean_files_save
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2927 $as_echo_n "checking for suffix of object files... " >&6; }
2928 if ${ac_cv_objext+:} false; then :
2929 $as_echo_n "(cached) " >&6
2930 else
2931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2932 /* end confdefs.h. */
2935 main ()
2939 return 0;
2941 _ACEOF
2942 rm -f conftest.o conftest.obj
2943 if { { ac_try="$ac_compile"
2944 case "(($ac_try" in
2945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946 *) ac_try_echo=$ac_try;;
2947 esac
2948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2949 $as_echo "$ac_try_echo"; } >&5
2950 (eval "$ac_compile") 2>&5
2951 ac_status=$?
2952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2953 test $ac_status = 0; }; then :
2954 for ac_file in conftest.o conftest.obj conftest.*; do
2955 test -f "$ac_file" || continue;
2956 case $ac_file in
2957 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2958 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2959 break;;
2960 esac
2961 done
2962 else
2963 $as_echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2968 as_fn_error $? "cannot compute suffix of object files: cannot compile
2969 See \`config.log' for more details" "$LINENO" 5; }
2971 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2974 $as_echo "$ac_cv_objext" >&6; }
2975 OBJEXT=$ac_cv_objext
2976 ac_objext=$OBJEXT
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2978 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2979 if ${ac_cv_c_compiler_gnu+:} false; then :
2980 $as_echo_n "(cached) " >&6
2981 else
2982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2983 /* end confdefs.h. */
2986 main ()
2988 #ifndef __GNUC__
2989 choke me
2990 #endif
2993 return 0;
2995 _ACEOF
2996 if ac_fn_c_try_compile "$LINENO"; then :
2997 ac_compiler_gnu=yes
2998 else
2999 ac_compiler_gnu=no
3001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3002 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3006 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3007 if test $ac_compiler_gnu = yes; then
3008 GCC=yes
3009 else
3010 GCC=
3012 ac_test_CFLAGS=${CFLAGS+set}
3013 ac_save_CFLAGS=$CFLAGS
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3015 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3016 if ${ac_cv_prog_cc_g+:} false; then :
3017 $as_echo_n "(cached) " >&6
3018 else
3019 ac_save_c_werror_flag=$ac_c_werror_flag
3020 ac_c_werror_flag=yes
3021 ac_cv_prog_cc_g=no
3022 CFLAGS="-g"
3023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3024 /* end confdefs.h. */
3027 main ()
3031 return 0;
3033 _ACEOF
3034 if ac_fn_c_try_compile "$LINENO"; then :
3035 ac_cv_prog_cc_g=yes
3036 else
3037 CFLAGS=""
3038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3039 /* end confdefs.h. */
3042 main ()
3046 return 0;
3048 _ACEOF
3049 if ac_fn_c_try_compile "$LINENO"; then :
3051 else
3052 ac_c_werror_flag=$ac_save_c_werror_flag
3053 CFLAGS="-g"
3054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3055 /* end confdefs.h. */
3058 main ()
3062 return 0;
3064 _ACEOF
3065 if ac_fn_c_try_compile "$LINENO"; then :
3066 ac_cv_prog_cc_g=yes
3068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3073 ac_c_werror_flag=$ac_save_c_werror_flag
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3076 $as_echo "$ac_cv_prog_cc_g" >&6; }
3077 if test "$ac_test_CFLAGS" = set; then
3078 CFLAGS=$ac_save_CFLAGS
3079 elif test $ac_cv_prog_cc_g = yes; then
3080 if test "$GCC" = yes; then
3081 CFLAGS="-g -O2"
3082 else
3083 CFLAGS="-g"
3085 else
3086 if test "$GCC" = yes; then
3087 CFLAGS="-O2"
3088 else
3089 CFLAGS=
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3093 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3094 if ${ac_cv_prog_cc_c89+:} false; then :
3095 $as_echo_n "(cached) " >&6
3096 else
3097 ac_cv_prog_cc_c89=no
3098 ac_save_CC=$CC
3099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3100 /* end confdefs.h. */
3101 #include <stdarg.h>
3102 #include <stdio.h>
3103 struct stat;
3104 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3105 struct buf { int x; };
3106 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3107 static char *e (p, i)
3108 char **p;
3109 int i;
3111 return p[i];
3113 static char *f (char * (*g) (char **, int), char **p, ...)
3115 char *s;
3116 va_list v;
3117 va_start (v,p);
3118 s = g (p, va_arg (v,int));
3119 va_end (v);
3120 return s;
3123 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3124 function prototypes and stuff, but not '\xHH' hex character constants.
3125 These don't provoke an error unfortunately, instead are silently treated
3126 as 'x'. The following induces an error, until -std is added to get
3127 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3128 array size at least. It's necessary to write '\x00'==0 to get something
3129 that's true only with -std. */
3130 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3132 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3133 inside strings and character constants. */
3134 #define FOO(x) 'x'
3135 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3137 int test (int i, double x);
3138 struct s1 {int (*f) (int a);};
3139 struct s2 {int (*f) (double a);};
3140 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3141 int argc;
3142 char **argv;
3144 main ()
3146 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3148 return 0;
3150 _ACEOF
3151 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3152 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3154 CC="$ac_save_CC $ac_arg"
3155 if ac_fn_c_try_compile "$LINENO"; then :
3156 ac_cv_prog_cc_c89=$ac_arg
3158 rm -f core conftest.err conftest.$ac_objext
3159 test "x$ac_cv_prog_cc_c89" != "xno" && break
3160 done
3161 rm -f conftest.$ac_ext
3162 CC=$ac_save_CC
3165 # AC_CACHE_VAL
3166 case "x$ac_cv_prog_cc_c89" in
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3169 $as_echo "none needed" >&6; } ;;
3170 xno)
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3172 $as_echo "unsupported" >&6; } ;;
3174 CC="$CC $ac_cv_prog_cc_c89"
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3176 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3177 esac
3178 if test "x$ac_cv_prog_cc_c89" != xno; then :
3182 ac_ext=c
3183 ac_cpp='$CPP $CPPFLAGS'
3184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3189 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3190 if ${ac_cv_prog_cc_c99+:} false; then :
3191 $as_echo_n "(cached) " >&6
3192 else
3193 ac_cv_prog_cc_c99=no
3194 ac_save_CC=$CC
3195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3196 /* end confdefs.h. */
3197 #include <stdarg.h>
3198 #include <stdbool.h>
3199 #include <stdlib.h>
3200 #include <wchar.h>
3201 #include <stdio.h>
3203 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3204 #define debug(...) fprintf (stderr, __VA_ARGS__)
3205 #define showlist(...) puts (#__VA_ARGS__)
3206 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3207 static void
3208 test_varargs_macros (void)
3210 int x = 1234;
3211 int y = 5678;
3212 debug ("Flag");
3213 debug ("X = %d\n", x);
3214 showlist (The first, second, and third items.);
3215 report (x>y, "x is %d but y is %d", x, y);
3218 // Check long long types.
3219 #define BIG64 18446744073709551615ull
3220 #define BIG32 4294967295ul
3221 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3222 #if !BIG_OK
3223 your preprocessor is broken;
3224 #endif
3225 #if BIG_OK
3226 #else
3227 your preprocessor is broken;
3228 #endif
3229 static long long int bignum = -9223372036854775807LL;
3230 static unsigned long long int ubignum = BIG64;
3232 struct incomplete_array
3234 int datasize;
3235 double data[];
3238 struct named_init {
3239 int number;
3240 const wchar_t *name;
3241 double average;
3244 typedef const char *ccp;
3246 static inline int
3247 test_restrict (ccp restrict text)
3249 // See if C++-style comments work.
3250 // Iterate through items via the restricted pointer.
3251 // Also check for declarations in for loops.
3252 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3253 continue;
3254 return 0;
3257 // Check varargs and va_copy.
3258 static void
3259 test_varargs (const char *format, ...)
3261 va_list args;
3262 va_start (args, format);
3263 va_list args_copy;
3264 va_copy (args_copy, args);
3266 const char *str;
3267 int number;
3268 float fnumber;
3270 while (*format)
3272 switch (*format++)
3274 case 's': // string
3275 str = va_arg (args_copy, const char *);
3276 break;
3277 case 'd': // int
3278 number = va_arg (args_copy, int);
3279 break;
3280 case 'f': // float
3281 fnumber = va_arg (args_copy, double);
3282 break;
3283 default:
3284 break;
3287 va_end (args_copy);
3288 va_end (args);
3292 main ()
3295 // Check bool.
3296 _Bool success = false;
3298 // Check restrict.
3299 if (test_restrict ("String literal") == 0)
3300 success = true;
3301 char *restrict newvar = "Another string";
3303 // Check varargs.
3304 test_varargs ("s, d' f .", "string", 65, 34.234);
3305 test_varargs_macros ();
3307 // Check flexible array members.
3308 struct incomplete_array *ia =
3309 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3310 ia->datasize = 10;
3311 for (int i = 0; i < ia->datasize; ++i)
3312 ia->data[i] = i * 1.234;
3314 // Check named initializers.
3315 struct named_init ni = {
3316 .number = 34,
3317 .name = L"Test wide string",
3318 .average = 543.34343,
3321 ni.number = 58;
3323 int dynamic_array[ni.number];
3324 dynamic_array[ni.number - 1] = 543;
3326 // work around unused variable warnings
3327 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3328 || dynamic_array[ni.number - 1] != 543);
3331 return 0;
3333 _ACEOF
3334 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3336 CC="$ac_save_CC $ac_arg"
3337 if ac_fn_c_try_compile "$LINENO"; then :
3338 ac_cv_prog_cc_c99=$ac_arg
3340 rm -f core conftest.err conftest.$ac_objext
3341 test "x$ac_cv_prog_cc_c99" != "xno" && break
3342 done
3343 rm -f conftest.$ac_ext
3344 CC=$ac_save_CC
3347 # AC_CACHE_VAL
3348 case "x$ac_cv_prog_cc_c99" in
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3351 $as_echo "none needed" >&6; } ;;
3352 xno)
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3354 $as_echo "unsupported" >&6; } ;;
3356 CC="$CC $ac_cv_prog_cc_c99"
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3358 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3359 esac
3360 if test "x$ac_cv_prog_cc_c99" != xno; then :
3365 ac_ext=c
3366 ac_cpp='$CPP $CPPFLAGS'
3367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3370 if test -n "$ac_tool_prefix"; then
3371 for ac_prog in cc gcc
3373 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3374 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3376 $as_echo_n "checking for $ac_word... " >&6; }
3377 if ${ac_cv_prog_CC+:} false; then :
3378 $as_echo_n "(cached) " >&6
3379 else
3380 if test -n "$CC"; then
3381 ac_cv_prog_CC="$CC" # Let the user override the test.
3382 else
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384 for as_dir in $PATH
3386 IFS=$as_save_IFS
3387 test -z "$as_dir" && as_dir=.
3388 for ac_exec_ext in '' $ac_executable_extensions; do
3389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3390 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 break 2
3394 done
3395 done
3396 IFS=$as_save_IFS
3400 CC=$ac_cv_prog_CC
3401 if test -n "$CC"; then
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3403 $as_echo "$CC" >&6; }
3404 else
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406 $as_echo "no" >&6; }
3410 test -n "$CC" && break
3411 done
3413 if test -z "$CC"; then
3414 ac_ct_CC=$CC
3415 for ac_prog in cc gcc
3417 # Extract the first word of "$ac_prog", so it can be a program name with args.
3418 set dummy $ac_prog; ac_word=$2
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3420 $as_echo_n "checking for $ac_word... " >&6; }
3421 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3422 $as_echo_n "(cached) " >&6
3423 else
3424 if test -n "$ac_ct_CC"; then
3425 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3426 else
3427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428 for as_dir in $PATH
3430 IFS=$as_save_IFS
3431 test -z "$as_dir" && as_dir=.
3432 for ac_exec_ext in '' $ac_executable_extensions; do
3433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3434 ac_cv_prog_ac_ct_CC="$ac_prog"
3435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3436 break 2
3438 done
3439 done
3440 IFS=$as_save_IFS
3444 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3445 if test -n "$ac_ct_CC"; then
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3447 $as_echo "$ac_ct_CC" >&6; }
3448 else
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3450 $as_echo "no" >&6; }
3454 test -n "$ac_ct_CC" && break
3455 done
3457 if test "x$ac_ct_CC" = x; then
3458 CC=""
3459 else
3460 case $cross_compiling:$ac_tool_warned in
3461 yes:)
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3464 ac_tool_warned=yes ;;
3465 esac
3466 CC=$ac_ct_CC
3471 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3473 as_fn_error $? "no acceptable C compiler found in \$PATH
3474 See \`config.log' for more details" "$LINENO" 5; }
3476 # Provide some information about the compiler.
3477 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3478 set X $ac_compile
3479 ac_compiler=$2
3480 for ac_option in --version -v -V -qversion; do
3481 { { ac_try="$ac_compiler $ac_option >&5"
3482 case "(($ac_try" in
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3485 esac
3486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3487 $as_echo "$ac_try_echo"; } >&5
3488 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3489 ac_status=$?
3490 if test -s conftest.err; then
3491 sed '10a\
3492 ... rest of stderr output deleted ...
3493 10q' conftest.err >conftest.er1
3494 cat conftest.er1 >&5
3496 rm -f conftest.er1 conftest.err
3497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3498 test $ac_status = 0; }
3499 done
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3502 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3503 if ${ac_cv_c_compiler_gnu+:} false; then :
3504 $as_echo_n "(cached) " >&6
3505 else
3506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3507 /* end confdefs.h. */
3510 main ()
3512 #ifndef __GNUC__
3513 choke me
3514 #endif
3517 return 0;
3519 _ACEOF
3520 if ac_fn_c_try_compile "$LINENO"; then :
3521 ac_compiler_gnu=yes
3522 else
3523 ac_compiler_gnu=no
3525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3526 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3530 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3531 if test $ac_compiler_gnu = yes; then
3532 GCC=yes
3533 else
3534 GCC=
3536 ac_test_CFLAGS=${CFLAGS+set}
3537 ac_save_CFLAGS=$CFLAGS
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3539 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3540 if ${ac_cv_prog_cc_g+:} false; then :
3541 $as_echo_n "(cached) " >&6
3542 else
3543 ac_save_c_werror_flag=$ac_c_werror_flag
3544 ac_c_werror_flag=yes
3545 ac_cv_prog_cc_g=no
3546 CFLAGS="-g"
3547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3548 /* end confdefs.h. */
3551 main ()
3555 return 0;
3557 _ACEOF
3558 if ac_fn_c_try_compile "$LINENO"; then :
3559 ac_cv_prog_cc_g=yes
3560 else
3561 CFLAGS=""
3562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3563 /* end confdefs.h. */
3566 main ()
3570 return 0;
3572 _ACEOF
3573 if ac_fn_c_try_compile "$LINENO"; then :
3575 else
3576 ac_c_werror_flag=$ac_save_c_werror_flag
3577 CFLAGS="-g"
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h. */
3582 main ()
3586 return 0;
3588 _ACEOF
3589 if ac_fn_c_try_compile "$LINENO"; then :
3590 ac_cv_prog_cc_g=yes
3592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3597 ac_c_werror_flag=$ac_save_c_werror_flag
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3600 $as_echo "$ac_cv_prog_cc_g" >&6; }
3601 if test "$ac_test_CFLAGS" = set; then
3602 CFLAGS=$ac_save_CFLAGS
3603 elif test $ac_cv_prog_cc_g = yes; then
3604 if test "$GCC" = yes; then
3605 CFLAGS="-g -O2"
3606 else
3607 CFLAGS="-g"
3609 else
3610 if test "$GCC" = yes; then
3611 CFLAGS="-O2"
3612 else
3613 CFLAGS=
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3617 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3618 if ${ac_cv_prog_cc_c89+:} false; then :
3619 $as_echo_n "(cached) " >&6
3620 else
3621 ac_cv_prog_cc_c89=no
3622 ac_save_CC=$CC
3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624 /* end confdefs.h. */
3625 #include <stdarg.h>
3626 #include <stdio.h>
3627 struct stat;
3628 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3629 struct buf { int x; };
3630 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3631 static char *e (p, i)
3632 char **p;
3633 int i;
3635 return p[i];
3637 static char *f (char * (*g) (char **, int), char **p, ...)
3639 char *s;
3640 va_list v;
3641 va_start (v,p);
3642 s = g (p, va_arg (v,int));
3643 va_end (v);
3644 return s;
3647 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3648 function prototypes and stuff, but not '\xHH' hex character constants.
3649 These don't provoke an error unfortunately, instead are silently treated
3650 as 'x'. The following induces an error, until -std is added to get
3651 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3652 array size at least. It's necessary to write '\x00'==0 to get something
3653 that's true only with -std. */
3654 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3656 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3657 inside strings and character constants. */
3658 #define FOO(x) 'x'
3659 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3661 int test (int i, double x);
3662 struct s1 {int (*f) (int a);};
3663 struct s2 {int (*f) (double a);};
3664 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3665 int argc;
3666 char **argv;
3668 main ()
3670 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3672 return 0;
3674 _ACEOF
3675 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3676 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3678 CC="$ac_save_CC $ac_arg"
3679 if ac_fn_c_try_compile "$LINENO"; then :
3680 ac_cv_prog_cc_c89=$ac_arg
3682 rm -f core conftest.err conftest.$ac_objext
3683 test "x$ac_cv_prog_cc_c89" != "xno" && break
3684 done
3685 rm -f conftest.$ac_ext
3686 CC=$ac_save_CC
3689 # AC_CACHE_VAL
3690 case "x$ac_cv_prog_cc_c89" in
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3693 $as_echo "none needed" >&6; } ;;
3694 xno)
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3696 $as_echo "unsupported" >&6; } ;;
3698 CC="$CC $ac_cv_prog_cc_c89"
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3700 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3701 esac
3702 if test "x$ac_cv_prog_cc_c89" != xno; then :
3706 ac_ext=c
3707 ac_cpp='$CPP $CPPFLAGS'
3708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
3714 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
3715 if ${ac_cv_c_restrict+:} false; then :
3716 $as_echo_n "(cached) " >&6
3717 else
3718 ac_cv_c_restrict=no
3719 # The order here caters to the fact that C++ does not require restrict.
3720 for ac_kw in __restrict __restrict__ _Restrict restrict; do
3721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722 /* end confdefs.h. */
3723 typedef int * int_ptr;
3724 int foo (int_ptr $ac_kw ip) {
3725 return ip[0];
3728 main ()
3730 int s[1];
3731 int * $ac_kw t = s;
3732 t[0] = 0;
3733 return foo(t)
3735 return 0;
3737 _ACEOF
3738 if ac_fn_c_try_compile "$LINENO"; then :
3739 ac_cv_c_restrict=$ac_kw
3741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3742 test "$ac_cv_c_restrict" != no && break
3743 done
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
3747 $as_echo "$ac_cv_c_restrict" >&6; }
3749 case $ac_cv_c_restrict in
3750 restrict) ;;
3751 no) $as_echo "#define restrict /**/" >>confdefs.h
3753 *) cat >>confdefs.h <<_ACEOF
3754 #define restrict $ac_cv_c_restrict
3755 _ACEOF
3757 esac
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
3760 $as_echo_n "checking for inline... " >&6; }
3761 if ${ac_cv_c_inline+:} false; then :
3762 $as_echo_n "(cached) " >&6
3763 else
3764 ac_cv_c_inline=no
3765 for ac_kw in inline __inline__ __inline; do
3766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h. */
3768 #ifndef __cplusplus
3769 typedef int foo_t;
3770 static $ac_kw foo_t static_foo () {return 0; }
3771 $ac_kw foo_t foo () {return 0; }
3772 #endif
3774 _ACEOF
3775 if ac_fn_c_try_compile "$LINENO"; then :
3776 ac_cv_c_inline=$ac_kw
3778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3779 test "$ac_cv_c_inline" != no && break
3780 done
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
3784 $as_echo "$ac_cv_c_inline" >&6; }
3786 case $ac_cv_c_inline in
3787 inline | yes) ;;
3789 case $ac_cv_c_inline in
3790 no) ac_val=;;
3791 *) ac_val=$ac_cv_c_inline;;
3792 esac
3793 cat >>confdefs.h <<_ACEOF
3794 #ifndef __cplusplus
3795 #define inline $ac_val
3796 #endif
3797 _ACEOF
3799 esac
3802 if test "${USRCFLAGS}" = "" ; then
3803 if test "${GCC}" = "yes" ; then
3804 CFLAGS="${CFLAGS} -O2 -Wall"
3805 cflags_tmp="${CFLAGS}"
3806 CFLAGS="${CFLAGS} -m64"
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $CFLAGS" >&5
3808 $as_echo_n "checking whether $CC supports $CFLAGS... " >&6; }
3809 if test "$cross_compiling" = yes; then :
3810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3812 as_fn_error $? "cannot run test program while cross compiling
3813 See \`config.log' for more details" "$LINENO" 5; }
3814 else
3815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816 /* end confdefs.h. */
3819 main ()
3823 return 0;
3825 _ACEOF
3826 if ac_fn_c_try_run "$LINENO"; then :
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3828 $as_echo "yes" >&6; }
3829 else
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3831 $as_echo "no" >&6; }
3832 CFLAGS="$cflags_tmp"
3835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3836 conftest.$ac_objext conftest.beam conftest.$ac_ext
3839 else
3840 SUNCCVERSION=`${CC} -V 2>&1 | grep Sun`
3841 SUNCC=$?
3842 if test "${SUNCC}" == "0" ; then
3843 CFLAGS="${CFLAGS} -O"
3844 cflags_tmp="$CFLAGS"
3845 HAS_M64=`${CC} -flags | grep m64`
3846 if test "${HAS_M64}" != "" ; then
3847 CFLAGS="${CFLAGS} -m64"
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $CFLAGS" >&5
3849 $as_echo_n "checking whether $CC supports $CFLAGS... " >&6; }
3850 if test "$cross_compiling" = yes; then :
3851 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3853 as_fn_error $? "cannot run test program while cross compiling
3854 See \`config.log' for more details" "$LINENO" 5; }
3855 else
3856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3857 /* end confdefs.h. */
3860 main ()
3864 return 0;
3866 _ACEOF
3867 if ac_fn_c_try_run "$LINENO"; then :
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3869 $as_echo "yes" >&6; }
3870 else
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3872 $as_echo "no" >&6; }
3873 CFLAGS="$cflags_tmp"
3876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3877 conftest.$ac_objext conftest.beam conftest.$ac_ext
3880 else
3881 CFLAGS="${CFLAGS} -xarch=generic64"
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $CFLAGS" >&5
3883 $as_echo_n "checking whether $CC supports $CFLAGS... " >&6; }
3884 if test "$cross_compiling" = yes; then :
3885 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3887 as_fn_error $? "cannot run test program while cross compiling
3888 See \`config.log' for more details" "$LINENO" 5; }
3889 else
3890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891 /* end confdefs.h. */
3894 main ()
3898 return 0;
3900 _ACEOF
3901 if ac_fn_c_try_run "$LINENO"; then :
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3903 $as_echo "yes" >&6; }
3904 else
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3906 $as_echo "no" >&6; }
3907 CFLAGS="$cflags_tmp"
3910 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3911 conftest.$ac_objext conftest.beam conftest.$ac_ext
3915 else
3916 echo unknown cc
3917 CFLAGS="${CFLAGS} -O"
3924 # Find a good install program. We prefer a C program (faster),
3925 # so one script is as good as another. But avoid the broken or
3926 # incompatible versions:
3927 # SysV /etc/install, /usr/sbin/install
3928 # SunOS /usr/etc/install
3929 # IRIX /sbin/install
3930 # AIX /bin/install
3931 # AmigaOS /C/install, which installs bootblocks on floppy discs
3932 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3933 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3934 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3935 # OS/2's system install, which has a completely different semantic
3936 # ./install, which can be erroneously created by make from ./install.sh.
3937 # Reject install programs that cannot install multiple files.
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3939 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3940 if test -z "$INSTALL"; then
3941 if ${ac_cv_path_install+:} false; then :
3942 $as_echo_n "(cached) " >&6
3943 else
3944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945 for as_dir in $PATH
3947 IFS=$as_save_IFS
3948 test -z "$as_dir" && as_dir=.
3949 # Account for people who put trailing slashes in PATH elements.
3950 case $as_dir/ in #((
3951 ./ | .// | /[cC]/* | \
3952 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3953 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3954 /usr/ucb/* ) ;;
3956 # OSF1 and SCO ODT 3.0 have their own names for install.
3957 # Don't use installbsd from OSF since it installs stuff as root
3958 # by default.
3959 for ac_prog in ginstall scoinst install; do
3960 for ac_exec_ext in '' $ac_executable_extensions; do
3961 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3962 if test $ac_prog = install &&
3963 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3964 # AIX install. It has an incompatible calling convention.
3966 elif test $ac_prog = install &&
3967 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3968 # program-specific install script used by HP pwplus--don't use.
3970 else
3971 rm -rf conftest.one conftest.two conftest.dir
3972 echo one > conftest.one
3973 echo two > conftest.two
3974 mkdir conftest.dir
3975 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3976 test -s conftest.one && test -s conftest.two &&
3977 test -s conftest.dir/conftest.one &&
3978 test -s conftest.dir/conftest.two
3979 then
3980 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3981 break 3
3985 done
3986 done
3988 esac
3990 done
3991 IFS=$as_save_IFS
3993 rm -rf conftest.one conftest.two conftest.dir
3996 if test "${ac_cv_path_install+set}" = set; then
3997 INSTALL=$ac_cv_path_install
3998 else
3999 # As a last resort, use the slow shell script. Don't cache a
4000 # value for INSTALL within a source directory, because that will
4001 # break other packages using the cache if that directory is
4002 # removed, or if the value is a relative name.
4003 INSTALL=$ac_install_sh
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4007 $as_echo "$INSTALL" >&6; }
4009 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4010 # It thinks the first close brace ends the variable substitution.
4011 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4013 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4015 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4017 # Extract the first word of "rm", so it can be a program name with args.
4018 set dummy rm; ac_word=$2
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4020 $as_echo_n "checking for $ac_word... " >&6; }
4021 if ${ac_cv_path_RM+:} false; then :
4022 $as_echo_n "(cached) " >&6
4023 else
4024 case $RM in
4025 [\\/]* | ?:[\\/]*)
4026 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030 for as_dir in $PATH
4032 IFS=$as_save_IFS
4033 test -z "$as_dir" && as_dir=.
4034 for ac_exec_ext in '' $ac_executable_extensions; do
4035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4036 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4038 break 2
4040 done
4041 done
4042 IFS=$as_save_IFS
4045 esac
4047 RM=$ac_cv_path_RM
4048 if test -n "$RM"; then
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4050 $as_echo "$RM" >&6; }
4051 else
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4053 $as_echo "no" >&6; }
4057 # Extract the first word of "mt", so it can be a program name with args.
4058 set dummy mt; ac_word=$2
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4060 $as_echo_n "checking for $ac_word... " >&6; }
4061 if ${ac_cv_path_MT+:} false; then :
4062 $as_echo_n "(cached) " >&6
4063 else
4064 case $MT in
4065 [\\/]* | ?:[\\/]*)
4066 ac_cv_path_MT="$MT" # Let the user override the test with a path.
4069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070 for as_dir in $PATH
4072 IFS=$as_save_IFS
4073 test -z "$as_dir" && as_dir=.
4074 for ac_exec_ext in '' $ac_executable_extensions; do
4075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4076 ac_cv_path_MT="$as_dir/$ac_word$ac_exec_ext"
4077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4078 break 2
4080 done
4081 done
4082 IFS=$as_save_IFS
4084 test -z "$ac_cv_path_MT" && ac_cv_path_MT="{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the program mt - you might need this if you want autoloader support" >&5
4085 $as_echo "$as_me: WARNING: could not find the program mt - you might need this if you want autoloader support" >&2;}"
4087 esac
4089 MT=$ac_cv_path_MT
4090 if test -n "$MT"; then
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5
4092 $as_echo "$MT" >&6; }
4093 else
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4095 $as_echo "no" >&6; }
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4100 $as_echo_n "checking return type of signal handlers... " >&6; }
4101 if ${ac_cv_type_signal+:} false; then :
4102 $as_echo_n "(cached) " >&6
4103 else
4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h. */
4106 #include <sys/types.h>
4107 #include <signal.h>
4110 main ()
4112 return *(signal (0, 0)) (0) == 1;
4114 return 0;
4116 _ACEOF
4117 if ac_fn_c_try_compile "$LINENO"; then :
4118 ac_cv_type_signal=int
4119 else
4120 ac_cv_type_signal=void
4122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4125 $as_echo "$ac_cv_type_signal" >&6; }
4127 cat >>confdefs.h <<_ACEOF
4128 #define RETSIGTYPE $ac_cv_type_signal
4129 _ACEOF
4132 # Check whether --enable-largefile was given.
4133 if test "${enable_largefile+set}" = set; then :
4134 enableval=$enable_largefile;
4137 if test "$enable_largefile" != no; then
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4140 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4141 if ${ac_cv_sys_largefile_CC+:} false; then :
4142 $as_echo_n "(cached) " >&6
4143 else
4144 ac_cv_sys_largefile_CC=no
4145 if test "$GCC" != yes; then
4146 ac_save_CC=$CC
4147 while :; do
4148 # IRIX 6.2 and later do not support large files by default,
4149 # so use the C compiler's -n32 option if that helps.
4150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4151 /* end confdefs.h. */
4152 #include <sys/types.h>
4153 /* Check that off_t can represent 2**63 - 1 correctly.
4154 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4155 since some C++ compilers masquerading as C compilers
4156 incorrectly reject 9223372036854775807. */
4157 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4158 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4159 && LARGE_OFF_T % 2147483647 == 1)
4160 ? 1 : -1];
4162 main ()
4166 return 0;
4168 _ACEOF
4169 if ac_fn_c_try_compile "$LINENO"; then :
4170 break
4172 rm -f core conftest.err conftest.$ac_objext
4173 CC="$CC -n32"
4174 if ac_fn_c_try_compile "$LINENO"; then :
4175 ac_cv_sys_largefile_CC=' -n32'; break
4177 rm -f core conftest.err conftest.$ac_objext
4178 break
4179 done
4180 CC=$ac_save_CC
4181 rm -f conftest.$ac_ext
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4185 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4186 if test "$ac_cv_sys_largefile_CC" != no; then
4187 CC=$CC$ac_cv_sys_largefile_CC
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4191 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4192 if ${ac_cv_sys_file_offset_bits+:} false; then :
4193 $as_echo_n "(cached) " >&6
4194 else
4195 while :; do
4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h. */
4198 #include <sys/types.h>
4199 /* Check that off_t can represent 2**63 - 1 correctly.
4200 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4201 since some C++ compilers masquerading as C compilers
4202 incorrectly reject 9223372036854775807. */
4203 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4204 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4205 && LARGE_OFF_T % 2147483647 == 1)
4206 ? 1 : -1];
4208 main ()
4212 return 0;
4214 _ACEOF
4215 if ac_fn_c_try_compile "$LINENO"; then :
4216 ac_cv_sys_file_offset_bits=no; break
4218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4220 /* end confdefs.h. */
4221 #define _FILE_OFFSET_BITS 64
4222 #include <sys/types.h>
4223 /* Check that off_t can represent 2**63 - 1 correctly.
4224 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4225 since some C++ compilers masquerading as C compilers
4226 incorrectly reject 9223372036854775807. */
4227 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4228 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4229 && LARGE_OFF_T % 2147483647 == 1)
4230 ? 1 : -1];
4232 main ()
4236 return 0;
4238 _ACEOF
4239 if ac_fn_c_try_compile "$LINENO"; then :
4240 ac_cv_sys_file_offset_bits=64; break
4242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4243 ac_cv_sys_file_offset_bits=unknown
4244 break
4245 done
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4248 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4249 case $ac_cv_sys_file_offset_bits in #(
4250 no | unknown) ;;
4252 cat >>confdefs.h <<_ACEOF
4253 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4254 _ACEOF
4256 esac
4257 rm -rf conftest*
4258 if test $ac_cv_sys_file_offset_bits = unknown; then
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4260 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4261 if ${ac_cv_sys_large_files+:} false; then :
4262 $as_echo_n "(cached) " >&6
4263 else
4264 while :; do
4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h. */
4267 #include <sys/types.h>
4268 /* Check that off_t can represent 2**63 - 1 correctly.
4269 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4270 since some C++ compilers masquerading as C compilers
4271 incorrectly reject 9223372036854775807. */
4272 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4273 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4274 && LARGE_OFF_T % 2147483647 == 1)
4275 ? 1 : -1];
4277 main ()
4281 return 0;
4283 _ACEOF
4284 if ac_fn_c_try_compile "$LINENO"; then :
4285 ac_cv_sys_large_files=no; break
4287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289 /* end confdefs.h. */
4290 #define _LARGE_FILES 1
4291 #include <sys/types.h>
4292 /* Check that off_t can represent 2**63 - 1 correctly.
4293 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4294 since some C++ compilers masquerading as C compilers
4295 incorrectly reject 9223372036854775807. */
4296 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4297 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4298 && LARGE_OFF_T % 2147483647 == 1)
4299 ? 1 : -1];
4301 main ()
4305 return 0;
4307 _ACEOF
4308 if ac_fn_c_try_compile "$LINENO"; then :
4309 ac_cv_sys_large_files=1; break
4311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312 ac_cv_sys_large_files=unknown
4313 break
4314 done
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4317 $as_echo "$ac_cv_sys_large_files" >&6; }
4318 case $ac_cv_sys_large_files in #(
4319 no | unknown) ;;
4321 cat >>confdefs.h <<_ACEOF
4322 #define _LARGE_FILES $ac_cv_sys_large_files
4323 _ACEOF
4325 esac
4326 rm -rf conftest*
4332 ac_ext=c
4333 ac_cpp='$CPP $CPPFLAGS'
4334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4338 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4339 # On Suns, sometimes $CPP names a directory.
4340 if test -n "$CPP" && test -d "$CPP"; then
4341 CPP=
4343 if test -z "$CPP"; then
4344 if ${ac_cv_prog_CPP+:} false; then :
4345 $as_echo_n "(cached) " >&6
4346 else
4347 # Double quotes because CPP needs to be expanded
4348 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4350 ac_preproc_ok=false
4351 for ac_c_preproc_warn_flag in '' yes
4353 # Use a header file that comes with gcc, so configuring glibc
4354 # with a fresh cross-compiler works.
4355 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4356 # <limits.h> exists even on freestanding compilers.
4357 # On the NeXT, cc -E runs the code through the compiler's parser,
4358 # not just through cpp. "Syntax error" is here to catch this case.
4359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360 /* end confdefs.h. */
4361 #ifdef __STDC__
4362 # include <limits.h>
4363 #else
4364 # include <assert.h>
4365 #endif
4366 Syntax error
4367 _ACEOF
4368 if ac_fn_c_try_cpp "$LINENO"; then :
4370 else
4371 # Broken: fails on valid input.
4372 continue
4374 rm -f conftest.err conftest.i conftest.$ac_ext
4376 # OK, works on sane cases. Now check whether nonexistent headers
4377 # can be detected and how.
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4380 #include <ac_nonexistent.h>
4381 _ACEOF
4382 if ac_fn_c_try_cpp "$LINENO"; then :
4383 # Broken: success on invalid input.
4384 continue
4385 else
4386 # Passes both tests.
4387 ac_preproc_ok=:
4388 break
4390 rm -f conftest.err conftest.i conftest.$ac_ext
4392 done
4393 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4394 rm -f conftest.i conftest.err conftest.$ac_ext
4395 if $ac_preproc_ok; then :
4396 break
4399 done
4400 ac_cv_prog_CPP=$CPP
4403 CPP=$ac_cv_prog_CPP
4404 else
4405 ac_cv_prog_CPP=$CPP
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4408 $as_echo "$CPP" >&6; }
4409 ac_preproc_ok=false
4410 for ac_c_preproc_warn_flag in '' yes
4412 # Use a header file that comes with gcc, so configuring glibc
4413 # with a fresh cross-compiler works.
4414 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4415 # <limits.h> exists even on freestanding compilers.
4416 # On the NeXT, cc -E runs the code through the compiler's parser,
4417 # not just through cpp. "Syntax error" is here to catch this case.
4418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4419 /* end confdefs.h. */
4420 #ifdef __STDC__
4421 # include <limits.h>
4422 #else
4423 # include <assert.h>
4424 #endif
4425 Syntax error
4426 _ACEOF
4427 if ac_fn_c_try_cpp "$LINENO"; then :
4429 else
4430 # Broken: fails on valid input.
4431 continue
4433 rm -f conftest.err conftest.i conftest.$ac_ext
4435 # OK, works on sane cases. Now check whether nonexistent headers
4436 # can be detected and how.
4437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h. */
4439 #include <ac_nonexistent.h>
4440 _ACEOF
4441 if ac_fn_c_try_cpp "$LINENO"; then :
4442 # Broken: success on invalid input.
4443 continue
4444 else
4445 # Passes both tests.
4446 ac_preproc_ok=:
4447 break
4449 rm -f conftest.err conftest.i conftest.$ac_ext
4451 done
4452 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4453 rm -f conftest.i conftest.err conftest.$ac_ext
4454 if $ac_preproc_ok; then :
4456 else
4457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4459 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4460 See \`config.log' for more details" "$LINENO" 5; }
4463 ac_ext=c
4464 ac_cpp='$CPP $CPPFLAGS'
4465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4471 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4472 if ${ac_cv_path_GREP+:} false; then :
4473 $as_echo_n "(cached) " >&6
4474 else
4475 if test -z "$GREP"; then
4476 ac_path_GREP_found=false
4477 # Loop through the user's path and test for each of PROGNAME-LIST
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4481 IFS=$as_save_IFS
4482 test -z "$as_dir" && as_dir=.
4483 for ac_prog in grep ggrep; do
4484 for ac_exec_ext in '' $ac_executable_extensions; do
4485 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4486 as_fn_executable_p "$ac_path_GREP" || continue
4487 # Check for GNU ac_path_GREP and select it if it is found.
4488 # Check for GNU $ac_path_GREP
4489 case `"$ac_path_GREP" --version 2>&1` in
4490 *GNU*)
4491 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4493 ac_count=0
4494 $as_echo_n 0123456789 >"conftest.in"
4495 while :
4497 cat "conftest.in" "conftest.in" >"conftest.tmp"
4498 mv "conftest.tmp" "conftest.in"
4499 cp "conftest.in" "conftest.nl"
4500 $as_echo 'GREP' >> "conftest.nl"
4501 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4502 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4503 as_fn_arith $ac_count + 1 && ac_count=$as_val
4504 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4505 # Best one so far, save it but keep looking for a better one
4506 ac_cv_path_GREP="$ac_path_GREP"
4507 ac_path_GREP_max=$ac_count
4509 # 10*(2^10) chars as input seems more than enough
4510 test $ac_count -gt 10 && break
4511 done
4512 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4513 esac
4515 $ac_path_GREP_found && break 3
4516 done
4517 done
4518 done
4519 IFS=$as_save_IFS
4520 if test -z "$ac_cv_path_GREP"; then
4521 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4523 else
4524 ac_cv_path_GREP=$GREP
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4529 $as_echo "$ac_cv_path_GREP" >&6; }
4530 GREP="$ac_cv_path_GREP"
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4534 $as_echo_n "checking for egrep... " >&6; }
4535 if ${ac_cv_path_EGREP+:} false; then :
4536 $as_echo_n "(cached) " >&6
4537 else
4538 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4539 then ac_cv_path_EGREP="$GREP -E"
4540 else
4541 if test -z "$EGREP"; then
4542 ac_path_EGREP_found=false
4543 # Loop through the user's path and test for each of PROGNAME-LIST
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4547 IFS=$as_save_IFS
4548 test -z "$as_dir" && as_dir=.
4549 for ac_prog in egrep; do
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4552 as_fn_executable_p "$ac_path_EGREP" || continue
4553 # Check for GNU ac_path_EGREP and select it if it is found.
4554 # Check for GNU $ac_path_EGREP
4555 case `"$ac_path_EGREP" --version 2>&1` in
4556 *GNU*)
4557 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4559 ac_count=0
4560 $as_echo_n 0123456789 >"conftest.in"
4561 while :
4563 cat "conftest.in" "conftest.in" >"conftest.tmp"
4564 mv "conftest.tmp" "conftest.in"
4565 cp "conftest.in" "conftest.nl"
4566 $as_echo 'EGREP' >> "conftest.nl"
4567 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4568 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4569 as_fn_arith $ac_count + 1 && ac_count=$as_val
4570 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4571 # Best one so far, save it but keep looking for a better one
4572 ac_cv_path_EGREP="$ac_path_EGREP"
4573 ac_path_EGREP_max=$ac_count
4575 # 10*(2^10) chars as input seems more than enough
4576 test $ac_count -gt 10 && break
4577 done
4578 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4579 esac
4581 $ac_path_EGREP_found && break 3
4582 done
4583 done
4584 done
4585 IFS=$as_save_IFS
4586 if test -z "$ac_cv_path_EGREP"; then
4587 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4589 else
4590 ac_cv_path_EGREP=$EGREP
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4596 $as_echo "$ac_cv_path_EGREP" >&6; }
4597 EGREP="$ac_cv_path_EGREP"
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4601 $as_echo_n "checking for ANSI C header files... " >&6; }
4602 if ${ac_cv_header_stdc+:} false; then :
4603 $as_echo_n "(cached) " >&6
4604 else
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4607 #include <stdlib.h>
4608 #include <stdarg.h>
4609 #include <string.h>
4610 #include <float.h>
4613 main ()
4617 return 0;
4619 _ACEOF
4620 if ac_fn_c_try_compile "$LINENO"; then :
4621 ac_cv_header_stdc=yes
4622 else
4623 ac_cv_header_stdc=no
4625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4627 if test $ac_cv_header_stdc = yes; then
4628 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630 /* end confdefs.h. */
4631 #include <string.h>
4633 _ACEOF
4634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4635 $EGREP "memchr" >/dev/null 2>&1; then :
4637 else
4638 ac_cv_header_stdc=no
4640 rm -f conftest*
4644 if test $ac_cv_header_stdc = yes; then
4645 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647 /* end confdefs.h. */
4648 #include <stdlib.h>
4650 _ACEOF
4651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4652 $EGREP "free" >/dev/null 2>&1; then :
4654 else
4655 ac_cv_header_stdc=no
4657 rm -f conftest*
4661 if test $ac_cv_header_stdc = yes; then
4662 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4663 if test "$cross_compiling" = yes; then :
4665 else
4666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h. */
4668 #include <ctype.h>
4669 #include <stdlib.h>
4670 #if ((' ' & 0x0FF) == 0x020)
4671 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4672 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4673 #else
4674 # define ISLOWER(c) \
4675 (('a' <= (c) && (c) <= 'i') \
4676 || ('j' <= (c) && (c) <= 'r') \
4677 || ('s' <= (c) && (c) <= 'z'))
4678 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4679 #endif
4681 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4683 main ()
4685 int i;
4686 for (i = 0; i < 256; i++)
4687 if (XOR (islower (i), ISLOWER (i))
4688 || toupper (i) != TOUPPER (i))
4689 return 2;
4690 return 0;
4692 _ACEOF
4693 if ac_fn_c_try_run "$LINENO"; then :
4695 else
4696 ac_cv_header_stdc=no
4698 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4699 conftest.$ac_objext conftest.beam conftest.$ac_ext
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4705 $as_echo "$ac_cv_header_stdc" >&6; }
4706 if test $ac_cv_header_stdc = yes; then
4708 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4712 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4713 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4714 inttypes.h stdint.h unistd.h
4715 do :
4716 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4717 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4719 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4720 cat >>confdefs.h <<_ACEOF
4721 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4722 _ACEOF
4726 done
4729 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
4730 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
4732 cat >>confdefs.h <<_ACEOF
4733 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
4734 _ACEOF
4737 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
4745 $as_echo_n "checking whether to enable assertions... " >&6; }
4746 # Check whether --enable-assert was given.
4747 if test "${enable_assert+set}" = set; then :
4748 enableval=$enable_assert; ac_enable_assert=$enableval
4749 if test "x$enableval" = xno; then :
4751 $as_echo "#define NDEBUG 1" >>confdefs.h
4753 elif test "x$enableval" != xyes; then :
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
4755 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
4756 ac_enable_assert=yes
4758 else
4759 ac_enable_assert=yes
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
4763 $as_echo "$ac_enable_assert" >&6; }
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
4766 $as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; }
4767 if ${ac_cv_lib_pthread_pthread_mutex_init+:} false; then :
4768 $as_echo_n "(cached) " >&6
4769 else
4770 ac_check_lib_save_LIBS=$LIBS
4771 LIBS="-lpthread $LIBS"
4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773 /* end confdefs.h. */
4775 /* Override any GCC internal prototype to avoid an error.
4776 Use char because int might match the return type of a GCC
4777 builtin and then its argument prototype would still apply. */
4778 #ifdef __cplusplus
4779 extern "C"
4780 #endif
4781 char pthread_mutex_init ();
4783 main ()
4785 return pthread_mutex_init ();
4787 return 0;
4789 _ACEOF
4790 if ac_fn_c_try_link "$LINENO"; then :
4791 ac_cv_lib_pthread_pthread_mutex_init=yes
4792 else
4793 ac_cv_lib_pthread_pthread_mutex_init=no
4795 rm -f core conftest.err conftest.$ac_objext \
4796 conftest$ac_exeext conftest.$ac_ext
4797 LIBS=$ac_check_lib_save_LIBS
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
4800 $as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
4801 if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes; then :
4802 cat >>confdefs.h <<_ACEOF
4803 #define HAVE_LIBPTHREAD 1
4804 _ACEOF
4806 LIBS="-lpthread $LIBS"
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
4811 $as_echo_n "checking for library containing clock_gettime... " >&6; }
4812 if ${ac_cv_search_clock_gettime+:} false; then :
4813 $as_echo_n "(cached) " >&6
4814 else
4815 ac_func_search_save_LIBS=$LIBS
4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4819 /* Override any GCC internal prototype to avoid an error.
4820 Use char because int might match the return type of a GCC
4821 builtin and then its argument prototype would still apply. */
4822 #ifdef __cplusplus
4823 extern "C"
4824 #endif
4825 char clock_gettime ();
4827 main ()
4829 return clock_gettime ();
4831 return 0;
4833 _ACEOF
4834 for ac_lib in '' rt; do
4835 if test -z "$ac_lib"; then
4836 ac_res="none required"
4837 else
4838 ac_res=-l$ac_lib
4839 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4841 if ac_fn_c_try_link "$LINENO"; then :
4842 ac_cv_search_clock_gettime=$ac_res
4844 rm -f core conftest.err conftest.$ac_objext \
4845 conftest$ac_exeext
4846 if ${ac_cv_search_clock_gettime+:} false; then :
4847 break
4849 done
4850 if ${ac_cv_search_clock_gettime+:} false; then :
4852 else
4853 ac_cv_search_clock_gettime=no
4855 rm conftest.$ac_ext
4856 LIBS=$ac_func_search_save_LIBS
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
4859 $as_echo "$ac_cv_search_clock_gettime" >&6; }
4860 ac_res=$ac_cv_search_clock_gettime
4861 if test "$ac_res" != no; then :
4862 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4864 else
4865 as_fn_error $? "could not find the library containing clock_gettime!" "$LINENO" 5
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
4869 $as_echo_n "checking for library containing sem_init... " >&6; }
4870 if ${ac_cv_search_sem_init+:} false; then :
4871 $as_echo_n "(cached) " >&6
4872 else
4873 ac_func_search_save_LIBS=$LIBS
4874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875 /* end confdefs.h. */
4877 /* Override any GCC internal prototype to avoid an error.
4878 Use char because int might match the return type of a GCC
4879 builtin and then its argument prototype would still apply. */
4880 #ifdef __cplusplus
4881 extern "C"
4882 #endif
4883 char sem_init ();
4885 main ()
4887 return sem_init ();
4889 return 0;
4891 _ACEOF
4892 for ac_lib in '' rt posix; do
4893 if test -z "$ac_lib"; then
4894 ac_res="none required"
4895 else
4896 ac_res=-l$ac_lib
4897 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4899 if ac_fn_c_try_link "$LINENO"; then :
4900 ac_cv_search_sem_init=$ac_res
4902 rm -f core conftest.err conftest.$ac_objext \
4903 conftest$ac_exeext
4904 if ${ac_cv_search_sem_init+:} false; then :
4905 break
4907 done
4908 if ${ac_cv_search_sem_init+:} false; then :
4910 else
4911 ac_cv_search_sem_init=no
4913 rm conftest.$ac_ext
4914 LIBS=$ac_func_search_save_LIBS
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
4917 $as_echo "$ac_cv_search_sem_init" >&6; }
4918 ac_res=$ac_cv_search_sem_init
4919 if test "$ac_res" != no; then :
4920 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4922 else
4923 as_fn_error $? "could not find semaphore functions!" "$LINENO" 5
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rint" >&5
4927 $as_echo_n "checking for library containing rint... " >&6; }
4928 if ${ac_cv_search_rint+:} false; then :
4929 $as_echo_n "(cached) " >&6
4930 else
4931 ac_func_search_save_LIBS=$LIBS
4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h. */
4935 /* Override any GCC internal prototype to avoid an error.
4936 Use char because int might match the return type of a GCC
4937 builtin and then its argument prototype would still apply. */
4938 #ifdef __cplusplus
4939 extern "C"
4940 #endif
4941 char rint ();
4943 main ()
4945 return rint ();
4947 return 0;
4949 _ACEOF
4950 for ac_lib in '' m; do
4951 if test -z "$ac_lib"; then
4952 ac_res="none required"
4953 else
4954 ac_res=-l$ac_lib
4955 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4957 if ac_fn_c_try_link "$LINENO"; then :
4958 ac_cv_search_rint=$ac_res
4960 rm -f core conftest.err conftest.$ac_objext \
4961 conftest$ac_exeext
4962 if ${ac_cv_search_rint+:} false; then :
4963 break
4965 done
4966 if ${ac_cv_search_rint+:} false; then :
4968 else
4969 ac_cv_search_rint=no
4971 rm conftest.$ac_ext
4972 LIBS=$ac_func_search_save_LIBS
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rint" >&5
4975 $as_echo "$ac_cv_search_rint" >&6; }
4976 ac_res=$ac_cv_search_rint
4977 if test "$ac_res" != no; then :
4978 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4980 else
4981 as_fn_error $? "unable to find rint" "$LINENO" 5
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing seteuid" >&5
4985 $as_echo_n "checking for library containing seteuid... " >&6; }
4986 if ${ac_cv_search_seteuid+:} false; then :
4987 $as_echo_n "(cached) " >&6
4988 else
4989 ac_func_search_save_LIBS=$LIBS
4990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4991 /* end confdefs.h. */
4993 /* Override any GCC internal prototype to avoid an error.
4994 Use char because int might match the return type of a GCC
4995 builtin and then its argument prototype would still apply. */
4996 #ifdef __cplusplus
4997 extern "C"
4998 #endif
4999 char seteuid ();
5001 main ()
5003 return seteuid ();
5005 return 0;
5007 _ACEOF
5008 for ac_lib in '' c; do
5009 if test -z "$ac_lib"; then
5010 ac_res="none required"
5011 else
5012 ac_res=-l$ac_lib
5013 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5015 if ac_fn_c_try_link "$LINENO"; then :
5016 ac_cv_search_seteuid=$ac_res
5018 rm -f core conftest.err conftest.$ac_objext \
5019 conftest$ac_exeext
5020 if ${ac_cv_search_seteuid+:} false; then :
5021 break
5023 done
5024 if ${ac_cv_search_seteuid+:} false; then :
5026 else
5027 ac_cv_search_seteuid=no
5029 rm conftest.$ac_ext
5030 LIBS=$ac_func_search_save_LIBS
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_seteuid" >&5
5033 $as_echo "$ac_cv_search_seteuid" >&6; }
5034 ac_res=$ac_cv_search_seteuid
5035 if test "$ac_res" != no; then :
5036 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5038 $as_echo "#define HAVE_SETEUID 1" >>confdefs.h
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing atoll" >&5
5043 $as_echo_n "checking for library containing atoll... " >&6; }
5044 if ${ac_cv_search_atoll+:} false; then :
5045 $as_echo_n "(cached) " >&6
5046 else
5047 ac_func_search_save_LIBS=$LIBS
5048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049 /* end confdefs.h. */
5051 /* Override any GCC internal prototype to avoid an error.
5052 Use char because int might match the return type of a GCC
5053 builtin and then its argument prototype would still apply. */
5054 #ifdef __cplusplus
5055 extern "C"
5056 #endif
5057 char atoll ();
5059 main ()
5061 return atoll ();
5063 return 0;
5065 _ACEOF
5066 for ac_lib in '' c; do
5067 if test -z "$ac_lib"; then
5068 ac_res="none required"
5069 else
5070 ac_res=-l$ac_lib
5071 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5073 if ac_fn_c_try_link "$LINENO"; then :
5074 ac_cv_search_atoll=$ac_res
5076 rm -f core conftest.err conftest.$ac_objext \
5077 conftest$ac_exeext
5078 if ${ac_cv_search_atoll+:} false; then :
5079 break
5081 done
5082 if ${ac_cv_search_atoll+:} false; then :
5084 else
5085 ac_cv_search_atoll=no
5087 rm conftest.$ac_ext
5088 LIBS=$ac_func_search_save_LIBS
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_atoll" >&5
5091 $as_echo "$ac_cv_search_atoll" >&6; }
5092 ac_res=$ac_cv_search_atoll
5093 if test "$ac_res" != no; then :
5094 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5096 else
5098 $as_echo "#define atoll atol" >>confdefs.h
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
5103 $as_echo_n "checking for library containing hstrerror... " >&6; }
5104 if ${ac_cv_search_hstrerror+:} false; then :
5105 $as_echo_n "(cached) " >&6
5106 else
5107 ac_func_search_save_LIBS=$LIBS
5108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5109 /* end confdefs.h. */
5111 /* Override any GCC internal prototype to avoid an error.
5112 Use char because int might match the return type of a GCC
5113 builtin and then its argument prototype would still apply. */
5114 #ifdef __cplusplus
5115 extern "C"
5116 #endif
5117 char hstrerror ();
5119 main ()
5121 return hstrerror ();
5123 return 0;
5125 _ACEOF
5126 for ac_lib in '' resolv socket nsl; do
5127 if test -z "$ac_lib"; then
5128 ac_res="none required"
5129 else
5130 ac_res=-l$ac_lib
5131 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5133 if ac_fn_c_try_link "$LINENO"; then :
5134 ac_cv_search_hstrerror=$ac_res
5136 rm -f core conftest.err conftest.$ac_objext \
5137 conftest$ac_exeext
5138 if ${ac_cv_search_hstrerror+:} false; then :
5139 break
5141 done
5142 if ${ac_cv_search_hstrerror+:} false; then :
5144 else
5145 ac_cv_search_hstrerror=no
5147 rm conftest.$ac_ext
5148 LIBS=$ac_func_search_save_LIBS
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
5151 $as_echo "$ac_cv_search_hstrerror" >&6; }
5152 ac_res=$ac_cv_search_hstrerror
5153 if test "$ac_res" != no; then :
5154 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5156 $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
5161 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
5162 if ${ac_cv_search_getaddrinfo+:} false; then :
5163 $as_echo_n "(cached) " >&6
5164 else
5165 ac_func_search_save_LIBS=$LIBS
5166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5167 /* end confdefs.h. */
5169 /* Override any GCC internal prototype to avoid an error.
5170 Use char because int might match the return type of a GCC
5171 builtin and then its argument prototype would still apply. */
5172 #ifdef __cplusplus
5173 extern "C"
5174 #endif
5175 char getaddrinfo ();
5177 main ()
5179 return getaddrinfo ();
5181 return 0;
5183 _ACEOF
5184 for ac_lib in '' resolv socket nsl; do
5185 if test -z "$ac_lib"; then
5186 ac_res="none required"
5187 else
5188 ac_res=-l$ac_lib
5189 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5191 if ac_fn_c_try_link "$LINENO"; then :
5192 ac_cv_search_getaddrinfo=$ac_res
5194 rm -f core conftest.err conftest.$ac_objext \
5195 conftest$ac_exeext
5196 if ${ac_cv_search_getaddrinfo+:} false; then :
5197 break
5199 done
5200 if ${ac_cv_search_getaddrinfo+:} false; then :
5202 else
5203 ac_cv_search_getaddrinfo=no
5205 rm conftest.$ac_ext
5206 LIBS=$ac_func_search_save_LIBS
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
5209 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
5210 ac_res=$ac_cv_search_getaddrinfo
5211 if test "$ac_res" != no; then :
5212 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5214 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
5219 $as_echo_n "checking for library containing socket... " >&6; }
5220 if ${ac_cv_search_socket+:} false; then :
5221 $as_echo_n "(cached) " >&6
5222 else
5223 ac_func_search_save_LIBS=$LIBS
5224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5225 /* end confdefs.h. */
5227 /* Override any GCC internal prototype to avoid an error.
5228 Use char because int might match the return type of a GCC
5229 builtin and then its argument prototype would still apply. */
5230 #ifdef __cplusplus
5231 extern "C"
5232 #endif
5233 char socket ();
5235 main ()
5237 return socket ();
5239 return 0;
5241 _ACEOF
5242 for ac_lib in '' socket; do
5243 if test -z "$ac_lib"; then
5244 ac_res="none required"
5245 else
5246 ac_res=-l$ac_lib
5247 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5249 if ac_fn_c_try_link "$LINENO"; then :
5250 ac_cv_search_socket=$ac_res
5252 rm -f core conftest.err conftest.$ac_objext \
5253 conftest$ac_exeext
5254 if ${ac_cv_search_socket+:} false; then :
5255 break
5257 done
5258 if ${ac_cv_search_socket+:} false; then :
5260 else
5261 ac_cv_search_socket=no
5263 rm conftest.$ac_ext
5264 LIBS=$ac_func_search_save_LIBS
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
5267 $as_echo "$ac_cv_search_socket" >&6; }
5268 ac_res=$ac_cv_search_socket
5269 if test "$ac_res" != no; then :
5270 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5272 else
5273 as_fn_error $? "could not find the library containing network functions!" "$LINENO" 5
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
5277 $as_echo_n "checking for library containing gethostbyname... " >&6; }
5278 if ${ac_cv_search_gethostbyname+:} false; then :
5279 $as_echo_n "(cached) " >&6
5280 else
5281 ac_func_search_save_LIBS=$LIBS
5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h. */
5285 /* Override any GCC internal prototype to avoid an error.
5286 Use char because int might match the return type of a GCC
5287 builtin and then its argument prototype would still apply. */
5288 #ifdef __cplusplus
5289 extern "C"
5290 #endif
5291 char gethostbyname ();
5293 main ()
5295 return gethostbyname ();
5297 return 0;
5299 _ACEOF
5300 for ac_lib in '' nsl; do
5301 if test -z "$ac_lib"; then
5302 ac_res="none required"
5303 else
5304 ac_res=-l$ac_lib
5305 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5307 if ac_fn_c_try_link "$LINENO"; then :
5308 ac_cv_search_gethostbyname=$ac_res
5310 rm -f core conftest.err conftest.$ac_objext \
5311 conftest$ac_exeext
5312 if ${ac_cv_search_gethostbyname+:} false; then :
5313 break
5315 done
5316 if ${ac_cv_search_gethostbyname+:} false; then :
5318 else
5319 ac_cv_search_gethostbyname=no
5321 rm conftest.$ac_ext
5322 LIBS=$ac_func_search_save_LIBS
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
5325 $as_echo "$ac_cv_search_gethostbyname" >&6; }
5326 ac_res=$ac_cv_search_gethostbyname
5327 if test "$ac_res" != no; then :
5328 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5330 else
5331 as_fn_error $? "could not find the library containing name convertion functions!" "$LINENO" 5
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfile" >&5
5335 $as_echo_n "checking for library containing sendfile... " >&6; }
5336 if ${ac_cv_search_sendfile+:} false; then :
5337 $as_echo_n "(cached) " >&6
5338 else
5339 ac_func_search_save_LIBS=$LIBS
5340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5341 /* end confdefs.h. */
5343 /* Override any GCC internal prototype to avoid an error.
5344 Use char because int might match the return type of a GCC
5345 builtin and then its argument prototype would still apply. */
5346 #ifdef __cplusplus
5347 extern "C"
5348 #endif
5349 char sendfile ();
5351 main ()
5353 return sendfile ();
5355 return 0;
5357 _ACEOF
5358 for ac_lib in '' sendfile; do
5359 if test -z "$ac_lib"; then
5360 ac_res="none required"
5361 else
5362 ac_res=-l$ac_lib
5363 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5365 if ac_fn_c_try_link "$LINENO"; then :
5366 ac_cv_search_sendfile=$ac_res
5368 rm -f core conftest.err conftest.$ac_objext \
5369 conftest$ac_exeext
5370 if ${ac_cv_search_sendfile+:} false; then :
5371 break
5373 done
5374 if ${ac_cv_search_sendfile+:} false; then :
5376 else
5377 ac_cv_search_sendfile=no
5379 rm conftest.$ac_ext
5380 LIBS=$ac_func_search_save_LIBS
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfile" >&5
5383 $as_echo "$ac_cv_search_sendfile" >&6; }
5384 ac_res=$ac_cv_search_sendfile
5385 if test "$ac_res" != no; then :
5386 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5388 $as_echo "#define HAVE_SENDFILE 1" >>confdefs.h
5392 ac_fn_c_check_header_mongrel "$LINENO" "sys/sendfile.h" "ac_cv_header_sys_sendfile_h" "$ac_includes_default"
5393 if test "x$ac_cv_header_sys_sendfile_h" = xyes; then :
5395 $as_echo "#define HAVE_SENDFILE_H 1" >>confdefs.h
5400 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5401 if test "x$ac_cv_type_size_t" = xyes; then :
5403 else
5405 cat >>confdefs.h <<_ACEOF
5406 #define size_t unsigned int
5407 _ACEOF
5411 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5412 # for constant arguments. Useless!
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5414 $as_echo_n "checking for working alloca.h... " >&6; }
5415 if ${ac_cv_working_alloca_h+:} false; then :
5416 $as_echo_n "(cached) " >&6
5417 else
5418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5419 /* end confdefs.h. */
5420 #include <alloca.h>
5422 main ()
5424 char *p = (char *) alloca (2 * sizeof (int));
5425 if (p) return 0;
5427 return 0;
5429 _ACEOF
5430 if ac_fn_c_try_link "$LINENO"; then :
5431 ac_cv_working_alloca_h=yes
5432 else
5433 ac_cv_working_alloca_h=no
5435 rm -f core conftest.err conftest.$ac_objext \
5436 conftest$ac_exeext conftest.$ac_ext
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5439 $as_echo "$ac_cv_working_alloca_h" >&6; }
5440 if test $ac_cv_working_alloca_h = yes; then
5442 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5447 $as_echo_n "checking for alloca... " >&6; }
5448 if ${ac_cv_func_alloca_works+:} false; then :
5449 $as_echo_n "(cached) " >&6
5450 else
5451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452 /* end confdefs.h. */
5453 #ifdef __GNUC__
5454 # define alloca __builtin_alloca
5455 #else
5456 # ifdef _MSC_VER
5457 # include <malloc.h>
5458 # define alloca _alloca
5459 # else
5460 # ifdef HAVE_ALLOCA_H
5461 # include <alloca.h>
5462 # else
5463 # ifdef _AIX
5464 #pragma alloca
5465 # else
5466 # ifndef alloca /* predefined by HP cc +Olibcalls */
5467 void *alloca (size_t);
5468 # endif
5469 # endif
5470 # endif
5471 # endif
5472 #endif
5475 main ()
5477 char *p = (char *) alloca (1);
5478 if (p) return 0;
5480 return 0;
5482 _ACEOF
5483 if ac_fn_c_try_link "$LINENO"; then :
5484 ac_cv_func_alloca_works=yes
5485 else
5486 ac_cv_func_alloca_works=no
5488 rm -f core conftest.err conftest.$ac_objext \
5489 conftest$ac_exeext conftest.$ac_ext
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5492 $as_echo "$ac_cv_func_alloca_works" >&6; }
5494 if test $ac_cv_func_alloca_works = yes; then
5496 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5498 else
5499 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5500 # that cause trouble. Some versions do not even contain alloca or
5501 # contain a buggy version. If you still want to use their alloca,
5502 # use ar to extract alloca.o from them instead of compiling alloca.c.
5504 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5506 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5510 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5511 if ${ac_cv_os_cray+:} false; then :
5512 $as_echo_n "(cached) " >&6
5513 else
5514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5515 /* end confdefs.h. */
5516 #if defined CRAY && ! defined CRAY2
5517 webecray
5518 #else
5519 wenotbecray
5520 #endif
5522 _ACEOF
5523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5524 $EGREP "webecray" >/dev/null 2>&1; then :
5525 ac_cv_os_cray=yes
5526 else
5527 ac_cv_os_cray=no
5529 rm -f conftest*
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5533 $as_echo "$ac_cv_os_cray" >&6; }
5534 if test $ac_cv_os_cray = yes; then
5535 for ac_func in _getb67 GETB67 getb67; do
5536 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5537 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5538 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5540 cat >>confdefs.h <<_ACEOF
5541 #define CRAY_STACKSEG_END $ac_func
5542 _ACEOF
5544 break
5547 done
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5551 $as_echo_n "checking stack direction for C alloca... " >&6; }
5552 if ${ac_cv_c_stack_direction+:} false; then :
5553 $as_echo_n "(cached) " >&6
5554 else
5555 if test "$cross_compiling" = yes; then :
5556 ac_cv_c_stack_direction=0
5557 else
5558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5559 /* end confdefs.h. */
5560 $ac_includes_default
5562 find_stack_direction (int *addr, int depth)
5564 int dir, dummy = 0;
5565 if (! addr)
5566 addr = &dummy;
5567 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5568 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5569 return dir + dummy;
5573 main (int argc, char **argv)
5575 return find_stack_direction (0, argc + !argv + 20) < 0;
5577 _ACEOF
5578 if ac_fn_c_try_run "$LINENO"; then :
5579 ac_cv_c_stack_direction=1
5580 else
5581 ac_cv_c_stack_direction=-1
5583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5584 conftest.$ac_objext conftest.beam conftest.$ac_ext
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5589 $as_echo "$ac_cv_c_stack_direction" >&6; }
5590 cat >>confdefs.h <<_ACEOF
5591 #define STACK_DIRECTION $ac_cv_c_stack_direction
5592 _ACEOF
5599 # Check whether --enable-debug was given.
5600 if test "${enable_debug+set}" = set; then :
5601 enableval=$enable_debug;
5602 else
5603 enable_debug=yes
5607 if test x$enable_debug = xyes ; then
5609 $as_echo "#define DEBUG 1" >>confdefs.h
5613 # Check whether --enable-md5 was given.
5614 if test "${enable_md5+set}" = set; then :
5615 enableval=$enable_md5;
5616 else
5617 enable_md5=auto
5621 if test x$enable_md5 != xno ; then
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mhash_init" >&5
5623 $as_echo_n "checking for library containing mhash_init... " >&6; }
5624 if ${ac_cv_search_mhash_init+:} false; then :
5625 $as_echo_n "(cached) " >&6
5626 else
5627 ac_func_search_save_LIBS=$LIBS
5628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5629 /* end confdefs.h. */
5631 /* Override any GCC internal prototype to avoid an error.
5632 Use char because int might match the return type of a GCC
5633 builtin and then its argument prototype would still apply. */
5634 #ifdef __cplusplus
5635 extern "C"
5636 #endif
5637 char mhash_init ();
5639 main ()
5641 return mhash_init ();
5643 return 0;
5645 _ACEOF
5646 for ac_lib in '' mhash; do
5647 if test -z "$ac_lib"; then
5648 ac_res="none required"
5649 else
5650 ac_res=-l$ac_lib
5651 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5653 if ac_fn_c_try_link "$LINENO"; then :
5654 ac_cv_search_mhash_init=$ac_res
5656 rm -f core conftest.err conftest.$ac_objext \
5657 conftest$ac_exeext
5658 if ${ac_cv_search_mhash_init+:} false; then :
5659 break
5661 done
5662 if ${ac_cv_search_mhash_init+:} false; then :
5664 else
5665 ac_cv_search_mhash_init=no
5667 rm conftest.$ac_ext
5668 LIBS=$ac_func_search_save_LIBS
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mhash_init" >&5
5671 $as_echo "$ac_cv_search_mhash_init" >&6; }
5672 ac_res=$ac_cv_search_mhash_init
5673 if test "$ac_res" != no; then :
5674 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5676 $as_echo "#define HAVE_LIBMHASH 1" >>confdefs.h
5678 else
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
5680 $as_echo_n "checking for library containing MD5Init... " >&6; }
5681 if ${ac_cv_search_MD5Init+:} false; then :
5682 $as_echo_n "(cached) " >&6
5683 else
5684 ac_func_search_save_LIBS=$LIBS
5685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5686 /* end confdefs.h. */
5688 /* Override any GCC internal prototype to avoid an error.
5689 Use char because int might match the return type of a GCC
5690 builtin and then its argument prototype would still apply. */
5691 #ifdef __cplusplus
5692 extern "C"
5693 #endif
5694 char MD5Init ();
5696 main ()
5698 return MD5Init ();
5700 return 0;
5702 _ACEOF
5703 for ac_lib in '' md5; do
5704 if test -z "$ac_lib"; then
5705 ac_res="none required"
5706 else
5707 ac_res=-l$ac_lib
5708 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5710 if ac_fn_c_try_link "$LINENO"; then :
5711 ac_cv_search_MD5Init=$ac_res
5713 rm -f core conftest.err conftest.$ac_objext \
5714 conftest$ac_exeext
5715 if ${ac_cv_search_MD5Init+:} false; then :
5716 break
5718 done
5719 if ${ac_cv_search_MD5Init+:} false; then :
5721 else
5722 ac_cv_search_MD5Init=no
5724 rm conftest.$ac_ext
5725 LIBS=$ac_func_search_save_LIBS
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
5728 $as_echo "$ac_cv_search_MD5Init" >&6; }
5729 ac_res=$ac_cv_search_MD5Init
5730 if test "$ac_res" != no; then :
5731 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5733 $as_echo "#define HAVE_LIBMD5 1" >>confdefs.h
5735 else
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5_Init" >&5
5737 $as_echo_n "checking for library containing MD5_Init... " >&6; }
5738 if ${ac_cv_search_MD5_Init+:} false; then :
5739 $as_echo_n "(cached) " >&6
5740 else
5741 ac_func_search_save_LIBS=$LIBS
5742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743 /* end confdefs.h. */
5745 /* Override any GCC internal prototype to avoid an error.
5746 Use char because int might match the return type of a GCC
5747 builtin and then its argument prototype would still apply. */
5748 #ifdef __cplusplus
5749 extern "C"
5750 #endif
5751 char MD5_Init ();
5753 main ()
5755 return MD5_Init ();
5757 return 0;
5759 _ACEOF
5760 for ac_lib in '' crypto; do
5761 if test -z "$ac_lib"; then
5762 ac_res="none required"
5763 else
5764 ac_res=-l$ac_lib
5765 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5767 if ac_fn_c_try_link "$LINENO"; then :
5768 ac_cv_search_MD5_Init=$ac_res
5770 rm -f core conftest.err conftest.$ac_objext \
5771 conftest$ac_exeext
5772 if ${ac_cv_search_MD5_Init+:} false; then :
5773 break
5775 done
5776 if ${ac_cv_search_MD5_Init+:} false; then :
5778 else
5779 ac_cv_search_MD5_Init=no
5781 rm conftest.$ac_ext
5782 LIBS=$ac_func_search_save_LIBS
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5_Init" >&5
5785 $as_echo "$ac_cv_search_MD5_Init" >&6; }
5786 ac_res=$ac_cv_search_MD5_Init
5787 if test "$ac_res" != no; then :
5788 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5790 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
5792 else
5793 if test x$enable_md5 = xauto ; then
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find a library containing the md5 hash functions - md5 support disabled" >&5
5795 $as_echo "$as_me: WARNING: could not find a library containing the md5 hash functions - md5 support disabled" >&2;}
5796 else
5797 as_fn_error $? "could not find the mhash library" "$LINENO" 5
5812 $as_echo "#define _REENTRANT 1" >>confdefs.h
5815 ac_config_files="$ac_config_files Makefile mbuffer.1"
5817 cat >confcache <<\_ACEOF
5818 # This file is a shell script that caches the results of configure
5819 # tests run on this system so they can be shared between configure
5820 # scripts and configure runs, see configure's option --config-cache.
5821 # It is not useful on other systems. If it contains results you don't
5822 # want to keep, you may remove or edit it.
5824 # config.status only pays attention to the cache file if you give it
5825 # the --recheck option to rerun configure.
5827 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5828 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5829 # following values.
5831 _ACEOF
5833 # The following way of writing the cache mishandles newlines in values,
5834 # but we know of no workaround that is simple, portable, and efficient.
5835 # So, we kill variables containing newlines.
5836 # Ultrix sh set writes to stderr and can't be redirected directly,
5837 # and sets the high bit in the cache file unless we assign to the vars.
5839 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5840 eval ac_val=\$$ac_var
5841 case $ac_val in #(
5842 *${as_nl}*)
5843 case $ac_var in #(
5844 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5845 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5846 esac
5847 case $ac_var in #(
5848 _ | IFS | as_nl) ;; #(
5849 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5850 *) { eval $ac_var=; unset $ac_var;} ;;
5851 esac ;;
5852 esac
5853 done
5855 (set) 2>&1 |
5856 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5857 *${as_nl}ac_space=\ *)
5858 # `set' does not quote correctly, so add quotes: double-quote
5859 # substitution turns \\\\ into \\, and sed turns \\ into \.
5860 sed -n \
5861 "s/'/'\\\\''/g;
5862 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5863 ;; #(
5865 # `set' quotes correctly as required by POSIX, so do not add quotes.
5866 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5868 esac |
5869 sort
5871 sed '
5872 /^ac_cv_env_/b end
5873 t clear
5874 :clear
5875 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5876 t end
5877 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5878 :end' >>confcache
5879 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5880 if test -w "$cache_file"; then
5881 if test "x$cache_file" != "x/dev/null"; then
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5883 $as_echo "$as_me: updating cache $cache_file" >&6;}
5884 if test ! -f "$cache_file" || test -h "$cache_file"; then
5885 cat confcache >"$cache_file"
5886 else
5887 case $cache_file in #(
5888 */* | ?:*)
5889 mv -f confcache "$cache_file"$$ &&
5890 mv -f "$cache_file"$$ "$cache_file" ;; #(
5892 mv -f confcache "$cache_file" ;;
5893 esac
5896 else
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5898 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5901 rm -f confcache
5903 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5904 # Let make expand exec_prefix.
5905 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5907 DEFS=-DHAVE_CONFIG_H
5909 ac_libobjs=
5910 ac_ltlibobjs=
5912 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5913 # 1. Remove the extension, and $U if already installed.
5914 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5915 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5916 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5917 # will be set to the directory where LIBOBJS objects are built.
5918 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5919 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5920 done
5921 LIBOBJS=$ac_libobjs
5923 LTLIBOBJS=$ac_ltlibobjs
5927 : "${CONFIG_STATUS=./config.status}"
5928 ac_write_fail=0
5929 ac_clean_files_save=$ac_clean_files
5930 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5932 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5933 as_write_fail=0
5934 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5935 #! $SHELL
5936 # Generated by $as_me.
5937 # Run this file to recreate the current configuration.
5938 # Compiler output produced by configure, useful for debugging
5939 # configure, is in config.log if it exists.
5941 debug=false
5942 ac_cs_recheck=false
5943 ac_cs_silent=false
5945 SHELL=\${CONFIG_SHELL-$SHELL}
5946 export SHELL
5947 _ASEOF
5948 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5949 ## -------------------- ##
5950 ## M4sh Initialization. ##
5951 ## -------------------- ##
5953 # Be more Bourne compatible
5954 DUALCASE=1; export DUALCASE # for MKS sh
5955 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5956 emulate sh
5957 NULLCMD=:
5958 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5959 # is contrary to our usage. Disable this feature.
5960 alias -g '${1+"$@"}'='"$@"'
5961 setopt NO_GLOB_SUBST
5962 else
5963 case `(set -o) 2>/dev/null` in #(
5964 *posix*) :
5965 set -o posix ;; #(
5966 *) :
5968 esac
5972 as_nl='
5974 export as_nl
5975 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5976 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5977 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5978 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5979 # Prefer a ksh shell builtin over an external printf program on Solaris,
5980 # but without wasting forks for bash or zsh.
5981 if test -z "$BASH_VERSION$ZSH_VERSION" \
5982 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5983 as_echo='print -r --'
5984 as_echo_n='print -rn --'
5985 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5986 as_echo='printf %s\n'
5987 as_echo_n='printf %s'
5988 else
5989 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5990 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5991 as_echo_n='/usr/ucb/echo -n'
5992 else
5993 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5994 as_echo_n_body='eval
5995 arg=$1;
5996 case $arg in #(
5997 *"$as_nl"*)
5998 expr "X$arg" : "X\\(.*\\)$as_nl";
5999 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6000 esac;
6001 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6003 export as_echo_n_body
6004 as_echo_n='sh -c $as_echo_n_body as_echo'
6006 export as_echo_body
6007 as_echo='sh -c $as_echo_body as_echo'
6010 # The user is always right.
6011 if test "${PATH_SEPARATOR+set}" != set; then
6012 PATH_SEPARATOR=:
6013 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6014 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6015 PATH_SEPARATOR=';'
6020 # IFS
6021 # We need space, tab and new line, in precisely that order. Quoting is
6022 # there to prevent editors from complaining about space-tab.
6023 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6024 # splitting by setting IFS to empty value.)
6025 IFS=" "" $as_nl"
6027 # Find who we are. Look in the path if we contain no directory separator.
6028 as_myself=
6029 case $0 in #((
6030 *[\\/]* ) as_myself=$0 ;;
6031 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6032 for as_dir in $PATH
6034 IFS=$as_save_IFS
6035 test -z "$as_dir" && as_dir=.
6036 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6037 done
6038 IFS=$as_save_IFS
6041 esac
6042 # We did not find ourselves, most probably we were run as `sh COMMAND'
6043 # in which case we are not to be found in the path.
6044 if test "x$as_myself" = x; then
6045 as_myself=$0
6047 if test ! -f "$as_myself"; then
6048 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6049 exit 1
6052 # Unset variables that we do not need and which cause bugs (e.g. in
6053 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6054 # suppresses any "Segmentation fault" message there. '((' could
6055 # trigger a bug in pdksh 5.2.14.
6056 for as_var in BASH_ENV ENV MAIL MAILPATH
6057 do eval test x\${$as_var+set} = xset \
6058 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6059 done
6060 PS1='$ '
6061 PS2='> '
6062 PS4='+ '
6064 # NLS nuisances.
6065 LC_ALL=C
6066 export LC_ALL
6067 LANGUAGE=C
6068 export LANGUAGE
6070 # CDPATH.
6071 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6074 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6075 # ----------------------------------------
6076 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6077 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6078 # script with STATUS, using 1 if that was 0.
6079 as_fn_error ()
6081 as_status=$1; test $as_status -eq 0 && as_status=1
6082 if test "$4"; then
6083 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6084 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6086 $as_echo "$as_me: error: $2" >&2
6087 as_fn_exit $as_status
6088 } # as_fn_error
6091 # as_fn_set_status STATUS
6092 # -----------------------
6093 # Set $? to STATUS, without forking.
6094 as_fn_set_status ()
6096 return $1
6097 } # as_fn_set_status
6099 # as_fn_exit STATUS
6100 # -----------------
6101 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6102 as_fn_exit ()
6104 set +e
6105 as_fn_set_status $1
6106 exit $1
6107 } # as_fn_exit
6109 # as_fn_unset VAR
6110 # ---------------
6111 # Portably unset VAR.
6112 as_fn_unset ()
6114 { eval $1=; unset $1;}
6116 as_unset=as_fn_unset
6117 # as_fn_append VAR VALUE
6118 # ----------------------
6119 # Append the text in VALUE to the end of the definition contained in VAR. Take
6120 # advantage of any shell optimizations that allow amortized linear growth over
6121 # repeated appends, instead of the typical quadratic growth present in naive
6122 # implementations.
6123 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6124 eval 'as_fn_append ()
6126 eval $1+=\$2
6128 else
6129 as_fn_append ()
6131 eval $1=\$$1\$2
6133 fi # as_fn_append
6135 # as_fn_arith ARG...
6136 # ------------------
6137 # Perform arithmetic evaluation on the ARGs, and store the result in the
6138 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6139 # must be portable across $(()) and expr.
6140 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6141 eval 'as_fn_arith ()
6143 as_val=$(( $* ))
6145 else
6146 as_fn_arith ()
6148 as_val=`expr "$@" || test $? -eq 1`
6150 fi # as_fn_arith
6153 if expr a : '\(a\)' >/dev/null 2>&1 &&
6154 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6155 as_expr=expr
6156 else
6157 as_expr=false
6160 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6161 as_basename=basename
6162 else
6163 as_basename=false
6166 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6167 as_dirname=dirname
6168 else
6169 as_dirname=false
6172 as_me=`$as_basename -- "$0" ||
6173 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6174 X"$0" : 'X\(//\)$' \| \
6175 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6176 $as_echo X/"$0" |
6177 sed '/^.*\/\([^/][^/]*\)\/*$/{
6178 s//\1/
6181 /^X\/\(\/\/\)$/{
6182 s//\1/
6185 /^X\/\(\/\).*/{
6186 s//\1/
6189 s/.*/./; q'`
6191 # Avoid depending upon Character Ranges.
6192 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6193 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6194 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6195 as_cr_digits='0123456789'
6196 as_cr_alnum=$as_cr_Letters$as_cr_digits
6198 ECHO_C= ECHO_N= ECHO_T=
6199 case `echo -n x` in #(((((
6200 -n*)
6201 case `echo 'xy\c'` in
6202 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6203 xy) ECHO_C='\c';;
6204 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6205 ECHO_T=' ';;
6206 esac;;
6208 ECHO_N='-n';;
6209 esac
6211 rm -f conf$$ conf$$.exe conf$$.file
6212 if test -d conf$$.dir; then
6213 rm -f conf$$.dir/conf$$.file
6214 else
6215 rm -f conf$$.dir
6216 mkdir conf$$.dir 2>/dev/null
6218 if (echo >conf$$.file) 2>/dev/null; then
6219 if ln -s conf$$.file conf$$ 2>/dev/null; then
6220 as_ln_s='ln -s'
6221 # ... but there are two gotchas:
6222 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6223 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6224 # In both cases, we have to default to `cp -pR'.
6225 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6226 as_ln_s='cp -pR'
6227 elif ln conf$$.file conf$$ 2>/dev/null; then
6228 as_ln_s=ln
6229 else
6230 as_ln_s='cp -pR'
6232 else
6233 as_ln_s='cp -pR'
6235 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6236 rmdir conf$$.dir 2>/dev/null
6239 # as_fn_mkdir_p
6240 # -------------
6241 # Create "$as_dir" as a directory, including parents if necessary.
6242 as_fn_mkdir_p ()
6245 case $as_dir in #(
6246 -*) as_dir=./$as_dir;;
6247 esac
6248 test -d "$as_dir" || eval $as_mkdir_p || {
6249 as_dirs=
6250 while :; do
6251 case $as_dir in #(
6252 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6253 *) as_qdir=$as_dir;;
6254 esac
6255 as_dirs="'$as_qdir' $as_dirs"
6256 as_dir=`$as_dirname -- "$as_dir" ||
6257 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6258 X"$as_dir" : 'X\(//\)[^/]' \| \
6259 X"$as_dir" : 'X\(//\)$' \| \
6260 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6261 $as_echo X"$as_dir" |
6262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6263 s//\1/
6266 /^X\(\/\/\)[^/].*/{
6267 s//\1/
6270 /^X\(\/\/\)$/{
6271 s//\1/
6274 /^X\(\/\).*/{
6275 s//\1/
6278 s/.*/./; q'`
6279 test -d "$as_dir" && break
6280 done
6281 test -z "$as_dirs" || eval "mkdir $as_dirs"
6282 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6285 } # as_fn_mkdir_p
6286 if mkdir -p . 2>/dev/null; then
6287 as_mkdir_p='mkdir -p "$as_dir"'
6288 else
6289 test -d ./-p && rmdir ./-p
6290 as_mkdir_p=false
6294 # as_fn_executable_p FILE
6295 # -----------------------
6296 # Test if FILE is an executable regular file.
6297 as_fn_executable_p ()
6299 test -f "$1" && test -x "$1"
6300 } # as_fn_executable_p
6301 as_test_x='test -x'
6302 as_executable_p=as_fn_executable_p
6304 # Sed expression to map a string onto a valid CPP name.
6305 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6307 # Sed expression to map a string onto a valid variable name.
6308 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6311 exec 6>&1
6312 ## ----------------------------------- ##
6313 ## Main body of $CONFIG_STATUS script. ##
6314 ## ----------------------------------- ##
6315 _ASEOF
6316 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6319 # Save the log message, to keep $0 and so on meaningful, and to
6320 # report actual input values of CONFIG_FILES etc. instead of their
6321 # values after options handling.
6322 ac_log="
6323 This file was extended by mbuffer $as_me 20150412, which was
6324 generated by GNU Autoconf 2.69. Invocation command line was
6326 CONFIG_FILES = $CONFIG_FILES
6327 CONFIG_HEADERS = $CONFIG_HEADERS
6328 CONFIG_LINKS = $CONFIG_LINKS
6329 CONFIG_COMMANDS = $CONFIG_COMMANDS
6330 $ $0 $@
6332 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6335 _ACEOF
6337 case $ac_config_files in *"
6338 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6339 esac
6341 case $ac_config_headers in *"
6342 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6343 esac
6346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6347 # Files that config.status was made for.
6348 config_files="$ac_config_files"
6349 config_headers="$ac_config_headers"
6351 _ACEOF
6353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6354 ac_cs_usage="\
6355 \`$as_me' instantiates files and other configuration actions
6356 from templates according to the current configuration. Unless the files
6357 and actions are specified as TAGs, all are instantiated by default.
6359 Usage: $0 [OPTION]... [TAG]...
6361 -h, --help print this help, then exit
6362 -V, --version print version number and configuration settings, then exit
6363 --config print configuration, then exit
6364 -q, --quiet, --silent
6365 do not print progress messages
6366 -d, --debug don't remove temporary files
6367 --recheck update $as_me by reconfiguring in the same conditions
6368 --file=FILE[:TEMPLATE]
6369 instantiate the configuration file FILE
6370 --header=FILE[:TEMPLATE]
6371 instantiate the configuration header FILE
6373 Configuration files:
6374 $config_files
6376 Configuration headers:
6377 $config_headers
6379 Report bugs to the package provider."
6381 _ACEOF
6382 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6383 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6384 ac_cs_version="\\
6385 mbuffer config.status 20150412
6386 configured by $0, generated by GNU Autoconf 2.69,
6387 with options \\"\$ac_cs_config\\"
6389 Copyright (C) 2012 Free Software Foundation, Inc.
6390 This config.status script is free software; the Free Software Foundation
6391 gives unlimited permission to copy, distribute and modify it."
6393 ac_pwd='$ac_pwd'
6394 srcdir='$srcdir'
6395 INSTALL='$INSTALL'
6396 test -n "\$AWK" || AWK=awk
6397 _ACEOF
6399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6400 # The default lists apply if the user does not specify any file.
6401 ac_need_defaults=:
6402 while test $# != 0
6404 case $1 in
6405 --*=?*)
6406 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6407 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6408 ac_shift=:
6410 --*=)
6411 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6412 ac_optarg=
6413 ac_shift=:
6416 ac_option=$1
6417 ac_optarg=$2
6418 ac_shift=shift
6420 esac
6422 case $ac_option in
6423 # Handling of the options.
6424 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6425 ac_cs_recheck=: ;;
6426 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6427 $as_echo "$ac_cs_version"; exit ;;
6428 --config | --confi | --conf | --con | --co | --c )
6429 $as_echo "$ac_cs_config"; exit ;;
6430 --debug | --debu | --deb | --de | --d | -d )
6431 debug=: ;;
6432 --file | --fil | --fi | --f )
6433 $ac_shift
6434 case $ac_optarg in
6435 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6436 '') as_fn_error $? "missing file argument" ;;
6437 esac
6438 as_fn_append CONFIG_FILES " '$ac_optarg'"
6439 ac_need_defaults=false;;
6440 --header | --heade | --head | --hea )
6441 $ac_shift
6442 case $ac_optarg in
6443 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6444 esac
6445 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6446 ac_need_defaults=false;;
6447 --he | --h)
6448 # Conflict between --help and --header
6449 as_fn_error $? "ambiguous option: \`$1'
6450 Try \`$0 --help' for more information.";;
6451 --help | --hel | -h )
6452 $as_echo "$ac_cs_usage"; exit ;;
6453 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6454 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6455 ac_cs_silent=: ;;
6457 # This is an error.
6458 -*) as_fn_error $? "unrecognized option: \`$1'
6459 Try \`$0 --help' for more information." ;;
6461 *) as_fn_append ac_config_targets " $1"
6462 ac_need_defaults=false ;;
6464 esac
6465 shift
6466 done
6468 ac_configure_extra_args=
6470 if $ac_cs_silent; then
6471 exec 6>/dev/null
6472 ac_configure_extra_args="$ac_configure_extra_args --silent"
6475 _ACEOF
6476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6477 if \$ac_cs_recheck; then
6478 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6479 shift
6480 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6481 CONFIG_SHELL='$SHELL'
6482 export CONFIG_SHELL
6483 exec "\$@"
6486 _ACEOF
6487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6488 exec 5>>config.log
6490 echo
6491 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6492 ## Running $as_me. ##
6493 _ASBOX
6494 $as_echo "$ac_log"
6495 } >&5
6497 _ACEOF
6498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6499 _ACEOF
6501 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6503 # Handling of arguments.
6504 for ac_config_target in $ac_config_targets
6506 case $ac_config_target in
6507 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6508 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6509 "mbuffer.1") CONFIG_FILES="$CONFIG_FILES mbuffer.1" ;;
6511 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6512 esac
6513 done
6516 # If the user did not use the arguments to specify the items to instantiate,
6517 # then the envvar interface is used. Set only those that are not.
6518 # We use the long form for the default assignment because of an extremely
6519 # bizarre bug on SunOS 4.1.3.
6520 if $ac_need_defaults; then
6521 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6522 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6525 # Have a temporary directory for convenience. Make it in the build tree
6526 # simply because there is no reason against having it here, and in addition,
6527 # creating and moving files from /tmp can sometimes cause problems.
6528 # Hook for its removal unless debugging.
6529 # Note that there is a small window in which the directory will not be cleaned:
6530 # after its creation but before its name has been assigned to `$tmp'.
6531 $debug ||
6533 tmp= ac_tmp=
6534 trap 'exit_status=$?
6535 : "${ac_tmp:=$tmp}"
6536 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6538 trap 'as_fn_exit 1' 1 2 13 15
6540 # Create a (secure) tmp directory for tmp files.
6543 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6544 test -d "$tmp"
6545 } ||
6547 tmp=./conf$$-$RANDOM
6548 (umask 077 && mkdir "$tmp")
6549 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6550 ac_tmp=$tmp
6552 # Set up the scripts for CONFIG_FILES section.
6553 # No need to generate them if there are no CONFIG_FILES.
6554 # This happens for instance with `./config.status config.h'.
6555 if test -n "$CONFIG_FILES"; then
6558 ac_cr=`echo X | tr X '\015'`
6559 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6560 # But we know of no other shell where ac_cr would be empty at this
6561 # point, so we can use a bashism as a fallback.
6562 if test "x$ac_cr" = x; then
6563 eval ac_cr=\$\'\\r\'
6565 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6566 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6567 ac_cs_awk_cr='\\r'
6568 else
6569 ac_cs_awk_cr=$ac_cr
6572 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6573 _ACEOF
6577 echo "cat >conf$$subs.awk <<_ACEOF" &&
6578 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6579 echo "_ACEOF"
6580 } >conf$$subs.sh ||
6581 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6582 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6583 ac_delim='%!_!# '
6584 for ac_last_try in false false false false false :; do
6585 . ./conf$$subs.sh ||
6586 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6588 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6589 if test $ac_delim_n = $ac_delim_num; then
6590 break
6591 elif $ac_last_try; then
6592 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6593 else
6594 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6596 done
6597 rm -f conf$$subs.sh
6599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6600 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6601 _ACEOF
6602 sed -n '
6604 s/^/S["/; s/!.*/"]=/
6607 s/^[^!]*!//
6608 :repl
6609 t repl
6610 s/'"$ac_delim"'$//
6611 t delim
6614 s/\(.\{148\}\)..*/\1/
6615 t more1
6616 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6619 b repl
6620 :more1
6621 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6624 s/.\{148\}//
6625 t nl
6626 :delim
6628 s/\(.\{148\}\)..*/\1/
6629 t more2
6630 s/["\\]/\\&/g; s/^/"/; s/$/"/
6633 :more2
6634 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6637 s/.\{148\}//
6638 t delim
6639 ' <conf$$subs.awk | sed '
6640 /^[^""]/{
6642 s/\n//
6644 ' >>$CONFIG_STATUS || ac_write_fail=1
6645 rm -f conf$$subs.awk
6646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6647 _ACAWK
6648 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6649 for (key in S) S_is_set[key] = 1
6650 FS = "\a"
6654 line = $ 0
6655 nfields = split(line, field, "@")
6656 substed = 0
6657 len = length(field[1])
6658 for (i = 2; i < nfields; i++) {
6659 key = field[i]
6660 keylen = length(key)
6661 if (S_is_set[key]) {
6662 value = S[key]
6663 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6664 len += length(value) + length(field[++i])
6665 substed = 1
6666 } else
6667 len += 1 + keylen
6670 print line
6673 _ACAWK
6674 _ACEOF
6675 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6676 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6677 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6678 else
6680 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6681 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6682 _ACEOF
6684 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6685 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6686 # trailing colons and then remove the whole line if VPATH becomes empty
6687 # (actually we leave an empty line to preserve line numbers).
6688 if test "x$srcdir" = x.; then
6689 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6691 s///
6692 s/^/:/
6693 s/[ ]*$/:/
6694 s/:\$(srcdir):/:/g
6695 s/:\${srcdir}:/:/g
6696 s/:@srcdir@:/:/g
6697 s/^:*//
6698 s/:*$//
6700 s/\(=[ ]*\).*/\1/
6702 s/\n//
6703 s/^[^=]*=[ ]*$//
6707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6708 fi # test -n "$CONFIG_FILES"
6710 # Set up the scripts for CONFIG_HEADERS section.
6711 # No need to generate them if there are no CONFIG_HEADERS.
6712 # This happens for instance with `./config.status Makefile'.
6713 if test -n "$CONFIG_HEADERS"; then
6714 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6715 BEGIN {
6716 _ACEOF
6718 # Transform confdefs.h into an awk script `defines.awk', embedded as
6719 # here-document in config.status, that substitutes the proper values into
6720 # config.h.in to produce config.h.
6722 # Create a delimiter string that does not exist in confdefs.h, to ease
6723 # handling of long lines.
6724 ac_delim='%!_!# '
6725 for ac_last_try in false false :; do
6726 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6727 if test -z "$ac_tt"; then
6728 break
6729 elif $ac_last_try; then
6730 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6731 else
6732 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6734 done
6736 # For the awk script, D is an array of macro values keyed by name,
6737 # likewise P contains macro parameters if any. Preserve backslash
6738 # newline sequences.
6740 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6741 sed -n '
6742 s/.\{148\}/&'"$ac_delim"'/g
6743 t rset
6744 :rset
6745 s/^[ ]*#[ ]*define[ ][ ]*/ /
6746 t def
6748 :def
6749 s/\\$//
6750 t bsnl
6751 s/["\\]/\\&/g
6752 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6753 D["\1"]=" \3"/p
6754 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6756 :bsnl
6757 s/["\\]/\\&/g
6758 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6759 D["\1"]=" \3\\\\\\n"\\/p
6760 t cont
6761 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6762 t cont
6764 :cont
6766 s/.\{148\}/&'"$ac_delim"'/g
6767 t clear
6768 :clear
6769 s/\\$//
6770 t bsnlc
6771 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6773 :bsnlc
6774 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6775 b cont
6776 ' <confdefs.h | sed '
6777 s/'"$ac_delim"'/"\\\
6778 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6781 for (key in D) D_is_set[key] = 1
6782 FS = "\a"
6784 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6785 line = \$ 0
6786 split(line, arg, " ")
6787 if (arg[1] == "#") {
6788 defundef = arg[2]
6789 mac1 = arg[3]
6790 } else {
6791 defundef = substr(arg[1], 2)
6792 mac1 = arg[2]
6794 split(mac1, mac2, "(") #)
6795 macro = mac2[1]
6796 prefix = substr(line, 1, index(line, defundef) - 1)
6797 if (D_is_set[macro]) {
6798 # Preserve the white space surrounding the "#".
6799 print prefix "define", macro P[macro] D[macro]
6800 next
6801 } else {
6802 # Replace #undef with comments. This is necessary, for example,
6803 # in the case of _POSIX_SOURCE, which is predefined and required
6804 # on some systems where configure will not decide to define it.
6805 if (defundef == "undef") {
6806 print "/*", prefix defundef, macro, "*/"
6807 next
6811 { print }
6812 _ACAWK
6813 _ACEOF
6814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6815 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6816 fi # test -n "$CONFIG_HEADERS"
6819 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6820 shift
6821 for ac_tag
6823 case $ac_tag in
6824 :[FHLC]) ac_mode=$ac_tag; continue;;
6825 esac
6826 case $ac_mode$ac_tag in
6827 :[FHL]*:*);;
6828 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6829 :[FH]-) ac_tag=-:-;;
6830 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6831 esac
6832 ac_save_IFS=$IFS
6833 IFS=:
6834 set x $ac_tag
6835 IFS=$ac_save_IFS
6836 shift
6837 ac_file=$1
6838 shift
6840 case $ac_mode in
6841 :L) ac_source=$1;;
6842 :[FH])
6843 ac_file_inputs=
6844 for ac_f
6846 case $ac_f in
6847 -) ac_f="$ac_tmp/stdin";;
6848 *) # Look for the file first in the build tree, then in the source tree
6849 # (if the path is not absolute). The absolute path cannot be DOS-style,
6850 # because $ac_f cannot contain `:'.
6851 test -f "$ac_f" ||
6852 case $ac_f in
6853 [\\/$]*) false;;
6854 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6855 esac ||
6856 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6857 esac
6858 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6859 as_fn_append ac_file_inputs " '$ac_f'"
6860 done
6862 # Let's still pretend it is `configure' which instantiates (i.e., don't
6863 # use $as_me), people would be surprised to read:
6864 # /* config.h. Generated by config.status. */
6865 configure_input='Generated from '`
6866 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6867 `' by configure.'
6868 if test x"$ac_file" != x-; then
6869 configure_input="$ac_file. $configure_input"
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6871 $as_echo "$as_me: creating $ac_file" >&6;}
6873 # Neutralize special characters interpreted by sed in replacement strings.
6874 case $configure_input in #(
6875 *\&* | *\|* | *\\* )
6876 ac_sed_conf_input=`$as_echo "$configure_input" |
6877 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6878 *) ac_sed_conf_input=$configure_input;;
6879 esac
6881 case $ac_tag in
6882 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6883 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6884 esac
6886 esac
6888 ac_dir=`$as_dirname -- "$ac_file" ||
6889 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6890 X"$ac_file" : 'X\(//\)[^/]' \| \
6891 X"$ac_file" : 'X\(//\)$' \| \
6892 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6893 $as_echo X"$ac_file" |
6894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6895 s//\1/
6898 /^X\(\/\/\)[^/].*/{
6899 s//\1/
6902 /^X\(\/\/\)$/{
6903 s//\1/
6906 /^X\(\/\).*/{
6907 s//\1/
6910 s/.*/./; q'`
6911 as_dir="$ac_dir"; as_fn_mkdir_p
6912 ac_builddir=.
6914 case "$ac_dir" in
6915 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6917 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6918 # A ".." for each directory in $ac_dir_suffix.
6919 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6920 case $ac_top_builddir_sub in
6921 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6922 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6923 esac ;;
6924 esac
6925 ac_abs_top_builddir=$ac_pwd
6926 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6927 # for backward compatibility:
6928 ac_top_builddir=$ac_top_build_prefix
6930 case $srcdir in
6931 .) # We are building in place.
6932 ac_srcdir=.
6933 ac_top_srcdir=$ac_top_builddir_sub
6934 ac_abs_top_srcdir=$ac_pwd ;;
6935 [\\/]* | ?:[\\/]* ) # Absolute name.
6936 ac_srcdir=$srcdir$ac_dir_suffix;
6937 ac_top_srcdir=$srcdir
6938 ac_abs_top_srcdir=$srcdir ;;
6939 *) # Relative name.
6940 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6941 ac_top_srcdir=$ac_top_build_prefix$srcdir
6942 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6943 esac
6944 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6947 case $ac_mode in
6950 # CONFIG_FILE
6953 case $INSTALL in
6954 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6955 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6956 esac
6957 _ACEOF
6959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6960 # If the template does not know about datarootdir, expand it.
6961 # FIXME: This hack should be removed a few years after 2.60.
6962 ac_datarootdir_hack=; ac_datarootdir_seen=
6963 ac_sed_dataroot='
6964 /datarootdir/ {
6968 /@datadir@/p
6969 /@docdir@/p
6970 /@infodir@/p
6971 /@localedir@/p
6972 /@mandir@/p'
6973 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6974 *datarootdir*) ac_datarootdir_seen=yes;;
6975 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6977 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6978 _ACEOF
6979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6980 ac_datarootdir_hack='
6981 s&@datadir@&$datadir&g
6982 s&@docdir@&$docdir&g
6983 s&@infodir@&$infodir&g
6984 s&@localedir@&$localedir&g
6985 s&@mandir@&$mandir&g
6986 s&\\\${datarootdir}&$datarootdir&g' ;;
6987 esac
6988 _ACEOF
6990 # Neutralize VPATH when `$srcdir' = `.'.
6991 # Shell code in configure.ac might set extrasub.
6992 # FIXME: do we really want to maintain this feature?
6993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6994 ac_sed_extra="$ac_vpsub
6995 $extrasub
6996 _ACEOF
6997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6999 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7000 s|@configure_input@|$ac_sed_conf_input|;t t
7001 s&@top_builddir@&$ac_top_builddir_sub&;t t
7002 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7003 s&@srcdir@&$ac_srcdir&;t t
7004 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7005 s&@top_srcdir@&$ac_top_srcdir&;t t
7006 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7007 s&@builddir@&$ac_builddir&;t t
7008 s&@abs_builddir@&$ac_abs_builddir&;t t
7009 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7010 s&@INSTALL@&$ac_INSTALL&;t t
7011 $ac_datarootdir_hack
7013 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7014 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7016 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7017 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7018 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7019 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7021 which seems to be undefined. Please make sure it is defined" >&5
7022 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7023 which seems to be undefined. Please make sure it is defined" >&2;}
7025 rm -f "$ac_tmp/stdin"
7026 case $ac_file in
7027 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7028 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7029 esac \
7030 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7034 # CONFIG_HEADER
7036 if test x"$ac_file" != x-; then
7038 $as_echo "/* $configure_input */" \
7039 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7040 } >"$ac_tmp/config.h" \
7041 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7042 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7044 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7045 else
7046 rm -f "$ac_file"
7047 mv "$ac_tmp/config.h" "$ac_file" \
7048 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7050 else
7051 $as_echo "/* $configure_input */" \
7052 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7053 || as_fn_error $? "could not create -" "$LINENO" 5
7058 esac
7060 done # for ac_tag
7063 as_fn_exit 0
7064 _ACEOF
7065 ac_clean_files=$ac_clean_files_save
7067 test $ac_write_fail = 0 ||
7068 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7071 # configure is writing to config.log, and then calls config.status.
7072 # config.status does its own redirection, appending to config.log.
7073 # Unfortunately, on DOS this fails, as config.log is still kept open
7074 # by configure, so config.status won't be able to write to it; its
7075 # output is simply discarded. So we exec the FD to /dev/null,
7076 # effectively closing config.log, so it can be properly (re)opened and
7077 # appended to by config.status. When coming back to configure, we
7078 # need to make the FD available again.
7079 if test "$no_create" != yes; then
7080 ac_cs_success=:
7081 ac_config_status_args=
7082 test "$silent" = yes &&
7083 ac_config_status_args="$ac_config_status_args --quiet"
7084 exec 5>/dev/null
7085 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7086 exec 5>>config.log
7087 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7088 # would make configure fail if this is the last instruction.
7089 $ac_cs_success || as_fn_exit 1
7091 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7093 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7097 # vim:tw=0