… | |
… | |
33 | AC_PROG_CPP |
33 | AC_PROG_CPP |
34 | AC_PROG_INSTALL |
34 | AC_PROG_INSTALL |
35 | |
35 | |
36 | AC_AIX |
36 | AC_AIX |
37 | AC_ISC_POSIX |
37 | AC_ISC_POSIX |
38 | |
|
|
39 | AC_LANG(C) |
38 | AC_LANG(C++) |
40 | |
39 | |
41 | dnl check wetehr we can link with gcc -lsupc++ |
40 | dnl check wether we can link with gcc -lsupc++ |
42 | LINKER="$CXX" |
|
|
43 | if test x$GCC = xyes && test x$GXX = xyes; then |
41 | if 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 | ) |
48 | fi |
59 | fi |
49 | AC_SUBST(LINKER,[$LINKER]) |
60 | AC_SUBST(LINKER,[$LINKER]) |
50 | |
61 | |
51 | AC_LANG(C++) |
62 | AC_LANG(C++) |
52 | dnl# -------------------------------------------------------------------------- |
63 | dnl# -------------------------------------------------------------------------- |
… | |
… | |
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) |
773 | fi |
784 | fi |
774 | |
785 | |
775 | AC_CACHE_CHECK(for unix-compliant filehandle passing ability, rxvt_can_pass_fds, |
786 | AC_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]; |