diff options
Diffstat (limited to 'lib/libtqtrla/configure.in.in')
-rw-r--r-- | lib/libtqtrla/configure.in.in | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/libtqtrla/configure.in.in b/lib/libtqtrla/configure.in.in index 3b3f6bf..23db149 100644 --- a/lib/libtqtrla/configure.in.in +++ b/lib/libtqtrla/configure.in.in @@ -13,3 +13,18 @@ lt_age="0" AC_SUBST(lt_current) AC_SUBST(lt_revision) AC_SUBST(lt_age) + +dnl this package requires heimdal Kerberos to compile +KDE_FIND_PATH(pkg-config, PKGCONFIG, [${prefix}/bin ${exec_prefix}/bin /usr/bin /usr/local/bin /opt/local/bin], [AC_MSG_WARN([Could not find pkg-config ]) +]) + +if test -n "$PKGCONFIG"; then + vers=`$PKGCONFIG krb5 --modversion 2>/dev/null | sed -e 's/libkrb5 //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` + if test -n "$vers" && test "$vers" -ge 1000000 + then + KRB5_CFLAGS="`$PKGCONFIG krb5 --cflags`" + CPPFLAGS="$CPPFLAGS $KRB5_CFLAGS" + else + AC_CHECK_HEADER(kadm5/admin.h) + fi +fi |