Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for barrage 1.0.8.
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='barrage'
609 PACKAGE_TARNAME='barrage'
610 PACKAGE_VERSION='1.0.8'
611 PACKAGE_STRING='barrage 1.0.8'
612 PACKAGE_BUGREPORT=''
613 PACKAGE_URL=''
614
615 ac_unique_file="src/main.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_subst_vars='am__EXEEXT_FALSE
649 am__EXEEXT_TRUE
650 LTLIBOBJS
651 hiscoredir
652 datdir
653 POW_LIB
654 LIBOBJS
655 ALLOCA
656 SDL_LIBS
657 SDL_CFLAGS
658 SDL_CONFIG
659 RANLIB
660 am__fastdepCC_FALSE
661 am__fastdepCC_TRUE
662 CCDEPMODE
663 am__nodep
664 AMDEPBACKSLASH
665 AMDEP_FALSE
666 AMDEP_TRUE
667 am__include
668 DEPDIR
669 OBJEXT
670 EXEEXT
671 ac_ct_CC
672 CPPFLAGS
673 LDFLAGS
674 CFLAGS
675 CC
676 AM_BACKSLASH
677 AM_DEFAULT_VERBOSITY
678 AM_DEFAULT_V
679 AM_V
680 CSCOPE
681 ETAGS
682 CTAGS
683 am__untar
684 am__tar
685 AMTAR
686 am__leading_dot
687 SET_MAKE
688 AWK
689 mkdir_p
690 MKDIR_P
691 INSTALL_STRIP_PROGRAM
692 STRIP
693 install_sh
694 MAKEINFO
695 AUTOHEADER
696 AUTOMAKE
697 AUTOCONF
698 ACLOCAL
699 VERSION
700 PACKAGE
701 CYGPATH_W
702 am__isrc
703 INSTALL_DATA
704 INSTALL_SCRIPT
705 INSTALL_PROGRAM
706 target_os
707 target_vendor
708 target_cpu
709 target
710 host_os
711 host_vendor
712 host_cpu
713 host
714 build_os
715 build_vendor
716 build_cpu
717 build
718 target_alias
719 host_alias
720 build_alias
721 LIBS
722 ECHO_T
723 ECHO_N
724 ECHO_C
725 DEFS
726 mandir
727 localedir
728 libdir
729 psdir
730 pdfdir
731 dvidir
732 htmldir
733 infodir
734 docdir
735 oldincludedir
736 includedir
737 runstatedir
738 localstatedir
739 sharedstatedir
740 sysconfdir
741 datadir
742 datarootdir
743 libexecdir
744 sbindir
745 bindir
746 program_transform_name
747 prefix
748 exec_prefix
749 PACKAGE_URL
750 PACKAGE_BUGREPORT
751 PACKAGE_STRING
752 PACKAGE_VERSION
753 PACKAGE_TARNAME
754 PACKAGE_NAME
755 PATH_SEPARATOR
756 SHELL
757 am__quote'
758 ac_subst_files=''
759 ac_user_opts='
760 enable_option_checking
761 enable_silent_rules
762 enable_dependency_tracking
763 with_sdl_prefix
764 with_sdl_exec_prefix
765 enable_sdltest
766 enable_install
767 enable_debug
768 enable_audio
769 '
770 ac_precious_vars='build_alias
771 host_alias
772 target_alias
773 CC
774 CFLAGS
775 LDFLAGS
776 LIBS
777 CPPFLAGS'
778
779
780 # Initialize some variables set by options.
781 ac_init_help=
782 ac_init_version=false
783 ac_unrecognized_opts=
784 ac_unrecognized_sep=
785 # The variables have the same names as the options, with
786 # dashes changed to underlines.
787 cache_file=/dev/null
788 exec_prefix=NONE
789 no_create=
790 no_recursion=
791 prefix=NONE
792 program_prefix=NONE
793 program_suffix=NONE
794 program_transform_name=s,x,x,
795 silent=
796 site=
797 srcdir=
798 verbose=
799 x_includes=NONE
800 x_libraries=NONE
801
802 # Installation directory options.
803 # These are left unexpanded so users can "make install exec_prefix=/foo"
804 # and all the variables that are supposed to be based on exec_prefix
805 # by default will actually change.
806 # Use braces instead of parens because sh, perl, etc. also accept them.
807 # (The list follows the same order as the GNU Coding Standards.)
808 bindir='${exec_prefix}/bin'
809 sbindir='${exec_prefix}/sbin'
810 libexecdir='${exec_prefix}/libexec'
811 datarootdir='${prefix}/share'
812 datadir='${datarootdir}'
813 sysconfdir='${prefix}/etc'
814 sharedstatedir='${prefix}/com'
815 localstatedir='${prefix}/var'
816 runstatedir='${localstatedir}/run'
817 includedir='${prefix}/include'
818 oldincludedir='/usr/include'
819 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
820 infodir='${datarootdir}/info'
821 htmldir='${docdir}'
822 dvidir='${docdir}'
823 pdfdir='${docdir}'
824 psdir='${docdir}'
825 libdir='${exec_prefix}/lib'
826 localedir='${datarootdir}/locale'
827 mandir='${datarootdir}/man'
828
829 ac_prev=
830 ac_dashdash=
831 for ac_option
832 do
833 # If the previous option needs an argument, assign it.
834 if test -n "$ac_prev"; then
835 eval $ac_prev=\$ac_option
836 ac_prev=
837 continue
838 fi
839
840 case $ac_option in
841 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
842 *=) ac_optarg= ;;
843 *) ac_optarg=yes ;;
844 esac
845
846 case $ac_dashdash$ac_option in
847 --)
848 ac_dashdash=yes ;;
849
850 -bindir | --bindir | --bindi | --bind | --bin | --bi)
851 ac_prev=bindir ;;
852 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
853 bindir=$ac_optarg ;;
854
855 -build | --build | --buil | --bui | --bu)
856 ac_prev=build_alias ;;
857 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
858 build_alias=$ac_optarg ;;
859
860 -cache-file | --cache-file | --cache-fil | --cache-fi \
861 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
862 ac_prev=cache_file ;;
863 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
864 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
865 cache_file=$ac_optarg ;;
866
867 --config-cache | -C)
868 cache_file=config.cache ;;
869
870 -datadir | --datadir | --datadi | --datad)
871 ac_prev=datadir ;;
872 -datadir=* | --datadir=* | --datadi=* | --datad=*)
873 datadir=$ac_optarg ;;
874
875 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
876 | --dataroo | --dataro | --datar)
877 ac_prev=datarootdir ;;
878 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
879 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
880 datarootdir=$ac_optarg ;;
881
882 -disable-* | --disable-*)
883 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
884 # Reject names that are not valid shell variable names.
885 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
886 as_fn_error $? "invalid feature name: \`$ac_useropt'"
887 ac_useropt_orig=$ac_useropt
888 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
889 case $ac_user_opts in
890 *"
891 "enable_$ac_useropt"
892 "*) ;;
893 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
894 ac_unrecognized_sep=', ';;
895 esac
896 eval enable_$ac_useropt=no ;;
897
898 -docdir | --docdir | --docdi | --doc | --do)
899 ac_prev=docdir ;;
900 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
901 docdir=$ac_optarg ;;
902
903 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
904 ac_prev=dvidir ;;
905 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
906 dvidir=$ac_optarg ;;
907
908 -enable-* | --enable-*)
909 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
910 # Reject names that are not valid shell variable names.
911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912 as_fn_error $? "invalid feature name: \`$ac_useropt'"
913 ac_useropt_orig=$ac_useropt
914 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
915 case $ac_user_opts in
916 *"
917 "enable_$ac_useropt"
918 "*) ;;
919 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
920 ac_unrecognized_sep=', ';;
921 esac
922 eval enable_$ac_useropt=\$ac_optarg ;;
923
924 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
925 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
926 | --exec | --exe | --ex)
927 ac_prev=exec_prefix ;;
928 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
929 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
930 | --exec=* | --exe=* | --ex=*)
931 exec_prefix=$ac_optarg ;;
932
933 -gas | --gas | --ga | --g)
934 # Obsolete; use --with-gas.
935 with_gas=yes ;;
936
937 -help | --help | --hel | --he | -h)
938 ac_init_help=long ;;
939 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
940 ac_init_help=recursive ;;
941 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
942 ac_init_help=short ;;
943
944 -host | --host | --hos | --ho)
945 ac_prev=host_alias ;;
946 -host=* | --host=* | --hos=* | --ho=*)
947 host_alias=$ac_optarg ;;
948
949 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
950 ac_prev=htmldir ;;
951 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
952 | --ht=*)
953 htmldir=$ac_optarg ;;
954
955 -includedir | --includedir | --includedi | --included | --include \
956 | --includ | --inclu | --incl | --inc)
957 ac_prev=includedir ;;
958 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
959 | --includ=* | --inclu=* | --incl=* | --inc=*)
960 includedir=$ac_optarg ;;
961
962 -infodir | --infodir | --infodi | --infod | --info | --inf)
963 ac_prev=infodir ;;
964 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
965 infodir=$ac_optarg ;;
966
967 -libdir | --libdir | --libdi | --libd)
968 ac_prev=libdir ;;
969 -libdir=* | --libdir=* | --libdi=* | --libd=*)
970 libdir=$ac_optarg ;;
971
972 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
973 | --libexe | --libex | --libe)
974 ac_prev=libexecdir ;;
975 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
976 | --libexe=* | --libex=* | --libe=*)
977 libexecdir=$ac_optarg ;;
978
979 -localedir | --localedir | --localedi | --localed | --locale)
980 ac_prev=localedir ;;
981 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
982 localedir=$ac_optarg ;;
983
984 -localstatedir | --localstatedir | --localstatedi | --localstated \
985 | --localstate | --localstat | --localsta | --localst | --locals)
986 ac_prev=localstatedir ;;
987 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
988 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
989 localstatedir=$ac_optarg ;;
990
991 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
992 ac_prev=mandir ;;
993 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
994 mandir=$ac_optarg ;;
995
996 -nfp | --nfp | --nf)
997 # Obsolete; use --without-fp.
998 with_fp=no ;;
999
1000 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1001 | --no-cr | --no-c | -n)
1002 no_create=yes ;;
1003
1004 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1005 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1006 no_recursion=yes ;;
1007
1008 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1009 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1010 | --oldin | --oldi | --old | --ol | --o)
1011 ac_prev=oldincludedir ;;
1012 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1013 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1014 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1015 oldincludedir=$ac_optarg ;;
1016
1017 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1018 ac_prev=prefix ;;
1019 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1020 prefix=$ac_optarg ;;
1021
1022 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1023 | --program-pre | --program-pr | --program-p)
1024 ac_prev=program_prefix ;;
1025 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1026 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1027 program_prefix=$ac_optarg ;;
1028
1029 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1030 | --program-suf | --program-su | --program-s)
1031 ac_prev=program_suffix ;;
1032 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1033 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1034 program_suffix=$ac_optarg ;;
1035
1036 -program-transform-name | --program-transform-name \
1037 | --program-transform-nam | --program-transform-na \
1038 | --program-transform-n | --program-transform- \
1039 | --program-transform | --program-transfor \
1040 | --program-transfo | --program-transf \
1041 | --program-trans | --program-tran \
1042 | --progr-tra | --program-tr | --program-t)
1043 ac_prev=program_transform_name ;;
1044 -program-transform-name=* | --program-transform-name=* \
1045 | --program-transform-nam=* | --program-transform-na=* \
1046 | --program-transform-n=* | --program-transform-=* \
1047 | --program-transform=* | --program-transfor=* \
1048 | --program-transfo=* | --program-transf=* \
1049 | --program-trans=* | --program-tran=* \
1050 | --progr-tra=* | --program-tr=* | --program-t=*)
1051 program_transform_name=$ac_optarg ;;
1052
1053 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1054 ac_prev=pdfdir ;;
1055 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1056 pdfdir=$ac_optarg ;;
1057
1058 -psdir | --psdir | --psdi | --psd | --ps)
1059 ac_prev=psdir ;;
1060 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1061 psdir=$ac_optarg ;;
1062
1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064 | -silent | --silent | --silen | --sile | --sil)
1065 silent=yes ;;
1066
1067 -runstatedir | --runstatedir | --runstatedi | --runstated \
1068 | --runstate | --runstat | --runsta | --runst | --runs \
1069 | --run | --ru | --r)
1070 ac_prev=runstatedir ;;
1071 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1072 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1073 | --run=* | --ru=* | --r=*)
1074 runstatedir=$ac_optarg ;;
1075
1076 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1077 ac_prev=sbindir ;;
1078 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1079 | --sbi=* | --sb=*)
1080 sbindir=$ac_optarg ;;
1081
1082 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1083 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1084 | --sharedst | --shareds | --shared | --share | --shar \
1085 | --sha | --sh)
1086 ac_prev=sharedstatedir ;;
1087 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1088 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1089 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1090 | --sha=* | --sh=*)
1091 sharedstatedir=$ac_optarg ;;
1092
1093 -site | --site | --sit)
1094 ac_prev=site ;;
1095 -site=* | --site=* | --sit=*)
1096 site=$ac_optarg ;;
1097
1098 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1099 ac_prev=srcdir ;;
1100 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1101 srcdir=$ac_optarg ;;
1102
1103 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1104 | --syscon | --sysco | --sysc | --sys | --sy)
1105 ac_prev=sysconfdir ;;
1106 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1107 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1108 sysconfdir=$ac_optarg ;;
1109
1110 -target | --target | --targe | --targ | --tar | --ta | --t)
1111 ac_prev=target_alias ;;
1112 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1113 target_alias=$ac_optarg ;;
1114
1115 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1116 verbose=yes ;;
1117
1118 -version | --version | --versio | --versi | --vers | -V)
1119 ac_init_version=: ;;
1120
1121 -with-* | --with-*)
1122 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125 as_fn_error $? "invalid package name: \`$ac_useropt'"
1126 ac_useropt_orig=$ac_useropt
1127 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1129 *"
1130 "with_$ac_useropt"
1131 "*) ;;
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1133 ac_unrecognized_sep=', ';;
1134 esac
1135 eval with_$ac_useropt=\$ac_optarg ;;
1136
1137 -without-* | --without-*)
1138 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141 as_fn_error $? "invalid package name: \`$ac_useropt'"
1142 ac_useropt_orig=$ac_useropt
1143 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1144 case $ac_user_opts in
1145 *"
1146 "with_$ac_useropt"
1147 "*) ;;
1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1149 ac_unrecognized_sep=', ';;
1150 esac
1151 eval with_$ac_useropt=no ;;
1152
1153 --x)
1154 # Obsolete; use --with-x.
1155 with_x=yes ;;
1156
1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158 | --x-incl | --x-inc | --x-in | --x-i)
1159 ac_prev=x_includes ;;
1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162 x_includes=$ac_optarg ;;
1163
1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166 ac_prev=x_libraries ;;
1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169 x_libraries=$ac_optarg ;;
1170
1171 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1172 Try \`$0 --help' for more information"
1173 ;;
1174
1175 *=*)
1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177 # Reject names that are not valid shell variable names.
1178 case $ac_envvar in #(
1179 '' | [0-9]* | *[!_$as_cr_alnum]* )
1180 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1181 esac
1182 eval $ac_envvar=\$ac_optarg
1183 export $ac_envvar ;;
1184
1185 *)
1186 # FIXME: should be removed in autoconf 3.0.
1187 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1190 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1191 ;;
1192
1193 esac
1194 done
1195
1196 if test -n "$ac_prev"; then
1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198 as_fn_error $? "missing argument to $ac_option"
1199 fi
1200
1201 if test -n "$ac_unrecognized_opts"; then
1202 case $enable_option_checking in
1203 no) ;;
1204 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1205 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1206 esac
1207 fi
1208
1209 # Check all directory arguments for consistency.
1210 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1211 datadir sysconfdir sharedstatedir localstatedir includedir \
1212 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1213 libdir localedir mandir runstatedir
1214 do
1215 eval ac_val=\$$ac_var
1216 # Remove trailing slashes.
1217 case $ac_val in
1218 */ )
1219 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1220 eval $ac_var=\$ac_val;;
1221 esac
1222 # Be sure to have absolute directory names.
1223 case $ac_val in
1224 [\\/$]* | ?:[\\/]* ) continue;;
1225 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1226 esac
1227 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1228 done
1229
1230 # There might be people who depend on the old broken behavior: `$host'
1231 # used to hold the argument of --host etc.
1232 # FIXME: To remove some day.
1233 build=$build_alias
1234 host=$host_alias
1235 target=$target_alias
1236
1237 # FIXME: To remove some day.
1238 if test "x$host_alias" != x; then
1239 if test "x$build_alias" = x; then
1240 cross_compiling=maybe
1241 elif test "x$build_alias" != "x$host_alias"; then
1242 cross_compiling=yes
1243 fi
1244 fi
1245
1246 ac_tool_prefix=
1247 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248
1249 test "$silent" = yes && exec 6>/dev/null
1250
1251
1252 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253 ac_ls_di=`ls -di .` &&
1254 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255 as_fn_error $? "working directory cannot be determined"
1256 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257 as_fn_error $? "pwd does not report name of working directory"
1258
1259
1260 # Find the source files, if location was not specified.
1261 if test -z "$srcdir"; then
1262 ac_srcdir_defaulted=yes
1263 # Try the directory containing this script, then the parent directory.
1264 ac_confdir=`$as_dirname -- "$as_myself" ||
1265 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1266 X"$as_myself" : 'X\(//\)[^/]' \| \
1267 X"$as_myself" : 'X\(//\)$' \| \
1268 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1269 printf "%s\n" X"$as_myself" |
1270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\/\)[^/].*/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\/\)$/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\).*/{
1283 s//\1/
1284 q
1285 }
1286 s/.*/./; q'`
1287 srcdir=$ac_confdir
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289 srcdir=..
1290 fi
1291 else
1292 ac_srcdir_defaulted=no
1293 fi
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1295 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1296 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1297 fi
1298 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299 ac_abs_confdir=`(
1300 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1301 pwd)`
1302 # When building in place, set srcdir=.
1303 if test "$ac_abs_confdir" = "$ac_pwd"; then
1304 srcdir=.
1305 fi
1306 # Remove unnecessary trailing slashes from srcdir.
1307 # Double slashes in file names in object file debugging info
1308 # mess up M-x gdb in Emacs.
1309 case $srcdir in
1310 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311 esac
1312 for ac_var in $ac_precious_vars; do
1313 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_env_${ac_var}_value=\$${ac_var}
1315 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317 done
1318
1319 #
1320 # Report the --help message.
1321 #
1322 if test "$ac_init_help" = "long"; then
1323 # Omit some internal or obsolete options to make the list less imposing.
1324 # This message is too long to be a string in the A/UX 3.1 sh.
1325 cat <<_ACEOF
1326 \`configure' configures barrage 1.0.8 to adapt to many kinds of systems.
1327
1328 Usage: $0 [OPTION]... [VAR=VALUE]...
1329
1330 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331 VAR=VALUE. See below for descriptions of some of the useful variables.
1332
1333 Defaults for the options are specified in brackets.
1334
1335 Configuration:
1336 -h, --help display this help and exit
1337 --help=short display options specific to this package
1338 --help=recursive display the short help of all the included packages
1339 -V, --version display version information and exit
1340 -q, --quiet, --silent do not print \`checking ...' messages
1341 --cache-file=FILE cache test results in FILE [disabled]
1342 -C, --config-cache alias for \`--cache-file=config.cache'
1343 -n, --no-create do not create output files
1344 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1345
1346 Installation directories:
1347 --prefix=PREFIX install architecture-independent files in PREFIX
1348 [$ac_default_prefix]
1349 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1350 [PREFIX]
1351
1352 By default, \`make install' will install all the files in
1353 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1354 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355 for instance \`--prefix=\$HOME'.
1356
1357 For better control, use the options below.
1358
1359 Fine tuning of the installation directories:
1360 --bindir=DIR user executables [EPREFIX/bin]
1361 --sbindir=DIR system admin executables [EPREFIX/sbin]
1362 --libexecdir=DIR program executables [EPREFIX/libexec]
1363 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1364 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1365 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1366 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1367 --libdir=DIR object code libraries [EPREFIX/lib]
1368 --includedir=DIR C header files [PREFIX/include]
1369 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1370 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1371 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1372 --infodir=DIR info documentation [DATAROOTDIR/info]
1373 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1374 --mandir=DIR man documentation [DATAROOTDIR/man]
1375 --docdir=DIR documentation root [DATAROOTDIR/doc/barrage]
1376 --htmldir=DIR html documentation [DOCDIR]
1377 --dvidir=DIR dvi documentation [DOCDIR]
1378 --pdfdir=DIR pdf documentation [DOCDIR]
1379 --psdir=DIR ps documentation [DOCDIR]
1380 _ACEOF
1381
1382 cat <<\_ACEOF
1383
1384 Program names:
1385 --program-prefix=PREFIX prepend PREFIX to installed program names
1386 --program-suffix=SUFFIX append SUFFIX to installed program names
1387 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1388
1389 System types:
1390 --build=BUILD configure for building on BUILD [guessed]
1391 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1392 --target=TARGET configure for building compilers for TARGET [HOST]
1393 _ACEOF
1394 fi
1395
1396 if test -n "$ac_init_help"; then
1397 case $ac_init_help in
1398 short | recursive ) echo "Configuration of barrage 1.0.8:";;
1399 esac
1400 cat <<\_ACEOF
1401
1402 Optional Features:
1403 --disable-option-checking ignore unrecognized --enable/--with options
1404 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1405 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1406 --enable-silent-rules less verbose build output (undo: "make V=1")
1407 --disable-silent-rules verbose build output (undo: "make V=0")
1408 --enable-dependency-tracking
1409 do not reject slow dependency extractors
1410 --disable-dependency-tracking
1411 speeds up one-time build
1412 --disable-sdltest Do not try to compile and run a test SDL program
1413 --disable-install No installation. Start from source directory.
1414 --enable-debug Add debug symbols, no optimization.
1415 --disable-audio Disable Audio
1416
1417 Optional Packages:
1418 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1419 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1420 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1421 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1422
1423 Some influential environment variables:
1424 CC C compiler command
1425 CFLAGS C compiler flags
1426 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1427 nonstandard directory <lib dir>
1428 LIBS libraries to pass to the linker, e.g. -l<library>
1429 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1430 you have headers in a nonstandard directory <include dir>
1431
1432 Use these variables to override the choices made by `configure' or to help
1433 it to find libraries and programs with nonstandard names/locations.
1434
1435 Report bugs to the package provider.
1436 _ACEOF
1437 ac_status=$?
1438 fi
1439
1440 if test "$ac_init_help" = "recursive"; then
1441 # If there are subdirs, report their specific --help.
1442 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1443 test -d "$ac_dir" ||
1444 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1445 continue
1446 ac_builddir=.
1447
1448 case "$ac_dir" in
1449 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450 *)
1451 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1452 # A ".." for each directory in $ac_dir_suffix.
1453 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1454 case $ac_top_builddir_sub in
1455 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1457 esac ;;
1458 esac
1459 ac_abs_top_builddir=$ac_pwd
1460 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1461 # for backward compatibility:
1462 ac_top_builddir=$ac_top_build_prefix
1463
1464 case $srcdir in
1465 .) # We are building in place.
1466 ac_srcdir=.
1467 ac_top_srcdir=$ac_top_builddir_sub
1468 ac_abs_top_srcdir=$ac_pwd ;;
1469 [\\/]* | ?:[\\/]* ) # Absolute name.
1470 ac_srcdir=$srcdir$ac_dir_suffix;
1471 ac_top_srcdir=$srcdir
1472 ac_abs_top_srcdir=$srcdir ;;
1473 *) # Relative name.
1474 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1475 ac_top_srcdir=$ac_top_build_prefix$srcdir
1476 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1477 esac
1478 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1479
1480 cd "$ac_dir" || { ac_status=$?; continue; }
1481 # Check for configure.gnu first; this name is used for a wrapper for
1482 # Metaconfig's "Configure" on case-insensitive file systems.
1483 if test -f "$ac_srcdir/configure.gnu"; then
1484 echo &&
1485 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1486 elif test -f "$ac_srcdir/configure"; then
1487 echo &&
1488 $SHELL "$ac_srcdir/configure" --help=recursive
1489 else
1490 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1491 fi || ac_status=$?
1492 cd "$ac_pwd" || { ac_status=$?; break; }
1493 done
1494 fi
1495
1496 test -n "$ac_init_help" && exit $ac_status
1497 if $ac_init_version; then
1498 cat <<\_ACEOF
1499 barrage configure 1.0.8
1500 generated by GNU Autoconf 2.71
1501
1502 Copyright (C) 2021 Free Software Foundation, Inc.
1503 This configure script is free software; the Free Software Foundation
1504 gives unlimited permission to copy, distribute and modify it.
1505 _ACEOF
1506 exit
1507 fi
1508
1509 ## ------------------------ ##
1510 ## Autoconf initialization. ##
1511 ## ------------------------ ##
1512
1513 # ac_fn_c_try_compile LINENO
1514 # --------------------------
1515 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1516 ac_fn_c_try_compile ()
1517 {
1518 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1519 rm -f conftest.$ac_objext conftest.beam
1520 if { { ac_try="$ac_compile"
1521 case "(($ac_try" in
1522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1523 *) ac_try_echo=$ac_try;;
1524 esac
1525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1526 printf "%s\n" "$ac_try_echo"; } >&5
1527 (eval "$ac_compile") 2>conftest.err
1528 ac_status=$?
1529 if test -s conftest.err; then
1530 grep -v '^ *+' conftest.err >conftest.er1
1531 cat conftest.er1 >&5
1532 mv -f conftest.er1 conftest.err
1533 fi
1534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1535 test $ac_status = 0; } && {
1536 test -z "$ac_c_werror_flag" ||
1537 test ! -s conftest.err
1538 } && test -s conftest.$ac_objext
1539 then :
1540 ac_retval=0
1541 else $as_nop
1542 printf "%s\n" "$as_me: failed program was:" >&5
1543 sed 's/^/| /' conftest.$ac_ext >&5
1544
1545 ac_retval=1
1546 fi
1547 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1548 as_fn_set_status $ac_retval
1549
1550 } # ac_fn_c_try_compile
1551
1552 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1553 # -------------------------------------------------------
1554 # Tests whether HEADER exists and can be compiled using the include files in
1555 # INCLUDES, setting the cache variable VAR accordingly.
1556 ac_fn_c_check_header_compile ()
1557 {
1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1560 printf %s "checking for $2... " >&6; }
1561 if eval test \${$3+y}
1562 then :
1563 printf %s "(cached) " >&6
1564 else $as_nop
1565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1566 /* end confdefs.h. */
1567 $4
1568 #include <$2>
1569 _ACEOF
1570 if ac_fn_c_try_compile "$LINENO"
1571 then :
1572 eval "$3=yes"
1573 else $as_nop
1574 eval "$3=no"
1575 fi
1576 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1577 fi
1578 eval ac_res=\$$3
1579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1580 printf "%s\n" "$ac_res" >&6; }
1581 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1582
1583 } # ac_fn_c_check_header_compile
1584
1585 # ac_fn_c_try_link LINENO
1586 # -----------------------
1587 # Try to link conftest.$ac_ext, and return whether this succeeded.
1588 ac_fn_c_try_link ()
1589 {
1590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1592 if { { ac_try="$ac_link"
1593 case "(($ac_try" in
1594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1595 *) ac_try_echo=$ac_try;;
1596 esac
1597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1598 printf "%s\n" "$ac_try_echo"; } >&5
1599 (eval "$ac_link") 2>conftest.err
1600 ac_status=$?
1601 if test -s conftest.err; then
1602 grep -v '^ *+' conftest.err >conftest.er1
1603 cat conftest.er1 >&5
1604 mv -f conftest.er1 conftest.err
1605 fi
1606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607 test $ac_status = 0; } && {
1608 test -z "$ac_c_werror_flag" ||
1609 test ! -s conftest.err
1610 } && test -s conftest$ac_exeext && {
1611 test "$cross_compiling" = yes ||
1612 test -x conftest$ac_exeext
1613 }
1614 then :
1615 ac_retval=0
1616 else $as_nop
1617 printf "%s\n" "$as_me: failed program was:" >&5
1618 sed 's/^/| /' conftest.$ac_ext >&5
1619
1620 ac_retval=1
1621 fi
1622 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1623 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1624 # interfere with the next link command; also delete a directory that is
1625 # left behind by Apple's compiler. We do this before executing the actions.
1626 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628 as_fn_set_status $ac_retval
1629
1630 } # ac_fn_c_try_link
1631
1632 # ac_fn_c_try_run LINENO
1633 # ----------------------
1634 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1635 # executables *can* be run.
1636 ac_fn_c_try_run ()
1637 {
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 if { { ac_try="$ac_link"
1640 case "(($ac_try" in
1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642 *) ac_try_echo=$ac_try;;
1643 esac
1644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645 printf "%s\n" "$ac_try_echo"; } >&5
1646 (eval "$ac_link") 2>&5
1647 ac_status=$?
1648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1650 { { case "(($ac_try" in
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1653 esac
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 printf "%s\n" "$ac_try_echo"; } >&5
1656 (eval "$ac_try") 2>&5
1657 ac_status=$?
1658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; }; }
1660 then :
1661 ac_retval=0
1662 else $as_nop
1663 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1664 printf "%s\n" "$as_me: failed program was:" >&5
1665 sed 's/^/| /' conftest.$ac_ext >&5
1666
1667 ac_retval=$ac_status
1668 fi
1669 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671 as_fn_set_status $ac_retval
1672
1673 } # ac_fn_c_try_run
1674
1675 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1676 # -------------------------------------------
1677 # Tests whether TYPE exists after having included INCLUDES, setting cache
1678 # variable VAR accordingly.
1679 ac_fn_c_check_type ()
1680 {
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1683 printf %s "checking for $2... " >&6; }
1684 if eval test \${$3+y}
1685 then :
1686 printf %s "(cached) " >&6
1687 else $as_nop
1688 eval "$3=no"
1689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1690 /* end confdefs.h. */
1691 $4
1692 int
1693 main (void)
1694 {
1695 if (sizeof ($2))
1696 return 0;
1697 ;
1698 return 0;
1699 }
1700 _ACEOF
1701 if ac_fn_c_try_compile "$LINENO"
1702 then :
1703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1704 /* end confdefs.h. */
1705 $4
1706 int
1707 main (void)
1708 {
1709 if (sizeof (($2)))
1710 return 0;
1711 ;
1712 return 0;
1713 }
1714 _ACEOF
1715 if ac_fn_c_try_compile "$LINENO"
1716 then :
1717
1718 else $as_nop
1719 eval "$3=yes"
1720 fi
1721 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1722 fi
1723 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1724 fi
1725 eval ac_res=\$$3
1726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727 printf "%s\n" "$ac_res" >&6; }
1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729
1730 } # ac_fn_c_check_type
1731
1732 # ac_fn_c_check_func LINENO FUNC VAR
1733 # ----------------------------------
1734 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1735 ac_fn_c_check_func ()
1736 {
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 printf %s "checking for $2... " >&6; }
1740 if eval test \${$3+y}
1741 then :
1742 printf %s "(cached) " >&6
1743 else $as_nop
1744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745 /* end confdefs.h. */
1746 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1748 #define $2 innocuous_$2
1749
1750 /* System header to define __stub macros and hopefully few prototypes,
1751 which can conflict with char $2 (); below. */
1752
1753 #include <limits.h>
1754 #undef $2
1755
1756 /* Override any GCC internal prototype to avoid an error.
1757 Use char because int might match the return type of a GCC
1758 builtin and then its argument prototype would still apply. */
1759 #ifdef __cplusplus
1760 extern "C"
1761 #endif
1762 char $2 ();
1763 /* The GNU C library defines this for functions which it implements
1764 to always fail with ENOSYS. Some functions are actually named
1765 something starting with __ and the normal name is an alias. */
1766 #if defined __stub_$2 || defined __stub___$2
1767 choke me
1768 #endif
1769
1770 int
1771 main (void)
1772 {
1773 return $2 ();
1774 ;
1775 return 0;
1776 }
1777 _ACEOF
1778 if ac_fn_c_try_link "$LINENO"
1779 then :
1780 eval "$3=yes"
1781 else $as_nop
1782 eval "$3=no"
1783 fi
1784 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1785 conftest$ac_exeext conftest.$ac_ext
1786 fi
1787 eval ac_res=\$$3
1788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789 printf "%s\n" "$ac_res" >&6; }
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791
1792 } # ac_fn_c_check_func
1793 ac_configure_args_raw=
1794 for ac_arg
1795 do
1796 case $ac_arg in
1797 *\'*)
1798 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1799 esac
1800 as_fn_append ac_configure_args_raw " '$ac_arg'"
1801 done
1802
1803 case $ac_configure_args_raw in
1804 *$as_nl*)
1805 ac_safe_unquote= ;;
1806 *)
1807 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1808 ac_unsafe_a="$ac_unsafe_z#~"
1809 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1810 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1811 esac
1812
1813 cat >config.log <<_ACEOF
1814 This file contains any messages produced by compilers while
1815 running configure, to aid debugging if configure makes a mistake.
1816
1817 It was created by barrage $as_me 1.0.8, which was
1818 generated by GNU Autoconf 2.71. Invocation command line was
1819
1820 $ $0$ac_configure_args_raw
1821
1822 _ACEOF
1823 exec 5>>config.log
1824 {
1825 cat <<_ASUNAME
1826 ## --------- ##
1827 ## Platform. ##
1828 ## --------- ##
1829
1830 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1831 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1832 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1833 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1834 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1835
1836 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1837 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1838
1839 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1840 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1841 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1842 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1843 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1844 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1845 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1846
1847 _ASUNAME
1848
1849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1850 for as_dir in $PATH
1851 do
1852 IFS=$as_save_IFS
1853 case $as_dir in #(((
1854 '') as_dir=./ ;;
1855 */) ;;
1856 *) as_dir=$as_dir/ ;;
1857 esac
1858 printf "%s\n" "PATH: $as_dir"
1859 done
1860 IFS=$as_save_IFS
1861
1862 } >&5
1863
1864 cat >&5 <<_ACEOF
1865
1866
1867 ## ----------- ##
1868 ## Core tests. ##
1869 ## ----------- ##
1870
1871 _ACEOF
1872
1873
1874 # Keep a trace of the command line.
1875 # Strip out --no-create and --no-recursion so they do not pile up.
1876 # Strip out --silent because we don't want to record it for future runs.
1877 # Also quote any args containing shell meta-characters.
1878 # Make two passes to allow for proper duplicate-argument suppression.
1879 ac_configure_args=
1880 ac_configure_args0=
1881 ac_configure_args1=
1882 ac_must_keep_next=false
1883 for ac_pass in 1 2
1884 do
1885 for ac_arg
1886 do
1887 case $ac_arg in
1888 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1889 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1890 | -silent | --silent | --silen | --sile | --sil)
1891 continue ;;
1892 *\'*)
1893 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1894 esac
1895 case $ac_pass in
1896 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1897 2)
1898 as_fn_append ac_configure_args1 " '$ac_arg'"
1899 if test $ac_must_keep_next = true; then
1900 ac_must_keep_next=false # Got value, back to normal.
1901 else
1902 case $ac_arg in
1903 *=* | --config-cache | -C | -disable-* | --disable-* \
1904 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1905 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1906 | -with-* | --with-* | -without-* | --without-* | --x)
1907 case "$ac_configure_args0 " in
1908 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1909 esac
1910 ;;
1911 -* ) ac_must_keep_next=true ;;
1912 esac
1913 fi
1914 as_fn_append ac_configure_args " '$ac_arg'"
1915 ;;
1916 esac
1917 done
1918 done
1919 { ac_configure_args0=; unset ac_configure_args0;}
1920 { ac_configure_args1=; unset ac_configure_args1;}
1921
1922 # When interrupted or exit'd, cleanup temporary files, and complete
1923 # config.log. We remove comments because anyway the quotes in there
1924 # would cause problems or look ugly.
1925 # WARNING: Use '\'' to represent an apostrophe within the trap.
1926 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1927 trap 'exit_status=$?
1928 # Sanitize IFS.
1929 IFS=" "" $as_nl"
1930 # Save into config.log some information that might help in debugging.
1931 {
1932 echo
1933
1934 printf "%s\n" "## ---------------- ##
1935 ## Cache variables. ##
1936 ## ---------------- ##"
1937 echo
1938 # The following way of writing the cache mishandles newlines in values,
1939 (
1940 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1941 eval ac_val=\$$ac_var
1942 case $ac_val in #(
1943 *${as_nl}*)
1944 case $ac_var in #(
1945 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1946 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1947 esac
1948 case $ac_var in #(
1949 _ | IFS | as_nl) ;; #(
1950 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1951 *) { eval $ac_var=; unset $ac_var;} ;;
1952 esac ;;
1953 esac
1954 done
1955 (set) 2>&1 |
1956 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1957 *${as_nl}ac_space=\ *)
1958 sed -n \
1959 "s/'\''/'\''\\\\'\'''\''/g;
1960 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1961 ;; #(
1962 *)
1963 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1964 ;;
1965 esac |
1966 sort
1967 )
1968 echo
1969
1970 printf "%s\n" "## ----------------- ##
1971 ## Output variables. ##
1972 ## ----------------- ##"
1973 echo
1974 for ac_var in $ac_subst_vars
1975 do
1976 eval ac_val=\$$ac_var
1977 case $ac_val in
1978 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1979 esac
1980 printf "%s\n" "$ac_var='\''$ac_val'\''"
1981 done | sort
1982 echo
1983
1984 if test -n "$ac_subst_files"; then
1985 printf "%s\n" "## ------------------- ##
1986 ## File substitutions. ##
1987 ## ------------------- ##"
1988 echo
1989 for ac_var in $ac_subst_files
1990 do
1991 eval ac_val=\$$ac_var
1992 case $ac_val in
1993 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1994 esac
1995 printf "%s\n" "$ac_var='\''$ac_val'\''"
1996 done | sort
1997 echo
1998 fi
1999
2000 if test -s confdefs.h; then
2001 printf "%s\n" "## ----------- ##
2002 ## confdefs.h. ##
2003 ## ----------- ##"
2004 echo
2005 cat confdefs.h
2006 echo
2007 fi
2008 test "$ac_signal" != 0 &&
2009 printf "%s\n" "$as_me: caught signal $ac_signal"
2010 printf "%s\n" "$as_me: exit $exit_status"
2011 } >&5
2012 rm -f core *.core core.conftest.* &&
2013 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2014 exit $exit_status
2015 ' 0
2016 for ac_signal in 1 2 13 15; do
2017 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2018 done
2019 ac_signal=0
2020
2021 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2022 rm -f -r conftest* confdefs.h
2023
2024 printf "%s\n" "/* confdefs.h */" > confdefs.h
2025
2026 # Predefined preprocessor variables.
2027
2028 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2029
2030 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2031
2032 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2033
2034 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2035
2036 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2037
2038 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2039
2040
2041 # Let the site file select an alternate cache file if it wants to.
2042 # Prefer an explicitly selected file to automatically selected ones.
2043 if test -n "$CONFIG_SITE"; then
2044 ac_site_files="$CONFIG_SITE"
2045 elif test "x$prefix" != xNONE; then
2046 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2047 else
2048 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2049 fi
2050
2051 for ac_site_file in $ac_site_files
2052 do
2053 case $ac_site_file in #(
2054 */*) :
2055 ;; #(
2056 *) :
2057 ac_site_file=./$ac_site_file ;;
2058 esac
2059 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2061 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2062 sed 's/^/| /' "$ac_site_file" >&5
2063 . "$ac_site_file" \
2064 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2065 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2066 as_fn_error $? "failed to load site script $ac_site_file
2067 See \`config.log' for more details" "$LINENO" 5; }
2068 fi
2069 done
2070
2071 if test -r "$cache_file"; then
2072 # Some versions of bash will fail to source /dev/null (special files
2073 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2074 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2076 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2077 case $cache_file in
2078 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2079 *) . "./$cache_file";;
2080 esac
2081 fi
2082 else
2083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2084 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2085 >$cache_file
2086 fi
2087
2088 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2089 # Test code for whether the C compiler supports C89 (global declarations)
2090 ac_c_conftest_c89_globals='
2091 /* Does the compiler advertise C89 conformance?
2092 Do not test the value of __STDC__, because some compilers set it to 0
2093 while being otherwise adequately conformant. */
2094 #if !defined __STDC__
2095 # error "Compiler does not advertise C89 conformance"
2096 #endif
2097
2098 #include <stddef.h>
2099 #include <stdarg.h>
2100 struct stat;
2101 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2102 struct buf { int x; };
2103 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2104 static char *e (p, i)
2105 char **p;
2106 int i;
2107 {
2108 return p[i];
2109 }
2110 static char *f (char * (*g) (char **, int), char **p, ...)
2111 {
2112 char *s;
2113 va_list v;
2114 va_start (v,p);
2115 s = g (p, va_arg (v,int));
2116 va_end (v);
2117 return s;
2118 }
2119
2120 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2121 function prototypes and stuff, but not \xHH hex character constants.
2122 These do not provoke an error unfortunately, instead are silently treated
2123 as an "x". The following induces an error, until -std is added to get
2124 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2125 array size at least. It is necessary to write \x00 == 0 to get something
2126 that is true only with -std. */
2127 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2128
2129 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2130 inside strings and character constants. */
2131 #define FOO(x) '\''x'\''
2132 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2133
2134 int test (int i, double x);
2135 struct s1 {int (*f) (int a);};
2136 struct s2 {int (*f) (double a);};
2137 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2138 int, int);'
2139
2140 # Test code for whether the C compiler supports C89 (body of main).
2141 ac_c_conftest_c89_main='
2142 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2143 '
2144
2145 # Test code for whether the C compiler supports C99 (global declarations)
2146 ac_c_conftest_c99_globals='
2147 // Does the compiler advertise C99 conformance?
2148 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2149 # error "Compiler does not advertise C99 conformance"
2150 #endif
2151
2152 #include <stdbool.h>
2153 extern int puts (const char *);
2154 extern int printf (const char *, ...);
2155 extern int dprintf (int, const char *, ...);
2156 extern void *malloc (size_t);
2157
2158 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2159 // dprintf is used instead of fprintf to avoid needing to declare
2160 // FILE and stderr.
2161 #define debug(...) dprintf (2, __VA_ARGS__)
2162 #define showlist(...) puts (#__VA_ARGS__)
2163 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2164 static void
2165 test_varargs_macros (void)
2166 {
2167 int x = 1234;
2168 int y = 5678;
2169 debug ("Flag");
2170 debug ("X = %d\n", x);
2171 showlist (The first, second, and third items.);
2172 report (x>y, "x is %d but y is %d", x, y);
2173 }
2174
2175 // Check long long types.
2176 #define BIG64 18446744073709551615ull
2177 #define BIG32 4294967295ul
2178 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2179 #if !BIG_OK
2180 #error "your preprocessor is broken"
2181 #endif
2182 #if BIG_OK
2183 #else
2184 #error "your preprocessor is broken"
2185 #endif
2186 static long long int bignum = -9223372036854775807LL;
2187 static unsigned long long int ubignum = BIG64;
2188
2189 struct incomplete_array
2190 {
2191 int datasize;
2192 double data[];
2193 };
2194
2195 struct named_init {
2196 int number;
2197 const wchar_t *name;
2198 double average;
2199 };
2200
2201 typedef const char *ccp;
2202
2203 static inline int
2204 test_restrict (ccp restrict text)
2205 {
2206 // See if C++-style comments work.
2207 // Iterate through items via the restricted pointer.
2208 // Also check for declarations in for loops.
2209 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2210 continue;
2211 return 0;
2212 }
2213
2214 // Check varargs and va_copy.
2215 static bool
2216 test_varargs (const char *format, ...)
2217 {
2218 va_list args;
2219 va_start (args, format);
2220 va_list args_copy;
2221 va_copy (args_copy, args);
2222
2223 const char *str = "";
2224 int number = 0;
2225 float fnumber = 0;
2226
2227 while (*format)
2228 {
2229 switch (*format++)
2230 {
2231 case '\''s'\'': // string
2232 str = va_arg (args_copy, const char *);
2233 break;
2234 case '\''d'\'': // int
2235 number = va_arg (args_copy, int);
2236 break;
2237 case '\''f'\'': // float
2238 fnumber = va_arg (args_copy, double);
2239 break;
2240 default:
2241 break;
2242 }
2243 }
2244 va_end (args_copy);
2245 va_end (args);
2246
2247 return *str && number && fnumber;
2248 }
2249 '
2250
2251 # Test code for whether the C compiler supports C99 (body of main).
2252 ac_c_conftest_c99_main='
2253 // Check bool.
2254 _Bool success = false;
2255 success |= (argc != 0);
2256
2257 // Check restrict.
2258 if (test_restrict ("String literal") == 0)
2259 success = true;
2260 char *restrict newvar = "Another string";
2261
2262 // Check varargs.
2263 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2264 test_varargs_macros ();
2265
2266 // Check flexible array members.
2267 struct incomplete_array *ia =
2268 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2269 ia->datasize = 10;
2270 for (int i = 0; i < ia->datasize; ++i)
2271 ia->data[i] = i * 1.234;
2272
2273 // Check named initializers.
2274 struct named_init ni = {
2275 .number = 34,
2276 .name = L"Test wide string",
2277 .average = 543.34343,
2278 };
2279
2280 ni.number = 58;
2281
2282 int dynamic_array[ni.number];
2283 dynamic_array[0] = argv[0][0];
2284 dynamic_array[ni.number - 1] = 543;
2285
2286 // work around unused variable warnings
2287 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2288 || dynamic_array[ni.number - 1] != 543);
2289 '
2290
2291 # Test code for whether the C compiler supports C11 (global declarations)
2292 ac_c_conftest_c11_globals='
2293 // Does the compiler advertise C11 conformance?
2294 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2295 # error "Compiler does not advertise C11 conformance"
2296 #endif
2297
2298 // Check _Alignas.
2299 char _Alignas (double) aligned_as_double;
2300 char _Alignas (0) no_special_alignment;
2301 extern char aligned_as_int;
2302 char _Alignas (0) _Alignas (int) aligned_as_int;
2303
2304 // Check _Alignof.
2305 enum
2306 {
2307 int_alignment = _Alignof (int),
2308 int_array_alignment = _Alignof (int[100]),
2309 char_alignment = _Alignof (char)
2310 };
2311 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2312
2313 // Check _Noreturn.
2314 int _Noreturn does_not_return (void) { for (;;) continue; }
2315
2316 // Check _Static_assert.
2317 struct test_static_assert
2318 {
2319 int x;
2320 _Static_assert (sizeof (int) <= sizeof (long int),
2321 "_Static_assert does not work in struct");
2322 long int y;
2323 };
2324
2325 // Check UTF-8 literals.
2326 #define u8 syntax error!
2327 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2328
2329 // Check duplicate typedefs.
2330 typedef long *long_ptr;
2331 typedef long int *long_ptr;
2332 typedef long_ptr long_ptr;
2333
2334 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2335 struct anonymous
2336 {
2337 union {
2338 struct { int i; int j; };
2339 struct { int k; long int l; } w;
2340 };
2341 int m;
2342 } v1;
2343 '
2344
2345 # Test code for whether the C compiler supports C11 (body of main).
2346 ac_c_conftest_c11_main='
2347 _Static_assert ((offsetof (struct anonymous, i)
2348 == offsetof (struct anonymous, w.k)),
2349 "Anonymous union alignment botch");
2350 v1.i = 2;
2351 v1.w.k = 5;
2352 ok |= v1.i != 5;
2353 '
2354
2355 # Test code for whether the C compiler supports C11 (complete).
2356 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2357 ${ac_c_conftest_c99_globals}
2358 ${ac_c_conftest_c11_globals}
2359
2360 int
2361 main (int argc, char **argv)
2362 {
2363 int ok = 0;
2364 ${ac_c_conftest_c89_main}
2365 ${ac_c_conftest_c99_main}
2366 ${ac_c_conftest_c11_main}
2367 return ok;
2368 }
2369 "
2370
2371 # Test code for whether the C compiler supports C99 (complete).
2372 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2373 ${ac_c_conftest_c99_globals}
2374
2375 int
2376 main (int argc, char **argv)
2377 {
2378 int ok = 0;
2379 ${ac_c_conftest_c89_main}
2380 ${ac_c_conftest_c99_main}
2381 return ok;
2382 }
2383 "
2384
2385 # Test code for whether the C compiler supports C89 (complete).
2386 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2387
2388 int
2389 main (int argc, char **argv)
2390 {
2391 int ok = 0;
2392 ${ac_c_conftest_c89_main}
2393 return ok;
2394 }
2395 "
2396
2397 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2398 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2399 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2400 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2401 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2402 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2403 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2404 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2405 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2406 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2407
2408 # Auxiliary files required by this configure script.
2409 ac_aux_files="compile missing install-sh config.guess config.sub"
2410
2411 # Locations in which to look for auxiliary files.
2412 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2413
2414 # Search for a directory containing all of the required auxiliary files,
2415 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2416 # If we don't find one directory that contains all the files we need,
2417 # we report the set of missing files from the *first* directory in
2418 # $ac_aux_dir_candidates and give up.
2419 ac_missing_aux_files=""
2420 ac_first_candidate=:
2421 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423 as_found=false
2424 for as_dir in $ac_aux_dir_candidates
2425 do
2426 IFS=$as_save_IFS
2427 case $as_dir in #(((
2428 '') as_dir=./ ;;
2429 */) ;;
2430 *) as_dir=$as_dir/ ;;
2431 esac
2432 as_found=:
2433
2434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2435 ac_aux_dir_found=yes
2436 ac_install_sh=
2437 for ac_aux in $ac_aux_files
2438 do
2439 # As a special case, if "install-sh" is required, that requirement
2440 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2441 # and $ac_install_sh is set appropriately for whichever one is found.
2442 if test x"$ac_aux" = x"install-sh"
2443 then
2444 if test -f "${as_dir}install-sh"; then
2445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2446 ac_install_sh="${as_dir}install-sh -c"
2447 elif test -f "${as_dir}install.sh"; then
2448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2449 ac_install_sh="${as_dir}install.sh -c"
2450 elif test -f "${as_dir}shtool"; then
2451 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2452 ac_install_sh="${as_dir}shtool install -c"
2453 else
2454 ac_aux_dir_found=no
2455 if $ac_first_candidate; then
2456 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2457 else
2458 break
2459 fi
2460 fi
2461 else
2462 if test -f "${as_dir}${ac_aux}"; then
2463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2464 else
2465 ac_aux_dir_found=no
2466 if $ac_first_candidate; then
2467 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2468 else
2469 break
2470 fi
2471 fi
2472 fi
2473 done
2474 if test "$ac_aux_dir_found" = yes; then
2475 ac_aux_dir="$as_dir"
2476 break
2477 fi
2478 ac_first_candidate=false
2479
2480 as_found=false
2481 done
2482 IFS=$as_save_IFS
2483 if $as_found
2484 then :
2485
2486 else $as_nop
2487 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2488 fi
2489
2490
2491 # These three variables are undocumented and unsupported,
2492 # and are intended to be withdrawn in a future Autoconf release.
2493 # They can cause serious problems if a builder's source tree is in a directory
2494 # whose full name contains unusual characters.
2495 if test -f "${ac_aux_dir}config.guess"; then
2496 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2497 fi
2498 if test -f "${ac_aux_dir}config.sub"; then
2499 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2500 fi
2501 if test -f "$ac_aux_dir/configure"; then
2502 ac_configure="$SHELL ${ac_aux_dir}configure"
2503 fi
2504
2505 # Check that the precious variables saved in the cache have kept the same
2506 # value.
2507 ac_cache_corrupted=false
2508 for ac_var in $ac_precious_vars; do
2509 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2510 eval ac_new_set=\$ac_env_${ac_var}_set
2511 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2512 eval ac_new_val=\$ac_env_${ac_var}_value
2513 case $ac_old_set,$ac_new_set in
2514 set,)
2515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2516 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2517 ac_cache_corrupted=: ;;
2518 ,set)
2519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2520 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2521 ac_cache_corrupted=: ;;
2522 ,);;
2523 *)
2524 if test "x$ac_old_val" != "x$ac_new_val"; then
2525 # differences in whitespace do not lead to failure.
2526 ac_old_val_w=`echo x $ac_old_val`
2527 ac_new_val_w=`echo x $ac_new_val`
2528 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2530 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2531 ac_cache_corrupted=:
2532 else
2533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2534 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2535 eval $ac_var=\$ac_old_val
2536 fi
2537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2538 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2540 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2541 fi;;
2542 esac
2543 # Pass precious variables to config.status.
2544 if test "$ac_new_set" = set; then
2545 case $ac_new_val in
2546 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2547 *) ac_arg=$ac_var=$ac_new_val ;;
2548 esac
2549 case " $ac_configure_args " in
2550 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2551 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2552 esac
2553 fi
2554 done
2555 if $ac_cache_corrupted; then
2556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2557 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2559 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2560 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2561 and start over" "$LINENO" 5
2562 fi
2563 ## -------------------- ##
2564 ## Main body of script. ##
2565 ## -------------------- ##
2566
2567 ac_ext=c
2568 ac_cpp='$CPP $CPPFLAGS'
2569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2572
2573
2574
2575 ac_config_headers="$ac_config_headers config.h"
2576
2577
2578
2579
2580 # Make sure we can run config.sub.
2581 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2582 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2583
2584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2585 printf %s "checking build system type... " >&6; }
2586 if test ${ac_cv_build+y}
2587 then :
2588 printf %s "(cached) " >&6
2589 else $as_nop
2590 ac_build_alias=$build_alias
2591 test "x$ac_build_alias" = x &&
2592 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2593 test "x$ac_build_alias" = x &&
2594 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2595 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2596 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2597
2598 fi
2599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2600 printf "%s\n" "$ac_cv_build" >&6; }
2601 case $ac_cv_build in
2602 *-*-*) ;;
2603 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2604 esac
2605 build=$ac_cv_build
2606 ac_save_IFS=$IFS; IFS='-'
2607 set x $ac_cv_build
2608 shift
2609 build_cpu=$1
2610 build_vendor=$2
2611 shift; shift
2612 # Remember, the first character of IFS is used to create $*,
2613 # except with old shells:
2614 build_os=$*
2615 IFS=$ac_save_IFS
2616 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2617
2618
2619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2620 printf %s "checking host system type... " >&6; }
2621 if test ${ac_cv_host+y}
2622 then :
2623 printf %s "(cached) " >&6
2624 else $as_nop
2625 if test "x$host_alias" = x; then
2626 ac_cv_host=$ac_cv_build
2627 else
2628 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2629 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2630 fi
2631
2632 fi
2633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2634 printf "%s\n" "$ac_cv_host" >&6; }
2635 case $ac_cv_host in
2636 *-*-*) ;;
2637 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2638 esac
2639 host=$ac_cv_host
2640 ac_save_IFS=$IFS; IFS='-'
2641 set x $ac_cv_host
2642 shift
2643 host_cpu=$1
2644 host_vendor=$2
2645 shift; shift
2646 # Remember, the first character of IFS is used to create $*,
2647 # except with old shells:
2648 host_os=$*
2649 IFS=$ac_save_IFS
2650 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2651
2652
2653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2654 printf %s "checking target system type... " >&6; }
2655 if test ${ac_cv_target+y}
2656 then :
2657 printf %s "(cached) " >&6
2658 else $as_nop
2659 if test "x$target_alias" = x; then
2660 ac_cv_target=$ac_cv_host
2661 else
2662 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
2663 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
2664 fi
2665
2666 fi
2667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2668 printf "%s\n" "$ac_cv_target" >&6; }
2669 case $ac_cv_target in
2670 *-*-*) ;;
2671 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2672 esac
2673 target=$ac_cv_target
2674 ac_save_IFS=$IFS; IFS='-'
2675 set x $ac_cv_target
2676 shift
2677 target_cpu=$1
2678 target_vendor=$2
2679 shift; shift
2680 # Remember, the first character of IFS is used to create $*,
2681 # except with old shells:
2682 target_os=$*
2683 IFS=$ac_save_IFS
2684 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2685
2686
2687 # The aliases save the names the user supplied, while $host etc.
2688 # will get canonicalized.
2689 test -n "$target_alias" &&
2690 test "$program_prefix$program_suffix$program_transform_name" = \
2691 NONENONEs,x,x, &&
2692 program_prefix=${target_alias}-
2693 am__api_version='1.16'
2694
2695
2696 # Find a good install program. We prefer a C program (faster),
2697 # so one script is as good as another. But avoid the broken or
2698 # incompatible versions:
2699 # SysV /etc/install, /usr/sbin/install
2700 # SunOS /usr/etc/install
2701 # IRIX /sbin/install
2702 # AIX /bin/install
2703 # AmigaOS /C/install, which installs bootblocks on floppy discs
2704 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2705 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2706 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2707 # OS/2's system install, which has a completely different semantic
2708 # ./install, which can be erroneously created by make from ./install.sh.
2709 # Reject install programs that cannot install multiple files.
2710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2711 printf %s "checking for a BSD-compatible install... " >&6; }
2712 if test -z "$INSTALL"; then
2713 if test ${ac_cv_path_install+y}
2714 then :
2715 printf %s "(cached) " >&6
2716 else $as_nop
2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718 for as_dir in $PATH
2719 do
2720 IFS=$as_save_IFS
2721 case $as_dir in #(((
2722 '') as_dir=./ ;;
2723 */) ;;
2724 *) as_dir=$as_dir/ ;;
2725 esac
2726 # Account for fact that we put trailing slashes in our PATH walk.
2727 case $as_dir in #((
2728 ./ | /[cC]/* | \
2729 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2730 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2731 /usr/ucb/* ) ;;
2732 *)
2733 # OSF1 and SCO ODT 3.0 have their own names for install.
2734 # Don't use installbsd from OSF since it installs stuff as root
2735 # by default.
2736 for ac_prog in ginstall scoinst install; do
2737 for ac_exec_ext in '' $ac_executable_extensions; do
2738 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2739 if test $ac_prog = install &&
2740 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2741 # AIX install. It has an incompatible calling convention.
2742 :
2743 elif test $ac_prog = install &&
2744 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2745 # program-specific install script used by HP pwplus--don't use.
2746 :
2747 else
2748 rm -rf conftest.one conftest.two conftest.dir
2749 echo one > conftest.one
2750 echo two > conftest.two
2751 mkdir conftest.dir
2752 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2753 test -s conftest.one && test -s conftest.two &&
2754 test -s conftest.dir/conftest.one &&
2755 test -s conftest.dir/conftest.two
2756 then
2757 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2758 break 3
2759 fi
2760 fi
2761 fi
2762 done
2763 done
2764 ;;
2765 esac
2766
2767 done
2768 IFS=$as_save_IFS
2769
2770 rm -rf conftest.one conftest.two conftest.dir
2771
2772 fi
2773 if test ${ac_cv_path_install+y}; then
2774 INSTALL=$ac_cv_path_install
2775 else
2776 # As a last resort, use the slow shell script. Don't cache a
2777 # value for INSTALL within a source directory, because that will
2778 # break other packages using the cache if that directory is
2779 # removed, or if the value is a relative name.
2780 INSTALL=$ac_install_sh
2781 fi
2782 fi
2783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2784 printf "%s\n" "$INSTALL" >&6; }
2785
2786 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2787 # It thinks the first close brace ends the variable substitution.
2788 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2789
2790 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2791
2792 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2793
2794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2795 printf %s "checking whether build environment is sane... " >&6; }
2796 # Reject unsafe characters in $srcdir or the absolute working directory
2797 # name. Accept space and tab only in the latter.
2798 am_lf='
2799 '
2800 case `pwd` in
2801 *[\\\"\#\$\&\'\`$am_lf]*)
2802 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2803 esac
2804 case $srcdir in
2805 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2806 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2807 esac
2808
2809 # Do 'set' in a subshell so we don't clobber the current shell's
2810 # arguments. Must try -L first in case configure is actually a
2811 # symlink; some systems play weird games with the mod time of symlinks
2812 # (eg FreeBSD returns the mod time of the symlink's containing
2813 # directory).
2814 if (
2815 am_has_slept=no
2816 for am_try in 1 2; do
2817 echo "timestamp, slept: $am_has_slept" > conftest.file
2818 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2819 if test "$*" = "X"; then
2820 # -L didn't work.
2821 set X `ls -t "$srcdir/configure" conftest.file`
2822 fi
2823 if test "$*" != "X $srcdir/configure conftest.file" \
2824 && test "$*" != "X conftest.file $srcdir/configure"; then
2825
2826 # If neither matched, then we have a broken ls. This can happen
2827 # if, for instance, CONFIG_SHELL is bash and it inherits a
2828 # broken ls alias from the environment. This has actually
2829 # happened. Such a system could not be considered "sane".
2830 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2831 alias in your environment" "$LINENO" 5
2832 fi
2833 if test "$2" = conftest.file || test $am_try -eq 2; then
2834 break
2835 fi
2836 # Just in case.
2837 sleep 1
2838 am_has_slept=yes
2839 done
2840 test "$2" = conftest.file
2841 )
2842 then
2843 # Ok.
2844 :
2845 else
2846 as_fn_error $? "newly created file is older than distributed files!
2847 Check your system clock" "$LINENO" 5
2848 fi
2849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2850 printf "%s\n" "yes" >&6; }
2851 # If we didn't sleep, we still need to ensure time stamps of config.status and
2852 # generated files are strictly newer.
2853 am_sleep_pid=
2854 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2855 ( sleep 1 ) &
2856 am_sleep_pid=$!
2857 fi
2858
2859 rm -f conftest.file
2860
2861 test "$program_prefix" != NONE &&
2862 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2863 # Use a double $ so make ignores it.
2864 test "$program_suffix" != NONE &&
2865 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2866 # Double any \ or $.
2867 # By default was `s,x,x', remove it if useless.
2868 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2869 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2870
2871
2872 # Expand $ac_aux_dir to an absolute path.
2873 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2874
2875
2876 if test x"${MISSING+set}" != xset; then
2877 MISSING="\${SHELL} '$am_aux_dir/missing'"
2878 fi
2879 # Use eval to expand $SHELL
2880 if eval "$MISSING --is-lightweight"; then
2881 am_missing_run="$MISSING "
2882 else
2883 am_missing_run=
2884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2885 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2886 fi
2887
2888 if test x"${install_sh+set}" != xset; then
2889 case $am_aux_dir in
2890 *\ * | *\ *)
2891 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2892 *)
2893 install_sh="\${SHELL} $am_aux_dir/install-sh"
2894 esac
2895 fi
2896
2897 # Installed binaries are usually stripped using 'strip' when the user
2898 # run "make install-strip". However 'strip' might not be the right
2899 # tool to use in cross-compilation environments, therefore Automake
2900 # will honor the 'STRIP' environment variable to overrule this program.
2901 if test "$cross_compiling" != no; then
2902 if test -n "$ac_tool_prefix"; then
2903 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2904 set dummy ${ac_tool_prefix}strip; ac_word=$2
2905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2906 printf %s "checking for $ac_word... " >&6; }
2907 if test ${ac_cv_prog_STRIP+y}
2908 then :
2909 printf %s "(cached) " >&6
2910 else $as_nop
2911 if test -n "$STRIP"; then
2912 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2913 else
2914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915 for as_dir in $PATH
2916 do
2917 IFS=$as_save_IFS
2918 case $as_dir in #(((
2919 '') as_dir=./ ;;
2920 */) ;;
2921 *) as_dir=$as_dir/ ;;
2922 esac
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2925 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2927 break 2
2928 fi
2929 done
2930 done
2931 IFS=$as_save_IFS
2932
2933 fi
2934 fi
2935 STRIP=$ac_cv_prog_STRIP
2936 if test -n "$STRIP"; then
2937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2938 printf "%s\n" "$STRIP" >&6; }
2939 else
2940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 printf "%s\n" "no" >&6; }
2942 fi
2943
2944
2945 fi
2946 if test -z "$ac_cv_prog_STRIP"; then
2947 ac_ct_STRIP=$STRIP
2948 # Extract the first word of "strip", so it can be a program name with args.
2949 set dummy strip; ac_word=$2
2950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2951 printf %s "checking for $ac_word... " >&6; }
2952 if test ${ac_cv_prog_ac_ct_STRIP+y}
2953 then :
2954 printf %s "(cached) " >&6
2955 else $as_nop
2956 if test -n "$ac_ct_STRIP"; then
2957 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2958 else
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960 for as_dir in $PATH
2961 do
2962 IFS=$as_save_IFS
2963 case $as_dir in #(((
2964 '') as_dir=./ ;;
2965 */) ;;
2966 *) as_dir=$as_dir/ ;;
2967 esac
2968 for ac_exec_ext in '' $ac_executable_extensions; do
2969 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2970 ac_cv_prog_ac_ct_STRIP="strip"
2971 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2972 break 2
2973 fi
2974 done
2975 done
2976 IFS=$as_save_IFS
2977
2978 fi
2979 fi
2980 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2981 if test -n "$ac_ct_STRIP"; then
2982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2983 printf "%s\n" "$ac_ct_STRIP" >&6; }
2984 else
2985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2986 printf "%s\n" "no" >&6; }
2987 fi
2988
2989 if test "x$ac_ct_STRIP" = x; then
2990 STRIP=":"
2991 else
2992 case $cross_compiling:$ac_tool_warned in
2993 yes:)
2994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2995 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2996 ac_tool_warned=yes ;;
2997 esac
2998 STRIP=$ac_ct_STRIP
2999 fi
3000 else
3001 STRIP="$ac_cv_prog_STRIP"
3002 fi
3003
3004 fi
3005 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3006
3007
3008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3009 printf %s "checking for a race-free mkdir -p... " >&6; }
3010 if test -z "$MKDIR_P"; then
3011 if test ${ac_cv_path_mkdir+y}
3012 then :
3013 printf %s "(cached) " >&6
3014 else $as_nop
3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3017 do
3018 IFS=$as_save_IFS
3019 case $as_dir in #(((
3020 '') as_dir=./ ;;
3021 */) ;;
3022 *) as_dir=$as_dir/ ;;
3023 esac
3024 for ac_prog in mkdir gmkdir; do
3025 for ac_exec_ext in '' $ac_executable_extensions; do
3026 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3027 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3028 'mkdir ('*'coreutils) '* | \
3029 'BusyBox '* | \
3030 'mkdir (fileutils) '4.1*)
3031 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3032 break 3;;
3033 esac
3034 done
3035 done
3036 done
3037 IFS=$as_save_IFS
3038
3039 fi
3040
3041 test -d ./--version && rmdir ./--version
3042 if test ${ac_cv_path_mkdir+y}; then
3043 MKDIR_P="$ac_cv_path_mkdir -p"
3044 else
3045 # As a last resort, use the slow shell script. Don't cache a
3046 # value for MKDIR_P within a source directory, because that will
3047 # break other packages using the cache if that directory is
3048 # removed, or if the value is a relative name.
3049 MKDIR_P="$ac_install_sh -d"
3050 fi
3051 fi
3052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3053 printf "%s\n" "$MKDIR_P" >&6; }
3054
3055 for ac_prog in gawk mawk nawk awk
3056 do
3057 # Extract the first word of "$ac_prog", so it can be a program name with args.
3058 set dummy $ac_prog; ac_word=$2
3059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3060 printf %s "checking for $ac_word... " >&6; }
3061 if test ${ac_cv_prog_AWK+y}
3062 then :
3063 printf %s "(cached) " >&6
3064 else $as_nop
3065 if test -n "$AWK"; then
3066 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3067 else
3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069 for as_dir in $PATH
3070 do
3071 IFS=$as_save_IFS
3072 case $as_dir in #(((
3073 '') as_dir=./ ;;
3074 */) ;;
3075 *) as_dir=$as_dir/ ;;
3076 esac
3077 for ac_exec_ext in '' $ac_executable_extensions; do
3078 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3079 ac_cv_prog_AWK="$ac_prog"
3080 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3081 break 2
3082 fi
3083 done
3084 done
3085 IFS=$as_save_IFS
3086
3087 fi
3088 fi
3089 AWK=$ac_cv_prog_AWK
3090 if test -n "$AWK"; then
3091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3092 printf "%s\n" "$AWK" >&6; }
3093 else
3094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3095 printf "%s\n" "no" >&6; }
3096 fi
3097
3098
3099 test -n "$AWK" && break
3100 done
3101
3102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3103 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3104 set x ${MAKE-make}
3105 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3106 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3107 then :
3108 printf %s "(cached) " >&6
3109 else $as_nop
3110 cat >conftest.make <<\_ACEOF
3111 SHELL = /bin/sh
3112 all:
3113 @echo '@@@%%%=$(MAKE)=@@@%%%'
3114 _ACEOF
3115 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3116 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3117 *@@@%%%=?*=@@@%%%*)
3118 eval ac_cv_prog_make_${ac_make}_set=yes;;
3119 *)
3120 eval ac_cv_prog_make_${ac_make}_set=no;;
3121 esac
3122 rm -f conftest.make
3123 fi
3124 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3126 printf "%s\n" "yes" >&6; }
3127 SET_MAKE=
3128 else
3129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130 printf "%s\n" "no" >&6; }
3131 SET_MAKE="MAKE=${MAKE-make}"
3132 fi
3133
3134 rm -rf .tst 2>/dev/null
3135 mkdir .tst 2>/dev/null
3136 if test -d .tst; then
3137 am__leading_dot=.
3138 else
3139 am__leading_dot=_
3140 fi
3141 rmdir .tst 2>/dev/null
3142
3143 # Check whether --enable-silent-rules was given.
3144 if test ${enable_silent_rules+y}
3145 then :
3146 enableval=$enable_silent_rules;
3147 fi
3148
3149 case $enable_silent_rules in # (((
3150 yes) AM_DEFAULT_VERBOSITY=0;;
3151 no) AM_DEFAULT_VERBOSITY=1;;
3152 *) AM_DEFAULT_VERBOSITY=1;;
3153 esac
3154 am_make=${MAKE-make}
3155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3156 printf %s "checking whether $am_make supports nested variables... " >&6; }
3157 if test ${am_cv_make_support_nested_variables+y}
3158 then :
3159 printf %s "(cached) " >&6
3160 else $as_nop
3161 if printf "%s\n" 'TRUE=$(BAR$(V))
3162 BAR0=false
3163 BAR1=true
3164 V=1
3165 am__doit:
3166 @$(TRUE)
3167 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3168 am_cv_make_support_nested_variables=yes
3169 else
3170 am_cv_make_support_nested_variables=no
3171 fi
3172 fi
3173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3174 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3175 if test $am_cv_make_support_nested_variables = yes; then
3176 AM_V='$(V)'
3177 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3178 else
3179 AM_V=$AM_DEFAULT_VERBOSITY
3180 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3181 fi
3182 AM_BACKSLASH='\'
3183
3184 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3185 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3186 # is not polluted with repeated "-I."
3187 am__isrc=' -I$(srcdir)'
3188 # test to see if srcdir already configured
3189 if test -f $srcdir/config.status; then
3190 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3191 fi
3192 fi
3193
3194 # test whether we have cygpath
3195 if test -z "$CYGPATH_W"; then
3196 if (cygpath --version) >/dev/null 2>/dev/null; then
3197 CYGPATH_W='cygpath -w'
3198 else
3199 CYGPATH_W=echo
3200 fi
3201 fi
3202
3203
3204 # Define the identity of the package.
3205 PACKAGE='barrage'
3206 VERSION='1.0.8'
3207
3208
3209 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3210
3211
3212 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3213
3214 # Some tools Automake needs.
3215
3216 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3217
3218
3219 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3220
3221
3222 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3223
3224
3225 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3226
3227
3228 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3229
3230 # For better backward compatibility. To be removed once Automake 1.9.x
3231 # dies out for good. For more background, see:
3232 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3233 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3234 mkdir_p='$(MKDIR_P)'
3235
3236 # We need awk for the "check" target (and possibly the TAP driver). The
3237 # system "awk" is bad on some platforms.
3238 # Always define AMTAR for backward compatibility. Yes, it's still used
3239 # in the wild :-( We should find a proper way to deprecate it ...
3240 AMTAR='$${TAR-tar}'
3241
3242
3243 # We'll loop over all known methods to create a tar archive until one works.
3244 _am_tools='gnutar pax cpio none'
3245
3246 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3247
3248
3249
3250
3251
3252 # Variables for tags utilities; see am/tags.am
3253 if test -z "$CTAGS"; then
3254 CTAGS=ctags
3255 fi
3256
3257 if test -z "$ETAGS"; then
3258 ETAGS=etags
3259 fi
3260
3261 if test -z "$CSCOPE"; then
3262 CSCOPE=cscope
3263 fi
3264
3265
3266
3267 # POSIX will say in a future version that running "rm -f" with no argument
3268 # is OK; and we want to be able to make that assumption in our Makefile
3269 # recipes. So use an aggressive probe to check that the usage we want is
3270 # actually supported "in the wild" to an acceptable degree.
3271 # See automake bug#10828.
3272 # To make any issue more visible, cause the running configure to be aborted
3273 # by default if the 'rm' program in use doesn't match our expectations; the
3274 # user can still override this though.
3275 if rm -f && rm -fr && rm -rf; then : OK; else
3276 cat >&2 <<'END'
3277 Oops!
3278
3279 Your 'rm' program seems unable to run without file operands specified
3280 on the command line, even when the '-f' option is present. This is contrary
3281 to the behaviour of most rm programs out there, and not conforming with
3282 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3283
3284 Please tell [email protected] about your system, including the value
3285 of your $PATH and any error possibly output before this message. This
3286 can help us improve future automake versions.
3287
3288 END
3289 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3290 echo 'Configuration will proceed anyway, since you have set the' >&2
3291 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3292 echo >&2
3293 else
3294 cat >&2 <<'END'
3295 Aborting the configuration process, to ensure you take notice of the issue.
3296
3297 You can download and install GNU coreutils to get an 'rm' implementation
3298 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3299
3300 If you want to complete the configuration process using your problematic
3301 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3302 to "yes", and re-run configure.
3303
3304 END
3305 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3306 fi
3307 fi
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319 DEPDIR="${am__leading_dot}deps"
3320
3321 ac_config_commands="$ac_config_commands depfiles"
3322
3323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3324 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3325 cat > confinc.mk << 'END'
3326 am__doit:
3327 @echo this is the am__doit target >confinc.out
3328 .PHONY: am__doit
3329 END
3330 am__include="#"
3331 am__quote=
3332 # BSD make does it like this.
3333 echo '.include "confinc.mk" # ignored' > confmf.BSD
3334 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3335 echo 'include confinc.mk # ignored' > confmf.GNU
3336 _am_result=no
3337 for s in GNU BSD; do
3338 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3339 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3340 ac_status=$?
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); }
3343 case $?:`cat confinc.out 2>/dev/null` in #(
3344 '0:this is the am__doit target') :
3345 case $s in #(
3346 BSD) :
3347 am__include='.include' am__quote='"' ;; #(
3348 *) :
3349 am__include='include' am__quote='' ;;
3350 esac ;; #(
3351 *) :
3352 ;;
3353 esac
3354 if test "$am__include" != "#"; then
3355 _am_result="yes ($s style)"
3356 break
3357 fi
3358 done
3359 rm -f confinc.* confmf.*
3360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3361 printf "%s\n" "${_am_result}" >&6; }
3362
3363 # Check whether --enable-dependency-tracking was given.
3364 if test ${enable_dependency_tracking+y}
3365 then :
3366 enableval=$enable_dependency_tracking;
3367 fi
3368
3369 if test "x$enable_dependency_tracking" != xno; then
3370 am_depcomp="$ac_aux_dir/depcomp"
3371 AMDEPBACKSLASH='\'
3372 am__nodep='_no'
3373 fi
3374 if test "x$enable_dependency_tracking" != xno; then
3375 AMDEP_TRUE=
3376 AMDEP_FALSE='#'
3377 else
3378 AMDEP_TRUE='#'
3379 AMDEP_FALSE=
3380 fi
3381
3382
3383 ac_ext=c
3384 ac_cpp='$CPP $CPPFLAGS'
3385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3388 if test -n "$ac_tool_prefix"; then
3389 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3390 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3392 printf %s "checking for $ac_word... " >&6; }
3393 if test ${ac_cv_prog_CC+y}
3394 then :
3395 printf %s "(cached) " >&6
3396 else $as_nop
3397 if test -n "$CC"; then
3398 ac_cv_prog_CC="$CC" # Let the user override the test.
3399 else
3400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401 for as_dir in $PATH
3402 do
3403 IFS=$as_save_IFS
3404 case $as_dir in #(((
3405 '') as_dir=./ ;;
3406 */) ;;
3407 *) as_dir=$as_dir/ ;;
3408 esac
3409 for ac_exec_ext in '' $ac_executable_extensions; do
3410 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3411 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3412 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3413 break 2
3414 fi
3415 done
3416 done
3417 IFS=$as_save_IFS
3418
3419 fi
3420 fi
3421 CC=$ac_cv_prog_CC
3422 if test -n "$CC"; then
3423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3424 printf "%s\n" "$CC" >&6; }
3425 else
3426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3427 printf "%s\n" "no" >&6; }
3428 fi
3429
3430
3431 fi
3432 if test -z "$ac_cv_prog_CC"; then
3433 ac_ct_CC=$CC
3434 # Extract the first word of "gcc", so it can be a program name with args.
3435 set dummy gcc; ac_word=$2
3436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3437 printf %s "checking for $ac_word... " >&6; }
3438 if test ${ac_cv_prog_ac_ct_CC+y}
3439 then :
3440 printf %s "(cached) " >&6
3441 else $as_nop
3442 if test -n "$ac_ct_CC"; then
3443 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3444 else
3445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 for as_dir in $PATH
3447 do
3448 IFS=$as_save_IFS
3449 case $as_dir in #(((
3450 '') as_dir=./ ;;
3451 */) ;;
3452 *) as_dir=$as_dir/ ;;
3453 esac
3454 for ac_exec_ext in '' $ac_executable_extensions; do
3455 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3456 ac_cv_prog_ac_ct_CC="gcc"
3457 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3458 break 2
3459 fi
3460 done
3461 done
3462 IFS=$as_save_IFS
3463
3464 fi
3465 fi
3466 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3467 if test -n "$ac_ct_CC"; then
3468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3469 printf "%s\n" "$ac_ct_CC" >&6; }
3470 else
3471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3472 printf "%s\n" "no" >&6; }
3473 fi
3474
3475 if test "x$ac_ct_CC" = x; then
3476 CC=""
3477 else
3478 case $cross_compiling:$ac_tool_warned in
3479 yes:)
3480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3481 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3482 ac_tool_warned=yes ;;
3483 esac
3484 CC=$ac_ct_CC
3485 fi
3486 else
3487 CC="$ac_cv_prog_CC"
3488 fi
3489
3490 if test -z "$CC"; then
3491 if test -n "$ac_tool_prefix"; then
3492 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3493 set dummy ${ac_tool_prefix}cc; ac_word=$2
3494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3495 printf %s "checking for $ac_word... " >&6; }
3496 if test ${ac_cv_prog_CC+y}
3497 then :
3498 printf %s "(cached) " >&6
3499 else $as_nop
3500 if test -n "$CC"; then
3501 ac_cv_prog_CC="$CC" # Let the user override the test.
3502 else
3503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 for as_dir in $PATH
3505 do
3506 IFS=$as_save_IFS
3507 case $as_dir in #(((
3508 '') as_dir=./ ;;
3509 */) ;;
3510 *) as_dir=$as_dir/ ;;
3511 esac
3512 for ac_exec_ext in '' $ac_executable_extensions; do
3513 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3514 ac_cv_prog_CC="${ac_tool_prefix}cc"
3515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3516 break 2
3517 fi
3518 done
3519 done
3520 IFS=$as_save_IFS
3521
3522 fi
3523 fi
3524 CC=$ac_cv_prog_CC
3525 if test -n "$CC"; then
3526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3527 printf "%s\n" "$CC" >&6; }
3528 else
3529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3530 printf "%s\n" "no" >&6; }
3531 fi
3532
3533
3534 fi
3535 fi
3536 if test -z "$CC"; then
3537 # Extract the first word of "cc", so it can be a program name with args.
3538 set dummy cc; ac_word=$2
3539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3540 printf %s "checking for $ac_word... " >&6; }
3541 if test ${ac_cv_prog_CC+y}
3542 then :
3543 printf %s "(cached) " >&6
3544 else $as_nop
3545 if test -n "$CC"; then
3546 ac_cv_prog_CC="$CC" # Let the user override the test.
3547 else
3548 ac_prog_rejected=no
3549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 for as_dir in $PATH
3551 do
3552 IFS=$as_save_IFS
3553 case $as_dir in #(((
3554 '') as_dir=./ ;;
3555 */) ;;
3556 *) as_dir=$as_dir/ ;;
3557 esac
3558 for ac_exec_ext in '' $ac_executable_extensions; do
3559 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3560 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3561 ac_prog_rejected=yes
3562 continue
3563 fi
3564 ac_cv_prog_CC="cc"
3565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3566 break 2
3567 fi
3568 done
3569 done
3570 IFS=$as_save_IFS
3571
3572 if test $ac_prog_rejected = yes; then
3573 # We found a bogon in the path, so make sure we never use it.
3574 set dummy $ac_cv_prog_CC
3575 shift
3576 if test $# != 0; then
3577 # We chose a different compiler from the bogus one.
3578 # However, it has the same basename, so the bogon will be chosen
3579 # first if we set CC to just the basename; use the full file name.
3580 shift
3581 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3582 fi
3583 fi
3584 fi
3585 fi
3586 CC=$ac_cv_prog_CC
3587 if test -n "$CC"; then
3588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3589 printf "%s\n" "$CC" >&6; }
3590 else
3591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3592 printf "%s\n" "no" >&6; }
3593 fi
3594
3595
3596 fi
3597 if test -z "$CC"; then
3598 if test -n "$ac_tool_prefix"; then
3599 for ac_prog in cl.exe
3600 do
3601 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3602 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3604 printf %s "checking for $ac_word... " >&6; }
3605 if test ${ac_cv_prog_CC+y}
3606 then :
3607 printf %s "(cached) " >&6
3608 else $as_nop
3609 if test -n "$CC"; then
3610 ac_cv_prog_CC="$CC" # Let the user override the test.
3611 else
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613 for as_dir in $PATH
3614 do
3615 IFS=$as_save_IFS
3616 case $as_dir in #(((
3617 '') as_dir=./ ;;
3618 */) ;;
3619 *) as_dir=$as_dir/ ;;
3620 esac
3621 for ac_exec_ext in '' $ac_executable_extensions; do
3622 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3623 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3624 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3625 break 2
3626 fi
3627 done
3628 done
3629 IFS=$as_save_IFS
3630
3631 fi
3632 fi
3633 CC=$ac_cv_prog_CC
3634 if test -n "$CC"; then
3635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3636 printf "%s\n" "$CC" >&6; }
3637 else
3638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3639 printf "%s\n" "no" >&6; }
3640 fi
3641
3642
3643 test -n "$CC" && break
3644 done
3645 fi
3646 if test -z "$CC"; then
3647 ac_ct_CC=$CC
3648 for ac_prog in cl.exe
3649 do
3650 # Extract the first word of "$ac_prog", so it can be a program name with args.
3651 set dummy $ac_prog; ac_word=$2
3652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3653 printf %s "checking for $ac_word... " >&6; }
3654 if test ${ac_cv_prog_ac_ct_CC+y}
3655 then :
3656 printf %s "(cached) " >&6
3657 else $as_nop
3658 if test -n "$ac_ct_CC"; then
3659 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3660 else
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 for as_dir in $PATH
3663 do
3664 IFS=$as_save_IFS
3665 case $as_dir in #(((
3666 '') as_dir=./ ;;
3667 */) ;;
3668 *) as_dir=$as_dir/ ;;
3669 esac
3670 for ac_exec_ext in '' $ac_executable_extensions; do
3671 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3672 ac_cv_prog_ac_ct_CC="$ac_prog"
3673 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3674 break 2
3675 fi
3676 done
3677 done
3678 IFS=$as_save_IFS
3679
3680 fi
3681 fi
3682 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3683 if test -n "$ac_ct_CC"; then
3684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3685 printf "%s\n" "$ac_ct_CC" >&6; }
3686 else
3687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3688 printf "%s\n" "no" >&6; }
3689 fi
3690
3691
3692 test -n "$ac_ct_CC" && break
3693 done
3694
3695 if test "x$ac_ct_CC" = x; then
3696 CC=""
3697 else
3698 case $cross_compiling:$ac_tool_warned in
3699 yes:)
3700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3701 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3702 ac_tool_warned=yes ;;
3703 esac
3704 CC=$ac_ct_CC
3705 fi
3706 fi
3707
3708 fi
3709 if test -z "$CC"; then
3710 if test -n "$ac_tool_prefix"; then
3711 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3712 set dummy ${ac_tool_prefix}clang; ac_word=$2
3713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3714 printf %s "checking for $ac_word... " >&6; }
3715 if test ${ac_cv_prog_CC+y}
3716 then :
3717 printf %s "(cached) " >&6
3718 else $as_nop
3719 if test -n "$CC"; then
3720 ac_cv_prog_CC="$CC" # Let the user override the test.
3721 else
3722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723 for as_dir in $PATH
3724 do
3725 IFS=$as_save_IFS
3726 case $as_dir in #(((
3727 '') as_dir=./ ;;
3728 */) ;;
3729 *) as_dir=$as_dir/ ;;
3730 esac
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3733 ac_cv_prog_CC="${ac_tool_prefix}clang"
3734 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3735 break 2
3736 fi
3737 done
3738 done
3739 IFS=$as_save_IFS
3740
3741 fi
3742 fi
3743 CC=$ac_cv_prog_CC
3744 if test -n "$CC"; then
3745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3746 printf "%s\n" "$CC" >&6; }
3747 else
3748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3749 printf "%s\n" "no" >&6; }
3750 fi
3751
3752
3753 fi
3754 if test -z "$ac_cv_prog_CC"; then
3755 ac_ct_CC=$CC
3756 # Extract the first word of "clang", so it can be a program name with args.
3757 set dummy clang; ac_word=$2
3758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3759 printf %s "checking for $ac_word... " >&6; }
3760 if test ${ac_cv_prog_ac_ct_CC+y}
3761 then :
3762 printf %s "(cached) " >&6
3763 else $as_nop
3764 if test -n "$ac_ct_CC"; then
3765 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3766 else
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 for as_dir in $PATH
3769 do
3770 IFS=$as_save_IFS
3771 case $as_dir in #(((
3772 '') as_dir=./ ;;
3773 */) ;;
3774 *) as_dir=$as_dir/ ;;
3775 esac
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3778 ac_cv_prog_ac_ct_CC="clang"
3779 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3780 break 2
3781 fi
3782 done
3783 done
3784 IFS=$as_save_IFS
3785
3786 fi
3787 fi
3788 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3789 if test -n "$ac_ct_CC"; then
3790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3791 printf "%s\n" "$ac_ct_CC" >&6; }
3792 else
3793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3794 printf "%s\n" "no" >&6; }
3795 fi
3796
3797 if test "x$ac_ct_CC" = x; then
3798 CC=""
3799 else
3800 case $cross_compiling:$ac_tool_warned in
3801 yes:)
3802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3803 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3804 ac_tool_warned=yes ;;
3805 esac
3806 CC=$ac_ct_CC
3807 fi
3808 else
3809 CC="$ac_cv_prog_CC"
3810 fi
3811
3812 fi
3813
3814
3815 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3816 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3817 as_fn_error $? "no acceptable C compiler found in \$PATH
3818 See \`config.log' for more details" "$LINENO" 5; }
3819
3820 # Provide some information about the compiler.
3821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3822 set X $ac_compile
3823 ac_compiler=$2
3824 for ac_option in --version -v -V -qversion -version; do
3825 { { ac_try="$ac_compiler $ac_option >&5"
3826 case "(($ac_try" in
3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828 *) ac_try_echo=$ac_try;;
3829 esac
3830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3831 printf "%s\n" "$ac_try_echo"; } >&5
3832 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3833 ac_status=$?
3834 if test -s conftest.err; then
3835 sed '10a\
3836 ... rest of stderr output deleted ...
3837 10q' conftest.err >conftest.er1
3838 cat conftest.er1 >&5
3839 fi
3840 rm -f conftest.er1 conftest.err
3841 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3842 test $ac_status = 0; }
3843 done
3844
3845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846 /* end confdefs.h. */
3847
3848 int
3849 main (void)
3850 {
3851
3852 ;
3853 return 0;
3854 }
3855 _ACEOF
3856 ac_clean_files_save=$ac_clean_files
3857 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3858 # Try to create an executable without -o first, disregard a.out.
3859 # It will help us diagnose broken compilers, and finding out an intuition
3860 # of exeext.
3861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3862 printf %s "checking whether the C compiler works... " >&6; }
3863 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3864
3865 # The possible output files:
3866 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3867
3868 ac_rmfiles=
3869 for ac_file in $ac_files
3870 do
3871 case $ac_file in
3872 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3873 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3874 esac
3875 done
3876 rm -f $ac_rmfiles
3877
3878 if { { ac_try="$ac_link_default"
3879 case "(($ac_try" in
3880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3881 *) ac_try_echo=$ac_try;;
3882 esac
3883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3884 printf "%s\n" "$ac_try_echo"; } >&5
3885 (eval "$ac_link_default") 2>&5
3886 ac_status=$?
3887 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3888 test $ac_status = 0; }
3889 then :
3890 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3891 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3892 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3893 # so that the user can short-circuit this test for compilers unknown to
3894 # Autoconf.
3895 for ac_file in $ac_files ''
3896 do
3897 test -f "$ac_file" || continue
3898 case $ac_file in
3899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3900 ;;
3901 [ab].out )
3902 # We found the default executable, but exeext='' is most
3903 # certainly right.
3904 break;;
3905 *.* )
3906 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3907 then :; else
3908 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3909 fi
3910 # We set ac_cv_exeext here because the later test for it is not
3911 # safe: cross compilers may not add the suffix if given an `-o'
3912 # argument, so we may need to know it at that point already.
3913 # Even if this section looks crufty: it has the advantage of
3914 # actually working.
3915 break;;
3916 * )
3917 break;;
3918 esac
3919 done
3920 test "$ac_cv_exeext" = no && ac_cv_exeext=
3921
3922 else $as_nop
3923 ac_file=''
3924 fi
3925 if test -z "$ac_file"
3926 then :
3927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3928 printf "%s\n" "no" >&6; }
3929 printf "%s\n" "$as_me: failed program was:" >&5
3930 sed 's/^/| /' conftest.$ac_ext >&5
3931
3932 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3933 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3934 as_fn_error 77 "C compiler cannot create executables
3935 See \`config.log' for more details" "$LINENO" 5; }
3936 else $as_nop
3937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3938 printf "%s\n" "yes" >&6; }
3939 fi
3940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3941 printf %s "checking for C compiler default output file name... " >&6; }
3942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3943 printf "%s\n" "$ac_file" >&6; }
3944 ac_exeext=$ac_cv_exeext
3945
3946 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3947 ac_clean_files=$ac_clean_files_save
3948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3949 printf %s "checking for suffix of executables... " >&6; }
3950 if { { ac_try="$ac_link"
3951 case "(($ac_try" in
3952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3953 *) ac_try_echo=$ac_try;;
3954 esac
3955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3956 printf "%s\n" "$ac_try_echo"; } >&5
3957 (eval "$ac_link") 2>&5
3958 ac_status=$?
3959 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3960 test $ac_status = 0; }
3961 then :
3962 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3963 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3964 # work properly (i.e., refer to `conftest.exe'), while it won't with
3965 # `rm'.
3966 for ac_file in conftest.exe conftest conftest.*; do
3967 test -f "$ac_file" || continue
3968 case $ac_file in
3969 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3970 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3971 break;;
3972 * ) break;;
3973 esac
3974 done
3975 else $as_nop
3976 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3977 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3978 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3979 See \`config.log' for more details" "$LINENO" 5; }
3980 fi
3981 rm -f conftest conftest$ac_cv_exeext
3982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3983 printf "%s\n" "$ac_cv_exeext" >&6; }
3984
3985 rm -f conftest.$ac_ext
3986 EXEEXT=$ac_cv_exeext
3987 ac_exeext=$EXEEXT
3988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989 /* end confdefs.h. */
3990 #include <stdio.h>
3991 int
3992 main (void)
3993 {
3994 FILE *f = fopen ("conftest.out", "w");
3995 return ferror (f) || fclose (f) != 0;
3996
3997 ;
3998 return 0;
3999 }
4000 _ACEOF
4001 ac_clean_files="$ac_clean_files conftest.out"
4002 # Check that the compiler produces executables we can run. If not, either
4003 # the compiler is broken, or we cross compile.
4004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4005 printf %s "checking whether we are cross compiling... " >&6; }
4006 if test "$cross_compiling" != yes; then
4007 { { ac_try="$ac_link"
4008 case "(($ac_try" in
4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4011 esac
4012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4013 printf "%s\n" "$ac_try_echo"; } >&5
4014 (eval "$ac_link") 2>&5
4015 ac_status=$?
4016 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4017 test $ac_status = 0; }
4018 if { ac_try='./conftest$ac_cv_exeext'
4019 { { case "(($ac_try" in
4020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4021 *) ac_try_echo=$ac_try;;
4022 esac
4023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4024 printf "%s\n" "$ac_try_echo"; } >&5
4025 (eval "$ac_try") 2>&5
4026 ac_status=$?
4027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4028 test $ac_status = 0; }; }; then
4029 cross_compiling=no
4030 else
4031 if test "$cross_compiling" = maybe; then
4032 cross_compiling=yes
4033 else
4034 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4035 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4036 as_fn_error 77 "cannot run C compiled programs.
4037 If you meant to cross compile, use \`--host'.
4038 See \`config.log' for more details" "$LINENO" 5; }
4039 fi
4040 fi
4041 fi
4042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4043 printf "%s\n" "$cross_compiling" >&6; }
4044
4045 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4046 ac_clean_files=$ac_clean_files_save
4047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4048 printf %s "checking for suffix of object files... " >&6; }
4049 if test ${ac_cv_objext+y}
4050 then :
4051 printf %s "(cached) " >&6
4052 else $as_nop
4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h. */
4055
4056 int
4057 main (void)
4058 {
4059
4060 ;
4061 return 0;
4062 }
4063 _ACEOF
4064 rm -f conftest.o conftest.obj
4065 if { { ac_try="$ac_compile"
4066 case "(($ac_try" in
4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068 *) ac_try_echo=$ac_try;;
4069 esac
4070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4071 printf "%s\n" "$ac_try_echo"; } >&5
4072 (eval "$ac_compile") 2>&5
4073 ac_status=$?
4074 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4075 test $ac_status = 0; }
4076 then :
4077 for ac_file in conftest.o conftest.obj conftest.*; do
4078 test -f "$ac_file" || continue;
4079 case $ac_file in
4080 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4081 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4082 break;;
4083 esac
4084 done
4085 else $as_nop
4086 printf "%s\n" "$as_me: failed program was:" >&5
4087 sed 's/^/| /' conftest.$ac_ext >&5
4088
4089 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4090 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4091 as_fn_error $? "cannot compute suffix of object files: cannot compile
4092 See \`config.log' for more details" "$LINENO" 5; }
4093 fi
4094 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4095 fi
4096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4097 printf "%s\n" "$ac_cv_objext" >&6; }
4098 OBJEXT=$ac_cv_objext
4099 ac_objext=$OBJEXT
4100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4101 printf %s "checking whether the compiler supports GNU C... " >&6; }
4102 if test ${ac_cv_c_compiler_gnu+y}
4103 then :
4104 printf %s "(cached) " >&6
4105 else $as_nop
4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h. */
4108
4109 int
4110 main (void)
4111 {
4112 #ifndef __GNUC__
4113 choke me
4114 #endif
4115
4116 ;
4117 return 0;
4118 }
4119 _ACEOF
4120 if ac_fn_c_try_compile "$LINENO"
4121 then :
4122 ac_compiler_gnu=yes
4123 else $as_nop
4124 ac_compiler_gnu=no
4125 fi
4126 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4127 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4128
4129 fi
4130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4131 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4133
4134 if test $ac_compiler_gnu = yes; then
4135 GCC=yes
4136 else
4137 GCC=
4138 fi
4139 ac_test_CFLAGS=${CFLAGS+y}
4140 ac_save_CFLAGS=$CFLAGS
4141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4142 printf %s "checking whether $CC accepts -g... " >&6; }
4143 if test ${ac_cv_prog_cc_g+y}
4144 then :
4145 printf %s "(cached) " >&6
4146 else $as_nop
4147 ac_save_c_werror_flag=$ac_c_werror_flag
4148 ac_c_werror_flag=yes
4149 ac_cv_prog_cc_g=no
4150 CFLAGS="-g"
4151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152 /* end confdefs.h. */
4153
4154 int
4155 main (void)
4156 {
4157
4158 ;
4159 return 0;
4160 }
4161 _ACEOF
4162 if ac_fn_c_try_compile "$LINENO"
4163 then :
4164 ac_cv_prog_cc_g=yes
4165 else $as_nop
4166 CFLAGS=""
4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4169
4170 int
4171 main (void)
4172 {
4173
4174 ;
4175 return 0;
4176 }
4177 _ACEOF
4178 if ac_fn_c_try_compile "$LINENO"
4179 then :
4180
4181 else $as_nop
4182 ac_c_werror_flag=$ac_save_c_werror_flag
4183 CFLAGS="-g"
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4186
4187 int
4188 main (void)
4189 {
4190
4191 ;
4192 return 0;
4193 }
4194 _ACEOF
4195 if ac_fn_c_try_compile "$LINENO"
4196 then :
4197 ac_cv_prog_cc_g=yes
4198 fi
4199 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4200 fi
4201 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4202 fi
4203 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4204 ac_c_werror_flag=$ac_save_c_werror_flag
4205 fi
4206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4207 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4208 if test $ac_test_CFLAGS; then
4209 CFLAGS=$ac_save_CFLAGS
4210 elif test $ac_cv_prog_cc_g = yes; then
4211 if test "$GCC" = yes; then
4212 CFLAGS="-g -O2"
4213 else
4214 CFLAGS="-g"
4215 fi
4216 else
4217 if test "$GCC" = yes; then
4218 CFLAGS="-O2"
4219 else
4220 CFLAGS=
4221 fi
4222 fi
4223 ac_prog_cc_stdc=no
4224 if test x$ac_prog_cc_stdc = xno
4225 then :
4226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4227 printf %s "checking for $CC option to enable C11 features... " >&6; }
4228 if test ${ac_cv_prog_cc_c11+y}
4229 then :
4230 printf %s "(cached) " >&6
4231 else $as_nop
4232 ac_cv_prog_cc_c11=no
4233 ac_save_CC=$CC
4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235 /* end confdefs.h. */
4236 $ac_c_conftest_c11_program
4237 _ACEOF
4238 for ac_arg in '' -std=gnu11
4239 do
4240 CC="$ac_save_CC $ac_arg"
4241 if ac_fn_c_try_compile "$LINENO"
4242 then :
4243 ac_cv_prog_cc_c11=$ac_arg
4244 fi
4245 rm -f core conftest.err conftest.$ac_objext conftest.beam
4246 test "x$ac_cv_prog_cc_c11" != "xno" && break
4247 done
4248 rm -f conftest.$ac_ext
4249 CC=$ac_save_CC
4250 fi
4251
4252 if test "x$ac_cv_prog_cc_c11" = xno
4253 then :
4254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4255 printf "%s\n" "unsupported" >&6; }
4256 else $as_nop
4257 if test "x$ac_cv_prog_cc_c11" = x
4258 then :
4259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4260 printf "%s\n" "none needed" >&6; }
4261 else $as_nop
4262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4263 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4264 CC="$CC $ac_cv_prog_cc_c11"
4265 fi
4266 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4267 ac_prog_cc_stdc=c11
4268 fi
4269 fi
4270 if test x$ac_prog_cc_stdc = xno
4271 then :
4272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4273 printf %s "checking for $CC option to enable C99 features... " >&6; }
4274 if test ${ac_cv_prog_cc_c99+y}
4275 then :
4276 printf %s "(cached) " >&6
4277 else $as_nop
4278 ac_cv_prog_cc_c99=no
4279 ac_save_CC=$CC
4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h. */
4282 $ac_c_conftest_c99_program
4283 _ACEOF
4284 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4285 do
4286 CC="$ac_save_CC $ac_arg"
4287 if ac_fn_c_try_compile "$LINENO"
4288 then :
4289 ac_cv_prog_cc_c99=$ac_arg
4290 fi
4291 rm -f core conftest.err conftest.$ac_objext conftest.beam
4292 test "x$ac_cv_prog_cc_c99" != "xno" && break
4293 done
4294 rm -f conftest.$ac_ext
4295 CC=$ac_save_CC
4296 fi
4297
4298 if test "x$ac_cv_prog_cc_c99" = xno
4299 then :
4300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4301 printf "%s\n" "unsupported" >&6; }
4302 else $as_nop
4303 if test "x$ac_cv_prog_cc_c99" = x
4304 then :
4305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4306 printf "%s\n" "none needed" >&6; }
4307 else $as_nop
4308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4309 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4310 CC="$CC $ac_cv_prog_cc_c99"
4311 fi
4312 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4313 ac_prog_cc_stdc=c99
4314 fi
4315 fi
4316 if test x$ac_prog_cc_stdc = xno
4317 then :
4318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4319 printf %s "checking for $CC option to enable C89 features... " >&6; }
4320 if test ${ac_cv_prog_cc_c89+y}
4321 then :
4322 printf %s "(cached) " >&6
4323 else $as_nop
4324 ac_cv_prog_cc_c89=no
4325 ac_save_CC=$CC
4326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327 /* end confdefs.h. */
4328 $ac_c_conftest_c89_program
4329 _ACEOF
4330 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4331 do
4332 CC="$ac_save_CC $ac_arg"
4333 if ac_fn_c_try_compile "$LINENO"
4334 then :
4335 ac_cv_prog_cc_c89=$ac_arg
4336 fi
4337 rm -f core conftest.err conftest.$ac_objext conftest.beam
4338 test "x$ac_cv_prog_cc_c89" != "xno" && break
4339 done
4340 rm -f conftest.$ac_ext
4341 CC=$ac_save_CC
4342 fi
4343
4344 if test "x$ac_cv_prog_cc_c89" = xno
4345 then :
4346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4347 printf "%s\n" "unsupported" >&6; }
4348 else $as_nop
4349 if test "x$ac_cv_prog_cc_c89" = x
4350 then :
4351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4352 printf "%s\n" "none needed" >&6; }
4353 else $as_nop
4354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4355 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4356 CC="$CC $ac_cv_prog_cc_c89"
4357 fi
4358 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4359 ac_prog_cc_stdc=c89
4360 fi
4361 fi
4362
4363 ac_ext=c
4364 ac_cpp='$CPP $CPPFLAGS'
4365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4368
4369
4370 ac_ext=c
4371 ac_cpp='$CPP $CPPFLAGS'
4372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4376 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4377 if test ${am_cv_prog_cc_c_o+y}
4378 then :
4379 printf %s "(cached) " >&6
4380 else $as_nop
4381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382 /* end confdefs.h. */
4383
4384 int
4385 main (void)
4386 {
4387
4388 ;
4389 return 0;
4390 }
4391 _ACEOF
4392 # Make sure it works both with $CC and with simple cc.
4393 # Following AC_PROG_CC_C_O, we do the test twice because some
4394 # compilers refuse to overwrite an existing .o file with -o,
4395 # though they will create one.
4396 am_cv_prog_cc_c_o=yes
4397 for am_i in 1 2; do
4398 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4399 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4400 ac_status=$?
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); } \
4403 && test -f conftest2.$ac_objext; then
4404 : OK
4405 else
4406 am_cv_prog_cc_c_o=no
4407 break
4408 fi
4409 done
4410 rm -f core conftest*
4411 unset am_i
4412 fi
4413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4414 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4415 if test "$am_cv_prog_cc_c_o" != yes; then
4416 # Losing compiler, so override with the script.
4417 # FIXME: It is wrong to rewrite CC.
4418 # But if we don't then we get into trouble of one sort or another.
4419 # A longer-term fix would be to have automake use am__CC in this case,
4420 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4421 CC="$am_aux_dir/compile $CC"
4422 fi
4423 ac_ext=c
4424 ac_cpp='$CPP $CPPFLAGS'
4425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4428
4429
4430 depcc="$CC" am_compiler_list=
4431
4432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4433 printf %s "checking dependency style of $depcc... " >&6; }
4434 if test ${am_cv_CC_dependencies_compiler_type+y}
4435 then :
4436 printf %s "(cached) " >&6
4437 else $as_nop
4438 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4439 # We make a subdir and do the tests there. Otherwise we can end up
4440 # making bogus files that we don't know about and never remove. For
4441 # instance it was reported that on HP-UX the gcc test will end up
4442 # making a dummy file named 'D' -- because '-MD' means "put the output
4443 # in D".
4444 rm -rf conftest.dir
4445 mkdir conftest.dir
4446 # Copy depcomp to subdir because otherwise we won't find it if we're
4447 # using a relative directory.
4448 cp "$am_depcomp" conftest.dir
4449 cd conftest.dir
4450 # We will build objects and dependencies in a subdirectory because
4451 # it helps to detect inapplicable dependency modes. For instance
4452 # both Tru64's cc and ICC support -MD to output dependencies as a
4453 # side effect of compilation, but ICC will put the dependencies in
4454 # the current directory while Tru64 will put them in the object
4455 # directory.
4456 mkdir sub
4457
4458 am_cv_CC_dependencies_compiler_type=none
4459 if test "$am_compiler_list" = ""; then
4460 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4461 fi
4462 am__universal=false
4463 case " $depcc " in #(
4464 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4465 esac
4466
4467 for depmode in $am_compiler_list; do
4468 # Setup a source with many dependencies, because some compilers
4469 # like to wrap large dependency lists on column 80 (with \), and
4470 # we should not choose a depcomp mode which is confused by this.
4471 #
4472 # We need to recreate these files for each test, as the compiler may
4473 # overwrite some of them when testing with obscure command lines.
4474 # This happens at least with the AIX C compiler.
4475 : > sub/conftest.c
4476 for i in 1 2 3 4 5 6; do
4477 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4478 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4479 # Solaris 10 /bin/sh.
4480 echo '/* dummy */' > sub/conftst$i.h
4481 done
4482 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4483
4484 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4485 # mode. It turns out that the SunPro C++ compiler does not properly
4486 # handle '-M -o', and we need to detect this. Also, some Intel
4487 # versions had trouble with output in subdirs.
4488 am__obj=sub/conftest.${OBJEXT-o}
4489 am__minus_obj="-o $am__obj"
4490 case $depmode in
4491 gcc)
4492 # This depmode causes a compiler race in universal mode.
4493 test "$am__universal" = false || continue
4494 ;;
4495 nosideeffect)
4496 # After this tag, mechanisms are not by side-effect, so they'll
4497 # only be used when explicitly requested.
4498 if test "x$enable_dependency_tracking" = xyes; then
4499 continue
4500 else
4501 break
4502 fi
4503 ;;
4504 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4505 # This compiler won't grok '-c -o', but also, the minuso test has
4506 # not run yet. These depmodes are late enough in the game, and
4507 # so weak that their functioning should not be impacted.
4508 am__obj=conftest.${OBJEXT-o}
4509 am__minus_obj=
4510 ;;
4511 none) break ;;
4512 esac
4513 if depmode=$depmode \
4514 source=sub/conftest.c object=$am__obj \
4515 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4516 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4517 >/dev/null 2>conftest.err &&
4518 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4519 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4520 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4521 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4522 # icc doesn't choke on unknown options, it will just issue warnings
4523 # or remarks (even with -Werror). So we grep stderr for any message
4524 # that says an option was ignored or not supported.
4525 # When given -MP, icc 7.0 and 7.1 complain thusly:
4526 # icc: Command line warning: ignoring option '-M'; no argument required
4527 # The diagnosis changed in icc 8.0:
4528 # icc: Command line remark: option '-MP' not supported
4529 if (grep 'ignoring option' conftest.err ||
4530 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4531 am_cv_CC_dependencies_compiler_type=$depmode
4532 break
4533 fi
4534 fi
4535 done
4536
4537 cd ..
4538 rm -rf conftest.dir
4539 else
4540 am_cv_CC_dependencies_compiler_type=none
4541 fi
4542
4543 fi
4544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4545 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4546 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4547
4548 if
4549 test "x$enable_dependency_tracking" != xno \
4550 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4551 am__fastdepCC_TRUE=
4552 am__fastdepCC_FALSE='#'
4553 else
4554 am__fastdepCC_TRUE='#'
4555 am__fastdepCC_FALSE=
4556 fi
4557
4558
4559
4560 ac_header= ac_cache=
4561 for ac_item in $ac_header_c_list
4562 do
4563 if test $ac_cache; then
4564 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4565 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4566 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4567 fi
4568 ac_header= ac_cache=
4569 elif test $ac_header; then
4570 ac_cache=$ac_item
4571 else
4572 ac_header=$ac_item
4573 fi
4574 done
4575
4576
4577
4578
4579
4580
4581
4582
4583 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4584 then :
4585
4586 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4587
4588 fi
4589
4590
4591
4592
4593
4594
4595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4596 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4597 if test ${ac_cv_safe_to_define___extensions__+y}
4598 then :
4599 printf %s "(cached) " >&6
4600 else $as_nop
4601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602 /* end confdefs.h. */
4603
4604 # define __EXTENSIONS__ 1
4605 $ac_includes_default
4606 int
4607 main (void)
4608 {
4609
4610 ;
4611 return 0;
4612 }
4613 _ACEOF
4614 if ac_fn_c_try_compile "$LINENO"
4615 then :
4616 ac_cv_safe_to_define___extensions__=yes
4617 else $as_nop
4618 ac_cv_safe_to_define___extensions__=no
4619 fi
4620 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4621 fi
4622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4623 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4624
4625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4626 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4627 if test ${ac_cv_should_define__xopen_source+y}
4628 then :
4629 printf %s "(cached) " >&6
4630 else $as_nop
4631 ac_cv_should_define__xopen_source=no
4632 if test $ac_cv_header_wchar_h = yes
4633 then :
4634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4635 /* end confdefs.h. */
4636
4637 #include <wchar.h>
4638 mbstate_t x;
4639 int
4640 main (void)
4641 {
4642
4643 ;
4644 return 0;
4645 }
4646 _ACEOF
4647 if ac_fn_c_try_compile "$LINENO"
4648 then :
4649
4650 else $as_nop
4651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4652 /* end confdefs.h. */
4653
4654 #define _XOPEN_SOURCE 500
4655 #include <wchar.h>
4656 mbstate_t x;
4657 int
4658 main (void)
4659 {
4660
4661 ;
4662 return 0;
4663 }
4664 _ACEOF
4665 if ac_fn_c_try_compile "$LINENO"
4666 then :
4667 ac_cv_should_define__xopen_source=yes
4668 fi
4669 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4670 fi
4671 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4672 fi
4673 fi
4674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4675 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4676
4677 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4678
4679 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4680
4681 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4682
4683 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4684
4685 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4686
4687 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4688
4689 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4690
4691 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4692
4693 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4694
4695 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4696
4697 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4698
4699 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4700
4701 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4702
4703 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4704
4705 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4706
4707 if test $ac_cv_header_minix_config_h = yes
4708 then :
4709 MINIX=yes
4710 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4711
4712 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4713
4714 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4715
4716 else $as_nop
4717 MINIX=
4718 fi
4719 if test $ac_cv_safe_to_define___extensions__ = yes
4720 then :
4721 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4722
4723 fi
4724 if test $ac_cv_should_define__xopen_source = yes
4725 then :
4726 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4727
4728 fi
4729
4730
4731 # Checks for programs.
4732 ac_ext=c
4733 ac_cpp='$CPP $CPPFLAGS'
4734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4737 if test -n "$ac_tool_prefix"; then
4738 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4739 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4741 printf %s "checking for $ac_word... " >&6; }
4742 if test ${ac_cv_prog_CC+y}
4743 then :
4744 printf %s "(cached) " >&6
4745 else $as_nop
4746 if test -n "$CC"; then
4747 ac_cv_prog_CC="$CC" # Let the user override the test.
4748 else
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4751 do
4752 IFS=$as_save_IFS
4753 case $as_dir in #(((
4754 '') as_dir=./ ;;
4755 */) ;;
4756 *) as_dir=$as_dir/ ;;
4757 esac
4758 for ac_exec_ext in '' $ac_executable_extensions; do
4759 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4760 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4761 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4762 break 2
4763 fi
4764 done
4765 done
4766 IFS=$as_save_IFS
4767
4768 fi
4769 fi
4770 CC=$ac_cv_prog_CC
4771 if test -n "$CC"; then
4772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4773 printf "%s\n" "$CC" >&6; }
4774 else
4775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4776 printf "%s\n" "no" >&6; }
4777 fi
4778
4779
4780 fi
4781 if test -z "$ac_cv_prog_CC"; then
4782 ac_ct_CC=$CC
4783 # Extract the first word of "gcc", so it can be a program name with args.
4784 set dummy gcc; ac_word=$2
4785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4786 printf %s "checking for $ac_word... " >&6; }
4787 if test ${ac_cv_prog_ac_ct_CC+y}
4788 then :
4789 printf %s "(cached) " >&6
4790 else $as_nop
4791 if test -n "$ac_ct_CC"; then
4792 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4793 else
4794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795 for as_dir in $PATH
4796 do
4797 IFS=$as_save_IFS
4798 case $as_dir in #(((
4799 '') as_dir=./ ;;
4800 */) ;;
4801 *) as_dir=$as_dir/ ;;
4802 esac
4803 for ac_exec_ext in '' $ac_executable_extensions; do
4804 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4805 ac_cv_prog_ac_ct_CC="gcc"
4806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4807 break 2
4808 fi
4809 done
4810 done
4811 IFS=$as_save_IFS
4812
4813 fi
4814 fi
4815 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4816 if test -n "$ac_ct_CC"; then
4817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4818 printf "%s\n" "$ac_ct_CC" >&6; }
4819 else
4820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4821 printf "%s\n" "no" >&6; }
4822 fi
4823
4824 if test "x$ac_ct_CC" = x; then
4825 CC=""
4826 else
4827 case $cross_compiling:$ac_tool_warned in
4828 yes:)
4829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4830 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4831 ac_tool_warned=yes ;;
4832 esac
4833 CC=$ac_ct_CC
4834 fi
4835 else
4836 CC="$ac_cv_prog_CC"
4837 fi
4838
4839 if test -z "$CC"; then
4840 if test -n "$ac_tool_prefix"; then
4841 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4842 set dummy ${ac_tool_prefix}cc; ac_word=$2
4843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4844 printf %s "checking for $ac_word... " >&6; }
4845 if test ${ac_cv_prog_CC+y}
4846 then :
4847 printf %s "(cached) " >&6
4848 else $as_nop
4849 if test -n "$CC"; then
4850 ac_cv_prog_CC="$CC" # Let the user override the test.
4851 else
4852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 for as_dir in $PATH
4854 do
4855 IFS=$as_save_IFS
4856 case $as_dir in #(((
4857 '') as_dir=./ ;;
4858 */) ;;
4859 *) as_dir=$as_dir/ ;;
4860 esac
4861 for ac_exec_ext in '' $ac_executable_extensions; do
4862 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4863 ac_cv_prog_CC="${ac_tool_prefix}cc"
4864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4865 break 2
4866 fi
4867 done
4868 done
4869 IFS=$as_save_IFS
4870
4871 fi
4872 fi
4873 CC=$ac_cv_prog_CC
4874 if test -n "$CC"; then
4875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4876 printf "%s\n" "$CC" >&6; }
4877 else
4878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4879 printf "%s\n" "no" >&6; }
4880 fi
4881
4882
4883 fi
4884 fi
4885 if test -z "$CC"; then
4886 # Extract the first word of "cc", so it can be a program name with args.
4887 set dummy cc; ac_word=$2
4888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4889 printf %s "checking for $ac_word... " >&6; }
4890 if test ${ac_cv_prog_CC+y}
4891 then :
4892 printf %s "(cached) " >&6
4893 else $as_nop
4894 if test -n "$CC"; then
4895 ac_cv_prog_CC="$CC" # Let the user override the test.
4896 else
4897 ac_prog_rejected=no
4898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899 for as_dir in $PATH
4900 do
4901 IFS=$as_save_IFS
4902 case $as_dir in #(((
4903 '') as_dir=./ ;;
4904 */) ;;
4905 *) as_dir=$as_dir/ ;;
4906 esac
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4909 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4910 ac_prog_rejected=yes
4911 continue
4912 fi
4913 ac_cv_prog_CC="cc"
4914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4915 break 2
4916 fi
4917 done
4918 done
4919 IFS=$as_save_IFS
4920
4921 if test $ac_prog_rejected = yes; then
4922 # We found a bogon in the path, so make sure we never use it.
4923 set dummy $ac_cv_prog_CC
4924 shift
4925 if test $# != 0; then
4926 # We chose a different compiler from the bogus one.
4927 # However, it has the same basename, so the bogon will be chosen
4928 # first if we set CC to just the basename; use the full file name.
4929 shift
4930 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4931 fi
4932 fi
4933 fi
4934 fi
4935 CC=$ac_cv_prog_CC
4936 if test -n "$CC"; then
4937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4938 printf "%s\n" "$CC" >&6; }
4939 else
4940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4941 printf "%s\n" "no" >&6; }
4942 fi
4943
4944
4945 fi
4946 if test -z "$CC"; then
4947 if test -n "$ac_tool_prefix"; then
4948 for ac_prog in cl.exe
4949 do
4950 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4951 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953 printf %s "checking for $ac_word... " >&6; }
4954 if test ${ac_cv_prog_CC+y}
4955 then :
4956 printf %s "(cached) " >&6
4957 else $as_nop
4958 if test -n "$CC"; then
4959 ac_cv_prog_CC="$CC" # Let the user override the test.
4960 else
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962 for as_dir in $PATH
4963 do
4964 IFS=$as_save_IFS
4965 case $as_dir in #(((
4966 '') as_dir=./ ;;
4967 */) ;;
4968 *) as_dir=$as_dir/ ;;
4969 esac
4970 for ac_exec_ext in '' $ac_executable_extensions; do
4971 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4972 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4973 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4974 break 2
4975 fi
4976 done
4977 done
4978 IFS=$as_save_IFS
4979
4980 fi
4981 fi
4982 CC=$ac_cv_prog_CC
4983 if test -n "$CC"; then
4984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4985 printf "%s\n" "$CC" >&6; }
4986 else
4987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4988 printf "%s\n" "no" >&6; }
4989 fi
4990
4991
4992 test -n "$CC" && break
4993 done
4994 fi
4995 if test -z "$CC"; then
4996 ac_ct_CC=$CC
4997 for ac_prog in cl.exe
4998 do
4999 # Extract the first word of "$ac_prog", so it can be a program name with args.
5000 set dummy $ac_prog; ac_word=$2
5001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5002 printf %s "checking for $ac_word... " >&6; }
5003 if test ${ac_cv_prog_ac_ct_CC+y}
5004 then :
5005 printf %s "(cached) " >&6
5006 else $as_nop
5007 if test -n "$ac_ct_CC"; then
5008 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5009 else
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 for as_dir in $PATH
5012 do
5013 IFS=$as_save_IFS
5014 case $as_dir in #(((
5015 '') as_dir=./ ;;
5016 */) ;;
5017 *) as_dir=$as_dir/ ;;
5018 esac
5019 for ac_exec_ext in '' $ac_executable_extensions; do
5020 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5021 ac_cv_prog_ac_ct_CC="$ac_prog"
5022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5023 break 2
5024 fi
5025 done
5026 done
5027 IFS=$as_save_IFS
5028
5029 fi
5030 fi
5031 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5032 if test -n "$ac_ct_CC"; then
5033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5034 printf "%s\n" "$ac_ct_CC" >&6; }
5035 else
5036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037 printf "%s\n" "no" >&6; }
5038 fi
5039
5040
5041 test -n "$ac_ct_CC" && break
5042 done
5043
5044 if test "x$ac_ct_CC" = x; then
5045 CC=""
5046 else
5047 case $cross_compiling:$ac_tool_warned in
5048 yes:)
5049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5050 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5051 ac_tool_warned=yes ;;
5052 esac
5053 CC=$ac_ct_CC
5054 fi
5055 fi
5056
5057 fi
5058 if test -z "$CC"; then
5059 if test -n "$ac_tool_prefix"; then
5060 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5061 set dummy ${ac_tool_prefix}clang; ac_word=$2
5062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5063 printf %s "checking for $ac_word... " >&6; }
5064 if test ${ac_cv_prog_CC+y}
5065 then :
5066 printf %s "(cached) " >&6
5067 else $as_nop
5068 if test -n "$CC"; then
5069 ac_cv_prog_CC="$CC" # Let the user override the test.
5070 else
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in $PATH
5073 do
5074 IFS=$as_save_IFS
5075 case $as_dir in #(((
5076 '') as_dir=./ ;;
5077 */) ;;
5078 *) as_dir=$as_dir/ ;;
5079 esac
5080 for ac_exec_ext in '' $ac_executable_extensions; do
5081 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5082 ac_cv_prog_CC="${ac_tool_prefix}clang"
5083 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5084 break 2
5085 fi
5086 done
5087 done
5088 IFS=$as_save_IFS
5089
5090 fi
5091 fi
5092 CC=$ac_cv_prog_CC
5093 if test -n "$CC"; then
5094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5095 printf "%s\n" "$CC" >&6; }
5096 else
5097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5098 printf "%s\n" "no" >&6; }
5099 fi
5100
5101
5102 fi
5103 if test -z "$ac_cv_prog_CC"; then
5104 ac_ct_CC=$CC
5105 # Extract the first word of "clang", so it can be a program name with args.
5106 set dummy clang; ac_word=$2
5107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5108 printf %s "checking for $ac_word... " >&6; }
5109 if test ${ac_cv_prog_ac_ct_CC+y}
5110 then :
5111 printf %s "(cached) " >&6
5112 else $as_nop
5113 if test -n "$ac_ct_CC"; then
5114 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5115 else
5116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 for as_dir in $PATH
5118 do
5119 IFS=$as_save_IFS
5120 case $as_dir in #(((
5121 '') as_dir=./ ;;
5122 */) ;;
5123 *) as_dir=$as_dir/ ;;
5124 esac
5125 for ac_exec_ext in '' $ac_executable_extensions; do
5126 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5127 ac_cv_prog_ac_ct_CC="clang"
5128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5129 break 2
5130 fi
5131 done
5132 done
5133 IFS=$as_save_IFS
5134
5135 fi
5136 fi
5137 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5138 if test -n "$ac_ct_CC"; then
5139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5140 printf "%s\n" "$ac_ct_CC" >&6; }
5141 else
5142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5143 printf "%s\n" "no" >&6; }
5144 fi
5145
5146 if test "x$ac_ct_CC" = x; then
5147 CC=""
5148 else
5149 case $cross_compiling:$ac_tool_warned in
5150 yes:)
5151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5152 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5153 ac_tool_warned=yes ;;
5154 esac
5155 CC=$ac_ct_CC
5156 fi
5157 else
5158 CC="$ac_cv_prog_CC"
5159 fi
5160
5161 fi
5162
5163
5164 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5165 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5166 as_fn_error $? "no acceptable C compiler found in \$PATH
5167 See \`config.log' for more details" "$LINENO" 5; }
5168
5169 # Provide some information about the compiler.
5170 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5171 set X $ac_compile
5172 ac_compiler=$2
5173 for ac_option in --version -v -V -qversion -version; do
5174 { { ac_try="$ac_compiler $ac_option >&5"
5175 case "(($ac_try" in
5176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5177 *) ac_try_echo=$ac_try;;
5178 esac
5179 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5180 printf "%s\n" "$ac_try_echo"; } >&5
5181 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5182 ac_status=$?
5183 if test -s conftest.err; then
5184 sed '10a\
5185 ... rest of stderr output deleted ...
5186 10q' conftest.err >conftest.er1
5187 cat conftest.er1 >&5
5188 fi
5189 rm -f conftest.er1 conftest.err
5190 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5191 test $ac_status = 0; }
5192 done
5193
5194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5195 printf %s "checking whether the compiler supports GNU C... " >&6; }
5196 if test ${ac_cv_c_compiler_gnu+y}
5197 then :
5198 printf %s "(cached) " >&6
5199 else $as_nop
5200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5201 /* end confdefs.h. */
5202
5203 int
5204 main (void)
5205 {
5206 #ifndef __GNUC__
5207 choke me
5208 #endif
5209
5210 ;
5211 return 0;
5212 }
5213 _ACEOF
5214 if ac_fn_c_try_compile "$LINENO"
5215 then :
5216 ac_compiler_gnu=yes
5217 else $as_nop
5218 ac_compiler_gnu=no
5219 fi
5220 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5221 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5222
5223 fi
5224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5225 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5227
5228 if test $ac_compiler_gnu = yes; then
5229 GCC=yes
5230 else
5231 GCC=
5232 fi
5233 ac_test_CFLAGS=${CFLAGS+y}
5234 ac_save_CFLAGS=$CFLAGS
5235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5236 printf %s "checking whether $CC accepts -g... " >&6; }
5237 if test ${ac_cv_prog_cc_g+y}
5238 then :
5239 printf %s "(cached) " >&6
5240 else $as_nop
5241 ac_save_c_werror_flag=$ac_c_werror_flag
5242 ac_c_werror_flag=yes
5243 ac_cv_prog_cc_g=no
5244 CFLAGS="-g"
5245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5246 /* end confdefs.h. */
5247
5248 int
5249 main (void)
5250 {
5251
5252 ;
5253 return 0;
5254 }
5255 _ACEOF
5256 if ac_fn_c_try_compile "$LINENO"
5257 then :
5258 ac_cv_prog_cc_g=yes
5259 else $as_nop
5260 CFLAGS=""
5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262 /* end confdefs.h. */
5263
5264 int
5265 main (void)
5266 {
5267
5268 ;
5269 return 0;
5270 }
5271 _ACEOF
5272 if ac_fn_c_try_compile "$LINENO"
5273 then :
5274
5275 else $as_nop
5276 ac_c_werror_flag=$ac_save_c_werror_flag
5277 CFLAGS="-g"
5278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279 /* end confdefs.h. */
5280
5281 int
5282 main (void)
5283 {
5284
5285 ;
5286 return 0;
5287 }
5288 _ACEOF
5289 if ac_fn_c_try_compile "$LINENO"
5290 then :
5291 ac_cv_prog_cc_g=yes
5292 fi
5293 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5294 fi
5295 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5296 fi
5297 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5298 ac_c_werror_flag=$ac_save_c_werror_flag
5299 fi
5300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5301 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5302 if test $ac_test_CFLAGS; then
5303 CFLAGS=$ac_save_CFLAGS
5304 elif test $ac_cv_prog_cc_g = yes; then
5305 if test "$GCC" = yes; then
5306 CFLAGS="-g -O2"
5307 else
5308 CFLAGS="-g"
5309 fi
5310 else
5311 if test "$GCC" = yes; then
5312 CFLAGS="-O2"
5313 else
5314 CFLAGS=
5315 fi
5316 fi
5317 ac_prog_cc_stdc=no
5318 if test x$ac_prog_cc_stdc = xno
5319 then :
5320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5321 printf %s "checking for $CC option to enable C11 features... " >&6; }
5322 if test ${ac_cv_prog_cc_c11+y}
5323 then :
5324 printf %s "(cached) " >&6
5325 else $as_nop
5326 ac_cv_prog_cc_c11=no
5327 ac_save_CC=$CC
5328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5329 /* end confdefs.h. */
5330 $ac_c_conftest_c11_program
5331 _ACEOF
5332 for ac_arg in '' -std=gnu11
5333 do
5334 CC="$ac_save_CC $ac_arg"
5335 if ac_fn_c_try_compile "$LINENO"
5336 then :
5337 ac_cv_prog_cc_c11=$ac_arg
5338 fi
5339 rm -f core conftest.err conftest.$ac_objext conftest.beam
5340 test "x$ac_cv_prog_cc_c11" != "xno" && break
5341 done
5342 rm -f conftest.$ac_ext
5343 CC=$ac_save_CC
5344 fi
5345
5346 if test "x$ac_cv_prog_cc_c11" = xno
5347 then :
5348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5349 printf "%s\n" "unsupported" >&6; }
5350 else $as_nop
5351 if test "x$ac_cv_prog_cc_c11" = x
5352 then :
5353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5354 printf "%s\n" "none needed" >&6; }
5355 else $as_nop
5356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5357 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5358 CC="$CC $ac_cv_prog_cc_c11"
5359 fi
5360 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5361 ac_prog_cc_stdc=c11
5362 fi
5363 fi
5364 if test x$ac_prog_cc_stdc = xno
5365 then :
5366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5367 printf %s "checking for $CC option to enable C99 features... " >&6; }
5368 if test ${ac_cv_prog_cc_c99+y}
5369 then :
5370 printf %s "(cached) " >&6
5371 else $as_nop
5372 ac_cv_prog_cc_c99=no
5373 ac_save_CC=$CC
5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5375 /* end confdefs.h. */
5376 $ac_c_conftest_c99_program
5377 _ACEOF
5378 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5379 do
5380 CC="$ac_save_CC $ac_arg"
5381 if ac_fn_c_try_compile "$LINENO"
5382 then :
5383 ac_cv_prog_cc_c99=$ac_arg
5384 fi
5385 rm -f core conftest.err conftest.$ac_objext conftest.beam
5386 test "x$ac_cv_prog_cc_c99" != "xno" && break
5387 done
5388 rm -f conftest.$ac_ext
5389 CC=$ac_save_CC
5390 fi
5391
5392 if test "x$ac_cv_prog_cc_c99" = xno
5393 then :
5394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5395 printf "%s\n" "unsupported" >&6; }
5396 else $as_nop
5397 if test "x$ac_cv_prog_cc_c99" = x
5398 then :
5399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5400 printf "%s\n" "none needed" >&6; }
5401 else $as_nop
5402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5403 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5404 CC="$CC $ac_cv_prog_cc_c99"
5405 fi
5406 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5407 ac_prog_cc_stdc=c99
5408 fi
5409 fi
5410 if test x$ac_prog_cc_stdc = xno
5411 then :
5412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5413 printf %s "checking for $CC option to enable C89 features... " >&6; }
5414 if test ${ac_cv_prog_cc_c89+y}
5415 then :
5416 printf %s "(cached) " >&6
5417 else $as_nop
5418 ac_cv_prog_cc_c89=no
5419 ac_save_CC=$CC
5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421 /* end confdefs.h. */
5422 $ac_c_conftest_c89_program
5423 _ACEOF
5424 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5425 do
5426 CC="$ac_save_CC $ac_arg"
5427 if ac_fn_c_try_compile "$LINENO"
5428 then :
5429 ac_cv_prog_cc_c89=$ac_arg
5430 fi
5431 rm -f core conftest.err conftest.$ac_objext conftest.beam
5432 test "x$ac_cv_prog_cc_c89" != "xno" && break
5433 done
5434 rm -f conftest.$ac_ext
5435 CC=$ac_save_CC
5436 fi
5437
5438 if test "x$ac_cv_prog_cc_c89" = xno
5439 then :
5440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5441 printf "%s\n" "unsupported" >&6; }
5442 else $as_nop
5443 if test "x$ac_cv_prog_cc_c89" = x
5444 then :
5445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5446 printf "%s\n" "none needed" >&6; }
5447 else $as_nop
5448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5449 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5450 CC="$CC $ac_cv_prog_cc_c89"
5451 fi
5452 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5453 ac_prog_cc_stdc=c89
5454 fi
5455 fi
5456
5457 ac_ext=c
5458 ac_cpp='$CPP $CPPFLAGS'
5459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5462
5463
5464 ac_ext=c
5465 ac_cpp='$CPP $CPPFLAGS'
5466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5470 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5471 if test ${am_cv_prog_cc_c_o+y}
5472 then :
5473 printf %s "(cached) " >&6
5474 else $as_nop
5475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5476 /* end confdefs.h. */
5477
5478 int
5479 main (void)
5480 {
5481
5482 ;
5483 return 0;
5484 }
5485 _ACEOF
5486 # Make sure it works both with $CC and with simple cc.
5487 # Following AC_PROG_CC_C_O, we do the test twice because some
5488 # compilers refuse to overwrite an existing .o file with -o,
5489 # though they will create one.
5490 am_cv_prog_cc_c_o=yes
5491 for am_i in 1 2; do
5492 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5493 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5494 ac_status=$?
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); } \
5497 && test -f conftest2.$ac_objext; then
5498 : OK
5499 else
5500 am_cv_prog_cc_c_o=no
5501 break
5502 fi
5503 done
5504 rm -f core conftest*
5505 unset am_i
5506 fi
5507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5508 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5509 if test "$am_cv_prog_cc_c_o" != yes; then
5510 # Losing compiler, so override with the script.
5511 # FIXME: It is wrong to rewrite CC.
5512 # But if we don't then we get into trouble of one sort or another.
5513 # A longer-term fix would be to have automake use am__CC in this case,
5514 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5515 CC="$am_aux_dir/compile $CC"
5516 fi
5517 ac_ext=c
5518 ac_cpp='$CPP $CPPFLAGS'
5519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5522
5523
5524 depcc="$CC" am_compiler_list=
5525
5526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5527 printf %s "checking dependency style of $depcc... " >&6; }
5528 if test ${am_cv_CC_dependencies_compiler_type+y}
5529 then :
5530 printf %s "(cached) " >&6
5531 else $as_nop
5532 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5533 # We make a subdir and do the tests there. Otherwise we can end up
5534 # making bogus files that we don't know about and never remove. For
5535 # instance it was reported that on HP-UX the gcc test will end up
5536 # making a dummy file named 'D' -- because '-MD' means "put the output
5537 # in D".
5538 rm -rf conftest.dir
5539 mkdir conftest.dir
5540 # Copy depcomp to subdir because otherwise we won't find it if we're
5541 # using a relative directory.
5542 cp "$am_depcomp" conftest.dir
5543 cd conftest.dir
5544 # We will build objects and dependencies in a subdirectory because
5545 # it helps to detect inapplicable dependency modes. For instance
5546 # both Tru64's cc and ICC support -MD to output dependencies as a
5547 # side effect of compilation, but ICC will put the dependencies in
5548 # the current directory while Tru64 will put them in the object
5549 # directory.
5550 mkdir sub
5551
5552 am_cv_CC_dependencies_compiler_type=none
5553 if test "$am_compiler_list" = ""; then
5554 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5555 fi
5556 am__universal=false
5557 case " $depcc " in #(
5558 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5559 esac
5560
5561 for depmode in $am_compiler_list; do
5562 # Setup a source with many dependencies, because some compilers
5563 # like to wrap large dependency lists on column 80 (with \), and
5564 # we should not choose a depcomp mode which is confused by this.
5565 #
5566 # We need to recreate these files for each test, as the compiler may
5567 # overwrite some of them when testing with obscure command lines.
5568 # This happens at least with the AIX C compiler.
5569 : > sub/conftest.c
5570 for i in 1 2 3 4 5 6; do
5571 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5572 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5573 # Solaris 10 /bin/sh.
5574 echo '/* dummy */' > sub/conftst$i.h
5575 done
5576 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5577
5578 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5579 # mode. It turns out that the SunPro C++ compiler does not properly
5580 # handle '-M -o', and we need to detect this. Also, some Intel
5581 # versions had trouble with output in subdirs.
5582 am__obj=sub/conftest.${OBJEXT-o}
5583 am__minus_obj="-o $am__obj"
5584 case $depmode in
5585 gcc)
5586 # This depmode causes a compiler race in universal mode.
5587 test "$am__universal" = false || continue
5588 ;;
5589 nosideeffect)
5590 # After this tag, mechanisms are not by side-effect, so they'll
5591 # only be used when explicitly requested.
5592 if test "x$enable_dependency_tracking" = xyes; then
5593 continue
5594 else
5595 break
5596 fi
5597 ;;
5598 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5599 # This compiler won't grok '-c -o', but also, the minuso test has
5600 # not run yet. These depmodes are late enough in the game, and
5601 # so weak that their functioning should not be impacted.
5602 am__obj=conftest.${OBJEXT-o}
5603 am__minus_obj=
5604 ;;
5605 none) break ;;
5606 esac
5607 if depmode=$depmode \
5608 source=sub/conftest.c object=$am__obj \
5609 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5610 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5611 >/dev/null 2>conftest.err &&
5612 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5613 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5614 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5615 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5616 # icc doesn't choke on unknown options, it will just issue warnings
5617 # or remarks (even with -Werror). So we grep stderr for any message
5618 # that says an option was ignored or not supported.
5619 # When given -MP, icc 7.0 and 7.1 complain thusly:
5620 # icc: Command line warning: ignoring option '-M'; no argument required
5621 # The diagnosis changed in icc 8.0:
5622 # icc: Command line remark: option '-MP' not supported
5623 if (grep 'ignoring option' conftest.err ||
5624 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5625 am_cv_CC_dependencies_compiler_type=$depmode
5626 break
5627 fi
5628 fi
5629 done
5630
5631 cd ..
5632 rm -rf conftest.dir
5633 else
5634 am_cv_CC_dependencies_compiler_type=none
5635 fi
5636
5637 fi
5638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5639 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5640 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5641
5642 if
5643 test "x$enable_dependency_tracking" != xno \
5644 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5645 am__fastdepCC_TRUE=
5646 am__fastdepCC_FALSE='#'
5647 else
5648 am__fastdepCC_TRUE='#'
5649 am__fastdepCC_FALSE=
5650 fi
5651
5652
5653 if test -n "$ac_tool_prefix"; then
5654 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5655 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5657 printf %s "checking for $ac_word... " >&6; }
5658 if test ${ac_cv_prog_RANLIB+y}
5659 then :
5660 printf %s "(cached) " >&6
5661 else $as_nop
5662 if test -n "$RANLIB"; then
5663 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5664 else
5665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5666 for as_dir in $PATH
5667 do
5668 IFS=$as_save_IFS
5669 case $as_dir in #(((
5670 '') as_dir=./ ;;
5671 */) ;;
5672 *) as_dir=$as_dir/ ;;
5673 esac
5674 for ac_exec_ext in '' $ac_executable_extensions; do
5675 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5676 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5678 break 2
5679 fi
5680 done
5681 done
5682 IFS=$as_save_IFS
5683
5684 fi
5685 fi
5686 RANLIB=$ac_cv_prog_RANLIB
5687 if test -n "$RANLIB"; then
5688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5689 printf "%s\n" "$RANLIB" >&6; }
5690 else
5691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692 printf "%s\n" "no" >&6; }
5693 fi
5694
5695
5696 fi
5697 if test -z "$ac_cv_prog_RANLIB"; then
5698 ac_ct_RANLIB=$RANLIB
5699 # Extract the first word of "ranlib", so it can be a program name with args.
5700 set dummy ranlib; ac_word=$2
5701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5702 printf %s "checking for $ac_word... " >&6; }
5703 if test ${ac_cv_prog_ac_ct_RANLIB+y}
5704 then :
5705 printf %s "(cached) " >&6
5706 else $as_nop
5707 if test -n "$ac_ct_RANLIB"; then
5708 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5709 else
5710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711 for as_dir in $PATH
5712 do
5713 IFS=$as_save_IFS
5714 case $as_dir in #(((
5715 '') as_dir=./ ;;
5716 */) ;;
5717 *) as_dir=$as_dir/ ;;
5718 esac
5719 for ac_exec_ext in '' $ac_executable_extensions; do
5720 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5721 ac_cv_prog_ac_ct_RANLIB="ranlib"
5722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5723 break 2
5724 fi
5725 done
5726 done
5727 IFS=$as_save_IFS
5728
5729 fi
5730 fi
5731 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5732 if test -n "$ac_ct_RANLIB"; then
5733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5734 printf "%s\n" "$ac_ct_RANLIB" >&6; }
5735 else
5736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5737 printf "%s\n" "no" >&6; }
5738 fi
5739
5740 if test "x$ac_ct_RANLIB" = x; then
5741 RANLIB=":"
5742 else
5743 case $cross_compiling:$ac_tool_warned in
5744 yes:)
5745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5746 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5747 ac_tool_warned=yes ;;
5748 esac
5749 RANLIB=$ac_ct_RANLIB
5750 fi
5751 else
5752 RANLIB="$ac_cv_prog_RANLIB"
5753 fi
5754
5755
5756
5757 # Checks for libraries.
5758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
5759 printf %s "checking for main in -lm... " >&6; }
5760 if test ${ac_cv_lib_m_main+y}
5761 then :
5762 printf %s "(cached) " >&6
5763 else $as_nop
5764 ac_check_lib_save_LIBS=$LIBS
5765 LIBS="-lm $LIBS"
5766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5767 /* end confdefs.h. */
5768
5769
5770 int
5771 main (void)
5772 {
5773 return main ();
5774 ;
5775 return 0;
5776 }
5777 _ACEOF
5778 if ac_fn_c_try_link "$LINENO"
5779 then :
5780 ac_cv_lib_m_main=yes
5781 else $as_nop
5782 ac_cv_lib_m_main=no
5783 fi
5784 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5785 conftest$ac_exeext conftest.$ac_ext
5786 LIBS=$ac_check_lib_save_LIBS
5787 fi
5788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
5789 printf "%s\n" "$ac_cv_lib_m_main" >&6; }
5790 if test "x$ac_cv_lib_m_main" = xyes
5791 then :
5792 printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h
5793
5794 LIBS="-lm $LIBS"
5795
5796 else $as_nop
5797 as_fn_error $? "lib math is needed" "$LINENO" 5
5798 fi
5799
5800
5801 # Check whether --with-sdl-prefix was given.
5802 if test ${with_sdl_prefix+y}
5803 then :
5804 withval=$with_sdl_prefix; sdl_prefix="$withval"
5805 else $as_nop
5806 sdl_prefix=""
5807 fi
5808
5809
5810 # Check whether --with-sdl-exec-prefix was given.
5811 if test ${with_sdl_exec_prefix+y}
5812 then :
5813 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
5814 else $as_nop
5815 sdl_exec_prefix=""
5816 fi
5817
5818 # Check whether --enable-sdltest was given.
5819 if test ${enable_sdltest+y}
5820 then :
5821 enableval=$enable_sdltest;
5822 else $as_nop
5823 enable_sdltest=yes
5824 fi
5825
5826
5827 if test x$sdl_exec_prefix != x ; then
5828 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
5829 if test x${SDL_CONFIG+set} != xset ; then
5830 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
5831 fi
5832 fi
5833 if test x$sdl_prefix != x ; then
5834 sdl_args="$sdl_args --prefix=$sdl_prefix"
5835 if test x${SDL_CONFIG+set} != xset ; then
5836 SDL_CONFIG=$sdl_prefix/bin/sdl-config
5837 fi
5838 fi
5839
5840
5841 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
5842 # Extract the first word of "sdl-config", so it can be a program name with args.
5843 set dummy sdl-config; ac_word=$2
5844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5845 printf %s "checking for $ac_word... " >&6; }
5846 if test ${ac_cv_path_SDL_CONFIG+y}
5847 then :
5848 printf %s "(cached) " >&6
5849 else $as_nop
5850 case $SDL_CONFIG in
5851 [\\/]* | ?:[\\/]*)
5852 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
5853 ;;
5854 *)
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856 for as_dir in $PATH
5857 do
5858 IFS=$as_save_IFS
5859 case $as_dir in #(((
5860 '') as_dir=./ ;;
5861 */) ;;
5862 *) as_dir=$as_dir/ ;;
5863 esac
5864 for ac_exec_ext in '' $ac_executable_extensions; do
5865 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5866 ac_cv_path_SDL_CONFIG="$as_dir$ac_word$ac_exec_ext"
5867 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5868 break 2
5869 fi
5870 done
5871 done
5872 IFS=$as_save_IFS
5873
5874 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
5875 ;;
5876 esac
5877 fi
5878 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
5879 if test -n "$SDL_CONFIG"; then
5880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
5881 printf "%s\n" "$SDL_CONFIG" >&6; }
5882 else
5883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884 printf "%s\n" "no" >&6; }
5885 fi
5886
5887
5888 min_sdl_version=1.2.0
5889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
5890 printf %s "checking for SDL - version >= $min_sdl_version... " >&6; }
5891 no_sdl=""
5892 if test "$SDL_CONFIG" = "no" ; then
5893 no_sdl=yes
5894 else
5895 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
5896 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
5897
5898 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
5899 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
5900 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
5901 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
5902 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
5903 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
5904 if test "x$enable_sdltest" = "xyes" ; then
5905 ac_save_CFLAGS="$CFLAGS"
5906 ac_save_LIBS="$LIBS"
5907 CFLAGS="$CFLAGS $SDL_CFLAGS"
5908 LIBS="$LIBS $SDL_LIBS"
5909 rm -f conf.sdltest
5910 if test "$cross_compiling" = yes
5911 then :
5912 echo $ac_n "cross compiling; assumed OK... $ac_c"
5913 else $as_nop
5914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5915 /* end confdefs.h. */
5916
5917 #include <stdio.h>
5918 #include <stdlib.h>
5919 #include <string.h>
5920 #include "SDL.h"
5921
5922 char*
5923 my_strdup (char *str)
5924 {
5925 char *new_str;
5926
5927 if (str)
5928 {
5929 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
5930 strcpy (new_str, str);
5931 }
5932 else
5933 new_str = NULL;
5934
5935 return new_str;
5936 }
5937
5938 int main (int argc, char *argv[])
5939 {
5940 int major, minor, micro;
5941 char *tmp_version;
5942
5943 /* This hangs on some systems (?)
5944 system ("touch conf.sdltest");
5945 */
5946 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
5947
5948 /* HP/UX 9 (%@#!) writes to sscanf strings */
5949 tmp_version = my_strdup("$min_sdl_version");
5950 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
5951 printf("%s, bad version string\n", "$min_sdl_version");
5952 exit(1);
5953 }
5954
5955 if (($sdl_major_version > major) ||
5956 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
5957 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
5958 {
5959 return 0;
5960 }
5961 else
5962 {
5963 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
5964 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
5965 printf("*** best to upgrade to the required version.\n");
5966 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
5967 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
5968 printf("*** config.cache before re-running configure\n");
5969 return 1;
5970 }
5971 }
5972
5973
5974 _ACEOF
5975 if ac_fn_c_try_run "$LINENO"
5976 then :
5977
5978 else $as_nop
5979 no_sdl=yes
5980 fi
5981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5982 conftest.$ac_objext conftest.beam conftest.$ac_ext
5983 fi
5984
5985 CFLAGS="$ac_save_CFLAGS"
5986 LIBS="$ac_save_LIBS"
5987 fi
5988 fi
5989 if test "x$no_sdl" = x ; then
5990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5991 printf "%s\n" "yes" >&6; }
5992 :
5993 else
5994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5995 printf "%s\n" "no" >&6; }
5996 if test "$SDL_CONFIG" = "no" ; then
5997 echo "*** The sdl-config script installed by SDL could not be found"
5998 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
5999 echo "*** your path, or set the SDL_CONFIG environment variable to the"
6000 echo "*** full path to sdl-config."
6001 else
6002 if test -f conf.sdltest ; then
6003 :
6004 else
6005 echo "*** Could not run SDL test program, checking why..."
6006 CFLAGS="$CFLAGS $SDL_CFLAGS"
6007 LIBS="$LIBS $SDL_LIBS"
6008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6009 /* end confdefs.h. */
6010
6011 #include <stdio.h>
6012 #include "SDL.h"
6013
6014 int main(int argc, char *argv[])
6015 { return 0; }
6016 #undef main
6017 #define main K_and_R_C_main
6018
6019 int
6020 main (void)
6021 {
6022 return 0;
6023 ;
6024 return 0;
6025 }
6026 _ACEOF
6027 if ac_fn_c_try_link "$LINENO"
6028 then :
6029 echo "*** The test program compiled, but did not run. This usually means"
6030 echo "*** that the run-time linker is not finding SDL or finding the wrong"
6031 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
6032 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
6033 echo "*** to the installed location Also, make sure you have run ldconfig if that"
6034 echo "*** is required on your system"
6035 echo "***"
6036 echo "*** If you have an old version installed, it is best to remove it, although"
6037 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
6038 else $as_nop
6039 echo "*** The test program failed to compile or link. See the file config.log for the"
6040 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
6041 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
6042 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
6043 fi
6044 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6045 conftest$ac_exeext conftest.$ac_ext
6046 CFLAGS="$ac_save_CFLAGS"
6047 LIBS="$ac_save_LIBS"
6048 fi
6049 fi
6050 SDL_CFLAGS=""
6051 SDL_LIBS=""
6052 as_fn_error $? "lib SDL is needed" "$LINENO" 5
6053 fi
6054
6055
6056 rm -f conf.sdltest
6057
6058 #AC_CHECK_LIB(SDL, main,, AC_MSG_ERROR(lib SDL is needed))
6059
6060 # Mixer is optional
6061 audio_flag="-DAUDIO_ENABLED"
6062 audio_lib="-lSDL_mixer"
6063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lSDL_mixer" >&5
6064 printf %s "checking for main in -lSDL_mixer... " >&6; }
6065 if test ${ac_cv_lib_SDL_mixer_main+y}
6066 then :
6067 printf %s "(cached) " >&6
6068 else $as_nop
6069 ac_check_lib_save_LIBS=$LIBS
6070 LIBS="-lSDL_mixer $LIBS"
6071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072 /* end confdefs.h. */
6073
6074
6075 int
6076 main (void)
6077 {
6078 return main ();
6079 ;
6080 return 0;
6081 }
6082 _ACEOF
6083 if ac_fn_c_try_link "$LINENO"
6084 then :
6085 ac_cv_lib_SDL_mixer_main=yes
6086 else $as_nop
6087 ac_cv_lib_SDL_mixer_main=no
6088 fi
6089 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6090 conftest$ac_exeext conftest.$ac_ext
6091 LIBS=$ac_check_lib_save_LIBS
6092 fi
6093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_mixer_main" >&5
6094 printf "%s\n" "$ac_cv_lib_SDL_mixer_main" >&6; }
6095 if test "x$ac_cv_lib_SDL_mixer_main" = xyes
6096 then :
6097 printf "%s\n" "#define HAVE_LIBSDL_MIXER 1" >>confdefs.h
6098
6099 LIBS="-lSDL_mixer $LIBS"
6100
6101 else $as_nop
6102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: lib SDL mixer missing: audio disabled" >&5
6103 printf "%s\n" "lib SDL mixer missing: audio disabled" >&6; }; audio_flag=""; audio_lib=""
6104 fi
6105
6106
6107 # Checks for header files.
6108 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6109 if test "x$ac_cv_header_stdlib_h" = xyes
6110 then :
6111 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
6112
6113 fi
6114 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
6115 if test "x$ac_cv_header_string_h" = xyes
6116 then :
6117 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
6118
6119 fi
6120
6121
6122 # Checks for typedefs, structures, and compiler characteristics.
6123 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
6124 if test "x$ac_cv_type__Bool" = xyes
6125 then :
6126
6127 printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
6128
6129
6130 fi
6131
6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
6133 printf %s "checking for stdbool.h that conforms to C99... " >&6; }
6134 if test ${ac_cv_header_stdbool_h+y}
6135 then :
6136 printf %s "(cached) " >&6
6137 else $as_nop
6138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6139 /* end confdefs.h. */
6140 #include <stdbool.h>
6141
6142 #ifndef __bool_true_false_are_defined
6143 #error "__bool_true_false_are_defined is not defined"
6144 #endif
6145 char a[__bool_true_false_are_defined == 1 ? 1 : -1];
6146
6147 /* Regardless of whether this is C++ or "_Bool" is a
6148 valid type name, "true" and "false" should be usable
6149 in #if expressions and integer constant expressions,
6150 and "bool" should be a valid type name. */
6151
6152 #if !true
6153 #error "'true' is not true"
6154 #endif
6155 #if true != 1
6156 #error "'true' is not equal to 1"
6157 #endif
6158 char b[true == 1 ? 1 : -1];
6159 char c[true];
6160
6161 #if false
6162 #error "'false' is not false"
6163 #endif
6164 #if false != 0
6165 #error "'false' is not equal to 0"
6166 #endif
6167 char d[false == 0 ? 1 : -1];
6168
6169 enum { e = false, f = true, g = false * true, h = true * 256 };
6170
6171 char i[(bool) 0.5 == true ? 1 : -1];
6172 char j[(bool) 0.0 == false ? 1 : -1];
6173 char k[sizeof (bool) > 0 ? 1 : -1];
6174
6175 struct sb { bool s: 1; bool t; } s;
6176 char l[sizeof s.t > 0 ? 1 : -1];
6177
6178 /* The following fails for
6179 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
6180 bool m[h];
6181 char n[sizeof m == h * sizeof m[0] ? 1 : -1];
6182 char o[-1 - (bool) 0 < 0 ? 1 : -1];
6183 /* Catch a bug in an HP-UX C compiler. See
6184 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
6185 https://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
6186 */
6187 bool p = true;
6188 bool *pp = &p;
6189
6190 /* C 1999 specifies that bool, true, and false are to be
6191 macros, but C++ 2011 and later overrule this. */
6192 #if __cplusplus < 201103
6193 #ifndef bool
6194 #error "bool is not defined"
6195 #endif
6196 #ifndef false
6197 #error "false is not defined"
6198 #endif
6199 #ifndef true
6200 #error "true is not defined"
6201 #endif
6202 #endif
6203
6204 /* If _Bool is available, repeat with it all the tests
6205 above that used bool. */
6206 #ifdef HAVE__BOOL
6207 struct sB { _Bool s: 1; _Bool t; } t;
6208
6209 char q[(_Bool) 0.5 == true ? 1 : -1];
6210 char r[(_Bool) 0.0 == false ? 1 : -1];
6211 char u[sizeof (_Bool) > 0 ? 1 : -1];
6212 char v[sizeof t.t > 0 ? 1 : -1];
6213
6214 _Bool w[h];
6215 char x[sizeof m == h * sizeof m[0] ? 1 : -1];
6216 char y[-1 - (_Bool) 0 < 0 ? 1 : -1];
6217 _Bool z = true;
6218 _Bool *pz = &p;
6219 #endif
6220
6221 int
6222 main (void)
6223 {
6224
6225 bool ps = &s;
6226 *pp |= p;
6227 *pp |= ! p;
6228
6229 #ifdef HAVE__BOOL
6230 _Bool pt = &t;
6231 *pz |= z;
6232 *pz |= ! z;
6233 #endif
6234
6235 /* Refer to every declared value, so they cannot be
6236 discarded as unused. */
6237 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k
6238 + !l + !m + !n + !o + !p + !pp + !ps
6239 #ifdef HAVE__BOOL
6240 + !q + !r + !u + !v + !w + !x + !y + !z + !pt
6241 #endif
6242 );
6243
6244 ;
6245 return 0;
6246 }
6247 _ACEOF
6248 if ac_fn_c_try_compile "$LINENO"
6249 then :
6250 ac_cv_header_stdbool_h=yes
6251 else $as_nop
6252 ac_cv_header_stdbool_h=no
6253 fi
6254 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6255 fi
6256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
6257 printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
6258
6259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6260 printf %s "checking for inline... " >&6; }
6261 if test ${ac_cv_c_inline+y}
6262 then :
6263 printf %s "(cached) " >&6
6264 else $as_nop
6265 ac_cv_c_inline=no
6266 for ac_kw in inline __inline__ __inline; do
6267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6268 /* end confdefs.h. */
6269 #ifndef __cplusplus
6270 typedef int foo_t;
6271 static $ac_kw foo_t static_foo (void) {return 0; }
6272 $ac_kw foo_t foo (void) {return 0; }
6273 #endif
6274
6275 _ACEOF
6276 if ac_fn_c_try_compile "$LINENO"
6277 then :
6278 ac_cv_c_inline=$ac_kw
6279 fi
6280 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6281 test "$ac_cv_c_inline" != no && break
6282 done
6283
6284 fi
6285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6286 printf "%s\n" "$ac_cv_c_inline" >&6; }
6287
6288 case $ac_cv_c_inline in
6289 inline | yes) ;;
6290 *)
6291 case $ac_cv_c_inline in
6292 no) ac_val=;;
6293 *) ac_val=$ac_cv_c_inline;;
6294 esac
6295 cat >>confdefs.h <<_ACEOF
6296 #ifndef __cplusplus
6297 #define inline $ac_val
6298 #endif
6299 _ACEOF
6300 ;;
6301 esac
6302
6303
6304 # Checks for library functions.
6305 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6306 if test "x$ac_cv_type_size_t" = xyes
6307 then :
6308
6309 else $as_nop
6310
6311 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
6312
6313 fi
6314
6315 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6316 # for constant arguments. Useless!
6317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6318 printf %s "checking for working alloca.h... " >&6; }
6319 if test ${ac_cv_working_alloca_h+y}
6320 then :
6321 printf %s "(cached) " >&6
6322 else $as_nop
6323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324 /* end confdefs.h. */
6325 #include <alloca.h>
6326 int
6327 main (void)
6328 {
6329 char *p = (char *) alloca (2 * sizeof (int));
6330 if (p) return 0;
6331 ;
6332 return 0;
6333 }
6334 _ACEOF
6335 if ac_fn_c_try_link "$LINENO"
6336 then :
6337 ac_cv_working_alloca_h=yes
6338 else $as_nop
6339 ac_cv_working_alloca_h=no
6340 fi
6341 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6342 conftest$ac_exeext conftest.$ac_ext
6343 fi
6344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6345 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
6346 if test $ac_cv_working_alloca_h = yes; then
6347
6348 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
6349
6350 fi
6351
6352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6353 printf %s "checking for alloca... " >&6; }
6354 if test ${ac_cv_func_alloca_works+y}
6355 then :
6356 printf %s "(cached) " >&6
6357 else $as_nop
6358 if test $ac_cv_working_alloca_h = yes; then
6359 ac_cv_func_alloca_works=yes
6360 else
6361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6362 /* end confdefs.h. */
6363 #include <stdlib.h>
6364 #include <stddef.h>
6365 #ifndef alloca
6366 # ifdef __GNUC__
6367 # define alloca __builtin_alloca
6368 # elif defined _MSC_VER
6369 # include <malloc.h>
6370 # define alloca _alloca
6371 # else
6372 # ifdef __cplusplus
6373 extern "C"
6374 # endif
6375 void *alloca (size_t);
6376 # endif
6377 #endif
6378
6379 int
6380 main (void)
6381 {
6382 char *p = (char *) alloca (1);
6383 if (p) return 0;
6384 ;
6385 return 0;
6386 }
6387 _ACEOF
6388 if ac_fn_c_try_link "$LINENO"
6389 then :
6390 ac_cv_func_alloca_works=yes
6391 else $as_nop
6392 ac_cv_func_alloca_works=no
6393 fi
6394 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6395 conftest$ac_exeext conftest.$ac_ext
6396 fi
6397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6398 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
6399 fi
6400
6401 if test $ac_cv_func_alloca_works = yes; then
6402
6403 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
6404
6405 else
6406 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6407 # that cause trouble. Some versions do not even contain alloca or
6408 # contain a buggy version. If you still want to use their alloca,
6409 # use ar to extract alloca.o from them instead of compiling alloca.c.
6410
6411 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6412
6413 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
6414
6415
6416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6417 printf %s "checking stack direction for C alloca... " >&6; }
6418 if test ${ac_cv_c_stack_direction+y}
6419 then :
6420 printf %s "(cached) " >&6
6421 else $as_nop
6422 if test "$cross_compiling" = yes
6423 then :
6424 ac_cv_c_stack_direction=0
6425 else $as_nop
6426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6427 /* end confdefs.h. */
6428 $ac_includes_default
6429 int
6430 find_stack_direction (int *addr, int depth)
6431 {
6432 int dir, dummy = 0;
6433 if (! addr)
6434 addr = &dummy;
6435 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6436 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6437 return dir + dummy;
6438 }
6439
6440 int
6441 main (int argc, char **argv)
6442 {
6443 return find_stack_direction (0, argc + !argv + 20) < 0;
6444 }
6445 _ACEOF
6446 if ac_fn_c_try_run "$LINENO"
6447 then :
6448 ac_cv_c_stack_direction=1
6449 else $as_nop
6450 ac_cv_c_stack_direction=-1
6451 fi
6452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6453 conftest.$ac_objext conftest.beam conftest.$ac_ext
6454 fi
6455
6456 fi
6457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6458 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
6459 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
6460
6461
6462 fi
6463
6464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6465 printf %s "checking for GNU libc compatible malloc... " >&6; }
6466 if test ${ac_cv_func_malloc_0_nonnull+y}
6467 then :
6468 printf %s "(cached) " >&6
6469 else $as_nop
6470 if test "$cross_compiling" = yes
6471 then :
6472 case "$host_os" in # ((
6473 # Guess yes on platforms where we know the result.
6474 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
6475 | hpux* | solaris* | cygwin* | mingw* | msys* )
6476 ac_cv_func_malloc_0_nonnull=yes ;;
6477 # If we don't know, assume the worst.
6478 *) ac_cv_func_malloc_0_nonnull=no ;;
6479 esac
6480 else $as_nop
6481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6482 /* end confdefs.h. */
6483 #include <stdlib.h>
6484
6485 int
6486 main (void)
6487 {
6488 void *p = malloc (0);
6489 int result = !p;
6490 free (p);
6491 return result;
6492 ;
6493 return 0;
6494 }
6495 _ACEOF
6496 if ac_fn_c_try_run "$LINENO"
6497 then :
6498 ac_cv_func_malloc_0_nonnull=yes
6499 else $as_nop
6500 ac_cv_func_malloc_0_nonnull=no
6501 fi
6502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6503 conftest.$ac_objext conftest.beam conftest.$ac_ext
6504 fi
6505
6506 fi
6507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
6508 printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
6509 if test $ac_cv_func_malloc_0_nonnull = yes
6510 then :
6511
6512 printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
6513
6514 else $as_nop
6515 printf "%s\n" "#define HAVE_MALLOC 0" >>confdefs.h
6516
6517 case " $LIBOBJS " in
6518 *" malloc.$ac_objext "* ) ;;
6519 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
6520 ;;
6521 esac
6522
6523
6524 printf "%s\n" "#define malloc rpl_malloc" >>confdefs.h
6525
6526 fi
6527
6528
6529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6530 printf %s "checking for GNU libc compatible realloc... " >&6; }
6531 if test ${ac_cv_func_realloc_0_nonnull+y}
6532 then :
6533 printf %s "(cached) " >&6
6534 else $as_nop
6535 if test "$cross_compiling" = yes
6536 then :
6537 case "$host_os" in # ((
6538 # Guess yes on platforms where we know the result.
6539 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
6540 | hpux* | solaris* | cygwin* | mingw* | msys* )
6541 ac_cv_func_realloc_0_nonnull=yes ;;
6542 # If we don't know, assume the worst.
6543 *) ac_cv_func_realloc_0_nonnull=no ;;
6544 esac
6545 else $as_nop
6546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6547 /* end confdefs.h. */
6548 #include <stdlib.h>
6549
6550 int
6551 main (void)
6552 {
6553 void *p = realloc (0, 0);
6554 int result = !p;
6555 free (p);
6556 return result;
6557 ;
6558 return 0;
6559 }
6560 _ACEOF
6561 if ac_fn_c_try_run "$LINENO"
6562 then :
6563 ac_cv_func_realloc_0_nonnull=yes
6564 else $as_nop
6565 ac_cv_func_realloc_0_nonnull=no
6566 fi
6567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6568 conftest.$ac_objext conftest.beam conftest.$ac_ext
6569 fi
6570
6571 fi
6572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
6573 printf "%s\n" "$ac_cv_func_realloc_0_nonnull" >&6; }
6574 if test $ac_cv_func_realloc_0_nonnull = yes
6575 then :
6576
6577 printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
6578
6579 else $as_nop
6580 printf "%s\n" "#define HAVE_REALLOC 0" >>confdefs.h
6581
6582 case " $LIBOBJS " in
6583 *" realloc.$ac_objext "* ) ;;
6584 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
6585 ;;
6586 esac
6587
6588
6589 printf "%s\n" "#define realloc rpl_realloc" >>confdefs.h
6590
6591 fi
6592
6593
6594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
6595 printf %s "checking for working strtod... " >&6; }
6596 if test ${ac_cv_func_strtod+y}
6597 then :
6598 printf %s "(cached) " >&6
6599 else $as_nop
6600 if test "$cross_compiling" = yes
6601 then :
6602 ac_cv_func_strtod=no
6603 else $as_nop
6604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6605 /* end confdefs.h. */
6606
6607 $ac_includes_default
6608 #ifndef strtod
6609 double strtod ();
6610 #endif
6611 int
6612 main (void)
6613 {
6614 {
6615 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
6616 char *string = " +69";
6617 char *term;
6618 double value;
6619 value = strtod (string, &term);
6620 if (value != 69 || term != (string + 4))
6621 return 1;
6622 }
6623
6624 {
6625 /* Under Solaris 2.4, strtod returns the wrong value for the
6626 terminating character under some conditions. */
6627 char *string = "NaN";
6628 char *term;
6629 strtod (string, &term);
6630 if (term != string && *(term - 1) == 0)
6631 return 1;
6632 }
6633 return 0;
6634 }
6635
6636 _ACEOF
6637 if ac_fn_c_try_run "$LINENO"
6638 then :
6639 ac_cv_func_strtod=yes
6640 else $as_nop
6641 ac_cv_func_strtod=no
6642 fi
6643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6644 conftest.$ac_objext conftest.beam conftest.$ac_ext
6645 fi
6646
6647 fi
6648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
6649 printf "%s\n" "$ac_cv_func_strtod" >&6; }
6650 if test $ac_cv_func_strtod = no; then
6651 case " $LIBOBJS " in
6652 *" strtod.$ac_objext "* ) ;;
6653 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
6654 ;;
6655 esac
6656
6657 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
6658 if test "x$ac_cv_func_pow" = xyes
6659 then :
6660
6661 fi
6662
6663 if test $ac_cv_func_pow = no; then
6664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
6665 printf %s "checking for pow in -lm... " >&6; }
6666 if test ${ac_cv_lib_m_pow+y}
6667 then :
6668 printf %s "(cached) " >&6
6669 else $as_nop
6670 ac_check_lib_save_LIBS=$LIBS
6671 LIBS="-lm $LIBS"
6672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6673 /* end confdefs.h. */
6674
6675 /* Override any GCC internal prototype to avoid an error.
6676 Use char because int might match the return type of a GCC
6677 builtin and then its argument prototype would still apply. */
6678 char pow ();
6679 int
6680 main (void)
6681 {
6682 return pow ();
6683 ;
6684 return 0;
6685 }
6686 _ACEOF
6687 if ac_fn_c_try_link "$LINENO"
6688 then :
6689 ac_cv_lib_m_pow=yes
6690 else $as_nop
6691 ac_cv_lib_m_pow=no
6692 fi
6693 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6694 conftest$ac_exeext conftest.$ac_ext
6695 LIBS=$ac_check_lib_save_LIBS
6696 fi
6697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
6698 printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
6699 if test "x$ac_cv_lib_m_pow" = xyes
6700 then :
6701 POW_LIB=-lm
6702 else $as_nop
6703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
6704 printf "%s\n" "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
6705 fi
6706
6707 fi
6708
6709 fi
6710
6711 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
6712 if test "x$ac_cv_func_memset" = xyes
6713 then :
6714 printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
6715
6716 fi
6717 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
6718 if test "x$ac_cv_func_strchr" = xyes
6719 then :
6720 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
6721
6722 fi
6723 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
6724 if test "x$ac_cv_func_strdup" = xyes
6725 then :
6726 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
6727
6728 fi
6729 ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
6730 if test "x$ac_cv_func_strrchr" = xyes
6731 then :
6732 printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
6733
6734 fi
6735
6736
6737 # Flags
6738 datdir=$datadir/$PACKAGE
6739 hiscoredir=$localstatedir
6740 configdir="~/.config"
6741 debugflags=""
6742 # Check whether --enable-install was given.
6743 if test ${enable_install+y}
6744 then :
6745 enableval=$enable_install; datdir="." hiscoredir="." configdir="."
6746 fi
6747
6748 # Check whether --enable-debug was given.
6749 if test ${enable_debug+y}
6750 then :
6751 enableval=$enable_debug; debugflags="-O0 -g"
6752 fi
6753
6754 # Check whether --enable-audio was given.
6755 if test ${enable_audio+y}
6756 then :
6757 enableval=$enable_audio; audio_flag=""; audio_lib=""
6758 fi
6759
6760
6761
6762
6763 CFLAGS="$CFLAGS -Wall"
6764 CFLAGS="$CFLAGS $SDL_CFLAGS $audio_flag $debugflags -DSRC_DIR=\\\"$datdir\\\" -DCONFIGDIRNAME=\\\"$configdir\\\" -DHISCOREDIR=\\\"$hiscoredir\\\""
6765 LIBS="$LIBS -lm $SDL_LIBS $audio_lib"
6766
6767 ac_config_files="$ac_config_files Makefile src/Makefile src/gfx/Makefile src/sounds/Makefile barrage.spec"
6768
6769 cat >confcache <<\_ACEOF
6770 # This file is a shell script that caches the results of configure
6771 # tests run on this system so they can be shared between configure
6772 # scripts and configure runs, see configure's option --config-cache.
6773 # It is not useful on other systems. If it contains results you don't
6774 # want to keep, you may remove or edit it.
6775 #
6776 # config.status only pays attention to the cache file if you give it
6777 # the --recheck option to rerun configure.
6778 #
6779 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6780 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6781 # following values.
6782
6783 _ACEOF
6784
6785 # The following way of writing the cache mishandles newlines in values,
6786 # but we know of no workaround that is simple, portable, and efficient.
6787 # So, we kill variables containing newlines.
6788 # Ultrix sh set writes to stderr and can't be redirected directly,
6789 # and sets the high bit in the cache file unless we assign to the vars.
6790 (
6791 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6792 eval ac_val=\$$ac_var
6793 case $ac_val in #(
6794 *${as_nl}*)
6795 case $ac_var in #(
6796 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6797 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6798 esac
6799 case $ac_var in #(
6800 _ | IFS | as_nl) ;; #(
6801 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6802 *) { eval $ac_var=; unset $ac_var;} ;;
6803 esac ;;
6804 esac
6805 done
6806
6807 (set) 2>&1 |
6808 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6809 *${as_nl}ac_space=\ *)
6810 # `set' does not quote correctly, so add quotes: double-quote
6811 # substitution turns \\\\ into \\, and sed turns \\ into \.
6812 sed -n \
6813 "s/'/'\\\\''/g;
6814 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6815 ;; #(
6816 *)
6817 # `set' quotes correctly as required by POSIX, so do not add quotes.
6818 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6819 ;;
6820 esac |
6821 sort
6822 ) |
6823 sed '
6824 /^ac_cv_env_/b end
6825 t clear
6826 :clear
6827 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
6828 t end
6829 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6830 :end' >>confcache
6831 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6832 if test -w "$cache_file"; then
6833 if test "x$cache_file" != "x/dev/null"; then
6834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6835 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
6836 if test ! -f "$cache_file" || test -h "$cache_file"; then
6837 cat confcache >"$cache_file"
6838 else
6839 case $cache_file in #(
6840 */* | ?:*)
6841 mv -f confcache "$cache_file"$$ &&
6842 mv -f "$cache_file"$$ "$cache_file" ;; #(
6843 *)
6844 mv -f confcache "$cache_file" ;;
6845 esac
6846 fi
6847 fi
6848 else
6849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6850 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
6851 fi
6852 fi
6853 rm -f confcache
6854
6855 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6856 # Let make expand exec_prefix.
6857 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6858
6859 DEFS=-DHAVE_CONFIG_H
6860
6861 ac_libobjs=
6862 ac_ltlibobjs=
6863 U=
6864 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6865 # 1. Remove the extension, and $U if already installed.
6866 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6867 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
6868 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6869 # will be set to the directory where LIBOBJS objects are built.
6870 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6871 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6872 done
6873 LIBOBJS=$ac_libobjs
6874
6875 LTLIBOBJS=$ac_ltlibobjs
6876
6877
6878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
6879 printf %s "checking that generated files are newer than configure... " >&6; }
6880 if test -n "$am_sleep_pid"; then
6881 # Hide warnings about reused PIDs.
6882 wait $am_sleep_pid 2>/dev/null
6883 fi
6884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
6885 printf "%s\n" "done" >&6; }
6886 if test -n "$EXEEXT"; then
6887 am__EXEEXT_TRUE=
6888 am__EXEEXT_FALSE='#'
6889 else
6890 am__EXEEXT_TRUE='#'
6891 am__EXEEXT_FALSE=
6892 fi
6893
6894 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6895 as_fn_error $? "conditional \"AMDEP\" was never defined.
6896 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6897 fi
6898 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6899 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6900 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6901 fi
6902 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6903 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6904 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6905 fi
6906
6907 : "${CONFIG_STATUS=./config.status}"
6908 ac_write_fail=0
6909 ac_clean_files_save=$ac_clean_files
6910 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6912 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
6913 as_write_fail=0
6914 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6915 #! $SHELL
6916 # Generated by $as_me.
6917 # Run this file to recreate the current configuration.
6918 # Compiler output produced by configure, useful for debugging
6919 # configure, is in config.log if it exists.
6920
6921 debug=false
6922 ac_cs_recheck=false
6923 ac_cs_silent=false
6924
6925 SHELL=\${CONFIG_SHELL-$SHELL}
6926 export SHELL
6927 _ASEOF
6928 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6929 ## -------------------- ##
6930 ## M4sh Initialization. ##
6931 ## -------------------- ##
6932
6933 # Be more Bourne compatible
6934 DUALCASE=1; export DUALCASE # for MKS sh
6935 as_nop=:
6936 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
6937 then :
6938 emulate sh
6939 NULLCMD=:
6940 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6941 # is contrary to our usage. Disable this feature.
6942 alias -g '${1+"$@"}'='"$@"'
6943 setopt NO_GLOB_SUBST
6944 else $as_nop
6945 case `(set -o) 2>/dev/null` in #(
6946 *posix*) :
6947 set -o posix ;; #(
6948 *) :
6949 ;;
6950 esac
6951 fi
6952
6953
6954
6955 # Reset variables that may have inherited troublesome values from
6956 # the environment.
6957
6958 # IFS needs to be set, to space, tab, and newline, in precisely that order.
6959 # (If _AS_PATH_WALK were called with IFS unset, it would have the
6960 # side effect of setting IFS to empty, thus disabling word splitting.)
6961 # Quoting is to prevent editors from complaining about space-tab.
6962 as_nl='
6963 '
6964 export as_nl
6965 IFS=" "" $as_nl"
6966
6967 PS1='$ '
6968 PS2='> '
6969 PS4='+ '
6970
6971 # Ensure predictable behavior from utilities with locale-dependent output.
6972 LC_ALL=C
6973 export LC_ALL
6974 LANGUAGE=C
6975 export LANGUAGE
6976
6977 # We cannot yet rely on "unset" to work, but we need these variables
6978 # to be unset--not just set to an empty or harmless value--now, to
6979 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
6980 # also avoids known problems related to "unset" and subshell syntax
6981 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
6982 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
6983 do eval test \${$as_var+y} \
6984 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6985 done
6986
6987 # Ensure that fds 0, 1, and 2 are open.
6988 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
6989 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
6990 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
6991
6992 # The user is always right.
6993 if ${PATH_SEPARATOR+false} :; then
6994 PATH_SEPARATOR=:
6995 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6996 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6997 PATH_SEPARATOR=';'
6998 }
6999 fi
7000
7001
7002 # Find who we are. Look in the path if we contain no directory separator.
7003 as_myself=
7004 case $0 in #((
7005 *[\\/]* ) as_myself=$0 ;;
7006 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007 for as_dir in $PATH
7008 do
7009 IFS=$as_save_IFS
7010 case $as_dir in #(((
7011 '') as_dir=./ ;;
7012 */) ;;
7013 *) as_dir=$as_dir/ ;;
7014 esac
7015 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
7016 done
7017 IFS=$as_save_IFS
7018
7019 ;;
7020 esac
7021 # We did not find ourselves, most probably we were run as `sh COMMAND'
7022 # in which case we are not to be found in the path.
7023 if test "x$as_myself" = x; then
7024 as_myself=$0
7025 fi
7026 if test ! -f "$as_myself"; then
7027 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7028 exit 1
7029 fi
7030
7031
7032
7033 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7034 # ----------------------------------------
7035 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7036 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7037 # script with STATUS, using 1 if that was 0.
7038 as_fn_error ()
7039 {
7040 as_status=$1; test $as_status -eq 0 && as_status=1
7041 if test "$4"; then
7042 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7044 fi
7045 printf "%s\n" "$as_me: error: $2" >&2
7046 as_fn_exit $as_status
7047 } # as_fn_error
7048
7049
7050
7051 # as_fn_set_status STATUS
7052 # -----------------------
7053 # Set $? to STATUS, without forking.
7054 as_fn_set_status ()
7055 {
7056 return $1
7057 } # as_fn_set_status
7058
7059 # as_fn_exit STATUS
7060 # -----------------
7061 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7062 as_fn_exit ()
7063 {
7064 set +e
7065 as_fn_set_status $1
7066 exit $1
7067 } # as_fn_exit
7068
7069 # as_fn_unset VAR
7070 # ---------------
7071 # Portably unset VAR.
7072 as_fn_unset ()
7073 {
7074 { eval $1=; unset $1;}
7075 }
7076 as_unset=as_fn_unset
7077
7078 # as_fn_append VAR VALUE
7079 # ----------------------
7080 # Append the text in VALUE to the end of the definition contained in VAR. Take
7081 # advantage of any shell optimizations that allow amortized linear growth over
7082 # repeated appends, instead of the typical quadratic growth present in naive
7083 # implementations.
7084 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
7085 then :
7086 eval 'as_fn_append ()
7087 {
7088 eval $1+=\$2
7089 }'
7090 else $as_nop
7091 as_fn_append ()
7092 {
7093 eval $1=\$$1\$2
7094 }
7095 fi # as_fn_append
7096
7097 # as_fn_arith ARG...
7098 # ------------------
7099 # Perform arithmetic evaluation on the ARGs, and store the result in the
7100 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7101 # must be portable across $(()) and expr.
7102 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
7103 then :
7104 eval 'as_fn_arith ()
7105 {
7106 as_val=$(( $* ))
7107 }'
7108 else $as_nop
7109 as_fn_arith ()
7110 {
7111 as_val=`expr "$@" || test $? -eq 1`
7112 }
7113 fi # as_fn_arith
7114
7115
7116 if expr a : '\(a\)' >/dev/null 2>&1 &&
7117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7118 as_expr=expr
7119 else
7120 as_expr=false
7121 fi
7122
7123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7124 as_basename=basename
7125 else
7126 as_basename=false
7127 fi
7128
7129 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7130 as_dirname=dirname
7131 else
7132 as_dirname=false
7133 fi
7134
7135 as_me=`$as_basename -- "$0" ||
7136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7137 X"$0" : 'X\(//\)$' \| \
7138 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7139 printf "%s\n" X/"$0" |
7140 sed '/^.*\/\([^/][^/]*\)\/*$/{
7141 s//\1/
7142 q
7143 }
7144 /^X\/\(\/\/\)$/{
7145 s//\1/
7146 q
7147 }
7148 /^X\/\(\/\).*/{
7149 s//\1/
7150 q
7151 }
7152 s/.*/./; q'`
7153
7154 # Avoid depending upon Character Ranges.
7155 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7156 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7157 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7158 as_cr_digits='0123456789'
7159 as_cr_alnum=$as_cr_Letters$as_cr_digits
7160
7161
7162 # Determine whether it's possible to make 'echo' print without a newline.
7163 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
7164 # for compatibility with existing Makefiles.
7165 ECHO_C= ECHO_N= ECHO_T=
7166 case `echo -n x` in #(((((
7167 -n*)
7168 case `echo 'xy\c'` in
7169 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7170 xy) ECHO_C='\c';;
7171 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7172 ECHO_T=' ';;
7173 esac;;
7174 *)
7175 ECHO_N='-n';;
7176 esac
7177
7178 # For backward compatibility with old third-party macros, we provide
7179 # the shell variables $as_echo and $as_echo_n. New code should use
7180 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
7181 as_echo='printf %s\n'
7182 as_echo_n='printf %s'
7183
7184 rm -f conf$$ conf$$.exe conf$$.file
7185 if test -d conf$$.dir; then
7186 rm -f conf$$.dir/conf$$.file
7187 else
7188 rm -f conf$$.dir
7189 mkdir conf$$.dir 2>/dev/null
7190 fi
7191 if (echo >conf$$.file) 2>/dev/null; then
7192 if ln -s conf$$.file conf$$ 2>/dev/null; then
7193 as_ln_s='ln -s'
7194 # ... but there are two gotchas:
7195 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7196 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7197 # In both cases, we have to default to `cp -pR'.
7198 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7199 as_ln_s='cp -pR'
7200 elif ln conf$$.file conf$$ 2>/dev/null; then
7201 as_ln_s=ln
7202 else
7203 as_ln_s='cp -pR'
7204 fi
7205 else
7206 as_ln_s='cp -pR'
7207 fi
7208 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7209 rmdir conf$$.dir 2>/dev/null
7210
7211
7212 # as_fn_mkdir_p
7213 # -------------
7214 # Create "$as_dir" as a directory, including parents if necessary.
7215 as_fn_mkdir_p ()
7216 {
7217
7218 case $as_dir in #(
7219 -*) as_dir=./$as_dir;;
7220 esac
7221 test -d "$as_dir" || eval $as_mkdir_p || {
7222 as_dirs=
7223 while :; do
7224 case $as_dir in #(
7225 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7226 *) as_qdir=$as_dir;;
7227 esac
7228 as_dirs="'$as_qdir' $as_dirs"
7229 as_dir=`$as_dirname -- "$as_dir" ||
7230 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7231 X"$as_dir" : 'X\(//\)[^/]' \| \
7232 X"$as_dir" : 'X\(//\)$' \| \
7233 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7234 printf "%s\n" X"$as_dir" |
7235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7236 s//\1/
7237 q
7238 }
7239 /^X\(\/\/\)[^/].*/{
7240 s//\1/
7241 q
7242 }
7243 /^X\(\/\/\)$/{
7244 s//\1/
7245 q
7246 }
7247 /^X\(\/\).*/{
7248 s//\1/
7249 q
7250 }
7251 s/.*/./; q'`
7252 test -d "$as_dir" && break
7253 done
7254 test -z "$as_dirs" || eval "mkdir $as_dirs"
7255 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7256
7257
7258 } # as_fn_mkdir_p
7259 if mkdir -p . 2>/dev/null; then
7260 as_mkdir_p='mkdir -p "$as_dir"'
7261 else
7262 test -d ./-p && rmdir ./-p
7263 as_mkdir_p=false
7264 fi
7265
7266
7267 # as_fn_executable_p FILE
7268 # -----------------------
7269 # Test if FILE is an executable regular file.
7270 as_fn_executable_p ()
7271 {
7272 test -f "$1" && test -x "$1"
7273 } # as_fn_executable_p
7274 as_test_x='test -x'
7275 as_executable_p=as_fn_executable_p
7276
7277 # Sed expression to map a string onto a valid CPP name.
7278 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7279
7280 # Sed expression to map a string onto a valid variable name.
7281 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7282
7283
7284 exec 6>&1
7285 ## ----------------------------------- ##
7286 ## Main body of $CONFIG_STATUS script. ##
7287 ## ----------------------------------- ##
7288 _ASEOF
7289 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7290
7291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7292 # Save the log message, to keep $0 and so on meaningful, and to
7293 # report actual input values of CONFIG_FILES etc. instead of their
7294 # values after options handling.
7295 ac_log="
7296 This file was extended by barrage $as_me 1.0.8, which was
7297 generated by GNU Autoconf 2.71. Invocation command line was
7298
7299 CONFIG_FILES = $CONFIG_FILES
7300 CONFIG_HEADERS = $CONFIG_HEADERS
7301 CONFIG_LINKS = $CONFIG_LINKS
7302 CONFIG_COMMANDS = $CONFIG_COMMANDS
7303 $ $0 $@
7304
7305 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7306 "
7307
7308 _ACEOF
7309
7310 case $ac_config_files in *"
7311 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7312 esac
7313
7314 case $ac_config_headers in *"
7315 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7316 esac
7317
7318
7319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7320 # Files that config.status was made for.
7321 config_files="$ac_config_files"
7322 config_headers="$ac_config_headers"
7323 config_commands="$ac_config_commands"
7324
7325 _ACEOF
7326
7327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7328 ac_cs_usage="\
7329 \`$as_me' instantiates files and other configuration actions
7330 from templates according to the current configuration. Unless the files
7331 and actions are specified as TAGs, all are instantiated by default.
7332
7333 Usage: $0 [OPTION]... [TAG]...
7334
7335 -h, --help print this help, then exit
7336 -V, --version print version number and configuration settings, then exit
7337 --config print configuration, then exit
7338 -q, --quiet, --silent
7339 do not print progress messages
7340 -d, --debug don't remove temporary files
7341 --recheck update $as_me by reconfiguring in the same conditions
7342 --file=FILE[:TEMPLATE]
7343 instantiate the configuration file FILE
7344 --header=FILE[:TEMPLATE]
7345 instantiate the configuration header FILE
7346
7347 Configuration files:
7348 $config_files
7349
7350 Configuration headers:
7351 $config_headers
7352
7353 Configuration commands:
7354 $config_commands
7355
7356 Report bugs to the package provider."
7357
7358 _ACEOF
7359 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
7360 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
7361 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7362 ac_cs_config='$ac_cs_config_escaped'
7363 ac_cs_version="\\
7364 barrage config.status 1.0.8
7365 configured by $0, generated by GNU Autoconf 2.71,
7366 with options \\"\$ac_cs_config\\"
7367
7368 Copyright (C) 2021 Free Software Foundation, Inc.
7369 This config.status script is free software; the Free Software Foundation
7370 gives unlimited permission to copy, distribute and modify it."
7371
7372 ac_pwd='$ac_pwd'
7373 srcdir='$srcdir'
7374 INSTALL='$INSTALL'
7375 MKDIR_P='$MKDIR_P'
7376 AWK='$AWK'
7377 test -n "\$AWK" || AWK=awk
7378 _ACEOF
7379
7380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7381 # The default lists apply if the user does not specify any file.
7382 ac_need_defaults=:
7383 while test $# != 0
7384 do
7385 case $1 in
7386 --*=?*)
7387 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7388 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7389 ac_shift=:
7390 ;;
7391 --*=)
7392 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7393 ac_optarg=
7394 ac_shift=:
7395 ;;
7396 *)
7397 ac_option=$1
7398 ac_optarg=$2
7399 ac_shift=shift
7400 ;;
7401 esac
7402
7403 case $ac_option in
7404 # Handling of the options.
7405 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7406 ac_cs_recheck=: ;;
7407 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7408 printf "%s\n" "$ac_cs_version"; exit ;;
7409 --config | --confi | --conf | --con | --co | --c )
7410 printf "%s\n" "$ac_cs_config"; exit ;;
7411 --debug | --debu | --deb | --de | --d | -d )
7412 debug=: ;;
7413 --file | --fil | --fi | --f )
7414 $ac_shift
7415 case $ac_optarg in
7416 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7417 '') as_fn_error $? "missing file argument" ;;
7418 esac
7419 as_fn_append CONFIG_FILES " '$ac_optarg'"
7420 ac_need_defaults=false;;
7421 --header | --heade | --head | --hea )
7422 $ac_shift
7423 case $ac_optarg in
7424 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7425 esac
7426 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7427 ac_need_defaults=false;;
7428 --he | --h)
7429 # Conflict between --help and --header
7430 as_fn_error $? "ambiguous option: \`$1'
7431 Try \`$0 --help' for more information.";;
7432 --help | --hel | -h )
7433 printf "%s\n" "$ac_cs_usage"; exit ;;
7434 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7435 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7436 ac_cs_silent=: ;;
7437
7438 # This is an error.
7439 -*) as_fn_error $? "unrecognized option: \`$1'
7440 Try \`$0 --help' for more information." ;;
7441
7442 *) as_fn_append ac_config_targets " $1"
7443 ac_need_defaults=false ;;
7444
7445 esac
7446 shift
7447 done
7448
7449 ac_configure_extra_args=
7450
7451 if $ac_cs_silent; then
7452 exec 6>/dev/null
7453 ac_configure_extra_args="$ac_configure_extra_args --silent"
7454 fi
7455
7456 _ACEOF
7457 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7458 if \$ac_cs_recheck; then
7459 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7460 shift
7461 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
7462 CONFIG_SHELL='$SHELL'
7463 export CONFIG_SHELL
7464 exec "\$@"
7465 fi
7466
7467 _ACEOF
7468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7469 exec 5>>config.log
7470 {
7471 echo
7472 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7473 ## Running $as_me. ##
7474 _ASBOX
7475 printf "%s\n" "$ac_log"
7476 } >&5
7477
7478 _ACEOF
7479 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7480 #
7481 # INIT-COMMANDS
7482 #
7483 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
7484
7485 _ACEOF
7486
7487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7488
7489 # Handling of arguments.
7490 for ac_config_target in $ac_config_targets
7491 do
7492 case $ac_config_target in
7493 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7494 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7495 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7496 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7497 "src/gfx/Makefile") CONFIG_FILES="$CONFIG_FILES src/gfx/Makefile" ;;
7498 "src/sounds/Makefile") CONFIG_FILES="$CONFIG_FILES src/sounds/Makefile" ;;
7499 "barrage.spec") CONFIG_FILES="$CONFIG_FILES barrage.spec" ;;
7500
7501 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7502 esac
7503 done
7504
7505
7506 # If the user did not use the arguments to specify the items to instantiate,
7507 # then the envvar interface is used. Set only those that are not.
7508 # We use the long form for the default assignment because of an extremely
7509 # bizarre bug on SunOS 4.1.3.
7510 if $ac_need_defaults; then
7511 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
7512 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
7513 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
7514 fi
7515
7516 # Have a temporary directory for convenience. Make it in the build tree
7517 # simply because there is no reason against having it here, and in addition,
7518 # creating and moving files from /tmp can sometimes cause problems.
7519 # Hook for its removal unless debugging.
7520 # Note that there is a small window in which the directory will not be cleaned:
7521 # after its creation but before its name has been assigned to `$tmp'.
7522 $debug ||
7523 {
7524 tmp= ac_tmp=
7525 trap 'exit_status=$?
7526 : "${ac_tmp:=$tmp}"
7527 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7528 ' 0
7529 trap 'as_fn_exit 1' 1 2 13 15
7530 }
7531 # Create a (secure) tmp directory for tmp files.
7532
7533 {
7534 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7535 test -d "$tmp"
7536 } ||
7537 {
7538 tmp=./conf$$-$RANDOM
7539 (umask 077 && mkdir "$tmp")
7540 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7541 ac_tmp=$tmp
7542
7543 # Set up the scripts for CONFIG_FILES section.
7544 # No need to generate them if there are no CONFIG_FILES.
7545 # This happens for instance with `./config.status config.h'.
7546 if test -n "$CONFIG_FILES"; then
7547
7548
7549 ac_cr=`echo X | tr X '\015'`
7550 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7551 # But we know of no other shell where ac_cr would be empty at this
7552 # point, so we can use a bashism as a fallback.
7553 if test "x$ac_cr" = x; then
7554 eval ac_cr=\$\'\\r\'
7555 fi
7556 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7557 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7558 ac_cs_awk_cr='\\r'
7559 else
7560 ac_cs_awk_cr=$ac_cr
7561 fi
7562
7563 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7564 _ACEOF
7565
7566
7567 {
7568 echo "cat >conf$$subs.awk <<_ACEOF" &&
7569 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7570 echo "_ACEOF"
7571 } >conf$$subs.sh ||
7572 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7573 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7574 ac_delim='%!_!# '
7575 for ac_last_try in false false false false false :; do
7576 . ./conf$$subs.sh ||
7577 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7578
7579 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7580 if test $ac_delim_n = $ac_delim_num; then
7581 break
7582 elif $ac_last_try; then
7583 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7584 else
7585 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7586 fi
7587 done
7588 rm -f conf$$subs.sh
7589
7590 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7591 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7592 _ACEOF
7593 sed -n '
7594 h
7595 s/^/S["/; s/!.*/"]=/
7596 p
7597 g
7598 s/^[^!]*!//
7599 :repl
7600 t repl
7601 s/'"$ac_delim"'$//
7602 t delim
7603 :nl
7604 h
7605 s/\(.\{148\}\)..*/\1/
7606 t more1
7607 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7608 p
7609 n
7610 b repl
7611 :more1
7612 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7613 p
7614 g
7615 s/.\{148\}//
7616 t nl
7617 :delim
7618 h
7619 s/\(.\{148\}\)..*/\1/
7620 t more2
7621 s/["\\]/\\&/g; s/^/"/; s/$/"/
7622 p
7623 b
7624 :more2
7625 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7626 p
7627 g
7628 s/.\{148\}//
7629 t delim
7630 ' <conf$$subs.awk | sed '
7631 /^[^""]/{
7632 N
7633 s/\n//
7634 }
7635 ' >>$CONFIG_STATUS || ac_write_fail=1
7636 rm -f conf$$subs.awk
7637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7638 _ACAWK
7639 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7640 for (key in S) S_is_set[key] = 1
7641 FS = ""
7642
7643 }
7644 {
7645 line = $ 0
7646 nfields = split(line, field, "@")
7647 substed = 0
7648 len = length(field[1])
7649 for (i = 2; i < nfields; i++) {
7650 key = field[i]
7651 keylen = length(key)
7652 if (S_is_set[key]) {
7653 value = S[key]
7654 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7655 len += length(value) + length(field[++i])
7656 substed = 1
7657 } else
7658 len += 1 + keylen
7659 }
7660
7661 print line
7662 }
7663
7664 _ACAWK
7665 _ACEOF
7666 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7667 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7668 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7669 else
7670 cat
7671 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7672 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7673 _ACEOF
7674
7675 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7676 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7677 # trailing colons and then remove the whole line if VPATH becomes empty
7678 # (actually we leave an empty line to preserve line numbers).
7679 if test "x$srcdir" = x.; then
7680 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7681 h
7682 s///
7683 s/^/:/
7684 s/[ ]*$/:/
7685 s/:\$(srcdir):/:/g
7686 s/:\${srcdir}:/:/g
7687 s/:@srcdir@:/:/g
7688 s/^:*//
7689 s/:*$//
7690 x
7691 s/\(=[ ]*\).*/\1/
7692 G
7693 s/\n//
7694 s/^[^=]*=[ ]*$//
7695 }'
7696 fi
7697
7698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7699 fi # test -n "$CONFIG_FILES"
7700
7701 # Set up the scripts for CONFIG_HEADERS section.
7702 # No need to generate them if there are no CONFIG_HEADERS.
7703 # This happens for instance with `./config.status Makefile'.
7704 if test -n "$CONFIG_HEADERS"; then
7705 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7706 BEGIN {
7707 _ACEOF
7708
7709 # Transform confdefs.h into an awk script `defines.awk', embedded as
7710 # here-document in config.status, that substitutes the proper values into
7711 # config.h.in to produce config.h.
7712
7713 # Create a delimiter string that does not exist in confdefs.h, to ease
7714 # handling of long lines.
7715 ac_delim='%!_!# '
7716 for ac_last_try in false false :; do
7717 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7718 if test -z "$ac_tt"; then
7719 break
7720 elif $ac_last_try; then
7721 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7722 else
7723 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7724 fi
7725 done
7726
7727 # For the awk script, D is an array of macro values keyed by name,
7728 # likewise P contains macro parameters if any. Preserve backslash
7729 # newline sequences.
7730
7731 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7732 sed -n '
7733 s/.\{148\}/&'"$ac_delim"'/g
7734 t rset
7735 :rset
7736 s/^[ ]*#[ ]*define[ ][ ]*/ /
7737 t def
7738 d
7739 :def
7740 s/\\$//
7741 t bsnl
7742 s/["\\]/\\&/g
7743 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7744 D["\1"]=" \3"/p
7745 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7746 d
7747 :bsnl
7748 s/["\\]/\\&/g
7749 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7750 D["\1"]=" \3\\\\\\n"\\/p
7751 t cont
7752 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7753 t cont
7754 d
7755 :cont
7756 n
7757 s/.\{148\}/&'"$ac_delim"'/g
7758 t clear
7759 :clear
7760 s/\\$//
7761 t bsnlc
7762 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7763 d
7764 :bsnlc
7765 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7766 b cont
7767 ' <confdefs.h | sed '
7768 s/'"$ac_delim"'/"\\\
7769 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7770
7771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7772 for (key in D) D_is_set[key] = 1
7773 FS = ""
7774 }
7775 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7776 line = \$ 0
7777 split(line, arg, " ")
7778 if (arg[1] == "#") {
7779 defundef = arg[2]
7780 mac1 = arg[3]
7781 } else {
7782 defundef = substr(arg[1], 2)
7783 mac1 = arg[2]
7784 }
7785 split(mac1, mac2, "(") #)
7786 macro = mac2[1]
7787 prefix = substr(line, 1, index(line, defundef) - 1)
7788 if (D_is_set[macro]) {
7789 # Preserve the white space surrounding the "#".
7790 print prefix "define", macro P[macro] D[macro]
7791 next
7792 } else {
7793 # Replace #undef with comments. This is necessary, for example,
7794 # in the case of _POSIX_SOURCE, which is predefined and required
7795 # on some systems where configure will not decide to define it.
7796 if (defundef == "undef") {
7797 print "/*", prefix defundef, macro, "*/"
7798 next
7799 }
7800 }
7801 }
7802 { print }
7803 _ACAWK
7804 _ACEOF
7805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7806 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7807 fi # test -n "$CONFIG_HEADERS"
7808
7809
7810 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7811 shift
7812 for ac_tag
7813 do
7814 case $ac_tag in
7815 :[FHLC]) ac_mode=$ac_tag; continue;;
7816 esac
7817 case $ac_mode$ac_tag in
7818 :[FHL]*:*);;
7819 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7820 :[FH]-) ac_tag=-:-;;
7821 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7822 esac
7823 ac_save_IFS=$IFS
7824 IFS=:
7825 set x $ac_tag
7826 IFS=$ac_save_IFS
7827 shift
7828 ac_file=$1
7829 shift
7830
7831 case $ac_mode in
7832 :L) ac_source=$1;;
7833 :[FH])
7834 ac_file_inputs=
7835 for ac_f
7836 do
7837 case $ac_f in
7838 -) ac_f="$ac_tmp/stdin";;
7839 *) # Look for the file first in the build tree, then in the source tree
7840 # (if the path is not absolute). The absolute path cannot be DOS-style,
7841 # because $ac_f cannot contain `:'.
7842 test -f "$ac_f" ||
7843 case $ac_f in
7844 [\\/$]*) false;;
7845 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7846 esac ||
7847 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7848 esac
7849 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7850 as_fn_append ac_file_inputs " '$ac_f'"
7851 done
7852
7853 # Let's still pretend it is `configure' which instantiates (i.e., don't
7854 # use $as_me), people would be surprised to read:
7855 # /* config.h. Generated by config.status. */
7856 configure_input='Generated from '`
7857 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7858 `' by configure.'
7859 if test x"$ac_file" != x-; then
7860 configure_input="$ac_file. $configure_input"
7861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7862 printf "%s\n" "$as_me: creating $ac_file" >&6;}
7863 fi
7864 # Neutralize special characters interpreted by sed in replacement strings.
7865 case $configure_input in #(
7866 *\&* | *\|* | *\\* )
7867 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
7868 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7869 *) ac_sed_conf_input=$configure_input;;
7870 esac
7871
7872 case $ac_tag in
7873 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7874 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7875 esac
7876 ;;
7877 esac
7878
7879 ac_dir=`$as_dirname -- "$ac_file" ||
7880 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7881 X"$ac_file" : 'X\(//\)[^/]' \| \
7882 X"$ac_file" : 'X\(//\)$' \| \
7883 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7884 printf "%s\n" X"$ac_file" |
7885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7886 s//\1/
7887 q
7888 }
7889 /^X\(\/\/\)[^/].*/{
7890 s//\1/
7891 q
7892 }
7893 /^X\(\/\/\)$/{
7894 s//\1/
7895 q
7896 }
7897 /^X\(\/\).*/{
7898 s//\1/
7899 q
7900 }
7901 s/.*/./; q'`
7902 as_dir="$ac_dir"; as_fn_mkdir_p
7903 ac_builddir=.
7904
7905 case "$ac_dir" in
7906 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7907 *)
7908 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
7909 # A ".." for each directory in $ac_dir_suffix.
7910 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7911 case $ac_top_builddir_sub in
7912 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7913 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7914 esac ;;
7915 esac
7916 ac_abs_top_builddir=$ac_pwd
7917 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7918 # for backward compatibility:
7919 ac_top_builddir=$ac_top_build_prefix
7920
7921 case $srcdir in
7922 .) # We are building in place.
7923 ac_srcdir=.
7924 ac_top_srcdir=$ac_top_builddir_sub
7925 ac_abs_top_srcdir=$ac_pwd ;;
7926 [\\/]* | ?:[\\/]* ) # Absolute name.
7927 ac_srcdir=$srcdir$ac_dir_suffix;
7928 ac_top_srcdir=$srcdir
7929 ac_abs_top_srcdir=$srcdir ;;
7930 *) # Relative name.
7931 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7932 ac_top_srcdir=$ac_top_build_prefix$srcdir
7933 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7934 esac
7935 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7936
7937
7938 case $ac_mode in
7939 :F)
7940 #
7941 # CONFIG_FILE
7942 #
7943
7944 case $INSTALL in
7945 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7946 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7947 esac
7948 ac_MKDIR_P=$MKDIR_P
7949 case $MKDIR_P in
7950 [\\/$]* | ?:[\\/]* ) ;;
7951 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7952 esac
7953 _ACEOF
7954
7955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7956 # If the template does not know about datarootdir, expand it.
7957 # FIXME: This hack should be removed a few years after 2.60.
7958 ac_datarootdir_hack=; ac_datarootdir_seen=
7959 ac_sed_dataroot='
7960 /datarootdir/ {
7961 p
7962 q
7963 }
7964 /@datadir@/p
7965 /@docdir@/p
7966 /@infodir@/p
7967 /@localedir@/p
7968 /@mandir@/p'
7969 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7970 *datarootdir*) ac_datarootdir_seen=yes;;
7971 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7973 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7974 _ACEOF
7975 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7976 ac_datarootdir_hack='
7977 s&@datadir@&$datadir&g
7978 s&@docdir@&$docdir&g
7979 s&@infodir@&$infodir&g
7980 s&@localedir@&$localedir&g
7981 s&@mandir@&$mandir&g
7982 s&\\\${datarootdir}&$datarootdir&g' ;;
7983 esac
7984 _ACEOF
7985
7986 # Neutralize VPATH when `$srcdir' = `.'.
7987 # Shell code in configure.ac might set extrasub.
7988 # FIXME: do we really want to maintain this feature?
7989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7990 ac_sed_extra="$ac_vpsub
7991 $extrasub
7992 _ACEOF
7993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7994 :t
7995 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7996 s|@configure_input@|$ac_sed_conf_input|;t t
7997 s&@top_builddir@&$ac_top_builddir_sub&;t t
7998 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7999 s&@srcdir@&$ac_srcdir&;t t
8000 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8001 s&@top_srcdir@&$ac_top_srcdir&;t t
8002 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8003 s&@builddir@&$ac_builddir&;t t
8004 s&@abs_builddir@&$ac_abs_builddir&;t t
8005 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8006 s&@INSTALL@&$ac_INSTALL&;t t
8007 s&@MKDIR_P@&$ac_MKDIR_P&;t t
8008 $ac_datarootdir_hack
8009 "
8010 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8011 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8012
8013 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8014 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8015 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8016 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8018 which seems to be undefined. Please make sure it is defined" >&5
8019 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8020 which seems to be undefined. Please make sure it is defined" >&2;}
8021
8022 rm -f "$ac_tmp/stdin"
8023 case $ac_file in
8024 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8025 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8026 esac \
8027 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8028 ;;
8029 :H)
8030 #
8031 # CONFIG_HEADER
8032 #
8033 if test x"$ac_file" != x-; then
8034 {
8035 printf "%s\n" "/* $configure_input */" >&1 \
8036 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8037 } >"$ac_tmp/config.h" \
8038 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8039 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8041 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
8042 else
8043 rm -f "$ac_file"
8044 mv "$ac_tmp/config.h" "$ac_file" \
8045 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8046 fi
8047 else
8048 printf "%s\n" "/* $configure_input */" >&1 \
8049 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8050 || as_fn_error $? "could not create -" "$LINENO" 5
8051 fi
8052 # Compute "$ac_file"'s index in $config_headers.
8053 _am_arg="$ac_file"
8054 _am_stamp_count=1
8055 for _am_header in $config_headers :; do
8056 case $_am_header in
8057 $_am_arg | $_am_arg:* )
8058 break ;;
8059 * )
8060 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8061 esac
8062 done
8063 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8064 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8065 X"$_am_arg" : 'X\(//\)[^/]' \| \
8066 X"$_am_arg" : 'X\(//\)$' \| \
8067 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8068 printf "%s\n" X"$_am_arg" |
8069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8070 s//\1/
8071 q
8072 }
8073 /^X\(\/\/\)[^/].*/{
8074 s//\1/
8075 q
8076 }
8077 /^X\(\/\/\)$/{
8078 s//\1/
8079 q
8080 }
8081 /^X\(\/\).*/{
8082 s//\1/
8083 q
8084 }
8085 s/.*/./; q'`/stamp-h$_am_stamp_count
8086 ;;
8087
8088 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8089 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
8090 ;;
8091 esac
8092
8093
8094 case $ac_file$ac_mode in
8095 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8096 # Older Autoconf quotes --file arguments for eval, but not when files
8097 # are listed without --file. Let's play safe and only enable the eval
8098 # if we detect the quoting.
8099 # TODO: see whether this extra hack can be removed once we start
8100 # requiring Autoconf 2.70 or later.
8101 case $CONFIG_FILES in #(
8102 *\'*) :
8103 eval set x "$CONFIG_FILES" ;; #(
8104 *) :
8105 set x $CONFIG_FILES ;; #(
8106 *) :
8107 ;;
8108 esac
8109 shift
8110 # Used to flag and report bootstrapping failures.
8111 am_rc=0
8112 for am_mf
8113 do
8114 # Strip MF so we end up with the name of the file.
8115 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
8116 # Check whether this is an Automake generated Makefile which includes
8117 # dependency-tracking related rules and includes.
8118 # Grep'ing the whole file directly is not great: AIX grep has a line
8119 # limit of 2048, but all sed's we know have understand at least 4000.
8120 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
8121 || continue
8122 am_dirpart=`$as_dirname -- "$am_mf" ||
8123 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8124 X"$am_mf" : 'X\(//\)[^/]' \| \
8125 X"$am_mf" : 'X\(//\)$' \| \
8126 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
8127 printf "%s\n" X"$am_mf" |
8128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8129 s//\1/
8130 q
8131 }
8132 /^X\(\/\/\)[^/].*/{
8133 s//\1/
8134 q
8135 }
8136 /^X\(\/\/\)$/{
8137 s//\1/
8138 q
8139 }
8140 /^X\(\/\).*/{
8141 s//\1/
8142 q
8143 }
8144 s/.*/./; q'`
8145 am_filepart=`$as_basename -- "$am_mf" ||
8146 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
8147 X"$am_mf" : 'X\(//\)$' \| \
8148 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
8149 printf "%s\n" X/"$am_mf" |
8150 sed '/^.*\/\([^/][^/]*\)\/*$/{
8151 s//\1/
8152 q
8153 }
8154 /^X\/\(\/\/\)$/{
8155 s//\1/
8156 q
8157 }
8158 /^X\/\(\/\).*/{
8159 s//\1/
8160 q
8161 }
8162 s/.*/./; q'`
8163 { echo "$as_me:$LINENO: cd "$am_dirpart" \
8164 && sed -e '/# am--include-marker/d' "$am_filepart" \
8165 | $MAKE -f - am--depfiles" >&5
8166 (cd "$am_dirpart" \
8167 && sed -e '/# am--include-marker/d' "$am_filepart" \
8168 | $MAKE -f - am--depfiles) >&5 2>&5
8169 ac_status=$?
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); } || am_rc=$?
8172 done
8173 if test $am_rc -ne 0; then
8174 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8175 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8176 as_fn_error $? "Something went wrong bootstrapping makefile fragments
8177 for automatic dependency tracking. If GNU make was not used, consider
8178 re-running the configure script with MAKE=\"gmake\" (or whatever is
8179 necessary). You can also try re-running configure with the
8180 '--disable-dependency-tracking' option to at least be able to build
8181 the package (albeit without support for automatic dependency tracking).
8182 See \`config.log' for more details" "$LINENO" 5; }
8183 fi
8184 { am_dirpart=; unset am_dirpart;}
8185 { am_filepart=; unset am_filepart;}
8186 { am_mf=; unset am_mf;}
8187 { am_rc=; unset am_rc;}
8188 rm -f conftest-deps.mk
8189 }
8190 ;;
8191
8192 esac
8193 done # for ac_tag
8194
8195
8196 as_fn_exit 0
8197 _ACEOF
8198 ac_clean_files=$ac_clean_files_save
8199
8200 test $ac_write_fail = 0 ||
8201 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8202
8203
8204 # configure is writing to config.log, and then calls config.status.
8205 # config.status does its own redirection, appending to config.log.
8206 # Unfortunately, on DOS this fails, as config.log is still kept open
8207 # by configure, so config.status won't be able to write to it; its
8208 # output is simply discarded. So we exec the FD to /dev/null,
8209 # effectively closing config.log, so it can be properly (re)opened and
8210 # appended to by config.status. When coming back to configure, we
8211 # need to make the FD available again.
8212 if test "$no_create" != yes; then
8213 ac_cs_success=:
8214 ac_config_status_args=
8215 test "$silent" = yes &&
8216 ac_config_status_args="$ac_config_status_args --quiet"
8217 exec 5>/dev/null
8218 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8219 exec 5>>config.log
8220 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8221 # would make configure fail if this is the last instruction.
8222 $ac_cs_success || as_fn_exit 1
8223 fi
8224 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8226 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8227 fi
8228
8229
8230