NAVIT_LIBS="$NAVIT_LIBS -L\$(top_builddir)/navit/support/win32 -lsupport_win32"
fi
AM_CONDITIONAL(SUPPORT_WIN32, [test "x$win32" = "xyes"])
+support_libc=no
+AC_ARG_ENABLE(support_libc, [ --enable-support-libc enable builtin mini libc ], support_libc=$enableval)
+AM_CONDITIONAL(SUPPORT_LIBC, [test "x$support_libc" = "xyes"])
+if test "x$support_libc" = "xyes"; then
+ CFLAGS="$CFLAGS -I\$(top_srcdir)/navit/support/libc"
+fi
## graphics
# gtk_drawing_area
navit/support/Makefile
navit/support/ezxml/Makefile
navit/support/glib/Makefile
+navit/support/libc/Makefile
navit/support/win32/Makefile
navit/support/wordexp/Makefile
navit/support/zlib/Makefile
--- /dev/null
+include $(top_srcdir)/Makefile.inc
+AM_CPPFLAGS = @NAVIT_CFLAGS@ -I$(top_srcdir)/navit -DMODULE=support_libc
+noinst_LTLIBRARIES = libsupport_libc.la
+libsupport_libc_la_SOURCES = libc.c libc_init.c libc.h
--- /dev/null
+#include "locale.h"
+int errno;
+
+char *
+getenv(char *name)
+{
+ return 0;
+}
+
+void
+setenv(void)
+{
+}
+
+char *
+getcwd(void)
+{
+ return "dummy";
+}
+
+char *
+getwd(void)
+{
+ return "dummy";
+}
+
+char *strtok_r(char *str, const char *delim, char **saveptr)
+{
+ return strtok(str, delim);
+}
+
+void
+perror(char *x)
+{
+}
+
+void
+raise(void)
+{
+}
+
+void *
+popen(void)
+{
+ return 0;
+}
+
+void
+pclose(void)
+{
+}
+
+void
+rewind(void)
+{
+}
+
+int
+GetThreadLocale(void)
+{
+ return 0;
+}
+
+int
+signal(void)
+{
+ return 0;
+}
+
+void
+setlocale(void)
+{
+ return 0;
+}
+
+static struct lconv localedata={"."};
+
+struct lconv *
+localeconv(void)
+{
+ return &localedata;
+}
--- /dev/null
+#ifndef _LOCALE_H
+#define _LOCALE_H 1
+#define SUBLANG_BENGALI_BANGLADESH 0x02
+#define SUBLANG_PUNJABI_PAKISTAN 0x02
+#define SUBLANG_ROMANIAN_MOLDOVA 0x02
+struct lconv {
+ char *decimal_point;
+};
+
+#define LC_ALL 1
+#define LC_NUMERIC 2
+#endif