Sun, 28 Aug 2016 23:05:17 -0400
Remove more configure checks for C89 functions.
They should all exist in a standard installation.
--- a/config.h.mingw Sun Aug 28 20:43:17 2016 -0400 +++ b/config.h.mingw Sun Aug 28 23:05:17 2016 -0400 @@ -40,9 +40,6 @@ /* Define if you have the external 'altzone' variable. */ /* #undef HAVE_ALTZONE */ -/* Define to 1 if you have the `atexit' function. */ -#define HAVE_ATEXIT 1 - /* Define to 1 if you have the `bind_textdomain_codeset' function. */ /* #undef HAVE_BIND_TEXTDOMAIN_CODESET */ @@ -159,15 +156,6 @@ /* Define if we have support for application media type. */ /* #undef HAVE_MEDIA_APPLICATION */ -/* Define to 1 if you have the `memcpy' function. */ -#define HAVE_MEMCPY 1 - -/* Define to 1 if you have the `memmove' function. */ -#define HAVE_MEMMOVE 1 - -/* Define to 1 if you have the <memory.h> header file. */ -#define HAVE_MEMORY_H 1 - /* Define to 1 if you have the `mono_jit_init' function. */ /* #undef HAVE_MONO_JIT_INIT */ @@ -213,9 +201,6 @@ /* Define to 1 if you have the `random' function. */ /* #define HAVE_RANDOM 1 */ -/* Define to 1 if you have the `setlocale' function. */ -#define HAVE_SETLOCALE 1 - /* Define to 1 if you have the <sgtty.h> header file. */ /* #define HAVE_SGTTY_H 1 */ @@ -237,24 +222,15 @@ /* Define to 1 if you have the <stdint.h> header file. */ #define HAVE_STDINT_H 1 -/* Define to 1 if you have the `strchr' function. */ -#define HAVE_STRCHR 1 - /* Define to 1 if you have the `strdup' function. */ #define HAVE_STRDUP 1 -/* Define to 1 if you have the `strerror' function. */ -#define HAVE_STRERROR 1 - /* Define to 1 if you have a strftime() that supports the %z format string. */ /* #undef HAVE_STRFTIME_Z_FORMAT */ /* Define to 1 if you have the <strings.h> header file. */ #define HAVE_STRINGS_H 1 -/* Define to 1 if you have the `strstr' function. */ -#define HAVE_STRSTR 1 - /* Define if struct sockaddr has an sa_len member */ /* #undef HAVE_STRUCT_SOCKADDR_SA_LEN */ @@ -332,9 +308,6 @@ /* Define to 1 if you have the <unistd.h> header file. */ /*#define HAVE_UNISTD_H 1*/ -/* Define to 1 if you have the `vprintf' function. */ -#define HAVE_VPRINTF 1 - /* Define to 1 if you have X11 */ /* #define HAVE_X11 1 */
--- a/configure.ac Sun Aug 28 20:43:17 2016 -0400 +++ b/configure.ac Sun Aug 28 23:05:17 2016 -0400 @@ -249,7 +249,7 @@ AC_SUBST([FINCH_PLUGINDIR]) dnl Checks for library functions. -AC_CHECK_FUNCS(strdup strstr atexit setlocale) +AC_CHECK_FUNCS(strdup) dnl Checks for getopt in standard library AC_CHECK_FUNCS(getopt_long,, [ @@ -2088,8 +2088,8 @@ AC_MSG_CHECKING(for me pot o' gold) AC_MSG_RESULT(no) AC_CHECK_FUNCS(gethostid lrand48 timegm) -AC_CHECK_FUNCS(memcpy memmove random strchr strerror vprintf) -AC_CHECK_HEADERS(malloc.h paths.h sgtty.h stdarg.h sys/cdefs.h) +AC_CHECK_FUNCS(random) +AC_CHECK_HEADERS(paths.h sgtty.h sys/cdefs.h) AC_CHECK_HEADERS(sys/file.h sys/filio.h sys/ioctl.h sys/msgbuf.h) AC_CHECK_HEADERS(sys/select.h sys/uio.h sys/wait.h) AC_CHECK_HEADERS(termios.h)
--- a/finch/libfinch.c Sun Aug 28 20:43:17 2016 -0400 +++ b/finch/libfinch.c Sun Aug 28 23:05:17 2016 -0400 @@ -284,9 +284,7 @@ textdomain(PACKAGE); #endif -#ifdef HAVE_SETLOCALE setlocale(LC_ALL, ""); -#endif /* scan command-line options */ opterr = 1;
--- a/libpurple/protocols/zephyr/Zinternal.c Sun Aug 28 20:43:17 2016 -0400 +++ b/libpurple/protocols/zephyr/Zinternal.c Sun Aug 28 23:05:17 2016 -0400 @@ -946,11 +946,7 @@ va_list args; void *closure; { -#ifdef HAVE_VPRINTF vfprintf (stderr, format, args); -#else - _doprnt (format, args, stderr); -#endif putc ('\n', stderr); }
--- a/libpurple/protocols/zephyr/sysdep.h Sun Aug 28 20:43:17 2016 -0400 +++ b/libpurple/protocols/zephyr/sysdep.h Sun Aug 28 23:05:17 2016 -0400 @@ -28,11 +28,6 @@ #include <stdlib.h> -#ifndef HAVE_STRERROR -extern char *sys_errlist[]; -# define strerror(x) (sys_errlist[(x)]) -#endif - /* Strings. */ #include <string.h>
--- a/pidgin/libpidgin.c Sun Aug 28 20:43:17 2016 -0400 +++ b/pidgin/libpidgin.c Sun Aug 28 23:05:17 2016 -0400 @@ -471,10 +471,8 @@ textdomain(PACKAGE); #endif -#ifdef HAVE_SETLOCALE /* Locale initialization is not complete here. See gtk_init_check() */ setlocale(LC_ALL, ""); -#endif #ifndef DEBUG /* We translate this here in case the crash breaks gettext. */