X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=configure.in;h=ae35f555b643e9e883fcd0423db1b6da992d2fc4;hb=cab29a63de935871135a6ee0ed9d29d5edea0f27;hp=f2351fa00c4cb8a7fe2331ded60dd846b89175d0;hpb=87939e553d542ee2ec2b82075798838b77468ead;p=openocd diff --git a/configure.in b/configure.in index f2351fa0..ae35f555 100644 --- a/configure.in +++ b/configure.in @@ -7,7 +7,11 @@ 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 @@ -26,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, @@ -140,6 +148,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.]) @@ -239,6 +255,7 @@ 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)