Fixed bugs in MIB browser code which cause console crash
[public/netxms.git] / configure.ac
CommitLineData
6cd235ca 1# $Id: configure.ac,v 1.196 2006-10-05 16:55:20 alk Exp $
d16cf8a5
AK
2#
3# Process this file with autoconf to produce a configure script.
4#
5
5f461694 6AC_INIT([NetXMS], [0.2.14-rc1], [NetXMS Team <bugs@netxms.org>])
d16cf8a5
AK
7AC_CONFIG_AUX_DIR([config])
8AM_CONFIG_HEADER([config.h])
9AM_INIT_AUTOMAKE
10
5387ff75
VK
11
12# --------------------------------------------------------------------------
13# checks for programs.
14
15AC_PROG_CC
16AC_PROG_CPP
17AC_PROG_CXX
18AC_PROG_INSTALL
b32538f9
VK
19AC_PROG_LEX
20AC_PROG_YACC
882e43d4 21AC_PROG_LN_S
5387ff75 22
d16cf8a5 23# --------------------------------------------------------------------------
d3c8926d 24# Misc. settings
463b332e
VK
25CFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED=1 -D_THREAD_SAFE"
26CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED=1 -D_THREAD_SAFE"
e8636669 27SUBAGENT_LIBS=""
5387ff75 28
e0760102 29# --------------------------------------------------------------------------
d3c8926d
VK
30# disable C++ exceptions
31
32AC_LANG_PUSH([C++])
33
44adbac8 34AC_MSG_CHECKING(whether C++ compiler accepts -fno-rtti)
6cd235ca
AK
35OLD_CXXFLGAS="$CXXFLAGS"
36CXXFLAGS="$CXXFLAGS -fno-rtti"
d3c8926d
VK
37AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ ]], [[ ]])],
38 [ AC_MSG_RESULT(yes) ],
39 [
6cd235ca 40 CXXFLAGS="$OLD_CXXFLAGS"
d3c8926d
VK
41 AC_MSG_RESULT(no)
42 ])
43
44adbac8 44AC_MSG_CHECKING(whether C++ compiler accepts -fno-exceptions)
6cd235ca
AK
45OLD_CXXFLGAS="$CXXFLAGS"
46CXXFLAGS="$CXXFLAGS -fno-exceptions"
d3c8926d
VK
47AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ ]], [[ ]])],
48 [ AC_MSG_RESULT(yes) ],
49 [
6cd235ca 50 CXXFLAGS="$OLD_CXXFLAGS"
d3c8926d
VK
51 AC_MSG_RESULT(no)
52 ])
53
54AC_LANG_POP([C++])
55
56# --------------------------------------------------------------------------
7c9c94a7
VK
57# set LDFLAGS depending on OS
58
59case `uname -s` in
60 AIX)
61 LDFLAGS="-no-undefined $LDFLAGS"
62 ;;
63 *)
64 ;;
65esac
66
67# --------------------------------------------------------------------------
d16cf8a5
AK
68# misc
69
70AC_ARG_VAR(PERL,local path to the perl interpreter)
71perl_possible_path="/usr/bin:/usr/local/bin:/bin:/opt/perl/bin:/opt/perl/usr/bin:/opt/perl/usr/local/bin"
72AC_PATH_PROG(PERL,perl,/usr/bin/env perl,$perl_possible_path)
73
74if test -d /usr/local/include; then
75 CFLAGS="$CFLAGS -I/usr/local/include"
2cb1fb26 76 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
d16cf8a5
AK
77fi
78
79if test -d /usr/kerberos/include; then
80 CFLAGS="$CFLAGS -I/usr/kerberos/include"
2cb1fb26 81 CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
d16cf8a5 82fi
521d90e7 83
d16cf8a5
AK
84if test -d /usr/local/lib; then
85 LDFLAGS="$LDFLAGS -L/usr/local/lib"
86fi
87
88# --------------------------------------------------------------------------
4acb9f75
VK
89# check for zlib
90
91AC_CHECK_LIB(z, deflate)
92
93# --------------------------------------------------------------------------
d16cf8a5
AK
94# command line options
95
9486b324
VK
96AC_ARG_WITH(sqlite,
97[AS_HELP_STRING(--with-sqlite,build SQLite database driver)],
98[ if test "x$withval" != "xno" ; then
99 if test "x$withval" != "x" && test "x$withval" != "xyes" ; then
100 LD_RUN_PATH="${withval}/lib${LD_RUN_PATH:+:}${LD_RUN_PATH}"
101 LDFLAGS="$LDFLAGS -L${withval}/lib"
102 CPPFLAGS="$CPPFLAGS -I${withval}/include"
103 fi
104 DYNAMIC_COMPONENTS="yes"
105 with_sqlite="yes"
106 AC_DEFINE(WITH_SQLITE,,[with sqlite])
107 DB_DRIVERS="$DB_DRIVERS sqlite"
108 AC_CHECK_LIB(sqlite3, sqlite3_open, ,
109 [AC_MSG_ERROR(libsqlite3 is required for SQLite support)])
110fi ])
111
c4b88c3d
VK
112AC_ARG_WITH(odbc,
113[AS_HELP_STRING(--with-odbc,build ODBC database driver)],
114[ if test "x$withval" != "xno" ; then
115 if test "x$withval" != "x" && test "x$withval" != "xyes" ; then
116 LD_RUN_PATH="${withval}/lib${LD_RUN_PATH:+:}${LD_RUN_PATH}"
117 LDFLAGS="$LDFLAGS -L${withval}/lib"
118 CPPFLAGS="$CPPFLAGS -I${withval}/include"
119 fi
e8636669 120 DYNAMIC_COMPONENTS="yes"
c4b88c3d
VK
121 with_odbc="yes"
122 AC_DEFINE(WITH_ODBC,,[with odbc])
123 DB_DRIVERS="$DB_DRIVERS odbc"
124 AC_CHECK_LIB(odbc, SQLAllocHandle, ,
b11f69d6 125 [AC_MSG_ERROR(libodbc is required for ODBC support)])
c4b88c3d
VK
126fi ])
127
d16cf8a5 128AC_ARG_WITH(mysql,
c4b88c3d 129[AS_HELP_STRING(--with-mysql,build MySQL database driver)],
d16cf8a5
AK
130[ if test "x$withval" != "xno" ; then
131 if test "x$withval" != "x" && test "x$withval" != "xyes" ; then
132 LD_RUN_PATH="${withval}/lib${LD_RUN_PATH:+:}${LD_RUN_PATH}"
133 LDFLAGS="$LDFLAGS -L${withval}/lib -L${withval}/lib/mysql -L${withval}/mysql/lib"
6693a1d0 134 CPPFLAGS="$CPPFLAGS -I${withval}/include -I${withval}/include/mysql -I${withval}/mysql/include"
d16cf8a5 135 else
007ae516
VK
136 LD_RUN_PATH="/usr/local/mysql/lib:/usr/local/mysql/lib/mysql:/usr/lib64/mysql:/usr/lib/mysql:/usr/mysql/lib:/usr/mysql/lib/mysql:/usr/local/lib/mysql:${LD_RUN_PATH:+:}${LD_RUN_PATH}"
137 LDFLAGS="$LDFLAGS -L/usr/local/mysql/lib -L/usr/lib64/mysql -L/usr/lib/mysql -L/usr/mysql/lib -L/usr/local/lib/mysql -L/usr/local/mysql/lib/mysql -L/usr/mysql/lib/mysql"
6693a1d0 138 CPPFLAGS="$CPPFLAGS -I/usr/local/mysql/include -I/usr/include/mysql -I/usr/mysql/include -I/usr/local/include/mysql -I/usr/local/mysql/include/mysql -I/usr/mysql/include/mysql"
d16cf8a5 139 fi
e8636669 140 DYNAMIC_COMPONENTS="yes"
d16cf8a5 141 AC_CHECK_LIB(m, floor)
d16cf8a5
AK
142 with_mysql="yes"
143 AC_DEFINE(WITH_MYSQL,,[with mysql])
6693a1d0 144 DB_DRIVERS="$DB_DRIVERS mysql"
d16cf8a5 145 AC_CHECK_LIB(mysqlclient, mysql_init, ,
b11f69d6 146 [AC_MSG_ERROR(libmysqlclient is requred for MySQL support)])
d16cf8a5
AK
147 AC_MSG_CHECKING(whether mysql clients can run)
148 AC_RUN_IFELSE([AC_LANG_SOURCE([[
149 #include <stdio.h>
150 #include <mysql.h>
151 int main(void)
152 {
153 MYSQL *a = mysql_init(NULL);
154 return 0;
155 }
156 ]])],[],[
157 AC_MSG_RESULT(no)
158 AC_MSG_ERROR(Your MySQL client libraries aren't properly installed)
159 ],[])
160 AC_MSG_RESULT(yes)
161 AC_CHECK_FUNCS(mysql_real_escape_string)
6693a1d0 162fi ])
d16cf8a5
AK
163
164AC_ARG_WITH(pgsql,
c4b88c3d 165[AS_HELP_STRING(--with-pgsql,build PostgreSQL database driver)],
d16cf8a5 166[ if test "x$withval" != "xno" ; then
6693a1d0
AK
167 if test "x$withval" != "x" && test "x$withval" != "xyes" ; then
168 LD_RUN_PATH="${withval}/lib${LD_RUN_PATH:+:}${LD_RUN_PATH}"
169 LDFLAGS="$LDFLAGS -L${withval}/lib -L${withval}/lib/pgsql -L${withval}/lib/postgresql -L${withval}/pgsql/lib -L${withval}/postgresql/lib"
170 CPPFLAGS="$CPPFLAGS -I${withval}/include -I${withval}/include/pgsql -I${withval}/include/postgresql -I${withval}/pgsql/include -I${withval}/postgresql/include"
171 else
007ae516
VK
172 LD_RUN_PATH="/usr/local/pgsql/lib:/usr/local/pgsql/lib/pgsql:/usr/lib64/pgsql:/usr/lib/pgsql:/usr/pgsql/lib:/usr/pgsql/lib/pgsql:/usr/local/lib/pgsql:/usr/local/postgresql/lib:/usr/local/postgresql/lib/postgresql:/usr/lib/postgresql:/usr/postgresql/lib:/usr/postgresql/lib/postgresql:/usr/local/lib/postgresql:${LD_RUN_PATH:+:}${LD_RUN_PATH}"
173 LDFLAGS="$LDFLAGS -L/usr/local/pgsql/lib -L/usr/lib64/pgsql -L/usr/lib/pgsql -L/usr/pgsql/lib -L/usr/local/lib/pgsql -L/usr/local/pgsql/lib/pgsql -L/usr/pgsql/lib/pgsql -L/usr/local/postgresql/lib -L/usr/lib/postgresql -L/usr/postgresql/lib -L/usr/local/lib/postgresql -L/usr/local/postgresql/lib/postgresql -L/usr/postgresql/lib/postgresql"
6693a1d0
AK
174 CPPFLAGS="$CPPFLAGS -I/usr/local/pgsql/include -I/usr/include/pgsql -I/usr/pgsql/include -I/usr/local/include/pgsql -I/usr/local/pgsql/include/pgsql -I/usr/pgsql/include/pgsql -I/usr/local/postgresql/include -I/usr/include/postgresql -I/usr/postgresql/include -I/usr/local/include/postgresql -I/usr/local/postgresql/include/postgresql -I/usr/postgresql/include/postgresql"
175 fi
e8636669 176 DYNAMIC_COMPONENTS="yes"
6693a1d0 177 AC_CHECK_LIB(m, floor)
6693a1d0
AK
178 with_pgsql="yes"
179 DB_DRIVERS="$DB_DRIVERS pgsql"
180 AC_DEFINE(WITH_PGSQL,,[with pgsql])
181 AC_CHECK_LIB(pq, PQconnectdb, ,
b11f69d6 182 [AC_MSG_ERROR(libpq is required for PostgreSQL support)])
6693a1d0
AK
183 AC_MSG_CHECKING(whether postgresql clients can run)
184 AC_RUN_IFELSE([AC_LANG_SOURCE([[
185 #include <stdio.h>
186 #include <libpq-fe.h>
187 int main(void)
188 {
189 PGconn *a = PQconnectdb("");
190 return 0;
191 }
192 ]])],[],[
193 AC_MSG_RESULT(no)
194 AC_MSG_ERROR(Your PostgreSQL client libraries aren't properly installed)
195 ],[])
196 AC_MSG_RESULT(yes)
197fi ])
d16cf8a5 198
3a7ce527
AK
199AC_ARG_WITH(server,
200[AS_HELP_STRING(--with-server,build server)],
201[
1d410d50 202 MODULES="$MODULES libnxmap libnxsnmp libnxsl server nxmibc nxscript"
abc48356 203 TOP_LEVEL_MODULES="$TOP_LEVEL_MODULES sql images"
3f2f9f2b 204 CONTRIB_MODULES="$CONTRIB_MODULES mibs backgrounds"
08ffa53e 205 BUILD_SERVER="yes"
e8636669 206 DYNAMIC_COMPONENTS="yes"
3a7ce527 207])
3a7ce527
AK
208
209
e0760102
VK
210AC_ARG_WITH(client,
211[AS_HELP_STRING(--with-client,build client library and tools)],
212[
1d410d50 213 MODULES="$MODULES libnxmap libnxcl nxevent nxreport console"
e0760102 214 BUILD_CLIENT="yes"
e8636669 215 DYNAMIC_COMPONENTS="yes"
e0760102
VK
216])
217
218
d8ca9c03
VK
219AC_ARG_WITH(mdebug,
220[AS_HELP_STRING(--with-mdebug,use debug version of memory allocation functions)],
221[
222 CFLAGS="$CFLAGS -DNETXMS_MEMORY_DEBUG"
223 CPPFLAGS="$CPPFLAGS -DNETXMS_MEMORY_DEBUG"
224])
225
226
3a7ce527
AK
227SUBAGENT_DIRS=""
228AC_ARG_WITH(agent,
229[AS_HELP_STRING(--with-agent,build agent)],
230[
a7442678 231 BUILD_AGENT=yes
0c3c0c39 232 MODULES="$MODULES agent"
3a7ce527
AK
233 case `uname -s` in
234 Linux)
235 SUBAGENT_DIRS="linux"
236 ;;
237 FreeBSD)
238 SUBAGENT_DIRS="freebsd"
239 ;;
992ba479
AK
240 OpenBSD)
241 SUBAGENT_DIRS="openbsd"
242 ;;
3a7ce527
AK
243 SunOS)
244 SUBAGENT_DIRS="sunos"
245 ;;
d0b5a098
VK
246 AIX)
247 SUBAGENT_DIRS="aix"
248 ;;
9bdf494f
AK
249 HP-UX)
250 SUBAGENT_DIRS="hpux"
251 ;;
3a7ce527
AK
252 *)
253 # unknown
254 ;;
255 esac
e8636669
VK
256 DYNAMIC_COMPONENTS="yes"
257])
258
259AC_ARG_WITH(static-agent,
260[AS_HELP_STRING(--with-static-agent,build statically linked agent)],
261[
2b23dc1e
VK
262 BUILD_STATIC_AGENT="yes"
263 MODULES="$MODULES agent"
e8636669
VK
264 CFLAGS="$CFLAGS -D_STATIC_AGENT"
265 CPPFLAGS="$CPPFLAGS -D_STATIC_AGENT"
2b23dc1e 266 LDFLAGS="$LDFLAGS -all-static"
e8636669
VK
267# STATIC_SUBAGENT_LIST="ping portcheck"
268 case `uname -s` in
269 Linux)
270 SUBAGENT_DIRS="linux"
d0b5a098
VK
271 SUBAGENT_LIBS="../subagents/linux/libnsm_linux.la"
272 STATIC_SUBAGENT_LIST="linux $STATIC_SUBAGENT_LIST"
e8636669
VK
273 ;;
274 FreeBSD)
275 SUBAGENT_DIRS="freebsd"
d0b5a098
VK
276 SUBAGENT_LIBS="../subagents/freebsd/libnsm_freebsd.la"
277 STATIC_SUBAGENT_LIST="freebsd $STATIC_SUBAGENT_LIST"
e8636669 278 ;;
992ba479
AK
279 OpenBSD)
280 SUBAGENT_DIRS="openbsd"
281 SUBAGENT_LIBS="../subagents/openbsd/libnsm_openbsd.la"
282 STATIC_SUBAGENT_LIST="openbsd $STATIC_SUBAGENT_LIST"
283 ;;
e8636669
VK
284 SunOS)
285 SUBAGENT_DIRS="sunos"
d0b5a098
VK
286 SUBAGENT_LIBS="../subagents/sunos/libnsm_sunos.la"
287 STATIC_SUBAGENT_LIST="sunos $STATIC_SUBAGENT_LIST"
288 ;;
289 AIX)
290 SUBAGENT_DIRS="aix"
291 SUBAGENT_LIBS="../subagents/aix/libnsm_aix.la"
292 STATIC_SUBAGENT_LIST="aix $STATIC_SUBAGENT_LIST"
e8636669
VK
293 ;;
294 *)
295 # unknown
296 ;;
297 esac
3a7ce527 298])
0c3c0c39 299
2b23dc1e
VK
300AC_ARG_WITH(ipso-agent,
301[AS_HELP_STRING(--with-ipso-agent,build statically linked IPSO agent)],
302[
303 BUILD_STATIC_AGENT="yes"
304 MODULES="$MODULES agent"
305 CFLAGS="$CFLAGS -D_STATIC_AGENT -D_IPSO"
306 CPPFLAGS="$CPPFLAGS -D_STATIC_AGENT -D_IPSO"
307 LDFLAGS="$LDFLAGS -all-static"
308 STATIC_SUBAGENT_LIST="ipso ping portcheck ups"
2a1e4b34 309 SUBAGENT_DIRS="ipso"
2b23dc1e
VK
310 SUBAGENT_LIBS="../subagents/ipso/libnsm_ipso.la ../subagents/ping/libnsm_ping.la ../subagents/portCheck/libnsm_portCheck.la ../subagents/ups/libnsm_ups.la"
311])
312
c688d2a7 313UNSTABLE_SUBAGENT_DIRS=""
59ec7d94 314AC_ARG_ENABLE(unstable,
0c78251f 315[AS_HELP_STRING(--enable-unstable,build experimental/unstable components)],
c688d2a7
AK
316[
317 UNSTABLE_SUBAGENT_DIRS="logscan"
318])
319
0c3c0c39
AK
320AC_ARG_WITH(dist,
321[AS_HELP_STRING(--with-dist,for maintainers only)],
c2eaebc6 322 DB_DRIVERS="mysql pgsql odbc mssql sqlite"
1d410d50 323 MODULES="libnxsnmp libnxsl server agent libnxmap libnxcl nxevent nxreport nxmibc console nxhttpd nxscript"
24b1570c 324 SUBAGENT_DIRS="linux freebsd openbsd sunos aix ipso hpux"
5b0c7d0d 325 NXCONFIG="nxconfig"
abc48356 326 TOP_LEVEL_MODULES="sql images"
3f2f9f2b 327 CONTRIB_MODULES="mibs backgrounds"
a22ba463 328 UNSTABLE_SUBAGENT_DIRS="logscan"
0c3c0c39
AK
329)
330
2654e540 331AC_ARG_WITH(nxhttpd,
9b648a2f 332[AS_HELP_STRING(--with-nxhttpd,build web interface)],
b97191d2 333[
987b646a 334 if test "x$withval" != "xno" ; then
1d410d50 335 MODULES="$MODULES libnxmap libnxcl nxhttpd"
987b646a
AK
336 BUILD_WEB_CLIENT="yes"
337 DYNAMIC_COMPONENTS="yes"
338 fi
b97191d2
AK
339])
340
6619a6b0 341AC_ARG_WITH(openssl,
a7442678
AK
342 [AS_HELP_STRING(--with-openssl,specify OpenSSL location)],
343 [
a7442678
AK
344 if test "x$withval" != "xno" ; then
345 if test "x$withval" != "x" && test "x$withval" != "xyes" ; then
346 LD_RUN_PATH="${withval}/lib${LD_RUN_PATH:+:}${LD_RUN_PATH}"
347 LDFLAGS="$LDFLAGS -L${withval}/lib"
348 CPPFLAGS="$CPPFLAGS -I${withval}/include"
349 else
2b23dc1e 350 LD_RUN_PATH="/usr/local/lib:/opt/openssl/lib:/usr/local/ssl/lib:${LD_RUN_PATH:+:}${LD_RUN_PATH}"
a7442678
AK
351 LDFLAGS="$LDFLAGS -L/usr/local/lib -L/opt/openssl/lib"
352 CPPFLAGS="$CPPFLAGS -I/usr/local/include -I/opt/openssl/include"
353 fi
ad6eb83b
AK
354 AC_CHECK_LIB(crypto, RSA_new,
355 [
356 AC_DEFINE(WITH_OPENSSL,,[with openssl])
357 AC_CHECK_LIB(crypto, EVP_aes_256_cbc,
358 [], [AC_DEFINE(NETXMS_NO_AES,,[desc])])
359 AC_CHECK_LIB(crypto, EVP_bf_cbc,
360 [], [AC_DEFINE(NETXMS_NO_BF,,[desc])])
361 AC_CHECK_LIB(crypto, EVP_idea_cbc,
362 [], [AC_DEFINE(NETXMS_NO_IDEA,,[desc])])
363 AC_CHECK_LIB(crypto, EVP_des_ede3_cbc,
364 [], [AC_DEFINE(NETXMS_NO_DES,,[desc])])
365 ],
a7442678
AK
366 [AC_MSG_ERROR(libcrypto is required for encryption support)])
367 fi
a7442678 368 ],
ad6eb83b
AK
369 [
370 AC_CHECK_LIB(crypto, RSA_new,
371 [
372 AC_DEFINE(WITH_OPENSSL,,[with openssl])
373 AC_CHECK_LIB(crypto, EVP_aes_256_cbc,
374 [], [AC_DEFINE(NETXMS_NO_AES,,[desc])])
375 AC_CHECK_LIB(crypto, EVP_bf_cbc,
376 [], [AC_DEFINE(NETXMS_NO_BF,,[desc])])
377 AC_CHECK_LIB(crypto, EVP_idea_cbc,
378 [], [AC_DEFINE(NETXMS_NO_IDEA,,[desc])])
379 AC_CHECK_LIB(crypto, EVP_des_ede3_cbc,
380 [], [AC_DEFINE(NETXMS_NO_DES,,[desc])])
381 ],
382 [AC_MSG_RESULT(libcrypto is required for encryption support)])
383 ])
6619a6b0 384
0c3c0c39
AK
385AC_SUBST(DB_DRIVERS)
386AC_SUBST(MODULES)
3a7ce527 387AC_SUBST(SUBAGENT_DIRS)
5b0c7d0d 388AC_SUBST(NXCONFIG)
abc48356
VK
389AC_SUBST(TOP_LEVEL_MODULES)
390AC_SUBST(CONTRIB_MODULES)
e8636669
VK
391AC_SUBST(STATIC_SUBAGENT_LIST)
392AC_SUBST(SUBAGENT_LIBS)
c2eaebc6 393AC_SUBST(BUILD_SERVER)
c688d2a7 394AC_SUBST(UNSTABLE_SUBAGENT_DIRS)
e8636669
VK
395
396# --------------------------------------------------------------------------
397# If --with-static-agent selected, other components cannot be selected
398# Select shared or static libraries depending on agent build type
399if test "x$BUILD_STATIC_AGENT" = "xyes" ; then
400 if test "x$DYNAMIC_COMPONENTS" = "xyes" ; then
401 AC_MSG_ERROR(Static agent and other components are mutally exclusive.)
402 fi
172b3b8e 403 enable_shared=no
e8636669 404else
172b3b8e 405 enable_static=no
e8636669
VK
406fi
407
408AC_LIBTOOL_DLOPEN
409AC_PROG_LIBTOOL
3a7ce527 410
d16cf8a5
AK
411# --------------------------------------------------------------------------
412# checks for libs.
413
414#AC_CHECK_LIB([socket], [socket])
415#AC_CHECK_LIB([nsl], [gethostbyname])
416
521d90e7 417AC_CHECK_LIB(socket, if_nameindex)
87bb64a7 418AC_CHECK_LIB(dl, dlopen)
1b3c0ef0 419AC_CHECK_LIB(kstat, kstat_open)
d16cf8a5 420
e0760102
VK
421if test "x$BUILD_SERVER" = "xyes" ; then
422 AC_CHECK_LIB(termcap, tgetstr, [], [AC_CHECK_LIB(ncurses, tgetstr, [], AC_CHECK_LIB(curses, tgetstr))])
423 AC_CHECK_LIB(readline, readline)
424fi
425
08ffa53e 426# --------------------------------------------------------------------------
d16cf8a5
AK
427# checks for headers.
428
429AC_HEADER_STDC
430AC_HEADER_STAT
431AC_HEADER_TIME
6b42b6f1 432AC_CHECK_HEADERS([stdarg.h])
ade50e8b 433AC_CHECK_HEADERS([sys/int_types.h sys/time.h])
ca6ad6bb 434AC_CHECK_HEADERS([arpa/inet.h netdb.h netinet/in.h net/nh.h sys/socket.h])
70fed300 435AC_CHECK_HEADERS([fcntl.h dirent.h sys/ioctl.h sys/sockio.h poll.h termios.h])
ade50e8b
AK
436AC_CHECK_HEADERS([net/if.h net/if_arp.h net/if_dl.h],,,
437[[#ifdef HAVE_SYS_TYPES_H
438# include <sys/types.h>
439#endif
440#ifdef HAVE_SYS_TIME_H
441# include <sys/time.h>
442#endif
443#ifdef HAVE_SYS_SOCKET_H
444# include <sys/socket.h>
445#endif
446]])
14ab1131 447AC_CHECK_HEADERS([readline/readline.h])
f52be742 448AC_CHECK_HEADERS([byteswap.h])
eca0b061 449AC_CHECK_HEADERS([sys/mman.h])
31a11006 450AC_CHECK_HEADERS([sys/utsname.h])
d16cf8a5 451
d16cf8a5
AK
452# --------------------------------------------------------------------------
453# types
454AC_CHECK_SIZEOF(short)
455AC_CHECK_SIZEOF(int)
456AC_CHECK_SIZEOF(long)
457AC_CHECK_SIZEOF(long long)
458
459AC_TYPE_PID_T
460AC_TYPE_SIGNAL
461AC_TYPE_SIZE_T
462AC_STRUCT_TIMEZONE
463
521d90e7 464AC_CHECK_TYPES([int64_t, uint64_t, u_int64_t])
4c779d83
VK
465AC_CHECK_TYPES([off_t, socklen_t],,,[
466#if HAVE_SYS_TYPES_H
467#include <sys/types.h>
468#endif
469#if HAVE_SYS_SOCKET_H
470#include <sys/socket.h>
471#endif
472])
521d90e7 473
d16cf8a5
AK
474# --------------------------------------------------------------------------
475# C/CPP caps
476
477AC_PROG_GCC_TRADITIONAL
478AC_C_CONST
479AC_C_BIGENDIAN
480
481# --------------------------------------------------------------------------
f52be742
VK
482# macros
483
ca6ad6bb
VK
484AC_CHECK_DECLS([__bswap_32, __bswap_64, htonll, ntohll],,,[
485#ifdef HAVE_SYS_TYPES_H
486# include <sys/types.h>
487#endif
f52be742
VK
488#if HAVE_BYTESWAP_H
489#include <byteswap.h>
490#endif
ca6ad6bb
VK
491#if HAVE_NETINET_IN_H
492#include <netinet/in.h>
493#endif
494#if HAVE_NET_NH_H
495#include <net/nh.h>
496#endif
f52be742 497])
85303064
VK
498AC_CHECK_DECLS([SIOCGIFADDR, SIOCGIFNETMASK, SIOCGIFHWADDR],,,[
499#if HAVE_SYS_IOCTL_H
500#include <sys/ioctl.h>
501#endif
502#if HAVE_SYS_SOCKIO_H
503#include <sys/sockio.h>
504#endif
505])
f52be742
VK
506
507# --------------------------------------------------------------------------
e25cadc9
VK
508# AIX specific
509
ca6ad6bb 510AC_CHECK_HEADERS([procinfo.h],,,[[ ]])
e25cadc9 511AC_CHECK_DECLS([getkerninfo])
ca6ad6bb
VK
512AC_CHECK_FUNCS([getprocs64],,,[
513#if HAVE_PROCINFO_H
514#include <procinfo.h>
515#endif
516])
e25cadc9
VK
517
518# --------------------------------------------------------------------------
d16cf8a5
AK
519# library functions
520
521AC_FUNC_ERROR_AT_LINE
abc48356
VK
522#AC_FUNC_MALLOC
523#AC_FUNC_REALLOC
d16cf8a5 524AC_FUNC_MEMCMP
d16cf8a5
AK
525AC_FUNC_SELECT_ARGTYPES
526AC_FUNC_STRFTIME
527AC_FUNC_STRTOD
528AC_FUNC_VPRINTF
529
b50f1100
VK
530AC_CHECK_FUNCS([gettimeofday memmove memset strchr strcspn strdup strerror])
531AC_CHECK_FUNCS([strrchr strtol strtoul strtoll strtoull])
467e30e1 532AC_CHECK_FUNCS([if_nametoindex daemon mmap strerror_r scandir uname poll])
d16cf8a5 533
2a1e4b34 534AC_CHECK_HEADERS([sys/sysctl.h vm/vm_param.h])
f91feddc 535AC_CHECK_FUNCS([sysctlbyname sysctlnametomib])
2a1e4b34 536
70fed300
AK
537AC_CHECK_FUNCS([tcgetattr tcsetattr cfsetospeed cfsetispeed])
538
d16cf8a5
AK
539# sockets/resolver (probably for solaris)
540AC_CHECK_FUNC(connect, , [AC_CHECK_LIB(socket, connect)])
541AC_CHECK_FUNC(gethostbyname, , [AC_CHECK_LIB(resolv, gethostbyname)])
542AC_CHECK_FUNC(gethostbyname, , [AC_CHECK_LIB(nsl, gethostbyname)])
543
544if test "x$ac_cv_lib_nsl_gethostbyname" != "xyes" && test "x$ac_cv_func_gethostbyname" != "xyes" ; then
545 AC_CHECK_FUNC(gethostbyname, , [AC_CHECK_LIB(socket, gethostbyname)])
546fi
547
548if test "$ac_cv_lib_nsl_gethostbyname" = "$ac_cv_func_gethostbyname" ; then
549 AC_MSG_CHECKING([if we can include libnsl + libsocket])
550 LIBS="-lnsl -lsocket $LIBS"
551 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[(void) gethostbyname]])],[my_ac_link_result=yes],[my_ac_link_result=no ])
552 if test "$my_ac_link_result" = "no" ; then
553 AC_MSG_RESULT([failure])
554 AC_MSG_ERROR([unable to use gethostbyname()])
555 else
556 AC_MSG_RESULT([success])
557 fi
558fi
559
3d9b275c 560#ALK: CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" PTHREAD_LIBS="-pthread",
d16cf8a5
AK
561# posix threads
562AC_CHECK_HEADER(pthread.h,,AC_MSG_ERROR([*** POSIX thread support not installed - please install first ***]))
563
564PTHREAD_LIBS=error
565AC_MSG_CHECKING(for old style FreeBSD -pthread flag)
566AC_EGREP_CPP(yes,
a910e139 567 [#if defined(__FreeBSD_cc_version) || defined(__OpenBSD__)
d16cf8a5
AK
568 yes
569 #endif
570 ], AC_MSG_RESULT(yes)
6693a1d0 571 CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" PTHREAD_LIBS="-pthread",
d16cf8a5
AK
572 AC_MSG_RESULT(no))
573if test "x$PTHREAD_LIBS" = xerror; then
574 AC_CHECK_LIB(pthread, pthread_attr_init,
6693a1d0 575 PTHREAD_LIBS="-lpthread")
d16cf8a5
AK
576fi
577if test "x$PTHREAD_LIBS" = xerror; then
578 AC_CHECK_LIB(pthreads, pthread_attr_init,
6693a1d0 579 PTHREAD_LIBS="-lpthreads")
d16cf8a5
AK
580fi
581if test "x$PTHREAD_LIBS" = xerror; then
6693a1d0
AK
582 AC_CHECK_FUNC(pthread_attr_init,
583 PTHREAD_LIBS="")
d16cf8a5 584fi
b9e22217
AK
585# HP-UX
586if test "x$PTHREAD_LIBS" = xerror; then
8be1f708
AK
587 AC_CHECK_LIB(pthread, __pthread_attr_init_system,
588 PTHREAD_LIBS="-lpthread")
b9e22217 589fi
d16cf8a5
AK
590if test "x$PTHREAD_LIBS" = xerror; then
591 AC_MSG_ERROR(*** Unable to locate working posix thread library ***)
592fi
a0537937 593LDFLAGS="$LDFLAGS $PTHREAD_LIBS"
d16cf8a5
AK
594AC_SUBST(PTHREAD_LIBS)
595
696fc54f 596# Extensions to posix threads
6cd41ceb
VK
597AC_CHECK_HEADERS([pthread_np.h],,,[
598#include <pthread.h>
599])
696fc54f
VK
600AC_CHECK_FUNCS([pthread_cond_reltimedwait_np])
601
a0537937
VK
602# Check for recursive mutexes
603AC_CHECK_FUNCS([pthread_mutexattr_settype pthread_mutexattr_setkind_np])
6cd41ceb 604AC_CHECK_DECLS([PTHREAD_MUTEX_RECURSIVE, PTHREAD_MUTEX_RECURSIVE_NP, MUTEX_TYPE_COUNTING_FAST],,,[
a0537937 605#include <pthread.h>
6cd41ceb
VK
606#if HAVE_PTHREAD_NP_H
607#include <pthread_np.h>
608#endif
a0537937
VK
609])
610
7e56bf2e
VK
611# Check for read/write locks
612# On Linux, rwlock functions declared always, but pthread_rwlock_t may need
613# additional defines
614AC_CHECK_FUNCS([pthread_rwlock_init pthread_rwlock_timedrdlock pthread_rwlock_timedwrlock])
615if test "$ac_cv_func_pthread_rwlock_init" = "yes"; then
616 AC_CACHE_CHECK([for pthread_rwlock_t], ac_cv_struct_pthread_rw,
617 [AC_TRY_COMPILE([#include <sys/types.h>
618 #include <pthread.h>],
619 [pthread_rwlock_t rwlock=PTHREAD_RWLOCK_INITIALIZER;],
620 ac_cv_struct_pthread_rw=yes, [
621 AC_TRY_COMPILE([#define _XOPEN_SOURCE 500
622 #include <sys/types.h>
623 #include <pthread.h>],
624 [pthread_rwlock_t rwlock=PTHREAD_RWLOCK_INITIALIZER;],
625 ac_cv_struct_pthread_rw=yes, ac_cv_struct_pthread_rw=no)
626 if test "$ac_cv_struct_pthread_rw" = "yes"; then
627 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500"
628 fi
629 ])])
630 if test "$ac_cv_struct_pthread_rw" = "yes"; then
df7156b3 631 AC_DEFINE(HAVE_PTHREAD_RWLOCK, 1, Define to 1 if you have working pthread read/write locks)
7e56bf2e
VK
632 fi
633fi
634
3e39fcde
VK
635# --------------------------------------------------------------------------
636# check for UNICODE stuff
637
93571e7f 638AC_CHECK_HEADERS([wchar.h iconv.h])
3e39fcde 639AC_CHECK_SIZEOF(wchar_t)
24b1570c
AK
640AC_CHECK_LIB(iconv, iconv, ac_found_iconv=yes)
641AC_CHECK_FUNCS(iconv, ac_found_iconv=yes, ac_found_iconv=no)
93571e7f
VK
642
643AC_MSG_CHECKING(whether iconv supports UCS-2-INTERNAL)
644AC_RUN_IFELSE(
645 [AC_LANG_PROGRAM([
646#if HAVE_ICONV_H
647#include <iconv.h>
648#endif
649 ], [
650 return iconv_open("UTF-8","UCS-2-INTERNAL")==(iconv_t)(-1);
651 ])
652 ],
653 [ AC_MSG_RESULT(yes)
654 AC_DEFINE(HAVE_ICONV_UCS_2_INTERNAL, 1, Define to 1 if iconv supports UCS-2-INTERNAL)
655 valid_ucs2_code="UCS-2-INTERNAL"
656 ],
657 [ AC_MSG_RESULT(no) ],
658 [ AC_MSG_RESULT(no) ]
659)
660
661AC_MSG_CHECKING(whether iconv supports UCS-2)
662AC_RUN_IFELSE(
663 [AC_LANG_PROGRAM([
664#if HAVE_ICONV_H
665#include <iconv.h>
666#endif
667 ], [
668 return iconv_open("UTF-8","UCS-2")==(iconv_t)(-1);
669 ])
670 ],
671 [ AC_MSG_RESULT(yes)
672 AC_DEFINE(HAVE_ICONV_UCS_2, 1, Define to 1 if iconv supports UCS-2)
673 valid_ucs2_code="UCS-2"
674 ],
675 [ AC_MSG_RESULT(no) ],
676 [ AC_MSG_RESULT(yes)
677 AC_DEFINE(HAVE_ICONV_UCS_2, 1, Define to 1 if iconv supports UCS-2)
678 ]
679)
680
681AC_MSG_CHECKING(whether iconv supports UCS2)
682AC_RUN_IFELSE(
683 [AC_LANG_PROGRAM([
684#if HAVE_ICONV_H
685#include <iconv.h>
686#endif
687 ], [
688 return iconv_open("UTF-8","UCS2")==(iconv_t)(-1);
689 ])
690 ],
691 [ AC_MSG_RESULT(yes)
692 AC_DEFINE(HAVE_ICONV_UCS2, 1, Define to 1 if iconv supports UCS2)
693 valid_ucs2_code="UCS2"
694 ],
695 [ AC_MSG_RESULT(no) ],
696 [ AC_MSG_RESULT(no) ]
697)
698
699AC_MSG_CHECKING(whether iconv supports //IGNORE)
700AC_RUN_IFELSE(
701 [AC_LANG_PROGRAM([
702#if HAVE_ICONV_H
703#include <iconv.h>
704#endif
705 ], [
706 return iconv_open("UTF-8//IGNORE","$valid_ucs2_code")==(iconv_t)(-1);
707 ])
708 ],
709 [ AC_MSG_RESULT(yes)
710 AC_DEFINE(HAVE_ICONV_IGNORE, 1, Define to 1 if iconv supports //IGNORE option)
711 ],
712 [ AC_MSG_RESULT(no) ],
713 [ AC_MSG_RESULT(no) ]
714)
3e39fcde 715
19619a35
AK
716# taken from ZSH's configure
717# Check if iconv uses const in prototype declaration
24b1570c 718if test "x$ac_found_iconv" = "xyes"; then
19619a35
AK
719 AC_CACHE_CHECK(for iconv declaration, ac_cv_iconv_const,
720 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdlib.h>
721 #include <iconv.h>]],
722 [[#ifdef __cplusplus
723 "C"
724 #endif
725 #if defined(__STDC__) || defined(__cplusplus)
726 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
727 #else
728 size_t iconv();
729 #endif]])],
730 [ac_cv_iconv_const=],
731 [ac_cv_iconv_const=const])])
732 AC_DEFINE_UNQUOTED([ICONV_CONST], $ac_cv_iconv_const,
733 [Define as const if the declaration of iconv() needs const.])
734fi
735
736
737
93571e7f 738if test $ac_cv_sizeof_wchar_t -eq 2; then
3e39fcde
VK
739 AC_DEFINE(HAVE_USEABLE_WCHAR_T, 1, Define to 1 if you have useable wchar_t)
740fi
741
82fa7c5d 742# misc
f8a000b8 743CPPFLAGS="$CPPFLAGS -DDATADIR=\\\"\${pkgdatadir}\\\" -DLIBDIR=\\\"\${libdir}\\\""
82fa7c5d 744
d16cf8a5
AK
745# --------------------------------------------------------------------------
746
747# shared libs versions
748#
749# versioning scheme: current:revision:age
750#
751# current
752# The number of the current interface exported by the library. A current
753# value of `0', means that you are calling the interface exported by this
754# library interface 0.
755#
756# revision
757# The implementation number of the most recent interface exported by this
758# library. In this case, a revision value of `0' means that this is the
759# first implementation of the interface.
760# If the next release of this library exports the same interface, but has a
761# different implementation (perhaps some bugs have been fixed), the revision
762# number will be higher, but current number will be the same. In that case,
763# when given a choice, the library with the highest revision will always
764# be used by the runtime loader.
765#
766# age
767# The number of previous additional interfaces supported by this library.
768# If age were `2', then this library can be linked into executables which
769# were built with a release of this library that exported the current
770# interface number, current, or any of the previous two interfaces.
771# By definition age must be less than or equal to current. At the outset,
772# only the first ever interface is implemented, so age can only be `0'.
773#
774#
775#
776
d8f2e39b
VK
777LIBNETXMS_LIBRARY_VERSION=0:2:0
778LIBNXCSCP_LIBRARY_VERSION=0:2:0
1d410d50
VK
779LIBNXMAP_LIBRARY_VERSION=0:2:0
780LIBNXCL_LIBRARY_VERSION=0:2:0
d8f2e39b
VK
781LIBNXSNMP_LIBRARY_VERSION=0:2:0
782LIBNXSRV_LIBRARY_VERSION=0:2:0
783LIBNXCORE_LIBRARY_VERSION=0:2:0
784DBDRV_LIBRARY_VERSION=0:2:0
785SMSDRV_LIBRARY_VERSION=0:2:0
c002b04a 786LIBNXSL_LIBRARY_VERSION=0:2:0
d16cf8a5 787AC_SUBST(LIBNETXMS_LIBRARY_VERSION)
3e7f0791 788AC_SUBST(LIBNXCSCP_LIBRARY_VERSION)
1d410d50
VK
789AC_SUBST(LIBNXMAP_LIBRARY_VERSION)
790AC_SUBST(LIBNXCL_LIBRARY_VERSION)
d853cd74 791AC_SUBST(LIBNXSNMP_LIBRARY_VERSION)
aa3b26fd 792AC_SUBST(LIBNXSRV_LIBRARY_VERSION)
17a48052 793AC_SUBST(LIBNXCORE_LIBRARY_VERSION)
b900a78b 794AC_SUBST(DBDRV_LIBRARY_VERSION)
d8f2e39b 795AC_SUBST(SMSDRV_LIBRARY_VERSION)
c002b04a 796AC_SUBST(LIBNXSL_LIBRARY_VERSION)
d16cf8a5
AK
797
798# --------------------------------------------------------------------------
799
800AC_CONFIG_FILES([
d16cf8a5 801 README
0c3c0c39
AK
802 Makefile
803 contrib/Makefile
0c3c0c39
AK
804 contrib/dct/Makefile
805 contrib/startup/Makefile
daaefaaf 806 contrib/startup/gentoo/Makefile
0c3c0c39 807 contrib/startup/redhat/Makefile
82fa7c5d 808 contrib/mibs/Makefile
3f2f9f2b 809 contrib/backgrounds/Makefile
0c3c0c39 810 doc/Makefile
a48203d2
VK
811 doc/internal/Makefile
812 doc/manuals/Makefile
813 doc/misc/Makefile
0c3c0c39
AK
814 images/Makefile
815 include/Makefile
816 m4/Makefile
817 netware/Makefile
818 sql/Makefile
0c3c0c39
AK
819 src/Makefile
820 src/libnetxms/Makefile
821 src/libnxcscp/Makefile
d853cd74 822 src/libnxsnmp/Makefile
0c3c0c39 823 src/libnxcl/Makefile
c002b04a 824 src/libnxsl/Makefile
1d410d50 825 src/libnxmap/Makefile
1b1edd49
VK
826 src/install/Makefile
827 src/install/windows/Makefile
0c3c0c39 828 src/console/Makefile
8c7d057b
VK
829 src/console/nxuilib/Makefile
830 src/console/nxuilib/res/Makefile
f7d8c3b2 831 src/console/nxuilib/sounds/Makefile
e4d08190 832 src/console/nxlexer/Makefile
0c3c0c39
AK
833 src/console/win32/Makefile
834 src/console/win32/icons/Makefile
835 src/console/win32/res/Makefile
836 src/console/win32starter/Makefile
672441ac 837 src/console/nxav/Makefile
2b463d08 838 src/console/nxav/res/Makefile
52996299
VK
839 src/console/nxnotify/Makefile
840 src/console/nxnotify/res/Makefile
672441ac 841 src/console/cmdline/Makefile
2b463d08
VK
842 src/console/PocketPC/Makefile
843 src/console/PocketPC/res/Makefile
0c3c0c39 844 src/nxevent/Makefile
1e8eed7a 845 src/nxreport/Makefile
148f47cf 846 src/nxmibc/Makefile
f519aa3e 847 src/nxscript/Makefile
0c3c0c39
AK
848 src/server/Makefile
849 src/server/core/Makefile
a551fe4d 850 src/server/netxmsd/Makefile
0c3c0c39
AK
851 src/server/dbdrv/Makefile
852 src/server/dbdrv/odbc/Makefile
853 src/server/dbdrv/mssql/Makefile
854 src/server/dbdrv/mysql/Makefile
855 src/server/dbdrv/pgsql/Makefile
9486b324 856 src/server/dbdrv/sqlite/Makefile
d8f2e39b
VK
857 src/server/smsdrv/Makefile
858 src/server/smsdrv/generic/Makefile
0c3c0c39
AK
859 src/server/tools/Makefile
860 src/server/tools/nxget/Makefile
861 src/server/tools/nxaction/Makefile
862 src/server/tools/nxadm/Makefile
5b0c7d0d
VK
863 src/server/tools/nxconfig/Makefile
864 src/server/tools/nxconfig/res/Makefile
f90d7fc5 865 src/server/tools/nxdbmgr/Makefile
d853cd74 866 src/server/tools/nxsnmpget/Makefile
734c670f 867 src/server/tools/nxsnmpwalk/Makefile
665b4ccf 868 src/server/tools/nxsnmpset/Makefile
d24fdaf4 869 src/server/tools/nxupload/Makefile
0c3c0c39
AK
870 src/server/libnxsrv/Makefile
871 src/agent/Makefile
872 src/agent/core/Makefile
5795bf90 873 src/agent/install/Makefile
0c3c0c39
AK
874 src/agent/subagents/Makefile
875 src/agent/subagents/linux/Makefile
876 src/agent/subagents/sunos/Makefile
d0b5a098 877 src/agent/subagents/aix/Makefile
9bdf494f 878 src/agent/subagents/hpux/Makefile
0c3c0c39
AK
879 src/agent/subagents/skeleton/Makefile
880 src/agent/subagents/freebsd/Makefile
992ba479 881 src/agent/subagents/openbsd/Makefile
2b23dc1e 882 src/agent/subagents/ipso/Makefile
0c3c0c39 883 src/agent/subagents/netware/Makefile
1bc607cc
VK
884 src/agent/subagents/winnt/Makefile
885 src/agent/subagents/win9x/Makefile
0c3c0c39 886 src/agent/subagents/winperf/Makefile
93f15c2a 887 src/agent/subagents/portCheck/Makefile
b36a6eb9 888 src/agent/subagents/logscan/Makefile
abc48356 889 src/agent/subagents/ping/Makefile
2f06a66e 890 src/agent/subagents/ups/Makefile
9b648a2f
AK
891 src/nxhttpd/Makefile
892 src/nxhttpd/static/Makefile
2654e540 893 src/nxhttpd/static/images/Makefile
0c3c0c39 894 tools/Makefile
d16cf8a5
AK
895])
896
12249937
VK
897AC_OUTPUT
898
6f926182
AK
899#echo "Updating libtool-1"
900#sed 's/-lc_r/-lc_rXXX/' < ./libtool > libtool.new && mv libtool.new libtool && chmod +x ./libtool
5cecf50e
AK
901
902echo "Updating libtool-2"
903sed 's,$SED -e "/${host}-//g",$SED -e "s/${host}-//g",g' < ./libtool > libtool.new && mv libtool.new libtool && chmod +x ./libtool
904
6f926182
AK
905#if test ! "x$BUILD_SERVER" = "xyes" ; then
906# echo "Updating libtool-3"
907# $PERL tools/patch_libtool.pl <libtool >libtool.new
908# mv libtool.new libtool
909# chmod 755 libtool
910#fi
a7442678
AK
911
912
913
914###########################
915#
916echo
917echo
918echo
919echo '---------------------------------------------------------------------'
920echo ' Configure results'
921echo '---------------------------------------------------------------------'
922echo
923 echo "Prefix : ${prefix}"
924if test "x${BUILD_SERVER}" = "xyes"; then
925 echo "Build Server : YES"
926else
927 echo "Build Server : NO"
928fi
929if test "x${ac_cv_lib_crypto_RSA_new}" = "xyes"; then
930 echo "Encryption enabled : YES"
931else
932 echo "Encryption enabled : NO"
933fi
934if test "x${DB_DRIVERS}" != "x"; then
935 echo "Build DB-Drivers : ${DB_DRIVERS}"
936else
937 echo "Build DB-Drivers : NO"
938fi
939if test "x${BUILD_CLIENT}" = "xyes"; then
940 echo "Build Clients : YES"
941else
942 echo "Build Clients : NO"
943fi
2654e540
AK
944if test "x${BUILD_WEB_CLIENT}" = "xyes"; then
945 echo "Build Web Interface : YES"
946else
c2503081 947 echo "Build Web Interface : NO"
2654e540 948fi
a7442678
AK
949if test "x${BUILD_AGENT}" = "xyes"; then
950 echo "Build Agent : YES"
951 echo "Subagents list : ${SUBAGENT_DIRS}"
952else
953 echo "Build Agent : NO"
954fi
e8636669
VK
955if test "x${BUILD_STATIC_AGENT}" = "xyes"; then
956 echo "Build Static Agent : YES"
957 echo "Subagents list : ${STATIC_SUBAGENT_LIST}"
958else
959 echo "Build Static Agent : NO"
960fi