X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=configure.ac;h=f283ca00560960cb20389fcfff24f715c0fa8f24;hb=91ef511db2370904f8765a13e315fbddaf5ffe07;hp=2ceea513c0dc8a58feb4c2578c9ada326bc75f63;hpb=bc8ff24de6948efee1313c7884e56090d8424c8e;p=libsigrok.git diff --git a/configure.ac b/configure.ac index 2ceea513..f283ca00 100644 --- a/configure.ac +++ b/configure.ac @@ -39,7 +39,6 @@ AH_BOTTOM([#endif /* SR_CONFIG_H */]) # Checks for programs. AC_PROG_CC -AC_PROG_CPP AC_PROG_CXX AC_PROG_INSTALL AC_PROG_LN_S @@ -107,10 +106,10 @@ AM_CONDITIONAL([HAVE_CHECK], [test "x$sr_have_check" = xyes]) AC_LANG([C]) -# Enable the C11 standard if possible, and enforce the use +# Enable the C99 standard if possible, and enforce the use # of SR_API to explicitly mark all public API functions. SR_EXTRA_CFLAGS= -SR_CHECK_COMPILE_FLAGS([SR_EXTRA_CFLAGS], [C11], [-std=gnu11 -std=c11]) +SR_CHECK_COMPILE_FLAGS([SR_EXTRA_CFLAGS], [C99], [-std=c99 -c99 -AC99 -qlanglvl=extc99]) SR_CHECK_COMPILE_FLAGS([SR_EXTRA_CFLAGS], [visibility], [-fvisibility=hidden]) SR_ARG_ENABLE_WARNINGS([SR_WFLAGS], [-Wall], [-Wall -Wextra -Wmissing-prototypes]) @@ -258,7 +257,7 @@ AC_ARG_ENABLE([java], sr_cxx_missing= # Check if the C++ compiler supports the C++11 standard. -AX_CXX_COMPILE_STDCXX_11(, [optional]) +AX_CXX_COMPILE_STDCXX_11([noext], [optional]) AS_IF([test "x$HAVE_CXX11" != x1], [SR_APPEND([sr_cxx_missing], [', '], ['C++11'])]) @@ -412,10 +411,6 @@ AC_DEFINE_UNQUOTED([CONF_LIBZIP_VERSION], ["$sr_libzip_version"], AC_DEFINE_UNQUOTED([CONF_HOST], ["$host"], [The canonical host libsigrok will run on.]) -AC_SUBST([FIRMWARE_DIR], ['$(datadir)/sigrok-firmware']) -AC_SUBST([MAKEFLAGS], ['--no-print-directory']) -AC_SUBST([AM_LIBTOOLFLAGS], ['--silent']) - AC_CONFIG_FILES([Makefile libsigrok.pc bindings/cxx/libsigrokcxx.pc]) AC_OUTPUT