1 # This file is part of GNUnet.
2 # (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Christian Grothoff (and other contributing authors)
4 # GNUnet is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published
6 # by the Free Software Foundation; either version 2, or (at your
7 # option) any later version.
9 # GNUnet is distributed in the hope that it will be useful, but
10 # WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with GNUnet; see the file COPYING. If not, write to the
16 # Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 # Boston, MA 02111-1307, USA.
20 # Process this file with autoconf to produce a configure script.
24 AC_INIT([gnunet], [0.9.0pre0],[bug-gnunet@gnu.org])
25 AM_INIT_AUTOMAKE([gnunet], [0.9.0pre0])
26 AC_CONFIG_HEADERS([gnunet_config.h])
28 AH_TOP([#define _GNU_SOURCE 1])
30 # Checks for programs.
41 LT_CONFIG_LTDL_DIR([libltdl])
43 LT_INIT([disable-static dlopen win32-dll])
54 if test "$enable_shared" = "no"
56 AC_MSG_ERROR([GNUnet only works with shared libraries. Sorry.])
59 CFLAGS="-Wall $CFLAGS"
60 # use '-fno-strict-aliasing', but only if the compiler can take it
61 if gcc -fno-strict-aliasing -S -o /dev/null -xc /dev/null >/dev/null 2>&1;
63 CFLAGS="-fno-strict-aliasing $CFLAGS"
66 # Use Linux interface name unless the OS has a different preference
67 DEFAULT_INTERFACE="\"eth0\""
71 *darwin* | *rhapsody* | *macosx*)
72 AC_DEFINE_UNQUOTED(OSX,1,[This is an OS X system])
73 CFLAGS="-no-cpp-precomp -fno-common $CFLAGS"
74 AC_MSG_WARN([The VPN application cannot be compiled on your OS])
76 DEFAULT_INTERFACE="\"en0\""
81 AC_DEFINE_UNQUOTED(LINUX,1,[This is a Linux system])
88 AC_DEFINE_UNQUOTED(SOMEBSD,1,[This is a BSD system])
89 AC_DEFINE_UNQUOTED(FREEBSD,1,[This is a FreeBSD system])
90 CFLAGS="-D_THREAD_SAFE $CFLAGS"
91 build_target="freebsd"
96 AC_DEFINE_UNQUOTED(SOMEBSD,1,[This is a BSD system])
97 AC_DEFINE_UNQUOTED(OPENBSD,1,[This is an OpenBSD system])
98 LIBS=`echo $LIBS | sed -e "s/-ldl//"`
99 build_target="openbsd"
104 AC_DEFINE_UNQUOTED(SOMEBSD,1,[This is a BSD system])
105 AC_DEFINE_UNQUOTED(NETBSD,1,[This is a NetBSD system])
110 AC_DEFINE_UNQUOTED(SOLARIS,1,[This is a Solaris system])
111 AC_DEFINE_UNQUOTED(_REENTRANT,1,[Need with solaris or errno doesnt work])
112 AC_CHECK_LIB(resolv, res_init)
113 AC_CHECK_LIB(rt, nanosleep)
114 build_target="solaris"
119 AC_DEFINE_UNQUOTED(LINUX,1,[This is a Linux system])
120 CFLAGS="-D_REENTRANT -fPIC -pipe $CFLAGS"
126 AC_DEFINE_UNQUOTED(CYGWIN,1,[This is a Cygwin system])
127 AC_DEFINE_UNQUOTED(WINDOWS,1,[This is a Windows system])
128 AC_CHECK_LIB(intl, gettext)
129 LDFLAGS="$LDFLAGS -no-undefined"
130 CFLAGS="-mms-bitfields $CFLAGS"
131 build_target="cygwin"
137 AC_DEFINE_UNQUOTED(MINGW,1,[This is a MinGW system])
138 AC_DEFINE_UNQUOTED(WINDOWS,1,[This is a Windows system])
139 AC_DEFINE_UNQUOTED(_WIN32,1,[This is a Windows system])
140 AC_CHECK_LIB(intl, gettext)
141 LDFLAGS="$LDFLAGS -no-undefined -Wl,--export-all-symbols"
142 LIBS="$LIBS -lws2_32 -lplibc"
143 CFLAGS="-mms-bitfields $CFLAGS"
150 AC_MSG_RESULT(Unrecognised OS $host_os)
151 AC_DEFINE_UNQUOTED(OTHEROS,1,[Some strange OS])
154 AC_DEFINE_UNQUOTED([GNUNET_DEFAULT_INTERFACE], $DEFAULT_INTERFACE, [This should be the default choice for the name of the first network interface])
155 AC_SUBST(DEFAULT_INTERFACE)
157 AC_MSG_CHECKING([for build target])
158 AM_CONDITIONAL(MACOSX, test "$build_target" = "macosx")
159 AM_CONDITIONAL(CYGWIN, test "$build_target" = "cygwin")
160 AM_CONDITIONAL(MINGW, test "$build_target" = "mingw")
161 AM_CONDITIONAL(SOLARIS, test "$build_target" = "solaris")
162 AM_CONDITIONAL(XFREEBSD, test "$build_target" = "freebsd")
163 AM_CONDITIONAL(OPENBSD, test "$build_target" = "openbsd")
164 AM_CONDITIONAL(LINUX, test "$build_target" = "linux")
165 AC_MSG_RESULT([$build_target])
166 AC_SUBST(build_target)
167 AM_CONDITIONAL([am__fastdepOBJC], false)
168 AC_UNALIGNED_64_ACCESS
170 # some other checks for standard libs
171 AC_SEARCH_LIBS([gethostbyname], [nsl ws2_32])
172 AC_CHECK_LIB(socket, socket)
174 AC_CHECK_LIB(c, getloadavg, AC_DEFINE(HAVE_GETLOADAVG,1,[getloadavg supported]))
176 # 'save' libs; only those libs found so far will be
177 # linked against _everywhere_. For the others, we
178 # will be more selective!
183 AM_PATH_LIBGCRYPT(1.2.0, gcrypt=1)
187 AC_MSG_ERROR([GNUnet needs libgcrypt])
192 LIBCURL_CHECK_CONFIG(,7.15.4,,AC_MSG_ERROR([GNUnet requires libcurl >= 7.15.4]))
199 # test for kvm and kstat (for CPU stats under BSD/Solaris)
200 AC_CHECK_LIB([kvm],[kvm_open])
201 AC_CHECK_LIB([kstat],[kstat_open])
203 # test for libextractor
205 AC_MSG_CHECKING(for libextractor)
206 AC_ARG_WITH(extractor,
207 [ --with-extractor=PFX base of libextractor installation],
208 [AC_MSG_RESULT([$with_extractor])
209 case $with_extractor in
213 AC_CHECK_HEADERS(extractor.h,
214 AC_CHECK_LIB([extractor], [EXTRACTOR_loadDefaultLibraries],
218 LDFLAGS="-L$with_extractor/lib $LDFLAGS"
219 CPPFLAGS="-I$with_extractor/include $CPPFLAGS"
220 AC_CHECK_HEADERS(extractor.h,
221 AC_CHECK_LIB([extractor], [EXTRACTOR_loadDefaultLibraries],
222 EXT_LIB_PATH="-L$with_extractor/lib $EXT_LIB_PATH"
227 [AC_MSG_RESULT([--with-extractor not specified])
228 AC_CHECK_HEADERS(extractor.h,
229 AC_CHECK_LIB([extractor], [EXTRACTOR_loadDefaultLibraries],
231 if test "$extractor" != 1
233 AC_MSG_ERROR([GNUnet requires libextractor])
239 # Checks for standard header files.
243 # Check for headers that are ALWAYS required
244 AC_CHECK_HEADERS([fcntl.h math.h errno.h ctype.h limits.h stdio.h stdlib.h string.h unistd.h stdarg.h signal.h locale.h sys/stat.h sys/types.h],,AC_MSG_ERROR([Compiling GNUnet requires standard UNIX headers files]))
246 # Checks for headers that are only required on some systems or opional (and where we do NOT abort if they are not there)
247 AC_CHECK_HEADERS([langinfo.h sys/param.h sys/mount.h sys/statvfs.h sys/select.h sockLib.h sys/mman.h sys/msg.h sys/vfs.h arpa/inet.h fcntl.h libintl.h netdb.h netinet/in.h sys/ioctl.h sys/socket.h sys/time.h unistd.h kstat.h sys/sysinfo.h kvm.h sys/file.h sys/resource.h iconv.h ifaddrs.h mach/mach.h stddef.h sys/timeb.h terminos.h])
249 # Check for GMP header (and abort if not present)
250 AC_CHECK_HEADERS([gmp.h],,AC_MSG_ERROR([Compiling GNUnet requires gmp.h (from the GNU MP library, libgmp)]))
254 AC_MSG_CHECKING(for libgmp)
256 [ --with-gmp=PFX base of libgmp installation],
257 [AC_MSG_RESULT([$with_gmp])
262 AC_CHECK_HEADERS(gmp.h,
263 AC_CHECK_LIB([gmp], [__gmpz_add],
267 LDFLAGS="-L$with_gmp/lib $LDFLAGS"
268 CPPFLAGS="-I$with_gmp/include $CPPFLAGS"
269 AC_CHECK_HEADERS(gmp.h,
270 AC_CHECK_LIB([gmp], [__gmpz_add],
271 EXT_LIB_PATH="-L$with_gmp/lib $EXT_LIB_PATH"
276 [AC_MSG_RESULT([--with-gmp not specified])
277 AC_CHECK_HEADERS(gmp.h,
278 AC_CHECK_LIB([gmp], [__gmpz_add],
282 AC_MSG_ERROR([GNUnet requires libgmp])
285 SAVE_LDFLAGS=$LDFLAGS
286 SAVE_CPPFLAGS=$CPPFLAGS
290 AC_MSG_CHECKING(for SQLite)
292 [ --with-sqlite=PFX base of SQLite installation],
293 [AC_MSG_RESULT("$with_sqlite")
298 AC_CHECK_HEADERS(sqlite3.h,
302 LDFLAGS="-L$with_sqlite/lib $LDFLAGS"
303 CPPFLAGS="-I$with_sqlite/include $CPPFLAGS"
304 AC_CHECK_HEADERS(sqlite3.h,
305 EXT_LIB_PATH="-L$with_sqlite/lib $EXT_LIB_PATH"
306 SQLITE_LDFLAGS="-L$with_sqlite/lib"
307 SQLITE_CPPFLAGS="-I$with_sqlite/include"
309 LDFLAGS=$SAVE_LDFLAGS
310 CPPFLAGS=$SAVE_CPPFLAGS
314 [AC_MSG_RESULT([--with-sqlite not specified])
315 AC_CHECK_HEADERS(sqlite3.h, sqlite=true)])
316 AM_CONDITIONAL(HAVE_SQLITE, test x$sqlite = xtrue)
317 AC_SUBST(SQLITE_CPPFLAGS)
318 AC_SUBST(SQLITE_LDFLAGS)
322 AC_MSG_CHECKING(for postgres)
323 AC_ARG_WITH(postgres,
324 [ --with-postgres=PFX base of postgres installation],
325 [AC_MSG_RESULT("$with_postgres")
326 case $with_postgres in
330 AC_CHECK_HEADERS(postgresql/libpq-fe.h,
334 LDFLAGS="-L$with_postgres/lib $LDFLAGS"
335 CPPFLAGS="-I$with_postgres/include $CPPFLAGS"
336 AC_CHECK_HEADERS(postgresql/libpq-fe.h,
337 EXT_LIB_PATH="-L$with_postgres/lib $EXT_LIB_PATH"
338 SQLITE_LDFLAGS="-L$with_postgres/lib"
339 SQLITE_CPPFLAGS="-I$with_postgres/include"
341 LDFLAGS=$SAVE_LDFLAGS
342 CPPFLAGS=$SAVE_CPPFLAGS
346 [AC_MSG_RESULT([--with-postgres not specified])
347 AC_CHECK_HEADERS(postgresql/libpq-fe.h, postgres=true)])
348 AM_CONDITIONAL(HAVE_POSTGRES, test x$postgres = xtrue)
349 AC_SUBST(POSTGRES_CPPFLAGS)
350 AC_SUBST(POSTGRES_LDFLAGS)
353 # test for libz (maybe required for linking mysql)
355 AC_CHECK_LIB(z, compress,,zlib=0)
356 AM_CONDITIONAL(HAVE_ZLIB, test x$zlib = x1)
359 AC_MSG_ERROR([GNUnet requires zlib])
363 AC_CHECK_TYPES([sigset_t, off_t], [], [], [#include <sys/types.h>])
364 AC_CHECK_TYPES([size_t], [], [], [#include <stdio.h>])
366 if test "$build_target" = "mingw"
368 CYGWIN_MYSQL_MAGIC="#include <mysql/my_global.h>"
374 SAVE_LDFLAGS=$LDFLAGS
375 SAVE_CPPFLAGS=$CPPFLAGS
376 AC_MSG_CHECKING(for mysql)
378 [ --with-mysql=PFX base of MySQL installation],
379 [AC_MSG_RESULT("$with_mysql")
380 if test "$with_mysql" != "no"
382 if test "$with_mysql" != "yes"
384 LDFLAGS="-L$with_mysql/lib -L$with_mysql/lib/mysql $LDFLAGS $ZLIBS"
385 CPPFLAGS="-I$with_mysql/include $CPPFLAGS"
387 AC_CHECK_HEADERS(mysql/mysql.h,
388 AC_CHECK_LIB(mysqlclient, mysql_init,
389 MYSQL_LDFLAGS="-L$with_mysql/lib -L$with_mysql/lib/mysql"
390 MYSQL_CPPFLAGS="-I$with_mysql/include"
392 mysql=true), [], [$CYGWIN_MYSQL_MAGIC])
395 [AC_MSG_RESULT([--with-mysql not specified])
396 LDFLAGS="-L/usr/lib/mysql $LDFLAGS $ZLIBS"
397 AC_CHECK_LIB(mysqlclient, mysql_init,
398 [AC_CHECK_HEADERS(mysql/mysql.h,
399 MYSQL_LDFLAGS="-L/usr/lib/mysql"
402 , [], [$CYGWIN_MYSQL_MAGIC])])
405 AC_SUBST(MYSQL_LDFLAGS)
406 AC_SUBST(MYSQL_CPPFLAGS)
408 # additional version check for mysql
409 AC_ARG_ENABLE(mysql-version-check, [ --disable-mysql-version-check do not check MySQL version],, enable_mysql_version_check=yes)
410 if test "$mysql" = "true" -a "x$enable_mysql_version_check" = "xyes"
412 AC_MSG_CHECKING(mysql version)
413 AC_RUN_IFELSE([AC_LANG_PROGRAM(
414 [[$CYGWIN_MYSQL_MAGIC
415 #include <mysql/mysql.h>]],
416 [[if (MYSQL_VERSION_ID < 40100)
421 ],mysql=true,mysql=false)
422 if test "$mysql" = "false"
425 AC_MSG_RESULT([fail, >= 4.1 required])
430 AM_CONDITIONAL(HAVE_MYSQL, test x$mysql = xtrue)
431 AM_CONDITIONAL(HAVE_MYSQLE, test "0" = "1")
434 LDFLAGS=$SAVE_LDFLAGS
435 CPPFLAGS=$SAVE_CPPFLAGS
437 if test "$sqlite" = 0 -a "$mysql" = 0
439 AC_MSG_ERROR([GNUnet requires SQLite or MySQL])
445 AC_CHECK_LIB([ncursesw],[wmove])
446 AC_MSG_CHECKING([for dialog 1.0-20051207])
448 [ --with-dialog=PFX base of dialog installation],
449 [AC_MSG_RESULT([$with_dialog])
454 AC_CHECK_HEADERS(dialog.h,
455 AC_CHECK_LIB([dialog], [dlg_menu],
459 LDFLAGS="-L$with_dialog/lib $LDFLAGS"
460 CPPFLAGS="-I$with_dialog/include $CPPFLAGS"
461 AC_CHECK_HEADERS(dialog.h,
462 AC_CHECK_LIB([dialog], [dlg_menu],
463 EXT_LIB_PATH="-L$with_dialog/lib $EXT_LIB_PATH"
468 [AC_MSG_RESULT([--with-dialog not specified])
469 AC_CHECK_HEADERS(dialog.h,
470 AC_CHECK_LIB([dialog], [dlg_menu],
473 AM_CONDITIONAL(HAVE_DIALOG, test x$dialog = x1)
474 AC_DEFINE_UNQUOTED([HAVE_DIALOG], $dialog, [We have dialog])
478 [ --with-cdialog=PFX base of cdialog installation],
479 [AC_MSG_RESULT([$with_cdialog])
480 case $with_cdialog in
484 AC_CHECK_HEADERS(cdialog/dialog.h,
485 AC_CHECK_LIB([cdialog], [dlg_menu],
489 LDFLAGS="-L$with_cdialog/lib $LDFLAGS"
490 CPPFLAGS="-I$with_cdialog/include $CPPFLAGS"
491 AC_CHECK_HEADERS(cdialog/dialog.h,
492 AC_CHECK_LIB([cdialog], [dlg_menu],
493 EXT_LIB_PATH="-L$with_cdialog/lib $EXT_LIB_PATH"
498 [AC_MSG_RESULT([--with-cdialog not specified])
499 AC_CHECK_HEADERS(cdialog/dialog.h,
500 AC_CHECK_LIB([cdialog], [dlg_menu],
503 AM_CONDITIONAL(HAVE_CDIALOG, test x$cdialog = x1)
504 AC_DEFINE_UNQUOTED([HAVE_CDIALOG], $cdialog, [We have cdialog])
510 AC_MSG_CHECKING([for libmicrohttpd])
511 AC_ARG_WITH(microhttpd,
512 [ --with-microhttpd=PFX base of libmicrohttpd installation],
513 [AC_MSG_RESULT([$with_microhttpd])
514 case $with_microhttpd in
518 AC_CHECK_HEADERS([microhttpd.h],
519 AC_CHECK_DECL(MHD_OPTION_PER_IP_CONNECTION_LIMIT,
520 AC_CHECK_LIB([microhttpd], [MHD_start_daemon],
522 [],[#include "src/include/platform.h"
523 #include <microhttpd.h>]),,
524 [#include "src/include/platform.h"])
527 LDFLAGS="-L$with_microhttpd/lib $LDFLAGS"
528 CPPFLAGS="-I$with_microhttpd/include $CPPFLAGS"
529 AC_CHECK_HEADERS(microhttpd.h,
530 AC_CHECK_DECL(MHD_OPTION_PER_IP_CONNECTION_LIMIT,
531 AC_CHECK_LIB([microhttpd], [MHD_start_daemon],
532 EXT_LIB_PATH="-L$with_microhttpd/lib $EXT_LIB_PATH"
534 [],[#include "src/include/platform.h"
535 #include <microhttpd.h>]),,
536 [#include "src/include/platform.h"])
540 [AC_MSG_RESULT([--with-microhttpd not specified])
541 AC_CHECK_HEADERS([microhttpd.h],
542 AC_CHECK_DECL(MHD_OPTION_PER_IP_CONNECTION_LIMIT,
543 AC_CHECK_LIB([microhttpd], [MHD_start_daemon],
545 [],[#include "src/include/platform.h"
546 #include <microhttpd.h>]),,
547 [#include "src/include/platform.h"])])
548 AM_CONDITIONAL(HAVE_MHD, test x$lmhd = x1)
549 AC_DEFINE_UNQUOTED([HAVE_MHD], $lmhd, [We have libmicrohttpd])
555 AC_MSG_CHECKING([for libesmtp])
557 [ --with-esmtp=PFX base of libesmtp installation],
558 [AC_MSG_RESULT([$with_esmtp])
563 AC_CHECK_HEADERS(libesmtp.h,
564 AC_CHECK_LIB([esmtp], [smtp_start_session],
568 LDFLAGS="-L$with_esmtp/lib $LDFLAGS"
569 CPPFLAGS="-I$with_esmtp/include $CPPFLAGS"
570 AC_CHECK_HEADERS(libesmtp.h,
571 AC_CHECK_LIB([esmtp], [smtp_start_session],
572 EXT_LIB_PATH="-L$with_esmtp/lib $EXT_LIB_PATH"
577 [AC_MSG_RESULT([--with-esmtp not specified])
578 AC_CHECK_HEADERS(libesmtp.h,
579 AC_CHECK_LIB([esmtp], [smtp_start_session],
581 AM_CONDITIONAL(HAVE_ESMTP, test x$esmtp = x1)
582 AC_DEFINE_UNQUOTED([HAVE_ESMTP], $esmtp, [We have libesmtp])
587 AM_GNU_GETTEXT_VERSION([0.16.1])
588 AM_GNU_GETTEXT([external])
593 # Checks for standard typedefs, structures, and compiler characteristics.
606 # Checks for library functions.
607 AC_FUNC_CLOSEDIR_VOID
609 AC_PROG_GCC_TRADITIONAL
611 AC_FUNC_SELECT_ARGTYPES
621 AC_CHECK_FUNCS([floor gethostname memmove rmdir strncasecmp strrchr strtol atoll dup2 fdatasync ftruncate gettimeofday memset mkdir mkfifo select socket strcasecmp strchr strdup strerror strstr clock_gettime getrusage rand uname setlocale getcwd mktime gmtime_r gmtime strlcpy strlcat ftruncate stat64 sbrk mmap mremap setrlimit gethostbyaddr initgroups getifaddrs freeifaddrs getnameinfo getaddrinfo inet_ntoa localtime_r nl_langinfo putenv realpath strndup gethostbyname2 gethostbyname])
630 AC_MSG_CHECKING(for guile 1.8)
632 [ --with-guile=PFX base of guile installation],
633 [AC_MSG_RESULT([$with_guile])
638 AC_CHECK_HEADERS(libguile.h,
639 AC_CHECK_LIB([guile], [scm_c_define_gsubr],
644 LDFLAGS="-L$with_guile/lib $LDFLAGS"
645 CPPFLAGS="-I$with_guile/include $CPPFLAGS"
646 AC_CHECK_HEADERS(libguile.h,
647 AC_CHECK_LIB([guile], [scm_c_define_gsubr],
648 EXT_LIB_PATH="-L$with_guile/lib $EXT_LIB_PATH"
654 [AC_MSG_RESULT([--with-guile not specified])
655 AC_CHECK_HEADERS(libguile.h,
656 AC_CHECK_LIB([guile], [scm_c_define_gsubr],
657 guile=1, [], -lgmp $LIBLTDL))])
661 AC_CHECK_LIB([guile], [scm_init_guile], [],
662 AC_MSG_ERROR([Guile doesn't provide scm_init_guile(). Please report to bug-gnunet@gnu.org]), -lgmp $LIBLTDL)
663 AC_DEFINE_UNQUOTED([HAVE_GUILE], 1, [We have GUILE])
665 AC_DEFINE_UNQUOTED([HAVE_GUILE], 0, [We do NOT have GUILE])
667 AM_CONDITIONAL(HAVE_GUILE, test x$guile = x1)
671 gn_user_home_dir="~/.gnunet"
672 AC_ARG_WITH(user-home-dir,
674 [--with-user-home-dir=DIR],
675 [default user home directory (~/.gnunet)]),
676 [gn_user_home_dir=$withval])
677 AC_SUBST(GN_USER_HOME_DIR, $gn_user_home_dir)
678 gn_daemon_home_dir="/var/lib/gnunet"
679 AC_ARG_WITH(daemon-home-dir,
681 [--with-daemon-home-dir=DIR],
682 [default daemon home directory (/var/lib/gnunet)]),
683 [gn_daemon_home_dir=$withval])
684 AC_SUBST(GN_DAEMON_HOME_DIR, $gn_daemon_home_dir)
685 gn_daemon_config_dir="/etc"
686 AC_ARG_WITH(daemon-config-dir,
688 [--with-daemon-config-dir=DIR],
689 [default daemon config directory (/etc)]),
690 [gn_daemon_config_dir=$withval])
691 AC_SUBST(GN_DAEMON_CONFIG_DIR, $gn_daemon_config_dir)
692 gn_daemon_pidfile="/var/run/gnunetd/pid"
693 AC_ARG_WITH(daemon-pidfile,
695 [--with-daemon-pidfile=FILE],
696 [default daemon pidfile (/var/run/gnunetd/pid)]),
697 [gn_daemon_pidfile=$withval])
698 AC_SUBST(GN_DAEMON_PIDFILE, $gn_daemon_pidfile)
701 GN_LIBINTL="$LTLIBINTL"
702 AC_ARG_ENABLE(framework, [ --enable-framework enable Mac OS X framework build helpers],enable_framework_build=$enableval)
703 AM_CONDITIONAL(WANT_FRAMEWORK, test x$enable_framework_build = xyes)
704 if test x$enable_framework_build = xyes
706 AC_DEFINE([FRAMEWORK_BUILD], 1, [Build a Mac OS X Framework])
707 GN_INTLINCL='-I$(top_srcdir)/src/intlemu'
708 GN_LIBINTL='$(top_builddir)/src/intlemu/libintlemu.la -framework CoreFoundation'
709 AC_LIB_APPENDTOVAR([CPPFLAGS], [$GN_INTLINCL])
712 GN_LIB_LDFLAGS="-export-dynamic -no-undefined"
713 GN_PLUGIN_LDFLAGS="-export-dynamic -avoid-version -module -no-undefined"
715 AC_SUBST(GN_LIB_LDFLAGS)
716 AC_SUBST(GN_PLUGIN_LDFLAGS)
717 AC_SUBST(GN_INTLINCL)
723 AC_SUBST(EXT_LIB_PATH)
728 AC_SUBST(EXT_LIB_PATH)
733 AC_ARG_ENABLE([coverage], AS_HELP_STRING([--enable-coverage],
734 [Compile the library with code coverage support (default is NO)]),
735 [use_gcov=yes], [use_gcov=no])
736 AM_CONDITIONAL([USE_COVERAGE], [test "x$use_gcov" = "xyes"])
748 src/datastore/Makefile
749 src/fragmentation/Makefile
752 src/include/gnunet_directories.h
753 src/hostlist/Makefile
754 src/peerinfo/Makefile
755 src/resolver/Makefile
756 src/statistics/Makefile
757 src/template/Makefile
759 src/topology/Makefile
760 src/transport/Makefile
767 # warn user if mysql found but not used due to version
768 if test "$mysqlfail" = "true"
770 AC_MSG_NOTICE([NOTICE: MySQL found, but too old. MySQL support will not be compiled.])
774 if test "x$sqlite" = "x0"
776 AC_MSG_NOTICE([NOTICE: sqlite not found. sqLite support will not be compiled.])
779 if test "x$dialog" != "x1" -a "x$cdialog" != "x1"
781 AC_MSG_NOTICE([NOTICE: curses based gnunet-setup frontends will not be installed.])
784 if test "x$lmhd" != "x1"
786 AC_MSG_NOTICE([NOTICE: libmicrohttpd not found, http transport will not be installed.])
789 AC_MSG_NOTICE([NOTICE: Database support is set to MySQL: $mysql, SQLite: $sqlite])
792 if test "x$guile" = "x0"
794 AC_MSG_NOTICE([WARNING: Guile not found, gnunet-setup will not be installed.])
797 if test "$enable_framework_build" = "yes"
799 AC_MSG_NOTICE([NOTICE: Mac OS X framework build enabled.])
802 AC_MSG_NOTICE([********************************************
803 You can build GNUnet with
805 now. After that, install gnunet-gtk or gnunet-qt and run
806 gnunet-setup -d wizard-gtk
807 (on graphical systems with GTK) or
808 gnunet-setup -d wizard-qt
809 (on graphical systems with QT) or
810 gnunet-setup -d wizard-curses
811 (on text-based systems with curses) in order to make important configuration
812 settings. If neither works for you, you can find a template configuration
813 file in the contrib/ subdirectory. Copy it to /etc/gnunetd.conf and modify it
814 using your favourite text editor.
815 ********************************************])