ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure.ac
(Generate patch)

Comparing rxvt-unicode/configure.ac (file contents):
Revision 1.78 by ayin, Wed Oct 31 11:55:23 2007 UTC vs.
Revision 1.79 by ayin, Wed Oct 31 11:59:09 2007 UTC

62dnl# -------------------------------------------------------------------------- 62dnl# --------------------------------------------------------------------------
63dnl# Supply default CXXFLAGS, if not specified by `CXXFLAGS=flags ./configure' 63dnl# Supply default CXXFLAGS, if not specified by `CXXFLAGS=flags ./configure'
64dnl# 64dnl#
65if test -z "$orig_CXXFLAGS"; then 65if 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
298AC_ARG_WITH(codesets, 298AC_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
302AC_ARG_ENABLE(xim, 302AC_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
672dnl# -------------------------------------------------------------------------- 672dnl# --------------------------------------------------------------------------
673dnl# -------------------------------------------------------------------------- 673dnl# --------------------------------------------------------------------------
674 674
675dnl# this is a really hack test for some basic Xlocale stuff 675dnl# this is a really hack test for some basic Xlocale stuff
676ac_save_LIBS=$LIBS 676save_LIBS=$LIBS
677ac_save_CFLAGS=$CFLAGS 677save_CFLAGS=$CFLAGS
678CFLAGS="$CFLAGS $X_CFLAGS" 678CFLAGS="$CFLAGS $X_CFLAGS"
679LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 679LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
680if test x$support_xim = xyes; then 680if 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])])
715if test x$rxvt_cv_func_xsetlocale = xyes; then 715if 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)
717fi 717fi
718LIBS=$ac_save_LIBS 718LIBS=$save_LIBS
719CFLAGS=$ac_save_CFLAGS 719CFLAGS=$save_CFLAGS
720 720
721AC_CACHE_CHECK(for working plain setlocale, rxvt_cv_func_setlocale, 721AC_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])])
723if test x$rxvt_cv_func_setlocale = xyes; then 723if 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)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines