From 8026fa9bc7525c4cef02c17099e2db79284078f8 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 17 Sep 2014 10:56:46 +0200 Subject: [PATCH] build-sys: use -lutil for BSD only Signed-off-by: Karel Zak --- configure.ac | 10 +++++++++- term-utils/Makemodule.am | 2 ++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 5b558ec11a..387372fd9e 100644 --- a/configure.ac +++ b/configure.ac @@ -136,9 +136,17 @@ PKG_PROG_PKG_CONFIG GTK_DOC_CHECK([1.10]) AC_PATH_PROG([XSLTPROC], [xsltproc]) + linux_os=no -AS_CASE([${host_os}], [*linux*], [linux_os=yes]) +bsd_os=no +AS_CASE([${host_os}], + [*linux*], + [linux_os=yes], + [*bsd*], + [bsd_os=yes]) AM_CONDITIONAL([LINUX], [test "x$linux_os" = xyes]) +AM_CONDITIONAL([BSD], [test "x$bsd_os" = xyes]) + dnl define ARCH_ conditionals UL_SET_ARCH([I86], [i?86-*]) diff --git a/term-utils/Makemodule.am b/term-utils/Makemodule.am index 627aca0494..e7ac707fe4 100644 --- a/term-utils/Makemodule.am +++ b/term-utils/Makemodule.am @@ -23,7 +23,9 @@ sbin_PROGRAMS += agetty dist_man_MANS += term-utils/agetty.8 agetty_SOURCES = term-utils/agetty.c agetty_LDADD = $(LDADD) libcommon.la +if BSD agetty_LDADD += -lutil +endif endif # BUILD_AGETTY -- 2.47.3