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