kopia lustrzana https://github.com/Hamlib/Hamlib
configure.ac: Readability formatting
Assure shell tests do not test a null value.Hamlib-3.0
rodzic
0232e30fc0
commit
26da1df586
36
configure.ac
36
configure.ac
|
@ -144,7 +144,7 @@ GR_PWIN32
|
||||||
|
|
||||||
dnl macros/ax_pthread.m4
|
dnl macros/ax_pthread.m4
|
||||||
AX_PTHREAD
|
AX_PTHREAD
|
||||||
AS_IF([test x"$ax_pthread_ok" = xyes], [
|
AS_IF([test x"$ax_pthread_ok" = "xyes"], [
|
||||||
CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
|
CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
|
||||||
CXXFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
|
CXXFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
|
||||||
])
|
])
|
||||||
|
@ -214,7 +214,8 @@ AS_IF([test "$hl_checkBoth" = 1], [
|
||||||
AC_CHECK_FUNC([accept], [hl_checkNsl=0], [LIBS=$hl2_oldLibs])
|
AC_CHECK_FUNC([accept], [hl_checkNsl=0], [LIBS=$hl2_oldLibs])
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_CHECK_FUNC([gethostbyname],[],
|
AC_CHECK_FUNC([gethostbyname],
|
||||||
|
[],
|
||||||
[AC_CHECK_LIB([nsl],
|
[AC_CHECK_LIB([nsl],
|
||||||
[main],
|
[main],
|
||||||
[NET_LIBS="$NET_LIBS -lnsl"],
|
[NET_LIBS="$NET_LIBS -lnsl"],
|
||||||
|
@ -223,7 +224,8 @@ AC_CHECK_FUNC([gethostbyname],[],
|
||||||
])
|
])
|
||||||
|
|
||||||
# Winsock2
|
# Winsock2
|
||||||
AC_CHECK_FUNC([gethostbyname], [],
|
AC_CHECK_FUNC([gethostbyname],
|
||||||
|
[],
|
||||||
[AC_CHECK_LIB([ws2_32],
|
[AC_CHECK_LIB([ws2_32],
|
||||||
[main],
|
[main],
|
||||||
[NET_LIBS="$NET_LIBS -lws2_32"],
|
[NET_LIBS="$NET_LIBS -lws2_32"],
|
||||||
|
@ -339,12 +341,13 @@ dnl AC_SUBST([LIBLTDL])
|
||||||
|
|
||||||
dnl Check whether we can actually find ltdl.h
|
dnl Check whether we can actually find ltdl.h
|
||||||
dnl (only needed if not using included libltdl).
|
dnl (only needed if not using included libltdl).
|
||||||
AS_IF([test "${with_included_ltdl}" = "no"], [
|
AS_IF([test x"${with_included_ltdl}" = "xno"], [
|
||||||
AC_CHECK_HEADER([ltdl.h],
|
AC_CHECK_HEADER([ltdl.h],
|
||||||
[AC_MSG_RESULT([yes])],
|
[AC_MSG_RESULT([yes])],
|
||||||
[AC_MSG_ERROR([ltdl.h not found. Please install the libltdl development
|
[AC_MSG_ERROR([""
|
||||||
files package which provides /usr/include/ltdl.h
|
"ltdl.h not found. Please install the libltdl development files package which"
|
||||||
(perhaps called 'libltdl-dev' or 'libltdl-devel').])
|
"provides /usr/include/ltdl.h (perhaps called 'libltdl-dev' or 'libltdl-devel')."
|
||||||
|
])
|
||||||
])
|
])
|
||||||
])
|
])
|
||||||
|
|
||||||
|
@ -388,7 +391,7 @@ AC_ARG_ENABLE([rigmatrix],
|
||||||
|
|
||||||
AC_MSG_CHECKING([whether to build rigmatrix])
|
AC_MSG_CHECKING([whether to build rigmatrix])
|
||||||
AC_MSG_RESULT([$enable_rigmatrix])
|
AC_MSG_RESULT([$enable_rigmatrix])
|
||||||
AS_IF([test "${enable_rigmatrix}" = "no"],
|
AS_IF([test x"${enable_rigmatrix}" = "xno"],
|
||||||
[RIGMATRIX=],
|
[RIGMATRIX=],
|
||||||
[RIGMATRIX="rigmatrix"])
|
[RIGMATRIX="rigmatrix"])
|
||||||
|
|
||||||
|
@ -425,7 +428,7 @@ AC_ARG_WITH([cxx-binding],
|
||||||
[cf_with_cxx_binding=$cf_with_cxx])
|
[cf_with_cxx_binding=$cf_with_cxx])
|
||||||
AC_MSG_RESULT([$cf_with_cxx_binding])
|
AC_MSG_RESULT([$cf_with_cxx_binding])
|
||||||
|
|
||||||
AS_IF([test "${cf_with_cxx_binding}" = "yes"],
|
AS_IF([test x"${cf_with_cxx_binding}" = "xyes"],
|
||||||
[BINDINGS="${BINDINGS} c++"])
|
[BINDINGS="${BINDINGS} c++"])
|
||||||
|
|
||||||
|
|
||||||
|
@ -441,7 +444,7 @@ AC_ARG_WITH([perl-binding],
|
||||||
AC_MSG_RESULT([$cf_with_perl_binding])
|
AC_MSG_RESULT([$cf_with_perl_binding])
|
||||||
|
|
||||||
dnl SC_PATH_PERLINC from macros/perl.m4
|
dnl SC_PATH_PERLINC from macros/perl.m4
|
||||||
AS_IF([test "${cf_with_perl_binding}" = "yes"],[
|
AS_IF([test x"${cf_with_perl_binding}" = "xyes"],[
|
||||||
SC_PATH_PERLINC
|
SC_PATH_PERLINC
|
||||||
BINDING_LIST="${BINDING_LIST} perl"
|
BINDING_LIST="${BINDING_LIST} perl"
|
||||||
BINDING_ALL="${BINDING_ALL} all-perl"
|
BINDING_ALL="${BINDING_ALL} all-perl"
|
||||||
|
@ -450,7 +453,8 @@ AS_IF([test "${cf_with_perl_binding}" = "yes"],[
|
||||||
BINDING_DISTCLEAN="${BINDING_DISTCLEAN} distclean-perl"
|
BINDING_DISTCLEAN="${BINDING_DISTCLEAN} distclean-perl"
|
||||||
BINDING_DISTCHECK="${BINDING_DISTCHECK} distcheck-perl"
|
BINDING_DISTCHECK="${BINDING_DISTCHECK} distcheck-perl"
|
||||||
BINDING_INSTALL_EXEC="${BINDING_INSTALL_EXEC} install-perl"
|
BINDING_INSTALL_EXEC="${BINDING_INSTALL_EXEC} install-perl"
|
||||||
BINDING_UNINSTALL="${BINDING_UNINSTALL} uninstall-perl"])
|
BINDING_UNINSTALL="${BINDING_UNINSTALL} uninstall-perl"
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
dnl Kylix binding has been removed because unmaintained. Volunteers welcome.
|
dnl Kylix binding has been removed because unmaintained. Volunteers welcome.
|
||||||
|
@ -508,7 +512,7 @@ AC_ARG_WITH([python-binding],
|
||||||
AC_MSG_RESULT([$cf_with_python_binding])
|
AC_MSG_RESULT([$cf_with_python_binding])
|
||||||
|
|
||||||
dnl AX_PYTHON_DEVEL from macros/ax_python_devel.m4
|
dnl AX_PYTHON_DEVEL from macros/ax_python_devel.m4
|
||||||
AS_IF([test "${cf_with_python_binding}" = "yes"],[
|
AS_IF([test x"${cf_with_python_binding}" = "xyes"],[
|
||||||
AM_PATH_PYTHON([2.1],, [:])
|
AM_PATH_PYTHON([2.1],, [:])
|
||||||
AX_PYTHON_DEVEL
|
AX_PYTHON_DEVEL
|
||||||
|
|
||||||
|
@ -538,12 +542,12 @@ AC_ARG_ENABLE([winradio],
|
||||||
[cf_with_winradio="yes"])
|
[cf_with_winradio="yes"])
|
||||||
AC_MSG_RESULT([$cf_with_winradio])
|
AC_MSG_RESULT([$cf_with_winradio])
|
||||||
|
|
||||||
AS_IF([test "${cf_with_winradio}" = "yes"],
|
AS_IF([test x"${cf_with_winradio}" = "xyes"],
|
||||||
[BACKEND_LIST="$BACKEND_LIST winradio"])
|
[BACKEND_LIST="$BACKEND_LIST winradio"])
|
||||||
|
|
||||||
|
|
||||||
AS_IF([test "${cf_with_cxx}" = "yes"],[
|
|
||||||
# stuff that requires C++ support
|
# stuff that requires C++ support
|
||||||
|
AS_IF([test x"${cf_with_cxx}" = "xyes"],[
|
||||||
|
|
||||||
AC_MSG_CHECKING([whether to build USRP backend])
|
AC_MSG_CHECKING([whether to build USRP backend])
|
||||||
AC_ARG_ENABLE([usrp],
|
AC_ARG_ENABLE([usrp],
|
||||||
|
@ -553,7 +557,7 @@ AS_IF([test "${cf_with_cxx}" = "yes"],[
|
||||||
[cf_with_usrp="no"])
|
[cf_with_usrp="no"])
|
||||||
AC_MSG_RESULT([$cf_with_usrp])
|
AC_MSG_RESULT([$cf_with_usrp])
|
||||||
|
|
||||||
AS_IF([test "${cf_with_usrp}" = "yes"],[
|
AS_IF([test x"${cf_with_usrp}" = "xyes"],[
|
||||||
PKG_CHECK_MODULES([USRP],
|
PKG_CHECK_MODULES([USRP],
|
||||||
[usrp >= 0.8],
|
[usrp >= 0.8],
|
||||||
[AC_DEFINE([HAVE_USRP],[1],[Define if usrp is available])
|
[AC_DEFINE([HAVE_USRP],[1],[Define if usrp is available])
|
||||||
|
@ -622,7 +626,7 @@ AC_SUBST([ROT_BACKENDEPS])
|
||||||
|
|
||||||
|
|
||||||
AC_CHECK_PROG([cf_with_bindings], [swig], [yes], [no], [$PATH])
|
AC_CHECK_PROG([cf_with_bindings], [swig], [yes], [no], [$PATH])
|
||||||
AS_IF([test "${cf_with_bindings}" = "yes"], [
|
AS_IF([test x"${cf_with_bindings}" = "xyes"], [
|
||||||
cf_with_bindings=no
|
cf_with_bindings=no
|
||||||
|
|
||||||
SWIG_PROG(1.3.22)
|
SWIG_PROG(1.3.22)
|
||||||
|
|
Ładowanie…
Reference in New Issue