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