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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
--- configure.in.orig 2008-08-13 08:23:37.000000000 +0200
+++ configure.in 2008-08-13 08:29:23.000000000 +0200
@@ -117,7 +117,10 @@
AC_MSG_ERROR([glib is installed but gthread not ?]))
fi
+AC_ARG_WITH([sdl], AS_HELP_STRING([--without-sdl], [Build without sdl library for graphics support (default: test)]))
+tucnak_sdl="no"
+if test "x$with_sdl" != "xno"; then
# check for SDL
SDL_VERSION=1.2.0
tucnak_sdl_ver="";
@@ -129,10 +132,14 @@
tucnak_odebs="$tucnak_odebs libsdl-dev"
tucnak_sdl="no"]
)
+fi
export PKG_CONFIG=/usr/bin/pkg-config
+AC_ARG_WITH([png], AS_HELP_STRING([--without-png], [Build without PNG support (default: test)]))
+
+if test "x$with_png" != "xno"; then
# check for libpng
tucnak_libpng_ver=""
PKG_CHECK_MODULES(LIBPNG, libpng12 > 1.2.0,
@@ -140,7 +147,7 @@
tucnak_libpng_ver=`$PKG_CONFIG --modversion 'libpng12 > 1.2.0'` ],
[ tucnak_olibs="$tucnak_olibs libpng"
tucnak_odebs="$tucnak_odebs libpng-dev"])
-
+fi
# check for iconv
if test x"$tucnak_sdl" = x"yes"; then
@@ -178,6 +185,11 @@
tucnak_iconv="not needed"
fi
+
+AC_ARG_WITH([gpm], AS_HELP_STRING([--without-gpm], [Build without GPM support (default: test)]))
+tucnak_libgpm="no"
+
+if test "x$with_gpm" != "xno"; then
# check for libgpm
tucnak_libgpm="no"
tucnak_old_LIBS=$LIBS
@@ -203,7 +215,7 @@
tucnak_odebs="$tucnak_odebs libgpmg1-dev"])
rm -f conftest.libgpm.out
fi
-
+fi
# check for libsndfile
libsndfile_LIBS=$LIBS
@@ -218,6 +230,10 @@
tucnak_mdebs="$tucnak_mdebs libsndfile-dev"])
+AC_ARG_WITH([alsa], AS_HELP_STRING([--without-alsa], [Build without alsa library for audio i/o (default: test)]))
+tucnak_alsa="no"
+
+if test "x$with_alsa" != "xno"; then
# check for alsa
tucnak_alsa_ver=""
AC_MSG_CHECKING(for alsa)
@@ -255,7 +271,12 @@
tucnak_olibs="$tucnak_olibs libasound"
tucnak_odebs="$tucnak_odebs libasound-dev"]
)
+fi
+
+AC_ARG_WITH([ftdi], AS_HELP_STRING([--without-ftdi], [Build without FTDI support for usb to serial converter (default: test)]))
+tucnak_ftdi="no"
+if test "x$with_ftdi" != "xno"; then
# check for libftdi
tucnak_ftdi_ver=""
tucnak_ftdi_new=""
@@ -275,6 +296,7 @@
tucnak_ftdi_new="new"],
[ tucnak_ftdi_new="old"])
fi
+fi
# check for library errors
if test -n "$tucnak_mlibs$tucnak_olibs"; then
@@ -299,6 +299,10 @@
fi
+AC_ARG_WITH([hamlib], AS_HELP_STRING([--without-hamlib], [Build without Hamlib support (default: test)]))
+tucnak_hamlib="no"
+
+if test "x$with_hamlib" != "xno"; then
# check for hamlib
tucnak_hamlib_ver=""
PKG_CHECK_MODULES(HAMLIB,
@@ -309,6 +313,7 @@
[ tucnak_olibs="$tucnak_olibs libhamlib"
tucnak_odebs="$tucnak_odebs libhamlib-dev"
tucnak_hamlib="false" ])
+fi
# check for library errors
if test -n "$tucnak_mlibs$tucnak_olibs"; then
|