diff options
author | Guillaume Rousse <guillomovitch@gmail.com> | 2018-02-03 18:28:15 +0100 |
---|---|---|
committer | Alfred E. Heggestad <alfred.heggestad@gmail.com> | 2018-02-03 18:28:15 +0100 |
commit | 671f293bbdf8f234a73d8c2e6fb75a8ee3d039ce (patch) | |
tree | 19c49335ee0489c6d988c3bc416b7325ec9d91e3 /src/config.c | |
parent | 54a4f2c3aab5867caac077ee0949c04d86807013 (diff) |
set exact installation pathes at build time (#354)
Thank you, this is a very nice contribution.
Alfred
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/config.c b/src/config.c index 1d010e0..6de53f5 100644 --- a/src/config.c +++ b/src/config.c @@ -43,7 +43,7 @@ static struct config core_config = { /** Audio */ { - PREFIX "/share/baresip", + SHARE_PATH, "","", "","", "","", @@ -527,7 +527,9 @@ static int core_config_template(struct re_printf *pf, const struct config *cfg) "call_max_calls\t%u\n" "\n" "# Audio\n" -#if defined (PREFIX) +#if defined (SHARE_PATH) + "#audio_path\t\t" SHARE_PATH "\n" +#elif defined (PREFIX) "#audio_path\t\t" PREFIX "/share/baresip\n" #else "#audio_path\t\t/usr/share/baresip\n" @@ -630,7 +632,9 @@ static uint32_t count_modules(const char *path) static const char *detect_module_path(bool *valid) { static const char * const pathv[] = { -#if defined (PREFIX) +#if defined (MOD_PATH) + MOD_PATH, +#elif defined (PREFIX) "" PREFIX "/lib/baresip/modules", #else "/usr/local/lib/baresip/modules", |