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