comparison configure.in @ 444:576fb035e263 r21-2-37

Import from CVS: tag r21-2-37
author cvs
date Mon, 13 Aug 2007 11:36:19 +0200
parents abe6d1db359e
children 1ccc32a20af4
comparison
equal deleted inserted replaced
443:a8296e22da4e 444:576fb035e263
55 dnl here is how XEmacs is different: 55 dnl here is how XEmacs is different:
56 dnl - no cache file 56 dnl - no cache file
57 dnl - non-standard options 57 dnl - non-standard options
58 dnl - suport for extra-verbosity 58 dnl - suport for extra-verbosity
59 dnl - ordinary libs are handled separately from X libs (might be a mistake) 59 dnl - ordinary libs are handled separately from X libs (might be a mistake)
60 dnl - various random kludges (e.g. -with-dnet=no 60 dnl - various random kludges (e.g. -with-dnet=no)
61 61
62 dnl PRINT_VAR(var var ...) prints values of shell variables 62 dnl PRINT_VAR(var var ...) prints values of shell variables
63 define([PRINT_VAR],[for var in patsubst([$1],[[ 63 define([PRINT_VAR],[for var in patsubst([$1],[[
64 ]+],[ ]); do eval "echo \"$var = '\$$var'\""; done]) 64 ]+],[ ]); do eval "echo \"$var = '\$$var'\""; done])
65 65
1106 dnl DEC OSF 1106 dnl DEC OSF
1107 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;; 1107 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
1108 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;; 1108 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
1109 *-dec-osf3.[[2-9]] ) opsys=decosf3-2 ;; 1109 *-dec-osf3.[[2-9]] ) opsys=decosf3-2 ;;
1110 *-dec-osf3* ) opsys=decosf3-1 ;; 1110 *-dec-osf3* ) opsys=decosf3-1 ;;
1111 *-dec-osf4* ) opsys=decosf4-0 ;; 1111 *-dec-osf[[4-9]]* ) opsys=decosf4-0 ;;
1112 1112
1113 dnl DEC Ultrix 1113 dnl DEC Ultrix
1114 *-*-ultrix[[0-3]].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;; 1114 *-*-ultrix[[0-3]].* | *-*-ultrix4.0* ) opsys=bsd4-2 ;;
1115 *-*-ultrix4.[[12]]* ) opsys=bsd4-3 ;; 1115 *-*-ultrix4.[[12]]* ) opsys=bsd4-3 ;;
1116 *-*-ultrix* ) opsys=ultrix4-3 ;; 1116 *-*-ultrix* ) opsys=ultrix4-3 ;;
2708 2708
2709 AC_CHECK_FUNCS(XConvertCase) 2709 AC_CHECK_FUNCS(XConvertCase)
2710 2710
2711 AC_CHECK_HEADERS(X11/Xlocale.h) 2711 AC_CHECK_HEADERS(X11/Xlocale.h)
2712 2712
2713 dnl remove this - we should avoid checking for specific OS 2713 dnl XFree86 has a non-standard prototype for this X11R6 function
2714 AC_MSG_CHECKING(for XFree86) 2714 AC_CHECK_FUNCS(XRegisterIMInstantiateCallback)
2715 if test -d "/usr/X386/include" -o \ 2715 AC_MSG_CHECKING(for standard XRegisterIMInstantiateCallback prototype)
2716 -f "/etc/XF86Config" -o \ 2716 AC_TRY_COMPILE([
2717 -f "/etc/X11/XF86Config" -o \ 2717 #define NeedFunctionPrototypes 1
2718 -f "/usr/X11R6/lib/X11/XF86Config"; then 2718 #include <X11/Xlib.h>
2719 AC_MSG_RESULT(yes) 2719 extern Bool XRegisterIMInstantiateCallback(
2720 AC_DEFINE(HAVE_XFREE386) 2720 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
2721 else 2721 ], [],
2722 AC_MSG_RESULT(no) 2722 [AC_MSG_RESULT(yes)],
2723 fi 2723 [AC_MSG_RESULT(no)
2724 AC_DEFINE(XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE)])
2724 2725
2725 dnl autodetect -lXmu 2726 dnl autodetect -lXmu
2726 test -z "$with_xmu" && { AC_CHECK_LIB(Xmu, XmuReadBitmapDataFromFile, 2727 test -z "$with_xmu" && { AC_CHECK_LIB(Xmu, XmuReadBitmapDataFromFile,
2727 with_xmu=yes, with_xmu=no) } 2728 with_xmu=yes, with_xmu=no) }
2728 if test "$with_xmu" = "no"; then 2729 if test "$with_xmu" = "no"; then
3555 fi 3556 fi
3556 3557
3557 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 utimes waitpid vsnprintf fsync ftruncate umask) 3558 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 utimes waitpid vsnprintf fsync ftruncate umask)
3558 3559
3559 dnl Check for PTY support functions. 3560 dnl Check for PTY support functions.
3560 dnl getpt is the preferred pty allocation method on glibc systems. 3561 dnl getpt is the preferred pty allocation method on glibc systems.
3561 dnl _getpt is the preferred pty allocation method on SGI systems. 3562 dnl _getpty is the preferred pty allocation method on SGI systems.
3562 dnl grantpt, unlockpt, ptsname are defined by Unix98. 3563 dnl grantpt, unlockpt, ptsname are defined by Unix98.
3563 AC_CHECK_FUNCS(getpt _getpt grantpt unlockpt ptsname killpg tcgetpgrp) 3564 AC_CHECK_FUNCS(getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp)
3564 3565
3565 dnl openpty is the preferred pty allocation method on BSD and Tru64 systems. 3566 dnl openpty is the preferred pty allocation method on BSD and Tru64 systems.
3566 dnl openpty might be declared in pty.h or in libutil.h. 3567 dnl openpty might be declared in pty.h or in libutil.h.
3567 AC_CHECK_FUNC(openpty, have_openpty=yes, [ 3568 AC_CHECK_FUNC(openpty, have_openpty=yes, [
3568 AC_CHECK_LIB(util, openpty, have_openpty=yes need_libutil=yes)]) 3569 AC_CHECK_LIB(util, openpty, have_openpty=yes need_libutil=yes)])
3572 test "$need_libutil" = "yes" && XE_APPEND(-lutil, libs_system) 3573 test "$need_libutil" = "yes" && XE_APPEND(-lutil, libs_system)
3573 fi 3574 fi
3574 3575
3575 dnl Check for STREAM support functions. 3576 dnl Check for STREAM support functions.
3576 dnl Confusingly, "str" means both "string" and "SysV Streams". 3577 dnl Confusingly, "str" means both "string" and "SysV Streams".
3577 AC_CHECK_HEADERS(sys/stropts.h) 3578 AC_CHECK_HEADERS(stropts.h)
3578 if test "$ac_cv_header_sys_stropts_h" = "yes"; then 3579 if test "$ac_cv_header_stropts_h" = "yes"; then
3579 AC_CHECK_FUNCS(isastream) 3580 AC_CHECK_FUNCS(isastream)
3580 AC_CHECK_HEADERS(sys/strtio.h) dnl TIOCSIGNAL 3581 AC_CHECK_HEADERS(strtio.h) dnl TIOCSIGNAL
3581 fi 3582 fi
3582 3583
3583 dnl Use our own realpath always. 3584 dnl Use our own realpath always.
3584 XE_ADD_OBJS(realpath.o) 3585 XE_ADD_OBJS(realpath.o)
3585 3586
3695 dnl HP-UX has a working alloca in libPW. 3696 dnl HP-UX has a working alloca in libPW.
3696 dnl case "${GCC}${opsys}" in hpux* ) 3697 dnl case "${GCC}${opsys}" in hpux* )
3697 dnl AC_CHECK_FUNC(alloca, [:], [AC_CHECK_LIB(PW, alloca)]) 3698 dnl AC_CHECK_FUNC(alloca, [:], [AC_CHECK_LIB(PW, alloca)])
3698 dnl esac 3699 dnl esac
3699 3700
3700 AC_FUNC_ALLOCA 3701 dnl AC_FUNC_ALLOCA doesn't know about DEC C's #pragma intrinsic(alloca)
3701 test -n "$ALLOCA" && XE_ADD_OBJS($ALLOCA) 3702 if test "$__DECC" != "yes"; then
3703 AC_FUNC_ALLOCA
3704 test -n "$ALLOCA" && XE_ADD_OBJS($ALLOCA)
3705 fi
3702 3706
3703 dnl Check whether vfork exists and works correctly. (This does more 3707 dnl Check whether vfork exists and works correctly. (This does more
3704 dnl than just check for its existence.) If so, it defines HAVE_VFORK_H. 3708 dnl than just check for its existence.) If so, it defines HAVE_VFORK_H.
3705 dnl If not, it defines vfork to be fork. 3709 dnl If not, it defines vfork to be fork.
3706 AC_FUNC_VFORK 3710 AC_FUNC_VFORK