summaryrefslogtreecommitdiff
path: root/Build/source/libs/luajit/configure
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2016-03-21 17:01:19 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2016-03-21 17:01:19 +0000
commit7667b94f1c155159d239f0953c6c8ce7900ac044 (patch)
tree2e9fd3b50dc3db3c20c988e7f1b2204e591affdb /Build/source/libs/luajit/configure
parent85a9b0d9ad928df50c0165e55208a04f6d45e09d (diff)
libs/luajit: sync with the upstream
git-svn-id: svn://tug.org/texlive/trunk@40094 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/luajit/configure')
-rwxr-xr-xBuild/source/libs/luajit/configure71
1 files changed, 71 insertions, 0 deletions
diff --git a/Build/source/libs/luajit/configure b/Build/source/libs/luajit/configure
index a4b8e7a3b14..a159aa0d0e5 100755
--- a/Build/source/libs/luajit/configure
+++ b/Build/source/libs/luajit/configure
@@ -639,6 +639,7 @@ LTLIBOBJS
LIBOBJS
subdirs
LUAJIT_TREE
+LUAJIT_HAS_LOG2
build_FALSE
build_TRUE
LIBLUAJIT_LDEXTRA
@@ -1992,6 +1993,52 @@ rm -f conftest.val
as_fn_set_status $ac_retval
} # ac_fn_c_compute_int
+
+# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
+# ---------------------------------------------
+# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
+# accordingly.
+ac_fn_c_check_decl ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ as_decl_name=`echo $2|sed 's/ *(.*//'`
+ as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
+$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
+if eval \${$3+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+int
+main ()
+{
+#ifndef $as_decl_name
+#ifdef __cplusplus
+ (void) $as_decl_use;
+#else
+ (void) $as_decl_name;
+#endif
+#endif
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ eval "$3=yes"
+else
+ eval "$3=no"
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+eval ac_res=\$$3
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+
+} # ac_fn_c_check_decl
cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
@@ -14335,6 +14382,30 @@ fi
echo timestamp >config.force
fi
+# Check log2, on some systems is still not defined
+LUAJIT_HAS_LOG2=
+ac_fn_c_check_decl "$LINENO" "log2" "ac_cv_have_decl_log2" "#include <math.h>
+"
+if test "x$ac_cv_have_decl_log2" = xyes; then :
+ ac_have_decl=1
+else
+ ac_have_decl=0
+fi
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_DECL_LOG2 $ac_have_decl
+_ACEOF
+if test $ac_have_decl = 1; then :
+
+else
+ LUAJIT_HAS_LOG2=-DLUAJIT_NO_LOG2
+fi
+
+
+
+
+
+
LUAJIT_TREE=LuaJIT-src