comparison configure @ 3830:e58f4b9ab1ad

[xemacs-hg @ 2007-02-15 16:11:52 by stephent] Adapt canna autodetection to current reality. <878xeze6qj.fsf@uwakimon.sk.tsukuba.ac.jp>
author stephent
date Thu, 15 Feb 2007 16:12:19 +0000
parents 5f25b1501bcd
children 52a0a6d40f16
comparison
equal deleted inserted replaced
3829:5320274f018b 3830:e58f4b9ab1ad
28678 _ACEOF 28678 _ACEOF
28679 28679
28680 fi 28680 fi
28681 fi 28681 fi
28682 28682
28683 canna_includes_found=no 28683 have_canna=no
28684 if test "$with_canna" != "no"; then 28684 if test "$with_canna" != "no"; then
28685 if test "${ac_cv_header_canna_jrkanji_h+set}" = set; then 28685 save_c_switch_site="$c_switch_site"
28686 for canna_include_path in "" " -I/usr/local/canna/include"; do
28687 for canna_wchar_aware in "" " -DCANNA_NEW_WCHAR_AWARE=1"; do
28688 c_switch_site="$save_c_switch_site$canna_include_path$canna_wchar_aware"
28689 # defeat autoconf's cache mechanism
28690 $as_unset ac_cv_header_canna_jrkanji_h
28691 $as_unset ac_cv_header_canna_RK_h
28692 # using $ac_header_compiler is a hack, but autoconf doesn't let us
28693 # get at this information otherwise :-(
28694 if test "${ac_cv_header_canna_jrkanji_h+set}" = set; then
28686 echo "$as_me:$LINENO: checking for canna/jrkanji.h" >&5 28695 echo "$as_me:$LINENO: checking for canna/jrkanji.h" >&5
28687 echo $ECHO_N "checking for canna/jrkanji.h... $ECHO_C" >&6 28696 echo $ECHO_N "checking for canna/jrkanji.h... $ECHO_C" >&6
28688 if test "${ac_cv_header_canna_jrkanji_h+set}" = set; then 28697 if test "${ac_cv_header_canna_jrkanji_h+set}" = set; then
28689 echo $ECHO_N "(cached) $ECHO_C" >&6 28698 echo $ECHO_N "(cached) $ECHO_C" >&6
28690 fi 28699 fi
28818 echo "$as_me:$LINENO: result: $ac_cv_header_canna_jrkanji_h" >&5 28827 echo "$as_me:$LINENO: result: $ac_cv_header_canna_jrkanji_h" >&5
28819 echo "${ECHO_T}$ac_cv_header_canna_jrkanji_h" >&6 28828 echo "${ECHO_T}$ac_cv_header_canna_jrkanji_h" >&6
28820 28829
28821 fi 28830 fi
28822 if test $ac_cv_header_canna_jrkanji_h = yes; then 28831 if test $ac_cv_header_canna_jrkanji_h = yes; then
28823 canna_includes_found=yes 28832 if test "${ac_cv_header_canna_RK_h+set}" = set; then
28824 fi
28825
28826
28827 fi
28828 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \
28829 -d "/usr/local/canna/include"; then
28830 save_c_switch_site="$c_switch_site"
28831 c_switch_site="$c_switch_site -I/usr/local/canna/include"
28832 if test "${ac_cv_header_canna_jrkanji_h+set}" = set; then
28833 echo "$as_me:$LINENO: checking for canna/jrkanji.h" >&5
28834 echo $ECHO_N "checking for canna/jrkanji.h... $ECHO_C" >&6
28835 if test "${ac_cv_header_canna_jrkanji_h+set}" = set; then
28836 echo $ECHO_N "(cached) $ECHO_C" >&6
28837 fi
28838 echo "$as_me:$LINENO: result: $ac_cv_header_canna_jrkanji_h" >&5
28839 echo "${ECHO_T}$ac_cv_header_canna_jrkanji_h" >&6
28840 else
28841 # Is the header compilable?
28842 echo "$as_me:$LINENO: checking canna/jrkanji.h usability" >&5
28843 echo $ECHO_N "checking canna/jrkanji.h usability... $ECHO_C" >&6
28844 cat >conftest.$ac_ext <<_ACEOF
28845 /* confdefs.h. */
28846 _ACEOF
28847 cat confdefs.h >>conftest.$ac_ext
28848 cat >>conftest.$ac_ext <<_ACEOF
28849 /* end confdefs.h. */
28850 $ac_includes_default
28851 #include <canna/jrkanji.h>
28852 _ACEOF
28853 rm -f conftest.$ac_objext
28854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28855 (eval $ac_compile) 2>conftest.er1
28856 ac_status=$?
28857 grep -v '^ *+' conftest.er1 >conftest.err
28858 rm -f conftest.er1
28859 cat conftest.err >&5
28860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28861 (exit $ac_status); } &&
28862 { ac_try='test -z "$ac_c_werror_flag"
28863 || test ! -s conftest.err'
28864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28865 (eval $ac_try) 2>&5
28866 ac_status=$?
28867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28868 (exit $ac_status); }; } &&
28869 { ac_try='test -s conftest.$ac_objext'
28870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28871 (eval $ac_try) 2>&5
28872 ac_status=$?
28873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28874 (exit $ac_status); }; }; then
28875 ac_header_compiler=yes
28876 else
28877 echo "$as_me: failed program was:" >&5
28878 sed 's/^/| /' conftest.$ac_ext >&5
28879
28880 ac_header_compiler=no
28881 fi
28882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28883 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28884 echo "${ECHO_T}$ac_header_compiler" >&6
28885
28886 # Is the header present?
28887 echo "$as_me:$LINENO: checking canna/jrkanji.h presence" >&5
28888 echo $ECHO_N "checking canna/jrkanji.h presence... $ECHO_C" >&6
28889 cat >conftest.$ac_ext <<_ACEOF
28890 /* confdefs.h. */
28891 _ACEOF
28892 cat confdefs.h >>conftest.$ac_ext
28893 cat >>conftest.$ac_ext <<_ACEOF
28894 /* end confdefs.h. */
28895 #include <canna/jrkanji.h>
28896 _ACEOF
28897 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28898 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28899 ac_status=$?
28900 grep -v '^ *+' conftest.er1 >conftest.err
28901 rm -f conftest.er1
28902 cat conftest.err >&5
28903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28904 (exit $ac_status); } >/dev/null; then
28905 if test -s conftest.err; then
28906 ac_cpp_err=$ac_c_preproc_warn_flag
28907 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28908 else
28909 ac_cpp_err=
28910 fi
28911 else
28912 ac_cpp_err=yes
28913 fi
28914 if test -z "$ac_cpp_err"; then
28915 ac_header_preproc=yes
28916 else
28917 echo "$as_me: failed program was:" >&5
28918 sed 's/^/| /' conftest.$ac_ext >&5
28919
28920 ac_header_preproc=no
28921 fi
28922 rm -f conftest.err conftest.$ac_ext
28923 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28924 echo "${ECHO_T}$ac_header_preproc" >&6
28925
28926 # So? What about this header?
28927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28928 yes:no: )
28929 { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: accepted by the compiler, rejected by the preprocessor!" >&5
28930 echo "$as_me: WARNING: canna/jrkanji.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28931 { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: proceeding with the compiler's result" >&5
28932 echo "$as_me: WARNING: canna/jrkanji.h: proceeding with the compiler's result" >&2;}
28933 ac_header_preproc=yes
28934 ;;
28935 no:yes:* )
28936 { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: present but cannot be compiled" >&5
28937 echo "$as_me: WARNING: canna/jrkanji.h: present but cannot be compiled" >&2;}
28938 { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: check for missing prerequisite headers?" >&5
28939 echo "$as_me: WARNING: canna/jrkanji.h: check for missing prerequisite headers?" >&2;}
28940 { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: see the Autoconf documentation" >&5
28941 echo "$as_me: WARNING: canna/jrkanji.h: see the Autoconf documentation" >&2;}
28942 { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: section \"Present But Cannot Be Compiled\"" >&5
28943 echo "$as_me: WARNING: canna/jrkanji.h: section \"Present But Cannot Be Compiled\"" >&2;}
28944 { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: proceeding with the preprocessor's result" >&5
28945 echo "$as_me: WARNING: canna/jrkanji.h: proceeding with the preprocessor's result" >&2;}
28946 { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: in the future, the compiler will take precedence" >&5
28947 echo "$as_me: WARNING: canna/jrkanji.h: in the future, the compiler will take precedence" >&2;}
28948 (
28949 cat <<\_ASBOX
28950 ## ------------------------------------- ##
28951 ## Report this to xemacs-beta@xemacs.org ##
28952 ## ------------------------------------- ##
28953 _ASBOX
28954 ) |
28955 sed "s/^/$as_me: WARNING: /" >&2
28956 ;;
28957 esac
28958 echo "$as_me:$LINENO: checking for canna/jrkanji.h" >&5
28959 echo $ECHO_N "checking for canna/jrkanji.h... $ECHO_C" >&6
28960 if test "${ac_cv_header_canna_jrkanji_h+set}" = set; then
28961 echo $ECHO_N "(cached) $ECHO_C" >&6
28962 else
28963 ac_cv_header_canna_jrkanji_h=$ac_header_preproc
28964 fi
28965 echo "$as_me:$LINENO: result: $ac_cv_header_canna_jrkanji_h" >&5
28966 echo "${ECHO_T}$ac_cv_header_canna_jrkanji_h" >&6
28967
28968 fi
28969 if test $ac_cv_header_canna_jrkanji_h = yes; then
28970 canna_includes_found=yes
28971 fi
28972
28973
28974 if test "$canna_includes_found" != "yes"; then
28975 c_switch_site="$save_c_switch_site"
28976 with_canna="no"
28977 fi
28978 fi
28979
28980 test -z "$with_canna" && { if test "${ac_cv_header_canna_RK_h+set}" = set; then
28981 echo "$as_me:$LINENO: checking for canna/RK.h" >&5 28833 echo "$as_me:$LINENO: checking for canna/RK.h" >&5
28982 echo $ECHO_N "checking for canna/RK.h... $ECHO_C" >&6 28834 echo $ECHO_N "checking for canna/RK.h... $ECHO_C" >&6
28983 if test "${ac_cv_header_canna_RK_h+set}" = set; then 28835 if test "${ac_cv_header_canna_RK_h+set}" = set; then
28984 echo $ECHO_N "(cached) $ECHO_C" >&6 28836 echo $ECHO_N "(cached) $ECHO_C" >&6
28985 fi 28837 fi
29113 echo "$as_me:$LINENO: result: $ac_cv_header_canna_RK_h" >&5 28965 echo "$as_me:$LINENO: result: $ac_cv_header_canna_RK_h" >&5
29114 echo "${ECHO_T}$ac_cv_header_canna_RK_h" >&6 28966 echo "${ECHO_T}$ac_cv_header_canna_RK_h" >&6
29115 28967
29116 fi 28968 fi
29117 if test $ac_cv_header_canna_RK_h = yes; then 28969 if test $ac_cv_header_canna_RK_h = yes; then
29118 : 28970 have_canna=$ac_header_compiler
29119 else 28971 fi
29120 with_canna=no 28972
29121 fi 28973
29122 28974 fi
29123 } 28975
29124 test -z "$with_canna" && { echo "$as_me:$LINENO: checking for RkBgnBun in -lRKC" >&5 28976
28977 test "$have_canna" = "yes" && break
28978 { echo "$as_me:$LINENO: WARNING: You may ignore any *Present but not compiled* message
28979 from autoconf. We detect that condition and recheck, but there
28980 is no way to suppress autoconf's message." >&5
28981 echo "$as_me: WARNING: You may ignore any *Present but not compiled* message
28982 from autoconf. We detect that condition and recheck, but there
28983 is no way to suppress autoconf's message." >&2;}
28984 done
28985 test "$have_canna" = "yes" && break
28986 done
28987 if test "$have_canna" = "yes"; then
28988 c_switch_site="$save_c_switch_site$canna_include_path"
28989 else
28990 c_switch_site="$save_c_switch_site"
28991 fi
28992 fi
28993
28994 test "$have_canna" = "yes" && { echo "$as_me:$LINENO: checking for RkBgnBun in -lRKC" >&5
29125 echo $ECHO_N "checking for RkBgnBun in -lRKC... $ECHO_C" >&6 28995 echo $ECHO_N "checking for RkBgnBun in -lRKC... $ECHO_C" >&6
29126 if test "${ac_cv_lib_RKC_RkBgnBun+set}" = set; then 28996 if test "${ac_cv_lib_RKC_RkBgnBun+set}" = set; then
29127 echo $ECHO_N "(cached) $ECHO_C" >&6 28997 echo $ECHO_N "(cached) $ECHO_C" >&6
29128 else 28998 else
29129 ac_check_lib_save_LIBS=$LIBS 28999 ac_check_lib_save_LIBS=$LIBS
29186 echo "$as_me:$LINENO: result: $ac_cv_lib_RKC_RkBgnBun" >&5 29056 echo "$as_me:$LINENO: result: $ac_cv_lib_RKC_RkBgnBun" >&5
29187 echo "${ECHO_T}$ac_cv_lib_RKC_RkBgnBun" >&6 29057 echo "${ECHO_T}$ac_cv_lib_RKC_RkBgnBun" >&6
29188 if test $ac_cv_lib_RKC_RkBgnBun = yes; then 29058 if test $ac_cv_lib_RKC_RkBgnBun = yes; then
29189 : 29059 :
29190 else 29060 else
29191 with_canna=no 29061 have_canna=no
29192 fi 29062 fi
29193 } 29063 }
29194 test -z "$with_canna" && { echo "$as_me:$LINENO: checking for jrKanjiControl in -lcanna" >&5 29064 test "$have_canna" = "yes" && { echo "$as_me:$LINENO: checking for jrKanjiControl in -lcanna" >&5
29195 echo $ECHO_N "checking for jrKanjiControl in -lcanna... $ECHO_C" >&6 29065 echo $ECHO_N "checking for jrKanjiControl in -lcanna... $ECHO_C" >&6
29196 if test "${ac_cv_lib_canna_jrKanjiControl+set}" = set; then 29066 if test "${ac_cv_lib_canna_jrKanjiControl+set}" = set; then
29197 echo $ECHO_N "(cached) $ECHO_C" >&6 29067 echo $ECHO_N "(cached) $ECHO_C" >&6
29198 else 29068 else
29199 ac_check_lib_save_LIBS=$LIBS 29069 ac_check_lib_save_LIBS=$LIBS
29256 echo "$as_me:$LINENO: result: $ac_cv_lib_canna_jrKanjiControl" >&5 29126 echo "$as_me:$LINENO: result: $ac_cv_lib_canna_jrKanjiControl" >&5
29257 echo "${ECHO_T}$ac_cv_lib_canna_jrKanjiControl" >&6 29127 echo "${ECHO_T}$ac_cv_lib_canna_jrKanjiControl" >&6
29258 if test $ac_cv_lib_canna_jrKanjiControl = yes; then 29128 if test $ac_cv_lib_canna_jrKanjiControl = yes; then
29259 : 29129 :
29260 else 29130 else
29261 with_canna=no 29131 have_canna=no
29262 fi 29132 fi
29263 } 29133 }
29264 test -z "$with_canna" && with_canna=yes 29134 if test "$have_canna" = "yes"; then
29265 if test "$with_canna" = "yes"; then
29266 cat >>confdefs.h <<\_ACEOF 29135 cat >>confdefs.h <<\_ACEOF
29267 #define HAVE_CANNA 1 29136 #define HAVE_CANNA 1
29137 _ACEOF
29138
29139 test -n "$canna_wchar_aware" && cat >>confdefs.h <<\_ACEOF
29140 #define CANNA_NEW_WCHAR_AWARE 1
29268 _ACEOF 29141 _ACEOF
29269 29142
29270 MAKE_SUBDIR="$MAKE_SUBDIR modules/canna" && if test "$verbose" = "yes"; then echo " Appending \"modules/canna\" to \$MAKE_SUBDIR"; fi 29143 MAKE_SUBDIR="$MAKE_SUBDIR modules/canna" && if test "$verbose" = "yes"; then echo " Appending \"modules/canna\" to \$MAKE_SUBDIR"; fi
29271 need_modules_common=yes 29144 need_modules_common=yes
29272 if test "$with_modules" = "yes"; then 29145 if test "$with_modules" = "yes"; then
29273 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR modules/canna" && if test "$verbose" = "yes"; then echo " Appending \"modules/canna\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi 29146 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR modules/canna" && if test "$verbose" = "yes"; then echo " Appending \"modules/canna\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
29274 fi 29147 fi
29275 canna_libs="-lcanna -lRKC $canna_libs" && if test "$verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$canna_libs"; fi 29148 canna_libs="-lcanna -lRKC $canna_libs" && if test "$verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$canna_libs"; fi
29149 elif test "$with_canna" != "no"; then
29150 { echo "$as_me:$LINENO: WARNING: Canna configuration failed. If you expected success,
29151 maybe you need --with-site-prefixes=/usr/local/canna?" >&5
29152 echo "$as_me: WARNING: Canna configuration failed. If you expected success,
29153 maybe you need --with-site-prefixes=/usr/local/canna?" >&2;}
29276 fi 29154 fi
29277 29155
29278 29156
29279 else for feature in xim canna wnn; do 29157 else for feature in xim canna wnn; do
29280 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then 29158 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
39906 test "$enable_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)." 39784 test "$enable_mule" = yes && echo " Compiling in support for Mule (multi-lingual Emacs)."
39907 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)." 39785 test "$with_xim" != no && echo " Compiling in support for XIM (X11R5+ I18N input method)."
39908 test "$with_xim" = motif && echo " - Using Motif to provide XIM support." 39786 test "$with_xim" = motif && echo " - Using Motif to provide XIM support."
39909 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support." 39787 test "$with_xim" = xlib && echo " - Using raw Xlib to provide XIM support."
39910 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar." 39788 test "$with_xfs" = yes && echo " - Using XFontSet to provide bilingual menubar."
39911 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule." 39789 test "$have_canna" = yes && echo " Compiling in support for Canna on Mule."
39912 if test "$with_wnn" = yes; then 39790 if test "$with_wnn" = yes; then
39913 echo " Compiling in support for the WNN input method on Mule." 39791 echo " Compiling in support for the WNN input method on Mule."
39914 test "$with_wnn6" = yes && echo " - Using WNN version 6." 39792 test "$with_wnn6" = yes && echo " - Using WNN version 6."
39915 fi 39793 fi
39916 39794