… | |
… | |
62 | dnl# -------------------------------------------------------------------------- |
62 | dnl# -------------------------------------------------------------------------- |
63 | dnl# Supply default CXXFLAGS, if not specified by `CXXFLAGS=flags ./configure' |
63 | dnl# Supply default CXXFLAGS, if not specified by `CXXFLAGS=flags ./configure' |
64 | dnl# |
64 | dnl# |
65 | if test -z "$orig_CXXFLAGS"; then |
65 | if test -z "$orig_CXXFLAGS"; then |
66 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
66 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
67 | CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" |
67 | CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" |
68 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])], [], [CXXFLAGS="-g -O3"]) |
68 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])], [], [CXXFLAGS="-g -O3"]) |
69 | else |
69 | else |
70 | CXXFLAGS="-O" |
70 | CXXFLAGS="-O" |
71 | fi |
71 | fi |
72 | CFLAGS="$CXXFLAGS" |
72 | CFLAGS="$CXXFLAGS" |
… | |
… | |
294 | [if test x$enableval = xyes -o x$enableval = xno; then |
294 | [if test x$enableval = xyes -o x$enableval = xno; then |
295 | support_scroll_plain=$enableval |
295 | support_scroll_plain=$enableval |
296 | fi]) |
296 | fi]) |
297 | |
297 | |
298 | AC_ARG_WITH(codesets, |
298 | AC_ARG_WITH(codesets, |
299 | [ --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)], |
299 | [ --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)], |
300 | [codesets="$withval"]) |
300 | [codesets="$withval"]) |
301 | |
301 | |
302 | AC_ARG_ENABLE(xim, |
302 | AC_ARG_ENABLE(xim, |
303 | [ --enable-xim XIM (X Input Method) protocol support], |
303 | [ --enable-xim XIM (X Input Method) protocol support], |
304 | [if test x$enableval = xyes -o x$enableval = xno; then |
304 | [if test x$enableval = xyes -o x$enableval = xno; then |
… | |
… | |
671 | |
671 | |
672 | dnl# -------------------------------------------------------------------------- |
672 | dnl# -------------------------------------------------------------------------- |
673 | dnl# -------------------------------------------------------------------------- |
673 | dnl# -------------------------------------------------------------------------- |
674 | |
674 | |
675 | dnl# this is a really hack test for some basic Xlocale stuff |
675 | dnl# this is a really hack test for some basic Xlocale stuff |
676 | ac_save_LIBS=$LIBS |
676 | save_LIBS=$LIBS |
677 | ac_save_CFLAGS=$CFLAGS |
677 | save_CFLAGS=$CFLAGS |
678 | CFLAGS="$CFLAGS $X_CFLAGS" |
678 | CFLAGS="$CFLAGS $X_CFLAGS" |
679 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
679 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
680 | if test x$support_xim = xyes; then |
680 | if test x$support_xim = xyes; then |
681 | AC_CACHE_CHECK(for working Xlocale, rxvt_cv_func_xlocale, |
681 | AC_CACHE_CHECK(for working Xlocale, rxvt_cv_func_xlocale, |
682 | [AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <X11/Xlib.h> |
682 | [AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <X11/Xlib.h> |
… | |
… | |
713 | [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#define X_LOCALE 1 |
713 | [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#define X_LOCALE 1 |
714 | #include <X11/Xlocale.h>]], [[setlocale(LC_CTYPE, "");]])],[rxvt_cv_func_xsetlocale=yes],[rxvt_cv_func_xsetlocale=no])]) |
714 | #include <X11/Xlocale.h>]], [[setlocale(LC_CTYPE, "");]])],[rxvt_cv_func_xsetlocale=yes],[rxvt_cv_func_xsetlocale=no])]) |
715 | if test x$rxvt_cv_func_xsetlocale = xyes; then |
715 | if test x$rxvt_cv_func_xsetlocale = xyes; then |
716 | AC_DEFINE(HAVE_XSETLOCALE, 1, Define if setlocale (defined to Xsetlocale) works) |
716 | AC_DEFINE(HAVE_XSETLOCALE, 1, Define if setlocale (defined to Xsetlocale) works) |
717 | fi |
717 | fi |
718 | LIBS=$ac_save_LIBS |
718 | LIBS=$save_LIBS |
719 | CFLAGS=$ac_save_CFLAGS |
719 | CFLAGS=$save_CFLAGS |
720 | |
720 | |
721 | AC_CACHE_CHECK(for working plain setlocale, rxvt_cv_func_setlocale, |
721 | AC_CACHE_CHECK(for working plain setlocale, rxvt_cv_func_setlocale, |
722 | [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <clocale>]], [[setlocale(LC_CTYPE, "");]])],[rxvt_cv_func_setlocale=yes],[rxvt_cv_func_setlocale=no])]) |
722 | [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <clocale>]], [[setlocale(LC_CTYPE, "");]])],[rxvt_cv_func_setlocale=yes],[rxvt_cv_func_setlocale=no])]) |
723 | if test x$rxvt_cv_func_setlocale = xyes; then |
723 | if test x$rxvt_cv_func_setlocale = xyes; then |
724 | AC_DEFINE(HAVE_SETLOCALE, 1, Define if plain old setlocale works) |
724 | AC_DEFINE(HAVE_SETLOCALE, 1, Define if plain old setlocale works) |