1 dnl $Id: configure.in,v 1.179.2.3.2.14 2003-12-12 19:29:55 didg Exp $
2 dnl configure.in for netatalk
4 AC_INIT(etc/afpd/main.c)
6 NETATALK_VERSION=`cat $srcdir/VERSION`
7 AC_SUBST(NETATALK_VERSION)
10 AM_INIT_AUTOMAKE(netatalk, ${NETATALK_VERSION})
11 AM_CONFIG_HEADER(config.h)
13 dnl Checks for programs.
25 dnl *********************************************************************
26 dnl FIXME! FIXME! These should be selectable properly, and should produce
27 dnl the proper flags and defines...
28 dnl *********************************************************************
30 ############################################
31 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the plugin loading code
32 #AC_SEARCH_LIBS(dlopen, [dl])
33 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
35 dnl Checks for libraries.
36 dnl Replace `main' with a function in -labs:
37 dnl AC_CHECK_LIB(abs, main)
38 dnl Replace `main' with a function in -laudit:
39 dnl AC_CHECK_LIB(audit, main)
40 dnl Replace `main' with a function in -lauth:
41 dnl AC_CHECK_LIB(auth, main)
42 dnl Replace `main' with a function in -lcmd:
43 dnl AC_CHECK_LIB(cmd, main)
44 dnl Replace `main' with a function in -lcrypt:
45 dnl AC_CHECK_LIB(crypt, main)
46 dnl Replace `main' with a function in -ld:
47 dnl AC_CHECK_LIB(d, main)
48 dnl Replace `main' with a function in -ldl:
49 AC_CHECK_LIB(dl, dlopen)
50 dnl Replace `main' with a function in -lkauth:
51 dnl AC_CHECK_LIB(kauth, main)
52 dnl Replace `main' with a function in -lkrb:
53 dnl AC_CHECK_LIB(krb, main)
54 dnl Replace `main' with a function in -llwp:
55 dnl AC_CHECK_LIB(lwp, main)
56 dnl Replace `main' with a function in -ln:
57 dnl AC_CHECK_LIB(n, main)
58 dnl Replace `main' with a function in -lnsl:
59 AC_CHECK_LIB(nsl, main)
60 dnl Replace `main' with a function in -lprot:
61 dnl AC_CHECK_LIB(prot, main)
62 dnl Replace `main' with a function in -lrx:
63 dnl AC_CHECK_LIB(rx, main)
64 dnl Replace `main' with a function in -lrxkad:
65 dnl AC_CHECK_LIB(rxkad, main)
66 dnl Replace `main' with a function in -lsocket:
67 AC_CHECK_LIB(socket, socket)
68 dnl Replace `main' with a function in -lsys:
69 dnl AC_CHECK_LIB(sys, main)
70 dnl Replace `main' with a function in -lubik:
71 dnl AC_CHECK_LIB(ubik, main)
75 # Check presence of some functions
77 # Check for XPG4 access() function
78 # Be sure to test before adding AFS libs in LIBS path as AFS lib
79 # has such a function that works only on AFS filesystems.
80 AC_CHECK_FUNCS(access)
82 AC_CHECK_FUNCS(pread pwrite)
84 dnl Checks for header files.
88 AC_CHECK_HEADERS(fcntl.h limits.h stdint.h strings.h time.h sys/fcntl.h sys/file.h sys/ioctl.h sys/time.h sys/mnttab.h sys/statvfs.h sys/stat.h sys/vfs.h mntent.h syslog.h unistd.h termios.h sys/termios.h netdb.h sgtty.h ufs/quota.h mount.h sys/mount.h statfs.h sys/types.h dlfcn.h errno.h sys/errno.h sys/uio.h)
89 AC_CHECK_HEADER(sys/cdefs.h,,
90 AC_MSG_RESULT([enabling generic cdefs.h from tree])
91 CFLAGS="-I\$(top_srcdir)/sys/generic $CFLAGS"
93 AC_CHECK_HEADERS(langinfo.h locale.h)
95 dnl Checks for typedefs, structures, and compiler characteristics.
107 dnl Checks for library functions.
109 AC_PROG_GCC_TRADITIONAL
116 AC_CHECK_FUNCS(getcwd gethostname gettimeofday getusershell mkdir rmdir select socket strdup strcasestr strstr strtoul setpgrp strchr memcpy)
118 AC_CHECK_FUNCS(backtrace_symbols)
119 AC_CHECK_FUNCS(setlocale nl_langinfo)
120 AC_CHECK_FUNCS(dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link mknod mknod64)
124 dnl Checks for (v)snprintf
125 NETATALK_SNPRINTF_CHECK
127 dnl --------------------------------------------------------------------------
128 dnl specific configuration comes in here:
129 dnl --------------------------------------------------------------------------
131 AC_DEFINE(ADMIN_GRP, 1, [Define if the admin group should be enabled])
133 netatalk_cv_admin_group=yes
134 AC_MSG_CHECKING([for administrative group support])
135 AC_ARG_WITH(admin-group,
136 [ --disable-admin-group disable admin group],[
137 if test "$enableval" = "no"; then
138 AC_DEFINE(ADMIN_GRP, 0, [Define if the admin group should be enabled])
142 netatalk_cv_admin_group=no
152 AC_MSG_CHECKING([for logfile path])
154 [ --with-logfile=PATH path for file used by logger [/var/log/netatalk.log]
155 use --without-logfile to disable logger],[
156 if test x"$withval" = x"no"; then
157 AC_DEFINE(DISABLE_LOGGER, 1, [Define if the logger should not be used])
158 AC_MSG_RESULT([syslog])
159 elif test "$withval" != "yes"; then
160 AC_DEFINE_UNQUOTED(LOGFILEPATH, "$withval", [Path to the log file])
161 AC_MSG_RESULT([$withval])
163 AC_DEFINE_UNQUOTED(LOGFILEPATH, "/var/log/netatalk.log", [Path to the log file])
164 AC_MSG_RESULT([/var/log/netatalk.log])
166 AC_DEFINE_UNQUOTED(LOGFILEPATH, "/var/log/netatalk.log", [Path to the log file])
167 AC_MSG_RESULT([/var/log/netatalk.log])
172 netatalk_cv_with_cracklib=no
173 AC_MSG_CHECKING([for cracklib support])
174 AC_ARG_WITH(cracklib,
175 [ --with-cracklib=DICT enable/set location of cracklib dictionary],[
176 if test "x$withval" != "xno" ; then
178 AC_CHECK_LIB(crack, main, [
179 AC_DEFINE(USE_CRACKLIB, 1, [Define if cracklib should be used])
182 if test "$cracklib" = "yes"; then
183 cracklib="/usr/lib/cracklib_dict"
185 AC_DEFINE_UNQUOTED(_PATH_CRACKLIB, "$cracklib",
186 [path to cracklib dictionary])
187 AC_MSG_RESULT([setting cracklib dictionary to $cracklib])
188 netatalk_cv_with_cracklib=yes
190 AC_MSG_ERROR([cracklib not found!])
201 netatalk_cv_ddp_enabled=yes
202 AC_MSG_CHECKING([whether to enable DDP])
204 [ --disable-ddp disable DDP],[
205 if test "$enableval" = "no"; then
206 AC_DEFINE(NO_DDP, 1, [Define if DDP should be disabled])
208 netatalk_cv_ddp_enabled=no
217 AC_MSG_CHECKING([whether to enable debug code])
218 AC_ARG_ENABLE(debug1,
219 [ --enable-debug1 enable debug code],[
220 if test "$enableval" != "no"; then
221 if test "$enableval" = "yes"; then
222 AC_DEFINE(DEBUG1, 1, [Define if debugging information should be included])
224 AC_DEFINE_UNQUOTED(DEBUG1, $enableval, [Define if debugging information should be included])
235 AC_MSG_CHECKING([whether to enable verbose debug code])
237 [ --enable-debug enable verbose debug code],[
238 if test "$enableval" != "no"; then
239 if test "$enableval" = "yes"; then
240 AC_DEFINE(DEBUG, 1, [Define if verbose debugging information should be included])
242 AC_DEFINE_UNQUOTED(DEBUG, $enableval, [Define if verbose debugging information should be included])
255 AC_MSG_CHECKING([whether AFP 3.x calls should be enabled])
257 [ --disable-afp3 disable AFP 3.x calls],
259 if test x"$enableval" != x"no"; then
272 if test x"$afp3" = x"yes"; then
274 AC_DEFINE(AFP3x, 1, [Define to enable AFP 3.x support])
276 if test x"$afp3set" == x"yes"; then
277 AC_MSG_ERROR([AFP 3.x support requires Large File Support.])
279 AC_MSG_WARN([AFP 3.x support requires Large File Support. AFP3.x support disabled])
287 dnl ----------- A NOTE ABOUT DROPKLUDGE
288 dnl The trouble with this fix is that if you know what the file is called, it
289 dnl can be read from the Unix side. That's okay for most academic institutions
290 dnl since the students don't have telnet access to the Mac servers. There is
291 dnl currently no one working on further development/fixes of DROPKLUDGE.
294 netatalk_cv_dropkludge=no
295 AC_MSG_CHECKING([whether to enable experimental dropbox support])
296 AC_ARG_ENABLE(dropkludge,
297 [ --enable-dropkludge enable the experimental dropbox fix (INSECURE!) ],[
298 if test "$enableval" = "yes"; then
299 AC_DEFINE(DROPKLUDGE, 1, [Define if you want to use the experimental dropkludge support])
301 netatalk_cv_dropkludge=yes
310 netatalk_cv_force_uidgid=no
311 AC_MSG_CHECKING([whether to enable forcing of uid/gid per volume])
312 AC_ARG_ENABLE(force-uidgid,
313 [ --enable-force-uidgid allow forcing of uid/gid per volume (BROKEN) ],[
314 if test "$enableval" = "yes"; then
315 AC_DEFINE(FORCE_UIDGID, 1, [Define if you want forcing of uid/gid per volume])
316 AC_MSG_RESULT([enabling forcing of uid/gid per volume])
318 netatalk_cv_force_uidgid=yes
327 dnl Check for CNID database backends
329 AC_NETATALK_CNID([bdb_required=yes],[bdb_required=no])
331 dnl Check for Berkeley DB library
332 if test "x$bdb_required" = "xyes"; then
335 AC_MSG_RESULT([Make sure you have the Berkeley DB libraries AND headers installed.])
336 AC_MSG_RESULT([You can download the latest version from http://www.sleepcat.com.])
337 AC_MSG_RESULT([If you have installed BDB in a non standard location use the])
338 AC_MSG_RESULT([--with-bdb=/path/to/bdb configure option.])
339 AC_MSG_ERROR([Berkeley DB library required but not found!])
343 dnl Check for quota support
346 dnl Check for optional server location protocol support (used by MacOS X)
349 dnl Check for PAM libs
350 netatalk_cv_use_pam=no
354 netatalk_cv_use_pam=yes
355 AC_DEFINE(USE_PAM, 1, [Define to enable PAM support])
358 netatalk_cv_use_shadowpw=no
360 [ --with-shadow enable shadow password support [[auto]]],
361 [netatalk_cv_use_shadowpw="$withval"],
362 [netatalk_cv_use_shadowpw=auto]
365 if test "x$netatalk_cv_use_shadowpw" != "xno"; then
366 AC_CHECK_HEADER([shadow.h])
367 if test x"$ac_cv_header_shadow_h" = x"yes"; then
368 netatalk_cv_use_shadowpw=yes
369 AC_DEFINE(SHADOWPW, 1, [Define if shadow passwords should be used])
371 if test "x$shadowpw" = "xyes"; then
372 AC_MSG_ERROR([shadow support not available])
374 netatalk_cv_use_shadowpw=no
379 AC_MSG_CHECKING([whether shadow support should be enabled])
380 if test "x$netatalk_cv_use_shadowpw" == "xyes"; then
388 netatalk_cv_use_shellcheck=yes
389 AC_MSG_CHECKING([whether checking for a valid shell should be enabled])
390 AC_ARG_ENABLE(shell-check,
391 [ --disable-shell-check disable checking for a valid shell],[
392 if test "$enableval" = "no"; then
393 AC_DEFINE(DISABLE_SHELLCHECK, 1, [Define if shell check should be disabled])
395 netatalk_cv_use_shellcheck=no
404 NETATALK_TCP_WRAPPERS
406 AC_MSG_CHECKING([whether system (fcntl) locking should be disabled])
407 AC_ARG_ENABLE(locking,
408 [ --disable-locking disable system locking],[
409 if test "$enableval" = "no"; then
410 AC_DEFINE(DISABLE_LOCKING, 1, [Define if system (fcntl) locking should be disabled])
423 AC_ARG_ENABLE(redhat,
424 [ --enable-redhat use redhat-style sysv configuration ],[
425 if test "$enableval" = "yes"; then
428 AC_MSG_RESULT([enabling redhat-style sysv support])
433 [ --enable-suse use suse-style sysv configuration ],[
434 if test "$enableval" = "yes"; then
437 AC_MSG_RESULT([enabling suse-style sysv support])
441 AC_ARG_ENABLE(cobalt,
442 [ --enable-cobalt use cobalt-style sysv configuration ],
443 if test "$enableval" = "yes"; then
446 AC_MSG_RESULT([enabling cobalt-style sysv support])
449 AC_ARG_ENABLE(netbsd,
450 [ --enable-netbsd use NetBSD-style rc.d configuration ],
451 if test "x$enableval" = "xyes"; then
454 AC_MSG_RESULT([enabling NetBSD-style rc.d support])
457 dnl ----- timelord compilation (disabled by default)
458 AC_MSG_CHECKING([whether timelord should be compiled])
460 AC_ARG_ENABLE(timelord,
461 [ --enable-timelord enable compilation of timelord server],
462 [compile_timelord="$enableval"],
463 [compile_timelord="no"]
465 AC_MSG_RESULT([$compile_timelord])
467 dnl ----- a2boot compilation (disabled by default)
468 AC_MSG_CHECKING([whether a2boot should be compiled])
470 AC_ARG_ENABLE(a2boot,
471 [ --enable-a2boot enable compilation of Apple2 boot server],
472 [compile_a2boot="$enableval"],
473 [compile_a2boot="no"]
475 AC_MSG_RESULT([$compile_a2boot])
477 AC_ARG_WITH(uams-path,
478 [ --with-uams-path=PATH path to UAMs [[PKGCONF/uams]]],[
481 uams_path="${PKGCONFDIR}/uams"
485 dnl --------------------------------------------------------------------------
486 dnl FHS stuff has to be done last because it overrides other defaults
487 dnl --------------------------------------------------------------------------
489 AC_MSG_CHECKING([whether to use Filesystem Hierarchy Standard (FHS) compatibility])
491 [ --enable-fhs use Filesystem Hierarchy Standard (FHS) compatibility],[
492 if test "$enableval" = "yes"; then
493 uams_path="${libdir}/netatalk"
495 PKGCONFDIR=${sysconfdir}/netatalk
496 SERVERTEXT="${PKGCONFDIR}/msg"
498 mandir="/usr/share/man"
499 AC_DEFINE(FHS_COMPATIBILITY, 1, [Define if you want compatibily with the FHS])
509 dnl --------------------------------------------------------------------------
510 dnl post-FHS substitutions, etc
511 dnl --------------------------------------------------------------------------
514 AC_DEFINE_UNQUOTED(UAMS_PATH, "${uams_path}",
515 [path to UAMs [default=PKGCONF/uams]])
516 UAMS_PATH="${uams_path}"
519 dnl --------------------------------------------------------------------------
520 dnl drop in includes for top level directory structures here...
521 dnl --------------------------------------------------------------------------
523 dnl Note: $(top_srcdir)/include should be added before all other includes
524 dnl so that includes from that directory a preferred to includes from
525 dnl /usr/include or similar places.
526 LIBS="$LIBS -L\$(top_srcdir)/libatalk"
527 CFLAGS="-I\$(top_srcdir)/include $CFLAGS -I\$(top_srcdir)/sys"
529 dnl --------------------------------------------------------------------------
530 dnl specific configuration comes in here:
531 dnl --------------------------------------------------------------------------
533 dnl ac_cv_target_os is now host_os, ac_cv_target_cpu is now host_cpu
535 dnl --------------------- determine operating system from "target"
537 *aix*) this_os=aix ;;
538 *freebsd*) this_os=freebsd ;;
539 *hpux11*) this_os=hpux11 ;;
540 *irix*) this_os=irix ;;
541 *linux*) this_os=linux ;;
542 *osx*) this_os=macosx ;;
543 *darwin*) this_os=macosx ;;
544 *netbsd*) this_os=netbsd ;;
545 *openbsd*) this_os=openbsd ;;
546 *osf*) this_os=tru64 ;;
547 *solaris*) this_os=solaris ;;
551 i386|i486|i586|i686|k7) this_cpu=x86 ;;
552 alpha) this_cpu=alpha ;;
553 mips) this_cpu=mips ;;
554 powerpc|ppc) this_cpu=ppc ;;
557 dnl --------------------- operating system specific flags (port from sys/*)
559 dnl ----- AIX specific -----
560 if test x"$this_os" = "xaix"; then
561 AC_MSG_RESULT([ * AIX specific configuration])
562 AC_DEFINE(NO_STRUCT_TM_GMTOFF, 1, [Define if the gmtoff member of struct tm is not available])
564 dnl This is probably a lie; AIX 4.3 supports a 64-bit long
565 dnl compilation environment. It's enough to get things defined
566 dnl right in endian.h provided that long long is supported, though.
567 AC_DEFINE(HAVE_32BIT_LONGS, 1, [Define if the data type long has 32 bit])
570 dnl ----- FreeBSD specific -----
571 if test x"$this_os" = "xfreebsd"; then
572 AC_MSG_RESULT([ * FreeBSD specific configuration])
573 AC_DEFINE(BSD4_4, 1, [BSD compatiblity macro])
574 AC_DEFINE(SENDFILE_FLAVOR_BSD, 1, [Define if the sendfile() function uses BSD semantics])
576 dnl AC_DEFINE(NO_CRYPT_H, 1, [Define if crypt.h does not exist])
579 dnl ----- HP-UX 11 specific -----
580 if test x"$this_os" = "xhpux11"; then
581 AC_MSG_RESULT([ * HP-UX 11 specific configuration])
583 AC_DEFINE(_ISOC9X_SOURCE, 1, [Compatibility macro])
584 AC_DEFINE(NO_STRUCT_TM_GMTOFF, 1, [Define if the gmtoff member of struct tm is not available])
587 dnl ----- IRIX specific -----
588 if test x"$this_os" = "xirix"; then
589 AC_MSG_RESULT([ * IRIX specific configuration])
591 AC_DEFINE(NO_STRUCT_TM_GMTOFF, 1, [Define if the gmtoff member of struct tm is not available])
594 dnl ----- Linux specific -----
595 if test x"$this_os" = "xlinux"; then
596 AC_MSG_RESULT([ * Linux specific configuration])
598 dnl ----- kernel 2.6 changed struct at_addr to atalk_addr
599 AC_MSG_CHECKING([for struct atalk_addr])
601 #include <sys/socket.h>
602 #include <asm/types.h>
603 #include <linux/atalk.h>
606 struct atalk_addr foo;
611 ac_have_atalk_addr=yes
617 if test "x$ac_have_atalk_addr" = "xyes"; then
618 AC_DEFINE(HAVE_ATALK_ADDR, 1, [set if struct at_addr is called atalk_addr])
621 dnl ----- check if we need the quotactl wrapper
622 # AC_CHECK_HEADERS(sys/quota.h linux/quota.h)
623 # AC_CHECK_FUNC(quotactl,,
624 # AC_DEFINE(NEED_QUOTACTL_WRAPPER, 1, [Define if the quotactl wrapper is needed])
625 # AC_MSG_RESULT([enabling quotactl wrapper])
628 # For quotas on Linux XFS filesystems
629 AC_CHECK_HEADERS(linux/xqm.h linux/xfs_fs.h)
630 AC_CHECK_HEADERS(xfs/libxfs.h xfs/xqm.h xfs/xfs_fs.h)
632 AC_CHECK_HEADERS(linux/dqblk_xfs.h)
635 dnl ----- as far as I can tell, dbtob always does the wrong thing
636 dnl ----- on every single version of linux I've ever played with.
637 dnl ----- see etc/afpd/quota.c
638 AC_DEFINE(HAVE_BROKEN_DBTOB, 1, [Define if dbtob is broken])
640 netatalk_cv_linux_sendfile=no
641 AC_ARG_ENABLE(sendfile,
642 [ --enable-sendfile use sendfile syscall default (no) ],[
643 if test "$enableval" = "yes"; then
644 netatalk_cv_linux_sendfile=yes
646 AC_MSG_RESULT([enabling sendfile syscall])
650 if test x"$netatalk_cv_linux_sendfile" = "xyes"; then
651 AC_CACHE_CHECK([for linux sendfile support],netatalk_cv_HAVE_SENDFILE,[
652 AC_TRY_LINK([#include <sys/sendfile.h>],
657 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
659 netatalk_cv_HAVE_SENDFILE=yes,netatalk_cv_HAVE_SENDFILE=no)])
661 # Try and cope with broken Linux sendfile....
662 AC_CACHE_CHECK([for broken linux sendfile support],netatalk_cv_HAVE_BROKEN_LINUX_SENDFILE,[
664 #if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
665 #undef _FILE_OFFSET_BITS
667 #include <sys/sendfile.h>],
672 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
674 netatalk_cv_HAVE_BROKEN_LINUX_SENDFILE=yes,netatalk_cv_HAVE_BROKEN_LINUX_SENDFILE=no,netatalk_cv_HAVE_BROKEN_SENDFILE=cross)])
676 if test x"$netatalk_cv_HAVE_SENDFILE" = x"yes"; then
677 AC_DEFINE(HAVE_SENDFILE,1,[Whether sendfile() is available])
678 AC_DEFINE(SENDFILE_FLAVOR_LINUX,1,[Whether linux sendfile() API is available])
679 AC_DEFINE(WITH_SENDFILE,1,[Whether sendfile() should be used])
680 elif test x"$netatalk_cv_HAVE_BROKEN_LINUX_SENDFILE" = x"yes"; then
681 AC_DEFINE(SENDFILE_FLAVOR_LINUX,1,[Whether linux sendfile() API is available])
682 AC_DEFINE(LINUX_BROKEN_SENDFILE_API,1,[Whether (linux) sendfile() is broken])
683 AC_DEFINE(WITH_SENDFILE,1,[Whether sendfile should be used])
685 netatalk_cv_linux_sendfile=no
690 dnl ----- Linux/alpha specific -----
691 if test x"$this_cpu" = "xalpha"; then
692 AC_MSG_RESULT([enabling gcc memcpy bug workaround])
693 AC_DEFINE(HAVE_GCC_MEMCPY_BUG, 1, [Define if memcpy is buggy])
700 dnl ----- Mac OSX specific -----
701 if test x"$this_os" = "xmacosx"; then
702 AC_MSG_RESULT([ * Mac OSX specific configuration])
703 AC_DEFINE(BSD4_4, 1, [BSD compatiblity macro])
704 AC_DEFINE(HAVE_BROKEN_CPP, 1, [Define if cpp is broken])
705 AC_DEFINE(HAVE_2ARG_DBTOB, 1, [Define if dbtob takes two arguments])
706 dnl AC_DEFINE(NO_DLFCN_H)
707 AC_DEFINE(NO_DDP, 1, [Define if DDP should be disabled])
708 AC_DEFINE(NO_QUOTA_SUPPORT, 1, [Define if Quota support should be disabled])
709 AC_DEFINE(MACOSX_SERVER, 1, [Define if compiling for MacOS X Server])
712 dnl ----- NetBSD specific -----
713 if test x"$this_os" = "xnetbsd"; then
714 AC_MSG_RESULT([ * NetBSD specific configuration])
715 AC_DEFINE(BSD4_4, 1, [BSD compatiblity macro])
716 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
717 # NetBSD ELF machines don't have to have DLSYM_PREPEND_UNDERSCORE.
718 # If this test is true, it's not an ELF box.
719 # This REALLY should be a configure test.
720 AC_DEFINE(DLSYM_PREPEND_UNDERSCORE, 1, [BSD compatibility macro])
722 CFLAGS="-I\$(top_srcdir)/sys/netbsd -I/usr/include/kerberosIV $CFLAGS"
725 dnl ----- NetBSD does not have crypt.h, uses unistd.h -----
726 AC_DEFINE(UAM_DHX, 1, [Define if the DHX UAM modules should be compiled])
729 dnl ----- OpenBSD specific -----
730 if test x"$this_os" = "xopenbsd"; then
731 AC_MSG_RESULT([ * OpenBSD specific configuration])
732 AC_DEFINE(BSD4_4, 1, [BSD compatiblity macro])
733 AC_DEFINE(DLSYM_PREPEND_UNDERSCORE, 1, [BSD compatibility macro])
735 dnl ----- OpenBSD does not have crypt.h, uses unistd.h -----
736 AC_DEFINE(UAM_DHX, 1, [Define if the DHX UAM modules should be compiled])
739 dnl ----- Solaris specific -----
740 if test x"$this_os" = "xsolaris"; then
741 AC_MSG_RESULT([ * Solaris specific configuration])
742 AC_DEFINE(__svr4__, 1, [Solaris compatibility macro])
743 AC_DEFINE(_ISOC9X_SOURCE, 1, [Compatibility macro])
744 AC_DEFINE(NO_STRUCT_TM_GMTOFF, 1, [Define if the gmtoff member of struct tm is not available])
745 AC_DEFINE(SOLARIS, 1, [Solaris compatibility macro])
746 CFLAGS="-I\$(top_srcdir)/sys/generic $CFLAGS"
749 AC_MSG_RESULT([enabling Solaris kernel module build])
753 dnl ----- Tru64 specific -----
754 if test x"$this_os" = "xtru64"; then
755 AC_MSG_RESULT([ * Tru64 specific configuration])
756 AC_DEFINE(NO_DDP, 1, [Define if DDP should be disabled])
757 AC_DEFINE(HAVE_64BIT_LONGS, 1, [Define if the data type long has 64 bit])
758 dnl AC_DEFINE(USE_MOUNT_H)
759 AC_DEFINE(USE_OLD_RQUOTA, 1, [Define to use old rquota])
760 dnl AC_DEFINE(USE_UFS_QUOTA_H)
761 AC_DEFINE(TRU64, 1, [Define on Tru64 platforms])
762 AC_CHECK_LIB(security,set_auth_parameters)
763 CFLAGS="-I\$(top_srcdir)/sys/tru64 $CFLAGS"
768 dnl -- look for openssl
771 dnl -- check for crypt
774 dnl --------------------- check for building PGP UAM module
776 AC_MSG_CHECKING([whether the PGP UAM should be build])
777 AC_ARG_ENABLE(pgp-uam,
778 [ --enable-pgp-uam enable build of PGP UAM module],[
779 if test "$enableval" = "yes"; then
780 if test "$compile_ssl" = "yes"; then
781 AC_DEFINE(UAM_PGP, 1, [Define if the PGP UAM module should be compiled])
793 dnl --------------------- check for building Kerberos v4 UAM module
795 AC_MSG_CHECKING([whether the Kerberos IV UAM should be build])
796 AC_ARG_ENABLE(krb4-uam,
797 [ --enable-krb4-uam enable build of Kerberos v4 UAM module],[
798 if test "$enableval" = "yes"; then
799 AC_DEFINE(UAM_KRB4, 1, [Define if the Kerberos 4 UAM module should be compiled])
810 dnl --------------------- check for building Kerberos V UAM module
812 netatalk_cv_build_krb5_uam=no
813 AC_ARG_ENABLE(krbV-uam,
814 [ --enable-krbV-uam enable build of Kerberos V UAM module],
816 if test x"$enableval" = x"yes"; then
817 NETATALK_GSSAPI_CHECK([
818 netatalk_cv_build_krb5_uam=yes
820 AC_MSG_ERROR([need GSSAPI to build Kerberos V UAM])
827 AC_MSG_CHECKING([whether Kerberos V UAM should be build])
828 if test x"$netatalk_cv_build_krb5_uam" = x"yes"; then
833 AM_CONDITIONAL(USE_GSSAPI, test x"$netatalk_cv_build_krb5_uam" = x"yes")
835 dnl --------------------- overwrite the config files . . . or not.
837 AC_MSG_CHECKING([whether configuration files should be overwritten])
838 AC_ARG_ENABLE(overwrite,
839 [ --enable-overwrite overwrite configuration files during installation],
840 [OVERWRITE_CONFIG="${enable_overwrite}"],
841 [OVERWRITE_CONFIG="no"]
843 AC_MSG_RESULT([$OVERWRITE_CONFIG])
845 dnl --------------------- last minute substitutions
849 AC_SUBST(OVERWRITE_CONFIG)
851 AM_CONDITIONAL(SOLARIS_MODULE, test x$solaris_module = xyes)
852 AM_CONDITIONAL(COMPILE_TIMELORD, test x$compile_timelord = xyes)
853 AM_CONDITIONAL(COMPILE_A2BOOT, test x$compile_a2boot = xyes)
854 AM_CONDITIONAL(USE_DHX, test x$compile_ssl = xyes)
855 AM_CONDITIONAL(USE_KERBEROS, test x$compile_kerberos = xyes)
856 AM_CONDITIONAL(USE_PAM_SO, test x$use_pam_so = xyes)
857 AM_CONDITIONAL(USE_PAM, test x$netatalk_cv_install_pam = xyes)
858 AM_CONDITIONAL(BUILD_PAM, test x$compile_pam = xyes)
859 AM_CONDITIONAL(USE_PGP, test x$compile_pgp = xyes)
860 AM_CONDITIONAL(USE_COBALT, test x$sysv_style = xcobalt)
861 AM_CONDITIONAL(USE_NETBSD, test x$sysv_style = xnetbsd)
862 AM_CONDITIONAL(USE_REDHAT, test x$sysv_style = xredhat)
863 AM_CONDITIONAL(USE_SUSE, test x$sysv_style = xsuse)
864 AM_CONDITIONAL(USE_SHADOWPW, test x$shadowpw = xyes)
865 AM_CONDITIONAL(USE_TRU64, test x$sysv_style = xtru64)
867 dnl --------------------- generate files
871 bin/adv1tov2/Makefile
874 bin/afppasswd/Makefile
877 bin/cnid/cnid2_create
878 bin/getzones/Makefile
879 bin/megatron/Makefile
885 contrib/macusers/Makefile
886 contrib/macusers/macusers
889 contrib/printing/Makefile
890 contrib/shell_utils/Makefile
891 contrib/shell_utils/afpd-mtab.pl
892 contrib/shell_utils/apple_cp
893 contrib/shell_utils/apple_mv
894 contrib/shell_utils/apple_rm
895 contrib/shell_utils/cleanappledouble.pl
896 contrib/shell_utils/netatalkshorternamelinks.pl
897 contrib/timelord/Makefile
898 contrib/a2boot/Makefile
900 distrib/config/Makefile
901 distrib/config/netatalk-config
902 distrib/initscripts/Makefile
908 etc/cnid_dbd/Makefile
910 etc/uams/uams_krb4/Makefile
914 include/atalk/Makefile
916 libatalk/adouble/Makefile
917 libatalk/asp/Makefile
918 libatalk/atp/Makefile
919 libatalk/cnid/Makefile
920 libatalk/cnid/db3/Makefile
921 libatalk/cnid/cdb/Makefile
922 libatalk/cnid/last/Makefile
923 libatalk/cnid/mtab/Makefile
924 libatalk/cnid/dbd/Makefile
925 libatalk/cnid/hash/Makefile
926 libatalk/cnid/tdb/Makefile
927 libatalk/compat/Makefile
928 libatalk/dsi/Makefile
929 libatalk/nbp/Makefile
930 libatalk/netddp/Makefile
931 libatalk/util/Makefile
932 libatalk/tdb/Makefile
933 libatalk/unicode/Makefile
934 libatalk/unicode/charsets/Makefile
944 sys/generic/sys/Makefile
945 sys/netatalk/Makefile
947 sys/netbsd/netatalk/Makefile
949 sys/solaris/Makefile.kernel
953 [chmod a+x distrib/config/netatalk-config contrib/shell_utils/apple_*]
956 AM_NETATALK_LIBS_SUMMARY
957 AM_NETATALK_CONFIG_SUMMARY