diff --git a/Makefile.am b/Makefile.am index af27397..727ed6d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -80,6 +80,7 @@ EXTRA_DIST = eval.h globals.h gpl_text.h LogoFrame.h logo.h \ # Source for utility program for regenerating ./helpfiles/ from ./usermanual # See below; needs to run in build environment. EXTRA_DIST += makehelp.c +CLEANFILES = makehelp # Misc information, documentation, historical files, etc EXTRA_DIST += changes.txt config.h.msys diffscript.pl .gitignore \ diff --git a/configure.ac b/configure.ac index edc1899..6d32a11 100644 --- a/configure.ac +++ b/configure.ac @@ -34,7 +34,13 @@ AS_IF([test x${enable_gitid} = xyes], [AC_DEFINE([GITID],[1],[enable gitid in version])]) AM_CONDITIONAL([GITID], [test x${enable_gitid} = xyes]) -m4_ifdef([WX_CONFIG_CHECK], [ +AC_MSG_CHECKING([enable_wx]) +AC_ARG_ENABLE([wx], + [AS_HELP_STRING([--enable-wx],[try to use wx library for graphics (default=yes)])],,[enable_wx=yes]) +AC_MSG_RESULT([$enable_wx]) + +AS_IF([test x${enable_wx} = xyes], +[m4_ifdef([WX_CONFIG_CHECK], [ WX_CONFIG_OPTIONS WX_CONFIG_CHECK([3.0.0], [wxWin=1]) @@ -52,7 +58,8 @@ AM_COND_IF([WX], ], [ AC_MSG_NOTICE([No WX_CONFIG_CHECK available]) AM_CONDITIONAL([WX], [test 1 = 0]) -]) +])], + AM_CONDITIONAL([WX], [test 1 = 0])) AC_MSG_CHECKING([enable_x11]) @@ -106,7 +113,6 @@ AC_TYPE_SIZE_T dnl Checks for library functions. AC_CHECK_FUNCS([usleep srandom sigsetmask matherr drem irint memcpy]) -AC_PROG_GCC_TRADITIONAL AC_SUBST(WXOFILES) AC_SUBST(WXSRCFILES) diff --git a/logo.h b/logo.h index 024c6be..967ca0d 100644 --- a/logo.h +++ b/logo.h @@ -32,6 +32,8 @@ #define ecma /* for European extended character set using parity bit */ +/* glibc */ +#define SIG_TAKES_ARG #ifdef WIN32 #define ibm diff --git a/wxterm.c b/wxterm.c index 17aea58..173e5e4 100644 --- a/wxterm.c +++ b/wxterm.c @@ -91,8 +91,9 @@ char wx_font_face[300] = "Courier"; //300 matches lsetfont in wxterm.c int wx_font_size = 12; int label_height = 15; -int termcap_putter(char ch) { - *termcap_ptr++ = ch; +int termcap_putter(int ch) { + /* XXX: Should this check for any non-char values? */ + *termcap_ptr++ = (char)ch; return 0; }