You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1049 lines
32 KiB

  1. AC_PREREQ(2.60)
  2. AC_INIT([openocd], [0.2.0],
  3. [OpenOCD Mailing List <openocd-development@lists.berlios.de>])
  4. AC_CONFIG_SRCDIR([src/openocd.c])
  5. AM_INIT_AUTOMAKE([-Wall -Wno-portability dist-bzip2 dist-zip])
  6. AM_MAINTAINER_MODE
  7. AM_CONFIG_HEADER(config.h)
  8. AH_BOTTOM([
  9. #include "system.h"
  10. #include "replacements.h"
  11. ])
  12. AC_LANG_C
  13. AC_PROG_CC
  14. AC_PROG_CC_C99
  15. AM_PROG_CC_C_O
  16. AC_PROG_RANLIB
  17. dnl disable checks for C++, Fortran and GNU Java Compiler
  18. m4_defun([_LT_AC_LANG_CXX_CONFIG], [:])
  19. m4_defun([_LT_AC_LANG_F77_CONFIG], [:])
  20. m4_defun([_LT_AC_LANG_GCJ_CONFIG], [:])
  21. AC_DISABLE_SHARED
  22. AC_PROG_LIBTOOL
  23. AC_SUBST(LIBTOOL_DEPS)
  24. dnl configure checks required for Jim files (these are obsolete w/ C99)
  25. AC_C_CONST
  26. AC_TYPE_LONG_LONG_INT
  27. AC_SEARCH_LIBS([ioperm], [ioperm])
  28. AC_SEARCH_LIBS([dlopen], [dl])
  29. AC_CHECK_HEADERS(arpa/inet.h)
  30. AC_CHECK_HEADERS(elf.h)
  31. AC_CHECK_HEADERS(dirent.h)
  32. AC_CHECK_HEADERS(fcntl.h)
  33. AC_CHECK_HEADERS(ifaddrs.h)
  34. AC_CHECK_HEADERS(malloc.h)
  35. AC_CHECK_HEADERS(netdb.h)
  36. AC_CHECK_HEADERS(netinet/in.h)
  37. AC_CHECK_HEADERS(netinet/tcp.h)
  38. AC_CHECK_HEADERS(pthread.h)
  39. AC_CHECK_HEADERS(strings.h)
  40. AC_CHECK_HEADERS(sys/ioctl.h)
  41. AC_CHECK_HEADERS(sys/param.h)
  42. AC_CHECK_HEADERS(sys/poll.h)
  43. AC_CHECK_HEADERS(sys/select.h)
  44. AC_CHECK_HEADERS(sys/socket.h)
  45. AC_CHECK_HEADERS(sys/stat.h)
  46. AC_CHECK_HEADERS(sys/time.h)
  47. AC_CHECK_HEADERS(sys/types.h)
  48. AC_CHECK_HEADERS(unistd.h)
  49. AC_CHECK_HEADERS([net/if.h], [], [], [dnl
  50. #include <stdio.h>
  51. #ifdef STDC_HEADERS
  52. # include <stdlib.h>
  53. # include <stddef.h>
  54. #else
  55. # ifdef HAVE_STDLIB_H
  56. # include <stdlib.h>
  57. # endif
  58. #endif
  59. #ifdef HAVE_SYS_SOCKET_H
  60. # include <sys/socket.h>
  61. #endif
  62. ])
  63. AC_HEADER_ASSERT
  64. AC_HEADER_STDBOOL
  65. AC_HEADER_TIME
  66. AC_C_BIGENDIAN
  67. AC_CHECK_FUNCS(strndup)
  68. AC_CHECK_FUNCS(strnlen)
  69. AC_CHECK_FUNCS(gettimeofday)
  70. AC_CHECK_FUNCS(usleep)
  71. AC_CHECK_FUNCS(vasprintf)
  72. build_bitbang=no
  73. build_bitq=no
  74. is_cygwin=no
  75. is_mingw=no
  76. is_win32=no
  77. is_darwin=no
  78. if test $cross_compiling = no; then
  79. # guess-rev.sh only exists in the repository, not in the released archives
  80. AC_CHECK_FILE("$srcdir/guess-rev.sh", has_guess_rev=yes, has_guess_rev=no)
  81. AC_MSG_CHECKING([whether to build a release])
  82. if test $has_guess_rev = no; then
  83. build_release=yes
  84. else
  85. build_release=no
  86. fi
  87. AC_MSG_RESULT($build_release)
  88. else
  89. build_release=yes
  90. fi
  91. # We are not *ALWAYS* being installed in the standard place.
  92. # We may be installed in a "tool-build" specific location.
  93. # Normally with other packages - as part of a tool distro.
  94. # Thus - we should search that 'libdir' also.
  95. #
  96. # And - if we are being installed there - the odds are
  97. # The libraries unique to what we are are there too.
  98. #
  99. # Expand nd deal with NONE - just like configure will do later
  100. OCDprefix=$prefix
  101. OCDxprefix=$exec_prefix
  102. test x"$OCDprefix" = xNONE && OCDprefix=$ac_default_prefix
  103. # Let make expand exec_prefix.
  104. test x"$OCDxprefix" = xNONE && OCDxprefix="$OCDprefix"
  105. # what matters is the "exec-prefix"
  106. if test "$OCDxprefix" != "$ac_default_prefix"
  107. then
  108. # We are installing in a non-standard place
  109. # Nonstandard --prefix and/or --exec-prefix
  110. # We have an override of some sort.
  111. # use build specific install library dir
  112. LDFLAGS="$LDFLAGS -L$OCDxprefix/lib"
  113. # RPATH becomes an issue on Linux only
  114. if test $host_os = linux-gnu || test $host_os = linux ; then
  115. LDFLAGS="$LDFLAGS -Wl,-rpath,$OCDxprefix/lib"
  116. fi
  117. # The "INCDIR" is also usable
  118. CFLAGS="$CFLAGS -I$includedir"
  119. fi
  120. AC_ARG_WITH(ftd2xx,
  121. AS_HELP_STRING([--with-ftd2xx=<PATH>],[This option has been removed.]),
  122. [
  123. # Option Given.
  124. cat << __EOF__
  125. The option: --with-ftd2xx=<PATH> has been removed.
  126. On Linux, the new option is:
  127. --with-ftd2xx-linux-tardir=/path/to/files
  128. Where <path> is the path the the directory where the "tar.gz" file
  129. from FTDICHIP.COM was unpacked, for example:
  130. --with-ftd2xx-linux-tardir=${HOME}/libftd2xx0.4.16
  131. On Cygwin/MingW32, the new option is:
  132. --with-ftd2xx-win32-zipdir=/path/to/files
  133. Where <path> is the path to the directory where the "zip" file from
  134. FTDICHIP.COM was unpacked, for example:
  135. --with-ftd2xx-win32-zipdir=${HOME}/ftd2xx.cdm.files
  136. __EOF__
  137. AC_MSG_ERROR([Sorry Cannot continue])
  138. ], [true])
  139. #========================================
  140. # FTD2XXX support comes in 4 forms.
  141. # (1) win32 - via a zip file
  142. # (2) linux - via a tar file
  143. # (3) linux/cygwin/mingw - via libftdi
  144. # (4) darwin - installed under /usr/local
  145. #
  146. # In case (1) and (2) we need to know where the package was unpacked.
  147. AC_ARG_WITH(ftd2xx-win32-zipdir,
  148. AS_HELP_STRING([--with-ftd2xx-win32-zipdir],[Where (CYGWIN/MINGW) the zip file from ftdichip.com was unpacked <default=search>]),
  149. [
  150. # option present
  151. if test -d $with_ftd2xx_win32_zipdir
  152. then
  153. with_ftd2xx_win32_zipdir=`cd $with_ftd2xx_win32_zipdir && pwd`
  154. AC_MSG_NOTICE([Using: ftdichip.com library: $with_ftd2xx_win32_zipdir])
  155. else
  156. AC_MSG_ERROR([Parameter to --with-ftd2xx-win32-zipdir is not a dir: $with_ftd2xx_win32_zipdir])
  157. fi
  158. ], [true])
  159. AC_ARG_WITH(ftd2xx-linux-tardir,
  160. AS_HELP_STRING([--with-ftd2xx-linux-tardir], [Where (Linux/Unix) the tar file from ftdichip.com was unpacked <default=search>]),
  161. [
  162. # Option present
  163. if test $is_win32 = yes ; then
  164. AC_MSG_ERROR([The option: --with-ftd2xx-linux-tardir is only usable on linux])
  165. fi
  166. if test -d $with_ftd2xx_linux_tardir
  167. then
  168. with_ftd2xx_linux_tardir=`cd $with_ftd2xx_linux_tardir && pwd`
  169. AC_MSG_NOTICE([Using: ftdichip.com library: $with_ftd2xx_linux_tardir])
  170. else
  171. AC_MSG_ERROR([Parameter to --with-ftd2xx-linux-tardir is not a dir: $with_ftd2xx_linux_tardir])
  172. fi
  173. ], [true])
  174. AC_ARG_WITH(ftd2xx-lib,
  175. AS_HELP_STRING([--with-ftd2xx-lib],
  176. [Use static or shared ftd2xx libs on default static]),
  177. [
  178. case "$withval" in
  179. static)
  180. with_ftd2xx_lib=$withval
  181. ;;
  182. shared)
  183. with_ftd2xx_lib=$withval
  184. ;;
  185. *)
  186. AC_MSG_ERROR([Option: --with-ftd2xx-lib=static or --with-ftd2xx-lib=shared not, $withval])
  187. ;;
  188. esac
  189. ], [
  190. # Default is static - it is simpler :-(
  191. with_ftd2xx_lib=static
  192. ])
  193. AC_ARG_ENABLE(gccwarnings,
  194. AS_HELP_STRING([--disable-gccwarnings], [Disable compiler warnings]),
  195. [gcc_warnings=$enableval], [gcc_warnings=yes])
  196. AC_ARG_ENABLE(wextra,
  197. AS_HELP_STRING([--disable-wextra], [Disable extra compiler warnings]),
  198. [gcc_wextra=$enableval], [gcc_wextra=$gcc_warnings])
  199. AC_ARG_ENABLE(werror,
  200. AS_HELP_STRING([--disable-werror], [Do not treat warnings as errors]),
  201. [gcc_werror=$enableval], [gcc_werror=$gcc_warnings])
  202. # set default verbose options, overridden by following options
  203. debug_jtag_io=no
  204. debug_usb_io=no
  205. debug_usb_comms=no
  206. AC_ARG_ENABLE(verbose,
  207. AS_HELP_STRING([--enable-verbose],
  208. [Enable verbose JTAG I/O messages (for debugging).]),
  209. [
  210. debug_jtag_io=$enableval
  211. debug_usb_io=$enableval
  212. debug_usb_comms=$enableval
  213. ], [])
  214. AC_ARG_ENABLE(verbose_jtag_io,
  215. AS_HELP_STRING([--enable-verbose-jtag-io],
  216. [Enable verbose JTAG I/O messages (for debugging).]),
  217. [debug_jtag_io=$enableval], [])
  218. AC_ARG_ENABLE(verbose_usb_io,
  219. AS_HELP_STRING([--enable-verbose-usb-io],
  220. [Enable verbose USB I/O messages (for debugging)]),
  221. [debug_usb_io=$enableval], [])
  222. AC_ARG_ENABLE(verbose_usb_comms,
  223. AS_HELP_STRING([--enable-verbose-usb-comms],
  224. [Enable verbose USB communication messages (for debugging)]),
  225. [debug_usb_comms=$enableval], [])
  226. AC_MSG_CHECKING([whether to enable verbose JTAG I/O messages]);
  227. AC_MSG_RESULT($debug_jtag_io)
  228. if test $debug_jtag_io = yes; then
  229. AC_DEFINE([_DEBUG_JTAG_IO_],[1], [Print verbose JTAG I/O messages])
  230. fi
  231. AC_MSG_CHECKING([whether to enable verbose USB I/O messages]);
  232. AC_MSG_RESULT($debug_usb_io)
  233. if test $debug_usb_io = yes; then
  234. AC_DEFINE([_DEBUG_USB_IO_],[1], [Print verbose USB I/O messages])
  235. fi
  236. AC_MSG_CHECKING([whether to enable verbose USB communication messages]);
  237. AC_MSG_RESULT($debug_usb_comms)
  238. if test $debug_usb_comms = yes; then
  239. AC_DEFINE([_DEBUG_USB_COMMS_],[1], [Print verbose USB communication messages])
  240. fi
  241. debug_malloc=no
  242. AC_ARG_ENABLE(malloc_logging,
  243. AS_HELP_STRING([--enable-malloc-logging],
  244. [Include free space in logging messages (requires malloc.h).]),
  245. [debug_malloc=$enableval], [])
  246. AC_MSG_CHECKING([whether to enable malloc free space logging]);
  247. AC_MSG_RESULT($debug_malloc)
  248. if test $debug_malloc = yes; then
  249. AC_DEFINE([_DEBUG_FREE_SPACE_],[1], [Include malloc free space in logging])
  250. fi
  251. AC_ARG_ENABLE(dummy,
  252. AS_HELP_STRING([--enable-dummy], [Enable building the dummy port driver]),
  253. [build_dummy=$enableval], [build_dummy=no])
  254. AC_ARG_ENABLE(parport,
  255. AS_HELP_STRING([--enable-parport], [Enable building the pc parallel port driver]),
  256. [build_parport=$enableval], [build_parport=no])
  257. AC_ARG_ENABLE(parport_ppdev,
  258. AS_HELP_STRING([--disable-parport-ppdev],
  259. [Disable use of ppdev (/dev/parportN) for parport (for x86 only)]),
  260. [parport_use_ppdev=$enableval], [parport_use_ppdev=yes])
  261. AC_ARG_ENABLE(parport_giveio,
  262. AS_HELP_STRING([--enable-parport-giveio],
  263. [Enable use of giveio for parport (for CygWin only)]),
  264. [parport_use_giveio=$enableval], [parport_use_giveio=])
  265. AC_ARG_ENABLE(ft2232_libftdi,
  266. AS_HELP_STRING([--enable-ft2232_libftdi], [Enable building support for FT2232 based devices using the libftdi driver, opensource alternate of FTD2XX]),
  267. [build_ft2232_libftdi=$enableval], [build_ft2232_libftdi=no])
  268. AC_ARG_ENABLE(ft2232_ftd2xx,
  269. AS_HELP_STRING([--enable-ft2232_ftd2xx], [Enable building support for FT2232 based devices using the FTD2XX driver from ftdichip.com]),
  270. [build_ft2232_ftd2xx=$enableval], [build_ft2232_ftd2xx=no])
  271. AC_ARG_ENABLE(ftd2xx_highspeed,
  272. AS_HELP_STRING([--enable-ftd2xx-highspeed], [Enable building support for FT2232H and FT4232H-based devices (requires >=libftd2xx-0.4.16)]),
  273. [want_ftd2xx_highspeed=$enableval], [want_ftd2xx_highspeed=no])
  274. AC_ARG_ENABLE(amtjtagaccel,
  275. AS_HELP_STRING([--enable-amtjtagaccel], [Enable building the Amontec JTAG-Accelerator driver]),
  276. [build_amtjtagaccel=$enableval], [build_amtjtagaccel=no])
  277. AC_ARG_ENABLE(ecosboard,
  278. AS_HELP_STRING([--enable-ecosboard], [Enable building support for eCos based JTAG debugger]),
  279. [build_ecosboard=$enableval], [build_ecosboard=no])
  280. AC_ARG_ENABLE(zy1000,
  281. AS_HELP_STRING([--enable-zy1000], [Enable ZY1000 interface]),
  282. [build_zy1000=$enableval], [build_zy1000=no])
  283. AC_ARG_ENABLE(ioutil,
  284. AS_HELP_STRING([--enable-ioutil], [Enable ioutil functions - useful for standalone OpenOCD implementations]),
  285. [build_ioutil=$enableval], [build_ioutil=no])
  286. AC_ARG_ENABLE(httpd,
  287. AS_HELP_STRING([--enable-httpd], [Enable builtin httpd server - useful for standalone OpenOCD implementations]),
  288. [build_httpd=$enableval], [build_httpd=no])
  289. case "${host_cpu}" in
  290. arm*)
  291. AC_ARG_ENABLE(ep93xx,
  292. AS_HELP_STRING([--enable-ep93xx], [Enable building support for EP93xx based SBCs]),
  293. [build_ep93xx=$enableval], [build_ep93xx=no])
  294. AC_ARG_ENABLE(at91rm9200,
  295. AS_HELP_STRING([--enable-at91rm9200], [Enable building support for AT91RM9200 based SBCs]),
  296. [build_at91rm9200=$enableval], [build_at91rm9200=no])
  297. ;;
  298. *)
  299. build_ep93xx=no
  300. build_at91rm9200=no
  301. ;;
  302. esac
  303. AC_ARG_ENABLE(gw16012,
  304. AS_HELP_STRING([--enable-gw16012], [Enable building support for the Gateworks GW16012 JTAG Programmer]),
  305. [build_gw16012=$enableval], [build_gw16012=no])
  306. AC_ARG_ENABLE(presto_libftdi,
  307. AS_HELP_STRING([--enable-presto_libftdi], [Enable building support for ASIX Presto Programmer using the libftdi driver]),
  308. [build_presto_libftdi=$enableval], [build_presto_libftdi=no])
  309. AC_ARG_ENABLE(presto_ftd2xx,
  310. AS_HELP_STRING([--enable-presto_ftd2xx], [Enable building support for ASIX Presto Programmer using the FTD2XX driver]),
  311. [build_presto_ftd2xx=$enableval], [build_presto_ftd2xx=no])
  312. AC_ARG_ENABLE(usbprog,
  313. AS_HELP_STRING([--enable-usbprog], [Enable building support for the usbprog JTAG Programmer]),
  314. [build_usbprog=$enableval], [build_usbprog=no])
  315. AC_ARG_ENABLE(oocd_trace,
  316. AS_HELP_STRING([--enable-oocd_trace], [Enable building support for the OpenOCD+trace ETM capture device]),
  317. [build_oocd_trace=$enableval], [build_oocd_trace=no])
  318. AC_ARG_ENABLE(jlink,
  319. AS_HELP_STRING([--enable-jlink], [Enable building support for the Segger J-Link JTAG Programmer]),
  320. [build_jlink=$enableval], [build_jlink=no])
  321. AC_ARG_ENABLE(vsllink,
  322. AS_HELP_STRING([--enable-vsllink], [Enable building support for the Versaloon-Link JTAG Programmer]),
  323. [build_vsllink=$enableval], [build_vsllink=no])
  324. AC_ARG_ENABLE(rlink,
  325. AS_HELP_STRING([--enable-rlink], [Enable building support for the Raisonance RLink JTAG Programmer]),
  326. [build_rlink=$enableval], [build_rlink=no])
  327. AC_ARG_ENABLE(arm-jtag-ew,
  328. AS_HELP_STRING([--enable-arm-jtag-ew], [Enable building support for the Olimex ARM-JTAG-EW Programmer]),
  329. [build_armjtagew=$enableval], [build_armjtagew=no])
  330. AC_ARG_ENABLE(minidriver_dummy,
  331. AS_HELP_STRING([--enable-minidriver-dummy], [Enable the dummy minidriver.]),
  332. [build_minidriver_dummy=$enableval], [build_minidriver_dummy=no])
  333. build_minidriver=no
  334. AC_MSG_CHECKING([whether to enable ZY1000 minidriver])
  335. if test $build_zy1000 = yes; then
  336. if test $build_minidriver = yes; then
  337. AC_MSG_ERROR([Multiple minidriver options have been enabled.])
  338. fi
  339. AC_DEFINE(HAVE_JTAG_MINIDRIVER_H, 1,
  340. [Define to 1 if you have the <jtag_minidriver.h> header file.])
  341. build_minidriver=yes
  342. fi
  343. AC_MSG_RESULT($build_zy1000)
  344. AC_MSG_CHECKING([whether to enable dummy minidriver])
  345. if test $build_minidriver_dummy = yes; then
  346. if test $build_minidriver = yes; then
  347. AC_MSG_ERROR([Multiple minidriver options have been enabled.])
  348. fi
  349. build_minidriver=yes
  350. AC_DEFINE(BUILD_MINIDRIVER_DUMMY, 1, [Use the dummy minidriver.])
  351. AC_DEFINE(HAVE_JTAG_MINIDRIVER_H, 1,
  352. [Define to 1 if you have the <jtag_minidriver.h> header file.])
  353. fi
  354. AC_MSG_RESULT($build_minidriver_dummy)
  355. AC_MSG_CHECKING([whether standard drivers can be built])
  356. if test "$build_minidriver" = yes; then
  357. AC_MSG_RESULT([no])
  358. AC_MSG_WARN([Using the minidriver disables all other drivers.])
  359. sleep 2
  360. else
  361. AC_MSG_RESULT([yes])
  362. fi
  363. case "${host_cpu}" in
  364. i?86|x86*)
  365. ;;
  366. *)
  367. if test x$parport_use_ppdev = xno; then
  368. AC_MSG_WARN([--disable-parport-ppdev is not supported by the host CPU])
  369. fi
  370. parport_use_ppdev=yes
  371. ;;
  372. esac
  373. case $host in
  374. *-cygwin*)
  375. is_win32=yes
  376. AC_COMPILE_IFELSE(AC_LANG_PROGRAM([],[return __MINGW32__;]),
  377. [is_mingw=yes],[is_mingw=no])
  378. if test $is_mingw = yes; then
  379. AC_DEFINE(IS_MINGW, 1, [1 if building for MinGW.])
  380. if test x$parport_use_giveio = xno; then
  381. AC_MSG_WARN([--disable-parport-giveio is not supported by MinGW32 hosts])
  382. fi
  383. parport_use_giveio=yes
  384. is_cygwin=no
  385. else
  386. is_cygwin=yes
  387. AC_DEFINE(IS_CYGWIN, 1, [1 if building for Cygwin.])
  388. fi
  389. AC_DEFINE(IS_WIN32, 1, [1 if building for Win32.])
  390. AC_DEFINE(IS_DARWIN, 0, [0 if not building for Darwin.])
  391. ;;
  392. *-mingw*)
  393. is_mingw=yes
  394. is_win32=yes
  395. if test x$parport_use_giveio = xno; then
  396. AC_MSG_WARN([--disable-parport-giveio is not supported by MinGW32 hosts])
  397. fi
  398. parport_use_giveio=yes
  399. AC_DEFINE(IS_MINGW, 1, [1 if building for MinGW.])
  400. AC_DEFINE(IS_WIN32, 1, [1 if building for Win32.])
  401. AC_DEFINE(IS_DARWIN, 0, [0 if not building for Darwin.])
  402. ;;
  403. *darwin*)
  404. is_darwin=yes
  405. if test x$parport_use_giveio = xyes; then
  406. AC_MSG_WARN([--enable-parport-giveio cannot be used by Darwin hosts])
  407. fi
  408. parport_use_giveio=no
  409. AC_DEFINE(IS_CYGWIN, 0, [0 if not building for Cygwin.])
  410. AC_DEFINE(IS_WIN32, 0, [0 if not building for Win32.])
  411. AC_DEFINE(IS_DARWIN, 1, [1 if building for Darwin.])
  412. ;;
  413. *)
  414. if test x$parport_use_giveio = xyes; then
  415. AC_MSG_WARN([--enable-parport-giveio cannot be used by ]$host[ hosts])
  416. fi
  417. parport_use_giveio=no
  418. AC_DEFINE(IS_CYGWIN, 0, [0 if not building for Cygwin.])
  419. AC_DEFINE(IS_WIN32, 0, [0 if not building for Win32.])
  420. AC_DEFINE(IS_DARWIN, 0, [0 if not building for Darwin.])
  421. ;;
  422. esac
  423. if test $build_parport = yes; then
  424. build_bitbang=yes
  425. AC_DEFINE(BUILD_PARPORT, 1, [1 if you want parport.])
  426. else
  427. AC_DEFINE(BUILD_PARPORT, 0, [0 if you don't want parport.])
  428. fi
  429. if test $build_dummy = yes; then
  430. build_bitbang=yes
  431. AC_DEFINE(BUILD_DUMMY, 1, [1 if you want dummy driver.])
  432. else
  433. AC_DEFINE(BUILD_DUMMY, 0, [0 if you don't want dummy driver.])
  434. fi
  435. if test $build_ep93xx = yes; then
  436. build_bitbang=yes
  437. AC_DEFINE(BUILD_EP93XX, 1, [1 if you want ep93xx.])
  438. else
  439. AC_DEFINE(BUILD_EP93XX, 0, [0 if you don't want ep93xx.])
  440. fi
  441. if test $build_ecosboard = yes; then
  442. AC_DEFINE(BUILD_ECOSBOARD, 1, [1 if you want eCosBoard.])
  443. else
  444. AC_DEFINE(BUILD_ECOSBOARD, 0, [0 if you don't want eCosBoard.])
  445. fi
  446. if test $build_zy1000 = yes; then
  447. AC_DEFINE(BUILD_ZY1000, 1, [1 if you want ZY1000.])
  448. else
  449. AC_DEFINE(BUILD_ZY1000, 0, [0 if you don't want ZY1000.])
  450. fi
  451. if test $build_ioutil = yes; then
  452. AC_DEFINE(BUILD_IOUTIL, 1, [1 if you want ioutils.])
  453. else
  454. AC_DEFINE(BUILD_IOUTIL, 0, [0 if you don't want ioutils.])
  455. fi
  456. if test $build_httpd = yes; then
  457. AC_DEFINE(BUILD_HTTPD, 1, [1 if you want httpd.])
  458. else
  459. AC_DEFINE(BUILD_HTTPD, 0, [0 if you don't want httpd.])
  460. fi
  461. if test $build_at91rm9200 = yes; then
  462. build_bitbang=yes
  463. AC_DEFINE(BUILD_AT91RM9200, 1, [1 if you want at91rm9200.])
  464. else
  465. AC_DEFINE(BUILD_AT91RM9200, 0, [0 if you don't want at91rm9200.])
  466. fi
  467. if test x$parport_use_ppdev = xyes; then
  468. AC_DEFINE(PARPORT_USE_PPDEV, 1, [1 if you want parport to use ppdev.])
  469. else
  470. AC_DEFINE(PARPORT_USE_PPDEV, 0, [0 if you don't want parport to use ppdev.])
  471. fi
  472. if test x$parport_use_giveio = xyes; then
  473. AC_DEFINE(PARPORT_USE_GIVEIO, 1, [1 if you want parport to use giveio.])
  474. else
  475. AC_DEFINE(PARPORT_USE_GIVEIO, 0, [0 if you don't want parport to use giveio.])
  476. fi
  477. if test $build_bitbang = yes; then
  478. AC_DEFINE(BUILD_BITBANG, 1, [1 if you want a bitbang interface.])
  479. else
  480. AC_DEFINE(BUILD_BITBANG, 0, [0 if you don't want a bitbang interface.])
  481. fi
  482. if test $build_ft2232_libftdi = yes; then
  483. AC_DEFINE(BUILD_FT2232_LIBFTDI, 1, [1 if you want libftdi ft2232.])
  484. else
  485. AC_DEFINE(BUILD_FT2232_LIBFTDI, 0, [0 if you don't want libftdi ft2232.])
  486. fi
  487. if test $build_ft2232_ftd2xx = yes; then
  488. AC_DEFINE(BUILD_FT2232_FTD2XX, 1, [1 if you want ftd2xx ft2232.])
  489. else
  490. AC_DEFINE(BUILD_FT2232_FTD2XX, 0, [0 if you don't want ftd2xx ft2232.])
  491. fi
  492. if test $build_amtjtagaccel = yes; then
  493. AC_DEFINE(BUILD_AMTJTAGACCEL, 1, [1 if you want the Amontec JTAG-Accelerator driver.])
  494. else
  495. AC_DEFINE(BUILD_AMTJTAGACCEL, 0, [0 if you don't want the Amontec JTAG-Accelerator driver.])
  496. fi
  497. if test $build_gw16012 = yes; then
  498. AC_DEFINE(BUILD_GW16012, 1, [1 if you want the Gateworks GW16012 driver.])
  499. else
  500. AC_DEFINE(BUILD_GW16012, 0, [0 if you don't want the Gateworks GW16012 driver.])
  501. fi
  502. if test $build_presto_libftdi = yes; then
  503. build_bitq=yes
  504. AC_DEFINE(BUILD_PRESTO_LIBFTDI, 1, [1 if you want the ASIX PRESTO driver using libftdi.])
  505. else
  506. AC_DEFINE(BUILD_PRESTO_LIBFTDI, 0, [0 if you don't want the ASIX PRESTO driver using libftdi.])
  507. fi
  508. if test $build_presto_ftd2xx = yes; then
  509. build_bitq=yes
  510. AC_DEFINE(BUILD_PRESTO_FTD2XX, 1, [1 if you want the ASIX PRESTO driver using FTD2XX.])
  511. else
  512. AC_DEFINE(BUILD_PRESTO_FTD2XX, 0, [0 if you don't want the ASIX PRESTO driver using FTD2XX.])
  513. fi
  514. if test $build_bitq = yes; then
  515. AC_DEFINE(BUILD_BITQ, 1, [1 if you want a bitq interface.])
  516. else
  517. AC_DEFINE(BUILD_BITQ, 0, [0 if you don't want a bitq interface.])
  518. fi
  519. if test $build_usbprog = yes; then
  520. AC_DEFINE(BUILD_USBPROG, 1, [1 if you want the usbprog JTAG driver.])
  521. else
  522. AC_DEFINE(BUILD_USBPROG, 0, [0 if you don't want the usbprog JTAG driver.])
  523. fi
  524. if test $build_oocd_trace = yes; then
  525. AC_DEFINE(BUILD_OOCD_TRACE, 1, [1 if you want the OpenOCD+trace ETM capture driver.])
  526. else
  527. AC_DEFINE(BUILD_OOCD_TRACE, 0, [0 if you don't want the OpenOCD+trace ETM capture driver.])
  528. fi
  529. if test $build_jlink = yes; then
  530. AC_DEFINE(BUILD_JLINK, 1, [1 if you want the J-Link JTAG driver.])
  531. else
  532. AC_DEFINE(BUILD_JLINK, 0, [0 if you don't want the J-Link JTAG driver.])
  533. fi
  534. if test $build_vsllink = yes; then
  535. AC_DEFINE(BUILD_VSLLINK, 1, [1 if you want the Versaloon-Link JTAG driver.])
  536. else
  537. AC_DEFINE(BUILD_VSLLINK, 0, [0 if you don't want the Versaloon-Link JTAG driver.])
  538. fi
  539. if test $build_rlink = yes; then
  540. AC_DEFINE(BUILD_RLINK, 1, [1 if you want the RLink JTAG driver.])
  541. else
  542. AC_DEFINE(BUILD_RLINK, 0, [0 if you don't want the RLink JTAG driver.])
  543. fi
  544. if test $build_armjtagew = yes; then
  545. AC_DEFINE(BUILD_ARMJTAGEW, 1, [1 if you want the ARM-JTAG-EW JTAG driver.])
  546. else
  547. AC_DEFINE(BUILD_ARMJTAGEW, 0, [0 if you don't want the ARM-JTAG-EW JTAG driver.])
  548. fi
  549. #-- Deal with MingW/Cygwin FTD2XX issues
  550. if test $is_win32 = yes; then
  551. if test "${with_ftd2xx_linux_tardir+set}" = set
  552. then
  553. AC_MSG_ERROR([The option: with_ftd2xx_linux_tardir is for LINUX only.])
  554. fi
  555. if test $build_ft2232_ftd2xx = yes -o $build_presto_ftd2xx = yes ; then
  556. AC_MSG_CHECKING([for ftd2xx.lib exists (win32)])
  557. # if we are given a zipdir...
  558. if test "${with_ftd2xx_win32_zipdir+set}" = set
  559. then
  560. # Set the CFLAGS for "ftd2xx.h"
  561. f=$with_ftd2xx_win32_zipdir/ftd2xx.h
  562. if test ! -f $f ; then
  563. AC_MSG_ERROR([File: $f cannot be found])
  564. fi
  565. CFLAGS="$CFLAGS -I$with_ftd2xx_win32_zipdir"
  566. # And calculate the LDFLAGS for the machine
  567. case "$host_cpu" in
  568. i?86|x86_*)
  569. LDFLAGS="$LDFLAGS -L$with_ftd2xx_win32_zipdir/i386"
  570. LIBS="$LIBS -lftd2xx"
  571. f=$with_ftd2xx_win32_zipdir/i386/ftd2xx.lib
  572. ;;
  573. amd64)
  574. LDFLAGS="$LDFLAGS -L$with_ftd2xx_win32_zipdir/amd64"
  575. LIBS="$LIBS -lftd2xx"
  576. f=$with_ftd2xx_win32_zipdir/amd64/ftd2xx.lib
  577. ;;
  578. *)
  579. AC_MSG_ERROR([Unknown Win32 host cpu: $host_cpu])
  580. ;;
  581. esac
  582. if test ! -f $f ; then
  583. AC_MSG_ERROR([Library: $f not found])
  584. fi
  585. else
  586. LIBS="$LIBS -lftd2xx"
  587. AC_MSG_WARN([ASSUMPTION: The (win32) FTDICHIP.COM files: ftd2xx.h and ftd2xx.lib are in a proper place])
  588. fi
  589. fi
  590. fi # win32
  591. if test $is_darwin = yes ; then
  592. if test "${with_ftd2xx_win32_zipdir+set}" = set
  593. then
  594. AC_MSG_ERROR([The option: --with-ftd2xx-win32-zipdir is for win32 only])
  595. fi
  596. if test "${with_ftd2xx_linux_tardir+set}" = set
  597. then
  598. AC_MSG_ERROR([The option: with_ftd2xx_linux_tardir is for LINUX only.])
  599. fi
  600. if test $build_ft2232_ftd2xx = yes -o $build_presto_ftd2xx = yes ; then
  601. AC_MSG_CHECKING([for libftd2xx.a (darwin)])
  602. if test ! -f /usr/local/include/ftd2xx.h ; then
  603. AC_MSG_ERROR([ftd2xx library from FTDICHIP.com seems to be missing, cannot find: /usr/local/include/ftd2xx.h])
  604. fi
  605. CFLAGS="$CFLAGS -I/usr/local/include"
  606. LDFLAGS="$LDFLAGS -L/usr/local/lib"
  607. LIBS="$LIBS -lftd2xx"
  608. AC_MSG_RESULT([-L/usr/local/lib -lftd2xx])
  609. fi
  610. fi # darwin
  611. if test $is_win32 = no && test $is_darwin = no ; then
  612. if test "${with_ftd2xx_win32_zipdir+set}" = set
  613. then
  614. AC_MSG_ERROR([The option: --with-ftd2xx-win32-zipdir is for win32 only])
  615. fi
  616. if test $build_ft2232_ftd2xx = yes -o $build_presto_ftd2xx = yes ; then
  617. # Must be linux
  618. if test $host_os != linux-gnu && test $host_os != linux ; then
  619. AC_MSG_ERROR([The (linux) ftd2xx library from FTDICHIP.com is linux only. Try --enable-ft2232-libftdi instead])
  620. fi
  621. # Are we given a TAR directory?
  622. if test "${with_ftd2xx_linux_tardir+set}" = set
  623. then
  624. AC_MSG_CHECKING([uninstalled ftd2xx distribution])
  625. # The .H file is simple..
  626. FTD2XX_H=$with_ftd2xx_linux_tardir/ftd2xx.h
  627. if test ! -f "${FTD2XX_H}"; then
  628. AC_MSG_ERROR([Option: --with-ftd2xx-linux-tardir appears wrong, cannot find: ${FTD2XX_H}])
  629. fi
  630. CFLAGS="$CFLAGS -I$with_ftd2xx_linux_tardir"
  631. FTD2XX_LDFLAGS="-L$with_ftd2xx_linux_tardir"
  632. FTD2XX_LIB="-lftd2xx"
  633. if test $with_ftd2xx_lib != shared; then
  634. # Test #1 - Future proof - if/when ftdichip fixes their distro.
  635. # Try it with the simple ".a" suffix.
  636. FTD2XX_LIB="$with_ftd2xx_linux_tardir/static_lib/libftd2xx.a"
  637. if test -f "${FTD2XX_LIB}"; then
  638. FTD2XX_LDFLAGS="${FTD2XX_LDFLAGS}/static_lib"
  639. else
  640. # Test Number2.
  641. # Grr.. perhaps it exists as a version number?
  642. FTD2XX_LIB="$with_ftd2xx_linux_tardir/static_lib/libftd2xx.a.*.*.*"
  643. count=`ls ${FTD2XX_LIB} | wc -l`
  644. if test $count -gt 1 ; then
  645. AC_MSG_ERROR([Multiple libftd2xx.a files found in: $with_ftd2xx_linux_tardir/static_lib sorry cannot handle this yet])
  646. fi
  647. if test $count -ne 1 ; then
  648. AC_MSG_ERROR([Not found: $f, option: --with-ftd2xx-linux-tardir appears to be wrong])
  649. fi
  650. # Because the "-l" rules do not understand version numbers...
  651. # we will just stuff the absolute path onto the LIBS variable
  652. FTD2XX_LIB="`ls ${FTD2XX_LIB}` -lpthread"
  653. FTD2XX_LDFLAGS=""
  654. fi
  655. fi
  656. LDFLAGS="${LDFLAGS} ${FTD2XX_LDFLAGS}"
  657. LIBS="${LIBS} ${FTD2XX_LIB}"
  658. AC_MSG_RESULT([${FTD2XX_LDFLAGS} ${FTD2XX_LIB}])
  659. else
  660. AC_CHECK_HEADER([ftd2xx.h],[],[
  661. AC_MSG_ERROR([You seem to be missing the FTD2xx driver header file.])
  662. ])
  663. AC_SEARCH_LIBS([FT_GetLibraryVersion],[ftd2xx],,[
  664. AC_MSG_ERROR([You appear to be missing the FTD2xx driver library.])
  665. ],[])
  666. fi
  667. fi
  668. fi # linux
  669. if test $build_ft2232_ftd2xx = yes -o $build_presto_ftd2xx = yes; then
  670. # Before we go any further - make sure we can *BUILD* and *RUN*
  671. # a simple app with the "ftd2xx.lib" file - in what ever form we where given
  672. # We should be able to compile, link and run this test program now
  673. AC_MSG_CHECKING([whether ftd2xx library works])
  674. #
  675. # Save the LDFLAGS for later..
  676. LDFLAGS_SAVE=$LDFLAGS
  677. CFLAGS_SAVE=$CFLAGS
  678. _LDFLAGS=`eval echo $LDFLAGS`
  679. _CFLAGS=`eval echo $CFLAGS`
  680. LDFLAGS=$_LDFLAGS
  681. CFLAGS=$_CFLAGS
  682. AC_RUN_IFELSE([
  683. #include "confdefs.h"
  684. #if IS_WIN32
  685. #include "windows.h"
  686. #endif
  687. #include <stdio.h>
  688. #include <ftd2xx.h>
  689. int
  690. main( int argc, char **argv )
  691. {
  692. DWORD x;
  693. FT_GetLibraryVersion( &x );
  694. return 0;
  695. }
  696. ], [
  697. AC_MSG_RESULT([Success!])
  698. ], [
  699. AC_MSG_ERROR([Cannot build & run test program using ftd2xx.lib])
  700. ], [
  701. AC_MSG_RESULT([Skipping as we are cross-compiling])
  702. ])
  703. AC_MSG_CHECKING([whether to build ftd2xx highspeed device support])
  704. AC_MSG_RESULT([$want_ftd2xx_highspeed])
  705. if test $want_ftd2xx_highspeed != no; then
  706. AC_MSG_CHECKING([for ftd2xx highspeed device support])
  707. AC_COMPILE_IFELSE([
  708. #include "confdefs.h"
  709. #if IS_WIN32
  710. #include "windows.h"
  711. #endif
  712. #include <stdio.h>
  713. #include <ftd2xx.h>
  714. DWORD x = FT_DEVICE_4232H;
  715. ], [
  716. AC_DEFINE(BUILD_FTD2XX_HIGHSPEED, [1],
  717. [Support FT2232H/FT4232HS with FTD2XX.])
  718. build_ftd2xx_highspeed=yes
  719. ], [
  720. build_ftd2xx_highspeed=no
  721. ])
  722. AC_MSG_RESULT([$build_ftd2xx_highspeed])
  723. if test $want_ftd2xx_highspeed = yes -a $build_ftd2xx_highspeed = no; then
  724. AC_MSG_ERROR([You need a newer FTD2XX driver (version 0.4.16 or later).])
  725. fi
  726. fi
  727. LDFLAGS=$LDFLAGS_SAVE
  728. CFLAGS=$CFLAGS_SAVE
  729. fi
  730. if test $build_ft2232_libftdi = yes ; then
  731. # We assume: the package is preinstalled in the proper place
  732. # these present as 2 libraries..
  733. LIBS="$LIBS -lftdi -lusb"
  734. #
  735. # Try to build a small program.
  736. AC_MSG_CHECKING([Build & Link with libftdi...])
  737. LDFLAGS_SAVE=$LDFLAGS
  738. CFLAGS_SAVE=$CFLAGS
  739. _LDFLAGS=`eval echo $LDFLAGS`
  740. _CFLAGS=`eval echo $CFLAGS`
  741. LDFLAGS=$_LDFLAGS
  742. CFLAGS=$_CFLAGS
  743. AC_RUN_IFELSE([
  744. #include <stdio.h>
  745. #include <ftdi.h>
  746. int
  747. main( int argc, char **argv )
  748. {
  749. struct ftdi_context *p;
  750. p = ftdi_new();
  751. if( p != NULL ){
  752. return 0;
  753. } else {
  754. fprintf( stderr, "calling ftdi_new() failed\n");
  755. return 1;
  756. }
  757. }
  758. ], [
  759. AC_MSG_RESULT([Success])
  760. ], [
  761. AC_MSG_ERROR([Cannot build & run test program using libftdi])
  762. ], [
  763. AC_MSG_RESULT([Skipping as we are cross-compiling])
  764. ])
  765. # Restore the 'unexpanded ldflags'
  766. LDFLAGS=$LDFLAGS_SAVE
  767. CFLAGS=$CFLAGS_SAVE
  768. fi
  769. # check for usb.h when a driver will require it
  770. if test $build_jlink = yes -o $build_vsllink = yes -o $build_usbprog = yes -o \
  771. $build_rlink = yes -o $build_armjtagew = yes
  772. then
  773. AC_CHECK_HEADERS([usb.h],[],
  774. [AC_MSG_ERROR([usb.h is required to build some OpenOCD driver(s)])])
  775. fi
  776. AM_CONDITIONAL(RELEASE, test $build_release = yes)
  777. AM_CONDITIONAL(PARPORT, test $build_parport = yes)
  778. AM_CONDITIONAL(DUMMY, test $build_dummy = yes)
  779. AM_CONDITIONAL(GIVEIO, test x$parport_use_giveio = xyes)
  780. AM_CONDITIONAL(EP93XX, test $build_ep93xx = yes)
  781. AM_CONDITIONAL(ECOSBOARD, test $build_ecosboard = yes)
  782. AM_CONDITIONAL(ZY1000, test $build_zy1000 = yes)
  783. AM_CONDITIONAL(IOUTIL, test $build_ioutil = yes)
  784. AM_CONDITIONAL(HTTPD, test $build_httpd = yes)
  785. AM_CONDITIONAL(AT91RM9200, test $build_at91rm9200 = yes)
  786. AM_CONDITIONAL(BITBANG, test $build_bitbang = yes)
  787. AM_CONDITIONAL(FT2232_LIBFTDI, test $build_ft2232_libftdi = yes)
  788. AM_CONDITIONAL(FT2232_DRIVER, test $build_ft2232_ftd2xx = yes -o $build_ft2232_libftdi = yes)
  789. AM_CONDITIONAL(AMTJTAGACCEL, test $build_amtjtagaccel = yes)
  790. AM_CONDITIONAL(GW16012, test $build_gw16012 = yes)
  791. AM_CONDITIONAL(PRESTO_LIBFTDI, test $build_presto_libftdi = yes)
  792. AM_CONDITIONAL(PRESTO_DRIVER, test $build_presto_ftd2xx = yes -o $build_presto_libftdi = yes)
  793. AM_CONDITIONAL(USBPROG, test $build_usbprog = yes)
  794. AM_CONDITIONAL(OOCD_TRACE, test $build_oocd_trace = yes)
  795. AM_CONDITIONAL(JLINK, test $build_jlink = yes)
  796. AM_CONDITIONAL(VSLLINK, test $build_vsllink = yes)
  797. AM_CONDITIONAL(RLINK, test $build_rlink = yes)
  798. AM_CONDITIONAL(ARMJTAGEW, test $build_armjtagew = yes)
  799. AM_CONDITIONAL(IS_CYGWIN, test $is_cygwin = yes)
  800. AM_CONDITIONAL(IS_MINGW, test $is_mingw = yes)
  801. AM_CONDITIONAL(IS_WIN32, test $is_win32 = yes)
  802. AM_CONDITIONAL(IS_DARWIN, test $is_darwin = yes)
  803. AM_CONDITIONAL(BITQ, test $build_bitq = yes)
  804. AM_CONDITIONAL(MINIDRIVER, test $build_minidriver = yes)
  805. AM_CONDITIONAL(MINIDRIVER_DUMMY, test $build_minidriver_dummy = yes)
  806. # Look for environ alternatives. Possibility #1: is environ in unistd.h or stdlib.h?
  807. AC_MSG_CHECKING([for environ in unistd.h and stdlib.h])
  808. AC_COMPILE_IFELSE([
  809. #define _GNU_SOURCE
  810. #include <unistd.h>
  811. #include <stdlib.h>
  812. int main(int argc, char **argv) { char **ep = environ; }
  813. ], [
  814. AC_MSG_RESULT([yes])
  815. has_environ=yes
  816. ], [
  817. AC_MSG_RESULT([no])
  818. # Possibility #2: can environ be found in an available library?
  819. AC_MSG_CHECKING([for extern environ])
  820. AC_LINK_IFELSE([
  821. extern char **environ;
  822. int main(int argc, char **argv) { char **ep = environ; }
  823. ], [
  824. AC_DEFINE(NEED_ENVIRON_EXTERN, [1], [Must declare 'environ' to use it.])
  825. has_environ=yes
  826. ], [
  827. has_environ=no
  828. ])
  829. AC_MSG_RESULT([${has_environ}])
  830. ])
  831. if test "${has_environ}" != "yes" ; then
  832. AC_MSG_FAILURE([Could not find 'environ' in unistd.h or available libraries.])
  833. fi
  834. AC_DEFINE([_GNU_SOURCE],[1],[Use GNU C library extensions (e.g. stdndup).])
  835. # set default gcc warnings
  836. GCC_WARNINGS="-Wall -Wstrict-prototypes -Wformat-security"
  837. if test "${gcc_wextra}" = yes; then
  838. GCC_WARNINGS="${GCC_WARNINGS} -Wextra -Wno-unused-parameter"
  839. GCC_WARNINGS="${GCC_WARNINGS} -Wbad-function-cast"
  840. GCC_WARNINGS="${GCC_WARNINGS} -Wcast-align"
  841. GCC_WARNINGS="${GCC_WARNINGS} -Wredundant-decls"
  842. fi
  843. if test "${gcc_werror}" = yes; then
  844. GCC_WARNINGS="${GCC_WARNINGS} -Werror"
  845. fi
  846. # overide default gcc cflags
  847. if test $gcc_warnings = yes; then
  848. CFLAGS="$CFLAGS $GCC_WARNINGS"
  849. fi
  850. # Setup for compiling build tools
  851. AC_MSG_CHECKING([for a C compiler for build tools])
  852. if test $cross_compiling = yes; then
  853. AC_CHECK_PROGS(CC_FOR_BUILD, gcc cc)
  854. CFLAGS_FOR_BUILD="-g -O2 $GCC_WARNINGS"
  855. else
  856. CC_FOR_BUILD=$CC
  857. CFLAGS_FOR_BUILD=$CFLAGS
  858. fi
  859. AC_MSG_RESULT([$CC_FOR_BUILD])
  860. AC_SUBST(CC_FOR_BUILD)
  861. AC_SUBST(CFLAGS_FOR_BUILD)
  862. AC_MSG_CHECKING([for suffix of executable build tools])
  863. if test $cross_compiling = yes; then
  864. cat >conftest.c <<\_______EOF
  865. int main ()
  866. {
  867. exit (0);
  868. }
  869. _______EOF
  870. for i in .exe ""; do
  871. compile="$CC_FOR_BUILD conftest.c -o conftest$i"
  872. if AC_TRY_EVAL(compile); then
  873. if (./conftest) 2>&AC_FD_CC; then
  874. EXEEXT_FOR_BUILD=$i
  875. break
  876. fi
  877. fi
  878. done
  879. rm -f conftest*
  880. if test "${EXEEXT_FOR_BUILD+set}" != set; then
  881. AC_MSG_ERROR([Cannot determine suffix of executable build tools])
  882. fi
  883. else
  884. EXEEXT_FOR_BUILD=$EXEEXT
  885. fi
  886. AC_MSG_RESULT([$EXEEXT_FOR_BUILD])
  887. AC_SUBST(EXEEXT_FOR_BUILD)
  888. AC_OUTPUT(dnl
  889. Makefile dnl
  890. src/Makefile dnl
  891. src/helper/Makefile dnl
  892. src/jtag/Makefile dnl
  893. src/xsvf/Makefile dnl
  894. src/svf/Makefile dnl
  895. src/target/Makefile dnl
  896. src/server/Makefile dnl
  897. src/flash/Makefile dnl
  898. src/pld/Makefile dnl
  899. doc/Makefile dnl
  900. )