"Burton M. Strauss III" a �crit :
> That's the flaw in the AC_CHECK_HEADER() macro provided by autoconf. Look
> for "Generic Header Checks" in
> http://www.gnu.org/manual/autoconf-2.53/html_mono/autoconf.html.
>
> The syntax, AC_CHECK_HEADER (header-file, [action-if-found],
> [action-if-not-found], [includes = default-includes]), allows for other .h
> files, but if they're not found (say the more normal situation of openSSL
> compiled w/o Kerberos), then it causes problems.
>
> The only solution is to nest them... e.g. make it (in configure.in):
> AC_CHECK_HEADER([ssl.h],, AC_CHECK_HEADER([ssl.h],,, [krb5.h]))
> then rerun autoconf.
> I've done that in a few places already. Try it and let me know...
This - and every other variations on this I tried - failed.
In fact, it looks like what this does is simply writes the 4th argument of the
macro to a text file, above a "#include <openssl/ssl.h>", and attempt to
preprocess and compile the file. This fails, probably because krb5.h (and other
kerberos includes) are included in ssl.h by "#include <krb5.h>", and
/usr/kerberos/include/ is not one of the standard paths for header files.
However, I found this to work :
--- configure.in.orig 2003-08-14 11:52:36.000000000 +0200
+++ configure.in 2003-08-14 11:59:53.000000000 +0200
@@ -911,6 +911,8 @@
case "${DISTRO}" in
redhat)
+ echo "Setting RedHat specific flag values for kerberos
headers..."
+ CPPFLAGS="-I/usr/kerberos/include/ ${CPPFLAGS}"
case "${LINUXRELEASE}" in
[[89]].0)
echo
With these changes, it does configure, compile, and run fine, with openssl
enabled ;-) !
I have no clue why the kerberos include files are not in one of the standard
locations (is that specific to RH 9 ?).
I tried putting the above changes in a redhat-only section, so I hope it does
not break configure for other distros / platforms (this probably needs testing,
but I don't have the ressources to do it myself).
Thanks a lot for you help, Burton.
Lo�c
_______________________________________________
Ntop-dev mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev