summaryrefslogtreecommitdiff
blob: 396fd573ec906ebf62bbd531e27c24bd85c7f81f (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
--- crrcsim-0.9.11/configure.ac
+++ crrcsim-0.9.11/configure.ac
@@ -79,8 +79,12 @@
 dnl Default is: no portaudio present
 portaudio=0
 
+AC_ARG_WITH([portaudio], AS_HELP_STRING([--without-portaudio], [Build without portaudio library (default: test)]))
+
+AS_IF([test "x$with_portaudio" != "xno"], [
 dnl Check for the Portaudio header file
 AC_CHECK_HEADER([portaudio.h])
+])
 
 if  (test "x$ac_cv_header_portaudio_h" = "xyes"); then 
   dnl Check for Portaudio 18
--- crrcsim-0.9.13/src/mod_misc/filesystools.cpp
+++ crrcsim-0.9.13/src/mod_misc/filesystools.cpp
@@ -113,8 +113,8 @@
   // $USERPROFILE/.crrcsim                (WIN32)
   // $HOME/.crrcsim                       (LINUX)
   // CRRC_DATA_PATH                       (LINUX)
-  // /usr/local/share/games/crrcsim       (LINUX)
-  // /usr/share/games/crrcsim             (LINUX)
+  // /usr/local/share/crrcsim             (LINUX)
+  // /usr/share/crrcsim                   (LINUX)
 
   // cwd
   if (dirname != "")
@@ -154,13 +154,13 @@
     s.append(dirname);
     pathlist.push_back(s);
     #endif
-    s = "/usr/local/share/games/" + appname + "/";
+    s = "/usr/local/share/" + appname + "/";
     if (s != data_path)    // avoid adding this path twice
     {
       s.append(dirname);
       pathlist.push_back(s);
     }
-    s = "/usr/share/games/" + appname + "/";
+    s = "/usr/share/" + appname + "/";
     if (s != data_path)    // avoid adding this path twice
     {
       s.append(dirname);
@@ -172,13 +172,13 @@
     #ifdef CRRC_DATA_PATH
     pathlist.push_back(data_path);
     #endif
-    if (data_path != "/usr/local/share/games/" + appname)  // avoid adding this path twice
+    if (data_path != "/usr/local/share/" + appname)  // avoid adding this path twice
     {
-      pathlist.push_back("/usr/local/share/games/" + appname);
+      pathlist.push_back("/usr/local/share/" + appname);
     }
-    if (data_path != "/usr/share/games/" + appname)  // avoid adding this path twice
+    if (data_path != "/usr/share/" + appname)  // avoid adding this path twice
     {
-      pathlist.push_back("/usr/share/games/" + appname);
+      pathlist.push_back("/usr/share/" + appname);
     }
   }
   #endif