diff options
author | Karel Zak <kzak@redhat.com> | 2014-09-17 10:56:46 +0200 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2014-10-24 10:10:31 +0200 |
commit | 5bf99ee203102ac2435b13cc41da91726e1902fb (patch) | |
tree | 10c917b77b001445f9948ae43cb741ca8e8efd31 | |
parent | 78b945465e09a04923a622bb2170fe007bc693b6 (diff) | |
download | util-linux-5bf99ee203102ac2435b13cc41da91726e1902fb.tar.gz |
build-sys: use -lutil for BSD only
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r-- | configure.ac | 10 | ||||
-rw-r--r-- | term-utils/Makemodule.am | 2 |
2 files changed, 11 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 8a272bd0c..943d97206 100644 --- a/configure.ac +++ b/configure.ac @@ -135,9 +135,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_<NAME> conditionals UL_SET_ARCH([I86], [i?86-*]) diff --git a/term-utils/Makemodule.am b/term-utils/Makemodule.am index 627aca049..e7ac707fe 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 |