From 1148cd9a293df81cdc9a73eeda42e314c3c36c95 Mon Sep 17 00:00:00 2001 From: psychon Date: Fri, 23 Apr 2010 16:38:03 +0000 Subject: [PATCH] Look, an invisible pink unicorn! git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1928 726aef4b-f618-498e-8847-2d620e286838 --- Modules.cpp | 3 ++- configure | 2 +- configure.in | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Modules.cpp b/Modules.cpp index 36f36405..0b07f200 100644 --- a/Modules.cpp +++ b/Modules.cpp @@ -907,10 +907,11 @@ bool CModules::FindModPath(const CString& sModule, CString& sModPath, CModules::ModDirList CModules::GetModDirs() { ModDirList ret; + CString sDir; #ifdef RUN_FROM_SOURCE // ./modules - CString sDir = CZNC::Get().GetCurPath() + "/modules/"; + sDir = CZNC::Get().GetCurPath() + "/modules/"; ret.push(std::make_pair(sDir, sDir)); // ./modules/extra diff --git a/configure b/configure index 5e8e44ea..a3cdd155 100755 --- a/configure +++ b/configure @@ -2816,7 +2816,7 @@ fi # Check whether --enable-run-from-source was given. if test "${enable_run_from_source+set}" = set; then : - enableval=$enable_run_from_source; if test "x$withval" = "xyes" ; then + enableval=$enable_run_from_source; if test "x$enableval" = "xyes" ; then appendCXX -DRUN_FROM_SOURCE fi fi diff --git a/configure.in b/configure.in index 430db930..82542466 100644 --- a/configure.in +++ b/configure.in @@ -109,7 +109,7 @@ AC_ARG_ENABLE( [c-ares], [ARES="auto"]) AC_ARG_ENABLE( [run-from-source], AS_HELP_STRING([--enable-run-from-source], [znc will be runnable without installation]), - [if test "x$withval" = "xyes" ; then + [if test "x$enableval" = "xyes" ; then appendCXX -DRUN_FROM_SOURCE fi])