forked from openss7/openss7
-
Notifications
You must be signed in to change notification settings - Fork 0
/
acinclude.m4
5400 lines (5383 loc) · 202 KB
/
acinclude.m4
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
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
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
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# vim: ft=config sw=4 noet nocin nosi com=b\:#,b\:dnl,b\:***,b\:@%\:@ fo+=tcqlorn
# =============================================================================
# BEGINNING OF SEPARATE COPYRIGHT MATERIAL
# =============================================================================
#
# @(#) File: acinclude.m4
#
# -----------------------------------------------------------------------------
#
# Copyright (c) 2009-2017 Monavacon Limited <http://www.monavacon.com/>
# Copyright (c) 2001-2009 OpenSS7 Corporation <http://www.openss7.com/>
# Copyright (c) 1997-2001 Brian F. G. Bidulock <[email protected]>
#
# All Rights Reserved.
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU Affero General Public License as published by the Free
# Software Foundation; version 3 of the License.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
# details.
#
# You should have received a copy of the GNU Affero General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>, or write to
# the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
# -----------------------------------------------------------------------------
#
# U.S. GOVERNMENT RESTRICTED RIGHTS. If you are licensing this Software on
# behalf of the U.S. Government ("Government"), the following provisions apply
# to you. If the Software is supplied by the Department of Defense ("DoD"), it
# is classified as "Commercial Computer Software" under paragraph 252.227-7014
# of the DoD Supplement to the Federal Acquisition Regulations ("DFARS") (or any
# successor regulations) and the Government is acquiring only the license rights
# granted herein (the license rights customarily provided to non-Government
# users). If the Software is supplied to any unit or agency of the Government
# other than DoD, it is classified as "Restricted Computer Software" and the
# Government's rights in the Software are defined in paragraph 52.227-19 of the
# Federal Acquisition Regulations ("FAR") (or any successor regulations) or, in
# the cases of NASA, in paragraph 18.52.227-86 of the NASA Supplement to the FAR
# (or any successor regulations).
#
# -----------------------------------------------------------------------------
#
# Commercial licensing and support of this software is available from OpenSS7
# Corporation at a fee. See http://www.openss7.com/
#
# =============================================================================
m4_include([m4/autobuild.m4])
m4_include([m4/openss7.m4])
m4_include([m4/dist.m4])
m4_include([m4/bld.m4])
m4_include([m4/pr.m4])
m4_include([m4/public.m4])
m4_include([m4/archive.m4])
m4_include([m4/rpm.m4])
m4_include([m4/deb.m4])
m4_include([m4/pkg.m4])
m4_include([m4/repo.m4])
m4_include([m4/man.m4])
m4_include([m4/info.m4])
m4_include([m4/papers.m4])
m4_include([m4/drafts.m4])
m4_include([m4/init.m4])
m4_include([m4/kernel.m4])
m4_include([m4/devfs.m4])
m4_include([m4/genksyms.m4])
m4_include([m4/libraries.m4])
m4_include([m4/autotest.m4])
m4_include([m4/strconf.m4])
m4_include([m4/xopen.m4])
m4_include([m4/doxy.m4])
m4_include([m4/lib32.m4])
m4_include([m4/tcl.m4])
m4_include([m4/perl.m4])
m4_include([m4/snmp.m4])
m4_include([m4/agent.m4])
dnl m4_include([m4/gcj.m4])
# =============================================================================
# AC_OPENSS7
# -----------------------------------------------------------------------------
AC_DEFUN([AC_OPENSS7], [dnl
_OPENSS7_PACKAGE([OpenSS7], [OpenSS7])
PKGINCL="src/include/sys/${PACKAGE_LCNAME}"
_BLD
_AUTOPR
_PUBLIC_RELEASE
_REPO
_ARCHIVE
_RPM_SPEC
_DEB_DPKG
_PAC_ARCH
_TXZ_SLACK
_MAN_CONVERSION
_INFO
_PAPERS
_DRAFTS
_OS7_OPTIONS
_INIT_SCRIPTS
_SSL
AC_CONFIG_FILES([src/util/modutils/openss7
src/include/sys/openss7/version.h
Module.mkvars])
AC_CONFIG_HEADERS([src/drivers/ip_hooks.h
src/drivers/net_hooks.h
src/drivers/sctp_hooks.h
src/drivers/module_hooks.h])
_LDCONFIG
_TCL_EXTENSIONS
_PERL_EXTENSIONS
USER_CPPFLAGS="$CPPFLAGS"
USER_CPPFLAGS="${USER_CPPFLAGS}${USER_CPPFLAGS:+ }-DNAME=\\\"\`echo [\$][@] | sed -e 's,^[[^-]]*-,,;s,\.o,,'\`\\\""
USER_LDFLAGS="${USER_LDFLAGS}${USER_LDFLAGS:+ }$LDFLAGS"
_LINUX_KERNEL
_LINUX_DEVFS
_GENKSYMS
# here we have our flags set and can perform preprocessor and compiler
# checks on the kernel
_OS7_SETUP
PKG_INCLUDES="${PKG_INCLUDES}${PKG_INCLUDES:+ }"'-DLFS=1'
PKG_INCLUDES="${PKG_INCLUDES}${PKG_INCLUDES:+ }"'-imacros ${top_builddir}/config.h'
PKG_INCLUDES="${PKG_INCLUDES}${PKG_INCLUDES:+ }"'-imacros ${top_builddir}/${STRCONF_CONFIG}'
PKG_INCLUDES="${PKG_INCLUDES}${PKG_INCLUDES:+ }"'-I${top_srcdir}'
if test :${linux_cv_k_ko_modules:-no} = :no ; then
PKG_MODFLAGS='$(STREAMS_MODFLAGS) $(STRCOMP_MODFLAGS)'
if echo "$KERNEL_MODFLAGS" | grep 'modversions\.h' >/dev/null 2>&1 ; then
PKG_MODFLAGS="${PKG_MODFLAGS}${PKG_MODFLAGS:+ }"'-include ${top_builddir}/${MODVERSIONS_H}'
dnl PKG_INCLUDES="${PKG_INCLUDES}${PKG_INCLUDES:+ }"'-I${top_builddir}/include'
fi
fi
PKG_INCLUDES="${PKG_INCLUDES}${PKG_INCLUDES:+ }"'-I${top_builddir}/src/include -I${top_srcdir}/src/include'
AC_SUBST([USER_CPPFLAGS])dnl
AC_SUBST([USER_CFLAGS])dnl
AC_SUBST([USER_DFLAGS])dnl
AC_SUBST([USER_CXXFLAGS])dnl
AC_SUBST([USER_DXXFLAGS])dnl
AC_SUBST([USER_GCJFLAGS])dnl
AC_SUBST([USER_GCDFLAGS])dnl
AC_SUBST([USER_LDFLAGS])dnl
AC_SUBST([PKG_INCLUDES])dnl
AC_SUBST([PKG_MODFLAGS])dnl
PKG_MANPATH='$(mandir)'"${PKG_MANPATH:+:}${PKG_MANPATH}"
PKG_MANPATH='$(top_builddir)/doc/man'"${PKG_MANPATH:+:}${PKG_MANPATH}"
AC_SUBST([PKG_MANPATH])dnl
CPPFLAGS=
CFLAGS=
_OS7_OUTPUT
_AGENT
_AUTOTEST
_DOXY
])# AC_OPENSS7
# =============================================================================
# =============================================================================
# _OS7_OPTIONS
# -----------------------------------------------------------------------------
AC_DEFUN([_OS7_OPTIONS], [dnl
dnl--------------------------------------------------------------------------
AC_MSG_NOTICE([+-------------------------------+])
AC_MSG_NOTICE([| Package Configuration Options |])
AC_MSG_NOTICE([+-------------------------------+])
AC_ARG_ENABLE([streams-irq],
[AS_HELP_STRING([--disable-streams-irq],
[STREAMS irq suppression @<:@default=yes@:>@])])
AC_MSG_CHECKING([for STREAMS irq suppression])
if test :"${enable_streams_irq:-yes}" = :no ; then
AC_DEFINE_UNQUOTED([CONFIG_STREAMS_NOIRQ], [1], [When defined]
AC_PACKAGE_TITLE [will not suppress interrupts for stream or queue
lock protection. When defined a driver's put() procedure must not
be called from an ISR and must only be called from bottom half or
tasklets. Bottom half locking is more expensive: don't enable this
except for interrupt based profiling.])
fi
AC_MSG_RESULT([${enable_streams_irq:-yes}])
AM_CONDITIONAL([CONFIG_STREAMS_NOIRQ], [test :"${enable_streams_irq:-yes}" = :no])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([streams-stats],
[AS_HELP_STRING([--disable-streams-stats],
[STREAMS stats counting @<:@default=yes@:>@])])
AC_MSG_CHECKING([for STREAMS stats counting])
if test :"${enable_streams_stats:-yes}" = :yes ; then
AC_DEFINE_UNQUOTED([CONFIG_STREAMS_DO_STATS], [1], [When defined]
AC_PACKAGE_TITLE [will perform STREAMS entry point counting in the
module_stat structure if a pointer is provided by the module or
driver. This is a low cost item and is enabled by default.])
fi
AC_MSG_RESULT([${enable_streams_stats:-yes}])
AM_CONDITIONAL([CONFIG_STREAMS_DO_STATS], [test :"${enable_streams_stats:-yes}" = :yes])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([streams-syncqs],
[AS_HELP_STRING([--disable-streams-syncqs],
[STREAMS synchronization queues @<:@default=yes@:>@])])
AC_MSG_CHECKING([for STREAMS synchronization])
if test :"${enable_streams_syncqs:-yes}" = :yes ; then
AC_DEFINE_UNQUOTED([CONFIG_STREAMS_SYNCQS], [1], [When defined]
AC_PACKAGE_TITLE [will include support for synchronization queues
and levels.])
fi
AC_MSG_RESULT([${enable_streams_syncqs:-yes}])
AM_CONDITIONAL([CONFIG_STREAMS_SYNCQS], [test :"${enable_streams_syncqs:-yes}" = :yes])
dnl--------------------------------------------------------------------------
AC_ARG_WITH([streams-kthreads],
[AS_HELP_STRING([--with-streams-kthreads],
[STREAMS kernel thread operation: nice, normal, rt or no @<:@default=nice@:>@])])
AC_MSG_CHECKING([for STREAMS kernel threads])
case "${with_streams_kthreads:-nice}" in
(no|rt|normal) ;;
(*) with_streams_kthreads=nice ;;
esac
AH_TEMPLATE([CONFIG_STREAMS_KTHREADS], [When defined] AC_PACKAGE_TITLE
[will include use kernel threads for the STREAMS scheduler; when
undefined,] AC_PACKAGE_TITLE [will use softirqs for the STREAMS
scheduler.])
AH_TEMPLATE([CONFIG_STREAMS_RT_KTHREADS], [When defined] AC_PACKAGE_TITLE
[will run kernel threads under real-time priority (SCHED_FIFO); when
undefined,] AC_PACKAGE_TITLE [will run kernel threads (SCHED_NORMAL).])
AH_TEMPLATE([CONFIG_STREAMS_NN_KTHREADS], [When defined] AC_PACKAGE_TITLE
[will run kernel threads under normal scheduling priority when
CONFIG_STREAMS_RT_KTHREADS is not defined instead of at nice level 19.])
case "${with_streams_kthreads:-nice}" in
(no) ;;
(rt) AC_DEFINE_UNQUOTED([CONFIG_STREAMS_KTHREADS], [1])
AC_DEFINE_UNQUOTED([CONFIG_STREAMS_RT_KTHREADS], [1]) ;;
(normal) AC_DEFINE_UNQUOTED([CONFIG_STREAMS_KTHREADS], [1])
AC_DEFINE_UNQUOTED([CONFIG_STREAMS_NN_KTHREADS], [1]) ;;
(nice) AC_DEFINE_UNQUOTED([CONFIG_STREAMS_KTHREADS], [1]) ;;
esac
AC_MSG_RESULT([${with_streams_kthreads:-nice}])
AM_CONDITIONAL([CONFIG_STREAMS_KTHREADS], [test :"${with_streams_kthreads:-nice}" != :no])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([streams-utils],
[AS_HELP_STRING([--disable-streams-utils],
[additional STREAMS utilities @<:@default=yes@:>@])])
AC_MSG_CHECKING([for STREAMS utilities])
if test :"${enable_streams_utils:-yes}" = :yes ; then
AC_DEFINE_UNQUOTED([CONFIG_STREAMS_UTILS], [1], [When defined,]
AC_PACKAGE_TITLE [will include additional STREAMS utilities.])
fi
AC_MSG_RESULT([${enable_streams_utils:-yes}])
AM_CONDITIONAL([CONFIG_STREAMS_UTILS], [test :"${enable_streams_utils:-yes}" = :yes])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([big-compile],
[AS_HELP_STRING([--disable-big-compile],
[compile as one big computational unit @<:@default=yes@:>@])])
AC_MSG_CHECKING([for STREAMS big compile])
if test :"${enable_big_compile:-yes}" = :yes ; then
AC_DEFINE_UNQUOTED([CONFIG_STREAMS_SEPARATE_COMPILE], [1], [When defined,]
AC_PACKAGE_TITLE [will compile streams objects separately.])
fi
AC_MSG_RESULT([${enable_big_compile:-yes}])
AM_CONDITIONAL([CONFIG_STREAMS_SEPARATE_COMPILE], [test :"${enable_big_compile:-yes}" != :yes])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([wrapper-module],
[AS_HELP_STRING([--enable-wrapper-module],
[compile separate wrapper module @<:@default=no@:>@])])
AC_MSG_CHECKING([for separate wrapper module])
if test :"${enable_wrapper_module:-no}" = :yes ; then
AC_DEFINE_UNQUOTED([CONFIG_STREAMS_WRAPPER_MODULE], [1], [When defined,]
AC_PACKAGE_TITLE [will compile a separate wrapper module.])
fi
AC_MSG_RESULT([${enable_wrapper_module:-no}])
AM_CONDITIONAL([CONFIG_STREAMS_WRAPPER_MODULE], [test :"${enable_wrapper_module:-no}" = :yes])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([weak-modules],
[AS_HELP_STRING([--enable-weak-modules],
[use only exported kernel symbols @<:@default=no@:>@])])
AC_MSG_CHECKING([for weak module support])
if test :"${enable_weak_modules:-no}" = :yes ; then
AC_DEFINE_UNQUOTED([CONFIG_STREAMS_WEAK_MODULES], [1], [When defined,]
AC_PACKAGE_TITLE [will not used ripped kernel symbols.])
fi
AC_MSG_RESULT([${enable_weak_modules:-no}])
AM_CONDITIONAL([CONFIG_STREAMS_WEAK_MODULES], [test :"${enable_weak_modules:-no}" = :yes])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([streams-fifos],
[AS_HELP_STRING([--enable-streams-fifos],
[override system fifos with STREAMS-based fifos @<:@default=no@:>@])])
if test :"${enable_streams_fifos:-no}" = :yes ; then
AC_DEFINE_UNQUOTED([CONFIG_STREAMS_OVERRIDE_FIFOS], [1], [When defined,]
AC_PACKAGE_TITLE [will override the Linux system defined FIFOs at
startup. This should be used with care for a while, until streams
FIFOs are proven.])
fi
dnl--------------------------------------------------------------------------
AH_VERBATIM([streamscall], m4_text_wrap([Use this macro like fastcall. It
is set to an attribute with the number of parameters passed in registers
to STREAMS callouts (qi_putp, qi_srvp, qi_qopen, qi_qclose, qi_admin).
In binary compatibility mode, this sets the number of parameters passed
in registers to zero. Otherwise, it defaults to the CONFIG_REPARM
setting for the kernel. */], [ ], [/* ])[
#if defined __i386__ || defined __x86_64__ || defined __k8__
#undef streamscall
#else
#define streamscall
#endif])
AH_VERBATIM([STREAMSCALL], m4_text_wrap([Use this macro like FASTCALL(). It
is set to an attribute with the number of parameters passed in registers
to STREAMS callouts (qi_putp, qi_srvp, qi_qopen, qi_qclose, qi_admin).
In binary compatibility mode, this sets the number of parameters passed
in registers to zero. Otherwise, it defaults to the CONFIG_REPARM
setting for the kernel. */], [ ], [/* ])[
#if defined __i386__ || defined __x86_64__ || defined __k8__
#undef STREAMSCALL
#else
#define STREAMSCALL(__x) __x
#endif])
AC_DEFINE_UNQUOTED([streamscall], [__attribute__((__regparm__(3)))])
AC_DEFINE_UNQUOTED([STREAMSCALL(__x)], [__x streamscall])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([module-sth],
[AS_HELP_STRING([--enable-module-sth],
[sth linked with STREAMS @<:@default=module@:>@])])
case "${enable_module_sth:-module}" in (yes|no) ;; (*) enable_module_sth=module ;; esac
AM_CONDITIONAL([CONFIG_STREAMS_STH], [test :"${enable_module_sth:-module}" = :yes])
AM_CONDITIONAL([CONFIG_STREAMS_STH_MODULE], [test :"${enable_module_sth:-module}" = :module])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([module-srvmod],
[AS_HELP_STRING([--enable-module-srvmod],
[srvmod linked with STREAMS @<:@default=module@:>@])])
case "${enable_module_srvmod:-module}" in (yes|no) ;; (*) enable_module_srvmod=module ;; esac
AM_CONDITIONAL([CONFIG_STREAMS_SRVMOD], [test :"${enable_module_srvmod:-module}" = :yes])
AM_CONDITIONAL([CONFIG_STREAMS_SRVMOD_MODULE], [test :"${enable_module_srvmod:-module}" = :module])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([module-nullmod],
[AS_HELP_STRING([--enable-module-nullmod],
[nullmod linked with STREAMS @<:@default=module@:>@])])
case "${enable_module_nullmod:-module}" in (yes|no) ;; (*) enable_module_nullmod=module ;; esac
AM_CONDITIONAL([CONFIG_STREAMS_NULLMOD], [test :"${enable_module_nullmod:-module}" = :yes])
AM_CONDITIONAL([CONFIG_STREAMS_NULLMOD_MODULE], [test :"${enable_module_nullmod:-module}" = :module])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([module-pipemod],
[AS_HELP_STRING([--enable-module-pipemod],
[pipemod linked with STREAMS @<:@default=module@:>@])])
case "${enable_module_pipemod:-module}" in (yes|no) ;; (*) enable_module_pipemod=module ;; esac
AM_CONDITIONAL([CONFIG_STREAMS_PIPEMOD], [test :"${enable_module_pipemod:-module}" = :yes])
AM_CONDITIONAL([CONFIG_STREAMS_PIPEMOD_MODULE], [test :"${enable_module_pipemod:-module}" = :module])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([module-connld],
[AS_HELP_STRING([--enable-module-connld],
[connld linked with STREAMS @<:@default=module@:>@])])
case "${enable_module_connld:-module}" in (yes|no) ;; (*) enable_module_connld=module ;; esac
AM_CONDITIONAL([CONFIG_STREAMS_CONNLD], [test :"${enable_module_connld:-module}" = :yes])
AM_CONDITIONAL([CONFIG_STREAMS_CONNLD_MODULE], [test :"${enable_module_connld:-module}" = :module])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([module-sc],
[AS_HELP_STRING([--enable-module-sc],
[sc linked with STREAMS @<:@default=module@:>@])])
case "${enable_module_sc:-module}" in (yes|no) ;; (*) enable_module_sc=module ;; esac
AM_CONDITIONAL([CONFIG_STREAMS_SC], [test :"${enable_module_sc:-module}" = :yes])
AM_CONDITIONAL([CONFIG_STREAMS_SC_MODULE], [test :"${enable_module_sc:-module}" = :module])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([module-testmod],
[AS_HELP_STRING([--enable-module-testmod],
[testmod linked with STREAMS @<:@default=module@:>@])])
case "${enable_module_testmod:-module}" in (yes|no) ;; (*) enable_module_testmod=module ;; esac
AM_CONDITIONAL([CONFIG_STREAMS_TESTMOD], [test :"${enable_module_testmod:-module}" = :yes])
AM_CONDITIONAL([CONFIG_STREAMS_TESTMOD_MODULE], [test :"${enable_module_testmod:-module}" = :module])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([module-timod],
[AS_HELP_STRING([--enable-module-timod],
[timod linked with STREAMS @<:@default=module@:>@])])
case "${enable_module_timod:-module}" in (yes|no) ;; (*) enable_module_timod=module ;; esac
AM_CONDITIONAL([CONFIG_STREAMS_TIMOD], [test :"${enable_module_timod:-module}" = :yes])
AM_CONDITIONAL([CONFIG_STREAMS_TIMOD_MODULE], [test :"${enable_module_timod:-module}" = :module])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([module-tirdwr],
[AS_HELP_STRING([--enable-module-tirdwr],
[tirdwr linked with STREAMS @<:@default=module@:>@])])
case "${enable_module_tirdwr:-module}" in (yes|no) ;; (*) enable_module_tirdwr=module ;; esac
AM_CONDITIONAL([CONFIG_STREAMS_TIRDWR], [test :"${enable_module_tirdwr:-module}" = :yes])
AM_CONDITIONAL([CONFIG_STREAMS_TIRDWR_MODULE], [test :"${enable_module_tirdwr:-module}" = :module])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([module-bufmod],
[AS_HELP_STRING([--enable-module-bufmod],
[bufmod linked with STREAMS @<:@default=module@:>@])])
case "${enable_module_bufmod:-module}" in (yes|no) ;; (*) enable_module_bufmod=module ;; esac
AM_CONDITIONAL([CONFIG_STREAMS_BUFMOD], [test :"${enable_module_bufmod:-module}" = :yes])
AM_CONDITIONAL([CONFIG_STREAMS_BUFMOD_MODULE], [test :"${enable_module_bufmod:-module}" = :module])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([module-pfmod],
[AS_HELP_STRING([--enable-module-pfmod],
[pfmod linked with STREAMS @<:@default=module@:>@])])
case "${enable_module_pfmod:-module}" in (yes|no) ;; (*) enable_module_pfmod=module ;; esac
AM_CONDITIONAL([CONFIG_STREAMS_PFMOD], [test :"${enable_module_pfmod:-module}" = :yes])
AM_CONDITIONAL([CONFIG_STREAMS_PFMOD_MODULE], [test :"${enable_module_pfmod:-module}" = :module])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([module-nbuf],
[AS_HELP_STRING([--enable-module-nbuf],
[nbuf linked with STREAMS @<:@default=module@:>@])])
case "${enable_module_nbuf:-module}" in (yes|no) ;; (*) enable_module_nbuf=module ;; esac
AM_CONDITIONAL([CONFIG_STREAMS_NBUF], [test :"${enable_module_nbuf:-module}" = :yes])
AM_CONDITIONAL([CONFIG_STREAMS_NBUF_MODULE], [test :"${enable_module_nbuf:-module}" = :module])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([module-pf],
[AS_HELP_STRING([--enable-module-pf],
[pf linked with STREAMS @<:@default=module@:>@])])
case "${enable_module_pf:-module}" in (yes|no) ;; (*) enable_module_pf=module ;; esac
AM_CONDITIONAL([CONFIG_STREAMS_PF], [test :"${enable_module_pf:-module}" = :yes])
AM_CONDITIONAL([CONFIG_STREAMS_PF_MODULE], [test :"${enable_module_pf:-module}" = :module])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([driver-clone],
[AS_HELP_STRING([--enable-driver-clone],
[clone linked with STREAMS @<:@default=module@:>@])])
case "${enable_driver_clone:-module}" in (yes|no) ;; (*) enable_driver_clone=module ;; esac
AM_CONDITIONAL([CONFIG_STREAMS_CLONE], [test :"${enable_driver_clone:-module}" = :yes])
AM_CONDITIONAL([CONFIG_STREAMS_CLONE_MODULE], [test :"${enable_driver_clone:-module}" = :module])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([driver-echo],
[AS_HELP_STRING([--enable-driver-echo],
[echo linked with STREAMS @<:@default=module@:>@])])
case "${enable_driver_echo:-module}" in (yes|no) ;; (*) enable_driver_echo=module ;; esac
AM_CONDITIONAL([CONFIG_STREAMS_ECHO], [test :"${enable_driver_echo:-module}" = :yes])
AM_CONDITIONAL([CONFIG_STREAMS_ECHO_MODULE], [test :"${enable_driver_echo:-module}" = :module])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([driver-fifo],
[AS_HELP_STRING([--enable-driver-fifo],
[fifo linked with STREAMS @<:@default=module@:>@])])
case "${enable_driver_fifo:-module}" in (yes|no) ;; (*) enable_driver_fifo=module ;; esac
AM_CONDITIONAL([CONFIG_STREAMS_FIFO], [test :"${enable_driver_fifo:-module}" = :yes])
AM_CONDITIONAL([CONFIG_STREAMS_FIFO_MODULE], [test :"${enable_driver_fifo:-module}" = :module])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([driver-log],
[AS_HELP_STRING([--enable-driver-log],
[log linked with STREAMS @<:@default=module@:>@])])
case "${enable_driver_log:-module}" in (yes|no) ;; (*) enable_driver_log=module ;; esac
AM_CONDITIONAL([CONFIG_STREAMS_LOG], [test :"${enable_driver_log:-module}" = :yes])
AM_CONDITIONAL([CONFIG_STREAMS_LOG_MODULE], [test :"${enable_driver_log:-module}" = :module])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([driver-loop],
[AS_HELP_STRING([--enable-driver-loop],
[loop linked with STREAMS @<:@default=module@:>@])])
case "${enable_driver_loop:-module}" in (yes|no) ;; (*) enable_driver_loop=module ;; esac
AM_CONDITIONAL([CONFIG_STREAMS_LOOP], [test :"${enable_driver_loop:-module}" = :yes])
AM_CONDITIONAL([CONFIG_STREAMS_LOOP_MODULE], [test :"${enable_driver_loop:-module}" = :module])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([driver-nsdev],
[AS_HELP_STRING([--enable-driver-nsdev],
[nsdev linked with STREAMS @<:@default=module@:>@])])
case "${enable_driver_nsdev:-module}" in (yes|no) ;; (*) enable_driver_nsdev=module ;; esac
AM_CONDITIONAL([CONFIG_STREAMS_NSDEV], [test :"${enable_driver_nsdev:-module}" = :yes])
AM_CONDITIONAL([CONFIG_STREAMS_NSDEV_MODULE], [test :"${enable_driver_nsdev:-module}" = :module])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([driver-mux],
[AS_HELP_STRING([--enable-driver-mux],
[mux linked with STREAMS @<:@default=module@:>@])])
case "${enable_driver_mux:-module}" in (yes|no) ;; (*) enable_driver_mux=module ;; esac
AM_CONDITIONAL([CONFIG_STREAMS_MUX], [test :"${enable_driver_mux:-module}" = :yes])
AM_CONDITIONAL([CONFIG_STREAMS_MUX_MODULE], [test :"${enable_driver_mux:-module}" = :module])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([driver-nuls],
[AS_HELP_STRING([--enable-driver-nuls],
[nuls linked with STREAMS @<:@default=module@:>@])])
case "${enable_driver_nuls:-module}" in (yes|no) ;; (*) enable_driver_nuls=module ;; esac
AM_CONDITIONAL([CONFIG_STREAMS_NULS], [test :"${enable_driver_nuls:-module}" = :yes])
AM_CONDITIONAL([CONFIG_STREAMS_NULS_MODULE], [test :"${enable_driver_nuls:-module}" = :module])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([driver-pipe],
[AS_HELP_STRING([--enable-driver-pipe],
[pipe linked with STREAMS @<:@default=module@:>@])])
case "${enable_driver_pipe:-module}" in (yes|no) ;; (*) enable_driver_pipe=module ;; esac
AM_CONDITIONAL([CONFIG_STREAMS_PIPE], [test :"${enable_driver_pipe:-module}" = :yes])
AM_CONDITIONAL([CONFIG_STREAMS_PIPE_MODULE], [test :"${enable_driver_pipe:-module}" = :module])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([driver-sad],
[AS_HELP_STRING([--enable-driver-sad],
[sad linked with STREAMS @<:@default=module@:>@])])
case "${enable_driver_sad:-module}" in (yes|no) ;; (*) enable_driver_sad=module ;; esac
AM_CONDITIONAL([CONFIG_STREAMS_SAD], [test :"${enable_driver_sad:-module}" = :yes])
AM_CONDITIONAL([CONFIG_STREAMS_SAD_MODULE], [test :"${enable_driver_sad:-module}" = :module])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([driver-sfx],
[AS_HELP_STRING([--enable-driver-sfx],
[sfx linked with STREAMS @<:@default=module@:>@])])
case "${enable_driver_sfx:-module}" in (yes|no) ;; (*) enable_driver_sfx=module ;; esac
AM_CONDITIONAL([CONFIG_STREAMS_SFX], [test :"${enable_driver_sfx:-module}" = :yes])
AM_CONDITIONAL([CONFIG_STREAMS_SFX_MODULE], [test :"${enable_driver_sfx:-module}" = :module])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([driver-spx],
[AS_HELP_STRING([--enable-driver-spx],
[spx linked with STREAMS @<:@default=module@:>@])])
case "${enable_driver_spx:-module}" in (yes|no) ;; (*) enable_driver_spx=module ;; esac
AM_CONDITIONAL([CONFIG_STREAMS_SPX], [test :"${enable_driver_spx:-module}" = :yes])
AM_CONDITIONAL([CONFIG_STREAMS_SPX_MODULE], [test :"${enable_driver_spx:-module}" = :module])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([driver-nit],
[AS_HELP_STRING([--enable-driver-nit],
[nit linked with STREAMS @<:@default=module@:>@])])
case "${enable_driver_nit:-module}" in (yes|no) ;; (*) enable_driver_nit=module ;; esac
AM_CONDITIONAL([CONFIG_STREAMS_NIT], [test :"${enable_driver_nit:-module}" = :yes])
AM_CONDITIONAL([CONFIG_STREAMS_NIT_MODULE], [test :"${enable_driver_nit:-module}" = :module])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([driver-bpf],
[AS_HELP_STRING([--enable-driver-bpf],
[bpf linked with STREAMS @<:@default=module@:>@])])
case "${enable_driver_bpf:-module}" in (yes|no) ;; (*) enable_driver_bpf=module ;; esac
AM_CONDITIONAL([CONFIG_STREAMS_BPF], [test :"${enable_driver_bpf:-module}" = :yes])
AM_CONDITIONAL([CONFIG_STREAMS_BPF_MODULE], [test :"${enable_driver_bpf:-module}" = :module])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([compat-os7],
[AS_HELP_STRING([--enable-compat-os7],
[OpenSS7 compatibility linked @<:@default=module@:>@])])
case "${enable_compat_os7:-module}" in (yes|no) ;; (*) enable_compat_os7=module ;; esac
AM_CONDITIONAL([CONFIG_STREAMS_COMPAT_OS7], [test ":${enable_compat_os7:-module}" = :yes])
AM_CONDITIONAL([CONFIG_STREAMS_COMPAT_OS7_MODULE], [test ":${enable_compat_os7:-module}" = :module])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([compat-svr3],
[AS_HELP_STRING([--enable-compat-svr3],
[SVR 3 compatibility linked @<:@default=module@:>@])])
case "${enable_compat_svr3:-module}" in (yes|no) ;; (*) enable_compat_svr3=module ;; esac
AM_CONDITIONAL([CONFIG_STREAMS_COMPAT_SVR3], [test ":${enable_compat_svr3:-module}" = :yes])
AM_CONDITIONAL([CONFIG_STREAMS_COMPAT_SVR3_MODULE], [test ":${enable_compat_svr3:-module}" = :module])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([compat-svr4],
[AS_HELP_STRING([--enable-compat-svr4],
[SVR 4.2 MP compatibility linked @<:@default=module@:>@])])
case "${enable_compat_svr4:-module}" in (yes|no) ;; (*) enable_compat_svr4=module ;; esac
AM_CONDITIONAL([CONFIG_STREAMS_COMPAT_SVR4], [test ":${enable_compat_svr4:-module}" = :yes])
AM_CONDITIONAL([CONFIG_STREAMS_COMPAT_SVR4_MODULE], [test ":${enable_compat_svr4:-module}" = :module])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([compat-mps],
[AS_HELP_STRING([--enable-compat-mps],
[MPS compatibility linked @<:@default=moudle@:>@])])
case "${enable_compat_mps:-module}" in (yes|no) ;; (*) enable_compat_mps=module ;; esac
AM_CONDITIONAL([CONFIG_STREAMS_COMPAT_MPS], [test ":${enable_compat_mps:-module}" = :yes])
AM_CONDITIONAL([CONFIG_STREAMS_COMPAT_MPS_MODULE], [test ":${enable_compat_mps:-module}" = :module])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([compat-sol8],
[AS_HELP_STRING([--enable-compat-sol8],
[Solaris 8 compatibility linked @<:@default=module@:>@])])
case "${enable_compat_sol8:-module}" in (yes|no) ;; (*) enable_compat_sol8=module ;; esac
AM_CONDITIONAL([CONFIG_STREAMS_COMPAT_SUN], [test ":${enable_compat_sol8:-module}" = :yes])
AM_CONDITIONAL([CONFIG_STREAMS_COMPAT_SUN_MODULE], [test ":${enable_compat_sol8:-module}" = :module])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([compat-uw7],
[AS_HELP_STRING([--enable-compat-uw7],
[UnixWare 7 compatibility linked @<:@default=module@:>@])])
case "${enable_compat_uw7:-module}" in (yes|no) ;; (*) enable_compat_uw7=module ;; esac
AM_CONDITIONAL([CONFIG_STREAMS_COMPAT_UW7], [test ":${enable_compat_uw7:-module}" = :yes])
AM_CONDITIONAL([CONFIG_STREAMS_COMPAT_UW7_MODULE], [test ":${enable_compat_uw7:-module}" = :module])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([compat-osf],
[AS_HELP_STRING([--enable-compat-osf],
[OSF/1.2 compatibility linked @<:@default=module@:>@])])
case "${enable_compat_osf:-module}" in (yes|no) ;; (*) enable_compat_osf=module ;; esac
AM_CONDITIONAL([CONFIG_STREAMS_COMPAT_OSF], [test ":${enable_compat_osf:-module}" = :yes])
AM_CONDITIONAL([CONFIG_STREAMS_COMPAT_OSF_MODULE], [test ":${enable_compat_osf:-module}" = :module])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([compat-aix],
[AS_HELP_STRING([--enable-compat-aix],
[AIX 4 compatibility linked @<:@default=module@:>@])])
case "${enable_compat_aix:-module}" in (yes|no) ;; (*) enable_compat_aix=module ;; esac
AM_CONDITIONAL([CONFIG_STREAMS_COMPAT_AIX], [test ":${enable_compat_aix:-module}" = :yes])
AM_CONDITIONAL([CONFIG_STREAMS_COMPAT_AIX_MODULE], [test ":${enable_compat_aix:-module}" = :module])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([compat-hpux],
[AS_HELP_STRING([--enable-compat-hpux],
[HPUX compatibility linked @<:@default=module@:>@])])
case "${enable_compat_hpux:-module}" in (yes|no) ;; (*) enable_compat_hpux=module ;; esac
AM_CONDITIONAL([CONFIG_STREAMS_COMPAT_HPUX], [test ":${enable_compat_hpux:-module}" = :yes])
AM_CONDITIONAL([CONFIG_STREAMS_COMPAT_HPUX_MODULE], [test ":${enable_compat_hpux:-module}" = :module])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([compat-irix],
[AS_HELP_STRING([--enable-compat-irix],
[IRIX compatibility linked @<:@default=module@:>@])])
case "${enable_compat_irix:-module}" in (yes|no) ;; (*) enable_compat_irix=module ;; esac
AM_CONDITIONAL([CONFIG_STREAMS_COMPAT_IRIX], [test ":${enable_compat_irix:-module}" = :yes])
AM_CONDITIONAL([CONFIG_STREAMS_COMPAT_IRIX_MODULE], [test ":${enable_compat_irix:-module}" = :module])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([compat-mac],
[AS_HELP_STRING([--enable-compat-mac],
[MacOT compatibility linked @<:@default=module@:>@])])
case "${enable_compat_mac:-module}" in (yes|no) ;; (*) enable_compat_mac=module ;; esac
AM_CONDITIONAL([CONFIG_STREAMS_COMPAT_MAC], [test ":${enable_compat_mac:-module}" = :yes])
AM_CONDITIONAL([CONFIG_STREAMS_COMPAT_MAC_MODULE], [test ":${enable_compat_mac:-module}" = :module])
dnl--------------------------------------------------------------------------
AC_ARG_WITH([ip],
[AS_HELP_STRING([--with-ip],
[include np-ip revision 2 driver @<:@default=yes@:>@])],
[], [with_ip=yes])
AC_MSG_CHECKING([for NP-IP driver])
if test :"${with_ip:-yes}" = :yes ; then
os7_cv_ip_v2=yes
AC_DEFINE([IP_VERSION_2], [1], [Define for NP-IP driver. This define is
needed by test programs and other programs that need to determine if
the NP-IP driver is included in the build or not.])
else
os7_cv_ip_v2=no
fi
AC_MSG_RESULT([${os7_cv_ip_v2:-yes}])
AM_CONDITIONAL([WITH_IP], [test :"${os7_cv_ip_v2:-yes}" = :yes])dnl
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([xti-servtype],
[AS_HELP_STRING([--enable-xti-servtype],
[xnet library checks service type @<:@default=no@:>@])])
AC_MSG_CHECKING([for XTI service type checks])
if test :"${enable_xti_servtype:-no}" = :no ; then
AC_DEFINE_UNQUOTED([CONFIG_XTI_IS_TYPELESS], [1], [Define when the XTI
library is not to check service types. This is necessary when
T_COTS semantics are expected to be applied to T_CLTS providers.
When defined, the XTI library lets the underlying TPI driver
determine whether T_COTS/T_COTS_ORD primitives are supported or
not.])
fi
AC_MSG_RESULT([${enable_xti_servtype:-no}])
dnl--------------------------------------------------------------------------
AC_ARG_ENABLE([xti-states],
[AS_HELP_STRING([--enable-xti-states],
[xnet library checks state @<:@default=no@:>@])])
AC_MSG_CHECKING([for XTI state checks])
if test :"${enable_xti_states:-no}" = :no ; then
AC_DEFINE_UNQUOTED([CONFIG_XTI_IS_STATELESS], [1], [Define when the
XTI library is not to check states. This is necessary when T_COTS
semantics are expected to be applied to T_CLTS providers and
t_connect() is to be called on an unbound T_CLTS Stream. When
defined, the XTI library lets the underlying TPI driver determine
whether the primitive is issued out of state or not.])
fi
AC_MSG_RESULT([${enable_xti_states:-no}])
dnl--------------------------------------------------------------------------
AC_ARG_WITH([udp],
[AS_HELP_STRING([--with-udp],
[include udp release 2 driver @<:@default=yes@:>@])],
[], [with_udp=yes])
AC_MSG_CHECKING([for UDP Release 2 driver])
if test :"${with_udp:-yes}" = :yes ; then
os7_cv_udp_v2=yes
AC_DEFINE([UDP_VERSION_2], [1], [Define for UDP Release 2. This define
is needed by test programs and other programs that need to determine
if the UDP Release 2 driver is included in the build or not.])
else
os7_cv_udp_v2=no
fi
AC_MSG_RESULT([${os7_cv_udp_v2:-yes}])
AM_CONDITIONAL([WITH_UDP], [test :"${os7_cv_udp_v2:-yes}" = :yes])dnl
dnl--------------------------------------------------------------------------
AC_ARG_WITH([raw],
[AS_HELP_STRING([--with-raw],
[include raw release 2 driver @<:@default=yes@:>@])],
[], [with_raw=yes])
AC_MSG_CHECKING([for RAW Release 2 driver])
if test :"${with_raw:-yes}" = :yes ; then
os7_cv_raw_v2=yes
AC_DEFINE([RAW_VERSION_2], [1], [Define for RAW Release 2. This define
is needed by test programs and other programs that need to determine
if the RAW Release 2 driver is included in the build or not.])
else
os7_cv_raw_v2=no
fi
AC_MSG_RESULT([${os7_cv_raw_v2:-yes}])
AM_CONDITIONAL([WITH_RAW], [test :"${os7_cv_raw_v2:-yes}" = :yes])dnl
dnl--------------------------------------------------------------------------
AC_ARG_WITH([tcp],
[AS_HELP_STRING([--with-tcp],
[include tcp release 2 driver @<:@default=no@:>@])],
[], [with_tcp='no'])
AC_MSG_CHECKING([for TCP Release 2 driver])
if test :"${with_tcp:-no}" = :yes ; then
os7_cv_tcp_v2=yes
AC_DEFINE([TCP_VERSION_2], [1], [Define for TCP Release 2. This define
is needed by test programs and other programs that need to determine
if the TCP Release 2 driver is included in the build or not.])
else
os7_cv_tcp_v2=no
fi
AC_MSG_RESULT([${os7_cv_tcp_v2:-no}])
AM_CONDITIONAL([WITH_TCP], [test :"${os7_cv_tcp_v2:-no}" = :yes])dnl
dnl--------------------------------------------------------------------------
AC_ARG_WITH([sctp],
[AS_HELP_STRING([--with-sctp],
[include sctp release 1 driver @<:@default=no@:>@])],
[], [with_sctp=no])
AC_ARG_WITH([sctp2],
[AS_HELP_STRING([--with-sctp2],
[include sctp release 2 driver @<:@default=yes@:>@])],
[], [with_sctp2=yes])
AC_MSG_CHECKING([for sctp version])
if test :"${with_sctp2:-yes}" = :yes ; then
with_sctp=no
os7_cv_sctp_version=2
AC_DEFINE([SCTP_VERSION_2], [1], [Define for SCTP Release 2. This
define is needed by test programs and other programs that need to
determine the difference between the address format and options
conventions for the two versions.])
else
with_sctp=yes
os7_cv_sctp_version=1
AC_DEFINE([SCTP_VERSION_1], [1], [Define for SCTP Release 1. This
define is needed by test programs and other programs that need to
determine the difference between the address format and options
conventions for the two versions.])
fi
AC_DEFINE_UNQUOTED([SCTP_VERSION], [$os7_cv_sctp_version], [Define to 1 for
SCTP Release 1. Define to 2 for SCTP Release 2. This define is needed
by test programs that must determine the difference between the address
format and options conventions for the two versions.])
AC_MSG_RESULT([$os7_cv_sctp_version])
AM_CONDITIONAL([WITH_SCTP], [test :"$os7_cv_sctp_version" = :1])dnl
AM_CONDITIONAL([WITH_SCTP2], [test :"$os7_cv_sctp_version" = :2])dnl
])# _OS7_OPTIONS
# =============================================================================
# =============================================================================
# _OS7_SETUP
# -----------------------------------------------------------------------------
AC_DEFUN([_OS7_SETUP], [dnl
AC_MSG_NOTICE([+----------------------+])
AC_MSG_NOTICE([| Kernel Configuration |])
AC_MSG_NOTICE([+----------------------+])
_OS7_SETUP_MODULE
_OS7_CONFIG_KERNEL
_OS7_CONFIG_SCTP
_OS7_FINALIZE
])# _OS7_SETUP
# =============================================================================
# =============================================================================
# _OS7_SETUP_MODULE
# -----------------------------------------------------------------------------
AC_DEFUN([_OS7_SETUP_MODULE], [dnl
if test :"${linux_cv_k_linkage:-loadable}" = :loadable ; then
AC_DEFINE_UNQUOTED([CONFIG_STREAMS_MODULE], [1], [When defined, OpenSS7
is being compiled as a loadable kernel module.])
else
AC_DEFINE_UNQUOTED([CONFIG_STREAMS], [1], [When defined, OpenSS7 is
being compiled as a kernel linkable object.])
fi
AM_CONDITIONAL([CONFIG_STREAMS_MODULE], [test :${linux_cv_k_linkage:-loadable} = :loadable])
AM_CONDITIONAL([CONFIG_STREAMS], [test :${linux_cv_k_linkage:-loadable} = :linkable])
])# _OS7_SETUP_MODULE
# =============================================================================
# =============================================================================
# _OS7_CONFIG_KERNEL
# -----------------------------------------------------------------------------
# These are a bunch of kernel configuration checks primarily in support of 2.5
# and 2.6 kernels.
# -----------------------------------------------------------------------------
AC_DEFUN([_OS7_CONFIG_KERNEL], [dnl
dnl----------------------------------------------------------------------------
_LINUX_CHECK_HEADERS([ \
linux/namespace.h \
linux/kdev_t.h \
linux/statfs.h \
linux/namei.h \
linux/path.h \
linux/nsproxy.h \
linux/locks.h \
asm/softirq.h \
linux/brlock.h \
linux/slab.h \
linux/cdev.h \
linux/hardirq.h \
linux/cpumask.h \
linux/kref.h \
linux/security.h \
asm/uaccess.h \
linux/kthread.h \
linux/compat.h \
linux/ioctl32.h \
asm/ioctl32.h \
linux/syscalls.h \
linux/rwsem.h \
linux/smp_lock.h \
linux/devfs_fs_kernel.h \
linux/compile.h \
generated/compile.h \
linux/utsrelease.h \
generated/utsrelease.h \
linux/fdtable.h \
linux/snmp.h \
net/xfrm.h \
net/dst.h \
net/request_sock.h \
linux/percpu.h \
linux/cred.h \
linux/device.h \
linux/notifier.h \
linux/crypto.h \
asm/system.h \
linux/seq_file.h \
linux/smpboot.h \
], [:], [:], [
#include <linux/compiler.h>
#ifdef NEED_LINUX_AUTOCONF_H
#include NEED_LINUX_AUTOCONF_H
#endif
#include <linux/version.h>
#include <linux/types.h>
#include <linux/module.h>
#include <linux/init.h>
#ifdef HAVE_KINC_LINUX_LOCKS_H
#include <linux/locks.h>
#endif
#ifdef HAVE_KINC_LINUX_SLAB_H
#include <linux/slab.h>
#endif
#include <linux/fs.h>
#include <linux/socket.h>
#include <net/sock.h>
#include <net/protocol.h>
#include <net/inet_common.h>
#ifdef HAVE_KINC_NET_XFRM_H
#include <net/xfrm.h>
#endif
#ifdef HAVE_KINC_NET_DST_H
#include <net/dst.h>
#endif
#include <linux/sched.h>
]) # _LINUX_CHECK_HEADERS
dnl----------------------------------------------------------------------------
AC_SUBST([EXPOSED_SYMBOLS])dnl
dnl----------------------------------------------------------------------------
_LINUX_CHECK_FUNCS([ \
MOD_DEC_USE_COUNT \
MOD_INC_USE_COUNT \
__in_dev_get_rcu \
__ip_select_ident \
__symbol_get \
__symbol_put \
access_ok \
atomic_add_return \
check_region \
class_create \
__class_create \
class_destroy \
cli \
compat_ptr \
cpu_raise_softirq \
cpumask_scnprintf \
create_proc_info_entry \
create_proc_read_entry \
proc_create_data \
d_alloc_pseudo \
d_alloc_root \
d_make_root \
dev_init_buffers \
device_create \
device_destroy \
dst_mtu \
dst_output \
dst_output_sk \
find_pid \
find_vpid \
finish_wait \
force_delete \
free_dma \
generic_delete_inode \
get_pid \
get_unused_fd_flags \
iget_locked \
in_atomic \
inet_csk \
inet_get_local_port_range \
interruptible_sleep_on \
ip_dst_output \
ip_route_output_flow \
ip_route_output_key \
ip_select_ident_segs \
i_readcount_inc \
i_readcount_dec \
kern_umount \
kill_litter_super \
kill_proc \
ksize \
module_put \
nf_reset \
num_online_cpus \
path_lookup \
path_get \
path_put \
pci_dac_dma_supported \
pci_dac_dma_sync_single \
pci_dac_dma_sync_single_for_cpu \
pci_dac_dma_sync_single_for_device \
pci_dac_dma_to_offset \
pci_dac_dma_to_page \
pci_dac_page_to_dma \
pci_dac_set_dma_mask \
pci_dma_sync_sg \
pci_dma_sync_single \
pci_find_class \
pci_is_pcie \
pci_module_init \
pcibios_find_class \
pcibios_find_device \
pcibios_init \
pcibios_present \
pcibios_read_config_byte \
pcibios_read_config_dword \
pcibios_read_config_word \
pcibios_write_config_byte \
pcibios_write_config_dword \
pcibios_write_config_word \
pid_nr \
pid_vnr \
prepare_to_wait \
prepare_to_wait_exclusive \
process_group \
process_session \
put_pid \
rcu_read_lock \
read_trylock \
register_cpu_notifier \
register_ioctl32_conversion \
request_dma \
session_of_pgrp \
set_cpus_allowed \
set_nlink \
set_user_nice \
simple_statfs \
skb_dst \
skb_dst_set \
skb_get_tx_queue \
skb_rtable \
skb_transport_header \
sleep_on \
sleep_on_timeout \
smpboot_register_percpu_thread \
sti \
synchronize_net \
task_pgrp \
task_pgrp_nr \
task_pgrp_nr_ns \
task_pgrp_vnr \
task_pid \
task_pid_nr \
task_pid_vnr \
task_session \
task_session_nr \
task_session_nr_ns \
task_session_vnr \
task_tgid \
task_tgid_nr \
task_tgid_vnr \
tcp_set_skb_tso_segs_sock \
to_kdev_t \
try_module_get \
unregister_cpu_notifier \
unregister_ioctl32_conversion \
vfree \
vmalloc \
write_trylock \
yield \
], [:], [
case "$lk_func" in
pcibios_*)
EXPOSED_SYMBOLS="${EXPOSED_SYMBOLS:+$EXPOSED_SYMBOLS }lis_${lk_func}"
;;
pci_*)
EXPOSED_SYMBOLS="${EXPOSED_SYMBOLS:+$EXPOSED_SYMBOLS }lis_${lk_func}"
EXPOSED_SYMBOLS="${EXPOSED_SYMBOLS:+$EXPOSED_SYMBOLS }lis_osif_${lk_func}"
;;
*sleep_on*|vmalloc|vfree)
EXPOSED_SYMBOLS="${EXPOSED_SYMBOLS:+$EXPOSED_SYMBOLS }lis_${lk_func}"
;;
esac ], [
#include <linux/compiler.h>
#ifdef NEED_LINUX_AUTOCONF_H
#include NEED_LINUX_AUTOCONF_H
#endif
#include <linux/version.h>
#include <linux/types.h>
#include <linux/module.h>
#include <linux/init.h>
#ifdef HAVE_KINC_LINUX_LOCKS_H
#include <linux/locks.h>
#endif
#ifdef HAVE_KINC_LINUX_SLAB_H
#include <linux/slab.h>
#endif
#include <linux/fs.h>
#include <linux/file.h>
#ifdef HAVE_KINC_LINUX_FDTABLE_H
#include <linux/fdtable.h>
#endif
#ifdef HAVE_KINC_LINUX_CPUMASK_H
#include <linux/cpumask.h>
#endif
#include <linux/sched.h>
#include <linux/wait.h>
#ifdef HAVE_KINC_LINUX_KDEV_T_H
#include <linux/kdev_t.h>
#endif
#ifdef HAVE_KINC_LINUX_STATFS_H
#include <linux/statfs.h>
#endif
#ifdef HAVE_KINC_LINUX_NAMESPACE_H
#include <linux/namespace.h>
#endif
#ifdef CONFIG_PROC_FS
#include <linux/proc_fs.h>
#endif