1 dnl configure.in for netatalk
3 AC_INIT(bin/adv1tov2/adv1tov2.c)
5 NETATALK_VERSION=`cat VERSION`
6 AC_SUBST(NETATALK_VERSION)
9 AM_INIT_AUTOMAKE(netatalk, ${NETATALK_VERSION})
10 AM_CONFIG_HEADER(config.h)
12 dnl Reset locations to proper places
13 AC_PREFIX_DEFAULT(/usr)
15 dnl Checks for programs.
23 dnl *********************************************************************
24 dnl FIXME! FIXME! These should be selectable properly, and should produce
25 dnl the proper flags and defines...
26 dnl *********************************************************************
28 dnl Checks for libraries.
29 dnl Replace `main' with a function in -labs:
30 AC_CHECK_LIB(abs, main)
31 dnl Replace `main' with a function in -laudit:
32 AC_CHECK_LIB(audit, main)
33 dnl Replace `main' with a function in -lauth:
34 AC_CHECK_LIB(auth, main)
35 dnl Replace `main' with a function in -lcmd:
36 AC_CHECK_LIB(cmd, main)
37 dnl Replace `main' with a function in -lcom_err:
38 AC_CHECK_LIB(com_err, main)
39 dnl Replace `main' with a function in -lcrypt:
40 AC_CHECK_LIB(crypt, main)
41 dnl Replace `main' with a function in -lcrypto:
42 AC_CHECK_LIB(crypto, main)
43 dnl Replace `main' with a function in -ld:
45 dnl Replace `main' with a function in -ldb:
46 AC_CHECK_LIB(db, main)
47 dnl Replace `main' with a function in -ldes:
48 AC_CHECK_LIB(des, main)
49 dnl Replace `main' with a function in -ldl:
50 AC_CHECK_LIB(dl, main)
51 dnl Replace `main' with a function in -lkauth:
52 AC_CHECK_LIB(kauth, main)
53 dnl Replace `main' with a function in -lkrb:
54 AC_CHECK_LIB(krb, main)
55 dnl Replace `main' with a function in -llwp:
56 AC_CHECK_LIB(lwp, main)
57 dnl Replace `main' with a function in -ln:
59 dnl Replace `main' with a function in -lnsl:
60 AC_CHECK_LIB(nsl, main)
61 dnl Replace `main' with a function in -lprot:
62 AC_CHECK_LIB(prot, main)
63 dnl Replace `main' with a function in -lresolv:
64 AC_CHECK_LIB(resolv, main)
65 dnl Replace `main' with a function in -lrpcsvc:
66 AC_CHECK_LIB(rpcsvc, main)
67 dnl Replace `main' with a function in -lrx:
68 AC_CHECK_LIB(rx, main)
69 dnl Replace `main' with a function in -lrxkad:
70 AC_CHECK_LIB(rxkad, main)
71 dnl Replace `main' with a function in -lsocket:
72 AC_CHECK_LIB(socket, main)
73 dnl Replace `main' with a function in -lsys:
74 AC_CHECK_LIB(sys, main)
75 dnl Replace `main' with a function in -lubik:
76 AC_CHECK_LIB(ubik, main)
78 dnl Checks for header files.
82 AC_CHECK_HEADERS(fcntl.h limits.h strings.h sys/file.h sys/ioctl.h sys/time.h syslog.h unistd.h)
84 dnl Checks for typedefs, structures, and compiler characteristics.
96 dnl Checks for library functions.
98 AC_PROG_GCC_TRADITIONAL
105 AC_CHECK_FUNCS(getcwd gethostname gettimeofday getusershell mkdir rmdir select socket strdup strstr strtoul)
107 dnl --------------------------------------------------------------------------
108 dnl specific configuration comes in here:
109 dnl --------------------------------------------------------------------------
111 AC_ARG_ENABLE(auth-printing-dir,
112 [ --with-auth-printing-dir=path
113 path to authenticated printing directory],
115 AC_DEFINE_UNQUOTED(CAPDIR, "$cap_dir")
117 AC_MSG_RESULT([enabling authenticated printing support.]),
120 AC_ARG_ENABLE(config-dir,
121 [ --with-config-dir=path path to config files [default=/etc/atalk]],
122 config_dir="$withval",
123 config_dir="/etc/atalk"
125 AC_DEFINE_UNQUOTED(CONFIG_DIR, "$config_dir",
126 [path to config dir [default=/etc/atalk]])
127 CONFIG_DIR="$config_dir"
130 AC_ARG_WITH(cracklib,
131 [ --with-cracklib enable cracklib checking support],
133 AC_CHECK_LIB(crack, main,
134 AC_DEFINE(USE_CRACKLIB)
136 AC_MSG_RESULT([Enabling cracklib support.]),
141 crackdict="/usr/lib/cracklib_dict"
142 AC_ARG_WITH(crackdict,
143 [ --with-crackdict=path set location of cracklib dictionary],
147 if test x"$with_cracklib" = "xyes"; then
148 AC_CHECK_FILE("$crackdict.pwd",
149 AC_DEFINE_UNQUOTED(_PATH_CRACKLIB, "$crackdict",
150 [path to cracklib dictionary]),
151 AC_MSG_ERROR([$crackdict does not contain the dictionary])
156 [ --enable-debug enable debug code],
158 AC_MSG_RESULT([Enabling debugging code.]),
163 [ --with-pam enable password authentication modules support],
164 AC_CHECK_LIB(pam, main,
167 AC_MSG_RESULT([Enabling shadow password support.])
172 [ --with-shadow enable shadow password support],
173 AC_MSG_RESULT([Enabling shadow password support.])
177 AC_ARG_WITH(flock-locks,
178 [ --with-flock-locks enable flock locks support],
179 AC_MSG_RESULT([Enabling flock locks.])
180 AC_DEFINE(USE_FLOCK_LOCKS)
183 AC_ARG_WITH(tcp-wrappers,
184 [ --with-tcp-wrappers enable TCP wrappers support],
185 AC_CHECK_LIB(wrap, main,
188 AC_MSG_RESULT([Enabling TCP wrappers support.])
192 AC_ARG_WITH(uams-path,
193 [ --with-uams-path=path path to UAMs [default=/etc/atalk/uams]],
194 uams_path="$withval",
195 uams_path="/etc/atalk/uams"
197 AC_DEFINE_UNQUOTED(UAMS_PATH, "$uams_path",
198 [path to UAMs [default=/etc/atalk/uams]])
199 UAMS_PATH="$uams_path"
202 dnl --------------------------------------------------------------------------
203 dnl specific configuration comes in here:
204 dnl --------------------------------------------------------------------------
206 dnl --------------------- determine operating system from "target"
208 *linux*) this_os=linux ;;
209 *solaris*) this_os=solaris ;;
212 dnl --------------------- conditional libraries, etc from "target"
214 dnl List of Makefiles to generate
218 bin/adv1tov2/Makefile
220 bin/afppasswd/Makefile
221 bin/getzones/Makefile
222 bin/megatron/Makefile
229 etc/afpd/nls/Makefile
235 include/atalk/Makefile
237 libatalk/adouble/Makefile
238 libatalk/asp/Makefile
239 libatalk/atp/Makefile
240 libatalk/compat/Makefile
241 libatalk/dsi/Makefile
242 libatalk/nbp/Makefile
243 libatalk/netddp/Makefile
244 libatalk/util/Makefile
251 sys/netatalk/Makefile