2010-08-19 06:01:43 +00:00
|
|
|
endian=""
|
2013-01-28 07:21:42 +00:00
|
|
|
FNM_FLAGS=""
|
2021-03-27 10:52:59 +00:00
|
|
|
|
2010-08-19 06:01:43 +00:00
|
|
|
case "$host_os" in
|
|
|
|
mingw32*)
|
|
|
|
mingw=yes
|
2013-01-28 07:21:42 +00:00
|
|
|
FNM_FLAGS="-I\$(top_srcdir)/include/win32"
|
2010-08-19 06:01:43 +00:00
|
|
|
if test "x$host" != "x$build"; then
|
|
|
|
case "$build_os" in
|
|
|
|
cygwin*)
|
2022-09-19 13:13:16 +00:00
|
|
|
CFLAGS="$CFLAGS -mconsole -D__USE_MINGW_ANSI_STDIO"
|
2010-08-19 06:01:43 +00:00
|
|
|
CPPFLAGS="$CPPFLAGS $CFLAGS"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
2021-03-30 17:48:25 +00:00
|
|
|
SYSTYPE=WIN32
|
2021-03-27 10:52:59 +00:00
|
|
|
AC_DEFINE(NEED_GNUPRINTF)
|
2010-08-19 06:01:43 +00:00
|
|
|
endian="little"
|
|
|
|
;;
|
|
|
|
cygwin*)
|
|
|
|
cygwin=yes
|
2022-09-19 12:41:24 +00:00
|
|
|
AC_DEFINE(NEED_GNUPRINTF)
|
2010-08-19 06:01:43 +00:00
|
|
|
if test "x$host" != "x$build"; then
|
|
|
|
CC="$host_cpu-$host_os-gcc"
|
|
|
|
AS="$CC"
|
|
|
|
AR="$host_cpu_$host_os-ar"
|
|
|
|
RANLIB="$host_cpu-$host_os-ranlib"
|
|
|
|
endian="little"
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|
2013-01-28 07:21:42 +00:00
|
|
|
AC_SUBST(FNM_FLAGS)
|
2021-03-27 10:52:59 +00:00
|
|
|
|
|
|
|
AH_VERBATIM([NEED_GNUPRINTF],
|
|
|
|
[/* Define this if gnu_prinf is needed instead of printf for format attributes*/
|
|
|
|
#undef NEED_GNUPRINTF
|
|
|
|
#ifdef NEED_GNUPRINTF
|
|
|
|
# define PRINTF gnu_printf
|
|
|
|
#else
|
|
|
|
# define PRINTF printf
|
|
|
|
#endif])
|