This repository has been archived by the owner on Jan 7, 2020. It is now read-only.
forked from centralchat/omega-services
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
596 lines (492 loc) · 18 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
dnl configure.ac - autoconf configuration file
AC_PREREQ(2.61)
AC_COPYRIGHT([$Id: configure.ac 2357 2012-02-11 23:49:35Z twitch $])
AC_INIT([Omega],[Sabre])
AC_CONFIG_HEADER(include/setup.h)
AC_PREFIX_DEFAULT(`echo -n $HOME/omega`)
AC_GNU_SOURCE
AC_PROG_CC
AC_LANG(C)
sinclude([aclocal.m4])
OSNAME=`uname -s`
PWD=`pwd`
AC_DEFINE_UNQUOTED(CONFIGURE_ARGS, "$ac_configure_args", [Arguments passed to configure])
dnl This is an evil hack for detecting some libraries that on FreeBSD reside in /usr/local
case "$OSNAME" in
FreeBSD*)
LDFLAGS="$LDFLAGS -L/usr/local/lib"
CFLAGS="$CFLAGS -I/usr/local/include"
;;
esac
AC_ISC_POSIX
AC_C_INLINE
AC_PROG_GCC_TRADITIONAL
AC_PROG_MAKE_SET
AC_PROG_INSTALL
dnl AC_HEADER_STC
AC_CHECK_HEADERS([errno.h stddef.h sys/event.h sys/resource.h])
AC_SEARCH_LIBS(socket, socket, , [AC_MSG_ERROR([You have no socket()! Aborting.])])
AC_SEARCH_LIBS(dlopen, dl, ,)
AC_SEARCH_LIBS(backtrace, execinfo, ,)
AC_CHECK_FUNCS([strlcpy strlcat getaddrinfo strdup setproctitle backtrace snprintf])
AC_PATH_PROG(RM, rm)
AC_PATH_PROG(CP, cp)
AC_PATH_PROG(MV, mv)
dnl These checks are for our modules, if we are forcing modules we need to make sure
dnl we error when the needed options are unavailable
hold_ldflags=$LDFLAGS
AC_MSG_CHECKING(for the ld -export-dynamic flag)
LDFLAGS="${LDFLAGS} -Wl,-export-dynamic -Werror"
dnl AC_LINK_IFELSE(AC_LANG_PROGRAM([],[int i;]), found=yes, found=no)
AC_LINK_IFELSE([AC_LANG_SOURCE([int main() { int i; }])], found=yes, found=no)
LDFLAGS=$hold_ldflags
AC_MSG_RESULT($found)
if test "$found" = yes; then
LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
fi
dnl This checks for the compiler option to produce PIC
AC_MSG_CHECKING(for compiler option to produce PIC)
if test "$ac_cv_c_compiler_gnu" = "yes"; then
AC_MSG_RESULT(gcc: -fPIC -DPIC -shared)
PICFLAGS="-fPIC -DPIC -shared"
CFLAGS="$CFLAGS -fPIC -DPIC"
else
AC_MSG_RESULT(no)
fi
dnl Debug-related options
dnl =====================
AC_ARG_ENABLE(assert,
AC_HELP_STRING([--enable-assert],[Enable assert(). Choose between soft(warnings) and hard(aborts the daemon)]),
[assert=$enableval], [assert=no])
if test "$assert" = "no"; then
AC_DEFINE(NDEBUG, 1, [Define this to disable debugging support.])
elif test "$assert" = "soft"; then
AC_DEFINE(SOFT_ASSERT, 1, [Define this to enable soft asserts.])
AC_DEFINE(NDEBUG, 1, [Define this to disable debugging support.])
elif test "$assert" = "yes"; then
assert = "hard";
fi
dnl AC_ARG_ENABLE(efence,
dnl AC_HELP_STRING([--enable-efence],[Enable Electric Fence debugging]),
dnl [efence=$enableval], [efence=no])
dnl if test "$efence" = "yes"; then
dnl LIBS="$LIBS -lefence"
dnl fi
AC_ARG_ENABLE(kqueue, AC_HELP_STRING([--enable-kqueue],[Force kqueue() usage.]),
[use_kqueue=$enableval],[use_kqueue=no])
if test ! "x$use_kqueue" = "xno"; then
AC_CHECK_FUNCS(kevent, [havekqueue=yes], [havekqueue=no])
AC_DEFINE(USE_KQUEUE, 1, [Use kqueue() instead of the standard select()])
fi
dnl Threading support
ac_cv_threads="yes"
ac_cv_threads_output="enabled"
AC_ARG_ENABLE(threads,
AC_HELP_STRING([--disable-threads],[Disable threading support.]),
[ac_cv_threads="$enableval"],)
AC_MSG_CHECKING(wether to enable dmalloc)
use_dmalloc="no"
ac_cv_dmalloc="disabled"
AC_ARG_ENABLE(dmalloc,
AC_HELP_STRING([--enable-dmalloc],[Enable Dmalloc - Malloc Debugging]),
[use_dmalloc=yes], [use_dmalloc=no])
if test "x$use_dmalloc" = "xyes"; then
if test "x$ac_cv_threads" = "xyes"; then
AC_SEARCH_LIBS(dmalloc_shutdown, dmallocth, ac_cv_dmalloc_threadedlib="yes",)
if test "x$ac_cv_dmalloc_threadedlib" = "xyes"; then
ac_cv_dmalloc="enabled"
AC_DEFINE(USE_DMALLOC, 1, [Using debugging malloc])
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT([no, threaded dmalloc library missing])
ac_cv_dmalloc="disabled, missing threaded dmalloc library"
fi
else
AC_SEARCH_LIBS(dmalloc_shutdown, dmalloc, ac_cv_dmalloc="enabled",)
ac_cv_dmalloc="enabled"
if test "x$ac_cv_dmalloc" = "xenabled"; then
AC_DEFINE(USE_DMALLOC, 1, [Using debugging malloc])
AC_MSG_RESULT(yes)
fi
fi
fi
ac_cv_debug="disabled"
use_debug="no"
AC_ARG_ENABLE(debug,
AC_HELP_STRING([--enable-debug],[Enable core debugging mode.]),
[use_debug=yes], [use_debug=no])
if test "x$use_debug" = "xyes"; then
AC_MSG_CHECKING(if we are to enable debug commands)
AC_DEFINE(DEBUG_MODE, 1, [Using debug commands])
AC_MSG_RESULT(ok)
ac_cv_debug="enabled"
fi
with_omegastats="yes"
AC_ARG_ENABLE(omegastats,
AC_HELP_STRING([--enable-omegastats],[Enable Omega Statistical Reporting]),
[with_omegastats=$enableval],)
dnl libevent support
ac_cv_libevent="no"
ac_cv_libevent_output="disabled"
AC_ARG_ENABLE(libevent,
AC_HELP_STRING([--enable-libevent[=DIR]],[Enable libevent support (DIR optional).]),
[ac_cv_libevent=$enableval],)
dnl **********************************
dnl Check for --with-confdir
dnl **********************************
AC_MSG_CHECKING([whether to modify confdir])
AC_ARG_WITH(confdir,
AC_HELP_STRING([--with-confdir=DIR],
[Directory to install config files.]),
[ confdir=`echo $withval | sed 's/\/$//'`
AC_MSG_RESULT(yes)
AC_DEFINE_DIR(ETC_DIR, confdir, [Prefix where config files are installed.])
AC_SUBST_DIR([confdir]) ],
[ confdir='${prefix}/etc'
AC_MSG_RESULT(no)
AC_DEFINE_DIR(ETC_DIR, confdir, [Prefix where config files are installed.])
AC_SUBST_DIR([confdir])]
)
dnl **********************************************************************
dnl Check for --with-logdir
dnl **********************************************************************
AC_MSG_CHECKING([whether to modify logdir])
AC_ARG_WITH(logdir,
AC_HELP_STRING([--with-logdir=DIR],
[Directory where to write logfiles.]),
[ logdir=`echo $withval | sed 's/\/$//'`
AC_MSG_RESULT(yes)
AC_DEFINE_DIR(LOG_DIR, logdir, [Prefix where to write logfiles.])
AC_SUBST_DIR([logdir]) ],
[ logdir='${prefix}/logs'
AC_MSG_RESULT(no)
AC_DEFINE_DIR(LOG_DIR, logdir, [Prefix where to write logfiles.])
AC_SUBST_DIR([logdir])]
)
dnl **********************************************************************
dnl Check for --with-moduledir
dnl **********************************************************************
AC_MSG_CHECKING([whether to modify moduledir])
AC_ARG_WITH(moduledir,
AC_HELP_STRING([--with-moduledir=DIR],
[Directory to install modules.]),
[ moduledir=`echo $withval | sed 's/\/$//'`
AC_MSG_RESULT(yes)
AC_DEFINE_DIR(MODULE_DIR, moduledir, [Prefix where modules are installed.])
AC_SUBST_DIR([moduledir]) ],
[ moduledir='${prefix}/modules'
AC_MSG_RESULT(no)
AC_DEFINE_DIR(MODULE_DIR, moduledir, [Prefix where modules are installed.])
AC_SUBST_DIR([moduledir])]
)
dnl *****************************************************************
dnl * Check for --with-coredir
dnl ****************************************************************
AC_MSG_CHECKING([whether to modify coredir])
AC_ARG_WITH(coredir,
AC_HELP_STRING([--with-coredir=DIR],
[Directory to install core modules.]),
[ coredir=`echo $withval | sed 's/\/$//'`
AC_MSG_RESULT(yes)
AC_DEFINE_DIR(CORE_DIR, coredir, [Prefix where core modules are installed.])
AC_SUBST_DIR([coredir]) ],
[ coredir='${prefix}/modules/core'
AC_MSG_RESULT(no)
AC_DEFINE_DIR(CORE_DIR, coredir, [Prefix where core modules are installed.])
AC_SUBST_DIR([coredir])]
)
dnl *****************************************************************
dnl * Check for --with-gmoddir
dnl ****************************************************************
AC_MSG_CHECKING([whether to modify gmoddir])
AC_ARG_WITH(gmoddir,
AC_HELP_STRING([--with-gmoddir=DIR],
[Directory to install core modules.]),
[ gmoddir=`echo $withval | sed 's/\/$//'`
AC_MSG_RESULT(yes)
AC_DEFINE_DIR(GMOD_DIR, gmoddir, [Prefix where guardian modules are installed.])
AC_SUBST_DIR([gmoddir]) ],
[ gmoddir='${prefix}/modules/guardian'
AC_MSG_RESULT(no)
AC_DEFINE_DIR(GMOD_DIR, gmoddir, [Prefix where guardian modules are installed.])
AC_SUBST_DIR([gmoddir])]
)
dnl *****************************************************************
dnl * Check for --with-dbdir
dnl *****************************************************************
AC_MSG_CHECKING([wether to modify dbdir])
AC_ARG_WITH(dbdir,
AC_HELP_STRING([--with-dbdir=DIR],
[Directory to store databases]),
[ dbdir=`echo $withval | sed 's/\/$//'`
AC_MSG_RESULT(yes)
AC_DEFINE_DIR(DBDIR, dbdir, [Prefix where databases are saved.])
AC_SUBST_DIR([dbdir]) ],
[ dbdir='${prefix}/var/db'
AC_MSG_RESULT(no)
AC_DEFINE_DIR(DBDIR, dbdir, [Prefix where databases are saved.])
AC_SUBST_DIR([dbdir])]
)
dnl OpenSSL support
ac_cv_openssl="disabled"
AC_MSG_CHECKING(for OpenSSL)
AC_ARG_ENABLE(openssl,
[AC_HELP_STRING([--enable-openssl[=DIR]],[Enable OpenSSL support (DIR optional).])
AC_HELP_STRING([--disable-openssl],[Disable OpenSSL support.])],
[cf_enable_openssl=$enableval],
[cf_enable_openssl="auto"])
if test "$cf_enable_openssl" != "no" ; then
cf_openssl_basedir=""
if test "$cf_enable_openssl" != "auto" &&
test "$cf_enable_openssl" != "yes" ; then
dnl Support for --enable-openssl=/some/place
cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
else
dnl Do the auto-probe here. Check some common directory paths.
for dirs in /usr/local/ssl /usr/pkg /usr/local \
/usr/local/openssl ; do
if test -f "${dirs}/include/openssl/opensslv.h" ; then
cf_openssl_basedir="${dirs}"
break
fi
done
unset dirs
fi
dnl Now check cf_openssl_found to see if we found anything.
if test ! -z "$cf_openssl_basedir"; then
if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
SSL_INCLUDES="-I${cf_openssl_basedir}/include"
SSL_LIBS="-L${cf_openssl_basedir}/lib"
else
dnl OpenSSL wasn't found in the directory specified. Naughty
dnl administrator...
cf_openssl_basedir=""
fi
else
dnl Check for stock FreeBSD 4.x and 5.x systems, since their files
dnl are in /usr/include and /usr/lib. In this case, we don't want to
dnl change INCLUDES or LIBS, but still want to enable OpenSSL.
dnl We can't do this check above, because some people want two versions
dnl of OpenSSL installed (stock FreeBSD 4.x/5.x and /usr/local/ssl)
dnl and they want /usr/local/ssl to have preference.
if test -f "/usr/include/openssl/opensslv.h" ; then
cf_openssl_basedir="/usr"
fi
fi
dnl If we have a basedir defined, then everything is okay. Otherwise,
dnl we have a problem.
if test ! -z "$cf_openssl_basedir"; then
AC_MSG_RESULT($cf_openssl_basedir)
cf_enable_openssl="yes"
else
AC_MSG_RESULT([not found. Specify a correct path?])
cf_enable_openssl="no"
fi
unset cf_openssl_basedir
else
dnl If --disable-openssl was specified
AC_MSG_RESULT(disabled)
fi
save_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $SSL_INCLUDES"
save_LIBS="$LIBS"
LIBS="$LIBS $SSL_LIBS"
if test "$cf_enable_openssl" != no; then
dnl Check OpenSSL version (must be 0.9.6 or above!)
AC_MSG_CHECKING(for OpenSSL 0.9.6 or above)
AC_RUN_IFELSE([AC_LANG_SOURCE([#include <openssl/opensslv.h>
#include <stdlib.h>
int main() {
if ( OPENSSL_VERSION_NUMBER >= 0x00906000)
exit(0); else exit(1);}])],
cf_openssl_version_ok=yes,
cf_openssl_version_ok=no,
cf_openssl_version_ok=no)
dnl AC_LANG_PROGRAM(
dnl [#include <openssl/opensslv.h>
dnl #include <stdlib.h>],
dnl [[if ( OPENSSL_VERSION_NUMBER >= 0x00906000)
dnl exit(0); else exit(1);]]),
dnl cf_openssl_version_ok=yes,
dnl cf_openssl_version_ok=no,
dnl cf_openssl_version_ok=no)
if test "$cf_openssl_version_ok" = yes; then
AC_MSG_RESULT(found)
ac_cv_openssl="enabled"
dnl Do all the HAVE_LIBCRYPTO magic -- and check for ciphers
CPPFLAGS="$CPPFLAGS $SSL_LIBS"
AC_CHECK_LIB(crypto, RSA_free)
SSL_LIBS="$SSL_LIBS -lcrypto -lssl"
SSL_SRCS_ENABLE='$(SSL_SRCS)'
AC_DEFINE(HAVE_OPENSSL, 1, [OpenSSL support enabled])
else
AC_MSG_RESULT(no - OpenSSL support disabled)
fi
fi
CPPFLAGS="$save_CPPFLAGS"
LIBS="$save_LIBS"
dnl End OpenSSL detection
xmlrpc_c_config="no"
AC_ARG_WITH(xmlrpc-c,
AC_HELP_STRING([--with-xmlrpc-c=PATH], [Path to xmlrpc-c-config]), [xmlrpc_c_config="$withval"],[xmlrpc_c_config="no"])
if test "X$xmlrpc_c_config" = "Xyes"; then
xmlrpc_c_config="no";
fi
AC_MSG_CHECKING(for xmlrpc-c)
ac_cv_xmlrpc="disabled"
if test "X$xmlrpc_c_config" = "Xno"; then
if eval xmlrpc-c-config --version 2>/dev/null >/dev/null; then
CFLAGS="$CFLAGS `xmlrpc-c-config client --cflags`"
LIBS="$LIBS `xmlrpc-c-config client --libs`"
AC_DEFINE(HAVE_XMLRPC_C, 1, [Support for XMLRCP-C])
AC_MSG_RESULT(ok)
ac_cv_xmlrpc="enabled"
else
AC_MSG_RESULT(not found)
fi
else
if eval $xmlrpc_c_config --version 2>/dev/null >/dev/null; then
CFLAGS="$CFLAGS `$xmlrpc_c_config client --cflags`"
LIBS="$LIBS `$xmlrpc_c_config client --libs`"
AC_DEFINE(HAVE_XMLRPC_C, 1, [Support for XMLRPC-C])
AC_MSG_RESULT(ok)
ac_cv_xmlrpc="enabled"
else
AC_MSG_RESULT(not found)
fi
fi
gnutls="no"
ac_cv_gnutls="disabled"
ac_cv_gnutls_ret=`pkg-config --modversion gnutls`
AC_ARG_ENABLE(gnutls,
AC_HELP_STRING([--enable-gnutls], [Enable GNUTls]), [gnutls="yes"],[gnutls="no"])
if test "X$gnutls" = "Xyes"; then
if eval pkg-config --modversion gnutls 2>/dev/null >/dev/null; then
CFLAGS="$CFLAGS `pkg-config --cflags gnutls`"
LIBS="$LIBS `pkg-config --libs gnutls`"
AC_DEFINE(HAVE_GNUTLS, 1, [Support for GNUTLS])
ac_cv_gnutls="enabled"
fi
fi
ac_cv_libopm=""
ac_cv_found_libopm_inc="no"
ac_cv_found_libopm_lib="no"
ac_cv_sqlite3="disabled"
ac_cv_sqlite3_val=""
ac_cv_sqlite3_path=""
ac_cv_found_sqlite3_lib=""
ac_cv_found_sqlite3_inc=""
dnl Search for SQLite
AC_ARG_WITH(sqlite3,
AC_HELP_STRING([--with-sqlite3=DIR],[Location to SQLite3]),
[ac_cv_sqlite3_val=$withval], [])
AC_CHECK_HEADER(sqlite3.h,
[ac_cv_found_sqlite3_inc="yes"],
[
AC_MSG_CHECKING(for sqlite3.h in given path)
if test -f "$ac_cv_sqlite3_val/include/sqlite3.h"; then
AC_MSG_RESULT(yes)
ac_cv_found_sqlite3_inc="yes"
ac_cv_sqlite3_path="$ac_cv_sqlite3_val"
else
AC_MSG_RESULT(no)
fi
], [])
AC_CHECK_LIB([sqlite3], [main], [ac_cv_found_sqlite3_lib="yes"],
[
AC_MSG_CHECKING(for -lsqlite3 in given path)
if test -e "$ac_cv_sqlite3_val/lib/libsqlite3.so"; then
AC_MSG_RESULT(yes)
ac_cv_found_sqlite3_lib="yes"
else
AC_MSG_RESULT(no)
fi
])
if test "X$ac_cv_found_sqlite3_inc" = "Xyes" &&
test "X$ac_cv_found_sqlite3_lib" = "Xyes"; then
LIBS="$LIBS -lsqlite3"
if test "X$ac_cv_sqlite3_path" != "X"; then
CFLAGS="$CFLAGS -I $ac_cv_sqlite3_path/include/"
LDFLAGS="$LDFLAGS -L $ac_cv_sqlite3_path/lib/"
fi
AC_DEFINE(HAVE_SQLITE, 1, [SQLite is available for use])
ac_cv_sqlite3="enabled"
fi
if test "X$ac_cv_libevent" != "Xno"; then
ac_cv_libevent_found="no"
if test "X$ac_cv_libevent" != "Xyes"; then
CFLAGS="$CFLAGS -I$ac_cv_libevent/include"
LDFLAGS="$LDFLAGS -L$ac_cv_libevent/lib/"
fi
AC_CHECK_LIB(event, event_init, [ac_cv_libevent_found=yes], )
if test "X$ac_cv_libevent_found" = "Xyes"; then
AC_DEFINE(HAVE_LIBEVENT, 1, [libevent is available for use])
ac_cv_libevent_output="enabled"
fi
fi
if test "X$ac_cv_threads" = "Xyes"; then
ACX_PTHREAD()
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
LDFLAGS="$LDFLAGS $PTHREAD_LDFLAGS"
LIBS="$LIBS $PTHREAD_LIBS"
else
ac_cv_threads_output="disabled"
fi
if test "X$with_omegastats" = "Xyes"; then
AC_DEFINE(OMEGASTATS, 1, [Compiled with omega statistical module.])
OSTATSMOD="m_omegastats.c"
AC_SUBST(OSTATSMOD)
fi
AC_SUBST(LDFLAGS)
AC_SUBST(PICFLAGS)
AC_SUBST(SSL_INCLUDES)
AC_SUBST(SSL_LIBS)
if test "$prefix" = "NONE"; then
AC_DEFINE_UNQUOTED(PREFIX, "$ac_default_prefix", [Prefix where omega is installed.])
else
prefix=`echo $prefix | sed 's/\/$//'`
AC_DEFINE_UNQUOTED(PREFIX, "$prefix", [Prefix where omega is installed.])
fi
if test ! -d libopm; then
AC_MSG_ERROR(libopm is not present. Cannot continue.)
fi
AC_CONFIG_SUBDIRS(libopm)
CFLAGS="$CFLAGS $SSL_INCLUDES -I$PWD/libopm/src/"
LIBS="$LIBS $SSL_LIBS $PWD/libopm/src/.libs/libopm.a"
AC_CONFIG_FILES(
Makefile \
src/Makefile \
docs/Makefile \
tools/Makefile \
modules/Makefile \
modules/core/Makefile \
modules/db/Makefile \
modules/client/Makefile \
modules/protocol/Makefile \
contrib/Makefile \
contrib/Makefile.sub \
)
AC_OUTPUT
dnl I make this look good :D
echo
echo "Compiling $PACKAGE_NAME ($PACKAGE_VERSION)"
echo
echo "Installing into: $prefix"
echo
if test "X$with_omegastats" = "Xyes"; then
echo "Omega Stats.............. enabled (read docs/OmegaStatistics.txt for information)"
else
echo "Omega Stats.............. disabled"
fi
echo "Assert................... $assert"
echo "Dmalloc.................. $ac_cv_dmalloc"
echo "Threading................ $ac_cv_threads_output"
echo "Debug.................... $ac_cv_debug"
echo "XMLRPC................... $ac_cv_xmlrpc"
echo "SQLite3.................. $ac_cv_sqlite3"
echo "OpenSSL.................. $ac_cv_openssl"
echo "GnuTLS................... $ac_cv_gnutls ($ac_cv_gnutls_ret)"
echo "libevent................. $ac_cv_libevent_output"
echo
echo "To complete installation type make"
echo