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
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
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
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
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
|
dnl -------------------------------------------------------------------------
dnl $Id$
dnl
dnl subsets.m4
dnl
dnl ACE M4 include file which contains ACE specific M4 macros
dnl that set/determine which ACE subsets to build.
dnl
dnl -------------------------------------------------------------------------
dnl Copyright (C) 1998, 1999, 2001 Ossama Othman
dnl
dnl All Rights Reserved
dnl
dnl This library is free software; you can redistribute it and/or
dnl modify it under the current ACE distribution terms.
dnl
dnl This library is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
dnl Check for thread related libraries and compiler flags
dnl Usage: ACE_CHECK_SUBSETS
AC_DEFUN([ACE_CHECK_SUBSETS],
[
dnl Begin ACE_CHECK_SUBSETS
dnl Assume all subsets will be built, including the full ACE library.
dnl If any of the components is explicitly enabled or disabled by the user
dnl then do NOT build the full ACE library.
AC_ARG_ENABLE([lib-all],
AC_HELP_STRING([--enable-lib-all],[build all ACE components [[no]]]),
[
case "${enableval}" in
yes)
ace_user_enable_lib_all=yes
;;
no)
ace_user_enable_lib_all=no
;;
*)
AC_MSG_ERROR([bad value ${enableval} for --enable-lib-all])
;;
esac
],
[
ace_user_enable_lib_all=no
])
AC_ARG_ENABLE([lib-full],
AC_HELP_STRING([--enable-lib-full],[build the full ACE library [[yes]]]),
[
case "${enableval}" in
yes)
ace_user_enable_lib_full=yes
;;
no)
ace_user_enable_lib_full=no
;;
*)
AC_MSG_ERROR([bad value ${enableval} for --enable-lib-full])
;;
esac
],
[
ace_user_enable_lib_full=yes
])
AC_ARG_ENABLE([lib-os],
AC_HELP_STRING([--enable-lib-os],[build ACE_OS library]),
[
case "${enableval}" in
yes)
ACE_CREATE_LIBACE_OS
;;
no)
ace_user_enable_lib_os=no
;;
*)
AC_MSG_ERROR([bad value ${enableval} for --enable-lib-os])
;;
esac
dnl Disable full ACE library build
ace_user_enable_lib_full=no
],)
AC_ARG_ENABLE([lib-utils],
AC_HELP_STRING([--enable-lib-utils],[build ACE_Utils library]),
[
case "${enableval}" in
yes)
ACE_CREATE_LIBACE_UTILS
;;
no)
ace_user_enable_lib_utils=no
;;
*)
AC_MSG_ERROR([bad value ${enableval} for --enable-lib-utils])
;;
esac
dnl Disable full ACE library build
ace_user_enable_lib_full=no
],)
AC_ARG_ENABLE([lib-logging],
AC_HELP_STRING([--enable-lib-logging],[build ACE_Logging library]),
[
case "${enableval}" in
yes)
ACE_CREATE_LIBACE_LOGGING
;;
no)
ace_user_enable_lib_logging=no
;;
*)
AC_MSG_ERROR([bad value ${enableval} for --enable-lib-logging])
;;
esac
dnl Disable full ACE library build
ace_user_enable_lib_full=no
],)
AC_ARG_ENABLE([lib-threads],
AC_HELP_STRING([--enable-lib-threads],[build ACE_Threads library]),
[
case "${enableval}" in
yes)
ACE_CREATE_LIBACE_THREADS
;;
no)
ace_user_enable_lib_threads=no
;;
*)
AC_MSG_ERROR([bad value ${enableval} for --enable-lib-threads])
;;
esac
dnl Disable full ACE library build
ace_user_enable_lib_full=no
],)
AC_ARG_ENABLE([lib-demux],
AC_HELP_STRING([--enable-lib-demux],[build ACE_Demux library]),
[
case "${enableval}" in
yes)
ACE_CREATE_LIBACE_DEMUX
;;
no)
ace_user_enable_lib_demux=no
;;
*)
AC_MSG_ERROR([bad value ${enableval} for --enable-lib-demux])
;;
esac
dnl Disable full ACE library build
ace_user_enable_lib_full=no
],)
AC_ARG_ENABLE([lib-connection],
AC_HELP_STRING([--enable-lib-connection],[build ACE_Connection library ]),
[
case "${enableval}" in
yes)
ACE_CREATE_LIBACE_CONNECTION
;;
no)
ace_user_enable_lib_connection=no
;;
*)
AC_MSG_ERROR([bad value ${enableval} for --enable-lib-connection])
;;
esac
dnl Disable full ACE library build
ace_user_enable_lib_full=no
],)
AC_ARG_ENABLE([lib-sockets],
AC_HELP_STRING([--enable-lib-sockets],[build ACE_Sockets library]),
[
case "${enableval}" in
yes)
ACE_CREATE_LIBACE_SOCKETS
;;
no)
ace_user_enable_lib_sockets=no
;;
*)
AC_MSG_ERROR([bad value ${enableval} for --enable-lib-sockets])
;;
esac
dnl Disable full ACE library build
ace_user_enable_lib_full=no
],)
AC_ARG_ENABLE([lib-ipc],
AC_HELP_STRING([--enable-lib-ipc],[build ACE_IPC library]),
[
case "${enableval}" in
yes)
ACE_CREATE_LIBACE_IPC
;;
no)
ace_user_enable_lib_ipc=no
;;
*)
AC_MSG_ERROR([bad value ${enableval} for --enable-lib-ipc])
;;
esac
dnl Disable full ACE library build
ace_user_enable_lib_full=no
],)
AC_ARG_ENABLE([lib-svcconf],
AC_HELP_STRING([--enable-lib-svcconf],[build ACE_Svcconf library]),
[
case "${enableval}" in
yes)
ACE_CREATE_LIBACE_SVCCONF
;;
no)
ace_user_enable_lib_svcconf=no
AC_DEFINE([ACE_LACKS_ACE_SVCCONF])
;;
*)
AC_MSG_ERROR([bad value ${enableval} for --enable-lib-svcconf])
;;
esac
dnl Disable full ACE library build
ace_user_enable_lib_full=no
],)
AC_ARG_ENABLE([lib-streams],
AC_HELP_STRING([--enable-lib-streams],[build ACE_Streams library]),
[
case "${enableval}" in
yes)
ACE_CREATE_LIBACE_STREAMS
;;
no)
ace_user_enable_lib_streams=no
;;
*)
AC_MSG_ERROR([bad value ${enableval} for --enable-lib-streams])
;;
esac
dnl Disable full ACE library build
ace_user_enable_lib_full=no
],)
AC_ARG_ENABLE([lib-memory],
AC_HELP_STRING([--enable-lib-memory],[build ACE_Memory library]),
[
case "${enableval}" in
yes)
ACE_CREATE_LIBACE_MEMORY
;;
no)
ace_user_enable_lib_memory=no
;;
*)
AC_MSG_ERROR([bad value ${enableval} for --enable-lib-memory])
;;
esac
dnl Disable full ACE library build
ace_user_enable_lib_full=no
],)
AC_ARG_ENABLE([lib-timer],
AC_HELP_STRING([--enable-lib-timer],[build ACE_Timer library]),
[
case "${enableval}" in
yes)
ACE_CREATE_LIBACE_TIMER
;;
no)
ace_user_enable_lib_timer=no
;;
*)
AC_MSG_ERROR([bad value ${enableval} for --enable-lib-timer])
;;
esac
dnl Disable full ACE library build
ace_user_enable_lib_full=no
],)
AC_ARG_ENABLE([lib-token],
AC_HELP_STRING([--enable-lib-token],[build ACE_Token library]),
[
case "${enableval}" in
yes)
ACE_CREATE_LIBACE_TOKEN
;;
no)
ace_user_enable_lib_token=no
AC_DEFINE([ACE_LACKS_ACE_TOKEN])
;;
*)
AC_MSG_ERROR([bad value ${enableval} for --enable-lib-token])
;;
esac
dnl Disable full ACE library build
ace_user_enable_lib_full=no
],)
AC_ARG_ENABLE([lib-codecs],
AC_HELP_STRING([--enable-lib-codecs],[build ACE_Codecs library]),
[
case "${enableval}" in
yes)
ACE_CREATE_LIBACE_CODECS
;;
no)
ace_user_enable_lib_codecs=no
AC_DEFINE([ACE_LACKS_ACE_CODECS])
;;
*)
AC_MSG_ERROR([bad value ${enableval} for --enable-lib-codecs])
;;
esac
dnl Disable full ACE library build
ace_user_enable_lib_full=no
],)
AC_ARG_ENABLE([lib-other],
AC_HELP_STRING([--enable-lib-other],[build ACE_Other library]),
[
case "${enableval}" in
yes)
ACE_CREATE_LIBACE_OTHER
;;
no)
ace_user_enable_lib_other=no
AC_DEFINE([ACE_LACKS_ACE_OTHER])
;;
*)
AC_MSG_ERROR([bad value ${enableval} for --enable-lib-other])
;;
esac
dnl Disable full ACE library build
ace_user_enable_lib_full=no
],)
dnl If no ACE subsets were explicitly enabled or disabled then build
dnl all of them.
if test $ace_user_enable_lib_all = yes; then
ACE_CREATE_ALL_COMPONENTS
elif test $ace_user_enable_lib_all = no; then
ACE_DISABLE_ALL_COMPONENTS
fi
if test $ace_user_enable_lib_full = no &&
test $ace_user_enable_lib_os = no &&
test $ace_user_enable_lib_utils = no &&
test $ace_user_enable_lib_logging = no &&
test $ace_user_enable_lib_threads = no &&
test $ace_user_enable_lib_demux = no &&
test $ace_user_enable_lib_connection = no &&
test $ace_user_enable_lib_sockets = no &&
test $ace_user_enable_lib_ipc = no &&
test $ace_user_enable_lib_svcconf = no &&
test $ace_user_enable_lib_streams = no &&
test $ace_user_enable_lib_memory = no &&
test $ace_user_enable_lib_timer = no &&
test $ace_user_enable_lib_token = no &&
test $ace_user_enable_lib_codecs = no &&
test $ace_user_enable_lib_other = no; then
dnl If we get here then no ACE libraries will be built!
AC_MSG_ERROR([No ACE components will be built. Specify which components to build.])
fi dnl No components will be built!
dnl Set which ACE subsets to build
AM_CONDITIONAL(BUILD_OS_FILES,
test X$ace_user_enable_lib_os = Xyes)
AM_CONDITIONAL(BUILD_UTILS_FILES,
test X$ace_user_enable_lib_utils = Xyes)
AM_CONDITIONAL(BUILD_LOGGING_FILES,
test X$ace_user_enable_lib_logging = Xyes)
AM_CONDITIONAL(BUILD_THREADS_FILES,
test X$ace_user_enable_lib_threads = Xyes)
AM_CONDITIONAL(BUILD_DEMUX_FILES,
test X$ace_user_enable_lib_demux = Xyes)
AM_CONDITIONAL(BUILD_CONNECTION_FILES,
test X$ace_user_enable_lib_connection = Xyes)
AM_CONDITIONAL(BUILD_SOCKETS_FILES,
test X$ace_user_enable_lib_sockets = Xyes)
AM_CONDITIONAL(BUILD_IPC_FILES,
test X$ace_user_enable_lib_ipc = Xyes)
AM_CONDITIONAL(BUILD_SVCCONF_FILES,
test X$ace_user_enable_lib_svcconf = Xyes)
AM_CONDITIONAL(BUILD_STREAMS_FILES,
test X$ace_user_enable_lib_streams = Xyes)
AM_CONDITIONAL(BUILD_MEMORY_FILES,
test X$ace_user_enable_lib_memory = Xyes)
AM_CONDITIONAL(BUILD_TIMER_FILES,
test X$ace_user_enable_lib_timer = Xyes)
AM_CONDITIONAL(BUILD_TOKEN_FILES,
test X$ace_user_enable_lib_token = Xyes)
AM_CONDITIONAL(BUILD_CODECS_FILES,
test X$ace_user_enable_lib_codecs = Xyes)
AM_CONDITIONAL(BUILD_OTHER_FILES,
test X$ace_user_enable_lib_other = Xyes)
AM_CONDITIONAL(BUILD_FULL_LIBRARY,
test X$ace_user_enable_lib_full = Xyes)
dnl End ACE_CHECK_SUBSETS
])
dnl Set the component dependencies for the libACE_OS library
dnl Usage: ACE_CREATE_LIBACE_OS
AC_DEFUN([ACE_CREATE_LIBACE_OS],
[
ace_user_enable_lib_os=yes
])
dnl Set the component dependencies for the libACE_Utils library
dnl Usage: ACE_CREATE_LIBACE_UTILS
AC_DEFUN([ACE_CREATE_LIBACE_UTILS],
[
ace_user_enable_lib_utils=yes
dnl Be careful not to go into a circular/recursive loop with these macros!
ACE_CREATE_LIBACE_OS
])
dnl Set the component dependencies for the libACE_Logging library
dnl Usage: ACE_CREATE_LIBACE_Logging
AC_DEFUN([ACE_CREATE_LIBACE_LOGGING],
[
ace_user_enable_lib_logging=yes
dnl Be careful not to go into a circular/recursive loop with these macros!
ACE_CREATE_LIBACE_OS
])
dnl Set the component dependencies for the libACE_Threads library
dnl Usage: ACE_CREATE_LIBACE_THREADS
AC_DEFUN([ACE_CREATE_LIBACE_THREADS],
[
ace_user_enable_lib_threads=yes
dnl Be careful not to go into a circular/recursive loop with these macros!
ACE_CREATE_LIBACE_OS
])
dnl Set the component dependencies for the libACE_Demux library
dnl Usage: ACE_CREATE_LIBACE_DEMUX
AC_DEFUN([ACE_CREATE_LIBACE_DEMUX],
[
ace_user_enable_lib_demux=yes
dnl Be careful not to go into a circular/recursive loop with these macros!
ACE_CREATE_LIBACE_OS
ACE_CREATE_LIBACE_THREADS
])
dnl Set the component dependencies for the libACE_Connection library
dnl Usage: ACE_CREATE_LIBACE_CONNECTION
AC_DEFUN([ACE_CREATE_LIBACE_CONNECTION],
[
ace_user_enable_lib_connection=yes
dnl Be careful not to go into a circular/recursive loop with these macros!
ACE_CREATE_LIBACE_OS
ACE_CREATE_LIBACE_THREADS
ACE_CREATE_LIBACE_DEMUX
])
dnl Set the component dependencies for the libACE_Sockets library
dnl Usage: ACE_CREATE_LIBACE_SOCKETS
AC_DEFUN([ACE_CREATE_LIBACE_SOCKETS],
[
ace_user_enable_lib_sockets=yes
dnl Be careful not to go into a circular/recursive loop with these macros!
ACE_CREATE_LIBACE_OS
])
dnl Set the component dependencies for the libACE_IPC library
dnl Usage: ACE_CREATE_LIBACE_IPC
AC_DEFUN([ACE_CREATE_LIBACE_IPC],
[
ace_user_enable_lib_ipc=yes
dnl Be careful not to go into a circular/recursive loop with these macros!
ACE_CREATE_LIBACE_OS
ACE_CREATE_LIBACE_SOCKETS
])
dnl Set the component dependencies for the libACE_Svcconf library
dnl Usage: ACE_CREATE_LIBACE_SVCCONF
AC_DEFUN([ACE_CREATE_LIBACE_SVCCONF],
[
ace_user_enable_lib_svcconf=yes
dnl Be careful not to go into a circular/recursive loop with these macros!
ACE_CREATE_LIBACE_OS
ACE_CREATE_LIBACE_THREADS
ACE_CREATE_LIBACE_DEMUX
ACE_CREATE_LIBACE_SOCKETS
])
dnl Set the component dependencies for the libACE_Streams library
dnl Usage: ACE_CREATE_LIBACE_STREAMS
AC_DEFUN([ACE_CREATE_LIBACE_STREAMS],
[
ace_user_enable_lib_streams=yes
dnl Be careful not to go into a circular/recursive loop with these macros!
ACE_CREATE_LIBACE_OS
ACE_CREATE_LIBACE_THREADS
ACE_CREATE_LIBACE_DEMUX
])
dnl Set the component dependencies for the libACE_Memory library
dnl Usage: ACE_CREATE_LIBACE_MEMORY
AC_DEFUN([ACE_CREATE_LIBACE_MEMORY],
[
ace_user_enable_lib_memory=yes
dnl Be careful not to go into a circular/recursive loop with these macros!
ACE_CREATE_LIBACE_OS
])
dnl Set the component dependencies for the libACE_Timer library
dnl Usage: ACE_CREATE_LIBACE_TIMER
AC_DEFUN([ACE_CREATE_LIBACE_TIMER],
[
ace_user_enable_lib_timer=yes
dnl Be careful not to go into a circular/recursive loop with these macros!
ACE_CREATE_LIBACE_OS
])
dnl Set the component dependencies for the libACE_Token library
dnl Usage: ACE_CREATE_LIBACE_TOKEN
AC_DEFUN([ACE_CREATE_LIBACE_TOKEN],
[
ace_user_enable_lib_token=yes
dnl Be careful not to go into a circular/recursive loop with these macros!
ACE_CREATE_LIBACE_OS
ACE_CREATE_LIBACE_UTILS
ACE_CREATE_LIBACE_LOGGING
ACE_CREATE_LIBACE_THREADS
ACE_CREATE_LIBACE_DEMUX
ACE_CREATE_LIBACE_CONNECTION
ACE_CREATE_LIBACE_SOCKETS
ACE_CREATE_LIBACE_IPC
ACE_CREATE_LIBACE_SVCCONF
ACE_CREATE_LIBACE_STREAMS
ACE_CREATE_LIBACE_MEMORY
dnl ACE_CREATE_LIBACE_OTHER
])
dnl Set the component dependencies for the libACE_Codecs library
dnl Usage: ACE_CREATE_LIBACE_CODECS
AC_DEFUN([ACE_CREATE_LIBACE_CODECS],
[
ace_user_enable_lib_codecs=yes
dnl Be careful not to go into a circular/recursive loop with these macros!
ACE_CREATE_LIBACE_OS
])
dnl Set the component dependencies for the libACE_Other library
dnl Usage: ACE_CREATE_LIBACE_OTHER
AC_DEFUN([ACE_CREATE_LIBACE_OTHER],
[
ace_user_enable_lib_other=yes
dnl Be careful not to go into a circular/recursive loop with these macros!
ACE_CREATE_LIBACE_OS
ACE_CREATE_LIBACE_UTILS
ACE_CREATE_LIBACE_LOGGING
ACE_CREATE_LIBACE_THREADS
ACE_CREATE_LIBACE_DEMUX
ACE_CREATE_LIBACE_CONNECTION
ACE_CREATE_LIBACE_SOCKETS
ACE_CREATE_LIBACE_IPC
ACE_CREATE_LIBACE_SVCCONF
ACE_CREATE_LIBACE_STREAMS
ACE_CREATE_LIBACE_MEMORY
dnl ACE_CREATE_LIBACE_TOKEN
])
dnl Build all ACE component libraries
dnl Usage: ACE_CREATE_ALL_COMPONENTS
AC_DEFUN([ACE_CREATE_ALL_COMPONENTS],
[
ace_user_enable_lib_os=yes
ace_user_enable_lib_utils=yes
ace_user_enable_lib_logging=yes
ace_user_enable_lib_threads=yes
ace_user_enable_lib_demux=yes
ace_user_enable_lib_connection=yes
ace_user_enable_lib_sockets=yes
ace_user_enable_lib_ipc=yes
ace_user_enable_lib_svcconf=yes
ace_user_enable_lib_streams=yes
ace_user_enable_lib_memory=yes
ace_user_enable_lib_timer=yes
ace_user_enable_lib_token=yes
ace_user_enable_lib_codecs=yes
ace_user_enable_lib_other=yes
])
dnl Disable all ACE component libraries
dnl Usage: ACE_CREATE_ALL_COMPONENTS
AC_DEFUN([ACE_DISABLE_ALL_COMPONENTS],
[
ace_user_enable_lib_os=no
ace_user_enable_lib_utils=no
ace_user_enable_lib_logging=no
ace_user_enable_lib_threads=no
ace_user_enable_lib_demux=no
ace_user_enable_lib_connection=no
ace_user_enable_lib_sockets=no
ace_user_enable_lib_ipc=no
ace_user_enable_lib_svcconf=no
ace_user_enable_lib_streams=no
ace_user_enable_lib_memory=no
ace_user_enable_lib_timer=no
ace_user_enable_lib_token=no
ace_user_enable_lib_codecs=no
ace_user_enable_lib_other=no
])
|