Mercurial > hg > xemacs-beta
comparison configure.in @ 414:da8ed4261e83 r21-2-15
Import from CVS: tag r21-2-15
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:21:38 +0200 |
parents | 697ef44129c6 |
children | ebe98a74bd68 |
comparison
equal
deleted
inserted
replaced
413:901169e5ca31 | 414:da8ed4261e83 |
---|---|
480 with_xface | \ | 480 with_xface | \ |
481 with_gif | \ | 481 with_gif | \ |
482 with_jpeg | \ | 482 with_jpeg | \ |
483 with_png | \ | 483 with_png | \ |
484 with_tiff | \ | 484 with_tiff | \ |
485 with_session | \ | 485 with_wmcommand | \ |
486 with_xmu | \ | 486 with_xmu | \ |
487 with_purify | \ | 487 with_purify | \ |
488 with_quantify | \ | 488 with_quantify | \ |
489 with_toolbars | \ | 489 with_toolbars | \ |
490 with_tty | \ | 490 with_tty | \ |
659 nogc ) error_check_gc=no ;; | 659 nogc ) error_check_gc=no ;; |
660 | 660 |
661 malloc ) error_check_malloc=yes ;; | 661 malloc ) error_check_malloc=yes ;; |
662 nomalloc ) error_check_malloc=no ;; | 662 nomalloc ) error_check_malloc=no ;; |
663 | 663 |
664 byte_code ) error_check_byte_code=yes ;; | |
665 nobyte_code ) error_check_byte_code=no ;; | |
666 | |
664 * ) bogus_error_check=yes ;; | 667 * ) bogus_error_check=yes ;; |
665 esac | 668 esac |
666 if test "$bogus_error_check" -o \ | 669 if test "$bogus_error_check" -o \ |
667 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then | 670 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then |
668 if test "$error_check_default" = yes ; then | 671 if test "$error_check_default" = yes ; then |
669 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', and \`nomalloc'." | 672 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', \`nomalloc', and \`nobyte-code'." |
670 else | 673 else |
671 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', and \`malloc'." | 674 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', \`malloc', and \`byte-code'." |
672 fi | 675 fi |
673 USAGE_ERROR(["Valid types for the \`--$optname' option are: | 676 USAGE_ERROR(["Valid types for the \`--$optname' option are: |
674 $types."]) | 677 $types."]) |
675 elif test -n "$new_default" ; then | 678 elif test -n "$new_default" ; then |
676 error_check_extents=$new_default | 679 error_check_extents=$new_default |
677 error_check_typecheck=$new_default | 680 error_check_typecheck=$new_default |
678 error_check_bufpos=$new_default | 681 error_check_bufpos=$new_default |
679 error_check_gc=$new_default | 682 error_check_gc=$new_default |
680 error_check_malloc=$new_default | 683 error_check_malloc=$new_default |
684 error_check_byte_code=$new_default | |
681 new_default= # reset this | 685 new_default= # reset this |
682 fi | 686 fi |
683 echeck_notfirst=true | 687 echeck_notfirst=true |
684 done | 688 done |
685 ;; | 689 ;; |
907 dnl ---------------------------------------- | 911 dnl ---------------------------------------- |
908 dnl Find out which version of XEmacs this is | 912 dnl Find out which version of XEmacs this is |
909 dnl ---------------------------------------- | 913 dnl ---------------------------------------- |
910 . "$srcdir/version.sh" || exit 1; | 914 . "$srcdir/version.sh" || exit 1; |
911 dnl Must do the following first to determine verbosity for AC_DEFINE | 915 dnl Must do the following first to determine verbosity for AC_DEFINE |
912 if test -n "$emacs_beta_version"; then beta=yes; else beta=no; fi | 916 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi |
913 : "${extra_verbose=$beta}" | 917 : "${extra_verbose=$beta}" |
914 version="${emacs_major_version}.${emacs_minor_version}" | 918 version="${emacs_major_version}.${emacs_minor_version}" |
915 AC_DEFINE_UNQUOTED(EMACS_MAJOR_VERSION, $emacs_major_version) | 919 AC_DEFINE_UNQUOTED(EMACS_MAJOR_VERSION, $emacs_major_version) |
916 AC_DEFINE_UNQUOTED(EMACS_MINOR_VERSION, $emacs_minor_version) | 920 AC_DEFINE_UNQUOTED(EMACS_MINOR_VERSION, $emacs_minor_version) |
917 if test -n "$emacs_beta_version"; then | 921 if test -n "$emacs_beta_version" ; then |
918 version="${version}-b${emacs_beta_version}" | 922 if test "$beta" = "yes"; then |
919 AC_DEFINE_UNQUOTED(EMACS_BETA_VERSION, $emacs_beta_version) | 923 version="${version}-b${emacs_beta_version}" |
924 AC_DEFINE_UNQUOTED(EMACS_BETA_VERSION, $emacs_beta_version) | |
925 else | |
926 version="${version}.${emacs_beta_version}" | |
927 AC_DEFINE_UNQUOTED(EMACS_PATCH_LEVEL, $emacs_beta_version) | |
928 fi | |
920 fi | 929 fi |
921 AC_DEFINE_UNQUOTED(XEMACS_CODENAME, "$xemacs_codename") | 930 AC_DEFINE_UNQUOTED(XEMACS_CODENAME, "$xemacs_codename") |
922 AC_DEFINE_UNQUOTED(EMACS_VERSION, "$version") | 931 AC_DEFINE_UNQUOTED(EMACS_VERSION, "$version") |
923 | 932 |
924 if test "$with_infodock" = "yes"; then | 933 if test "$with_infodock" = "yes"; then |
944 dnl ---------------------------------- | 953 dnl ---------------------------------- |
945 dnl Error checking and debugging flags | 954 dnl Error checking and debugging flags |
946 dnl ---------------------------------- | 955 dnl ---------------------------------- |
947 dnl Error checking default to "yes" in beta versions, to "no" in releases. | 956 dnl Error checking default to "yes" in beta versions, to "no" in releases. |
948 dnl Same goes for --debug and --extra-verbosity. | 957 dnl Same goes for --debug and --extra-verbosity. |
949 if test -n "$emacs_beta_version"; then beta=yes; else beta=no; fi | 958 if test -n "$emacs_is_beta"; then beta=yes; else beta=no; fi |
950 test "${error_check_extents=$beta}" = yes && AC_DEFINE(ERROR_CHECK_EXTENTS) | 959 test "${error_check_extents=$beta}" = yes && AC_DEFINE(ERROR_CHECK_EXTENTS) |
951 test "${error_check_typecheck=$beta}" = yes && AC_DEFINE(ERROR_CHECK_TYPECHECK) | 960 test "${error_check_typecheck=$beta}" = yes && AC_DEFINE(ERROR_CHECK_TYPECHECK) |
952 test "${error_check_bufpos=$beta}" = yes && AC_DEFINE(ERROR_CHECK_BUFPOS) | 961 test "${error_check_bufpos=$beta}" = yes && AC_DEFINE(ERROR_CHECK_BUFPOS) |
953 test "${error_check_gc=$beta}" = yes && AC_DEFINE(ERROR_CHECK_GC) | 962 test "${error_check_gc=$beta}" = yes && AC_DEFINE(ERROR_CHECK_GC) |
954 test "${error_check_malloc=$beta}" = yes && AC_DEFINE(ERROR_CHECK_MALLOC) | 963 test "${error_check_malloc=$beta}" = yes && AC_DEFINE(ERROR_CHECK_MALLOC) |
964 test "${error_check_byte_code=$beta}" = yes && AC_DEFINE(ERROR_CHECK_BYTE_CODE) | |
955 dnl debug=yes must be set when error checking is present. This should be | 965 dnl debug=yes must be set when error checking is present. This should be |
956 dnl fixed up. | 966 dnl fixed up. |
957 dnl debug implies other options | 967 dnl debug implies other options |
958 if test "${debug:=$beta}" = "yes"; then | 968 if test "${debug:=$beta}" = "yes"; then |
959 use_assertions=yes memory_usage_stats=yes | 969 use_assertions=yes memory_usage_stats=yes |
1880 dnl Site prefixes take precedence over the standard places, but not over | 1890 dnl Site prefixes take precedence over the standard places, but not over |
1881 dnl site-includes and site-libraries. | 1891 dnl site-includes and site-libraries. |
1882 COLON_TO_SPACE(site_prefixes) | 1892 COLON_TO_SPACE(site_prefixes) |
1883 if test -n "$site_prefixes"; then | 1893 if test -n "$site_prefixes"; then |
1884 for dir in $site_prefixes; do | 1894 for dir in $site_prefixes; do |
1885 inc_dir="${dir}/include" | |
1886 lib_dir="${dir}/lib" | 1895 lib_dir="${dir}/lib" |
1887 if test ! -d "$dir"; then | 1896 if test ! -d "$dir"; then |
1888 XE_DIE("Invalid site prefix \`$dir': no such directory") | 1897 XE_DIE("Invalid site prefix \`$dir': no such directory") |
1889 elif test ! -d "$inc_dir"; then | |
1890 XE_DIE("Invalid site prefix \`$dir': no such directory \`$inc_dir'") | |
1891 elif test ! -d "$lib_dir"; then | 1898 elif test ! -d "$lib_dir"; then |
1892 XE_DIE("Invalid site prefix \`$dir': no such directory \`$lib_dir'") | 1899 XE_DIE("Invalid site prefix \`$dir': no such directory \`$lib_dir'") |
1893 else | 1900 else |
1894 XE_APPEND("-I$inc_dir", c_switch_site) | 1901 if test -d "$inc_dir"; then |
1902 XE_APPEND("-I$inc_dir", c_switch_site) | |
1903 fi | |
1895 XE_APPEND("-L$lib_dir", ld_switch_site) | 1904 XE_APPEND("-L$lib_dir", ld_switch_site) |
1896 fi | 1905 fi |
1897 done | 1906 done |
1898 fi | 1907 fi |
1899 | 1908 |
2517 dnl It ought to be reasonable to have no output device at all, and only use | 2526 dnl It ought to be reasonable to have no output device at all, and only use |
2518 dnl XEmacs in --batch mode. | 2527 dnl XEmacs in --batch mode. |
2519 dnl if test "$with_tty" = "no" ; then | 2528 dnl if test "$with_tty" = "no" ; then |
2520 dnl AC_MSG_ERROR([No window system support and no TTY support - Unable to proceed.]) | 2529 dnl AC_MSG_ERROR([No window system support and no TTY support - Unable to proceed.]) |
2521 dnl fi | 2530 dnl fi |
2522 for feature in tooltalk cde offix session xim xmu | 2531 for feature in tooltalk cde offix wmcommand xim xmu |
2523 do | 2532 do |
2524 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then | 2533 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then |
2525 AC_MSG_WARN([--with-$feature ignored: Not valid without X support]) | 2534 AC_MSG_WARN([--with-$feature ignored: Not valid without X support]) |
2526 fi | 2535 fi |
2527 eval "with_${feature}=no" | 2536 eval "with_${feature}=no" |
2540 case "$x_libraries" in *X11R4* ) | 2549 case "$x_libraries" in *X11R4* ) |
2541 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" | 2550 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" |
2542 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" | 2551 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" |
2543 esac | 2552 esac |
2544 | 2553 |
2545 dnl Enable or disable proper session-management | 2554 dnl Enable or disable proper handling of WM_COMMAND |
2546 AC_CHECKING(for session-management option); | 2555 AC_CHECKING(for WM_COMMAND option); |
2547 dnl if test "$with_session" = "yes"; then | 2556 dnl if test "$with_wmcommand" = "yes"; then |
2548 if test "$with_session" != "no"; then | 2557 if test "$with_wmcommand" != "no"; then |
2549 AC_DEFINE(HAVE_SESSION) | 2558 AC_DEFINE(HAVE_WMCOMMAND) |
2550 fi | 2559 fi |
2551 | 2560 |
2552 dnl Autodetect Xauth | 2561 dnl Autodetect Xauth |
2553 dnl -lXau is only used by gnuclient, so use a special variable for Xauth X libs | 2562 dnl -lXau is only used by gnuclient, so use a special variable for Xauth X libs |
2554 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no | 2563 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no |
3961 fi | 3970 fi |
3962 echo "" | 3971 echo "" |
3963 echo "$0 $quoted_arguments" | 3972 echo "$0 $quoted_arguments" |
3964 ) > Installation | 3973 ) > Installation |
3965 | 3974 |
3966 xemacs_betaname="" | 3975 if test ! -z ${emacs_beta_version} ; then |
3967 test ! -z "${emacs_beta_version}" && xemacs_betaname="-b${emacs_beta_version}" | 3976 if test -z "${emacs_is_beta}" ; then |
3977 xemacs_betaname=".${emacs_beta_version}" | |
3978 else | |
3979 xemacs_betaname="-b${emacs_beta_version}" | |
3980 fi | |
3981 else | |
3982 xemacs_betaname="" | |
3983 fi | |
3968 | 3984 |
3969 dnl Start stdout redirection to '| tee -a Installation' | 3985 dnl Start stdout redirection to '| tee -a Installation' |
3970 ( | 3986 ( |
3971 echo " | 3987 echo " |
3972 | 3988 |
4067 test "$with_cde" = yes && echo " Compiling in support for CDE." | 4083 test "$with_cde" = yes && echo " Compiling in support for CDE." |
4068 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk." | 4084 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk." |
4069 test "$with_offix" = yes && echo " Compiling in support for OffiX." | 4085 test "$with_offix" = yes && echo " Compiling in support for OffiX." |
4070 test "$with_dragndrop" = yes && echo " Compiling in EXPERIMENTAL support for Drag'n'Drop ($dragndrop_proto )." | 4086 test "$with_dragndrop" = yes && echo " Compiling in EXPERIMENTAL support for Drag'n'Drop ($dragndrop_proto )." |
4071 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop." | 4087 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop." |
4072 test "$with_session" != no && echo " Compiling in support for proper session-management." | 4088 test "$with_wmcommand" != no && echo " Compiling in support for proper WM_COMMAND handling." |
4073 case "$with_menubars" in | 4089 case "$with_menubars" in |
4074 lucid ) echo " Using Lucid menubars." ;; | 4090 lucid ) echo " Using Lucid menubars." ;; |
4075 motif ) echo " Using Motif menubars." | 4091 motif ) echo " Using Motif menubars." |
4076 echo " *WARNING* The Motif menubar implementation is currently buggy." | 4092 echo " *WARNING* The Motif menubar implementation is currently buggy." |
4077 echo " We recommend using the Lucid menubar instead." | 4093 echo " We recommend using the Lucid menubar instead." |