From 5dcd241abd698e1a1363d1983ecb372aff477432 Mon Sep 17 00:00:00 2001
From: Guillem Jover <guillem@hadrons.org>
Date: Thu, 7 Mar 2013 19:50:24 +0100
Subject: [PATCH v2 14/18] build: Do not expand libdir variable
Status: obsolete

Expanding the value when setting it causes uninitialized values to
trickle into generated files like neard.pc, which ends up with stuff
like libdir=NONE/lib.
---
 configure.ac | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index ffbc172..00d2b30 100644
--- a/configure.ac
+++ b/configure.ac
@@ -8,8 +8,10 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
 
 AM_MAINTAINER_MODE
 
+# Do not expand the default variables so that they can be changed at build
+# time, in the make command-line.
 if (test "${libdir}" = '${exec_prefix}/lib'); then
-	libdir="${prefix}/lib"
+	libdir='${prefix}/lib'
 fi
 
 plugindir="${libdir}/near/plugins"
-- 
1.8.3.1

