diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2012-01-22 01:52:10 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2012-01-22 01:52:10 +0300 |
commit | ba0dc182e96357ac20b819c36da55a8c18b1d4bf (patch) | |
tree | 1dfd643b828f3323c897bb04a5f51a642a4ac224 | |
parent | ddd259e848ebbca654dae796246e56907a1bb3e0 (diff) | |
download | util-linux-old-ba0dc182e96357ac20b819c36da55a8c18b1d4bf.tar.gz |
Check whether syslog names are available
-rw-r--r-- | configure.ac | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 3105efa2..77c02c89 100644 --- a/configure.ac +++ b/configure.ac @@ -150,6 +150,23 @@ AC_CHECK_HEADERS( sys/resource.h \ unistd.h ]) +AC_MSG_CHECKING([whether syslog names are available]) +AC_TRY_COMPILE([ +#define SYSLOG_NAMES 1 +#include <stdio.h> +#include <syslog.h> +], +[ + (void) facilitynames +], +[ + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_SYSLOG_NAMES, , [Define if syslog names are defined]) +], +[ + AC_MSG_RESULT(no) +]) + AC_CHECK_HEADERS([linux/raw.h], [AM_CONDITIONAL([HAVE_RAW], [true])], [AM_CONDITIONAL([HAVE_RAW], [false])]) |