AC_INIT(configure.in)
CONFIG_RULES
AC_PROG_ARCHIVE
AC_PROG_ARCHIVE_ADD
AC_PROG_RANLIB
AC_PROG_INSTALL
AC_CHECK_SIZEOF(short)
AC_CHECK_SIZEOF(int)
AC_CHECK_SIZEOF(long)
dnl
HAS_ANSI_VOLATILE
AC_MSG_CHECKING([if pragma weak supported])
AC_CACHE_VAL(krb5_cv_pragma_weak,
[AC_TRY_LINK(
[#pragma weak testit = __testit
int __testit = 1;],
[extern int testit;
exit(testit);],
krb5_cv_pragma_weak=yes, krb5_cv_pragma_weak=no)])
AC_MSG_RESULT($krb5_cv_pragma_weak)
if test $krb5_cv_pragma_weak = yes; then
AC_DEFINE(HAVE_PRAGMA_WEAK)
fi
dnl
V5_SHARED_LIB_OBJS
SubdirLibraryRule([${OBJS}])
V5_MAKE_SHARED_LIB(libdes425)
AC_ARG_ENABLE([shared],
[  --enable-shared         build shared libraries],[
LinkFileDir(../libdes425.[$](SHEXT), libdes425.[$](SHEXT), ./des425)
AppendRule([all-unix:: ../libdes425.$(SHEXT)])
AppendRule([install::	libdes425.[$](SHEXT)
	[$](INSTALL_DATA) libdes425.[$](SHEXT)	\
		[$](DESTDIR)[$](KRB5_SHLIBDIR)[$](S)libdes425.[$](SHEXT)])
])dnl
if test -n "$krb5_cv_staticlibs_enabled" ; then
	LinkFileDir(../libdes425.[$](STEXT), libdes425.[$](STEXT), ./des425)
        AppendRule([install:: 
	[$](INSTALL_DATA) libdes425.[$](STEXT) [$](DESTDIR)[$](KRB5_LIBDIR)/libdes425.[$](STEXT)
	[$](RANLIB) [$](DESTDIR)[$](KRB5_LIBDIR)/libdes425.[$](STEXT)]) 
	AppendRule([all-unix:: ../libdes425.[$](STEXT)])
fi
V5_AC_OUTPUT_MAKEFILE
