219 | | --- configure.in.orig 2006-05-12 16:26:10.000000000 -0400 |
---|
220 | | +++ configure.in 2007-12-18 15:53:40.000000000 -0500 |
---|
221 | | @@ -1,6 +1,6 @@ |
---|
222 | | AC_INIT(patchlevel.h) |
---|
223 | | |
---|
224 | | -dnl On Athena at least, many of the packages (krb, zephyr, hesiod, etc) |
---|
225 | | +dnl On Athena at least, many of the packages (krb, hesiod, etc) |
---|
226 | | dnl will all be in /usr/athena... this hack lets us not end up with 10 |
---|
227 | | dnl copies of -I/usr/athena/include -L/usr/athena/lib in our command lines |
---|
228 | | AC_DEFUN(MR_EXTEND, [ |
---|
229 | | @@ -115,17 +115,16 @@ |
---|
230 | | [ --with-krb4=PREFIX Specify location of krb4], |
---|
231 | | [krb4="$withval"], [krb4=no]) |
---|
232 | | AC_MSG_RESULT($krb4) |
---|
233 | | -if test $krb4 = "no"; then |
---|
234 | | - AC_MSG_ERROR(Kerberos is required for Moira) |
---|
235 | | -fi |
---|
236 | | -if test "$krb4" != yes; then |
---|
237 | | - MR_INCLUDE($krb4/include) |
---|
238 | | - if test -d "$krb4/include/kerberosIV"; then |
---|
239 | | - MR_INCLUDE($krb4/include/kerberosIV) |
---|
240 | | +if test "$krb4" != no; then |
---|
241 | | + if test "$krb4" != yes; then |
---|
242 | | + MR_INCLUDE($krb4/include) |
---|
243 | | + if test -d "$krb4/include/kerberosIV"; then |
---|
244 | | + MR_INCLUDE($krb4/include/kerberosIV) |
---|
245 | | + fi |
---|
246 | | + MR_LIBS($krb4/lib) |
---|
247 | | + elif test -d /usr/include/kerberosIV; then |
---|
248 | | + MR_INCLUDE(/usr/include/kerberosIV) |
---|
249 | | fi |
---|
250 | | - MR_LIBS($krb4/lib) |
---|
251 | | -elif test -d /usr/include/kerberosIV; then |
---|
252 | | - MR_INCLUDE(/usr/include/kerberosIV) |
---|
253 | | fi |
---|
254 | | AC_CHECK_LIB(k5crypto, main, crypto="k5crypto", |
---|
255 | | [AC_CHECK_LIB(crypto, main, crypto="crypto")]) |
---|
256 | | @@ -143,20 +142,26 @@ |
---|
257 | | [krb5="$withval"], [krb5=no]) |
---|
258 | | AC_MSG_RESULT($krb5) |
---|
259 | | if test "$krb5" != no; then |
---|
260 | | - REG_SVR_DEFS=-DKRB5 |
---|
261 | | if test "$krb5" != yes; then |
---|
262 | | - REG_SVR_INCLUDES=-I$krb5/include |
---|
263 | | - REG_SVR_LIBS=-L$krb5/lib |
---|
264 | | + REG_SVR_DEFS=-DKRB5 |
---|
265 | | + if test "$krb5" != yes; then |
---|
266 | | + REG_SVR_INCLUDES=-I$krb5/include |
---|
267 | | + REG_SVR_LIBS=-L$krb5/lib |
---|
268 | | + fi |
---|
269 | | + REG_SVR_LIBS="$REG_SVR_LIBS -lkadm5clnt -lgssapi_krb5 -lgssrpc -lkrb4 -ldes425 -lkrb5 -l${crypto} -lresolv" |
---|
270 | | + else |
---|
271 | | + REG_SVR_DEFS=-DKRB4 |
---|
272 | | + REG_SVR_LIBS=-lkadm |
---|
273 | | fi |
---|
274 | | - REG_SVR_LIBS="$REG_SVR_LIBS -lkadm5clnt -lgssapi_krb5 -lgssrpc -lkrb4 -ldes425 -lkrb5 -l${crypto} -lresolv" |
---|
275 | | -else |
---|
276 | | - REG_SVR_DEFS=-DKRB4 |
---|
277 | | - REG_SVR_LIBS=-lkadm |
---|
278 | | fi |
---|
279 | | AC_SUBST(REG_SVR_DEFS) |
---|
280 | | AC_SUBST(REG_SVR_INCLUDES) |
---|
281 | | AC_SUBST(REG_SVR_LIBS) |
---|
282 | | |
---|
283 | | +if test $krb5 = "no" -a $krb4 = "no"; then |
---|
284 | | + AC_MSG_ERROR(Kerberos is required for Moira) |
---|
285 | | +fi |
---|
286 | | + |
---|
287 | | # Hesiod support |
---|
288 | | AC_MSG_CHECKING(for Hesiod) |
---|
289 | | AC_ARG_WITH(hesiod, |
---|
290 | | @@ -176,23 +181,6 @@ |
---|
291 | | MR_DEFINE(HAVE_HESIOD) |
---|
292 | | fi |
---|
293 | | |
---|
294 | | -# Zephyr support |
---|
295 | | -AC_MSG_CHECKING(for Zephyr) |
---|
296 | | -AC_ARG_WITH(zephyr, |
---|
297 | | - [ --with-zephyr=PREFIX Specify location of Zephyr], |
---|
298 | | - [zephyr="$withval"], [zephyr=no]) |
---|
299 | | -AC_MSG_RESULT($zephyr) |
---|
300 | | -if test "$zephyr" != no; then |
---|
301 | | - if test "$zephyr" != yes; then |
---|
302 | | - MR_INCLUDE($zephyr/include) |
---|
303 | | - MR_LIBS($zephyr/lib) |
---|
304 | | - fi |
---|
305 | | - AC_CHECK_LIB(zephyr, ZInitialize, :, |
---|
306 | | - [AC_MSG_ERROR(Zephyr library not found)], |
---|
307 | | - $LIBPATH $KRB4_LIBS -lcom_err) |
---|
308 | | - MR_DEFINE(HAVE_ZEPHYR) |
---|
309 | | -fi |
---|
310 | | - |
---|
311 | | # RSAREF support (default: build util/rsaref if present) |
---|
312 | | AC_MSG_CHECKING(for RSAREF) |
---|
313 | | AC_ARG_WITH(rsaref, |
---|
314 | | @@ -449,7 +437,7 @@ |
---|
315 | | MR_INCLUDE('$(BUILDTOP)/db') |
---|
316 | | MR_INCLUDE('$(srcdir)') |
---|
317 | | LDFLAGS="$LDFLAGS -L\$(BUILDTOP)/lib $LIBPATH" |
---|
318 | | -KLIBS="-lzephyr $KRB4_LIBS -lcom_err -lhesiod $LIBS" |
---|
319 | | +KLIBS="$KRB4_LIBS -lcom_err -lhesiod $LIBS" |
---|
320 | | LIBS="-lmoira $KLIBS" |
---|
321 | | AC_SUBST(KLIBS) |
---|
322 | | |
---|