-LIBSIGROKDECODE_MAJOR_VERSION=libsigrokdecode_major_version
-LIBSIGROKDECODE_MINOR_VERSION=libsigrokdecode_minor_version
-LIBSIGROKDECODE_MICRO_VERSION=libsigrokdecode_micro_version
-LIBSIGROKDECODE_VERSION=libsigrokdecode_version
-
-AC_SUBST(LIBSIGROKDECODE_MAJOR_VERSION)
-AC_SUBST(LIBSIGROKDECODE_MINOR_VERSION)
-AC_SUBST(LIBSIGROKDECODE_MICRO_VERSION)
-AC_SUBST(LIBSIGROKDECODE_VERSION)
-
-AC_DEFINE(LIBSIGROKDECODE_MAJOR_VERSION, [libsigrokdecode_major_version],
- [Define to the libsigrokdecode major package version])
-AC_DEFINE(LIBSIGROKDECODE_MINOR_VERSION, [libsigrokdecode_minor_version],
- [Define to the libsigrokdecode minor package version])
-AC_DEFINE(LIBSIGROKDECODE_MICRO_VERSION, [libsigrokdecode_micro_version],
- [Define to the libsigrokdecode micro package version])
-AC_DEFINE(LIBSIGROKDECODE_VERSION, [libsigrokdecode_version],
- [Define to the libsigrokdecode package version])
-
-AC_CONFIG_FILES([Makefile
- libsigrokdecode.pc
- decoders/Makefile
- decoders/dcf77/Makefile
- decoders/ebr30a_i2c_demux/Makefile
- decoders/edid/Makefile
- decoders/i2c/Makefile
- decoders/i2cdemux/Makefile
- decoders/i2cfilter/Makefile
- decoders/mlx90614/Makefile
- decoders/mx25lxx05d/Makefile
- decoders/nunchuk/Makefile
- decoders/pan1321/Makefile
- decoders/rtc8564/Makefile
- decoders/spi/Makefile
- decoders/transitioncounter/Makefile
- decoders/uart/Makefile
- decoders/usb/Makefile
- ])
+SRD_PACKAGE_VERSION_MAJOR=srd_package_version_major
+SRD_PACKAGE_VERSION_MINOR=srd_package_version_minor
+SRD_PACKAGE_VERSION_MICRO=srd_package_version_micro
+SRD_PACKAGE_VERSION=srd_package_version
+
+AC_SUBST(SRD_PACKAGE_VERSION_MAJOR)
+AC_SUBST(SRD_PACKAGE_VERSION_MINOR)
+AC_SUBST(SRD_PACKAGE_VERSION_MICRO)
+AC_SUBST(SRD_PACKAGE_VERSION)
+
+AC_CONFIG_FILES([Makefile version.h libsigrokdecode.pc])