Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 as_nop=:
19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20 then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else $as_nop
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
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
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed `exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="as_nop=:
142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143 then :
144 emulate sh
145 NULLCMD=:
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147 # is contrary to our usage. Disable this feature.
148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 setopt NO_GLOB_SUBST
150 else \$as_nop
151 case \`(set -o) 2>/dev/null\` in #(
152 *posix*) :
153 set -o posix ;; #(
154 *) :
155 ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else \$as_nop
174 exitcode=1; echo positional parameters were not saved.
175 fi
176 test x\$exitcode = x0 || exit 1
177 blah=\$(echo \$(echo blah))
178 test x\"\$blah\" = xblah || exit 1
179 test -x / || exit 1"
180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
184 if (eval "$as_required") 2>/dev/null
185 then :
186 as_have_required=yes
187 else $as_nop
188 as_have_required=no
189 fi
190 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
191 then :
192
193 else $as_nop
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198 IFS=$as_save_IFS
199 case $as_dir in #(((
200 '') as_dir=./ ;;
201 */) ;;
202 *) as_dir=$as_dir/ ;;
203 esac
204 as_found=:
205 case $as_dir in #(
206 /*)
207 for as_base in sh bash ksh sh5; do
208 # Try only shells that exist, to save several forks.
209 as_shell=$as_dir$as_base
210 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
211 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
212 then :
213 CONFIG_SHELL=$as_shell as_have_required=yes
214 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
215 then :
216 break 2
217 fi
218 fi
219 done;;
220 esac
221 as_found=false
222 done
223 IFS=$as_save_IFS
224 if $as_found
225 then :
226
227 else $as_nop
228 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
229 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
230 then :
231 CONFIG_SHELL=$SHELL as_have_required=yes
232 fi
233 fi
234
235
236 if test "x$CONFIG_SHELL" != x
237 then :
238 export CONFIG_SHELL
239 # We cannot yet assume a decent shell, so we have to provide a
240 # neutralization value for shells without unset; and this also
241 # works around shells that cannot unset nonexistent variables.
242 # Preserve -v and -x to the replacement shell.
243 BASH_ENV=/dev/null
244 ENV=/dev/null
245 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
246 case $- in # ((((
247 *v*x* | *x*v* ) as_opts=-vx ;;
248 *v* ) as_opts=-v ;;
249 *x* ) as_opts=-x ;;
250 * ) as_opts= ;;
251 esac
252 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
253 # Admittedly, this is quite paranoid, since all the known shells bail
254 # out after a failed `exec'.
255 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
256 exit 255
257 fi
258
259 if test x$as_have_required = xno
260 then :
261 printf "%s\n" "$0: This script requires a shell more modern than all"
262 printf "%s\n" "$0: the shells that I found on your system."
263 if test ${ZSH_VERSION+y} ; then
264 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 printf "%s\n" "$0: Please tell [email protected] 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."
271 fi
272 exit 1
273 fi
274 fi
275 fi
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
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294
295 # as_fn_set_status STATUS
296 # -----------------------
297 # Set $? to STATUS, without forking.
298 as_fn_set_status ()
299 {
300 return $1
301 } # as_fn_set_status
302
303 # as_fn_exit STATUS
304 # -----------------
305 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
306 as_fn_exit ()
307 {
308 set +e
309 as_fn_set_status $1
310 exit $1
311 } # as_fn_exit
312 # as_fn_nop
313 # ---------
314 # Do nothing but, unlike ":", preserve the value of $?.
315 as_fn_nop ()
316 {
317 return $?
318 }
319 as_nop=as_fn_nop
320
321 # as_fn_mkdir_p
322 # -------------
323 # Create "$as_dir" as a directory, including parents if necessary.
324 as_fn_mkdir_p ()
325 {
326
327 case $as_dir in #(
328 -*) as_dir=./$as_dir;;
329 esac
330 test -d "$as_dir" || eval $as_mkdir_p || {
331 as_dirs=
332 while :; do
333 case $as_dir in #(
334 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
335 *) as_qdir=$as_dir;;
336 esac
337 as_dirs="'$as_qdir' $as_dirs"
338 as_dir=`$as_dirname -- "$as_dir" ||
339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
340 X"$as_dir" : 'X\(//\)[^/]' \| \
341 X"$as_dir" : 'X\(//\)$' \| \
342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
343 printf "%s\n" X"$as_dir" |
344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
345 s//\1/
346 q
347 }
348 /^X\(\/\/\)[^/].*/{
349 s//\1/
350 q
351 }
352 /^X\(\/\/\)$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\).*/{
357 s//\1/
358 q
359 }
360 s/.*/./; q'`
361 test -d "$as_dir" && break
362 done
363 test -z "$as_dirs" || eval "mkdir $as_dirs"
364 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
365
366
367 } # as_fn_mkdir_p
368
369 # as_fn_executable_p FILE
370 # -----------------------
371 # Test if FILE is an executable regular file.
372 as_fn_executable_p ()
373 {
374 test -f "$1" && test -x "$1"
375 } # as_fn_executable_p
376 # as_fn_append VAR VALUE
377 # ----------------------
378 # Append the text in VALUE to the end of the definition contained in VAR. Take
379 # advantage of any shell optimizations that allow amortized linear growth over
380 # repeated appends, instead of the typical quadratic growth present in naive
381 # implementations.
382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
383 then :
384 eval 'as_fn_append ()
385 {
386 eval $1+=\$2
387 }'
388 else $as_nop
389 as_fn_append ()
390 {
391 eval $1=\$$1\$2
392 }
393 fi # as_fn_append
394
395 # as_fn_arith ARG...
396 # ------------------
397 # Perform arithmetic evaluation on the ARGs, and store the result in the
398 # global $as_val. Take advantage of shells that can avoid forks. The arguments
399 # must be portable across $(()) and expr.
400 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
401 then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else $as_nop
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413 # as_fn_nop
414 # ---------
415 # Do nothing but, unlike ":", preserve the value of $?.
416 as_fn_nop ()
417 {
418 return $?
419 }
420 as_nop=as_fn_nop
421
422 # as_fn_error STATUS ERROR [LINENO LOG_FD]
423 # ----------------------------------------
424 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
425 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
426 # script with STATUS, using 1 if that was 0.
427 as_fn_error ()
428 {
429 as_status=$1; test $as_status -eq 0 && as_status=1
430 if test "$4"; then
431 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
433 fi
434 printf "%s\n" "$as_me: error: $2" >&2
435 as_fn_exit $as_status
436 } # as_fn_error
437
438 if expr a : '\(a\)' >/dev/null 2>&1 &&
439 test "X`expr 00001 : '.*\(...\)'`" = X001; then
440 as_expr=expr
441 else
442 as_expr=false
443 fi
444
445 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
446 as_basename=basename
447 else
448 as_basename=false
449 fi
450
451 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
452 as_dirname=dirname
453 else
454 as_dirname=false
455 fi
456
457 as_me=`$as_basename -- "$0" ||
458 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
459 X"$0" : 'X\(//\)$' \| \
460 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
461 printf "%s\n" X/"$0" |
462 sed '/^.*\/\([^/][^/]*\)\/*$/{
463 s//\1/
464 q
465 }
466 /^X\/\(\/\/\)$/{
467 s//\1/
468 q
469 }
470 /^X\/\(\/\).*/{
471 s//\1/
472 q
473 }
474 s/.*/./; q'`
475
476 # Avoid depending upon Character Ranges.
477 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
478 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
479 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
480 as_cr_digits='0123456789'
481 as_cr_alnum=$as_cr_Letters$as_cr_digits
482
483
484 as_lineno_1=$LINENO as_lineno_1a=$LINENO
485 as_lineno_2=$LINENO as_lineno_2a=$LINENO
486 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
487 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
488 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 sed -n '
490 p
491 /[$]LINENO/=
492 ' <$as_myself |
493 sed '
494 s/[$]LINENO.*/&-/
495 t lineno
496 b
497 :lineno
498 N
499 :loop
500 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
501 t loop
502 s/-\n.*//
503 ' >$as_me.lineno &&
504 chmod +x "$as_me.lineno" ||
505 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
506
507 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
508 # already done that, so ensure we don't try to do so again and fall
509 # in an infinite loop. This has already happened in practice.
510 _as_can_reexec=no; export _as_can_reexec
511 # Don't try to exec as it changes $[0], causing all sort of problems
512 # (the dirname of $[0] is not the place where we might find the
513 # original and so on. Autoconf is especially sensitive to this).
514 . "./$as_me.lineno"
515 # Exit status is that of the last command.
516 exit
517 }
518
519
520 # Determine whether it's possible to make 'echo' print without a newline.
521 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
522 # for compatibility with existing Makefiles.
523 ECHO_C= ECHO_N= ECHO_T=
524 case `echo -n x` in #(((((
525 -n*)
526 case `echo 'xy\c'` in
527 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
528 xy) ECHO_C='\c';;
529 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
530 ECHO_T=' ';;
531 esac;;
532 *)
533 ECHO_N='-n';;
534 esac
535
536 # For backward compatibility with old third-party macros, we provide
537 # the shell variables $as_echo and $as_echo_n. New code should use
538 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
539 as_echo='printf %s\n'
540 as_echo_n='printf %s'
541
542
543 rm -f conf$$ conf$$.exe conf$$.file
544 if test -d conf$$.dir; then
545 rm -f conf$$.dir/conf$$.file
546 else
547 rm -f conf$$.dir
548 mkdir conf$$.dir 2>/dev/null
549 fi
550 if (echo >conf$$.file) 2>/dev/null; then
551 if ln -s conf$$.file conf$$ 2>/dev/null; then
552 as_ln_s='ln -s'
553 # ... but there are two gotchas:
554 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
555 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
556 # In both cases, we have to default to `cp -pR'.
557 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
558 as_ln_s='cp -pR'
559 elif ln conf$$.file conf$$ 2>/dev/null; then
560 as_ln_s=ln
561 else
562 as_ln_s='cp -pR'
563 fi
564 else
565 as_ln_s='cp -pR'
566 fi
567 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
568 rmdir conf$$.dir 2>/dev/null
569
570 if mkdir -p . 2>/dev/null; then
571 as_mkdir_p='mkdir -p "$as_dir"'
572 else
573 test -d ./-p && rmdir ./-p
574 as_mkdir_p=false
575 fi
576
577 as_test_x='test -x'
578 as_executable_p=as_fn_executable_p
579
580 # Sed expression to map a string onto a valid CPP name.
581 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
582
583 # Sed expression to map a string onto a valid variable name.
584 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
585
586
587 test -n "$DJDIR" || exec 7<&0 </dev/null
588 exec 6>&1
589
590 # Name of the host.
591 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
592 # so uname gets run too.
593 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
594
595 #
596 # Initializations.
597 #
598 ac_default_prefix=/usr/local
599 ac_clean_files=
600 ac_config_libobj_dir=.
601 LIBOBJS=
602 cross_compiling=no
603 subdirs=
604 MFLAGS=
605 MAKEFLAGS=
606
607 # Identity of this package.
608 PACKAGE_NAME=''
609 PACKAGE_TARNAME=''
610 PACKAGE_VERSION=''
611 PACKAGE_STRING=''
612 PACKAGE_BUGREPORT=''
613 PACKAGE_URL=''
614
615 ac_unique_file="mbuffer.c"
616 # Factoring default headers for most tests.
617 ac_includes_default="\
618 #include <stddef.h>
619 #ifdef HAVE_STDIO_H
620 # include <stdio.h>
621 #endif
622 #ifdef HAVE_STDLIB_H
623 # include <stdlib.h>
624 #endif
625 #ifdef HAVE_STRING_H
626 # include <string.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_STRINGS_H
635 # include <strings.h>
636 #endif
637 #ifdef HAVE_SYS_TYPES_H
638 # include <sys/types.h>
639 #endif
640 #ifdef HAVE_SYS_STAT_H
641 # include <sys/stat.h>
642 #endif
643 #ifdef HAVE_UNISTD_H
644 # include <unistd.h>
645 #endif"
646
647 ac_header_c_list=
648 ac_default_prefix=/usr/local
649 ac_subst_vars='LTLIBOBJS
650 LIBOBJS
651 AUTOCONF
652 DEBUG
653 ALLOCA
654 ac_ct_OBJDUMP
655 OBJDUMP
656 AWK
657 MT
658 CP
659 RM
660 SH
661 INSTALL_DATA
662 INSTALL_SCRIPT
663 INSTALL_PROGRAM
664 TAR
665 OBJEXT
666 EXEEXT
667 ac_ct_CC
668 CPPFLAGS
669 LDFLAGS
670 CFLAGS
671 CC
672 target_os
673 target_vendor
674 target_cpu
675 target
676 host_os
677 host_vendor
678 host_cpu
679 host
680 build_os
681 build_vendor
682 build_cpu
683 build
684 target_alias
685 host_alias
686 build_alias
687 LIBS
688 ECHO_T
689 ECHO_N
690 ECHO_C
691 DEFS
692 mandir
693 localedir
694 libdir
695 psdir
696 pdfdir
697 dvidir
698 htmldir
699 infodir
700 docdir
701 oldincludedir
702 includedir
703 runstatedir
704 localstatedir
705 sharedstatedir
706 sysconfdir
707 datadir
708 datarootdir
709 libexecdir
710 sbindir
711 bindir
712 program_transform_name
713 prefix
714 exec_prefix
715 PACKAGE_URL
716 PACKAGE_BUGREPORT
717 PACKAGE_STRING
718 PACKAGE_VERSION
719 PACKAGE_TARNAME
720 PACKAGE_NAME
721 PATH_SEPARATOR
722 SHELL'
723 ac_subst_files=''
724 ac_user_opts='
725 enable_option_checking
726 enable_largefile
727 enable_assert
728 enable_debug
729 enable_md5
730 '
731 ac_precious_vars='build_alias
732 host_alias
733 target_alias
734 CC
735 CFLAGS
736 LDFLAGS
737 LIBS
738 CPPFLAGS'
739
740
741 # Initialize some variables set by options.
742 ac_init_help=
743 ac_init_version=false
744 ac_unrecognized_opts=
745 ac_unrecognized_sep=
746 # The variables have the same names as the options, with
747 # dashes changed to underlines.
748 cache_file=/dev/null
749 exec_prefix=NONE
750 no_create=
751 no_recursion=
752 prefix=NONE
753 program_prefix=NONE
754 program_suffix=NONE
755 program_transform_name=s,x,x,
756 silent=
757 site=
758 srcdir=
759 verbose=
760 x_includes=NONE
761 x_libraries=NONE
762
763 # Installation directory options.
764 # These are left unexpanded so users can "make install exec_prefix=/foo"
765 # and all the variables that are supposed to be based on exec_prefix
766 # by default will actually change.
767 # Use braces instead of parens because sh, perl, etc. also accept them.
768 # (The list follows the same order as the GNU Coding Standards.)
769 bindir='${exec_prefix}/bin'
770 sbindir='${exec_prefix}/sbin'
771 libexecdir='${exec_prefix}/libexec'
772 datarootdir='${prefix}/share'
773 datadir='${datarootdir}'
774 sysconfdir='${prefix}/etc'
775 sharedstatedir='${prefix}/com'
776 localstatedir='${prefix}/var'
777 runstatedir='${localstatedir}/run'
778 includedir='${prefix}/include'
779 oldincludedir='/usr/include'
780 docdir='${datarootdir}/doc/${PACKAGE}'
781 infodir='${datarootdir}/info'
782 htmldir='${docdir}'
783 dvidir='${docdir}'
784 pdfdir='${docdir}'
785 psdir='${docdir}'
786 libdir='${exec_prefix}/lib'
787 localedir='${datarootdir}/locale'
788 mandir='${datarootdir}/man'
789
790 ac_prev=
791 ac_dashdash=
792 for ac_option
793 do
794 # If the previous option needs an argument, assign it.
795 if test -n "$ac_prev"; then
796 eval $ac_prev=\$ac_option
797 ac_prev=
798 continue
799 fi
800
801 case $ac_option in
802 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
803 *=) ac_optarg= ;;
804 *) ac_optarg=yes ;;
805 esac
806
807 case $ac_dashdash$ac_option in
808 --)
809 ac_dashdash=yes ;;
810
811 -bindir | --bindir | --bindi | --bind | --bin | --bi)
812 ac_prev=bindir ;;
813 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
814 bindir=$ac_optarg ;;
815
816 -build | --build | --buil | --bui | --bu)
817 ac_prev=build_alias ;;
818 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
819 build_alias=$ac_optarg ;;
820
821 -cache-file | --cache-file | --cache-fil | --cache-fi \
822 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
823 ac_prev=cache_file ;;
824 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
825 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
826 cache_file=$ac_optarg ;;
827
828 --config-cache | -C)
829 cache_file=config.cache ;;
830
831 -datadir | --datadir | --datadi | --datad)
832 ac_prev=datadir ;;
833 -datadir=* | --datadir=* | --datadi=* | --datad=*)
834 datadir=$ac_optarg ;;
835
836 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
837 | --dataroo | --dataro | --datar)
838 ac_prev=datarootdir ;;
839 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
840 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
841 datarootdir=$ac_optarg ;;
842
843 -disable-* | --disable-*)
844 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
845 # Reject names that are not valid shell variable names.
846 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
847 as_fn_error $? "invalid feature name: \`$ac_useropt'"
848 ac_useropt_orig=$ac_useropt
849 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
850 case $ac_user_opts in
851 *"
852 "enable_$ac_useropt"
853 "*) ;;
854 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
855 ac_unrecognized_sep=', ';;
856 esac
857 eval enable_$ac_useropt=no ;;
858
859 -docdir | --docdir | --docdi | --doc | --do)
860 ac_prev=docdir ;;
861 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
862 docdir=$ac_optarg ;;
863
864 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
865 ac_prev=dvidir ;;
866 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
867 dvidir=$ac_optarg ;;
868
869 -enable-* | --enable-*)
870 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
871 # Reject names that are not valid shell variable names.
872 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
873 as_fn_error $? "invalid feature name: \`$ac_useropt'"
874 ac_useropt_orig=$ac_useropt
875 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
876 case $ac_user_opts in
877 *"
878 "enable_$ac_useropt"
879 "*) ;;
880 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
881 ac_unrecognized_sep=', ';;
882 esac
883 eval enable_$ac_useropt=\$ac_optarg ;;
884
885 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
886 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
887 | --exec | --exe | --ex)
888 ac_prev=exec_prefix ;;
889 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
890 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
891 | --exec=* | --exe=* | --ex=*)
892 exec_prefix=$ac_optarg ;;
893
894 -gas | --gas | --ga | --g)
895 # Obsolete; use --with-gas.
896 with_gas=yes ;;
897
898 -help | --help | --hel | --he | -h)
899 ac_init_help=long ;;
900 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
901 ac_init_help=recursive ;;
902 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
903 ac_init_help=short ;;
904
905 -host | --host | --hos | --ho)
906 ac_prev=host_alias ;;
907 -host=* | --host=* | --hos=* | --ho=*)
908 host_alias=$ac_optarg ;;
909
910 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
911 ac_prev=htmldir ;;
912 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
913 | --ht=*)
914 htmldir=$ac_optarg ;;
915
916 -includedir | --includedir | --includedi | --included | --include \
917 | --includ | --inclu | --incl | --inc)
918 ac_prev=includedir ;;
919 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
920 | --includ=* | --inclu=* | --incl=* | --inc=*)
921 includedir=$ac_optarg ;;
922
923 -infodir | --infodir | --infodi | --infod | --info | --inf)
924 ac_prev=infodir ;;
925 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
926 infodir=$ac_optarg ;;
927
928 -libdir | --libdir | --libdi | --libd)
929 ac_prev=libdir ;;
930 -libdir=* | --libdir=* | --libdi=* | --libd=*)
931 libdir=$ac_optarg ;;
932
933 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
934 | --libexe | --libex | --libe)
935 ac_prev=libexecdir ;;
936 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
937 | --libexe=* | --libex=* | --libe=*)
938 libexecdir=$ac_optarg ;;
939
940 -localedir | --localedir | --localedi | --localed | --locale)
941 ac_prev=localedir ;;
942 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
943 localedir=$ac_optarg ;;
944
945 -localstatedir | --localstatedir | --localstatedi | --localstated \
946 | --localstate | --localstat | --localsta | --localst | --locals)
947 ac_prev=localstatedir ;;
948 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
949 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
950 localstatedir=$ac_optarg ;;
951
952 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
953 ac_prev=mandir ;;
954 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
955 mandir=$ac_optarg ;;
956
957 -nfp | --nfp | --nf)
958 # Obsolete; use --without-fp.
959 with_fp=no ;;
960
961 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
962 | --no-cr | --no-c | -n)
963 no_create=yes ;;
964
965 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
966 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
967 no_recursion=yes ;;
968
969 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
970 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
971 | --oldin | --oldi | --old | --ol | --o)
972 ac_prev=oldincludedir ;;
973 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
974 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
975 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
976 oldincludedir=$ac_optarg ;;
977
978 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
979 ac_prev=prefix ;;
980 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
981 prefix=$ac_optarg ;;
982
983 -program-prefix | --program-prefix | --program-prefi | --program-pref \
984 | --program-pre | --program-pr | --program-p)
985 ac_prev=program_prefix ;;
986 -program-prefix=* | --program-prefix=* | --program-prefi=* \
987 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
988 program_prefix=$ac_optarg ;;
989
990 -program-suffix | --program-suffix | --program-suffi | --program-suff \
991 | --program-suf | --program-su | --program-s)
992 ac_prev=program_suffix ;;
993 -program-suffix=* | --program-suffix=* | --program-suffi=* \
994 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
995 program_suffix=$ac_optarg ;;
996
997 -program-transform-name | --program-transform-name \
998 | --program-transform-nam | --program-transform-na \
999 | --program-transform-n | --program-transform- \
1000 | --program-transform | --program-transfor \
1001 | --program-transfo | --program-transf \
1002 | --program-trans | --program-tran \
1003 | --progr-tra | --program-tr | --program-t)
1004 ac_prev=program_transform_name ;;
1005 -program-transform-name=* | --program-transform-name=* \
1006 | --program-transform-nam=* | --program-transform-na=* \
1007 | --program-transform-n=* | --program-transform-=* \
1008 | --program-transform=* | --program-transfor=* \
1009 | --program-transfo=* | --program-transf=* \
1010 | --program-trans=* | --program-tran=* \
1011 | --progr-tra=* | --program-tr=* | --program-t=*)
1012 program_transform_name=$ac_optarg ;;
1013
1014 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1015 ac_prev=pdfdir ;;
1016 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1017 pdfdir=$ac_optarg ;;
1018
1019 -psdir | --psdir | --psdi | --psd | --ps)
1020 ac_prev=psdir ;;
1021 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1022 psdir=$ac_optarg ;;
1023
1024 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1025 | -silent | --silent | --silen | --sile | --sil)
1026 silent=yes ;;
1027
1028 -runstatedir | --runstatedir | --runstatedi | --runstated \
1029 | --runstate | --runstat | --runsta | --runst | --runs \
1030 | --run | --ru | --r)
1031 ac_prev=runstatedir ;;
1032 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1033 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1034 | --run=* | --ru=* | --r=*)
1035 runstatedir=$ac_optarg ;;
1036
1037 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1038 ac_prev=sbindir ;;
1039 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1040 | --sbi=* | --sb=*)
1041 sbindir=$ac_optarg ;;
1042
1043 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1044 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1045 | --sharedst | --shareds | --shared | --share | --shar \
1046 | --sha | --sh)
1047 ac_prev=sharedstatedir ;;
1048 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1049 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1050 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1051 | --sha=* | --sh=*)
1052 sharedstatedir=$ac_optarg ;;
1053
1054 -site | --site | --sit)
1055 ac_prev=site ;;
1056 -site=* | --site=* | --sit=*)
1057 site=$ac_optarg ;;
1058
1059 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1060 ac_prev=srcdir ;;
1061 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1062 srcdir=$ac_optarg ;;
1063
1064 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1065 | --syscon | --sysco | --sysc | --sys | --sy)
1066 ac_prev=sysconfdir ;;
1067 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1068 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1069 sysconfdir=$ac_optarg ;;
1070
1071 -target | --target | --targe | --targ | --tar | --ta | --t)
1072 ac_prev=target_alias ;;
1073 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1074 target_alias=$ac_optarg ;;
1075
1076 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1077 verbose=yes ;;
1078
1079 -version | --version | --versio | --versi | --vers | -V)
1080 ac_init_version=: ;;
1081
1082 -with-* | --with-*)
1083 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1084 # Reject names that are not valid shell variable names.
1085 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1086 as_fn_error $? "invalid package name: \`$ac_useropt'"
1087 ac_useropt_orig=$ac_useropt
1088 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1089 case $ac_user_opts in
1090 *"
1091 "with_$ac_useropt"
1092 "*) ;;
1093 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1094 ac_unrecognized_sep=', ';;
1095 esac
1096 eval with_$ac_useropt=\$ac_optarg ;;
1097
1098 -without-* | --without-*)
1099 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1102 as_fn_error $? "invalid package name: \`$ac_useropt'"
1103 ac_useropt_orig=$ac_useropt
1104 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1105 case $ac_user_opts in
1106 *"
1107 "with_$ac_useropt"
1108 "*) ;;
1109 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1110 ac_unrecognized_sep=', ';;
1111 esac
1112 eval with_$ac_useropt=no ;;
1113
1114 --x)
1115 # Obsolete; use --with-x.
1116 with_x=yes ;;
1117
1118 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1119 | --x-incl | --x-inc | --x-in | --x-i)
1120 ac_prev=x_includes ;;
1121 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1122 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1123 x_includes=$ac_optarg ;;
1124
1125 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1126 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1127 ac_prev=x_libraries ;;
1128 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1129 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1130 x_libraries=$ac_optarg ;;
1131
1132 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1133 Try \`$0 --help' for more information"
1134 ;;
1135
1136 *=*)
1137 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1138 # Reject names that are not valid shell variable names.
1139 case $ac_envvar in #(
1140 '' | [0-9]* | *[!_$as_cr_alnum]* )
1141 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1142 esac
1143 eval $ac_envvar=\$ac_optarg
1144 export $ac_envvar ;;
1145
1146 *)
1147 # FIXME: should be removed in autoconf 3.0.
1148 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1149 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1150 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1151 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1152 ;;
1153
1154 esac
1155 done
1156
1157 if test -n "$ac_prev"; then
1158 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1159 as_fn_error $? "missing argument to $ac_option"
1160 fi
1161
1162 if test -n "$ac_unrecognized_opts"; then
1163 case $enable_option_checking in
1164 no) ;;
1165 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1166 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1167 esac
1168 fi
1169
1170 # Check all directory arguments for consistency.
1171 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1172 datadir sysconfdir sharedstatedir localstatedir includedir \
1173 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1174 libdir localedir mandir runstatedir
1175 do
1176 eval ac_val=\$$ac_var
1177 # Remove trailing slashes.
1178 case $ac_val in
1179 */ )
1180 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1181 eval $ac_var=\$ac_val;;
1182 esac
1183 # Be sure to have absolute directory names.
1184 case $ac_val in
1185 [\\/$]* | ?:[\\/]* ) continue;;
1186 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1187 esac
1188 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1189 done
1190
1191 # There might be people who depend on the old broken behavior: `$host'
1192 # used to hold the argument of --host etc.
1193 # FIXME: To remove some day.
1194 build=$build_alias
1195 host=$host_alias
1196 target=$target_alias
1197
1198 # FIXME: To remove some day.
1199 if test "x$host_alias" != x; then
1200 if test "x$build_alias" = x; then
1201 cross_compiling=maybe
1202 elif test "x$build_alias" != "x$host_alias"; then
1203 cross_compiling=yes
1204 fi
1205 fi
1206
1207 ac_tool_prefix=
1208 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1209
1210 test "$silent" = yes && exec 6>/dev/null
1211
1212
1213 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1214 ac_ls_di=`ls -di .` &&
1215 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1216 as_fn_error $? "working directory cannot be determined"
1217 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1218 as_fn_error $? "pwd does not report name of working directory"
1219
1220
1221 # Find the source files, if location was not specified.
1222 if test -z "$srcdir"; then
1223 ac_srcdir_defaulted=yes
1224 # Try the directory containing this script, then the parent directory.
1225 ac_confdir=`$as_dirname -- "$as_myself" ||
1226 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1227 X"$as_myself" : 'X\(//\)[^/]' \| \
1228 X"$as_myself" : 'X\(//\)$' \| \
1229 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1230 printf "%s\n" X"$as_myself" |
1231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1232 s//\1/
1233 q
1234 }
1235 /^X\(\/\/\)[^/].*/{
1236 s//\1/
1237 q
1238 }
1239 /^X\(\/\/\)$/{
1240 s//\1/
1241 q
1242 }
1243 /^X\(\/\).*/{
1244 s//\1/
1245 q
1246 }
1247 s/.*/./; q'`
1248 srcdir=$ac_confdir
1249 if test ! -r "$srcdir/$ac_unique_file"; then
1250 srcdir=..
1251 fi
1252 else
1253 ac_srcdir_defaulted=no
1254 fi
1255 if test ! -r "$srcdir/$ac_unique_file"; then
1256 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1257 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1258 fi
1259 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1260 ac_abs_confdir=`(
1261 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1262 pwd)`
1263 # When building in place, set srcdir=.
1264 if test "$ac_abs_confdir" = "$ac_pwd"; then
1265 srcdir=.
1266 fi
1267 # Remove unnecessary trailing slashes from srcdir.
1268 # Double slashes in file names in object file debugging info
1269 # mess up M-x gdb in Emacs.
1270 case $srcdir in
1271 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1272 esac
1273 for ac_var in $ac_precious_vars; do
1274 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1275 eval ac_env_${ac_var}_value=\$${ac_var}
1276 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1277 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1278 done
1279
1280 #
1281 # Report the --help message.
1282 #
1283 if test "$ac_init_help" = "long"; then
1284 # Omit some internal or obsolete options to make the list less imposing.
1285 # This message is too long to be a string in the A/UX 3.1 sh.
1286 cat <<_ACEOF
1287 \`configure' configures this package to adapt to many kinds of systems.
1288
1289 Usage: $0 [OPTION]... [VAR=VALUE]...
1290
1291 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1292 VAR=VALUE. See below for descriptions of some of the useful variables.
1293
1294 Defaults for the options are specified in brackets.
1295
1296 Configuration:
1297 -h, --help display this help and exit
1298 --help=short display options specific to this package
1299 --help=recursive display the short help of all the included packages
1300 -V, --version display version information and exit
1301 -q, --quiet, --silent do not print \`checking ...' messages
1302 --cache-file=FILE cache test results in FILE [disabled]
1303 -C, --config-cache alias for \`--cache-file=config.cache'
1304 -n, --no-create do not create output files
1305 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1306
1307 Installation directories:
1308 --prefix=PREFIX install architecture-independent files in PREFIX
1309 [$ac_default_prefix]
1310 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1311 [PREFIX]
1312
1313 By default, \`make install' will install all the files in
1314 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1315 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1316 for instance \`--prefix=\$HOME'.
1317
1318 For better control, use the options below.
1319
1320 Fine tuning of the installation directories:
1321 --bindir=DIR user executables [EPREFIX/bin]
1322 --sbindir=DIR system admin executables [EPREFIX/sbin]
1323 --libexecdir=DIR program executables [EPREFIX/libexec]
1324 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1325 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1326 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1327 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1328 --libdir=DIR object code libraries [EPREFIX/lib]
1329 --includedir=DIR C header files [PREFIX/include]
1330 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1331 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1332 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1333 --infodir=DIR info documentation [DATAROOTDIR/info]
1334 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1335 --mandir=DIR man documentation [DATAROOTDIR/man]
1336 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1337 --htmldir=DIR html documentation [DOCDIR]
1338 --dvidir=DIR dvi documentation [DOCDIR]
1339 --pdfdir=DIR pdf documentation [DOCDIR]
1340 --psdir=DIR ps documentation [DOCDIR]
1341 _ACEOF
1342
1343 cat <<\_ACEOF
1344
1345 System types:
1346 --build=BUILD configure for building on BUILD [guessed]
1347 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1348 --target=TARGET configure for building compilers for TARGET [HOST]
1349 _ACEOF
1350 fi
1351
1352 if test -n "$ac_init_help"; then
1353
1354 cat <<\_ACEOF
1355
1356 Optional Features:
1357 --disable-option-checking ignore unrecognized --enable/--with options
1358 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1359 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1360 --disable-largefile omit support for large files
1361 --disable-assert turn off assertions
1362 --disable-debug disable verbose logging to console for debugging purpose
1363 --disable-md5 disable md5 hash generation
1364
1365 Some influential environment variables:
1366 CC C compiler command
1367 CFLAGS C compiler flags
1368 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1369 nonstandard directory <lib dir>
1370 LIBS libraries to pass to the linker, e.g. -l<library>
1371 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1372 you have headers in a nonstandard directory <include dir>
1373
1374 Use these variables to override the choices made by `configure' or to help
1375 it to find libraries and programs with nonstandard names/locations.
1376
1377 Report bugs to the package provider.
1378 _ACEOF
1379 ac_status=$?
1380 fi
1381
1382 if test "$ac_init_help" = "recursive"; then
1383 # If there are subdirs, report their specific --help.
1384 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1385 test -d "$ac_dir" ||
1386 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1387 continue
1388 ac_builddir=.
1389
1390 case "$ac_dir" in
1391 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1392 *)
1393 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1394 # A ".." for each directory in $ac_dir_suffix.
1395 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1396 case $ac_top_builddir_sub in
1397 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1398 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1399 esac ;;
1400 esac
1401 ac_abs_top_builddir=$ac_pwd
1402 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1403 # for backward compatibility:
1404 ac_top_builddir=$ac_top_build_prefix
1405
1406 case $srcdir in
1407 .) # We are building in place.
1408 ac_srcdir=.
1409 ac_top_srcdir=$ac_top_builddir_sub
1410 ac_abs_top_srcdir=$ac_pwd ;;
1411 [\\/]* | ?:[\\/]* ) # Absolute name.
1412 ac_srcdir=$srcdir$ac_dir_suffix;
1413 ac_top_srcdir=$srcdir
1414 ac_abs_top_srcdir=$srcdir ;;
1415 *) # Relative name.
1416 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1417 ac_top_srcdir=$ac_top_build_prefix$srcdir
1418 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1419 esac
1420 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1421
1422 cd "$ac_dir" || { ac_status=$?; continue; }
1423 # Check for configure.gnu first; this name is used for a wrapper for
1424 # Metaconfig's "Configure" on case-insensitive file systems.
1425 if test -f "$ac_srcdir/configure.gnu"; then
1426 echo &&
1427 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1428 elif test -f "$ac_srcdir/configure"; then
1429 echo &&
1430 $SHELL "$ac_srcdir/configure" --help=recursive
1431 else
1432 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1433 fi || ac_status=$?
1434 cd "$ac_pwd" || { ac_status=$?; break; }
1435 done
1436 fi
1437
1438 test -n "$ac_init_help" && exit $ac_status
1439 if $ac_init_version; then
1440 cat <<\_ACEOF
1441 configure
1442 generated by GNU Autoconf 2.71
1443
1444 Copyright (C) 2021 Free Software Foundation, Inc.
1445 This configure script is free software; the Free Software Foundation
1446 gives unlimited permission to copy, distribute and modify it.
1447 _ACEOF
1448 exit
1449 fi
1450
1451 ## ------------------------ ##
1452 ## Autoconf initialization. ##
1453 ## ------------------------ ##
1454
1455 # ac_fn_c_try_compile LINENO
1456 # --------------------------
1457 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1458 ac_fn_c_try_compile ()
1459 {
1460 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1461 rm -f conftest.$ac_objext conftest.beam
1462 if { { ac_try="$ac_compile"
1463 case "(($ac_try" in
1464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1465 *) ac_try_echo=$ac_try;;
1466 esac
1467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1468 printf "%s\n" "$ac_try_echo"; } >&5
1469 (eval "$ac_compile") 2>conftest.err
1470 ac_status=$?
1471 if test -s conftest.err; then
1472 grep -v '^ *+' conftest.err >conftest.er1
1473 cat conftest.er1 >&5
1474 mv -f conftest.er1 conftest.err
1475 fi
1476 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1477 test $ac_status = 0; } && {
1478 test -z "$ac_c_werror_flag" ||
1479 test ! -s conftest.err
1480 } && test -s conftest.$ac_objext
1481 then :
1482 ac_retval=0
1483 else $as_nop
1484 printf "%s\n" "$as_me: failed program was:" >&5
1485 sed 's/^/| /' conftest.$ac_ext >&5
1486
1487 ac_retval=1
1488 fi
1489 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1490 as_fn_set_status $ac_retval
1491
1492 } # ac_fn_c_try_compile
1493
1494 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1495 # -------------------------------------------------------
1496 # Tests whether HEADER exists and can be compiled using the include files in
1497 # INCLUDES, setting the cache variable VAR accordingly.
1498 ac_fn_c_check_header_compile ()
1499 {
1500 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1502 printf %s "checking for $2... " >&6; }
1503 if eval test \${$3+y}
1504 then :
1505 printf %s "(cached) " >&6
1506 else $as_nop
1507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1508 /* end confdefs.h. */
1509 $4
1510 #include <$2>
1511 _ACEOF
1512 if ac_fn_c_try_compile "$LINENO"
1513 then :
1514 eval "$3=yes"
1515 else $as_nop
1516 eval "$3=no"
1517 fi
1518 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1519 fi
1520 eval ac_res=\$$3
1521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1522 printf "%s\n" "$ac_res" >&6; }
1523 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1524
1525 } # ac_fn_c_check_header_compile
1526
1527 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1528 # ----------------------------------------------------
1529 # Tries to find if the field MEMBER exists in type AGGR, after including
1530 # INCLUDES, setting cache variable VAR accordingly.
1531 ac_fn_c_check_member ()
1532 {
1533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1535 printf %s "checking for $2.$3... " >&6; }
1536 if eval test \${$4+y}
1537 then :
1538 printf %s "(cached) " >&6
1539 else $as_nop
1540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1541 /* end confdefs.h. */
1542 $5
1543 int
1544 main (void)
1545 {
1546 static $2 ac_aggr;
1547 if (ac_aggr.$3)
1548 return 0;
1549 ;
1550 return 0;
1551 }
1552 _ACEOF
1553 if ac_fn_c_try_compile "$LINENO"
1554 then :
1555 eval "$4=yes"
1556 else $as_nop
1557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1558 /* end confdefs.h. */
1559 $5
1560 int
1561 main (void)
1562 {
1563 static $2 ac_aggr;
1564 if (sizeof ac_aggr.$3)
1565 return 0;
1566 ;
1567 return 0;
1568 }
1569 _ACEOF
1570 if ac_fn_c_try_compile "$LINENO"
1571 then :
1572 eval "$4=yes"
1573 else $as_nop
1574 eval "$4=no"
1575 fi
1576 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1577 fi
1578 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1579 fi
1580 eval ac_res=\$$4
1581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1582 printf "%s\n" "$ac_res" >&6; }
1583 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1584
1585 } # ac_fn_c_check_member
1586
1587 # ac_fn_c_try_link LINENO
1588 # -----------------------
1589 # Try to link conftest.$ac_ext, and return whether this succeeded.
1590 ac_fn_c_try_link ()
1591 {
1592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1594 if { { ac_try="$ac_link"
1595 case "(($ac_try" in
1596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597 *) ac_try_echo=$ac_try;;
1598 esac
1599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600 printf "%s\n" "$ac_try_echo"; } >&5
1601 (eval "$ac_link") 2>conftest.err
1602 ac_status=$?
1603 if test -s conftest.err; then
1604 grep -v '^ *+' conftest.err >conftest.er1
1605 cat conftest.er1 >&5
1606 mv -f conftest.er1 conftest.err
1607 fi
1608 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609 test $ac_status = 0; } && {
1610 test -z "$ac_c_werror_flag" ||
1611 test ! -s conftest.err
1612 } && test -s conftest$ac_exeext && {
1613 test "$cross_compiling" = yes ||
1614 test -x conftest$ac_exeext
1615 }
1616 then :
1617 ac_retval=0
1618 else $as_nop
1619 printf "%s\n" "$as_me: failed program was:" >&5
1620 sed 's/^/| /' conftest.$ac_ext >&5
1621
1622 ac_retval=1
1623 fi
1624 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1625 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1626 # interfere with the next link command; also delete a directory that is
1627 # left behind by Apple's compiler. We do this before executing the actions.
1628 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1629 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630 as_fn_set_status $ac_retval
1631
1632 } # ac_fn_c_try_link
1633
1634 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1635 # -------------------------------------------
1636 # Tests whether TYPE exists after having included INCLUDES, setting cache
1637 # variable VAR accordingly.
1638 ac_fn_c_check_type ()
1639 {
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1642 printf %s "checking for $2... " >&6; }
1643 if eval test \${$3+y}
1644 then :
1645 printf %s "(cached) " >&6
1646 else $as_nop
1647 eval "$3=no"
1648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1649 /* end confdefs.h. */
1650 $4
1651 int
1652 main (void)
1653 {
1654 if (sizeof ($2))
1655 return 0;
1656 ;
1657 return 0;
1658 }
1659 _ACEOF
1660 if ac_fn_c_try_compile "$LINENO"
1661 then :
1662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1663 /* end confdefs.h. */
1664 $4
1665 int
1666 main (void)
1667 {
1668 if (sizeof (($2)))
1669 return 0;
1670 ;
1671 return 0;
1672 }
1673 _ACEOF
1674 if ac_fn_c_try_compile "$LINENO"
1675 then :
1676
1677 else $as_nop
1678 eval "$3=yes"
1679 fi
1680 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1681 fi
1682 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1683 fi
1684 eval ac_res=\$$3
1685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1686 printf "%s\n" "$ac_res" >&6; }
1687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688
1689 } # ac_fn_c_check_type
1690
1691 # ac_fn_c_try_run LINENO
1692 # ----------------------
1693 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1694 # executables *can* be run.
1695 ac_fn_c_try_run ()
1696 {
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 if { { ac_try="$ac_link"
1699 case "(($ac_try" in
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1702 esac
1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 printf "%s\n" "$ac_try_echo"; } >&5
1705 (eval "$ac_link") 2>&5
1706 ac_status=$?
1707 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1709 { { case "(($ac_try" in
1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711 *) ac_try_echo=$ac_try;;
1712 esac
1713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714 printf "%s\n" "$ac_try_echo"; } >&5
1715 (eval "$ac_try") 2>&5
1716 ac_status=$?
1717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718 test $ac_status = 0; }; }
1719 then :
1720 ac_retval=0
1721 else $as_nop
1722 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1723 printf "%s\n" "$as_me: failed program was:" >&5
1724 sed 's/^/| /' conftest.$ac_ext >&5
1725
1726 ac_retval=$ac_status
1727 fi
1728 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730 as_fn_set_status $ac_retval
1731
1732 } # ac_fn_c_try_run
1733
1734 # ac_fn_c_check_func LINENO FUNC VAR
1735 # ----------------------------------
1736 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1737 ac_fn_c_check_func ()
1738 {
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741 printf %s "checking for $2... " >&6; }
1742 if eval test \${$3+y}
1743 then :
1744 printf %s "(cached) " >&6
1745 else $as_nop
1746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747 /* end confdefs.h. */
1748 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1750 #define $2 innocuous_$2
1751
1752 /* System header to define __stub macros and hopefully few prototypes,
1753 which can conflict with char $2 (); below. */
1754
1755 #include <limits.h>
1756 #undef $2
1757
1758 /* Override any GCC internal prototype to avoid an error.
1759 Use char because int might match the return type of a GCC
1760 builtin and then its argument prototype would still apply. */
1761 #ifdef __cplusplus
1762 extern "C"
1763 #endif
1764 char $2 ();
1765 /* The GNU C library defines this for functions which it implements
1766 to always fail with ENOSYS. Some functions are actually named
1767 something starting with __ and the normal name is an alias. */
1768 #if defined __stub_$2 || defined __stub___$2
1769 choke me
1770 #endif
1771
1772 int
1773 main (void)
1774 {
1775 return $2 ();
1776 ;
1777 return 0;
1778 }
1779 _ACEOF
1780 if ac_fn_c_try_link "$LINENO"
1781 then :
1782 eval "$3=yes"
1783 else $as_nop
1784 eval "$3=no"
1785 fi
1786 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1787 conftest$ac_exeext conftest.$ac_ext
1788 fi
1789 eval ac_res=\$$3
1790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1791 printf "%s\n" "$ac_res" >&6; }
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793
1794 } # ac_fn_c_check_func
1795 ac_configure_args_raw=
1796 for ac_arg
1797 do
1798 case $ac_arg in
1799 *\'*)
1800 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1801 esac
1802 as_fn_append ac_configure_args_raw " '$ac_arg'"
1803 done
1804
1805 case $ac_configure_args_raw in
1806 *$as_nl*)
1807 ac_safe_unquote= ;;
1808 *)
1809 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1810 ac_unsafe_a="$ac_unsafe_z#~"
1811 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1812 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1813 esac
1814
1815 cat >config.log <<_ACEOF
1816 This file contains any messages produced by compilers while
1817 running configure, to aid debugging if configure makes a mistake.
1818
1819 It was created by $as_me, which was
1820 generated by GNU Autoconf 2.71. Invocation command line was
1821
1822 $ $0$ac_configure_args_raw
1823
1824 _ACEOF
1825 exec 5>>config.log
1826 {
1827 cat <<_ASUNAME
1828 ## --------- ##
1829 ## Platform. ##
1830 ## --------- ##
1831
1832 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1833 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1834 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1835 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1836 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1837
1838 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1839 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1840
1841 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1842 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1843 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1844 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1845 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1846 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1847 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1848
1849 _ASUNAME
1850
1851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1852 for as_dir in $PATH
1853 do
1854 IFS=$as_save_IFS
1855 case $as_dir in #(((
1856 '') as_dir=./ ;;
1857 */) ;;
1858 *) as_dir=$as_dir/ ;;
1859 esac
1860 printf "%s\n" "PATH: $as_dir"
1861 done
1862 IFS=$as_save_IFS
1863
1864 } >&5
1865
1866 cat >&5 <<_ACEOF
1867
1868
1869 ## ----------- ##
1870 ## Core tests. ##
1871 ## ----------- ##
1872
1873 _ACEOF
1874
1875
1876 # Keep a trace of the command line.
1877 # Strip out --no-create and --no-recursion so they do not pile up.
1878 # Strip out --silent because we don't want to record it for future runs.
1879 # Also quote any args containing shell meta-characters.
1880 # Make two passes to allow for proper duplicate-argument suppression.
1881 ac_configure_args=
1882 ac_configure_args0=
1883 ac_configure_args1=
1884 ac_must_keep_next=false
1885 for ac_pass in 1 2
1886 do
1887 for ac_arg
1888 do
1889 case $ac_arg in
1890 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1891 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1892 | -silent | --silent | --silen | --sile | --sil)
1893 continue ;;
1894 *\'*)
1895 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1896 esac
1897 case $ac_pass in
1898 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1899 2)
1900 as_fn_append ac_configure_args1 " '$ac_arg'"
1901 if test $ac_must_keep_next = true; then
1902 ac_must_keep_next=false # Got value, back to normal.
1903 else
1904 case $ac_arg in
1905 *=* | --config-cache | -C | -disable-* | --disable-* \
1906 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1907 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1908 | -with-* | --with-* | -without-* | --without-* | --x)
1909 case "$ac_configure_args0 " in
1910 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1911 esac
1912 ;;
1913 -* ) ac_must_keep_next=true ;;
1914 esac
1915 fi
1916 as_fn_append ac_configure_args " '$ac_arg'"
1917 ;;
1918 esac
1919 done
1920 done
1921 { ac_configure_args0=; unset ac_configure_args0;}
1922 { ac_configure_args1=; unset ac_configure_args1;}
1923
1924 # When interrupted or exit'd, cleanup temporary files, and complete
1925 # config.log. We remove comments because anyway the quotes in there
1926 # would cause problems or look ugly.
1927 # WARNING: Use '\'' to represent an apostrophe within the trap.
1928 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1929 trap 'exit_status=$?
1930 # Sanitize IFS.
1931 IFS=" "" $as_nl"
1932 # Save into config.log some information that might help in debugging.
1933 {
1934 echo
1935
1936 printf "%s\n" "## ---------------- ##
1937 ## Cache variables. ##
1938 ## ---------------- ##"
1939 echo
1940 # The following way of writing the cache mishandles newlines in values,
1941 (
1942 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1943 eval ac_val=\$$ac_var
1944 case $ac_val in #(
1945 *${as_nl}*)
1946 case $ac_var in #(
1947 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1948 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1949 esac
1950 case $ac_var in #(
1951 _ | IFS | as_nl) ;; #(
1952 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1953 *) { eval $ac_var=; unset $ac_var;} ;;
1954 esac ;;
1955 esac
1956 done
1957 (set) 2>&1 |
1958 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1959 *${as_nl}ac_space=\ *)
1960 sed -n \
1961 "s/'\''/'\''\\\\'\'''\''/g;
1962 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1963 ;; #(
1964 *)
1965 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1966 ;;
1967 esac |
1968 sort
1969 )
1970 echo
1971
1972 printf "%s\n" "## ----------------- ##
1973 ## Output variables. ##
1974 ## ----------------- ##"
1975 echo
1976 for ac_var in $ac_subst_vars
1977 do
1978 eval ac_val=\$$ac_var
1979 case $ac_val in
1980 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1981 esac
1982 printf "%s\n" "$ac_var='\''$ac_val'\''"
1983 done | sort
1984 echo
1985
1986 if test -n "$ac_subst_files"; then
1987 printf "%s\n" "## ------------------- ##
1988 ## File substitutions. ##
1989 ## ------------------- ##"
1990 echo
1991 for ac_var in $ac_subst_files
1992 do
1993 eval ac_val=\$$ac_var
1994 case $ac_val in
1995 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1996 esac
1997 printf "%s\n" "$ac_var='\''$ac_val'\''"
1998 done | sort
1999 echo
2000 fi
2001
2002 if test -s confdefs.h; then
2003 printf "%s\n" "## ----------- ##
2004 ## confdefs.h. ##
2005 ## ----------- ##"
2006 echo
2007 cat confdefs.h
2008 echo
2009 fi
2010 test "$ac_signal" != 0 &&
2011 printf "%s\n" "$as_me: caught signal $ac_signal"
2012 printf "%s\n" "$as_me: exit $exit_status"
2013 } >&5
2014 rm -f core *.core core.conftest.* &&
2015 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2016 exit $exit_status
2017 ' 0
2018 for ac_signal in 1 2 13 15; do
2019 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2020 done
2021 ac_signal=0
2022
2023 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2024 rm -f -r conftest* confdefs.h
2025
2026 printf "%s\n" "/* confdefs.h */" > confdefs.h
2027
2028 # Predefined preprocessor variables.
2029
2030 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2031
2032 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2033
2034 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2035
2036 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2037
2038 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2039
2040 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2041
2042
2043 # Let the site file select an alternate cache file if it wants to.
2044 # Prefer an explicitly selected file to automatically selected ones.
2045 if test -n "$CONFIG_SITE"; then
2046 ac_site_files="$CONFIG_SITE"
2047 elif test "x$prefix" != xNONE; then
2048 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2049 else
2050 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2051 fi
2052
2053 for ac_site_file in $ac_site_files
2054 do
2055 case $ac_site_file in #(
2056 */*) :
2057 ;; #(
2058 *) :
2059 ac_site_file=./$ac_site_file ;;
2060 esac
2061 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2063 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2064 sed 's/^/| /' "$ac_site_file" >&5
2065 . "$ac_site_file" \
2066 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2067 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2068 as_fn_error $? "failed to load site script $ac_site_file
2069 See \`config.log' for more details" "$LINENO" 5; }
2070 fi
2071 done
2072
2073 if test -r "$cache_file"; then
2074 # Some versions of bash will fail to source /dev/null (special files
2075 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2076 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2078 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2079 case $cache_file in
2080 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2081 *) . "./$cache_file";;
2082 esac
2083 fi
2084 else
2085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2086 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2087 >$cache_file
2088 fi
2089
2090 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2091 # Test code for whether the C compiler supports C89 (global declarations)
2092 ac_c_conftest_c89_globals='
2093 /* Does the compiler advertise C89 conformance?
2094 Do not test the value of __STDC__, because some compilers set it to 0
2095 while being otherwise adequately conformant. */
2096 #if !defined __STDC__
2097 # error "Compiler does not advertise C89 conformance"
2098 #endif
2099
2100 #include <stddef.h>
2101 #include <stdarg.h>
2102 struct stat;
2103 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2104 struct buf { int x; };
2105 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2106 static char *e (p, i)
2107 char **p;
2108 int i;
2109 {
2110 return p[i];
2111 }
2112 static char *f (char * (*g) (char **, int), char **p, ...)
2113 {
2114 char *s;
2115 va_list v;
2116 va_start (v,p);
2117 s = g (p, va_arg (v,int));
2118 va_end (v);
2119 return s;
2120 }
2121
2122 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2123 function prototypes and stuff, but not \xHH hex character constants.
2124 These do not provoke an error unfortunately, instead are silently treated
2125 as an "x". The following induces an error, until -std is added to get
2126 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2127 array size at least. It is necessary to write \x00 == 0 to get something
2128 that is true only with -std. */
2129 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2130
2131 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2132 inside strings and character constants. */
2133 #define FOO(x) '\''x'\''
2134 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2135
2136 int test (int i, double x);
2137 struct s1 {int (*f) (int a);};
2138 struct s2 {int (*f) (double a);};
2139 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2140 int, int);'
2141
2142 # Test code for whether the C compiler supports C89 (body of main).
2143 ac_c_conftest_c89_main='
2144 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2145 '
2146
2147 # Test code for whether the C compiler supports C99 (global declarations)
2148 ac_c_conftest_c99_globals='
2149 // Does the compiler advertise C99 conformance?
2150 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2151 # error "Compiler does not advertise C99 conformance"
2152 #endif
2153
2154 #include <stdbool.h>
2155 extern int puts (const char *);
2156 extern int printf (const char *, ...);
2157 extern int dprintf (int, const char *, ...);
2158 extern void *malloc (size_t);
2159
2160 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2161 // dprintf is used instead of fprintf to avoid needing to declare
2162 // FILE and stderr.
2163 #define debug(...) dprintf (2, __VA_ARGS__)
2164 #define showlist(...) puts (#__VA_ARGS__)
2165 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2166 static void
2167 test_varargs_macros (void)
2168 {
2169 int x = 1234;
2170 int y = 5678;
2171 debug ("Flag");
2172 debug ("X = %d\n", x);
2173 showlist (The first, second, and third items.);
2174 report (x>y, "x is %d but y is %d", x, y);
2175 }
2176
2177 // Check long long types.
2178 #define BIG64 18446744073709551615ull
2179 #define BIG32 4294967295ul
2180 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2181 #if !BIG_OK
2182 #error "your preprocessor is broken"
2183 #endif
2184 #if BIG_OK
2185 #else
2186 #error "your preprocessor is broken"
2187 #endif
2188 static long long int bignum = -9223372036854775807LL;
2189 static unsigned long long int ubignum = BIG64;
2190
2191 struct incomplete_array
2192 {
2193 int datasize;
2194 double data[];
2195 };
2196
2197 struct named_init {
2198 int number;
2199 const wchar_t *name;
2200 double average;
2201 };
2202
2203 typedef const char *ccp;
2204
2205 static inline int
2206 test_restrict (ccp restrict text)
2207 {
2208 // See if C++-style comments work.
2209 // Iterate through items via the restricted pointer.
2210 // Also check for declarations in for loops.
2211 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2212 continue;
2213 return 0;
2214 }
2215
2216 // Check varargs and va_copy.
2217 static bool
2218 test_varargs (const char *format, ...)
2219 {
2220 va_list args;
2221 va_start (args, format);
2222 va_list args_copy;
2223 va_copy (args_copy, args);
2224
2225 const char *str = "";
2226 int number = 0;
2227 float fnumber = 0;
2228
2229 while (*format)
2230 {
2231 switch (*format++)
2232 {
2233 case '\''s'\'': // string
2234 str = va_arg (args_copy, const char *);
2235 break;
2236 case '\''d'\'': // int
2237 number = va_arg (args_copy, int);
2238 break;
2239 case '\''f'\'': // float
2240 fnumber = va_arg (args_copy, double);
2241 break;
2242 default:
2243 break;
2244 }
2245 }
2246 va_end (args_copy);
2247 va_end (args);
2248
2249 return *str && number && fnumber;
2250 }
2251 '
2252
2253 # Test code for whether the C compiler supports C99 (body of main).
2254 ac_c_conftest_c99_main='
2255 // Check bool.
2256 _Bool success = false;
2257 success |= (argc != 0);
2258
2259 // Check restrict.
2260 if (test_restrict ("String literal") == 0)
2261 success = true;
2262 char *restrict newvar = "Another string";
2263
2264 // Check varargs.
2265 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2266 test_varargs_macros ();
2267
2268 // Check flexible array members.
2269 struct incomplete_array *ia =
2270 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2271 ia->datasize = 10;
2272 for (int i = 0; i < ia->datasize; ++i)
2273 ia->data[i] = i * 1.234;
2274
2275 // Check named initializers.
2276 struct named_init ni = {
2277 .number = 34,
2278 .name = L"Test wide string",
2279 .average = 543.34343,
2280 };
2281
2282 ni.number = 58;
2283
2284 int dynamic_array[ni.number];
2285 dynamic_array[0] = argv[0][0];
2286 dynamic_array[ni.number - 1] = 543;
2287
2288 // work around unused variable warnings
2289 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2290 || dynamic_array[ni.number - 1] != 543);
2291 '
2292
2293 # Test code for whether the C compiler supports C11 (global declarations)
2294 ac_c_conftest_c11_globals='
2295 // Does the compiler advertise C11 conformance?
2296 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2297 # error "Compiler does not advertise C11 conformance"
2298 #endif
2299
2300 // Check _Alignas.
2301 char _Alignas (double) aligned_as_double;
2302 char _Alignas (0) no_special_alignment;
2303 extern char aligned_as_int;
2304 char _Alignas (0) _Alignas (int) aligned_as_int;
2305
2306 // Check _Alignof.
2307 enum
2308 {
2309 int_alignment = _Alignof (int),
2310 int_array_alignment = _Alignof (int[100]),
2311 char_alignment = _Alignof (char)
2312 };
2313 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2314
2315 // Check _Noreturn.
2316 int _Noreturn does_not_return (void) { for (;;) continue; }
2317
2318 // Check _Static_assert.
2319 struct test_static_assert
2320 {
2321 int x;
2322 _Static_assert (sizeof (int) <= sizeof (long int),
2323 "_Static_assert does not work in struct");
2324 long int y;
2325 };
2326
2327 // Check UTF-8 literals.
2328 #define u8 syntax error!
2329 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2330
2331 // Check duplicate typedefs.
2332 typedef long *long_ptr;
2333 typedef long int *long_ptr;
2334 typedef long_ptr long_ptr;
2335
2336 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2337 struct anonymous
2338 {
2339 union {
2340 struct { int i; int j; };
2341 struct { int k; long int l; } w;
2342 };
2343 int m;
2344 } v1;
2345 '
2346
2347 # Test code for whether the C compiler supports C11 (body of main).
2348 ac_c_conftest_c11_main='
2349 _Static_assert ((offsetof (struct anonymous, i)
2350 == offsetof (struct anonymous, w.k)),
2351 "Anonymous union alignment botch");
2352 v1.i = 2;
2353 v1.w.k = 5;
2354 ok |= v1.i != 5;
2355 '
2356
2357 # Test code for whether the C compiler supports C11 (complete).
2358 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2359 ${ac_c_conftest_c99_globals}
2360 ${ac_c_conftest_c11_globals}
2361
2362 int
2363 main (int argc, char **argv)
2364 {
2365 int ok = 0;
2366 ${ac_c_conftest_c89_main}
2367 ${ac_c_conftest_c99_main}
2368 ${ac_c_conftest_c11_main}
2369 return ok;
2370 }
2371 "
2372
2373 # Test code for whether the C compiler supports C99 (complete).
2374 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2375 ${ac_c_conftest_c99_globals}
2376
2377 int
2378 main (int argc, char **argv)
2379 {
2380 int ok = 0;
2381 ${ac_c_conftest_c89_main}
2382 ${ac_c_conftest_c99_main}
2383 return ok;
2384 }
2385 "
2386
2387 # Test code for whether the C compiler supports C89 (complete).
2388 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2389
2390 int
2391 main (int argc, char **argv)
2392 {
2393 int ok = 0;
2394 ${ac_c_conftest_c89_main}
2395 return ok;
2396 }
2397 "
2398
2399 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2400 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2401 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2402 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2403 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2404 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2405 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2406 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2407 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2408 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2409
2410 # Auxiliary files required by this configure script.
2411 ac_aux_files="install-sh config.guess config.sub"
2412
2413 # Locations in which to look for auxiliary files.
2414 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2415
2416 # Search for a directory containing all of the required auxiliary files,
2417 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2418 # If we don't find one directory that contains all the files we need,
2419 # we report the set of missing files from the *first* directory in
2420 # $ac_aux_dir_candidates and give up.
2421 ac_missing_aux_files=""
2422 ac_first_candidate=:
2423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425 as_found=false
2426 for as_dir in $ac_aux_dir_candidates
2427 do
2428 IFS=$as_save_IFS
2429 case $as_dir in #(((
2430 '') as_dir=./ ;;
2431 */) ;;
2432 *) as_dir=$as_dir/ ;;
2433 esac
2434 as_found=:
2435
2436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2437 ac_aux_dir_found=yes
2438 ac_install_sh=
2439 for ac_aux in $ac_aux_files
2440 do
2441 # As a special case, if "install-sh" is required, that requirement
2442 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2443 # and $ac_install_sh is set appropriately for whichever one is found.
2444 if test x"$ac_aux" = x"install-sh"
2445 then
2446 if test -f "${as_dir}install-sh"; then
2447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2448 ac_install_sh="${as_dir}install-sh -c"
2449 elif test -f "${as_dir}install.sh"; then
2450 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2451 ac_install_sh="${as_dir}install.sh -c"
2452 elif test -f "${as_dir}shtool"; then
2453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2454 ac_install_sh="${as_dir}shtool install -c"
2455 else
2456 ac_aux_dir_found=no
2457 if $ac_first_candidate; then
2458 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2459 else
2460 break
2461 fi
2462 fi
2463 else
2464 if test -f "${as_dir}${ac_aux}"; then
2465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2466 else
2467 ac_aux_dir_found=no
2468 if $ac_first_candidate; then
2469 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2470 else
2471 break
2472 fi
2473 fi
2474 fi
2475 done
2476 if test "$ac_aux_dir_found" = yes; then
2477 ac_aux_dir="$as_dir"
2478 break
2479 fi
2480 ac_first_candidate=false
2481
2482 as_found=false
2483 done
2484 IFS=$as_save_IFS
2485 if $as_found
2486 then :
2487
2488 else $as_nop
2489 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2490 fi
2491
2492
2493 # These three variables are undocumented and unsupported,
2494 # and are intended to be withdrawn in a future Autoconf release.
2495 # They can cause serious problems if a builder's source tree is in a directory
2496 # whose full name contains unusual characters.
2497 if test -f "${ac_aux_dir}config.guess"; then
2498 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2499 fi
2500 if test -f "${ac_aux_dir}config.sub"; then
2501 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2502 fi
2503 if test -f "$ac_aux_dir/configure"; then
2504 ac_configure="$SHELL ${ac_aux_dir}configure"
2505 fi
2506
2507 # Check that the precious variables saved in the cache have kept the same
2508 # value.
2509 ac_cache_corrupted=false
2510 for ac_var in $ac_precious_vars; do
2511 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2512 eval ac_new_set=\$ac_env_${ac_var}_set
2513 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2514 eval ac_new_val=\$ac_env_${ac_var}_value
2515 case $ac_old_set,$ac_new_set in
2516 set,)
2517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2518 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2519 ac_cache_corrupted=: ;;
2520 ,set)
2521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2522 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2523 ac_cache_corrupted=: ;;
2524 ,);;
2525 *)
2526 if test "x$ac_old_val" != "x$ac_new_val"; then
2527 # differences in whitespace do not lead to failure.
2528 ac_old_val_w=`echo x $ac_old_val`
2529 ac_new_val_w=`echo x $ac_new_val`
2530 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2532 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2533 ac_cache_corrupted=:
2534 else
2535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2536 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2537 eval $ac_var=\$ac_old_val
2538 fi
2539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2540 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2542 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2543 fi;;
2544 esac
2545 # Pass precious variables to config.status.
2546 if test "$ac_new_set" = set; then
2547 case $ac_new_val in
2548 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2549 *) ac_arg=$ac_var=$ac_new_val ;;
2550 esac
2551 case " $ac_configure_args " in
2552 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2553 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2554 esac
2555 fi
2556 done
2557 if $ac_cache_corrupted; then
2558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2559 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2561 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2562 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2563 and start over" "$LINENO" 5
2564 fi
2565 ## -------------------- ##
2566 ## Main body of script. ##
2567 ## -------------------- ##
2568
2569 ac_ext=c
2570 ac_cpp='$CPP $CPPFLAGS'
2571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2574
2575
2576 #AC_CONFIG_SRCDIR([mbuffer])
2577 ac_config_headers="$ac_config_headers config.h"
2578
2579
2580 ac_ext=c
2581 ac_cpp='$CPP $CPPFLAGS'
2582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2585
2586 #AC_REQUIRE(AC_PROG_CC)
2587
2588
2589
2590
2591 # Make sure we can run config.sub.
2592 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2593 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2594
2595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2596 printf %s "checking build system type... " >&6; }
2597 if test ${ac_cv_build+y}
2598 then :
2599 printf %s "(cached) " >&6
2600 else $as_nop
2601 ac_build_alias=$build_alias
2602 test "x$ac_build_alias" = x &&
2603 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2604 test "x$ac_build_alias" = x &&
2605 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2606 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2607 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2608
2609 fi
2610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2611 printf "%s\n" "$ac_cv_build" >&6; }
2612 case $ac_cv_build in
2613 *-*-*) ;;
2614 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2615 esac
2616 build=$ac_cv_build
2617 ac_save_IFS=$IFS; IFS='-'
2618 set x $ac_cv_build
2619 shift
2620 build_cpu=$1
2621 build_vendor=$2
2622 shift; shift
2623 # Remember, the first character of IFS is used to create $*,
2624 # except with old shells:
2625 build_os=$*
2626 IFS=$ac_save_IFS
2627 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2628
2629
2630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2631 printf %s "checking host system type... " >&6; }
2632 if test ${ac_cv_host+y}
2633 then :
2634 printf %s "(cached) " >&6
2635 else $as_nop
2636 if test "x$host_alias" = x; then
2637 ac_cv_host=$ac_cv_build
2638 else
2639 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2640 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2641 fi
2642
2643 fi
2644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2645 printf "%s\n" "$ac_cv_host" >&6; }
2646 case $ac_cv_host in
2647 *-*-*) ;;
2648 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2649 esac
2650 host=$ac_cv_host
2651 ac_save_IFS=$IFS; IFS='-'
2652 set x $ac_cv_host
2653 shift
2654 host_cpu=$1
2655 host_vendor=$2
2656 shift; shift
2657 # Remember, the first character of IFS is used to create $*,
2658 # except with old shells:
2659 host_os=$*
2660 IFS=$ac_save_IFS
2661 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2662
2663
2664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2665 printf %s "checking target system type... " >&6; }
2666 if test ${ac_cv_target+y}
2667 then :
2668 printf %s "(cached) " >&6
2669 else $as_nop
2670 if test "x$target_alias" = x; then
2671 ac_cv_target=$ac_cv_host
2672 else
2673 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
2674 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
2675 fi
2676
2677 fi
2678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2679 printf "%s\n" "$ac_cv_target" >&6; }
2680 case $ac_cv_target in
2681 *-*-*) ;;
2682 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2683 esac
2684 target=$ac_cv_target
2685 ac_save_IFS=$IFS; IFS='-'
2686 set x $ac_cv_target
2687 shift
2688 target_cpu=$1
2689 target_vendor=$2
2690 shift; shift
2691 # Remember, the first character of IFS is used to create $*,
2692 # except with old shells:
2693 target_os=$*
2694 IFS=$ac_save_IFS
2695 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2696
2697
2698 # The aliases save the names the user supplied, while $host etc.
2699 # will get canonicalized.
2700 test -n "$target_alias" &&
2701 test "$program_prefix$program_suffix$program_transform_name" = \
2702 NONENONEs,x,x, &&
2703 program_prefix=${target_alias}-
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714 ac_ext=c
2715 ac_cpp='$CPP $CPPFLAGS'
2716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2719 if test -n "$ac_tool_prefix"; then
2720 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2721 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2723 printf %s "checking for $ac_word... " >&6; }
2724 if test ${ac_cv_prog_CC+y}
2725 then :
2726 printf %s "(cached) " >&6
2727 else $as_nop
2728 if test -n "$CC"; then
2729 ac_cv_prog_CC="$CC" # Let the user override the test.
2730 else
2731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732 for as_dir in $PATH
2733 do
2734 IFS=$as_save_IFS
2735 case $as_dir in #(((
2736 '') as_dir=./ ;;
2737 */) ;;
2738 *) as_dir=$as_dir/ ;;
2739 esac
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2742 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2743 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2744 break 2
2745 fi
2746 done
2747 done
2748 IFS=$as_save_IFS
2749
2750 fi
2751 fi
2752 CC=$ac_cv_prog_CC
2753 if test -n "$CC"; then
2754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2755 printf "%s\n" "$CC" >&6; }
2756 else
2757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2758 printf "%s\n" "no" >&6; }
2759 fi
2760
2761
2762 fi
2763 if test -z "$ac_cv_prog_CC"; then
2764 ac_ct_CC=$CC
2765 # Extract the first word of "gcc", so it can be a program name with args.
2766 set dummy gcc; ac_word=$2
2767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2768 printf %s "checking for $ac_word... " >&6; }
2769 if test ${ac_cv_prog_ac_ct_CC+y}
2770 then :
2771 printf %s "(cached) " >&6
2772 else $as_nop
2773 if test -n "$ac_ct_CC"; then
2774 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2775 else
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 for as_dir in $PATH
2778 do
2779 IFS=$as_save_IFS
2780 case $as_dir in #(((
2781 '') as_dir=./ ;;
2782 */) ;;
2783 *) as_dir=$as_dir/ ;;
2784 esac
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2787 ac_cv_prog_ac_ct_CC="gcc"
2788 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2789 break 2
2790 fi
2791 done
2792 done
2793 IFS=$as_save_IFS
2794
2795 fi
2796 fi
2797 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2798 if test -n "$ac_ct_CC"; then
2799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2800 printf "%s\n" "$ac_ct_CC" >&6; }
2801 else
2802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2803 printf "%s\n" "no" >&6; }
2804 fi
2805
2806 if test "x$ac_ct_CC" = x; then
2807 CC=""
2808 else
2809 case $cross_compiling:$ac_tool_warned in
2810 yes:)
2811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2812 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2813 ac_tool_warned=yes ;;
2814 esac
2815 CC=$ac_ct_CC
2816 fi
2817 else
2818 CC="$ac_cv_prog_CC"
2819 fi
2820
2821 if test -z "$CC"; then
2822 if test -n "$ac_tool_prefix"; then
2823 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2824 set dummy ${ac_tool_prefix}cc; ac_word=$2
2825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2826 printf %s "checking for $ac_word... " >&6; }
2827 if test ${ac_cv_prog_CC+y}
2828 then :
2829 printf %s "(cached) " >&6
2830 else $as_nop
2831 if test -n "$CC"; then
2832 ac_cv_prog_CC="$CC" # Let the user override the test.
2833 else
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH
2836 do
2837 IFS=$as_save_IFS
2838 case $as_dir in #(((
2839 '') as_dir=./ ;;
2840 */) ;;
2841 *) as_dir=$as_dir/ ;;
2842 esac
2843 for ac_exec_ext in '' $ac_executable_extensions; do
2844 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2845 ac_cv_prog_CC="${ac_tool_prefix}cc"
2846 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2847 break 2
2848 fi
2849 done
2850 done
2851 IFS=$as_save_IFS
2852
2853 fi
2854 fi
2855 CC=$ac_cv_prog_CC
2856 if test -n "$CC"; then
2857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2858 printf "%s\n" "$CC" >&6; }
2859 else
2860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2861 printf "%s\n" "no" >&6; }
2862 fi
2863
2864
2865 fi
2866 fi
2867 if test -z "$CC"; then
2868 # Extract the first word of "cc", so it can be a program name with args.
2869 set dummy cc; ac_word=$2
2870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2871 printf %s "checking for $ac_word... " >&6; }
2872 if test ${ac_cv_prog_CC+y}
2873 then :
2874 printf %s "(cached) " >&6
2875 else $as_nop
2876 if test -n "$CC"; then
2877 ac_cv_prog_CC="$CC" # Let the user override the test.
2878 else
2879 ac_prog_rejected=no
2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 for as_dir in $PATH
2882 do
2883 IFS=$as_save_IFS
2884 case $as_dir in #(((
2885 '') as_dir=./ ;;
2886 */) ;;
2887 *) as_dir=$as_dir/ ;;
2888 esac
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2891 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2892 ac_prog_rejected=yes
2893 continue
2894 fi
2895 ac_cv_prog_CC="cc"
2896 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2897 break 2
2898 fi
2899 done
2900 done
2901 IFS=$as_save_IFS
2902
2903 if test $ac_prog_rejected = yes; then
2904 # We found a bogon in the path, so make sure we never use it.
2905 set dummy $ac_cv_prog_CC
2906 shift
2907 if test $# != 0; then
2908 # We chose a different compiler from the bogus one.
2909 # However, it has the same basename, so the bogon will be chosen
2910 # first if we set CC to just the basename; use the full file name.
2911 shift
2912 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2913 fi
2914 fi
2915 fi
2916 fi
2917 CC=$ac_cv_prog_CC
2918 if test -n "$CC"; then
2919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2920 printf "%s\n" "$CC" >&6; }
2921 else
2922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2923 printf "%s\n" "no" >&6; }
2924 fi
2925
2926
2927 fi
2928 if test -z "$CC"; then
2929 if test -n "$ac_tool_prefix"; then
2930 for ac_prog in cl.exe
2931 do
2932 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2933 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935 printf %s "checking for $ac_word... " >&6; }
2936 if test ${ac_cv_prog_CC+y}
2937 then :
2938 printf %s "(cached) " >&6
2939 else $as_nop
2940 if test -n "$CC"; then
2941 ac_cv_prog_CC="$CC" # Let the user override the test.
2942 else
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 for as_dir in $PATH
2945 do
2946 IFS=$as_save_IFS
2947 case $as_dir in #(((
2948 '') as_dir=./ ;;
2949 */) ;;
2950 *) as_dir=$as_dir/ ;;
2951 esac
2952 for ac_exec_ext in '' $ac_executable_extensions; do
2953 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2954 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2956 break 2
2957 fi
2958 done
2959 done
2960 IFS=$as_save_IFS
2961
2962 fi
2963 fi
2964 CC=$ac_cv_prog_CC
2965 if test -n "$CC"; then
2966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2967 printf "%s\n" "$CC" >&6; }
2968 else
2969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 printf "%s\n" "no" >&6; }
2971 fi
2972
2973
2974 test -n "$CC" && break
2975 done
2976 fi
2977 if test -z "$CC"; then
2978 ac_ct_CC=$CC
2979 for ac_prog in cl.exe
2980 do
2981 # Extract the first word of "$ac_prog", so it can be a program name with args.
2982 set dummy $ac_prog; ac_word=$2
2983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984 printf %s "checking for $ac_word... " >&6; }
2985 if test ${ac_cv_prog_ac_ct_CC+y}
2986 then :
2987 printf %s "(cached) " >&6
2988 else $as_nop
2989 if test -n "$ac_ct_CC"; then
2990 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2991 else
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 for as_dir in $PATH
2994 do
2995 IFS=$as_save_IFS
2996 case $as_dir in #(((
2997 '') as_dir=./ ;;
2998 */) ;;
2999 *) as_dir=$as_dir/ ;;
3000 esac
3001 for ac_exec_ext in '' $ac_executable_extensions; do
3002 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3003 ac_cv_prog_ac_ct_CC="$ac_prog"
3004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3005 break 2
3006 fi
3007 done
3008 done
3009 IFS=$as_save_IFS
3010
3011 fi
3012 fi
3013 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3014 if test -n "$ac_ct_CC"; then
3015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3016 printf "%s\n" "$ac_ct_CC" >&6; }
3017 else
3018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019 printf "%s\n" "no" >&6; }
3020 fi
3021
3022
3023 test -n "$ac_ct_CC" && break
3024 done
3025
3026 if test "x$ac_ct_CC" = x; then
3027 CC=""
3028 else
3029 case $cross_compiling:$ac_tool_warned in
3030 yes:)
3031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3032 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3033 ac_tool_warned=yes ;;
3034 esac
3035 CC=$ac_ct_CC
3036 fi
3037 fi
3038
3039 fi
3040 if test -z "$CC"; then
3041 if test -n "$ac_tool_prefix"; then
3042 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3043 set dummy ${ac_tool_prefix}clang; ac_word=$2
3044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3045 printf %s "checking for $ac_word... " >&6; }
3046 if test ${ac_cv_prog_CC+y}
3047 then :
3048 printf %s "(cached) " >&6
3049 else $as_nop
3050 if test -n "$CC"; then
3051 ac_cv_prog_CC="$CC" # Let the user override the test.
3052 else
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 for as_dir in $PATH
3055 do
3056 IFS=$as_save_IFS
3057 case $as_dir in #(((
3058 '') as_dir=./ ;;
3059 */) ;;
3060 *) as_dir=$as_dir/ ;;
3061 esac
3062 for ac_exec_ext in '' $ac_executable_extensions; do
3063 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3064 ac_cv_prog_CC="${ac_tool_prefix}clang"
3065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3066 break 2
3067 fi
3068 done
3069 done
3070 IFS=$as_save_IFS
3071
3072 fi
3073 fi
3074 CC=$ac_cv_prog_CC
3075 if test -n "$CC"; then
3076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3077 printf "%s\n" "$CC" >&6; }
3078 else
3079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080 printf "%s\n" "no" >&6; }
3081 fi
3082
3083
3084 fi
3085 if test -z "$ac_cv_prog_CC"; then
3086 ac_ct_CC=$CC
3087 # Extract the first word of "clang", so it can be a program name with args.
3088 set dummy clang; ac_word=$2
3089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3090 printf %s "checking for $ac_word... " >&6; }
3091 if test ${ac_cv_prog_ac_ct_CC+y}
3092 then :
3093 printf %s "(cached) " >&6
3094 else $as_nop
3095 if test -n "$ac_ct_CC"; then
3096 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3097 else
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099 for as_dir in $PATH
3100 do
3101 IFS=$as_save_IFS
3102 case $as_dir in #(((
3103 '') as_dir=./ ;;
3104 */) ;;
3105 *) as_dir=$as_dir/ ;;
3106 esac
3107 for ac_exec_ext in '' $ac_executable_extensions; do
3108 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3109 ac_cv_prog_ac_ct_CC="clang"
3110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3111 break 2
3112 fi
3113 done
3114 done
3115 IFS=$as_save_IFS
3116
3117 fi
3118 fi
3119 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3120 if test -n "$ac_ct_CC"; then
3121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3122 printf "%s\n" "$ac_ct_CC" >&6; }
3123 else
3124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3125 printf "%s\n" "no" >&6; }
3126 fi
3127
3128 if test "x$ac_ct_CC" = x; then
3129 CC=""
3130 else
3131 case $cross_compiling:$ac_tool_warned in
3132 yes:)
3133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3134 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3135 ac_tool_warned=yes ;;
3136 esac
3137 CC=$ac_ct_CC
3138 fi
3139 else
3140 CC="$ac_cv_prog_CC"
3141 fi
3142
3143 fi
3144
3145
3146 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3147 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3148 as_fn_error $? "no acceptable C compiler found in \$PATH
3149 See \`config.log' for more details" "$LINENO" 5; }
3150
3151 # Provide some information about the compiler.
3152 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3153 set X $ac_compile
3154 ac_compiler=$2
3155 for ac_option in --version -v -V -qversion -version; do
3156 { { ac_try="$ac_compiler $ac_option >&5"
3157 case "(($ac_try" in
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3160 esac
3161 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3162 printf "%s\n" "$ac_try_echo"; } >&5
3163 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3164 ac_status=$?
3165 if test -s conftest.err; then
3166 sed '10a\
3167 ... rest of stderr output deleted ...
3168 10q' conftest.err >conftest.er1
3169 cat conftest.er1 >&5
3170 fi
3171 rm -f conftest.er1 conftest.err
3172 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3173 test $ac_status = 0; }
3174 done
3175
3176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3177 /* end confdefs.h. */
3178
3179 int
3180 main (void)
3181 {
3182
3183 ;
3184 return 0;
3185 }
3186 _ACEOF
3187 ac_clean_files_save=$ac_clean_files
3188 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3189 # Try to create an executable without -o first, disregard a.out.
3190 # It will help us diagnose broken compilers, and finding out an intuition
3191 # of exeext.
3192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3193 printf %s "checking whether the C compiler works... " >&6; }
3194 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3195
3196 # The possible output files:
3197 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3198
3199 ac_rmfiles=
3200 for ac_file in $ac_files
3201 do
3202 case $ac_file in
3203 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3204 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3205 esac
3206 done
3207 rm -f $ac_rmfiles
3208
3209 if { { ac_try="$ac_link_default"
3210 case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3213 esac
3214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3215 printf "%s\n" "$ac_try_echo"; } >&5
3216 (eval "$ac_link_default") 2>&5
3217 ac_status=$?
3218 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3219 test $ac_status = 0; }
3220 then :
3221 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3222 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3223 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3224 # so that the user can short-circuit this test for compilers unknown to
3225 # Autoconf.
3226 for ac_file in $ac_files ''
3227 do
3228 test -f "$ac_file" || continue
3229 case $ac_file in
3230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3231 ;;
3232 [ab].out )
3233 # We found the default executable, but exeext='' is most
3234 # certainly right.
3235 break;;
3236 *.* )
3237 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3238 then :; else
3239 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3240 fi
3241 # We set ac_cv_exeext here because the later test for it is not
3242 # safe: cross compilers may not add the suffix if given an `-o'
3243 # argument, so we may need to know it at that point already.
3244 # Even if this section looks crufty: it has the advantage of
3245 # actually working.
3246 break;;
3247 * )
3248 break;;
3249 esac
3250 done
3251 test "$ac_cv_exeext" = no && ac_cv_exeext=
3252
3253 else $as_nop
3254 ac_file=''
3255 fi
3256 if test -z "$ac_file"
3257 then :
3258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259 printf "%s\n" "no" >&6; }
3260 printf "%s\n" "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3262
3263 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3264 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3265 as_fn_error 77 "C compiler cannot create executables
3266 See \`config.log' for more details" "$LINENO" 5; }
3267 else $as_nop
3268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3269 printf "%s\n" "yes" >&6; }
3270 fi
3271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3272 printf %s "checking for C compiler default output file name... " >&6; }
3273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3274 printf "%s\n" "$ac_file" >&6; }
3275 ac_exeext=$ac_cv_exeext
3276
3277 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3278 ac_clean_files=$ac_clean_files_save
3279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3280 printf %s "checking for suffix of executables... " >&6; }
3281 if { { ac_try="$ac_link"
3282 case "(($ac_try" in
3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3285 esac
3286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3287 printf "%s\n" "$ac_try_echo"; } >&5
3288 (eval "$ac_link") 2>&5
3289 ac_status=$?
3290 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3291 test $ac_status = 0; }
3292 then :
3293 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3294 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3295 # work properly (i.e., refer to `conftest.exe'), while it won't with
3296 # `rm'.
3297 for ac_file in conftest.exe conftest conftest.*; do
3298 test -f "$ac_file" || continue
3299 case $ac_file in
3300 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3301 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3302 break;;
3303 * ) break;;
3304 esac
3305 done
3306 else $as_nop
3307 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3308 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3309 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3310 See \`config.log' for more details" "$LINENO" 5; }
3311 fi
3312 rm -f conftest conftest$ac_cv_exeext
3313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3314 printf "%s\n" "$ac_cv_exeext" >&6; }
3315
3316 rm -f conftest.$ac_ext
3317 EXEEXT=$ac_cv_exeext
3318 ac_exeext=$EXEEXT
3319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3320 /* end confdefs.h. */
3321 #include <stdio.h>
3322 int
3323 main (void)
3324 {
3325 FILE *f = fopen ("conftest.out", "w");
3326 return ferror (f) || fclose (f) != 0;
3327
3328 ;
3329 return 0;
3330 }
3331 _ACEOF
3332 ac_clean_files="$ac_clean_files conftest.out"
3333 # Check that the compiler produces executables we can run. If not, either
3334 # the compiler is broken, or we cross compile.
3335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3336 printf %s "checking whether we are cross compiling... " >&6; }
3337 if test "$cross_compiling" != yes; then
3338 { { ac_try="$ac_link"
3339 case "(($ac_try" in
3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341 *) ac_try_echo=$ac_try;;
3342 esac
3343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3344 printf "%s\n" "$ac_try_echo"; } >&5
3345 (eval "$ac_link") 2>&5
3346 ac_status=$?
3347 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3348 test $ac_status = 0; }
3349 if { ac_try='./conftest$ac_cv_exeext'
3350 { { case "(($ac_try" in
3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352 *) ac_try_echo=$ac_try;;
3353 esac
3354 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3355 printf "%s\n" "$ac_try_echo"; } >&5
3356 (eval "$ac_try") 2>&5
3357 ac_status=$?
3358 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3359 test $ac_status = 0; }; }; then
3360 cross_compiling=no
3361 else
3362 if test "$cross_compiling" = maybe; then
3363 cross_compiling=yes
3364 else
3365 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3366 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3367 as_fn_error 77 "cannot run C compiled programs.
3368 If you meant to cross compile, use \`--host'.
3369 See \`config.log' for more details" "$LINENO" 5; }
3370 fi
3371 fi
3372 fi
3373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3374 printf "%s\n" "$cross_compiling" >&6; }
3375
3376 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3377 ac_clean_files=$ac_clean_files_save
3378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3379 printf %s "checking for suffix of object files... " >&6; }
3380 if test ${ac_cv_objext+y}
3381 then :
3382 printf %s "(cached) " >&6
3383 else $as_nop
3384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3385 /* end confdefs.h. */
3386
3387 int
3388 main (void)
3389 {
3390
3391 ;
3392 return 0;
3393 }
3394 _ACEOF
3395 rm -f conftest.o conftest.obj
3396 if { { ac_try="$ac_compile"
3397 case "(($ac_try" in
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3400 esac
3401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3402 printf "%s\n" "$ac_try_echo"; } >&5
3403 (eval "$ac_compile") 2>&5
3404 ac_status=$?
3405 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3406 test $ac_status = 0; }
3407 then :
3408 for ac_file in conftest.o conftest.obj conftest.*; do
3409 test -f "$ac_file" || continue;
3410 case $ac_file in
3411 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3412 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3413 break;;
3414 esac
3415 done
3416 else $as_nop
3417 printf "%s\n" "$as_me: failed program was:" >&5
3418 sed 's/^/| /' conftest.$ac_ext >&5
3419
3420 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3421 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3422 as_fn_error $? "cannot compute suffix of object files: cannot compile
3423 See \`config.log' for more details" "$LINENO" 5; }
3424 fi
3425 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3426 fi
3427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3428 printf "%s\n" "$ac_cv_objext" >&6; }
3429 OBJEXT=$ac_cv_objext
3430 ac_objext=$OBJEXT
3431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3432 printf %s "checking whether the compiler supports GNU C... " >&6; }
3433 if test ${ac_cv_c_compiler_gnu+y}
3434 then :
3435 printf %s "(cached) " >&6
3436 else $as_nop
3437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3438 /* end confdefs.h. */
3439
3440 int
3441 main (void)
3442 {
3443 #ifndef __GNUC__
3444 choke me
3445 #endif
3446
3447 ;
3448 return 0;
3449 }
3450 _ACEOF
3451 if ac_fn_c_try_compile "$LINENO"
3452 then :
3453 ac_compiler_gnu=yes
3454 else $as_nop
3455 ac_compiler_gnu=no
3456 fi
3457 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3458 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3459
3460 fi
3461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3462 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3464
3465 if test $ac_compiler_gnu = yes; then
3466 GCC=yes
3467 else
3468 GCC=
3469 fi
3470 ac_test_CFLAGS=${CFLAGS+y}
3471 ac_save_CFLAGS=$CFLAGS
3472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3473 printf %s "checking whether $CC accepts -g... " >&6; }
3474 if test ${ac_cv_prog_cc_g+y}
3475 then :
3476 printf %s "(cached) " >&6
3477 else $as_nop
3478 ac_save_c_werror_flag=$ac_c_werror_flag
3479 ac_c_werror_flag=yes
3480 ac_cv_prog_cc_g=no
3481 CFLAGS="-g"
3482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483 /* end confdefs.h. */
3484
3485 int
3486 main (void)
3487 {
3488
3489 ;
3490 return 0;
3491 }
3492 _ACEOF
3493 if ac_fn_c_try_compile "$LINENO"
3494 then :
3495 ac_cv_prog_cc_g=yes
3496 else $as_nop
3497 CFLAGS=""
3498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499 /* end confdefs.h. */
3500
3501 int
3502 main (void)
3503 {
3504
3505 ;
3506 return 0;
3507 }
3508 _ACEOF
3509 if ac_fn_c_try_compile "$LINENO"
3510 then :
3511
3512 else $as_nop
3513 ac_c_werror_flag=$ac_save_c_werror_flag
3514 CFLAGS="-g"
3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516 /* end confdefs.h. */
3517
3518 int
3519 main (void)
3520 {
3521
3522 ;
3523 return 0;
3524 }
3525 _ACEOF
3526 if ac_fn_c_try_compile "$LINENO"
3527 then :
3528 ac_cv_prog_cc_g=yes
3529 fi
3530 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3531 fi
3532 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3533 fi
3534 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3535 ac_c_werror_flag=$ac_save_c_werror_flag
3536 fi
3537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3538 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3539 if test $ac_test_CFLAGS; then
3540 CFLAGS=$ac_save_CFLAGS
3541 elif test $ac_cv_prog_cc_g = yes; then
3542 if test "$GCC" = yes; then
3543 CFLAGS="-g -O2"
3544 else
3545 CFLAGS="-g"
3546 fi
3547 else
3548 if test "$GCC" = yes; then
3549 CFLAGS="-O2"
3550 else
3551 CFLAGS=
3552 fi
3553 fi
3554 ac_prog_cc_stdc=no
3555 if test x$ac_prog_cc_stdc = xno
3556 then :
3557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3558 printf %s "checking for $CC option to enable C11 features... " >&6; }
3559 if test ${ac_cv_prog_cc_c11+y}
3560 then :
3561 printf %s "(cached) " >&6
3562 else $as_nop
3563 ac_cv_prog_cc_c11=no
3564 ac_save_CC=$CC
3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566 /* end confdefs.h. */
3567 $ac_c_conftest_c11_program
3568 _ACEOF
3569 for ac_arg in '' -std=gnu11
3570 do
3571 CC="$ac_save_CC $ac_arg"
3572 if ac_fn_c_try_compile "$LINENO"
3573 then :
3574 ac_cv_prog_cc_c11=$ac_arg
3575 fi
3576 rm -f core conftest.err conftest.$ac_objext conftest.beam
3577 test "x$ac_cv_prog_cc_c11" != "xno" && break
3578 done
3579 rm -f conftest.$ac_ext
3580 CC=$ac_save_CC
3581 fi
3582
3583 if test "x$ac_cv_prog_cc_c11" = xno
3584 then :
3585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3586 printf "%s\n" "unsupported" >&6; }
3587 else $as_nop
3588 if test "x$ac_cv_prog_cc_c11" = x
3589 then :
3590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3591 printf "%s\n" "none needed" >&6; }
3592 else $as_nop
3593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3594 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3595 CC="$CC $ac_cv_prog_cc_c11"
3596 fi
3597 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3598 ac_prog_cc_stdc=c11
3599 fi
3600 fi
3601 if test x$ac_prog_cc_stdc = xno
3602 then :
3603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3604 printf %s "checking for $CC option to enable C99 features... " >&6; }
3605 if test ${ac_cv_prog_cc_c99+y}
3606 then :
3607 printf %s "(cached) " >&6
3608 else $as_nop
3609 ac_cv_prog_cc_c99=no
3610 ac_save_CC=$CC
3611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612 /* end confdefs.h. */
3613 $ac_c_conftest_c99_program
3614 _ACEOF
3615 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3616 do
3617 CC="$ac_save_CC $ac_arg"
3618 if ac_fn_c_try_compile "$LINENO"
3619 then :
3620 ac_cv_prog_cc_c99=$ac_arg
3621 fi
3622 rm -f core conftest.err conftest.$ac_objext conftest.beam
3623 test "x$ac_cv_prog_cc_c99" != "xno" && break
3624 done
3625 rm -f conftest.$ac_ext
3626 CC=$ac_save_CC
3627 fi
3628
3629 if test "x$ac_cv_prog_cc_c99" = xno
3630 then :
3631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3632 printf "%s\n" "unsupported" >&6; }
3633 else $as_nop
3634 if test "x$ac_cv_prog_cc_c99" = x
3635 then :
3636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3637 printf "%s\n" "none needed" >&6; }
3638 else $as_nop
3639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3640 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3641 CC="$CC $ac_cv_prog_cc_c99"
3642 fi
3643 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3644 ac_prog_cc_stdc=c99
3645 fi
3646 fi
3647 if test x$ac_prog_cc_stdc = xno
3648 then :
3649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3650 printf %s "checking for $CC option to enable C89 features... " >&6; }
3651 if test ${ac_cv_prog_cc_c89+y}
3652 then :
3653 printf %s "(cached) " >&6
3654 else $as_nop
3655 ac_cv_prog_cc_c89=no
3656 ac_save_CC=$CC
3657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658 /* end confdefs.h. */
3659 $ac_c_conftest_c89_program
3660 _ACEOF
3661 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3662 do
3663 CC="$ac_save_CC $ac_arg"
3664 if ac_fn_c_try_compile "$LINENO"
3665 then :
3666 ac_cv_prog_cc_c89=$ac_arg
3667 fi
3668 rm -f core conftest.err conftest.$ac_objext conftest.beam
3669 test "x$ac_cv_prog_cc_c89" != "xno" && break
3670 done
3671 rm -f conftest.$ac_ext
3672 CC=$ac_save_CC
3673 fi
3674
3675 if test "x$ac_cv_prog_cc_c89" = xno
3676 then :
3677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3678 printf "%s\n" "unsupported" >&6; }
3679 else $as_nop
3680 if test "x$ac_cv_prog_cc_c89" = x
3681 then :
3682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3683 printf "%s\n" "none needed" >&6; }
3684 else $as_nop
3685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3686 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3687 CC="$CC $ac_cv_prog_cc_c89"
3688 fi
3689 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3690 ac_prog_cc_stdc=c89
3691 fi
3692 fi
3693
3694 ac_ext=c
3695 ac_cpp='$CPP $CPPFLAGS'
3696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3699
3700
3701 ac_header= ac_cache=
3702 for ac_item in $ac_header_c_list
3703 do
3704 if test $ac_cache; then
3705 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3706 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3707 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3708 fi
3709 ac_header= ac_cache=
3710 elif test $ac_header; then
3711 ac_cache=$ac_item
3712 else
3713 ac_header=$ac_item
3714 fi
3715 done
3716
3717
3718
3719
3720
3721
3722
3723
3724 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3725 then :
3726
3727 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3728
3729 fi
3730
3731
3732
3733
3734
3735
3736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3737 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3738 if test ${ac_cv_safe_to_define___extensions__+y}
3739 then :
3740 printf %s "(cached) " >&6
3741 else $as_nop
3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h. */
3744
3745 # define __EXTENSIONS__ 1
3746 $ac_includes_default
3747 int
3748 main (void)
3749 {
3750
3751 ;
3752 return 0;
3753 }
3754 _ACEOF
3755 if ac_fn_c_try_compile "$LINENO"
3756 then :
3757 ac_cv_safe_to_define___extensions__=yes
3758 else $as_nop
3759 ac_cv_safe_to_define___extensions__=no
3760 fi
3761 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3762 fi
3763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3764 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3765
3766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3767 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3768 if test ${ac_cv_should_define__xopen_source+y}
3769 then :
3770 printf %s "(cached) " >&6
3771 else $as_nop
3772 ac_cv_should_define__xopen_source=no
3773 if test $ac_cv_header_wchar_h = yes
3774 then :
3775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776 /* end confdefs.h. */
3777
3778 #include <wchar.h>
3779 mbstate_t x;
3780 int
3781 main (void)
3782 {
3783
3784 ;
3785 return 0;
3786 }
3787 _ACEOF
3788 if ac_fn_c_try_compile "$LINENO"
3789 then :
3790
3791 else $as_nop
3792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793 /* end confdefs.h. */
3794
3795 #define _XOPEN_SOURCE 500
3796 #include <wchar.h>
3797 mbstate_t x;
3798 int
3799 main (void)
3800 {
3801
3802 ;
3803 return 0;
3804 }
3805 _ACEOF
3806 if ac_fn_c_try_compile "$LINENO"
3807 then :
3808 ac_cv_should_define__xopen_source=yes
3809 fi
3810 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3811 fi
3812 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3813 fi
3814 fi
3815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3816 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3817
3818 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3819
3820 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3821
3822 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3823
3824 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3825
3826 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3827
3828 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3829
3830 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3831
3832 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3833
3834 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3835
3836 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3837
3838 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3839
3840 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3841
3842 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3843
3844 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3845
3846 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3847
3848 if test $ac_cv_header_minix_config_h = yes
3849 then :
3850 MINIX=yes
3851 printf "%s\n" "#define _MINIX 1" >>confdefs.h
3852
3853 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3854
3855 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3856
3857 else $as_nop
3858 MINIX=
3859 fi
3860 if test $ac_cv_safe_to_define___extensions__ = yes
3861 then :
3862 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3863
3864 fi
3865 if test $ac_cv_should_define__xopen_source = yes
3866 then :
3867 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3868
3869 fi
3870
3871
3872 if test "${LD_LIBRARY_PATH}" != "" ; then
3873 echo ""
3874 echo " WARNING: LD_LIBRARY_PATH is set. This can cause severe problems!!!"
3875 echo " Please learn about using RUNPATH instead of LD_LIBRARY_PATH - e.g. here:"
3876 echo " - http://prefetch.net/articles/linkers.badldlibrary.html"
3877 echo " For gcc, you can pass LDFLAGS=\"-R/usr/local/lib\" to configure,"
3878 echo " instead of setting LD_LIBRARY_PATH."
3879 echo ""
3880 sleep 5
3881 fi
3882
3883
3884 test "$prefix" = NONE && prefix=/usr/local
3885 test "$exec_prefix" = NONE && exec_prefix=$prefix
3886
3887 USRCFLAGS=${CFLAGS}
3888
3889 #AC_LANG([C])
3890 #
3891 # Extract the first word of "gtar tar", so it can be a program name with args.
3892 set dummy gtar tar; ac_word=$2
3893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3894 printf %s "checking for $ac_word... " >&6; }
3895 if test ${ac_cv_path_TAR+y}
3896 then :
3897 printf %s "(cached) " >&6
3898 else $as_nop
3899 case $TAR in
3900 [\\/]* | ?:[\\/]*)
3901 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3902 ;;
3903 *)
3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905 for as_dir in $PATH
3906 do
3907 IFS=$as_save_IFS
3908 case $as_dir in #(((
3909 '') as_dir=./ ;;
3910 */) ;;
3911 *) as_dir=$as_dir/ ;;
3912 esac
3913 for ac_exec_ext in '' $ac_executable_extensions; do
3914 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3915 ac_cv_path_TAR="$as_dir$ac_word$ac_exec_ext"
3916 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3917 break 2
3918 fi
3919 done
3920 done
3921 IFS=$as_save_IFS
3922
3923 ;;
3924 esac
3925 fi
3926 TAR=$ac_cv_path_TAR
3927 if test -n "$TAR"; then
3928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
3929 printf "%s\n" "$TAR" >&6; }
3930 else
3931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3932 printf "%s\n" "no" >&6; }
3933 fi
3934
3935
3936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
3937 printf %s "checking for C/C++ restrict keyword... " >&6; }
3938 if test ${ac_cv_c_restrict+y}
3939 then :
3940 printf %s "(cached) " >&6
3941 else $as_nop
3942 ac_cv_c_restrict=no
3943 # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see:
3944 # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html
3945 # Put 'restrict' last, because C++ lacks it.
3946 for ac_kw in __restrict__ __restrict _Restrict restrict; do
3947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3948 /* end confdefs.h. */
3949 typedef int *int_ptr;
3950 int foo (int_ptr $ac_kw ip) { return ip[0]; }
3951 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
3952 int bar (int ip[$ac_kw]) { return ip[0]; }
3953
3954 int
3955 main (void)
3956 {
3957 int s[1];
3958 int *$ac_kw t = s;
3959 t[0] = 0;
3960 return foo (t) + bar (t);
3961
3962 ;
3963 return 0;
3964 }
3965 _ACEOF
3966 if ac_fn_c_try_compile "$LINENO"
3967 then :
3968 ac_cv_c_restrict=$ac_kw
3969 fi
3970 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3971 test "$ac_cv_c_restrict" != no && break
3972 done
3973
3974 fi
3975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
3976 printf "%s\n" "$ac_cv_c_restrict" >&6; }
3977
3978 case $ac_cv_c_restrict in
3979 restrict) ;;
3980 no) printf "%s\n" "#define restrict /**/" >>confdefs.h
3981 ;;
3982 *) printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h
3983 ;;
3984 esac
3985
3986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
3987 printf %s "checking for inline... " >&6; }
3988 if test ${ac_cv_c_inline+y}
3989 then :
3990 printf %s "(cached) " >&6
3991 else $as_nop
3992 ac_cv_c_inline=no
3993 for ac_kw in inline __inline__ __inline; do
3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h. */
3996 #ifndef __cplusplus
3997 typedef int foo_t;
3998 static $ac_kw foo_t static_foo (void) {return 0; }
3999 $ac_kw foo_t foo (void) {return 0; }
4000 #endif
4001
4002 _ACEOF
4003 if ac_fn_c_try_compile "$LINENO"
4004 then :
4005 ac_cv_c_inline=$ac_kw
4006 fi
4007 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4008 test "$ac_cv_c_inline" != no && break
4009 done
4010
4011 fi
4012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4013 printf "%s\n" "$ac_cv_c_inline" >&6; }
4014
4015 case $ac_cv_c_inline in
4016 inline | yes) ;;
4017 *)
4018 case $ac_cv_c_inline in
4019 no) ac_val=;;
4020 *) ac_val=$ac_cv_c_inline;;
4021 esac
4022 cat >>confdefs.h <<_ACEOF
4023 #ifndef __cplusplus
4024 #define inline $ac_val
4025 #endif
4026 _ACEOF
4027 ;;
4028 esac
4029
4030
4031 if test "${USRCFLAGS}" = "" ; then
4032 if test "${GCC}" = "yes" ; then
4033 CFLAGS="${CFLAGS} -O2 -Wall"
4034 cflags_tmp="${CFLAGS}"
4035 CFLAGS="${CFLAGS} -m64"
4036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $CFLAGS" >&5
4037 printf %s "checking whether $CC supports $CFLAGS... " >&6; }
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h. */
4040
4041 int
4042 main (void)
4043 {
4044
4045 ;
4046 return 0;
4047 }
4048 _ACEOF
4049 if ac_fn_c_try_compile "$LINENO"
4050 then :
4051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4052 printf "%s\n" "yes" >&6; }
4053 else $as_nop
4054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4055 printf "%s\n" "no" >&6; }
4056 CFLAGS="$cflags_tmp"
4057
4058 fi
4059 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4060 else
4061 SUNCCVERSION=`${CC} -V 2>&1 | grep Sun`
4062 SUNCC=$?
4063 if test "${SUNCC}" == "0" ; then
4064 CFLAGS="${CFLAGS} -O"
4065 cflags_tmp="$CFLAGS"
4066 HAS_M64=`${CC} -flags | grep m64`
4067 if test "${HAS_M64}" != "" ; then
4068 CFLAGS="${CFLAGS} -m64"
4069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $CFLAGS" >&5
4070 printf %s "checking whether $CC supports $CFLAGS... " >&6; }
4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072 /* end confdefs.h. */
4073
4074 int
4075 main (void)
4076 {
4077
4078 ;
4079 return 0;
4080 }
4081 _ACEOF
4082 if ac_fn_c_try_compile "$LINENO"
4083 then :
4084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4085 printf "%s\n" "yes" >&6; }
4086 else $as_nop
4087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4088 printf "%s\n" "no" >&6; }
4089 CFLAGS="$cflags_tmp"
4090
4091 fi
4092 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4093 else
4094 CFLAGS="${CFLAGS} -xarch=generic64"
4095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $CFLAGS" >&5
4096 printf %s "checking whether $CC supports $CFLAGS... " >&6; }
4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h. */
4099
4100 int
4101 main (void)
4102 {
4103
4104 ;
4105 return 0;
4106 }
4107 _ACEOF
4108 if ac_fn_c_try_compile "$LINENO"
4109 then :
4110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4111 printf "%s\n" "yes" >&6; }
4112 else $as_nop
4113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4114 printf "%s\n" "no" >&6; }
4115 CFLAGS="$cflags_tmp"
4116
4117 fi
4118 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4119 fi
4120 else
4121 echo unknown cc
4122 CFLAGS="${CFLAGS} -O"
4123 fi
4124 fi
4125 fi
4126
4127
4128 cflags_tmp="$CFLAGS"
4129 CFLAGS="$CFLAGS -Wno-unused-result"
4130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC provides -Wunused-result" >&5
4131 printf %s "checking whether $CC provides -Wunused-result... " >&6; }
4132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4133 /* end confdefs.h. */
4134
4135 int
4136 main (void)
4137 {
4138
4139 ;
4140 return 0;
4141 }
4142 _ACEOF
4143 if ac_fn_c_try_compile "$LINENO"
4144 then :
4145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4146 printf "%s\n" "yes" >&6; }
4147 else $as_nop
4148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4149 printf "%s\n" "no" >&6; }
4150 CFLAGS="$cflags_tmp"
4151
4152 fi
4153 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4154
4155
4156
4157
4158 # Find a good install program. We prefer a C program (faster),
4159 # so one script is as good as another. But avoid the broken or
4160 # incompatible versions:
4161 # SysV /etc/install, /usr/sbin/install
4162 # SunOS /usr/etc/install
4163 # IRIX /sbin/install
4164 # AIX /bin/install
4165 # AmigaOS /C/install, which installs bootblocks on floppy discs
4166 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4167 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4168 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4169 # OS/2's system install, which has a completely different semantic
4170 # ./install, which can be erroneously created by make from ./install.sh.
4171 # Reject install programs that cannot install multiple files.
4172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4173 printf %s "checking for a BSD-compatible install... " >&6; }
4174 if test -z "$INSTALL"; then
4175 if test ${ac_cv_path_install+y}
4176 then :
4177 printf %s "(cached) " >&6
4178 else $as_nop
4179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180 for as_dir in $PATH
4181 do
4182 IFS=$as_save_IFS
4183 case $as_dir in #(((
4184 '') as_dir=./ ;;
4185 */) ;;
4186 *) as_dir=$as_dir/ ;;
4187 esac
4188 # Account for fact that we put trailing slashes in our PATH walk.
4189 case $as_dir in #((
4190 ./ | /[cC]/* | \
4191 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4192 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4193 /usr/ucb/* ) ;;
4194 *)
4195 # OSF1 and SCO ODT 3.0 have their own names for install.
4196 # Don't use installbsd from OSF since it installs stuff as root
4197 # by default.
4198 for ac_prog in ginstall scoinst install; do
4199 for ac_exec_ext in '' $ac_executable_extensions; do
4200 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4201 if test $ac_prog = install &&
4202 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4203 # AIX install. It has an incompatible calling convention.
4204 :
4205 elif test $ac_prog = install &&
4206 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4207 # program-specific install script used by HP pwplus--don't use.
4208 :
4209 else
4210 rm -rf conftest.one conftest.two conftest.dir
4211 echo one > conftest.one
4212 echo two > conftest.two
4213 mkdir conftest.dir
4214 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4215 test -s conftest.one && test -s conftest.two &&
4216 test -s conftest.dir/conftest.one &&
4217 test -s conftest.dir/conftest.two
4218 then
4219 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4220 break 3
4221 fi
4222 fi
4223 fi
4224 done
4225 done
4226 ;;
4227 esac
4228
4229 done
4230 IFS=$as_save_IFS
4231
4232 rm -rf conftest.one conftest.two conftest.dir
4233
4234 fi
4235 if test ${ac_cv_path_install+y}; then
4236 INSTALL=$ac_cv_path_install
4237 else
4238 # As a last resort, use the slow shell script. Don't cache a
4239 # value for INSTALL within a source directory, because that will
4240 # break other packages using the cache if that directory is
4241 # removed, or if the value is a relative name.
4242 INSTALL=$ac_install_sh
4243 fi
4244 fi
4245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4246 printf "%s\n" "$INSTALL" >&6; }
4247
4248 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4249 # It thinks the first close brace ends the variable substitution.
4250 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4251
4252 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4253
4254 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4255
4256 # Extract the first word of "bash sh", so it can be a program name with args.
4257 set dummy bash sh; ac_word=$2
4258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4259 printf %s "checking for $ac_word... " >&6; }
4260 if test ${ac_cv_path_SH+y}
4261 then :
4262 printf %s "(cached) " >&6
4263 else $as_nop
4264 case $SH in
4265 [\\/]* | ?:[\\/]*)
4266 ac_cv_path_SH="$SH" # Let the user override the test with a path.
4267 ;;
4268 *)
4269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270 for as_dir in $PATH
4271 do
4272 IFS=$as_save_IFS
4273 case $as_dir in #(((
4274 '') as_dir=./ ;;
4275 */) ;;
4276 *) as_dir=$as_dir/ ;;
4277 esac
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4280 ac_cv_path_SH="$as_dir$ac_word$ac_exec_ext"
4281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4282 break 2
4283 fi
4284 done
4285 done
4286 IFS=$as_save_IFS
4287
4288 ;;
4289 esac
4290 fi
4291 SH=$ac_cv_path_SH
4292 if test -n "$SH"; then
4293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
4294 printf "%s\n" "$SH" >&6; }
4295 else
4296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4297 printf "%s\n" "no" >&6; }
4298 fi
4299
4300
4301 # Extract the first word of "rm", so it can be a program name with args.
4302 set dummy rm; ac_word=$2
4303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4304 printf %s "checking for $ac_word... " >&6; }
4305 if test ${ac_cv_path_RM+y}
4306 then :
4307 printf %s "(cached) " >&6
4308 else $as_nop
4309 case $RM in
4310 [\\/]* | ?:[\\/]*)
4311 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4312 ;;
4313 *)
4314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315 for as_dir in $PATH
4316 do
4317 IFS=$as_save_IFS
4318 case $as_dir in #(((
4319 '') as_dir=./ ;;
4320 */) ;;
4321 *) as_dir=$as_dir/ ;;
4322 esac
4323 for ac_exec_ext in '' $ac_executable_extensions; do
4324 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4325 ac_cv_path_RM="$as_dir$ac_word$ac_exec_ext"
4326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4327 break 2
4328 fi
4329 done
4330 done
4331 IFS=$as_save_IFS
4332
4333 ;;
4334 esac
4335 fi
4336 RM=$ac_cv_path_RM
4337 if test -n "$RM"; then
4338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4339 printf "%s\n" "$RM" >&6; }
4340 else
4341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4342 printf "%s\n" "no" >&6; }
4343 fi
4344
4345
4346 # Extract the first word of "cp", so it can be a program name with args.
4347 set dummy cp; ac_word=$2
4348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4349 printf %s "checking for $ac_word... " >&6; }
4350 if test ${ac_cv_path_CP+y}
4351 then :
4352 printf %s "(cached) " >&6
4353 else $as_nop
4354 case $CP in
4355 [\\/]* | ?:[\\/]*)
4356 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4357 ;;
4358 *)
4359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360 for as_dir in $PATH
4361 do
4362 IFS=$as_save_IFS
4363 case $as_dir in #(((
4364 '') as_dir=./ ;;
4365 */) ;;
4366 *) as_dir=$as_dir/ ;;
4367 esac
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4370 ac_cv_path_CP="$as_dir$ac_word$ac_exec_ext"
4371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4372 break 2
4373 fi
4374 done
4375 done
4376 IFS=$as_save_IFS
4377
4378 ;;
4379 esac
4380 fi
4381 CP=$ac_cv_path_CP
4382 if test -n "$CP"; then
4383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4384 printf "%s\n" "$CP" >&6; }
4385 else
4386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4387 printf "%s\n" "no" >&6; }
4388 fi
4389
4390
4391 # Extract the first word of "mt", so it can be a program name with args.
4392 set dummy mt; ac_word=$2
4393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4394 printf %s "checking for $ac_word... " >&6; }
4395 if test ${ac_cv_path_MT+y}
4396 then :
4397 printf %s "(cached) " >&6
4398 else $as_nop
4399 case $MT in
4400 [\\/]* | ?:[\\/]*)
4401 ac_cv_path_MT="$MT" # Let the user override the test with a path.
4402 ;;
4403 *)
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 for as_dir in $PATH
4406 do
4407 IFS=$as_save_IFS
4408 case $as_dir in #(((
4409 '') as_dir=./ ;;
4410 */) ;;
4411 *) as_dir=$as_dir/ ;;
4412 esac
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4415 ac_cv_path_MT="$as_dir$ac_word$ac_exec_ext"
4416 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4417 break 2
4418 fi
4419 done
4420 done
4421 IFS=$as_save_IFS
4422
4423 test -z "$ac_cv_path_MT" && ac_cv_path_MT="{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: could not find the program mt - you might need this if you want autoloader support" >&5
4424 printf "%s\n" "$as_me: WARNING: could not find the program mt - you might need this if you want autoloader support" >&2;}"
4425 ;;
4426 esac
4427 fi
4428 MT=$ac_cv_path_MT
4429 if test -n "$MT"; then
4430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MT" >&5
4431 printf "%s\n" "$MT" >&6; }
4432 else
4433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4434 printf "%s\n" "no" >&6; }
4435 fi
4436
4437
4438 for ac_prog in gtar tar
4439 do
4440 # Extract the first word of "$ac_prog", so it can be a program name with args.
4441 set dummy $ac_prog; ac_word=$2
4442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4443 printf %s "checking for $ac_word... " >&6; }
4444 if test ${ac_cv_path_TAR+y}
4445 then :
4446 printf %s "(cached) " >&6
4447 else $as_nop
4448 case $TAR in
4449 [\\/]* | ?:[\\/]*)
4450 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4451 ;;
4452 *)
4453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454 for as_dir in $PATH
4455 do
4456 IFS=$as_save_IFS
4457 case $as_dir in #(((
4458 '') as_dir=./ ;;
4459 */) ;;
4460 *) as_dir=$as_dir/ ;;
4461 esac
4462 for ac_exec_ext in '' $ac_executable_extensions; do
4463 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4464 ac_cv_path_TAR="$as_dir$ac_word$ac_exec_ext"
4465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4466 break 2
4467 fi
4468 done
4469 done
4470 IFS=$as_save_IFS
4471
4472 ;;
4473 esac
4474 fi
4475 TAR=$ac_cv_path_TAR
4476 if test -n "$TAR"; then
4477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
4478 printf "%s\n" "$TAR" >&6; }
4479 else
4480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4481 printf "%s\n" "no" >&6; }
4482 fi
4483
4484
4485 test -n "$TAR" && break
4486 done
4487
4488 # Extract the first word of "awk", so it can be a program name with args.
4489 set dummy awk; ac_word=$2
4490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4491 printf %s "checking for $ac_word... " >&6; }
4492 if test ${ac_cv_path_AWK+y}
4493 then :
4494 printf %s "(cached) " >&6
4495 else $as_nop
4496 case $AWK in
4497 [\\/]* | ?:[\\/]*)
4498 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4499 ;;
4500 *)
4501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502 for as_dir in $PATH
4503 do
4504 IFS=$as_save_IFS
4505 case $as_dir in #(((
4506 '') as_dir=./ ;;
4507 */) ;;
4508 *) as_dir=$as_dir/ ;;
4509 esac
4510 for ac_exec_ext in '' $ac_executable_extensions; do
4511 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4512 ac_cv_path_AWK="$as_dir$ac_word$ac_exec_ext"
4513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4514 break 2
4515 fi
4516 done
4517 done
4518 IFS=$as_save_IFS
4519
4520 ;;
4521 esac
4522 fi
4523 AWK=$ac_cv_path_AWK
4524 if test -n "$AWK"; then
4525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4526 printf "%s\n" "$AWK" >&6; }
4527 else
4528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4529 printf "%s\n" "no" >&6; }
4530 fi
4531
4532
4533 # Check whether --enable-largefile was given.
4534 if test ${enable_largefile+y}
4535 then :
4536 enableval=$enable_largefile;
4537 fi
4538
4539 if test "$enable_largefile" != no; then
4540
4541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4542 printf %s "checking for special C compiler options needed for large files... " >&6; }
4543 if test ${ac_cv_sys_largefile_CC+y}
4544 then :
4545 printf %s "(cached) " >&6
4546 else $as_nop
4547 ac_cv_sys_largefile_CC=no
4548 if test "$GCC" != yes; then
4549 ac_save_CC=$CC
4550 while :; do
4551 # IRIX 6.2 and later do not support large files by default,
4552 # so use the C compiler's -n32 option if that helps.
4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554 /* end confdefs.h. */
4555 #include <sys/types.h>
4556 /* Check that off_t can represent 2**63 - 1 correctly.
4557 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4558 since some C++ compilers masquerading as C compilers
4559 incorrectly reject 9223372036854775807. */
4560 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4561 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4562 && LARGE_OFF_T % 2147483647 == 1)
4563 ? 1 : -1];
4564 int
4565 main (void)
4566 {
4567
4568 ;
4569 return 0;
4570 }
4571 _ACEOF
4572 if ac_fn_c_try_compile "$LINENO"
4573 then :
4574 break
4575 fi
4576 rm -f core conftest.err conftest.$ac_objext conftest.beam
4577 CC="$CC -n32"
4578 if ac_fn_c_try_compile "$LINENO"
4579 then :
4580 ac_cv_sys_largefile_CC=' -n32'; break
4581 fi
4582 rm -f core conftest.err conftest.$ac_objext conftest.beam
4583 break
4584 done
4585 CC=$ac_save_CC
4586 rm -f conftest.$ac_ext
4587 fi
4588 fi
4589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4590 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
4591 if test "$ac_cv_sys_largefile_CC" != no; then
4592 CC=$CC$ac_cv_sys_largefile_CC
4593 fi
4594
4595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4596 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4597 if test ${ac_cv_sys_file_offset_bits+y}
4598 then :
4599 printf %s "(cached) " >&6
4600 else $as_nop
4601 while :; do
4602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4603 /* end confdefs.h. */
4604 #include <sys/types.h>
4605 /* Check that off_t can represent 2**63 - 1 correctly.
4606 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4607 since some C++ compilers masquerading as C compilers
4608 incorrectly reject 9223372036854775807. */
4609 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4610 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4611 && LARGE_OFF_T % 2147483647 == 1)
4612 ? 1 : -1];
4613 int
4614 main (void)
4615 {
4616
4617 ;
4618 return 0;
4619 }
4620 _ACEOF
4621 if ac_fn_c_try_compile "$LINENO"
4622 then :
4623 ac_cv_sys_file_offset_bits=no; break
4624 fi
4625 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4627 /* end confdefs.h. */
4628 #define _FILE_OFFSET_BITS 64
4629 #include <sys/types.h>
4630 /* Check that off_t can represent 2**63 - 1 correctly.
4631 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4632 since some C++ compilers masquerading as C compilers
4633 incorrectly reject 9223372036854775807. */
4634 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4635 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4636 && LARGE_OFF_T % 2147483647 == 1)
4637 ? 1 : -1];
4638 int
4639 main (void)
4640 {
4641
4642 ;
4643 return 0;
4644 }
4645 _ACEOF
4646 if ac_fn_c_try_compile "$LINENO"
4647 then :
4648 ac_cv_sys_file_offset_bits=64; break
4649 fi
4650 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4651 ac_cv_sys_file_offset_bits=unknown
4652 break
4653 done
4654 fi
4655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4656 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
4657 case $ac_cv_sys_file_offset_bits in #(
4658 no | unknown) ;;
4659 *)
4660 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
4661 ;;
4662 esac
4663 rm -rf conftest*
4664 if test $ac_cv_sys_file_offset_bits = unknown; then
4665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4666 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
4667 if test ${ac_cv_sys_large_files+y}
4668 then :
4669 printf %s "(cached) " >&6
4670 else $as_nop
4671 while :; do
4672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4673 /* end confdefs.h. */
4674 #include <sys/types.h>
4675 /* Check that off_t can represent 2**63 - 1 correctly.
4676 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4677 since some C++ compilers masquerading as C compilers
4678 incorrectly reject 9223372036854775807. */
4679 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4680 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4681 && LARGE_OFF_T % 2147483647 == 1)
4682 ? 1 : -1];
4683 int
4684 main (void)
4685 {
4686
4687 ;
4688 return 0;
4689 }
4690 _ACEOF
4691 if ac_fn_c_try_compile "$LINENO"
4692 then :
4693 ac_cv_sys_large_files=no; break
4694 fi
4695 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4698 #define _LARGE_FILES 1
4699 #include <sys/types.h>
4700 /* Check that off_t can represent 2**63 - 1 correctly.
4701 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4702 since some C++ compilers masquerading as C compilers
4703 incorrectly reject 9223372036854775807. */
4704 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4705 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4706 && LARGE_OFF_T % 2147483647 == 1)
4707 ? 1 : -1];
4708 int
4709 main (void)
4710 {
4711
4712 ;
4713 return 0;
4714 }
4715 _ACEOF
4716 if ac_fn_c_try_compile "$LINENO"
4717 then :
4718 ac_cv_sys_large_files=1; break
4719 fi
4720 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4721 ac_cv_sys_large_files=unknown
4722 break
4723 done
4724 fi
4725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4726 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
4727 case $ac_cv_sys_large_files in #(
4728 no | unknown) ;;
4729 *)
4730 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
4731 ;;
4732 esac
4733 rm -rf conftest*
4734 fi
4735 fi
4736
4737 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
4738 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
4739 then :
4740
4741 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLKSIZE 1" >>confdefs.h
4742
4743
4744 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLKSIZE 1" >>confdefs.h
4745
4746 fi
4747
4748
4749 for ac_prog in gobjdump objdump
4750 do
4751 # Extract the first word of "$target_alias-$ac_prog", so it can be a program name with args.
4752 set dummy $target_alias-$ac_prog; ac_word=$2
4753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4754 printf %s "checking for $ac_word... " >&6; }
4755 if test ${ac_cv_prog_OBJDUMP+y}
4756 then :
4757 printf %s "(cached) " >&6
4758 else $as_nop
4759 if test -n "$OBJDUMP"; then
4760 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4761 else
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 for as_dir in $PATH
4764 do
4765 IFS=$as_save_IFS
4766 case $as_dir in #(((
4767 '') as_dir=./ ;;
4768 */) ;;
4769 *) as_dir=$as_dir/ ;;
4770 esac
4771 for ac_exec_ext in '' $ac_executable_extensions; do
4772 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4773 ac_cv_prog_OBJDUMP="$target_alias-$ac_prog"
4774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4775 break 2
4776 fi
4777 done
4778 done
4779 IFS=$as_save_IFS
4780
4781 fi
4782 fi
4783 OBJDUMP=$ac_cv_prog_OBJDUMP
4784 if test -n "$OBJDUMP"; then
4785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4786 printf "%s\n" "$OBJDUMP" >&6; }
4787 else
4788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4789 printf "%s\n" "no" >&6; }
4790 fi
4791
4792
4793 test -n "$OBJDUMP" && break
4794 done
4795 if test -z "$OBJDUMP"; then
4796 if test "$build" = "$target"; then
4797 ac_ct_OBJDUMP=$OBJDUMP
4798 for ac_prog in gobjdump objdump
4799 do
4800 # Extract the first word of "$ac_prog", so it can be a program name with args.
4801 set dummy $ac_prog; ac_word=$2
4802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4803 printf %s "checking for $ac_word... " >&6; }
4804 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
4805 then :
4806 printf %s "(cached) " >&6
4807 else $as_nop
4808 if test -n "$ac_ct_OBJDUMP"; then
4809 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4810 else
4811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4812 for as_dir in $PATH
4813 do
4814 IFS=$as_save_IFS
4815 case $as_dir in #(((
4816 '') as_dir=./ ;;
4817 */) ;;
4818 *) as_dir=$as_dir/ ;;
4819 esac
4820 for ac_exec_ext in '' $ac_executable_extensions; do
4821 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4822 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog"
4823 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4824 break 2
4825 fi
4826 done
4827 done
4828 IFS=$as_save_IFS
4829
4830 fi
4831 fi
4832 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4833 if test -n "$ac_ct_OBJDUMP"; then
4834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4835 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
4836 else
4837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4838 printf "%s\n" "no" >&6; }
4839 fi
4840
4841
4842 test -n "$ac_ct_OBJDUMP" && break
4843 done
4844
4845 OBJDUMP=$ac_ct_OBJDUMP
4846 else
4847 OBJDUMP=""
4848 fi
4849 fi
4850
4851
4852
4853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
4854 printf %s "checking whether to enable assertions... " >&6; }
4855 # Check whether --enable-assert was given.
4856 if test ${enable_assert+y}
4857 then :
4858 enableval=$enable_assert; ac_enable_assert=$enableval
4859 if test "x$enableval" = xno
4860 then :
4861
4862 printf "%s\n" "#define NDEBUG 1" >>confdefs.h
4863
4864 elif test "x$enableval" != xyes
4865 then :
4866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
4867 printf "%s\n" "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
4868 ac_enable_assert=yes
4869 fi
4870 else $as_nop
4871 ac_enable_assert=yes
4872 fi
4873
4874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
4875 printf "%s\n" "$ac_enable_assert" >&6; }
4876
4877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
4878 printf %s "checking for pthread_mutex_init in -lpthread... " >&6; }
4879 if test ${ac_cv_lib_pthread_pthread_mutex_init+y}
4880 then :
4881 printf %s "(cached) " >&6
4882 else $as_nop
4883 ac_check_lib_save_LIBS=$LIBS
4884 LIBS="-lpthread $LIBS"
4885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4886 /* end confdefs.h. */
4887
4888 /* Override any GCC internal prototype to avoid an error.
4889 Use char because int might match the return type of a GCC
4890 builtin and then its argument prototype would still apply. */
4891 char pthread_mutex_init ();
4892 int
4893 main (void)
4894 {
4895 return pthread_mutex_init ();
4896 ;
4897 return 0;
4898 }
4899 _ACEOF
4900 if ac_fn_c_try_link "$LINENO"
4901 then :
4902 ac_cv_lib_pthread_pthread_mutex_init=yes
4903 else $as_nop
4904 ac_cv_lib_pthread_pthread_mutex_init=no
4905 fi
4906 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4907 conftest$ac_exeext conftest.$ac_ext
4908 LIBS=$ac_check_lib_save_LIBS
4909 fi
4910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
4911 printf "%s\n" "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
4912 if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes
4913 then :
4914 printf "%s\n" "#define HAVE_LIBPTHREAD 1" >>confdefs.h
4915
4916 LIBS="-lpthread $LIBS"
4917
4918 fi
4919
4920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4921 printf %s "checking for library containing dlsym... " >&6; }
4922 if test ${ac_cv_search_dlsym+y}
4923 then :
4924 printf %s "(cached) " >&6
4925 else $as_nop
4926 ac_func_search_save_LIBS=$LIBS
4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h. */
4929
4930 /* Override any GCC internal prototype to avoid an error.
4931 Use char because int might match the return type of a GCC
4932 builtin and then its argument prototype would still apply. */
4933 char dlsym ();
4934 int
4935 main (void)
4936 {
4937 return dlsym ();
4938 ;
4939 return 0;
4940 }
4941 _ACEOF
4942 for ac_lib in '' dl
4943 do
4944 if test -z "$ac_lib"; then
4945 ac_res="none required"
4946 else
4947 ac_res=-l$ac_lib
4948 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4949 fi
4950 if ac_fn_c_try_link "$LINENO"
4951 then :
4952 ac_cv_search_dlsym=$ac_res
4953 fi
4954 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4955 conftest$ac_exeext
4956 if test ${ac_cv_search_dlsym+y}
4957 then :
4958 break
4959 fi
4960 done
4961 if test ${ac_cv_search_dlsym+y}
4962 then :
4963
4964 else $as_nop
4965 ac_cv_search_dlsym=no
4966 fi
4967 rm conftest.$ac_ext
4968 LIBS=$ac_func_search_save_LIBS
4969 fi
4970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4971 printf "%s\n" "$ac_cv_search_dlsym" >&6; }
4972 ac_res=$ac_cv_search_dlsym
4973 if test "$ac_res" != no
4974 then :
4975 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4976
4977 fi
4978
4979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
4980 printf %s "checking for library containing clock_gettime... " >&6; }
4981 if test ${ac_cv_search_clock_gettime+y}
4982 then :
4983 printf %s "(cached) " >&6
4984 else $as_nop
4985 ac_func_search_save_LIBS=$LIBS
4986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4987 /* end confdefs.h. */
4988
4989 /* Override any GCC internal prototype to avoid an error.
4990 Use char because int might match the return type of a GCC
4991 builtin and then its argument prototype would still apply. */
4992 char clock_gettime ();
4993 int
4994 main (void)
4995 {
4996 return clock_gettime ();
4997 ;
4998 return 0;
4999 }
5000 _ACEOF
5001 for ac_lib in '' rt
5002 do
5003 if test -z "$ac_lib"; then
5004 ac_res="none required"
5005 else
5006 ac_res=-l$ac_lib
5007 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5008 fi
5009 if ac_fn_c_try_link "$LINENO"
5010 then :
5011 ac_cv_search_clock_gettime=$ac_res
5012 fi
5013 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5014 conftest$ac_exeext
5015 if test ${ac_cv_search_clock_gettime+y}
5016 then :
5017 break
5018 fi
5019 done
5020 if test ${ac_cv_search_clock_gettime+y}
5021 then :
5022
5023 else $as_nop
5024 ac_cv_search_clock_gettime=no
5025 fi
5026 rm conftest.$ac_ext
5027 LIBS=$ac_func_search_save_LIBS
5028 fi
5029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
5030 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
5031 ac_res=$ac_cv_search_clock_gettime
5032 if test "$ac_res" != no
5033 then :
5034 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5035
5036 else $as_nop
5037 as_fn_error $? "could not find the library containing clock_gettime!" "$LINENO" 5
5038 fi
5039
5040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
5041 printf %s "checking for library containing sem_init... " >&6; }
5042 if test ${ac_cv_search_sem_init+y}
5043 then :
5044 printf %s "(cached) " >&6
5045 else $as_nop
5046 ac_func_search_save_LIBS=$LIBS
5047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5048 /* end confdefs.h. */
5049
5050 /* Override any GCC internal prototype to avoid an error.
5051 Use char because int might match the return type of a GCC
5052 builtin and then its argument prototype would still apply. */
5053 char sem_init ();
5054 int
5055 main (void)
5056 {
5057 return sem_init ();
5058 ;
5059 return 0;
5060 }
5061 _ACEOF
5062 for ac_lib in '' rt posix
5063 do
5064 if test -z "$ac_lib"; then
5065 ac_res="none required"
5066 else
5067 ac_res=-l$ac_lib
5068 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5069 fi
5070 if ac_fn_c_try_link "$LINENO"
5071 then :
5072 ac_cv_search_sem_init=$ac_res
5073 fi
5074 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5075 conftest$ac_exeext
5076 if test ${ac_cv_search_sem_init+y}
5077 then :
5078 break
5079 fi
5080 done
5081 if test ${ac_cv_search_sem_init+y}
5082 then :
5083
5084 else $as_nop
5085 ac_cv_search_sem_init=no
5086 fi
5087 rm conftest.$ac_ext
5088 LIBS=$ac_func_search_save_LIBS
5089 fi
5090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
5091 printf "%s\n" "$ac_cv_search_sem_init" >&6; }
5092 ac_res=$ac_cv_search_sem_init
5093 if test "$ac_res" != no
5094 then :
5095 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5096
5097 else $as_nop
5098 as_fn_error $? "could not find semaphore functions!" "$LINENO" 5
5099 fi
5100
5101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing rint" >&5
5102 printf %s "checking for library containing rint... " >&6; }
5103 if test ${ac_cv_search_rint+y}
5104 then :
5105 printf %s "(cached) " >&6
5106 else $as_nop
5107 ac_func_search_save_LIBS=$LIBS
5108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5109 /* end confdefs.h. */
5110
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 char rint ();
5115 int
5116 main (void)
5117 {
5118 return rint ();
5119 ;
5120 return 0;
5121 }
5122 _ACEOF
5123 for ac_lib in '' m
5124 do
5125 if test -z "$ac_lib"; then
5126 ac_res="none required"
5127 else
5128 ac_res=-l$ac_lib
5129 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5130 fi
5131 if ac_fn_c_try_link "$LINENO"
5132 then :
5133 ac_cv_search_rint=$ac_res
5134 fi
5135 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5136 conftest$ac_exeext
5137 if test ${ac_cv_search_rint+y}
5138 then :
5139 break
5140 fi
5141 done
5142 if test ${ac_cv_search_rint+y}
5143 then :
5144
5145 else $as_nop
5146 ac_cv_search_rint=no
5147 fi
5148 rm conftest.$ac_ext
5149 LIBS=$ac_func_search_save_LIBS
5150 fi
5151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rint" >&5
5152 printf "%s\n" "$ac_cv_search_rint" >&6; }
5153 ac_res=$ac_cv_search_rint
5154 if test "$ac_res" != no
5155 then :
5156 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5157
5158 else $as_nop
5159 as_fn_error $? "unable to find rint" "$LINENO" 5
5160 fi
5161
5162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing seteuid" >&5
5163 printf %s "checking for library containing seteuid... " >&6; }
5164 if test ${ac_cv_search_seteuid+y}
5165 then :
5166 printf %s "(cached) " >&6
5167 else $as_nop
5168 ac_func_search_save_LIBS=$LIBS
5169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5170 /* end confdefs.h. */
5171
5172 /* Override any GCC internal prototype to avoid an error.
5173 Use char because int might match the return type of a GCC
5174 builtin and then its argument prototype would still apply. */
5175 char seteuid ();
5176 int
5177 main (void)
5178 {
5179 return seteuid ();
5180 ;
5181 return 0;
5182 }
5183 _ACEOF
5184 for ac_lib in '' c
5185 do
5186 if test -z "$ac_lib"; then
5187 ac_res="none required"
5188 else
5189 ac_res=-l$ac_lib
5190 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5191 fi
5192 if ac_fn_c_try_link "$LINENO"
5193 then :
5194 ac_cv_search_seteuid=$ac_res
5195 fi
5196 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5197 conftest$ac_exeext
5198 if test ${ac_cv_search_seteuid+y}
5199 then :
5200 break
5201 fi
5202 done
5203 if test ${ac_cv_search_seteuid+y}
5204 then :
5205
5206 else $as_nop
5207 ac_cv_search_seteuid=no
5208 fi
5209 rm conftest.$ac_ext
5210 LIBS=$ac_func_search_save_LIBS
5211 fi
5212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_seteuid" >&5
5213 printf "%s\n" "$ac_cv_search_seteuid" >&6; }
5214 ac_res=$ac_cv_search_seteuid
5215 if test "$ac_res" != no
5216 then :
5217 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5218
5219 printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h
5220
5221 fi
5222
5223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
5224 printf %s "checking for library containing hstrerror... " >&6; }
5225 if test ${ac_cv_search_hstrerror+y}
5226 then :
5227 printf %s "(cached) " >&6
5228 else $as_nop
5229 ac_func_search_save_LIBS=$LIBS
5230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5231 /* end confdefs.h. */
5232
5233 /* Override any GCC internal prototype to avoid an error.
5234 Use char because int might match the return type of a GCC
5235 builtin and then its argument prototype would still apply. */
5236 char hstrerror ();
5237 int
5238 main (void)
5239 {
5240 return hstrerror ();
5241 ;
5242 return 0;
5243 }
5244 _ACEOF
5245 for ac_lib in '' resolv socket nsl
5246 do
5247 if test -z "$ac_lib"; then
5248 ac_res="none required"
5249 else
5250 ac_res=-l$ac_lib
5251 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5252 fi
5253 if ac_fn_c_try_link "$LINENO"
5254 then :
5255 ac_cv_search_hstrerror=$ac_res
5256 fi
5257 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5258 conftest$ac_exeext
5259 if test ${ac_cv_search_hstrerror+y}
5260 then :
5261 break
5262 fi
5263 done
5264 if test ${ac_cv_search_hstrerror+y}
5265 then :
5266
5267 else $as_nop
5268 ac_cv_search_hstrerror=no
5269 fi
5270 rm conftest.$ac_ext
5271 LIBS=$ac_func_search_save_LIBS
5272 fi
5273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
5274 printf "%s\n" "$ac_cv_search_hstrerror" >&6; }
5275 ac_res=$ac_cv_search_hstrerror
5276 if test "$ac_res" != no
5277 then :
5278 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5279
5280 printf "%s\n" "#define HAVE_HSTRERROR 1" >>confdefs.h
5281
5282 fi
5283
5284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
5285 printf %s "checking for library containing getaddrinfo... " >&6; }
5286 if test ${ac_cv_search_getaddrinfo+y}
5287 then :
5288 printf %s "(cached) " >&6
5289 else $as_nop
5290 ac_func_search_save_LIBS=$LIBS
5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h. */
5293
5294 /* Override any GCC internal prototype to avoid an error.
5295 Use char because int might match the return type of a GCC
5296 builtin and then its argument prototype would still apply. */
5297 char getaddrinfo ();
5298 int
5299 main (void)
5300 {
5301 return getaddrinfo ();
5302 ;
5303 return 0;
5304 }
5305 _ACEOF
5306 for ac_lib in '' resolv socket nsl
5307 do
5308 if test -z "$ac_lib"; then
5309 ac_res="none required"
5310 else
5311 ac_res=-l$ac_lib
5312 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5313 fi
5314 if ac_fn_c_try_link "$LINENO"
5315 then :
5316 ac_cv_search_getaddrinfo=$ac_res
5317 fi
5318 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5319 conftest$ac_exeext
5320 if test ${ac_cv_search_getaddrinfo+y}
5321 then :
5322 break
5323 fi
5324 done
5325 if test ${ac_cv_search_getaddrinfo+y}
5326 then :
5327
5328 else $as_nop
5329 ac_cv_search_getaddrinfo=no
5330 fi
5331 rm conftest.$ac_ext
5332 LIBS=$ac_func_search_save_LIBS
5333 fi
5334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
5335 printf "%s\n" "$ac_cv_search_getaddrinfo" >&6; }
5336 ac_res=$ac_cv_search_getaddrinfo
5337 if test "$ac_res" != no
5338 then :
5339 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5340
5341 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
5342
5343 else $as_nop
5344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: support for systems without getaddrinfo is deprecated and will be removed in the future" >&5
5345 printf "%s\n" "$as_me: WARNING: support for systems without getaddrinfo is deprecated and will be removed in the future" >&2;}
5346 fi
5347
5348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
5349 printf %s "checking for library containing socket... " >&6; }
5350 if test ${ac_cv_search_socket+y}
5351 then :
5352 printf %s "(cached) " >&6
5353 else $as_nop
5354 ac_func_search_save_LIBS=$LIBS
5355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356 /* end confdefs.h. */
5357
5358 /* Override any GCC internal prototype to avoid an error.
5359 Use char because int might match the return type of a GCC
5360 builtin and then its argument prototype would still apply. */
5361 char socket ();
5362 int
5363 main (void)
5364 {
5365 return socket ();
5366 ;
5367 return 0;
5368 }
5369 _ACEOF
5370 for ac_lib in '' socket
5371 do
5372 if test -z "$ac_lib"; then
5373 ac_res="none required"
5374 else
5375 ac_res=-l$ac_lib
5376 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5377 fi
5378 if ac_fn_c_try_link "$LINENO"
5379 then :
5380 ac_cv_search_socket=$ac_res
5381 fi
5382 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5383 conftest$ac_exeext
5384 if test ${ac_cv_search_socket+y}
5385 then :
5386 break
5387 fi
5388 done
5389 if test ${ac_cv_search_socket+y}
5390 then :
5391
5392 else $as_nop
5393 ac_cv_search_socket=no
5394 fi
5395 rm conftest.$ac_ext
5396 LIBS=$ac_func_search_save_LIBS
5397 fi
5398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
5399 printf "%s\n" "$ac_cv_search_socket" >&6; }
5400 ac_res=$ac_cv_search_socket
5401 if test "$ac_res" != no
5402 then :
5403 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5404
5405 else $as_nop
5406 as_fn_error $? "could not find the library containing network functions!" "$LINENO" 5
5407 fi
5408
5409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
5410 printf %s "checking for library containing gethostbyname... " >&6; }
5411 if test ${ac_cv_search_gethostbyname+y}
5412 then :
5413 printf %s "(cached) " >&6
5414 else $as_nop
5415 ac_func_search_save_LIBS=$LIBS
5416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5417 /* end confdefs.h. */
5418
5419 /* Override any GCC internal prototype to avoid an error.
5420 Use char because int might match the return type of a GCC
5421 builtin and then its argument prototype would still apply. */
5422 char gethostbyname ();
5423 int
5424 main (void)
5425 {
5426 return gethostbyname ();
5427 ;
5428 return 0;
5429 }
5430 _ACEOF
5431 for ac_lib in '' nsl
5432 do
5433 if test -z "$ac_lib"; then
5434 ac_res="none required"
5435 else
5436 ac_res=-l$ac_lib
5437 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5438 fi
5439 if ac_fn_c_try_link "$LINENO"
5440 then :
5441 ac_cv_search_gethostbyname=$ac_res
5442 fi
5443 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5444 conftest$ac_exeext
5445 if test ${ac_cv_search_gethostbyname+y}
5446 then :
5447 break
5448 fi
5449 done
5450 if test ${ac_cv_search_gethostbyname+y}
5451 then :
5452
5453 else $as_nop
5454 ac_cv_search_gethostbyname=no
5455 fi
5456 rm conftest.$ac_ext
5457 LIBS=$ac_func_search_save_LIBS
5458 fi
5459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
5460 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
5461 ac_res=$ac_cv_search_gethostbyname
5462 if test "$ac_res" != no
5463 then :
5464 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5465
5466 else $as_nop
5467 as_fn_error $? "could not find the library containing name convertion functions!" "$LINENO" 5
5468 fi
5469
5470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sendfile" >&5
5471 printf %s "checking for library containing sendfile... " >&6; }
5472 if test ${ac_cv_search_sendfile+y}
5473 then :
5474 printf %s "(cached) " >&6
5475 else $as_nop
5476 ac_func_search_save_LIBS=$LIBS
5477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5478 /* end confdefs.h. */
5479
5480 /* Override any GCC internal prototype to avoid an error.
5481 Use char because int might match the return type of a GCC
5482 builtin and then its argument prototype would still apply. */
5483 char sendfile ();
5484 int
5485 main (void)
5486 {
5487 return sendfile ();
5488 ;
5489 return 0;
5490 }
5491 _ACEOF
5492 for ac_lib in '' sendfile
5493 do
5494 if test -z "$ac_lib"; then
5495 ac_res="none required"
5496 else
5497 ac_res=-l$ac_lib
5498 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5499 fi
5500 if ac_fn_c_try_link "$LINENO"
5501 then :
5502 ac_cv_search_sendfile=$ac_res
5503 fi
5504 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5505 conftest$ac_exeext
5506 if test ${ac_cv_search_sendfile+y}
5507 then :
5508 break
5509 fi
5510 done
5511 if test ${ac_cv_search_sendfile+y}
5512 then :
5513
5514 else $as_nop
5515 ac_cv_search_sendfile=no
5516 fi
5517 rm conftest.$ac_ext
5518 LIBS=$ac_func_search_save_LIBS
5519 fi
5520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfile" >&5
5521 printf "%s\n" "$ac_cv_search_sendfile" >&6; }
5522 ac_res=$ac_cv_search_sendfile
5523 if test "$ac_res" != no
5524 then :
5525 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5526
5527 printf "%s\n" "#define HAVE_SENDFILE 1" >>confdefs.h
5528
5529 fi
5530
5531 ac_fn_c_check_header_compile "$LINENO" "sys/sendfile.h" "ac_cv_header_sys_sendfile_h" "$ac_includes_default"
5532 if test "x$ac_cv_header_sys_sendfile_h" = xyes
5533 then :
5534
5535 printf "%s\n" "#define HAVE_SENDFILE_H 1" >>confdefs.h
5536
5537 fi
5538
5539 ac_fn_c_check_header_compile "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default"
5540 if test "x$ac_cv_header_stdatomic_h" = xyes
5541 then :
5542
5543 printf "%s\n" "#define HAVE_STDATOMIC_H 1" >>confdefs.h
5544
5545 fi
5546
5547 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5548 if test "x$ac_cv_type_size_t" = xyes
5549 then :
5550
5551 else $as_nop
5552
5553 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
5554
5555 fi
5556
5557 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5558 # for constant arguments. Useless!
5559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5560 printf %s "checking for working alloca.h... " >&6; }
5561 if test ${ac_cv_working_alloca_h+y}
5562 then :
5563 printf %s "(cached) " >&6
5564 else $as_nop
5565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5566 /* end confdefs.h. */
5567 #include <alloca.h>
5568 int
5569 main (void)
5570 {
5571 char *p = (char *) alloca (2 * sizeof (int));
5572 if (p) return 0;
5573 ;
5574 return 0;
5575 }
5576 _ACEOF
5577 if ac_fn_c_try_link "$LINENO"
5578 then :
5579 ac_cv_working_alloca_h=yes
5580 else $as_nop
5581 ac_cv_working_alloca_h=no
5582 fi
5583 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5584 conftest$ac_exeext conftest.$ac_ext
5585 fi
5586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5587 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
5588 if test $ac_cv_working_alloca_h = yes; then
5589
5590 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
5591
5592 fi
5593
5594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5595 printf %s "checking for alloca... " >&6; }
5596 if test ${ac_cv_func_alloca_works+y}
5597 then :
5598 printf %s "(cached) " >&6
5599 else $as_nop
5600 if test $ac_cv_working_alloca_h = yes; then
5601 ac_cv_func_alloca_works=yes
5602 else
5603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5604 /* end confdefs.h. */
5605 #include <stdlib.h>
5606 #include <stddef.h>
5607 #ifndef alloca
5608 # ifdef __GNUC__
5609 # define alloca __builtin_alloca
5610 # elif defined _MSC_VER
5611 # include <malloc.h>
5612 # define alloca _alloca
5613 # else
5614 # ifdef __cplusplus
5615 extern "C"
5616 # endif
5617 void *alloca (size_t);
5618 # endif
5619 #endif
5620
5621 int
5622 main (void)
5623 {
5624 char *p = (char *) alloca (1);
5625 if (p) return 0;
5626 ;
5627 return 0;
5628 }
5629 _ACEOF
5630 if ac_fn_c_try_link "$LINENO"
5631 then :
5632 ac_cv_func_alloca_works=yes
5633 else $as_nop
5634 ac_cv_func_alloca_works=no
5635 fi
5636 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5637 conftest$ac_exeext conftest.$ac_ext
5638 fi
5639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5640 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
5641 fi
5642
5643 if test $ac_cv_func_alloca_works = yes; then
5644
5645 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
5646
5647 else
5648 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5649 # that cause trouble. Some versions do not even contain alloca or
5650 # contain a buggy version. If you still want to use their alloca,
5651 # use ar to extract alloca.o from them instead of compiling alloca.c.
5652
5653 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5654
5655 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
5656
5657
5658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5659 printf %s "checking stack direction for C alloca... " >&6; }
5660 if test ${ac_cv_c_stack_direction+y}
5661 then :
5662 printf %s "(cached) " >&6
5663 else $as_nop
5664 if test "$cross_compiling" = yes
5665 then :
5666 ac_cv_c_stack_direction=0
5667 else $as_nop
5668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5669 /* end confdefs.h. */
5670 $ac_includes_default
5671 int
5672 find_stack_direction (int *addr, int depth)
5673 {
5674 int dir, dummy = 0;
5675 if (! addr)
5676 addr = &dummy;
5677 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5678 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5679 return dir + dummy;
5680 }
5681
5682 int
5683 main (int argc, char **argv)
5684 {
5685 return find_stack_direction (0, argc + !argv + 20) < 0;
5686 }
5687 _ACEOF
5688 if ac_fn_c_try_run "$LINENO"
5689 then :
5690 ac_cv_c_stack_direction=1
5691 else $as_nop
5692 ac_cv_c_stack_direction=-1
5693 fi
5694 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5695 conftest.$ac_objext conftest.beam conftest.$ac_ext
5696 fi
5697
5698 fi
5699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5700 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
5701 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
5702
5703
5704 fi
5705
5706 ac_fn_c_check_func "$LINENO" "mkostemp" "ac_cv_func_mkostemp"
5707 if test "x$ac_cv_func_mkostemp" = xyes
5708 then :
5709 printf "%s\n" "#define HAVE_MKOSTEMP 1" >>confdefs.h
5710
5711 fi
5712
5713
5714
5715 # Check whether --enable-debug was given.
5716 if test ${enable_debug+y}
5717 then :
5718 enableval=$enable_debug;
5719 else $as_nop
5720 enable_debug=yes
5721
5722 fi
5723
5724 if test x$enable_debug = xyes ; then
5725
5726 printf "%s\n" "#define DEBUG 1" >>confdefs.h
5727
5728 fi
5729
5730 # Check whether --enable-md5 was given.
5731 if test ${enable_md5+y}
5732 then :
5733 enableval=$enable_md5;
5734 else $as_nop
5735 enable_md5=auto
5736
5737 fi
5738
5739 if test x$enable_md5 != xno ; then
5740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
5741 printf %s "checking for library containing MD5Init... " >&6; }
5742 if test ${ac_cv_search_MD5Init+y}
5743 then :
5744 printf %s "(cached) " >&6
5745 else $as_nop
5746 ac_func_search_save_LIBS=$LIBS
5747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5748 /* end confdefs.h. */
5749
5750 /* Override any GCC internal prototype to avoid an error.
5751 Use char because int might match the return type of a GCC
5752 builtin and then its argument prototype would still apply. */
5753 char MD5Init ();
5754 int
5755 main (void)
5756 {
5757 return MD5Init ();
5758 ;
5759 return 0;
5760 }
5761 _ACEOF
5762 for ac_lib in '' md5 md
5763 do
5764 if test -z "$ac_lib"; then
5765 ac_res="none required"
5766 else
5767 ac_res=-l$ac_lib
5768 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5769 fi
5770 if ac_fn_c_try_link "$LINENO"
5771 then :
5772 ac_cv_search_MD5Init=$ac_res
5773 fi
5774 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5775 conftest$ac_exeext
5776 if test ${ac_cv_search_MD5Init+y}
5777 then :
5778 break
5779 fi
5780 done
5781 if test ${ac_cv_search_MD5Init+y}
5782 then :
5783
5784 else $as_nop
5785 ac_cv_search_MD5Init=no
5786 fi
5787 rm conftest.$ac_ext
5788 LIBS=$ac_func_search_save_LIBS
5789 fi
5790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
5791 printf "%s\n" "$ac_cv_search_MD5Init" >&6; }
5792 ac_res=$ac_cv_search_MD5Init
5793 if test "$ac_res" != no
5794 then :
5795 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5796
5797 printf "%s\n" "#define HAVE_LIBMD5 1" >>confdefs.h
5798
5799 fi
5800
5801 ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "$ac_includes_default"
5802 if test "x$ac_cv_header_md5_h" = xyes
5803 then :
5804
5805 printf "%s\n" "#define HAVE_MD5_H 1" >>confdefs.h
5806
5807 fi
5808
5809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing MD5_Init" >&5
5810 printf %s "checking for library containing MD5_Init... " >&6; }
5811 if test ${ac_cv_search_MD5_Init+y}
5812 then :
5813 printf %s "(cached) " >&6
5814 else $as_nop
5815 ac_func_search_save_LIBS=$LIBS
5816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5817 /* end confdefs.h. */
5818
5819 /* Override any GCC internal prototype to avoid an error.
5820 Use char because int might match the return type of a GCC
5821 builtin and then its argument prototype would still apply. */
5822 char MD5_Init ();
5823 int
5824 main (void)
5825 {
5826 return MD5_Init ();
5827 ;
5828 return 0;
5829 }
5830 _ACEOF
5831 for ac_lib in '' crypto
5832 do
5833 if test -z "$ac_lib"; then
5834 ac_res="none required"
5835 else
5836 ac_res=-l$ac_lib
5837 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5838 fi
5839 if ac_fn_c_try_link "$LINENO"
5840 then :
5841 ac_cv_search_MD5_Init=$ac_res
5842 fi
5843 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5844 conftest$ac_exeext
5845 if test ${ac_cv_search_MD5_Init+y}
5846 then :
5847 break
5848 fi
5849 done
5850 if test ${ac_cv_search_MD5_Init+y}
5851 then :
5852
5853 else $as_nop
5854 ac_cv_search_MD5_Init=no
5855 fi
5856 rm conftest.$ac_ext
5857 LIBS=$ac_func_search_save_LIBS
5858 fi
5859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5_Init" >&5
5860 printf "%s\n" "$ac_cv_search_MD5_Init" >&6; }
5861 ac_res=$ac_cv_search_MD5_Init
5862 if test "$ac_res" != no
5863 then :
5864 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5865
5866 printf "%s\n" "#define HAVE_LIBCRYPTO 1" >>confdefs.h
5867
5868 fi
5869
5870 fi
5871
5872
5873 ac_ext=c
5874 ac_cpp='$CPP $CPPFLAGS'
5875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5878
5879 if test -z "$OBJDUMP"; then
5880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unable to find objdump, which is needed to run tests" >&5
5881 printf "%s\n" "$as_me: WARNING: unable to find objdump, which is needed to run tests" >&2;}
5882 else
5883 cflags_tmp="${CFLAGS}"
5884 CFLAGS="-O0"
5885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking linking open() and write() to detect libc names" >&5
5886 printf %s "checking linking open() and write() to detect libc names... " >&6; }
5887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5888 /* end confdefs.h. */
5889
5890
5891 #define _LARGEFILE64_SOURCE
5892 #include <unistd.h>
5893 #include <fcntl.h>
5894 #include <sys/stat.h>
5895 int main(int argc, char **argv) {
5896 unsigned x;
5897 struct stat st;
5898 open(*argv,O_RDONLY);
5899 fstat(0,&st);
5900 read(0,&x,sizeof(x));
5901 write(1,"null",4);
5902 }
5903
5904 _ACEOF
5905 if ac_fn_c_try_link "$LINENO"
5906 then :
5907
5908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OK" >&5
5909 printf "%s\n" "OK" >&6; }
5910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking name of open() in C library" >&5
5911 printf %s "checking name of open() in C library... " >&6; }
5912 libc_open=`$OBJDUMP -T conftest | $AWK '/\*UND\*/ && $NF ~ /^open/ { print $NF }'`
5913
5914 printf "%s\n" "#define LIBC_OPEN $libc_open" >>confdefs.h
5915
5916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_open" >&5
5917 printf "%s\n" "$libc_open" >&6; }
5918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking name of read() in C library" >&5
5919 printf %s "checking name of read() in C library... " >&6; }
5920 libc_read=`$OBJDUMP -T conftest | $AWK '/\*UND\*/ && $NF ~ /^read/ { print $NF }'`
5921
5922 printf "%s\n" "#define LIBC_READ $libc_read" >>confdefs.h
5923
5924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_read" >&5
5925 printf "%s\n" "$libc_read" >&6; }
5926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking name of write() in C library" >&5
5927 printf %s "checking name of write() in C library... " >&6; }
5928 libc_write=`$OBJDUMP -T conftest | $AWK '/\*UND\*/ && $NF ~ /^write/ { print $NF }'`
5929
5930 printf "%s\n" "#define LIBC_WRITE $libc_write" >>confdefs.h
5931
5932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_write" >&5
5933 printf "%s\n" "$libc_write" >&6; }
5934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking name of fstat() in C library" >&5
5935 printf %s "checking name of fstat() in C library... " >&6; }
5936 libc_fstat=`$OBJDUMP -T conftest | $AWK '/\*UND\*/ && $NF ~ /^_*fstat/ { print $NF }'`
5937
5938 printf "%s\n" "#define LIBC_FSTAT $libc_fstat" >>confdefs.h
5939
5940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_fstat" >&5
5941 printf "%s\n" "$libc_fstat" >&6; }
5942
5943 else $as_nop
5944 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5945 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5946 as_fn_error $? "failed to link open/write test
5947 See \`config.log' for more details" "$LINENO" 5; }
5948
5949 fi
5950 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5951 conftest$ac_exeext conftest.$ac_ext
5952 CFLAGS="${cflags_tmp}"
5953 fi
5954
5955
5956
5957
5958
5959
5960
5961
5962 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
5963
5964
5965 ac_config_files="$ac_config_files Makefile"
5966
5967 cat >confcache <<\_ACEOF
5968 # This file is a shell script that caches the results of configure
5969 # tests run on this system so they can be shared between configure
5970 # scripts and configure runs, see configure's option --config-cache.
5971 # It is not useful on other systems. If it contains results you don't
5972 # want to keep, you may remove or edit it.
5973 #
5974 # config.status only pays attention to the cache file if you give it
5975 # the --recheck option to rerun configure.
5976 #
5977 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5978 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5979 # following values.
5980
5981 _ACEOF
5982
5983 # The following way of writing the cache mishandles newlines in values,
5984 # but we know of no workaround that is simple, portable, and efficient.
5985 # So, we kill variables containing newlines.
5986 # Ultrix sh set writes to stderr and can't be redirected directly,
5987 # and sets the high bit in the cache file unless we assign to the vars.
5988 (
5989 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5990 eval ac_val=\$$ac_var
5991 case $ac_val in #(
5992 *${as_nl}*)
5993 case $ac_var in #(
5994 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5995 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5996 esac
5997 case $ac_var in #(
5998 _ | IFS | as_nl) ;; #(
5999 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6000 *) { eval $ac_var=; unset $ac_var;} ;;
6001 esac ;;
6002 esac
6003 done
6004
6005 (set) 2>&1 |
6006 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6007 *${as_nl}ac_space=\ *)
6008 # `set' does not quote correctly, so add quotes: double-quote
6009 # substitution turns \\\\ into \\, and sed turns \\ into \.
6010 sed -n \
6011 "s/'/'\\\\''/g;
6012 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6013 ;; #(
6014 *)
6015 # `set' quotes correctly as required by POSIX, so do not add quotes.
6016 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6017 ;;
6018 esac |
6019 sort
6020 ) |
6021 sed '
6022 /^ac_cv_env_/b end
6023 t clear
6024 :clear
6025 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
6026 t end
6027 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6028 :end' >>confcache
6029 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6030 if test -w "$cache_file"; then
6031 if test "x$cache_file" != "x/dev/null"; then
6032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6033 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
6034 if test ! -f "$cache_file" || test -h "$cache_file"; then
6035 cat confcache >"$cache_file"
6036 else
6037 case $cache_file in #(
6038 */* | ?:*)
6039 mv -f confcache "$cache_file"$$ &&
6040 mv -f "$cache_file"$$ "$cache_file" ;; #(
6041 *)
6042 mv -f confcache "$cache_file" ;;
6043 esac
6044 fi
6045 fi
6046 else
6047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6048 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
6049 fi
6050 fi
6051 rm -f confcache
6052
6053 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6054 # Let make expand exec_prefix.
6055 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6056
6057 DEFS=-DHAVE_CONFIG_H
6058
6059 ac_libobjs=
6060 ac_ltlibobjs=
6061 U=
6062 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6063 # 1. Remove the extension, and $U if already installed.
6064 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6065 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
6066 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6067 # will be set to the directory where LIBOBJS objects are built.
6068 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6069 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6070 done
6071 LIBOBJS=$ac_libobjs
6072
6073 LTLIBOBJS=$ac_ltlibobjs
6074
6075
6076
6077 : "${CONFIG_STATUS=./config.status}"
6078 ac_write_fail=0
6079 ac_clean_files_save=$ac_clean_files
6080 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6082 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
6083 as_write_fail=0
6084 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6085 #! $SHELL
6086 # Generated by $as_me.
6087 # Run this file to recreate the current configuration.
6088 # Compiler output produced by configure, useful for debugging
6089 # configure, is in config.log if it exists.
6090
6091 debug=false
6092 ac_cs_recheck=false
6093 ac_cs_silent=false
6094
6095 SHELL=\${CONFIG_SHELL-$SHELL}
6096 export SHELL
6097 _ASEOF
6098 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6099 ## -------------------- ##
6100 ## M4sh Initialization. ##
6101 ## -------------------- ##
6102
6103 # Be more Bourne compatible
6104 DUALCASE=1; export DUALCASE # for MKS sh
6105 as_nop=:
6106 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
6107 then :
6108 emulate sh
6109 NULLCMD=:
6110 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6111 # is contrary to our usage. Disable this feature.
6112 alias -g '${1+"$@"}'='"$@"'
6113 setopt NO_GLOB_SUBST
6114 else $as_nop
6115 case `(set -o) 2>/dev/null` in #(
6116 *posix*) :
6117 set -o posix ;; #(
6118 *) :
6119 ;;
6120 esac
6121 fi
6122
6123
6124
6125 # Reset variables that may have inherited troublesome values from
6126 # the environment.
6127
6128 # IFS needs to be set, to space, tab, and newline, in precisely that order.
6129 # (If _AS_PATH_WALK were called with IFS unset, it would have the
6130 # side effect of setting IFS to empty, thus disabling word splitting.)
6131 # Quoting is to prevent editors from complaining about space-tab.
6132 as_nl='
6133 '
6134 export as_nl
6135 IFS=" "" $as_nl"
6136
6137 PS1='$ '
6138 PS2='> '
6139 PS4='+ '
6140
6141 # Ensure predictable behavior from utilities with locale-dependent output.
6142 LC_ALL=C
6143 export LC_ALL
6144 LANGUAGE=C
6145 export LANGUAGE
6146
6147 # We cannot yet rely on "unset" to work, but we need these variables
6148 # to be unset--not just set to an empty or harmless value--now, to
6149 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
6150 # also avoids known problems related to "unset" and subshell syntax
6151 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
6152 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
6153 do eval test \${$as_var+y} \
6154 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6155 done
6156
6157 # Ensure that fds 0, 1, and 2 are open.
6158 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
6159 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
6160 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
6161
6162 # The user is always right.
6163 if ${PATH_SEPARATOR+false} :; then
6164 PATH_SEPARATOR=:
6165 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6166 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6167 PATH_SEPARATOR=';'
6168 }
6169 fi
6170
6171
6172 # Find who we are. Look in the path if we contain no directory separator.
6173 as_myself=
6174 case $0 in #((
6175 *[\\/]* ) as_myself=$0 ;;
6176 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177 for as_dir in $PATH
6178 do
6179 IFS=$as_save_IFS
6180 case $as_dir in #(((
6181 '') as_dir=./ ;;
6182 */) ;;
6183 *) as_dir=$as_dir/ ;;
6184 esac
6185 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
6186 done
6187 IFS=$as_save_IFS
6188
6189 ;;
6190 esac
6191 # We did not find ourselves, most probably we were run as `sh COMMAND'
6192 # in which case we are not to be found in the path.
6193 if test "x$as_myself" = x; then
6194 as_myself=$0
6195 fi
6196 if test ! -f "$as_myself"; then
6197 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6198 exit 1
6199 fi
6200
6201
6202
6203 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6204 # ----------------------------------------
6205 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6206 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6207 # script with STATUS, using 1 if that was 0.
6208 as_fn_error ()
6209 {
6210 as_status=$1; test $as_status -eq 0 && as_status=1
6211 if test "$4"; then
6212 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6213 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6214 fi
6215 printf "%s\n" "$as_me: error: $2" >&2
6216 as_fn_exit $as_status
6217 } # as_fn_error
6218
6219
6220
6221 # as_fn_set_status STATUS
6222 # -----------------------
6223 # Set $? to STATUS, without forking.
6224 as_fn_set_status ()
6225 {
6226 return $1
6227 } # as_fn_set_status
6228
6229 # as_fn_exit STATUS
6230 # -----------------
6231 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6232 as_fn_exit ()
6233 {
6234 set +e
6235 as_fn_set_status $1
6236 exit $1
6237 } # as_fn_exit
6238
6239 # as_fn_unset VAR
6240 # ---------------
6241 # Portably unset VAR.
6242 as_fn_unset ()
6243 {
6244 { eval $1=; unset $1;}
6245 }
6246 as_unset=as_fn_unset
6247
6248 # as_fn_append VAR VALUE
6249 # ----------------------
6250 # Append the text in VALUE to the end of the definition contained in VAR. Take
6251 # advantage of any shell optimizations that allow amortized linear growth over
6252 # repeated appends, instead of the typical quadratic growth present in naive
6253 # implementations.
6254 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
6255 then :
6256 eval 'as_fn_append ()
6257 {
6258 eval $1+=\$2
6259 }'
6260 else $as_nop
6261 as_fn_append ()
6262 {
6263 eval $1=\$$1\$2
6264 }
6265 fi # as_fn_append
6266
6267 # as_fn_arith ARG...
6268 # ------------------
6269 # Perform arithmetic evaluation on the ARGs, and store the result in the
6270 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6271 # must be portable across $(()) and expr.
6272 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
6273 then :
6274 eval 'as_fn_arith ()
6275 {
6276 as_val=$(( $* ))
6277 }'
6278 else $as_nop
6279 as_fn_arith ()
6280 {
6281 as_val=`expr "$@" || test $? -eq 1`
6282 }
6283 fi # as_fn_arith
6284
6285
6286 if expr a : '\(a\)' >/dev/null 2>&1 &&
6287 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6288 as_expr=expr
6289 else
6290 as_expr=false
6291 fi
6292
6293 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6294 as_basename=basename
6295 else
6296 as_basename=false
6297 fi
6298
6299 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6300 as_dirname=dirname
6301 else
6302 as_dirname=false
6303 fi
6304
6305 as_me=`$as_basename -- "$0" ||
6306 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6307 X"$0" : 'X\(//\)$' \| \
6308 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6309 printf "%s\n" X/"$0" |
6310 sed '/^.*\/\([^/][^/]*\)\/*$/{
6311 s//\1/
6312 q
6313 }
6314 /^X\/\(\/\/\)$/{
6315 s//\1/
6316 q
6317 }
6318 /^X\/\(\/\).*/{
6319 s//\1/
6320 q
6321 }
6322 s/.*/./; q'`
6323
6324 # Avoid depending upon Character Ranges.
6325 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6326 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6327 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6328 as_cr_digits='0123456789'
6329 as_cr_alnum=$as_cr_Letters$as_cr_digits
6330
6331
6332 # Determine whether it's possible to make 'echo' print without a newline.
6333 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
6334 # for compatibility with existing Makefiles.
6335 ECHO_C= ECHO_N= ECHO_T=
6336 case `echo -n x` in #(((((
6337 -n*)
6338 case `echo 'xy\c'` in
6339 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6340 xy) ECHO_C='\c';;
6341 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6342 ECHO_T=' ';;
6343 esac;;
6344 *)
6345 ECHO_N='-n';;
6346 esac
6347
6348 # For backward compatibility with old third-party macros, we provide
6349 # the shell variables $as_echo and $as_echo_n. New code should use
6350 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
6351 as_echo='printf %s\n'
6352 as_echo_n='printf %s'
6353
6354 rm -f conf$$ conf$$.exe conf$$.file
6355 if test -d conf$$.dir; then
6356 rm -f conf$$.dir/conf$$.file
6357 else
6358 rm -f conf$$.dir
6359 mkdir conf$$.dir 2>/dev/null
6360 fi
6361 if (echo >conf$$.file) 2>/dev/null; then
6362 if ln -s conf$$.file conf$$ 2>/dev/null; then
6363 as_ln_s='ln -s'
6364 # ... but there are two gotchas:
6365 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6366 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6367 # In both cases, we have to default to `cp -pR'.
6368 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6369 as_ln_s='cp -pR'
6370 elif ln conf$$.file conf$$ 2>/dev/null; then
6371 as_ln_s=ln
6372 else
6373 as_ln_s='cp -pR'
6374 fi
6375 else
6376 as_ln_s='cp -pR'
6377 fi
6378 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6379 rmdir conf$$.dir 2>/dev/null
6380
6381
6382 # as_fn_mkdir_p
6383 # -------------
6384 # Create "$as_dir" as a directory, including parents if necessary.
6385 as_fn_mkdir_p ()
6386 {
6387
6388 case $as_dir in #(
6389 -*) as_dir=./$as_dir;;
6390 esac
6391 test -d "$as_dir" || eval $as_mkdir_p || {
6392 as_dirs=
6393 while :; do
6394 case $as_dir in #(
6395 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6396 *) as_qdir=$as_dir;;
6397 esac
6398 as_dirs="'$as_qdir' $as_dirs"
6399 as_dir=`$as_dirname -- "$as_dir" ||
6400 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6401 X"$as_dir" : 'X\(//\)[^/]' \| \
6402 X"$as_dir" : 'X\(//\)$' \| \
6403 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6404 printf "%s\n" X"$as_dir" |
6405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6406 s//\1/
6407 q
6408 }
6409 /^X\(\/\/\)[^/].*/{
6410 s//\1/
6411 q
6412 }
6413 /^X\(\/\/\)$/{
6414 s//\1/
6415 q
6416 }
6417 /^X\(\/\).*/{
6418 s//\1/
6419 q
6420 }
6421 s/.*/./; q'`
6422 test -d "$as_dir" && break
6423 done
6424 test -z "$as_dirs" || eval "mkdir $as_dirs"
6425 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6426
6427
6428 } # as_fn_mkdir_p
6429 if mkdir -p . 2>/dev/null; then
6430 as_mkdir_p='mkdir -p "$as_dir"'
6431 else
6432 test -d ./-p && rmdir ./-p
6433 as_mkdir_p=false
6434 fi
6435
6436
6437 # as_fn_executable_p FILE
6438 # -----------------------
6439 # Test if FILE is an executable regular file.
6440 as_fn_executable_p ()
6441 {
6442 test -f "$1" && test -x "$1"
6443 } # as_fn_executable_p
6444 as_test_x='test -x'
6445 as_executable_p=as_fn_executable_p
6446
6447 # Sed expression to map a string onto a valid CPP name.
6448 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6449
6450 # Sed expression to map a string onto a valid variable name.
6451 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6452
6453
6454 exec 6>&1
6455 ## ----------------------------------- ##
6456 ## Main body of $CONFIG_STATUS script. ##
6457 ## ----------------------------------- ##
6458 _ASEOF
6459 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6460
6461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6462 # Save the log message, to keep $0 and so on meaningful, and to
6463 # report actual input values of CONFIG_FILES etc. instead of their
6464 # values after options handling.
6465 ac_log="
6466 This file was extended by $as_me, which was
6467 generated by GNU Autoconf 2.71. Invocation command line was
6468
6469 CONFIG_FILES = $CONFIG_FILES
6470 CONFIG_HEADERS = $CONFIG_HEADERS
6471 CONFIG_LINKS = $CONFIG_LINKS
6472 CONFIG_COMMANDS = $CONFIG_COMMANDS
6473 $ $0 $@
6474
6475 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6476 "
6477
6478 _ACEOF
6479
6480 case $ac_config_files in *"
6481 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6482 esac
6483
6484 case $ac_config_headers in *"
6485 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6486 esac
6487
6488
6489 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6490 # Files that config.status was made for.
6491 config_files="$ac_config_files"
6492 config_headers="$ac_config_headers"
6493
6494 _ACEOF
6495
6496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6497 ac_cs_usage="\
6498 \`$as_me' instantiates files and other configuration actions
6499 from templates according to the current configuration. Unless the files
6500 and actions are specified as TAGs, all are instantiated by default.
6501
6502 Usage: $0 [OPTION]... [TAG]...
6503
6504 -h, --help print this help, then exit
6505 -V, --version print version number and configuration settings, then exit
6506 --config print configuration, then exit
6507 -q, --quiet, --silent
6508 do not print progress messages
6509 -d, --debug don't remove temporary files
6510 --recheck update $as_me by reconfiguring in the same conditions
6511 --file=FILE[:TEMPLATE]
6512 instantiate the configuration file FILE
6513 --header=FILE[:TEMPLATE]
6514 instantiate the configuration header FILE
6515
6516 Configuration files:
6517 $config_files
6518
6519 Configuration headers:
6520 $config_headers
6521
6522 Report bugs to the package provider."
6523
6524 _ACEOF
6525 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
6526 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
6527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6528 ac_cs_config='$ac_cs_config_escaped'
6529 ac_cs_version="\\
6530 config.status
6531 configured by $0, generated by GNU Autoconf 2.71,
6532 with options \\"\$ac_cs_config\\"
6533
6534 Copyright (C) 2021 Free Software Foundation, Inc.
6535 This config.status script is free software; the Free Software Foundation
6536 gives unlimited permission to copy, distribute and modify it."
6537
6538 ac_pwd='$ac_pwd'
6539 srcdir='$srcdir'
6540 INSTALL='$INSTALL'
6541 test -n "\$AWK" || AWK=awk
6542 _ACEOF
6543
6544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6545 # The default lists apply if the user does not specify any file.
6546 ac_need_defaults=:
6547 while test $# != 0
6548 do
6549 case $1 in
6550 --*=?*)
6551 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6552 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6553 ac_shift=:
6554 ;;
6555 --*=)
6556 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6557 ac_optarg=
6558 ac_shift=:
6559 ;;
6560 *)
6561 ac_option=$1
6562 ac_optarg=$2
6563 ac_shift=shift
6564 ;;
6565 esac
6566
6567 case $ac_option in
6568 # Handling of the options.
6569 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6570 ac_cs_recheck=: ;;
6571 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6572 printf "%s\n" "$ac_cs_version"; exit ;;
6573 --config | --confi | --conf | --con | --co | --c )
6574 printf "%s\n" "$ac_cs_config"; exit ;;
6575 --debug | --debu | --deb | --de | --d | -d )
6576 debug=: ;;
6577 --file | --fil | --fi | --f )
6578 $ac_shift
6579 case $ac_optarg in
6580 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6581 '') as_fn_error $? "missing file argument" ;;
6582 esac
6583 as_fn_append CONFIG_FILES " '$ac_optarg'"
6584 ac_need_defaults=false;;
6585 --header | --heade | --head | --hea )
6586 $ac_shift
6587 case $ac_optarg in
6588 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6589 esac
6590 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6591 ac_need_defaults=false;;
6592 --he | --h)
6593 # Conflict between --help and --header
6594 as_fn_error $? "ambiguous option: \`$1'
6595 Try \`$0 --help' for more information.";;
6596 --help | --hel | -h )
6597 printf "%s\n" "$ac_cs_usage"; exit ;;
6598 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6599 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6600 ac_cs_silent=: ;;
6601
6602 # This is an error.
6603 -*) as_fn_error $? "unrecognized option: \`$1'
6604 Try \`$0 --help' for more information." ;;
6605
6606 *) as_fn_append ac_config_targets " $1"
6607 ac_need_defaults=false ;;
6608
6609 esac
6610 shift
6611 done
6612
6613 ac_configure_extra_args=
6614
6615 if $ac_cs_silent; then
6616 exec 6>/dev/null
6617 ac_configure_extra_args="$ac_configure_extra_args --silent"
6618 fi
6619
6620 _ACEOF
6621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6622 if \$ac_cs_recheck; then
6623 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6624 shift
6625 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
6626 CONFIG_SHELL='$SHELL'
6627 export CONFIG_SHELL
6628 exec "\$@"
6629 fi
6630
6631 _ACEOF
6632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6633 exec 5>>config.log
6634 {
6635 echo
6636 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6637 ## Running $as_me. ##
6638 _ASBOX
6639 printf "%s\n" "$ac_log"
6640 } >&5
6641
6642 _ACEOF
6643 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6644 _ACEOF
6645
6646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6647
6648 # Handling of arguments.
6649 for ac_config_target in $ac_config_targets
6650 do
6651 case $ac_config_target in
6652 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6653 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6654
6655 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6656 esac
6657 done
6658
6659
6660 # If the user did not use the arguments to specify the items to instantiate,
6661 # then the envvar interface is used. Set only those that are not.
6662 # We use the long form for the default assignment because of an extremely
6663 # bizarre bug on SunOS 4.1.3.
6664 if $ac_need_defaults; then
6665 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
6666 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
6667 fi
6668
6669 # Have a temporary directory for convenience. Make it in the build tree
6670 # simply because there is no reason against having it here, and in addition,
6671 # creating and moving files from /tmp can sometimes cause problems.
6672 # Hook for its removal unless debugging.
6673 # Note that there is a small window in which the directory will not be cleaned:
6674 # after its creation but before its name has been assigned to `$tmp'.
6675 $debug ||
6676 {
6677 tmp= ac_tmp=
6678 trap 'exit_status=$?
6679 : "${ac_tmp:=$tmp}"
6680 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6681 ' 0
6682 trap 'as_fn_exit 1' 1 2 13 15
6683 }
6684 # Create a (secure) tmp directory for tmp files.
6685
6686 {
6687 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6688 test -d "$tmp"
6689 } ||
6690 {
6691 tmp=./conf$$-$RANDOM
6692 (umask 077 && mkdir "$tmp")
6693 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6694 ac_tmp=$tmp
6695
6696 # Set up the scripts for CONFIG_FILES section.
6697 # No need to generate them if there are no CONFIG_FILES.
6698 # This happens for instance with `./config.status config.h'.
6699 if test -n "$CONFIG_FILES"; then
6700
6701
6702 ac_cr=`echo X | tr X '\015'`
6703 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6704 # But we know of no other shell where ac_cr would be empty at this
6705 # point, so we can use a bashism as a fallback.
6706 if test "x$ac_cr" = x; then
6707 eval ac_cr=\$\'\\r\'
6708 fi
6709 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6710 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6711 ac_cs_awk_cr='\\r'
6712 else
6713 ac_cs_awk_cr=$ac_cr
6714 fi
6715
6716 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6717 _ACEOF
6718
6719
6720 {
6721 echo "cat >conf$$subs.awk <<_ACEOF" &&
6722 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6723 echo "_ACEOF"
6724 } >conf$$subs.sh ||
6725 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6726 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6727 ac_delim='%!_!# '
6728 for ac_last_try in false false false false false :; do
6729 . ./conf$$subs.sh ||
6730 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6731
6732 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6733 if test $ac_delim_n = $ac_delim_num; then
6734 break
6735 elif $ac_last_try; then
6736 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6737 else
6738 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6739 fi
6740 done
6741 rm -f conf$$subs.sh
6742
6743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6744 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6745 _ACEOF
6746 sed -n '
6747 h
6748 s/^/S["/; s/!.*/"]=/
6749 p
6750 g
6751 s/^[^!]*!//
6752 :repl
6753 t repl
6754 s/'"$ac_delim"'$//
6755 t delim
6756 :nl
6757 h
6758 s/\(.\{148\}\)..*/\1/
6759 t more1
6760 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6761 p
6762 n
6763 b repl
6764 :more1
6765 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6766 p
6767 g
6768 s/.\{148\}//
6769 t nl
6770 :delim
6771 h
6772 s/\(.\{148\}\)..*/\1/
6773 t more2
6774 s/["\\]/\\&/g; s/^/"/; s/$/"/
6775 p
6776 b
6777 :more2
6778 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6779 p
6780 g
6781 s/.\{148\}//
6782 t delim
6783 ' <conf$$subs.awk | sed '
6784 /^[^""]/{
6785 N
6786 s/\n//
6787 }
6788 ' >>$CONFIG_STATUS || ac_write_fail=1
6789 rm -f conf$$subs.awk
6790 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6791 _ACAWK
6792 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6793 for (key in S) S_is_set[key] = 1
6794 FS = ""
6795
6796 }
6797 {
6798 line = $ 0
6799 nfields = split(line, field, "@")
6800 substed = 0
6801 len = length(field[1])
6802 for (i = 2; i < nfields; i++) {
6803 key = field[i]
6804 keylen = length(key)
6805 if (S_is_set[key]) {
6806 value = S[key]
6807 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6808 len += length(value) + length(field[++i])
6809 substed = 1
6810 } else
6811 len += 1 + keylen
6812 }
6813
6814 print line
6815 }
6816
6817 _ACAWK
6818 _ACEOF
6819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6820 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6821 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6822 else
6823 cat
6824 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6825 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6826 _ACEOF
6827
6828 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6829 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6830 # trailing colons and then remove the whole line if VPATH becomes empty
6831 # (actually we leave an empty line to preserve line numbers).
6832 if test "x$srcdir" = x.; then
6833 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6834 h
6835 s///
6836 s/^/:/
6837 s/[ ]*$/:/
6838 s/:\$(srcdir):/:/g
6839 s/:\${srcdir}:/:/g
6840 s/:@srcdir@:/:/g
6841 s/^:*//
6842 s/:*$//
6843 x
6844 s/\(=[ ]*\).*/\1/
6845 G
6846 s/\n//
6847 s/^[^=]*=[ ]*$//
6848 }'
6849 fi
6850
6851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6852 fi # test -n "$CONFIG_FILES"
6853
6854 # Set up the scripts for CONFIG_HEADERS section.
6855 # No need to generate them if there are no CONFIG_HEADERS.
6856 # This happens for instance with `./config.status Makefile'.
6857 if test -n "$CONFIG_HEADERS"; then
6858 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6859 BEGIN {
6860 _ACEOF
6861
6862 # Transform confdefs.h into an awk script `defines.awk', embedded as
6863 # here-document in config.status, that substitutes the proper values into
6864 # config.h.in to produce config.h.
6865
6866 # Create a delimiter string that does not exist in confdefs.h, to ease
6867 # handling of long lines.
6868 ac_delim='%!_!# '
6869 for ac_last_try in false false :; do
6870 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6871 if test -z "$ac_tt"; then
6872 break
6873 elif $ac_last_try; then
6874 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6875 else
6876 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6877 fi
6878 done
6879
6880 # For the awk script, D is an array of macro values keyed by name,
6881 # likewise P contains macro parameters if any. Preserve backslash
6882 # newline sequences.
6883
6884 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6885 sed -n '
6886 s/.\{148\}/&'"$ac_delim"'/g
6887 t rset
6888 :rset
6889 s/^[ ]*#[ ]*define[ ][ ]*/ /
6890 t def
6891 d
6892 :def
6893 s/\\$//
6894 t bsnl
6895 s/["\\]/\\&/g
6896 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6897 D["\1"]=" \3"/p
6898 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6899 d
6900 :bsnl
6901 s/["\\]/\\&/g
6902 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6903 D["\1"]=" \3\\\\\\n"\\/p
6904 t cont
6905 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6906 t cont
6907 d
6908 :cont
6909 n
6910 s/.\{148\}/&'"$ac_delim"'/g
6911 t clear
6912 :clear
6913 s/\\$//
6914 t bsnlc
6915 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6916 d
6917 :bsnlc
6918 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6919 b cont
6920 ' <confdefs.h | sed '
6921 s/'"$ac_delim"'/"\\\
6922 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6923
6924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6925 for (key in D) D_is_set[key] = 1
6926 FS = ""
6927 }
6928 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6929 line = \$ 0
6930 split(line, arg, " ")
6931 if (arg[1] == "#") {
6932 defundef = arg[2]
6933 mac1 = arg[3]
6934 } else {
6935 defundef = substr(arg[1], 2)
6936 mac1 = arg[2]
6937 }
6938 split(mac1, mac2, "(") #)
6939 macro = mac2[1]
6940 prefix = substr(line, 1, index(line, defundef) - 1)
6941 if (D_is_set[macro]) {
6942 # Preserve the white space surrounding the "#".
6943 print prefix "define", macro P[macro] D[macro]
6944 next
6945 } else {
6946 # Replace #undef with comments. This is necessary, for example,
6947 # in the case of _POSIX_SOURCE, which is predefined and required
6948 # on some systems where configure will not decide to define it.
6949 if (defundef == "undef") {
6950 print "/*", prefix defundef, macro, "*/"
6951 next
6952 }
6953 }
6954 }
6955 { print }
6956 _ACAWK
6957 _ACEOF
6958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6959 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6960 fi # test -n "$CONFIG_HEADERS"
6961
6962
6963 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6964 shift
6965 for ac_tag
6966 do
6967 case $ac_tag in
6968 :[FHLC]) ac_mode=$ac_tag; continue;;
6969 esac
6970 case $ac_mode$ac_tag in
6971 :[FHL]*:*);;
6972 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6973 :[FH]-) ac_tag=-:-;;
6974 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6975 esac
6976 ac_save_IFS=$IFS
6977 IFS=:
6978 set x $ac_tag
6979 IFS=$ac_save_IFS
6980 shift
6981 ac_file=$1
6982 shift
6983
6984 case $ac_mode in
6985 :L) ac_source=$1;;
6986 :[FH])
6987 ac_file_inputs=
6988 for ac_f
6989 do
6990 case $ac_f in
6991 -) ac_f="$ac_tmp/stdin";;
6992 *) # Look for the file first in the build tree, then in the source tree
6993 # (if the path is not absolute). The absolute path cannot be DOS-style,
6994 # because $ac_f cannot contain `:'.
6995 test -f "$ac_f" ||
6996 case $ac_f in
6997 [\\/$]*) false;;
6998 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6999 esac ||
7000 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7001 esac
7002 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7003 as_fn_append ac_file_inputs " '$ac_f'"
7004 done
7005
7006 # Let's still pretend it is `configure' which instantiates (i.e., don't
7007 # use $as_me), people would be surprised to read:
7008 # /* config.h. Generated by config.status. */
7009 configure_input='Generated from '`
7010 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7011 `' by configure.'
7012 if test x"$ac_file" != x-; then
7013 configure_input="$ac_file. $configure_input"
7014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7015 printf "%s\n" "$as_me: creating $ac_file" >&6;}
7016 fi
7017 # Neutralize special characters interpreted by sed in replacement strings.
7018 case $configure_input in #(
7019 *\&* | *\|* | *\\* )
7020 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
7021 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7022 *) ac_sed_conf_input=$configure_input;;
7023 esac
7024
7025 case $ac_tag in
7026 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7027 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7028 esac
7029 ;;
7030 esac
7031
7032 ac_dir=`$as_dirname -- "$ac_file" ||
7033 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7034 X"$ac_file" : 'X\(//\)[^/]' \| \
7035 X"$ac_file" : 'X\(//\)$' \| \
7036 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7037 printf "%s\n" X"$ac_file" |
7038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7039 s//\1/
7040 q
7041 }
7042 /^X\(\/\/\)[^/].*/{
7043 s//\1/
7044 q
7045 }
7046 /^X\(\/\/\)$/{
7047 s//\1/
7048 q
7049 }
7050 /^X\(\/\).*/{
7051 s//\1/
7052 q
7053 }
7054 s/.*/./; q'`
7055 as_dir="$ac_dir"; as_fn_mkdir_p
7056 ac_builddir=.
7057
7058 case "$ac_dir" in
7059 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7060 *)
7061 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
7062 # A ".." for each directory in $ac_dir_suffix.
7063 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7064 case $ac_top_builddir_sub in
7065 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7066 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7067 esac ;;
7068 esac
7069 ac_abs_top_builddir=$ac_pwd
7070 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7071 # for backward compatibility:
7072 ac_top_builddir=$ac_top_build_prefix
7073
7074 case $srcdir in
7075 .) # We are building in place.
7076 ac_srcdir=.
7077 ac_top_srcdir=$ac_top_builddir_sub
7078 ac_abs_top_srcdir=$ac_pwd ;;
7079 [\\/]* | ?:[\\/]* ) # Absolute name.
7080 ac_srcdir=$srcdir$ac_dir_suffix;
7081 ac_top_srcdir=$srcdir
7082 ac_abs_top_srcdir=$srcdir ;;
7083 *) # Relative name.
7084 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7085 ac_top_srcdir=$ac_top_build_prefix$srcdir
7086 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7087 esac
7088 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7089
7090
7091 case $ac_mode in
7092 :F)
7093 #
7094 # CONFIG_FILE
7095 #
7096
7097 case $INSTALL in
7098 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7099 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7100 esac
7101 _ACEOF
7102
7103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7104 # If the template does not know about datarootdir, expand it.
7105 # FIXME: This hack should be removed a few years after 2.60.
7106 ac_datarootdir_hack=; ac_datarootdir_seen=
7107 ac_sed_dataroot='
7108 /datarootdir/ {
7109 p
7110 q
7111 }
7112 /@datadir@/p
7113 /@docdir@/p
7114 /@infodir@/p
7115 /@localedir@/p
7116 /@mandir@/p'
7117 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7118 *datarootdir*) ac_datarootdir_seen=yes;;
7119 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7121 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7122 _ACEOF
7123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7124 ac_datarootdir_hack='
7125 s&@datadir@&$datadir&g
7126 s&@docdir@&$docdir&g
7127 s&@infodir@&$infodir&g
7128 s&@localedir@&$localedir&g
7129 s&@mandir@&$mandir&g
7130 s&\\\${datarootdir}&$datarootdir&g' ;;
7131 esac
7132 _ACEOF
7133
7134 # Neutralize VPATH when `$srcdir' = `.'.
7135 # Shell code in configure.ac might set extrasub.
7136 # FIXME: do we really want to maintain this feature?
7137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7138 ac_sed_extra="$ac_vpsub
7139 $extrasub
7140 _ACEOF
7141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7142 :t
7143 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7144 s|@configure_input@|$ac_sed_conf_input|;t t
7145 s&@top_builddir@&$ac_top_builddir_sub&;t t
7146 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7147 s&@srcdir@&$ac_srcdir&;t t
7148 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7149 s&@top_srcdir@&$ac_top_srcdir&;t t
7150 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7151 s&@builddir@&$ac_builddir&;t t
7152 s&@abs_builddir@&$ac_abs_builddir&;t t
7153 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7154 s&@INSTALL@&$ac_INSTALL&;t t
7155 $ac_datarootdir_hack
7156 "
7157 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7158 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7159
7160 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7161 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7162 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7163 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7165 which seems to be undefined. Please make sure it is defined" >&5
7166 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7167 which seems to be undefined. Please make sure it is defined" >&2;}
7168
7169 rm -f "$ac_tmp/stdin"
7170 case $ac_file in
7171 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7172 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7173 esac \
7174 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7175 ;;
7176 :H)
7177 #
7178 # CONFIG_HEADER
7179 #
7180 if test x"$ac_file" != x-; then
7181 {
7182 printf "%s\n" "/* $configure_input */" >&1 \
7183 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7184 } >"$ac_tmp/config.h" \
7185 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7186 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7188 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
7189 else
7190 rm -f "$ac_file"
7191 mv "$ac_tmp/config.h" "$ac_file" \
7192 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7193 fi
7194 else
7195 printf "%s\n" "/* $configure_input */" >&1 \
7196 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7197 || as_fn_error $? "could not create -" "$LINENO" 5
7198 fi
7199 ;;
7200
7201
7202 esac
7203
7204 done # for ac_tag
7205
7206
7207 as_fn_exit 0
7208 _ACEOF
7209 ac_clean_files=$ac_clean_files_save
7210
7211 test $ac_write_fail = 0 ||
7212 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7213
7214
7215 # configure is writing to config.log, and then calls config.status.
7216 # config.status does its own redirection, appending to config.log.
7217 # Unfortunately, on DOS this fails, as config.log is still kept open
7218 # by configure, so config.status won't be able to write to it; its
7219 # output is simply discarded. So we exec the FD to /dev/null,
7220 # effectively closing config.log, so it can be properly (re)opened and
7221 # appended to by config.status. When coming back to configure, we
7222 # need to make the FD available again.
7223 if test "$no_create" != yes; then
7224 ac_cs_success=:
7225 ac_config_status_args=
7226 test "$silent" = yes &&
7227 ac_config_status_args="$ac_config_status_args --quiet"
7228 exec 5>/dev/null
7229 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7230 exec 5>>config.log
7231 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7232 # would make configure fail if this is the last instruction.
7233 $ac_cs_success || as_fn_exit 1
7234 fi
7235 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7237 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7238 fi
7239
7240
7241 # vim:tw=0
7242