]> git.proxmox.com Git - mirror_smartmontools-debian.git/blobdiff - Makefile.in
import smartmontools 7.0
[mirror_smartmontools-debian.git] / Makefile.in
index cd043c6ce1d277daf2633632f2dd2fa26ef815cb..297cbf8b5353ce89a135188571068d2aa12303ad 100644 (file)
@@ -15,7 +15,7 @@
 @SET_MAKE@
 
 #
-# $Id: Makefile.am 4519 2017-10-08 15:41:54Z chrfranke $
+# $Id: Makefile.am 4848 2018-12-05 18:30:46Z chrfranke $
 #
 
 
@@ -98,72 +98,84 @@ host_triplet = @host@
 @ENABLE_SAVESTATES_TRUE@am__append_2 = -DSMARTMONTOOLS_SAVESTATES='"$(savestates)"'
 @ENABLE_ATTRIBUTELOG_TRUE@am__append_3 = -DSMARTMONTOOLS_ATTRIBUTELOG='"$(attributelog)"'
 @OS_WIN32_MINGW_TRUE@am__append_4 = -I$(srcdir)/os_win32
-@NEED_GETOPT_LONG_TRUE@am__append_5 = -I$(srcdir)/getopt -DHAVE_GETOPT_LONG -D__GNU_LIBRARY__
-@NEED_REGEX_TRUE@am__append_6 = -I$(srcdir)/regex
+@NEED_GETOPT_LONG_TRUE@am__append_5 = -I$(srcdir)/getopt -D_GETOPT_STANDALONE
+@NEED_REGEX_TRUE@am__append_6 = -I$(srcdir)/regex -D_REGEX_STANDALONE
 sbin_PROGRAMS = smartctl$(EXEEXT) smartd$(EXEEXT)
-@OS_WIN32_MINGW_TRUE@am__append_7 = smartctl_res.o
+@OS_WIN32_MINGW_TRUE@am__append_7 = \
+@OS_WIN32_MINGW_TRUE@        os_win32/popen_win32.cpp \
+@OS_WIN32_MINGW_TRUE@        os_win32/popen.h
+
 @OS_WIN32_MINGW_TRUE@am__append_8 = smartctl_res.o
-@OS_WIN32_MINGW_TRUE@am__append_9 = \
+@OS_WIN32_MINGW_TRUE@am__append_9 = smartctl_res.o
+@OS_WIN32_MINGW_TRUE@am__append_10 = \
 @OS_WIN32_MINGW_TRUE@        os_win32/daemon_win32.cpp \
 @OS_WIN32_MINGW_TRUE@        os_win32/daemon_win32.h \
+@OS_WIN32_MINGW_TRUE@        os_win32/popen_win32.cpp \
+@OS_WIN32_MINGW_TRUE@        os_win32/popen.h \
 @OS_WIN32_MINGW_TRUE@        os_win32/syslog_win32.cpp \
 @OS_WIN32_MINGW_TRUE@        os_win32/syslog.h
 
-@OS_WIN32_MINGW_TRUE@am__append_10 = smartd_res.o
 @OS_WIN32_MINGW_TRUE@am__append_11 = smartd_res.o
-@NEED_GETOPT_LONG_TRUE@am__append_12 = \
+@OS_WIN32_MINGW_TRUE@am__append_12 = smartd_res.o
+@NEED_GETOPT_LONG_TRUE@am__append_13 = \
 @NEED_GETOPT_LONG_TRUE@        getopt/getopt.c \
 @NEED_GETOPT_LONG_TRUE@        getopt/getopt.h \
-@NEED_GETOPT_LONG_TRUE@        getopt/getopt1.c
+@NEED_GETOPT_LONG_TRUE@        getopt/getopt1.c \
+@NEED_GETOPT_LONG_TRUE@        getopt/getopt_int.h \
+@NEED_GETOPT_LONG_TRUE@        getopt/bits/getopt_core.h \
+@NEED_GETOPT_LONG_TRUE@        getopt/bits/getopt_ext.h
 
-@NEED_GETOPT_LONG_TRUE@am__append_13 = \
+@NEED_GETOPT_LONG_TRUE@am__append_14 = \
 @NEED_GETOPT_LONG_TRUE@        getopt/getopt.c \
 @NEED_GETOPT_LONG_TRUE@        getopt/getopt.h \
-@NEED_GETOPT_LONG_TRUE@        getopt/getopt1.c
+@NEED_GETOPT_LONG_TRUE@        getopt/getopt1.c \
+@NEED_GETOPT_LONG_TRUE@        getopt/getopt_int.h \
+@NEED_GETOPT_LONG_TRUE@        getopt/bits/getopt_core.h \
+@NEED_GETOPT_LONG_TRUE@        getopt/bits/getopt_ext.h
 
-@NEED_REGEX_TRUE@am__append_14 = \
+@NEED_REGEX_TRUE@am__append_15 = \
 @NEED_REGEX_TRUE@        regex/regex.c \
 @NEED_REGEX_TRUE@        regex/regex.h \
 @NEED_REGEX_TRUE@        regex/regex_internal.h
 
-@NEED_REGEX_TRUE@am__append_15 = \
+@NEED_REGEX_TRUE@am__append_16 = \
 @NEED_REGEX_TRUE@        regex/regex.c \
 @NEED_REGEX_TRUE@        regex/regex.h \
 @NEED_REGEX_TRUE@        regex/regex_internal.h
 
 
 # Included by regex.c:
-@NEED_REGEX_TRUE@am__append_16 = \
+@NEED_REGEX_TRUE@am__append_17 = \
 @NEED_REGEX_TRUE@        regex/regcomp.c \
 @NEED_REGEX_TRUE@        regex/regexec.c \
 @NEED_REGEX_TRUE@        regex/regex_internal.c
 
-@NEED_REGEX_TRUE@am__append_17 = \
+@NEED_REGEX_TRUE@am__append_18 = \
 @NEED_REGEX_TRUE@        regex/regcomp.c \
 @NEED_REGEX_TRUE@        regex/regexec.c \
 @NEED_REGEX_TRUE@        regex/regex_internal.c
 
-@OS_WIN32_TRUE@am__append_18 = \
+@OS_WIN32_TRUE@am__append_19 = \
 @OS_WIN32_TRUE@        csmisas.h \
 @OS_WIN32_TRUE@        os_win32/wmiquery.cpp \
 @OS_WIN32_TRUE@        os_win32/wmiquery.h
 
-@OS_WIN32_TRUE@am__append_19 = \
+@OS_WIN32_TRUE@am__append_20 = \
 @OS_WIN32_TRUE@        csmisas.h \
 @OS_WIN32_TRUE@        os_win32/wmiquery.cpp \
 @OS_WIN32_TRUE@        os_win32/wmiquery.h
 
-@OS_WIN32_TRUE@am__append_20 = -lole32 -loleaut32
 @OS_WIN32_TRUE@am__append_21 = -lole32 -loleaut32
-@ENABLE_UPDATE_SMART_DRIVEDB_TRUE@@OS_SOLARIS_TRUE@am__append_22 = update-smart-drivedb.1m
-@ENABLE_UPDATE_SMART_DRIVEDB_TRUE@@OS_SOLARIS_FALSE@am__append_23 = update-smart-drivedb.8
-@ENABLE_DRIVEDB_TRUE@@OS_WIN32_MINGW_TRUE@@OS_WIN32_NSIS_TRUE@am__append_24 = \
+@OS_WIN32_TRUE@am__append_22 = -lole32 -loleaut32
+@ENABLE_UPDATE_SMART_DRIVEDB_TRUE@@OS_SOLARIS_TRUE@am__append_23 = update-smart-drivedb.1m
+@ENABLE_UPDATE_SMART_DRIVEDB_TRUE@@OS_SOLARIS_FALSE@am__append_24 = update-smart-drivedb.8
+@ENABLE_DRIVEDB_TRUE@@OS_WIN32_MINGW_TRUE@@OS_WIN32_NSIS_TRUE@am__append_25 = \
 @ENABLE_DRIVEDB_TRUE@@OS_WIN32_MINGW_TRUE@@OS_WIN32_NSIS_TRUE@        $(exedir_win32)/update-smart-drivedb.exe
 
-@ENABLE_DRIVEDB_TRUE@@OS_WIN32_MINGW_TRUE@am__append_25 = \
+@ENABLE_DRIVEDB_TRUE@@OS_WIN32_MINGW_TRUE@am__append_26 = \
 @ENABLE_DRIVEDB_TRUE@@OS_WIN32_MINGW_TRUE@        $(exedir_win32)/drivedb.h
 
-@OS_WIN32_MINGW_TRUE@am__append_26 = \
+@OS_WIN32_MINGW_TRUE@am__append_27 = \
 @OS_WIN32_MINGW_TRUE@        $(FILES_WIN32) \
 @OS_WIN32_MINGW_TRUE@        defadmin.manifest \
 @OS_WIN32_MINGW_TRUE@        distdir.mkdir \
@@ -202,23 +214,28 @@ am__smartctl_SOURCES_DIST = smartctl.cpp smartctl.h atacmdnames.cpp \
        ataidentify.h ataprint.cpp ataprint.h dev_ata_cmd_set.cpp \
        dev_ata_cmd_set.h dev_intelliprop.cpp dev_intelliprop.h \
        dev_interface.cpp dev_interface.h dev_tunnelled.h drivedb.h \
-       int64.h knowndrives.cpp knowndrives.h nvmecmds.cpp nvmecmds.h \
-       nvmeprint.cpp nvmeprint.h scsicmds.cpp scsicmds.h scsiata.cpp \
-       scsiprint.cpp scsiprint.h utility.cpp utility.h \
-       getopt/getopt.c getopt/getopt.h getopt/getopt1.c regex/regex.c \
-       regex/regex.h regex/regex_internal.h csmisas.h \
-       os_win32/wmiquery.cpp os_win32/wmiquery.h
-@NEED_GETOPT_LONG_TRUE@am__objects_1 = getopt.$(OBJEXT) \
+       json.cpp json.h knowndrives.cpp knowndrives.h nvmecmds.cpp \
+       nvmecmds.h nvmeprint.cpp nvmeprint.h scsicmds.cpp scsicmds.h \
+       scsiata.cpp scsinvme.cpp scsiprint.cpp scsiprint.h utility.cpp \
+       utility.h sg_unaligned.h os_win32/popen_win32.cpp \
+       os_win32/popen.h getopt/getopt.c getopt/getopt.h \
+       getopt/getopt1.c getopt/getopt_int.h getopt/bits/getopt_core.h \
+       getopt/bits/getopt_ext.h regex/regex.c regex/regex.h \
+       regex/regex_internal.h csmisas.h os_win32/wmiquery.cpp \
+       os_win32/wmiquery.h
+@OS_WIN32_MINGW_TRUE@am__objects_1 = popen_win32.$(OBJEXT)
+@NEED_GETOPT_LONG_TRUE@am__objects_2 = getopt.$(OBJEXT) \
 @NEED_GETOPT_LONG_TRUE@        getopt1.$(OBJEXT)
-@NEED_REGEX_TRUE@am__objects_2 = regex.$(OBJEXT)
-@OS_WIN32_TRUE@am__objects_3 = wmiquery.$(OBJEXT)
+@NEED_REGEX_TRUE@am__objects_3 = regex.$(OBJEXT)
+@OS_WIN32_TRUE@am__objects_4 = wmiquery.$(OBJEXT)
 am_smartctl_OBJECTS = smartctl.$(OBJEXT) atacmdnames.$(OBJEXT) \
        atacmds.$(OBJEXT) ataidentify.$(OBJEXT) ataprint.$(OBJEXT) \
        dev_ata_cmd_set.$(OBJEXT) dev_intelliprop.$(OBJEXT) \
-       dev_interface.$(OBJEXT) knowndrives.$(OBJEXT) \
+       dev_interface.$(OBJEXT) json.$(OBJEXT) knowndrives.$(OBJEXT) \
        nvmecmds.$(OBJEXT) nvmeprint.$(OBJEXT) scsicmds.$(OBJEXT) \
-       scsiata.$(OBJEXT) scsiprint.$(OBJEXT) utility.$(OBJEXT) \
-       $(am__objects_1) $(am__objects_2) $(am__objects_3)
+       scsiata.$(OBJEXT) scsinvme.$(OBJEXT) scsiprint.$(OBJEXT) \
+       utility.$(OBJEXT) $(am__objects_1) $(am__objects_2) \
+       $(am__objects_3) $(am__objects_4)
 am__EXTRA_smartctl_SOURCES_DIST = os_darwin.cpp os_darwin.h \
        os_linux.cpp os_linux.h os_freebsd.cpp os_freebsd.h \
        os_netbsd.cpp os_netbsd.h os_openbsd.cpp os_openbsd.h \
@@ -232,22 +249,26 @@ am__DEPENDENCIES_1 =
 am__smartd_SOURCES_DIST = smartd.cpp atacmdnames.cpp atacmdnames.h \
        atacmds.cpp atacmds.h dev_ata_cmd_set.cpp dev_ata_cmd_set.h \
        dev_intelliprop.cpp dev_intelliprop.h dev_interface.cpp \
-       dev_interface.h dev_tunnelled.h drivedb.h int64.h \
-       knowndrives.cpp knowndrives.h nvmecmds.cpp nvmecmds.h \
-       scsicmds.cpp scsicmds.h scsiata.cpp utility.cpp utility.h \
+       dev_interface.h dev_tunnelled.h drivedb.h knowndrives.cpp \
+       knowndrives.h nvmecmds.cpp nvmecmds.h scsicmds.cpp scsicmds.h \
+       scsiata.cpp scsinvme.cpp utility.cpp utility.h sg_unaligned.h \
        os_win32/daemon_win32.cpp os_win32/daemon_win32.h \
+       os_win32/popen_win32.cpp os_win32/popen.h \
        os_win32/syslog_win32.cpp os_win32/syslog.h getopt/getopt.c \
-       getopt/getopt.h getopt/getopt1.c regex/regex.c regex/regex.h \
-       regex/regex_internal.h csmisas.h os_win32/wmiquery.cpp \
-       os_win32/wmiquery.h
-@OS_WIN32_MINGW_TRUE@am__objects_4 = daemon_win32.$(OBJEXT) \
+       getopt/getopt.h getopt/getopt1.c getopt/getopt_int.h \
+       getopt/bits/getopt_core.h getopt/bits/getopt_ext.h \
+       regex/regex.c regex/regex.h regex/regex_internal.h csmisas.h \
+       os_win32/wmiquery.cpp os_win32/wmiquery.h
+@OS_WIN32_MINGW_TRUE@am__objects_5 = daemon_win32.$(OBJEXT) \
+@OS_WIN32_MINGW_TRUE@  popen_win32.$(OBJEXT) \
 @OS_WIN32_MINGW_TRUE@  syslog_win32.$(OBJEXT)
 am_smartd_OBJECTS = smartd.$(OBJEXT) atacmdnames.$(OBJEXT) \
        atacmds.$(OBJEXT) dev_ata_cmd_set.$(OBJEXT) \
        dev_intelliprop.$(OBJEXT) dev_interface.$(OBJEXT) \
        knowndrives.$(OBJEXT) nvmecmds.$(OBJEXT) scsicmds.$(OBJEXT) \
-       scsiata.$(OBJEXT) utility.$(OBJEXT) $(am__objects_4) \
-       $(am__objects_1) $(am__objects_2) $(am__objects_3)
+       scsiata.$(OBJEXT) scsinvme.$(OBJEXT) utility.$(OBJEXT) \
+       $(am__objects_5) $(am__objects_2) $(am__objects_3) \
+       $(am__objects_4)
 am__EXTRA_smartd_SOURCES_DIST = os_darwin.cpp os_darwin.h os_linux.cpp \
        os_linux.h os_freebsd.cpp os_freebsd.h os_netbsd.cpp \
        os_netbsd.h os_openbsd.cpp os_openbsd.h os_os2.cpp os_os2.h \
@@ -453,6 +474,7 @@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
 SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
+SYSTEMD_LDADD = @SYSTEMD_LDADD@
 VERSION = @VERSION@
 WINDMC = @WINDMC@
 WINDRES = @WINDRES@
@@ -537,7 +559,6 @@ top_build_prefix = @top_build_prefix@
 top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 with_nvme_devicescan = @with_nvme_devicescan@
-with_selinux = @with_selinux@
 with_update_smart_drivedb = @with_update_smart_drivedb@
 ACLOCAL_AMFLAGS = -I m4
 
@@ -557,31 +578,32 @@ smartctl_SOURCES = smartctl.cpp smartctl.h atacmdnames.cpp \
        ataidentify.h ataprint.cpp ataprint.h dev_ata_cmd_set.cpp \
        dev_ata_cmd_set.h dev_intelliprop.cpp dev_intelliprop.h \
        dev_interface.cpp dev_interface.h dev_tunnelled.h drivedb.h \
-       int64.h knowndrives.cpp knowndrives.h nvmecmds.cpp nvmecmds.h \
-       nvmeprint.cpp nvmeprint.h scsicmds.cpp scsicmds.h scsiata.cpp \
-       scsiprint.cpp scsiprint.h utility.cpp utility.h \
-       $(am__append_12) $(am__append_14) $(am__append_18)
-smartctl_LDADD = $(os_deps) $(os_libs) $(am__append_7) \
-       $(am__append_20)
-smartctl_DEPENDENCIES = $(os_deps) $(am__append_8)
+       json.cpp json.h knowndrives.cpp knowndrives.h nvmecmds.cpp \
+       nvmecmds.h nvmeprint.cpp nvmeprint.h scsicmds.cpp scsicmds.h \
+       scsiata.cpp scsinvme.cpp scsiprint.cpp scsiprint.h utility.cpp \
+       utility.h sg_unaligned.h $(am__append_7) $(am__append_13) \
+       $(am__append_15) $(am__append_19)
+smartctl_LDADD = $(os_deps) $(os_libs) $(am__append_8) \
+       $(am__append_21)
+smartctl_DEPENDENCIES = $(os_deps) $(am__append_9)
 EXTRA_smartctl_SOURCES = os_darwin.cpp os_darwin.h os_linux.cpp \
        os_linux.h os_freebsd.cpp os_freebsd.h os_netbsd.cpp \
        os_netbsd.h os_openbsd.cpp os_openbsd.h os_os2.cpp os_os2.h \
        os_qnxnto.cpp os_qnxnto.h os_solaris.cpp os_solaris.h \
        os_win32.cpp os_generic.cpp os_generic.h aacraid.h cciss.cpp \
        cciss.h cissio_freebsd.h dev_areca.cpp dev_areca.h \
-       dev_legacy.cpp linux_nvme_ioctl.h megaraid.h $(am__append_16)
+       dev_legacy.cpp linux_nvme_ioctl.h megaraid.h $(am__append_17)
 smartd_SOURCES = smartd.cpp atacmdnames.cpp atacmdnames.h atacmds.cpp \
        atacmds.h dev_ata_cmd_set.cpp dev_ata_cmd_set.h \
        dev_intelliprop.cpp dev_intelliprop.h dev_interface.cpp \
-       dev_interface.h dev_tunnelled.h drivedb.h int64.h \
-       knowndrives.cpp knowndrives.h nvmecmds.cpp nvmecmds.h \
-       scsicmds.cpp scsicmds.h scsiata.cpp utility.cpp utility.h \
-       $(am__append_9) $(am__append_13) $(am__append_15) \
-       $(am__append_19)
-smartd_LDADD = $(os_deps) $(os_libs) $(CAPNG_LDADD) $(am__append_10) \
-       $(am__append_21)
-smartd_DEPENDENCIES = $(os_deps) $(am__append_11)
+       dev_interface.h dev_tunnelled.h drivedb.h knowndrives.cpp \
+       knowndrives.h nvmecmds.cpp nvmecmds.h scsicmds.cpp scsicmds.h \
+       scsiata.cpp scsinvme.cpp utility.cpp utility.h sg_unaligned.h \
+       $(am__append_10) $(am__append_14) $(am__append_16) \
+       $(am__append_20)
+smartd_LDADD = $(os_deps) $(os_libs) $(CAPNG_LDADD) $(SYSTEMD_LDADD) \
+       $(am__append_11) $(am__append_22)
+smartd_DEPENDENCIES = $(os_deps) $(am__append_12)
 EXTRA_smartd_SOURCES = os_darwin.cpp os_darwin.h os_linux.cpp \
        os_linux.h os_freebsd.cpp os_freebsd.h os_netbsd.cpp \
        os_netbsd.h os_openbsd.cpp os_openbsd.h os_os2.cpp os_os2.h \
@@ -589,7 +611,7 @@ EXTRA_smartd_SOURCES = os_darwin.cpp os_darwin.h os_linux.cpp \
        os_win32.cpp os_generic.cpp os_generic.h aacraid.h cciss.cpp \
        cciss.h cissio_freebsd.h dev_areca.cpp dev_areca.h \
        dev_legacy.cpp linux_nvme_ioctl.h freebsd_nvme_ioctl.h \
-       netbsd_nvme_ioctl.h megaraid.h $(am__append_17)
+       netbsd_nvme_ioctl.h megaraid.h $(am__append_18)
 
 # Exclude from source tarball
 nodist_EXTRA_smartctl_SOURCES = os_solaris_ata.s
@@ -601,10 +623,10 @@ nodist_EXTRA_smartd_SOURCES = os_solaris_ata.s
 # section 5).  Automake can deal cleanly with man page sections 1-8
 # and n, but NOT with sections of the form 1m.
 @OS_SOLARIS_TRUE@extra_MANS = smartd.conf.4 smartctl.1m smartd.1m \
-@OS_SOLARIS_TRUE@      $(am__append_22)
+@OS_SOLARIS_TRUE@      $(am__append_23)
 # For systems that adopts traditional manner
 @OS_SOLARIS_FALSE@man_MANS = smartd.conf.5 smartctl.8 smartd.8 \
-@OS_SOLARIS_FALSE@     $(am__append_23)
+@OS_SOLARIS_FALSE@     $(am__append_24)
 docsdir = $(docdir)
 docs_DATA = \
         AUTHORS \
@@ -635,6 +657,7 @@ EXTRA_DIST = \
         .editorconfig \
         autogen.sh \
         smartd.initd.in \
+        smartd.cygwin.initd.in \
         smartd.freebsd.initd.in \
         smartd.8.in \
         smartctl.8.in \
@@ -658,7 +681,6 @@ EXTRA_DIST = \
         os_win32/smartd_warning.cmd \
         os_win32/syslogevt.mc \
         os_win32/update-smart-drivedb.nsi \
-        os_win32/wbemcli_small.h \
         os_win32/versioninfo.rc.in \
         os_win32/wtssendmsg.c \
         $(docs_DATA) \
@@ -670,12 +692,12 @@ CLEANFILES = smartd.8 smartd.1m smartd.8.html smartd.8.html.tmp \
        smartctl.8.html smartctl.8.html.tmp smartctl.8.pdf \
        smartctl.8.txt smartd.conf.5 smartd.conf.4 smartd.conf.5.html \
        smartd.conf.5.html.tmp smartd.conf.5.pdf smartd.conf.5.txt \
-       smartd.initd smartd.freebsd.initd smartd.service \
-       smartd_warning.sh svnversion.h update-smart-drivedb \
-       update-smart-drivedb.8 update-smart-drivedb.1m \
-       update-smart-drivedb.8.html update-smart-drivedb.8.html.tmp \
-       update-smart-drivedb.8.pdf update-smart-drivedb.8.txt SMART \
-       $(am__append_26)
+       smartd.initd smartd.cygwin.initd smartd.freebsd.initd \
+       smartd.service smartd_warning.sh svnversion.h \
+       update-smart-drivedb update-smart-drivedb.8 \
+       update-smart-drivedb.1m update-smart-drivedb.8.html \
+       update-smart-drivedb.8.html.tmp update-smart-drivedb.8.pdf \
+       update-smart-drivedb.8.txt SMART $(am__append_27)
 
 # 'make maintainer-clean' also removes files generated by './autogen.sh'
 MAINTAINERCLEANFILES = \
@@ -758,6 +780,11 @@ MAN_FILTER = { \
     else \
       sed '/^\.\\" %IF ENABLE_CAPABILITIES/,/^\.\\" %ENDIF ENABLE_CAPABILITIES/ s,^,.\\"\# ,' ; \
     fi | \
+    if test -n '$(SYSTEMD_LDADD)'; then \
+      cat; \
+    else \
+      sed '/^\.\\" %IF ENABLE_SYSTEMD_NOTIFY/,/^\.\\" %ENDIF ENABLE_SYSTEMD_NOTIFY/ s,^,.\\"\# ,' ; \
+    fi | \
     if test '$(with_nvme_devicescan)' = 'yes'; then \
       cat; \
     else \
@@ -839,7 +866,7 @@ FIXHTML = sed -e '1s,^Content-type.*,,' \
 @OS_WIN32_MINGW_TRUE@  $(exedir_win32)/runcmda.exe \
 @OS_WIN32_MINGW_TRUE@  $(exedir_win32)/runcmdu.exe \
 @OS_WIN32_MINGW_TRUE@  $(exedir_win32)/wtssendmsg.exe \
-@OS_WIN32_MINGW_TRUE@  $(am__append_24)
+@OS_WIN32_MINGW_TRUE@  $(am__append_25)
 @OS_WIN32_MINGW_TRUE@FILES_WIN32 = $(EXEFILES_WIN32) \
 @OS_WIN32_MINGW_TRUE@  $(docdir_win32)/AUTHORS.txt \
 @OS_WIN32_MINGW_TRUE@  $(docdir_win32)/ChangeLog.txt \
@@ -857,7 +884,7 @@ FIXHTML = sed -e '1s,^Content-type.*,,' \
 @OS_WIN32_MINGW_TRUE@  $(docdir_win32)/smartd.8.pdf \
 @OS_WIN32_MINGW_TRUE@  $(docdir_win32)/smartd.conf.5.html \
 @OS_WIN32_MINGW_TRUE@  $(docdir_win32)/smartd.conf.5.pdf \
-@OS_WIN32_MINGW_TRUE@  $(am__append_25)
+@OS_WIN32_MINGW_TRUE@  $(am__append_26)
 
 # Note: Only use without options to be compatible with all variants
 @OS_WIN32_MINGW_TRUE@UNIX2DOS = unix2dos
@@ -1103,6 +1130,7 @@ distclean-compile:
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dev_legacy.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getopt.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getopt1.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/json.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/knowndrives.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nvmecmds.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nvmeprint.Po@am__quote@
@@ -1116,12 +1144,14 @@ distclean-compile:
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/os_qnxnto.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/os_solaris.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/os_win32.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/popen_win32.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/regcomp.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/regex.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/regex_internal.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/regexec.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/scsiata.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/scsicmds.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/scsinvme.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/scsiprint.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/smartctl.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/smartd.Po@am__quote@
@@ -1241,6 +1271,20 @@ regex_internal.obj: regex/regex_internal.c
 @AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
 
+popen_win32.o: os_win32/popen_win32.cpp
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT popen_win32.o -MD -MP -MF $(DEPDIR)/popen_win32.Tpo -c -o popen_win32.o `test -f 'os_win32/popen_win32.cpp' || echo '$(srcdir)/'`os_win32/popen_win32.cpp
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/popen_win32.Tpo $(DEPDIR)/popen_win32.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='os_win32/popen_win32.cpp' object='popen_win32.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o popen_win32.o `test -f 'os_win32/popen_win32.cpp' || echo '$(srcdir)/'`os_win32/popen_win32.cpp
+
+popen_win32.obj: os_win32/popen_win32.cpp
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT popen_win32.obj -MD -MP -MF $(DEPDIR)/popen_win32.Tpo -c -o popen_win32.obj `if test -f 'os_win32/popen_win32.cpp'; then $(CYGPATH_W) 'os_win32/popen_win32.cpp'; else $(CYGPATH_W) '$(srcdir)/os_win32/popen_win32.cpp'; fi`
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/popen_win32.Tpo $(DEPDIR)/popen_win32.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='os_win32/popen_win32.cpp' object='popen_win32.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o popen_win32.obj `if test -f 'os_win32/popen_win32.cpp'; then $(CYGPATH_W) 'os_win32/popen_win32.cpp'; else $(CYGPATH_W) '$(srcdir)/os_win32/popen_win32.cpp'; fi`
+
 wmiquery.o: os_win32/wmiquery.cpp
 @am__fastdepCXX_TRUE@  $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT wmiquery.o -MD -MP -MF $(DEPDIR)/wmiquery.Tpo -c -o wmiquery.o `test -f 'os_win32/wmiquery.cpp' || echo '$(srcdir)/'`os_win32/wmiquery.cpp
 @am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/wmiquery.Tpo $(DEPDIR)/wmiquery.Po
@@ -1896,7 +1940,7 @@ uninstall-sysconfDATA:
        echo " rm -f '$$f'"; \
        rm -f "$$f"
 
-utility.o: svnversion.h
+smartctl.o utility.o: svnversion.h
 
 # Get version info from SVN
 @IS_SVN_BUILD_TRUE@svnversion.h: ChangeLog Makefile $(svn_deps)
@@ -2107,14 +2151,16 @@ check:
 
 # Build NSIS installer
 # Note: Only option character '-' is also compatible with Linux version of makensis
-@OS_WIN32_MINGW_TRUE@@OS_WIN32_NSIS_TRUE@$(distinst_win32): os_win32/installer.nsi distdir.mkdir $(FILES_WIN32)
+@OS_WIN32_MINGW_TRUE@@OS_WIN32_NSIS_TRUE@$(distinst_win32): os_win32/installer.nsi smartctl_res.rc distdir.mkdir $(FILES_WIN32)
 @OS_WIN32_MINGW_TRUE@@OS_WIN32_NSIS_TRUE@      test -z '$(builddir_win64)' || ( cd $(builddir_win64) && make distdir-win32 )
 @OS_WIN32_MINGW_TRUE@@OS_WIN32_NSIS_TRUE@      @date=`sed -n 's,^.*DATE[^"]*"\([^"]*\)".*$$,\1,p' svnversion.h` && \
 @OS_WIN32_MINGW_TRUE@@OS_WIN32_NSIS_TRUE@      rev=`sed -n 's,^.*REV[^"]*"\([^"]*\)".*$$,r\1,p' svnversion.h` && \
+@OS_WIN32_MINGW_TRUE@@OS_WIN32_NSIS_TRUE@      version=`sed -n 's|^ *VALUE "FileVersion", "\([0-9.]*\)".*$$|\1|p' smartctl_res.rc` && \
+@OS_WIN32_MINGW_TRUE@@OS_WIN32_NSIS_TRUE@      yy=`echo "$$date" | sed -n 's,^20\([0-9][0-9]\).*$$,\1,p'`; yy="$${yy:-XX}" && \
 @OS_WIN32_MINGW_TRUE@@OS_WIN32_NSIS_TRUE@      verstr="$(PACKAGE_VERSION) $$date $$rev "$(BUILD_INFO) && \
 @OS_WIN32_MINGW_TRUE@@OS_WIN32_NSIS_TRUE@      d64= && if [ -n '$(builddir_win64)' ]; then d64='-DINPDIR64=$(builddir_win64)/$(PACKAGE)-$(VERSION).win64'; fi && \
-@OS_WIN32_MINGW_TRUE@@OS_WIN32_NSIS_TRUE@      echo "'$(MAKENSIS)' -V2 -NOCD -DINPDIR=$(distdir_win32) $$d64 -DOUTFILE=$@ -DVERSTR='$$verstr' $<" && \
-@OS_WIN32_MINGW_TRUE@@OS_WIN32_NSIS_TRUE@      '$(MAKENSIS)' -V2 -NOCD -DINPDIR=$(distdir_win32) $$d64 -DOUTFILE=$@ -DVERSTR="$$verstr" $<
+@OS_WIN32_MINGW_TRUE@@OS_WIN32_NSIS_TRUE@      echo "'$(MAKENSIS)' -V2 -NOCD -DINPDIR=$(distdir_win32) $$d64 -DOUTFILE=$@ -DVERSION=$$version -DYY=$$yy -DVERSTR='$$verstr' $<" && \
+@OS_WIN32_MINGW_TRUE@@OS_WIN32_NSIS_TRUE@      '$(MAKENSIS)' -V2 -NOCD -DINPDIR=$(distdir_win32) $$d64 -DOUTFILE=$@ -DVERSION=$$version -DYY=$$yy -DVERSTR="$$verstr" $<
 @OS_WIN32_MINGW_TRUE@@OS_WIN32_NSIS_TRUE@      md5sum $@ > $@.md5
 @OS_WIN32_MINGW_TRUE@@OS_WIN32_NSIS_TRUE@      sha1sum $@ > $@.sha1
 @OS_WIN32_MINGW_TRUE@@OS_WIN32_NSIS_TRUE@      sha256sum $@ > $@.sha256
@@ -2208,7 +2254,7 @@ check:
 
 @OS_WIN32_MINGW_TRUE@$(srcdir)/os_win32/vc$(vcver)/config.h: config.h Makefile
 @OS_WIN32_MINGW_TRUE@  sed -e '1i/* os_win32/vc$(vcver)/config.h.  Generated from config.h by Makefile.  */' \
-@OS_WIN32_MINGW_TRUE@      -e 's,^#define HAVE_\(ATTR_PACKED\|GETTIMEOFDAY\|[DK_]*NTDDDISK_H\|STRINGS_H\|UNISTD_H\|WORKING_SNPRINTF\) 1$$,/* #undef HAVE_\1 */ /* VC$(vcver) */,' \
+@OS_WIN32_MINGW_TRUE@      -e 's,^#define HAVE_\(ATTR_PACKED\|GETTIMEOFDAY\|[DK_]*NTDDDISK_H\|LONG_DOUBLE_WIDER\|STRINGS_H\|UNISTD_H\) 1$$,/* #undef HAVE_\1 */ /* VC$(vcver) */,' \
 @OS_WIN32_MINGW_TRUE@      -e 's,^\(#define SMARTMONTOOLS_BUILD_HOST "[^-]*\)[^"]*,\1-pc-w32vc$(vcver),' $< > $@
 
 @OS_WIN32_MINGW_TRUE@$(srcdir)/os_win32/vc$(vcver)/svnversion.h: svnversion.h