Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libgloss/wince/configure.in')
-rw-r--r--libgloss/wince/configure.in34
1 files changed, 34 insertions, 0 deletions
diff --git a/libgloss/wince/configure.in b/libgloss/wince/configure.in
new file mode 100644
index 000000000..1211804a5
--- /dev/null
+++ b/libgloss/wince/configure.in
@@ -0,0 +1,34 @@
+dnl Process this file with autoconf to produce a configure script.
+
+AC_PREREQ(2.13)
+
+AC_INIT(Makefile.in)
+AC_CANONICAL_SYSTEM
+AC_ARG_PROGRAM
+AM_INIT_AUTOMAKE(wince-stub, 1.0)
+AM_MAINTAINER_MODE
+
+cross_compiling=yes
+program_transform_name=s,^,@target_alias@-,;
+
+: ${CFLAGS='-O2'}
+AC_CHECK_PROG(CC, "${host_alias}-gcc", "${host_alias}-gcc")
+# CFLAGS="$CFLAGS -Xlinker --defsym -Xlinker _main=_WinMain"
+AC_PROG_CC_GNU
+AC_CHECK_TOOL(LD, ld, ld)
+AC_SUBST(LD)
+AC_PROG_INSTALL
+case "${target}" in
+ *arm*-*-*) LDADD='-lwinsock -lsslsock' ;;
+ *) LDADD='-lwinsock'
+esac
+AC_SUBST(LDADD)
+#
+# The following is sort of a kludge but we *know* that we need
+# an executable extension and, currently, the sh-pe-gcc compiler
+# doesn't play well with configure, so, set a "cache" entry.
+#
+: ${ac_cv_exeext='.exe'}
+AC_EXEEXT
+
+AC_OUTPUT([Makefile])