Skip to content

Commit

Permalink
Force -m32 on Windows because prebuilts; use windows.m4; Add --with-l…
Browse files Browse the repository at this point in the history
…inux-tty so that driver can actually be used; correct a a Linux check
  • Loading branch information
roothorick committed Oct 25, 2013
1 parent e6056a5 commit 9ad99af
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,13 @@ test "$DEFAULT_LDFLAGS" = "yes" && LDFLAGS=""
if test "$host_os" = "mingw32"; then
CPPFLAGS="$CPPFLAGS -I$PWD/extern/for_mingw/include"
LDFLAGS="$LDFLAGS -L$PWD/extern/for_mingw/lib"
# HACK: The prebuilts are 32bit only. Force the issue.
CFLAGS="$CFLAGS -m32"
fi

AM_CONDITIONAL(WITH_TTY, test "$with_tty" = "yes")
AC_ARG_WITH(linux-tty, AS_HELP_STRING([--with-linux-tty], [Enable Linux TTY input]), with_tty=yes, with_tty=no)

compile=release
AC_ARG_WITH(debug, AS_HELP_STRING([--with-debug],[Enable debug mode]), with_debug=$withval, with_debug=no)
AC_ARG_WITH(fast-compile, AS_HELP_STRING([--with-fast-compile],[Enable fast compile]), with_fast_compile=$withval, with_fast_compile=no)
Expand Down Expand Up @@ -135,7 +140,10 @@ case $host_os in
unix=yes
;;
esac
if test $host_os != mingw32; then
if test "$windows" = "yes"; then
SM_WINDOWS
fi
if test "$linux" = "yes"; then
AC_DEFINE(LUA_USE_LINUX, 1, [Linux for Lua])
fi
AM_CONDITIONAL(UNIX, test "$unix" = "yes" )
Expand Down

0 comments on commit 9ad99af

Please sign in to comment.