configure.ac: test -a -> shell's && (more portable)
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Sat, 27 Feb 2016 09:37:54 +0000 (04:37 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 1 Mar 2016 01:51:13 +0000 (20:51 -0500)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
configure.ac

index cfb2ddf5ead414a66311501808121338321cfb44..789759147e4d6478355087f0c83a7231749fdbae 100644 (file)
@@ -210,9 +210,9 @@ AS_CASE([$host_cpu],
        [UST_SUPPORT_FOR_ARCH_PERF_EVENT_COUNTERS=no])
 AC_MSG_RESULT([$UST_SUPPORT_FOR_ARCH_PERF_EVENT_COUNTERS])
 
-AM_CONDITIONAL([HAVE_PERF_EVENT], [test "x$have_perf_event" = "xyes" -a "x$UST_SUPPORT_FOR_ARCH_PERF_EVENT_COUNTERS" = "xyes"])
+AM_CONDITIONAL([HAVE_PERF_EVENT], [test "x$have_perf_event" = "xyes" && test "x$UST_SUPPORT_FOR_ARCH_PERF_EVENT_COUNTERS" = "xyes"])
 
-AS_IF([test "x$have_perf_event" = "xyes" -a "x$UST_SUPPORT_FOR_ARCH_PERF_EVENT_COUNTERS" = "xyes"], [
+AS_IF([test "x$have_perf_event" = "xyes" && test "x$UST_SUPPORT_FOR_ARCH_PERF_EVENT_COUNTERS" = "xyes"], [
        AC_DEFINE([LTTNG_UST_HAVE_PERF_EVENT], [1])
 ])
 
This page took 0.025458 seconds and 4 git commands to generate.