From 11baf1dcb4b08096438ccc80f11c011f4251d5a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Fillod=2C=20F8CFE?= Date: Fri, 16 Apr 2004 20:31:04 +0000 Subject: [PATCH] Added 'kit' backend, enable winradio build under non-Linux systems git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1724 7ae35d74-ebe9-4afe-98af-79ac388436b8 --- Makefile.am | 4 +--- configure.ac | 23 ++++++++++++++--------- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/Makefile.am b/Makefile.am index 9b69ce5c3..5a4d6519d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,4 @@ -#AUTOMAKE_OPTIONS = 1.6 - aclocaldir = $(datadir)/aclocal aclocal_DATA = hamlib.m4 @@ -18,7 +16,7 @@ SUBDIRS = macros include lib libltdl src @BACKEND_LIST@ @ROT_BACKEND_LIST@ \ DIST_SUBDIRS = macros include lib libltdl src c++ bindings tests doc \ icom kenwood aor yaesu dummy pcr alinco uniden tentec kachina jrc \ rpcrig winradio easycomm fodtrack rpcrot gnuradio drake rotorez \ - microtune flexradio sartek lowe rft tapr + microtune flexradio sartek lowe rft tapr kit rpm: Makefile make dist diff --git a/configure.ac b/configure.ac index 522eef6d6..00d2f5106 100644 --- a/configure.ac +++ b/configure.ac @@ -130,7 +130,7 @@ AC_CHECK_LIB(syslog,syslog) # OS/2 needs this dnl Checks for library functions. AC_CHECK_FUNCS([atexit snprintf select memmove memset]) AC_CHECK_FUNCS([strcasecmp strchr strdup strerror strrchr strstr strtol]) -AC_CHECK_FUNCS([cfmakeraw setitimer]) +AC_CHECK_FUNCS([cfmakeraw setitimer ioctl]) AC_FUNC_ALLOCA #AC_FUNC_MALLOC AC_FUNC_VPRINTF @@ -197,7 +197,7 @@ fi AC_SUBST(RIGMATRIX) -BACKEND_LIST="icom kenwood aor yaesu dummy pcr alinco uniden tentec kachina jrc drake lowe rft tapr flexradio" +BACKEND_LIST="icom kenwood aor yaesu dummy pcr alinco uniden tentec kachina jrc drake lowe rft kit tapr flexradio" ROT_BACKEND_LIST="dummy easycomm rotorez sartek fodtrack" BINDINGS="" BINDING_LIST="" @@ -286,13 +286,17 @@ fi dnl Backend list -case "$host_os" in - linux-gnu*) - # Winradio only under Linux (until someone port it on other os) - BACKEND_LIST="$BACKEND_LIST winradio" - ;; - *) -esac +# Winradio only under Linux (until someone port it on other os) +AC_MSG_CHECKING(whether to build winradio backend) +AC_ARG_WITH(winradio, + [ --without-winradio do not build winradio backend], + [cf_with_winradio="no"], + [cf_with_winradio="yes"]) +AC_MSG_RESULT($cf_with_winradio) + +if test "${cf_with_winradio}" = "yes" ; then + BACKEND_LIST="$BACKEND_LIST winradio" +fi # FIXME: check for presence of libgnuradio, libfftw if test "${cf_with_cxx}" = "yes" ; then @@ -399,6 +403,7 @@ jrc/Makefile drake/Makefile lowe/Makefile rft/Makefile +kit/Makefile tapr/Makefile gnuradio/Makefile easycomm/Makefile