mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
Add support for FilC
This commit is contained in:
@@ -5765,6 +5765,37 @@ fi
|
||||
|
||||
fi
|
||||
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we are using FilC" >&5
|
||||
printf %s "checking if we are using FilC... " >&6; }
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
#ifndef __FILC__
|
||||
# error __FILC__ is not defined
|
||||
#endif
|
||||
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
if ac_fn_c_try_compile "$LINENO"
|
||||
then :
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
printf "%s\n" "yes" >&6; }
|
||||
enable_asm="no"
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiling with FilC - asm implementations disabled" >&5
|
||||
printf "%s\n" "$as_me: WARNING: compiling with FilC - asm implementations disabled" >&2;}
|
||||
else case e in #(
|
||||
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||
printf "%s\n" "no" >&6; } ;;
|
||||
esac
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
||||
|
||||
# Check whether --enable-pie was given.
|
||||
if test ${enable_pie+y}
|
||||
then :
|
||||
@@ -21842,6 +21873,9 @@ printf %s "checking whether we can use inline asm code... " >&6; }
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
#ifdef __FILC__
|
||||
# error inline assembly is not supported with FilC
|
||||
#endif
|
||||
|
||||
int
|
||||
main (void)
|
||||
|
||||
@@ -97,6 +97,17 @@ AS_IF([test "x$EMSCRIPTEN" != "x"], [
|
||||
])
|
||||
])
|
||||
|
||||
AC_MSG_CHECKING([if we are using FilC])
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||
#ifndef __FILC__
|
||||
# error __FILC__ is not defined
|
||||
#endif
|
||||
]], [[]])],
|
||||
[AC_MSG_RESULT(yes)
|
||||
enable_asm="no"
|
||||
AC_MSG_WARN([compiling with FilC - asm implementations disabled])],
|
||||
[AC_MSG_RESULT(no)])
|
||||
|
||||
AC_ARG_ENABLE(pie,
|
||||
[AS_HELP_STRING(--disable-pie,Do not produce position independent executables)],
|
||||
enable_pie=$enableval, enable_pie="maybe")
|
||||
@@ -696,6 +707,9 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
|
||||
|
||||
AC_MSG_CHECKING(whether we can use inline asm code)
|
||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
|
||||
#ifdef __FILC__
|
||||
# error inline assembly is not supported with FilC
|
||||
#endif
|
||||
]], [[
|
||||
int a = 42;
|
||||
int *pnt = &a;
|
||||
|
||||
Reference in New Issue
Block a user