kopia lustrzana https://github.com/Hamlib/Hamlib
Remove CR from configure.ac
rodzic
905cf4ea48
commit
0c2599c0c1
336
configure.ac
336
configure.ac
|
@ -15,10 +15,10 @@ dnl however, the use of '~' should be fine as apt (others?) will treat
|
||||||
dnl it as an earlier version than the actual release. TNX KA6MAL
|
dnl it as an earlier version than the actual release. TNX KA6MAL
|
||||||
dnl PACKAGE_NAME + " " + PACKAGE_VERSION must not exceed 20 chars!
|
dnl PACKAGE_NAME + " " + PACKAGE_VERSION must not exceed 20 chars!
|
||||||
AC_INIT([Hamlib],
|
AC_INIT([Hamlib],
|
||||||
[4.1~git],
|
[4.1~git],
|
||||||
[hamlib-developer@lists.sourceforge.net],
|
[hamlib-developer@lists.sourceforge.net],
|
||||||
[hamlib],
|
[hamlib],
|
||||||
[http://www.hamlib.org])
|
[http://www.hamlib.org])
|
||||||
|
|
||||||
AC_CONFIG_SRCDIR([include/hamlib/rig.h])
|
AC_CONFIG_SRCDIR([include/hamlib/rig.h])
|
||||||
AC_CONFIG_MACRO_DIR([macros])
|
AC_CONFIG_MACRO_DIR([macros])
|
||||||
|
@ -195,38 +195,38 @@ hl_oldLibs=$LIBS
|
||||||
AC_CHECK_FUNC([connect], [hl_checkSocket=0], [hl_checkSocket=1])
|
AC_CHECK_FUNC([connect], [hl_checkSocket=0], [hl_checkSocket=1])
|
||||||
|
|
||||||
AS_IF([test "$hl_checkSocket" = 1], [
|
AS_IF([test "$hl_checkSocket" = 1], [
|
||||||
AC_CHECK_LIB([socket],
|
AC_CHECK_LIB([socket],
|
||||||
[main],
|
[main],
|
||||||
[NET_LIBS="$NET_LIBS -lsocket"],
|
[NET_LIBS="$NET_LIBS -lsocket"],
|
||||||
[hl_checkBoth=1],
|
[hl_checkBoth=1],
|
||||||
[])
|
[])
|
||||||
])
|
])
|
||||||
|
|
||||||
AS_IF([test "$hl_checkBoth" = 1], [
|
AS_IF([test "$hl_checkBoth" = 1], [
|
||||||
hl2_oldLibs=$LIBS
|
hl2_oldLibs=$LIBS
|
||||||
LIBS="$LIBS -lsocket -lnsl"
|
LIBS="$LIBS -lsocket -lnsl"
|
||||||
AC_CHECK_FUNC([accept], [hl_checkNsl=0], [LIBS=$hl2_oldLibs])
|
AC_CHECK_FUNC([accept], [hl_checkNsl=0], [LIBS=$hl2_oldLibs])
|
||||||
])
|
])
|
||||||
|
|
||||||
# separate Name Service Library
|
# separate Name Service Library
|
||||||
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"],
|
||||||
[],
|
[],
|
||||||
[])
|
[])
|
||||||
])
|
])
|
||||||
|
|
||||||
# Winsock2 32 bit
|
# Winsock2 32 bit
|
||||||
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"],
|
||||||
[],
|
[],
|
||||||
[])
|
[])
|
||||||
])
|
])
|
||||||
|
|
||||||
LIBS="$LIBS $NET_LIBS"
|
LIBS="$LIBS $NET_LIBS"
|
||||||
|
|
||||||
|
@ -274,24 +274,24 @@ LT_INIT([win32-dll])
|
||||||
dnl The host_os variable is set by the AC_CANONICAL_HOST macro above.
|
dnl The host_os variable is set by the AC_CANONICAL_HOST macro above.
|
||||||
AS_CASE(["$host_os"],
|
AS_CASE(["$host_os"],
|
||||||
[freebsd*], [
|
[freebsd*], [
|
||||||
AM_CPPFLAGS="-I/usr/local/include ${AM_CPPFLAGS}"
|
AM_CPPFLAGS="-I/usr/local/include ${AM_CPPFLAGS}"
|
||||||
AM_LDFLAGS="${AM_LDFLAGS} -L/usr/local/lib"
|
AM_LDFLAGS="${AM_LDFLAGS} -L/usr/local/lib"
|
||||||
AC_SUBST([AM_LDFLAGS])],
|
AC_SUBST([AM_LDFLAGS])],
|
||||||
|
|
||||||
[darwin* | rhapsody*], [
|
[darwin* | rhapsody*], [
|
||||||
# Tell the OS X linker to allocate enough space inside the
|
# Tell the OS X linker to allocate enough space inside the
|
||||||
# libhamlib.X.dylib shared object for install_name_tool(1) to
|
# libhamlib.X.dylib shared object for install_name_tool(1) to
|
||||||
# work. This is useful when including hamlib in an app bundle.
|
# work. This is useful when including hamlib in an app bundle.
|
||||||
OSXLDFLAGS="-Wl,-headerpad_max_install_names"
|
OSXLDFLAGS="-Wl,-headerpad_max_install_names"
|
||||||
AC_SUBST([OSXLDFLAGS])],
|
AC_SUBST([OSXLDFLAGS])],
|
||||||
|
|
||||||
[mingw* | pw32* | cygwin*], [
|
[mingw* | pw32* | cygwin*], [
|
||||||
WINLDFLAGS="-Wl,--output-def,libhamlib.def -Wl,--add-stdcall-alias"
|
WINLDFLAGS="-Wl,--output-def,libhamlib.def -Wl,--add-stdcall-alias"
|
||||||
AC_SUBST([WINLDFLAGS])
|
AC_SUBST([WINLDFLAGS])
|
||||||
|
|
||||||
# Enable ld's "auto import" for executables
|
# Enable ld's "auto import" for executables
|
||||||
WINEXELDFLAGS="-Wl,--enable-auto-import"
|
WINEXELDFLAGS="-Wl,--enable-auto-import"
|
||||||
AC_SUBST([WINEXELDFLAGS])
|
AC_SUBST([WINEXELDFLAGS])
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
@ -303,20 +303,20 @@ dnl Check if C99 struct initializers are supported
|
||||||
AC_MSG_CHECKING([whether C99 struct/array initializers are supported])
|
AC_MSG_CHECKING([whether C99 struct/array initializers are supported])
|
||||||
|
|
||||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]],
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]],
|
||||||
[[struct{char a;int b;}s[8]={[3]={.b=5}};]])],
|
[[struct{char a;int b;}s[8]={[3]={.b=5}};]])],
|
||||||
[AC_MSG_RESULT(yes)],
|
[AC_MSG_RESULT(yes)],
|
||||||
[AC_MSG_ERROR([""
|
[AC_MSG_ERROR([""
|
||||||
"You need a C99 compliant C compiler that supports struct/array initializers."
|
"You need a C99 compliant C compiler that supports struct/array initializers."
|
||||||
"Have you considered GCC lately?."])
|
"Have you considered GCC lately?."])
|
||||||
])
|
])
|
||||||
|
|
||||||
dnl Check for libusb, treat LIBUSB_LIBS and LIBUSB_CFLAGS as precious variables
|
dnl Check for libusb, treat LIBUSB_LIBS and LIBUSB_CFLAGS as precious variables
|
||||||
AC_MSG_CHECKING([whether to build USB dependent backends])
|
AC_MSG_CHECKING([whether to build USB dependent backends])
|
||||||
AC_ARG_WITH([libusb],
|
AC_ARG_WITH([libusb],
|
||||||
[AS_HELP_STRING([--without-libusb],
|
[AS_HELP_STRING([--without-libusb],
|
||||||
[disable USB dependent backends @<:@default=yes@:>@])],
|
[disable USB dependent backends @<:@default=yes@:>@])],
|
||||||
[cf_with_libusb=no],
|
[cf_with_libusb=no],
|
||||||
[cf_with_libusb=yes]
|
[cf_with_libusb=yes]
|
||||||
)
|
)
|
||||||
|
|
||||||
AC_MSG_RESULT([$cf_with_libusb])
|
AC_MSG_RESULT([$cf_with_libusb])
|
||||||
|
@ -327,16 +327,16 @@ AC_ARG_VAR([LIBUSB_LIBS], [linker flags for libusb, overriding configure check (
|
||||||
|
|
||||||
AS_IF([test x"${cf_with_libusb}" = "xyes"],
|
AS_IF([test x"${cf_with_libusb}" = "xyes"],
|
||||||
[AS_IF([test -z $LIBUSB_LIBS],
|
[AS_IF([test -z $LIBUSB_LIBS],
|
||||||
[AC_CHECK_LIB([usb-1.0], [libusb_init], [LIBUSB_LIBS="-lusb-1.0"],
|
[AC_CHECK_LIB([usb-1.0], [libusb_init], [LIBUSB_LIBS="-lusb-1.0"],
|
||||||
[AC_MSG_WARN([libusb_init was not found in libusb-1.0--USB backends will be disabled])])
|
[AC_MSG_WARN([libusb_init was not found in libusb-1.0--USB backends will be disabled])])
|
||||||
], [cf_with_libusb="yes"])
|
], [cf_with_libusb="yes"])
|
||||||
|
|
||||||
AS_IF([test x"${cf_with_libusb}" = "xyes"],
|
AS_IF([test x"${cf_with_libusb}" = "xyes"],
|
||||||
[AC_CHECK_HEADERS([libusb.h libusb-1.0/libusb.h])
|
[AC_CHECK_HEADERS([libusb.h libusb-1.0/libusb.h])
|
||||||
AC_DEFINE([HAVE_LIBUSB],
|
AC_DEFINE([HAVE_LIBUSB],
|
||||||
[1],
|
[1],
|
||||||
[Define if libusb-1.0 is available])
|
[Define if libusb-1.0 is available])
|
||||||
LIBUSB="libusb-1.0"])])
|
LIBUSB="libusb-1.0"])])
|
||||||
|
|
||||||
# Only used in hamlib.pc.in
|
# Only used in hamlib.pc.in
|
||||||
AC_SUBST([LIBUSB])
|
AC_SUBST([LIBUSB])
|
||||||
|
@ -346,9 +346,9 @@ dnl Check if readline support in rigctl/rotctl is wanted
|
||||||
AC_MSG_CHECKING([whether to use readline in rigctl/rotctl])
|
AC_MSG_CHECKING([whether to use readline in rigctl/rotctl])
|
||||||
AC_ARG_WITH([readline],
|
AC_ARG_WITH([readline],
|
||||||
[AS_HELP_STRING([--without-readline],
|
[AS_HELP_STRING([--without-readline],
|
||||||
[disable readline in rigctl/rotctl @<:@default=yes@:>@])],
|
[disable readline in rigctl/rotctl @<:@default=yes@:>@])],
|
||||||
[cf_with_readline_support=no],
|
[cf_with_readline_support=no],
|
||||||
[cf_with_readline_support=yes]
|
[cf_with_readline_support=yes]
|
||||||
)
|
)
|
||||||
|
|
||||||
AC_MSG_RESULT([$cf_with_readline_support])
|
AC_MSG_RESULT([$cf_with_readline_support])
|
||||||
|
@ -367,16 +367,16 @@ dnl Check if INDI support in rigctl/rotctl is wanted
|
||||||
AC_MSG_CHECKING([whether to use INDI in rigctl/rotctl])
|
AC_MSG_CHECKING([whether to use INDI in rigctl/rotctl])
|
||||||
AC_ARG_WITH([indi],
|
AC_ARG_WITH([indi],
|
||||||
[AS_HELP_STRING([--without-indi],
|
[AS_HELP_STRING([--without-indi],
|
||||||
[disable INDI in rigctl/rotctl @<:@default=yes@:>@])],
|
[disable INDI in rigctl/rotctl @<:@default=yes@:>@])],
|
||||||
[cf_with_indi_support=no],
|
[cf_with_indi_support=no],
|
||||||
[cf_with_indi_support=yes]
|
[cf_with_indi_support=yes]
|
||||||
)
|
)
|
||||||
|
|
||||||
AS_IF([test x"$cf_with_indi_support" != "xno"], [
|
AS_IF([test x"$cf_with_indi_support" != "xno"], [
|
||||||
# INDI support needs a C++ compiler, tested for presence above.
|
# INDI support needs a C++ compiler, tested for presence above.
|
||||||
AS_IF([test x"${cf_with_cxx}" != "xyes"], [
|
AS_IF([test x"${cf_with_cxx}" != "xyes"], [
|
||||||
AC_MSG_WARN([INDI support needs a C++ compiler.])
|
AC_MSG_WARN([INDI support needs a C++ compiler.])
|
||||||
cf_with_indi_support=no
|
cf_with_indi_support=no
|
||||||
])
|
])
|
||||||
])
|
])
|
||||||
|
|
||||||
|
@ -385,22 +385,22 @@ AS_IF([test x"$cf_with_indi_support" != "xno"], [
|
||||||
AX_LIB_NOVA
|
AX_LIB_NOVA
|
||||||
|
|
||||||
AS_IF([test x"$ax_cv_lib_nova" = "xno"], [
|
AS_IF([test x"$ax_cv_lib_nova" = "xno"], [
|
||||||
AC_MSG_WARN([libnova support not found, required by INDI.])
|
AC_MSG_WARN([libnova support not found, required by INDI.])
|
||||||
cf_with_indi_support=no
|
cf_with_indi_support=no
|
||||||
])
|
])
|
||||||
|
|
||||||
AS_IF([test x"$ax_cv_lib_nova" != "xno"], [
|
AS_IF([test x"$ax_cv_lib_nova" != "xno"], [
|
||||||
# macros/ax_lib_indi.m4
|
# macros/ax_lib_indi.m4
|
||||||
AX_LIB_INDI
|
AX_LIB_INDI
|
||||||
|
|
||||||
AS_IF([test x"$ax_cv_lib_indi" = "xno"], [
|
AS_IF([test x"$ax_cv_lib_indi" = "xno"], [
|
||||||
AC_MSG_WARN([INDI support not found.])
|
AC_MSG_WARN([INDI support not found.])
|
||||||
cf_with_indi_support=no
|
cf_with_indi_support=no
|
||||||
])
|
])
|
||||||
|
|
||||||
AS_IF([test x"$cf_with_indi_support" != "xno"], [
|
AS_IF([test x"$cf_with_indi_support" != "xno"], [
|
||||||
ROT_BACKEND_LIST="$ROT_BACKEND_LIST rotators/indi"
|
ROT_BACKEND_LIST="$ROT_BACKEND_LIST rotators/indi"
|
||||||
])
|
])
|
||||||
])
|
])
|
||||||
])
|
])
|
||||||
|
|
||||||
|
@ -408,22 +408,22 @@ dnl Check if libgd-dev is installed, so we can enable rigmatrix
|
||||||
AC_MSG_CHECKING([whether to build HTML rig feature matrix])
|
AC_MSG_CHECKING([whether to build HTML rig feature matrix])
|
||||||
AC_ARG_ENABLE([html-matrix],
|
AC_ARG_ENABLE([html-matrix],
|
||||||
[AS_HELP_STRING([--disable-html-matrix],
|
[AS_HELP_STRING([--disable-html-matrix],
|
||||||
[do not generate HTML rig feature matrix (requires libgd-dev) @<:@default=check@:>@])],
|
[do not generate HTML rig feature matrix (requires libgd-dev) @<:@default=check@:>@])],
|
||||||
[cf_enable_html_matrix=no],
|
[cf_enable_html_matrix=no],
|
||||||
[cf_enable_html_matrix=check]
|
[cf_enable_html_matrix=check]
|
||||||
)
|
)
|
||||||
|
|
||||||
AC_MSG_RESULT([$cf_enable_html_matrix])
|
AC_MSG_RESULT([$cf_enable_html_matrix])
|
||||||
|
|
||||||
AS_IF([test x"$cf_enable_html_matrix" != "xno"],
|
AS_IF([test x"$cf_enable_html_matrix" != "xno"],
|
||||||
[AC_CHECK_HEADERS([gd.h],
|
[AC_CHECK_HEADERS([gd.h],
|
||||||
[AC_CHECK_LIB([gd],
|
[AC_CHECK_LIB([gd],
|
||||||
[gdImageCreate],
|
[gdImageCreate],
|
||||||
[cf_enable_html_matrix=yes],
|
[cf_enable_html_matrix=yes],
|
||||||
[cf_enable_html_matrix=no],
|
[cf_enable_html_matrix=no],
|
||||||
[-lz])],
|
[-lz])],
|
||||||
[cf_enable_html_matrix=no]
|
[cf_enable_html_matrix=no]
|
||||||
)
|
)
|
||||||
])
|
])
|
||||||
|
|
||||||
AM_CONDITIONAL([HTML_MATRIX], [test x"${cf_enable_html_matrix}" = "xyes"])
|
AM_CONDITIONAL([HTML_MATRIX], [test x"${cf_enable_html_matrix}" = "xyes"])
|
||||||
|
@ -439,10 +439,10 @@ dnl Test for pkg-config only when these features are enabled.
|
||||||
# libxml2 required rigmem xml support, make it user optional
|
# libxml2 required rigmem xml support, make it user optional
|
||||||
AC_MSG_CHECKING([whether to build rigmem XML support])
|
AC_MSG_CHECKING([whether to build rigmem XML support])
|
||||||
AC_ARG_WITH([xml-support],
|
AC_ARG_WITH([xml-support],
|
||||||
[AS_HELP_STRING([--with-xml-support],
|
[AS_HELP_STRING([--with-xml-support],
|
||||||
[build rigmem with XML support @<:@default=no@:>@])],
|
[build rigmem with XML support @<:@default=no@:>@])],
|
||||||
[cf_with_xml_support=$withval],
|
[cf_with_xml_support=$withval],
|
||||||
[cf_with_xml_support=no])
|
[cf_with_xml_support=no])
|
||||||
AC_MSG_RESULT([$cf_with_xml_support])
|
AC_MSG_RESULT([$cf_with_xml_support])
|
||||||
|
|
||||||
|
|
||||||
|
@ -450,10 +450,10 @@ AC_MSG_RESULT([$cf_with_xml_support])
|
||||||
AS_IF([test x"${cf_with_cxx}" = "xyes"], [
|
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],
|
||||||
[AS_HELP_STRING([--enable-usrp],
|
[AS_HELP_STRING([--enable-usrp],
|
||||||
[build USRP backend @<:@default=no@:>@])],
|
[build USRP backend @<:@default=no@:>@])],
|
||||||
[cf_with_usrp=$enableval],
|
[cf_with_usrp=$enableval],
|
||||||
[cf_with_usrp="no"])
|
[cf_with_usrp="no"])
|
||||||
AC_MSG_RESULT([$cf_with_usrp])
|
AC_MSG_RESULT([$cf_with_usrp])
|
||||||
])
|
])
|
||||||
|
|
||||||
|
@ -466,28 +466,28 @@ dnl http://lists.gnu.org/archive/html/automake/2011-03/msg00008.html
|
||||||
dnl
|
dnl
|
||||||
dnl Check for pkg-config program, used for configuring some libraries.
|
dnl Check for pkg-config program, used for configuring some libraries.
|
||||||
m4_define_default([PKG_PROG_PKG_CONFIG],
|
m4_define_default([PKG_PROG_PKG_CONFIG],
|
||||||
[AC_MSG_CHECKING([pkg-config])
|
[AC_MSG_CHECKING([pkg-config])
|
||||||
AC_MSG_RESULT([no])])
|
AC_MSG_RESULT([no])])
|
||||||
|
|
||||||
PKG_PROG_PKG_CONFIG
|
PKG_PROG_PKG_CONFIG
|
||||||
|
|
||||||
dnl If the pkg-config autoconf support isn't installed, define its
|
dnl If the pkg-config autoconf support isn't installed, define its
|
||||||
dnl autoconf macro to disable any packages depending on it.
|
dnl autoconf macro to disable any packages depending on it.
|
||||||
m4_define_default([PKG_CHECK_MODULES],
|
m4_define_default([PKG_CHECK_MODULES],
|
||||||
[AC_MSG_CHECKING([$1])
|
[AC_MSG_CHECKING([$1])
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
$4])
|
$4])
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
AS_IF([test x"${cf_with_xml_support}" = "xyes"], [
|
AS_IF([test x"${cf_with_xml_support}" = "xyes"], [
|
||||||
PKG_CHECK_MODULES([LIBXML2],
|
PKG_CHECK_MODULES([LIBXML2],
|
||||||
[libxml-2.0],
|
[libxml-2.0],
|
||||||
[AC_DEFINE([HAVE_XML2],
|
[AC_DEFINE([HAVE_XML2],
|
||||||
[1],
|
[1],
|
||||||
[Define if libxml2 is available])],
|
[Define if libxml2 is available])],
|
||||||
[AC_MSG_WARN([libxml-2.0 pkg-config not found, XML support will be disabled])
|
[AC_MSG_WARN([libxml-2.0 pkg-config not found, XML support will be disabled])
|
||||||
])
|
])
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_SUBST([LIBXML2_LIBS])
|
AC_SUBST([LIBXML2_LIBS])
|
||||||
|
@ -515,10 +515,10 @@ dnl Check if cxx-binding not wanted, default is to build it
|
||||||
# C++ binding
|
# C++ binding
|
||||||
AC_MSG_CHECKING([whether to build C++ binding])
|
AC_MSG_CHECKING([whether to build C++ binding])
|
||||||
AC_ARG_WITH([cxx-binding],
|
AC_ARG_WITH([cxx-binding],
|
||||||
[AS_HELP_STRING([--without-cxx-binding],
|
[AS_HELP_STRING([--without-cxx-binding],
|
||||||
[do not build C++ binding @<:@default=yes@:>@])],
|
[do not build C++ binding @<:@default=yes@:>@])],
|
||||||
[cf_with_cxx_binding=$withval],
|
[cf_with_cxx_binding=$withval],
|
||||||
[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 x"${cf_with_cxx_binding}" = "xyes"],
|
AS_IF([test x"${cf_with_cxx_binding}" = "xyes"],
|
||||||
|
@ -530,10 +530,10 @@ dnl Check if perl-binding is wanted, default is to not build it
|
||||||
# Perl binding
|
# Perl binding
|
||||||
AC_MSG_CHECKING([whether to build perl binding])
|
AC_MSG_CHECKING([whether to build perl binding])
|
||||||
AC_ARG_WITH([perl-binding],
|
AC_ARG_WITH([perl-binding],
|
||||||
[AS_HELP_STRING([--with-perl-binding],
|
[AS_HELP_STRING([--with-perl-binding],
|
||||||
[build perl binding @<:@default=no@:>@])],
|
[build perl binding @<:@default=no@:>@])],
|
||||||
[cf_with_perl_binding=$withval],
|
[cf_with_perl_binding=$withval],
|
||||||
[cf_with_perl_binding=no])
|
[cf_with_perl_binding=no])
|
||||||
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
|
||||||
|
@ -557,14 +557,14 @@ dnl Check for python availability, so we can enable HamlibPy
|
||||||
AC_MSG_CHECKING([whether to build python binding])
|
AC_MSG_CHECKING([whether to build python binding])
|
||||||
AC_ARG_WITH([python-binding],
|
AC_ARG_WITH([python-binding],
|
||||||
[AS_HELP_STRING([--with-python-binding],
|
[AS_HELP_STRING([--with-python-binding],
|
||||||
[build python binding @<:@default=no@:>@])],
|
[build python binding @<:@default=no@:>@])],
|
||||||
[cf_with_python_binding=$withval],
|
[cf_with_python_binding=$withval],
|
||||||
[cf_with_python_binding=no])
|
[cf_with_python_binding=no])
|
||||||
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 x"${cf_with_python_binding}" = "xyes"],[
|
AS_IF([test x"${cf_with_python_binding}" = "xyes"],[
|
||||||
dnl Order matters! AX_PYTHON_DEVEL must be first for PYTHON_VERSION to be honored.
|
dnl Order matters! AX_PYTHON_DEVEL must be first for PYTHON_VERSION to be honored.
|
||||||
AX_PYTHON_DEVEL([">='2.1'"])
|
AX_PYTHON_DEVEL([">='2.1'"])
|
||||||
AM_PATH_PYTHON([2.1],, [:])
|
AM_PATH_PYTHON([2.1],, [:])
|
||||||
|
|
||||||
|
@ -593,7 +593,7 @@ AS_IF([test x"${pyver_3_8}" = "xyes"],[
|
||||||
AC_MSG_CHECKING([Whether to build Tcl bindings])
|
AC_MSG_CHECKING([Whether to build Tcl bindings])
|
||||||
AC_ARG_WITH([tcl-binding],
|
AC_ARG_WITH([tcl-binding],
|
||||||
[AS_HELP_STRING([--with-tcl-binding],
|
[AS_HELP_STRING([--with-tcl-binding],
|
||||||
[build Tcl binding @<:@default=no@:>@])],
|
[build Tcl binding @<:@default=no@:>@])],
|
||||||
[build_tcl=$withval],
|
[build_tcl=$withval],
|
||||||
[build_tcl=no])
|
[build_tcl=no])
|
||||||
AC_MSG_RESULT([$build_tcl])
|
AC_MSG_RESULT([$build_tcl])
|
||||||
|
@ -607,8 +607,8 @@ AS_IF([test x"${build_tcl}" = "xyes"],[
|
||||||
tcl_save_CPPFLAGS=$CPPFLAGS
|
tcl_save_CPPFLAGS=$CPPFLAGS
|
||||||
CPPFLAGS="$CPPFLAGS $TCL_INCLUDE_SPEC"
|
CPPFLAGS="$CPPFLAGS $TCL_INCLUDE_SPEC"
|
||||||
AC_CHECK_HEADERS([tcl.h],
|
AC_CHECK_HEADERS([tcl.h],
|
||||||
[],
|
[],
|
||||||
[AC_MSG_ERROR([Unable to find Tcl headers])])
|
[AC_MSG_ERROR([Unable to find Tcl headers])])
|
||||||
CPPFLAGS=$tcl_save_CPPFLAGS
|
CPPFLAGS=$tcl_save_CPPFLAGS
|
||||||
|
|
||||||
BINDING_LIST="${BINDING_LIST} tcl"
|
BINDING_LIST="${BINDING_LIST} tcl"
|
||||||
|
@ -633,7 +633,7 @@ dnl Check for lua availability, so we can enable HamlibLua
|
||||||
AC_MSG_CHECKING([whether to build lua binding])
|
AC_MSG_CHECKING([whether to build lua binding])
|
||||||
AC_ARG_WITH([lua-binding],
|
AC_ARG_WITH([lua-binding],
|
||||||
[AS_HELP_STRING([--with-lua-binding],
|
[AS_HELP_STRING([--with-lua-binding],
|
||||||
[build lua binding @<:@default=no@:>@])],
|
[build lua binding @<:@default=no@:>@])],
|
||||||
[cf_with_lua_binding=$withval],
|
[cf_with_lua_binding=$withval],
|
||||||
[cf_with_lua_binding=no])
|
[cf_with_lua_binding=no])
|
||||||
AC_MSG_RESULT([$cf_with_lua_binding])
|
AC_MSG_RESULT([$cf_with_lua_binding])
|
||||||
|
@ -661,10 +661,10 @@ dnl Only search for Swig if one or more bindings are enabled.
|
||||||
AS_IF([test "x${BINDING_ALL}" != "x"],
|
AS_IF([test "x${BINDING_ALL}" != "x"],
|
||||||
[# macros/ax_pkg_swig.m4
|
[# macros/ax_pkg_swig.m4
|
||||||
AX_PKG_SWIG([3.0.12],
|
AX_PKG_SWIG([3.0.12],
|
||||||
[BINDINGS="${BINDINGS} bindings"
|
[BINDINGS="${BINDINGS} bindings"
|
||||||
cf_with_bindings="yes"],
|
cf_with_bindings="yes"],
|
||||||
[AC_MSG_ERROR([SWIG is required to build bindings...])
|
[AC_MSG_ERROR([SWIG is required to build bindings...])
|
||||||
])],
|
])],
|
||||||
[cf_with_bindings="no"])
|
[cf_with_bindings="no"])
|
||||||
|
|
||||||
AC_MSG_CHECKING([whether to build bindings])
|
AC_MSG_CHECKING([whether to build bindings])
|
||||||
|
@ -689,10 +689,10 @@ AC_SUBST([BINDING_LIB_TARGETS])
|
||||||
dnl Winradio only under Linux (until someone ports it on other os)
|
dnl Winradio only under Linux (until someone ports it on other os)
|
||||||
AC_MSG_CHECKING([whether to build winradio backend])
|
AC_MSG_CHECKING([whether to build winradio backend])
|
||||||
AC_ARG_ENABLE([winradio],
|
AC_ARG_ENABLE([winradio],
|
||||||
[AS_HELP_STRING([--disable-winradio],
|
[AS_HELP_STRING([--disable-winradio],
|
||||||
[do not build winradio backend @<:@default=yes@:>@])],
|
[do not build winradio backend @<:@default=yes@:>@])],
|
||||||
[cf_with_winradio="no"],
|
[cf_with_winradio="no"],
|
||||||
[cf_with_winradio="yes" AC_DEFINE([HAVE_WINRADIO],[1],[Define if winradio backend is built])])
|
[cf_with_winradio="yes" AC_DEFINE([HAVE_WINRADIO],[1],[Define if winradio backend is built])])
|
||||||
AC_MSG_RESULT([$cf_with_winradio])
|
AC_MSG_RESULT([$cf_with_winradio])
|
||||||
|
|
||||||
DL_LIBS=""
|
DL_LIBS=""
|
||||||
|
@ -701,7 +701,7 @@ AS_IF([test x"${cf_with_winradio}" = "xyes"],
|
||||||
[RIGS_BACKEND_LIST="$RIGS_BACKEND_LIST rigs/winradio"
|
[RIGS_BACKEND_LIST="$RIGS_BACKEND_LIST rigs/winradio"
|
||||||
dnl Check for libdl and set DL_LIBS if found--used for linradio WR-G313 backend.
|
dnl Check for libdl and set DL_LIBS if found--used for linradio WR-G313 backend.
|
||||||
AC_CHECK_LIB([dl], [dlopen], [DL_LIBS="-ldl"],
|
AC_CHECK_LIB([dl], [dlopen], [DL_LIBS="-ldl"],
|
||||||
[AC_MSG_WARN([dlopen was not found in libdl--linradio backend will be disabled])])
|
[AC_MSG_WARN([dlopen was not found in libdl--linradio backend will be disabled])])
|
||||||
])
|
])
|
||||||
|
|
||||||
# Still need -ldl if we have it
|
# Still need -ldl if we have it
|
||||||
|
@ -709,29 +709,29 @@ AS_IF([test x"${cf_with_winradio}" = "xno"],
|
||||||
[RIGS_BACKEND_LIST="$RIGS_BACKEND_LIST"
|
[RIGS_BACKEND_LIST="$RIGS_BACKEND_LIST"
|
||||||
dnl Check for libdl and set DL_LIBS if found--used for linradio WR-G313 backend.
|
dnl Check for libdl and set DL_LIBS if found--used for linradio WR-G313 backend.
|
||||||
AC_CHECK_LIB([dl], [dlopen], [DL_LIBS="-ldl"],
|
AC_CHECK_LIB([dl], [dlopen], [DL_LIBS="-ldl"],
|
||||||
[AC_MSG_WARN([dlopen was not found in libdl--linradio backend will be disabled])])
|
[AC_MSG_WARN([dlopen was not found in libdl--linradio backend will be disabled])])
|
||||||
])
|
])
|
||||||
|
|
||||||
dnl Set conditional compilation for G-313.
|
dnl Set conditional compilation for G-313.
|
||||||
AS_CASE(["$host_os"],
|
AS_CASE(["$host_os"],
|
||||||
[mingw* | pw32* | cygwin ], [
|
[mingw* | pw32* | cygwin ], [
|
||||||
AM_CONDITIONAL(G313_LINUX_GNU, false)
|
AM_CONDITIONAL(G313_LINUX_GNU, false)
|
||||||
AM_CONDITIONAL(G313_WINDOWS, true)
|
AM_CONDITIONAL(G313_WINDOWS, true)
|
||||||
],
|
],
|
||||||
dnl As g313-posix.c has a hard dependency on linux/types.h
|
dnl As g313-posix.c has a hard dependency on linux/types.h
|
||||||
dnl via linradio/wrg313api.h, disable compilation on other POSIX.
|
dnl via linradio/wrg313api.h, disable compilation on other POSIX.
|
||||||
dnl (Certain systems have extra characters following "-gnu" such as
|
dnl (Certain systems have extra characters following "-gnu" such as
|
||||||
dnl the Raspberry Pi which is "linux-gnueabihf"; presume that "linux-gnu"
|
dnl the Raspberry Pi which is "linux-gnueabihf"; presume that "linux-gnu"
|
||||||
dnl is a sufficient test.)
|
dnl is a sufficient test.)
|
||||||
[ *linux-gnu* ], [
|
[ *linux-gnu* ], [
|
||||||
AM_CONDITIONAL(G313_LINUX_GNU, true)
|
AM_CONDITIONAL(G313_LINUX_GNU, true)
|
||||||
AM_CONDITIONAL(G313_WINDOWS, false)
|
AM_CONDITIONAL(G313_WINDOWS, false)
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
AM_CONDITIONAL(G313_LINUX_GNU, false)
|
AM_CONDITIONAL(G313_LINUX_GNU, false)
|
||||||
AM_CONDITIONAL(G313_WINDOWS, false)
|
AM_CONDITIONAL(G313_WINDOWS, false)
|
||||||
AC_DEFINE([OTHER_POSIX], [1], [Compilation on POSIX other than Linux])
|
AC_DEFINE([OTHER_POSIX], [1], [Compilation on POSIX other than Linux])
|
||||||
])
|
])
|
||||||
|
|
||||||
dnl If libdl is present, check for its header file.
|
dnl If libdl is present, check for its header file.
|
||||||
AS_IF([test x"${DL_LIBS}" = "x-ldl"],
|
AS_IF([test x"${DL_LIBS}" = "x-ldl"],
|
||||||
|
@ -743,9 +743,9 @@ AC_SUBST([DL_LIBS])
|
||||||
dnl stuff that requires C++ support
|
dnl stuff that requires C++ support
|
||||||
AS_IF([test x"${cf_with_usrp}" = "xyes"],[
|
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])
|
||||||
])
|
])
|
||||||
])
|
])
|
||||||
|
|
||||||
AM_CONDITIONAL([HAVE_USRP], [test x"${cf_with_usrp}" = "xyes"])
|
AM_CONDITIONAL([HAVE_USRP], [test x"${cf_with_usrp}" = "xyes"])
|
||||||
|
@ -767,8 +767,8 @@ dnl otherwise parallel 'make -jn' will fail
|
||||||
## ---------------------------------- ##
|
## ---------------------------------- ##
|
||||||
|
|
||||||
for be in ${RIG_BACKEND_LIST} ; do
|
for be in ${RIG_BACKEND_LIST} ; do
|
||||||
RIGDIR=$(echo $be | awk -F "/" '{print $2}')
|
RIGDIR=$(echo $be | awk -F "/" '{print $2}')
|
||||||
RIG_BACKENDEPS="${RIG_BACKENDEPS} \$(top_builddir)/rigs/${RIGDIR}/libhamlib-${RIGDIR}.la"
|
RIG_BACKENDEPS="${RIG_BACKENDEPS} \$(top_builddir)/rigs/${RIGDIR}/libhamlib-${RIGDIR}.la"
|
||||||
done
|
done
|
||||||
|
|
||||||
AC_SUBST([RIG_BACKEND_LIST])
|
AC_SUBST([RIG_BACKEND_LIST])
|
||||||
|
@ -782,8 +782,8 @@ AC_SUBST([RIG_BACKENDEPS])
|
||||||
# otherwise parallel 'make -jn' will fail
|
# otherwise parallel 'make -jn' will fail
|
||||||
|
|
||||||
for be in ${ROT_BACKEND_LIST} ; do
|
for be in ${ROT_BACKEND_LIST} ; do
|
||||||
ROTDIR=$(echo $be | awk -F "/" '{print $2}')
|
ROTDIR=$(echo $be | awk -F "/" '{print $2}')
|
||||||
ROT_BACKENDEPS="${ROT_BACKENDEPS} \$(top_builddir)/rotators/${ROTDIR}/libhamlib-${ROTDIR}.la"
|
ROT_BACKENDEPS="${ROT_BACKENDEPS} \$(top_builddir)/rotators/${ROTDIR}/libhamlib-${ROTDIR}.la"
|
||||||
done
|
done
|
||||||
|
|
||||||
AC_SUBST([ROT_BACKEND_LIST])
|
AC_SUBST([ROT_BACKEND_LIST])
|
||||||
|
@ -796,8 +796,8 @@ AC_SUBST([ROT_BACKENDEPS])
|
||||||
# otherwise parallel 'make -jn' will fail
|
# otherwise parallel 'make -jn' will fail
|
||||||
|
|
||||||
for be in ${AMP_BACKEND_LIST} ; do
|
for be in ${AMP_BACKEND_LIST} ; do
|
||||||
AMPDIR=$(echo $be | awk -F "/" '{print $2}')
|
AMPDIR=$(echo $be | awk -F "/" '{print $2}')
|
||||||
AMP_BACKENDEPS="${AMP_BACKENDEPS} \$(top_builddir)/amplifiers/${AMPDIR}/libhamlib-${AMPDIR}.la"
|
AMP_BACKENDEPS="${AMP_BACKENDEPS} \$(top_builddir)/amplifiers/${AMPDIR}/libhamlib-${AMPDIR}.la"
|
||||||
done
|
done
|
||||||
|
|
||||||
AC_SUBST([AMP_BACKEND_LIST])
|
AC_SUBST([AMP_BACKEND_LIST])
|
||||||
|
@ -885,26 +885,26 @@ echo \
|
||||||
|
|
||||||
${PACKAGE_NAME} Version ${PACKAGE_VERSION} configuration:
|
${PACKAGE_NAME} Version ${PACKAGE_VERSION} configuration:
|
||||||
|
|
||||||
Prefix ${prefix}
|
Prefix ${prefix}
|
||||||
Preprocessor ${CPP} ${CPPFLAGS}
|
Preprocessor ${CPP} ${CPPFLAGS}
|
||||||
C Compiler ${CC} ${CFLAGS}
|
C Compiler ${CC} ${CFLAGS}
|
||||||
C++ Compiler ${CXX} ${CXXFLAGS}
|
C++ Compiler ${CXX} ${CXXFLAGS}
|
||||||
|
|
||||||
Package features:
|
Package features:
|
||||||
With C++ binding ${cf_with_cxx_binding}
|
With C++ binding ${cf_with_cxx_binding}
|
||||||
With Perl binding ${cf_with_perl_binding}
|
With Perl binding ${cf_with_perl_binding}
|
||||||
With Python binding ${cf_with_python_binding}
|
With Python binding ${cf_with_python_binding}
|
||||||
With TCL binding ${build_tcl}
|
With TCL binding ${build_tcl}
|
||||||
With Lua binding ${cf_with_lua_binding}
|
With Lua binding ${cf_with_lua_binding}
|
||||||
With rigmem XML support ${cf_with_xml_support}
|
With rigmem XML support ${cf_with_xml_support}
|
||||||
With Readline support ${cf_with_readline_support}
|
With Readline support ${cf_with_readline_support}
|
||||||
With INDI support ${cf_with_indi_support}
|
With INDI support ${cf_with_indi_support}
|
||||||
|
|
||||||
Enable HTML rig feature matrix ${cf_enable_html_matrix}
|
Enable HTML rig feature matrix ${cf_enable_html_matrix}
|
||||||
Enable WinRadio ${cf_with_winradio}
|
Enable WinRadio ${cf_with_winradio}
|
||||||
Enable USRP ${cf_with_usrp}
|
Enable USRP ${cf_with_usrp}
|
||||||
Enable USB backends ${cf_with_libusb}
|
Enable USB backends ${cf_with_libusb}
|
||||||
Enable shared libs ${enable_shared}
|
Enable shared libs ${enable_shared}
|
||||||
Enable static libs ${enable_static}
|
Enable static libs ${enable_static}
|
||||||
|
|
||||||
-----------------------------------------------------------------------"
|
-----------------------------------------------------------------------"
|
||||||
|
|
Ładowanie…
Reference in New Issue