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.136 by sf-exg, Wed Jan 18 19:44:09 2012 UTC vs.
Revision 1.139 by sf-exg, Thu Jan 19 15:08:55 2012 UTC

66 else 66 else
67 CXXFLAGS="-O" 67 CXXFLAGS="-O"
68 fi 68 fi
69 CFLAGS="$CXXFLAGS" 69 CFLAGS="$CXXFLAGS"
70fi 70fi
71
72case $host in
73 *-*-solaris* )
74 AC_DEFINE(_XOPEN_SOURCE, 500, Needed to get declarations for msg_control and msg_controllen on Solaris)
75 ;;
76esac
77 71
78dnl# FreeBSD needs to link libxpg4 72dnl# FreeBSD needs to link libxpg4
79AC_SEARCH_LIBS(setlocale, xpg4) 73AC_SEARCH_LIBS(setlocale, xpg4)
80 74
81dnl# solaris needs to link libnsl and socket 75dnl# solaris needs to link libnsl and socket
542 sys/ioctl.h \ 536 sys/ioctl.h \
543 sys/sockio.h \ 537 sys/sockio.h \
544 sys/strredir.h \ 538 sys/strredir.h \
545 stdint.h \ 539 stdint.h \
546 wchar.h \ 540 wchar.h \
547 cwchar \
548) 541)
549 542
550AC_CACHE_CHECK([for XLIB_ILLEGAL_ACCESS], rxvt_cv_xlib_illegal_access, 543AC_CACHE_CHECK([for XLIB_ILLEGAL_ACCESS], rxvt_cv_xlib_illegal_access,
551[AC_COMPILE_IFELSE( 544[AC_COMPILE_IFELSE(
552 [AC_LANG_PROGRAM([ 545 [AC_LANG_PROGRAM([
631 AC_DEFINE(HAVE_XSETLOCALE, 1, Define if setlocale (defined to Xsetlocale) works) 624 AC_DEFINE(HAVE_XSETLOCALE, 1, Define if setlocale (defined to Xsetlocale) works)
632fi 625fi
633LIBS=$save_LIBS 626LIBS=$save_LIBS
634CFLAGS=$save_CFLAGS 627CFLAGS=$save_CFLAGS
635 628
636AC_CACHE_CHECK(for working plain setlocale, rxvt_cv_func_setlocale,
637[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <clocale>]], [[setlocale(LC_CTYPE, "");]])],[rxvt_cv_func_setlocale=yes],[rxvt_cv_func_setlocale=no])])
638if test x$rxvt_cv_func_setlocale = xyes; then
639 AC_DEFINE(HAVE_SETLOCALE, 1, Define if plain old setlocale works)
640fi
641
642AC_CACHE_CHECK(for working nl_langinfo, rxvt_cv_func_nl_langinfo, 629AC_CACHE_CHECK(for working nl_langinfo, rxvt_cv_func_nl_langinfo,
643[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <langinfo.h>]], [[nl_langinfo(CODESET);]])],[rxvt_cv_func_nl_langinfo=yes],[rxvt_cv_func_nl_langinfo=no])]) 630[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <langinfo.h>]], [[nl_langinfo(CODESET);]])],[rxvt_cv_func_nl_langinfo=yes],[rxvt_cv_func_nl_langinfo=no])])
644if test x$rxvt_cv_func_nl_langinfo = xyes; then 631if test x$rxvt_cv_func_nl_langinfo = xyes; then
645 AC_DEFINE(HAVE_NL_LANGINFO, 1, Define if nl_langinfo(CODESET) works) 632 AC_DEFINE(HAVE_NL_LANGINFO, 1, Define if nl_langinfo(CODESET) works)
646fi 633fi

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines