Skip to content
Snippets Groups Projects
Commit 82ffd6f8 authored by Niels Möller's avatar Niels Möller
Browse files

(ASM_ALIGN_LOG): Check if .align directive is

logarithmic.

Rev: src/nettle/configure.ac:1.75
parent 4ce50746
No related branches found
No related tags found
No related merge requests found
...@@ -186,6 +186,7 @@ ASM_SYMBOL_PREFIX='' ...@@ -186,6 +186,7 @@ ASM_SYMBOL_PREFIX=''
ASM_ELF_STYLE='no' ASM_ELF_STYLE='no'
ASM_TYPE_FUNCTION='' ASM_TYPE_FUNCTION=''
ASM_MARK_NOEXEC_STACK='' ASM_MARK_NOEXEC_STACK=''
ASM_ALIGN_LOG=''
if test x$enable_assembler = xyes ; then if test x$enable_assembler = xyes ; then
AC_CACHE_CHECK([if globals are prefixed by underscore], AC_CACHE_CHECK([if globals are prefixed by underscore],
...@@ -268,12 +269,23 @@ foo: ...@@ -268,12 +269,23 @@ foo:
ASM_TYPE_FUNCTION='#function' ASM_TYPE_FUNCTION='#function'
fi fi
fi fi
AC_CACHE_CHECK([if .align assembly directive is logarithmic],
[nettle_cv_asm_align_log],
[GMP_TRY_ASSEMBLE([
.align 3
],
[nettle_cv_asm_align_log=yes],
[nettle_cv_asm_align_log=no])])
if test x$nettle_cv_asm_align_log = xyes ; then
ASM_ALIGN_LOG='yes'
fi
fi fi
AC_SUBST(ASM_SYMBOL_PREFIX) AC_SUBST(ASM_SYMBOL_PREFIX)
AC_SUBST(ASM_ELF_STYLE) AC_SUBST(ASM_ELF_STYLE)
AC_SUBST(ASM_TYPE_FUNCTION) AC_SUBST(ASM_TYPE_FUNCTION)
AC_SUBST(ASM_MARK_NOEXEC_STACK) AC_SUBST(ASM_MARK_NOEXEC_STACK)
AC_SUBST(ASM_ALIGN_LOG)
AC_SUBST(SHLIBCFLAGS) AC_SUBST(SHLIBCFLAGS)
AC_SUBST(SHLIBMAJOR) AC_SUBST(SHLIBMAJOR)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment