mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
Use AC_COMPILE_IFELSE → AC_LINK_IFELSE in ax_tls.m4
On AIX, _Thread_local may compile but not link
This commit is contained in:
Vendored
+2
-2
@@ -14,8 +14,8 @@
|
||||
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
|
||||
m4_ifndef([AC_AUTOCONF_VERSION],
|
||||
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
|
||||
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.72],,
|
||||
[m4_warning([this file was generated for autoconf 2.72.
|
||||
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.73],,
|
||||
[m4_warning([this file was generated for autoconf 2.73.
|
||||
You have another version of autoconf. It may work, but is not guaranteed to.
|
||||
If you have problems, you may need to regenerate the build system entirely.
|
||||
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
|
||||
|
||||
+1
-1
@@ -52,7 +52,7 @@ AC_DEFUN([AX_TLS], [
|
||||
[for ax_tls_keyword in thread_local _Thread_local __thread '__declspec(thread)' none; do
|
||||
AS_CASE([$ax_tls_keyword],
|
||||
[none], [ac_cv_tls=none ; break],
|
||||
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
|
||||
[AC_LINK_IFELSE([AC_LANG_PROGRAM(
|
||||
[#include <stdlib.h>],
|
||||
[static $ax_tls_keyword int bar;]
|
||||
)],
|
||||
|
||||
Reference in New Issue
Block a user