From: Harlan Stenn
Date: Wed, 28 Aug 2002 10:32:58 +0000 (-0400)
Subject: Improve the instructions for adding a new clock, as far as
X-Git-Tag: NTP_4_1_73~66
X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a16ffd1787bfcad452e8402e8e471ae158d8bf0d;p=thirdparty%2Fntp.git
Improve the instructions for adding a new clock, as far as
configure.in is concerned.
bk: 3d6ca6daQrLM09KbFJ3vQOKFznvIbg
---
diff --git a/html/howto.htm b/html/howto.htm
index 525ccc1ca2..90b417985a 100644
--- a/html/howto.htm
+++ b/html/howto.htm
@@ -238,20 +238,6 @@ refclock_conf array is a set of pointers to transfer vectors
in the individual drivers. The external name of the transfer vector
should be initialized in correspondence with the type number.
-./acconfig.h
-
-This is a configuration file used by the autoconfigure scheme.
-Add two lines in the form:
-
-
- /* Define if we have a FOO clock */
- #undef FOO
-
-
-where FOO is the define used to cause the driver to be included
-in the distribution.
-
-
./configure.in
This is a configuration file used by the autoconfigure scheme.
@@ -259,11 +245,12 @@ Add lines similar to the following:
AC_MSG_CHECKING(FOO clock_description)
- AC_ARG_ENABLE(FOO, [ --enable-FOO clock_description],
+ AC_ARG_ENABLE(FOO,
+ AC_HELP_STRING([--enable-FOO], [x clock_description]),
[ntp_ok=$enableval], [ntp_ok=$ntp_eac])
if test "$ntp_ok" = "yes"; then
ntp_refclock=yes
- AC_DEFINE(FOO)
+ AC_DEFINE(CLOCK_FOO, 1, [Foo clock?])
fi
AC_MSG_RESULT($ntp_ok)
@@ -282,19 +269,10 @@ and automake tools from the GNU distributions.)
Add the driver file name to the entries already in the
ntpd_SOURCES list.
-Patches to automake-1.0 are required for the
-autoconfigure scripts to work properly. The file automake-
-1.0.patches can be used for this purpose.
-
-
-./ntpd/Makefile.am
-
Do the following sequence of commands:
- automake
- autoconf
- autoheader
+ autoreconf
configure