mirror of
https://github.com/Hamlib/Hamlib.git
synced 2024-09-21 18:37:18 +00:00
check for C99 struct intializer support, and enter bindings/ subdir only if swig is installed
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1172 7ae35d74-ebe9-4afe-98af-79ac388436b8
This commit is contained in:
parent
9d5c6e171f
commit
fdd237f95e
@ -5,7 +5,7 @@ aclocal_DATA = hamlib.m4
|
||||
EXTRA_DIST = PLAN TODO LICENSE hamlib.m4 README.developer README.betatester
|
||||
|
||||
SUBDIRS = include lib libltdl src @BACKEND_LIST@ @ROT_BACKEND_LIST@ \
|
||||
@BINDING_LIST@ bindings tests doc
|
||||
@BINDING_LIST@ @BINDINGS@ tests doc
|
||||
|
||||
DIST_SUBDIRS = include lib libltdl src c++ tcl kylix perl bindings tests doc \
|
||||
icom kenwood aor yaesu dummy pcr alinco uniden tentec kachina jrc \
|
||||
|
11
configure.ac
11
configure.ac
@ -136,6 +136,13 @@ AC_PROG_LIBTOOL
|
||||
dnl Configure libltdl
|
||||
AC_CONFIG_SUBDIRS(libltdl)
|
||||
|
||||
dnl Check if C99 struct initializers are supported
|
||||
AC_MSG_CHECKING(whether C99 struct initializers are supported)
|
||||
AC_TRY_COMPILE(,struct{char a;int b;}s={.b=5};, [AC_MSG_RESULT(yes)],
|
||||
[AC_MSG_ERROR( ""
|
||||
"You need a C99 compliant C compiler that supports struct intializers."
|
||||
"Have you considered GCC lately?.")]);
|
||||
|
||||
|
||||
dnl Check if libgd-dev is installed, so we can enable rigmatrix
|
||||
|
||||
@ -305,6 +312,10 @@ AC_SUBST(ROT_BACKEND_LIST)
|
||||
AC_SUBST(ROT_BACKENDLNK)
|
||||
AC_SUBST(ROT_BACKENDEPS)
|
||||
|
||||
BINDINGS=""
|
||||
AC_CHECK_PROG(BINDINGS, [swig], [bindings], [], [$PATH])
|
||||
AC_SUBST(BINDINGS)
|
||||
|
||||
for bi in ${BINDING_LIST} ; do
|
||||
if test "${bi}" != "c++" -a "${bi}" != "kylix" ; then
|
||||
BINDING_LA="${BINDING_LA} hamlib${bi}.la"
|
||||
|
Loading…
Reference in New Issue
Block a user