blob: 561102ed778100a92b3e03f3a2508dc2495cfca1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
$NetBSD: patch-ad,v 1.2 2008/11/23 23:40:12 heinz Exp $
- Honor configure option --with-embedded-src-path
(already committed in unstable version upstream)
--- closure.c.orig 2008-03-04 10:01:15.000000000 +0000
+++ closure.c
@@ -174,10 +174,13 @@ static void get_base_dirs()
char *appdata;
#endif
- /*** The source directory is supposed to hold the most recent files,
+ /*** Unless completely disabled through a configure option, the
+ source directory is supposed to hold the most recent files,
so try this first. Not necessary under Windows as it will always
use the directory the binary has been called from. */
+#ifdef WITH_EMBEDDED_SRC_PATH_YES
+
#ifndef SYS_MINGW
if(!stat(SRCDIR, &mystat))
{ Closure->binDir = g_strdup(SRCDIR);
@@ -187,6 +190,8 @@ static void get_base_dirs()
}
#endif
+#endif /* WITH_EMBEDDED_SRC_PATH_YES */
+
/*** Otherwise try the installation directory.
On Unices this is a hardcoded directory.
Windows has binary distributions with no prior known installation place,
|