comparison configure.in @ 2128:3c2d928e17ad

[xemacs-hg @ 2004-06-14 11:01:20 by stephent] wording nits in configure.in <871xkixw8h.fsf@tleepslib.sk.tsukuba.ac.jp> die if user request can't work <87wu2awhh3.fsf@tleepslib.sk.tsukuba.ac.jp> don't mix toolkits <87smcywh54.fsf@tleepslib.sk.tsukuba.ac.jp> do missing commits <87u0zgwfhi.fsf@tleepslib.sk.tsukuba.ac.jp> <867jxiqihl.fsf@comcast.net>
author stephent
date Mon, 14 Jun 2004 11:01:21 +0000
parents 9402c85dcf6f
children 646a9dd3e204
comparison
equal deleted inserted replaced
2127:4657b5a54253 2128:3c2d928e17ad
1761 AC_DEFINE(_POSIX_C_SOURCE,199506L) 1761 AC_DEFINE(_POSIX_C_SOURCE,199506L)
1762 dnl #### should this be 600? 1762 dnl #### should this be 600?
1763 AC_DEFINE(_XOPEN_SOURCE,500) 1763 AC_DEFINE(_XOPEN_SOURCE,500)
1764 AC_DEFINE(_XOPEN_SOURCE_EXTENDED) 1764 AC_DEFINE(_XOPEN_SOURCE_EXTENDED)
1765 ;; 1765 ;;
1766 freebsd4.9) 1766 freebsd4.[5-9])
1767 AC_DEFINE(_POSIX_C_SOURCE,199506L) 1767 AC_DEFINE(_POSIX_C_SOURCE,199506L)
1768 dnl #### Do we want these too? Apparently yes for _XOPEN_SOURCE=500. 1768 dnl #### Do we want these too? Apparently yes for _XOPEN_SOURCE=500.
1769 AC_DEFINE(_XOPEN_SOURCE,500) 1769 AC_DEFINE(_XOPEN_SOURCE,500)
1770 dnl AC_DEFINE(_XOPEN_SOURCE_EXTENDED) 1770 dnl AC_DEFINE(_XOPEN_SOURCE_EXTENDED)
1771 ;; 1771 ;;
2921 AC_DEFINE(HAVE_GTK) 2921 AC_DEFINE(HAVE_GTK)
2922 AC_SUBST(GTK_CONFIG) 2922 AC_SUBST(GTK_CONFIG)
2923 2923
2924 window_system=gtk 2924 window_system=gtk
2925 with_gtk=yes 2925 with_gtk=yes
2926 with_x11=no 2926 if test "$with_x11" != "no"; then
2927 AC_MSG_WARN([Configuring GTK, forcing with_x11 to no])
2928 with_x11=no
2929 fi
2930
2931 for feature in scrollbars toolbars menubars dialogs widgets
2932 do
2933 eval "feature_value=\${with_${feature}}"
2934 case "${feature_value}" in
2935 yes|no|gtk|"" )
2936 ;;
2937 * )
2938 AC_MSG_WARN([${feature_value} requested for ${feature}, forcing to gtk]) ;;
2939 esac
2940 done
2927 2941
2928 test "${with_scrollbars}" != "no" && with_scrollbars=gtk 2942 test "${with_scrollbars}" != "no" && with_scrollbars=gtk
2929 test "${with_toolbars}" != no && with_toolbars=gtk 2943 test "${with_toolbars}" != "no" && with_toolbars=gtk
2930 test "${with_menubars}" != "no" && with_menubars=gtk 2944 test "${with_menubars}" != "no" && with_menubars=gtk
2931 test "${with_dialogs}" != "no" && with_dialogs=gtk 2945 test "${with_dialogs}" != "no" && with_dialogs=gtk
2932 test "${with_widgets}" != "no" && with_widgets=gtk 2946 test "${with_widgets}" != "no" && with_widgets=gtk
2933 2947
2934 dnl Check for libglade support (it rocks) 2948 dnl Check for libglade support (it rocks)
4754 fi 4768 fi
4755 fi 4769 fi
4756 AC_DEFINE_UNQUOTED(CURSES_H_FILE, "${curses_h_file-curses.h}") 4770 AC_DEFINE_UNQUOTED(CURSES_H_FILE, "${curses_h_file-curses.h}")
4757 AC_DEFINE_UNQUOTED(TERM_H_FILE, "${term_h_file-term.h}") 4771 AC_DEFINE_UNQUOTED(TERM_H_FILE, "${term_h_file-term.h}")
4758 4772
4759 dnl Autodetect gpm 4773 dnl General Purpose Mouse (libgpm) support
4760 test -z "$with_gpm" && { AC_CHECK_HEADER(gpm.h, , with_gpm=no) } 4774 if test "$with_gpm" != "no"; then
4761 test -z "$with_gpm" && { AC_CHECK_LIB(gpm, Gpm_Open, with_gpm=yes, with_gpm=no) } 4775 AC_CHECK_HEADER(gpm.h, [
4762 if test "$with_gpm" = "yes"; then 4776 AC_CHECK_LIB(gpm, Gpm_Open, have_gpm=yes)])
4763 AC_DEFINE(HAVE_GPM) 4777 if test "$have_gpm" = "yes"; then
4764 XE_PREPEND(-lgpm, LIBS) 4778 with_gpm=yes
4779 AC_DEFINE(HAVE_GPM)
4780 XE_PREPEND(-lgpm, LIBS)
4781 else
4782 test "$with_gpm" = "yes" && \
4783 XE_DIE("GPM requested, but gpm.h or libgpm seems to be missing.")
4784 with_gpm=no
4785 fi
4765 fi 4786 fi
4766 4787
4767 else dnl "$with_tty" = "no" 4788 else dnl "$with_tty" = "no"
4768 for feature in ncurses gpm; do 4789 for feature in ncurses gpm; do
4769 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then 4790 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
5552 if test "$use_union_type" = yes ; then 5573 if test "$use_union_type" = yes ; then
5553 echo " Using the union type for Lisp_Objects." 5574 echo " Using the union type for Lisp_Objects."
5554 echo " WARNING: ---------------------------------------------------------" 5575 echo " WARNING: ---------------------------------------------------------"
5555 echo " WARNING: This tends to trigger compiler bugs, especially when" 5576 echo " WARNING: This tends to trigger compiler bugs, especially when"
5556 echo " WARNING: combined with MULE and ERROR_CHECKING. Crashes have" 5577 echo " WARNING: combined with MULE and ERROR_CHECKING. Crashes have"
5557 echo " WARNING: been seen with various versions of GCC, and recently" 5578 echo " WARNING: been seen with various versions of GCC (up to about 2.95),"
5558 echo " WARNING: with Visual C++ as well." 5579 echo " WARNING: and recently with Visual C++ as well (mid-2003)."
5580 echo " WARNING: More recent versions may be safer, or not."
5559 echo " WARNING: ---------------------------------------------------------" 5581 echo " WARNING: ---------------------------------------------------------"
5560 fi 5582 fi
5561 test "$use_union_type" = yes && echo " WARNING: Use of the union type may cause crashes due to compiler bugs."
5562 test "$use_kkcc" = yes && echo " Using the new GC algorithms." 5583 test "$use_kkcc" = yes && echo " Using the new GC algorithms."
5563 test "$pdump" = yes && echo " Using the new portable dumper." 5584 test "$pdump" = yes && echo " Using the new portable dumper."
5564 test "$debug" = yes && echo " Compiling in support for extra debugging code." 5585 test "$debug" = yes && echo " Compiling in support for extra debugging code."
5565 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)." 5586 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
5566 if test "$error_check_extents $error_check_types $error_check_text $error_check_gc $error_check_malloc $error_check_glyphs $error_check_byte_code $error_check_display $error_check_structures" \ 5587 if test "$error_check_extents $error_check_types $error_check_text $error_check_gc $error_check_malloc $error_check_glyphs $error_check_byte_code $error_check_display $error_check_structures" \
5567 != "no no no no no no no no no"; then 5588 != "no no no no no no no no no"; then
5589 echo " Compiling in support for runtime error checking."
5568 echo " WARNING: ---------------------------------------------------------" 5590 echo " WARNING: ---------------------------------------------------------"
5569 echo " WARNING: Compiling in support for runtime error checking."
5570 echo " WARNING: XEmacs will run noticeably more slowly as a result." 5591 echo " WARNING: XEmacs will run noticeably more slowly as a result."
5571 echo " WARNING: Error checking is on by default for XEmacs beta releases." 5592 echo " WARNING: Error checking is on by default for XEmacs beta releases."
5572 echo " WARNING: ---------------------------------------------------------" 5593 echo " WARNING: ---------------------------------------------------------"
5573 fi 5594 fi
5574 echo "" 5595 echo ""