dnl Process this file with autoconf to produce a configure script.
AC_INIT(ntpd/ntp_refclock.c)
AC_CANONICAL_SYSTEM
- AC_DEFINE_UNQUOTED(STR_SYSTEM, "$host")
+ AC_DEFINE_UNQUOTED(STR_SYSTEM, "$host", [canonical system (cpu-vendor-os) string])
AM_CONFIG_HEADER(config.h)
AC_ARG_PROGRAM
-AM_INIT_AUTOMAKE(ntp, 4.1.1a)
+AM_INIT_AUTOMAKE(ntp, 4.1.72b)
AC_PREREQ(2.52) # We need the cross-compile-aware SIZEOF stuff.
ac_cv_var_atom_ok=no
fi
AC_MSG_RESULT($ntp_ok)
- AC_MSG_CHECKING(Sun IRIG audio decoder)
+ AC_MSG_CHECKING(IRIG audio decoder)
AC_ARG_ENABLE(IRIG,
- AC_HELP_STRING([--enable-IRIG], [s Sun IRIG audio decoder]),
- AC_HELP_STRING([--enable-IRIG], [s iRIG audio decoder]),
++ AC_HELP_STRING([--enable-IRIG], [s IRIG audio decoder]),
[ntp_ok=$enableval],
[case "$ntp_eac$ntp_canaudio" in
*no*) ntp_ok=no ;;
[ntp_ok=$enableval], [ntp_ok=$ntp_eac])
if test "$ntp_ok" = "yes"; then
ntp_refclock=yes
- AC_DEFINE(CLOCK_ULINK)
- AC_DEFINE(CLOCK_ULINK, 1, [Ultralink M320 WWVB receiver])
++ AC_DEFINE(CLOCK_ULINK, 1, [Ultralink M320 WWVB receiver?])
fi
AC_MSG_RESULT($ntp_ok)
[ans=$withval], [ans=yes])
case "$ans" in
no) ;;
- yes|rsaref|openssl)
- case "$ans" in
- yes|rsaref) # Just "rsaref" when OpenSSL is ready
+ yes|openssl)
+ if test -z "$OPENSSL_LIB" -o -z "$OPENSSL_INC"
+ then
ans=no
- ;;
- *)
- if test -z "$OPENSSL_LIB" -o -z "$OPENSSL_INC"
- then
- ans=no
- else
- # We have OpenSSL inc/lib - use them.
- ans=openssl
- CPPFLAGS="$CPPFLAGS -I$OPENSSL_INC"
- LDFLAGS="$LDFLAGS -L$OPENSSL_LIB"
- LIBS="$LIBS -lcrypto"
- AC_DEFINE(DES, 1, [Use DES?])
- AC_DEFINE(OPENSSL, , [Use OpenSSL?])
- AC_DEFINE(PUBKEY, , [Public key?])
- fi
- ;;
- esac
-
- case "$ans" in
- no)
- if test -f $srcdir/rsaref2/source/digit.c
- then
- ans=rsaref
- RSAOBJS=digit.o
- RSASRCS="digit.c digit.h"
- RSADIR=rsaref2
- fi
- if test -f $srcdir/rsaeuro1/source/rsaeuro.h
- then
- ans=rsaref
- RSAOBJS="md4c.o shsc.o"
- RSASRCS="md4c.c shsc.c"
- RSADIR=rsaeuro1
- fi
- if test "$ans" = "rsaref"; then
- LIBRSAREF=../librsaref/librsaref.a
- MAKE_LIBRSAREF=librsaref.a
- AC_DEFINE(DES, 1, [Use DES?])
- AC_DEFINE(PUBKEY)
- AC_DEFINE(RSAREF, , [Use RSAREF?])
- fi
- ;;
- esac
- ;;
-esac
-AM_CONDITIONAL(isRSAREF, test x$RSADIR = xrsaref2)
-AM_CONDITIONAL(isRSAEURO, test x$RSADIR = xrsaeuro1)
-AC_SUBST(AUTOKEY)
-case "$ans" in
- no) ;;
- *)
- AC_DEFINE(AUTOKEY, , [Autokey?])
- AUTOKEY=1
+ else
+ # We have OpenSSL inc/lib - use them.
+ ans=openssl
+ CPPFLAGS="$CPPFLAGS -I$OPENSSL_INC"
+ LDFLAGS="$LDFLAGS -L$OPENSSL_LIB"
+ LIBS="$LIBS -lcrypto"
- MAKE_NTP_KEYGEN=ntp-keygen
++ MAKE_NTP_GENKEYS=ntp-genkeys
+ AC_DEFINE(OPENSSL, , [Use OpenSSL?])
+ AC_CHECK_FUNCS(EVP_md2 EVP_mdc2)
+ fi
;;
esac
AC_MSG_CHECKING(for the level of crypto support)