From f6ca1ba15eca8cb904864947195f47dea1994215 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 25 Nov 2012 04:25:22 +0000 Subject: [PATCH] Added cygwin check to configure.ac --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index b7774c13..f6ff55ad 100644 --- a/configure.ac +++ b/configure.ac @@ -12,6 +12,12 @@ AM_INIT_AUTOMAKE([foreign subdir-objects]) # Checks for programs. AC_PROG_CC +# get canonical host +AC_CANONICAL_HOST +if test "$host_os" == "cygwin"; then + AC_DEFINE([PLATFORM_CYGWIN], [1], [Cygwin]) +fi + # Options AC_ARG_WITH([libxml2], [AS_HELP_STRING([--with-libxml2], [link with libxml2 instead of expat])])