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_WITH(admin-group,
112 [ --with-admin-group=grp enable and set administrative group],
114 AC_DEFINE_UNQUOTED(ADMIN_GRP, "$admin_grp")
115 AC_MSG_RESULT([enabling administrative group "$admin_grp"]),
118 AC_ARG_WITH(auth-printing-dir,
119 [ --with-auth-printing-dir=path
120 path to authenticated printing directory],
122 AC_DEFINE_UNQUOTED(CAPDIR, "$cap_dir")
124 AC_MSG_RESULT([enabling authenticated printing support]),
127 AC_ARG_WITH(config-dir,
128 [ --with-config-dir=path path to config files [default=/etc/atalk]],
129 config_dir="$withval",
130 config_dir="/etc/atalk"
132 AC_DEFINE_UNQUOTED(CONFIG_DIR, "$config_dir",
133 [path to config dir [default=/etc/atalk]])
134 CONFIG_DIR="$config_dir"
136 AC_MSG_RESULT([setting configuration files location to $CONFIG_DIR]),
138 AC_ARG_WITH(cracklib,
139 [ --with-cracklib=dict enable/set location of cracklib dictionary],
141 AC_CHECK_LIB(crack, main,
142 AC_DEFINE(USE_CRACKLIB)
144 AC_MSG_RESULT([enabling cracklib support])
145 if test x"$cracklib" = "x"; then
146 crackdict="$prefix/lib/cracklib_dict"
148 AC_DEFINE_UNQUOTED(_PATH_CRACKLIB, "$cracklib",
149 [path to cracklib dictionary])
150 AC_MSG_RESULT([setting cracklib dictionary to $cracklib]),
151 AC_MSG_ERROR([cracklib not found!])
156 [ --disable-ddp disable DDP],,
158 AC_MSG_RESULT([disabling DDP])
162 [ --enable-debug enable debug code],
164 AC_MSG_RESULT([enabling debugging code]),
169 AC_ARG_WITH(message-dir,
170 [ --with-msg-dir=path path to message files [default=/etc/atalk/msg]],
172 if test x"$msg_dir" = "x"; then
173 msg_dir="$CONFIG_DIR/msg"
175 AC_DEFINE_UNQUOTED(SERVERTEXT, "$msg_dir",
176 [path to message dir [default=$CONFIG_DIR/msg]])
177 SERVERTEXT="$msg_dir"
182 [ --with-pam enable password authentication modules support],
183 AC_CHECK_LIB(pam, main,
186 AC_MSG_RESULT([enabling pam modules support])
191 [ --with-shadow enable shadow password support],
192 AC_MSG_RESULT([enabling shadow password support])
196 AC_ARG_WITH(flock-locks,
197 [ --with-flock-locks enable flock locks support],
198 AC_MSG_RESULT([enabling flock locks])
199 AC_DEFINE(USE_FLOCK_LOCKS)
202 AC_ARG_WITH(tcp-wrappers,
203 [ --with-tcp-wrappers enable TCP wrappers support],
204 AC_CHECK_LIB(wrap, main,
207 AC_MSG_RESULT([enabling TCP wrappers support])
211 AC_ARG_WITH(uams-path,
212 [ --with-uams-path=path path to UAMs [default=/etc/atalk/uams]],
213 uams_path="$withval",
214 uams_path="/etc/atalk/uams"
216 AC_DEFINE_UNQUOTED(UAMS_PATH, "$uams_path",
217 [path to UAMs [default=/etc/atalk/uams]])
218 UAMS_PATH="$uams_path"
221 dnl --------------------------------------------------------------------------
222 dnl drop in includes for top level directory structures here...
223 dnl --------------------------------------------------------------------------
224 LIBS="$LIBS -L\$(top_srcdir)/libatalk/"
225 CFLAGS="$CFLAGS -I\$(top_srcdir)/include -I\$(top_srcdir)/sys"
229 dnl --------------------------------------------------------------------------
230 dnl specific configuration comes in here:
231 dnl --------------------------------------------------------------------------
233 dnl --------------------- determine operating system from "target"
235 *linux*) this_os=linux ;;
236 *solaris*) this_os=solaris ;;
239 dnl --------------------- conditional libraries, etc from "target"
241 dnl List of Makefiles to generate
245 bin/adv1tov2/Makefile
247 bin/afppasswd/Makefile
248 bin/getzones/Makefile
249 bin/megatron/Makefile
256 contrib/printing/Makefile
257 contrib/timelord/Makefile
259 distrib/config/Makefile
260 distrib/config/netatalk-config
261 distrib/initscripts/Makefile
262 distrib/initscripts/rc.atalk.redhat
266 etc/afpd/nls/Makefile
272 include/atalk/Makefile
274 libatalk/adouble/Makefile
275 libatalk/asp/Makefile
276 libatalk/atp/Makefile
277 libatalk/compat/Makefile
278 libatalk/dsi/Makefile
279 libatalk/nbp/Makefile
280 libatalk/netddp/Makefile
281 libatalk/util/Makefile
288 sys/netatalk/Makefile
290 [chmod a+x distrib/config/netatalk-config]