File: 0013-configure.ac-Only-support-linux-setup.patch

package info (click to toggle)
cdcd 0.6.6-13.3
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 1,768 kB
  • sloc: ansic: 4,891; sh: 2,142; makefile: 17
file content (61 lines) | stat: -rw-r--r-- 1,658 bytes parent folder | download | duplicates (2)
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
From: Boyuan Yang <byang@debian.org>
Date: Tue, 26 Nov 2024 14:33:41 -0500
Subject: configure.ac: Only support linux setup

---
 configure.ac | 35 ++++-------------------------------
 1 file changed, 4 insertions(+), 31 deletions(-)

diff --git a/configure.ac b/configure.ac
index 35251c3..a7cfab8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3,7 +3,7 @@ AC_INIT([cdcd.c],[0.6.6])
 AC_PREREQ([2.69])
 
 AM_INIT_AUTOMAKE([foreign])
-AM_CONFIG_HEADER([config.h])
+AC_CONFIG_HEADERS([config.h])
 AM_MAINTAINER_MODE
 
 dnl Checks for programs.
@@ -20,36 +20,9 @@ Check the INSTALL file, maybe you can find how to solve the problem.])])
 AM_PATH_LIBCDAUDIO(,,[AC_MSG_ERROR([cannot find libcdaudio.
 Check the INSTALL file, maybe you can find how to solve the problem.])])
 
-have_libcdaudio=0
-have_cdaudio=0
-
-case "$host_os" in
-  irix*) 
-    default_device=/dev/unspecified
-    have_libcdaudio=1
-    ;;
-
-  *bsd*)
-    default_device=/dev/wcd0a
-    have_cdaudio=1
-    ;;
-
-  *linux*)
-    default_device=/dev/cdrom
-    have_cdaudio=1
-    ;;
-
-  *solaris*)
-    default_device=/dev/c0t1d0s0
-    have_cdaudio=1
-    ;;
-esac
-
-AC_DEFINE_UNQUOTED([HAVE_LIBCDAUDIO], [$have_libcdaudio],
-			     [True if we must provide -llibcdaudio (for IRIX).])
-AC_DEFINE_UNQUOTED([HAVE_CDAUDIO], [$have_cdaudio],
-			  [True if we must provide -lcdaudio.])
-AC_DEFINE_UNQUOTED([DEFAULT_DEVICE], ["$default_device"], [Default CDROM device.])
+dnl Patch to support only Linux
+AC_DEFINE([HAVE_CDAUDIO], [1], [Define if cdaudio is available.])
+AC_DEFINE([DEFAULT_DEVICE], ["/dev/cdrom"], [Default CDROM device.])
 
 dnl Checks for header files.
 AC_HEADER_STDC