summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 92ba2e3)
raw | patch | inline | side by side (parent: 92ba2e3)
author | Ruben Kerkhof <ruben@tilaa.com> | |
Fri, 11 Dec 2015 18:53:33 +0000 (19:53 +0100) | ||
committer | Ruben Kerkhof <ruben@tilaa.com> | |
Fri, 11 Dec 2015 18:53:33 +0000 (19:53 +0100) |
configure.ac | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index c4483792b016ce3436dd3b58d44394a8c39e4a40..66c531b70b698e36db0b70ad3ef3291e203049a9 100644 (file)
--- a/configure.ac
+++ b/configure.ac
with_liblvm2app_ldflags=""
AC_ARG_WITH(liblvm2app, [AS_HELP_STRING([--with-liblvm2app@<:@=PREFIX@:>@], [Path to liblvm2app.])],
[
- if test "x$withval" != "xno" && test "x$withval" != "xyes"
- then
- with_liblvm2app_cppflags="-I$withval/include"
- with_liblvm2app_ldflags="-L$withval/lib"
- with_liblvm2app="yes"
- else
- with_liblvm2app="$withval"
+ if test "x$withval" = "xno"
+ then
+ with_liblvm2app="no"
+ else
+ with_liblvm2app="yes"
+ if test "x$withval" != "xyes"
+ then
+ with_liblvm2app_cppflags="-I$withval/include"
+ with_liblvm2app_ldflags="-L$withval/lib"
+ fi
fi
],
[
- with_liblvm2app="yes"
+ if test "x$ac_system" = "xLinux"
+ then
+ with_liblvm2app="yes"
+ else
+ with_liblvm2app="no (Linux only library)"
+ fi
])
if test "x$with_liblvm2app" = "xyes"
then