X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=configure.in;h=eebbc37643c85d4a36a10cdf294e02289a4e091b;hb=923fdc6ff6b3be08075782fa56a4e146e1561fd8;hp=d61e7fe512f318d4616fed27328eae330b5ef643;hpb=fdf58f74e0cbc1a23ba74f9c1a7dae3260a36fae;p=openocd.git diff --git a/configure.in b/configure.in index d61e7fe512..eebbc37643 100644 --- a/configure.in +++ b/configure.in @@ -5,8 +5,13 @@ AC_SEARCH_LIBS([ioperm], [ioperm]) AC_CANONICAL_HOST +AC_CHECK_HEADERS(jtag_minidriver.h) AC_CHECK_HEADERS(sys/param.h) +AC_CHECK_HEADERS(sys/time.h) AC_CHECK_HEADERS(elf.h) +AC_CHECK_HEADERS(strings.h) + +AC_HEADER_TIME AC_C_BIGENDIAN @@ -25,6 +30,10 @@ AC_ARG_ENABLE(parport, AS_HELP_STRING([--enable-parport], [Enable building the pc parallel port driver]), [build_parport=$enableval], [build_parport=no]) +AC_ARG_ENABLE(dummy, + AS_HELP_STRING([--enable-dummy], [Enable building the dummy port driver]), + [build_dummy=$enableval], [build_dummy=no]) + case "${host_cpu}" in i?86|x86*) AC_ARG_ENABLE(parport_ppdev, @@ -54,6 +63,10 @@ case "${host_cpu}" in AS_HELP_STRING([--enable-ep93xx], [Enable building support for EP93xx based SBCs]), [build_ep93xx=$enableval], [build_ep93xx=no]) + AC_ARG_ENABLE(ecosboard, + AS_HELP_STRING([--enable-ecosboard], [Enable building support for eCosBoard based JTAG debugger]), + [build_ecosboard=$enableval], [build_ecosboard=no]) + AC_ARG_ENABLE(at91rm9200, AS_HELP_STRING([--enable-at91rm9200], [Enable building support for AT91RM9200 based SBCs]), [build_at91rm9200=$enableval], [build_at91rm9200=no]) @@ -62,13 +75,10 @@ case "${host_cpu}" in *) build_ep93xx=no build_at91rm9200=no + build_ecosboard=no ;; esac -AC_ARG_ENABLE(ngw100, - AS_HELP_STRING([--enable-ngw100], [Enable building for NGW100 driver]), - [build_ngw100=$enableval], [build_ngw100=no]) - AC_ARG_ENABLE(gw16012, AS_HELP_STRING([--enable-gw16012], [Enable building support for the Gateworks GW16012 JTAG Programmer]), [build_gw16012=$enableval], [build_gw16012=no]) @@ -89,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 ])], @@ -138,6 +152,14 @@ else AC_DEFINE(BUILD_PARPORT, 0, [0 if you don't want parport.]) fi +if test $build_dummy = yes; then + build_bitbang=yes + AC_DEFINE(BUILD_DUMMY, 1, [1 if you want dummy driver.]) +else + AC_DEFINE(BUILD_DUMMY, 0, [0 if you don't want dummy driver.]) +fi + + if test $build_ep93xx = yes; then build_bitbang=yes AC_DEFINE(BUILD_EP93XX, 1, [1 if you want ep93xx.]) @@ -145,18 +167,18 @@ else AC_DEFINE(BUILD_EP93XX, 0, [0 if you don't want ep93xx.]) fi -if test $build_at91rm9200 = yes; then +if test $build_ecosboard = yes; then build_bitbang=yes - AC_DEFINE(BUILD_AT91RM9200, 1, [1 if you want at91rm9200.]) + AC_DEFINE(BUILD_ECOSBOARD, 1, [1 if you want eCosBoard.]) else - AC_DEFINE(BUILD_AT91RM9200, 0, [0 if you don't want at91rm9200.]) + AC_DEFINE(BUILD_ECOSBOARD, 0, [0 if you don't want eCosBoard.]) fi -if test $build_ngw100 = yes; then +if test $build_at91rm9200 = yes; then build_bitbang=yes - AC_DEFINE(BUILD_NGW100, 1, [1 if you want ngw100.]) + AC_DEFINE(BUILD_AT91RM9200, 1, [1 if you want at91rm9200.]) else - AC_DEFINE(BUILD_NGW100, 0, [0 if you don't want ngw100.]) + AC_DEFINE(BUILD_AT91RM9200, 0, [0 if you don't want at91rm9200.]) fi if test $parport_use_ppdev = yes; then @@ -233,14 +255,21 @@ 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) AM_CONDITIONAL(PARPORT, test $build_parport = yes) +AM_CONDITIONAL(DUMMY, test $build_dummy = yes) AM_CONDITIONAL(GIVEIO, test $parport_use_giveio = yes) AM_CONDITIONAL(EP93XX, test $build_ep93xx = yes) +AM_CONDITIONAL(ECOSBOARD, test $build_ecosboard = yes) AM_CONDITIONAL(AT91RM9200, test $build_at91rm9200 = yes) -AM_CONDITIONAL(NGW100, test $build_ngw100 = yes) AM_CONDITIONAL(BITBANG, test $build_bitbang = yes) AM_CONDITIONAL(FT2232_LIBFTDI, test $build_ft2232_libftdi = yes) AM_CONDITIONAL(FT2232_FTD2XX, test $build_ft2232_ftd2xx = yes) @@ -250,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)