12b15cb3dSCy Schubertdnl ###################################################################### 22b15cb3dSCy Schubertdnl Check syslog.h for 'facilitynames' table 32b15cb3dSCy SchubertAC_DEFUN([NTP_FACILITYNAMES], [ 4*f5f40dd6SCy Schubert 5*f5f40dd6SCy SchubertAC_CACHE_CHECK( 6*f5f40dd6SCy Schubert [for facilitynames in syslog.h], 7*f5f40dd6SCy Schubert [ac_cv_HAVE_SYSLOG_FACILITYNAMES], 8*f5f40dd6SCy Schubert [AC_COMPILE_IFELSE( 9*f5f40dd6SCy Schubert [AC_LANG_PROGRAM( 10*f5f40dd6SCy Schubert [[ 112b15cb3dSCy Schubert #define SYSLOG_NAMES 122b15cb3dSCy Schubert #include <stdlib.h> 132b15cb3dSCy Schubert #include <syslog.h> 14*f5f40dd6SCy Schubert ]], 15*f5f40dd6SCy Schubert [[ 16*f5f40dd6SCy Schubert void *fnames = facilitynames; 17*f5f40dd6SCy Schubert ]] 18*f5f40dd6SCy Schubert )] 19*f5f40dd6SCy Schubert [ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes], 20*f5f40dd6SCy Schubert [ac_cv_HAVE_SYSLOG_FACILITYNAMES=no] 21*f5f40dd6SCy Schubert )] 22*f5f40dd6SCy Schubert) 232b15cb3dSCy Schubertcase "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in 242b15cb3dSCy Schubert yes) 25*f5f40dd6SCy Schubert AC_DEFINE([HAVE_SYSLOG_FACILITYNAMES], [1], [syslog.h provides facilitynames]) 262b15cb3dSCy Schubert ;; 272b15cb3dSCy Schubert no) 282b15cb3dSCy Schubert AC_MSG_WARN([No facilitynames in <syslog.h>]) 292b15cb3dSCy Schubertesac 302b15cb3dSCy Schubert]) 312b15cb3dSCy Schubertdnl ====================================================================== 32