… | |
… | |
482 | sys/sockio.h \ |
482 | sys/sockio.h \ |
483 | sys/strredir.h \ |
483 | sys/strredir.h \ |
484 | stdint.h \ |
484 | stdint.h \ |
485 | wchar.h \ |
485 | wchar.h \ |
486 | cwchar \ |
486 | cwchar \ |
487 | clocale \ |
|
|
488 | ) |
487 | ) |
489 | |
|
|
490 | dnl# check to allow both <termios.h> and <sys/ioctl.h> |
|
|
491 | AC_CACHE_CHECK(whether termios.h and sys/ioctl.h may both be included, rxvt_cv_header_sysioctl, |
|
|
492 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h> |
|
|
493 | #include <sys/ioctl.h> |
|
|
494 | #include <termios.h> |
|
|
495 | ]], [[int a = ECHO;]])],[rxvt_cv_header_sysioctl=yes],[rxvt_cv_header_sysioctl=no])]) |
|
|
496 | |
488 | |
497 | AC_CACHE_CHECK([for XPointer], rxvt_cv_xpointer, |
489 | AC_CACHE_CHECK([for XPointer], rxvt_cv_xpointer, |
498 | [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])]) |
499 | if test x$rxvt_cv_xpointer = xyes; then |
491 | if test x$rxvt_cv_xpointer = xyes; then |
500 | AC_DEFINE(HAVE_XPOINTER, 1, Define if you have XPointer typedef) |
492 | AC_DEFINE(HAVE_XPOINTER, 1, Define if you have XPointer typedef) |
… | |
… | |
518 | dnl# -------------------------------------------------------------------------- |
510 | dnl# -------------------------------------------------------------------------- |
519 | dnl# CHECKING FOR MISSING TYPEDEFS |
511 | dnl# CHECKING FOR MISSING TYPEDEFS |
520 | dnl# -------------------------------------------------------------------------- |
512 | dnl# -------------------------------------------------------------------------- |
521 | dnl# Missing typedefs and replacements |
513 | dnl# Missing typedefs and replacements |
522 | AC_TYPE_MODE_T |
514 | AC_TYPE_MODE_T |
523 | dnl> AC_CHECK_TYPE(umode_t, int) |
|
|
524 | dnl> AC_CHECK_TYPE(off_t, long) |
|
|
525 | AC_TYPE_PID_T |
515 | AC_TYPE_PID_T |
526 | AC_TYPE_UID_T |
516 | AC_TYPE_UID_T |
527 | |
|
|
528 | AC_CHECK_SIZEOF(short, 2) |
|
|
529 | AC_CHECK_SIZEOF(int, 4) |
|
|
530 | dnl AC_CHECK_SIZEOF(long, 4) |
|
|
531 | AC_CHECK_SIZEOF(long long, 8) |
|
|
532 | AC_CHECK_SIZEOF(int *, 4) |
|
|
533 | |
|
|
534 | AC_TYPE_INT16_T |
517 | AC_TYPE_INT16_T |
535 | AC_TYPE_UINT16_T |
518 | AC_TYPE_UINT16_T |
536 | AC_TYPE_INT32_T |
519 | AC_TYPE_INT32_T |
537 | AC_TYPE_UINT32_T |
520 | AC_TYPE_UINT32_T |
538 | |
521 | |
… | |
… | |
730 | |
713 | |
731 | save_CXXFLAGS="$CXXFLAGS" |
714 | save_CXXFLAGS="$CXXFLAGS" |
732 | save_LIBS="$LIBS" |
715 | save_LIBS="$LIBS" |
733 | CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`" |
716 | CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`" |
734 | LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`" |
717 | LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`" |
735 | AC_TRY_LINK([ |
718 | AC_LINK_IFELSE([AC_LANG_PROGRAM([[ |
736 | #include <EXTERN.h> |
719 | #include <EXTERN.h> |
737 | #include <perl.h> |
720 | #include <perl.h> |
738 | #include <XSUB.h> |
721 | #include <XSUB.h> |
739 | ],[ |
722 | ]], [[ |
740 | PerlInterpreter *perl = perl_alloc (); |
723 | PerlInterpreter *perl = perl_alloc (); |
741 | ],[rxvt_perl_link=yes],[rxvt_perl_link=no]) |
724 | ]])],[rxvt_perl_link=yes],[rxvt_perl_link=no]) |
742 | CXXFLAGS="$save_CXXFLAGS" |
725 | CXXFLAGS="$save_CXXFLAGS" |
743 | LIBS="$save_LIBS" |
726 | LIBS="$save_LIBS" |
744 | |
727 | |
745 | if test x$rxvt_perl_link = xyes; then |
728 | if test x$rxvt_perl_link = xyes; then |
746 | AC_MSG_RESULT(ok) |
729 | AC_MSG_RESULT(ok) |
… | |
… | |
777 | AC_SUBST(AFTERIMAGE_CFLAGS) |
760 | AC_SUBST(AFTERIMAGE_CFLAGS) |
778 | AC_SUBST(AFTERIMAGE_LIBS) |
761 | AC_SUBST(AFTERIMAGE_LIBS) |
779 | |
762 | |
780 | AC_ARG_PROGRAM |
763 | AC_ARG_PROGRAM |
781 | |
764 | |
782 | dnl# test for "sun" or "__sun__" before include sys_ioctl |
|
|
783 | |
|
|
784 | dnl# revert HAVE_BLAH_H into a "#include <blah.h>" |
|
|
785 | AC_DEFUN([RXVT_DEFINE_TO_INCLUDE], dnl |
|
|
786 | [if test "$$3" = "$4" -o "$$5" = "$6"; then |
|
|
787 | $1="#include <$2>" |
|
|
788 | else |
|
|
789 | $1="/* #include <$2> */" |
|
|
790 | fi dnl |
|
|
791 | AC_SUBST($1)]) |
|
|
792 | |
|
|
793 | RXVT_DEFINE_TO_INCLUDE(include_stdint_h, stdint.h, ac_cv_header_stdint_h, yes, notset, dontmatch) |
|
|
794 | RXVT_DEFINE_TO_INCLUDE(include_sys_ioctl_h, sys/ioctl.h, rxvt_cv_header_sysioctl, yes, notset, dontmatch) |
|
|
795 | RXVT_DEFINE_TO_INCLUDE(include_sys_strredir_h, sys/strredir.h, ac_cv_header_sys_strredir_h, yes, notset, dontmatch) |
|
|
796 | |
|
|
797 | AC_CONFIG_FILES([Makefile \ |
765 | AC_CONFIG_FILES([Makefile \ |
798 | doc/Makefile \ |
766 | doc/Makefile \ |
799 | src/Makefile \ |
767 | src/Makefile \ |
800 | src/rxvtlib.h \ |
|
|
801 | ]) |
768 | ]) |
802 | AC_OUTPUT |
769 | AC_OUTPUT |
803 | |
770 | |
804 | echo "Configuration: |
771 | echo "Configuration: |
805 | |
772 | |