diff --git a/Makefile.am b/Makefile.am index 74acc6ea3..c7332a7f6 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4,7 +4,8 @@ aclocal_DATA = hamlib.m4 EXTRA_DIST = PLAN TODO LICENSE hamlib.m4 -SUBDIRS = include lib libltdl src @BACKEND_LIST@ c++ tcl tests doc +SUBDIRS = include lib libltdl src @BACKEND_LIST@ @ROT_BACKEND_LIST@ \ + c++ tcl tests doc DIST_SUBDIRS = include lib libltdl src c++ tcl tests doc \ icom kenwood aor yaesu dummy pcr alinco uniden tentec kachina jrc \ diff --git a/configure.ac b/configure.ac index 53ef5a640..91efb6b80 100644 --- a/configure.ac +++ b/configure.ac @@ -154,7 +154,8 @@ fi AC_SUBST(NET) -BACKEND_LIST="icom kenwood aor yaesu dummy pcr alinco uniden tentec kachina jrc easycomm" +BACKEND_LIST="icom kenwood aor yaesu dummy pcr alinco uniden tentec kachina jrc" +ROT_BACKEND_LIST="dummy easycomm" case "$host_os" in linux-gnu*) @@ -165,7 +166,8 @@ case "$host_os" in esac if test "${ac_cv_header_rpc_rpc_h}" = "yes" ; then - BACKEND_LIST="$BACKEND_LIST rpcrig rpcrot" + BACKEND_LIST="$BACKEND_LIST rpcrig" + ROT_BACKEND_LIST="$ROT_BACKEND_LIST rpcrot" fi # dlopen force or preopen self for static version ? @@ -178,6 +180,16 @@ AC_SUBST(BACKEND_LIST) AC_SUBST(BACKENDLNK) AC_SUBST(BACKENDEPS) +# dlopen force or preopen self for static version ? +ROT_BACKENDLNK="-dlopen force" +for be in ${ROT_BACKEND_LIST} ; do + ROT_BACKENDLNK="${ROT_BACKENDLNK} -dlopen ../${be}/libhamlib-${be}.la" + ROT_BACKENDEPS="${ROT_BACKENDEPS} ../${be}/libhamlib-${be}.la" +done +AC_SUBST(ROT_BACKEND_LIST) +AC_SUBST(ROT_BACKENDLNK) +AC_SUBST(ROT_BACKENDEPS) + Xsed="sed -e s/^X//" LTLIBOBJS=`echo X"$LIBOBJS" | $Xsed -e "s,\.[^.]* ,.lo ,g;s,\.[^.]*\$,.lo,"` AC_SUBST(LIBOBJS) diff --git a/rpcrot/Makefile.am b/rpcrot/Makefile.am index 3fdd49624..1fd32634a 100644 --- a/rpcrot/Makefile.am +++ b/rpcrot/Makefile.am @@ -1,4 +1,4 @@ -# $Id: Makefile.am,v 1.1 2002-01-16 16:45:11 fgretief Exp $ +# $Id: Makefile.am,v 1.2 2002-01-16 19:17:10 fgretief Exp $ # # rpcrot_xdr.c rpcrot_svc.c rpcrot_clnt.c and rpcrot.h are generated by rpcgen # have to provide: rpcrot_proc.c rpcrotd.c rpcrot_backend.c @@ -11,9 +11,9 @@ DEPENDENCIES = ../src/libhamlib.la # The RPC server sbin_PROGRAMS = rpc.rotd -rpc_rotd_DEPENDENCIES = $(DEPENDENCIES) @BACKENDEPS@ +rpc_rotd_DEPENDENCIES = $(DEPENDENCIES) @ROT_BACKENDEPS@ rpc_rotd_SOURCES = $(RPCROT_SVC) -rpc_rotd_LDFLAGS = @BACKENDLNK@ +rpc_rotd_LDFLAGS = @ROT_BACKENDLNK@ man_MANS = rpc.rotd.8 # The RPC backend