summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2014-08-01 11:55:45 +0800
committerJeremy Kerr <jk@ozlabs.org>2014-08-05 10:31:28 +0800
commitd1c07faf5b5979c19c4709f7195c612fb0a9dd2e (patch)
tree6be48be4aafa1c7bbde247b024ab70e692ac4c0e /configure.ac
parentc43847fe14e6b32cc58b8e8168f78e72ef94316d (diff)
downloadpetitboot-d1c07faf5b5979c19c4709f7195c612fb0a9dd2e.zip
petitboot-d1c07faf5b5979c19c4709f7195c612fb0a9dd2e.tar.gz
autotools: Don't link udev into everything
By default, AC_CHECK_LIB will append to $LIBS, which is used for all link stages. Intstead, we should popuate $UDEV_LIBS, and just use that for the single pb-discover link stage. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index fbb6520..9511fef 100644
--- a/configure.ac
+++ b/configure.ac
@@ -51,7 +51,7 @@ if test "x$ax_cv_curses" = xyes; then
fi
AC_CHECK_LIB([udev], [udev_new],
- [],
+ [UDEV_LIBS=-ludev],
[AC_MSG_FAILURE([The libudev development library is required by petitboot. Try installing the package libudev-dev or libudev-devel.])]
)
@@ -257,7 +257,7 @@ AS_IF(
]
)
-
+AC_SUBST([UDEV_LIBS])
AC_SUBST([LIBTOOL_DEPS])
AC_SUBST([DESTDIR])
AC_SUBST([pkgsysconfdir], ["${sysconfdir}/${package}"])
OpenPOWER on IntegriCloud