2 # Process this file with autoconf to produce a configure script.
4 AC_INIT([aMule],[SVN],[admin@amule.org])
8 AC_CONFIG_SRCDIR([src/amule.cpp])
9 AM_CONFIG_HEADER([config.h])
12 # Removing -fomit since it causes problems with CryptoPP
13 CFLAGS="`echo $CFLAGS | sed "s/-fomit-frame-pointer//g"`"
14 CXXFLAGS="`echo $CXXFLAGS | sed "s/-fomit-frame-pointer//g"`"
16 # System detection, need AC_CANONICAL_HOST
23 CFLAGS="${CFLAGS} -no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
24 LDFLAGS="$LDFLAGS -bind_at_load"
29 LIBS="$LIBS -L/usr/local/lib"
30 X11LIBS="-lX11 -L/usr/X11R6/lib"
31 CXXFLAGS=" $CXXFLAGS -D__OPENBSD__"
32 if test "$DEBUG_FLAGS" != ""; then
33 DEBUG_FLAGS="-Wall -g -fno-inline -D__DEBUG__"
38 CFLAGS="$CFLAGS -DNOMINMAX"
39 CXXFLAGS="$CXXFLAGS -DNOMINMAX"
42 RESOLV_LIB="-lresolv -lnsl"
50 # Checks for programs.
56 AS_IF([test "$cross_compiling" = yes], [AC_PROG_BUILD_CC], [BUILD_CC="$CC" ; BUILD_EXEEXT=$EXEEXT])
64 # Find the right ranlib, even when cross-compiling
65 # And for some other tools for cross compilation
66 AC_CHECK_TOOL(RANLIB, ranlib)
67 AC_CHECK_TOOL(STRIP, strip)
72 # Add args to configure
78 [enable ccache support for fast recompilation])],
79 [ccache=$enableval], [ccache=no])
85 [disable additional debugging output])],
86 [USE_DEBUG=$enableval], [USE_DEBUG=yes])
92 [enable code optimizing])],
93 [USE_OPTIMIZE=$enableval], [USE_OPTIMIZE=no])
99 [enable code profiling])],
100 [USE_PROFILE=$enableval], [USE_PROFILE=no])
106 [produce a statically linked executable])],
107 [USE_DEBUG_STATIC=$enableval], [USE_DEBUG_STATIC=no])
112 [--disable-monolithic],
113 [disable building of the monolithic aMule app])],
114 [MONOLITHIC=$enableval], [MONOLITHIC=yes])
119 [--enable-amule-daemon],
120 [compile aMule daemon version])],
121 [AMULE_DAEMON=$enableval], [AMULE_DAEMON=no])
127 [compile aMule command line client])],
128 [AMULECMD=$enableval], [AMULECMD=no])
133 [--enable-webserver],
134 [compile aMule WebServer])],
135 [WEB=$enableval], [WEB=no])
140 [--enable-amule-gui],
141 [compile aMule remote GUI (EXPERIMENTAL)])],
142 [AMULE_GUI=$enableval], [AMULE_GUI=no])
148 [compile C aMule Statistics])],
149 [CAS=$enableval], [CAS=no])
155 [compile aMule GUI Statistics])],
156 [WXCAS=$enableval], [WXCAS=no])
162 [don't compile aMule ed2k links handler])],
163 [ED2K=$enableval], [ED2K=yes])
169 [compile aMuleLinkCreator GUI version])],
170 [ALC=$enableval], [ALC=no])
176 [compile aMuleLinkCreator for console])],
177 [ALCC=$enableval], [ALCC=no])
182 [--disable-monolithic],
183 [disable building of the monolithic aMule app])],
184 [MONOLITHIC=$enableval], [MONOLITHIC=yes])
190 [do not compile UPnP code])],
191 [ENABLE_UPNP=$enableval], [ENABLE_UPNP=yes])
197 [compile with GeoIP IP2Country library])],
198 [ENABLE_IP2COUNTRY=$enableval], [ENABLE_IP2COUNTRY=no])
202 AS_HELP_STRING([--with-geoip-headers=DIR],
203 [GeoIP include files location]),
204 [GEOIP_INCLUDE="-I$withval"])
208 AS_HELP_STRING([--with-geoip-lib=DIR],
209 [GeoIP library location]),
210 [GEOIP_LIB="-L$withval $GEOIP_LIB"])
214 AS_HELP_STRING([--with-geoip-static],
215 [Explicitly link GeoIP statically (default=no)]),
216 [if test "$withval" != "no"; then
217 GEOIP_LIB="-Wl,-Bstatic $GEOIP_LIB -Wl,-Bdynamic"
223 [--with-denoise-level=<level>],
224 [Specifies denoising level (0-4):])
225 AS_HELP_STRING([], [0 - Do nothing])
226 AS_HELP_STRING([], [4 - Suppress all normal output])
227 AS_HELP_STRING([], [(for more information see src/utils/scripts/denoiser.rules)])
229 [denoiselevel="$withval"], [denoiselevel=yes])
231 dnl Default is yes, because they're most likely compatible.
232 dnl However, this is only used when cross-compiling.
235 [AS_HELP_STRING([--without-gnu-malloc],
236 [Don't assume that we use GNU libc compatible malloc/realloc when cross-compiling])],
237 [gnumalloc=$withval], [gnumalloc=yes])
241 [AS_HELP_STRING([--with-language=<langs>],
242 [Specify a comma-separated list of languages you want to have installed. See po/LINGUAS for available languages])],
243 [AS_IF([test "$withval" = "all"], [LINGUAS='%UNSET%'], [LINGUAS="`echo $withval | sed -e 's/,/ /g'`"])])
245 # Checking for libs before all other stuff to break
246 # configure as soon as possible in case of a missing one
247 # to avoid losing too much time
249 # Sets gettext version.
250 AM_GNU_GETTEXT_VERSION(0.11.5)
254 AC_CHECK_ZLIB([1.1.4], , [AC_MSG_ERROR([zlib >= 1.1.4 is required for aMule])])
256 if test x$CAS = xyes -o x$WEB = xyes; then
258 AM_OPTIONS_GDLIBCONFIG
259 AM_PATH_GDLIBCONFIG([2.0.0],
262 GDLIB_LIBS="-lgd $GDLIB_LIBS"
265 WARNING: gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
266 Please check that gdlib-config is in your default path, check out
267 LD_LIBRARY_PATH or equivalent variable.
268 Or this might also be that your gdlib-config has other name.
269 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
270 (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
271 If you use compiled packages check if you have devel pack installed.
272 To download the latest version check http://www.boutell.com/gd
283 GDLIB_VERSION="not_needed"
288 AS_IF([test x$WEB = xyes], [AC_CHECK_REGEX(, [WEB=disabled])])
289 if test x$WEB = xyes; then
291 AM_OPTIONS_LIBPNGCONFIG
292 AM_PATH_LIBPNGCONFIG([1.2.0], [AMULEWEB_DEFS="-DWITH_LIBPNG"],
295 WARNING: libpng-devel >= 1.2.0 is needed for amuleweb
306 LIBPNG_VERSION="not_needed"
309 AC_SUBST(AMULEWEB_DEFS)
312 # Check for perl File::Copy
313 AC_MSG_CHECKING([for File::Copy])
314 if perl -e "require File::Copy" 2>/dev/null; then
317 AC_MSG_ERROR([File::Copy perl module is required])
321 # Check if we need the GUI
322 AC_MSG_CHECKING([whether we need the GUI])
323 AS_IF([test x$MONOLITHIC = xyes], [need_gui=yes])
324 AS_IF([test x$WXCAS = xyes], [need_gui=yes])
325 AS_IF([test x$ALC = xyes], [need_gui=yes])
326 AS_IF([test x$AMULE_GUI = xyes], [need_gui=yes])
327 AS_IF([test ${need_gui:+set} != xset], [need_gui=no])
328 AC_MSG_RESULT($need_gui)
331 # Check for GeoIP (required for IP2Country capability)
332 if test x"$ENABLE_IP2COUNTRY" = x"yes" ; then
334 CXXFLAGS="$CXXFLAGS $GEOIP_INCLUDE"
335 LIBS="$LIBS $GEOIP_LIB"
336 AC_CHECK_HEADER(GeoIP.h,,
337 [AC_MSG_ERROR([--enable-geoip passed to configure, but the GeoIP header files were not found])])
338 AC_CHECK_LIB(GeoIP, GeoIP_open,
339 [AC_DEFINE(SUPPORT_GEOIP, 1, Define if you want GeoIP support.)],
340 [AC_MSG_ERROR([--enable-geoip passed to configure, but the GeoIP libraries were not found])])
342 AC_SUBST(GEOIP_INCLUDE)
346 # Check if the compiler is broken, wrt. exceptions.
351 WX_STANDARD_OPTIONS([toolkit,wxshared,wxdebug,wxversion])
352 # Force using a static wxWidgets library if the executable is to be linked statically.
353 AS_IF([test "$USE_DEBUG_STATIC" = "yes"], [WX_SHARED=0])
354 # Force using a unicode build of the library
357 WX_CONVERT_STANDARD_OPTIONS_TO_WXCONFIG_FLAGS
358 WX_CONFIG_CHECK([2.8.0], [wxWin=1],,, [$WXCONFIG_FLAGS])
359 if test "$wxWin" != 1; then
361 wxWidgets must be installed on your system but wx-config
362 script couldn't be found. Please check that wx-config is
363 in path or specified by --with-wx-config=path flag, the
364 directory where wxWidgets libraries are installed (returned
365 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
366 equivalent variable and wxWidgets version is 2.8.0 or above.
369 WX_DETECT_STANDARD_OPTION_VALUES
370 AM_WXCONFIG_LARGEFILE
372 dnl Get flags for windres
373 if test x$SYS = xwin32; then
374 AC_CHECK_TOOL([RC], [windres], [:])
375 AC_ARG_VAR([RC], [Win32 Resource Compiler])
376 RCFLAGS=`$WX_CONFIG_WITH_ARGS --cflags | $AWK ['{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }']`
387 CXXFLAGS="$CXXFLAGS $CRYPTO_PP_CXXFLAGS"
388 LDFLAGS="$LDFLAGS $CRYPTO_PP_LDFLAGS"
389 CRYPTOLIBS="-l$CRYPTO_PP_LIB_NAME"
391 case "$CRYPTO_PP_STYLE" in
392 gentoo_debian | installed | sources)
395 WARNING: crypto++ >= $min_crypto_version is not found.
396 Please check that cryptopp-headers are in your default include path,
397 check out LD_LIBRARY_PATH or equivalent variable.
398 Or this might also be that your cryptopp is installed on other path.
399 Please try again with --with-crypto-prefix=/my_crypto_prefix
400 (replace /my_crypto_prefix with a valid path to your crypto directory).
401 To download the latest version check http://www.cryptopp.com for sources.
406 # Check for CryptoPP >= 5.5
407 if test $CRYPTO_PP_VERSION_NUMBER -ge "5005000"; then
408 CXXFLAGS="$CXXFLAGS -D__WEAK_CRYPTO__"
414 # Check for bfd.h (to have proper backtraces without using wxExecute)
419 # Ok, we have all needed libs, now checking for other stuff
422 if test "$LEX" = "flex"; then
425 HAVE_FLEX_EXTENDED=no
428 # Flush standard test results for speeding cache
431 dnl -------------------------------------------------------------------------------
432 dnl Start of autoscan stuff
433 dnl -------------------------------------------------------------------------------
434 # Checks for header files.
439 AC_CHECK_HEADERS([argz.h arpa/inet.h fcntl.h inttypes.h langinfo.h libintl.h limits.h locale.h malloc.h mntent.h netdb.h netinet/in.h stddef.h nl_types.h stdint.h stdio_ext.h stdlib.h string.h strings.h sys/ioctl.h sys/mount.h sys/param.h sys/resource.h sys/select.h sys/socket.h sys/statvfs.h sys/time.h sys/timeb.h sys/types.h unistd.h])
442 # Checks for typedefs, structures, and compiler characteristics.
453 AC_CHECK_TYPES([ptrdiff_t])
455 # Checks for library functions.
456 AC_FUNC_CLOSEDIR_VOID
459 AC_PROG_GCC_TRADITIONAL
461 if test x$SYS != xwin32; then
463 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
467 AC_FUNC_SELECT_ARGTYPES
468 AC_FUNC_SETVBUF_REVERSED
474 dnl Some other functions that worth checking deeper:
475 dnl AC_FUNC_CLOSEDIR_VOID
480 dnl AC_FUNC_SETVBUF_REVERSED
481 dnl Anyways, do we actually USE them?
482 if test $cross_compiling = yes -a $gnumalloc = yes ; then
484 configure cannot check whether malloc() and realloc() are GNU libc
485 compatible. You have to be ABSOLUTELY sure that they are, otherwise
486 run configure with the --without-gnu-malloc switch.])
487 ac_cv_func_malloc_0_nonnull=yes
488 ac_cv_func_realloc_0_nonnull=yes
492 AC_CHECK_FUNCS([__argz_count __argz_next __argz_stringify endpwent floor ftruncate getcwd gethostbyaddr gethostbyname gethostname getmntent getmntinfo getpass gettimeofday inet_ntoa localeconv memmove mempcpy memset munmap nl_langinfo pow select setlocale socket sqrt stpcpy strcasecmp strchr strcspn strdup strerror strncasecmp strstr strtoul])
493 #-------------------------------------------------------------------------------
494 # End of autoscan stuff
495 #-------------------------------------------------------------------------------
498 dnl autoscan has missed these ones. Maybe because it's win32 stuff?
500 AC_CHECK_FUNCS([mkdir getrlimit setrlimit])
503 CFLAGS="-D_XOPEN_SOURCE=600 $CFLAGS"
507 # Flush standard test results for speeding cache
513 yes) DEBUG_FLAGS="-g -D__DEBUG__ -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC"
514 AS_IF([test x$GCC = xyes], [DEBUG_FLAGS="$DEBUG_FLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"])
515 AS_IF([test x$SYS = xwin32], [RCFLAGS="$RCFLAGS -D__DEBUG__"])
518 AS_IF([test x$GCC = xyes], [DEBUG_FLAGS="$DEBUG_FLAGS -W -Wall -Wshadow -Wundef"])
531 # For proper compilation flags
533 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
535 WXBASE_LIBS=`$WX_CONFIG_WITH_ARGS --libs net`
536 WXBASE_CXXFLAGS="$WX_CXXFLAGS -DwxUSE_GUI=0"
537 WXBASE_CFLAGS="$WX_CFLAGS -DwxUSE_GUI=0"
539 AC_SUBST(WXBASE_LIBS)
540 AC_SUBST(WXBASE_CFLAGS)
541 AC_SUBST(WXBASE_CXXFLAGS)
543 case "$USE_OPTIMIZE" in
544 yes) OPTIMIZE_FLAGS="-O2"
551 case "$USE_PROFILE" in
552 yes) PROFILE_FLAGS="-pg"
558 AC_MSG_CHECKING([if the applications should be statically linked])
559 case "$USE_DEBUG_STATIC" in
560 yes) LDFLAGS="$LDFLAGS -static"
563 AC_MSG_RESULT($USE_DEBUG_STATIC)
565 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
566 AC_MSG_CHECKING([for docdir])
567 if test x"$docdir" = x; then
568 docdir="$datadir"/doc/"$PACKAGE_NAME"-"$PACKAGE_VERSION"
571 AC_MSG_RESULT($docdir)
573 # Try to set the SVN checkout-date
574 AC_MSG_CHECKING([for SVNDATE])
575 if test -f "$srcdir/SVNDATE" # SVNDATE for tarballs
577 svndate=`cat $srcdir/SVNDATE`
578 elif test -d $srcdir/.svn # SVNDATE for svn
580 svndate="rev. `svnversion $srcdir | sed -e 's/[[0-9]][[0-9]]*:\(.*\)/\1/' -e 's/\([[0-9]][[0-9]]*\).*/\1/'`"
582 AC_MSG_RESULT(${svndate:-None required})
583 test "$svndate" && AC_DEFINE_UNQUOTED(SVNDATE, "$svndate", [The checkout date or svn revision number.])
584 test x$SYS = xwin32 && test "$svndate" && RCFLAGS="$RCFLAGS -D__PRERELEASE__"
589 CXXFLAGS="$CXXFLAGS $DEBUG_FLAGS $OPTIMIZE_FLAGS $PROFILE_FLAGS -DUSE_WX_EXTENSIONS"
590 CFLAGS="$CFLAGS $DEBUG_FLAGS $OPTIMIZE_FLAGS $PROFILE_FLAGS -DUSE_WX_EXTENSIONS"
592 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
593 dnl -lpthread is needed by Debian but FreeBSD < 5 doesnt support it
594 if test x$SYS != xwin32; then
595 AC_MSG_CHECKING([if this is a FreeBSD 4 or earlier system])
596 if test x"`uname -s`" = xFreeBSD && test 0`uname -r | cut -c 1` -lt 5; then
597 LDFLAGS="$LDFLAGS -pthread"
600 LDFLAGS="$LDFLAGS -lpthread"
605 if test "$USE_NLS" = "yes" ; then
606 AC_MSG_CHECKING([for requested languages])
607 Generate_Langs=`echo $LINGUAS | $AWK ['OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }']`
608 GENERATE_MANS_TO_INSTALL(AMULE_DAEMON, docs/man/amuled)
609 GENERATE_MANS_TO_INSTALL(AMULECMD, docs/man/amulecmd)
610 GENERATE_MANS_TO_INSTALL(WEB, docs/man/amuleweb)
611 GENERATE_MANS_TO_INSTALL(AMULE_GUI, docs/man/amulegui)
612 GENERATE_MANS_TO_INSTALL(CAS, src/utils/cas/docs/cas)
613 GENERATE_MANS_TO_INSTALL(WXCAS, src/utils/wxCas/docs/wxcas)
614 GENERATE_MANS_TO_INSTALL(ED2K, docs/man/ed2k)
615 GENERATE_MANS_TO_INSTALL(ALC, src/utils/aLinkCreator/docs/alc)
616 GENERATE_MANS_TO_INSTALL(ALCC, src/utils/aLinkCreator/docs/alcc)
617 GENERATE_MANS_TO_INSTALL(MONOLITHIC, docs/man/amule)
618 AC_MSG_RESULT([${LINGUAS:-all}])
624 AC_MSG_CHECKING([denoising level])
625 AS_IF([test "$denoiselevel" = "yes"], [denoiselevel=5])dnl
626 AS_IF([test "$denoiselevel" = "no"], [denoiselevel=0])dnl
627 AS_IF([test $denoiselevel -gt 4], [AS_IF([test "${svndate:+set}" = "set"], [denoiselevel=0], [denoiselevel=4])])dnl
628 AC_MSG_RESULT($denoiselevel)
630 AC_CONFIG_COMMANDS(denoiser, [[ if test $level -gt 0; then
631 if test ! -d src/utils/scripts; then mkdir -p src/utils/scripts; fi
632 sed -e "1{x;s/.*/1/;x;};/^[ ]*\$/d;/^#if /{/level.*$level/{x;s/^/1/;x;b0;};x;s/^/0/;x;:0;d;};/^#else/{x;/^1/{s/1/0/;b1;};s/0/1/;:1;x;d;};/^#endif/{x;s/.//;x;d;};/^[ ]*#/d;x;/^1/{x;b;};x;d" \
633 $srcdir/src/utils/scripts/denoiser.rules > src/utils/scripts/denoiser.sed
634 for i in `find . -name 'Makefile' -print`; do
635 if test -n "`head -n 1 $i | grep '^#'`"; then
636 sed -f src/utils/scripts/denoiser.sed $i > $i.tmp && mv $i.tmp $i
639 fi]], [level=$denoiselevel])
642 AM_CONDITIONAL(WEB, test x$WEB = xyes)
643 AM_CONDITIONAL(ED2K, test x$ED2K = xyes)
644 AM_CONDITIONAL(CAS, test x$CAS = xyes)
645 AM_CONDITIONAL(WXCAS, test x$WXCAS = xyes)
646 AM_CONDITIONAL(ALC, test x$ALC = xyes)
647 AM_CONDITIONAL(ALCC, test x$ALCC = xyes)
648 AM_CONDITIONAL(AMULE_GUI, test x$AMULE_GUI = xyes)
649 AM_CONDITIONAL(AMULE_DAEMON, test x$AMULE_DAEMON = xyes)
650 AM_CONDITIONAL(COMPILE_CMD, test x$AMULECMD = xyes)
651 AM_CONDITIONAL(MONOLITHIC, test x$MONOLITHIC = xyes)
652 AM_CONDITIONAL(ENABLE_UPNP, test x$ENABLE_UPNP = xyes -a x$SYS != xwin32)
653 AM_CONDITIONAL(ENABLE_IP2COUNTRY, test x$ENABLE_IP2COUNTRY = xyes)
654 AM_CONDITIONAL(SYS_WIN32, test x$SYS = xwin32)
655 AM_CONDITIONAL(NEED_RC, test x$SYS = xwin32 -a "$RC" != ":")
656 AM_CONDITIONAL(NEED_CORESERVICES, test x$SYS = xdarwin)
657 AM_CONDITIONAL(COMPILE_NLS, test x$USE_NLS = xyes)
658 AM_CONDITIONAL(GENERATE_FLEX_HEADER, test x$HAVE_FLEX_EXTENDED = xyes)
661 dnl Check for readline library
663 if test x$AMULECMD = xyes -o x$WEB = xyes; then
667 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
669 AM_OPTIONS_CCACHE_PFX
671 AC_MSG_CHECKING([whether ccache support should be added])
672 AC_MSG_RESULT($ccache)
679 if [[ $CCACHE = 0 ]]; then
680 GCC="$ccache_prefix/ccache $GCC"
681 CC="$ccache_prefix/ccache $CC"
682 GXX="$ccache_prefix/ccache $GXX"
683 CXX="$ccache_prefix/ccache $CXX"
684 BUILD_CC="$ccache_prefix/ccache $BUILD_CC"
689 dnl Generate the Makefiles
691 AC_CONFIG_FILES([Makefile
697 src/pixmaps/flags_xpm/Makefile
700 src/libs/ec/cpp/Makefile
701 src/libs/common/Makefile
703 src/utils/aLinkCreator/Makefile
704 src/utils/aLinkCreator/docs/Makefile
705 src/utils/aLinkCreator/src/Makefile
706 src/utils/cas/Makefile
707 src/utils/cas/docs/Makefile
708 src/utils/fileview/Makefile
709 src/utils/wxCas/Makefile
710 src/utils/wxCas/docs/Makefile
711 src/utils/wxCas/src/Makefile
712 src/utils/xas/Makefile
713 src/utils/xas/autostart-xas
714 src/utils/xas/docs/Makefile
716 src/webserver/Makefile
717 src/webserver/src/Makefile
718 src/webserver/default/Makefile
719 src/webserver/php-default/Makefile
720 src/webserver/chicane/Makefile
721 src/webserver/litoral/Makefile
723 unittests/muleunit/Makefile
724 unittests/tests/Makefile])
726 dnl autoscan has missed these, i wonder why...
728 AC_CONFIG_FILES([po/Makefile.in
730 AS_IF([test x$SYS = xwin32], [AC_CONFIG_FILES([version.rc])])
735 echo " Configure script has finished system check."
737 echo " Configured aMule ${PACKAGE_VERSION} for '${host}'."
739 echo " aMule enabled options:"
741 echo " **** aMule Core ****"
742 echo " Prefix where aMule should be installed? ${prefix:-none}"
743 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
744 echo " Should aMule be compiled in debug mode? ${USE_DEBUG:-no}"
745 echo " Should aMule be compiled with profiling? ${USE_PROFILE:-no}"
746 echo " Should aMule be compiled with optimizations? ${USE_OPTIMIZE:-no}"
747 echo " Should aMule be compiled with UPnP support? ${ENABLE_UPNP:-yes}"
748 echo " Should aMule be compiled with IP2country support? ${ENABLE_IP2COUNTRY:-yes}"
749 echo " Should aMule monolithic application be built? ${MONOLITHIC:-yes}"
750 echo " Should aMule daemon version be built? ${AMULE_DAEMON:-no}"
751 echo " Should aMule remote gui be built? (EXPERIMENTAL) ${AMULE_GUI:-no}"
752 echo " Crypto++ library/headers style? ${CRYPTO_PP_STYLE:-not found}"
755 echo " **** aMule TextClient ****"
756 echo " Should aMule Command Line Client be built? ${AMULECMD:-no}"
758 echo " **** aMule WebServer ****"
759 echo " Should aMule WebServer be built? ${WEB:-no}"
761 echo " **** aMule ED2K Links Handler ****"
762 echo " Should aMule ED2K Links Handler be built? ${ED2K:-yes}"
764 echo " **** aMuleLinkCreator ****"
765 echo " Should aMuleLinkCreator GUI version (alc) be built? ${ALC:-no}"
766 echo " Should aMuleLinkCreator for console (alcc) be built? ${ALCC:-no}"
768 echo " **** aMule Statistics ****"
769 echo " Should C aMule Statistics (CAS) be built? ${CAS:-no}"
770 echo " Should aMule GUI Statistics (wxCas) be built? ${WXCAS:-no}"
773 echo " **** General Libraries and Tools ****"
774 echo " Should ccache support be enabled? ${ccache:-no}"
775 echo " Libraries aMule will use to build:"
777 AS_IF([test $WX_DEBUG -eq 1], [wxinfo="$wxinfo,debug"])
778 AS_IF([test $WX_SHARED -eq 1], [wxinfo="$wxinfo,shared"], [wxinfo="$wxinfo,static"])
779 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
780 echo " crypto++ ${CRYPTO_PP_VERSION_STRING} (${CRYPTO_PP_STYLE})"
781 if test x${WEB:-no} != xno; then
782 AS_IF([test $regex_found = no], [regex_found="Not detected"],
783 [AS_IF([test x$REGEX_LIB = x], [regex_found=system], [regex_found="standalone (in $REGEX_LIB)"])])
784 echo " regex $regex_found"
786 if test x$LIBPNG_VERSION != xnot_needed; then
787 echo " libpng ${LIBPNG_VERSION:-Not detected}"
789 if test x$GDLIB_VERSION != xnot_needed; then
790 echo " libgd ${GDLIB_VERSION:-Not detected}"
792 echo " zlib ${ZLIB_VERSION:-Not detected}"
793 if test x$WEB = xdisabled; then
796 echo "WARNING! amuleweb has been disabled because configure could not find"
797 echo "a POSIX compliant regex library."
800 if test x"$LIBPNG_VERSION" = x""; then
803 echo " WARNING! libpng >= 1.2.0 not found."
804 echo " amuleweb will be compiled but file download progress bar images will NOT be generated."