summaryrefslogtreecommitdiff
path: root/cad/qcad/patches/patch-ac
blob: 15314829568fd9f2eeb62e8997200bd84efa3127 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
$NetBSD: patch-ac,v 1.3 2005/08/18 23:51:24 dmcmahill Exp $

--- rprgdef.h.orig	2002-09-20 13:26:57.000000000 -0400
+++ rprgdef.h
@@ -22,16 +22,27 @@
 //#define DEF_LESS_DIALOGS    // Don't show the startup dialog
 
 
+// Define one of
+//  DEF_LINUX
+//  DEF_SOLARIS
+//  DEF_WINDOWS
+//  DEF_BSD
+//  DEF_IRIX
+
+#define DEF_@OPSYS@
+
 // Uncomment for Linux
-#define DEF_LINUX           // Are we running Linux?
+#ifdef DEF_LINUX           // Are we running Linux?
 #define RUNNING_LINUX   true
 #define RUNNING_WINDOWS false
 #define RUNNING_SOLARIS false
 #define RUNNING_IRIX    false
-#define DATADIR         "/usr/share"
+#endif
 
+#define DATADIR         "@PREFIX@/share"
 
-#ifdef __FreeBSD__
+
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
 #define DEF_FREEBSD
 #undef DEF_LINUX
 #define RUNNING_LINUX   true    // close enough
@@ -42,35 +53,30 @@
 
 
 // Uncomment for Solaris
-/*
-#define DEF_SOLARIS           // Are we running Solaris?
+#ifdef DEF_SOLARIS           // Are we running Solaris?
 #define RUNNING_SOLARIS true
 #define RUNNING_WINDOWS false
 #define RUNNING_LINUX   false
 #define RUNNING_IRIX    false
-*/
+#endif
 
 
 // Uncomment for Windoze
-/*
-#define DEF_WINDOWS           // Iiiik - we're running windoze!!!
+#ifdef DEF_WINDOWS           // Iiiik - we're running windoze!!!
 #define RUNNING_WINDOWS true
 #define RUNNING_LINUX   false
 #define RUNNING_SOLARIS false
 #define RUNNING_IRIX    false
-*/
-
+#endif
 
 
 // Uncomment for IRIX
-/*
-#define DEF_SGI               // Are we running IRIX?
+#ifdef DEF_SGI               // Are we running IRIX?
 #define RUNNING_SOLARIS false
 #define RUNNING_WINDOWS false
 #define RUNNING_LINUX   false
 #define RUNNING_IRIX    true
-*/
-
+#endif
 
 #ifdef DEF_SOLARIS
 #define true 1