X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-cli.git;a=blobdiff_plain;f=configure.ac;h=648f57fed1ea23838d0449aa4aec5a1116fb849f;hp=1f925fa1f08402940aa45b1eebfb5be259e923be;hb=1ef118ab81ddbdc3ba96724826e396ef8ad7c882;hpb=9d6422708d553d1e892f0ad18053901578d9559f diff --git a/configure.ac b/configure.ac index 1f925fa..648f57f 100644 --- a/configure.ac +++ b/configure.ac @@ -31,16 +31,18 @@ AC_CONFIG_HEADERS([config.h]) AM_INIT_AUTOMAKE([1.11 -Wall -Werror no-define std-options check-news]) AM_SILENT_RULES([yes]) -AH_TOP([#ifndef SIGROK_CLI_CONFIG_H -#define SIGROK_CLI_CONFIG_H /* To stop multiple inclusions. */]) -AH_BOTTOM([#endif /* SIGROK_CLI_CONFIG_H */]) - AC_CANONICAL_HOST # Checks for programs. AC_PROG_CC AC_PROG_INSTALL +# Set the standard the C library headers should conform to. +AH_VERBATIM([_POSIX_C_SOURCE], [/* The targeted POSIX standard. */ +#ifndef _POSIX_C_SOURCE +# define _POSIX_C_SOURCE 200112L +#endif]) + # Get compiler versions. SR_PROG_VERSION([$CC], [sc_cc_version]) @@ -87,7 +89,7 @@ AC_SYS_LARGEFILE # Retrieve the compile and link flags for all modules combined. # Also, bail out at this point if any module dependency is not met. PKG_CHECK_MODULES([SIGROK_CLI], - [glib-2.0 >= 2.28.0 libsigrok >= 0.4.0 $SC_PKGLIBS]) + [glib-2.0 >= 2.32.0 libsigrok >= 0.4.0 $SC_PKGLIBS]) sc_glib_version=`$PKG_CONFIG --modversion glib-2.0 2>&AS_MESSAGE_LOG_FD` sc_libsigrok_version=`$PKG_CONFIG --modversion libsigrok 2>&AS_MESSAGE_LOG_FD` @@ -112,7 +114,7 @@ Compile configuration: - C compiler warnings............. $SC_WFLAGS Detected libraries (required): - - glib-2.0 >= 2.28.0.............. $sc_glib_version + - glib-2.0 >= 2.32.0.............. $sc_glib_version - libsigrok >= 0.4.0.............. $sc_libsigrok_version Detected libraries (optional):