forked from openss7/openss7
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
323 lines (290 loc) · 9.96 KB
/
configure.ac
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
# vim: ft=config sw=4 noet nocin nosi com=b\:#,b\:dnl,b\:***,b\:@%\:@ fo+=tcqlorn
# =============================================================================
# BEGINNING OF SEPARATE COPYRIGHT MATERIAL
# =============================================================================
#
# @(#) configure.ac
#
# -----------------------------------------------------------------------------
#
# Copyright (c) 2008-2015 Monavacon Limited <http://www.monavacon.com/>
# Copyright (c) 2001-2008 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/
#
# =============================================================================
dnl -*- Autoconf -*-
dnl Process this file with autoconf to produce a configure script.
dnl
AC_PREREQ(2.69)
AC_INIT([OpenSS7],[1.1],[[email protected]],[openss7])
AC_REVISION([1.1])
AC_LANG_DEFINES_PROVIDED
_OPENSS7_DIRCHANGE
AC_CONFIG_SRCDIR([openss7.lsm.in])
AC_CONFIG_HEADERS([config.h src/include/sys/openss7/config.h src/include/sys/openss7/wrapper.h])
AC_CONFIG_AUX_DIR([scripts])
AC_CONFIG_MACRO_DIR([m4])
AC_CANONICAL_TARGET
AB_INIT
_DISTRO
AC_MSG_NOTICE([+-------------------------+])
AC_MSG_NOTICE([| General Autoconf Checks |])
AC_MSG_NOTICE([+-------------------------+])
AM_INIT_AUTOMAKE([gnits 1.13 dist-bzip2 no-dist-gzip std-options -Wall color-tests silent-rules tar-ustar])
AM_MAINTAINER_MODE
dnl
dnl Default to --enable-silent-rules. Let the user specify
dnl --disable-silent-rules or specify V=1 to make if they want verbose
dnl output. Note that if dependency tracking is disabled, enabling silent
dnl rules is pointless on automake-1.11 as it has a bug in that regard and
dnl will spew both silent CC lines and verbose lines at once.
dnl
if test :$enable_dependency_tracking != :no ; then
enable_silent_rules="${enable_silent_rules:-yes}"
fi
AM_SILENT_RULES
AC_USE_SYSTEM_EXTENSIONS
USER_CPPFLAGS="$CPPFLAGS"; unset CPPFLAGS
USER_CFLAGS="$CFLAGS"; unset CFLAGS
USER_CXXFLAGS="$CXXFLAGS"; unset CXXFLAGS
USER_GCJFLAGS="$GCJFLAGS"; unset GCJFLAGS
USER_LDFLAGS="$LDFLAGS"; unset LDFLAGS
dnl Pull in RPM optimization flags to bypass cached CFLAGS
if test :${RPM_OPT_FLAGS:+set} = :set; then
USER_CFLAGS=${USER_CFLAGS:+$USER_CFLAGS }$RPM_OPT_FLAGS
USER_CXXFLAGS=${USER_CXXFLAGS:+$USER_CXXFLAGS }$RPM_OPT_FLAGS
fi
AM_PROG_AS
AM_PROG_AR
AC_PROG_AWK
AC_PROG_INSTALL
AM_PROG_INSTALL_STRIP
AC_ARG_VAR([LD], [Linker loader command])
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_MKDIR_P
AM_PROG_LEX
AC_PROG_YACC
LT_PREREQ([2.4.2])
LT_INIT([dlopen])
LT_PATH_LD
dnl LT_LANG([C++])
dnl LT_LANG([Java])
AC_SUBST([LIBTOOL_DEPS])
AM_GNU_GETTEXT_VERSION([0.19.8])
AM_GNU_GETTEXT([external])
m4_include([m4/swig.m4])
dnl
dnl Checks for programs.
dnl
AC_PROG_CC
AC_PROG_CPP
AM_PROG_CC_C_O
AC_PROG_SWIG
m4_include([m4/gcj.m4])
m4_include([m4/java.m4])
dnl
dnl older systems that have gcj3 and gcj should use the newer version
dnl
if test :${enable_tools:-yes} = :yes ; then
AC_PROG_CXX([g++3 g++])
if test :${enable_java:-yes} = :yes ; then
AC_PROG_GCJ
AM_PROG_GCJ
AC_PROG_GCJH
AC_PROG_JAVAC
AC_PROG_JAVAH
AC_PROG_JAVA
AM_CONDITIONAL([am__fastdepJAVAC], [/bin/true])
else
AM_CONDITIONAL([am__fastdepGCJ], [/bin/false])
AM_CONDITIONAL([am__fastdepJAVAC], [/bin/false])
AM_CONDITIONAL([WITH_GCJDBTOOL], [/bin/false])
AM_CONDITIONAL([WITH_LIBGCJ], [/bin/false])
AM_CONDITIONAL([WITH_JAVA], [/bin/false])
fi
else
AM_CONDITIONAL([am__fastdepCXX],[/bin/false])
fi
dnl
dnl Checks for libraries.
dnl
pkg_save_LIBS="$LIBS"
AC_CHECK_LIB([c], [open])
AC_CHECK_LIB([pthread], [pthread_create])
AC_CHECK_LIB([LiS], [fattach])
AC_CHECK_LIB([streams], [fattach])
AC_CHECK_LIB([xnet], [t_open])
AC_CHECK_LIB([socket], [socket])
AC_CHECK_LIB([pcap], [pcap_dump])
LIBS="$pkg_save_LIBS"
AM_CONDITIONAL([WITH_LIB_PCAP],[test :"${ac_cv_lib_pcap_pcap_dump:-no}" != :no])dnl
dnl
dnl Checks for header files.
dnl
AC_FUNC_ALLOCA
AC_HEADER_STDC
AC_HEADER_MAJOR
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS([argz.h arpa/inet.h fcntl.h float.h inttypes.h langinfo.h libintl.h limits.h locale.h malloc.h memory.h netdb.h netinet/in.h stddef.h stdint.h stdio_ext.h stdlib.h string.h strings.h sys/ioctl.h sys/param.h sys/mount.h sys/socket.h sys/time.h sys/timeb.h syslog.h termios.h unistd.h values.h wchar.h])
dnl
dnl Checks for typedefs, structures, and compiler characteristics.
dnl
AC_HEADER_STAT
AC_HEADER_STDBOOL
AC_C_CONST
AC_TYPE_UID_T
AC_C_INLINE
AC_TYPE_INT16_T
AC_TYPE_INT32_T
AC_TYPE_INT64_T
AC_TYPE_INT8_T
AC_TYPE_MODE_T
AC_TYPE_OFF_T
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
AC_CHECK_MEMBERS([struct stat.st_blksize])
AC_STRUCT_ST_BLOCKS
AC_CHECK_MEMBERS([struct stat.st_rdev])
AC_HEADER_TIME
AC_STRUCT_TM
AC_TYPE_UINT8_T
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
AC_TYPE_UINT8_T
AC_C_VOLATILE
AC_CHECK_TYPES([ptrdiff_t])
dnl
dnl Checks for library functions.
dnl
AC_FUNC_ERROR_AT_LINE
if test :${cross_compiling:-no} != :yes ; then :; AC_FUNC_FORK fi
AC_PROG_GCC_TRADITIONAL
AC_FUNC_LSTAT
AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
if test :${cross_compiling:-no} != :yes ; then :; AC_FUNC_MALLOC fi
AC_FUNC_MEMCMP
AC_FUNC_MMAP
if test :${cross_compiling:-no} != :yes ; then :; AC_FUNC_REALLOC fi
AC_FUNC_SELECT_ARGTYPES
if test :${cross_compiling:-no} != :yes ; then :; AC_FUNC_SETPGRP fi
AC_DEFINE_UNQUOTED([RETSIGTYPE],[void],
[Define as the return type of signal handlers (`int' or `void').])
AC_FUNC_STRERROR_R
AC_FUNC_STAT
AC_FUNC_STRFTIME
AC_FUNC_STRNLEN
AC_FUNC_STRTOD
AC_FUNC_VPRINTF
AC_CHECK_FUNCS([__argz_count __argz_next __argz_stringify alarm atexit bzero clock_gettime getcwd gethostbyaddr gethostbyname gethostname gethrtime gettimeofday inet_ntoa localeconv localtime_r mempcpy memset memmove munmap nl_langinfo pow pstat_getdynamic select setlocale socket sqrt stpcpy strcasecmp strchr strcspn strdup strndup strerror strncasecmp strpbrk strrchr strspn strstr strtol strtoul uname])
AC_OPENSS7
AC_CONFIG_FILES([Makefile
doc/Makefile
doc/drafts/Makefile
doc/man/Makefile
doc/manual/Makefile
doc/papers/Makefile
doc/papers/xcode/Makefile
doc/papers/inet/Makefile
doc/papers/sctp/Makefile
doc/papers/sigtran/Makefile
doc/papers/streams/Makefile
doc/papers/optranex/Makefile
doc/papers/chan/Makefile
doc/projects/Makefile
doc/projects/carrier/Makefile
doc/projects/cnam/Makefile
doc/projects/hlr/Makefile
doc/projects/lab/Makefile
doc/projects/mg/Makefile
doc/projects/sbc/Makefile
doc/projects/sg/Makefile
doc/projects/sgp/Makefile
doc/projects/ssg/Makefile
doc/projects/ss/Makefile
doc/projects/voip/Makefile
doc/projects/pgw/Makefile
doc/specs/Makefile
doc/specs/cci/Makefile
doc/specs/cdi/Makefile
doc/specs/chi/Makefile
doc/specs/dlpi/Makefile
doc/specs/lli/Makefile
doc/specs/mapi/Makefile
doc/specs/mtpi/Makefile
doc/specs/mxi/Makefile
doc/specs/mgi/Makefile
doc/specs/nli/Makefile
doc/specs/npi/Makefile
doc/specs/sccpi/Makefile
doc/specs/sdli/Makefile
doc/specs/sdti/Makefile
doc/specs/sli/Makefile
doc/specs/tci/Makefile
doc/specs/tpi/Makefile
doc/specs/tri/Makefile
doc/specs/wan/Makefile
doc/specs/xcc/Makefile
doc/specs/xmap/Makefile
doc/specs/xgcp/Makefile
doc/suites/Makefile
lib32/Makefile
po/Makefile.in
scripts/texi/args.texi
src/Makefile
src/drivers/Config
src/modules/Config
src/include/Makefile
src/tcl/Makefile
src/perl/Makefile
src/java/Makefile])
_OPENSS7_OUTPUT
AC_OUTPUT
# =============================================================================
#
# Copyright (c) 2008-2015 Monavacon Limited <http://www.monavacon.com/>
# Copyright (c) 2001-2008 OpenSS7 Corporation <http://www.openss7.com/>
# Copyright (c) 1997-2001 Brian F. G. Bidulock <[email protected]>
#
# =============================================================================
# ENDING OF SEPARATE COPYRIGHT MATERIAL
# =============================================================================
# vim: ft=config sw=4 noet nocin nosi com=b\:#,b\:dnl,b\:***,b\:@%\:@ fo+=tcqlorn