• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:enable +full:- +full:werror

5 	[^#define\s*$1\s*\([0-9]*\).*], [\1]))])
8 [^#define\s*$1\s*"\(-rc[0-9]*\)".*], [\1]))])
19 AC_INIT([libusb-1.0], [LIBUSB_MAJOR[.]LIBUSB_MINOR[.]LIBUSB_MICRO[]LIBUSB_RC], [libusb-devel@lists.…
32 dnl http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
37 LT_LDFLAGS="-version-info ${lt_current}:${lt_revision}:${lt_age} -no-undefined"
44 dnl check for -std=gnu11 compiler support (optional)
45 dnl note that we don't just check if the compiler accepts '-std=x11'
49 CFLAGS="-std=gnu11"
50 AC_MSG_CHECKING([if $CC supports -std=gnu11])
57 dnl fallback check for -std=c11 compiler support (required)
58 CFLAGS="-std=c11"
59 AC_MSG_CHECKING([if $CC supports -std=c11])
68 AC_DEFINE([_GNU_SOURCE], [1], [Enable GNU extensions.])
70 …ntf__, a, b)))], [Define to the attribute for enabling parameter checks on printf-like functions.])
76 *-darwin*)
81 *-haiku*)
86 wasm*-emscripten)
91 wasm*-unknown-none)
93 --host=$host_alias is not accepted as it might become ambiguous in the future.
94 Please use an explicit --host=$host_cpu-emscripten instead.
97 *-linux* | *-uclinux*)
100 *-linux-android*)
111 *-netbsd*)
116 *-openbsd*)
121 *-solaris*)
126 *-cygwin*)
130 EXTRA_CFLAGS="-mwin32"
132 *-mingw* | *msys*)
137 EXTRA_CFLAGS="-fno-omit-frame-pointer"
138 EXTRA_LDFLAGS="-static-libgcc"
154 # returns an error. https://github.com/emscripten-core/emscripten/issues/14824
157 dnl Some compilers do not support the '-pthread' option so check for it here
159 CFLAGS="-Wall -Werror -pthread"
160 AC_MSG_CHECKING([if $CC recognizes -pthread])
163 AC_SUBST(THREAD_CFLAGS, [-pthread])],
167 dnl glibc also provides some pthread functions directly, so search for a thread-specific function
169 [test "x$ac_cv_search_pthread_create" != "xnone required" && AC_SUBST(THREAD_LIBS, [-lpthread])],
171 dnl Check for new-style atomic builtins. We first check without linking to -latomic.
195 LIBS="${LIBS} -lobjc -Wl,-framework,IOKit -Wl,-framework,CoreFoundation -Wl,-framework,Security"
199 LIBS="${LIBS} -lbe"
205 …[AS_HELP_STRING([--enable-udev], [use udev for device enumeration and hotplug support (recommended…
215 …PKG_CHECK_MODULES([UMOCKDEV], [umockdev-1.0 >= 0.16.0], [ac_have_umockdev=yes], [ac_have_umockdev=…
216 …PKG_CHECK_MODULES([UMOCKDEV_HOTPLUG], [umockdev-1.0 >= 0.17.7], [ac_umockdev_hotplug=yes], [ac_umo…
228 LIBS="${LIBS} -ldevinfo"
233 LT_LDFLAGS="${LT_LDFLAGS} -avoid-version"
237 EM_LDFLAGS="--bind -s ASYNCIFY"
238 AM_LDFLAGS="${AM_LDFLAGS} ${EM_LDFLAGS} -s ASSERTIONS -s ALLOW_MEMORY_GROWTH"
267 [AS_HELP_STRING([--enable-eventfd], [use eventfd for signalling [default=auto]])],
305 [AS_HELP_STRING([--enable-timerfd], [use timerfd for timing [default=auto]])],
342 [AS_HELP_STRING([--disable-log], [disable all logging])],
346 AC_DEFINE([ENABLE_LOGGING], [1], [Define to 1 to enable message logging.])
349 AC_ARG_ENABLE([debug-log],
350 [AS_HELP_STRING([--enable-debug-log], [start with debug message logging enabled [default=no]])],
357 AC_ARG_ENABLE([system-log],
358 …[AS_HELP_STRING([--enable-system-log], [output logging messages to the systemwide log, if supporte…
373 AC_ARG_ENABLE([examples-build],
374 [AS_HELP_STRING([--enable-examples-build], [build example applications [default=no]])],
379 AC_ARG_ENABLE([tests-build],
380 [AS_HELP_STRING([--enable-tests-build], [build test applications [default=no]])],
386 AM_CONDITIONAL([BUILD_UMOCKDEV_TEST], [test "x$ac_have_umockdev" = xyes -a "x$log_enabled" != xno -
401 dnl The -Wcast-function-type warning causes a flurry of warnings when compiling
405 CFLAGS="-Werror -Wcast-function-type"
407 [EXTRA_CFLAGS="${EXTRA_CFLAGS} -Wno-cast-function-type"],
412 dnl Some linkers do not support the '--add-stdcall-alias' option so check for it here
415 CFLAGS="-Wl,--add-stdcall-alias"
416 AC_MSG_CHECKING([if linker supports --add-stdcall-alias])
419 LT_LDFLAGS="${LT_LDFLAGS} -Wl,--add-stdcall-alias"],
424-Wall -Wextra -Wshadow -Wunused -Wwrite-strings -Werror=format-security -Werror=implicit-function-
429 AM_CFLAGS="-std=${c_dialect}11 ${EXTRA_CFLAGS} ${SHARED_CFLAGS}"
432 AM_CXXFLAGS="-std=${c_dialect}++11 ${EXTRA_CFLAGS} ${SHARED_CFLAGS} -Wmissing-declarations"
441 AC_SUBST(DOXYGEN_HTMLDIR, [api-1.0])
443 AC_CONFIG_FILES([libusb-1.0.pc])