39
39
TARGET_SYSTEM_ROOT=
42
AM_CONDITIONAL(WITHSYSROOT, test $with_sysroot != no)
43
AC_SUBST(TARGET_SYSTEM_ROOT)
42
AM_CONDITIONAL([WITHSYSROOT],[test $with_sysroot != no])
43
AC_SUBST([TARGET_SYSTEM_ROOT])
45
45
# Checks for programs.
46
46
# Checks for headers, libs, etc need to utilize the sysroot... no idea how
53
AC_CHECK_TOOL([DLLTOOL], [dlltool], [:])
55
dnl Remove these once automake fixes the bug where they aren't defined according to $host
56
AC_CHECK_TOOL([AR], [ar], [:])
57
AC_CHECK_TOOL([AS], [as], [:])
58
61
AC_ARG_ENABLE([lib32],
59
62
[AS_HELP_STRING([--enable-lib32],
60
[enable compiling the Win32 runtime])],
63
[Build the Win32 runtime])],
62
65
[AC_MSG_CHECKING([whether to build the Win32 runtime])
63
66
_save_CFLAGS="$CFLAGS"
77
80
AC_ARG_ENABLE([lib64],
78
81
[AS_HELP_STRING([--enable-lib64],
79
[enable compiling the Win64 runtime])],
82
[Build the Win64 runtime])],
81
84
[AC_MSG_CHECKING([whether to build the Win64 runtime])
82
85
_save_CFLAGS="$CFLAGS"
96
99
AC_ARG_ENABLE([libce],
97
100
[AS_HELP_STRING([--enable-libce],
98
[enable compiling the WinCE runtime])],
101
[Build the WinCE runtime])],
100
103
[AS_CASE([$host_cpu],
104
[arm*],[enable_libce=yes],
105
[*],[enable_libce=no])
106
107
AM_CONDITIONAL([LIBCE], [test $enable_libce = yes])
125
126
# Checks for features.
129
AC_HELP_STRING([--enable-wildcard], [Enable command line globbing [[default=no]]]),
128
AC_ARG_ENABLE([wildcard],
129
[AS_HELP_STRING([--enable-wildcard],
130
[Enable command line globbing @<:@default=no@:>@])],
134
[test x$enable_wildcard = xyes],
135
[AC_DEFINE(__ENABLE_GLOBBING,-1, [Define as -1 if want to enable command line globbing, 0 otherwise])],
136
[AC_DEFINE(__ENABLE_GLOBBING, 0, [Define as -1 if want to enable command line globbing, 0 otherwise])]
132
[enable_wildcard=no])
133
AS_CASE([$enable_wildcard],
134
[yes],[enable_wildcard_value=-1],
135
[no],[enable_wildcard_value=0],
136
[AC_MSG_ERROR([Please only use --enable-wildcard or --disable-wildcard, without any additional arguments.])])
137
AC_DEFINE_UNQUOTED([__ENABLE_GLOBBING],[$enable_wildcard_value],[Define as -1 to enable command line globbing or 0 to disable it.])
139
AC_MSG_CHECKING([whether the compiler supports -municode])
140
AC_ARG_ENABLE([tests-unicode],
141
[AS_HELP_STRING([--enable-tests-unicode],
142
[Enable the unicode testsuite without testing the compiler for support.])],
144
saved_CFLAGS="$CFLAGS"
145
CFLAGS="$CFLAGS -municode"
146
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
148
# error UNICODE not defined with -municode
151
[enable_tests_unicode=yes],
152
[enable_tests_unicode=no])
153
CFLAGS="$saved_CFLAGS"])
154
AM_CONDITIONAL([ENABLE_TESTS_UNICODE],[test x$enable_tests_unicode = xyes])
155
AC_MSG_RESULT([$enable_tests_unicode])
139
157
# Checks for libraries.