comparison configure.in @ 535:c69610198c35

[xemacs-hg @ 2001-05-14 04:52:02 by martinb] Eliminate the need to define HAVE_PTYS in s&m files.
author martinb
date Mon, 14 May 2001 04:52:49 +0000
parents 7b35ad872326
children 836d476763d0
comparison
equal deleted inserted replaced
534:a0266879cecf 535:c69610198c35
2755 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make` 2755 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
2756 fi 2756 fi
2757 cd .. 2757 cd ..
2758 rm -fr conftestdir 2758 rm -fr conftestdir
2759 for word in $xmkmf_defines; do 2759 for word in $xmkmf_defines; do
2760 case "$word" in 2760 case "$word" in
2761 -D__STDC__*) ;; 2761 -D__STDC__*) ;;
2762 -D* ) 2762 -D* )
2763 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'` 2763 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
2764 case "$word" in 2764 case "$word" in
2765 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;; 2765 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
2823 AC_TRY_COMPILE([ 2823 AC_TRY_COMPILE([
2824 #define NeedFunctionPrototypes 1 2824 #define NeedFunctionPrototypes 1
2825 #include <X11/Xlib.h> 2825 #include <X11/Xlib.h>
2826 extern Bool XRegisterIMInstantiateCallback( 2826 extern Bool XRegisterIMInstantiateCallback(
2827 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*); 2827 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
2828 ], [], 2828 ], [],
2829 [AC_MSG_RESULT(yes)], 2829 [AC_MSG_RESULT(yes)],
2830 [AC_MSG_RESULT(no) 2830 [AC_MSG_RESULT(no)
2831 AC_DEFINE(XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE)]) 2831 AC_DEFINE(XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE)])
2832 2832
2833 dnl autodetect -lXmu 2833 dnl autodetect -lXmu
3708 fi 3708 fi
3709 3709
3710 AC_CHECK_FUNCS(cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strerror tzset ulimit usleep waitpid vsnprintf fsync ftruncate umask) 3710 AC_CHECK_FUNCS(cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strerror tzset ulimit usleep waitpid vsnprintf fsync ftruncate umask)
3711 3711
3712 dnl ---------------------------------------------------------------- 3712 dnl ----------------------------------------------------------------
3713 dnl Check for PTY support functions. 3713 dnl Check for Unixoid pty/process support.
3714 dnl ---------------------------------------------------------------- 3714 dnl ----------------------------------------------------------------
3715 3715
3716 dnl There is no "standard" pty allocation method. Every system is different. 3716 dnl There is no "standard" pty allocation method. Every system is different.
3717 dnl getpt() is the preferred pty allocation method on glibc systems. 3717 dnl getpt() is the preferred pty allocation method on glibc systems.
3718 dnl _getpty() is the preferred pty allocation method on SGI systems. 3718 dnl _getpty() is the preferred pty allocation method on SGI systems.
3726 dnl - util.h (NetBSD) 3726 dnl - util.h (NetBSD)
3727 AC_CHECK_FUNC(openpty, have_openpty=yes, [ 3727 AC_CHECK_FUNC(openpty, have_openpty=yes, [
3728 AC_CHECK_LIB(util, openpty, have_openpty=yes need_libutil=yes)]) 3728 AC_CHECK_LIB(util, openpty, have_openpty=yes need_libutil=yes)])
3729 if test "$have_openpty" = "yes"; then 3729 if test "$have_openpty" = "yes"; then
3730 AC_DEFINE(HAVE_OPENPTY) 3730 AC_DEFINE(HAVE_OPENPTY)
3731 AC_CHECK_HEADERS(pty.h libutil.h util.h, break) 3731 AC_CHECK_HEADERS(libutil.h util.h, break)
3732 test "$need_libutil" = "yes" && XE_APPEND(-lutil, libs_system) 3732 test "$need_libutil" = "yes" && XE_APPEND(-lutil, libs_system)
3733 fi 3733 fi
3734
3735 dnl Check for system-specific pty header files
3736 dnl Often the TIOCSIG* symbols are hiding there.
3737 case "$opsys" in
3738 dnl HPUX pty.h #defines TRUE and FALSE, so just use ptyio.h there.
3739 hpux*) AC_CHECK_HEADERS(sys/ptyio.h) ;;
3740 *) AC_CHECK_HEADERS(pty.h)
3741 test "$ac_cv_header_pty_h" = "no" && AC_CHECK_HEADERS(sys/pty.h)
3742 ;;
3743 esac
3734 3744
3735 dnl Check for STREAM support functions. 3745 dnl Check for STREAM support functions.
3736 dnl Confusingly, "str" means both "string" and "SysV Streams". 3746 dnl Confusingly, "str" means both "string" and "SysV Streams".
3737 AC_CHECK_HEADERS(stropts.h) 3747 AC_CHECK_HEADERS(stropts.h)
3738 if test "$ac_cv_header_stropts_h" = "yes"; then 3748 if test "$ac_cv_header_stropts_h" = "yes"; then
3915 esac 3925 esac
3916 AC_MSG_RESULT($have_mmap) 3926 AC_MSG_RESULT($have_mmap)
3917 test "$have_mmap" = "yes" && AC_DEFINE(HAVE_MMAP) 3927 test "$have_mmap" = "yes" && AC_DEFINE(HAVE_MMAP)
3918 3928
3919 dnl By default we switch off rel-alloc on cygwin as it generally causes us grief 3929 dnl By default we switch off rel-alloc on cygwin as it generally causes us grief
3920 case "$opsys" in cygwin*) 3930 case "$opsys" in cygwin*)
3921 test "$rel_alloc" = "default" && rel_alloc=no ;; 3931 test "$rel_alloc" = "default" && rel_alloc=no ;;
3922 esac 3932 esac
3923 dnl rel_alloc requires either GNU malloc or system malloc with mmap 3933 dnl rel_alloc requires either GNU malloc or system malloc with mmap
3924 dnl We only turn rel_alloc on by default if mmap is available. 3934 dnl We only turn rel_alloc on by default if mmap is available.
3925 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no 3935 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no