diff options
Diffstat (limited to 'ezdop/src/host/hunter/config')
-rw-r--r-- | ezdop/src/host/hunter/config/hunter_ftdi.m4 | 18 | ||||
-rw-r--r-- | ezdop/src/host/hunter/config/hunter_wx.m4 | 11 |
2 files changed, 29 insertions, 0 deletions
diff --git a/ezdop/src/host/hunter/config/hunter_ftdi.m4 b/ezdop/src/host/hunter/config/hunter_ftdi.m4 new file mode 100644 index 000000000..64977e803 --- /dev/null +++ b/ezdop/src/host/hunter/config/hunter_ftdi.m4 @@ -0,0 +1,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.]) +]) diff --git a/ezdop/src/host/hunter/config/hunter_wx.m4 b/ezdop/src/host/hunter/config/hunter_wx.m4 new file mode 100644 index 000000000..5d6dd08e7 --- /dev/null +++ b/ezdop/src/host/hunter/config/hunter_wx.m4 @@ -0,0 +1,11 @@ +AC_DEFUN([HUNTER_WX], [ + AC_PATH_PROG([WXCONFIG],[wx-config],[no]) + if test $WXCONFIG = no; then + AC_MSG_ERROR(["wxWidgets is required, not found, stop."]) + fi + + WX_FLAGS=`$WXCONFIG --cflags` + WX_LIBS=`$WXCONFIG --libs` + AC_SUBST(WX_FLAGS) + AC_SUBST(WX_LIBS) +]) |