Gammu internals  1.38.0
gammu-config.h
Go to the documentation of this file.
1 #ifndef _gammu_config_h_
2 #define _gammu_config_h_
3 
4 /* -------------------------- Gammu specific ---------------------------- */
5 
6 /* Version of package */
7 #define GAMMU_VERSION "1.38.0"
8 #define GAMMU_VERSION_NUM 13800
9 
10 /* Define if want DEBUG info */
11 /* #undef DEBUG */
12 
13 /* ---------------------- Connections ---------------------------------- */
14 
15 /* MBUS2 over cable */
16 #define GSM_ENABLE_MBUS2
17 
18 /* FBUS2 over cable */
19 #define GSM_ENABLE_FBUS2
20 /* FBUS2 to use with DLR3 cable (init done using AT commands) */
21 #define GSM_ENABLE_FBUS2DLR3
22 /* FBUS2 to use with cable with PL2303 chip (init done using AT commands) */
23 #define GSM_ENABLE_FBUS2PL2303
24 /* FBUS2 to use with bluetooth legacy device (init done using AT commands) */
25 /* #undef GSM_ENABLE_FBUS2BLUE */
26 /* FBUS2 to use with direct infrared device */
27 #define GSM_ENABLE_FBUS2IRDA
28 
29 /* PHONET to use with DKU2 cable */
30 #define GSM_ENABLE_DKU2PHONET
31 /* AT commands to use with DKU2 cable */
32 #define GSM_ENABLE_DKU2AT
33 /* FBUS2 to use with DKU5 cable (init done using AT commands) */
34 #define GSM_ENABLE_DKU5FBUS2
35 
36 /* PHONET FBUS to use with bluetooth legacy device */
37 /* #undef GSM_ENABLE_PHONETBLUE */
38 
39 /* AT protocol */
40 #define GSM_ENABLE_AT
41 
42 /* Alcatel protocol */
43 #define GSM_ENABLE_ALCABUS
44 
45 /* Infrared. PHONET FBUS */
46 #define GSM_ENABLE_IRDAPHONET
47 /* Infrared. AT commands */
48 #define GSM_ENABLE_IRDAAT
49 /* Infrared. OBEX */
50 #define GSM_ENABLE_IRDAOBEX
51 /* Infrared */
52 #define GSM_ENABLE_IRDAGNAPBUS
53 
54 /* #undef GSM_ENABLE_BLUEGNAPBUS */
55 
56 #define GSM_ENABLE_S60
57 /* Bluetooth stack (like Bluez). FBUS2 (init done using AT commands) */
58 /* #undef GSM_ENABLE_BLUEFBUS2 */
59 /* Bluetooth stack (like Bluez). PHONET FBUS */
60 /* #undef GSM_ENABLE_BLUEPHONET */
61 /* Blueooth stack (like Bluez). AT commands */
62 /* #undef GSM_ENABLE_BLUEAT */
63 /* Blueooth stack (like Bluez). OBEX */
64 /* #undef GSM_ENABLE_BLUEOBEX */
65 
66 /* --------------------------- Phone modules (specific) ----------------- */
67 
68 /* n0650.c models */
69 #define GSM_ENABLE_NOKIA650
70 /* n3320.c models */
71 #define GSM_ENABLE_NOKIA3320
72 /* n6110.c models */
73 #define GSM_ENABLE_NOKIA6110
74 
75 /* n7110.c models */
76 #define GSM_ENABLE_NOKIA7110
77 /* n9210.c models */
78 #define GSM_ENABLE_NOKIA9210
79 /* It allows one to show incoming call and SMS info for 7110 family phones.
80  * By default commented: you can have some problems, when using it.
81  * Example: with my 6210 after using it info about incoming sms is shown much
82  * earlier than sms in phone and phone restart (once and random) later after
83  * connection. Seems phone firmware isn't too good here
84  */
85 /* Show incoming Data for 7110/9210 */
86 /* #undef GSM_ENABLE_N71_92INCOMINGINFO */
87 
88 /* n6510.c (DCT4) models */
89 #define GSM_ENABLE_NOKIA6510
90 /* Force using 6210 frames for calendar. Required by some older DCT4 */
91 /* #undef GSM_FORCE_DCT4_CALENDAR_6210 */
92 
93 /* n3650.c (DCT4 with Symbian) models */
94 #define GSM_ENABLE_NOKIA3650
95 
96 /* Global defines for enabling phone families */
97 #if defined(GSM_ENABLE_NOKIA3320) || defined(GSM_ENABLE_NOKIA650) || defined(GSM_ENABLE_NOKIA6110) || defined(GSM_ENABLE_NOKIA7110) || defined(GSM_ENABLE_NOKIA9210)
98 # define GSM_ENABLE_NOKIA_DCT3
99 #endif
100 #if defined(GSM_ENABLE_NOKIA3650) || defined(GSM_ENABLE_NOKIA6510)
101 # define GSM_ENABLE_NOKIA_DCT4
102 #endif
103 
104 /* AT generic models */
105 #define GSM_ENABLE_ATGEN
106 
107 /* Alcatel BE5 */
108 #define GSM_ENABLE_ALCATEL
109 
110 /* AT with OBEX support */
111 #define GSM_ENABLE_ATOBEX
112 
113 /* Automatic switching to OBEX for AT+MODE capable phones */
114 /* #undef GSM_ENABLE_ATOBEX_AUTO_MODE */
115 
116 /* OBEX generic models */
117 #define GSM_ENABLE_OBEXGEN
118 
119 /* Symbian with gnapplet models */
120 #define GSM_ENABLE_GNAPGEN
121 
122 /* ---------------------- General settings -------------------------------- */
123 
124 /* By default commented: some people reported me (for example, with 6210
125  * and 3210), that their phones doesn't answer at all sometimes or answer
126  * with (too) long delay. Possible reason: firmware in phone is too slow
127  * I didn't have such problems personally with phone and PC with Celeron 800
128  * Please also note, that CB function was always TO CHECK in MyGnokii/Gnokii
129  * too.
130  */
131 /* Enables cell broadcast */
132 #define GSM_ENABLE_CELLBROADCAST
133 
134 /* If you want backup/restore stuff. Some people wanted it - they required
135  * smalled library made from Gammu and didn't require it. Please note,
136  * that backup/restore stuff can be easy separated from other things.
137  */
138 #define GSM_ENABLE_BACKUP
139 
140 /* ---------------------- C language specific --------------------------- */
141 
142 /* Do we have gettext support? */
143 #define LIBINTL_LIB_FOUND
144 
145 /* Does gettext support pgettext? */
146 /* #undef LIBINTL_HAS_PGETTEXT */
147 
148 /* are the scandir functions available */
149 #ifndef HAVE_DIRENT_H
150 #define HAVE_DIRENT_H
151 #endif
152 #ifndef HAVE_SCANDIR
153 #define HAVE_SCANDIR
154 #endif
155 #ifndef HAVE_ALPHASORT
156 #define HAVE_ALPHASORT
157 #endif
158 
159 #ifndef HAVE_PTHREAD
160 #define HAVE_PTHREAD
161 #endif
162 #ifndef HAVE_SIGTIMEDWAIT
163 #define HAVE_SIGTIMEDWAIT
164 #endif
165 #ifndef HAVE_SYS_IOCTL_H
166 #define HAVE_SYS_IOCTL_H
167 #endif
168 #ifndef HAVE_MYSQL_MYSQL_H
169 /* #undef HAVE_MYSQL_MYSQL_H */
170 #endif
171 /* ODBC support */
172 /* #undef ODBC_FOUND */
173 /* Do we have libdbi ? */
174 /* #undef LIBDBI_FOUND */
175 #ifndef HAVE_POSTGRESQL_LIBPQ_FE_H
176 /* #undef HAVE_POSTGRESQL_LIBPQ_FE_H */
177 #endif
178 #ifndef HAVE_PQESCAPESTRINGCONN
179 /* #undef HAVE_PQESCAPESTRINGCONN */
180 #endif
181 #ifndef HAVE_SYS_UTSNAME_H
182 #define HAVE_SYS_UTSNAME_H
183 #endif
184 
185 #ifndef HAVE_ALARM
186 #define HAVE_ALARM
187 #endif
188 #ifndef HAVE_GETPASS
189 #define HAVE_GETPASS
190 #endif
191 #ifndef HAVE_GETPID
192 #define HAVE_GETPID
193 #endif
194 #ifndef HAVE_SYSLOG
195 #define HAVE_SYSLOG
196 #endif
197 #ifndef HAVE_GETOPT
198 #define HAVE_GETOPT
199 #endif
200 #ifndef HAVE_GETOPT_LONG
201 #define HAVE_GETOPT_LONG
202 #endif
203 #ifndef HAVE_DAEMON_UNISTD
204 #define HAVE_DAEMON_UNISTD
205 #endif
206 #ifndef HAVE_DAEMON_STDLIB
207 /* #undef HAVE_DAEMON_STDLIB */
208 #endif
209 #if defined(HAVE_DAEMON_STDLIB) || defined(HAVE_DAEMON_UNISTD)
210 #define HAVE_DAEMON
211 #endif
212 #ifndef HAVE_KILL
213 #define HAVE_KILL
214 #endif
215 #ifndef HAVE_SIGHUP
216 #define HAVE_SIGHUP
217 #endif
218 #ifndef HAVE_SIGUSR1
219 #define HAVE_SIGUSR1
220 #endif
221 #ifndef HAVE_SIGUSR2
222 #define HAVE_SIGUSR2
223 #endif
224 
225 #ifndef HAVE_GETPWNAM
226 #define HAVE_GETPWNAM
227 #endif
228 #ifndef HAVE_GETGRNAM
229 #define HAVE_GETGRNAM
230 #endif
231 #ifndef HAVE_INITGROUPS
232 #define HAVE_INITGROUPS
233 #endif
234 #ifndef HAVE_SETUID
235 #define HAVE_SETUID
236 #endif
237 #ifndef HAVE_SETGID
238 #define HAVE_SETGID
239 #endif
240 
241 #ifndef HAVE_DUP_UNISTD_H
242 #define HAVE_DUP_UNISTD_H
243 #endif
244 #ifndef HAVE_DUP_IO_H
245 /* #undef HAVE_DUP_IO_H */
246 #endif
247 
248 #ifndef HAVE_SHM
249 #define HAVE_SHM
250 #endif
251 
252 #ifndef HAVE_STRPTIME
253 #define HAVE_STRPTIME
254 #endif
255 
256 #ifndef HAVE_ISWSPACE
257 #define HAVE_ISWSPACE
258 #endif
259 #ifndef HAVE_TOWLOWER
260 #define HAVE_TOWLOWER
261 #endif
262 #ifndef HAVE_STRNCASECMP
263 #define HAVE_STRNCASECMP
264 #endif
265 #ifndef HAVE_STRCASECMP
266 #define HAVE_STRCASECMP
267 #endif
268 #ifndef HAVE_STRNICMP
269 /* #undef HAVE_STRNICMP */
270 #endif
271 #ifndef HAVE_STRICMP
272 /* #undef HAVE_STRICMP */
273 #endif
274 #ifndef HAVE_STRCASESTR
275 #define HAVE_STRCASESTR
276 #endif
277 #ifndef HAVE_STRCHRNUL
278 #define HAVE_STRCHRNUL
279 #endif
280 #ifndef HAVE_STRTOULL
281 #define HAVE_STRTOULL
282 #endif
283 #ifndef HAVE_WCHAR_T
284 #define HAVE_WCHAR_T
285 #endif
286 #ifndef HAVE_WINT_T
287 #define HAVE_WINT_T
288 #endif
289 #ifndef HAVE_WCHAR_H
290 #define HAVE_WCHAR_H
291 #endif
292 #ifndef HAVE_WCTYPE_H
293 #define HAVE_WCTYPE_H
294 #endif
295 
296 #ifndef HAVE_UNISTD_H
297 #define HAVE_UNISTD_H
298 #endif
299 #ifndef HAVE_STRINGS_H
300 #define HAVE_STRINGS_H
301 #endif
302 #ifndef HAVE_STDINT_H
303 #define HAVE_STDINT_H
304 #endif
305 
306 #ifndef HAVE_SSIZE_T
307 #define HAVE_SSIZE_T
308 #endif
309 #ifndef HAVE_INTPTR_T
310 #define HAVE_INTPTR_T
311 #endif
312 #ifndef HAVE_GETPWUID
313 #define HAVE_GETPWUID
314 #endif
315 #ifndef HAVE_GETUID
316 #define HAVE_GETUID
317 #endif
318 #ifndef HAVE_I_SETSIG
319 #define HAVE_I_SETSIG
320 #endif
321 
325 #define HAVE_MACRO_FUNCTION
326 
330 #ifndef HAVE_STRUCT_TM_TM_ZONE
331 #define HAVE_STRUCT_TM_TM_ZONE
332 #endif
333 
337 #ifndef HAVE_DAYLIGHT
338 #define HAVE_DAYLIGHT
339 #endif
340 
344 /* #undef HAVE_MACRO_FUNC */
345 
346 /* Iconv support */
347 #define ICONV_FOUND
348 /* #undef ICONV_SECOND_ARGUMENT_IS_CONST */
349 
350 /* CURL support */
351 #define CURL_FOUND
352 
353 /* Will be used Bluez stack ? */
354 /* #undef BLUEZ_FOUND */
355 
356 /* Do we have libusb-1.0 ? */
357 /* #undef LIBUSB_FOUND */
358 
359 /* Will be used BSD Bluetooth stack ? */
360 /* #undef BSD_BLUE_FOUND */
361 
362 /* Will be used OSX Bluetooth stack ? */
363 /* #undef OSX_BLUE_FOUND */
364 /* 2.0 OSX Bluetooth API? */
365 /* #undef OSX_BLUE_2_0 */
366 
367 /* Enable Bluetooth channnel searching? */
368 /* #undef BLUETOOTH_RF_SEARCHING */
369 
370 /* Enable Glib */
371 #define Glib_FOUND
372 
373 /* spawnv argument type */
374 /* #undef SPAWNV_ARGUMENT_IS_CONST */
375 
376 /* Path where locales will be installed */
377 #define LOCALE_PATH "/usr/local/share/locale"
378 
379 /* Path where locales will be installed */
380 #define GAMMU_DATA_PATH "/usr/local/share/gammu"
381 
382 /* Most winapi crap can be used as well from Cygwin */
383 #if defined(WIN32) || defined(__CYGWIN__)
384 #define HAVE_WINDOWS_SERVICE
385 #define HAVE_WINDOWS_EVENT_LOG
386 #endif
387 
388 #if !defined(WIN32) && defined(HAVE_PTHREAD) && defined(HAVE_SIGTIMEDWAIT)
389 #define GSM_ENABLE_PROXY
390 #endif
391 
392 #endif