Debian Codegraph @

libs/luajit/native/configure

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