summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c27cdba)
raw | patch | inline | side by side (parent: c27cdba)
author | niki <niki> | |
Fri, 16 Dec 2005 16:56:14 +0000 (16:56 +0000) | ||
committer | niki <niki> | |
Fri, 16 Dec 2005 16:56:14 +0000 (16:56 +0000) |
test X -a Y
to
test X && test Y
to
test X && test Y
configure.in | patch | blob | history |
diff --git a/configure.in b/configure.in
index 96ff63f1d4ed80695780d5af999a317dee7786d1..4fc7c9a06df0aa72b10bf98ec9a9d2ceacd98568 100644 (file)
--- a/configure.in
+++ b/configure.in
# AC_ARG_WITH (package, help-string, [action-if-given], [action-if-not-given])
AC_ARG_WITH(rrdtool, AC_HELP_STRING([--with-rrdtool=PFX], [Path to rrdtool.]),
-[ if test "x$withval" != "xno" -a "x$withval" != "xyes"
+[ if test "x$withval" != "xno" && test "x$withval" != "xyes"
then
LDFLAGS="$LDFLAGS -L$withval/lib"
CPPFLAGS="$CPPFLAGS -I$withval/include"
AM_CONDITIONAL(BUILD_WITH_RRDTOOL, test "x$with_rrdtool" = "xyes")
#AC_ARG_WITH(pth, AC_HELP_STRING([--with-pth=PFX], [Path to pth (experimental).]),
-#[ if test "x$withval" != "xno" -a "x$withval" != "xyes"
+#[ if test "x$withval" != "xno" && test "x$withval" != "xyes"
# then
# LDFLAGS="$LDFLAGS -L$withval/lib"
# CPPFLAGS="$CPPFLAGS -I$withval/include"
AC_ARG_WITH(libstatgrab, AC_HELP_STRING([--with-libstatgrab@<:@=PFX@:>@], [Path to libstatgrab.]),
[
# given..
- if test "x$withval" != "xno"
+ if test "x$withval" != "xno" && test "x$withval" != "xyes"
then
- if test "x$withval" != "xyes"
- then
- LDFLAGS="$LDFLAGS -L$withval/lib"
- CPPFLAGS="$CPPFLAGS -I$withval/include"
- with_libstatgrab="yes"
- fi
+ LDFLAGS="$LDFLAGS -L$withval/lib"
+ CPPFLAGS="$CPPFLAGS -I$withval/include"
+ with_libstatgrab="yes"
fi
],
[