LDAP client binding module for KControl
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

configure.in.in 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #MIN_CONFIG(3.2.0)
  2. AM_INIT_AUTOMAKE(autostart, 0.1)
  3. AC_C_BIGENDIAN
  4. AC_CHECK_KDEMAXPATHLEN
  5. PKG_CHECK_MODULES(KRB5, krb5, have_krb5=yes, have_krb5=no)
  6. if test "x$have_krb5" = "xno"; then
  7. # Try to find krb5 without pkg-config file
  8. AC_MSG_CHECKING(krb5)
  9. AC_FIND_FILE(krb5.h, [\
  10. /usr/local/include/heimdal /usr/local/include \
  11. /usr/include/heimdal /usr/include \
  12. ], krb5_includes)
  13. if test "x$krb5_includes" != "xNO"; then
  14. krb5_multiarch="`gcc -print-multiarch 2>/dev/null`"
  15. AC_FIND_FILE(libkrb5.so, [\
  16. /usr/local/lib/$krb5_multiarch/heimdal /usr/local/lib64/heimdal /usr/local/lib/heimdal \
  17. /usr/local/lib/$krb5_multiarch /usr/local/lib64 /usr/local/lib \
  18. /usr/lib/$krb5_multiarch/heimdal /usr/lib64/heimdal /usr/lib/heimdal \
  19. /usr/lib/$krb5_multiarch /usr/lib64 /usr/lib \
  20. ], krb5_libs)
  21. if test "x$krb5_libs" != "xNO"; then
  22. AC_MSG_RESULT([libraries $krb5_libs, headers $krb5_includes])
  23. CPPFLAGS="$CPPFLAGS -I$krb5_includes"
  24. CFLAGS="$CFLAGS -I$krb5_includes"
  25. LDFLAGS="$LDFLAGS -L$krb5_libs"
  26. AC_CHECK_HEADER(krb5.h, have_krb5=yes)
  27. fi
  28. fi
  29. if test "x$have_krb5" != "xno"; then
  30. KRB5_CFLAGS="-I$krb5_includes"
  31. KRB5_LIBS="-L$krb5_libs -lkrb5"
  32. AC_SUBST(KRB5_CFLAGS)
  33. AC_SUBST(KRB5_LIBS)
  34. else
  35. AC_MSG_RESULT(no)
  36. fi
  37. fi
  38. if test "x$have_krb5" = "xno"; then
  39. AC_MSG_ERROR([krb5 library is needed but not found on our system])
  40. fi