[ntp:bk-ntp-dev-send] BitKeeper diffs

Harlan Stenn stenn at deacon.udel.edu
Sat Aug 11 08:31:31 UTC 2012


#### ChangeSet ####
2012-08-11 04:28:13-04:00, stenn at psp-deb1.ntp.org
  Look for syslog's facilitynames[]

==== ChangeLog ====
2012-08-11 04:27:23-04:00, stenn at psp-deb1.ntp.org +1 -0
  Look for syslog's facilitynames[]

--- 1.1211/ChangeLog	2012-08-08 07:38:00 -04:00
+++ 1.1212/ChangeLog	2012-08-11 04:27:23 -04:00
@@ -1,3 +1,4 @@
+* Look for syslog's facilitynames[].
 (4.2.7p294) 2012/08/08 Released by Harlan Stenn <stenn at ntp.org>
 * [Bug 2242] configure fails to detect getifaddrs function on Solaris.
 * [Bug 2249] Bad operator for 'test' in 'make check' of libevent.

==== configure.ac ====
2012-08-11 04:27:23-04:00, stenn at psp-deb1.ntp.org +2 -0
  Look for syslog's facilitynames[]

--- 1.549/configure.ac	2012-08-06 00:22:38 -04:00
+++ 1.550/configure.ac	2012-08-11 04:27:23 -04:00
@@ -186,6 +186,8 @@ esac
 # HMS: a check for -lnsl used to be here - now being done in NTP_LIBNTP
 AC_SEARCH_LIBS([openlog], [gen syslog])
 
+NTP_FACILITYNAMES
+
 dnl Digital UNIX V4.0 and Solaris 7 have POSIX.1c functions in -lrt
 dnl Solaris 2.6 only has -lposix4; in Solaris 7, this is a symlink to -lrt,
 dnl so only use one of them.  Linux (glibc-2.1.2 and -2.2.2, at least)

==== sntp/configure.ac ====
2012-08-11 04:27:29-04:00, stenn at psp-deb1.ntp.org +1 -0
  Look for syslog's facilitynames[]

--- 1.70/sntp/configure.ac	2012-08-06 00:22:38 -04:00
+++ 1.71/sntp/configure.ac	2012-08-11 04:27:29 -04:00
@@ -110,6 +110,7 @@ AC_SEARCH_LIBS([openlog], [gen syslog])
 
 # Checks for header files.
 AC_CHECK_HEADERS([netdb.h string.h strings.h syslog.h])
+NTP_FACILITYNAMES
 
 # Checks for typedefs, structures, and compiler characteristics.
 AC_HEADER_STDBOOL

==== sntp/m4/ntp_facilitynames.m4 ====
2012-08-11 02:23:35-04:00, stenn at psp-deb1.ntp.org +24 -0
  BitKeeper file /home/stenn/ntp-dev/sntp/m4/ntp_facilitynames.m4

--- /dev/null	2012-08-11 04:31:27 -04:00
+++ 1.1/sntp/m4/ntp_facilitynames.m4	2012-08-11 02:23:35 -04:00
@@ -0,0 +1,24 @@
+dnl ######################################################################
+dnl Check syslog.h for 'facilitynames' table
+AC_DEFUN([NTP_FACILITYNAMES], [
+AC_CACHE_CHECK([for facilitynames in syslog.h],ac_cv_HAVE_SYSLOG_FACILITYNAMES,[
+AC_TRY_COMPILE([
+#define SYSLOG_NAMES
+#include <stdlib.h>
+#include <syslog.h>
+],
+[ void *fnames; fnames = facilitynames; ],
+ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes,ac_cv_HAVE_SYSLOG_FACILITYNAMES=no,ac_cv_HAVE_SYSLOG_FACILITYNAMES=cross)])
+case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in
+ yes)
+    AC_DEFINE(HAVE_SYSLOG_FACILITYNAMES,1,[ ])
+    ;;
+ no)
+    AC_MSG_WARN([No facilitynames in <syslog.h>])
+    ;;
+ cross)
+    AC_MSG_WARN([facilitynames in <syslog.h> - cross-compiling])
+    ;;
+esac
+])
+dnl ======================================================================

==== sntp/m4/ntp_facilitynames.m4 ====
2012-08-11 02:23:35-04:00, stenn at psp-deb1.ntp.org +0 -0


More information about the bk-ntp-dev-send mailing list