summaryrefslogtreecommitdiff
path: root/Build/source/libs/luajit/configure
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/luajit/configure')
-rwxr-xr-xBuild/source/libs/luajit/configure252
1 files changed, 225 insertions, 27 deletions
diff --git a/Build/source/libs/luajit/configure b/Build/source/libs/luajit/configure
index 039ddf2e84c..ecf9dcba945 100755
--- a/Build/source/libs/luajit/configure
+++ b/Build/source/libs/luajit/configure
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for luajit for TeX Live 2.0.4.
+# Generated by GNU Autoconf 2.69 for luajit for TeX Live 2.1.0-beta1.
#
# Report bugs to <tex-k@tug.org>.
#
@@ -590,12 +590,12 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='luajit for TeX Live'
PACKAGE_TARNAME='luajit-for-tex-live'
-PACKAGE_VERSION='2.0.4'
-PACKAGE_STRING='luajit for TeX Live 2.0.4'
+PACKAGE_VERSION='2.1.0-beta1'
+PACKAGE_STRING='luajit for TeX Live 2.1.0-beta1'
PACKAGE_BUGREPORT='tex-k@tug.org'
PACKAGE_URL=''
-ac_unique_file="LuaJIT-2.0.4/src/luajit.h"
+ac_unique_file="LuaJIT-2.1.0-beta1/src/luajit.h"
# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
@@ -641,8 +641,10 @@ subdirs
LUAJIT_TREE
build_FALSE
build_TRUE
+LIBLUAJIT_LDEXTRA
LJVM_MODE
LJHOST
+LUAJIT_CFLAGS
PEOBJ_FALSE
PEOBJ_TRUE
DASM_ARCH
@@ -1343,7 +1345,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures luajit for TeX Live 2.0.4 to adapt to many kinds of systems.
+\`configure' configures luajit for TeX Live 2.1.0-beta1 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1414,7 +1416,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of luajit for TeX Live 2.0.4:";;
+ short | recursive ) echo "Configuration of luajit for TeX Live 2.1.0-beta1:";;
esac
cat <<\_ACEOF
@@ -1533,7 +1535,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-luajit for TeX Live configure 2.0.4
+luajit for TeX Live configure 2.1.0-beta1
generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
@@ -1994,7 +1996,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by luajit for TeX Live $as_me 2.0.4, which was
+It was created by luajit for TeX Live $as_me 2.1.0-beta1, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ $0 $@
@@ -3917,7 +3919,7 @@ fi
# Define the identity of the package.
PACKAGE='luajit-for-tex-live'
- VERSION='2.0.4'
+ VERSION='2.1.0-beta1'
cat >>confdefs.h <<_ACEOF
@@ -4921,6 +4923,183 @@ else
fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
+$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
+if ${ac_cv_prog_cc_c99+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_cv_prog_cc_c99=no
+ac_save_CC=$CC
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <stdarg.h>
+#include <stdbool.h>
+#include <stdlib.h>
+#include <wchar.h>
+#include <stdio.h>
+
+// Check varargs macros. These examples are taken from C99 6.10.3.5.
+#define debug(...) fprintf (stderr, __VA_ARGS__)
+#define showlist(...) puts (#__VA_ARGS__)
+#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
+static void
+test_varargs_macros (void)
+{
+ int x = 1234;
+ int y = 5678;
+ debug ("Flag");
+ debug ("X = %d\n", x);
+ showlist (The first, second, and third items.);
+ report (x>y, "x is %d but y is %d", x, y);
+}
+
+// Check long long types.
+#define BIG64 18446744073709551615ull
+#define BIG32 4294967295ul
+#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
+#if !BIG_OK
+ your preprocessor is broken;
+#endif
+#if BIG_OK
+#else
+ your preprocessor is broken;
+#endif
+static long long int bignum = -9223372036854775807LL;
+static unsigned long long int ubignum = BIG64;
+
+struct incomplete_array
+{
+ int datasize;
+ double data[];
+};
+
+struct named_init {
+ int number;
+ const wchar_t *name;
+ double average;
+};
+
+typedef const char *ccp;
+
+static inline int
+test_restrict (ccp restrict text)
+{
+ // See if C++-style comments work.
+ // Iterate through items via the restricted pointer.
+ // Also check for declarations in for loops.
+ for (unsigned int i = 0; *(text+i) != '\0'; ++i)
+ continue;
+ return 0;
+}
+
+// Check varargs and va_copy.
+static void
+test_varargs (const char *format, ...)
+{
+ va_list args;
+ va_start (args, format);
+ va_list args_copy;
+ va_copy (args_copy, args);
+
+ const char *str;
+ int number;
+ float fnumber;
+
+ while (*format)
+ {
+ switch (*format++)
+ {
+ case 's': // string
+ str = va_arg (args_copy, const char *);
+ break;
+ case 'd': // int
+ number = va_arg (args_copy, int);
+ break;
+ case 'f': // float
+ fnumber = va_arg (args_copy, double);
+ break;
+ default:
+ break;
+ }
+ }
+ va_end (args_copy);
+ va_end (args);
+}
+
+int
+main ()
+{
+
+ // Check bool.
+ _Bool success = false;
+
+ // Check restrict.
+ if (test_restrict ("String literal") == 0)
+ success = true;
+ char *restrict newvar = "Another string";
+
+ // Check varargs.
+ test_varargs ("s, d' f .", "string", 65, 34.234);
+ test_varargs_macros ();
+
+ // Check flexible array members.
+ struct incomplete_array *ia =
+ malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
+ ia->datasize = 10;
+ for (int i = 0; i < ia->datasize; ++i)
+ ia->data[i] = i * 1.234;
+
+ // Check named initializers.
+ struct named_init ni = {
+ .number = 34,
+ .name = L"Test wide string",
+ .average = 543.34343,
+ };
+
+ ni.number = 58;
+
+ int dynamic_array[ni.number];
+ dynamic_array[ni.number - 1] = 543;
+
+ // work around unused variable warnings
+ return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
+ || dynamic_array[ni.number - 1] != 543);
+
+ ;
+ return 0;
+}
+_ACEOF
+for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
+do
+ CC="$ac_save_CC $ac_arg"
+ if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_prog_cc_c99=$ac_arg
+fi
+rm -f core conftest.err conftest.$ac_objext
+ test "x$ac_cv_prog_cc_c99" != "xno" && break
+done
+rm -f conftest.$ac_ext
+CC=$ac_save_CC
+
+fi
+# AC_CACHE_VAL
+case "x$ac_cv_prog_cc_c99" in
+ x)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
+$as_echo "none needed" >&6; } ;;
+ xno)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
+$as_echo "unsupported" >&6; } ;;
+ *)
+ CC="$CC $ac_cv_prog_cc_c99"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
+$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
+esac
+if test "x$ac_cv_prog_cc_c99" != xno; then :
+
+fi
+
+
# By default we simply use the C compiler to build assembly code.
test "${CCAS+set}" = set || CCAS=$CC
@@ -5158,10 +5337,10 @@ $as_echo "no, using $LN_S" >&6; }
fi
-LUAJITVERSION=2.0.4
+LUAJITVERSION=2.1.0-beta1
-LUAJIT_LT_VERSINFO=2:4:0
+LUAJIT_LT_VERSINFO=3:0:1
case `pwd` in
@@ -13955,7 +14134,7 @@ case $host_os in #(
LJHOST='Other' ;;
esac
lj_save_CPPFLAGS=$CPPFLAGS
-CPPFLAGS="$CPPFLAGS -I$srcdir/LuaJIT-2.0.4/src $LUAJIT_DEFINES -dM"
+CPPFLAGS="$CPPFLAGS -I$srcdir/LuaJIT-2.1.0-beta1/src $LUAJIT_DEFINES -dM"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <lj_arch.h>
@@ -13968,17 +14147,22 @@ if grep 'LJ_TARGET_X64 ' conftest.i >/dev/null 2>&1; then :
LJARCH=x64
elif grep 'LJ_TARGET_X86 ' conftest.i >/dev/null 2>&1; then :
LJARCH=x86
- LUAJIT_DEFINES="$LUAJIT_DEFINES -march=i686"
+ LUAJIT_CFLAGS='-march=i686 -msse -msse2 -mfpmath=sse'
elif grep 'LJ_TARGET_ARM ' conftest.i >/dev/null 2>&1; then :
LJARCH=arm
+elif grep 'LJ_TARGET_ARM64 ' conftest.i >/dev/null 2>&1; then :
+ LJARCH=arm64
elif grep 'LJ_TARGET_PPC ' conftest.i >/dev/null 2>&1; then :
LJARCH=ppc
-elif grep 'LJ_TARGET_PPCSPE ' conftest.i >/dev/null 2>&1; then :
- LJARCH=ppcspe
+ if grep 'LJ_LE 1' conftest.i >/dev/null 2>&1; then :
+ echo '-DLJ_ARCH_ENDIAN=LUAJIT_LE' >>native_flags
+else
+ echo '-DLJ_ARCH_ENDIAN=LUAJIT_BE' >>native_flags
+fi
elif grep 'LJ_TARGET_MIPS ' conftest.i >/dev/null 2>&1; then :
LJARCH=mips
if grep 'MIPSEL ' conftest.i >/dev/null 2>&1; then :
- echo '-D__MPISEL__=1' >>native_flags
+ echo '-D__MIPSEL__=1' >>native_flags
fi
else
as_fn_error $? "Sorry, unsupported architecture" "$LINENO" 5
@@ -13988,8 +14172,9 @@ if grep 'LJ_TARGET_PS3 1'conftest.i >/dev/null 2>&1; then :
echo '-D__CELLOS_LV2__' >>native_flags
LUAJIT_DEFINES="$LUAJIT_DEFINES -DLUAJIT_USE_SYSMALLOC"
fi
-if grep 'LJ_NO_UNWIND 1'conftest.i >/dev/null 2>&1; then :
- echo '-DLUAJIT_NO_UNWIND' >>native_flags
+if grep 'LJ_NO_UNWIND 1' conftest.i >/dev/null 2>&1; then :
+ echo '-D NO_UNWIND' >>dynasm_flags
+ echo '-DLUAJIT_NO_UNWIND' >>native_flags
fi
echo "-DLUAJIT_TARGET=LUAJIT_ARCH_$LJARCH" >>native_flags
if grep 'LJ_ARCH_BITS 64' conftest.i >/dev/null 2>&1; then :
@@ -14031,7 +14216,11 @@ case $LJARCH in #(
echo '-D SSE' >>dynasm_flags
fi ;; #(
x64) :
- DASM_ARCH=x86 ;; #(
+ if grep 'LJ_FR2 1' conftest.i >/dev/null 2>&1; then :
+
+else
+ DASM_ARCH=x86
+fi ;; #(
arm) :
if test "x$LJHOST" = xiOS; then :
echo '-D IOS' >>dynasm_flags
@@ -14040,15 +14229,15 @@ fi ;; #(
if grep 'LJ_ARCH_SQRT 1' conftest.i >/dev/null 2>&1; then :
echo '-D SQRT' >>dynasm_flags
fi
- if grep 'LJ_ARCH_SQRT 1' conftest.i >/dev/null 2>&1; then :
- echo '-D SQRT' >>dynasm_flags
-fi
if grep 'LJ_ARCH_ROUND 1' conftest.i >/dev/null 2>&1; then :
echo '-D ROUND' >>dynasm_flags
fi
- if grep 'LJ_ARCH_PPC64 1' conftest.i >/dev/null 2>&1; then :
+ if grep 'LJ_ARCH_PPC32ON64 1' conftest.i >/dev/null 2>&1; then :
echo '-D GPR64' >>dynasm_flags
fi
+ if grep 'LJ_ARCH_PPC64 ' conftest.i >/dev/null 2>&1; then :
+ DASM_ARCH=ppc64
+fi
if test "x$LJHOST" = xPS3; then :
echo '-D PPE -D TOC' >>dynasm_flags
fi ;; #(
@@ -14077,7 +14266,7 @@ CPPFLAGS=$lj_save_CPPFLAGS
case $LJHOST in #(
Windows) :
LJVM_MODE=peobj
- LUAJIT_DEFINES="$LUAJIT_DEFINES -malign-double" ;; #(
+ LUAJIT_CFLAGS=-malign-double ;; #(
Darwin | iOS) :
LJVM_MODE=machasm ;; #(
*) :
@@ -14095,6 +14284,15 @@ fi
+
+case $host_os:$host_cpu in #(
+ *darwin*:x86_64) :
+ LIBLUAJIT_LDEXTRA='-image_base 7fff04c4a000' ;; #(
+ *) :
+ ;;
+esac
+
+
if test "x$enable_build" != xno; then
build_TRUE=
build_FALSE='#'
@@ -14113,7 +14311,7 @@ fi
echo timestamp >config.force
fi
-LUAJIT_TREE=LuaJIT-2.0.4
+LUAJIT_TREE=LuaJIT-2.1.0-beta1
ac_config_headers="$ac_config_headers config.h"
@@ -14680,7 +14878,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by luajit for TeX Live $as_me 2.0.4, which was
+This file was extended by luajit for TeX Live $as_me 2.1.0-beta1, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -14746,7 +14944,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
-luajit for TeX Live config.status 2.0.4
+luajit for TeX Live config.status 2.1.0-beta1
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"