]> sigrok.org Git - sigrok-cli.git/blobdiff - configure.ac
show: print list of available serial ports
[sigrok-cli.git] / configure.ac
index 1f925fa1f08402940aa45b1eebfb5be259e923be..ef0ea0b2ce34dff2379c742785d9d0b95f2e5654 100644 (file)
@@ -20,7 +20,7 @@
 # We require at least autoconf 2.63 (AC_INIT format changed there).
 AC_PREREQ([2.63])
 
-AC_INIT([sigrok-cli], [0.6.0], [sigrok-devel@lists.sourceforge.net],
+AC_INIT([sigrok-cli], [0.8.0], [sigrok-devel@lists.sourceforge.net],
        [sigrok-cli], [http://www.sigrok.org])
 AC_CONFIG_SRCDIR([sigrok-cli.h])
 AC_CONFIG_MACRO_DIR([m4])
@@ -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])
 
@@ -62,7 +64,7 @@ SR_PKG_CHECK_SUMMARY([sc_pkglibs_summary])
 SR_VAR_OPT_PKG([SC_PKGLIBS])
 
 SR_ARG_OPT_PKG([libsigrokdecode], [SRD],,
-       [libsigrokdecode >= 0.4.0])
+       [libsigrokdecode >= 0.5.0])
 
 ######################
 ##  Feature checks  ##
@@ -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.5.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`
@@ -110,10 +112,11 @@ Compile configuration:
  - C compiler flags................ $CFLAGS
  - Additional C compiler flags..... $SC_EXTRA_CFLAGS
  - C compiler warnings............. $SC_WFLAGS
+ - Linker flags.................... $LDFLAGS
 
 Detected libraries (required):
- - glib-2.0 >= 2.28.0.............. $sc_glib_version
- - libsigrok >= 0.4.0.............. $sc_libsigrok_version
+ - glib-2.0 >= 2.32.0.............. $sc_glib_version
+ - libsigrok >= 0.5.0.............. $sc_libsigrok_version
 
 Detected libraries (optional):
 $sc_pkglibs_summary