-Werror-implicit-function-declaration \
-fno-common -Wundef -Wno-pointer-sign
+if WINDOWS_NATIVE_BUILD
+# This option is needed to make packed structures work as expected
+# with gcc 4.7+ (mingw) on Windows.
+AM_CFLAGS += -mno-ms-bitfields
+endif
lib_LTLIBRARIES = libwim.la
install-exec-hook:
if [ "@IMAGEX_PROGNAME@" != imagex ]; then \
cd $(DESTDIR)$(bindir) && mv -f imagex "@IMAGEX_PROGNAME@"; \
+ cd $(DESTDIR)$(bindir) && ln -s "@IMAGEX_PROGNAME@" imagex; \
fi
uninstall-hook:
if [ "@IMAGEX_PROGNAME@" != imagex ]; then \
cd $(DESTDIR)$(bindir) && rm -f "@IMAGEX_PROGNAME@"; \
+ cd $(DESTDIR)$(bindir) && rm -f imagex; \
fi
dist_bin_SCRIPTS = programs/mkwinpeimg