Without this patch, no thread locking or *_r functions were being used.
# functions are marked "not found", which is perfect.
#
if test "$enable_thread_safety" = yes -a "$NEED_REENTRANT_FUNCS" = yes ; then
+
+cat >>confdefs.h <<\_ACEOF
+#define NEED_REENTRANT_FUNCS 1
+_ACEOF
+
_CFLAGS="$CFLAGS"
_LIBS="$LIBS"
CFLAGS="$CFLAGS $THREAD_CPPFLAGS"
# functions are marked "not found", which is perfect.
#
if test "$enable_thread_safety" = yes -a "$NEED_REENTRANT_FUNCS" = yes ; then
+AC_DEFINE(NEED_REENTRANT_FUNCS, 1, [Define if non *_r libc functions are not thread safe])
_CFLAGS="$CFLAGS"
_LIBS="$LIBS"
CFLAGS="$CFLAGS $THREAD_CPPFLAGS"
/* Define as the maximum alignment requirement of any C data type. */
#undef MAXIMUM_ALIGNOF
+/* Define if non *_r libc functions are not thread safe */
+#undef NEED_REENTRANT_FUNCS
+
/* Define to the address where bug reports for this package should be sent. */
#undef PACKAGE_BUGREPORT