From: Andrea Zagli Date: Sat, 1 Feb 2014 13:15:21 +0000 (+0100) Subject: Added auto-installation in mingw (closes #827). X-Git-Tag: v0.2.2~1 X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=cc555ee43fbe404bbf41b6d0c1905658f2ee149e;p=reptool%2Flibreptool Added auto-installation in mingw (closes #827). --- diff --git a/Makefile.am b/Makefile.am index 50b2016..626cc07 100644 --- a/Makefile.am +++ b/Makefile.am @@ -12,6 +12,11 @@ distclean-local: rm -f ChangeLog; \ fi +if PLATFORM_WIN32 +install-data-hook: + \cp -f -r $(prefix)/* /mingw +endif + ChangeLog: @echo Creating $@ @if test -d "$(srcdir)/.git"; then \ diff --git a/configure.ac b/configure.ac index 2a04c6b..9554a8d 100644 --- a/configure.ac +++ b/configure.ac @@ -66,6 +66,21 @@ AC_FUNC_STRFTIME AC_FUNC_STRTOD AC_CHECK_FUNCS([memset strcasecmp strstr strtol]) +dnl ****************************** +dnl Check for Operating System +dnl ****************************** + +platform_win32=no + +case "$host" in +*-mingw*) + platform_win32=yes + ;; +esac + +AM_CONDITIONAL(PLATFORM_WIN32, [test $platform_win32 = yes]) + +# Output files AC_CONFIG_FILES([ libreptool.pc Makefile