* check if linradio include files are installed and enable WiNRADiO support accordingly

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@347 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.1.1
Stéphane Fillod, F8CFE 2001-02-07 23:48:24 +00:00
rodzic e25f8211df
commit 7638b966d7
1 zmienionych plików z 25 dodań i 5 usunięć

Wyświetl plik

@ -67,12 +67,12 @@ if test "${enable_dynamic}" != "no"; then
[enable_dynamic=no]) [enable_dynamic=no])
fi fi
if test "${enable_rigmatrix}" != "no"; then dnl Check if libgd-dev is installed, so we can enable rigmatrix
AC_CHECK_HEADERS(gd.h,
AC_CHECK_HEADERS(gd.h,
[AC_CHECK_LIB(gd,gdImageCreate) [AC_CHECK_LIB(gd,gdImageCreate)
AC_CHECK_FUNCS(gdImageCreate, , enable_rigmatrix=no)], AC_CHECK_FUNCS(gdImageCreate, , enable_rigmatrix=no)],
[enable_rigmatrix=no]) [enable_rigmatrix=no])
fi
if test "${ac_cv_header_gd_h}" = "no"; then if test "${ac_cv_header_gd_h}" = "no"; then
echo "disabling rigmatrix generation" echo "disabling rigmatrix generation"
RIGMATRIX= RIGMATRIX=
@ -82,6 +82,26 @@ else
fi fi
AC_SUBST(RIGMATRIX) AC_SUBST(RIGMATRIX)
dnl Check if linradio-toolkit includes are there, so we can enable WiNRADiO
AC_CHECK_HEADERS(linradio/radio_ioctl.h linradio/wrapi.h)
if test "${ac_cv_header_linradio_radio_ioctl_h}" = "no" -o \
"${ac_cv_header_linradio_wrapi_h}" = "no"; then
echo "disabling WiNRADiO receiver support"
WINRADIO=
WINRADIOLNK=
WINRADIODEPS=
else
echo "enabling WiNRADiO receiver support"
WINRADIO=winradio
WINRADIOLNK="\"-dlopen\" ../winradio/libhamlib-winradio.la"
WINRADIODEPS="../winradio/libhamlib-winradio.la"
fi
AC_SUBST(WINRADIO)
AC_SUBST(WINRADIOLNK)
AC_SUBST(WINRADIODEPS)
AC_SUBST(INCLUDES) AC_SUBST(INCLUDES)
if test "${ac_cv_header_sys_socket_h}" = "no"; then if test "${ac_cv_header_sys_socket_h}" = "no"; then
@ -96,7 +116,7 @@ AC_SUBST(NET)
if test "${enable_shared}" = "no"; then if test "${enable_shared}" = "no"; then
enable_preload=yes enable_preload=yes
fi fi
if test "${enable_dynamic}" = no || test "${enable_preload}" = "yes"; then if test "${enable_dynamic}" = "no" || test "${enable_preload}" = "yes"; then
echo "preloading backends into DLL" echo "preloading backends into DLL"
DLL_PRELOAD="\$(PRELOADABLE_BACKENDS)" DLL_PRELOAD="\$(PRELOADABLE_BACKENDS)"
else else
@ -107,7 +127,7 @@ AC_SUBST(V_MINOR)
AC_SUBST(DLL_PRELOAD) AC_SUBST(DLL_PRELOAD)
AC_OUTPUT( yaesu/Makefile icom/Makefile aor/Makefile \ AC_OUTPUT( yaesu/Makefile icom/Makefile aor/Makefile \
kenwood/Makefile \ kenwood/Makefile winradio/Makefile \
Makefile include/Makefile include/hamlib/Makefile src/Makefile \ Makefile include/Makefile include/hamlib/Makefile src/Makefile \
tests/Makefile doc/Makefile ) tests/Makefile doc/Makefile )