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