From bb54e03075a74b4b72a48f35213d6ca4a25fa832 Mon Sep 17 00:00:00 2001 From: Chen Zhiwei Date: Thu, 24 Sep 2015 10:21:02 +0800 Subject: [PATCH] Smart choose the Mesos libs path On Ubuntu, the Mesos libs will be install to $prefix/lib by default. So add an if condition to choose which path is the right one. --- configure.ac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 7af868b..eb4600a 100644 --- a/configure.ac +++ b/configure.ac @@ -36,7 +36,11 @@ AC_ARG_WITH([mesos_build_dir], if test -d "$mesos"; then MESOS_CPPFLAGS="-I${mesos}/include" - MESOS_LDFLAGS="-L${mesos}/lib64 -lmesos -lglog -lprotobuf" + if test -d "${mesos}/lib"; then + MESOS_LDFLAGS="-L${mesos}/lib -lmesos -lglog -lprotobuf" + else + MESOS_LDFLAGS="-L${mesos}/lib64 -lmesos -lglog -lprotobuf" + fi else if test -d "$mesos_root"; then