… | |
… | |
484 | stdint.h \ |
484 | stdint.h \ |
485 | wchar.h \ |
485 | wchar.h \ |
486 | cwchar \ |
486 | cwchar \ |
487 | ) |
487 | ) |
488 | |
488 | |
489 | dnl# check to allow both <termios.h> and <sys/ioctl.h> |
|
|
490 | AC_CACHE_CHECK(whether termios.h and sys/ioctl.h may both be included, rxvt_cv_header_sysioctl, |
|
|
491 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h> |
|
|
492 | #include <sys/ioctl.h> |
|
|
493 | #include <termios.h> |
|
|
494 | ]], [[int a = ECHO;]])],[rxvt_cv_header_sysioctl=yes],[rxvt_cv_header_sysioctl=no])]) |
|
|
495 | |
|
|
496 | AC_CACHE_CHECK([for XPointer], rxvt_cv_xpointer, |
489 | AC_CACHE_CHECK([for XPointer], rxvt_cv_xpointer, |
497 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <X11/Xlib.h>]], [[XPointer dummy;]])],[rxvt_cv_xpointer=yes],[rxvt_cv_xpointer=no])]) |
490 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <X11/Xlib.h>]], [[XPointer dummy;]])],[rxvt_cv_xpointer=yes],[rxvt_cv_xpointer=no])]) |
498 | if test x$rxvt_cv_xpointer = xyes; then |
491 | if test x$rxvt_cv_xpointer = xyes; then |
499 | AC_DEFINE(HAVE_XPOINTER, 1, Define if you have XPointer typedef) |
492 | AC_DEFINE(HAVE_XPOINTER, 1, Define if you have XPointer typedef) |
500 | fi |
493 | fi |
… | |
… | |
720 | |
713 | |
721 | save_CXXFLAGS="$CXXFLAGS" |
714 | save_CXXFLAGS="$CXXFLAGS" |
722 | save_LIBS="$LIBS" |
715 | save_LIBS="$LIBS" |
723 | CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`" |
716 | CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`" |
724 | LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`" |
717 | LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`" |
725 | AC_TRY_LINK([ |
718 | AC_LINK_IFELSE([AC_LANG_PROGRAM([[ |
726 | #include <EXTERN.h> |
719 | #include <EXTERN.h> |
727 | #include <perl.h> |
720 | #include <perl.h> |
728 | #include <XSUB.h> |
721 | #include <XSUB.h> |
729 | ],[ |
722 | ]], [[ |
730 | PerlInterpreter *perl = perl_alloc (); |
723 | PerlInterpreter *perl = perl_alloc (); |
731 | ],[rxvt_perl_link=yes],[rxvt_perl_link=no]) |
724 | ]])],[rxvt_perl_link=yes],[rxvt_perl_link=no]) |
732 | CXXFLAGS="$save_CXXFLAGS" |
725 | CXXFLAGS="$save_CXXFLAGS" |
733 | LIBS="$save_LIBS" |
726 | LIBS="$save_LIBS" |
734 | |
727 | |
735 | if test x$rxvt_perl_link = xyes; then |
728 | if test x$rxvt_perl_link = xyes; then |
736 | AC_MSG_RESULT(ok) |
729 | AC_MSG_RESULT(ok) |
… | |
… | |
767 | AC_SUBST(AFTERIMAGE_CFLAGS) |
760 | AC_SUBST(AFTERIMAGE_CFLAGS) |
768 | AC_SUBST(AFTERIMAGE_LIBS) |
761 | AC_SUBST(AFTERIMAGE_LIBS) |
769 | |
762 | |
770 | AC_ARG_PROGRAM |
763 | AC_ARG_PROGRAM |
771 | |
764 | |
772 | dnl# test for "sun" or "__sun__" before include sys_ioctl |
|
|
773 | |
|
|
774 | dnl# revert HAVE_BLAH_H into a "#include <blah.h>" |
|
|
775 | AC_DEFUN([RXVT_DEFINE_TO_INCLUDE], dnl |
|
|
776 | [if test "$$3" = "$4" -o "$$5" = "$6"; then |
|
|
777 | $1="#include <$2>" |
|
|
778 | else |
|
|
779 | $1="/* #include <$2> */" |
|
|
780 | fi dnl |
|
|
781 | AC_SUBST($1)]) |
|
|
782 | |
|
|
783 | RXVT_DEFINE_TO_INCLUDE(include_stdint_h, stdint.h, ac_cv_header_stdint_h, yes, notset, dontmatch) |
|
|
784 | RXVT_DEFINE_TO_INCLUDE(include_sys_ioctl_h, sys/ioctl.h, rxvt_cv_header_sysioctl, yes, notset, dontmatch) |
|
|
785 | RXVT_DEFINE_TO_INCLUDE(include_sys_strredir_h, sys/strredir.h, ac_cv_header_sys_strredir_h, yes, notset, dontmatch) |
|
|
786 | |
|
|
787 | AC_CONFIG_FILES([Makefile \ |
765 | AC_CONFIG_FILES([Makefile \ |
788 | doc/Makefile \ |
766 | doc/Makefile \ |
789 | src/Makefile \ |
767 | src/Makefile \ |
790 | src/rxvtlib.h \ |
|
|
791 | ]) |
768 | ]) |
792 | AC_OUTPUT |
769 | AC_OUTPUT |
793 | |
770 | |
794 | echo "Configuration: |
771 | echo "Configuration: |
795 | |
772 | |