build: remove NO_PER_THREAD_LOCALE stuff

NO_PER_THREAD_LOCALE has been replaced by HAVE__CONFIGTHREADLOCALE and
HAVE_USELOCALE.

Also remove HAVE_DECL__CONFIGTHREADLOCALE which was used only for
NO_PER_THREAD_LOCALE.
This commit is contained in:
Juha Sointusalo 2018-03-22 17:45:49 +02:00
parent f97421a735
commit 50a79e0f34
2 changed files with 1 additions and 17 deletions

View File

@ -638,14 +638,6 @@ AH_TOP([
]) ])
AH_BOTTOM([ AH_BOTTOM([
#if !HAVE_DECL__CONFIGTHREADLOCALE
#define NO_PER_THREAD_LOCALE 1
#undef HAVE__CONFIGTHREADLOCALE
#else
#undef NO_PER_THREAD_LOCALE
#define HAVE__CONFIGTHREADLOCALE 1
#endif
#ifndef HAVE_RES_INIT #ifndef HAVE_RES_INIT
#define res_init() (0) #define res_init() (0)
#endif #endif
@ -926,7 +918,7 @@ AC_PROG_GCC_TRADITIONAL
AC_FUNC_VPRINTF AC_FUNC_VPRINTF
AC_CHECK_FUNCS([ether_ntoa setpriority sched_setscheduler strlcpy strlcat strcasestr strcasecmp sigaction getutent setutent getisax strdup _strdup strdupa _strdupa daemon stat64 putenv setenv unsetenv res_init strtoull localtime localtime_r gmtime gmtime_r uselocale _configthreadlocale]) AC_CHECK_FUNCS([ether_ntoa setpriority sched_setscheduler strlcpy strlcat strcasestr strcasecmp sigaction getutent setutent getisax strdup _strdup strdupa _strdupa daemon stat64 putenv setenv unsetenv res_init strtoull localtime localtime_r gmtime gmtime_r uselocale _configthreadlocale])
AC_CHECK_DECLS([_fpreset, fpreset, _configthreadlocale], AC_CHECK_DECLS([_fpreset, fpreset],
[],[],[[ [],[],[[
#include <stdio.h> #include <stdio.h>
#if HAVE_SYS_TYPES_H #if HAVE_SYS_TYPES_H
@ -973,12 +965,6 @@ AC_CHECK_DECLS([_fpreset, fpreset, _configthreadlocale],
#ifdef HAVE_MATH_H #ifdef HAVE_MATH_H
#include <math.h> #include <math.h>
#endif #endif
#ifdef HAVE_LOCALE_H
#include <locale.h>
#endif
#ifdef HAVE_XLOCALE_H
#include <xlocale.h>
#endif
]]) ]])
dnl Checks for typedefs, structures, and compiler characteristics. dnl Checks for typedefs, structures, and compiler characteristics.

View File

@ -96,8 +96,6 @@
#define HAVE_DECL__FPRESET 1 #define HAVE_DECL__FPRESET 1
#define HAVE_DECL___CPUID 1 #define HAVE_DECL___CPUID 1
#define HAVE_MSVCRT 1 #define HAVE_MSVCRT 1
#undef NO_PER_THREAD_LOCALE
#define HAVE_DECL__CONFIGTHREADLOCALE 1
#define HAVE__CONFIGTHREADLOCALE 1 #define HAVE__CONFIGTHREADLOCALE 1
#define HAVE_DECL___CPUID 1 #define HAVE_DECL___CPUID 1