X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=configure.in;h=eebbc37643c85d4a36a10cdf294e02289a4e091b;hb=ba8c605da43659759e64b8cc85fe8a12e60a6555;hp=ae35f555b643e9e883fcd0423db1b6da992d2fc4;hpb=7280d4a2c74f444e81d5a2df8b77a2f184f5e6d1;p=openocd.git diff --git a/configure.in b/configure.in index ae35f555b6..eebbc37643 100644 --- a/configure.in +++ b/configure.in @@ -99,6 +99,10 @@ AC_ARG_ENABLE(oocd_trace, AS_HELP_STRING([--enable-oocd_trace], [Enable building support for the OpenOCD+trace ETM capture device]), [build_oocd_trace=$enableval], [build_oocd_trace=no]) +AC_ARG_ENABLE(jlink, + AS_HELP_STRING([--enable-jlink], [Enable building support for the Segger J-Link JTAG Programmer]), + [build_jlink=$enableval], [build_jlink=no]) + AC_ARG_WITH(ftd2xx, [AS_HELP_STRING(--with-ftd2xx, [Where libftd2xx can be found ])], @@ -251,6 +255,12 @@ else AC_DEFINE(BUILD_OOCD_TRACE, 0, [0 if you don't want the OpenOCD+trace ETM capture driver.]) fi +if test $build_jlink = yes; then + AC_DEFINE(BUILD_JLINK, 1, [1 if you want the J-Link JTAG driver.]) +else + AC_DEFINE(BUILD_JLINK, 0, [0 if you don't want the J-Link JTAG driver.]) +fi + AM_CONFIG_HEADER(config.h) AM_INIT_AUTOMAKE(openocd, 1.0) @@ -269,6 +279,7 @@ AM_CONDITIONAL(PRESTO_LIBFTDI, test $build_presto_libftdi = yes) AM_CONDITIONAL(PRESTO_FTD2XX, test $build_presto_ftd2xx = yes) AM_CONDITIONAL(USBPROG, test $build_usbprog = yes) AM_CONDITIONAL(OOCD_TRACE, test $build_oocd_trace = yes) +AM_CONDITIONAL(JLINK, test $build_jlink = yes) AM_CONDITIONAL(IS_CYGWIN, test $is_cygwin = yes) AM_CONDITIONAL(IS_MINGW, test $is_mingw = yes) AM_CONDITIONAL(IS_WIN32, test $is_win32 = yes)