diff options
author | drath <drath@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2006-08-01 09:45:22 +0000 |
---|---|---|
committer | drath <drath@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2006-08-01 09:45:22 +0000 |
commit | 7d244761461701e1161df32c2f1d4cd50ae2bb26 (patch) | |
tree | 9adfc28cb669a838c338af1f5d6203ca92cc4c7b /configure.in | |
parent | 1341eb3b0aea74b939a5d7702f696b175d032647 (diff) | |
download | riscv-openocd-7d244761461701e1161df32c2f1d4cd50ae2bb26.zip riscv-openocd-7d244761461701e1161df32c2f1d4cd50ae2bb26.tar.gz riscv-openocd-7d244761461701e1161df32c2f1d4cd50ae2bb26.tar.bz2 |
- allow building for MinGW using either -mno-cygwin or the MinGW gcc
- added GiveIO support to the amt_jtagaccel driver
- explicitly disable loopback mode for FT2232 devices
- changed configuration options n[st]rst_delay to jtag_n[st]rst_delay
- shutdown network services on exit
git-svn-id: svn://svn.berlios.de/openocd/trunk@80 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/configure.in b/configure.in index 2cf08cf..3518b38 100644 --- a/configure.in +++ b/configure.in @@ -48,14 +48,22 @@ AC_ARG_WITH(ftd2xx, case $host in *-*-cygwin*) - is_cygwin=yes is_win32=yes AC_ARG_ENABLE(parport_giveio, AS_HELP_STRING([--enable-parport_giveio], [Enable use of giveio for parport instead of ioperm]), [parport_use_giveio=$enableval], [parport_use_giveio=no]) - - AC_DEFINE(IS_CYGWIN, 1, [1 if building for Cygwin.]) + + AC_COMPILE_IFELSE(AC_LANG_PROGRAM([],[return __MINGW32__;]),[is_mingw=yes],[is_mingw=no]) + if test $is_mingw = yes; then + AC_DEFINE(IS_MINGW, 1, [1 if building for MinGW.]) + parport_use_giveio=yes + is_cygwin=no + else + is_cygwin=yes + AC_DEFINE(IS_CYGWIN, 1, [1 if building for Cygwin.]) + fi + AC_DEFINE(IS_WIN32, 1, [1 if building for Win32.]) ;; *-*-mingw*) |