1 dnl $Id: configure.in,v 1.179.2.1 2003-04-28 10:12:53 didg Exp $
2 dnl configure.in for netatalk
4 AC_INIT(bin/adv1tov2/adv1tov2.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 dnl Checks for libraries.
31 dnl Replace `main' with a function in -labs:
32 AC_CHECK_LIB(abs, main)
33 dnl Replace `main' with a function in -laudit:
34 AC_CHECK_LIB(audit, main)
35 dnl Replace `main' with a function in -lauth:
36 AC_CHECK_LIB(auth, main)
37 dnl Replace `main' with a function in -lcmd:
38 AC_CHECK_LIB(cmd, main)
39 dnl Replace `main' with a function in -lcrypt:
40 AC_CHECK_LIB(crypt, main)
41 dnl Replace `main' with a function in -ld:
43 dnl Replace `main' with a function in -ldl:
44 AC_CHECK_LIB(dl, main)
45 dnl Replace `main' with a function in -lkauth:
46 AC_CHECK_LIB(kauth, main)
47 dnl Replace `main' with a function in -lkrb:
48 AC_CHECK_LIB(krb, main)
49 dnl Replace `main' with a function in -llwp:
50 AC_CHECK_LIB(lwp, main)
51 dnl Replace `main' with a function in -ln:
53 dnl Replace `main' with a function in -lnsl:
54 AC_CHECK_LIB(nsl, main)
55 dnl Replace `main' with a function in -lprot:
56 AC_CHECK_LIB(prot, main)
57 dnl Replace `main' with a function in -lrx:
58 AC_CHECK_LIB(rx, main)
59 dnl Replace `main' with a function in -lrxkad:
60 AC_CHECK_LIB(rxkad, main)
61 dnl Replace `main' with a function in -lsocket:
62 AC_CHECK_LIB(socket, main)
63 dnl Replace `main' with a function in -lsys:
64 AC_CHECK_LIB(sys, main)
65 dnl Replace `main' with a function in -lubik:
66 AC_CHECK_LIB(ubik, main)
69 # Check presence of some functions
71 # Check for XPG4 access() function
72 # Be sure to test before adding AFS libs in LIBS path as AFS lib
73 # has such a function that works only on AFS filesystems.
74 AC_CHECK_FUNCS(access)
76 AC_CHECK_FUNCS(pread pwrite)
78 dnl Checks for header files.
82 AC_CHECK_HEADERS(fcntl.h limits.h stdint.h strings.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)
83 AC_CHECK_HEADER(sys/cdefs.h,,
84 AC_MSG_RESULT([enabling generic cdefs.h from tree])
85 CFLAGS="-I\$(top_srcdir)/sys/generic $CFLAGS"
88 dnl Checks for typedefs, structures, and compiler characteristics.
100 dnl Checks for library functions.
102 AC_PROG_GCC_TRADITIONAL
109 AC_CHECK_FUNCS(getcwd gethostname gettimeofday getusershell mkdir rmdir select socket strdup strcasestr strstr strtoul setpgrp strchr memcpy)
112 dnl Checks for (v)snprintf
113 NETATALK_SNPRINTF_CHECK
115 dnl --------------------------------------------------------------------------
116 dnl specific configuration comes in here:
117 dnl --------------------------------------------------------------------------
119 AC_DEFINE(ADMIN_GRP, 1, [Define if the admin group should be enabled])
121 AC_ARG_WITH(admin-group,
122 [ --disable-admin-group disable admin group],
123 if test "$enableval" = "no"; then
124 AC_DEFINE(ADMIN_GRP, 0, [Define if the admin group should be enabled])
125 AC_MSG_RESULT([disabling administrative group support])
134 [ --with-logfile=PATH path for file used by logger [/var/log/netatalk.log]
135 use --without-logfile to disable logger],
136 if test "$withval" = "no"; then
137 AC_DEFINE(DISABLE_LOGGER, 1, [Define if the logger should not be used])
138 AC_MSG_RESULT([logger disabled])
139 elif test "$withval" != "yes"; then
140 AC_DEFINE_UNQUOTED(LOGFILEPATH, "$withval", [Path to the log file])
141 AC_MSG_RESULT([logfile set to $withval])
143 AC_DEFINE_UNQUOTED(LOGFILEPATH, "/var/log/netatalk.log", [Path to the log file])
144 AC_MSG_RESULT([logfile set to default])
146 AC_DEFINE_UNQUOTED(LOGFILEPATH, "/var/log/netatalk.log", [Path to the log file])
147 AC_MSG_RESULT([logfile set to default])
150 AC_ARG_WITH(cracklib,
151 [ --with-cracklib=DICT enable/set location of cracklib dictionary],
152 if test "x$withval" != "xno" ; then
154 AC_CHECK_LIB(crack, main,
155 AC_DEFINE(USE_CRACKLIB, 1, [Define if cracklib should be used])
157 AC_MSG_RESULT([enabling cracklib support])
158 if test "$cracklib" = "yes"; then
159 cracklib="/usr/lib/cracklib_dict"
161 AC_DEFINE_UNQUOTED(_PATH_CRACKLIB, "$cracklib",
162 [path to cracklib dictionary])
163 AC_MSG_RESULT([setting cracklib dictionary to $cracklib]),
164 AC_MSG_ERROR([cracklib not found!])
170 [ --disable-ddp disable DDP],
171 if test "$enableval" = "no"; then
172 AC_DEFINE(NO_DDP, 1, [Define if DDP should be disabled])
173 AC_MSG_RESULT([disabling DDP])
178 [ --enable-debug enable debug code],
179 if test "$enableval" != "no"; then
180 if test "$enableval" = "yes"; then
181 AC_DEFINE(DEBUG, 1, [Define if debugging information should be included])
183 AC_DEFINE_UNQUOTED(DEBUG, $enableval, [Define if debugging information should be included])
185 AC_MSG_RESULT([enabling debugging code])
191 [ --enable-afp3 enable AFP 3.x calls],
192 if test "$enableval" = "yes"; then
194 AC_DEFINE(AFP3x, 1, [Define to enable AFP 3.x support])
195 AC_MSG_RESULT([enabling AFP 3.x calls])
199 if test "$afp3" = "yes"; then
205 dnl ----------- A NOTE ABOUT DROPKLUDGE
206 dnl The trouble with this fix is that if you know what the file is called, it
207 dnl can be read from the Unix side. That's okay for most academic institutions
208 dnl since the students don't have telnet access to the Mac servers. There is
209 dnl currently no one working on further development/fixes of DROPKLUDGE.
212 AC_ARG_ENABLE(dropkludge,
213 [ --enable-dropkludge enable the experimental dropbox fix (INSECURE!) ],
214 if test "$enableval" = "yes"; then
215 AC_DEFINE(DROPKLUDGE, 1, [Define if you want to use the experimental dropkludge support])
216 AC_MSG_RESULT([enabling experimental dropbox support])
220 AC_ARG_ENABLE(force-uidgid,
221 [ --enable-force-uidgid allow forcing of uid/gid per volume (BROKEN) ],
222 if test "$enableval" = "yes"; then
223 AC_DEFINE(FORCE_UIDGID, 1, [Define if you want forcing of uid/gid per volume])
224 AC_MSG_RESULT([enabling forcing of uid/gid per volume])
228 dnl Don't use BDB unless it's needed
231 dnl Determine DID scheme
232 AC_MSG_CHECKING([for DID scheme to use])
234 [ --with-did=SCHEME set DID scheme (cnid,last,hash)],
235 [ did_scheme="$withval" ],
236 [ did_scheme="cnid" ]
239 if test "x$did_scheme" = "xlast"; then
240 AC_DEFINE(USE_LASTDID, 1, [Define if the last DID scheme should be used])
241 AC_MSG_RESULT([last])
242 elif test "x$did_scheme" = "xhash"; then
243 AC_DEFINE(USE_HASHDID, 1, [Define if the hash DID scheme should be used, only one dev])
244 AC_MSG_RESULT([hash])
245 elif test "x$did_scheme" = "xcnid"; then
247 AC_DEFINE(CNID_DB, 1, [Define if the CNID DB DID scheme should be used])
248 AC_MSG_RESULT([enabling build with CNID DB support])
250 AC_MSG_ERROR([unknown DID scheme])
252 AM_CONDITIONAL(COMPILE_CNID, test "x$did_scheme" = "xcnid")
254 dnl Determine whether or not to use filename mangling
255 AC_MSG_CHECKING([whether or not to use filename mangling])
256 AC_ARG_WITH(mangling,
257 [ --with-mangling enable filename mangling],
259 if test "x$withval" = "xyes"; then
260 if test "x$did_scheme" != "xcnid"; then
261 AC_MSG_ERROR([DID scheme must be CNID to use filename mangling])
263 AC_DEFINE(FILE_MANGLING, 1, [Define if file name mangling should be used])
270 if test "x$did_scheme" = "xcnid"; then
271 AC_DEFINE(FILE_MANGLING, 1, [Define if file name mangling should be used])
279 if test "$did_scheme" = "cnid"; then
285 dnl Determine whether or not to use CDB or transactional DB store
286 AC_MSG_CHECKING([whether or not to use CNID with Concurrent Data Store])
288 [ --with-cdb enable CNID with Concurrent Data Store],
289 if test "$withval" = "no"; then
290 if test "x$did_scheme" != "xcnid"; then
292 AC_MSG_ERROR([DID scheme must be CNID to use CDB])
301 , AC_MSG_RESULT([yes])
304 if test "$USE_CDB" = "yes"; then
305 AC_DEFINE(CNID_DB_CDB, 1, [Define if CNID should be used with Concurrent Data Store])
308 dnl Check for Berkeley DB library
309 if test "x$bdb_required" = "xyes"; then
310 AC_PATH_BDB(, [AC_MSG_ERROR([Berkeley DB library not found!])])
313 dnl Check for quota support
316 dnl Check for optional server location protocol support (used by MacOS X)
319 dnl Check for PAM libs
321 PAPD_LIBS="$PAPD_LIBS $PAM_LIBS"
322 AFPD_LIBS="$AFPD_LIBS $PAM_LIBS"
325 AC_DEFINE(USE_PAM, 1, [Define to enable PAM support])
328 AC_MSG_CHECKING([whether shadow support should be enabled])
330 [ --with-shadow enable shadow password support],
331 [shadowpw="$withval"],
334 if test "x$shadowpw" = "xyes"; then
335 AC_DEFINE(SHADOWPW, 1, [Define if shadow passwords should be used])
337 AC_MSG_RESULT([$shadowpw])
339 AC_ARG_ENABLE(shell-check,
340 [ --disable-shell-check disable checking for a valid shell],
341 if test "$enableval" = "no"; then
342 AC_DEFINE(DISABLE_SHELLCHECK, 1, [Define if shell check should be disabled])
343 AC_MSG_RESULT([disabling valid shell check])
347 AC_ARG_WITH(tcp-wrappers,
348 [ --with-tcp-wrappers enable TCP wrappers support],
349 AC_CHECK_LIB(wrap, tcpd_warn,
350 AC_DEFINE(TCPWRAP, 1, [Define if TCP wrappers should be used])
351 AFPD_LIBS="$AFPD_LIBS -lwrap"
352 AC_MSG_RESULT([enabling TCP wrappers support])
356 AC_ARG_ENABLE(redhat,
357 [ --enable-redhat use redhat-style sysv configuration ],
358 if test "$enableval" = "yes"; then
361 AC_MSG_RESULT([enabling redhat-style sysv support])
365 [ --enable-suse use suse-style sysv configuration ],
366 if test "$enableval" = "yes"; then
369 AC_MSG_RESULT([enabling suse-style sysv support])
372 AC_ARG_ENABLE(cobalt,
373 [ --enable-cobalt use cobalt-style sysv configuration ],
374 if test "$enableval" = "yes"; then
377 AC_MSG_RESULT([enabling cobalt-style sysv support])
380 AC_ARG_ENABLE(netbsd,
381 [ --enable-netbsd use NetBSD-style rc.d configuration ],
382 if test "x$enableval" = "xyes"; then
385 AC_MSG_RESULT([enabling NetBSD-style rc.d support])
388 dnl ----- timelord compilation (disabled by default)
389 AC_MSG_CHECKING([whether timelord should be compiled])
391 AC_ARG_ENABLE(timelord,
392 [ --enable-timelord enable compilation of timelord server],
393 [compile_timelord="$enableval"],
394 [compile_timelord="no"]
396 AC_MSG_RESULT([$compile_timelord])
398 dnl ----- a2boot compilation (disabled by default)
399 AC_MSG_CHECKING([whether a2boot should be compiled])
401 AC_ARG_ENABLE(a2boot,
402 [ --enable-a2boot enable compilation of Apple2 boot server],
403 [compile_a2boot="$enableval"],
404 [compile_a2boot="no"]
406 AC_MSG_RESULT([$compile_a2boot])
408 AC_ARG_WITH(uams-path,
409 [ --with-uams-path=PATH path to UAMs [[PKGCONF/uams]]],
410 uams_path="$withval",
411 uams_path="${PKGCONFDIR}/uams"
414 dnl --------------------------------------------------------------------------
415 dnl FHS stuff has to be done last because it overrides other defaults
416 dnl --------------------------------------------------------------------------
419 [ --enable-fhs use Filesystem Hierarchy Standard (FHS) compatibility],
420 if test "$enableval" = "yes"; then
421 uams_path="${libdir}/netatalk"
423 PKGCONFDIR=${sysconfdir}/netatalk
424 SERVERTEXT="${PKGCONFDIR}/msg"
425 NLSDIR="${PKGCONFDIR}/nls"
427 mandir="/usr/share/man"
428 AC_DEFINE(FHS_COMPATIBILITY, 1, [Define if you want compatibily with the FHS])
430 AC_MSG_RESULT([enabling Filesystem Hierarchy Standard (FHS) compatibility])
433 dnl --------------------------------------------------------------------------
434 dnl post-FHS substitutions, etc
435 dnl --------------------------------------------------------------------------
438 AC_DEFINE_UNQUOTED(UAMS_PATH, "${uams_path}",
439 [path to UAMs [default=PKGCONF/uams]])
440 UAMS_PATH="${uams_path}"
443 dnl --------------------------------------------------------------------------
444 dnl drop in includes for top level directory structures here...
445 dnl --------------------------------------------------------------------------
447 dnl Note: $(top_srcdir)/include should be added before all other includes
448 dnl so that includes from that directory a preferred to includes from
449 dnl /usr/include or similar places.
450 LIBS="$LIBS -L\$(top_srcdir)/libatalk"
451 CFLAGS="-I\$(top_srcdir)/include $CFLAGS -I\$(top_srcdir)/sys"
453 dnl --------------------------------------------------------------------------
454 dnl specific configuration comes in here:
455 dnl --------------------------------------------------------------------------
457 dnl ac_cv_target_os is now host_os, ac_cv_target_cpu is now host_cpu
459 dnl --------------------- determine operating system from "target"
461 *aix*) this_os=aix ;;
462 *freebsd*) this_os=freebsd ;;
463 *hpux11*) this_os=hpux11 ;;
464 *irix*) this_os=irix ;;
465 *linux*) this_os=linux ;;
466 *osx*) this_os=macosx ;;
467 *darwin*) this_os=macosx ;;
468 *netbsd*) this_os=netbsd ;;
469 *openbsd*) this_os=openbsd ;;
470 *osf*) this_os=tru64 ;;
471 *solaris*) this_os=solaris ;;
475 i386|i486|i586|i686|k7) this_cpu=x86 ;;
476 alpha) this_cpu=alpha ;;
477 mips) this_cpu=mips ;;
478 powerpc|ppc) this_cpu=ppc ;;
481 dnl --------------------- operating system specific flags (port from sys/*)
483 dnl ----- AIX specific -----
484 if test x"$this_os" = "xaix"; then
485 AC_MSG_RESULT([ * AIX specific configuration])
486 AC_DEFINE(NO_STRUCT_TM_GMTOFF, 1, [Define if the gmtoff member of struct tm is not available])
488 dnl This is probably a lie; AIX 4.3 supports a 64-bit long
489 dnl compilation environment. It's enough to get things defined
490 dnl right in endian.h provided that long long is supported, though.
491 AC_DEFINE(HAVE_32BIT_LONGS, 1, [Define if the data type long has 32 bit])
494 dnl ----- FreeBSD specific -----
495 if test x"$this_os" = "xfreebsd"; then
496 AC_MSG_RESULT([ * FreeBSD specific configuration])
497 AC_DEFINE(BSD4_4, 1, [BSD compatiblity macro])
498 AC_DEFINE(SENDFILE_FLAVOR_BSD, 1, [Define if the sendfile() function uses BSD semantics])
500 AC_DEFINE(NO_CRYPT_H, 1, [Define if crypt.h does not exist])
503 dnl ----- HP-UX 11 specific -----
504 if test x"$this_os" = "xhpux11"; then
505 AC_MSG_RESULT([ * HP-UX 11 specific configuration])
507 AC_DEFINE(_ISOC9X_SOURCE, 1, [Compatibility macro])
508 AC_DEFINE(NO_STRUCT_TM_GMTOFF, 1, [Define if the gmtoff member of struct tm is not available])
511 dnl ----- IRIX specific -----
512 if test x"$this_os" = "xirix"; then
513 AC_MSG_RESULT([ * IRIX specific configuration])
515 AC_DEFINE(NO_STRUCT_TM_GMTOFF, 1, [Define if the gmtoff member of struct tm is not available])
518 dnl ----- Linux specific -----
519 if test x"$this_os" = "xlinux"; then
520 AC_MSG_RESULT([ * Linux specific configuration])
522 dnl ----- check if we need the quotactl wrapper
523 AC_CHECK_HEADERS(sys/quota.h linux/quota.h)
524 AC_CHECK_FUNC(quotactl,,
525 AC_DEFINE(NEED_QUOTACTL_WRAPPER, 1, [Define if the quotactl wrapper is needed])
526 AC_MSG_RESULT([enabling quotactl wrapper])
529 dnl ----- as far as I can tell, dbtob always does the wrong thing
530 dnl ----- on every single version of linux I've ever played with.
531 dnl ----- see etc/afpd/quota.c
532 AC_DEFINE(HAVE_BROKEN_DBTOB, 1, [Define if dbtob is broken])
534 dnl --- added by Yoshinobu Ishizaki (2001.03.13) ---
535 dnl ----- check if version is newer than 2.2.x
537 majorvers="`uname -r | sed 's/\([0-9]\)..*/\1/'`"
538 minorvers="`uname -r | sed 's/[0-9]\.\([0-9]\)\..*/\1/'`"
539 if [ $majorvers -ge 2 ]; then
540 if [ $minorvers -ge 2 ]; then
542 AC_MSG_RESULT([ * found Linux 2.2.x or higher])
543 AC_DEFINE(SENDFILE_FLAVOR_LINUX, 1, [Define if the sendfile() function uses Linux semantics])
545 AC_MSG_RESULT([ * found Linux 2.0.x ])
549 dnl ----- Linux/alpha specific -----
550 if test x"$this_cpu" = "xalpha"; then
551 AC_MSG_RESULT([enabling gcc memcpy bug workaround])
552 AC_DEFINE(HAVE_GCC_MEMCPY_BUG, 1, [Define if memcpy is buggy])
557 dnl ----- Mac OSX specific -----
558 if test x"$this_os" = "xmacosx"; then
559 AC_MSG_RESULT([ * Mac OSX specific configuration])
560 AC_DEFINE(BSD4_4, 1, [BSD compatiblity macro])
561 AC_DEFINE(HAVE_BROKEN_CPP, 1, [Define if cpp is broken])
562 AC_DEFINE(HAVE_2ARG_DBTOB, 1, [Define if dbtob takes two arguments])
563 dnl AC_DEFINE(NO_DLFCN_H)
564 AC_DEFINE(MACOSX_SERVER, 1, [Define if compiling for MacOS X Server])
567 dnl ----- NetBSD specific -----
568 if test x"$this_os" = "xnetbsd"; then
569 AC_MSG_RESULT([ * NetBSD specific configuration])
570 AC_DEFINE(BSD4_4, 1, [BSD compatiblity macro])
571 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
572 # NetBSD ELF machines don't have to have DLSYM_PREPEND_UNDERSCORE.
573 # If this test is true, it's not an ELF box.
574 # This REALLY should be a configure test.
575 AC_DEFINE(DLSYM_PREPEND_UNDERSCORE, 1, [BSD compatibility macro])
577 CFLAGS="-I\$(top_srcdir)/sys/netbsd -I/usr/include/kerberosIV $CFLAGS"
580 dnl ----- NetBSD does not have crypt.h, uses unistd.h -----
581 AC_DEFINE(UAM_DHX, 1, [Define if the DHX UAM modules should be compiled])
582 AC_DEFINE(NO_CRYPT_H, 1, [Define if crypt.h does not exist])
585 dnl ----- OpenBSD specific -----
586 if test x"$this_os" = "xopenbsd"; then
587 AC_MSG_RESULT([ * OpenBSD specific configuration])
588 AC_DEFINE(BSD4_4, 1, [BSD compatiblity macro])
589 AC_DEFINE(DLSYM_PREPEND_UNDERSCORE, 1, [BSD compatibility macro])
591 dnl ----- OpenBSD does not have crypt.h, uses unistd.h -----
592 AC_DEFINE(UAM_DHX, 1, [Define if the DHX UAM modules should be compiled])
593 AC_DEFINE(NO_CRYPT_H, 1, [Define if crypt.h does not exist])
596 dnl ----- Solaris specific -----
597 if test x"$this_os" = "xsolaris"; then
598 AC_MSG_RESULT([ * Solaris specific configuration])
599 AC_DEFINE(__svr4__, 1, [Solaris compatibility macro])
600 AC_DEFINE(_ISOC9X_SOURCE, 1, [Compatibility macro])
601 AC_DEFINE(NO_STRUCT_TM_GMTOFF, 1, [Define if the gmtoff member of struct tm is not available])
602 AC_DEFINE(SOLARIS, 1, [Solaris compatibility macro])
603 CFLAGS="-I\$(top_srcdir)/sys/generic $CFLAGS"
606 AC_MSG_RESULT([enabling Solaris kernel module build])
610 dnl ----- Tru64 specific -----
611 if test x"$this_os" = "xtru64"; then
612 AC_MSG_RESULT([ * Tru64 specific configuration])
613 AC_DEFINE(NO_DDP, 1, [Define if DDP should be disabled])
614 AC_DEFINE(HAVE_64BIT_LONGS, 1, [Define if the data type long has 64 bit])
615 dnl AC_DEFINE(USE_MOUNT_H)
616 AC_DEFINE(USE_OLD_RQUOTA, 1, [Define to use old rquota])
617 dnl AC_DEFINE(USE_UFS_QUOTA_H)
618 AC_DEFINE(TRU64, 1, [Define on Tru64 platforms])
619 AC_CHECK_LIB(security,set_auth_parameters)
620 CFLAGS="-I\$(top_srcdir)/sys/tru64 $CFLAGS"
625 dnl -- look for openssl
628 dnl --------------------- check for building PGP UAM module
630 AC_ARG_ENABLE(pgp-uam,
631 [ --enable-pgp-uam enable build of PGP UAM module],
632 if test "$enableval" = "yes"; then
633 if test "$compile_ssl" = "yes"; then
634 AC_DEFINE(UAM_PGP, 1, [Define if the PGP UAM module should be compiled])
636 AC_MSG_RESULT([enabling build with PGP UAM module])
641 dnl --------------------- check for building Kerberos v4 UAM module
643 AC_ARG_ENABLE(krb4-uam,
644 [ --enable-krb4-uam enable build of Kerberos v4 UAM module],
645 if test "$enableval" = "yes"; then
646 AC_DEFINE(UAM_KRB4, 1, [Define if the Kerberos 4 UAM module should be compiled])
648 AC_MSG_RESULT([enabling build with Kerberos v4 UAM module])
651 dnl --------------------- overwrite the config files . . . or not.
653 AC_MSG_CHECKING([whether configuration files should be overwritten])
654 AC_ARG_ENABLE(overwrite,
655 [ --enable-overwrite overwrite configuration files during installation],
656 [OVERWRITE_CONFIG="${enable_overwrite}"],
657 [OVERWRITE_CONFIG="no"]
659 AC_MSG_RESULT([$OVERWRITE_CONFIG])
661 dnl --------------------- last minute substitutions
667 AC_SUBST(OVERWRITE_CONFIG)
669 AM_CONDITIONAL(SOLARIS_MODULE, test x$solaris_module = xyes)
670 AM_CONDITIONAL(COMPILE_TIMELORD, test x$compile_timelord = xyes)
671 AM_CONDITIONAL(COMPILE_A2BOOT, test x$compile_a2boot = xyes)
672 AM_CONDITIONAL(USE_DHX, test x$compile_ssl = xyes)
673 AM_CONDITIONAL(USE_KERBEROS, test x$compile_kerberos = xyes)
674 AM_CONDITIONAL(USE_PAM_SO, test x$use_pam_so = xyes)
675 AM_CONDITIONAL(USE_PAM, test x$compile_pam = xyes)
676 AM_CONDITIONAL(BUILD_PAM, test x$compile_pam = xyes)
677 AM_CONDITIONAL(USE_PGP, test x$compile_pgp = xyes)
678 AM_CONDITIONAL(USE_COBALT, test x$sysv_style = xcobalt)
679 AM_CONDITIONAL(USE_NETBSD, test x$sysv_style = xnetbsd)
680 AM_CONDITIONAL(USE_REDHAT, test x$sysv_style = xredhat)
681 AM_CONDITIONAL(USE_SUSE, test x$sysv_style = xsuse)
682 AM_CONDITIONAL(USE_SHADOWPW, test x$shadowpw = xyes)
683 AM_CONDITIONAL(USE_TRU64, test x$sysv_style = xtru64)
685 dnl --------------------- generate files
689 bin/adv1tov2/Makefile
692 bin/afppasswd/Makefile
695 bin/getzones/Makefile
696 bin/megatron/Makefile
702 contrib/macusers/Makefile
703 contrib/macusers/macusers
706 contrib/printing/Makefile
707 contrib/shell_utils/Makefile
708 contrib/shell_utils/afpd-mtab.pl
709 contrib/shell_utils/apple_cp
710 contrib/shell_utils/apple_mv
711 contrib/shell_utils/apple_rm
712 contrib/shell_utils/cleanappledouble.pl
713 contrib/shell_utils/netatalkshorternamelinks.pl
714 contrib/timelord/Makefile
715 contrib/a2boot/Makefile
717 distrib/config/Makefile
718 distrib/config/netatalk-config
719 distrib/initscripts/Makefile
724 etc/afpd/nls/Makefile
727 etc/uams/uams_krb4/Makefile
731 include/atalk/Makefile
733 libatalk/adouble/Makefile
734 libatalk/asp/Makefile
735 libatalk/atp/Makefile
736 libatalk/cnid/Makefile
737 libatalk/compat/Makefile
738 libatalk/dsi/Makefile
739 libatalk/nbp/Makefile
740 libatalk/netddp/Makefile
741 libatalk/util/Makefile
751 sys/generic/sys/Makefile
752 sys/netatalk/Makefile
754 sys/netbsd/netatalk/Makefile
756 sys/solaris/Makefile.kernel
760 [chmod a+x distrib/config/netatalk-config contrib/shell_utils/apple_*]