/pidgin/main: bcc6c80708a0: Remove unused header checks.

Elliott Sales de Andrade <[email protected]> Tue, 23 Aug 2016 19:45:07 -0400
Newsgroups gmane.comp.gnome.gaim.cvs
Message-ID <[email protected]>
Changeset: bcc6c80708a011ef34c14c9c3804dd39c8d62386
Author:	 Elliott Sales de Andrade <[email protected]>
Date:	 2016-08-20 20:15 -0400
Branch:	 default
URL: https://hg.pidgin.im/pidgin/main/rev/bcc6c80708a0

Description:

Remove unused header checks.

* arpa/nameser_compat.h appears unused.
* sys/time.h should be fine on all systems, according to AC_HEADER_TIME,
  but it's not used anyway.
* regex.h is not used.
* sys/utsname.h appears twice.

diffstat:

 config.h.mingw            |  6 ------
 configure.ac              |  7 ++-----
 finch/libgnt/configure.ac |  5 +----
 3 files changed, 3 insertions(+), 15 deletions(-)

diffs (76 lines):

diff --git a/config.h.mingw b/config.h.mingw
--- a/config.h.mingw
+++ b/config.h.mingw
@@ -40,9 +40,6 @@
 /* Define if you have the external 'altzone' variable. */
 /* #undef HAVE_ALTZONE */
 
-/* Define to 1 if you have the <arpa/nameser_compat.h> header file. */
-/* #undef HAVE_ARPA_NAMESER_COMPAT_H */
-
 /* Define to 1 if you have the `atexit' function. */
 #define HAVE_ATEXIT 1
 
@@ -312,9 +309,6 @@
 /* Define to 1 if you have the <sys/sysctl.h> header file. */
 /* #define HAVE_SYS_SYSCTL_H 1 */
 
-/* Define to 1 if you have the <sys/time.h> header file. */
-/* #undef HAVE_SYS_TIME_H */
-
 /* Define to 1 if you have the <sys/types.h> header file. */
 #define HAVE_SYS_TYPES_H 1
 
diff --git a/configure.ac b/configure.ac
--- a/configure.ac
+++ b/configure.ac
@@ -166,7 +166,7 @@ AC_SUBST(FINCH_LIBS)
 dnl Checks for header files.
 AC_HEADER_STDC
 AC_HEADER_SYS_WAIT
-AC_CHECK_HEADERS(arpa/nameser_compat.h fcntl.h sys/time.h unistd.h locale.h stdint.h)
+AC_CHECK_HEADERS(fcntl.h unistd.h locale.h stdint.h)
 
 dnl Checks for typedefs, structures, and compiler characteristics.
 AC_C_CONST
@@ -378,9 +378,6 @@ int main(int argc, char *argv[])
 
 AC_MSG_CHECKING([for the %z format string in strftime()])
 AC_RUN_IFELSE([AC_LANG_SOURCE([[
-#ifdef HAVE_SYS_TIME_H
-#include <sys/time.h>
-#endif
 #include <time.h>
 #include <stdio.h>
 
@@ -2116,7 +2113,7 @@ 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_HEADERS(sys/file.h sys/filio.h sys/ioctl.h sys/msgbuf.h)
-AC_CHECK_HEADERS(sys/select.h sys/uio.h sys/utsname.h sys/wait.h)
+AC_CHECK_HEADERS(sys/select.h sys/uio.h sys/wait.h)
 AC_CHECK_HEADERS(termios.h)
 
 # sys/sysctl.h on OpenBSD 4.2 requires sys/param.h
diff --git a/finch/libgnt/configure.ac b/finch/libgnt/configure.ac
--- a/finch/libgnt/configure.ac
+++ b/finch/libgnt/configure.ac
@@ -69,7 +69,7 @@ dnl AC_CYGWIN
 dnl Checks for header files.
 AC_HEADER_STDC
 AC_HEADER_SYS_WAIT
-AC_CHECK_HEADERS(arpa/nameser_compat.h fcntl.h sys/time.h unistd.h locale.h signal.h stdint.h regex.h)
+AC_CHECK_HEADERS(fcntl.h unistd.h locale.h signal.h stdint.h)
 
 dnl Checks for typedefs, structures, and compiler characteristics.
 AC_C_CONST
@@ -91,9 +91,6 @@ AC_CHECK_FUNC(dlopen, LIBDL="", [AC_CHEC
 
 AC_MSG_CHECKING(for the %z format string in strftime())
 AC_TRY_RUN([
-#ifdef HAVE_SYS_TIME_H
-#include <sys/time.h>
-#endif
 #include <time.h>
 #include <stdio.h>
 

_______________________________________________
Commits mailing list
[email protected]
https://pidgin.im/cgi-bin/mailman/listinfo/commits