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.15 by ayin, Sat Jan 21 18:15:07 2006 UTC vs.
Revision 1.16 by root, Sat Jan 21 19:50:53 2006 UTC

33AC_PROG_CPP 33AC_PROG_CPP
34AC_PROG_INSTALL 34AC_PROG_INSTALL
35 35
36AC_AIX 36AC_AIX
37AC_ISC_POSIX 37AC_ISC_POSIX
38
39AC_LANG(C) 38AC_LANG(C++)
40 39
41dnl check wetehr we can link with gcc -lsupc++ 40dnl check wether we can link with gcc -lsupc++
42LINKER="$CXX"
43if test x$GCC = xyes && test x$GXX = xyes; then 41if test x$GCC = xyes && test x$GXX = xyes; then
44 AC_CHECK_LIB(supc++, main, [ 42 dnl FreeBSD (at least up to 5.3) has a broken GCC, workaround it
45 LINKER="$CC" 43 AC_MSG_CHECKING([for working libsupc++])
44 save_CXX="$CXX"
45 save_LIBS="$LIBS"
46 CXX="$CC"
46 LIBS="$LIBS -lsupc++" 47 LIBS="$LIBS -lsupc++"
48 LINKER="$CC"
49 AC_LINK_IFELSE(
50 [AC_LANG_PROGRAM([struct test { }; void f() try { throw new test; } catch (...) { throw; }])],
51 [AC_MSG_RESULT(ok)],
52 [
53 AC_MSG_RESULT([no, make everything bigger and slower])
54 CXX="$save_CXX"
55 LIBS="$save_LIBS"
56 LINKER="$CXX"
57 ]
47 ]) 58 )
48fi 59fi
49AC_SUBST(LINKER,[$LINKER]) 60AC_SUBST(LINKER,[$LINKER])
50 61
51AC_LANG(C++) 62AC_LANG(C++)
52dnl# -------------------------------------------------------------------------- 63dnl# --------------------------------------------------------------------------
772 AC_DEFINE(HAVE_NL_LANGINFO, 1, Define if nl_langinfo(CODESET) works) 783 AC_DEFINE(HAVE_NL_LANGINFO, 1, Define if nl_langinfo(CODESET) works)
773fi 784fi
774 785
775AC_CACHE_CHECK(for unix-compliant filehandle passing ability, rxvt_can_pass_fds, 786AC_CACHE_CHECK(for unix-compliant filehandle passing ability, rxvt_can_pass_fds,
776[AC_TRY_LINK([ 787[AC_TRY_LINK([
788#include <cstddef> // broken bsds (is that redundant) need this
777#include <sys/types.h> 789#include <sys/types.h>
778#include <sys/socket.h> 790#include <sys/socket.h>
791#include <sys/uio.h>
779],[ 792],[
780{ 793{
781 msghdr msg; 794 msghdr msg;
782 iovec iov; 795 iovec iov;
783 char buf [100]; 796 char buf [100];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines