]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Only build the RIPE NCC driver if we have the PPSAPI.
authorHarlan Stenn <stenn@ntp.org>
Fri, 28 Jun 2002 23:11:23 +0000 (19:11 -0400)
committerHarlan Stenn <stenn@ntp.org>
Fri, 28 Jun 2002 23:11:23 +0000 (19:11 -0400)
bk: 3d1ced1bLGTuaOWa6HJ-UmwDaPc9pg

configure.in

index d6599b1f02d402a89d31252b4321713e872c006c..eb8a3cb1a654cc21439843b9221561fdb2f2ed2c 100644 (file)
@@ -8,8 +8,9 @@ AC_ARG_PROGRAM
 AM_INIT_AUTOMAKE(ntp, 4.1.1a)
 AC_PREREQ(2.52)                # We need the cross-compile-aware SIZEOF stuff.
 
-ac_cv_var_oncore_ok=no
 ac_cv_var_atom_ok=no
+ac_cv_var_oncore_ok=no
+ac_cv_var_ripe_ncc_ok=no
 
 dnl Grab any initial CFLAGS so we can pick better defaults.
 iCFLAGS="$CFLAGS"
@@ -1499,6 +1500,7 @@ case "$ac_cv_c_inline$ac_cv_struct_timespec$ac_cv_header_timepps_h$ac_cv_header_
  inlineyes*yes*)
     AC_DEFINE(HAVE_PPSAPI)
     ac_cv_var_oncore_ok=yes
+    ac_cv_var_ripe_ncc_ok=yes
     ;;
 esac
 
@@ -2009,8 +2011,11 @@ AC_MSG_RESULT($ntp_ok)
 
 AC_MSG_CHECKING(RIPENCC specific Trimble driver)
 AC_ARG_ENABLE(RIPENCC,
-    AC_HELP_STRING([--enable-RIPENCC], [+ RIPENCC specific Trimble driver]),
+    AC_HELP_STRING([--enable-RIPENCC], [s RIPENCC specific Trimble driver]),
     [ntp_ok=$enableval], [ntp_ok=$ntp_eac])
+case "$ac_cv_var_ripe_ncc_ok" in
+ no) ntp_ok=no ;;
+esac
 if test "$ntp_ok" = "yes"; then
     ntp_refclock=yes
     AC_DEFINE(CLOCK_RIPENCC, ,[RIPE NCC Trimble clock])