Use autoconf macros for if-checks

pull/10/head
nirenjan 2015-12-10 07:40:38 -08:00
parent b45c9fd9a2
commit e752be9805
1 changed files with 4 additions and 4 deletions

View File

@ -8,11 +8,11 @@ LT_INIT
# Check for libusb-1.0 # Check for libusb-1.0
AC_SEARCH_LIBS([libusb_init], [usb-1.0], [have_libusb=yes]) AC_SEARCH_LIBS([libusb_init], [usb-1.0], [have_libusb=yes])
if test "x${have_libusb}" = xyes; then AS_IF([test "x${have_libusb}" = xyes], [
AC_CHECK_HEADERS([libusb-1.0/libusb.h], [], [have_libusb=no]) AC_CHECK_HEADERS([libusb-1.0/libusb.h], [], [have_libusb=no])
fi ])
if test "x${have_libusb}" != xyes; then AS_IF([test "x${have_libusb}" != xyes], [
AC_MSG_ERROR([ AC_MSG_ERROR([
------------------------------------------------------- -------------------------------------------------------
The library libusb-1.0 and header file libusb.h The library libusb-1.0 and header file libusb.h
@ -20,7 +20,7 @@ if test "x${have_libusb}" != xyes; then
Check 'config.log' for more information. Check 'config.log' for more information.
------------------------------------------------------- -------------------------------------------------------
]) ])
fi ])
AC_SUBST([X52_PKG_VERSION], [0.1]) AC_SUBST([X52_PKG_VERSION], [0.1])
AC_SUBST([X52_INCLUDE], ["-I \$(top_srcdir)/libx52"]) AC_SUBST([X52_INCLUDE], ["-I \$(top_srcdir)/libx52"])