blob: 64977e8030833b1be8b489b8266f5e4585ffc716 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
AC_DEFUN([HUNTER_FTDI],[
AC_LANG_PUSH(C)
AC_CHECK_HEADER([ftdi.h],[],[
AC_MSG_ERROR(["Hunter requires ftdi.h, not found, stop."])]
)
save_LIBS="$LIBS"
AC_SEARCH_LIBS(ftdi_init, [ftdi], [FTDI_LIBS=$LIBS],[
AC_MSG_ERROR(["Hunter requires libftdi, not found, stop."])]
)
LIBS="$save_LIBS"
AC_LANG_POP(C)
AC_SUBST(FTDI_LIBS)
AC_DEFINE([HAVE_LIBFTDI],[1],[Define to 1 if your system has libftdi.])
])
|