1 dnl $Id: configure.in,v 1.179.2.3.2.17 2004-02-07 19:46:07 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])
600 dnl AC_COMPILE_IFELSE([
602 #include <sys/socket.h>
603 #include <asm/types.h>
604 #include <linux/atalk.h>
608 struct atalk_addr foo;
613 ac_have_atalk_addr=yes
619 if test "x$ac_have_atalk_addr" = "xyes"; then
620 AC_DEFINE(HAVE_ATALK_ADDR, 1, [set if struct at_addr is called atalk_addr])
623 dnl ----- check if we need the quotactl wrapper
624 # AC_CHECK_HEADERS(sys/quota.h linux/quota.h)
625 # AC_CHECK_FUNC(quotactl,,
626 # AC_DEFINE(NEED_QUOTACTL_WRAPPER, 1, [Define if the quotactl wrapper is needed])
627 # AC_MSG_RESULT([enabling quotactl wrapper])
630 # For quotas on Linux XFS filesystems
631 AC_CHECK_HEADERS(linux/xqm.h linux/xfs_fs.h)
632 AC_CHECK_HEADERS(xfs/libxfs.h xfs/xqm.h xfs/xfs_fs.h)
634 AC_CHECK_HEADERS(linux/dqblk_xfs.h)
637 dnl ----- as far as I can tell, dbtob always does the wrong thing
638 dnl ----- on every single version of linux I've ever played with.
639 dnl ----- see etc/afpd/quota.c
640 AC_DEFINE(HAVE_BROKEN_DBTOB, 1, [Define if dbtob is broken])
642 netatalk_cv_linux_sendfile=no
643 AC_ARG_ENABLE(sendfile,
644 [ --enable-sendfile use sendfile syscall default (no) ],[
645 if test "$enableval" = "yes"; then
646 netatalk_cv_linux_sendfile=yes
648 AC_MSG_RESULT([enabling sendfile syscall])
652 if test x"$netatalk_cv_linux_sendfile" = "xyes"; then
653 AC_CACHE_CHECK([for linux sendfile support],netatalk_cv_HAVE_SENDFILE,[
654 AC_TRY_LINK([#include <sys/sendfile.h>],
659 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
661 netatalk_cv_HAVE_SENDFILE=yes,netatalk_cv_HAVE_SENDFILE=no)])
663 # Try and cope with broken Linux sendfile....
664 AC_CACHE_CHECK([for broken linux sendfile support],netatalk_cv_HAVE_BROKEN_LINUX_SENDFILE,[
666 #if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
667 #undef _FILE_OFFSET_BITS
669 #include <sys/sendfile.h>],
674 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
676 netatalk_cv_HAVE_BROKEN_LINUX_SENDFILE=yes,netatalk_cv_HAVE_BROKEN_LINUX_SENDFILE=no,netatalk_cv_HAVE_BROKEN_SENDFILE=cross)])
678 if test x"$netatalk_cv_HAVE_SENDFILE" = x"yes"; then
679 AC_DEFINE(HAVE_SENDFILE,1,[Whether sendfile() is available])
680 AC_DEFINE(SENDFILE_FLAVOR_LINUX,1,[Whether linux sendfile() API is available])
681 AC_DEFINE(WITH_SENDFILE,1,[Whether sendfile() should be used])
682 elif test x"$netatalk_cv_HAVE_BROKEN_LINUX_SENDFILE" = x"yes"; then
683 AC_DEFINE(SENDFILE_FLAVOR_LINUX,1,[Whether linux sendfile() API is available])
684 AC_DEFINE(LINUX_BROKEN_SENDFILE_API,1,[Whether (linux) sendfile() is broken])
685 AC_DEFINE(WITH_SENDFILE,1,[Whether sendfile should be used])
687 netatalk_cv_linux_sendfile=no
692 dnl ----- Linux/alpha specific -----
693 if test x"$this_cpu" = "xalpha"; then
694 AC_MSG_RESULT([enabling gcc memcpy bug workaround])
695 AC_DEFINE(HAVE_GCC_MEMCPY_BUG, 1, [Define if memcpy is buggy])
702 dnl ----- Mac OSX specific -----
703 if test x"$this_os" = "xmacosx"; then
704 AC_MSG_RESULT([ * Mac OSX specific configuration])
705 AC_DEFINE(BSD4_4, 1, [BSD compatiblity macro])
706 AC_DEFINE(HAVE_BROKEN_CPP, 1, [Define if cpp is broken])
707 AC_DEFINE(HAVE_2ARG_DBTOB, 1, [Define if dbtob takes two arguments])
708 dnl AC_DEFINE(NO_DLFCN_H)
709 AC_DEFINE(NO_DDP, 1, [Define if DDP should be disabled])
710 AC_DEFINE(NO_QUOTA_SUPPORT, 1, [Define if Quota support should be disabled])
711 AC_DEFINE(MACOSX_SERVER, 1, [Define if compiling for MacOS X Server])
714 dnl ----- NetBSD specific -----
715 if test x"$this_os" = "xnetbsd"; then
716 AC_MSG_RESULT([ * NetBSD specific configuration])
717 AC_DEFINE(BSD4_4, 1, [BSD compatiblity macro])
718 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
719 # NetBSD ELF machines don't have to have DLSYM_PREPEND_UNDERSCORE.
720 # If this test is true, it's not an ELF box.
721 # This REALLY should be a configure test.
722 AC_DEFINE(DLSYM_PREPEND_UNDERSCORE, 1, [BSD compatibility macro])
724 CFLAGS="-I\$(top_srcdir)/sys/netbsd -I/usr/include/kerberosIV $CFLAGS"
727 dnl ----- NetBSD does not have crypt.h, uses unistd.h -----
728 AC_DEFINE(UAM_DHX, 1, [Define if the DHX UAM modules should be compiled])
731 dnl ----- OpenBSD specific -----
732 if test x"$this_os" = "xopenbsd"; then
733 AC_MSG_RESULT([ * OpenBSD specific configuration])
734 AC_DEFINE(BSD4_4, 1, [BSD compatiblity macro])
735 AC_DEFINE(DLSYM_PREPEND_UNDERSCORE, 1, [BSD compatibility macro])
737 dnl ----- OpenBSD does not have crypt.h, uses unistd.h -----
738 AC_DEFINE(UAM_DHX, 1, [Define if the DHX UAM modules should be compiled])
741 dnl ----- Solaris specific -----
742 if test x"$this_os" = "xsolaris"; then
743 AC_MSG_RESULT([ * Solaris specific configuration])
744 AC_DEFINE(__svr4__, 1, [Solaris compatibility macro])
745 AC_DEFINE(_ISOC9X_SOURCE, 1, [Compatibility macro])
746 AC_DEFINE(NO_STRUCT_TM_GMTOFF, 1, [Define if the gmtoff member of struct tm is not available])
747 AC_DEFINE(SOLARIS, 1, [Solaris compatibility macro])
748 CFLAGS="-I\$(top_srcdir)/sys/generic $CFLAGS"
751 AC_MSG_RESULT([enabling Solaris kernel module build])
755 dnl ----- Tru64 specific -----
756 if test x"$this_os" = "xtru64"; then
757 AC_MSG_RESULT([ * Tru64 specific configuration])
758 AC_DEFINE(NO_DDP, 1, [Define if DDP should be disabled])
759 AC_DEFINE(HAVE_64BIT_LONGS, 1, [Define if the data type long has 64 bit])
760 dnl AC_DEFINE(USE_MOUNT_H)
761 AC_DEFINE(USE_OLD_RQUOTA, 1, [Define to use old rquota])
762 dnl AC_DEFINE(USE_UFS_QUOTA_H)
763 AC_DEFINE(TRU64, 1, [Define on Tru64 platforms])
764 AC_DEFINE(_OSF_SOURCE, 1, [Define if the *passwd UAMs should be used])
765 AC_DEFINE(_XOPEN_SOURCE_EXTENDED, 1, [Define for Berkeley DB 4])
766 AC_CHECK_LIB(security,set_auth_parameters)
767 CFLAGS="-I\$(top_srcdir)/sys/tru64 $CFLAGS"
772 dnl -- look for openssl
775 dnl -- check for crypt
778 dnl --------------------- check for building PGP UAM module
780 AC_MSG_CHECKING([whether the PGP UAM should be build])
781 AC_ARG_ENABLE(pgp-uam,
782 [ --enable-pgp-uam enable build of PGP UAM module],[
783 if test "$enableval" = "yes"; then
784 if test "$compile_ssl" = "yes"; then
785 AC_DEFINE(UAM_PGP, 1, [Define if the PGP UAM module should be compiled])
797 dnl --------------------- check for building Kerberos v4 UAM module
799 AC_MSG_CHECKING([whether the Kerberos IV UAM should be build])
800 AC_ARG_ENABLE(krb4-uam,
801 [ --enable-krb4-uam enable build of Kerberos v4 UAM module],[
802 if test "$enableval" = "yes"; then
803 AC_DEFINE(UAM_KRB4, 1, [Define if the Kerberos 4 UAM module should be compiled])
814 dnl --------------------- check for building Kerberos V UAM module
816 netatalk_cv_build_krb5_uam=no
817 AC_ARG_ENABLE(krbV-uam,
818 [ --enable-krbV-uam enable build of Kerberos V UAM module],
820 if test x"$enableval" = x"yes"; then
821 NETATALK_GSSAPI_CHECK([
822 netatalk_cv_build_krb5_uam=yes
824 AC_MSG_ERROR([need GSSAPI to build Kerberos V UAM])
831 AC_MSG_CHECKING([whether Kerberos V UAM should be build])
832 if test x"$netatalk_cv_build_krb5_uam" = x"yes"; then
837 AM_CONDITIONAL(USE_GSSAPI, test x"$netatalk_cv_build_krb5_uam" = x"yes")
839 dnl --------------------- overwrite the config files . . . or not.
841 AC_MSG_CHECKING([whether configuration files should be overwritten])
842 AC_ARG_ENABLE(overwrite,
843 [ --enable-overwrite overwrite configuration files during installation],
844 [OVERWRITE_CONFIG="${enable_overwrite}"],
845 [OVERWRITE_CONFIG="no"]
847 AC_MSG_RESULT([$OVERWRITE_CONFIG])
849 dnl --------------------- last minute substitutions
853 AC_SUBST(OVERWRITE_CONFIG)
855 AM_CONDITIONAL(SOLARIS_MODULE, test x$solaris_module = xyes)
856 AM_CONDITIONAL(COMPILE_TIMELORD, test x$compile_timelord = xyes)
857 AM_CONDITIONAL(COMPILE_A2BOOT, test x$compile_a2boot = xyes)
858 AM_CONDITIONAL(USE_DHX, test x$compile_ssl = xyes)
859 AM_CONDITIONAL(USE_KERBEROS, test x$compile_kerberos = xyes)
860 AM_CONDITIONAL(USE_PAM_SO, test x$use_pam_so = xyes)
861 AM_CONDITIONAL(USE_PAM, test x$netatalk_cv_install_pam = xyes)
862 AM_CONDITIONAL(BUILD_PAM, test x$compile_pam = xyes)
863 AM_CONDITIONAL(USE_PGP, test x$compile_pgp = xyes)
864 AM_CONDITIONAL(USE_COBALT, test x$sysv_style = xcobalt)
865 AM_CONDITIONAL(USE_NETBSD, test x$sysv_style = xnetbsd)
866 AM_CONDITIONAL(USE_REDHAT, test x$sysv_style = xredhat)
867 AM_CONDITIONAL(USE_SUSE, test x$sysv_style = xsuse)
868 AM_CONDITIONAL(USE_SHADOWPW, test x$shadowpw = xyes)
869 AM_CONDITIONAL(USE_TRU64, test x$sysv_style = xtru64)
871 dnl --------------------- generate files
875 bin/adv1tov2/Makefile
878 bin/afppasswd/Makefile
881 bin/cnid/cnid2_create
882 bin/getzones/Makefile
883 bin/megatron/Makefile
889 contrib/macusers/Makefile
890 contrib/macusers/macusers
893 contrib/printing/Makefile
894 contrib/shell_utils/Makefile
895 contrib/shell_utils/afpd-mtab.pl
896 contrib/shell_utils/apple_cp
897 contrib/shell_utils/apple_mv
898 contrib/shell_utils/apple_rm
899 contrib/shell_utils/cleanappledouble.pl
900 contrib/shell_utils/netatalkshorternamelinks.pl
901 contrib/timelord/Makefile
902 contrib/a2boot/Makefile
904 distrib/config/Makefile
905 distrib/config/netatalk-config
906 distrib/initscripts/Makefile
912 etc/cnid_dbd/Makefile
914 etc/uams/uams_krb4/Makefile
918 include/atalk/Makefile
920 libatalk/adouble/Makefile
921 libatalk/asp/Makefile
922 libatalk/atp/Makefile
923 libatalk/cnid/Makefile
924 libatalk/cnid/db3/Makefile
925 libatalk/cnid/cdb/Makefile
926 libatalk/cnid/last/Makefile
927 libatalk/cnid/mtab/Makefile
928 libatalk/cnid/dbd/Makefile
929 libatalk/cnid/hash/Makefile
930 libatalk/cnid/tdb/Makefile
931 libatalk/compat/Makefile
932 libatalk/dsi/Makefile
933 libatalk/nbp/Makefile
934 libatalk/netddp/Makefile
935 libatalk/util/Makefile
936 libatalk/tdb/Makefile
937 libatalk/unicode/Makefile
938 libatalk/unicode/charsets/Makefile
948 sys/generic/sys/Makefile
949 sys/netatalk/Makefile
951 sys/netbsd/netatalk/Makefile
953 sys/solaris/Makefile.kernel
957 [chmod a+x distrib/config/netatalk-config contrib/shell_utils/apple_*]
960 AC_NETATALK_LIBS_SUMMARY
961 AC_NETATALK_CONFIG_SUMMARY