AMU_OS_CFLAGS
+AC_MSG_CHECKING(for bin subdirectory)
+AC_ARG_WITH(binsubdir,
+ AC_HELP_STRING([--with-binsubdir], [bin ={bin,sbin}]),
+ use_binsubdir="$withval", use_binsubdir="bin")
+
+case "$use_binsubdir" in
+ bin)
+ ;;
+ sbin)
+ ;;
+ *)
+ AC_MSG_ERROR([<$use_binsubdir> is illegal - must be "bin" or "sbin"])
+ ;;
+esac
+AC_MSG_RESULT($use_binsubdir)
+BINSUBDIR=$use_binsubdir
+AC_SUBST(BINSUBDIR)
+
+if test -d $srcdir/arlib
+then
+ AC_ARG_WITH(arlib,
+ AC_HELP_STRING([--with-arlib], [- Compile the async resolver library?]),
+ [ans=$withval], [ans=no])
+
+ case "$ans" in
+ yes)
+ ARLIB_DIR=arlib
+ AC_CONFIG_SUBDIRS(arlib)
+ ;;
+ esac
+fi
+AC_SUBST(ARLIB_DIR)
+
AC_ARG_WITH(rpath,
AC_HELP_STRING([--without-rpath], [s Disable auto-added -R linker paths]),
[ans=$withval], [ans=x])
esac
AC_MSG_RESULT($ans)
+AC_SUBST(MAKE_CHECK_LAYOUT)
+AC_MSG_CHECKING(if we want to run check-layout)
+case "$cross_compiling$PATH_PERL" in
+ no/*)
+ MAKE_CHECK_LAYOUT=check-layout
+ ans=yes
+ ;;
+ *)
+ ans=no
+ ;;
+esac
+AC_MSG_RESULT($ans)
+
AC_SUBST(TESTDCF)
AC_SUBST(DCFD)
AC_DEFINE_DIR(NTP_KEYSDIR, sysconfdir, [Default location of crypto key info])
-AC_SUBST(ARLIB_DIR)
-if test -d $srcdir/arlib
-then
- AC_ARG_WITH(arlib,
- AC_HELP_STRING([--with-arlib], [- Compile the async resolver library?]),
- [ans=$withval], [ans=no])
-
- case "$ans" in
- yes)
- ARLIB_DIR=arlib
- AC_CONFIG_SUBDIRS(arlib)
- ;;
- esac
-fi
-
-AC_MSG_CHECKING(for bin subdirectory)
-AC_ARG_WITH(binsubdir,
- AC_HELP_STRING([--with-binsubdir], [bin ={bin,sbin}]),
- use_binsubdir="$withval", use_binsubdir="bin")
-
-case "$use_binsubdir" in
- bin)
- ;;
- sbin)
- ;;
- *)
- AC_MSG_ERROR([<$use_binsubdir> is illegal - must be "bin" or "sbin"])
- ;;
-esac
-AC_MSG_RESULT($use_binsubdir)
-BINSUBDIR=$use_binsubdir
-AC_SUBST(BINSUBDIR)
-
AC_CONFIG_FILES(Makefile)
AC_CONFIG_FILES(ElectricFence/Makefile)
AC_CONFIG_FILES(adjtimed/Makefile)
bin_PROGRAMS= ntpdc
EXTRA_PROGRAMS= ntpdc-layout
EXTRA_DATA= check-layout
-BUILT_SOURCES= maybe-layout
+BUILT_SOURCES= @MAKE_CHECK_LAYOUT@
AM_CPPFLAGS= -I$(top_srcdir)/include
# LDADD might need RESLIB and ADJLIB
ntpdc_LDADD= version.o ../libntp/libntp.a @READLINE_LIBS@
ntpdc_SOURCES = ntpdc.c ntpdc_ops.c
-maybe-layout:
- @case "${PATH_PERL}" in \
- /*) ${MAKE} check-layout ;; \
- esac
-
ntpdc-layout.o: nl.c
layout.here: ntpdc-layout