tserialport

Check-in [095f78b4bf]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:updating libserialport to latest version
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | updatelib
Files: files | file ages | folders
SHA3-256: 095f78b4bf7566c7d4db866d1d0630f486757ac788da0e4d61c2e475ce57514d
User & Date: alex 2019-12-10 20:38:07
Context
2019-12-23
15:19
removed some files that are not needed Leaf check-in: 5cc956dc7d user: alex tags: updatelib
2019-12-10
20:38
updating libserialport to latest version check-in: 095f78b4bf user: alex tags: updatelib
20:14
removed rcsid; no longer required check-in: 00b923fd05 user: alex tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to libserialport/Makefile.am.

19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
##

ACLOCAL_AMFLAGS = -I autostuff
AM_LIBTOOLFLAGS = --silent
GNUMAKEFLAGS = --no-print-directory

# Enable more compiler warnings.
AM_CFLAGS = -std=c99 -Wall -Wextra -pedantic -Wmissing-prototypes -Wshadow -fPIC

lib_LTLIBRARIES = libserialport.la

libserialport_la_SOURCES = serialport.c libserialport_internal.h
if LINUX
libserialport_la_SOURCES += linux.c linux_termios.c linux_termios.h
endif







|







19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
##

ACLOCAL_AMFLAGS = -I autostuff
AM_LIBTOOLFLAGS = --silent
GNUMAKEFLAGS = --no-print-directory

# Enable more compiler warnings.
AM_CFLAGS = -std=c99 -Wall -Wextra -pedantic -Wmissing-prototypes -Wshadow

lib_LTLIBRARIES = libserialport.la

libserialport_la_SOURCES = serialport.c libserialport_internal.h
if LINUX
libserialport_la_SOURCES += linux.c linux_termios.c linux_termios.h
endif

Changes to libserialport/README.

57
58
59
60
61
62
63















64
65
66
67
68

Doxygen API documentation is included.

It can also be viewed online at:

  http://sigrok.org/api/libserialport/unstable/
















Website
=======

http://sigrok.org/wiki/Libserialport








>
>
>
>
>
>
>
>
>
>
>
>
>
>
>





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

Doxygen API documentation is included.

It can also be viewed online at:

  http://sigrok.org/api/libserialport/unstable/

Bug reports
===========

You can report bugs for libserialport at https://sigrok.org/bugzilla.

Mailing list
============

 https://lists.sourceforge.net/lists/listinfo/sigrok-devel

IRC
===

You can find the developers in the #sigrok IRC channel on Freenode.

Website
=======

http://sigrok.org/wiki/Libserialport

Changes to libserialport/autom4te.cache/requests.

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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156


157
158
159
160
161

162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182

183
184
185
186
187
188
189
190
191
192
193

194


195
196
197
198
199
200
201
202
203
204

205



206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
...
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252

253
254
255
256
257
258
259
260
261
262




263
264
265
266
267
268
269
270
271
272
273
274
275
276
277

278
279
280
281
282
283
284
285
286
287
288
289
290
291


292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
...
336
337
338
339
340
341
342
343
344
345


346
347
348
349
350
351
352
353

354

355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371

372
373
374
375
376
377
378
379

380
381
382
383
384
385
386



387
388
389
390
391
392
393
394

395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412





413

414
415

416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434

435
436
437
438
439
440


441
442

443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470

471
472
473
474


475
476
477
478
479

480
481
482
483
484
485
486
487
488
489
490
491
492
493
494



495

496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511



512
513
514





515
516
























517
518












519

520













521




522



523
524











525
526
527
528
                        '/usr/local/Cellar/automake/1.15/share/aclocal-1.15/silent.m4',
                        '/usr/local/Cellar/automake/1.15/share/aclocal-1.15/strip.m4',
                        '/usr/local/Cellar/automake/1.15/share/aclocal-1.15/substnot.m4',
                        '/usr/local/Cellar/automake/1.15/share/aclocal-1.15/tar.m4',
                        'configure.ac'
                      ],
                      {
                        'AM_SILENT_RULES' => 1,
                        'LTOPTIONS_VERSION' => 1,
                        '_LT_AC_SHELL_INIT' => 1,
                        'AC_DISABLE_STATIC' => 1,
                        'LT_PROG_GCJ' => 1,

                        'AC_LIBTOOL_LANG_CXX_CONFIG' => 1,
                        'm4_include' => 1,
                        '_LT_LINKER_BOILERPLATE' => 1,
                        '_LT_AC_LANG_F77_CONFIG' => 1,
                        'LTVERSION_VERSION' => 1,
                        'LT_PROG_RC' => 1,
                        '_LT_PATH_TOOL_PREFIX' => 1,
                        'AC_PROG_LD' => 1,
                        'SP_PROG_VERSION' => 1,
                        'AM_MISSING_HAS_RUN' => 1,
                        '_LT_AC_LANG_CXX_CONFIG' => 1,
                        '_AM_AUTOCONF_VERSION' => 1,
                        '_LT_AC_LANG_C_CONFIG' => 1,
                        'AC_LTDL_ENABLE_INSTALL' => 1,
                        'AC_PROG_LD_GNU' => 1,
                        '_LT_LINKER_OPTION' => 1,
                        'LT_AC_PROG_EGREP' => 1,
                        'LT_LIB_M' => 1,
                        'LT_SYS_MODULE_PATH' => 1,

                        'AC_LIBTOOL_LINKER_OPTION' => 1,
                        '_LT_PREPARE_SED_QUOTE_VARS' => 1,
                        '_LT_AC_PROG_ECHO_BACKSLASH' => 1,
                        'AM_CONDITIONAL' => 1,
                        'LT_SYS_MODULE_EXT' => 1,
                        'AC_LIBTOOL_PROG_COMPILER_NO_RTTI' => 1,
                        'AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE' => 1,
                        'AC_LIBTOOL_PROG_COMPILER_PIC' => 1,
                        'AC_ENABLE_STATIC' => 1,
                        'AU_DEFUN' => 1,
                        'AC_LTDL_DLSYM_USCORE' => 1,
                        'AC_PROG_NM' => 1,
                        '_LT_AC_LANG_GCJ' => 1,
                        'AM_ENABLE_STATIC' => 1,
                        'include' => 1,
                        '_LT_AC_CHECK_DLFCN' => 1,
                        'LT_AC_PROG_SED' => 1,
                        'AC_LIBTOOL_SYS_OLD_ARCHIVE' => 1,
                        '_LT_PROG_ECHO_BACKSLASH' => 1,
                        'LT_OUTPUT' => 1,
                        '_LT_AC_TAGCONFIG' => 1,
                        'LT_CMD_MAX_LEN' => 1,
                        'AC_LTDL_SYMBOL_USCORE' => 1,
                        'm4_pattern_forbid' => 1,
                        '_AM_PROG_CC_C_O' => 1,
                        'AC_LIBTOOL_LANG_C_CONFIG' => 1,
                        'AM_MAKE_INCLUDE' => 1,
                        'AC_PROG_LIBTOOL' => 1,
                        'AC_DEPLIBS_CHECK_METHOD' => 1,
                        '_LT_LIBOBJ' => 1,
                        '_LT_PROG_FC' => 1,
                        'AC_LIBTOOL_SETUP' => 1,
                        'AC_LIBLTDL_CONVENIENCE' => 1,
                        'AM_PROG_AR' => 1,
                        'AC_PATH_MAGIC' => 1,
                        'AM_OUTPUT_DEPENDENCY_COMMANDS' => 1,
                        '_LT_AC_LANG_GCJ_CONFIG' => 1,


                        'LTDL_CONVENIENCE' => 1,
                        'AC_LIBTOOL_DLOPEN_SELF' => 1,
                        '_LT_AC_TRY_DLOPEN_SELF' => 1,
                        '_LT_AC_LANG_F77' => 1,
                        'AM_INIT_AUTOMAKE' => 1,
                        '_AM_MANGLE_OPTION' => 1,
                        'AC_LTDL_SYS_DLOPEN_DEPLIBS' => 1,
                        'AC_DISABLE_FAST_INSTALL' => 1,
                        '_LTDL_SETUP' => 1,
                        '_AM_OUTPUT_DEPENDENCY_COMMANDS' => 1,
                        'AC_CHECK_LIBM' => 1,
                        'm4_pattern_allow' => 1,
                        '_AM_CONFIG_MACRO_DIRS' => 1,
                        '_m4_warn' => 1,
                        '_LT_AC_FILE_LTDLL_C' => 1,
                        'AC_PROG_EGREP' => 1,
                        'AC_LIBTOOL_CONFIG' => 1,
                        '_LT_AC_PROG_CXXCPP' => 1,
                        'AC_LIBLTDL_INSTALLABLE' => 1,
                        'AC_LTDL_SHLIBEXT' => 1,
                        'AC_ENABLE_SHARED' => 1,
                        'LT_AC_PROG_RC' => 1,
                        '_LT_PROG_CXX' => 1,
                        '_LT_PROG_F77' => 1,
                        'AM_SET_CURRENT_AUTOMAKE_VERSION' => 1,
                        'AC_LIBTOOL_CXX' => 1,
                        'AM_PROG_INSTALL_SH' => 1,
                        'LTDL_INSTALLABLE' => 1,
                        'AC_LIBTOOL_LANG_F77_CONFIG' => 1,
                        'LT_SYS_SYMBOL_USCORE' => 1,
                        '_LT_AC_TAGVAR' => 1,
                        'AM_PROG_LD' => 1,
                        '_AM_SET_OPTIONS' => 1,
                        '_AM_DEPENDENCIES' => 1,
                        '_AM_SUBST_NOTMAKE' => 1,
                        'AM_SUBST_NOTMAKE' => 1,
                        'AM_DISABLE_SHARED' => 1,
                        'AM_PROG_INSTALL_STRIP' => 1,
                        'LT_SYS_DLSEARCH_PATH' => 1,
                        '_LT_DLL_DEF_P' => 1,
                        '_AM_PROG_TAR' => 1,
                        'AC_LIBTOOL_LANG_GCJ_CONFIG' => 1,
                        'LT_INIT' => 1,
                        'LT_WITH_LTDL' => 1,
                        'AM_PROG_NM' => 1,
                        'AC_DEFUN' => 1,
                        'LT_PROG_GO' => 1,
                        'AM_AUTOMAKE_VERSION' => 1,
                        'AC_PATH_TOOL_PREFIX' => 1,
                        '_LT_REQUIRED_DARWIN_CHECKS' => 1,


                        '_LT_CC_BASENAME' => 1,
                        'AM_COND_IF' => 1,
                        'AM_ENABLE_SHARED' => 1,
                        'AC_LIBTOOL_WIN32_DLL' => 1,
                        'AM_DEP_TRACK' => 1,

                        '_LT_AC_LANG_CXX' => 1,
                        '_AC_AM_CONFIG_HEADER_HOOK' => 1,
                        'AM_SET_DEPDIR' => 1,
                        'AC_LTDL_OBJDIR' => 1,
                        'AM_AUX_DIR_EXPAND' => 1,
                        'LT_LIB_DLLOAD' => 1,
                        'AM_PROG_LIBTOOL' => 1,
                        'AM_PROG_CC_C_O' => 1,
                        'AC_PROG_LD_RELOAD_FLAG' => 1,
                        'AC_LIBTOOL_SYS_MAX_CMD_LEN' => 1,
                        'LTOBSOLETE_VERSION' => 1,
                        'LTSUGAR_VERSION' => 1,
                        'AC_LIBTOOL_PROG_LD_SHLIBS' => 1,
                        'AC_LIBTOOL_RC' => 1,
                        'AC_LTDL_DLLIB' => 1,
                        '_LT_AC_SYS_COMPILER' => 1,
                        'AC_CONFIG_MACRO_DIR' => 1,
                        'AC_LIB_LTDL' => 1,
                        'AM_SANITY_CHECK' => 1,
                        'AC_LIBTOOL_COMPILER_OPTION' => 1,
                        'LTDL_INIT' => 1,

                        '_LT_AC_LANG_RC_CONFIG' => 1,
                        'AC_LIBTOOL_F77' => 1,
                        'LT_FUNC_ARGZ' => 1,
                        '_LT_WITH_SYSROOT' => 1,
                        '_LT_AC_SYS_LIBPATH_AIX' => 1,
                        'AM_MISSING_PROG' => 1,
                        'LT_SUPPORTED_TAG' => 1,
                        'AC_LIBTOOL_DLOPEN' => 1,
                        'AC_LIBTOOL_PROG_CC_C_O' => 1,
                        'AC_LIBTOOL_LANG_RC_CONFIG' => 1,
                        '_LT_COMPILER_OPTION' => 1,

                        '_LT_AC_LOCK' => 1,


                        '_AM_SET_OPTION' => 1,
                        'AC_LIBTOOL_SYS_HARD_LINK_LOCKS' => 1,
                        '_LT_PROG_LTMAIN' => 1,
                        'AC_LIBTOOL_GCJ' => 1,
                        'AC_CONFIG_MACRO_DIR_TRACE' => 1,
                        'LT_CONFIG_LTDL_DIR' => 1,
                        '_LT_COMPILER_BOILERPLATE' => 1,
                        'AC_LIBTOOL_OBJDIR' => 1,
                        'AM_SET_LEADING_DOT' => 1,
                        'AC_DISABLE_SHARED' => 1,

                        'AC_LIBTOOL_POSTDEP_PREDEP' => 1,



                        'LT_SYS_DLOPEN_SELF' => 1,
                        'AC_LIBTOOL_SYS_LIB_STRIP' => 1,
                        'AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH' => 1,
                        'AC_ENABLE_FAST_INSTALL' => 1,
                        '_AM_IF_OPTION' => 1,
                        'AC_LTDL_SHLIBPATH' => 1,
                        '_AC_PROG_LIBTOOL' => 1,
                        'LT_FUNC_DLSYM_USCORE' => 1,
                        'AC_DEFUN_ONCE' => 1,
                        'AC_LIBTOOL_PICMODE' => 1,
                        'AC_LTDL_SYSSEARCHPATH' => 1,
                        'LT_SYS_DLOPEN_DEPLIBS' => 1,
                        'AC_LIBTOOL_FC' => 1,
                        'LT_PATH_NM' => 1,
                        'LT_LANG' => 1,
                        'AC_LTDL_PREOPEN' => 1,
                        'LT_PATH_LD' => 1,
                        'AM_DISABLE_STATIC' => 1,
                        'LT_AC_PROG_GCJ' => 1,
                        'AC_LIBTOOL_SYS_DYNAMIC_LINKER' => 1,
                        'AC_WITH_LTDL' => 1,
                        'AM_RUN_LOG' => 1
                      }
                    ], 'Autom4te::Request' ),
             bless( [
                      '1',
                      1,
                      [
                        '/usr/local/Cellar/autoconf/2.69/share/autoconf'
................................................................................
                      ],
                      [
                        '/usr/local/Cellar/autoconf/2.69/share/autoconf/autoconf/autoconf.m4f',
                        'aclocal.m4',
                        'configure.ac'
                      ],
                      {
                        '_AM_SUBST_NOTMAKE' => 1,
                        'AC_CANONICAL_SYSTEM' => 1,
                        '_AM_MAKEFILE_INCLUDE' => 1,
                        'AC_FC_SRCEXT' => 1,
                        'AC_LIBSOURCE' => 1,
                        'AM_MAINTAINER_MODE' => 1,
                        'AC_CONFIG_AUX_DIR' => 1,
                        'AC_CANONICAL_TARGET' => 1,
                        'AC_CANONICAL_BUILD' => 1,
                        'AC_FC_FREEFORM' => 1,
                        'AM_GNU_GETTEXT' => 1,

                        'AM_PROG_MOC' => 1,
                        'include' => 1,
                        'AM_NLS' => 1,
                        'AM_GNU_GETTEXT_INTL_SUBDIR' => 1,
                        'AM_XGETTEXT_OPTION' => 1,
                        'm4_pattern_allow' => 1,
                        'AM_PROG_CXX_C_O' => 1,
                        'AM_ENABLE_MULTILIB' => 1,
                        '_m4_warn' => 1,
                        'AM_MAKEFILE_INCLUDE' => 1,




                        'AC_SUBST_TRACE' => 1,
                        'AM_PROG_FC_C_O' => 1,
                        'AM_CONDITIONAL' => 1,
                        'AC_SUBST' => 1,
                        'AM_PROG_CC_C_O' => 1,
                        'AH_OUTPUT' => 1,
                        'sinclude' => 1,
                        'AC_CONFIG_LINKS' => 1,
                        'AC_REQUIRE_AUX_FILE' => 1,
                        'AM_EXTRA_RECURSIVE_TARGETS' => 1,
                        'AC_CONFIG_LIBOBJ_DIR' => 1,
                        'AM_PROG_AR' => 1,
                        'AC_CANONICAL_HOST' => 1,
                        'LT_CONFIG_LTDL_DIR' => 1,
                        '_AM_COND_ELSE' => 1,

                        'm4_sinclude' => 1,
                        'AC_FC_PP_SRCEXT' => 1,
                        'AC_FC_PP_DEFINE' => 1,
                        'AM_INIT_AUTOMAKE' => 1,
                        'AC_CONFIG_HEADERS' => 1,
                        'AM_PROG_F77_C_O' => 1,
                        'AC_CONFIG_FILES' => 1,
                        'LT_INIT' => 1,
                        'AM_PATH_GUILE' => 1,
                        'LT_SUPPORTED_TAG' => 1,
                        '_LT_AC_TAGCONFIG' => 1,
                        'AM_SILENT_RULES' => 1,
                        'AC_DEFINE_TRACE_LITERAL' => 1,
                        'AM_PROG_MKDIR_P' => 1,


                        'AC_PROG_LIBTOOL' => 1,
                        'AM_AUTOMAKE_VERSION' => 1,
                        '_AM_COND_ENDIF' => 1,
                        'AC_INIT' => 1,
                        'm4_include' => 1,
                        'm4_pattern_forbid' => 1,
                        'AM_POT_TOOLS' => 1,
                        'AC_CONFIG_SUBDIRS' => 1,
                        '_AM_COND_IF' => 1
                      }
                    ], 'Autom4te::Request' ),
             bless( [
                      '2',
                      1,
                      [
                        '/usr/local/Cellar/autoconf/2.69/share/autoconf'
................................................................................
                        'autostuff/ltoptions.m4',
                        'autostuff/ltsugar.m4',
                        'autostuff/ltversion.m4',
                        'autostuff/lt~obsolete.m4',
                        'configure.ac'
                      ],
                      {
                        'AC_PATH_TOOL_PREFIX' => 1,
                        '_LT_REQUIRED_DARWIN_CHECKS' => 1,
                        'AM_ENABLE_SHARED' => 1,


                        'AM_COND_IF' => 1,
                        'AC_LIBTOOL_WIN32_DLL' => 1,
                        'AM_DEP_TRACK' => 1,
                        '_LT_CC_BASENAME' => 1,
                        '_LT_AC_LANG_CXX' => 1,
                        '_AC_AM_CONFIG_HEADER_HOOK' => 1,
                        'AM_SET_DEPDIR' => 1,
                        'AC_LTDL_OBJDIR' => 1,

                        'LT_INIT' => 1,

                        'AC_LIBTOOL_LANG_GCJ_CONFIG' => 1,
                        'LT_WITH_LTDL' => 1,
                        'AC_DEFUN' => 1,
                        'AM_PROG_NM' => 1,
                        'LT_PROG_GO' => 1,
                        'AM_AUTOMAKE_VERSION' => 1,
                        'LTSUGAR_VERSION' => 1,
                        'LTOBSOLETE_VERSION' => 1,
                        'AC_LTDL_DLLIB' => 1,
                        'AC_LIBTOOL_RC' => 1,
                        '_LT_AC_SYS_COMPILER' => 1,
                        'AC_LIBTOOL_PROG_LD_SHLIBS' => 1,
                        'AM_SANITY_CHECK' => 1,
                        'AC_CONFIG_MACRO_DIR' => 1,
                        'AC_LIB_LTDL' => 1,
                        'AC_LIBTOOL_F77' => 1,
                        'LT_FUNC_ARGZ' => 1,

                        '_LT_WITH_SYSROOT' => 1,
                        '_LT_AC_SYS_LIBPATH_AIX' => 1,
                        'AM_MISSING_PROG' => 1,
                        'AC_LIBTOOL_COMPILER_OPTION' => 1,
                        '_LT_AC_LANG_RC_CONFIG' => 1,
                        'LTDL_INIT' => 1,
                        'AM_AUX_DIR_EXPAND' => 1,
                        'LT_LIB_DLLOAD' => 1,

                        'AM_PROG_LIBTOOL' => 1,
                        'AM_PROG_CC_C_O' => 1,
                        'AC_PROG_LD_RELOAD_FLAG' => 1,
                        'AC_LIBTOOL_SYS_MAX_CMD_LEN' => 1,
                        'LT_CONFIG_LTDL_DIR' => 1,
                        'AC_LIBTOOL_GCJ' => 1,
                        'AC_CONFIG_MACRO_DIR_TRACE' => 1,



                        'AC_LIBTOOL_OBJDIR' => 1,
                        'AM_SET_LEADING_DOT' => 1,
                        '_LT_COMPILER_BOILERPLATE' => 1,
                        'LT_SYS_DLOPEN_SELF' => 1,
                        'AC_LIBTOOL_SYS_LIB_STRIP' => 1,
                        'AC_LIBTOOL_POSTDEP_PREDEP' => 1,
                        'AC_DISABLE_SHARED' => 1,
                        '_AM_IF_OPTION' => 1,

                        'AC_ENABLE_FAST_INSTALL' => 1,
                        'AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH' => 1,
                        'AC_LIBTOOL_DLOPEN' => 1,
                        'LT_SUPPORTED_TAG' => 1,
                        'AC_LIBTOOL_PROG_CC_C_O' => 1,
                        'AC_LIBTOOL_SYS_HARD_LINK_LOCKS' => 1,
                        '_LT_PROG_LTMAIN' => 1,
                        'AC_LIBTOOL_LANG_RC_CONFIG' => 1,
                        '_LT_AC_LOCK' => 1,
                        '_AM_SET_OPTION' => 1,
                        '_LT_COMPILER_OPTION' => 1,
                        'LT_LANG' => 1,
                        'LT_PATH_LD' => 1,
                        'AC_LTDL_PREOPEN' => 1,
                        'LT_AC_PROG_GCJ' => 1,
                        'AM_DISABLE_STATIC' => 1,
                        'AC_WITH_LTDL' => 1,
                        'AM_RUN_LOG' => 1,





                        'AC_LIBTOOL_SYS_DYNAMIC_LINKER' => 1,

                        'AC_LTDL_SHLIBPATH' => 1,
                        '_AC_PROG_LIBTOOL' => 1,

                        'LT_FUNC_DLSYM_USCORE' => 1,
                        'AC_DEFUN_ONCE' => 1,
                        'AC_LIBTOOL_PICMODE' => 1,
                        'LT_PATH_NM' => 1,
                        'AC_LTDL_SYSSEARCHPATH' => 1,
                        'LT_SYS_DLOPEN_DEPLIBS' => 1,
                        'AC_LIBTOOL_FC' => 1,
                        'LTVERSION_VERSION' => 1,
                        '_LT_PATH_TOOL_PREFIX' => 1,
                        'LT_PROG_RC' => 1,
                        'AC_PROG_LD' => 1,
                        '_LT_AC_LANG_CXX_CONFIG' => 1,
                        'AM_MISSING_HAS_RUN' => 1,
                        'SP_PROG_VERSION' => 1,
                        '_AM_AUTOCONF_VERSION' => 1,
                        'AC_LTDL_ENABLE_INSTALL' => 1,
                        'AC_PROG_LD_GNU' => 1,
                        '_LT_AC_LANG_C_CONFIG' => 1,
                        '_LT_AC_SHELL_INIT' => 1,

                        'AM_SILENT_RULES' => 1,
                        'LTOPTIONS_VERSION' => 1,
                        'LT_PROG_GCJ' => 1,
                        'AC_DISABLE_STATIC' => 1,
                        '_LT_LINKER_BOILERPLATE' => 1,
                        'AC_LIBTOOL_LANG_CXX_CONFIG' => 1,


                        'm4_include' => 1,
                        '_LT_AC_LANG_F77_CONFIG' => 1,

                        'AC_LIBTOOL_PROG_COMPILER_PIC' => 1,
                        'AC_ENABLE_STATIC' => 1,
                        'AC_LIBTOOL_PROG_COMPILER_NO_RTTI' => 1,
                        'LT_SYS_MODULE_EXT' => 1,
                        'AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE' => 1,
                        'AM_ENABLE_STATIC' => 1,
                        'AC_LTDL_DLSYM_USCORE' => 1,
                        'AU_DEFUN' => 1,
                        '_LT_AC_LANG_GCJ' => 1,
                        'AC_PROG_NM' => 1,
                        'LT_AC_PROG_SED' => 1,
                        '_LT_AC_CHECK_DLFCN' => 1,
                        'include' => 1,
                        '_LT_PROG_ECHO_BACKSLASH' => 1,
                        'LT_OUTPUT' => 1,
                        'AC_LIBTOOL_SYS_OLD_ARCHIVE' => 1,
                        '_LT_LINKER_OPTION' => 1,
                        'LT_AC_PROG_EGREP' => 1,
                        'LT_LIB_M' => 1,
                        '_LT_PREPARE_SED_QUOTE_VARS' => 1,
                        '_LT_AC_PROG_ECHO_BACKSLASH' => 1,
                        'AC_LIBTOOL_LINKER_OPTION' => 1,
                        'LT_SYS_MODULE_PATH' => 1,
                        'AM_CONDITIONAL' => 1,
                        '_LT_LIBOBJ' => 1,
                        '_LT_PROG_FC' => 1,
                        'AC_LIBTOOL_SETUP' => 1,
                        'AC_LIBLTDL_CONVENIENCE' => 1,

                        'AC_DEPLIBS_CHECK_METHOD' => 1,
                        'AM_PROG_AR' => 1,
                        'AC_PATH_MAGIC' => 1,
                        '_LT_AC_LANG_GCJ_CONFIG' => 1,


                        'LTDL_CONVENIENCE' => 1,
                        'AC_LIBTOOL_DLOPEN_SELF' => 1,
                        'AM_OUTPUT_DEPENDENCY_COMMANDS' => 1,
                        '_LT_AC_LANG_F77' => 1,
                        'AC_LTDL_SYS_DLOPEN_DEPLIBS' => 1,

                        '_AM_MANGLE_OPTION' => 1,
                        'AM_INIT_AUTOMAKE' => 1,
                        'AC_DISABLE_FAST_INSTALL' => 1,
                        '_LTDL_SETUP' => 1,
                        '_LT_AC_TRY_DLOPEN_SELF' => 1,
                        'LT_CMD_MAX_LEN' => 1,
                        '_LT_AC_TAGCONFIG' => 1,
                        '_AM_PROG_CC_C_O' => 1,
                        'AC_LIBTOOL_LANG_C_CONFIG' => 1,
                        'AC_LTDL_SYMBOL_USCORE' => 1,
                        'm4_pattern_forbid' => 1,
                        'AC_PROG_LIBTOOL' => 1,
                        'AM_MAKE_INCLUDE' => 1,
                        'LTDL_INSTALLABLE' => 1,
                        'AM_SET_CURRENT_AUTOMAKE_VERSION' => 1,



                        'AC_LIBTOOL_CXX' => 1,

                        'AM_PROG_INSTALL_SH' => 1,
                        'AM_PROG_LD' => 1,
                        '_AM_SET_OPTIONS' => 1,
                        '_AM_SUBST_NOTMAKE' => 1,
                        '_AM_DEPENDENCIES' => 1,
                        'LT_SYS_SYMBOL_USCORE' => 1,
                        'AC_LIBTOOL_LANG_F77_CONFIG' => 1,
                        '_LT_AC_TAGVAR' => 1,
                        'AM_SUBST_NOTMAKE' => 1,
                        'AM_DISABLE_SHARED' => 1,
                        '_AM_PROG_TAR' => 1,
                        'AM_PROG_INSTALL_STRIP' => 1,
                        'LT_SYS_DLSEARCH_PATH' => 1,
                        '_LT_DLL_DEF_P' => 1,
                        '_m4_warn' => 1,
                        'AC_CHECK_LIBM' => 1,



                        '_AM_OUTPUT_DEPENDENCY_COMMANDS' => 1,
                        'm4_pattern_allow' => 1,
                        '_AM_CONFIG_MACRO_DIRS' => 1,





                        '_LT_AC_PROG_CXXCPP' => 1,
                        'AC_LIBLTDL_INSTALLABLE' => 1,
























                        'AC_LIBTOOL_CONFIG' => 1,
                        '_LT_AC_FILE_LTDLL_C' => 1,












                        'AC_PROG_EGREP' => 1,

                        '_LT_PROG_CXX' => 1,













                        'AC_LTDL_SHLIBEXT' => 1,




                        'AC_ENABLE_SHARED' => 1,



                        'LT_AC_PROG_RC' => 1,
                        '_LT_PROG_F77' => 1











                      }
                    ], 'Autom4te::Request' )
           );








|
|
|
|
|
>
|
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
>
|
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
>
>

|
<
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<
<

>
>
|
|
|
|
|
>
|
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<
|
|
>
|
|
|
|
|
|
|
<
<
<
|
>

>
>
|
|
|
|
|
|
|
<
<

>

>
>
>
|
<
|
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|







 







|
|
|
|
|
|
|
|
|
<

>
|
|
|
|
|
|
|
|
|
|
>
>
>
>

|

<
|
<
|
<
<
|
|
|
|
|
|
>
|
<
|
|
|
|
|

|
|
|
|
|
|
>
>

<
<
|
|
|
|
|
|







 







<
<
|
>
>
|
|
|
|
|
|
|
|
>
|
>
|

|
<
<
|
|
|
|
|
|
|
|
|
|
<

>
|
|
|
|
|
|
|
|
>

|
<
|
|
|
|
>
>
>

<
<

|
<
<
|
>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
>
>
>
>
>

>

<
>
|
|
<
<
<
<
<
|
<
|
|
|
|
|
|
|
|
<

>
|
|
|
<
<

>
>
|
|
>

<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

<

>
|
<
<

>
>
|
|
|
|
|
>
|
<
|
|
|
|
|
|
|
|
|
|
|
|
|
>
>
>
|
>

<
<
<
<
|
|
|
|
|
|
|
|
|
|
|
>
>
>
|
<
<
>
>
>
>
>

<
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
<
>
>
>
>
>
>
>
>
>
>
>
>
|
>
|
>
>
>
>
>
>
>
>
>
>
>
>
>
|
>
>
>
>
|
>
>
>
|
<
>
>
>
>
>
>
>
>
>
>
>




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
110


111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153


154
155
156
157
158
159
160
161
162
163

164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179

180
181
182
183
184
185
186
187
188
189



190
191
192
193
194
195
196
197
198
199
200
201


202
203
204
205
206
207
208

209

210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
...
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250

251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269

270

271


272
273
274
275
276
277
278
279

280
281
282
283
284
285
286
287
288
289
290
291
292
293
294


295
296
297
298
299
300
301
302
303
304
305
306
307
...
336
337
338
339
340
341
342


343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359


360
361
362
363
364
365
366
367
368
369

370
371
372
373
374
375
376
377
378
379
380
381
382

383
384
385
386
387
388
389
390


391
392


393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420

421
422
423





424

425
426
427
428
429
430
431
432

433
434
435
436
437


438
439
440
441
442
443
444

445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468

469
470
471


472
473
474
475
476
477
478
479
480
481

482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500




501
502
503
504
505
506
507
508
509
510
511
512
513
514
515


516
517
518
519
520
521

522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546

547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584

585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
                        '/usr/local/Cellar/automake/1.15/share/aclocal-1.15/silent.m4',
                        '/usr/local/Cellar/automake/1.15/share/aclocal-1.15/strip.m4',
                        '/usr/local/Cellar/automake/1.15/share/aclocal-1.15/substnot.m4',
                        '/usr/local/Cellar/automake/1.15/share/aclocal-1.15/tar.m4',
                        'configure.ac'
                      ],
                      {
                        '_LT_AC_LANG_RC_CONFIG' => 1,
                        '_AM_PROG_TAR' => 1,
                        'AC_LTDL_DLLIB' => 1,
                        'AM_DISABLE_SHARED' => 1,
                        'LT_LIB_M' => 1,
                        'AC_PROG_LD_GNU' => 1,
                        'AC_LIBTOOL_LANG_GCJ_CONFIG' => 1,

                        'AC_LTDL_ENABLE_INSTALL' => 1,
                        'LT_LANG' => 1,
                        'AC_PROG_LIBTOOL' => 1,
                        'AC_LIBTOOL_SETUP' => 1,
                        'AC_LIBTOOL_PROG_LD_SHLIBS' => 1,
                        'AM_SILENT_RULES' => 1,
                        '_LT_PREPARE_SED_QUOTE_VARS' => 1,
                        'AM_PROG_INSTALL_STRIP' => 1,
                        'AC_LIBTOOL_PROG_COMPILER_NO_RTTI' => 1,
                        'AC_LIBLTDL_INSTALLABLE' => 1,
                        'm4_include' => 1,
                        '_LT_DLL_DEF_P' => 1,
                        'LT_WITH_LTDL' => 1,
                        'LT_AC_PROG_RC' => 1,
                        '_LTDL_SETUP' => 1,
                        '_LT_PATH_TOOL_PREFIX' => 1,
                        'AC_PROG_LD_RELOAD_FLAG' => 1,
                        '_LT_LINKER_BOILERPLATE' => 1,
                        '_AM_MANGLE_OPTION' => 1,

                        'AC_DEFUN_ONCE' => 1,
                        'AC_LIB_LTDL' => 1,
                        'AC_DISABLE_STATIC' => 1,
                        'AC_LIBTOOL_SYS_HARD_LINK_LOCKS' => 1,
                        'include' => 1,
                        'LT_FUNC_ARGZ' => 1,
                        '_LT_PROG_ECHO_BACKSLASH' => 1,
                        'LTOPTIONS_VERSION' => 1,
                        'LT_SYS_MODULE_PATH' => 1,
                        'LTVERSION_VERSION' => 1,
                        'AC_LTDL_SYS_DLOPEN_DEPLIBS' => 1,
                        '_LT_PROG_CXX' => 1,
                        'AM_PROG_LIBTOOL' => 1,
                        'AC_LTDL_PREOPEN' => 1,
                        'AC_LIBTOOL_LANG_RC_CONFIG' => 1,
                        '_AM_PROG_CC_C_O' => 1,
                        'AC_PROG_NM' => 1,
                        'AC_LIBTOOL_OBJDIR' => 1,
                        'LT_SYS_DLOPEN_SELF' => 1,
                        'AC_LIBTOOL_DLOPEN' => 1,
                        'LT_PATH_NM' => 1,
                        'AM_AUX_DIR_EXPAND' => 1,
                        '_LT_AC_LANG_F77_CONFIG' => 1,
                        '_AM_CONFIG_MACRO_DIRS' => 1,
                        'm4_pattern_allow' => 1,
                        '_LT_AC_LANG_C_CONFIG' => 1,
                        '_LT_LINKER_OPTION' => 1,
                        'LTOBSOLETE_VERSION' => 1,
                        'AC_CHECK_LIBM' => 1,
                        'AC_DISABLE_FAST_INSTALL' => 1,
                        '_AM_SET_OPTION' => 1,
                        'AM_ENABLE_SHARED' => 1,
                        'AC_PROG_LD' => 1,
                        'AC_DEFUN' => 1,
                        '_AM_SUBST_NOTMAKE' => 1,
                        'AM_PROG_LD' => 1,
                        '_AM_AUTOCONF_VERSION' => 1,
                        'LTDL_CONVENIENCE' => 1,
                        'AC_LIBTOOL_F77' => 1,


                        '_LT_CC_BASENAME' => 1,
                        'AM_CONDITIONAL' => 1,
                        '_LT_AC_LANG_GCJ' => 1,
                        'AC_LIBTOOL_CONFIG' => 1,
                        'LT_FUNC_DLSYM_USCORE' => 1,
                        '_LT_AC_SYS_COMPILER' => 1,
                        'LT_AC_PROG_GCJ' => 1,
                        '_LT_AC_SYS_LIBPATH_AIX' => 1,
                        'LT_CONFIG_LTDL_DIR' => 1,
                        'AC_LIBTOOL_LANG_F77_CONFIG' => 1,
                        'AC_LIBTOOL_SYS_DYNAMIC_LINKER' => 1,
                        'AM_INIT_AUTOMAKE' => 1,
                        'AM_SET_LEADING_DOT' => 1,
                        'LT_PATH_LD' => 1,
                        'AM_DEP_TRACK' => 1,
                        'AM_AUTOMAKE_VERSION' => 1,
                        'AC_LIBTOOL_COMPILER_OPTION' => 1,
                        'LTSUGAR_VERSION' => 1,
                        'AC_LTDL_DLSYM_USCORE' => 1,
                        '_LT_LIBOBJ' => 1,
                        'AC_LTDL_SHLIBPATH' => 1,
                        'AC_LIBTOOL_CXX' => 1,
                        'AC_LIBTOOL_LANG_CXX_CONFIG' => 1,
                        '_LT_PROG_LTMAIN' => 1,
                        '_AM_OUTPUT_DEPENDENCY_COMMANDS' => 1,
                        'LT_CMD_MAX_LEN' => 1,
                        'AU_DEFUN' => 1,
                        '_LT_PROG_F77' => 1,
                        '_LT_AC_SHELL_INIT' => 1,
                        'AM_MISSING_HAS_RUN' => 1,
                        'AC_LIBTOOL_LANG_C_CONFIG' => 1,
                        'AM_MAKE_INCLUDE' => 1,
                        'AC_PATH_TOOL_PREFIX' => 1,
                        'AC_LIBTOOL_PROG_COMPILER_PIC' => 1,
                        'LT_AC_PROG_EGREP' => 1,
                        '_LT_COMPILER_OPTION' => 1,
                        'AC_LTDL_SYSSEARCHPATH' => 1,
                        'LT_SUPPORTED_TAG' => 1,
                        'AC_CONFIG_MACRO_DIR' => 1,
                        'AM_SANITY_CHECK' => 1,
                        'LT_OUTPUT' => 1,
                        'AC_LIBTOOL_SYS_OLD_ARCHIVE' => 1,
                        'AM_COND_IF' => 1,


                        '_LT_REQUIRED_DARWIN_CHECKS' => 1,
                        'AC_PATH_MAGIC' => 1,
                        'AC_LIBTOOL_RC' => 1,
                        'LT_SYS_MODULE_EXT' => 1,
                        'LT_SYS_DLOPEN_DEPLIBS' => 1,
                        'AC_LTDL_OBJDIR' => 1,
                        'AC_LIBTOOL_GCJ' => 1,
                        'AC_LIBTOOL_DLOPEN_SELF' => 1,
                        'AM_MISSING_PROG' => 1,
                        '_LT_AC_LANG_F77' => 1,

                        '_AM_SET_OPTIONS' => 1,
                        'LT_SYS_DLSEARCH_PATH' => 1,
                        'AC_LIBLTDL_CONVENIENCE' => 1,
                        '_LT_PROG_FC' => 1,
                        'LT_PROG_GCJ' => 1,
                        'm4_pattern_forbid' => 1,
                        'AM_RUN_LOG' => 1,
                        'AC_LIBTOOL_FC' => 1,
                        'AC_WITH_LTDL' => 1,
                        '_AC_AM_CONFIG_HEADER_HOOK' => 1,
                        '_LT_AC_PROG_ECHO_BACKSLASH' => 1,
                        '_LT_AC_LANG_GCJ_CONFIG' => 1,
                        'SP_PROG_VERSION' => 1,
                        '_AC_PROG_LIBTOOL' => 1,
                        'AM_PROG_NM' => 1,
                        '_m4_warn' => 1,

                        'AC_LIBTOOL_LINKER_OPTION' => 1,
                        'AC_PROG_EGREP' => 1,
                        '_AM_DEPENDENCIES' => 1,
                        '_LT_WITH_SYSROOT' => 1,
                        'AM_DISABLE_STATIC' => 1,
                        'LT_INIT' => 1,
                        'AC_ENABLE_FAST_INSTALL' => 1,
                        'AC_CONFIG_MACRO_DIR_TRACE' => 1,
                        'AM_SET_DEPDIR' => 1,
                        'LT_SYS_SYMBOL_USCORE' => 1,



                        '_AM_IF_OPTION' => 1,
                        'LT_AC_PROG_SED' => 1,
                        '_LT_AC_LOCK' => 1,
                        '_LT_COMPILER_BOILERPLATE' => 1,
                        'AC_LTDL_SYMBOL_USCORE' => 1,
                        '_LT_AC_LANG_CXX' => 1,
                        '_LT_AC_TAGVAR' => 1,
                        'AM_PROG_AR' => 1,
                        'AC_LIBTOOL_SYS_MAX_CMD_LEN' => 1,
                        'LT_LIB_DLLOAD' => 1,
                        'AM_PROG_INSTALL_SH' => 1,
                        'AC_ENABLE_SHARED' => 1,


                        'AC_DISABLE_SHARED' => 1,
                        'AC_LIBTOOL_PICMODE' => 1,
                        'AC_LIBTOOL_POSTDEP_PREDEP' => 1,
                        'AM_ENABLE_STATIC' => 1,
                        'AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE' => 1,
                        '_LT_AC_TAGCONFIG' => 1,
                        '_LT_AC_TRY_DLOPEN_SELF' => 1,

                        'AC_LIBTOOL_PROG_CC_C_O' => 1,

                        'LTDL_INIT' => 1,
                        '_LT_AC_FILE_LTDLL_C' => 1,
                        'LT_PROG_GO' => 1,
                        'LT_PROG_RC' => 1,
                        'AC_LIBTOOL_SYS_LIB_STRIP' => 1,
                        'AM_SUBST_NOTMAKE' => 1,
                        'AC_ENABLE_STATIC' => 1,
                        'AC_DEPLIBS_CHECK_METHOD' => 1,
                        'AM_OUTPUT_DEPENDENCY_COMMANDS' => 1,
                        'LTDL_INSTALLABLE' => 1,
                        'AC_LTDL_SHLIBEXT' => 1,
                        '_LT_AC_PROG_CXXCPP' => 1,
                        'AM_PROG_CC_C_O' => 1,
                        'AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH' => 1,
                        'AC_LIBTOOL_WIN32_DLL' => 1,
                        'AM_SET_CURRENT_AUTOMAKE_VERSION' => 1,
                        '_LT_AC_CHECK_DLFCN' => 1,
                        '_LT_AC_LANG_CXX_CONFIG' => 1
                      }
                    ], 'Autom4te::Request' ),
             bless( [
                      '1',
                      1,
                      [
                        '/usr/local/Cellar/autoconf/2.69/share/autoconf'
................................................................................
                      ],
                      [
                        '/usr/local/Cellar/autoconf/2.69/share/autoconf/autoconf/autoconf.m4f',
                        'aclocal.m4',
                        'configure.ac'
                      ],
                      {
                        'include' => 1,
                        'AM_GNU_GETTEXT_INTL_SUBDIR' => 1,
                        'm4_sinclude' => 1,
                        'AM_INIT_AUTOMAKE' => 1,
                        'sinclude' => 1,
                        'm4_pattern_forbid' => 1,
                        'LT_CONFIG_LTDL_DIR' => 1,
                        'AM_POT_TOOLS' => 1,
                        'AM_PROG_CC_C_O' => 1,

                        'AM_GNU_GETTEXT' => 1,
                        'AM_AUTOMAKE_VERSION' => 1,
                        'AM_PROG_CXX_C_O' => 1,
                        'AC_LIBSOURCE' => 1,
                        'AC_CANONICAL_BUILD' => 1,
                        'AC_FC_FREEFORM' => 1,
                        'AC_CONFIG_HEADERS' => 1,
                        'AC_REQUIRE_AUX_FILE' => 1,
                        'AC_CANONICAL_TARGET' => 1,
                        '_LT_AC_TAGCONFIG' => 1,
                        'AM_EXTRA_RECURSIVE_TARGETS' => 1,
                        'AC_CONFIG_LIBOBJ_DIR' => 1,
                        'AM_PROG_MKDIR_P' => 1,
                        'AM_PATH_GUILE' => 1,
                        'AC_CONFIG_SUBDIRS' => 1,
                        'AC_DEFINE_TRACE_LITERAL' => 1,
                        'AC_SUBST_TRACE' => 1,
                        'AM_PROG_F77_C_O' => 1,
                        'AM_CONDITIONAL' => 1,

                        'AM_PROG_AR' => 1,

                        '_AM_COND_IF' => 1,


                        '_AM_SUBST_NOTMAKE' => 1,
                        'AC_INIT' => 1,
                        'AM_SILENT_RULES' => 1,
                        'AC_CANONICAL_SYSTEM' => 1,
                        'LT_SUPPORTED_TAG' => 1,
                        'AM_MAINTAINER_MODE' => 1,
                        'AC_CONFIG_AUX_DIR' => 1,
                        'm4_include' => 1,

                        '_AM_MAKEFILE_INCLUDE' => 1,
                        '_AM_COND_ENDIF' => 1,
                        'AM_NLS' => 1,
                        'AM_PROG_FC_C_O' => 1,
                        'AC_FC_PP_DEFINE' => 1,
                        'LT_INIT' => 1,
                        'AC_CANONICAL_HOST' => 1,
                        'AH_OUTPUT' => 1,
                        '_m4_warn' => 1,
                        'AC_CONFIG_LINKS' => 1,
                        'AM_XGETTEXT_OPTION' => 1,
                        '_AM_COND_ELSE' => 1,
                        'AC_FC_SRCEXT' => 1,
                        'AC_SUBST' => 1,
                        'AC_PROG_LIBTOOL' => 1,


                        'AM_PROG_MOC' => 1,
                        'AC_CONFIG_FILES' => 1,
                        'AC_FC_PP_SRCEXT' => 1,
                        'm4_pattern_allow' => 1,
                        'AM_ENABLE_MULTILIB' => 1,
                        'AM_MAKEFILE_INCLUDE' => 1
                      }
                    ], 'Autom4te::Request' ),
             bless( [
                      '2',
                      1,
                      [
                        '/usr/local/Cellar/autoconf/2.69/share/autoconf'
................................................................................
                        'autostuff/ltoptions.m4',
                        'autostuff/ltsugar.m4',
                        'autostuff/ltversion.m4',
                        'autostuff/lt~obsolete.m4',
                        'configure.ac'
                      ],
                      {


                        'AM_DISABLE_SHARED' => 1,
                        '_LT_AC_LANG_RC_CONFIG' => 1,
                        '_AM_PROG_TAR' => 1,
                        'AC_LTDL_DLLIB' => 1,
                        'LT_LANG' => 1,
                        'AC_PROG_LIBTOOL' => 1,
                        'AC_PROG_LD_GNU' => 1,
                        'LT_LIB_M' => 1,
                        'AC_LIBTOOL_LANG_GCJ_CONFIG' => 1,
                        'AC_LTDL_ENABLE_INSTALL' => 1,
                        'AM_PROG_INSTALL_STRIP' => 1,
                        '_LT_PREPARE_SED_QUOTE_VARS' => 1,
                        'AC_LIBTOOL_SETUP' => 1,
                        'AM_SILENT_RULES' => 1,
                        'AC_LIBTOOL_PROG_LD_SHLIBS' => 1,
                        'LT_WITH_LTDL' => 1,
                        'm4_include' => 1,


                        'AC_LIBLTDL_INSTALLABLE' => 1,
                        '_LT_DLL_DEF_P' => 1,
                        'AC_LIBTOOL_PROG_COMPILER_NO_RTTI' => 1,
                        '_LT_PATH_TOOL_PREFIX' => 1,
                        'LT_AC_PROG_RC' => 1,
                        '_LTDL_SETUP' => 1,
                        'AC_DEFUN_ONCE' => 1,
                        '_LT_LINKER_BOILERPLATE' => 1,
                        '_AM_MANGLE_OPTION' => 1,
                        'AC_PROG_LD_RELOAD_FLAG' => 1,

                        'LT_FUNC_ARGZ' => 1,
                        'LT_SYS_MODULE_PATH' => 1,
                        'LTOPTIONS_VERSION' => 1,
                        'LTVERSION_VERSION' => 1,
                        '_LT_PROG_ECHO_BACKSLASH' => 1,
                        'include' => 1,
                        'AC_LIBTOOL_SYS_HARD_LINK_LOCKS' => 1,
                        'AC_DISABLE_STATIC' => 1,
                        'AC_LIB_LTDL' => 1,
                        'AC_PROG_NM' => 1,
                        'AC_LTDL_PREOPEN' => 1,
                        'AM_PROG_LIBTOOL' => 1,
                        '_AM_PROG_CC_C_O' => 1,

                        'AC_LIBTOOL_LANG_RC_CONFIG' => 1,
                        'AC_LTDL_SYS_DLOPEN_DEPLIBS' => 1,
                        '_LT_PROG_CXX' => 1,
                        '_AM_CONFIG_MACRO_DIRS' => 1,
                        'AM_AUX_DIR_EXPAND' => 1,
                        'LT_PATH_NM' => 1,
                        '_LT_AC_LANG_F77_CONFIG' => 1,
                        'AC_LIBTOOL_OBJDIR' => 1,


                        'LT_SYS_DLOPEN_SELF' => 1,
                        'AC_LIBTOOL_DLOPEN' => 1,


                        '_LT_LINKER_OPTION' => 1,
                        '_LT_AC_LANG_C_CONFIG' => 1,
                        'm4_pattern_allow' => 1,
                        'AC_DEFUN' => 1,
                        '_AM_SUBST_NOTMAKE' => 1,
                        '_AM_SET_OPTION' => 1,
                        'AM_ENABLE_SHARED' => 1,
                        'AC_PROG_LD' => 1,
                        'AC_CHECK_LIBM' => 1,
                        'LTOBSOLETE_VERSION' => 1,
                        'AC_DISABLE_FAST_INSTALL' => 1,
                        'AM_PROG_LD' => 1,
                        '_AM_AUTOCONF_VERSION' => 1,
                        'LT_FUNC_DLSYM_USCORE' => 1,
                        'LT_AC_PROG_GCJ' => 1,
                        '_LT_AC_SYS_COMPILER' => 1,
                        '_LT_AC_LANG_GCJ' => 1,
                        'AC_LIBTOOL_CONFIG' => 1,
                        'AM_CONDITIONAL' => 1,
                        'AC_LIBTOOL_F77' => 1,
                        'LTDL_CONVENIENCE' => 1,
                        '_LT_CC_BASENAME' => 1,
                        'AM_INIT_AUTOMAKE' => 1,
                        'AC_LIBTOOL_LANG_F77_CONFIG' => 1,
                        'LT_CONFIG_LTDL_DIR' => 1,
                        'AC_LIBTOOL_SYS_DYNAMIC_LINKER' => 1,
                        '_LT_AC_SYS_LIBPATH_AIX' => 1,
                        'AC_LTDL_SHLIBPATH' => 1,

                        'AC_LIBTOOL_CXX' => 1,
                        'AC_LTDL_DLSYM_USCORE' => 1,
                        '_LT_LIBOBJ' => 1,





                        'LTSUGAR_VERSION' => 1,

                        'AC_LIBTOOL_COMPILER_OPTION' => 1,
                        'AM_SET_LEADING_DOT' => 1,
                        'LT_PATH_LD' => 1,
                        'AM_DEP_TRACK' => 1,
                        'AM_AUTOMAKE_VERSION' => 1,
                        'AC_LIBTOOL_LANG_C_CONFIG' => 1,
                        '_LT_PROG_F77' => 1,
                        'AM_MISSING_HAS_RUN' => 1,

                        '_LT_AC_SHELL_INIT' => 1,
                        'AU_DEFUN' => 1,
                        'LT_CMD_MAX_LEN' => 1,
                        '_AM_OUTPUT_DEPENDENCY_COMMANDS' => 1,
                        '_LT_PROG_LTMAIN' => 1,


                        'AC_LIBTOOL_LANG_CXX_CONFIG' => 1,
                        '_LT_COMPILER_OPTION' => 1,
                        'AC_LTDL_SYSSEARCHPATH' => 1,
                        'LT_AC_PROG_EGREP' => 1,
                        'AM_MAKE_INCLUDE' => 1,
                        'AC_PATH_TOOL_PREFIX' => 1,
                        'AC_LIBTOOL_PROG_COMPILER_PIC' => 1,

                        'LT_OUTPUT' => 1,
                        'AM_SANITY_CHECK' => 1,
                        'LT_SUPPORTED_TAG' => 1,
                        'AC_CONFIG_MACRO_DIR' => 1,
                        'AC_PATH_MAGIC' => 1,
                        'AC_LIBTOOL_RC' => 1,
                        'AM_COND_IF' => 1,
                        '_LT_REQUIRED_DARWIN_CHECKS' => 1,
                        'AC_LIBTOOL_SYS_OLD_ARCHIVE' => 1,
                        'AC_LIBTOOL_DLOPEN_SELF' => 1,
                        '_LT_AC_LANG_F77' => 1,
                        'AM_MISSING_PROG' => 1,
                        'AC_LIBTOOL_GCJ' => 1,
                        'LT_SYS_MODULE_EXT' => 1,
                        'LT_SYS_DLOPEN_DEPLIBS' => 1,
                        'AC_LTDL_OBJDIR' => 1,
                        'LT_SYS_DLSEARCH_PATH' => 1,
                        '_AM_SET_OPTIONS' => 1,
                        'AM_RUN_LOG' => 1,
                        'AC_LIBTOOL_FC' => 1,
                        'AC_WITH_LTDL' => 1,
                        'LT_PROG_GCJ' => 1,
                        'm4_pattern_forbid' => 1,
                        '_LT_PROG_FC' => 1,

                        'AC_LIBLTDL_CONVENIENCE' => 1,
                        'SP_PROG_VERSION' => 1,
                        '_AC_PROG_LIBTOOL' => 1,


                        '_LT_AC_LANG_GCJ_CONFIG' => 1,
                        '_LT_AC_PROG_ECHO_BACKSLASH' => 1,
                        '_AC_AM_CONFIG_HEADER_HOOK' => 1,
                        'LT_INIT' => 1,
                        'AM_DISABLE_STATIC' => 1,
                        'AC_ENABLE_FAST_INSTALL' => 1,
                        'AC_PROG_EGREP' => 1,
                        '_AM_DEPENDENCIES' => 1,
                        '_LT_WITH_SYSROOT' => 1,
                        'AC_LIBTOOL_LINKER_OPTION' => 1,

                        '_m4_warn' => 1,
                        'AM_PROG_NM' => 1,
                        '_LT_AC_LOCK' => 1,
                        'LT_SYS_SYMBOL_USCORE' => 1,
                        '_AM_IF_OPTION' => 1,
                        'LT_AC_PROG_SED' => 1,
                        'AM_SET_DEPDIR' => 1,
                        'AC_CONFIG_MACRO_DIR_TRACE' => 1,
                        'AC_LIBTOOL_SYS_MAX_CMD_LEN' => 1,
                        '_LT_AC_LANG_CXX' => 1,
                        'AM_PROG_AR' => 1,
                        '_LT_AC_TAGVAR' => 1,
                        '_LT_COMPILER_BOILERPLATE' => 1,
                        'AC_LTDL_SYMBOL_USCORE' => 1,
                        'AC_ENABLE_SHARED' => 1,
                        'AC_DISABLE_SHARED' => 1,
                        'AC_LIBTOOL_PICMODE' => 1,
                        'AC_LIBTOOL_POSTDEP_PREDEP' => 1,
                        'AM_PROG_INSTALL_SH' => 1,




                        'LT_LIB_DLLOAD' => 1,
                        '_LT_AC_TRY_DLOPEN_SELF' => 1,
                        '_LT_AC_FILE_LTDLL_C' => 1,
                        'AC_LIBTOOL_PROG_CC_C_O' => 1,
                        'LTDL_INIT' => 1,
                        'AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE' => 1,
                        'AM_ENABLE_STATIC' => 1,
                        '_LT_AC_TAGCONFIG' => 1,
                        'AM_SUBST_NOTMAKE' => 1,
                        'LT_PROG_RC' => 1,
                        'LT_PROG_GO' => 1,
                        'AC_LIBTOOL_SYS_LIB_STRIP' => 1,
                        'LTDL_INSTALLABLE' => 1,
                        'AC_DEPLIBS_CHECK_METHOD' => 1,
                        'AM_OUTPUT_DEPENDENCY_COMMANDS' => 1,


                        'AC_ENABLE_STATIC' => 1,
                        'AC_LIBTOOL_WIN32_DLL' => 1,
                        '_LT_AC_LANG_CXX_CONFIG' => 1,
                        'AM_SET_CURRENT_AUTOMAKE_VERSION' => 1,
                        '_LT_AC_CHECK_DLFCN' => 1,
                        '_LT_AC_PROG_CXXCPP' => 1,

                        'AM_PROG_CC_C_O' => 1,
                        'AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH' => 1,
                        'AC_LTDL_SHLIBEXT' => 1
                      }
                    ], 'Autom4te::Request' ),
             bless( [
                      '3',
                      1,
                      [
                        '/usr/local/share/autoconf'
                      ],
                      [
                        '/usr/local/share/autoconf/autoconf/autoconf.m4f',
                        'aclocal.m4',
                        'configure.ac'
                      ],
                      {
                        'AC_SUBST_TRACE' => 1,
                        'AC_DEFINE_TRACE_LITERAL' => 1,
                        'AM_CONDITIONAL' => 1,
                        'AM_PROG_F77_C_O' => 1,
                        'AM_PATH_GUILE' => 1,
                        'AC_CONFIG_SUBDIRS' => 1,
                        'AC_CANONICAL_TARGET' => 1,
                        '_LT_AC_TAGCONFIG' => 1,

                        'AC_CONFIG_LIBOBJ_DIR' => 1,
                        'AC_LIBSOURCE' => 1,
                        'AC_CANONICAL_BUILD' => 1,
                        'AC_FC_FREEFORM' => 1,
                        'AC_REQUIRE_AUX_FILE' => 1,
                        'AC_CONFIG_HEADERS' => 1,
                        'AM_AUTOMAKE_VERSION' => 1,
                        'AM_PROG_CXX_C_O' => 1,
                        'AM_PROG_CC_C_O' => 1,
                        'AM_GNU_GETTEXT' => 1,
                        'AM_POT_TOOLS' => 1,
                        'LT_CONFIG_LTDL_DIR' => 1,
                        'sinclude' => 1,
                        'm4_pattern_forbid' => 1,
                        'include' => 1,
                        'AM_INIT_AUTOMAKE' => 1,
                        'm4_sinclude' => 1,
                        'AM_GNU_GETTEXT_INTL_SUBDIR' => 1,
                        'AC_FC_PP_SRCEXT' => 1,
                        'm4_pattern_allow' => 1,
                        'AM_MAKEFILE_INCLUDE' => 1,
                        'AM_ENABLE_MULTILIB' => 1,
                        'AC_PROG_LIBTOOL' => 1,
                        'AM_PROG_MOC' => 1,
                        'AC_CONFIG_FILES' => 1,
                        '_m4_warn' => 1,
                        'AC_CONFIG_LINKS' => 1,
                        'AH_OUTPUT' => 1,
                        'AC_FC_SRCEXT' => 1,
                        '_AM_COND_ELSE' => 1,
                        'AC_SUBST' => 1,
                        'AM_XGETTEXT_OPTION' => 1,
                        'AC_FC_PP_DEFINE' => 1,
                        'LT_INIT' => 1,
                        'AC_CANONICAL_HOST' => 1,
                        '_AM_COND_ENDIF' => 1,
                        'AM_PROG_FC_C_O' => 1,
                        'AM_NLS' => 1,

                        'm4_include' => 1,
                        '_AM_MAKEFILE_INCLUDE' => 1,
                        'AC_CANONICAL_SYSTEM' => 1,
                        'LT_SUPPORTED_TAG' => 1,
                        'AC_INIT' => 1,
                        'AM_SILENT_RULES' => 1,
                        'AC_CONFIG_AUX_DIR' => 1,
                        'AM_MAINTAINER_MODE' => 1,
                        '_AM_COND_IF' => 1,
                        'AM_PROG_AR' => 1,
                        '_AM_SUBST_NOTMAKE' => 1
                      }
                    ], 'Autom4te::Request' )
           );

Changes to libserialport/configure.

631
632
633
634
635
636
637

638
639
640
641
642
643
644
.....
13129
13130
13131
13132
13133
13134
13135







13136
13137
13138
13139
13140
13141
13142
.....
13459
13460
13461
13462
13463
13464
13465









13466
13467
13468
13469
13470
13471
13472
# include <unistd.h>
#endif"

ac_subst_vars='am__EXEEXT_FALSE
am__EXEEXT_TRUE
LTLIBOBJS
LIBOBJS

SP_LIBS
FREEBSD_FALSE
FREEBSD_TRUE
MACOSX_FALSE
MACOSX_TRUE
WIN32_FALSE
WIN32_TRUE
................................................................................

if test -z "$WIN32_TRUE"; then :
  SP_LIBS='-lsetupapi'
else
  SP_LIBS=
fi









if test -z "$MACOSX_TRUE"; then :
  ac_fn_c_check_header_mongrel "$LINENO" "IOKit/IOKitLib.h" "ac_cv_header_IOKit_IOKitLib_h" "$ac_includes_default"
if test "x$ac_cv_header_IOKit_IOKitLib_h" = xyes; then :

else
  as_fn_error $? "IOKit/IOKitLib.h not found" "$LINENO" 5
................................................................................
if test "x$ac_cv_type_struct_serial_struct" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_SERIAL_STRUCT 1
_ACEOF











fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for visibility control" >&5
$as_echo_n "checking for visibility control... " >&6; }
if ${sp_cv_visibility_control+:} false; then :
  $as_echo_n "(cached) " >&6







>







 







>
>
>
>
>
>
>







 







>
>
>
>
>
>
>
>
>







631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
.....
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
.....
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
# include <unistd.h>
#endif"

ac_subst_vars='am__EXEEXT_FALSE
am__EXEEXT_TRUE
LTLIBOBJS
LIBOBJS
SP_PKGLIBS
SP_LIBS
FREEBSD_FALSE
FREEBSD_TRUE
MACOSX_FALSE
MACOSX_TRUE
WIN32_FALSE
WIN32_TRUE
................................................................................

if test -z "$WIN32_TRUE"; then :
  SP_LIBS='-lsetupapi'
else
  SP_LIBS=
fi


if test -z "$FREEBSD_TRUE"; then :
  SP_PKGLIBS='libusb-2.0'
else
  SP_PKGLIBS=
fi


if test -z "$MACOSX_TRUE"; then :
  ac_fn_c_check_header_mongrel "$LINENO" "IOKit/IOKitLib.h" "ac_cv_header_IOKit_IOKitLib_h" "$ac_includes_default"
if test "x$ac_cv_header_IOKit_IOKitLib_h" = xyes; then :

else
  as_fn_error $? "IOKit/IOKitLib.h not found" "$LINENO" 5
................................................................................
if test "x$ac_cv_type_struct_serial_struct" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_SERIAL_STRUCT 1
_ACEOF


fi


# Check for realpath().
ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
if test "x$ac_cv_func_realpath" = xyes; then :

$as_echo "#define HAVE_REALPATH 1" >>confdefs.h

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for visibility control" >&5
$as_echo_n "checking for visibility control... " >&6; }
if ${sp_cv_visibility_control+:} false; then :
  $as_echo_n "(cached) " >&6

Changes to libserialport/configure.ac.

90
91
92
93
94
95
96



97
98
99
100
101
102
103
...
119
120
121
122
123
124
125



126
127
128
129
130
131
132
AM_CONDITIONAL([LINUX], [test -z "${host_os##linux*}" || test -z "${host_os##uclinux*}"])
AM_CONDITIONAL([WIN32], [test -z "${host_os##mingw*}" || test -z "${host_os##cygwin*}"])
AM_CONDITIONAL([MACOSX], [test -z "${host_os##darwin*}"])
AM_CONDITIONAL([FREEBSD], [test -z "${host_os##freebsd*}"])

AM_COND_IF([WIN32], [SP_LIBS='-lsetupapi'], [SP_LIBS=])
AC_SUBST([SP_LIBS])




AM_COND_IF([MACOSX], [AC_CHECK_HEADER([IOKit/IOKitLib.h], [],
	[AC_MSG_ERROR([IOKit/IOKitLib.h not found])])])

AS_CASE([$host_os], [linux*|darwin*|mingw*|cygwin*|freebsd*],, [
	AC_DEFINE([NO_ENUMERATION], [1], [Enumeration is unsupported.])
	AC_DEFINE([NO_PORT_METADATA], [1], [Port metadata is unavailable.])
................................................................................
# We can't just #ifdef BOTHER in the code, because of the separation between
# code using libc headers and code using kernel termios.h headers.
AC_CHECK_DECLS([BOTHER],,, [[#include <linux/termios.h>]])

# Check for serial_struct.
AC_CHECK_TYPES([struct serial_struct],,, [[#include <linux/serial.h>]])




AC_CACHE_CHECK([for visibility control], [sp_cv_visibility_control], [
	sp_saved_CFLAGS=$CFLAGS
	CFLAGS="$CFLAGS -Werror"
	AC_COMPILE_IFELSE([AC_LANG_SOURCE(
		[[__attribute__((visibility("hidden"))) void foo(void) {}]])],
		[sp_cv_visibility_control=attribute],
		[AC_COMPILE_IFELSE([AC_LANG_SOURCE(







>
>
>







 







>
>
>







90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
...
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
AM_CONDITIONAL([LINUX], [test -z "${host_os##linux*}" || test -z "${host_os##uclinux*}"])
AM_CONDITIONAL([WIN32], [test -z "${host_os##mingw*}" || test -z "${host_os##cygwin*}"])
AM_CONDITIONAL([MACOSX], [test -z "${host_os##darwin*}"])
AM_CONDITIONAL([FREEBSD], [test -z "${host_os##freebsd*}"])

AM_COND_IF([WIN32], [SP_LIBS='-lsetupapi'], [SP_LIBS=])
AC_SUBST([SP_LIBS])

AM_COND_IF([FREEBSD], [SP_PKGLIBS='libusb-2.0'], [SP_PKGLIBS=])
AC_SUBST([SP_PKGLIBS])

AM_COND_IF([MACOSX], [AC_CHECK_HEADER([IOKit/IOKitLib.h], [],
	[AC_MSG_ERROR([IOKit/IOKitLib.h not found])])])

AS_CASE([$host_os], [linux*|darwin*|mingw*|cygwin*|freebsd*],, [
	AC_DEFINE([NO_ENUMERATION], [1], [Enumeration is unsupported.])
	AC_DEFINE([NO_PORT_METADATA], [1], [Port metadata is unavailable.])
................................................................................
# We can't just #ifdef BOTHER in the code, because of the separation between
# code using libc headers and code using kernel termios.h headers.
AC_CHECK_DECLS([BOTHER],,, [[#include <linux/termios.h>]])

# Check for serial_struct.
AC_CHECK_TYPES([struct serial_struct],,, [[#include <linux/serial.h>]])

# Check for realpath().
AC_CHECK_FUNC([realpath], [AC_DEFINE(HAVE_REALPATH, 1, [realpath is available.])], [])

AC_CACHE_CHECK([for visibility control], [sp_cv_visibility_control], [
	sp_saved_CFLAGS=$CFLAGS
	CFLAGS="$CFLAGS -Werror"
	AC_COMPILE_IFELSE([AC_LANG_SOURCE(
		[[__attribute__((visibility("hidden"))) void foo(void) {}]])],
		[sp_cv_visibility_control=attribute],
		[AC_COMPILE_IFELSE([AC_LANG_SOURCE(

Changes to libserialport/libserialport.pc.in.

2
3
4
5
6
7
8
9
10
11
12
13
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@

Name: libserialport
Description: Cross-platform serial port access library.
URL: http://sigrok.org/wiki/Libserialport
Requires.private:
Version: @SP_PACKAGE_VERSION@
Libs: -L${libdir} -lserialport
Libs.private: @SP_LIBS@
Cflags: -I${includedir}







|




2
3
4
5
6
7
8
9
10
11
12
13
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@

Name: libserialport
Description: Cross-platform serial port access library.
URL: http://sigrok.org/wiki/Libserialport
Requires.private: @SP_PKGLIBS@
Version: @SP_PACKAGE_VERSION@
Libs: -L${libdir} -lserialport
Libs.private: @SP_LIBS@
Cflags: -I${includedir}

Changes to libserialport/libserialport_internal.h.

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
..
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
 */

#ifndef LIBSERIALPORT_LIBSERIALPORT_INTERNAL_H
#define LIBSERIALPORT_LIBSERIALPORT_INTERNAL_H


#ifdef __linux__
/* For timeradd, timersub, timercmp. */
#define _BSD_SOURCE 1 /* for glibc < 2.19 */
#define _DEFAULT_SOURCE 1 /* for glibc >= 2.20 */
#endif

#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <errno.h>
#include <stdio.h>
#include <stdarg.h>
#include <limits.h>
#ifdef _WIN32
#include <windows.h>
#include <tchar.h>
#include <setupapi.h>
#include <cfgmgr32.h>
#undef DEFINE_GUID
#define DEFINE_GUID(name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \
................................................................................
#include <usbioctl.h>
#include <usbiodef.h>
#else
#include <limits.h>
#include <termios.h>
#include <sys/ioctl.h>
#include <sys/time.h>
#include <limits.h>
#include <poll.h>
#endif
#ifdef __APPLE__
#include <CoreFoundation/CoreFoundation.h>
#include <IOKit/IOKitLib.h>
#include <IOKit/serial/IOSerialKeys.h>
#include <IOKit/serial/ioss.h>







|













<







 







<







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
..
48
49
50
51
52
53
54

55
56
57
58
59
60
61
 */

#ifndef LIBSERIALPORT_LIBSERIALPORT_INTERNAL_H
#define LIBSERIALPORT_LIBSERIALPORT_INTERNAL_H


#ifdef __linux__
/* For timeradd, timersub, timercmp, realpath. */
#define _BSD_SOURCE 1 /* for glibc < 2.19 */
#define _DEFAULT_SOURCE 1 /* for glibc >= 2.20 */
#endif

#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <errno.h>
#include <stdio.h>
#include <stdarg.h>

#ifdef _WIN32
#include <windows.h>
#include <tchar.h>
#include <setupapi.h>
#include <cfgmgr32.h>
#undef DEFINE_GUID
#define DEFINE_GUID(name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \
................................................................................
#include <usbioctl.h>
#include <usbiodef.h>
#else
#include <limits.h>
#include <termios.h>
#include <sys/ioctl.h>
#include <sys/time.h>

#include <poll.h>
#endif
#ifdef __APPLE__
#include <CoreFoundation/CoreFoundation.h>
#include <IOKit/IOKitLib.h>
#include <IOKit/serial/IOSerialKeys.h>
#include <IOKit/serial/ioss.h>

Changes to libserialport/serialport.c.

70
71
72
73
74
75
76














77
78
79
80
81
82
83
...
712
713
714
715
716
717
718





















719
720
721
722
723
724
725
...
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752

753
754
755
756
757
758
759

	*port_ptr = NULL;

	if (!portname)
		RETURN_ERROR(SP_ERR_ARG, "Null port name");

	DEBUG_FMT("Building structure for port %s", portname);















	if (!(port = malloc(sizeof(struct sp_port))))
		RETURN_ERROR(SP_ERR_MEM, "Port structure malloc failed");

	len = strlen(portname) + 1;

	if (!(port->name = malloc(len))) {
................................................................................
			}
		} else {
			RETURN_OK();
		}
	}
#endif
}






















SP_API enum sp_return sp_blocking_write(struct sp_port *port, const void *buf,
                                        size_t count, unsigned int timeout_ms)
{
	TRACE("%p, %p, %d, %d", port, buf, count, timeout_ms);

	CHECK_OPEN_PORT();
................................................................................
			count, port->name);

	if (count == 0)
		RETURN_INT(0);

#ifdef _WIN32
	DWORD bytes_written = 0;
	BOOL result;

	/* Wait for previous non-blocking write to complete, if any. */
	if (port->writing) {
		DEBUG("Waiting for previous write to complete");
		result = GetOverlappedResult(port->hdl, &port->write_ovl, &bytes_written, TRUE);
		port->writing = 0;
		if (!result)
			RETURN_FAIL("Previous write failed to complete");
		DEBUG("Previous write completed");
	}


	/* Set timeout. */
	if (port->timeouts.WriteTotalTimeoutConstant != timeout_ms) {
		port->timeouts.WriteTotalTimeoutConstant = timeout_ms;
		if (SetCommTimeouts(port->hdl, &port->timeouts) == 0)
			RETURN_FAIL("SetCommTimeouts() failed");
	}







>
>
>
>
>
>
>
>
>
>
>
>
>
>







 







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







 







<

<
<
<
<
<
<
<
<
<
>







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
...
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
...
770
771
772
773
774
775
776

777









778
779
780
781
782
783
784
785

	*port_ptr = NULL;

	if (!portname)
		RETURN_ERROR(SP_ERR_ARG, "Null port name");

	DEBUG_FMT("Building structure for port %s", portname);

#if !defined(_WIN32) && defined(HAVE_REALPATH)
	/*
	 * get_port_details() below tries to be too smart and figure out
	 * some transport properties from the port name which breaks with
	 * symlinks. Therefore we canonicalize the portname first.
	 */
	char pathbuf[PATH_MAX + 1];
	char *res = realpath(portname, pathbuf);
	if (!res)
		RETURN_ERROR(SP_ERR_ARG, "Could not retrieve realpath behind port name");

	portname = pathbuf;
#endif

	if (!(port = malloc(sizeof(struct sp_port))))
		RETURN_ERROR(SP_ERR_MEM, "Port structure malloc failed");

	len = strlen(portname) + 1;

	if (!(port->name = malloc(len))) {
................................................................................
			}
		} else {
			RETURN_OK();
		}
	}
#endif
}

#ifdef _WIN32
static enum sp_return await_write_completion(struct sp_port *port)
{
	TRACE("%p", port);
	DWORD bytes_written;
	BOOL result;

	/* Wait for previous non-blocking write to complete, if any. */
	if (port->writing) {
		DEBUG("Waiting for previous write to complete");
		result = GetOverlappedResult(port->hdl, &port->write_ovl, &bytes_written, TRUE);
		port->writing = 0;
		if (!result)
			RETURN_FAIL("Previous write failed to complete");
		DEBUG("Previous write completed");
	}

	RETURN_OK();
}
#endif

SP_API enum sp_return sp_blocking_write(struct sp_port *port, const void *buf,
                                        size_t count, unsigned int timeout_ms)
{
	TRACE("%p, %p, %d, %d", port, buf, count, timeout_ms);

	CHECK_OPEN_PORT();
................................................................................
			count, port->name);

	if (count == 0)
		RETURN_INT(0);

#ifdef _WIN32
	DWORD bytes_written = 0;











	TRY(await_write_completion(port));

	/* Set timeout. */
	if (port->timeouts.WriteTotalTimeoutConstant != timeout_ms) {
		port->timeouts.WriteTotalTimeoutConstant = timeout_ms;
		if (SetCommTimeouts(port->hdl, &port->timeouts) == 0)
			RETURN_FAIL("SetCommTimeouts() failed");
	}

Changes to libserialport/windows.c.

26
27
28
29
30
31
32
33

34
35
36
37
38
39
40
41
42
43
44
45
#define MAX_USB_PATH ((8 * 3) + (7 * 1) + 1)

static void enumerate_hub(struct sp_port *port, const char *hub_name,
                          const char *parent_path, DEVINST dev_inst);

static char *wc_to_utf8(PWCHAR wc_buffer, ULONG size)
{
	WCHAR wc_str[(size / sizeof(WCHAR)) + 1];

	char *utf8_str;

	/* Zero-terminate the wide char string. */
	memcpy(wc_str, wc_buffer, size);
	wc_str[sizeof(wc_str) - 1] = 0;

	/* Compute the size of the UTF-8 converted string. */
	if (!(size = WideCharToMultiByte(CP_ACP, WC_NO_BEST_FIT_CHARS, wc_str, -1,
	                                 NULL, 0, NULL, NULL)))
		return NULL;

	/* Allocate UTF-8 output buffer. */







|
>




|







26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#define MAX_USB_PATH ((8 * 3) + (7 * 1) + 1)

static void enumerate_hub(struct sp_port *port, const char *hub_name,
                          const char *parent_path, DEVINST dev_inst);

static char *wc_to_utf8(PWCHAR wc_buffer, ULONG size)
{
	ULONG wc_length = size / sizeof(WCHAR);
	WCHAR wc_str[wc_length + 1];
	char *utf8_str;

	/* Zero-terminate the wide char string. */
	memcpy(wc_str, wc_buffer, size);
	wc_str[wc_length] = 0;

	/* Compute the size of the UTF-8 converted string. */
	if (!(size = WideCharToMultiByte(CP_ACP, WC_NO_BEST_FIT_CHARS, wc_str, -1,
	                                 NULL, 0, NULL, NULL)))
		return NULL;

	/* Allocate UTF-8 output buffer. */