Compiling arla 0.31+ with MIT KRB5

Love lha at stacken.kth.se
Wed Apr 19 14:26:25 CEST 2000


Steve Langasek <vorlon at dodds.net> writes:

> > Can you please try it out and see it works for you ?
> 
> Now it works if I run
>     ./configure --with-krbafs=/usr/kerberos 
> 
> ...but if I try to specify a path using --with-krb5 or --with-krb4, it
> breaks!  Surely this is not the intended behavior?

Are you sure it broke ? Isn't it so that is just runs happy along with want
you told it ?

> [...] 
> Shouldn't it use the same set of autoconf checks in both cases?
> It works, but only if I'm not trying to be helpful.. hmm. :)

It works the following way:
* if you don't give an argument, it will autoprobe
* if you just give --with-krbN, it will autoprobe
* if you give --with-krbN=/path/here, it will use /path/here/{include,lib}
    without asking any stupid questions.
* if you give --without-krbN, it will not use krbN
 
> The next problem I find is that, even though it finds all of the libraries
> and headers, the macro KERBEROS is not defined.
> 
> Here is a micropatch that would define KERBEROS when including KRB4
> compatibility libraries from Kerberos 5:
> 
> --- cf/check-kerberos.m4.orig   Tue Apr 18 14:31:39 2000
> +++ cf/check-kerberos.m4        Tue Apr 18 14:32:11 2000
> @@ -282,6 +282,7 @@
>    ifelse(-1,regexp($1,5),[
>      ac_cv_found_krb5=no
>      with_krb4=yes
> +    AC_DEFINE(KERBEROS, 1, [define if you have kerberos])
>      AC_DEFINE(HAVE_KRB5_COMPAT_KRB4, 1, [define if you have kerberos 4 compat])
>      AC_DEFINE(HAVE_KRB4, 1, [define if you have kerberos 4])
>    ],[
> 

Forgot that, thanks, added it with a twist to the cvs-repository.
 
> However, this will never be invoked because of the way AC_CHECK_KERBEROS
> is called in configure.in.  I'm not sure what the proper way to fix this
> is?

configure in generated by configure.in + aclocal.m4.

aclocal.m4 is generated by aclocal (the program) + acinclude.m4 + all test
in -I argument to aclocal.

See the file HACKING and autoconf info pages.

If you just want to try you patch (that will work) just enter the commands
in HACKING (you'll need autoconf 1.4 and autoconf 2.13 (or never))

Love





More information about the Arla-drinkers mailing list