1# -*- shell-script -*- 2# 3# Copyright (c) 2017 Cisco Systems, Inc. All rights reserved. 4# $COPYRIGHT$ 5# 6# Additional copyrights may follow 7# 8# $HEADER$ 9# 10 11# MCA_notifier_syslog_CONFIG([action-if-found], [action-if-not-found]) 12# ----------------------------------------------------------- 13AC_DEFUN([MCA_orte_notifier_syslog_CONFIG], [ 14 AC_CONFIG_FILES([orte/mca/notifier/syslog/Makefile]) 15 16 OPAL_VAR_SCOPE_PUSH([orte_notifier_syslog_happy]) 17 18 # Per https://github.com/open-mpi/ompi/issues/4373 and 19 # https://github.com/open-mpi/ompi/pull/4374, we need to check 20 # that syslog.h is compilable. If syslog.h is not compilable, 21 # disable this component. 22 AC_CHECK_HEADER([syslog.h], 23 [orte_notifier_syslog_happy=1], 24 [orte_notifier_syslog_happy=0]) 25 26 AS_IF([test $orte_notifier_syslog_happy -eq 1], 27 [$1], 28 [$2]) 29 30 OPAL_VAR_SCOPE_POP 31])dnl 32