diff options
Diffstat (limited to 'meta/recipes-extended/minicom/minicom-2.6.2/allow.to.disable.lockdev.patch')
-rw-r--r-- | meta/recipes-extended/minicom/minicom-2.6.2/allow.to.disable.lockdev.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/meta/recipes-extended/minicom/minicom-2.6.2/allow.to.disable.lockdev.patch b/meta/recipes-extended/minicom/minicom-2.6.2/allow.to.disable.lockdev.patch new file mode 100644 index 0000000000..f5c08896ff --- /dev/null +++ b/meta/recipes-extended/minicom/minicom-2.6.2/allow.to.disable.lockdev.patch | |||
@@ -0,0 +1,21 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
4 | |||
5 | --- a/configure.in 2013-02-06 18:18:13.000000000 +0100 | ||
6 | +++ b/configure.in 2013-07-21 15:31:27.614828894 +0200 | ||
7 | @@ -40,7 +40,13 @@ | ||
8 | fi | ||
9 | |||
10 | PKG_PROG_PKG_CONFIG | ||
11 | -if test -n "$PKG_CONFIG"; then | ||
12 | + | ||
13 | +AC_ARG_ENABLE([lockdev], | ||
14 | + AS_HELP_STRING([--enable-lockdev], | ||
15 | + [Enable lockdev support (def: enabled)]), | ||
16 | + [], [enable_lockdev="yes"]) | ||
17 | + | ||
18 | +if test -n "$PKG_CONFIG" && test "x$enable_lockdev" = xyes; then | ||
19 | PKG_CHECK_MODULES([LOCKDEV], [lockdev], AC_DEFINE([HAVE_LOCKDEV],[1],[Define if you have lockdev]),[:]) | ||
20 | fi | ||
21 | |||