DEPKRB4_LIB=
KRB4_CRYPTO_LIB=
DEPKRB4_CRYPTO_LIB=
- KDB4_LIB=
- DEPKDB4_LIB=
KRB4_INCLUDES=
LDARGS=
krb5_cv_build_krb4_libs=no
DEPKRB4_LIB='$(TOPLIBD)/libkrb4.a'
KRB4_CRYPTO_LIB='-ldes425'
DEPKRB4_CRYPTO_LIB='$(TOPLIBD)/libdes425.a'
- KDB4_LIB='-lkdb4'
- DEPKDB4_LIB='$(TOPLIBD)/libkdb4.a'
KRB4_INCLUDES='-I$(SRCTOP)/include/kerberosIV'
LDARGS=
krb5_cv_build_krb4_libs=yes
DEPKRB4_LIB="$withval/lib/libkrb.a"
KRB4_CRYPTO_LIB='-ldes425'
DEPKRB4_CRYPTO_LIB='$(TOPLIBD)/libdes425.a'
- KDB4_LIB="-lkdb"
- DEPKDB4_LIB="$withval/lib/libkdb.a"
KRB4_INCLUDES="-I$withval/include"
LDARGS="-L$withval/lib"
krb5_cv_build_krb4_libs=no
fi]
dnl this is ugly, but it wouldn't be necessary if krb5 didn't abuse
dnl configure so badly
-SRVDEPLIBS="\[$](DEPLOCAL_LIBRARIES) $kadmsrv_deplib $gssrpc_deplib $gssapi_deplib $kdb5_deplib $kutil_deplib \[$](TOPLIBD)/libkrb5.a $kdb4_deplib $krb4_deplib \[$](TOPLIBD)/libcrypto.a $ss_deplib $dyn_deplib $db_deplib \[$](TOPLIBD)/libcom_err.a"
-SRVLIBS="\[$](LOCAL_LIBRARIES) $kadmsrv_lib $gssrpc_lib $gssapi_lib $kdb5_lib $kdb4_lib $kutil_lib $krb4_lib -lkrb5 -lcrypto $ss_lib $dyn_lib $db_lib -lcom_err $LIBS"
-CLNTDEPLIBS="\[$](DEPLOCAL_LIBRARIES) $kadmclnt_deplib $gssrpc_deplib $gssapi_deplib $kdb5_deplib $kutil_deplib \[$](TOPLIBD)/libkrb5.a $kdb4_deplib $krb4_deplib \[$](TOPLIBD)/libcrypto.a $ss_deplib $dyn_deplib $db_deplib \[$](TOPLIBD)/libcom_err.a"
-CLNTLIBS="\[$](LOCAL_LIBRARIES) $kadmclnt_lib $gssrpc_lib $gssapi_lib $kdb5_lib $kdb4_lib $kutil_lib $krb4_lib -lkrb5 -lcrypto $ss_lib $dyn_lib $db_lib -lcom_err $LIBS"
-DEPLIBS="\[$](DEPLOCAL_LIBRARIES) $kadmclnt_deplib $kadmsrv_deplib $gssrpc_deplib $gssapi_deplib $kdb5_deplib $kutil_deplib \[$](TOPLIBD)/libkrb5.a $kdb4_deplib $krb4_deplib \[$](TOPLIBD)/libcrypto.a $ss_deplib $dyn_deplib $db_deplib \[$](TOPLIBD)/libcom_err.a"
-LIBS="\[$](LOCAL_LIBRARIES) $kadmclnt_lib $kadmsrv_lib $gssrpc_lib $gssapi_lib $kdb5_lib $kdb4_lib $kutil_lib $krb4_lib -lkrb5 -lcrypto $ss_lib $dyn_lib $db_lib -lcom_err $LIBS"
+SRVDEPLIBS="\[$](DEPLOCAL_LIBRARIES) $kadmsrv_deplib $gssrpc_deplib $gssapi_deplib $kdb5_deplib $kutil_deplib \[$](TOPLIBD)/libkrb5.a $krb4_deplib \[$](TOPLIBD)/libcrypto.a $ss_deplib $dyn_deplib $db_deplib \[$](TOPLIBD)/libcom_err.a"
+SRVLIBS="\[$](LOCAL_LIBRARIES) $kadmsrv_lib $gssrpc_lib $gssapi_lib $kdb5_lib $kutil_lib $krb4_lib -lkrb5 -lcrypto $ss_lib $dyn_lib $db_lib -lcom_err $LIBS"
+CLNTDEPLIBS="\[$](DEPLOCAL_LIBRARIES) $kadmclnt_deplib $gssrpc_deplib $gssapi_deplib $kdb5_deplib $kutil_deplib \[$](TOPLIBD)/libkrb5.a $krb4_deplib \[$](TOPLIBD)/libcrypto.a $ss_deplib $dyn_deplib $db_deplib \[$](TOPLIBD)/libcom_err.a"
+CLNTLIBS="\[$](LOCAL_LIBRARIES) $kadmclnt_lib $gssrpc_lib $gssapi_lib $kdb5_lib $kutil_lib $krb4_lib -lkrb5 -lcrypto $ss_lib $dyn_lib $db_lib -lcom_err $LIBS"
+DEPLIBS="\[$](DEPLOCAL_LIBRARIES) $kadmclnt_deplib $kadmsrv_deplib $gssrpc_deplib $gssapi_deplib $kdb5_deplib $kutil_deplib \[$](TOPLIBD)/libkrb5.a $krb4_deplib \[$](TOPLIBD)/libcrypto.a $ss_deplib $dyn_deplib $db_deplib \[$](TOPLIBD)/libcom_err.a"
+LIBS="\[$](LOCAL_LIBRARIES) $kadmclnt_lib $kadmsrv_lib $gssrpc_lib $gssapi_lib $kdb5_lib $kutil_lib $krb4_lib -lkrb5 -lcrypto $ss_lib $dyn_lib $db_lib -lcom_err $LIBS"
LDFLAGS="$LDFLAGS -L\$(TOPLIBD)"
AC_SUBST(LDFLAGS)
AC_SUBST(LDARGS)
fi
AC_SUBST(KRB5_RUN_ENV)
])dnl
+dnl
+dnl AC_KRB5_TCL - determine if the TCL library is present on system
+dnl
+AC_DEFUN(AC_KRB5_TCL,[
+TCL_INC=
+TCL_LIB=
+TCL_WITH=
+AC_ARG_WITH(tcl,
+[ --with-tcl=path where Tcl resides],
+ TCL_WITH=$withval
+ if test "$withval" != yes -a "$withval" != no ; then
+ TCL_INC=-I$withval/include
+ TCL_LIB=-L$withval/lib
+ fi)
+
+if test "$TCL_WITH" != no ; then
+ hold_cflags=$CPPFLAGS
+ hold_ldflags=$LDFLAGS
+ CPPFLAGS="$CPPFLAGS $TCL_INC"
+ LDFLAGS="$CPPFLAGS $TCL_LIB"
+ AC_CHECK_HEADER(tcl.h,dnl
+ AC_CHECK_LIB(tcl7.5, Tcl_CreateCommand,
+ TCL_LIB="$TCL_LIB -ltcl7.5",
+ AC_CHECK_LIB(tcl, Tcl_CreateCommand,
+ TCL_LIB="$TCL_LIB -ltcl",
+ AC_MSG_WARN("tcl.h found but not library"),
+ -lm),
+ -lm)
+ ,dnl If tcl.h not found
+ AC_MSG_WARN(Could not find Tcl which is needed for the kadm5 tests)
+ TCL_LIB=
+ )
+ CPPFLAGS=$hold_cflags
+ LDFLAGS=$hold_ldflags
+ AC_SUBST(TCL_LIB)
+ AC_SUBST(TCL_INC)
+else
+ AC_MSG_RESULT("Not looking for Tcl library")
+fi
+])dnl