1dnl $Id: configure.ac 28675 2015-09-29 17:09:18Z androsyn $ 2dnl Process this file with autoconf to produce a configure script. 3 4dnl TODO: clean up all the OpenSSL and shared module checking stuff; 5dnl the most major changes have already been made and it looks like 6dnl said functions need to be just about as complex as they already are. 7 8AC_PREREQ(2.63) 9AUTOMAKE_OPTIONS = 1.10 10dnl Sneaky way to get an Id tag into the configure script 11AC_COPYRIGHT([$Id: configure.ac 28675 2015-09-29 17:09:18Z androsyn $]) 12AC_INIT([ircd-ratbox],[stable]) 13AC_CONFIG_AUX_DIR([libltdl/config]) 14AC_CONFIG_MACRO_DIR([libltdl/m4]) 15 16AM_INIT_AUTOMAKE([subdir-objects]) 17 18AM_CONFIG_HEADER(include/setup.h) 19 20AC_PREFIX_DEFAULT(/usr/local/ircd) 21AC_GNU_SOURCE 22 23dnl Checks for programs. 24AC_PATH_PROG(CP, cp) 25AC_PATH_PROG(MV, mv) 26AC_PATH_PROG(RB_RM, rm) 27 28AC_PROG_CC_C99 29 30if test x"$ac_cv_prog_cc_c99" = "xno"; then 31 AC_ERROR([ircd-ratbox requires a C99 capable compiler]) 32fi 33 34 35AM_PROG_LEX 36 37AC_PROG_INSTALL 38AC_PROG_EGREP 39if test "$enable_static" = "yes"; then 40 AM_DISABLE_SHARED 41 AM_ENABLE_STATIC 42 AC_DEFINE([STATIC_MODULES], 1, [Define to 1 if dynamic modules cant be used.]) 43else 44 enable_static="no" 45fi 46 47F77=no 48GCJ=no 49 50AM_PROG_CC_C_O 51AM_DISABLE_STATIC 52AM_ENABLE_SHARED 53AM_MAINTAINER_MODE 54 55AC_ISC_POSIX 56AC_C_INLINE 57AC_PROG_GCC_TRADITIONAL 58AC_PROG_MAKE_SET 59AC_PROG_INSTALL 60 61srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` 62 63# We pase INSTALL explicitly to sub-makes. Make sure that it is not 64# a relative path. 65if test "$INSTALL" = "${srcdir}/install-sh -c"; then 66 INSTALL="${srcpwd}/install-sh -c" 67fi 68 69AC_PROG_YACC 70AC_LANG(C) 71 72AM_CONDITIONAL([STATIC_MODULES], test "$enable_static" = "yes") 73 74GCC_STACK_PROTECT_CC 75 76cc_accepts_flag() 77{ 78 cc_accepts_flag_CFLAGS="$CFLAGS" 79 CFLAGS="$*" 80 AC_MSG_CHECKING([whether $CC accepts $@]) 81 AC_COMPILE_IFELSE([AC_LANG_SOURCE([int main(){return 0;}])] , 82 [RC=0; AC_MSG_RESULT([yes])], 83 [RC=1; AC_MSG_RESULT([no])]) 84 CFLAGS="$cc_accepts_flag_CFLAGS" 85 return $RC 86} 87 88 89if cc_accepts_flag -fno-strict-aliasing; then 90 CFLAGS="$CFLAGS -fno-strict-aliasing" 91fi 92 93WARNLIST=" 94 all 95 cast-qual 96 missing-declarations 97 missing-prototypes 98 nested-externs 99 shadow 100 write-strings 101 no-unused 102 unused-function 103 unused-variable" 104 105for x in $WARNLIST; do 106 if cc_accepts_flag -W$x; then 107 WARNFLAGS="$WARNFLAGS -W$x"; 108 fi 109done 110 111LT_INIT([dlopen], [convenience]) 112LT_CONFIG_LTDL_DIR([libltdl]) 113LTDL_INIT 114 115 116 117if test xyes = x"$with_included_ltdl"; then 118 119 AC_SUBST(LTDL_SUBDIR, libltdl) 120else 121 AC_SUBST(LTDL_SUBDIR, '') 122fi 123 124LIBTOOL="$LIBTOOL --silent" 125 126AC_CONFIG_SUBDIRS(libratbox) 127 128case "$host_os" in 129*cygwin*) 130 AC_DEFINE_UNQUOTED(CYGWIN,1,[This is a Cygwin system]) 131 AC_DEFINE_UNQUOTED(WINDOWS,1,[This is a Windows system]) 132 ;; 133*mingw*) 134 AC_DEFINE_UNQUOTED(MINGW,1,[This is a MinGW system]) 135 AC_DEFINE_UNQUOTED(WINDOWS,1,[This is a Windows system]) 136 AC_CHECK_HEADER(winsock2.h, , [AC_MSG_ERROR([** MinGW and no winsock2.h. I give up.])]) 137 LIBS="$LIBS -lws2_32 -liphlpapi" 138 is_mingw="yes" 139 ;; 140*) 141 ;; 142esac 143 144AM_CONDITIONAL([MINGW], [test "$is_mingw" = "yes"]) 145 146if test "$LEX" != flex; then 147 LEX="$SHELL $missing_dir/missing flex" 148 AC_SUBST(LEX_OUTPUT_ROOT, lex.yy) 149 AC_SUBST(LEXLIB, '') 150fi 151 152# backwards support for IRC_CFLAGS 153CFLAGS="$IRC_CFLAGS $CFLAGS" 154 155dnl Checks for header files. 156AC_HEADER_STDC 157 158AC_HEADER_SYS_WAIT 159AC_HEADER_DIRENT 160 161AC_CHECK_HEADERS([sys/types.h sys/resource.h sys/param.h sys/stat.h sys/socket.h netinet/in.h arpa/inet.h errno.h stddef.h ]) 162AC_HEADER_TIME 163 164AC_CHECK_FUNCS([snprintf lstat stat]) 165 166dnl Networking Functions 167dnl ==================== 168 169AC_SEARCH_LIBS(socket, [socket],,) 170 171dnl this gets passed on to the libratbox configure 172AC_ARG_ENABLE(ipv6,AC_HELP_STRING([--disable-ipv6],[Disable IPv6 support (not recommended)]),[ipv6=$enableval],[ipv6=yes]) 173 174 175dnl See whether we can include both string.h and strings.h. 176AC_CACHE_CHECK([whether string.h and strings.h may both be included], 177gcc_cv_header_string, 178[ 179 AC_COMPILE_IFELSE( 180 [#include <string.h> 181 #include <strings.h>], 182 [gcc_cv_header_string=yes], 183 [gcc_cv_header_string=no]) 184]) 185 186if test "$gcc_cv_header_string" = "yes"; then 187 AC_DEFINE(STRING_WITH_STRINGS, 1, [Define to 1 if string.h may be included along with strings.h]) 188fi 189 190AC_C_BIGENDIAN 191 192dnl Check for stdarg.h - if we can't find it, halt configure 193AC_CHECK_HEADER(stdarg.h, , [AC_MSG_ERROR([** stdarg.h could not be found - ircd-ratbox will not compile without it **])]) 194 195AC_FUNC_ALLOCA 196 197AC_CHECK_SIZEOF(time_t,,[ 198AC_INCLUDES_DEFAULT 199#ifdef TIME_WITH_SYS_TIME 200# include <sys/time.h> 201# include <time.h> 202#else 203# ifdef HAVE_SYS_TIME_H 204# include <sys/time.h> 205# else 206# include <time.h> 207# endif 208#endif 209]) 210 211AC_CHECK_SIZEOF(long) 212 213 214dnl Specialized functions checks 215dnl ============================ 216 217 218dnl OpenSSL support 219AC_MSG_CHECKING(for OpenSSL) 220AC_ARG_ENABLE(openssl, 221[AC_HELP_STRING([--enable-openssl[=DIR]],[Enable OpenSSL support (DIR optional).]) 222AC_HELP_STRING([--disable-openssl],[Disable OpenSSL support.])], 223[cf_enable_openssl=$enableval], 224[cf_enable_openssl="auto"]) 225 226if test "$cf_enable_openssl" != "no" ; then 227 cf_openssl_basedir="" 228 if test "$cf_enable_openssl" != "auto" && 229 test "$cf_enable_openssl" != "yes" ; then 230 dnl Support for --enable-openssl=/some/place 231 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`" 232 else 233 dnl Do the auto-probe here. Check some common directory paths. 234 for dirs in /usr/local/ssl /usr/pkg /usr/local \ 235 /usr/local/openssl ; do 236 if test -f "${dirs}/include/openssl/opensslv.h" ; then 237 cf_openssl_basedir="${dirs}" 238 break 239 fi 240 done 241 unset dirs 242 fi 243 dnl Now check cf_openssl_found to see if we found anything. 244 if test ! -z "$cf_openssl_basedir"; then 245 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then 246 SSL_INCLUDES="-I${cf_openssl_basedir}/include" 247 SSL_LIBS="-L${cf_openssl_basedir}/lib $lt_cv_dlopen_libs" 248 else 249 dnl OpenSSL wasn't found in the directory specified. Naughty 250 dnl administrator... 251 cf_openssl_basedir="" 252 fi 253 else 254 dnl Check for stock FreeBSD 4.x and 5.x systems, since their files 255 dnl are in /usr/include and /usr/lib. In this case, we don't want to 256 dnl change INCLUDES or LIBS, but still want to enable OpenSSL. 257 dnl We can't do this check above, because some people want two versions 258 dnl of OpenSSL installed (stock FreeBSD 4.x/5.x and /usr/local/ssl) 259 dnl and they want /usr/local/ssl to have preference. 260 if test -f "/usr/include/openssl/opensslv.h" ; then 261 cf_openssl_basedir="/usr" 262 fi 263 fi 264 265 dnl If we have a basedir defined, then everything is okay. Otherwise, 266 dnl we have a problem. 267 if test ! -z "$cf_openssl_basedir"; then 268 AC_MSG_RESULT($cf_openssl_basedir) 269 cf_enable_openssl="yes" 270 else 271 AC_MSG_RESULT([not found. Specify a correct path?]) 272 cf_enable_openssl="no" 273 fi 274 unset cf_openssl_basedir 275else 276 dnl If --disable-openssl was specified 277 AC_MSG_RESULT(disabled) 278fi 279 280save_CPPFLAGS="$CPPFLAGS" 281CPPFLAGS="$CPPFLAGS $SSL_INCLUDES" 282save_LIBS="$LIBS" 283LIBS="$LIBS $SSL_LIBS" 284 285 286 287 288CPPFLAGS="$CPPFLAGS $SSL_LIBS" 289AC_CHECK_LIB(crypto, RSA_free, 290 [SSL_LIBS="$SSL_LIBS -lcrypto $lt_cv_dlopen_libs"], 291 [cf_enable_openssl=no] 292) 293 294if test "$cf_enable_openssl" != no; then 295 AC_DEFINE(USE_CHALLENGE, 1, [Define to enable CHALLENGE support, requires OpenSSL]) 296fi 297 298CPPFLAGS="$save_CPPFLAGS" 299LIBS="$save_LIBS" 300 301dnl End OpenSSL detection 302 303ac_cv_build_sqlite3=no 304 305AC_CHECK_SQLITE3 306 307 308if test x"$ac_sqlite3" != xyes; then 309 ac_cv_build_sqlite3=yes 310 SQLITE_SUBDIR=sqlite3 311 AC_SUBST(SQLITE_SUBDIR) 312 SQLITE3_CFLAGS="-Isqlite3" 313 save_LIBS=$LIBS 314 AC_SEARCH_LIBS(fdatasync, [rt],,) 315 FDATASYNCLIB=$ac_cv_search_fdatasync 316 LIBS=$save_LIBS 317 318 if test "$FDATASYNCLIB" = "none required"; then 319 unset FDATASYNCLIB 320 fi 321 322 if test "$FDATASYNCLIB" = "no"; then 323 unset FDATASYNCLIB 324 fi 325 326 SQLITE3_LIBS="$FDATASYNCLIB sqlite3/libsqlite3.a" 327 AC_SUBST(SQLITE3_LIBS, $SQLITE3_LIBS) 328 329fi 330 331dnl AC_SUBST(SQLITE3_LIBS, $SQLITE3_LIBS) 332dnl AC_SUBST(SQLITE3_CFLAGS, $SQLITE3_CFLAGS) 333 334AM_CONDITIONAL([BUILD_SQLITE], [test "$ac_cv_build_sqlite3" = yes]) 335 336 337 338dnl Specialized functions and libraries 339dnl =================================== 340 341AC_ARG_WITH(zlib-path, 342AC_HELP_STRING([--with-zlib-path=DIR],[Path to libz.so for ziplinks support.]), 343[LIBS="$LIBS -L$withval"],) 344 345AC_ARG_ENABLE(zlib, 346AC_HELP_STRING([--disable-zlib],[Disable ziplinks support]), 347[zlib=$enableval],[zlib=yes]) 348 349if test "$zlib" = yes; then 350 351AC_CHECK_HEADER(zlib.h, [ 352 AC_CHECK_LIB(z, zlibVersion, 353 [ 354 AC_SUBST(ZLIB_LD, -lz) 355 AC_DEFINE(HAVE_ZLIB, 1, [Define to 1 if zlib (-lz) is available.]) 356 ], zlib=no) 357], zlib=no) 358 359fi 360 361dnl ********************************************************************** 362dnl Check for --with-confdir 363dnl ********************************************************************** 364 365AC_MSG_CHECKING([whether to modify confdir]) 366AC_ARG_WITH(confdir, 367AC_HELP_STRING([--with-confdir=DIR], 368 [Directory to install config files.]), 369 [ confdir=`echo $withval | sed 's/\/$//'` 370 AC_MSG_RESULT(yes) 371 AC_DEFINE_DIR(ETC_DIR, confdir, [Prefix where config files are installed.]) 372 AC_SUBST_DIR([confdir]) ], 373 [ confdir='${prefix}/etc' 374 AC_MSG_RESULT(no) 375 AC_DEFINE_DIR(ETC_DIR, confdir, [Prefix where config files are installed.]) 376 AC_SUBST_DIR([confdir])] 377) 378 379dnl ********************************************************************** 380dnl Check for --with-logdir 381dnl ********************************************************************** 382 383AC_MSG_CHECKING([whether to modify logdir]) 384AC_ARG_WITH(logdir, 385AC_HELP_STRING([--with-logdir=DIR], 386 [Directory where to write logfiles.]), 387 [ logdir=`echo $withval | sed 's/\/$//'` 388 AC_MSG_RESULT(yes) 389 AC_DEFINE_DIR(LOG_DIR, logdir, [Prefix where to write logfiles.]) 390 AC_SUBST_DIR([logdir]) ], 391 [ logdir='${prefix}/logs' 392 AC_MSG_RESULT(no) 393 AC_DEFINE_DIR(LOG_DIR, logdir, [Prefix where to write logfiles.]) 394 AC_SUBST_DIR([logdir])] 395) 396 397dnl ********************************************************************** 398dnl Check for --with-helpdir 399dnl ********************************************************************** 400 401AC_MSG_CHECKING([whether to modify helpdir]) 402AC_ARG_WITH(helpdir, 403AC_HELP_STRING([--with-helpdir=DIR], 404 [Directory to install help files.]), 405 [ helpdir=`echo $withval | sed 's/\/$//'` 406 AC_MSG_RESULT(yes) 407 AC_DEFINE_DIR(HELP_DIR, helpdir, [Prefix where help files are installed.]) 408 AC_SUBST_DIR([helpdir]) ], 409 [ helpdir='${prefix}/help' 410 AC_MSG_RESULT(no) 411 AC_DEFINE_DIR(HELP_DIR, helpdir, [Prefix where help file are installed.]) 412 AC_SUBST_DIR([helpdir])] 413) 414 415dnl ********************************************************************** 416dnl Check for --with-moduledir 417dnl ********************************************************************** 418 419AC_MSG_CHECKING([whether to modify moduledir]) 420AC_ARG_WITH(moduledir, 421AC_HELP_STRING([--with-moduledir=DIR], 422 [Directory to install modules.]), 423 [ moduledir=`echo $withval | sed 's/\/$//'` 424 AC_MSG_RESULT(yes) 425 AC_DEFINE_DIR(MODULE_DIR, moduledir, [Prefix where modules are installed.]) 426 AC_SUBST_DIR([moduledir]) ], 427 [ moduledir='${prefix}/modules' 428 AC_MSG_RESULT(no) 429 AC_DEFINE_DIR(MODULE_DIR, moduledir, [Prefix where modules are installed.]) 430 AC_SUBST_DIR([moduledir])] 431) 432 433dnl Debug-related options 434dnl ===================== 435 436AC_ARG_ENABLE(assert, 437AC_HELP_STRING([--enable-assert],[Enable assert(). Choose between soft(warnings) and hard(aborts the daemon)]), 438[assert=$enableval], [assert=no]) 439 440if test "$assert" = no; then 441 AC_DEFINE(NDEBUG, 1, [Define this to disable debugging support.]) 442elif test "$assert" = soft; then 443 AC_DEFINE(SOFT_ASSERT, 1, [Define this to enable soft asserts.]) 444 AC_DEFINE(NDEBUG, 1, [Define this to disable debugging support.]) 445elif test "$assert" = yes; then 446 assert = "hard"; 447fi 448 449AC_MSG_CHECKING(if you want IO Debugging hooks) 450AC_ARG_ENABLE(iodebug, 451AC_HELP_STRING([--enable-iodebug],[Enable IO Debugging hooks]), 452[iodebug=$enableval], [iodebug=no]) 453 454if test "$iodebug" = yes; then 455 AC_DEFINE(USE_IODEBUG_HOOKS, 1, [Define this to enable IO Debug hooks.]) 456 AC_MSG_RESULT(yes) 457else 458 AC_MSG_RESULT(no) 459fi 460 461 462AC_MSG_CHECKING(if you want to do a profile build) 463AC_ARG_ENABLE(profile, 464AC_HELP_STRING([--enable-profile],[Enable profiling]), 465[profile=$enableval], [profile=no]) 466 467if test "$profile" = yes; then 468 if test "$ac_cv_c_compiler_gnu" = yes; then 469 CFLAGS="$CFLAGS -pg -static" 470 AC_MSG_RESULT([yes, adding -pg -static]) 471 AC_DEFINE(RATBOX_PROFILE, 1, [Defined to mark profiling is enabled]) 472 else 473 AC_MSG_RESULT([no, profile builds only work with gcc]) 474 fi 475else 476 AC_MSG_RESULT(no) 477fi 478 479dnl Server Tweaks 480dnl ============= 481 482AC_ARG_ENABLE(services, 483AC_HELP_STRING([--enable-services],[Enable ratbox-services compatibility code.]), 484[ratbox_services=$enableval], [ratbox_services=no]) 485 486M_SERVICES="" 487 488if test "x$ratbox_services" = "xyes"; then 489 AC_DEFINE([ENABLE_SERVICES], 1, [ratbox-services compatibility code]) 490 M_SERVICES="m_services.la" 491fi 492 493AM_CONDITIONAL([ENABLE_SERVICES], [test x"$M_SERVICES" != "x"]) 494 495AC_ARG_ENABLE(small-net, 496AC_HELP_STRING([--enable-small-net],[Enable small network support.]), 497[small_net=$enableval], [small_net=no]) 498 499if test "$small_net" = yes; then 500dnl AC_DEFINE([HASHSIZE], 4096, [Max number of buckets in hash tables.]) 501 AC_DEFINE([NICKNAMEHISTORYLENGTH], 1500, [Size of the WHOWAS array.]) 502 AC_DEFINE([CHANNEL_HEAP_SIZE], 256, [Size of the channel heap.]) 503 AC_DEFINE([BAN_HEAP_SIZE], 128, [Size of the ban heap.]) 504 AC_DEFINE([CLIENT_HEAP_SIZE], 256, [Size of the client heap.]) 505 AC_DEFINE([LCLIENT_HEAP_SIZE], 128, [Size of the local client heap.]) 506 AC_DEFINE([USER_HEAP_SIZE], 128, [Size of the user heap.]) 507 AC_DEFINE([DNODE_HEAP_SIZE], 512, [Size of the dlink_node heap.]) 508 AC_DEFINE([TOPIC_HEAP_SIZE], 256, [Size of the topic heap.]) 509 AC_DEFINE([LINEBUF_HEAP_SIZE], 128, [Size of the linebuf heap.]) 510 AC_DEFINE([MEMBER_HEAP_SIZE], 256, [Sizeof member heap.]) 511 AC_DEFINE([ND_HEAP_SIZE], 128, [Size of the nick delay heap.]) 512 AC_DEFINE([CONFITEM_HEAP_SIZE], 128, [Size of the confitem heap.]) 513 AC_DEFINE([MONITOR_HEAP_SIZE], 128, [Size of the monitor heap.]) 514 AC_DEFINE([AUTH_HEAP_SIZE], 128, [Size of the auth heap.]) 515 AC_DEFINE([FD_HEAP_SIZE], 128, [Size of fd heap.]) 516 AC_DEFINE([AWAY_HEAP_SIZE], 128, [Size of away heap.]) 517else 518dnl These settings are for a large network like efnet..they will use lots of memory 519dnl so enable small net unless you really need this much support 520 AC_DEFINE([NICKNAMEHISTORYLENGTH], 30000, [Size of the WHOWAS array.]) 521 AC_DEFINE([CHANNEL_HEAP_SIZE], 8192, [Size of the channel heap.]) 522 AC_DEFINE([BAN_HEAP_SIZE], 4096, [Size of the ban heap.]) 523 AC_DEFINE([CLIENT_HEAP_SIZE], 8192, [Size of the client heap.]) 524 AC_DEFINE([LCLIENT_HEAP_SIZE], 1024, [Size of the local client heap.]) 525 AC_DEFINE([USER_HEAP_SIZE], 8192, [Size of the user heap.]) 526 AC_DEFINE([DNODE_HEAP_SIZE], 8192, [Size of the dlink_node heap.]) 527 AC_DEFINE([TOPIC_HEAP_SIZE], 4096, [Size of the topic heap.]) 528 AC_DEFINE([LINEBUF_HEAP_SIZE], 2048, [Size of the linebuf heap.]) 529 AC_DEFINE([MEMBER_HEAP_SIZE], 32768, [Sizeof member heap.]) 530 AC_DEFINE([ND_HEAP_SIZE], 512, [Size of the nick delay heap.]) 531 AC_DEFINE([CONFITEM_HEAP_SIZE], 1024, [Size of the confitem heap.]) 532 AC_DEFINE([MONITOR_HEAP_SIZE], 1024, [Size of the monitor heap.]) 533 AC_DEFINE([AUTH_HEAP_SIZE], 256, [Size of the auth heap.]) 534 AC_DEFINE([FD_HEAP_SIZE], 1024, [Size of fd heap.]) 535 AC_DEFINE([AWAY_HEAP_SIZE], 512, [Size of away heap.]) 536 537fi 538 539AC_ARG_WITH(nicklen, 540AC_HELP_STRING([--with-nicklen=LENGTH],[Set the nick length to LENGTH (default 9, max 50)]), 541[ 542 if ! expr "$withval" + 0 >/dev/null 2>&1; then 543 AC_ERROR([NICKLEN must be a numeric value]) 544 fi 545 if test $withval -ge 50; then 546 NICKLEN=50 547 AC_MSG_WARN([NICKLEN has a hard limit of 50. Setting NICKLEN=50]) 548 else 549 NICKLEN="$withval" 550 fi 551], [NICKLEN=9]) 552 553AC_DEFINE_UNQUOTED(NICKLEN, (${NICKLEN}+1), [Nickname length]) 554AC_DEFINE_UNQUOTED(RATBOX_CONFIGURE_OPTS, "$ac_configure_args", [configure arguments]) 555 556 557AC_SUBST(SSL_INCLUDES) 558AC_SUBST(SSL_LIBS) 559 560AC_SUBST(LDFLAGS) 561AC_SUBST(PICFLAGS) 562AC_SUBST(CFLAGS) 563AC_SUBST(SEDOBJ) 564AC_SUBST(WARNFLAGS) 565 566if test "$prefix" = "NONE"; then 567 AC_DEFINE_UNQUOTED(IRCD_PREFIX, "$ac_default_prefix", [Prefix where the ircd is installed.]) 568 569else 570 571dnl Don't get bitten by Cygwin's stupidity if the user specified 572dnl a custom prefix with a trailing slash 573 574 prefix=`echo $prefix | sed 's/\/$//'` 575 AC_DEFINE_UNQUOTED(IRCD_PREFIX, "$prefix", [Prefix where the ircd is installed.]) 576 577fi 578 579if test "x$libexecdir" = "xNONE"; then 580 rb_cv_libexecdir=$ac_default_libexecdir 581else 582 rb_cv_libexecdir=$libexecdir 583fi 584 585libexecdir=`eval "echo ${rb_cv_libexecdir}/ircd-ratbox"` 586AC_DEFINE_DIR(LIBEXEC_DIR, libexecdir, [Prefix where to install non-user executables.]) 587 588dnl lets see what libtool thinks our suffix is... 589AC_MSG_CHECKING([for shared library suffix]) 590dnl this whole thing is a big hack... 591module=yes 592eval SHLIBEXT=\"$shrext_cmds\" 593AC_MSG_RESULT($SHLIBEXT) 594AC_SUBST(SHLIBEXT,$SHLIBEXT) 595AC_SUBST(LT_OBJDIR,$lt_cv_objdir) 596AC_DEFINE_UNQUOTED(SHLIBEXT,"$SHLIBEXT", [Extension that shared libs use]) 597 598AC_SUBST(IRCD_PREFIX) 599 600disable_backups=n 601AC_ARG_ENABLE(backups,,disable_backups=y) 602AM_CONDITIONAL([DISABLE_BACKUPS], [test x"$disable_backups" = "xy"]) 603 604 605AC_CONFIG_FILES( \ 606 Makefile \ 607 bandb/Makefile \ 608 bandb/sqlite3/Makefile \ 609 ssld/Makefile \ 610 resolver/Makefile \ 611 contrib/Makefile \ 612 tools/Makefile \ 613 doc/Makefile \ 614 help/Makefile \ 615 modules/Makefile \ 616 src/Makefile \ 617 install-mod.sh 618) 619 620AC_OUTPUT 621 622dnl Make it look sexay! 623 624echo 625echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION" 626echo 627 628echo "Installing into: $prefix" 629 630echo "Ziplinks ....................... $zlib" 631 632echo "OpenSSL ........................ $cf_enable_openssl" 633 634tmpresult=shared 635 636if test "x$enable_static" = "xyes"; then 637 tmpresult=static 638fi 639 640echo "Modules ........................ $tmpresult" 641echo "IO Debugging hooks ............. $iodebug" 642echo "Assert debugging ............... $assert" 643echo "Small network .................. $small_net" 644echo "ratbox-services compatibility .. $ratbox_services" 645echo 646echo "Configured limits:" 647echo "NICKLEN ................. $NICKLEN" 648echo 649 650