X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=configure.ac;fp=configure.ac;h=f7deae494596240617d40687140425db499703b3;hp=0935c752218674bb66946ea4e50b6dcc0880dff2;hb=a033a27f6e2b2a8d3207e7d95ba13d3956ecdfbf;hpb=f8d2262c4beab4e54951c6b1f242d95e78849316 diff --git a/configure.ac b/configure.ac index 0935c75221..f7deae4945 100644 --- a/configure.ac +++ b/configure.ac @@ -316,6 +316,14 @@ AC_ARG_ENABLE([sysfsgpio], AS_HELP_STRING([--enable-sysfsgpio], [Enable building support for programming driven via sysfs gpios.]), [build_sysfsgpio=$enableval], [build_sysfsgpio=no]) +AS_CASE([$host_os], + [linux*], [], + [ + AS_IF([test "x$build_sysfsgpio" = "xyes"], [ + AC_MSG_ERROR([sysfsgpio is only available on linux]) + ]) +]) + AC_ARG_ENABLE([minidriver_dummy], AS_HELP_STRING([--enable-minidriver-dummy], [Enable the dummy minidriver.]), [build_minidriver_dummy=$enableval], [build_minidriver_dummy=no])