comparison configure @ 2131:646a9dd3e204

[xemacs-hg @ 2004-06-16 10:32:57 by stephent] autoconf hates me <87llinsv64.fsf@tleepslib.sk.tsukuba.ac.jp>
author stephent
date Wed, 16 Jun 2004 10:32:59 +0000
parents 9402c85dcf6f
children 702b5727498a
comparison
equal deleted inserted replaced
2130:b7a50f64e748 2131:646a9dd3e204
2542 #define _XOPEN_SOURCE_EXTENDED 1 2542 #define _XOPEN_SOURCE_EXTENDED 1
2543 EOF 2543 EOF
2544 } 2544 }
2545 2545
2546 ;; 2546 ;;
2547 freebsd4.9) 2547 freebsd4*)
2548 { test "$extra_verbose" = "yes" && cat << \EOF 2548 { test "$extra_verbose" = "yes" && cat << \EOF
2549 Defining _POSIX_C_SOURCE = 199506L 2549 Defining _POSIX_C_SOURCE = 199506L
2550 EOF 2550 EOF
2551 cat >> confdefs.h <<\EOF 2551 cat >> confdefs.h <<\EOF
2552 #define _POSIX_C_SOURCE 199506L 2552 #define _POSIX_C_SOURCE 199506L
4777 4777
4778 cat > conftest.$ac_ext <<EOF 4778 cat > conftest.$ac_ext <<EOF
4779 #line 4780 "configure" 4779 #line 4780 "configure"
4780 #include "confdefs.h" 4780 #include "confdefs.h"
4781 #include <stdio.h> 4781 #include <stdio.h>
4782 int main() 4782 #include <sys/types.h>
4783 main()
4783 { 4784 {
4784 FILE *f=fopen("conftestval", "w"); 4785 FILE *f=fopen("conftestval", "w");
4785 if (!f) return(1); 4786 if (!f) exit(1);
4786 fprintf(f, "%d\n", sizeof(short)); 4787 fprintf(f, "%d\n", sizeof(short));
4787 return(0); 4788 exit(0);
4788 } 4789 }
4789 EOF 4790 EOF
4790 if { (eval echo configure:4791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4791 if { (eval echo configure:4792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4791 then 4792 then
4792 ac_cv_sizeof_short=`cat conftestval` 4793 ac_cv_sizeof_short=`cat conftestval`
4793 else 4794 else
4794 conftest_rc="$?" 4795 conftest_rc="$?"
4795 echo "configure: failed program was:" >&5 4796 echo "configure: failed program was:" >&5
4813 echo "*** PANIC *** Configure tests are not working - compiler is broken." 4814 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4814 echo "*** PANIC *** Please examine config.log for compilation errors." 4815 echo "*** PANIC *** Please examine config.log for compilation errors."
4815 exit 1 4816 exit 1
4816 fi 4817 fi
4817 echo $ac_n "checking size of int""... $ac_c" 1>&6 4818 echo $ac_n "checking size of int""... $ac_c" 1>&6
4818 echo "configure:4819: checking size of int" >&5 4819 echo "configure:4820: checking size of int" >&5
4819 4820
4820 cat > conftest.$ac_ext <<EOF 4821 cat > conftest.$ac_ext <<EOF
4821 #line 4822 "configure" 4822 #line 4823 "configure"
4822 #include "confdefs.h" 4823 #include "confdefs.h"
4823 #include <stdio.h> 4824 #include <stdio.h>
4824 int main() 4825 #include <sys/types.h>
4826 main()
4825 { 4827 {
4826 FILE *f=fopen("conftestval", "w"); 4828 FILE *f=fopen("conftestval", "w");
4827 if (!f) return(1); 4829 if (!f) exit(1);
4828 fprintf(f, "%d\n", sizeof(int)); 4830 fprintf(f, "%d\n", sizeof(int));
4829 return(0); 4831 exit(0);
4830 } 4832 }
4831 EOF 4833 EOF
4832 if { (eval echo configure:4833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4834 if { (eval echo configure:4835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4833 then 4835 then
4834 ac_cv_sizeof_int=`cat conftestval` 4836 ac_cv_sizeof_int=`cat conftestval`
4835 else 4837 else
4836 conftest_rc="$?" 4838 conftest_rc="$?"
4837 echo "configure: failed program was:" >&5 4839 echo "configure: failed program was:" >&5
4849 EOF 4851 EOF
4850 } 4852 }
4851 4853
4852 4854
4853 echo $ac_n "checking size of long""... $ac_c" 1>&6 4855 echo $ac_n "checking size of long""... $ac_c" 1>&6
4854 echo "configure:4855: checking size of long" >&5 4856 echo "configure:4857: checking size of long" >&5
4855 4857
4856 cat > conftest.$ac_ext <<EOF 4858 cat > conftest.$ac_ext <<EOF
4857 #line 4858 "configure" 4859 #line 4860 "configure"
4858 #include "confdefs.h" 4860 #include "confdefs.h"
4859 #include <stdio.h> 4861 #include <stdio.h>
4860 int main() 4862 #include <sys/types.h>
4863 main()
4861 { 4864 {
4862 FILE *f=fopen("conftestval", "w"); 4865 FILE *f=fopen("conftestval", "w");
4863 if (!f) return(1); 4866 if (!f) exit(1);
4864 fprintf(f, "%d\n", sizeof(long)); 4867 fprintf(f, "%d\n", sizeof(long));
4865 return(0); 4868 exit(0);
4866 } 4869 }
4867 EOF 4870 EOF
4868 if { (eval echo configure:4869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4871 if { (eval echo configure:4872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4869 then 4872 then
4870 ac_cv_sizeof_long=`cat conftestval` 4873 ac_cv_sizeof_long=`cat conftestval`
4871 else 4874 else
4872 conftest_rc="$?" 4875 conftest_rc="$?"
4873 echo "configure: failed program was:" >&5 4876 echo "configure: failed program was:" >&5
4885 EOF 4888 EOF
4886 } 4889 }
4887 4890
4888 4891
4889 echo $ac_n "checking size of long long""... $ac_c" 1>&6 4892 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4890 echo "configure:4891: checking size of long long" >&5 4893 echo "configure:4894: checking size of long long" >&5
4891 4894
4892 cat > conftest.$ac_ext <<EOF 4895 cat > conftest.$ac_ext <<EOF
4893 #line 4894 "configure" 4896 #line 4897 "configure"
4894 #include "confdefs.h" 4897 #include "confdefs.h"
4895 #include <stdio.h> 4898 #include <stdio.h>
4896 int main() 4899 #include <sys/types.h>
4900 main()
4897 { 4901 {
4898 FILE *f=fopen("conftestval", "w"); 4902 FILE *f=fopen("conftestval", "w");
4899 if (!f) return(1); 4903 if (!f) exit(1);
4900 fprintf(f, "%d\n", sizeof(long long)); 4904 fprintf(f, "%d\n", sizeof(long long));
4901 return(0); 4905 exit(0);
4902 } 4906 }
4903 EOF 4907 EOF
4904 if { (eval echo configure:4905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4908 if { (eval echo configure:4909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4905 then 4909 then
4906 ac_cv_sizeof_long_long=`cat conftestval` 4910 ac_cv_sizeof_long_long=`cat conftestval`
4907 else 4911 else
4908 conftest_rc="$?" 4912 conftest_rc="$?"
4909 echo "configure: failed program was:" >&5 4913 echo "configure: failed program was:" >&5
4921 EOF 4925 EOF
4922 } 4926 }
4923 4927
4924 4928
4925 echo $ac_n "checking size of void *""... $ac_c" 1>&6 4929 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4926 echo "configure:4927: checking size of void *" >&5 4930 echo "configure:4931: checking size of void *" >&5
4927 4931
4928 cat > conftest.$ac_ext <<EOF 4932 cat > conftest.$ac_ext <<EOF
4929 #line 4930 "configure" 4933 #line 4934 "configure"
4930 #include "confdefs.h" 4934 #include "confdefs.h"
4931 #include <stdio.h> 4935 #include <stdio.h>
4932 int main() 4936 #include <sys/types.h>
4937 main()
4933 { 4938 {
4934 FILE *f=fopen("conftestval", "w"); 4939 FILE *f=fopen("conftestval", "w");
4935 if (!f) return(1); 4940 if (!f) exit(1);
4936 fprintf(f, "%d\n", sizeof(void *)); 4941 fprintf(f, "%d\n", sizeof(void *));
4937 return(0); 4942 exit(0);
4938 } 4943 }
4939 EOF 4944 EOF
4940 if { (eval echo configure:4941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4945 if { (eval echo configure:4946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4941 then 4946 then
4942 ac_cv_sizeof_void_p=`cat conftestval` 4947 ac_cv_sizeof_void_p=`cat conftestval`
4943 else 4948 else
4944 conftest_rc="$?" 4949 conftest_rc="$?"
4945 echo "configure: failed program was:" >&5 4950 echo "configure: failed program was:" >&5
4957 EOF 4962 EOF
4958 } 4963 }
4959 4964
4960 4965
4961 echo $ac_n "checking size of double""... $ac_c" 1>&6 4966 echo $ac_n "checking size of double""... $ac_c" 1>&6
4962 echo "configure:4963: checking size of double" >&5 4967 echo "configure:4968: checking size of double" >&5
4963 4968
4964 cat > conftest.$ac_ext <<EOF 4969 cat > conftest.$ac_ext <<EOF
4965 #line 4966 "configure" 4970 #line 4971 "configure"
4966 #include "confdefs.h" 4971 #include "confdefs.h"
4967 #include <stdio.h> 4972 #include <stdio.h>
4968 int main() 4973 #include <sys/types.h>
4974 main()
4969 { 4975 {
4970 FILE *f=fopen("conftestval", "w"); 4976 FILE *f=fopen("conftestval", "w");
4971 if (!f) return(1); 4977 if (!f) exit(1);
4972 fprintf(f, "%d\n", sizeof(double)); 4978 fprintf(f, "%d\n", sizeof(double));
4973 return(0); 4979 exit(0);
4974 } 4980 }
4975 EOF 4981 EOF
4976 if { (eval echo configure:4977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4982 if { (eval echo configure:4983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4977 then 4983 then
4978 ac_cv_sizeof_double=`cat conftestval` 4984 ac_cv_sizeof_double=`cat conftestval`
4979 else 4985 else
4980 conftest_rc="$?" 4986 conftest_rc="$?"
4981 echo "configure: failed program was:" >&5 4987 echo "configure: failed program was:" >&5
4994 } 5000 }
4995 5001
4996 5002
4997 5003
4998 echo $ac_n "checking for long file names""... $ac_c" 1>&6 5004 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4999 echo "configure:5000: checking for long file names" >&5 5005 echo "configure:5006: checking for long file names" >&5
5000 5006
5001 ac_cv_sys_long_file_names=yes 5007 ac_cv_sys_long_file_names=yes
5002 # Test for long file names in all the places we know might matter: 5008 # Test for long file names in all the places we know might matter:
5003 # . the current directory, where building will happen 5009 # . the current directory, where building will happen
5004 # $prefix/lib where we will be installing things 5010 # $prefix/lib where we will be installing things
5040 5046
5041 fi 5047 fi
5042 5048
5043 5049
5044 echo $ac_n "checking for sin""... $ac_c" 1>&6 5050 echo $ac_n "checking for sin""... $ac_c" 1>&6
5045 echo "configure:5046: checking for sin" >&5 5051 echo "configure:5052: checking for sin" >&5
5046 5052
5047 cat > conftest.$ac_ext <<EOF 5053 cat > conftest.$ac_ext <<EOF
5048 #line 5049 "configure" 5054 #line 5055 "configure"
5049 #include "confdefs.h" 5055 #include "confdefs.h"
5050 /* System header to define __stub macros and hopefully few prototypes, 5056 /* System header to define __stub macros and hopefully few prototypes,
5051 which can conflict with char sin(); below. */ 5057 which can conflict with char sin(); below. */
5052 #include <assert.h> 5058 #include <assert.h>
5053 /* Override any gcc2 internal prototype to avoid an error. */ 5059 /* Override any gcc2 internal prototype to avoid an error. */
5066 sin(); 5072 sin();
5067 #endif 5073 #endif
5068 5074
5069 ; return 0; } 5075 ; return 0; }
5070 EOF 5076 EOF
5071 if { (eval echo configure:5072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5077 if { (eval echo configure:5078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5072 rm -rf conftest* 5078 rm -rf conftest*
5073 eval "ac_cv_func_sin=yes" 5079 eval "ac_cv_func_sin=yes"
5074 else 5080 else
5075 echo "configure: failed program was:" >&5 5081 echo "configure: failed program was:" >&5
5076 cat conftest.$ac_ext >&5 5082 cat conftest.$ac_ext >&5
5084 : 5090 :
5085 else 5091 else
5086 echo "$ac_t""no" 1>&6 5092 echo "$ac_t""no" 1>&6
5087 5093
5088 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 5094 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
5089 echo "configure:5090: checking for sin in -lm" >&5 5095 echo "configure:5096: checking for sin in -lm" >&5
5090 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` 5096 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
5091 5097
5092 xe_check_libs=" -lm " 5098 xe_check_libs=" -lm "
5093 cat > conftest.$ac_ext <<EOF 5099 cat > conftest.$ac_ext <<EOF
5094 #line 5095 "configure" 5100 #line 5101 "configure"
5095 #include "confdefs.h" 5101 #include "confdefs.h"
5096 /* Override any gcc2 internal prototype to avoid an error. */ 5102 /* Override any gcc2 internal prototype to avoid an error. */
5097 /* We use char because int might match the return type of a gcc2 5103 /* We use char because int might match the return type of a gcc2
5098 builtin and then its argument prototype would still apply. */ 5104 builtin and then its argument prototype would still apply. */
5099 char sin(); 5105 char sin();
5100 5106
5101 int main() { 5107 int main() {
5102 sin() 5108 sin()
5103 ; return 0; } 5109 ; return 0; }
5104 EOF 5110 EOF
5105 if { (eval echo configure:5106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5111 if { (eval echo configure:5112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5106 rm -rf conftest* 5112 rm -rf conftest*
5107 eval "ac_cv_lib_$ac_lib_var=yes" 5113 eval "ac_cv_lib_$ac_lib_var=yes"
5108 else 5114 else
5109 echo "configure: failed program was:" >&5 5115 echo "configure: failed program was:" >&5
5110 cat conftest.$ac_ext >&5 5116 cat conftest.$ac_ext >&5
5135 5141
5136 fi 5142 fi
5137 5143
5138 5144
5139 cat > conftest.$ac_ext <<EOF 5145 cat > conftest.$ac_ext <<EOF
5140 #line 5141 "configure" 5146 #line 5147 "configure"
5141 #include "confdefs.h" 5147 #include "confdefs.h"
5142 #include <math.h> 5148 #include <math.h>
5143 int main() { 5149 int main() {
5144 return atanh(1.0) + asinh(1.0) + acosh(1.0); 5150 return atanh(1.0) + asinh(1.0) + acosh(1.0);
5145 ; return 0; } 5151 ; return 0; }
5146 EOF 5152 EOF
5147 if { (eval echo configure:5148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5153 if { (eval echo configure:5154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5148 rm -rf conftest* 5154 rm -rf conftest*
5149 { test "$extra_verbose" = "yes" && cat << \EOF 5155 { test "$extra_verbose" = "yes" && cat << \EOF
5150 Defining HAVE_INVERSE_HYPERBOLIC 5156 Defining HAVE_INVERSE_HYPERBOLIC
5151 EOF 5157 EOF
5152 cat >> confdefs.h <<\EOF 5158 cat >> confdefs.h <<\EOF
5161 rm -f conftest* 5167 rm -f conftest*
5162 5168
5163 for ac_func in mkstemp 5169 for ac_func in mkstemp
5164 do 5170 do
5165 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5171 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5166 echo "configure:5167: checking for $ac_func" >&5 5172 echo "configure:5173: checking for $ac_func" >&5
5167 5173
5168 cat > conftest.$ac_ext <<EOF 5174 cat > conftest.$ac_ext <<EOF
5169 #line 5170 "configure" 5175 #line 5176 "configure"
5170 #include "confdefs.h" 5176 #include "confdefs.h"
5171 /* System header to define __stub macros and hopefully few prototypes, 5177 /* System header to define __stub macros and hopefully few prototypes,
5172 which can conflict with char $ac_func(); below. */ 5178 which can conflict with char $ac_func(); below. */
5173 #include <assert.h> 5179 #include <assert.h>
5174 /* Override any gcc2 internal prototype to avoid an error. */ 5180 /* Override any gcc2 internal prototype to avoid an error. */
5187 $ac_func(); 5193 $ac_func();
5188 #endif 5194 #endif
5189 5195
5190 ; return 0; } 5196 ; return 0; }
5191 EOF 5197 EOF
5192 if { (eval echo configure:5193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5198 if { (eval echo configure:5199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5193 rm -rf conftest* 5199 rm -rf conftest*
5194 eval "ac_cv_func_$ac_func=yes" 5200 eval "ac_cv_func_$ac_func=yes"
5195 else 5201 else
5196 echo "configure: failed program was:" >&5 5202 echo "configure: failed program was:" >&5
5197 cat conftest.$ac_ext >&5 5203 cat conftest.$ac_ext >&5
5216 fi 5222 fi
5217 done 5223 done
5218 5224
5219 5225
5220 echo "checking type of mail spool file locking" 1>&6 5226 echo "checking type of mail spool file locking" 1>&6
5221 echo "configure:5222: checking type of mail spool file locking" >&5 5227 echo "configure:5228: checking type of mail spool file locking" >&5
5222 for ac_func in lockf flock 5228 for ac_func in lockf flock
5223 do 5229 do
5224 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5230 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5225 echo "configure:5226: checking for $ac_func" >&5 5231 echo "configure:5232: checking for $ac_func" >&5
5226 5232
5227 cat > conftest.$ac_ext <<EOF 5233 cat > conftest.$ac_ext <<EOF
5228 #line 5229 "configure" 5234 #line 5235 "configure"
5229 #include "confdefs.h" 5235 #include "confdefs.h"
5230 /* System header to define __stub macros and hopefully few prototypes, 5236 /* System header to define __stub macros and hopefully few prototypes,
5231 which can conflict with char $ac_func(); below. */ 5237 which can conflict with char $ac_func(); below. */
5232 #include <assert.h> 5238 #include <assert.h>
5233 /* Override any gcc2 internal prototype to avoid an error. */ 5239 /* Override any gcc2 internal prototype to avoid an error. */
5246 $ac_func(); 5252 $ac_func();
5247 #endif 5253 #endif
5248 5254
5249 ; return 0; } 5255 ; return 0; }
5250 EOF 5256 EOF
5251 if { (eval echo configure:5252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5257 if { (eval echo configure:5258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5252 rm -rf conftest* 5258 rm -rf conftest*
5253 eval "ac_cv_func_$ac_func=yes" 5259 eval "ac_cv_func_$ac_func=yes"
5254 else 5260 else
5255 echo "configure: failed program was:" >&5 5261 echo "configure: failed program was:" >&5
5256 cat conftest.$ac_ext >&5 5262 cat conftest.$ac_ext >&5
5328 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; } 5334 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
5329 5335
5330 case "$opsys" in decosf*) 5336 case "$opsys" in decosf*)
5331 5337
5332 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 5338 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
5333 echo "configure:5334: checking for cma_open in -lpthreads" >&5 5339 echo "configure:5340: checking for cma_open in -lpthreads" >&5
5334 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 5340 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
5335 5341
5336 xe_check_libs=" -lpthreads " 5342 xe_check_libs=" -lpthreads "
5337 cat > conftest.$ac_ext <<EOF 5343 cat > conftest.$ac_ext <<EOF
5338 #line 5339 "configure" 5344 #line 5345 "configure"
5339 #include "confdefs.h" 5345 #include "confdefs.h"
5340 /* Override any gcc2 internal prototype to avoid an error. */ 5346 /* Override any gcc2 internal prototype to avoid an error. */
5341 /* We use char because int might match the return type of a gcc2 5347 /* We use char because int might match the return type of a gcc2
5342 builtin and then its argument prototype would still apply. */ 5348 builtin and then its argument prototype would still apply. */
5343 char cma_open(); 5349 char cma_open();
5344 5350
5345 int main() { 5351 int main() {
5346 cma_open() 5352 cma_open()
5347 ; return 0; } 5353 ; return 0; }
5348 EOF 5354 EOF
5349 if { (eval echo configure:5350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5355 if { (eval echo configure:5356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5350 rm -rf conftest* 5356 rm -rf conftest*
5351 eval "ac_cv_lib_$ac_lib_var=yes" 5357 eval "ac_cv_lib_$ac_lib_var=yes"
5352 else 5358 else
5353 echo "configure: failed program was:" >&5 5359 echo "configure: failed program was:" >&5
5354 cat conftest.$ac_ext >&5 5360 cat conftest.$ac_ext >&5
5381 c_switch_site="$c_switch_site -threads" ;; 5387 c_switch_site="$c_switch_site -threads" ;;
5382 esac 5388 esac
5383 5389
5384 5390
5385 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 5391 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
5386 echo "configure:5387: checking whether the -xildoff compiler flag is required" >&5 5392 echo "configure:5393: checking whether the -xildoff compiler flag is required" >&5
5387 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then 5393 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
5388 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; 5394 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
5389 then echo "$ac_t""no" 1>&6; 5395 then echo "$ac_t""no" 1>&6;
5390 else echo "$ac_t""yes" 1>&6; ld_switch_site="$ld_switch_site -xildoff" && if test "$extra_verbose" = "yes"; then echo " Appending \"-xildoff\" to \$ld_switch_site"; fi 5396 else echo "$ac_t""yes" 1>&6; ld_switch_site="$ld_switch_site -xildoff" && if test "$extra_verbose" = "yes"; then echo " Appending \"-xildoff\" to \$ld_switch_site"; fi
5391 fi 5397 fi
5393 fi 5399 fi
5394 5400
5395 if test "$opsys" = "sol2"; then 5401 if test "$opsys" = "sol2"; then
5396 if test "$os_release" -ge 506; then 5402 if test "$os_release" -ge 506; then
5397 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6 5403 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
5398 echo "configure:5399: checking for \"-z ignore\" linker flag" >&5 5404 echo "configure:5405: checking for \"-z ignore\" linker flag" >&5
5399 case "`ld -h 2>&1`" in 5405 case "`ld -h 2>&1`" in
5400 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6 5406 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
5401 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;; 5407 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
5402 *) echo "$ac_t""no" 1>&6 ;; 5408 *) echo "$ac_t""no" 1>&6 ;;
5403 esac 5409 esac
5404 fi 5410 fi
5405 fi 5411 fi
5406 5412
5407 5413
5408 echo "checking "for specified window system"" 1>&6 5414 echo "checking "for specified window system"" 1>&6
5409 echo "configure:5410: checking "for specified window system"" >&5 5415 echo "configure:5416: checking "for specified window system"" >&5
5410 5416
5411 5417
5412 GNOME_CONFIG=no 5418 GNOME_CONFIG=no
5413 GTK_CONFIG=no 5419 GTK_CONFIG=no
5414 5420
5415 if test "$with_gnome" != "no"; then 5421 if test "$with_gnome" != "no"; then
5416 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6 5422 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6
5417 echo "configure:5418: checking for GNOME configuration script" >&5 5423 echo "configure:5424: checking for GNOME configuration script" >&5
5418 for possible in gnome-config 5424 for possible in gnome-config
5419 do 5425 do
5420 possible_version=`${possible} --version 2> /dev/null` 5426 possible_version=`${possible} --version 2> /dev/null`
5421 if test "x${possible_version}" != "x"; then 5427 if test "x${possible_version}" != "x"; then
5422 GNOME_CONFIG="${possible}" 5428 GNOME_CONFIG="${possible}"
5443 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi 5449 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi
5444 fi 5450 fi
5445 5451
5446 if test "$with_gtk" != "no";then 5452 if test "$with_gtk" != "no";then
5447 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6 5453 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6
5448 echo "configure:5449: checking for GTK configuration script" >&5 5454 echo "configure:5455: checking for GTK configuration script" >&5
5449 for possible in gtk12-config gtk14-config gtk-config 5455 for possible in gtk12-config gtk14-config gtk-config
5450 do 5456 do
5451 possible_version=`${possible} --version 2> /dev/null` 5457 possible_version=`${possible} --version 2> /dev/null`
5452 if test "x${possible_version}" != "x"; then 5458 if test "x${possible_version}" != "x"; then
5453 GTK_CONFIG="${possible}" 5459 GTK_CONFIG="${possible}"
5465 echo "$ac_t""${GTK_CONFIG}" 1>&6 5471 echo "$ac_t""${GTK_CONFIG}" 1>&6
5466 fi 5472 fi
5467 5473
5468 if test "${GTK_CONFIG}" != "no"; then 5474 if test "${GTK_CONFIG}" != "no"; then
5469 echo $ac_n "checking gtk version""... $ac_c" 1>&6 5475 echo $ac_n "checking gtk version""... $ac_c" 1>&6
5470 echo "configure:5471: checking gtk version" >&5 5476 echo "configure:5477: checking gtk version" >&5
5471 GTK_VERSION=`${GTK_CONFIG} --version` 5477 GTK_VERSION=`${GTK_CONFIG} --version`
5472 echo "$ac_t""${GTK_VERSION}" 1>&6 5478 echo "$ac_t""${GTK_VERSION}" 1>&6
5473 5479
5474 echo $ac_n "checking gtk libs""... $ac_c" 1>&6 5480 echo $ac_n "checking gtk libs""... $ac_c" 1>&6
5475 echo "configure:5476: checking gtk libs" >&5 5481 echo "configure:5482: checking gtk libs" >&5
5476 GTK_LIBS=`${GTK_CONFIG} --libs` 5482 GTK_LIBS=`${GTK_CONFIG} --libs`
5477 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi 5483 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi
5478 echo "$ac_t""${GTK_LIBS}" 1>&6 5484 echo "$ac_t""${GTK_LIBS}" 1>&6
5479 5485
5480 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6 5486 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6
5481 echo "configure:5482: checking gtk cflags" >&5 5487 echo "configure:5488: checking gtk cflags" >&5
5482 GTK_CFLAGS=`${GTK_CONFIG} --cflags` 5488 GTK_CFLAGS=`${GTK_CONFIG} --cflags`
5483 if test "$GCC" = "yes"; then 5489 if test "$GCC" = "yes"; then
5484 GTK_CFLAGS="${GTK_CFLAGS} -Wno-shadow" 5490 GTK_CFLAGS="${GTK_CFLAGS} -Wno-shadow"
5485 fi 5491 fi
5486 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi 5492 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi
5487 echo "$ac_t""${GTK_CFLAGS}" 1>&6 5493 echo "$ac_t""${GTK_CFLAGS}" 1>&6
5488 5494
5489 5495
5490 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6 5496 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6
5491 echo "configure:5492: checking for main in -lgdk_imlib" >&5 5497 echo "configure:5498: checking for main in -lgdk_imlib" >&5
5492 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'` 5498 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'`
5493 5499
5494 xe_check_libs=" -lgdk_imlib " 5500 xe_check_libs=" -lgdk_imlib "
5495 cat > conftest.$ac_ext <<EOF 5501 cat > conftest.$ac_ext <<EOF
5496 #line 5497 "configure" 5502 #line 5503 "configure"
5497 #include "confdefs.h" 5503 #include "confdefs.h"
5498 5504
5499 int main() { 5505 int main() {
5500 main() 5506 main()
5501 ; return 0; } 5507 ; return 0; }
5502 EOF 5508 EOF
5503 if { (eval echo configure:5504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5509 if { (eval echo configure:5510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5504 rm -rf conftest* 5510 rm -rf conftest*
5505 eval "ac_cv_lib_$ac_lib_var=yes" 5511 eval "ac_cv_lib_$ac_lib_var=yes"
5506 else 5512 else
5507 echo "configure: failed program was:" >&5 5513 echo "configure: failed program was:" >&5
5508 cat conftest.$ac_ext >&5 5514 cat conftest.$ac_ext >&5
5520 fi 5526 fi
5521 5527
5522 5528
5523 5529
5524 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6 5530 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6
5525 echo "configure:5526: checking for Imlib_init in -lImlib" >&5 5531 echo "configure:5532: checking for Imlib_init in -lImlib" >&5
5526 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'` 5532 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'`
5527 5533
5528 xe_check_libs=" -lImlib " 5534 xe_check_libs=" -lImlib "
5529 cat > conftest.$ac_ext <<EOF 5535 cat > conftest.$ac_ext <<EOF
5530 #line 5531 "configure" 5536 #line 5537 "configure"
5531 #include "confdefs.h" 5537 #include "confdefs.h"
5532 /* Override any gcc2 internal prototype to avoid an error. */ 5538 /* Override any gcc2 internal prototype to avoid an error. */
5533 /* We use char because int might match the return type of a gcc2 5539 /* We use char because int might match the return type of a gcc2
5534 builtin and then its argument prototype would still apply. */ 5540 builtin and then its argument prototype would still apply. */
5535 char Imlib_init(); 5541 char Imlib_init();
5536 5542
5537 int main() { 5543 int main() {
5538 Imlib_init() 5544 Imlib_init()
5539 ; return 0; } 5545 ; return 0; }
5540 EOF 5546 EOF
5541 if { (eval echo configure:5542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5547 if { (eval echo configure:5548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5542 rm -rf conftest* 5548 rm -rf conftest*
5543 eval "ac_cv_lib_$ac_lib_var=yes" 5549 eval "ac_cv_lib_$ac_lib_var=yes"
5544 else 5550 else
5545 echo "configure: failed program was:" >&5 5551 echo "configure: failed program was:" >&5
5546 cat conftest.$ac_ext >&5 5552 cat conftest.$ac_ext >&5
5559 5565
5560 5566
5561 for ac_func in gdk_imlib_init 5567 for ac_func in gdk_imlib_init
5562 do 5568 do
5563 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5569 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5564 echo "configure:5565: checking for $ac_func" >&5 5570 echo "configure:5571: checking for $ac_func" >&5
5565 5571
5566 cat > conftest.$ac_ext <<EOF 5572 cat > conftest.$ac_ext <<EOF
5567 #line 5568 "configure" 5573 #line 5574 "configure"
5568 #include "confdefs.h" 5574 #include "confdefs.h"
5569 /* System header to define __stub macros and hopefully few prototypes, 5575 /* System header to define __stub macros and hopefully few prototypes,
5570 which can conflict with char $ac_func(); below. */ 5576 which can conflict with char $ac_func(); below. */
5571 #include <assert.h> 5577 #include <assert.h>
5572 /* Override any gcc2 internal prototype to avoid an error. */ 5578 /* Override any gcc2 internal prototype to avoid an error. */
5585 $ac_func(); 5591 $ac_func();
5586 #endif 5592 #endif
5587 5593
5588 ; return 0; } 5594 ; return 0; }
5589 EOF 5595 EOF
5590 if { (eval echo configure:5591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5596 if { (eval echo configure:5597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5591 rm -rf conftest* 5597 rm -rf conftest*
5592 eval "ac_cv_func_$ac_func=yes" 5598 eval "ac_cv_func_$ac_func=yes"
5593 else 5599 else
5594 echo "configure: failed program was:" >&5 5600 echo "configure: failed program was:" >&5
5595 cat conftest.$ac_ext >&5 5601 cat conftest.$ac_ext >&5
5633 5639
5634 5640
5635 5641
5636 window_system=gtk 5642 window_system=gtk
5637 with_gtk=yes 5643 with_gtk=yes
5638 with_x11=no 5644 if test "$with_x11" != "no"; then
5645 echo "configure: warning: Configuring GTK, forcing with_x11 to no" 1>&2
5646 with_x11=no
5647 fi
5648
5649 for feature in scrollbars toolbars menubars dialogs widgets
5650 do
5651 eval "feature_value=\${with_${feature}}"
5652 case "${feature_value}" in
5653 yes|no|gtk|"" )
5654 ;;
5655 * )
5656 feature_conflict_with_gtk=yes
5657 echo "configure: warning: --with-${feature}=${feature_value} is incompatible with --with-gtk" 1>&2 ;;
5658 esac
5659 done
5660 if test "${feature_conflict_with_gtk}" = "yes"; then
5661 { echo "Error:" One or more GUI toolkit features conflict with GTK >&2; exit 1; }
5662 fi
5639 5663
5640 test "${with_scrollbars}" != "no" && with_scrollbars=gtk 5664 test "${with_scrollbars}" != "no" && with_scrollbars=gtk
5641 test "${with_toolbars}" != no && with_toolbars=gtk 5665 test "${with_toolbars}" != "no" && with_toolbars=gtk
5642 test "${with_menubars}" != "no" && with_menubars=gtk 5666 test "${with_menubars}" != "no" && with_menubars=gtk
5643 test "${with_dialogs}" != "no" && with_dialogs=gtk 5667 test "${with_dialogs}" != "no" && with_dialogs=gtk
5644 test "${with_widgets}" != "no" && with_widgets=gtk 5668 test "${with_widgets}" != "no" && with_widgets=gtk
5645 5669
5646 OLD_CFLAGS="${CFLAGS}" 5670 OLD_CFLAGS="${CFLAGS}"
5651 LDFLAGS="${LDFLAGS} ${GTK_LIBS}" 5675 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
5652 for ac_hdr in glade/glade.h glade.h 5676 for ac_hdr in glade/glade.h glade.h
5653 do 5677 do
5654 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5678 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5655 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5679 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5656 echo "configure:5657: checking for $ac_hdr" >&5 5680 echo "configure:5681: checking for $ac_hdr" >&5
5657 5681
5658 cat > conftest.$ac_ext <<EOF 5682 cat > conftest.$ac_ext <<EOF
5659 #line 5660 "configure" 5683 #line 5684 "configure"
5660 #include "confdefs.h" 5684 #include "confdefs.h"
5661 #include <$ac_hdr> 5685 #include <$ac_hdr>
5662 EOF 5686 EOF
5663 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5687 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5664 { (eval echo configure:5665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5688 { (eval echo configure:5689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5665 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5689 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5666 if test -z "$ac_err"; then 5690 if test -z "$ac_err"; then
5667 rm -rf conftest* 5691 rm -rf conftest*
5668 eval "ac_cv_header_$ac_safe=yes" 5692 eval "ac_cv_header_$ac_safe=yes"
5669 else 5693 else
5690 fi 5714 fi
5691 done 5715 done
5692 5716
5693 5717
5694 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6 5718 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6
5695 echo "configure:5696: checking for main in -lxml" >&5 5719 echo "configure:5720: checking for main in -lxml" >&5
5696 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'` 5720 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'`
5697 5721
5698 xe_check_libs=" -lxml " 5722 xe_check_libs=" -lxml "
5699 cat > conftest.$ac_ext <<EOF 5723 cat > conftest.$ac_ext <<EOF
5700 #line 5701 "configure" 5724 #line 5725 "configure"
5701 #include "confdefs.h" 5725 #include "confdefs.h"
5702 5726
5703 int main() { 5727 int main() {
5704 main() 5728 main()
5705 ; return 0; } 5729 ; return 0; }
5706 EOF 5730 EOF
5707 if { (eval echo configure:5708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5731 if { (eval echo configure:5732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5708 rm -rf conftest* 5732 rm -rf conftest*
5709 eval "ac_cv_lib_$ac_lib_var=yes" 5733 eval "ac_cv_lib_$ac_lib_var=yes"
5710 else 5734 else
5711 echo "configure: failed program was:" >&5 5735 echo "configure: failed program was:" >&5
5712 cat conftest.$ac_ext >&5 5736 cat conftest.$ac_ext >&5
5724 fi 5748 fi
5725 5749
5726 5750
5727 5751
5728 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6 5752 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6
5729 echo "configure:5730: checking for main in -lglade" >&5 5753 echo "configure:5754: checking for main in -lglade" >&5
5730 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'` 5754 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'`
5731 5755
5732 xe_check_libs=" -lglade " 5756 xe_check_libs=" -lglade "
5733 cat > conftest.$ac_ext <<EOF 5757 cat > conftest.$ac_ext <<EOF
5734 #line 5735 "configure" 5758 #line 5759 "configure"
5735 #include "confdefs.h" 5759 #include "confdefs.h"
5736 5760
5737 int main() { 5761 int main() {
5738 main() 5762 main()
5739 ; return 0; } 5763 ; return 0; }
5740 EOF 5764 EOF
5741 if { (eval echo configure:5742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5765 if { (eval echo configure:5766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5742 rm -rf conftest* 5766 rm -rf conftest*
5743 eval "ac_cv_lib_$ac_lib_var=yes" 5767 eval "ac_cv_lib_$ac_lib_var=yes"
5744 else 5768 else
5745 echo "configure: failed program was:" >&5 5769 echo "configure: failed program was:" >&5
5746 cat conftest.$ac_ext >&5 5770 cat conftest.$ac_ext >&5
5758 fi 5782 fi
5759 5783
5760 5784
5761 5785
5762 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6 5786 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6
5763 echo "configure:5764: checking for main in -lglade-gnome" >&5 5787 echo "configure:5788: checking for main in -lglade-gnome" >&5
5764 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'` 5788 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'`
5765 5789
5766 xe_check_libs=" -lglade-gnome " 5790 xe_check_libs=" -lglade-gnome "
5767 cat > conftest.$ac_ext <<EOF 5791 cat > conftest.$ac_ext <<EOF
5768 #line 5769 "configure" 5792 #line 5793 "configure"
5769 #include "confdefs.h" 5793 #include "confdefs.h"
5770 5794
5771 int main() { 5795 int main() {
5772 main() 5796 main()
5773 ; return 0; } 5797 ; return 0; }
5774 EOF 5798 EOF
5775 if { (eval echo configure:5776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5799 if { (eval echo configure:5800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5776 rm -rf conftest* 5800 rm -rf conftest*
5777 eval "ac_cv_lib_$ac_lib_var=yes" 5801 eval "ac_cv_lib_$ac_lib_var=yes"
5778 else 5802 else
5779 echo "configure: failed program was:" >&5 5803 echo "configure: failed program was:" >&5
5780 cat conftest.$ac_ext >&5 5804 cat conftest.$ac_ext >&5
5791 echo "$ac_t""no" 1>&6 5815 echo "$ac_t""no" 1>&6
5792 fi 5816 fi
5793 5817
5794 5818
5795 cat > conftest.$ac_ext <<EOF 5819 cat > conftest.$ac_ext <<EOF
5796 #line 5797 "configure" 5820 #line 5821 "configure"
5797 #include "confdefs.h" 5821 #include "confdefs.h"
5798 #include <glade/glade-xml.h> 5822 #include <glade/glade-xml.h>
5799 EOF 5823 EOF
5800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5801 egrep "char \*txtdomain;" >/dev/null 2>&1; then 5825 egrep "char \*txtdomain;" >/dev/null 2>&1; then
5850 # If we find X, set shell vars x_includes and x_libraries to the 5874 # If we find X, set shell vars x_includes and x_libraries to the
5851 # paths, otherwise set no_x=yes. 5875 # paths, otherwise set no_x=yes.
5852 # Uses ac_ vars as temps to allow command line to override cache and checks. 5876 # Uses ac_ vars as temps to allow command line to override cache and checks.
5853 # --without-x overrides everything else, but does not touch the cache. 5877 # --without-x overrides everything else, but does not touch the cache.
5854 echo $ac_n "checking for X""... $ac_c" 1>&6 5878 echo $ac_n "checking for X""... $ac_c" 1>&6
5855 echo "configure:5856: checking for X" >&5 5879 echo "configure:5880: checking for X" >&5
5856 5880
5857 # Check whether --with-x or --without-x was given. 5881 # Check whether --with-x or --without-x was given.
5858 if test "${with_x+set}" = set; then 5882 if test "${with_x+set}" = set; then
5859 withval="$with_x" 5883 withval="$with_x"
5860 : 5884 :
5910 # Guess where to find include files, by looking for this one X11 .h file. 5934 # Guess where to find include files, by looking for this one X11 .h file.
5911 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 5935 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5912 5936
5913 # First, try using that file with no special directory specified. 5937 # First, try using that file with no special directory specified.
5914 cat > conftest.$ac_ext <<EOF 5938 cat > conftest.$ac_ext <<EOF
5915 #line 5916 "configure" 5939 #line 5940 "configure"
5916 #include "confdefs.h" 5940 #include "confdefs.h"
5917 #include <$x_direct_test_include> 5941 #include <$x_direct_test_include>
5918 EOF 5942 EOF
5919 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5943 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5920 { (eval echo configure:5921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5944 { (eval echo configure:5945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5921 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5945 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5922 if test -z "$ac_err"; then 5946 if test -z "$ac_err"; then
5923 rm -rf conftest* 5947 rm -rf conftest*
5924 # We can compile using X headers with no special include directory. 5948 # We can compile using X headers with no special include directory.
5925 ac_x_includes= 5949 ac_x_includes=
5984 # See if we find them without any special options. 6008 # See if we find them without any special options.
5985 # Don't add to $LIBS permanently. 6009 # Don't add to $LIBS permanently.
5986 ac_save_LIBS="$LIBS" 6010 ac_save_LIBS="$LIBS"
5987 LIBS="-l$x_direct_test_library $LIBS" 6011 LIBS="-l$x_direct_test_library $LIBS"
5988 cat > conftest.$ac_ext <<EOF 6012 cat > conftest.$ac_ext <<EOF
5989 #line 5990 "configure" 6013 #line 6014 "configure"
5990 #include "confdefs.h" 6014 #include "confdefs.h"
5991 6015
5992 int main() { 6016 int main() {
5993 ${x_direct_test_function}() 6017 ${x_direct_test_function}()
5994 ; return 0; } 6018 ; return 0; }
5995 EOF 6019 EOF
5996 if { (eval echo configure:5997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6020 if { (eval echo configure:6021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5997 rm -rf conftest* 6021 rm -rf conftest*
5998 LIBS="$ac_save_LIBS" 6022 LIBS="$ac_save_LIBS"
5999 # We can link X programs with no special library path. 6023 # We can link X programs with no special library path.
6000 ac_x_libraries= 6024 ac_x_libraries=
6001 else 6025 else
6100 # For Solaris; some versions of Sun CC require a space after -R and 6124 # For Solaris; some versions of Sun CC require a space after -R and
6101 # others require no space. Words are not sufficient . . . . 6125 # others require no space. Words are not sufficient . . . .
6102 case "`(uname -sr) 2>/dev/null`" in 6126 case "`(uname -sr) 2>/dev/null`" in
6103 "SunOS 5"*) 6127 "SunOS 5"*)
6104 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 6128 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
6105 echo "configure:6106: checking whether -R must be followed by a space" >&5 6129 echo "configure:6130: checking whether -R must be followed by a space" >&5
6106 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 6130 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
6107 cat > conftest.$ac_ext <<EOF 6131 cat > conftest.$ac_ext <<EOF
6108 #line 6109 "configure" 6132 #line 6133 "configure"
6109 #include "confdefs.h" 6133 #include "confdefs.h"
6110 6134
6111 int main() { 6135 int main() {
6112 6136
6113 ; return 0; } 6137 ; return 0; }
6114 EOF 6138 EOF
6115 if { (eval echo configure:6116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6139 if { (eval echo configure:6140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6116 rm -rf conftest* 6140 rm -rf conftest*
6117 ac_R_nospace=yes 6141 ac_R_nospace=yes
6118 else 6142 else
6119 echo "configure: failed program was:" >&5 6143 echo "configure: failed program was:" >&5
6120 cat conftest.$ac_ext >&5 6144 cat conftest.$ac_ext >&5
6126 echo "$ac_t""no" 1>&6 6150 echo "$ac_t""no" 1>&6
6127 X_LIBS="$X_LIBS -R$x_libraries" 6151 X_LIBS="$X_LIBS -R$x_libraries"
6128 else 6152 else
6129 LIBS="$ac_xsave_LIBS -R $x_libraries" 6153 LIBS="$ac_xsave_LIBS -R $x_libraries"
6130 cat > conftest.$ac_ext <<EOF 6154 cat > conftest.$ac_ext <<EOF
6131 #line 6132 "configure" 6155 #line 6156 "configure"
6132 #include "confdefs.h" 6156 #include "confdefs.h"
6133 6157
6134 int main() { 6158 int main() {
6135 6159
6136 ; return 0; } 6160 ; return 0; }
6137 EOF 6161 EOF
6138 if { (eval echo configure:6139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6162 if { (eval echo configure:6163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6139 rm -rf conftest* 6163 rm -rf conftest*
6140 ac_R_space=yes 6164 ac_R_space=yes
6141 else 6165 else
6142 echo "configure: failed program was:" >&5 6166 echo "configure: failed program was:" >&5
6143 cat conftest.$ac_ext >&5 6167 cat conftest.$ac_ext >&5
6169 if test "$with_dnet" = "no" ; then 6193 if test "$with_dnet" = "no" ; then
6170 ac_cv_lib_dnet_dnet_ntoa=no 6194 ac_cv_lib_dnet_dnet_ntoa=no
6171 else 6195 else
6172 6196
6173 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 6197 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
6174 echo "configure:6175: checking for dnet_ntoa in -ldnet" >&5 6198 echo "configure:6199: checking for dnet_ntoa in -ldnet" >&5
6175 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 6199 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6176 6200
6177 xe_check_libs=" -ldnet " 6201 xe_check_libs=" -ldnet "
6178 cat > conftest.$ac_ext <<EOF 6202 cat > conftest.$ac_ext <<EOF
6179 #line 6180 "configure" 6203 #line 6204 "configure"
6180 #include "confdefs.h" 6204 #include "confdefs.h"
6181 /* Override any gcc2 internal prototype to avoid an error. */ 6205 /* Override any gcc2 internal prototype to avoid an error. */
6182 /* We use char because int might match the return type of a gcc2 6206 /* We use char because int might match the return type of a gcc2
6183 builtin and then its argument prototype would still apply. */ 6207 builtin and then its argument prototype would still apply. */
6184 char dnet_ntoa(); 6208 char dnet_ntoa();
6185 6209
6186 int main() { 6210 int main() {
6187 dnet_ntoa() 6211 dnet_ntoa()
6188 ; return 0; } 6212 ; return 0; }
6189 EOF 6213 EOF
6190 if { (eval echo configure:6191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6214 if { (eval echo configure:6215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6191 rm -rf conftest* 6215 rm -rf conftest*
6192 eval "ac_cv_lib_$ac_lib_var=yes" 6216 eval "ac_cv_lib_$ac_lib_var=yes"
6193 else 6217 else
6194 echo "configure: failed program was:" >&5 6218 echo "configure: failed program was:" >&5
6195 cat conftest.$ac_ext >&5 6219 cat conftest.$ac_ext >&5
6209 fi 6233 fi
6210 6234
6211 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 6235 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6212 6236
6213 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 6237 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
6214 echo "configure:6215: checking for dnet_ntoa in -ldnet_stub" >&5 6238 echo "configure:6239: checking for dnet_ntoa in -ldnet_stub" >&5
6215 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 6239 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6216 6240
6217 xe_check_libs=" -ldnet_stub " 6241 xe_check_libs=" -ldnet_stub "
6218 cat > conftest.$ac_ext <<EOF 6242 cat > conftest.$ac_ext <<EOF
6219 #line 6220 "configure" 6243 #line 6244 "configure"
6220 #include "confdefs.h" 6244 #include "confdefs.h"
6221 /* Override any gcc2 internal prototype to avoid an error. */ 6245 /* Override any gcc2 internal prototype to avoid an error. */
6222 /* We use char because int might match the return type of a gcc2 6246 /* We use char because int might match the return type of a gcc2
6223 builtin and then its argument prototype would still apply. */ 6247 builtin and then its argument prototype would still apply. */
6224 char dnet_ntoa(); 6248 char dnet_ntoa();
6225 6249
6226 int main() { 6250 int main() {
6227 dnet_ntoa() 6251 dnet_ntoa()
6228 ; return 0; } 6252 ; return 0; }
6229 EOF 6253 EOF
6230 if { (eval echo configure:6231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6254 if { (eval echo configure:6255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6231 rm -rf conftest* 6255 rm -rf conftest*
6232 eval "ac_cv_lib_$ac_lib_var=yes" 6256 eval "ac_cv_lib_$ac_lib_var=yes"
6233 else 6257 else
6234 echo "configure: failed program was:" >&5 6258 echo "configure: failed program was:" >&5
6235 cat conftest.$ac_ext >&5 6259 cat conftest.$ac_ext >&5
6254 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 6278 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
6255 # needs -lnsl. 6279 # needs -lnsl.
6256 # The nsl library prevents programs from opening the X display 6280 # The nsl library prevents programs from opening the X display
6257 # on Irix 5.2, according to dickey@clark.net. 6281 # on Irix 5.2, according to dickey@clark.net.
6258 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 6282 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
6259 echo "configure:6260: checking for gethostbyname" >&5 6283 echo "configure:6284: checking for gethostbyname" >&5
6260 6284
6261 cat > conftest.$ac_ext <<EOF 6285 cat > conftest.$ac_ext <<EOF
6262 #line 6263 "configure" 6286 #line 6287 "configure"
6263 #include "confdefs.h" 6287 #include "confdefs.h"
6264 /* System header to define __stub macros and hopefully few prototypes, 6288 /* System header to define __stub macros and hopefully few prototypes,
6265 which can conflict with char gethostbyname(); below. */ 6289 which can conflict with char gethostbyname(); below. */
6266 #include <assert.h> 6290 #include <assert.h>
6267 /* Override any gcc2 internal prototype to avoid an error. */ 6291 /* Override any gcc2 internal prototype to avoid an error. */
6280 gethostbyname(); 6304 gethostbyname();
6281 #endif 6305 #endif
6282 6306
6283 ; return 0; } 6307 ; return 0; }
6284 EOF 6308 EOF
6285 if { (eval echo configure:6286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6309 if { (eval echo configure:6310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6286 rm -rf conftest* 6310 rm -rf conftest*
6287 eval "ac_cv_func_gethostbyname=yes" 6311 eval "ac_cv_func_gethostbyname=yes"
6288 else 6312 else
6289 echo "configure: failed program was:" >&5 6313 echo "configure: failed program was:" >&5
6290 cat conftest.$ac_ext >&5 6314 cat conftest.$ac_ext >&5
6301 fi 6325 fi
6302 6326
6303 if test $ac_cv_func_gethostbyname = no; then 6327 if test $ac_cv_func_gethostbyname = no; then
6304 6328
6305 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 6329 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
6306 echo "configure:6307: checking for gethostbyname in -lnsl" >&5 6330 echo "configure:6331: checking for gethostbyname in -lnsl" >&5
6307 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 6331 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
6308 6332
6309 xe_check_libs=" -lnsl " 6333 xe_check_libs=" -lnsl "
6310 cat > conftest.$ac_ext <<EOF 6334 cat > conftest.$ac_ext <<EOF
6311 #line 6312 "configure" 6335 #line 6336 "configure"
6312 #include "confdefs.h" 6336 #include "confdefs.h"
6313 /* Override any gcc2 internal prototype to avoid an error. */ 6337 /* Override any gcc2 internal prototype to avoid an error. */
6314 /* We use char because int might match the return type of a gcc2 6338 /* We use char because int might match the return type of a gcc2
6315 builtin and then its argument prototype would still apply. */ 6339 builtin and then its argument prototype would still apply. */
6316 char gethostbyname(); 6340 char gethostbyname();
6317 6341
6318 int main() { 6342 int main() {
6319 gethostbyname() 6343 gethostbyname()
6320 ; return 0; } 6344 ; return 0; }
6321 EOF 6345 EOF
6322 if { (eval echo configure:6323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6346 if { (eval echo configure:6347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6323 rm -rf conftest* 6347 rm -rf conftest*
6324 eval "ac_cv_lib_$ac_lib_var=yes" 6348 eval "ac_cv_lib_$ac_lib_var=yes"
6325 else 6349 else
6326 echo "configure: failed program was:" >&5 6350 echo "configure: failed program was:" >&5
6327 cat conftest.$ac_ext >&5 6351 cat conftest.$ac_ext >&5
6347 # on later versions), says simon@lia.di.epfl.ch: it contains 6371 # on later versions), says simon@lia.di.epfl.ch: it contains
6348 # gethostby* variants that don't use the nameserver (or something). 6372 # gethostby* variants that don't use the nameserver (or something).
6349 # -lsocket must be given before -lnsl if both are needed. 6373 # -lsocket must be given before -lnsl if both are needed.
6350 # We assume that if connect needs -lnsl, so does gethostbyname. 6374 # We assume that if connect needs -lnsl, so does gethostbyname.
6351 echo $ac_n "checking for connect""... $ac_c" 1>&6 6375 echo $ac_n "checking for connect""... $ac_c" 1>&6
6352 echo "configure:6353: checking for connect" >&5 6376 echo "configure:6377: checking for connect" >&5
6353 6377
6354 cat > conftest.$ac_ext <<EOF 6378 cat > conftest.$ac_ext <<EOF
6355 #line 6356 "configure" 6379 #line 6380 "configure"
6356 #include "confdefs.h" 6380 #include "confdefs.h"
6357 /* System header to define __stub macros and hopefully few prototypes, 6381 /* System header to define __stub macros and hopefully few prototypes,
6358 which can conflict with char connect(); below. */ 6382 which can conflict with char connect(); below. */
6359 #include <assert.h> 6383 #include <assert.h>
6360 /* Override any gcc2 internal prototype to avoid an error. */ 6384 /* Override any gcc2 internal prototype to avoid an error. */
6373 connect(); 6397 connect();
6374 #endif 6398 #endif
6375 6399
6376 ; return 0; } 6400 ; return 0; }
6377 EOF 6401 EOF
6378 if { (eval echo configure:6379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6402 if { (eval echo configure:6403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6379 rm -rf conftest* 6403 rm -rf conftest*
6380 eval "ac_cv_func_connect=yes" 6404 eval "ac_cv_func_connect=yes"
6381 else 6405 else
6382 echo "configure: failed program was:" >&5 6406 echo "configure: failed program was:" >&5
6383 cat conftest.$ac_ext >&5 6407 cat conftest.$ac_ext >&5
6396 if test $ac_cv_func_connect = no; then 6420 if test $ac_cv_func_connect = no; then
6397 6421
6398 xe_msg_checking="for connect in -lsocket" 6422 xe_msg_checking="for connect in -lsocket"
6399 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 6423 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6400 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6424 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6401 echo "configure:6402: checking "$xe_msg_checking"" >&5 6425 echo "configure:6426: checking "$xe_msg_checking"" >&5
6402 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 6426 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6403 6427
6404 xe_check_libs=" -lsocket $X_EXTRA_LIBS" 6428 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
6405 cat > conftest.$ac_ext <<EOF 6429 cat > conftest.$ac_ext <<EOF
6406 #line 6407 "configure" 6430 #line 6431 "configure"
6407 #include "confdefs.h" 6431 #include "confdefs.h"
6408 /* Override any gcc2 internal prototype to avoid an error. */ 6432 /* Override any gcc2 internal prototype to avoid an error. */
6409 /* We use char because int might match the return type of a gcc2 6433 /* We use char because int might match the return type of a gcc2
6410 builtin and then its argument prototype would still apply. */ 6434 builtin and then its argument prototype would still apply. */
6411 char connect(); 6435 char connect();
6412 6436
6413 int main() { 6437 int main() {
6414 connect() 6438 connect()
6415 ; return 0; } 6439 ; return 0; }
6416 EOF 6440 EOF
6417 if { (eval echo configure:6418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6441 if { (eval echo configure:6442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6418 rm -rf conftest* 6442 rm -rf conftest*
6419 eval "ac_cv_lib_$ac_lib_var=yes" 6443 eval "ac_cv_lib_$ac_lib_var=yes"
6420 else 6444 else
6421 echo "configure: failed program was:" >&5 6445 echo "configure: failed program was:" >&5
6422 cat conftest.$ac_ext >&5 6446 cat conftest.$ac_ext >&5
6436 6460
6437 fi 6461 fi
6438 6462
6439 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 6463 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6440 echo $ac_n "checking for remove""... $ac_c" 1>&6 6464 echo $ac_n "checking for remove""... $ac_c" 1>&6
6441 echo "configure:6442: checking for remove" >&5 6465 echo "configure:6466: checking for remove" >&5
6442 6466
6443 cat > conftest.$ac_ext <<EOF 6467 cat > conftest.$ac_ext <<EOF
6444 #line 6445 "configure" 6468 #line 6469 "configure"
6445 #include "confdefs.h" 6469 #include "confdefs.h"
6446 /* System header to define __stub macros and hopefully few prototypes, 6470 /* System header to define __stub macros and hopefully few prototypes,
6447 which can conflict with char remove(); below. */ 6471 which can conflict with char remove(); below. */
6448 #include <assert.h> 6472 #include <assert.h>
6449 /* Override any gcc2 internal prototype to avoid an error. */ 6473 /* Override any gcc2 internal prototype to avoid an error. */
6462 remove(); 6486 remove();
6463 #endif 6487 #endif
6464 6488
6465 ; return 0; } 6489 ; return 0; }
6466 EOF 6490 EOF
6467 if { (eval echo configure:6468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6491 if { (eval echo configure:6492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6468 rm -rf conftest* 6492 rm -rf conftest*
6469 eval "ac_cv_func_remove=yes" 6493 eval "ac_cv_func_remove=yes"
6470 else 6494 else
6471 echo "configure: failed program was:" >&5 6495 echo "configure: failed program was:" >&5
6472 cat conftest.$ac_ext >&5 6496 cat conftest.$ac_ext >&5
6483 fi 6507 fi
6484 6508
6485 if test $ac_cv_func_remove = no; then 6509 if test $ac_cv_func_remove = no; then
6486 6510
6487 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 6511 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6488 echo "configure:6489: checking for remove in -lposix" >&5 6512 echo "configure:6513: checking for remove in -lposix" >&5
6489 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 6513 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6490 6514
6491 xe_check_libs=" -lposix " 6515 xe_check_libs=" -lposix "
6492 cat > conftest.$ac_ext <<EOF 6516 cat > conftest.$ac_ext <<EOF
6493 #line 6494 "configure" 6517 #line 6518 "configure"
6494 #include "confdefs.h" 6518 #include "confdefs.h"
6495 /* Override any gcc2 internal prototype to avoid an error. */ 6519 /* Override any gcc2 internal prototype to avoid an error. */
6496 /* We use char because int might match the return type of a gcc2 6520 /* We use char because int might match the return type of a gcc2
6497 builtin and then its argument prototype would still apply. */ 6521 builtin and then its argument prototype would still apply. */
6498 char remove(); 6522 char remove();
6499 6523
6500 int main() { 6524 int main() {
6501 remove() 6525 remove()
6502 ; return 0; } 6526 ; return 0; }
6503 EOF 6527 EOF
6504 if { (eval echo configure:6505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6528 if { (eval echo configure:6529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6505 rm -rf conftest* 6529 rm -rf conftest*
6506 eval "ac_cv_lib_$ac_lib_var=yes" 6530 eval "ac_cv_lib_$ac_lib_var=yes"
6507 else 6531 else
6508 echo "configure: failed program was:" >&5 6532 echo "configure: failed program was:" >&5
6509 cat conftest.$ac_ext >&5 6533 cat conftest.$ac_ext >&5
6523 6547
6524 fi 6548 fi
6525 6549
6526 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 6550 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6527 echo $ac_n "checking for shmat""... $ac_c" 1>&6 6551 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6528 echo "configure:6529: checking for shmat" >&5 6552 echo "configure:6553: checking for shmat" >&5
6529 6553
6530 cat > conftest.$ac_ext <<EOF 6554 cat > conftest.$ac_ext <<EOF
6531 #line 6532 "configure" 6555 #line 6556 "configure"
6532 #include "confdefs.h" 6556 #include "confdefs.h"
6533 /* System header to define __stub macros and hopefully few prototypes, 6557 /* System header to define __stub macros and hopefully few prototypes,
6534 which can conflict with char shmat(); below. */ 6558 which can conflict with char shmat(); below. */
6535 #include <assert.h> 6559 #include <assert.h>
6536 /* Override any gcc2 internal prototype to avoid an error. */ 6560 /* Override any gcc2 internal prototype to avoid an error. */
6549 shmat(); 6573 shmat();
6550 #endif 6574 #endif
6551 6575
6552 ; return 0; } 6576 ; return 0; }
6553 EOF 6577 EOF
6554 if { (eval echo configure:6555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6578 if { (eval echo configure:6579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6555 rm -rf conftest* 6579 rm -rf conftest*
6556 eval "ac_cv_func_shmat=yes" 6580 eval "ac_cv_func_shmat=yes"
6557 else 6581 else
6558 echo "configure: failed program was:" >&5 6582 echo "configure: failed program was:" >&5
6559 cat conftest.$ac_ext >&5 6583 cat conftest.$ac_ext >&5
6570 fi 6594 fi
6571 6595
6572 if test $ac_cv_func_shmat = no; then 6596 if test $ac_cv_func_shmat = no; then
6573 6597
6574 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 6598 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6575 echo "configure:6576: checking for shmat in -lipc" >&5 6599 echo "configure:6600: checking for shmat in -lipc" >&5
6576 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 6600 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6577 6601
6578 xe_check_libs=" -lipc " 6602 xe_check_libs=" -lipc "
6579 cat > conftest.$ac_ext <<EOF 6603 cat > conftest.$ac_ext <<EOF
6580 #line 6581 "configure" 6604 #line 6605 "configure"
6581 #include "confdefs.h" 6605 #include "confdefs.h"
6582 /* Override any gcc2 internal prototype to avoid an error. */ 6606 /* Override any gcc2 internal prototype to avoid an error. */
6583 /* We use char because int might match the return type of a gcc2 6607 /* We use char because int might match the return type of a gcc2
6584 builtin and then its argument prototype would still apply. */ 6608 builtin and then its argument prototype would still apply. */
6585 char shmat(); 6609 char shmat();
6586 6610
6587 int main() { 6611 int main() {
6588 shmat() 6612 shmat()
6589 ; return 0; } 6613 ; return 0; }
6590 EOF 6614 EOF
6591 if { (eval echo configure:6592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6615 if { (eval echo configure:6616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6592 rm -rf conftest* 6616 rm -rf conftest*
6593 eval "ac_cv_lib_$ac_lib_var=yes" 6617 eval "ac_cv_lib_$ac_lib_var=yes"
6594 else 6618 else
6595 echo "configure: failed program was:" >&5 6619 echo "configure: failed program was:" >&5
6596 cat conftest.$ac_ext >&5 6620 cat conftest.$ac_ext >&5
6622 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 6646 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6623 6647
6624 xe_msg_checking="for IceConnectionNumber in -lICE" 6648 xe_msg_checking="for IceConnectionNumber in -lICE"
6625 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 6649 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6626 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6650 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6627 echo "configure:6628: checking "$xe_msg_checking"" >&5 6651 echo "configure:6652: checking "$xe_msg_checking"" >&5
6628 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 6652 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6629 6653
6630 xe_check_libs=" -lICE $X_EXTRA_LIBS" 6654 xe_check_libs=" -lICE $X_EXTRA_LIBS"
6631 cat > conftest.$ac_ext <<EOF 6655 cat > conftest.$ac_ext <<EOF
6632 #line 6633 "configure" 6656 #line 6657 "configure"
6633 #include "confdefs.h" 6657 #include "confdefs.h"
6634 /* Override any gcc2 internal prototype to avoid an error. */ 6658 /* Override any gcc2 internal prototype to avoid an error. */
6635 /* We use char because int might match the return type of a gcc2 6659 /* We use char because int might match the return type of a gcc2
6636 builtin and then its argument prototype would still apply. */ 6660 builtin and then its argument prototype would still apply. */
6637 char IceConnectionNumber(); 6661 char IceConnectionNumber();
6638 6662
6639 int main() { 6663 int main() {
6640 IceConnectionNumber() 6664 IceConnectionNumber()
6641 ; return 0; } 6665 ; return 0; }
6642 EOF 6666 EOF
6643 if { (eval echo configure:6644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6667 if { (eval echo configure:6668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6644 rm -rf conftest* 6668 rm -rf conftest*
6645 eval "ac_cv_lib_$ac_lib_var=yes" 6669 eval "ac_cv_lib_$ac_lib_var=yes"
6646 else 6670 else
6647 echo "configure: failed program was:" >&5 6671 echo "configure: failed program was:" >&5
6648 cat conftest.$ac_ext >&5 6672 cat conftest.$ac_ext >&5
6684 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi 6708 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
6685 6709
6686 6710
6687 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 6711 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
6688 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 6712 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
6689 echo "configure:6690: checking for Xm/Xm.h" >&5 6713 echo "configure:6714: checking for Xm/Xm.h" >&5
6690 6714
6691 cat > conftest.$ac_ext <<EOF 6715 cat > conftest.$ac_ext <<EOF
6692 #line 6693 "configure" 6716 #line 6717 "configure"
6693 #include "confdefs.h" 6717 #include "confdefs.h"
6694 #include <Xm/Xm.h> 6718 #include <Xm/Xm.h>
6695 EOF 6719 EOF
6696 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6720 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6697 { (eval echo configure:6698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6721 { (eval echo configure:6722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6698 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6722 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6699 if test -z "$ac_err"; then 6723 if test -z "$ac_err"; then
6700 rm -rf conftest* 6724 rm -rf conftest*
6701 eval "ac_cv_header_$ac_safe=yes" 6725 eval "ac_cv_header_$ac_safe=yes"
6702 else 6726 else
6709 rm -f conftest* 6733 rm -f conftest*
6710 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 6734 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6711 echo "$ac_t""yes" 1>&6 6735 echo "$ac_t""yes" 1>&6
6712 6736
6713 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 6737 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
6714 echo "configure:6715: checking for XmStringFree in -lXm" >&5 6738 echo "configure:6739: checking for XmStringFree in -lXm" >&5
6715 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 6739 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
6716 6740
6717 xe_check_libs=" -lXm " 6741 xe_check_libs=" -lXm "
6718 cat > conftest.$ac_ext <<EOF 6742 cat > conftest.$ac_ext <<EOF
6719 #line 6720 "configure" 6743 #line 6744 "configure"
6720 #include "confdefs.h" 6744 #include "confdefs.h"
6721 /* Override any gcc2 internal prototype to avoid an error. */ 6745 /* Override any gcc2 internal prototype to avoid an error. */
6722 /* We use char because int might match the return type of a gcc2 6746 /* We use char because int might match the return type of a gcc2
6723 builtin and then its argument prototype would still apply. */ 6747 builtin and then its argument prototype would still apply. */
6724 char XmStringFree(); 6748 char XmStringFree();
6725 6749
6726 int main() { 6750 int main() {
6727 XmStringFree() 6751 XmStringFree()
6728 ; return 0; } 6752 ; return 0; }
6729 EOF 6753 EOF
6730 if { (eval echo configure:6731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6754 if { (eval echo configure:6755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6731 rm -rf conftest* 6755 rm -rf conftest*
6732 eval "ac_cv_lib_$ac_lib_var=yes" 6756 eval "ac_cv_lib_$ac_lib_var=yes"
6733 else 6757 else
6734 echo "configure: failed program was:" >&5 6758 echo "configure: failed program was:" >&5
6735 cat conftest.$ac_ext >&5 6759 cat conftest.$ac_ext >&5
6877 EOF 6901 EOF
6878 } 6902 }
6879 6903
6880 6904
6881 echo "checking for X defines extracted by xmkmf" 1>&6 6905 echo "checking for X defines extracted by xmkmf" 1>&6
6882 echo "configure:6883: checking for X defines extracted by xmkmf" >&5 6906 echo "configure:6907: checking for X defines extracted by xmkmf" >&5
6883 rm -fr conftestdir 6907 rm -fr conftestdir
6884 if mkdir conftestdir; then 6908 if mkdir conftestdir; then
6885 cd conftestdir 6909 cd conftestdir
6886 cat > Imakefile <<'EOF' 6910 cat > Imakefile <<'EOF'
6887 xetest: 6911 xetest:
6926 done 6950 done
6927 fi 6951 fi
6928 6952
6929 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` 6953 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
6930 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 6954 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
6931 echo "configure:6932: checking for X11/Intrinsic.h" >&5 6955 echo "configure:6956: checking for X11/Intrinsic.h" >&5
6932 6956
6933 cat > conftest.$ac_ext <<EOF 6957 cat > conftest.$ac_ext <<EOF
6934 #line 6935 "configure" 6958 #line 6959 "configure"
6935 #include "confdefs.h" 6959 #include "confdefs.h"
6936 #include <X11/Intrinsic.h> 6960 #include <X11/Intrinsic.h>
6937 EOF 6961 EOF
6938 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6962 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6939 { (eval echo configure:6940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6963 { (eval echo configure:6964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6940 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6964 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6941 if test -z "$ac_err"; then 6965 if test -z "$ac_err"; then
6942 rm -rf conftest* 6966 rm -rf conftest*
6943 eval "ac_cv_header_$ac_safe=yes" 6967 eval "ac_cv_header_$ac_safe=yes"
6944 else 6968 else
6958 fi 6982 fi
6959 6983
6960 6984
6961 6985
6962 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 6986 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
6963 echo "configure:6964: checking for XOpenDisplay in -lX11" >&5 6987 echo "configure:6988: checking for XOpenDisplay in -lX11" >&5
6964 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` 6988 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
6965 6989
6966 xe_check_libs=" -lX11 " 6990 xe_check_libs=" -lX11 "
6967 cat > conftest.$ac_ext <<EOF 6991 cat > conftest.$ac_ext <<EOF
6968 #line 6969 "configure" 6992 #line 6993 "configure"
6969 #include "confdefs.h" 6993 #include "confdefs.h"
6970 /* Override any gcc2 internal prototype to avoid an error. */ 6994 /* Override any gcc2 internal prototype to avoid an error. */
6971 /* We use char because int might match the return type of a gcc2 6995 /* We use char because int might match the return type of a gcc2
6972 builtin and then its argument prototype would still apply. */ 6996 builtin and then its argument prototype would still apply. */
6973 char XOpenDisplay(); 6997 char XOpenDisplay();
6974 6998
6975 int main() { 6999 int main() {
6976 XOpenDisplay() 7000 XOpenDisplay()
6977 ; return 0; } 7001 ; return 0; }
6978 EOF 7002 EOF
6979 if { (eval echo configure:6980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7003 if { (eval echo configure:7004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6980 rm -rf conftest* 7004 rm -rf conftest*
6981 eval "ac_cv_lib_$ac_lib_var=yes" 7005 eval "ac_cv_lib_$ac_lib_var=yes"
6982 else 7006 else
6983 echo "configure: failed program was:" >&5 7007 echo "configure: failed program was:" >&5
6984 cat conftest.$ac_ext >&5 7008 cat conftest.$ac_ext >&5
6999 if test "$have_lib_x11" != "yes"; then 7023 if test "$have_lib_x11" != "yes"; then
7000 7024
7001 xe_msg_checking="for XGetFontProperty in -lX11" 7025 xe_msg_checking="for XGetFontProperty in -lX11"
7002 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" 7026 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
7003 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 7027 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7004 echo "configure:7005: checking "$xe_msg_checking"" >&5 7028 echo "configure:7029: checking "$xe_msg_checking"" >&5
7005 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` 7029 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
7006 7030
7007 xe_check_libs=" -lX11 -b i486-linuxaout" 7031 xe_check_libs=" -lX11 -b i486-linuxaout"
7008 cat > conftest.$ac_ext <<EOF 7032 cat > conftest.$ac_ext <<EOF
7009 #line 7010 "configure" 7033 #line 7034 "configure"
7010 #include "confdefs.h" 7034 #include "confdefs.h"
7011 /* Override any gcc2 internal prototype to avoid an error. */ 7035 /* Override any gcc2 internal prototype to avoid an error. */
7012 /* We use char because int might match the return type of a gcc2 7036 /* We use char because int might match the return type of a gcc2
7013 builtin and then its argument prototype would still apply. */ 7037 builtin and then its argument prototype would still apply. */
7014 char XGetFontProperty(); 7038 char XGetFontProperty();
7015 7039
7016 int main() { 7040 int main() {
7017 XGetFontProperty() 7041 XGetFontProperty()
7018 ; return 0; } 7042 ; return 0; }
7019 EOF 7043 EOF
7020 if { (eval echo configure:7021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7044 if { (eval echo configure:7045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7021 rm -rf conftest* 7045 rm -rf conftest*
7022 eval "ac_cv_lib_$ac_lib_var=yes" 7046 eval "ac_cv_lib_$ac_lib_var=yes"
7023 else 7047 else
7024 echo "configure: failed program was:" >&5 7048 echo "configure: failed program was:" >&5
7025 cat conftest.$ac_ext >&5 7049 cat conftest.$ac_ext >&5
7042 libs_x="-lX11" 7066 libs_x="-lX11"
7043 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\"" 7067 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
7044 7068
7045 7069
7046 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 7070 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
7047 echo "configure:7048: checking for XShapeSelectInput in -lXext" >&5 7071 echo "configure:7072: checking for XShapeSelectInput in -lXext" >&5
7048 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` 7072 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
7049 7073
7050 xe_check_libs=" -lXext " 7074 xe_check_libs=" -lXext "
7051 cat > conftest.$ac_ext <<EOF 7075 cat > conftest.$ac_ext <<EOF
7052 #line 7053 "configure" 7076 #line 7077 "configure"
7053 #include "confdefs.h" 7077 #include "confdefs.h"
7054 /* Override any gcc2 internal prototype to avoid an error. */ 7078 /* Override any gcc2 internal prototype to avoid an error. */
7055 /* We use char because int might match the return type of a gcc2 7079 /* We use char because int might match the return type of a gcc2
7056 builtin and then its argument prototype would still apply. */ 7080 builtin and then its argument prototype would still apply. */
7057 char XShapeSelectInput(); 7081 char XShapeSelectInput();
7058 7082
7059 int main() { 7083 int main() {
7060 XShapeSelectInput() 7084 XShapeSelectInput()
7061 ; return 0; } 7085 ; return 0; }
7062 EOF 7086 EOF
7063 if { (eval echo configure:7064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7087 if { (eval echo configure:7088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7064 rm -rf conftest* 7088 rm -rf conftest*
7065 eval "ac_cv_lib_$ac_lib_var=yes" 7089 eval "ac_cv_lib_$ac_lib_var=yes"
7066 else 7090 else
7067 echo "configure: failed program was:" >&5 7091 echo "configure: failed program was:" >&5
7068 cat conftest.$ac_ext >&5 7092 cat conftest.$ac_ext >&5
7081 7105
7082 7106
7083 7107
7084 7108
7085 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 7109 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
7086 echo "configure:7087: checking for XtOpenDisplay in -lXt" >&5 7110 echo "configure:7111: checking for XtOpenDisplay in -lXt" >&5
7087 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` 7111 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
7088 7112
7089 xe_check_libs=" -lXt " 7113 xe_check_libs=" -lXt "
7090 cat > conftest.$ac_ext <<EOF 7114 cat > conftest.$ac_ext <<EOF
7091 #line 7092 "configure" 7115 #line 7116 "configure"
7092 #include "confdefs.h" 7116 #include "confdefs.h"
7093 /* Override any gcc2 internal prototype to avoid an error. */ 7117 /* Override any gcc2 internal prototype to avoid an error. */
7094 /* We use char because int might match the return type of a gcc2 7118 /* We use char because int might match the return type of a gcc2
7095 builtin and then its argument prototype would still apply. */ 7119 builtin and then its argument prototype would still apply. */
7096 char XtOpenDisplay(); 7120 char XtOpenDisplay();
7097 7121
7098 int main() { 7122 int main() {
7099 XtOpenDisplay() 7123 XtOpenDisplay()
7100 ; return 0; } 7124 ; return 0; }
7101 EOF 7125 EOF
7102 if { (eval echo configure:7103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7126 if { (eval echo configure:7127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7103 rm -rf conftest* 7127 rm -rf conftest*
7104 eval "ac_cv_lib_$ac_lib_var=yes" 7128 eval "ac_cv_lib_$ac_lib_var=yes"
7105 else 7129 else
7106 echo "configure: failed program was:" >&5 7130 echo "configure: failed program was:" >&5
7107 cat conftest.$ac_ext >&5 7131 cat conftest.$ac_ext >&5
7120 fi 7144 fi
7121 7145
7122 7146
7123 7147
7124 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 7148 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
7125 echo "configure:7126: checking the version of X11 being used" >&5 7149 echo "configure:7150: checking the version of X11 being used" >&5
7126 cat > conftest.$ac_ext <<EOF 7150 cat > conftest.$ac_ext <<EOF
7127 #line 7128 "configure" 7151 #line 7152 "configure"
7128 #include "confdefs.h" 7152 #include "confdefs.h"
7129 #include <X11/Intrinsic.h> 7153 #include <X11/Intrinsic.h>
7130 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; } 7154 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
7131 EOF 7155 EOF
7132 if { (eval echo configure:7133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 7156 if { (eval echo configure:7157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7133 then 7157 then
7134 ./conftest foobar; x11_release=$? 7158 ./conftest foobar; x11_release=$?
7135 else 7159 else
7136 conftest_rc="$?" 7160 conftest_rc="$?"
7137 echo "configure: failed program was:" >&5 7161 echo "configure: failed program was:" >&5
7158 fi 7182 fi
7159 7183
7160 for ac_func in XConvertCase 7184 for ac_func in XConvertCase
7161 do 7185 do
7162 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7186 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7163 echo "configure:7164: checking for $ac_func" >&5 7187 echo "configure:7188: checking for $ac_func" >&5
7164 7188
7165 cat > conftest.$ac_ext <<EOF 7189 cat > conftest.$ac_ext <<EOF
7166 #line 7167 "configure" 7190 #line 7191 "configure"
7167 #include "confdefs.h" 7191 #include "confdefs.h"
7168 /* System header to define __stub macros and hopefully few prototypes, 7192 /* System header to define __stub macros and hopefully few prototypes,
7169 which can conflict with char $ac_func(); below. */ 7193 which can conflict with char $ac_func(); below. */
7170 #include <assert.h> 7194 #include <assert.h>
7171 /* Override any gcc2 internal prototype to avoid an error. */ 7195 /* Override any gcc2 internal prototype to avoid an error. */
7184 $ac_func(); 7208 $ac_func();
7185 #endif 7209 #endif
7186 7210
7187 ; return 0; } 7211 ; return 0; }
7188 EOF 7212 EOF
7189 if { (eval echo configure:7190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7213 if { (eval echo configure:7214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7190 rm -rf conftest* 7214 rm -rf conftest*
7191 eval "ac_cv_func_$ac_func=yes" 7215 eval "ac_cv_func_$ac_func=yes"
7192 else 7216 else
7193 echo "configure: failed program was:" >&5 7217 echo "configure: failed program was:" >&5
7194 cat conftest.$ac_ext >&5 7218 cat conftest.$ac_ext >&5
7216 7240
7217 for ac_hdr in X11/Xlocale.h 7241 for ac_hdr in X11/Xlocale.h
7218 do 7242 do
7219 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7243 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7220 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7244 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7221 echo "configure:7222: checking for $ac_hdr" >&5 7245 echo "configure:7246: checking for $ac_hdr" >&5
7222 7246
7223 cat > conftest.$ac_ext <<EOF 7247 cat > conftest.$ac_ext <<EOF
7224 #line 7225 "configure" 7248 #line 7249 "configure"
7225 #include "confdefs.h" 7249 #include "confdefs.h"
7226 #include <$ac_hdr> 7250 #include <$ac_hdr>
7227 EOF 7251 EOF
7228 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7252 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7229 { (eval echo configure:7230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7253 { (eval echo configure:7254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7230 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7254 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7231 if test -z "$ac_err"; then 7255 if test -z "$ac_err"; then
7232 rm -rf conftest* 7256 rm -rf conftest*
7233 eval "ac_cv_header_$ac_safe=yes" 7257 eval "ac_cv_header_$ac_safe=yes"
7234 else 7258 else
7257 7281
7258 7282
7259 for ac_func in XRegisterIMInstantiateCallback 7283 for ac_func in XRegisterIMInstantiateCallback
7260 do 7284 do
7261 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7285 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7262 echo "configure:7263: checking for $ac_func" >&5 7286 echo "configure:7287: checking for $ac_func" >&5
7263 7287
7264 cat > conftest.$ac_ext <<EOF 7288 cat > conftest.$ac_ext <<EOF
7265 #line 7266 "configure" 7289 #line 7290 "configure"
7266 #include "confdefs.h" 7290 #include "confdefs.h"
7267 /* System header to define __stub macros and hopefully few prototypes, 7291 /* System header to define __stub macros and hopefully few prototypes,
7268 which can conflict with char $ac_func(); below. */ 7292 which can conflict with char $ac_func(); below. */
7269 #include <assert.h> 7293 #include <assert.h>
7270 /* Override any gcc2 internal prototype to avoid an error. */ 7294 /* Override any gcc2 internal prototype to avoid an error. */
7283 $ac_func(); 7307 $ac_func();
7284 #endif 7308 #endif
7285 7309
7286 ; return 0; } 7310 ; return 0; }
7287 EOF 7311 EOF
7288 if { (eval echo configure:7289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7312 if { (eval echo configure:7313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7289 rm -rf conftest* 7313 rm -rf conftest*
7290 eval "ac_cv_func_$ac_func=yes" 7314 eval "ac_cv_func_$ac_func=yes"
7291 else 7315 else
7292 echo "configure: failed program was:" >&5 7316 echo "configure: failed program was:" >&5
7293 cat conftest.$ac_ext >&5 7317 cat conftest.$ac_ext >&5
7311 echo "$ac_t""no" 1>&6 7335 echo "$ac_t""no" 1>&6
7312 fi 7336 fi
7313 done 7337 done
7314 7338
7315 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6 7339 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
7316 echo "configure:7317: checking for standard XRegisterIMInstantiateCallback prototype" >&5 7340 echo "configure:7341: checking for standard XRegisterIMInstantiateCallback prototype" >&5
7317 cat > conftest.$ac_ext <<EOF 7341 cat > conftest.$ac_ext <<EOF
7318 #line 7319 "configure" 7342 #line 7343 "configure"
7319 #include "confdefs.h" 7343 #include "confdefs.h"
7320 7344
7321 #define NeedFunctionPrototypes 1 7345 #define NeedFunctionPrototypes 1
7322 #include <X11/Xlib.h> 7346 #include <X11/Xlib.h>
7323 extern Bool XRegisterIMInstantiateCallback( 7347 extern Bool XRegisterIMInstantiateCallback(
7325 7349
7326 int main() { 7350 int main() {
7327 7351
7328 ; return 0; } 7352 ; return 0; }
7329 EOF 7353 EOF
7330 if { (eval echo configure:7331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7354 if { (eval echo configure:7355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7331 rm -rf conftest* 7355 rm -rf conftest*
7332 echo "$ac_t""yes" 1>&6 7356 echo "$ac_t""yes" 1>&6
7333 else 7357 else
7334 echo "configure: failed program was:" >&5 7358 echo "configure: failed program was:" >&5
7335 cat conftest.$ac_ext >&5 7359 cat conftest.$ac_ext >&5
7346 fi 7370 fi
7347 rm -f conftest* 7371 rm -f conftest*
7348 7372
7349 test -z "$with_xmu" && { 7373 test -z "$with_xmu" && {
7350 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6 7374 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
7351 echo "configure:7352: checking for XmuReadBitmapDataFromFile in -lXmu" >&5 7375 echo "configure:7376: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
7352 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'` 7376 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
7353 7377
7354 xe_check_libs=" -lXmu " 7378 xe_check_libs=" -lXmu "
7355 cat > conftest.$ac_ext <<EOF 7379 cat > conftest.$ac_ext <<EOF
7356 #line 7357 "configure" 7380 #line 7381 "configure"
7357 #include "confdefs.h" 7381 #include "confdefs.h"
7358 /* Override any gcc2 internal prototype to avoid an error. */ 7382 /* Override any gcc2 internal prototype to avoid an error. */
7359 /* We use char because int might match the return type of a gcc2 7383 /* We use char because int might match the return type of a gcc2
7360 builtin and then its argument prototype would still apply. */ 7384 builtin and then its argument prototype would still apply. */
7361 char XmuReadBitmapDataFromFile(); 7385 char XmuReadBitmapDataFromFile();
7362 7386
7363 int main() { 7387 int main() {
7364 XmuReadBitmapDataFromFile() 7388 XmuReadBitmapDataFromFile()
7365 ; return 0; } 7389 ; return 0; }
7366 EOF 7390 EOF
7367 if { (eval echo configure:7368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7391 if { (eval echo configure:7392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7368 rm -rf conftest* 7392 rm -rf conftest*
7369 eval "ac_cv_lib_$ac_lib_var=yes" 7393 eval "ac_cv_lib_$ac_lib_var=yes"
7370 else 7394 else
7371 echo "configure: failed program was:" >&5 7395 echo "configure: failed program was:" >&5
7372 cat conftest.$ac_ext >&5 7396 cat conftest.$ac_ext >&5
7401 7425
7402 fi 7426 fi
7403 7427
7404 7428
7405 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 7429 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
7406 echo "configure:7407: checking for main in -lXbsd" >&5 7430 echo "configure:7431: checking for main in -lXbsd" >&5
7407 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 7431 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
7408 7432
7409 xe_check_libs=" -lXbsd " 7433 xe_check_libs=" -lXbsd "
7410 cat > conftest.$ac_ext <<EOF 7434 cat > conftest.$ac_ext <<EOF
7411 #line 7412 "configure" 7435 #line 7436 "configure"
7412 #include "confdefs.h" 7436 #include "confdefs.h"
7413 7437
7414 int main() { 7438 int main() {
7415 main() 7439 main()
7416 ; return 0; } 7440 ; return 0; }
7417 EOF 7441 EOF
7418 if { (eval echo configure:7419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7442 if { (eval echo configure:7443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7419 rm -rf conftest* 7443 rm -rf conftest*
7420 eval "ac_cv_lib_$ac_lib_var=yes" 7444 eval "ac_cv_lib_$ac_lib_var=yes"
7421 else 7445 else
7422 echo "configure: failed program was:" >&5 7446 echo "configure: failed program was:" >&5
7423 cat conftest.$ac_ext >&5 7447 cat conftest.$ac_ext >&5
7450 fi 7474 fi
7451 7475
7452 fi 7476 fi
7453 if test "$with_msw" != "no"; then 7477 if test "$with_msw" != "no"; then
7454 echo "checking for MS-Windows" 1>&6 7478 echo "checking for MS-Windows" 1>&6
7455 echo "configure:7456: checking for MS-Windows" >&5 7479 echo "configure:7480: checking for MS-Windows" >&5
7456 7480
7457 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6 7481 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
7458 echo "configure:7459: checking for main in -lgdi32" >&5 7482 echo "configure:7483: checking for main in -lgdi32" >&5
7459 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'` 7483 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
7460 7484
7461 xe_check_libs=" -lgdi32 " 7485 xe_check_libs=" -lgdi32 "
7462 cat > conftest.$ac_ext <<EOF 7486 cat > conftest.$ac_ext <<EOF
7463 #line 7464 "configure" 7487 #line 7488 "configure"
7464 #include "confdefs.h" 7488 #include "confdefs.h"
7465 7489
7466 int main() { 7490 int main() {
7467 main() 7491 main()
7468 ; return 0; } 7492 ; return 0; }
7469 EOF 7493 EOF
7470 if { (eval echo configure:7471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7494 if { (eval echo configure:7495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7471 rm -rf conftest* 7495 rm -rf conftest*
7472 eval "ac_cv_lib_$ac_lib_var=yes" 7496 eval "ac_cv_lib_$ac_lib_var=yes"
7473 else 7497 else
7474 echo "configure: failed program was:" >&5 7498 echo "configure: failed program was:" >&5
7475 cat conftest.$ac_ext >&5 7499 cat conftest.$ac_ext >&5
7516 test "$with_toolbars" != "no" && with_toolbars=msw 7540 test "$with_toolbars" != "no" && with_toolbars=msw
7517 test "$with_dialogs" != "no" && with_dialogs=msw 7541 test "$with_dialogs" != "no" && with_dialogs=msw
7518 test "$with_widgets" != "no" && with_widgets=msw 7542 test "$with_widgets" != "no" && with_widgets=msw
7519 fi 7543 fi
7520 cat > conftest.$ac_ext <<EOF 7544 cat > conftest.$ac_ext <<EOF
7521 #line 7522 "configure" 7545 #line 7546 "configure"
7522 #include "confdefs.h" 7546 #include "confdefs.h"
7523 #include <fcntl.h> 7547 #include <fcntl.h>
7524 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; } 7548 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
7525 EOF 7549 EOF
7526 if { (eval echo configure:7527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 7550 if { (eval echo configure:7551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7527 then 7551 then
7528 { test "$extra_verbose" = "yes" && cat << \EOF 7552 { test "$extra_verbose" = "yes" && cat << \EOF
7529 Defining HAVE_MSG_SELECT 7553 Defining HAVE_MSG_SELECT
7530 EOF 7554 EOF
7531 cat >> confdefs.h <<\EOF 7555 cat >> confdefs.h <<\EOF
7582 fi 7606 fi
7583 7607
7584 if test "$with_x11" = "yes"; then 7608 if test "$with_x11" = "yes"; then
7585 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'` 7609 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
7586 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6 7610 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
7587 echo "configure:7588: checking for X11/extensions/shape.h" >&5 7611 echo "configure:7612: checking for X11/extensions/shape.h" >&5
7588 7612
7589 cat > conftest.$ac_ext <<EOF 7613 cat > conftest.$ac_ext <<EOF
7590 #line 7591 "configure" 7614 #line 7615 "configure"
7591 #include "confdefs.h" 7615 #include "confdefs.h"
7592 #include <X11/extensions/shape.h> 7616 #include <X11/extensions/shape.h>
7593 EOF 7617 EOF
7594 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7618 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7595 { (eval echo configure:7596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7619 { (eval echo configure:7620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7596 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7620 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7597 if test -z "$ac_err"; then 7621 if test -z "$ac_err"; then
7598 rm -rf conftest* 7622 rm -rf conftest*
7599 eval "ac_cv_header_$ac_safe=yes" 7623 eval "ac_cv_header_$ac_safe=yes"
7600 else 7624 else
7640 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" 7664 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
7641 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" 7665 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
7642 esac 7666 esac
7643 7667
7644 echo "checking for WM_COMMAND option" 1>&6 7668 echo "checking for WM_COMMAND option" 1>&6
7645 echo "configure:7646: checking for WM_COMMAND option" >&5; 7669 echo "configure:7670: checking for WM_COMMAND option" >&5;
7646 if test "$with_wmcommand" != "no"; then 7670 if test "$with_wmcommand" != "no"; then
7647 { test "$extra_verbose" = "yes" && cat << \EOF 7671 { test "$extra_verbose" = "yes" && cat << \EOF
7648 Defining HAVE_WMCOMMAND 7672 Defining HAVE_WMCOMMAND
7649 EOF 7673 EOF
7650 cat >> confdefs.h <<\EOF 7674 cat >> confdefs.h <<\EOF
7655 fi 7679 fi
7656 7680
7657 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no 7681 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
7658 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` 7682 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
7659 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 7683 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
7660 echo "configure:7661: checking for X11/Xauth.h" >&5 7684 echo "configure:7685: checking for X11/Xauth.h" >&5
7661 7685
7662 cat > conftest.$ac_ext <<EOF 7686 cat > conftest.$ac_ext <<EOF
7663 #line 7664 "configure" 7687 #line 7688 "configure"
7664 #include "confdefs.h" 7688 #include "confdefs.h"
7665 #include <X11/Xauth.h> 7689 #include <X11/Xauth.h>
7666 EOF 7690 EOF
7667 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7691 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7668 { (eval echo configure:7669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7692 { (eval echo configure:7693: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7669 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7693 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7670 if test -z "$ac_err"; then 7694 if test -z "$ac_err"; then
7671 rm -rf conftest* 7695 rm -rf conftest*
7672 eval "ac_cv_header_$ac_safe=yes" 7696 eval "ac_cv_header_$ac_safe=yes"
7673 else 7697 else
7686 with_xauth=no 7710 with_xauth=no
7687 fi 7711 fi
7688 } 7712 }
7689 test -z "$with_xauth" && { 7713 test -z "$with_xauth" && {
7690 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 7714 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
7691 echo "configure:7692: checking for XauGetAuthByAddr in -lXau" >&5 7715 echo "configure:7716: checking for XauGetAuthByAddr in -lXau" >&5
7692 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` 7716 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
7693 7717
7694 xe_check_libs=" -lXau " 7718 xe_check_libs=" -lXau "
7695 cat > conftest.$ac_ext <<EOF 7719 cat > conftest.$ac_ext <<EOF
7696 #line 7697 "configure" 7720 #line 7721 "configure"
7697 #include "confdefs.h" 7721 #include "confdefs.h"
7698 /* Override any gcc2 internal prototype to avoid an error. */ 7722 /* Override any gcc2 internal prototype to avoid an error. */
7699 /* We use char because int might match the return type of a gcc2 7723 /* We use char because int might match the return type of a gcc2
7700 builtin and then its argument prototype would still apply. */ 7724 builtin and then its argument prototype would still apply. */
7701 char XauGetAuthByAddr(); 7725 char XauGetAuthByAddr();
7702 7726
7703 int main() { 7727 int main() {
7704 XauGetAuthByAddr() 7728 XauGetAuthByAddr()
7705 ; return 0; } 7729 ; return 0; }
7706 EOF 7730 EOF
7707 if { (eval echo configure:7708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7731 if { (eval echo configure:7732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7708 rm -rf conftest* 7732 rm -rf conftest*
7709 eval "ac_cv_lib_$ac_lib_var=yes" 7733 eval "ac_cv_lib_$ac_lib_var=yes"
7710 else 7734 else
7711 echo "configure: failed program was:" >&5 7735 echo "configure: failed program was:" >&5
7712 cat conftest.$ac_ext >&5 7736 cat conftest.$ac_ext >&5
7753 fi 7777 fi
7754 7778
7755 7779
7756 if test "$with_modules" != "no"; then 7780 if test "$with_modules" != "no"; then
7757 echo "checking for module support" 1>&6 7781 echo "checking for module support" 1>&6
7758 echo "configure:7759: checking for module support" >&5 7782 echo "configure:7783: checking for module support" >&5
7759 7783
7760 case "$opsys" in 7784 case "$opsys" in
7761 mingw* | cygwin* ) have_dl=yes ;; 7785 mingw* | cygwin* ) have_dl=yes ;;
7762 darwin ) have_dl=yes 7786 darwin ) have_dl=yes
7763 { test "$extra_verbose" = "yes" && cat << \EOF 7787 { test "$extra_verbose" = "yes" && cat << \EOF
7770 7794
7771 ;; 7795 ;;
7772 * ) 7796 * )
7773 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'` 7797 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
7774 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6 7798 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
7775 echo "configure:7776: checking for dlfcn.h" >&5 7799 echo "configure:7800: checking for dlfcn.h" >&5
7776 7800
7777 cat > conftest.$ac_ext <<EOF 7801 cat > conftest.$ac_ext <<EOF
7778 #line 7779 "configure" 7802 #line 7803 "configure"
7779 #include "confdefs.h" 7803 #include "confdefs.h"
7780 #include <dlfcn.h> 7804 #include <dlfcn.h>
7781 EOF 7805 EOF
7782 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7806 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7783 { (eval echo configure:7784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7807 { (eval echo configure:7808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7784 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7808 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7785 if test -z "$ac_err"; then 7809 if test -z "$ac_err"; then
7786 rm -rf conftest* 7810 rm -rf conftest*
7787 eval "ac_cv_header_$ac_safe=yes" 7811 eval "ac_cv_header_$ac_safe=yes"
7788 else 7812 else
7795 rm -f conftest* 7819 rm -f conftest*
7796 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 7820 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7797 echo "$ac_t""yes" 1>&6 7821 echo "$ac_t""yes" 1>&6
7798 7822
7799 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6 7823 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
7800 echo "configure:7801: checking for dlopen in -lc" >&5 7824 echo "configure:7825: checking for dlopen in -lc" >&5
7801 cat > conftest.$ac_ext <<EOF 7825 cat > conftest.$ac_ext <<EOF
7802 #line 7803 "configure" 7826 #line 7827 "configure"
7803 #include "confdefs.h" 7827 #include "confdefs.h"
7804 #include <dlfcn.h> 7828 #include <dlfcn.h>
7805 int main() { 7829 int main() {
7806 dlopen ("", 0); 7830 dlopen ("", 0);
7807 ; return 0; } 7831 ; return 0; }
7808 EOF 7832 EOF
7809 if { (eval echo configure:7810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7833 if { (eval echo configure:7834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7810 rm -rf conftest* 7834 rm -rf conftest*
7811 have_dl=yes 7835 have_dl=yes
7812 else 7836 else
7813 echo "configure: failed program was:" >&5 7837 echo "configure: failed program was:" >&5
7814 cat conftest.$ac_ext >&5 7838 cat conftest.$ac_ext >&5
7815 rm -rf conftest* 7839 rm -rf conftest*
7816 7840
7817 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 7841 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
7818 echo "configure:7819: checking for dlopen in -ldl" >&5 7842 echo "configure:7843: checking for dlopen in -ldl" >&5
7819 ac_save_LIBS="$LIBS" 7843 ac_save_LIBS="$LIBS"
7820 LIBS="$LIBS -ldl" 7844 LIBS="$LIBS -ldl"
7821 cat > conftest.$ac_ext <<EOF 7845 cat > conftest.$ac_ext <<EOF
7822 #line 7823 "configure" 7846 #line 7847 "configure"
7823 #include "confdefs.h" 7847 #include "confdefs.h"
7824 #include <dlfcn.h> 7848 #include <dlfcn.h>
7825 int main() { 7849 int main() {
7826 dlopen ("", 0); 7850 dlopen ("", 0);
7827 ; return 0; } 7851 ; return 0; }
7828 EOF 7852 EOF
7829 if { (eval echo configure:7830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7853 if { (eval echo configure:7854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7830 rm -rf conftest* 7854 rm -rf conftest*
7831 have_dl=yes 7855 have_dl=yes
7832 else 7856 else
7833 echo "configure: failed program was:" >&5 7857 echo "configure: failed program was:" >&5
7834 cat conftest.$ac_ext >&5 7858 cat conftest.$ac_ext >&5
7835 rm -rf conftest* 7859 rm -rf conftest*
7836 7860
7837 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6 7861 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
7838 echo "configure:7839: checking for dlopen in -lsvld" >&5 7862 echo "configure:7863: checking for dlopen in -lsvld" >&5
7839 LIBS="$ac_save_LIBS -lsvld" 7863 LIBS="$ac_save_LIBS -lsvld"
7840 cat > conftest.$ac_ext <<EOF 7864 cat > conftest.$ac_ext <<EOF
7841 #line 7842 "configure" 7865 #line 7866 "configure"
7842 #include "confdefs.h" 7866 #include "confdefs.h"
7843 #include <dlfcn.h> 7867 #include <dlfcn.h>
7844 int main() { 7868 int main() {
7845 dlopen ("", 0); 7869 dlopen ("", 0);
7846 ; return 0; } 7870 ; return 0; }
7847 EOF 7871 EOF
7848 if { (eval echo configure:7849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7872 if { (eval echo configure:7873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7849 rm -rf conftest* 7873 rm -rf conftest*
7850 have_dl=yes 7874 have_dl=yes
7851 else 7875 else
7852 echo "configure: failed program was:" >&5 7876 echo "configure: failed program was:" >&5
7853 cat conftest.$ac_ext >&5 7877 cat conftest.$ac_ext >&5
7873 } 7897 }
7874 7898
7875 else 7899 else
7876 ac_safe=`echo "dl.h" | sed 'y%./+-%__p_%'` 7900 ac_safe=`echo "dl.h" | sed 'y%./+-%__p_%'`
7877 echo $ac_n "checking for dl.h""... $ac_c" 1>&6 7901 echo $ac_n "checking for dl.h""... $ac_c" 1>&6
7878 echo "configure:7879: checking for dl.h" >&5 7902 echo "configure:7903: checking for dl.h" >&5
7879 7903
7880 cat > conftest.$ac_ext <<EOF 7904 cat > conftest.$ac_ext <<EOF
7881 #line 7882 "configure" 7905 #line 7906 "configure"
7882 #include "confdefs.h" 7906 #include "confdefs.h"
7883 #include <dl.h> 7907 #include <dl.h>
7884 EOF 7908 EOF
7885 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7909 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7886 { (eval echo configure:7887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7910 { (eval echo configure:7911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7887 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7911 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7888 if test -z "$ac_err"; then 7912 if test -z "$ac_err"; then
7889 rm -rf conftest* 7913 rm -rf conftest*
7890 eval "ac_cv_header_$ac_safe=yes" 7914 eval "ac_cv_header_$ac_safe=yes"
7891 else 7915 else
7898 rm -f conftest* 7922 rm -f conftest*
7899 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 7923 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7900 echo "$ac_t""yes" 1>&6 7924 echo "$ac_t""yes" 1>&6
7901 7925
7902 echo $ac_n "checking for shl_load in -lc""... $ac_c" 1>&6 7926 echo $ac_n "checking for shl_load in -lc""... $ac_c" 1>&6
7903 echo "configure:7904: checking for shl_load in -lc" >&5 7927 echo "configure:7928: checking for shl_load in -lc" >&5
7904 cat > conftest.$ac_ext <<EOF 7928 cat > conftest.$ac_ext <<EOF
7905 #line 7906 "configure" 7929 #line 7930 "configure"
7906 #include "confdefs.h" 7930 #include "confdefs.h"
7907 #include <dl.h> 7931 #include <dl.h>
7908 int main() { 7932 int main() {
7909 shl_load ("", 0, 0); 7933 shl_load ("", 0, 0);
7910 ; return 0; } 7934 ; return 0; }
7911 EOF 7935 EOF
7912 if { (eval echo configure:7913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7936 if { (eval echo configure:7937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7913 rm -rf conftest* 7937 rm -rf conftest*
7914 have_dl=yes 7938 have_dl=yes
7915 else 7939 else
7916 echo "configure: failed program was:" >&5 7940 echo "configure: failed program was:" >&5
7917 cat conftest.$ac_ext >&5 7941 cat conftest.$ac_ext >&5
7918 rm -rf conftest* 7942 rm -rf conftest*
7919 7943
7920 echo $ac_n "checking for shl_load in -ldl""... $ac_c" 1>&6 7944 echo $ac_n "checking for shl_load in -ldl""... $ac_c" 1>&6
7921 echo "configure:7922: checking for shl_load in -ldl" >&5 7945 echo "configure:7946: checking for shl_load in -ldl" >&5
7922 ac_save_LIBS="$LIBS" 7946 ac_save_LIBS="$LIBS"
7923 LIBS="$LIBS -ldld" 7947 LIBS="$LIBS -ldld"
7924 cat > conftest.$ac_ext <<EOF 7948 cat > conftest.$ac_ext <<EOF
7925 #line 7926 "configure" 7949 #line 7950 "configure"
7926 #include "confdefs.h" 7950 #include "confdefs.h"
7927 #include <dl.h> 7951 #include <dl.h>
7928 int main() { 7952 int main() {
7929 shl_load ("", 0, 0); 7953 shl_load ("", 0, 0);
7930 ; return 0; } 7954 ; return 0; }
7931 EOF 7955 EOF
7932 if { (eval echo configure:7933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7956 if { (eval echo configure:7957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7933 rm -rf conftest* 7957 rm -rf conftest*
7934 have_dl=yes 7958 have_dl=yes
7935 else 7959 else
7936 echo "configure: failed program was:" >&5 7960 echo "configure: failed program was:" >&5
7937 cat conftest.$ac_ext >&5 7961 cat conftest.$ac_ext >&5
7955 } 7979 }
7956 7980
7957 else 7981 else
7958 ac_safe=`echo "ltdl.h" | sed 'y%./+-%__p_%'` 7982 ac_safe=`echo "ltdl.h" | sed 'y%./+-%__p_%'`
7959 echo $ac_n "checking for ltdl.h""... $ac_c" 1>&6 7983 echo $ac_n "checking for ltdl.h""... $ac_c" 1>&6
7960 echo "configure:7961: checking for ltdl.h" >&5 7984 echo "configure:7985: checking for ltdl.h" >&5
7961 7985
7962 cat > conftest.$ac_ext <<EOF 7986 cat > conftest.$ac_ext <<EOF
7963 #line 7964 "configure" 7987 #line 7988 "configure"
7964 #include "confdefs.h" 7988 #include "confdefs.h"
7965 #include <ltdl.h> 7989 #include <ltdl.h>
7966 EOF 7990 EOF
7967 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7991 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7968 { (eval echo configure:7969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7992 { (eval echo configure:7993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7969 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7993 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7970 if test -z "$ac_err"; then 7994 if test -z "$ac_err"; then
7971 rm -rf conftest* 7995 rm -rf conftest*
7972 eval "ac_cv_header_$ac_safe=yes" 7996 eval "ac_cv_header_$ac_safe=yes"
7973 else 7997 else
7980 rm -f conftest* 8004 rm -f conftest*
7981 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8005 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7982 echo "$ac_t""yes" 1>&6 8006 echo "$ac_t""yes" 1>&6
7983 8007
7984 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6 8008 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
7985 echo "configure:7986: checking for lt_dlinit in -lltdl" >&5 8009 echo "configure:8010: checking for lt_dlinit in -lltdl" >&5
7986 ac_save_LIBS="$LIBS" 8010 ac_save_LIBS="$LIBS"
7987 LIBS="$LIBS -lltdl" 8011 LIBS="$LIBS -lltdl"
7988 cat > conftest.$ac_ext <<EOF 8012 cat > conftest.$ac_ext <<EOF
7989 #line 7990 "configure" 8013 #line 8014 "configure"
7990 #include "confdefs.h" 8014 #include "confdefs.h"
7991 #include <ltdl.h> 8015 #include <ltdl.h>
7992 int main() { 8016 int main() {
7993 lt_dlinit (); 8017 lt_dlinit ();
7994 ; return 0; } 8018 ; return 0; }
7995 EOF 8019 EOF
7996 if { (eval echo configure:7997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8020 if { (eval echo configure:8021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7997 rm -rf conftest* 8021 rm -rf conftest*
7998 have_dl=yes 8022 have_dl=yes
7999 else 8023 else
8000 echo "configure: failed program was:" >&5 8024 echo "configure: failed program was:" >&5
8001 cat conftest.$ac_ext >&5 8025 cat conftest.$ac_ext >&5
8032 ld_dynamic_link_flags= 8056 ld_dynamic_link_flags=
8033 xehost=$canonical 8057 xehost=$canonical
8034 xealias=$internal_configuration 8058 xealias=$internal_configuration
8035 8059
8036 echo "checking how to build dynamic libraries for ${xehost}" 1>&6 8060 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
8037 echo "configure:8038: checking how to build dynamic libraries for ${xehost}" >&5 8061 echo "configure:8062: checking how to build dynamic libraries for ${xehost}" >&5
8038 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts. 8062 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
8039 case "$xehost" in 8063 case "$xehost" in
8040 *-*-linux-gnu*) ;; 8064 *-*-linux-gnu*) ;;
8041 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` 8065 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
8042 esac 8066 esac
8060 # Now see if the compiler is really GCC. 8084 # Now see if the compiler is really GCC.
8061 if test "$GCC" = "yes"; then 8085 if test "$GCC" = "yes"; then
8062 XEGCC=yes 8086 XEGCC=yes
8063 else 8087 else
8064 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6 8088 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
8065 echo "configure:8066: checking checking whether we are using GNU C" >&5 8089 echo "configure:8090: checking checking whether we are using GNU C" >&5
8066 cat > conftest.$ac_ext <<EOF 8090 cat > conftest.$ac_ext <<EOF
8067 #line 8068 "configure" 8091 #line 8092 "configure"
8068 #include "confdefs.h" 8092 #include "confdefs.h"
8069 8093
8070 #ifdef __GNUC__ 8094 #ifdef __GNUC__
8071 yes; 8095 yes;
8072 #endif 8096 #endif
8084 8108
8085 echo "$ac_t""${XEGCC}" 1>&6 8109 echo "$ac_t""${XEGCC}" 1>&6
8086 fi 8110 fi
8087 8111
8088 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6 8112 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
8089 echo "configure:8090: checking how to produce PIC code" >&5 8113 echo "configure:8114: checking how to produce PIC code" >&5
8090 wl= 8114 wl=
8091 8115
8092 can_build_shared=yes 8116 can_build_shared=yes
8093 if test "$XEGCC" = yes -o "$__ICC" = yes; then 8117 if test "$XEGCC" = yes -o "$__ICC" = yes; then
8094 wl='-Wl,' 8118 wl='-Wl,'
8188 if test -n "$dll_cflags"; then 8212 if test -n "$dll_cflags"; then
8189 echo "$ac_t""${dll_cflags}" 1>&6 8213 echo "$ac_t""${dll_cflags}" 1>&6
8190 8214
8191 # Check to make sure the dll_cflags actually works. 8215 # Check to make sure the dll_cflags actually works.
8192 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6 8216 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
8193 echo "configure:8194: checking if PIC flag ${dll_cflags} really works" >&5 8217 echo "configure:8218: checking if PIC flag ${dll_cflags} really works" >&5
8194 save_CFLAGS="$CFLAGS" 8218 save_CFLAGS="$CFLAGS"
8195 CFLAGS="$CFLAGS $dll_cflags -DPIC" 8219 CFLAGS="$CFLAGS $dll_cflags -DPIC"
8196 cat > conftest.$ac_ext <<EOF 8220 cat > conftest.$ac_ext <<EOF
8197 #line 8198 "configure" 8221 #line 8222 "configure"
8198 #include "confdefs.h" 8222 #include "confdefs.h"
8199 8223
8200 int main() { 8224 int main() {
8201 int x=0; 8225 int x=0;
8202 ; return 0; } 8226 ; return 0; }
8203 EOF 8227 EOF
8204 if { (eval echo configure:8205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8228 if { (eval echo configure:8229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8205 rm -rf conftest* 8229 rm -rf conftest*
8206 8230
8207 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also 8231 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
8208 # reports no error. So, we need to grep stderr for (Bundled). 8232 # reports no error. So, we need to grep stderr for (Bundled).
8209 if grep '(Bundled)' config.log >/dev/null; then 8233 if grep '(Bundled)' config.log >/dev/null; then
8230 if test "$can_build_shared" = "yes"; then 8254 if test "$can_build_shared" = "yes"; then
8231 cc_produces_so=no 8255 cc_produces_so=no
8232 xldf= 8256 xldf=
8233 xcldf= 8257 xcldf=
8234 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6 8258 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
8235 echo "configure:8236: checking if C compiler can produce shared libraries" >&5 8259 echo "configure:8260: checking if C compiler can produce shared libraries" >&5
8236 if test "$XEGCC" = yes -o "$__ICC" = yes; then 8260 if test "$XEGCC" = yes -o "$__ICC" = yes; then
8237 case "$xehost_os" in 8261 case "$xehost_os" in
8238 *darwin*) 8262 *darwin*)
8239 xcldf='-bundle' 8263 xcldf='-bundle'
8240 xldf='-bundle -bundle_loader ../../src/xemacs' 8264 xldf='-bundle -bundle_loader ../../src/xemacs'
8289 LDFLAGS="$xcldf $LDFLAGS" 8313 LDFLAGS="$xcldf $LDFLAGS"
8290 LIBS= 8314 LIBS=
8291 xe_libs= 8315 xe_libs=
8292 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 8316 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
8293 cat > conftest.$ac_ext <<EOF 8317 cat > conftest.$ac_ext <<EOF
8294 #line 8295 "configure" 8318 #line 8319 "configure"
8295 #include "confdefs.h" 8319 #include "confdefs.h"
8296 8320
8297 int main() { 8321 int main() {
8298 int x=0; 8322 int x=0;
8299 ; return 0; } 8323 ; return 0; }
8300 EOF 8324 EOF
8301 if { (eval echo configure:8302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8325 if { (eval echo configure:8326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8302 rm -rf conftest* 8326 rm -rf conftest*
8303 cc_produces_so=yes 8327 cc_produces_so=yes
8304 else 8328 else
8305 echo "configure: failed program was:" >&5 8329 echo "configure: failed program was:" >&5
8306 cat conftest.$ac_ext >&5 8330 cat conftest.$ac_ext >&5
8321 if test -z "$LTLD"; then 8345 if test -z "$LTLD"; then
8322 ac_prog=ld 8346 ac_prog=ld
8323 if test "$XEGCC" = yes; then 8347 if test "$XEGCC" = yes; then
8324 # Check if gcc -print-prog-name=ld gives a path. 8348 # Check if gcc -print-prog-name=ld gives a path.
8325 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 8349 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
8326 echo "configure:8327: checking for ld used by GCC" >&5 8350 echo "configure:8351: checking for ld used by GCC" >&5
8327 ac_prog=`($CC -print-prog-name=ld) 2>&5` 8351 ac_prog=`($CC -print-prog-name=ld) 2>&5`
8328 case "$ac_prog" in 8352 case "$ac_prog" in
8329 # Accept absolute paths. 8353 # Accept absolute paths.
8330 /*) 8354 /*)
8331 if test -z "$LTLD"; then 8355 if test -z "$LTLD"; then
8347 with_gnu_ld=unknown 8371 with_gnu_ld=unknown
8348 ;; 8372 ;;
8349 esac 8373 esac
8350 else 8374 else
8351 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 8375 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
8352 echo "configure:8353: checking for GNU ld" >&5 8376 echo "configure:8377: checking for GNU ld" >&5
8353 fi 8377 fi
8354 8378
8355 if test -z "$LTLD"; then 8379 if test -z "$LTLD"; then
8356 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 8380 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8357 for ac_dir in $PATH; do 8381 for ac_dir in $PATH; do
8385 8409
8386 ld_dynamic_link_flags= 8410 ld_dynamic_link_flags=
8387 8411
8388 # Check to see if it really is or isn't GNU ld. 8412 # Check to see if it really is or isn't GNU ld.
8389 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6 8413 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
8390 echo "configure:8391: checking if the linker is GNU ld" >&5 8414 echo "configure:8415: checking if the linker is GNU ld" >&5
8391 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 8415 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8392 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 8416 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8393 xe_gnu_ld=yes 8417 xe_gnu_ld=yes
8394 else 8418 else
8395 xe_gnu_ld=no 8419 xe_gnu_ld=no
8420 ld_shlibs=yes 8444 ld_shlibs=yes
8421 else 8445 else
8422 # OK - only NOW do we futz about with ld. 8446 # OK - only NOW do we futz about with ld.
8423 # See if the linker supports building shared libraries. 8447 # See if the linker supports building shared libraries.
8424 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6 8448 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
8425 echo "configure:8426: checking whether the linker supports shared libraries" >&5 8449 echo "configure:8450: checking whether the linker supports shared libraries" >&5
8426 dll_ld=$CC 8450 dll_ld=$CC
8427 dll_ldflags=$LDFLAGS 8451 dll_ldflags=$LDFLAGS
8428 ld_shlibs=yes 8452 ld_shlibs=yes
8429 can_build_shared=yes 8453 can_build_shared=yes
8430 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then 8454 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
8633 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi 8657 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
8634 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi 8658 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
8635 for ac_func in dlerror _dlerror 8659 for ac_func in dlerror _dlerror
8636 do 8660 do
8637 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8661 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8638 echo "configure:8639: checking for $ac_func" >&5 8662 echo "configure:8663: checking for $ac_func" >&5
8639 8663
8640 cat > conftest.$ac_ext <<EOF 8664 cat > conftest.$ac_ext <<EOF
8641 #line 8642 "configure" 8665 #line 8666 "configure"
8642 #include "confdefs.h" 8666 #include "confdefs.h"
8643 /* System header to define __stub macros and hopefully few prototypes, 8667 /* System header to define __stub macros and hopefully few prototypes,
8644 which can conflict with char $ac_func(); below. */ 8668 which can conflict with char $ac_func(); below. */
8645 #include <assert.h> 8669 #include <assert.h>
8646 /* Override any gcc2 internal prototype to avoid an error. */ 8670 /* Override any gcc2 internal prototype to avoid an error. */
8659 $ac_func(); 8683 $ac_func();
8660 #endif 8684 #endif
8661 8685
8662 ; return 0; } 8686 ; return 0; }
8663 EOF 8687 EOF
8664 if { (eval echo configure:8665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8688 if { (eval echo configure:8689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8665 rm -rf conftest* 8689 rm -rf conftest*
8666 eval "ac_cv_func_$ac_func=yes" 8690 eval "ac_cv_func_$ac_func=yes"
8667 else 8691 else
8668 echo "configure: failed program was:" >&5 8692 echo "configure: failed program was:" >&5
8669 cat conftest.$ac_ext >&5 8693 cat conftest.$ac_ext >&5
8723 8747
8724 if test "$with_tooltalk" != "no" ; then 8748 if test "$with_tooltalk" != "no" ; then
8725 for dir in "" "Tt/" "desktop/" ; do 8749 for dir in "" "Tt/" "desktop/" ; do
8726 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` 8750 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
8727 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 8751 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
8728 echo "configure:8729: checking for ${dir}tt_c.h" >&5 8752 echo "configure:8753: checking for ${dir}tt_c.h" >&5
8729 8753
8730 cat > conftest.$ac_ext <<EOF 8754 cat > conftest.$ac_ext <<EOF
8731 #line 8732 "configure" 8755 #line 8756 "configure"
8732 #include "confdefs.h" 8756 #include "confdefs.h"
8733 #include <${dir}tt_c.h> 8757 #include <${dir}tt_c.h>
8734 EOF 8758 EOF
8735 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8759 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8736 { (eval echo configure:8737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8760 { (eval echo configure:8761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8737 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8761 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8738 if test -z "$ac_err"; then 8762 if test -z "$ac_err"; then
8739 rm -rf conftest* 8763 rm -rf conftest*
8740 eval "ac_cv_header_$ac_safe=yes" 8764 eval "ac_cv_header_$ac_safe=yes"
8741 else 8765 else
8767 for extra_libs in "" "-lI18N -lce" "-lcxx"; do 8791 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
8768 8792
8769 xe_msg_checking="for tt_message_create in -ltt" 8793 xe_msg_checking="for tt_message_create in -ltt"
8770 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 8794 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
8771 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 8795 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
8772 echo "configure:8773: checking "$xe_msg_checking"" >&5 8796 echo "configure:8797: checking "$xe_msg_checking"" >&5
8773 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` 8797 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
8774 8798
8775 xe_check_libs=" -ltt $extra_libs" 8799 xe_check_libs=" -ltt $extra_libs"
8776 cat > conftest.$ac_ext <<EOF 8800 cat > conftest.$ac_ext <<EOF
8777 #line 8778 "configure" 8801 #line 8802 "configure"
8778 #include "confdefs.h" 8802 #include "confdefs.h"
8779 /* Override any gcc2 internal prototype to avoid an error. */ 8803 /* Override any gcc2 internal prototype to avoid an error. */
8780 /* We use char because int might match the return type of a gcc2 8804 /* We use char because int might match the return type of a gcc2
8781 builtin and then its argument prototype would still apply. */ 8805 builtin and then its argument prototype would still apply. */
8782 char tt_message_create(); 8806 char tt_message_create();
8783 8807
8784 int main() { 8808 int main() {
8785 tt_message_create() 8809 tt_message_create()
8786 ; return 0; } 8810 ; return 0; }
8787 EOF 8811 EOF
8788 if { (eval echo configure:8789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8812 if { (eval echo configure:8813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8789 rm -rf conftest* 8813 rm -rf conftest*
8790 eval "ac_cv_lib_$ac_lib_var=yes" 8814 eval "ac_cv_lib_$ac_lib_var=yes"
8791 else 8815 else
8792 echo "configure: failed program was:" >&5 8816 echo "configure: failed program was:" >&5
8793 cat conftest.$ac_ext >&5 8817 cat conftest.$ac_ext >&5
8837 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi 8861 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
8838 fi 8862 fi
8839 8863
8840 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` 8864 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
8841 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 8865 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
8842 echo "configure:8843: checking for Dt/Dt.h" >&5 8866 echo "configure:8867: checking for Dt/Dt.h" >&5
8843 8867
8844 cat > conftest.$ac_ext <<EOF 8868 cat > conftest.$ac_ext <<EOF
8845 #line 8846 "configure" 8869 #line 8870 "configure"
8846 #include "confdefs.h" 8870 #include "confdefs.h"
8847 #include <Dt/Dt.h> 8871 #include <Dt/Dt.h>
8848 EOF 8872 EOF
8849 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8873 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8850 { (eval echo configure:8851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8874 { (eval echo configure:8875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8851 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8875 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8852 if test -z "$ac_err"; then 8876 if test -z "$ac_err"; then
8853 rm -rf conftest* 8877 rm -rf conftest*
8854 eval "ac_cv_header_$ac_safe=yes" 8878 eval "ac_cv_header_$ac_safe=yes"
8855 else 8879 else
8868 with_cde=no 8892 with_cde=no
8869 fi 8893 fi
8870 } 8894 }
8871 test -z "$with_cde" && { 8895 test -z "$with_cde" && {
8872 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 8896 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
8873 echo "configure:8874: checking for DtDndDragStart in -lDtSvc" >&5 8897 echo "configure:8898: checking for DtDndDragStart in -lDtSvc" >&5
8874 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` 8898 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
8875 8899
8876 xe_check_libs=" -lDtSvc " 8900 xe_check_libs=" -lDtSvc "
8877 cat > conftest.$ac_ext <<EOF 8901 cat > conftest.$ac_ext <<EOF
8878 #line 8879 "configure" 8902 #line 8903 "configure"
8879 #include "confdefs.h" 8903 #include "confdefs.h"
8880 /* Override any gcc2 internal prototype to avoid an error. */ 8904 /* Override any gcc2 internal prototype to avoid an error. */
8881 /* We use char because int might match the return type of a gcc2 8905 /* We use char because int might match the return type of a gcc2
8882 builtin and then its argument prototype would still apply. */ 8906 builtin and then its argument prototype would still apply. */
8883 char DtDndDragStart(); 8907 char DtDndDragStart();
8884 8908
8885 int main() { 8909 int main() {
8886 DtDndDragStart() 8910 DtDndDragStart()
8887 ; return 0; } 8911 ; return 0; }
8888 EOF 8912 EOF
8889 if { (eval echo configure:8890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8913 if { (eval echo configure:8914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8890 rm -rf conftest* 8914 rm -rf conftest*
8891 eval "ac_cv_lib_$ac_lib_var=yes" 8915 eval "ac_cv_lib_$ac_lib_var=yes"
8892 else 8916 else
8893 echo "configure: failed program was:" >&5 8917 echo "configure: failed program was:" >&5
8894 cat conftest.$ac_ext >&5 8918 cat conftest.$ac_ext >&5
8965 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi 8989 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi
8966 fi 8990 fi
8967 8991
8968 if test "$with_dragndrop" != "no" ; then 8992 if test "$with_dragndrop" != "no" ; then
8969 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6 8993 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
8970 echo "configure:8971: checking if drag and drop API is needed" >&5 8994 echo "configure:8995: checking if drag and drop API is needed" >&5
8971 if test -n "$dragndrop_proto" ; then 8995 if test -n "$dragndrop_proto" ; then
8972 with_dragndrop=yes 8996 with_dragndrop=yes
8973 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6 8997 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
8974 { test "$extra_verbose" = "yes" && cat << \EOF 8998 { test "$extra_verbose" = "yes" && cat << \EOF
8975 Defining HAVE_DRAGNDROP 8999 Defining HAVE_DRAGNDROP
8985 echo "$ac_t""no" 1>&6 9009 echo "$ac_t""no" 1>&6
8986 fi 9010 fi
8987 fi 9011 fi
8988 9012
8989 echo "checking for LDAP" 1>&6 9013 echo "checking for LDAP" 1>&6
8990 echo "configure:8991: checking for LDAP" >&5 9014 echo "configure:9015: checking for LDAP" >&5
8991 ldap_libs= 9015 ldap_libs=
8992 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'` 9016 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
8993 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6 9017 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
8994 echo "configure:8995: checking for ldap.h" >&5 9018 echo "configure:9019: checking for ldap.h" >&5
8995 9019
8996 cat > conftest.$ac_ext <<EOF 9020 cat > conftest.$ac_ext <<EOF
8997 #line 8998 "configure" 9021 #line 9022 "configure"
8998 #include "confdefs.h" 9022 #include "confdefs.h"
8999 #include <ldap.h> 9023 #include <ldap.h>
9000 EOF 9024 EOF
9001 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9025 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9002 { (eval echo configure:9003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9026 { (eval echo configure:9027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9003 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9027 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9004 if test -z "$ac_err"; then 9028 if test -z "$ac_err"; then
9005 rm -rf conftest* 9029 rm -rf conftest*
9006 eval "ac_cv_header_$ac_safe=yes" 9030 eval "ac_cv_header_$ac_safe=yes"
9007 else 9031 else
9020 with_ldap=no 9044 with_ldap=no
9021 fi 9045 fi
9022 } 9046 }
9023 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'` 9047 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
9024 echo $ac_n "checking for lber.h""... $ac_c" 1>&6 9048 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
9025 echo "configure:9026: checking for lber.h" >&5 9049 echo "configure:9050: checking for lber.h" >&5
9026 9050
9027 cat > conftest.$ac_ext <<EOF 9051 cat > conftest.$ac_ext <<EOF
9028 #line 9029 "configure" 9052 #line 9053 "configure"
9029 #include "confdefs.h" 9053 #include "confdefs.h"
9030 #include <lber.h> 9054 #include <lber.h>
9031 EOF 9055 EOF
9032 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9033 { (eval echo configure:9034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9057 { (eval echo configure:9058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9034 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9058 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9035 if test -z "$ac_err"; then 9059 if test -z "$ac_err"; then
9036 rm -rf conftest* 9060 rm -rf conftest*
9037 eval "ac_cv_header_$ac_safe=yes" 9061 eval "ac_cv_header_$ac_safe=yes"
9038 else 9062 else
9052 fi 9076 fi
9053 } 9077 }
9054 if test "$with_ldap" != "no"; then 9078 if test "$with_ldap" != "no"; then
9055 9079
9056 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6 9080 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
9057 echo "configure:9058: checking for ldap_search in -lldap" >&5 9081 echo "configure:9082: checking for ldap_search in -lldap" >&5
9058 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'` 9082 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
9059 9083
9060 xe_check_libs=" -lldap " 9084 xe_check_libs=" -lldap "
9061 cat > conftest.$ac_ext <<EOF 9085 cat > conftest.$ac_ext <<EOF
9062 #line 9063 "configure" 9086 #line 9087 "configure"
9063 #include "confdefs.h" 9087 #include "confdefs.h"
9064 /* Override any gcc2 internal prototype to avoid an error. */ 9088 /* Override any gcc2 internal prototype to avoid an error. */
9065 /* We use char because int might match the return type of a gcc2 9089 /* We use char because int might match the return type of a gcc2
9066 builtin and then its argument prototype would still apply. */ 9090 builtin and then its argument prototype would still apply. */
9067 char ldap_search(); 9091 char ldap_search();
9068 9092
9069 int main() { 9093 int main() {
9070 ldap_search() 9094 ldap_search()
9071 ; return 0; } 9095 ; return 0; }
9072 EOF 9096 EOF
9073 if { (eval echo configure:9074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9097 if { (eval echo configure:9098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9074 rm -rf conftest* 9098 rm -rf conftest*
9075 eval "ac_cv_lib_$ac_lib_var=yes" 9099 eval "ac_cv_lib_$ac_lib_var=yes"
9076 else 9100 else
9077 echo "configure: failed program was:" >&5 9101 echo "configure: failed program was:" >&5
9078 cat conftest.$ac_ext >&5 9102 cat conftest.$ac_ext >&5
9093 9117
9094 test "$with_ldap_nolber" = "no" && { 9118 test "$with_ldap_nolber" = "no" && {
9095 xe_msg_checking="for ldap_open in -lldap" 9119 xe_msg_checking="for ldap_open in -lldap"
9096 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber" 9120 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
9097 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 9121 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
9098 echo "configure:9099: checking "$xe_msg_checking"" >&5 9122 echo "configure:9123: checking "$xe_msg_checking"" >&5
9099 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 9123 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
9100 9124
9101 xe_check_libs=" -lldap -llber" 9125 xe_check_libs=" -lldap -llber"
9102 cat > conftest.$ac_ext <<EOF 9126 cat > conftest.$ac_ext <<EOF
9103 #line 9104 "configure" 9127 #line 9128 "configure"
9104 #include "confdefs.h" 9128 #include "confdefs.h"
9105 /* Override any gcc2 internal prototype to avoid an error. */ 9129 /* Override any gcc2 internal prototype to avoid an error. */
9106 /* We use char because int might match the return type of a gcc2 9130 /* We use char because int might match the return type of a gcc2
9107 builtin and then its argument prototype would still apply. */ 9131 builtin and then its argument prototype would still apply. */
9108 char ldap_open(); 9132 char ldap_open();
9109 9133
9110 int main() { 9134 int main() {
9111 ldap_open() 9135 ldap_open()
9112 ; return 0; } 9136 ; return 0; }
9113 EOF 9137 EOF
9114 if { (eval echo configure:9115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9138 if { (eval echo configure:9139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9115 rm -rf conftest* 9139 rm -rf conftest*
9116 eval "ac_cv_lib_$ac_lib_var=yes" 9140 eval "ac_cv_lib_$ac_lib_var=yes"
9117 else 9141 else
9118 echo "configure: failed program was:" >&5 9142 echo "configure: failed program was:" >&5
9119 cat conftest.$ac_ext >&5 9143 cat conftest.$ac_ext >&5
9134 } 9158 }
9135 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && { 9159 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
9136 xe_msg_checking="for ldap_open in -lldap" 9160 xe_msg_checking="for ldap_open in -lldap"
9137 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb" 9161 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
9138 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 9162 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
9139 echo "configure:9140: checking "$xe_msg_checking"" >&5 9163 echo "configure:9164: checking "$xe_msg_checking"" >&5
9140 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 9164 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
9141 9165
9142 xe_check_libs=" -lldap -llber -lkrb" 9166 xe_check_libs=" -lldap -llber -lkrb"
9143 cat > conftest.$ac_ext <<EOF 9167 cat > conftest.$ac_ext <<EOF
9144 #line 9145 "configure" 9168 #line 9169 "configure"
9145 #include "confdefs.h" 9169 #include "confdefs.h"
9146 /* Override any gcc2 internal prototype to avoid an error. */ 9170 /* Override any gcc2 internal prototype to avoid an error. */
9147 /* We use char because int might match the return type of a gcc2 9171 /* We use char because int might match the return type of a gcc2
9148 builtin and then its argument prototype would still apply. */ 9172 builtin and then its argument prototype would still apply. */
9149 char ldap_open(); 9173 char ldap_open();
9150 9174
9151 int main() { 9175 int main() {
9152 ldap_open() 9176 ldap_open()
9153 ; return 0; } 9177 ; return 0; }
9154 EOF 9178 EOF
9155 if { (eval echo configure:9156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9179 if { (eval echo configure:9180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9156 rm -rf conftest* 9180 rm -rf conftest*
9157 eval "ac_cv_lib_$ac_lib_var=yes" 9181 eval "ac_cv_lib_$ac_lib_var=yes"
9158 else 9182 else
9159 echo "configure: failed program was:" >&5 9183 echo "configure: failed program was:" >&5
9160 cat conftest.$ac_ext >&5 9184 cat conftest.$ac_ext >&5
9175 } 9199 }
9176 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && { 9200 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
9177 xe_msg_checking="for ldap_open in -lldap" 9201 xe_msg_checking="for ldap_open in -lldap"
9178 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes" 9202 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
9179 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 9203 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
9180 echo "configure:9181: checking "$xe_msg_checking"" >&5 9204 echo "configure:9205: checking "$xe_msg_checking"" >&5
9181 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 9205 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
9182 9206
9183 xe_check_libs=" -lldap -llber -lkrb -ldes" 9207 xe_check_libs=" -lldap -llber -lkrb -ldes"
9184 cat > conftest.$ac_ext <<EOF 9208 cat > conftest.$ac_ext <<EOF
9185 #line 9186 "configure" 9209 #line 9210 "configure"
9186 #include "confdefs.h" 9210 #include "confdefs.h"
9187 /* Override any gcc2 internal prototype to avoid an error. */ 9211 /* Override any gcc2 internal prototype to avoid an error. */
9188 /* We use char because int might match the return type of a gcc2 9212 /* We use char because int might match the return type of a gcc2
9189 builtin and then its argument prototype would still apply. */ 9213 builtin and then its argument prototype would still apply. */
9190 char ldap_open(); 9214 char ldap_open();
9191 9215
9192 int main() { 9216 int main() {
9193 ldap_open() 9217 ldap_open()
9194 ; return 0; } 9218 ; return 0; }
9195 EOF 9219 EOF
9196 if { (eval echo configure:9197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9220 if { (eval echo configure:9221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9197 rm -rf conftest* 9221 rm -rf conftest*
9198 eval "ac_cv_lib_$ac_lib_var=yes" 9222 eval "ac_cv_lib_$ac_lib_var=yes"
9199 else 9223 else
9200 echo "configure: failed program was:" >&5 9224 echo "configure: failed program was:" >&5
9201 cat conftest.$ac_ext >&5 9225 cat conftest.$ac_ext >&5
9240 fi 9264 fi
9241 save_LIBS="$LIBS" LIBS="$LIBS $ldap_libs" 9265 save_LIBS="$LIBS" LIBS="$LIBS $ldap_libs"
9242 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result 9266 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
9243 do 9267 do
9244 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 9268 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9245 echo "configure:9246: checking for $ac_func" >&5 9269 echo "configure:9270: checking for $ac_func" >&5
9246 9270
9247 cat > conftest.$ac_ext <<EOF 9271 cat > conftest.$ac_ext <<EOF
9248 #line 9249 "configure" 9272 #line 9273 "configure"
9249 #include "confdefs.h" 9273 #include "confdefs.h"
9250 /* System header to define __stub macros and hopefully few prototypes, 9274 /* System header to define __stub macros and hopefully few prototypes,
9251 which can conflict with char $ac_func(); below. */ 9275 which can conflict with char $ac_func(); below. */
9252 #include <assert.h> 9276 #include <assert.h>
9253 /* Override any gcc2 internal prototype to avoid an error. */ 9277 /* Override any gcc2 internal prototype to avoid an error. */
9266 $ac_func(); 9290 $ac_func();
9267 #endif 9291 #endif
9268 9292
9269 ; return 0; } 9293 ; return 0; }
9270 EOF 9294 EOF
9271 if { (eval echo configure:9272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9295 if { (eval echo configure:9296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9272 rm -rf conftest* 9296 rm -rf conftest*
9273 eval "ac_cv_func_$ac_func=yes" 9297 eval "ac_cv_func_$ac_func=yes"
9274 else 9298 else
9275 echo "configure: failed program was:" >&5 9299 echo "configure: failed program was:" >&5
9276 cat conftest.$ac_ext >&5 9300 cat conftest.$ac_ext >&5
9305 9329
9306 9330
9307 postgresql_libs= 9331 postgresql_libs=
9308 if test "$with_postgresql" != "no"; then 9332 if test "$with_postgresql" != "no"; then
9309 echo "checking for PostgreSQL" 1>&6 9333 echo "checking for PostgreSQL" 1>&6
9310 echo "configure:9311: checking for PostgreSQL" >&5 9334 echo "configure:9335: checking for PostgreSQL" >&5
9311 9335
9312 for header_dir in "" "pgsql/" "postgresql/"; do 9336 for header_dir in "" "pgsql/" "postgresql/"; do
9313 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'` 9337 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
9314 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6 9338 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
9315 echo "configure:9316: checking for ${header_dir}libpq-fe.h" >&5 9339 echo "configure:9340: checking for ${header_dir}libpq-fe.h" >&5
9316 9340
9317 cat > conftest.$ac_ext <<EOF 9341 cat > conftest.$ac_ext <<EOF
9318 #line 9319 "configure" 9342 #line 9343 "configure"
9319 #include "confdefs.h" 9343 #include "confdefs.h"
9320 #include <${header_dir}libpq-fe.h> 9344 #include <${header_dir}libpq-fe.h>
9321 EOF 9345 EOF
9322 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9346 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9323 { (eval echo configure:9324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9347 { (eval echo configure:9348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9324 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9348 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9325 if test -z "$ac_err"; then 9349 if test -z "$ac_err"; then
9326 rm -rf conftest* 9350 rm -rf conftest*
9327 eval "ac_cv_header_$ac_safe=yes" 9351 eval "ac_cv_header_$ac_safe=yes"
9328 else 9352 else
9342 9366
9343 done 9367 done
9344 9368
9345 test -n "$libpq_fe_h_file" && { 9369 test -n "$libpq_fe_h_file" && {
9346 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6 9370 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
9347 echo "configure:9348: checking for PQconnectdb in -lpq" >&5 9371 echo "configure:9372: checking for PQconnectdb in -lpq" >&5
9348 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'` 9372 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
9349 9373
9350 xe_check_libs=" -lpq " 9374 xe_check_libs=" -lpq "
9351 cat > conftest.$ac_ext <<EOF 9375 cat > conftest.$ac_ext <<EOF
9352 #line 9353 "configure" 9376 #line 9377 "configure"
9353 #include "confdefs.h" 9377 #include "confdefs.h"
9354 /* Override any gcc2 internal prototype to avoid an error. */ 9378 /* Override any gcc2 internal prototype to avoid an error. */
9355 /* We use char because int might match the return type of a gcc2 9379 /* We use char because int might match the return type of a gcc2
9356 builtin and then its argument prototype would still apply. */ 9380 builtin and then its argument prototype would still apply. */
9357 char PQconnectdb(); 9381 char PQconnectdb();
9358 9382
9359 int main() { 9383 int main() {
9360 PQconnectdb() 9384 PQconnectdb()
9361 ; return 0; } 9385 ; return 0; }
9362 EOF 9386 EOF
9363 if { (eval echo configure:9364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9387 if { (eval echo configure:9388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9364 rm -rf conftest* 9388 rm -rf conftest*
9365 eval "ac_cv_lib_$ac_lib_var=yes" 9389 eval "ac_cv_lib_$ac_lib_var=yes"
9366 else 9390 else
9367 echo "configure: failed program was:" >&5 9391 echo "configure: failed program was:" >&5
9368 cat conftest.$ac_ext >&5 9392 cat conftest.$ac_ext >&5
9391 EOF 9415 EOF
9392 } 9416 }
9393 9417
9394 9418
9395 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6 9419 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
9396 echo "configure:9397: checking for PQconnectStart in -lpq" >&5 9420 echo "configure:9421: checking for PQconnectStart in -lpq" >&5
9397 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'` 9421 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
9398 9422
9399 xe_check_libs=" -lpq " 9423 xe_check_libs=" -lpq "
9400 cat > conftest.$ac_ext <<EOF 9424 cat > conftest.$ac_ext <<EOF
9401 #line 9402 "configure" 9425 #line 9426 "configure"
9402 #include "confdefs.h" 9426 #include "confdefs.h"
9403 /* Override any gcc2 internal prototype to avoid an error. */ 9427 /* Override any gcc2 internal prototype to avoid an error. */
9404 /* We use char because int might match the return type of a gcc2 9428 /* We use char because int might match the return type of a gcc2
9405 builtin and then its argument prototype would still apply. */ 9429 builtin and then its argument prototype would still apply. */
9406 char PQconnectStart(); 9430 char PQconnectStart();
9407 9431
9408 int main() { 9432 int main() {
9409 PQconnectStart() 9433 PQconnectStart()
9410 ; return 0; } 9434 ; return 0; }
9411 EOF 9435 EOF
9412 if { (eval echo configure:9413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9436 if { (eval echo configure:9437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9413 rm -rf conftest* 9437 rm -rf conftest*
9414 eval "ac_cv_lib_$ac_lib_var=yes" 9438 eval "ac_cv_lib_$ac_lib_var=yes"
9415 else 9439 else
9416 echo "configure: failed program was:" >&5 9440 echo "configure: failed program was:" >&5
9417 cat conftest.$ac_ext >&5 9441 cat conftest.$ac_ext >&5
9458 9482
9459 9483
9460 9484
9461 if test "$window_system" != "none"; then 9485 if test "$window_system" != "none"; then
9462 echo "checking for graphics libraries" 1>&6 9486 echo "checking for graphics libraries" 1>&6
9463 echo "configure:9464: checking for graphics libraries" >&5 9487 echo "configure:9488: checking for graphics libraries" >&5
9464 9488
9465 libpath_xpm= 9489 libpath_xpm=
9466 incpath_xpm= 9490 incpath_xpm=
9467 case "$opsys" in 9491 case "$opsys" in
9468 cygwin*) 9492 cygwin*)
9484 xpm_problem="" 9508 xpm_problem=""
9485 if test -z "$with_xpm"; then 9509 if test -z "$with_xpm"; then
9486 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi 9510 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
9487 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi 9511 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
9488 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6 9512 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
9489 echo "configure:9490: checking for Xpm - no older than 3.4f" >&5 9513 echo "configure:9514: checking for Xpm - no older than 3.4f" >&5
9490 xe_check_libs=-lXpm 9514 xe_check_libs=-lXpm
9491 cat > conftest.$ac_ext <<EOF 9515 cat > conftest.$ac_ext <<EOF
9492 #line 9493 "configure" 9516 #line 9517 "configure"
9493 #include "confdefs.h" 9517 #include "confdefs.h"
9494 #define XPM_NUMBERS 9518 #define XPM_NUMBERS
9495 #include <X11/xpm.h> 9519 #include <X11/xpm.h>
9496 int main(int c, char **v) { 9520 int main(int c, char **v) {
9497 return c == 1 ? 0 : 9521 return c == 1 ? 0 :
9498 XpmIncludeVersion != XpmLibraryVersion() ? 1 : 9522 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
9499 XpmIncludeVersion < 30406 ? 2 : 0 ;} 9523 XpmIncludeVersion < 30406 ? 2 : 0 ;}
9500 EOF 9524 EOF
9501 if { (eval echo configure:9502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9525 if { (eval echo configure:9526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9502 then 9526 then
9503 ./conftest dummy_arg; xpm_status=$?; 9527 ./conftest dummy_arg; xpm_status=$?;
9504 if test "$xpm_status" = "0"; then 9528 if test "$xpm_status" = "0"; then
9505 with_xpm=yes; 9529 with_xpm=yes;
9506 else 9530 else
9540 9564
9541 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi 9565 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
9542 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi 9566 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
9543 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi 9567 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
9544 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6 9568 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
9545 echo "configure:9546: checking for \"FOR_MSW\" xpm" >&5 9569 echo "configure:9570: checking for \"FOR_MSW\" xpm" >&5
9546 xe_check_libs=-lXpm 9570 xe_check_libs=-lXpm
9547 cat > conftest.$ac_ext <<EOF 9571 cat > conftest.$ac_ext <<EOF
9548 #line 9549 "configure" 9572 #line 9573 "configure"
9549 #include "confdefs.h" 9573 #include "confdefs.h"
9550 9574
9551 int main() { 9575 int main() {
9552 XpmCreatePixmapFromData() 9576 XpmCreatePixmapFromData()
9553 ; return 0; } 9577 ; return 0; }
9554 EOF 9578 EOF
9555 if { (eval echo configure:9556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9579 if { (eval echo configure:9580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9556 rm -rf conftest* 9580 rm -rf conftest*
9557 xpm_for_msw=no 9581 xpm_for_msw=no
9558 else 9582 else
9559 echo "configure: failed program was:" >&5 9583 echo "configure: failed program was:" >&5
9560 cat conftest.$ac_ext >&5 9584 cat conftest.$ac_ext >&5
9576 fi 9600 fi
9577 fi 9601 fi
9578 9602
9579 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 9603 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
9580 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 9604 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
9581 echo "configure:9582: checking for compface.h" >&5 9605 echo "configure:9606: checking for compface.h" >&5
9582 9606
9583 cat > conftest.$ac_ext <<EOF 9607 cat > conftest.$ac_ext <<EOF
9584 #line 9585 "configure" 9608 #line 9609 "configure"
9585 #include "confdefs.h" 9609 #include "confdefs.h"
9586 #include <compface.h> 9610 #include <compface.h>
9587 EOF 9611 EOF
9588 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9612 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9589 { (eval echo configure:9590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9613 { (eval echo configure:9614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9590 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9614 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9591 if test -z "$ac_err"; then 9615 if test -z "$ac_err"; then
9592 rm -rf conftest* 9616 rm -rf conftest*
9593 eval "ac_cv_header_$ac_safe=yes" 9617 eval "ac_cv_header_$ac_safe=yes"
9594 else 9618 else
9607 with_xface=no 9631 with_xface=no
9608 fi 9632 fi
9609 } 9633 }
9610 test -z "$with_xface" && { 9634 test -z "$with_xface" && {
9611 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 9635 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
9612 echo "configure:9613: checking for UnGenFace in -lcompface" >&5 9636 echo "configure:9637: checking for UnGenFace in -lcompface" >&5
9613 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 9637 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
9614 9638
9615 xe_check_libs=" -lcompface " 9639 xe_check_libs=" -lcompface "
9616 cat > conftest.$ac_ext <<EOF 9640 cat > conftest.$ac_ext <<EOF
9617 #line 9618 "configure" 9641 #line 9642 "configure"
9618 #include "confdefs.h" 9642 #include "confdefs.h"
9619 /* Override any gcc2 internal prototype to avoid an error. */ 9643 /* Override any gcc2 internal prototype to avoid an error. */
9620 /* We use char because int might match the return type of a gcc2 9644 /* We use char because int might match the return type of a gcc2
9621 builtin and then its argument prototype would still apply. */ 9645 builtin and then its argument prototype would still apply. */
9622 char UnGenFace(); 9646 char UnGenFace();
9623 9647
9624 int main() { 9648 int main() {
9625 UnGenFace() 9649 UnGenFace()
9626 ; return 0; } 9650 ; return 0; }
9627 EOF 9651 EOF
9628 if { (eval echo configure:9629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9652 if { (eval echo configure:9653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9629 rm -rf conftest* 9653 rm -rf conftest*
9630 eval "ac_cv_lib_$ac_lib_var=yes" 9654 eval "ac_cv_lib_$ac_lib_var=yes"
9631 else 9655 else
9632 echo "configure: failed program was:" >&5 9656 echo "configure: failed program was:" >&5
9633 cat conftest.$ac_ext >&5 9657 cat conftest.$ac_ext >&5
9672 fi 9696 fi
9673 9697
9674 if test "$with_png $with_tiff" != "no no"; then 9698 if test "$with_png $with_tiff" != "no no"; then
9675 9699
9676 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6 9700 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
9677 echo "configure:9678: checking for inflate in -lc" >&5 9701 echo "configure:9702: checking for inflate in -lc" >&5
9678 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'` 9702 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
9679 9703
9680 xe_check_libs=" -lc " 9704 xe_check_libs=" -lc "
9681 cat > conftest.$ac_ext <<EOF 9705 cat > conftest.$ac_ext <<EOF
9682 #line 9683 "configure" 9706 #line 9707 "configure"
9683 #include "confdefs.h" 9707 #include "confdefs.h"
9684 /* Override any gcc2 internal prototype to avoid an error. */ 9708 /* Override any gcc2 internal prototype to avoid an error. */
9685 /* We use char because int might match the return type of a gcc2 9709 /* We use char because int might match the return type of a gcc2
9686 builtin and then its argument prototype would still apply. */ 9710 builtin and then its argument prototype would still apply. */
9687 char inflate(); 9711 char inflate();
9688 9712
9689 int main() { 9713 int main() {
9690 inflate() 9714 inflate()
9691 ; return 0; } 9715 ; return 0; }
9692 EOF 9716 EOF
9693 if { (eval echo configure:9694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9717 if { (eval echo configure:9718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9694 rm -rf conftest* 9718 rm -rf conftest*
9695 eval "ac_cv_lib_$ac_lib_var=yes" 9719 eval "ac_cv_lib_$ac_lib_var=yes"
9696 else 9720 else
9697 echo "configure: failed program was:" >&5 9721 echo "configure: failed program was:" >&5
9698 cat conftest.$ac_ext >&5 9722 cat conftest.$ac_ext >&5
9707 : 9731 :
9708 else 9732 else
9709 echo "$ac_t""no" 1>&6 9733 echo "$ac_t""no" 1>&6
9710 9734
9711 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6 9735 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
9712 echo "configure:9713: checking for inflate in -lz" >&5 9736 echo "configure:9737: checking for inflate in -lz" >&5
9713 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'` 9737 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
9714 9738
9715 xe_check_libs=" -lz " 9739 xe_check_libs=" -lz "
9716 cat > conftest.$ac_ext <<EOF 9740 cat > conftest.$ac_ext <<EOF
9717 #line 9718 "configure" 9741 #line 9742 "configure"
9718 #include "confdefs.h" 9742 #include "confdefs.h"
9719 /* Override any gcc2 internal prototype to avoid an error. */ 9743 /* Override any gcc2 internal prototype to avoid an error. */
9720 /* We use char because int might match the return type of a gcc2 9744 /* We use char because int might match the return type of a gcc2
9721 builtin and then its argument prototype would still apply. */ 9745 builtin and then its argument prototype would still apply. */
9722 char inflate(); 9746 char inflate();
9723 9747
9724 int main() { 9748 int main() {
9725 inflate() 9749 inflate()
9726 ; return 0; } 9750 ; return 0; }
9727 EOF 9751 EOF
9728 if { (eval echo configure:9729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9752 if { (eval echo configure:9753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9729 rm -rf conftest* 9753 rm -rf conftest*
9730 eval "ac_cv_lib_$ac_lib_var=yes" 9754 eval "ac_cv_lib_$ac_lib_var=yes"
9731 else 9755 else
9732 echo "configure: failed program was:" >&5 9756 echo "configure: failed program was:" >&5
9733 cat conftest.$ac_ext >&5 9757 cat conftest.$ac_ext >&5
9742 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi 9766 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
9743 else 9767 else
9744 echo "$ac_t""no" 1>&6 9768 echo "$ac_t""no" 1>&6
9745 9769
9746 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6 9770 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
9747 echo "configure:9748: checking for inflate in -lgz" >&5 9771 echo "configure:9772: checking for inflate in -lgz" >&5
9748 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'` 9772 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
9749 9773
9750 xe_check_libs=" -lgz " 9774 xe_check_libs=" -lgz "
9751 cat > conftest.$ac_ext <<EOF 9775 cat > conftest.$ac_ext <<EOF
9752 #line 9753 "configure" 9776 #line 9777 "configure"
9753 #include "confdefs.h" 9777 #include "confdefs.h"
9754 /* Override any gcc2 internal prototype to avoid an error. */ 9778 /* Override any gcc2 internal prototype to avoid an error. */
9755 /* We use char because int might match the return type of a gcc2 9779 /* We use char because int might match the return type of a gcc2
9756 builtin and then its argument prototype would still apply. */ 9780 builtin and then its argument prototype would still apply. */
9757 char inflate(); 9781 char inflate();
9758 9782
9759 int main() { 9783 int main() {
9760 inflate() 9784 inflate()
9761 ; return 0; } 9785 ; return 0; }
9762 EOF 9786 EOF
9763 if { (eval echo configure:9764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9787 if { (eval echo configure:9788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9764 rm -rf conftest* 9788 rm -rf conftest*
9765 eval "ac_cv_lib_$ac_lib_var=yes" 9789 eval "ac_cv_lib_$ac_lib_var=yes"
9766 else 9790 else
9767 echo "configure: failed program was:" >&5 9791 echo "configure: failed program was:" >&5
9768 cat conftest.$ac_ext >&5 9792 cat conftest.$ac_ext >&5
9788 9812
9789 fi 9813 fi
9790 9814
9791 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` 9815 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
9792 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 9816 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
9793 echo "configure:9794: checking for jpeglib.h" >&5 9817 echo "configure:9818: checking for jpeglib.h" >&5
9794 9818
9795 cat > conftest.$ac_ext <<EOF 9819 cat > conftest.$ac_ext <<EOF
9796 #line 9797 "configure" 9820 #line 9821 "configure"
9797 #include "confdefs.h" 9821 #include "confdefs.h"
9798 #include <jpeglib.h> 9822 #include <jpeglib.h>
9799 EOF 9823 EOF
9800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9801 { (eval echo configure:9802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9825 { (eval echo configure:9826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9802 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9826 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9803 if test -z "$ac_err"; then 9827 if test -z "$ac_err"; then
9804 rm -rf conftest* 9828 rm -rf conftest*
9805 eval "ac_cv_header_$ac_safe=yes" 9829 eval "ac_cv_header_$ac_safe=yes"
9806 else 9830 else
9819 with_jpeg=no 9843 with_jpeg=no
9820 fi 9844 fi
9821 } 9845 }
9822 test -z "$with_jpeg" && { 9846 test -z "$with_jpeg" && {
9823 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 9847 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
9824 echo "configure:9825: checking for jpeg_destroy_decompress in -ljpeg" >&5 9848 echo "configure:9849: checking for jpeg_destroy_decompress in -ljpeg" >&5
9825 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` 9849 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
9826 9850
9827 xe_check_libs=" -ljpeg " 9851 xe_check_libs=" -ljpeg "
9828 cat > conftest.$ac_ext <<EOF 9852 cat > conftest.$ac_ext <<EOF
9829 #line 9830 "configure" 9853 #line 9854 "configure"
9830 #include "confdefs.h" 9854 #include "confdefs.h"
9831 /* Override any gcc2 internal prototype to avoid an error. */ 9855 /* Override any gcc2 internal prototype to avoid an error. */
9832 /* We use char because int might match the return type of a gcc2 9856 /* We use char because int might match the return type of a gcc2
9833 builtin and then its argument prototype would still apply. */ 9857 builtin and then its argument prototype would still apply. */
9834 char jpeg_destroy_decompress(); 9858 char jpeg_destroy_decompress();
9835 9859
9836 int main() { 9860 int main() {
9837 jpeg_destroy_decompress() 9861 jpeg_destroy_decompress()
9838 ; return 0; } 9862 ; return 0; }
9839 EOF 9863 EOF
9840 if { (eval echo configure:9841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9864 if { (eval echo configure:9865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9841 rm -rf conftest* 9865 rm -rf conftest*
9842 eval "ac_cv_lib_$ac_lib_var=yes" 9866 eval "ac_cv_lib_$ac_lib_var=yes"
9843 else 9867 else
9844 echo "configure: failed program was:" >&5 9868 echo "configure: failed program was:" >&5
9845 cat conftest.$ac_ext >&5 9869 cat conftest.$ac_ext >&5
9871 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi 9895 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
9872 fi 9896 fi
9873 9897
9874 png_problem="" 9898 png_problem=""
9875 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 9899 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
9876 echo "configure:9877: checking for pow" >&5 9900 echo "configure:9901: checking for pow" >&5
9877 9901
9878 cat > conftest.$ac_ext <<EOF 9902 cat > conftest.$ac_ext <<EOF
9879 #line 9880 "configure" 9903 #line 9904 "configure"
9880 #include "confdefs.h" 9904 #include "confdefs.h"
9881 /* System header to define __stub macros and hopefully few prototypes, 9905 /* System header to define __stub macros and hopefully few prototypes,
9882 which can conflict with char pow(); below. */ 9906 which can conflict with char pow(); below. */
9883 #include <assert.h> 9907 #include <assert.h>
9884 /* Override any gcc2 internal prototype to avoid an error. */ 9908 /* Override any gcc2 internal prototype to avoid an error. */
9897 pow(); 9921 pow();
9898 #endif 9922 #endif
9899 9923
9900 ; return 0; } 9924 ; return 0; }
9901 EOF 9925 EOF
9902 if { (eval echo configure:9903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9926 if { (eval echo configure:9927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9903 rm -rf conftest* 9927 rm -rf conftest*
9904 eval "ac_cv_func_pow=yes" 9928 eval "ac_cv_func_pow=yes"
9905 else 9929 else
9906 echo "configure: failed program was:" >&5 9930 echo "configure: failed program was:" >&5
9907 cat conftest.$ac_ext >&5 9931 cat conftest.$ac_ext >&5
9918 with_png=no 9942 with_png=no
9919 fi 9943 fi
9920 } 9944 }
9921 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 9945 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
9922 echo $ac_n "checking for png.h""... $ac_c" 1>&6 9946 echo $ac_n "checking for png.h""... $ac_c" 1>&6
9923 echo "configure:9924: checking for png.h" >&5 9947 echo "configure:9948: checking for png.h" >&5
9924 9948
9925 cat > conftest.$ac_ext <<EOF 9949 cat > conftest.$ac_ext <<EOF
9926 #line 9927 "configure" 9950 #line 9951 "configure"
9927 #include "confdefs.h" 9951 #include "confdefs.h"
9928 #include <png.h> 9952 #include <png.h>
9929 EOF 9953 EOF
9930 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9954 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9931 { (eval echo configure:9932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9955 { (eval echo configure:9956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9932 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9956 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9933 if test -z "$ac_err"; then 9957 if test -z "$ac_err"; then
9934 rm -rf conftest* 9958 rm -rf conftest*
9935 eval "ac_cv_header_$ac_safe=yes" 9959 eval "ac_cv_header_$ac_safe=yes"
9936 else 9960 else
9949 with_png=no 9973 with_png=no
9950 fi 9974 fi
9951 } 9975 }
9952 test -z "$with_png" && { 9976 test -z "$with_png" && {
9953 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6 9977 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
9954 echo "configure:9955: checking for png_read_image in -lpng" >&5 9978 echo "configure:9979: checking for png_read_image in -lpng" >&5
9955 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` 9979 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
9956 9980
9957 xe_check_libs=" -lpng " 9981 xe_check_libs=" -lpng "
9958 cat > conftest.$ac_ext <<EOF 9982 cat > conftest.$ac_ext <<EOF
9959 #line 9960 "configure" 9983 #line 9984 "configure"
9960 #include "confdefs.h" 9984 #include "confdefs.h"
9961 /* Override any gcc2 internal prototype to avoid an error. */ 9985 /* Override any gcc2 internal prototype to avoid an error. */
9962 /* We use char because int might match the return type of a gcc2 9986 /* We use char because int might match the return type of a gcc2
9963 builtin and then its argument prototype would still apply. */ 9987 builtin and then its argument prototype would still apply. */
9964 char png_read_image(); 9988 char png_read_image();
9965 9989
9966 int main() { 9990 int main() {
9967 png_read_image() 9991 png_read_image()
9968 ; return 0; } 9992 ; return 0; }
9969 EOF 9993 EOF
9970 if { (eval echo configure:9971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9994 if { (eval echo configure:9995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9971 rm -rf conftest* 9995 rm -rf conftest*
9972 eval "ac_cv_lib_$ac_lib_var=yes" 9996 eval "ac_cv_lib_$ac_lib_var=yes"
9973 else 9997 else
9974 echo "configure: failed program was:" >&5 9998 echo "configure: failed program was:" >&5
9975 cat conftest.$ac_ext >&5 9999 cat conftest.$ac_ext >&5
9988 fi 10012 fi
9989 10013
9990 } 10014 }
9991 if test -z "$with_png"; then 10015 if test -z "$with_png"; then
9992 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6 10016 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
9993 echo "configure:9994: checking for workable png version information" >&5 10017 echo "configure:10018: checking for workable png version information" >&5
9994 xe_check_libs="-lpng -lz" 10018 xe_check_libs="-lpng -lz"
9995 cat > conftest.$ac_ext <<EOF 10019 cat > conftest.$ac_ext <<EOF
9996 #line 9997 "configure" 10020 #line 10021 "configure"
9997 #include "confdefs.h" 10021 #include "confdefs.h"
9998 #include <png.h> 10022 #include <png.h>
9999 int main(int c, char **v) { 10023 int main(int c, char **v) {
10000 if (c == 1) return 0; 10024 if (c == 1) return 0;
10001 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1; 10025 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
10002 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;} 10026 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
10003 EOF 10027 EOF
10004 if { (eval echo configure:10005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 10028 if { (eval echo configure:10029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10005 then 10029 then
10006 ./conftest dummy_arg; png_status=$?; 10030 ./conftest dummy_arg; png_status=$?;
10007 if test "$png_status" = "0"; then 10031 if test "$png_status" = "0"; then
10008 with_png=yes; 10032 with_png=yes;
10009 else 10033 else
10042 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi 10066 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
10043 fi 10067 fi
10044 10068
10045 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` 10069 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
10046 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 10070 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
10047 echo "configure:10048: checking for tiffio.h" >&5 10071 echo "configure:10072: checking for tiffio.h" >&5
10048 10072
10049 cat > conftest.$ac_ext <<EOF 10073 cat > conftest.$ac_ext <<EOF
10050 #line 10051 "configure" 10074 #line 10075 "configure"
10051 #include "confdefs.h" 10075 #include "confdefs.h"
10052 #include <tiffio.h> 10076 #include <tiffio.h>
10053 EOF 10077 EOF
10054 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10078 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10055 { (eval echo configure:10056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10079 { (eval echo configure:10080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10056 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10080 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10057 if test -z "$ac_err"; then 10081 if test -z "$ac_err"; then
10058 rm -rf conftest* 10082 rm -rf conftest*
10059 eval "ac_cv_header_$ac_safe=yes" 10083 eval "ac_cv_header_$ac_safe=yes"
10060 else 10084 else
10073 with_tiff=no 10097 with_tiff=no
10074 fi 10098 fi
10075 } 10099 }
10076 test -z "$with_tiff" && { 10100 test -z "$with_tiff" && {
10077 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6 10101 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
10078 echo "configure:10079: checking for TIFFClientOpen in -ltiff" >&5 10102 echo "configure:10103: checking for TIFFClientOpen in -ltiff" >&5
10079 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'` 10103 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
10080 10104
10081 xe_check_libs=" -ltiff " 10105 xe_check_libs=" -ltiff "
10082 cat > conftest.$ac_ext <<EOF 10106 cat > conftest.$ac_ext <<EOF
10083 #line 10084 "configure" 10107 #line 10108 "configure"
10084 #include "confdefs.h" 10108 #include "confdefs.h"
10085 /* Override any gcc2 internal prototype to avoid an error. */ 10109 /* Override any gcc2 internal prototype to avoid an error. */
10086 /* We use char because int might match the return type of a gcc2 10110 /* We use char because int might match the return type of a gcc2
10087 builtin and then its argument prototype would still apply. */ 10111 builtin and then its argument prototype would still apply. */
10088 char TIFFClientOpen(); 10112 char TIFFClientOpen();
10089 10113
10090 int main() { 10114 int main() {
10091 TIFFClientOpen() 10115 TIFFClientOpen()
10092 ; return 0; } 10116 ; return 0; }
10093 EOF 10117 EOF
10094 if { (eval echo configure:10095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10118 if { (eval echo configure:10119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10095 rm -rf conftest* 10119 rm -rf conftest*
10096 eval "ac_cv_lib_$ac_lib_var=yes" 10120 eval "ac_cv_lib_$ac_lib_var=yes"
10097 else 10121 else
10098 echo "configure: failed program was:" >&5 10122 echo "configure: failed program was:" >&5
10099 cat conftest.$ac_ext >&5 10123 cat conftest.$ac_ext >&5
10128 10152
10129 10153
10130 if test "$with_gtk" = "yes"; then 10154 if test "$with_gtk" = "yes"; then
10131 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 10155 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
10132 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 10156 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
10133 echo "configure:10134: checking for compface.h" >&5 10157 echo "configure:10158: checking for compface.h" >&5
10134 10158
10135 cat > conftest.$ac_ext <<EOF 10159 cat > conftest.$ac_ext <<EOF
10136 #line 10137 "configure" 10160 #line 10161 "configure"
10137 #include "confdefs.h" 10161 #include "confdefs.h"
10138 #include <compface.h> 10162 #include <compface.h>
10139 EOF 10163 EOF
10140 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10164 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10141 { (eval echo configure:10142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10165 { (eval echo configure:10166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10142 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10166 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10143 if test -z "$ac_err"; then 10167 if test -z "$ac_err"; then
10144 rm -rf conftest* 10168 rm -rf conftest*
10145 eval "ac_cv_header_$ac_safe=yes" 10169 eval "ac_cv_header_$ac_safe=yes"
10146 else 10170 else
10159 with_xface=no 10183 with_xface=no
10160 fi 10184 fi
10161 } 10185 }
10162 test -z "$with_xface" && { 10186 test -z "$with_xface" && {
10163 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 10187 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
10164 echo "configure:10165: checking for UnGenFace in -lcompface" >&5 10188 echo "configure:10189: checking for UnGenFace in -lcompface" >&5
10165 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 10189 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
10166 10190
10167 xe_check_libs=" -lcompface " 10191 xe_check_libs=" -lcompface "
10168 cat > conftest.$ac_ext <<EOF 10192 cat > conftest.$ac_ext <<EOF
10169 #line 10170 "configure" 10193 #line 10194 "configure"
10170 #include "confdefs.h" 10194 #include "confdefs.h"
10171 /* Override any gcc2 internal prototype to avoid an error. */ 10195 /* Override any gcc2 internal prototype to avoid an error. */
10172 /* We use char because int might match the return type of a gcc2 10196 /* We use char because int might match the return type of a gcc2
10173 builtin and then its argument prototype would still apply. */ 10197 builtin and then its argument prototype would still apply. */
10174 char UnGenFace(); 10198 char UnGenFace();
10175 10199
10176 int main() { 10200 int main() {
10177 UnGenFace() 10201 UnGenFace()
10178 ; return 0; } 10202 ; return 0; }
10179 EOF 10203 EOF
10180 if { (eval echo configure:10181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10204 if { (eval echo configure:10205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10181 rm -rf conftest* 10205 rm -rf conftest*
10182 eval "ac_cv_lib_$ac_lib_var=yes" 10206 eval "ac_cv_lib_$ac_lib_var=yes"
10183 else 10207 else
10184 echo "configure: failed program was:" >&5 10208 echo "configure: failed program was:" >&5
10185 cat conftest.$ac_ext >&5 10209 cat conftest.$ac_ext >&5
10214 10238
10215 10239
10216 10240
10217 if test "$with_x11" = "yes"; then 10241 if test "$with_x11" = "yes"; then
10218 echo "checking for X11 graphics libraries" 1>&6 10242 echo "checking for X11 graphics libraries" 1>&6
10219 echo "configure:10220: checking for X11 graphics libraries" >&5 10243 echo "configure:10244: checking for X11 graphics libraries" >&5
10220 fi 10244 fi
10221 10245
10222 case "$with_widgets" in 10246 case "$with_widgets" in
10223 "yes" | "athena") detect_athena=yes ;; 10247 "yes" | "athena") detect_athena=yes ;;
10224 *) detect_athena=no ;; 10248 *) detect_athena=no ;;
10225 esac 10249 esac
10226 10250
10227 if test "$with_x11" = "yes" -a "$detect_athena" = "yes" ; then 10251 if test "$with_x11" = "yes" -a "$detect_athena" = "yes" ; then
10228 echo "checking for the Athena widgets" 1>&6 10252 echo "checking for the Athena widgets" 1>&6
10229 echo "configure:10230: checking for the Athena widgets" >&5 10253 echo "configure:10254: checking for the Athena widgets" >&5
10230 10254
10231 case "$with_athena" in 10255 case "$with_athena" in
10232 "xaw" | "") athena_variant=Xaw athena_3d=no ;; 10256 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
10233 "3d") athena_variant=Xaw3d athena_3d=yes ;; 10257 "3d") athena_variant=Xaw3d athena_3d=yes ;;
10234 "next") athena_variant=neXtaw athena_3d=yes ;; 10258 "next") athena_variant=neXtaw athena_3d=yes ;;
10238 esac 10262 esac
10239 10263
10240 if test "$athena_3d" = "no"; then 10264 if test "$athena_3d" = "no"; then
10241 10265
10242 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6 10266 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
10243 echo "configure:10244: checking for XawScrollbarSetThumb in -l$athena_variant" >&5 10267 echo "configure:10268: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
10244 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 10268 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
10245 10269
10246 xe_check_libs=" -l$athena_variant " 10270 xe_check_libs=" -l$athena_variant "
10247 cat > conftest.$ac_ext <<EOF 10271 cat > conftest.$ac_ext <<EOF
10248 #line 10249 "configure" 10272 #line 10273 "configure"
10249 #include "confdefs.h" 10273 #include "confdefs.h"
10250 /* Override any gcc2 internal prototype to avoid an error. */ 10274 /* Override any gcc2 internal prototype to avoid an error. */
10251 /* We use char because int might match the return type of a gcc2 10275 /* We use char because int might match the return type of a gcc2
10252 builtin and then its argument prototype would still apply. */ 10276 builtin and then its argument prototype would still apply. */
10253 char XawScrollbarSetThumb(); 10277 char XawScrollbarSetThumb();
10254 10278
10255 int main() { 10279 int main() {
10256 XawScrollbarSetThumb() 10280 XawScrollbarSetThumb()
10257 ; return 0; } 10281 ; return 0; }
10258 EOF 10282 EOF
10259 if { (eval echo configure:10260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10283 if { (eval echo configure:10284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10260 rm -rf conftest* 10284 rm -rf conftest*
10261 eval "ac_cv_lib_$ac_lib_var=yes" 10285 eval "ac_cv_lib_$ac_lib_var=yes"
10262 else 10286 else
10263 echo "configure: failed program was:" >&5 10287 echo "configure: failed program was:" >&5
10264 cat conftest.$ac_ext >&5 10288 cat conftest.$ac_ext >&5
10270 10294
10271 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 10295 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10272 echo "$ac_t""yes" 1>&6 10296 echo "$ac_t""yes" 1>&6
10273 10297
10274 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6 10298 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
10275 echo "configure:10276: checking for threeDClassRec in -l$athena_variant" >&5 10299 echo "configure:10300: checking for threeDClassRec in -l$athena_variant" >&5
10276 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'` 10300 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
10277 10301
10278 xe_check_libs=" -l$athena_variant " 10302 xe_check_libs=" -l$athena_variant "
10279 cat > conftest.$ac_ext <<EOF 10303 cat > conftest.$ac_ext <<EOF
10280 #line 10281 "configure" 10304 #line 10305 "configure"
10281 #include "confdefs.h" 10305 #include "confdefs.h"
10282 /* Override any gcc2 internal prototype to avoid an error. */ 10306 /* Override any gcc2 internal prototype to avoid an error. */
10283 /* We use char because int might match the return type of a gcc2 10307 /* We use char because int might match the return type of a gcc2
10284 builtin and then its argument prototype would still apply. */ 10308 builtin and then its argument prototype would still apply. */
10285 char threeDClassRec(); 10309 char threeDClassRec();
10286 10310
10287 int main() { 10311 int main() {
10288 threeDClassRec() 10312 threeDClassRec()
10289 ; return 0; } 10313 ; return 0; }
10290 EOF 10314 EOF
10291 if { (eval echo configure:10292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10315 if { (eval echo configure:10316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10292 rm -rf conftest* 10316 rm -rf conftest*
10293 eval "ac_cv_lib_$ac_lib_var=yes" 10317 eval "ac_cv_lib_$ac_lib_var=yes"
10294 else 10318 else
10295 echo "configure: failed program was:" >&5 10319 echo "configure: failed program was:" >&5
10296 cat conftest.$ac_ext >&5 10320 cat conftest.$ac_ext >&5
10317 10341
10318 10342
10319 else 10343 else
10320 10344
10321 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6 10345 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
10322 echo "configure:10323: checking for threeDClassRec in -l$athena_variant" >&5 10346 echo "configure:10347: checking for threeDClassRec in -l$athena_variant" >&5
10323 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'` 10347 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
10324 10348
10325 xe_check_libs=" -l$athena_variant " 10349 xe_check_libs=" -l$athena_variant "
10326 cat > conftest.$ac_ext <<EOF 10350 cat > conftest.$ac_ext <<EOF
10327 #line 10328 "configure" 10351 #line 10352 "configure"
10328 #include "confdefs.h" 10352 #include "confdefs.h"
10329 /* Override any gcc2 internal prototype to avoid an error. */ 10353 /* Override any gcc2 internal prototype to avoid an error. */
10330 /* We use char because int might match the return type of a gcc2 10354 /* We use char because int might match the return type of a gcc2
10331 builtin and then its argument prototype would still apply. */ 10355 builtin and then its argument prototype would still apply. */
10332 char threeDClassRec(); 10356 char threeDClassRec();
10333 10357
10334 int main() { 10358 int main() {
10335 threeDClassRec() 10359 threeDClassRec()
10336 ; return 0; } 10360 ; return 0; }
10337 EOF 10361 EOF
10338 if { (eval echo configure:10339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10362 if { (eval echo configure:10363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10339 rm -rf conftest* 10363 rm -rf conftest*
10340 eval "ac_cv_lib_$ac_lib_var=yes" 10364 eval "ac_cv_lib_$ac_lib_var=yes"
10341 else 10365 else
10342 echo "configure: failed program was:" >&5 10366 echo "configure: failed program was:" >&5
10343 cat conftest.$ac_ext >&5 10367 cat conftest.$ac_ext >&5
10351 echo "$ac_t""yes" 1>&6 10375 echo "$ac_t""yes" 1>&6
10352 athena_lib=$athena_variant 10376 athena_lib=$athena_variant
10353 else 10377 else
10354 echo "$ac_t""no" 1>&6 10378 echo "$ac_t""no" 1>&6
10355 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6 10379 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
10356 echo "configure:10357: checking for threeDClassRec in -lXaw" >&5 10380 echo "configure:10381: checking for threeDClassRec in -lXaw" >&5
10357 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'` 10381 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
10358 10382
10359 xe_check_libs=" -lXaw " 10383 xe_check_libs=" -lXaw "
10360 cat > conftest.$ac_ext <<EOF 10384 cat > conftest.$ac_ext <<EOF
10361 #line 10362 "configure" 10385 #line 10386 "configure"
10362 #include "confdefs.h" 10386 #include "confdefs.h"
10363 /* Override any gcc2 internal prototype to avoid an error. */ 10387 /* Override any gcc2 internal prototype to avoid an error. */
10364 /* We use char because int might match the return type of a gcc2 10388 /* We use char because int might match the return type of a gcc2
10365 builtin and then its argument prototype would still apply. */ 10389 builtin and then its argument prototype would still apply. */
10366 char threeDClassRec(); 10390 char threeDClassRec();
10367 10391
10368 int main() { 10392 int main() {
10369 threeDClassRec() 10393 threeDClassRec()
10370 ; return 0; } 10394 ; return 0; }
10371 EOF 10395 EOF
10372 if { (eval echo configure:10373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10396 if { (eval echo configure:10397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10373 rm -rf conftest* 10397 rm -rf conftest*
10374 eval "ac_cv_lib_$ac_lib_var=yes" 10398 eval "ac_cv_lib_$ac_lib_var=yes"
10375 else 10399 else
10376 echo "configure: failed program was:" >&5 10400 echo "configure: failed program was:" >&5
10377 cat conftest.$ac_ext >&5 10401 cat conftest.$ac_ext >&5
10398 fi 10422 fi
10399 10423
10400 if test "$athena_3d" = "no"; then 10424 if test "$athena_3d" = "no"; then
10401 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'` 10425 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
10402 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6 10426 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
10403 echo "configure:10404: checking for X11/Xaw/ThreeD.h" >&5 10427 echo "configure:10428: checking for X11/Xaw/ThreeD.h" >&5
10404 10428
10405 cat > conftest.$ac_ext <<EOF 10429 cat > conftest.$ac_ext <<EOF
10406 #line 10407 "configure" 10430 #line 10431 "configure"
10407 #include "confdefs.h" 10431 #include "confdefs.h"
10408 #include <X11/Xaw/ThreeD.h> 10432 #include <X11/Xaw/ThreeD.h>
10409 EOF 10433 EOF
10410 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10434 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10411 { (eval echo configure:10412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10435 { (eval echo configure:10436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10412 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10436 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10413 if test -z "$ac_err"; then 10437 if test -z "$ac_err"; then
10414 rm -rf conftest* 10438 rm -rf conftest*
10415 eval "ac_cv_header_$ac_safe=yes" 10439 eval "ac_cv_header_$ac_safe=yes"
10416 else 10440 else
10426 echo "configure: warning: Could not find a non-3d Athena header set." 1>&2 10450 echo "configure: warning: Could not find a non-3d Athena header set." 1>&2
10427 else 10451 else
10428 echo "$ac_t""no" 1>&6 10452 echo "$ac_t""no" 1>&6
10429 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'` 10453 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
10430 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6 10454 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
10431 echo "configure:10432: checking for X11/Xaw/XawInit.h" >&5 10455 echo "configure:10456: checking for X11/Xaw/XawInit.h" >&5
10432 10456
10433 cat > conftest.$ac_ext <<EOF 10457 cat > conftest.$ac_ext <<EOF
10434 #line 10435 "configure" 10458 #line 10459 "configure"
10435 #include "confdefs.h" 10459 #include "confdefs.h"
10436 #include <X11/Xaw/XawInit.h> 10460 #include <X11/Xaw/XawInit.h>
10437 EOF 10461 EOF
10438 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10462 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10439 { (eval echo configure:10440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10463 { (eval echo configure:10464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10440 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10464 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10441 if test -z "$ac_err"; then 10465 if test -z "$ac_err"; then
10442 rm -rf conftest* 10466 rm -rf conftest*
10443 eval "ac_cv_header_$ac_safe=yes" 10467 eval "ac_cv_header_$ac_safe=yes"
10444 else 10468 else
10460 fi 10484 fi
10461 10485
10462 else 10486 else
10463 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'` 10487 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
10464 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6 10488 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
10465 echo "configure:10466: checking for X11/$athena_variant/XawInit.h" >&5 10489 echo "configure:10490: checking for X11/$athena_variant/XawInit.h" >&5
10466 10490
10467 cat > conftest.$ac_ext <<EOF 10491 cat > conftest.$ac_ext <<EOF
10468 #line 10469 "configure" 10492 #line 10493 "configure"
10469 #include "confdefs.h" 10493 #include "confdefs.h"
10470 #include <X11/$athena_variant/XawInit.h> 10494 #include <X11/$athena_variant/XawInit.h>
10471 EOF 10495 EOF
10472 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10496 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10473 { (eval echo configure:10474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10497 { (eval echo configure:10498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10474 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10498 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10475 if test -z "$ac_err"; then 10499 if test -z "$ac_err"; then
10476 rm -rf conftest* 10500 rm -rf conftest*
10477 eval "ac_cv_header_$ac_safe=yes" 10501 eval "ac_cv_header_$ac_safe=yes"
10478 else 10502 else
10485 rm -f conftest* 10509 rm -f conftest*
10486 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10510 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10487 echo "$ac_t""yes" 1>&6 10511 echo "$ac_t""yes" 1>&6
10488 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'` 10512 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
10489 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6 10513 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
10490 echo "configure:10491: checking for X11/$athena_variant/ThreeD.h" >&5 10514 echo "configure:10515: checking for X11/$athena_variant/ThreeD.h" >&5
10491 10515
10492 cat > conftest.$ac_ext <<EOF 10516 cat > conftest.$ac_ext <<EOF
10493 #line 10494 "configure" 10517 #line 10518 "configure"
10494 #include "confdefs.h" 10518 #include "confdefs.h"
10495 #include <X11/$athena_variant/ThreeD.h> 10519 #include <X11/$athena_variant/ThreeD.h>
10496 EOF 10520 EOF
10497 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10521 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10498 { (eval echo configure:10499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10522 { (eval echo configure:10523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10499 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10523 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10500 if test -z "$ac_err"; then 10524 if test -z "$ac_err"; then
10501 rm -rf conftest* 10525 rm -rf conftest*
10502 eval "ac_cv_header_$ac_safe=yes" 10526 eval "ac_cv_header_$ac_safe=yes"
10503 else 10527 else
10521 10545
10522 10546
10523 if test -z "$athena_h_path"; then 10547 if test -z "$athena_h_path"; then
10524 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'` 10548 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
10525 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6 10549 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
10526 echo "configure:10527: checking for $athena_variant/XawInit.h" >&5 10550 echo "configure:10551: checking for $athena_variant/XawInit.h" >&5
10527 10551
10528 cat > conftest.$ac_ext <<EOF 10552 cat > conftest.$ac_ext <<EOF
10529 #line 10530 "configure" 10553 #line 10554 "configure"
10530 #include "confdefs.h" 10554 #include "confdefs.h"
10531 #include <$athena_variant/XawInit.h> 10555 #include <$athena_variant/XawInit.h>
10532 EOF 10556 EOF
10533 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10557 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10534 { (eval echo configure:10535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10558 { (eval echo configure:10559: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10535 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10559 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10536 if test -z "$ac_err"; then 10560 if test -z "$ac_err"; then
10537 rm -rf conftest* 10561 rm -rf conftest*
10538 eval "ac_cv_header_$ac_safe=yes" 10562 eval "ac_cv_header_$ac_safe=yes"
10539 else 10563 else
10546 rm -f conftest* 10570 rm -f conftest*
10547 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10571 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10548 echo "$ac_t""yes" 1>&6 10572 echo "$ac_t""yes" 1>&6
10549 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'` 10573 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
10550 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6 10574 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
10551 echo "configure:10552: checking for $athena_variant/ThreeD.h" >&5 10575 echo "configure:10576: checking for $athena_variant/ThreeD.h" >&5
10552 10576
10553 cat > conftest.$ac_ext <<EOF 10577 cat > conftest.$ac_ext <<EOF
10554 #line 10555 "configure" 10578 #line 10579 "configure"
10555 #include "confdefs.h" 10579 #include "confdefs.h"
10556 #include <$athena_variant/ThreeD.h> 10580 #include <$athena_variant/ThreeD.h>
10557 EOF 10581 EOF
10558 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10582 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10559 { (eval echo configure:10560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10583 { (eval echo configure:10584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10560 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10584 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10561 if test -z "$ac_err"; then 10585 if test -z "$ac_err"; then
10562 rm -rf conftest* 10586 rm -rf conftest*
10563 eval "ac_cv_header_$ac_safe=yes" 10587 eval "ac_cv_header_$ac_safe=yes"
10564 else 10588 else
10583 fi 10607 fi
10584 10608
10585 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then 10609 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
10586 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'` 10610 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
10587 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6 10611 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
10588 echo "configure:10589: checking for X11/Xaw3d/XawInit.h" >&5 10612 echo "configure:10613: checking for X11/Xaw3d/XawInit.h" >&5
10589 10613
10590 cat > conftest.$ac_ext <<EOF 10614 cat > conftest.$ac_ext <<EOF
10591 #line 10592 "configure" 10615 #line 10616 "configure"
10592 #include "confdefs.h" 10616 #include "confdefs.h"
10593 #include <X11/Xaw3d/XawInit.h> 10617 #include <X11/Xaw3d/XawInit.h>
10594 EOF 10618 EOF
10595 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10619 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10596 { (eval echo configure:10597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10620 { (eval echo configure:10621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10597 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10621 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10598 if test -z "$ac_err"; then 10622 if test -z "$ac_err"; then
10599 rm -rf conftest* 10623 rm -rf conftest*
10600 eval "ac_cv_header_$ac_safe=yes" 10624 eval "ac_cv_header_$ac_safe=yes"
10601 else 10625 else
10608 rm -f conftest* 10632 rm -f conftest*
10609 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10633 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10610 echo "$ac_t""yes" 1>&6 10634 echo "$ac_t""yes" 1>&6
10611 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'` 10635 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
10612 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6 10636 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
10613 echo "configure:10614: checking for X11/Xaw3d/ThreeD.h" >&5 10637 echo "configure:10638: checking for X11/Xaw3d/ThreeD.h" >&5
10614 10638
10615 cat > conftest.$ac_ext <<EOF 10639 cat > conftest.$ac_ext <<EOF
10616 #line 10617 "configure" 10640 #line 10641 "configure"
10617 #include "confdefs.h" 10641 #include "confdefs.h"
10618 #include <X11/Xaw3d/ThreeD.h> 10642 #include <X11/Xaw3d/ThreeD.h>
10619 EOF 10643 EOF
10620 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10644 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10621 { (eval echo configure:10622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10645 { (eval echo configure:10646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10622 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10646 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10623 if test -z "$ac_err"; then 10647 if test -z "$ac_err"; then
10624 rm -rf conftest* 10648 rm -rf conftest*
10625 eval "ac_cv_header_$ac_safe=yes" 10649 eval "ac_cv_header_$ac_safe=yes"
10626 else 10650 else
10648 fi 10672 fi
10649 10673
10650 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then 10674 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
10651 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'` 10675 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
10652 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6 10676 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
10653 echo "configure:10654: checking for Xaw3d/XawInit.h" >&5 10677 echo "configure:10678: checking for Xaw3d/XawInit.h" >&5
10654 10678
10655 cat > conftest.$ac_ext <<EOF 10679 cat > conftest.$ac_ext <<EOF
10656 #line 10657 "configure" 10680 #line 10681 "configure"
10657 #include "confdefs.h" 10681 #include "confdefs.h"
10658 #include <Xaw3d/XawInit.h> 10682 #include <Xaw3d/XawInit.h>
10659 EOF 10683 EOF
10660 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10684 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10661 { (eval echo configure:10662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10685 { (eval echo configure:10686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10662 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10686 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10663 if test -z "$ac_err"; then 10687 if test -z "$ac_err"; then
10664 rm -rf conftest* 10688 rm -rf conftest*
10665 eval "ac_cv_header_$ac_safe=yes" 10689 eval "ac_cv_header_$ac_safe=yes"
10666 else 10690 else
10673 rm -f conftest* 10697 rm -f conftest*
10674 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10698 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10675 echo "$ac_t""yes" 1>&6 10699 echo "$ac_t""yes" 1>&6
10676 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'` 10700 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
10677 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6 10701 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
10678 echo "configure:10679: checking for Xaw3d/ThreeD.h" >&5 10702 echo "configure:10703: checking for Xaw3d/ThreeD.h" >&5
10679 10703
10680 cat > conftest.$ac_ext <<EOF 10704 cat > conftest.$ac_ext <<EOF
10681 #line 10682 "configure" 10705 #line 10706 "configure"
10682 #include "confdefs.h" 10706 #include "confdefs.h"
10683 #include <Xaw3d/ThreeD.h> 10707 #include <Xaw3d/ThreeD.h>
10684 EOF 10708 EOF
10685 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10709 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10686 { (eval echo configure:10687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10710 { (eval echo configure:10711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10687 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10711 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10688 if test -z "$ac_err"; then 10712 if test -z "$ac_err"; then
10689 rm -rf conftest* 10713 rm -rf conftest*
10690 eval "ac_cv_header_$ac_safe=yes" 10714 eval "ac_cv_header_$ac_safe=yes"
10691 else 10715 else
10713 fi 10737 fi
10714 10738
10715 if test -z "$athena_h_path"; then 10739 if test -z "$athena_h_path"; then
10716 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'` 10740 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
10717 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6 10741 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
10718 echo "configure:10719: checking for X11/Xaw/ThreeD.h" >&5 10742 echo "configure:10743: checking for X11/Xaw/ThreeD.h" >&5
10719 10743
10720 cat > conftest.$ac_ext <<EOF 10744 cat > conftest.$ac_ext <<EOF
10721 #line 10722 "configure" 10745 #line 10746 "configure"
10722 #include "confdefs.h" 10746 #include "confdefs.h"
10723 #include <X11/Xaw/ThreeD.h> 10747 #include <X11/Xaw/ThreeD.h>
10724 EOF 10748 EOF
10725 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10749 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10726 { (eval echo configure:10727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10750 { (eval echo configure:10751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10727 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10751 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10728 if test -z "$ac_err"; then 10752 if test -z "$ac_err"; then
10729 rm -rf conftest* 10753 rm -rf conftest*
10730 eval "ac_cv_header_$ac_safe=yes" 10754 eval "ac_cv_header_$ac_safe=yes"
10731 else 10755 else
10760 have_xaw=no 10784 have_xaw=no
10761 fi 10785 fi
10762 if test "$with_x11" = "yes"; then 10786 if test "$with_x11" = "yes"; then
10763 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 10787 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
10764 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 10788 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
10765 echo "configure:10766: checking for Xm/Xm.h" >&5 10789 echo "configure:10790: checking for Xm/Xm.h" >&5
10766 10790
10767 cat > conftest.$ac_ext <<EOF 10791 cat > conftest.$ac_ext <<EOF
10768 #line 10769 "configure" 10792 #line 10793 "configure"
10769 #include "confdefs.h" 10793 #include "confdefs.h"
10770 #include <Xm/Xm.h> 10794 #include <Xm/Xm.h>
10771 EOF 10795 EOF
10772 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10796 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10773 { (eval echo configure:10774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10797 { (eval echo configure:10798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10774 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10798 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10775 if test -z "$ac_err"; then 10799 if test -z "$ac_err"; then
10776 rm -rf conftest* 10800 rm -rf conftest*
10777 eval "ac_cv_header_$ac_safe=yes" 10801 eval "ac_cv_header_$ac_safe=yes"
10778 else 10802 else
10785 rm -f conftest* 10809 rm -f conftest*
10786 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10810 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10787 echo "$ac_t""yes" 1>&6 10811 echo "$ac_t""yes" 1>&6
10788 10812
10789 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 10813 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
10790 echo "configure:10791: checking for XmStringFree in -lXm" >&5 10814 echo "configure:10815: checking for XmStringFree in -lXm" >&5
10791 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 10815 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
10792 10816
10793 xe_check_libs=" -lXm " 10817 xe_check_libs=" -lXm "
10794 cat > conftest.$ac_ext <<EOF 10818 cat > conftest.$ac_ext <<EOF
10795 #line 10796 "configure" 10819 #line 10820 "configure"
10796 #include "confdefs.h" 10820 #include "confdefs.h"
10797 /* Override any gcc2 internal prototype to avoid an error. */ 10821 /* Override any gcc2 internal prototype to avoid an error. */
10798 /* We use char because int might match the return type of a gcc2 10822 /* We use char because int might match the return type of a gcc2
10799 builtin and then its argument prototype would still apply. */ 10823 builtin and then its argument prototype would still apply. */
10800 char XmStringFree(); 10824 char XmStringFree();
10801 10825
10802 int main() { 10826 int main() {
10803 XmStringFree() 10827 XmStringFree()
10804 ; return 0; } 10828 ; return 0; }
10805 EOF 10829 EOF
10806 if { (eval echo configure:10807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10830 if { (eval echo configure:10831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10807 rm -rf conftest* 10831 rm -rf conftest*
10808 eval "ac_cv_lib_$ac_lib_var=yes" 10832 eval "ac_cv_lib_$ac_lib_var=yes"
10809 else 10833 else
10810 echo "configure: failed program was:" >&5 10834 echo "configure: failed program was:" >&5
10811 cat conftest.$ac_ext >&5 10835 cat conftest.$ac_ext >&5
10830 fi 10854 fi
10831 10855
10832 10856
10833 if test "$have_motif" = "yes"; then 10857 if test "$have_motif" = "yes"; then
10834 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6 10858 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
10835 echo "configure:10836: checking for Lesstif" >&5 10859 echo "configure:10860: checking for Lesstif" >&5
10836 cat > conftest.$ac_ext <<EOF 10860 cat > conftest.$ac_ext <<EOF
10837 #line 10838 "configure" 10861 #line 10862 "configure"
10838 #include "confdefs.h" 10862 #include "confdefs.h"
10839 #include <Xm/Xm.h> 10863 #include <Xm/Xm.h>
10840 #ifdef LESSTIF_VERSION 10864 #ifdef LESSTIF_VERSION
10841 yes 10865 yes
10842 #endif 10866 #endif
11205 11229
11206 fi 11230 fi
11207 11231
11208 if test "$with_mule" = "yes" ; then 11232 if test "$with_mule" = "yes" ; then
11209 echo "checking for Mule-related features" 1>&6 11233 echo "checking for Mule-related features" 1>&6
11210 echo "configure:11211: checking for Mule-related features" >&5 11234 echo "configure:11235: checking for Mule-related features" >&5
11211 { test "$extra_verbose" = "yes" && cat << \EOF 11235 { test "$extra_verbose" = "yes" && cat << \EOF
11212 Defining MULE 11236 Defining MULE
11213 EOF 11237 EOF
11214 cat >> confdefs.h <<\EOF 11238 cat >> confdefs.h <<\EOF
11215 #define MULE 1 11239 #define MULE 1
11219 11243
11220 for ac_hdr in libintl.h 11244 for ac_hdr in libintl.h
11221 do 11245 do
11222 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11246 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11223 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11247 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11224 echo "configure:11225: checking for $ac_hdr" >&5 11248 echo "configure:11249: checking for $ac_hdr" >&5
11225 11249
11226 cat > conftest.$ac_ext <<EOF 11250 cat > conftest.$ac_ext <<EOF
11227 #line 11228 "configure" 11251 #line 11252 "configure"
11228 #include "confdefs.h" 11252 #include "confdefs.h"
11229 #include <$ac_hdr> 11253 #include <$ac_hdr>
11230 EOF 11254 EOF
11231 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11255 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11232 { (eval echo configure:11233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11256 { (eval echo configure:11257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11233 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11257 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11234 if test -z "$ac_err"; then 11258 if test -z "$ac_err"; then
11235 rm -rf conftest* 11259 rm -rf conftest*
11236 eval "ac_cv_header_$ac_safe=yes" 11260 eval "ac_cv_header_$ac_safe=yes"
11237 else 11261 else
11258 fi 11282 fi
11259 done 11283 done
11260 11284
11261 11285
11262 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 11286 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
11263 echo "configure:11264: checking for strerror in -lintl" >&5 11287 echo "configure:11288: checking for strerror in -lintl" >&5
11264 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` 11288 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
11265 11289
11266 xe_check_libs=" -lintl " 11290 xe_check_libs=" -lintl "
11267 cat > conftest.$ac_ext <<EOF 11291 cat > conftest.$ac_ext <<EOF
11268 #line 11269 "configure" 11292 #line 11293 "configure"
11269 #include "confdefs.h" 11293 #include "confdefs.h"
11270 /* Override any gcc2 internal prototype to avoid an error. */ 11294 /* Override any gcc2 internal prototype to avoid an error. */
11271 /* We use char because int might match the return type of a gcc2 11295 /* We use char because int might match the return type of a gcc2
11272 builtin and then its argument prototype would still apply. */ 11296 builtin and then its argument prototype would still apply. */
11273 char strerror(); 11297 char strerror();
11274 11298
11275 int main() { 11299 int main() {
11276 strerror() 11300 strerror()
11277 ; return 0; } 11301 ; return 0; }
11278 EOF 11302 EOF
11279 if { (eval echo configure:11280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11303 if { (eval echo configure:11304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11280 rm -rf conftest* 11304 rm -rf conftest*
11281 eval "ac_cv_lib_$ac_lib_var=yes" 11305 eval "ac_cv_lib_$ac_lib_var=yes"
11282 else 11306 else
11283 echo "configure: failed program was:" >&5 11307 echo "configure: failed program was:" >&5
11284 cat conftest.$ac_ext >&5 11308 cat conftest.$ac_ext >&5
11307 fi 11331 fi
11308 11332
11309 11333
11310 11334
11311 echo "checking for Mule input methods" 1>&6 11335 echo "checking for Mule input methods" 1>&6
11312 echo "configure:11313: checking for Mule input methods" >&5 11336 echo "configure:11337: checking for Mule input methods" >&5
11313 case "$with_xim" in "" | "yes" ) 11337 case "$with_xim" in "" | "yes" )
11314 echo "checking for XIM" 1>&6 11338 echo "checking for XIM" 1>&6
11315 echo "configure:11316: checking for XIM" >&5 11339 echo "configure:11340: checking for XIM" >&5
11316 11340
11317 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6 11341 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
11318 echo "configure:11319: checking for XOpenIM in -lX11" >&5 11342 echo "configure:11343: checking for XOpenIM in -lX11" >&5
11319 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'` 11343 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
11320 11344
11321 xe_check_libs=" -lX11 " 11345 xe_check_libs=" -lX11 "
11322 cat > conftest.$ac_ext <<EOF 11346 cat > conftest.$ac_ext <<EOF
11323 #line 11324 "configure" 11347 #line 11348 "configure"
11324 #include "confdefs.h" 11348 #include "confdefs.h"
11325 /* Override any gcc2 internal prototype to avoid an error. */ 11349 /* Override any gcc2 internal prototype to avoid an error. */
11326 /* We use char because int might match the return type of a gcc2 11350 /* We use char because int might match the return type of a gcc2
11327 builtin and then its argument prototype would still apply. */ 11351 builtin and then its argument prototype would still apply. */
11328 char XOpenIM(); 11352 char XOpenIM();
11329 11353
11330 int main() { 11354 int main() {
11331 XOpenIM() 11355 XOpenIM()
11332 ; return 0; } 11356 ; return 0; }
11333 EOF 11357 EOF
11334 if { (eval echo configure:11335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11358 if { (eval echo configure:11359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11335 rm -rf conftest* 11359 rm -rf conftest*
11336 eval "ac_cv_lib_$ac_lib_var=yes" 11360 eval "ac_cv_lib_$ac_lib_var=yes"
11337 else 11361 else
11338 echo "configure: failed program was:" >&5 11362 echo "configure: failed program was:" >&5
11339 cat conftest.$ac_ext >&5 11363 cat conftest.$ac_ext >&5
11353 11377
11354 11378
11355 if test "$have_motif $have_lesstif" = "yes no"; then 11379 if test "$have_motif $have_lesstif" = "yes no"; then
11356 11380
11357 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 11381 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
11358 echo "configure:11359: checking for XmImMbLookupString in -lXm" >&5 11382 echo "configure:11383: checking for XmImMbLookupString in -lXm" >&5
11359 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` 11383 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
11360 11384
11361 xe_check_libs=" -lXm " 11385 xe_check_libs=" -lXm "
11362 cat > conftest.$ac_ext <<EOF 11386 cat > conftest.$ac_ext <<EOF
11363 #line 11364 "configure" 11387 #line 11388 "configure"
11364 #include "confdefs.h" 11388 #include "confdefs.h"
11365 /* Override any gcc2 internal prototype to avoid an error. */ 11389 /* Override any gcc2 internal prototype to avoid an error. */
11366 /* We use char because int might match the return type of a gcc2 11390 /* We use char because int might match the return type of a gcc2
11367 builtin and then its argument prototype would still apply. */ 11391 builtin and then its argument prototype would still apply. */
11368 char XmImMbLookupString(); 11392 char XmImMbLookupString();
11369 11393
11370 int main() { 11394 int main() {
11371 XmImMbLookupString() 11395 XmImMbLookupString()
11372 ; return 0; } 11396 ; return 0; }
11373 EOF 11397 EOF
11374 if { (eval echo configure:11375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11398 if { (eval echo configure:11399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11375 rm -rf conftest* 11399 rm -rf conftest*
11376 eval "ac_cv_lib_$ac_lib_var=yes" 11400 eval "ac_cv_lib_$ac_lib_var=yes"
11377 else 11401 else
11378 echo "configure: failed program was:" >&5 11402 echo "configure: failed program was:" >&5
11379 cat conftest.$ac_ext >&5 11403 cat conftest.$ac_ext >&5
11434 fi 11458 fi
11435 fi 11459 fi
11436 11460
11437 if test "$with_xfs" = "yes" ; then 11461 if test "$with_xfs" = "yes" ; then
11438 echo "checking for XFontSet" 1>&6 11462 echo "checking for XFontSet" 1>&6
11439 echo "configure:11440: checking for XFontSet" >&5 11463 echo "configure:11464: checking for XFontSet" >&5
11440 11464
11441 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6 11465 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
11442 echo "configure:11443: checking for XmbDrawString in -lX11" >&5 11466 echo "configure:11467: checking for XmbDrawString in -lX11" >&5
11443 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'` 11467 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
11444 11468
11445 xe_check_libs=" -lX11 " 11469 xe_check_libs=" -lX11 "
11446 cat > conftest.$ac_ext <<EOF 11470 cat > conftest.$ac_ext <<EOF
11447 #line 11448 "configure" 11471 #line 11472 "configure"
11448 #include "confdefs.h" 11472 #include "confdefs.h"
11449 /* Override any gcc2 internal prototype to avoid an error. */ 11473 /* Override any gcc2 internal prototype to avoid an error. */
11450 /* We use char because int might match the return type of a gcc2 11474 /* We use char because int might match the return type of a gcc2
11451 builtin and then its argument prototype would still apply. */ 11475 builtin and then its argument prototype would still apply. */
11452 char XmbDrawString(); 11476 char XmbDrawString();
11453 11477
11454 int main() { 11478 int main() {
11455 XmbDrawString() 11479 XmbDrawString()
11456 ; return 0; } 11480 ; return 0; }
11457 EOF 11481 EOF
11458 if { (eval echo configure:11459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11482 if { (eval echo configure:11483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11459 rm -rf conftest* 11483 rm -rf conftest*
11460 eval "ac_cv_lib_$ac_lib_var=yes" 11484 eval "ac_cv_lib_$ac_lib_var=yes"
11461 else 11485 else
11462 echo "configure: failed program was:" >&5 11486 echo "configure: failed program was:" >&5
11463 cat conftest.$ac_ext >&5 11487 cat conftest.$ac_ext >&5
11493 fi 11517 fi
11494 fi 11518 fi
11495 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 11519 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
11496 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` 11520 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
11497 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 11521 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
11498 echo "configure:11499: checking for wnn/jllib.h" >&5 11522 echo "configure:11523: checking for wnn/jllib.h" >&5
11499 11523
11500 cat > conftest.$ac_ext <<EOF 11524 cat > conftest.$ac_ext <<EOF
11501 #line 11502 "configure" 11525 #line 11526 "configure"
11502 #include "confdefs.h" 11526 #include "confdefs.h"
11503 #include <wnn/jllib.h> 11527 #include <wnn/jllib.h>
11504 EOF 11528 EOF
11505 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11529 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11506 { (eval echo configure:11507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11530 { (eval echo configure:11531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11507 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11531 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11508 if test -z "$ac_err"; then 11532 if test -z "$ac_err"; then
11509 rm -rf conftest* 11533 rm -rf conftest*
11510 eval "ac_cv_header_$ac_safe=yes" 11534 eval "ac_cv_header_$ac_safe=yes"
11511 else 11535 else
11524 with_wnn=no 11548 with_wnn=no
11525 fi 11549 fi
11526 } 11550 }
11527 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'` 11551 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
11528 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6 11552 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
11529 echo "configure:11530: checking for wnn/commonhd.h" >&5 11553 echo "configure:11554: checking for wnn/commonhd.h" >&5
11530 11554
11531 cat > conftest.$ac_ext <<EOF 11555 cat > conftest.$ac_ext <<EOF
11532 #line 11533 "configure" 11556 #line 11557 "configure"
11533 #include "confdefs.h" 11557 #include "confdefs.h"
11534 #include <wnn/commonhd.h> 11558 #include <wnn/commonhd.h>
11535 EOF 11559 EOF
11536 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11560 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11537 { (eval echo configure:11538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11561 { (eval echo configure:11562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11538 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11562 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11539 if test -z "$ac_err"; then 11563 if test -z "$ac_err"; then
11540 rm -rf conftest* 11564 rm -rf conftest*
11541 eval "ac_cv_header_$ac_safe=yes" 11565 eval "ac_cv_header_$ac_safe=yes"
11542 else 11566 else
11557 } 11581 }
11558 if test "$with_wnn" != "no"; then 11582 if test "$with_wnn" != "no"; then
11559 for ac_func in crypt 11583 for ac_func in crypt
11560 do 11584 do
11561 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 11585 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11562 echo "configure:11563: checking for $ac_func" >&5 11586 echo "configure:11587: checking for $ac_func" >&5
11563 11587
11564 cat > conftest.$ac_ext <<EOF 11588 cat > conftest.$ac_ext <<EOF
11565 #line 11566 "configure" 11589 #line 11590 "configure"
11566 #include "confdefs.h" 11590 #include "confdefs.h"
11567 /* System header to define __stub macros and hopefully few prototypes, 11591 /* System header to define __stub macros and hopefully few prototypes,
11568 which can conflict with char $ac_func(); below. */ 11592 which can conflict with char $ac_func(); below. */
11569 #include <assert.h> 11593 #include <assert.h>
11570 /* Override any gcc2 internal prototype to avoid an error. */ 11594 /* Override any gcc2 internal prototype to avoid an error. */
11583 $ac_func(); 11607 $ac_func();
11584 #endif 11608 #endif
11585 11609
11586 ; return 0; } 11610 ; return 0; }
11587 EOF 11611 EOF
11588 if { (eval echo configure:11589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11612 if { (eval echo configure:11613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11589 rm -rf conftest* 11613 rm -rf conftest*
11590 eval "ac_cv_func_$ac_func=yes" 11614 eval "ac_cv_func_$ac_func=yes"
11591 else 11615 else
11592 echo "configure: failed program was:" >&5 11616 echo "configure: failed program was:" >&5
11593 cat conftest.$ac_ext >&5 11617 cat conftest.$ac_ext >&5
11612 fi 11636 fi
11613 done 11637 done
11614 11638
11615 test "$ac_cv_func_crypt" != "yes" && { 11639 test "$ac_cv_func_crypt" != "yes" && {
11616 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 11640 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
11617 echo "configure:11618: checking for crypt in -lcrypt" >&5 11641 echo "configure:11642: checking for crypt in -lcrypt" >&5
11618 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 11642 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
11619 11643
11620 xe_check_libs=" -lcrypt " 11644 xe_check_libs=" -lcrypt "
11621 cat > conftest.$ac_ext <<EOF 11645 cat > conftest.$ac_ext <<EOF
11622 #line 11623 "configure" 11646 #line 11647 "configure"
11623 #include "confdefs.h" 11647 #include "confdefs.h"
11624 /* Override any gcc2 internal prototype to avoid an error. */ 11648 /* Override any gcc2 internal prototype to avoid an error. */
11625 /* We use char because int might match the return type of a gcc2 11649 /* We use char because int might match the return type of a gcc2
11626 builtin and then its argument prototype would still apply. */ 11650 builtin and then its argument prototype would still apply. */
11627 char crypt(); 11651 char crypt();
11628 11652
11629 int main() { 11653 int main() {
11630 crypt() 11654 crypt()
11631 ; return 0; } 11655 ; return 0; }
11632 EOF 11656 EOF
11633 if { (eval echo configure:11634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11657 if { (eval echo configure:11658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11634 rm -rf conftest* 11658 rm -rf conftest*
11635 eval "ac_cv_lib_$ac_lib_var=yes" 11659 eval "ac_cv_lib_$ac_lib_var=yes"
11636 else 11660 else
11637 echo "configure: failed program was:" >&5 11661 echo "configure: failed program was:" >&5
11638 cat conftest.$ac_ext >&5 11662 cat conftest.$ac_ext >&5
11663 } 11687 }
11664 fi 11688 fi
11665 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then 11689 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
11666 11690
11667 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 11691 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
11668 echo "configure:11669: checking for jl_dic_list_e in -lwnn" >&5 11692 echo "configure:11693: checking for jl_dic_list_e in -lwnn" >&5
11669 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 11693 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
11670 11694
11671 xe_check_libs=" -lwnn " 11695 xe_check_libs=" -lwnn "
11672 cat > conftest.$ac_ext <<EOF 11696 cat > conftest.$ac_ext <<EOF
11673 #line 11674 "configure" 11697 #line 11698 "configure"
11674 #include "confdefs.h" 11698 #include "confdefs.h"
11675 /* Override any gcc2 internal prototype to avoid an error. */ 11699 /* Override any gcc2 internal prototype to avoid an error. */
11676 /* We use char because int might match the return type of a gcc2 11700 /* We use char because int might match the return type of a gcc2
11677 builtin and then its argument prototype would still apply. */ 11701 builtin and then its argument prototype would still apply. */
11678 char jl_dic_list_e(); 11702 char jl_dic_list_e();
11679 11703
11680 int main() { 11704 int main() {
11681 jl_dic_list_e() 11705 jl_dic_list_e()
11682 ; return 0; } 11706 ; return 0; }
11683 EOF 11707 EOF
11684 if { (eval echo configure:11685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11708 if { (eval echo configure:11709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11685 rm -rf conftest* 11709 rm -rf conftest*
11686 eval "ac_cv_lib_$ac_lib_var=yes" 11710 eval "ac_cv_lib_$ac_lib_var=yes"
11687 else 11711 else
11688 echo "configure: failed program was:" >&5 11712 echo "configure: failed program was:" >&5
11689 cat conftest.$ac_ext >&5 11713 cat conftest.$ac_ext >&5
11697 echo "$ac_t""yes" 1>&6 11721 echo "$ac_t""yes" 1>&6
11698 libwnn=wnn 11722 libwnn=wnn
11699 else 11723 else
11700 echo "$ac_t""no" 1>&6 11724 echo "$ac_t""no" 1>&6
11701 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6 11725 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
11702 echo "configure:11703: checking for jl_dic_list_e in -lwnn4" >&5 11726 echo "configure:11727: checking for jl_dic_list_e in -lwnn4" >&5
11703 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 11727 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
11704 11728
11705 xe_check_libs=" -lwnn4 " 11729 xe_check_libs=" -lwnn4 "
11706 cat > conftest.$ac_ext <<EOF 11730 cat > conftest.$ac_ext <<EOF
11707 #line 11708 "configure" 11731 #line 11732 "configure"
11708 #include "confdefs.h" 11732 #include "confdefs.h"
11709 /* Override any gcc2 internal prototype to avoid an error. */ 11733 /* Override any gcc2 internal prototype to avoid an error. */
11710 /* We use char because int might match the return type of a gcc2 11734 /* We use char because int might match the return type of a gcc2
11711 builtin and then its argument prototype would still apply. */ 11735 builtin and then its argument prototype would still apply. */
11712 char jl_dic_list_e(); 11736 char jl_dic_list_e();
11713 11737
11714 int main() { 11738 int main() {
11715 jl_dic_list_e() 11739 jl_dic_list_e()
11716 ; return 0; } 11740 ; return 0; }
11717 EOF 11741 EOF
11718 if { (eval echo configure:11719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11742 if { (eval echo configure:11743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11719 rm -rf conftest* 11743 rm -rf conftest*
11720 eval "ac_cv_lib_$ac_lib_var=yes" 11744 eval "ac_cv_lib_$ac_lib_var=yes"
11721 else 11745 else
11722 echo "configure: failed program was:" >&5 11746 echo "configure: failed program was:" >&5
11723 cat conftest.$ac_ext >&5 11747 cat conftest.$ac_ext >&5
11731 echo "$ac_t""yes" 1>&6 11755 echo "$ac_t""yes" 1>&6
11732 libwnn=wnn4 11756 libwnn=wnn4
11733 else 11757 else
11734 echo "$ac_t""no" 1>&6 11758 echo "$ac_t""no" 1>&6
11735 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6 11759 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
11736 echo "configure:11737: checking for jl_dic_list_e in -lwnn6" >&5 11760 echo "configure:11761: checking for jl_dic_list_e in -lwnn6" >&5
11737 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 11761 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
11738 11762
11739 xe_check_libs=" -lwnn6 " 11763 xe_check_libs=" -lwnn6 "
11740 cat > conftest.$ac_ext <<EOF 11764 cat > conftest.$ac_ext <<EOF
11741 #line 11742 "configure" 11765 #line 11766 "configure"
11742 #include "confdefs.h" 11766 #include "confdefs.h"
11743 /* Override any gcc2 internal prototype to avoid an error. */ 11767 /* Override any gcc2 internal prototype to avoid an error. */
11744 /* We use char because int might match the return type of a gcc2 11768 /* We use char because int might match the return type of a gcc2
11745 builtin and then its argument prototype would still apply. */ 11769 builtin and then its argument prototype would still apply. */
11746 char jl_dic_list_e(); 11770 char jl_dic_list_e();
11747 11771
11748 int main() { 11772 int main() {
11749 jl_dic_list_e() 11773 jl_dic_list_e()
11750 ; return 0; } 11774 ; return 0; }
11751 EOF 11775 EOF
11752 if { (eval echo configure:11753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11776 if { (eval echo configure:11777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11753 rm -rf conftest* 11777 rm -rf conftest*
11754 eval "ac_cv_lib_$ac_lib_var=yes" 11778 eval "ac_cv_lib_$ac_lib_var=yes"
11755 else 11779 else
11756 echo "configure: failed program was:" >&5 11780 echo "configure: failed program was:" >&5
11757 cat conftest.$ac_ext >&5 11781 cat conftest.$ac_ext >&5
11765 echo "$ac_t""yes" 1>&6 11789 echo "$ac_t""yes" 1>&6
11766 libwnn=wnn6 11790 libwnn=wnn6
11767 else 11791 else
11768 echo "$ac_t""no" 1>&6 11792 echo "$ac_t""no" 1>&6
11769 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6 11793 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
11770 echo "configure:11771: checking for dic_list_e in -lwnn6_fromsrc" >&5 11794 echo "configure:11795: checking for dic_list_e in -lwnn6_fromsrc" >&5
11771 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'` 11795 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
11772 11796
11773 xe_check_libs=" -lwnn6_fromsrc " 11797 xe_check_libs=" -lwnn6_fromsrc "
11774 cat > conftest.$ac_ext <<EOF 11798 cat > conftest.$ac_ext <<EOF
11775 #line 11776 "configure" 11799 #line 11800 "configure"
11776 #include "confdefs.h" 11800 #include "confdefs.h"
11777 /* Override any gcc2 internal prototype to avoid an error. */ 11801 /* Override any gcc2 internal prototype to avoid an error. */
11778 /* We use char because int might match the return type of a gcc2 11802 /* We use char because int might match the return type of a gcc2
11779 builtin and then its argument prototype would still apply. */ 11803 builtin and then its argument prototype would still apply. */
11780 char dic_list_e(); 11804 char dic_list_e();
11781 11805
11782 int main() { 11806 int main() {
11783 dic_list_e() 11807 dic_list_e()
11784 ; return 0; } 11808 ; return 0; }
11785 EOF 11809 EOF
11786 if { (eval echo configure:11787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11810 if { (eval echo configure:11811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11787 rm -rf conftest* 11811 rm -rf conftest*
11788 eval "ac_cv_lib_$ac_lib_var=yes" 11812 eval "ac_cv_lib_$ac_lib_var=yes"
11789 else 11813 else
11790 echo "configure: failed program was:" >&5 11814 echo "configure: failed program was:" >&5
11791 cat conftest.$ac_ext >&5 11815 cat conftest.$ac_ext >&5
11826 11850
11827 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi 11851 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
11828 if test "$with_wnn6" != "no"; then 11852 if test "$with_wnn6" != "no"; then
11829 11853
11830 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6 11854 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
11831 echo "configure:11832: checking for jl_fi_dic_list in -l$libwnn" >&5 11855 echo "configure:11856: checking for jl_fi_dic_list in -l$libwnn" >&5
11832 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` 11856 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
11833 11857
11834 xe_check_libs=" -l$libwnn " 11858 xe_check_libs=" -l$libwnn "
11835 cat > conftest.$ac_ext <<EOF 11859 cat > conftest.$ac_ext <<EOF
11836 #line 11837 "configure" 11860 #line 11861 "configure"
11837 #include "confdefs.h" 11861 #include "confdefs.h"
11838 /* Override any gcc2 internal prototype to avoid an error. */ 11862 /* Override any gcc2 internal prototype to avoid an error. */
11839 /* We use char because int might match the return type of a gcc2 11863 /* We use char because int might match the return type of a gcc2
11840 builtin and then its argument prototype would still apply. */ 11864 builtin and then its argument prototype would still apply. */
11841 char jl_fi_dic_list(); 11865 char jl_fi_dic_list();
11842 11866
11843 int main() { 11867 int main() {
11844 jl_fi_dic_list() 11868 jl_fi_dic_list()
11845 ; return 0; } 11869 ; return 0; }
11846 EOF 11870 EOF
11847 if { (eval echo configure:11848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11871 if { (eval echo configure:11872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11848 rm -rf conftest* 11872 rm -rf conftest*
11849 eval "ac_cv_lib_$ac_lib_var=yes" 11873 eval "ac_cv_lib_$ac_lib_var=yes"
11850 else 11874 else
11851 echo "configure: failed program was:" >&5 11875 echo "configure: failed program was:" >&5
11852 cat conftest.$ac_ext >&5 11876 cat conftest.$ac_ext >&5
11877 11901
11878 canna_includes_found=no 11902 canna_includes_found=no
11879 if test "$with_canna" != "no"; then 11903 if test "$with_canna" != "no"; then
11880 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 11904 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
11881 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 11905 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
11882 echo "configure:11883: checking for canna/jrkanji.h" >&5 11906 echo "configure:11907: checking for canna/jrkanji.h" >&5
11883 11907
11884 cat > conftest.$ac_ext <<EOF 11908 cat > conftest.$ac_ext <<EOF
11885 #line 11886 "configure" 11909 #line 11910 "configure"
11886 #include "confdefs.h" 11910 #include "confdefs.h"
11887 #include <canna/jrkanji.h> 11911 #include <canna/jrkanji.h>
11888 EOF 11912 EOF
11889 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11913 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11890 { (eval echo configure:11891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11914 { (eval echo configure:11915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11891 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11915 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11892 if test -z "$ac_err"; then 11916 if test -z "$ac_err"; then
11893 rm -rf conftest* 11917 rm -rf conftest*
11894 eval "ac_cv_header_$ac_safe=yes" 11918 eval "ac_cv_header_$ac_safe=yes"
11895 else 11919 else
11912 -d "/usr/local/canna/include"; then 11936 -d "/usr/local/canna/include"; then
11913 save_c_switch_site="$c_switch_site" 11937 save_c_switch_site="$c_switch_site"
11914 c_switch_site="$c_switch_site -I/usr/local/canna/include" 11938 c_switch_site="$c_switch_site -I/usr/local/canna/include"
11915 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 11939 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
11916 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 11940 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
11917 echo "configure:11918: checking for canna/jrkanji.h" >&5 11941 echo "configure:11942: checking for canna/jrkanji.h" >&5
11918 11942
11919 cat > conftest.$ac_ext <<EOF 11943 cat > conftest.$ac_ext <<EOF
11920 #line 11921 "configure" 11944 #line 11945 "configure"
11921 #include "confdefs.h" 11945 #include "confdefs.h"
11922 #include <canna/jrkanji.h> 11946 #include <canna/jrkanji.h>
11923 EOF 11947 EOF
11924 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11948 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11925 { (eval echo configure:11926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11949 { (eval echo configure:11950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11926 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11950 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11927 if test -z "$ac_err"; then 11951 if test -z "$ac_err"; then
11928 rm -rf conftest* 11952 rm -rf conftest*
11929 eval "ac_cv_header_$ac_safe=yes" 11953 eval "ac_cv_header_$ac_safe=yes"
11930 else 11954 else
11948 fi 11972 fi
11949 fi 11973 fi
11950 11974
11951 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` 11975 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
11952 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 11976 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
11953 echo "configure:11954: checking for canna/RK.h" >&5 11977 echo "configure:11978: checking for canna/RK.h" >&5
11954 11978
11955 cat > conftest.$ac_ext <<EOF 11979 cat > conftest.$ac_ext <<EOF
11956 #line 11957 "configure" 11980 #line 11981 "configure"
11957 #include "confdefs.h" 11981 #include "confdefs.h"
11958 #include <canna/RK.h> 11982 #include <canna/RK.h>
11959 EOF 11983 EOF
11960 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11984 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11961 { (eval echo configure:11962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11985 { (eval echo configure:11986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11962 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11986 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11963 if test -z "$ac_err"; then 11987 if test -z "$ac_err"; then
11964 rm -rf conftest* 11988 rm -rf conftest*
11965 eval "ac_cv_header_$ac_safe=yes" 11989 eval "ac_cv_header_$ac_safe=yes"
11966 else 11990 else
11979 with_canna=no 12003 with_canna=no
11980 fi 12004 fi
11981 } 12005 }
11982 test -z "$with_canna" && { 12006 test -z "$with_canna" && {
11983 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 12007 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
11984 echo "configure:11985: checking for RkBgnBun in -lRKC" >&5 12008 echo "configure:12009: checking for RkBgnBun in -lRKC" >&5
11985 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` 12009 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
11986 12010
11987 xe_check_libs=" -lRKC " 12011 xe_check_libs=" -lRKC "
11988 cat > conftest.$ac_ext <<EOF 12012 cat > conftest.$ac_ext <<EOF
11989 #line 11990 "configure" 12013 #line 12014 "configure"
11990 #include "confdefs.h" 12014 #include "confdefs.h"
11991 /* Override any gcc2 internal prototype to avoid an error. */ 12015 /* Override any gcc2 internal prototype to avoid an error. */
11992 /* We use char because int might match the return type of a gcc2 12016 /* We use char because int might match the return type of a gcc2
11993 builtin and then its argument prototype would still apply. */ 12017 builtin and then its argument prototype would still apply. */
11994 char RkBgnBun(); 12018 char RkBgnBun();
11995 12019
11996 int main() { 12020 int main() {
11997 RkBgnBun() 12021 RkBgnBun()
11998 ; return 0; } 12022 ; return 0; }
11999 EOF 12023 EOF
12000 if { (eval echo configure:12001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12024 if { (eval echo configure:12025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12001 rm -rf conftest* 12025 rm -rf conftest*
12002 eval "ac_cv_lib_$ac_lib_var=yes" 12026 eval "ac_cv_lib_$ac_lib_var=yes"
12003 else 12027 else
12004 echo "configure: failed program was:" >&5 12028 echo "configure: failed program was:" >&5
12005 cat conftest.$ac_ext >&5 12029 cat conftest.$ac_ext >&5
12018 fi 12042 fi
12019 12043
12020 } 12044 }
12021 test -z "$with_canna" && { 12045 test -z "$with_canna" && {
12022 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 12046 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
12023 echo "configure:12024: checking for jrKanjiControl in -lcanna" >&5 12047 echo "configure:12048: checking for jrKanjiControl in -lcanna" >&5
12024 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` 12048 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
12025 12049
12026 xe_check_libs=" -lcanna " 12050 xe_check_libs=" -lcanna "
12027 cat > conftest.$ac_ext <<EOF 12051 cat > conftest.$ac_ext <<EOF
12028 #line 12029 "configure" 12052 #line 12053 "configure"
12029 #include "confdefs.h" 12053 #include "confdefs.h"
12030 /* Override any gcc2 internal prototype to avoid an error. */ 12054 /* Override any gcc2 internal prototype to avoid an error. */
12031 /* We use char because int might match the return type of a gcc2 12055 /* We use char because int might match the return type of a gcc2
12032 builtin and then its argument prototype would still apply. */ 12056 builtin and then its argument prototype would still apply. */
12033 char jrKanjiControl(); 12057 char jrKanjiControl();
12034 12058
12035 int main() { 12059 int main() {
12036 jrKanjiControl() 12060 jrKanjiControl()
12037 ; return 0; } 12061 ; return 0; }
12038 EOF 12062 EOF
12039 if { (eval echo configure:12040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12063 if { (eval echo configure:12064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12040 rm -rf conftest* 12064 rm -rf conftest*
12041 eval "ac_cv_lib_$ac_lib_var=yes" 12065 eval "ac_cv_lib_$ac_lib_var=yes"
12042 else 12066 else
12043 echo "configure: failed program was:" >&5 12067 echo "configure: failed program was:" >&5
12044 cat conftest.$ac_ext >&5 12068 cat conftest.$ac_ext >&5
12080 12104
12081 if test "$need_motif" = "yes" ; then 12105 if test "$need_motif" = "yes" ; then
12082 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi 12106 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
12083 12107
12084 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6 12108 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
12085 echo "configure:12086: checking for layout_object_getvalue in -li18n" >&5 12109 echo "configure:12110: checking for layout_object_getvalue in -li18n" >&5
12086 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'` 12110 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
12087 12111
12088 xe_check_libs=" -li18n " 12112 xe_check_libs=" -li18n "
12089 cat > conftest.$ac_ext <<EOF 12113 cat > conftest.$ac_ext <<EOF
12090 #line 12091 "configure" 12114 #line 12115 "configure"
12091 #include "confdefs.h" 12115 #include "confdefs.h"
12092 /* Override any gcc2 internal prototype to avoid an error. */ 12116 /* Override any gcc2 internal prototype to avoid an error. */
12093 /* We use char because int might match the return type of a gcc2 12117 /* We use char because int might match the return type of a gcc2
12094 builtin and then its argument prototype would still apply. */ 12118 builtin and then its argument prototype would still apply. */
12095 char layout_object_getvalue(); 12119 char layout_object_getvalue();
12096 12120
12097 int main() { 12121 int main() {
12098 layout_object_getvalue() 12122 layout_object_getvalue()
12099 ; return 0; } 12123 ; return 0; }
12100 EOF 12124 EOF
12101 if { (eval echo configure:12102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12125 if { (eval echo configure:12126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12102 rm -rf conftest* 12126 rm -rf conftest*
12103 eval "ac_cv_lib_$ac_lib_var=yes" 12127 eval "ac_cv_lib_$ac_lib_var=yes"
12104 else 12128 else
12105 echo "configure: failed program was:" >&5 12129 echo "configure: failed program was:" >&5
12106 cat conftest.$ac_ext >&5 12130 cat conftest.$ac_ext >&5
12183 12207
12184 12208
12185 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getwd link logb lrand48 matherr mkdir mktime perror poll random readlink rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strerror strlwr strupr symlink tzset ulimit usleep waitpid vsnprintf fsync ftruncate umask wcslen wcscmp 12209 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getwd link logb lrand48 matherr mkdir mktime perror poll random readlink rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strerror strlwr strupr symlink tzset ulimit usleep waitpid vsnprintf fsync ftruncate umask wcslen wcscmp
12186 do 12210 do
12187 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 12211 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12188 echo "configure:12189: checking for $ac_func" >&5 12212 echo "configure:12213: checking for $ac_func" >&5
12189 12213
12190 cat > conftest.$ac_ext <<EOF 12214 cat > conftest.$ac_ext <<EOF
12191 #line 12192 "configure" 12215 #line 12216 "configure"
12192 #include "confdefs.h" 12216 #include "confdefs.h"
12193 /* System header to define __stub macros and hopefully few prototypes, 12217 /* System header to define __stub macros and hopefully few prototypes,
12194 which can conflict with char $ac_func(); below. */ 12218 which can conflict with char $ac_func(); below. */
12195 #include <assert.h> 12219 #include <assert.h>
12196 /* Override any gcc2 internal prototype to avoid an error. */ 12220 /* Override any gcc2 internal prototype to avoid an error. */
12209 $ac_func(); 12233 $ac_func();
12210 #endif 12234 #endif
12211 12235
12212 ; return 0; } 12236 ; return 0; }
12213 EOF 12237 EOF
12214 if { (eval echo configure:12215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12238 if { (eval echo configure:12239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12215 rm -rf conftest* 12239 rm -rf conftest*
12216 eval "ac_cv_func_$ac_func=yes" 12240 eval "ac_cv_func_$ac_func=yes"
12217 else 12241 else
12218 echo "configure: failed program was:" >&5 12242 echo "configure: failed program was:" >&5
12219 cat conftest.$ac_ext >&5 12243 cat conftest.$ac_ext >&5
12250 12274
12251 12275
12252 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp 12276 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
12253 do 12277 do
12254 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 12278 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12255 echo "configure:12256: checking for $ac_func" >&5 12279 echo "configure:12280: checking for $ac_func" >&5
12256 12280
12257 cat > conftest.$ac_ext <<EOF 12281 cat > conftest.$ac_ext <<EOF
12258 #line 12259 "configure" 12282 #line 12283 "configure"
12259 #include "confdefs.h" 12283 #include "confdefs.h"
12260 /* System header to define __stub macros and hopefully few prototypes, 12284 /* System header to define __stub macros and hopefully few prototypes,
12261 which can conflict with char $ac_func(); below. */ 12285 which can conflict with char $ac_func(); below. */
12262 #include <assert.h> 12286 #include <assert.h>
12263 /* Override any gcc2 internal prototype to avoid an error. */ 12287 /* Override any gcc2 internal prototype to avoid an error. */
12276 $ac_func(); 12300 $ac_func();
12277 #endif 12301 #endif
12278 12302
12279 ; return 0; } 12303 ; return 0; }
12280 EOF 12304 EOF
12281 if { (eval echo configure:12282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12305 if { (eval echo configure:12306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12282 rm -rf conftest* 12306 rm -rf conftest*
12283 eval "ac_cv_func_$ac_func=yes" 12307 eval "ac_cv_func_$ac_func=yes"
12284 else 12308 else
12285 echo "configure: failed program was:" >&5 12309 echo "configure: failed program was:" >&5
12286 cat conftest.$ac_ext >&5 12310 cat conftest.$ac_ext >&5
12305 fi 12329 fi
12306 done 12330 done
12307 12331
12308 12332
12309 echo $ac_n "checking for openpty""... $ac_c" 1>&6 12333 echo $ac_n "checking for openpty""... $ac_c" 1>&6
12310 echo "configure:12311: checking for openpty" >&5 12334 echo "configure:12335: checking for openpty" >&5
12311 12335
12312 cat > conftest.$ac_ext <<EOF 12336 cat > conftest.$ac_ext <<EOF
12313 #line 12314 "configure" 12337 #line 12338 "configure"
12314 #include "confdefs.h" 12338 #include "confdefs.h"
12315 /* System header to define __stub macros and hopefully few prototypes, 12339 /* System header to define __stub macros and hopefully few prototypes,
12316 which can conflict with char openpty(); below. */ 12340 which can conflict with char openpty(); below. */
12317 #include <assert.h> 12341 #include <assert.h>
12318 /* Override any gcc2 internal prototype to avoid an error. */ 12342 /* Override any gcc2 internal prototype to avoid an error. */
12331 openpty(); 12355 openpty();
12332 #endif 12356 #endif
12333 12357
12334 ; return 0; } 12358 ; return 0; }
12335 EOF 12359 EOF
12336 if { (eval echo configure:12337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12360 if { (eval echo configure:12361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12337 rm -rf conftest* 12361 rm -rf conftest*
12338 eval "ac_cv_func_openpty=yes" 12362 eval "ac_cv_func_openpty=yes"
12339 else 12363 else
12340 echo "configure: failed program was:" >&5 12364 echo "configure: failed program was:" >&5
12341 cat conftest.$ac_ext >&5 12365 cat conftest.$ac_ext >&5
12350 else 12374 else
12351 echo "$ac_t""no" 1>&6 12375 echo "$ac_t""no" 1>&6
12352 12376
12353 12377
12354 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6 12378 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
12355 echo "configure:12356: checking for openpty in -lutil" >&5 12379 echo "configure:12380: checking for openpty in -lutil" >&5
12356 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'` 12380 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
12357 12381
12358 xe_check_libs=" -lutil " 12382 xe_check_libs=" -lutil "
12359 cat > conftest.$ac_ext <<EOF 12383 cat > conftest.$ac_ext <<EOF
12360 #line 12361 "configure" 12384 #line 12385 "configure"
12361 #include "confdefs.h" 12385 #include "confdefs.h"
12362 /* Override any gcc2 internal prototype to avoid an error. */ 12386 /* Override any gcc2 internal prototype to avoid an error. */
12363 /* We use char because int might match the return type of a gcc2 12387 /* We use char because int might match the return type of a gcc2
12364 builtin and then its argument prototype would still apply. */ 12388 builtin and then its argument prototype would still apply. */
12365 char openpty(); 12389 char openpty();
12366 12390
12367 int main() { 12391 int main() {
12368 openpty() 12392 openpty()
12369 ; return 0; } 12393 ; return 0; }
12370 EOF 12394 EOF
12371 if { (eval echo configure:12372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12395 if { (eval echo configure:12396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12372 rm -rf conftest* 12396 rm -rf conftest*
12373 eval "ac_cv_lib_$ac_lib_var=yes" 12397 eval "ac_cv_lib_$ac_lib_var=yes"
12374 else 12398 else
12375 echo "configure: failed program was:" >&5 12399 echo "configure: failed program was:" >&5
12376 cat conftest.$ac_ext >&5 12400 cat conftest.$ac_ext >&5
12401 12425
12402 for ac_hdr in libutil.h util.h 12426 for ac_hdr in libutil.h util.h
12403 do 12427 do
12404 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 12428 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12405 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 12429 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12406 echo "configure:12407: checking for $ac_hdr" >&5 12430 echo "configure:12431: checking for $ac_hdr" >&5
12407 12431
12408 cat > conftest.$ac_ext <<EOF 12432 cat > conftest.$ac_ext <<EOF
12409 #line 12410 "configure" 12433 #line 12434 "configure"
12410 #include "confdefs.h" 12434 #include "confdefs.h"
12411 #include <$ac_hdr> 12435 #include <$ac_hdr>
12412 EOF 12436 EOF
12413 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12437 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12414 { (eval echo configure:12415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12438 { (eval echo configure:12439: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12415 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12439 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12416 if test -z "$ac_err"; then 12440 if test -z "$ac_err"; then
12417 rm -rf conftest* 12441 rm -rf conftest*
12418 eval "ac_cv_header_$ac_safe=yes" 12442 eval "ac_cv_header_$ac_safe=yes"
12419 else 12443 else
12446 case "$opsys" in 12470 case "$opsys" in
12447 hpux*) for ac_hdr in sys/ptyio.h 12471 hpux*) for ac_hdr in sys/ptyio.h
12448 do 12472 do
12449 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 12473 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12450 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 12474 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12451 echo "configure:12452: checking for $ac_hdr" >&5 12475 echo "configure:12476: checking for $ac_hdr" >&5
12452 12476
12453 cat > conftest.$ac_ext <<EOF 12477 cat > conftest.$ac_ext <<EOF
12454 #line 12455 "configure" 12478 #line 12479 "configure"
12455 #include "confdefs.h" 12479 #include "confdefs.h"
12456 #include <$ac_hdr> 12480 #include <$ac_hdr>
12457 EOF 12481 EOF
12458 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12482 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12459 { (eval echo configure:12460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12483 { (eval echo configure:12484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12460 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12484 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12461 if test -z "$ac_err"; then 12485 if test -z "$ac_err"; then
12462 rm -rf conftest* 12486 rm -rf conftest*
12463 eval "ac_cv_header_$ac_safe=yes" 12487 eval "ac_cv_header_$ac_safe=yes"
12464 else 12488 else
12487 ;; 12511 ;;
12488 *) for ac_hdr in pty.h 12512 *) for ac_hdr in pty.h
12489 do 12513 do
12490 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 12514 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12491 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 12515 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12492 echo "configure:12493: checking for $ac_hdr" >&5 12516 echo "configure:12517: checking for $ac_hdr" >&5
12493 12517
12494 cat > conftest.$ac_ext <<EOF 12518 cat > conftest.$ac_ext <<EOF
12495 #line 12496 "configure" 12519 #line 12520 "configure"
12496 #include "confdefs.h" 12520 #include "confdefs.h"
12497 #include <$ac_hdr> 12521 #include <$ac_hdr>
12498 EOF 12522 EOF
12499 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12523 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12500 { (eval echo configure:12501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12524 { (eval echo configure:12525: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12501 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12525 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12502 if test -z "$ac_err"; then 12526 if test -z "$ac_err"; then
12503 rm -rf conftest* 12527 rm -rf conftest*
12504 eval "ac_cv_header_$ac_safe=yes" 12528 eval "ac_cv_header_$ac_safe=yes"
12505 else 12529 else
12528 12552
12529 test "$ac_cv_header_pty_h" = "no" && for ac_hdr in sys/pty.h 12553 test "$ac_cv_header_pty_h" = "no" && for ac_hdr in sys/pty.h
12530 do 12554 do
12531 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 12555 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12532 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 12556 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12533 echo "configure:12534: checking for $ac_hdr" >&5 12557 echo "configure:12558: checking for $ac_hdr" >&5
12534 12558
12535 cat > conftest.$ac_ext <<EOF 12559 cat > conftest.$ac_ext <<EOF
12536 #line 12537 "configure" 12560 #line 12561 "configure"
12537 #include "confdefs.h" 12561 #include "confdefs.h"
12538 #include <$ac_hdr> 12562 #include <$ac_hdr>
12539 EOF 12563 EOF
12540 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12564 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12541 { (eval echo configure:12542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12565 { (eval echo configure:12566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12542 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12566 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12543 if test -z "$ac_err"; then 12567 if test -z "$ac_err"; then
12544 rm -rf conftest* 12568 rm -rf conftest*
12545 eval "ac_cv_header_$ac_safe=yes" 12569 eval "ac_cv_header_$ac_safe=yes"
12546 else 12570 else
12572 12596
12573 for ac_hdr in stropts.h 12597 for ac_hdr in stropts.h
12574 do 12598 do
12575 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 12599 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12576 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 12600 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12577 echo "configure:12578: checking for $ac_hdr" >&5 12601 echo "configure:12602: checking for $ac_hdr" >&5
12578 12602
12579 cat > conftest.$ac_ext <<EOF 12603 cat > conftest.$ac_ext <<EOF
12580 #line 12581 "configure" 12604 #line 12605 "configure"
12581 #include "confdefs.h" 12605 #include "confdefs.h"
12582 #include <$ac_hdr> 12606 #include <$ac_hdr>
12583 EOF 12607 EOF
12584 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12585 { (eval echo configure:12586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12609 { (eval echo configure:12610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12586 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12610 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12587 if test -z "$ac_err"; then 12611 if test -z "$ac_err"; then
12588 rm -rf conftest* 12612 rm -rf conftest*
12589 eval "ac_cv_header_$ac_safe=yes" 12613 eval "ac_cv_header_$ac_safe=yes"
12590 else 12614 else
12613 12637
12614 if test "$ac_cv_header_stropts_h" = "yes"; then 12638 if test "$ac_cv_header_stropts_h" = "yes"; then
12615 for ac_func in isastream 12639 for ac_func in isastream
12616 do 12640 do
12617 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 12641 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12618 echo "configure:12619: checking for $ac_func" >&5 12642 echo "configure:12643: checking for $ac_func" >&5
12619 12643
12620 cat > conftest.$ac_ext <<EOF 12644 cat > conftest.$ac_ext <<EOF
12621 #line 12622 "configure" 12645 #line 12646 "configure"
12622 #include "confdefs.h" 12646 #include "confdefs.h"
12623 /* System header to define __stub macros and hopefully few prototypes, 12647 /* System header to define __stub macros and hopefully few prototypes,
12624 which can conflict with char $ac_func(); below. */ 12648 which can conflict with char $ac_func(); below. */
12625 #include <assert.h> 12649 #include <assert.h>
12626 /* Override any gcc2 internal prototype to avoid an error. */ 12650 /* Override any gcc2 internal prototype to avoid an error. */
12639 $ac_func(); 12663 $ac_func();
12640 #endif 12664 #endif
12641 12665
12642 ; return 0; } 12666 ; return 0; }
12643 EOF 12667 EOF
12644 if { (eval echo configure:12645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12668 if { (eval echo configure:12669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12645 rm -rf conftest* 12669 rm -rf conftest*
12646 eval "ac_cv_func_$ac_func=yes" 12670 eval "ac_cv_func_$ac_func=yes"
12647 else 12671 else
12648 echo "configure: failed program was:" >&5 12672 echo "configure: failed program was:" >&5
12649 cat conftest.$ac_ext >&5 12673 cat conftest.$ac_ext >&5
12670 12694
12671 for ac_hdr in strtio.h 12695 for ac_hdr in strtio.h
12672 do 12696 do
12673 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 12697 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12674 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 12698 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12675 echo "configure:12676: checking for $ac_hdr" >&5 12699 echo "configure:12700: checking for $ac_hdr" >&5
12676 12700
12677 cat > conftest.$ac_ext <<EOF 12701 cat > conftest.$ac_ext <<EOF
12678 #line 12679 "configure" 12702 #line 12703 "configure"
12679 #include "confdefs.h" 12703 #include "confdefs.h"
12680 #include <$ac_hdr> 12704 #include <$ac_hdr>
12681 EOF 12705 EOF
12682 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12706 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12683 { (eval echo configure:12684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12707 { (eval echo configure:12708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12684 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12708 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12685 if test -z "$ac_err"; then 12709 if test -z "$ac_err"; then
12686 rm -rf conftest* 12710 rm -rf conftest*
12687 eval "ac_cv_header_$ac_safe=yes" 12711 eval "ac_cv_header_$ac_safe=yes"
12688 else 12712 else
12711 fi 12735 fi
12712 12736
12713 for ac_func in getloadavg 12737 for ac_func in getloadavg
12714 do 12738 do
12715 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 12739 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12716 echo "configure:12717: checking for $ac_func" >&5 12740 echo "configure:12741: checking for $ac_func" >&5
12717 12741
12718 cat > conftest.$ac_ext <<EOF 12742 cat > conftest.$ac_ext <<EOF
12719 #line 12720 "configure" 12743 #line 12744 "configure"
12720 #include "confdefs.h" 12744 #include "confdefs.h"
12721 /* System header to define __stub macros and hopefully few prototypes, 12745 /* System header to define __stub macros and hopefully few prototypes,
12722 which can conflict with char $ac_func(); below. */ 12746 which can conflict with char $ac_func(); below. */
12723 #include <assert.h> 12747 #include <assert.h>
12724 /* Override any gcc2 internal prototype to avoid an error. */ 12748 /* Override any gcc2 internal prototype to avoid an error. */
12737 $ac_func(); 12761 $ac_func();
12738 #endif 12762 #endif
12739 12763
12740 ; return 0; } 12764 ; return 0; }
12741 EOF 12765 EOF
12742 if { (eval echo configure:12743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12766 if { (eval echo configure:12767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12743 rm -rf conftest* 12767 rm -rf conftest*
12744 eval "ac_cv_func_$ac_func=yes" 12768 eval "ac_cv_func_$ac_func=yes"
12745 else 12769 else
12746 echo "configure: failed program was:" >&5 12770 echo "configure: failed program was:" >&5
12747 cat conftest.$ac_ext >&5 12771 cat conftest.$ac_ext >&5
12770 if test "$ac_cv_func_getloadavg" = "yes"; then 12794 if test "$ac_cv_func_getloadavg" = "yes"; then
12771 for ac_hdr in sys/loadavg.h 12795 for ac_hdr in sys/loadavg.h
12772 do 12796 do
12773 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 12797 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12774 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 12798 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12775 echo "configure:12776: checking for $ac_hdr" >&5 12799 echo "configure:12800: checking for $ac_hdr" >&5
12776 12800
12777 cat > conftest.$ac_ext <<EOF 12801 cat > conftest.$ac_ext <<EOF
12778 #line 12779 "configure" 12802 #line 12803 "configure"
12779 #include "confdefs.h" 12803 #include "confdefs.h"
12780 #include <$ac_hdr> 12804 #include <$ac_hdr>
12781 EOF 12805 EOF
12782 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12806 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12783 { (eval echo configure:12784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12807 { (eval echo configure:12808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12784 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12808 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12785 if test -z "$ac_err"; then 12809 if test -z "$ac_err"; then
12786 rm -rf conftest* 12810 rm -rf conftest*
12787 eval "ac_cv_header_$ac_safe=yes" 12811 eval "ac_cv_header_$ac_safe=yes"
12788 else 12812 else
12814 echo " xemacs will be linked with \"getloadavg.o\"" 12838 echo " xemacs will be linked with \"getloadavg.o\""
12815 fi 12839 fi
12816 12840
12817 12841
12818 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 12842 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
12819 echo "configure:12820: checking for kstat_open in -lkstat" >&5 12843 echo "configure:12844: checking for kstat_open in -lkstat" >&5
12820 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` 12844 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
12821 12845
12822 xe_check_libs=" -lkstat " 12846 xe_check_libs=" -lkstat "
12823 cat > conftest.$ac_ext <<EOF 12847 cat > conftest.$ac_ext <<EOF
12824 #line 12825 "configure" 12848 #line 12849 "configure"
12825 #include "confdefs.h" 12849 #include "confdefs.h"
12826 /* Override any gcc2 internal prototype to avoid an error. */ 12850 /* Override any gcc2 internal prototype to avoid an error. */
12827 /* We use char because int might match the return type of a gcc2 12851 /* We use char because int might match the return type of a gcc2
12828 builtin and then its argument prototype would still apply. */ 12852 builtin and then its argument prototype would still apply. */
12829 char kstat_open(); 12853 char kstat_open();
12830 12854
12831 int main() { 12855 int main() {
12832 kstat_open() 12856 kstat_open()
12833 ; return 0; } 12857 ; return 0; }
12834 EOF 12858 EOF
12835 if { (eval echo configure:12836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12859 if { (eval echo configure:12860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12836 rm -rf conftest* 12860 rm -rf conftest*
12837 eval "ac_cv_lib_$ac_lib_var=yes" 12861 eval "ac_cv_lib_$ac_lib_var=yes"
12838 else 12862 else
12839 echo "configure: failed program was:" >&5 12863 echo "configure: failed program was:" >&5
12840 cat conftest.$ac_ext >&5 12864 cat conftest.$ac_ext >&5
12865 12889
12866 for ac_hdr in kstat.h 12890 for ac_hdr in kstat.h
12867 do 12891 do
12868 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 12892 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12869 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 12893 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12870 echo "configure:12871: checking for $ac_hdr" >&5 12894 echo "configure:12895: checking for $ac_hdr" >&5
12871 12895
12872 cat > conftest.$ac_ext <<EOF 12896 cat > conftest.$ac_ext <<EOF
12873 #line 12874 "configure" 12897 #line 12898 "configure"
12874 #include "confdefs.h" 12898 #include "confdefs.h"
12875 #include <$ac_hdr> 12899 #include <$ac_hdr>
12876 EOF 12900 EOF
12877 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12901 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12878 { (eval echo configure:12879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12902 { (eval echo configure:12903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12879 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12903 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12880 if test -z "$ac_err"; then 12904 if test -z "$ac_err"; then
12881 rm -rf conftest* 12905 rm -rf conftest*
12882 eval "ac_cv_header_$ac_safe=yes" 12906 eval "ac_cv_header_$ac_safe=yes"
12883 else 12907 else
12905 done 12929 done
12906 12930
12907 12931
12908 12932
12909 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 12933 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
12910 echo "configure:12911: checking for kvm_read in -lkvm" >&5 12934 echo "configure:12935: checking for kvm_read in -lkvm" >&5
12911 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` 12935 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
12912 12936
12913 xe_check_libs=" -lkvm " 12937 xe_check_libs=" -lkvm "
12914 cat > conftest.$ac_ext <<EOF 12938 cat > conftest.$ac_ext <<EOF
12915 #line 12916 "configure" 12939 #line 12940 "configure"
12916 #include "confdefs.h" 12940 #include "confdefs.h"
12917 /* Override any gcc2 internal prototype to avoid an error. */ 12941 /* Override any gcc2 internal prototype to avoid an error. */
12918 /* We use char because int might match the return type of a gcc2 12942 /* We use char because int might match the return type of a gcc2
12919 builtin and then its argument prototype would still apply. */ 12943 builtin and then its argument prototype would still apply. */
12920 char kvm_read(); 12944 char kvm_read();
12921 12945
12922 int main() { 12946 int main() {
12923 kvm_read() 12947 kvm_read()
12924 ; return 0; } 12948 ; return 0; }
12925 EOF 12949 EOF
12926 if { (eval echo configure:12927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12950 if { (eval echo configure:12951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12927 rm -rf conftest* 12951 rm -rf conftest*
12928 eval "ac_cv_lib_$ac_lib_var=yes" 12952 eval "ac_cv_lib_$ac_lib_var=yes"
12929 else 12953 else
12930 echo "configure: failed program was:" >&5 12954 echo "configure: failed program was:" >&5
12931 cat conftest.$ac_ext >&5 12955 cat conftest.$ac_ext >&5
12955 12979
12956 12980
12957 fi 12981 fi
12958 12982
12959 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 12983 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
12960 echo "configure:12961: checking whether netdb declares h_errno" >&5 12984 echo "configure:12985: checking whether netdb declares h_errno" >&5
12961 cat > conftest.$ac_ext <<EOF 12985 cat > conftest.$ac_ext <<EOF
12962 #line 12963 "configure" 12986 #line 12987 "configure"
12963 #include "confdefs.h" 12987 #include "confdefs.h"
12964 #include <netdb.h> 12988 #include <netdb.h>
12965 int main() { 12989 int main() {
12966 return h_errno; 12990 return h_errno;
12967 ; return 0; } 12991 ; return 0; }
12968 EOF 12992 EOF
12969 if { (eval echo configure:12970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12993 if { (eval echo configure:12994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12970 rm -rf conftest* 12994 rm -rf conftest*
12971 echo "$ac_t""yes" 1>&6 12995 echo "$ac_t""yes" 1>&6
12972 { test "$extra_verbose" = "yes" && cat << \EOF 12996 { test "$extra_verbose" = "yes" && cat << \EOF
12973 Defining HAVE_H_ERRNO 12997 Defining HAVE_H_ERRNO
12974 EOF 12998 EOF
12984 echo "$ac_t""no" 1>&6 13008 echo "$ac_t""no" 1>&6
12985 fi 13009 fi
12986 rm -f conftest* 13010 rm -f conftest*
12987 13011
12988 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 13012 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
12989 echo "configure:12990: checking for sigsetjmp" >&5 13013 echo "configure:13014: checking for sigsetjmp" >&5
12990 cat > conftest.$ac_ext <<EOF 13014 cat > conftest.$ac_ext <<EOF
12991 #line 12992 "configure" 13015 #line 13016 "configure"
12992 #include "confdefs.h" 13016 #include "confdefs.h"
12993 #include <setjmp.h> 13017 #include <setjmp.h>
12994 int main() { 13018 int main() {
12995 sigjmp_buf bar; sigsetjmp (bar, 0); 13019 sigjmp_buf bar; sigsetjmp (bar, 0);
12996 ; return 0; } 13020 ; return 0; }
12997 EOF 13021 EOF
12998 if { (eval echo configure:12999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 13022 if { (eval echo configure:13023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12999 rm -rf conftest* 13023 rm -rf conftest*
13000 echo "$ac_t""yes" 1>&6 13024 echo "$ac_t""yes" 1>&6
13001 { test "$extra_verbose" = "yes" && cat << \EOF 13025 { test "$extra_verbose" = "yes" && cat << \EOF
13002 Defining HAVE_SIGSETJMP 13026 Defining HAVE_SIGSETJMP
13003 EOF 13027 EOF
13013 echo "$ac_t""no" 1>&6 13037 echo "$ac_t""no" 1>&6
13014 fi 13038 fi
13015 rm -f conftest* 13039 rm -f conftest*
13016 13040
13017 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 13041 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
13018 echo "configure:13019: checking whether localtime caches TZ" >&5 13042 echo "configure:13043: checking whether localtime caches TZ" >&5
13019 13043
13020 if test "$ac_cv_func_tzset" = "yes"; then 13044 if test "$ac_cv_func_tzset" = "yes"; then
13021 cat > conftest.$ac_ext <<EOF 13045 cat > conftest.$ac_ext <<EOF
13022 #line 13023 "configure" 13046 #line 13047 "configure"
13023 #include "confdefs.h" 13047 #include "confdefs.h"
13024 #include <time.h> 13048 #include <time.h>
13025 #if STDC_HEADERS 13049 #if STDC_HEADERS
13026 # include <stdlib.h> 13050 # include <stdlib.h>
13027 #endif 13051 #endif
13052 if (localtime (&now)->tm_hour != hour_unset) 13076 if (localtime (&now)->tm_hour != hour_unset)
13053 exit (1); 13077 exit (1);
13054 exit (0); 13078 exit (0);
13055 } 13079 }
13056 EOF 13080 EOF
13057 if { (eval echo configure:13058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 13081 if { (eval echo configure:13082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
13058 then 13082 then
13059 emacs_cv_localtime_cache=no 13083 emacs_cv_localtime_cache=no
13060 else 13084 else
13061 conftest_rc="$?" 13085 conftest_rc="$?"
13062 echo "configure: failed program was:" >&5 13086 echo "configure: failed program was:" >&5
13082 13106
13083 fi 13107 fi
13084 13108
13085 if test "$HAVE_TIMEVAL" = "yes"; then 13109 if test "$HAVE_TIMEVAL" = "yes"; then
13086 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6 13110 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
13087 echo "configure:13088: checking whether gettimeofday accepts one or two arguments" >&5 13111 echo "configure:13112: checking whether gettimeofday accepts one or two arguments" >&5
13088 cat > conftest.$ac_ext <<EOF 13112 cat > conftest.$ac_ext <<EOF
13089 #line 13090 "configure" 13113 #line 13114 "configure"
13090 #include "confdefs.h" 13114 #include "confdefs.h"
13091 13115
13092 #ifdef TIME_WITH_SYS_TIME 13116 #ifdef TIME_WITH_SYS_TIME
13093 #include <sys/time.h> 13117 #include <sys/time.h>
13094 #include <time.h> 13118 #include <time.h>
13105 struct timeval time; 13129 struct timeval time;
13106 gettimeofday (&time, 0); 13130 gettimeofday (&time, 0);
13107 13131
13108 ; return 0; } 13132 ; return 0; }
13109 EOF 13133 EOF
13110 if { (eval echo configure:13111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13134 if { (eval echo configure:13135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13111 rm -rf conftest* 13135 rm -rf conftest*
13112 echo "$ac_t""two" 1>&6 13136 echo "$ac_t""two" 1>&6
13113 else 13137 else
13114 echo "configure: failed program was:" >&5 13138 echo "configure: failed program was:" >&5
13115 cat conftest.$ac_ext >&5 13139 cat conftest.$ac_ext >&5
13127 rm -f conftest* 13151 rm -f conftest*
13128 fi 13152 fi
13129 13153
13130 13154
13131 echo $ac_n "checking for inline""... $ac_c" 1>&6 13155 echo $ac_n "checking for inline""... $ac_c" 1>&6
13132 echo "configure:13133: checking for inline" >&5 13156 echo "configure:13157: checking for inline" >&5
13133 13157
13134 ac_cv_c_inline=no 13158 ac_cv_c_inline=no
13135 for ac_kw in inline __inline__ __inline; do 13159 for ac_kw in inline __inline__ __inline; do
13136 cat > conftest.$ac_ext <<EOF 13160 cat > conftest.$ac_ext <<EOF
13137 #line 13138 "configure" 13161 #line 13162 "configure"
13138 #include "confdefs.h" 13162 #include "confdefs.h"
13139 13163
13140 int main() { 13164 int main() {
13141 } $ac_kw foo() { 13165 } $ac_kw foo() {
13142 ; return 0; } 13166 ; return 0; }
13143 EOF 13167 EOF
13144 if { (eval echo configure:13145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 13168 if { (eval echo configure:13169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13145 rm -rf conftest* 13169 rm -rf conftest*
13146 ac_cv_c_inline=$ac_kw; break 13170 ac_cv_c_inline=$ac_kw; break
13147 else 13171 else
13148 echo "configure: failed program was:" >&5 13172 echo "configure: failed program was:" >&5
13149 cat conftest.$ac_ext >&5 13173 cat conftest.$ac_ext >&5
13176 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then 13200 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
13177 echo " xemacs will be linked with \"inline.o\"" 13201 echo " xemacs will be linked with \"inline.o\""
13178 fi 13202 fi
13179 13203
13180 echo $ac_n "checking for typeof""... $ac_c" 1>&6 13204 echo $ac_n "checking for typeof""... $ac_c" 1>&6
13181 echo "configure:13182: checking for typeof" >&5 13205 echo "configure:13206: checking for typeof" >&5
13182 cat > conftest.$ac_ext <<EOF 13206 cat > conftest.$ac_ext <<EOF
13183 #line 13184 "configure" 13207 #line 13208 "configure"
13184 #include "confdefs.h" 13208 #include "confdefs.h"
13185 13209
13186 int main() { 13210 int main() {
13187 int i; __typeof__(i) j; 13211 int i; __typeof__(i) j;
13188 ; return 0; } 13212 ; return 0; }
13189 EOF 13213 EOF
13190 if { (eval echo configure:13191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 13214 if { (eval echo configure:13215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13191 rm -rf conftest* 13215 rm -rf conftest*
13192 typeofname="__typeof__" 13216 typeofname="__typeof__"
13193 else 13217 else
13194 echo "configure: failed program was:" >&5 13218 echo "configure: failed program was:" >&5
13195 cat conftest.$ac_ext >&5 13219 cat conftest.$ac_ext >&5
13196 rm -rf conftest* 13220 rm -rf conftest*
13197 cat > conftest.$ac_ext <<EOF 13221 cat > conftest.$ac_ext <<EOF
13198 #line 13199 "configure" 13222 #line 13223 "configure"
13199 #include "confdefs.h" 13223 #include "confdefs.h"
13200 13224
13201 int main() { 13225 int main() {
13202 int i; typeof(i) j; 13226 int i; typeof(i) j;
13203 ; return 0; } 13227 ; return 0; }
13204 EOF 13228 EOF
13205 if { (eval echo configure:13206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 13229 if { (eval echo configure:13230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13206 rm -rf conftest* 13230 rm -rf conftest*
13207 typeofname="typeof" 13231 typeofname="typeof"
13208 else 13232 else
13209 echo "configure: failed program was:" >&5 13233 echo "configure: failed program was:" >&5
13210 cat conftest.$ac_ext >&5 13234 cat conftest.$ac_ext >&5
13229 13253
13230 if test "$__DECC" != "yes"; then 13254 if test "$__DECC" != "yes"; then
13231 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 13255 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13232 # for constant arguments. Useless! 13256 # for constant arguments. Useless!
13233 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 13257 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
13234 echo "configure:13235: checking for working alloca.h" >&5 13258 echo "configure:13259: checking for working alloca.h" >&5
13235 13259
13236 cat > conftest.$ac_ext <<EOF 13260 cat > conftest.$ac_ext <<EOF
13237 #line 13238 "configure" 13261 #line 13262 "configure"
13238 #include "confdefs.h" 13262 #include "confdefs.h"
13239 #include <alloca.h> 13263 #include <alloca.h>
13240 int main() { 13264 int main() {
13241 char *p = alloca(2 * sizeof(int)); 13265 char *p = alloca(2 * sizeof(int));
13242 ; return 0; } 13266 ; return 0; }
13243 EOF 13267 EOF
13244 if { (eval echo configure:13245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13268 if { (eval echo configure:13269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13245 rm -rf conftest* 13269 rm -rf conftest*
13246 ac_cv_header_alloca_h=yes 13270 ac_cv_header_alloca_h=yes
13247 else 13271 else
13248 echo "configure: failed program was:" >&5 13272 echo "configure: failed program was:" >&5
13249 cat conftest.$ac_ext >&5 13273 cat conftest.$ac_ext >&5
13263 } 13287 }
13264 13288
13265 fi 13289 fi
13266 13290
13267 echo $ac_n "checking for alloca""... $ac_c" 1>&6 13291 echo $ac_n "checking for alloca""... $ac_c" 1>&6
13268 echo "configure:13269: checking for alloca" >&5 13292 echo "configure:13293: checking for alloca" >&5
13269 13293
13270 cat > conftest.$ac_ext <<EOF 13294 cat > conftest.$ac_ext <<EOF
13271 #line 13272 "configure" 13295 #line 13296 "configure"
13272 #include "confdefs.h" 13296 #include "confdefs.h"
13273 13297
13274 #ifdef __GNUC__ 13298 #ifdef __GNUC__
13275 # define alloca __builtin_alloca 13299 # define alloca __builtin_alloca
13276 #else 13300 #else
13294 13318
13295 int main() { 13319 int main() {
13296 char *p = (char *) alloca(1); 13320 char *p = (char *) alloca(1);
13297 ; return 0; } 13321 ; return 0; }
13298 EOF 13322 EOF
13299 if { (eval echo configure:13300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13323 if { (eval echo configure:13324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13300 rm -rf conftest* 13324 rm -rf conftest*
13301 ac_cv_func_alloca_works=yes 13325 ac_cv_func_alloca_works=yes
13302 else 13326 else
13303 echo "configure: failed program was:" >&5 13327 echo "configure: failed program was:" >&5
13304 cat conftest.$ac_ext >&5 13328 cat conftest.$ac_ext >&5
13333 EOF 13357 EOF
13334 } 13358 }
13335 13359
13336 13360
13337 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 13361 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
13338 echo "configure:13339: checking whether alloca needs Cray hooks" >&5 13362 echo "configure:13363: checking whether alloca needs Cray hooks" >&5
13339 13363
13340 cat > conftest.$ac_ext <<EOF 13364 cat > conftest.$ac_ext <<EOF
13341 #line 13342 "configure" 13365 #line 13366 "configure"
13342 #include "confdefs.h" 13366 #include "confdefs.h"
13343 #if defined(CRAY) && ! defined(CRAY2) 13367 #if defined(CRAY) && ! defined(CRAY2)
13344 webecray 13368 webecray
13345 #else 13369 #else
13346 wenotbecray 13370 wenotbecray
13360 13384
13361 echo "$ac_t""$ac_cv_os_cray" 1>&6 13385 echo "$ac_t""$ac_cv_os_cray" 1>&6
13362 if test $ac_cv_os_cray = yes; then 13386 if test $ac_cv_os_cray = yes; then
13363 for ac_func in _getb67 GETB67 getb67; do 13387 for ac_func in _getb67 GETB67 getb67; do
13364 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 13388 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13365 echo "configure:13366: checking for $ac_func" >&5 13389 echo "configure:13390: checking for $ac_func" >&5
13366 13390
13367 cat > conftest.$ac_ext <<EOF 13391 cat > conftest.$ac_ext <<EOF
13368 #line 13369 "configure" 13392 #line 13393 "configure"
13369 #include "confdefs.h" 13393 #include "confdefs.h"
13370 /* System header to define __stub macros and hopefully few prototypes, 13394 /* System header to define __stub macros and hopefully few prototypes,
13371 which can conflict with char $ac_func(); below. */ 13395 which can conflict with char $ac_func(); below. */
13372 #include <assert.h> 13396 #include <assert.h>
13373 /* Override any gcc2 internal prototype to avoid an error. */ 13397 /* Override any gcc2 internal prototype to avoid an error. */
13386 $ac_func(); 13410 $ac_func();
13387 #endif 13411 #endif
13388 13412
13389 ; return 0; } 13413 ; return 0; }
13390 EOF 13414 EOF
13391 if { (eval echo configure:13392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13415 if { (eval echo configure:13416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13392 rm -rf conftest* 13416 rm -rf conftest*
13393 eval "ac_cv_func_$ac_func=yes" 13417 eval "ac_cv_func_$ac_func=yes"
13394 else 13418 else
13395 echo "configure: failed program was:" >&5 13419 echo "configure: failed program was:" >&5
13396 cat conftest.$ac_ext >&5 13420 cat conftest.$ac_ext >&5
13416 13440
13417 done 13441 done
13418 fi 13442 fi
13419 13443
13420 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 13444 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
13421 echo "configure:13422: checking stack direction for C alloca" >&5 13445 echo "configure:13446: checking stack direction for C alloca" >&5
13422 13446
13423 cat > conftest.$ac_ext <<EOF 13447 cat > conftest.$ac_ext <<EOF
13424 #line 13425 "configure" 13448 #line 13449 "configure"
13425 #include "confdefs.h" 13449 #include "confdefs.h"
13426 find_stack_direction () 13450 find_stack_direction ()
13427 { 13451 {
13428 static char *addr = 0; 13452 static char *addr = 0;
13429 auto char dummy; 13453 auto char dummy;
13438 main () 13462 main ()
13439 { 13463 {
13440 exit (find_stack_direction() < 0); 13464 exit (find_stack_direction() < 0);
13441 } 13465 }
13442 EOF 13466 EOF
13443 if { (eval echo configure:13444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 13467 if { (eval echo configure:13468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
13444 then 13468 then
13445 ac_cv_c_stack_direction=1 13469 ac_cv_c_stack_direction=1
13446 else 13470 else
13447 conftest_rc="$?" 13471 conftest_rc="$?"
13448 echo "configure: failed program was:" >&5 13472 echo "configure: failed program was:" >&5
13467 echo " xemacs will be linked with \"$ALLOCA\"" 13491 echo " xemacs will be linked with \"$ALLOCA\""
13468 fi 13492 fi
13469 fi 13493 fi
13470 13494
13471 echo $ac_n "checking for working alloca in function calls""... $ac_c" 1>&6 13495 echo $ac_n "checking for working alloca in function calls""... $ac_c" 1>&6
13472 echo "configure:13473: checking for working alloca in function calls" >&5 13496 echo "configure:13497: checking for working alloca in function calls" >&5
13473 cat > conftest.$ac_ext <<EOF 13497 cat > conftest.$ac_ext <<EOF
13474 #line 13475 "configure" 13498 #line 13499 "configure"
13475 #include "confdefs.h" 13499 #include "confdefs.h"
13476 13500
13477 #if defined (__CYGWIN__) 13501 #if defined (__CYGWIN__)
13478 #include <alloca.h> 13502 #include <alloca.h>
13479 #elif defined (__GNUC__) 13503 #elif defined (__GNUC__)
13522 return 1; 13546 return 1;
13523 return 0; 13547 return 0;
13524 } 13548 }
13525 13549
13526 EOF 13550 EOF
13527 if { (eval echo configure:13528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 13551 if { (eval echo configure:13552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
13528 then 13552 then
13529 working_alloca_in_function_calls=yes 13553 working_alloca_in_function_calls=yes
13530 else 13554 else
13531 conftest_rc="$?" 13555 conftest_rc="$?"
13532 echo "configure: failed program was:" >&5 13556 echo "configure: failed program was:" >&5
13545 EOF 13569 EOF
13546 } 13570 }
13547 13571
13548 13572
13549 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 13573 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
13550 echo "configure:13551: checking for working strcoll" >&5 13574 echo "configure:13575: checking for working strcoll" >&5
13551 13575
13552 cat > conftest.$ac_ext <<EOF 13576 cat > conftest.$ac_ext <<EOF
13553 #line 13554 "configure" 13577 #line 13578 "configure"
13554 #include "confdefs.h" 13578 #include "confdefs.h"
13555 #include <string.h> 13579 #include <string.h>
13556 main () 13580 main ()
13557 { 13581 {
13558 exit (strcoll ("abc", "def") >= 0 || 13582 exit (strcoll ("abc", "def") >= 0 ||
13559 strcoll ("ABC", "DEF") >= 0 || 13583 strcoll ("ABC", "DEF") >= 0 ||
13560 strcoll ("123", "456") >= 0); 13584 strcoll ("123", "456") >= 0);
13561 } 13585 }
13562 EOF 13586 EOF
13563 if { (eval echo configure:13564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 13587 if { (eval echo configure:13588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
13564 then 13588 then
13565 ac_cv_func_strcoll_works=yes 13589 ac_cv_func_strcoll_works=yes
13566 else 13590 else
13567 conftest_rc="$?" 13591 conftest_rc="$?"
13568 echo "configure: failed program was:" >&5 13592 echo "configure: failed program was:" >&5
13586 13610
13587 13611
13588 for ac_func in getpgrp 13612 for ac_func in getpgrp
13589 do 13613 do
13590 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 13614 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13591 echo "configure:13592: checking for $ac_func" >&5 13615 echo "configure:13616: checking for $ac_func" >&5
13592 13616
13593 cat > conftest.$ac_ext <<EOF 13617 cat > conftest.$ac_ext <<EOF
13594 #line 13595 "configure" 13618 #line 13619 "configure"
13595 #include "confdefs.h" 13619 #include "confdefs.h"
13596 /* System header to define __stub macros and hopefully few prototypes, 13620 /* System header to define __stub macros and hopefully few prototypes,
13597 which can conflict with char $ac_func(); below. */ 13621 which can conflict with char $ac_func(); below. */
13598 #include <assert.h> 13622 #include <assert.h>
13599 /* Override any gcc2 internal prototype to avoid an error. */ 13623 /* Override any gcc2 internal prototype to avoid an error. */
13612 $ac_func(); 13636 $ac_func();
13613 #endif 13637 #endif
13614 13638
13615 ; return 0; } 13639 ; return 0; }
13616 EOF 13640 EOF
13617 if { (eval echo configure:13618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13641 if { (eval echo configure:13642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13618 rm -rf conftest* 13642 rm -rf conftest*
13619 eval "ac_cv_func_$ac_func=yes" 13643 eval "ac_cv_func_$ac_func=yes"
13620 else 13644 else
13621 echo "configure: failed program was:" >&5 13645 echo "configure: failed program was:" >&5
13622 cat conftest.$ac_ext >&5 13646 cat conftest.$ac_ext >&5
13640 echo "$ac_t""no" 1>&6 13664 echo "$ac_t""no" 1>&6
13641 fi 13665 fi
13642 done 13666 done
13643 13667
13644 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 13668 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
13645 echo "configure:13646: checking whether getpgrp takes no argument" >&5 13669 echo "configure:13670: checking whether getpgrp takes no argument" >&5
13646 13670
13647 cat > conftest.$ac_ext <<EOF 13671 cat > conftest.$ac_ext <<EOF
13648 #line 13649 "configure" 13672 #line 13673 "configure"
13649 #include "confdefs.h" 13673 #include "confdefs.h"
13650 13674
13651 /* 13675 /*
13652 * If this system has a BSD-style getpgrp(), 13676 * If this system has a BSD-style getpgrp(),
13653 * which takes a pid argument, exit unsuccessfully. 13677 * which takes a pid argument, exit unsuccessfully.
13698 exit(s>>8); 13722 exit(s>>8);
13699 } 13723 }
13700 } 13724 }
13701 13725
13702 EOF 13726 EOF
13703 if { (eval echo configure:13704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 13727 if { (eval echo configure:13728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
13704 then 13728 then
13705 ac_cv_func_getpgrp_void=yes 13729 ac_cv_func_getpgrp_void=yes
13706 else 13730 else
13707 conftest_rc="$?" 13731 conftest_rc="$?"
13708 echo "configure: failed program was:" >&5 13732 echo "configure: failed program was:" >&5
13725 13749
13726 fi 13750 fi
13727 13751
13728 13752
13729 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 13753 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
13730 echo "configure:13731: checking for working mmap" >&5 13754 echo "configure:13755: checking for working mmap" >&5
13731 case "$opsys" in ultrix* ) have_mmap=no ;; *) 13755 case "$opsys" in ultrix* ) have_mmap=no ;; *)
13732 cat > conftest.$ac_ext <<EOF 13756 cat > conftest.$ac_ext <<EOF
13733 #line 13734 "configure" 13757 #line 13758 "configure"
13734 #include "confdefs.h" 13758 #include "confdefs.h"
13735 #include <stdio.h> 13759 #include <stdio.h>
13736 #include <unistd.h> 13760 #include <unistd.h>
13737 #include <fcntl.h> 13761 #include <fcntl.h>
13738 #include <sys/mman.h> 13762 #include <sys/mman.h>
13761 return 0; 13785 return 0;
13762 perror ("conftest: mmap failed"); 13786 perror ("conftest: mmap failed");
13763 return 1; 13787 return 1;
13764 } 13788 }
13765 EOF 13789 EOF
13766 if { (eval echo configure:13767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 13790 if { (eval echo configure:13791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
13767 then 13791 then
13768 have_mmap=yes 13792 have_mmap=yes
13769 else 13793 else
13770 conftest_rc="$?" 13794 conftest_rc="$?"
13771 echo "configure: failed program was:" >&5 13795 echo "configure: failed program was:" >&5
13790 esac 13814 esac
13791 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no 13815 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
13792 if test "$rel_alloc $have_mmap" = "default yes"; then 13816 if test "$rel_alloc $have_mmap" = "default yes"; then
13793 if test "$doug_lea_malloc" = "yes"; then 13817 if test "$doug_lea_malloc" = "yes"; then
13794 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6 13818 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
13795 echo "configure:13796: checking for M_MMAP_THRESHOLD" >&5 13819 echo "configure:13820: checking for M_MMAP_THRESHOLD" >&5
13796 cat > conftest.$ac_ext <<EOF 13820 cat > conftest.$ac_ext <<EOF
13797 #line 13798 "configure" 13821 #line 13822 "configure"
13798 #include "confdefs.h" 13822 #include "confdefs.h"
13799 #include <malloc.h> 13823 #include <malloc.h>
13800 int main() { 13824 int main() {
13801 13825
13802 #ifndef M_MMAP_THRESHOLD 13826 #ifndef M_MMAP_THRESHOLD
13804 !@+$%^&*_)(_ - unlikely to compile... 13828 !@+$%^&*_)(_ - unlikely to compile...
13805 #endif 13829 #endif
13806 13830
13807 ; return 0; } 13831 ; return 0; }
13808 EOF 13832 EOF
13809 if { (eval echo configure:13810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 13833 if { (eval echo configure:13834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13810 rm -rf conftest* 13834 rm -rf conftest*
13811 rel_alloc=no; echo "$ac_t""yes" 1>&6; 13835 rel_alloc=no; echo "$ac_t""yes" 1>&6;
13812 else 13836 else
13813 echo "configure: failed program was:" >&5 13837 echo "configure: failed program was:" >&5
13814 cat conftest.$ac_ext >&5 13838 cat conftest.$ac_ext >&5
13829 } 13853 }
13830 13854
13831 13855
13832 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 13856 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
13833 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 13857 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
13834 echo "configure:13835: checking for termios.h" >&5 13858 echo "configure:13859: checking for termios.h" >&5
13835 13859
13836 cat > conftest.$ac_ext <<EOF 13860 cat > conftest.$ac_ext <<EOF
13837 #line 13838 "configure" 13861 #line 13862 "configure"
13838 #include "confdefs.h" 13862 #include "confdefs.h"
13839 #include <termios.h> 13863 #include <termios.h>
13840 EOF 13864 EOF
13841 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13865 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13842 { (eval echo configure:13843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13866 { (eval echo configure:13867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13843 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13867 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13844 if test -z "$ac_err"; then 13868 if test -z "$ac_err"; then
13845 rm -rf conftest* 13869 rm -rf conftest*
13846 eval "ac_cv_header_$ac_safe=yes" 13870 eval "ac_cv_header_$ac_safe=yes"
13847 else 13871 else
13880 13904
13881 else 13905 else
13882 echo "$ac_t""no" 1>&6 13906 echo "$ac_t""no" 1>&6
13883 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 13907 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
13884 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 13908 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
13885 echo "configure:13886: checking for termio.h" >&5 13909 echo "configure:13910: checking for termio.h" >&5
13886 13910
13887 cat > conftest.$ac_ext <<EOF 13911 cat > conftest.$ac_ext <<EOF
13888 #line 13889 "configure" 13912 #line 13913 "configure"
13889 #include "confdefs.h" 13913 #include "confdefs.h"
13890 #include <termio.h> 13914 #include <termio.h>
13891 EOF 13915 EOF
13892 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13916 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13893 { (eval echo configure:13894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13917 { (eval echo configure:13918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13894 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13918 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13895 if test -z "$ac_err"; then 13919 if test -z "$ac_err"; then
13896 rm -rf conftest* 13920 rm -rf conftest*
13897 eval "ac_cv_header_$ac_safe=yes" 13921 eval "ac_cv_header_$ac_safe=yes"
13898 else 13922 else
13920 fi 13944 fi
13921 13945
13922 13946
13923 13947
13924 echo $ac_n "checking for socket""... $ac_c" 1>&6 13948 echo $ac_n "checking for socket""... $ac_c" 1>&6
13925 echo "configure:13926: checking for socket" >&5 13949 echo "configure:13950: checking for socket" >&5
13926 13950
13927 cat > conftest.$ac_ext <<EOF 13951 cat > conftest.$ac_ext <<EOF
13928 #line 13929 "configure" 13952 #line 13953 "configure"
13929 #include "confdefs.h" 13953 #include "confdefs.h"
13930 /* System header to define __stub macros and hopefully few prototypes, 13954 /* System header to define __stub macros and hopefully few prototypes,
13931 which can conflict with char socket(); below. */ 13955 which can conflict with char socket(); below. */
13932 #include <assert.h> 13956 #include <assert.h>
13933 /* Override any gcc2 internal prototype to avoid an error. */ 13957 /* Override any gcc2 internal prototype to avoid an error. */
13946 socket(); 13970 socket();
13947 #endif 13971 #endif
13948 13972
13949 ; return 0; } 13973 ; return 0; }
13950 EOF 13974 EOF
13951 if { (eval echo configure:13952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13975 if { (eval echo configure:13976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13952 rm -rf conftest* 13976 rm -rf conftest*
13953 eval "ac_cv_func_socket=yes" 13977 eval "ac_cv_func_socket=yes"
13954 else 13978 else
13955 echo "configure: failed program was:" >&5 13979 echo "configure: failed program was:" >&5
13956 cat conftest.$ac_ext >&5 13980 cat conftest.$ac_ext >&5
13961 13985
13962 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 13986 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
13963 echo "$ac_t""yes" 1>&6 13987 echo "$ac_t""yes" 1>&6
13964 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 13988 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
13965 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 13989 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
13966 echo "configure:13967: checking for netinet/in.h" >&5 13990 echo "configure:13991: checking for netinet/in.h" >&5
13967 13991
13968 cat > conftest.$ac_ext <<EOF 13992 cat > conftest.$ac_ext <<EOF
13969 #line 13970 "configure" 13993 #line 13994 "configure"
13970 #include "confdefs.h" 13994 #include "confdefs.h"
13971 #include <netinet/in.h> 13995 #include <netinet/in.h>
13972 EOF 13996 EOF
13973 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13997 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13974 { (eval echo configure:13975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13998 { (eval echo configure:13999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13975 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13999 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13976 if test -z "$ac_err"; then 14000 if test -z "$ac_err"; then
13977 rm -rf conftest* 14001 rm -rf conftest*
13978 eval "ac_cv_header_$ac_safe=yes" 14002 eval "ac_cv_header_$ac_safe=yes"
13979 else 14003 else
13986 rm -f conftest* 14010 rm -f conftest*
13987 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 14011 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13988 echo "$ac_t""yes" 1>&6 14012 echo "$ac_t""yes" 1>&6
13989 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 14013 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
13990 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 14014 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
13991 echo "configure:13992: checking for arpa/inet.h" >&5 14015 echo "configure:14016: checking for arpa/inet.h" >&5
13992 14016
13993 cat > conftest.$ac_ext <<EOF 14017 cat > conftest.$ac_ext <<EOF
13994 #line 13995 "configure" 14018 #line 14019 "configure"
13995 #include "confdefs.h" 14019 #include "confdefs.h"
13996 #include <arpa/inet.h> 14020 #include <arpa/inet.h>
13997 EOF 14021 EOF
13998 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14022 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13999 { (eval echo configure:14000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14023 { (eval echo configure:14024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14000 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14024 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14001 if test -z "$ac_err"; then 14025 if test -z "$ac_err"; then
14002 rm -rf conftest* 14026 rm -rf conftest*
14003 eval "ac_cv_header_$ac_safe=yes" 14027 eval "ac_cv_header_$ac_safe=yes"
14004 else 14028 else
14019 #define HAVE_SOCKETS 1 14043 #define HAVE_SOCKETS 1
14020 EOF 14044 EOF
14021 } 14045 }
14022 14046
14023 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 14047 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
14024 echo "configure:14025: checking "for sun_len member in struct sockaddr_un"" >&5 14048 echo "configure:14049: checking "for sun_len member in struct sockaddr_un"" >&5
14025 cat > conftest.$ac_ext <<EOF 14049 cat > conftest.$ac_ext <<EOF
14026 #line 14027 "configure" 14050 #line 14051 "configure"
14027 #include "confdefs.h" 14051 #include "confdefs.h"
14028 14052
14029 #include <sys/types.h> 14053 #include <sys/types.h>
14030 #include <sys/socket.h> 14054 #include <sys/socket.h>
14031 #include <sys/un.h> 14055 #include <sys/un.h>
14032 14056
14033 int main() { 14057 int main() {
14034 static struct sockaddr_un x; x.sun_len = 1; 14058 static struct sockaddr_un x; x.sun_len = 1;
14035 ; return 0; } 14059 ; return 0; }
14036 EOF 14060 EOF
14037 if { (eval echo configure:14038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14061 if { (eval echo configure:14062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14038 rm -rf conftest* 14062 rm -rf conftest*
14039 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 14063 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
14040 Defining HAVE_SOCKADDR_SUN_LEN 14064 Defining HAVE_SOCKADDR_SUN_LEN
14041 EOF 14065 EOF
14042 cat >> confdefs.h <<\EOF 14066 cat >> confdefs.h <<\EOF
14050 rm -rf conftest* 14074 rm -rf conftest*
14051 echo "$ac_t""no" 1>&6 14075 echo "$ac_t""no" 1>&6
14052 fi 14076 fi
14053 rm -f conftest* 14077 rm -f conftest*
14054 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6 14078 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
14055 echo "configure:14056: checking "for ip_mreq struct in netinet/in.h"" >&5 14079 echo "configure:14080: checking "for ip_mreq struct in netinet/in.h"" >&5
14056 cat > conftest.$ac_ext <<EOF 14080 cat > conftest.$ac_ext <<EOF
14057 #line 14058 "configure" 14081 #line 14082 "configure"
14058 #include "confdefs.h" 14082 #include "confdefs.h"
14059 14083
14060 #include <sys/types.h> 14084 #include <sys/types.h>
14061 #include <netinet/in.h> 14085 #include <netinet/in.h>
14062 14086
14063 int main() { 14087 int main() {
14064 static struct ip_mreq x; 14088 static struct ip_mreq x;
14065 ; return 0; } 14089 ; return 0; }
14066 EOF 14090 EOF
14067 if { (eval echo configure:14068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14091 if { (eval echo configure:14092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14068 rm -rf conftest* 14092 rm -rf conftest*
14069 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 14093 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
14070 Defining HAVE_MULTICAST 14094 Defining HAVE_MULTICAST
14071 EOF 14095 EOF
14072 cat >> confdefs.h <<\EOF 14096 cat >> confdefs.h <<\EOF
14093 echo "$ac_t""no" 1>&6 14117 echo "$ac_t""no" 1>&6
14094 fi 14118 fi
14095 14119
14096 14120
14097 echo $ac_n "checking for msgget""... $ac_c" 1>&6 14121 echo $ac_n "checking for msgget""... $ac_c" 1>&6
14098 echo "configure:14099: checking for msgget" >&5 14122 echo "configure:14123: checking for msgget" >&5
14099 14123
14100 cat > conftest.$ac_ext <<EOF 14124 cat > conftest.$ac_ext <<EOF
14101 #line 14102 "configure" 14125 #line 14126 "configure"
14102 #include "confdefs.h" 14126 #include "confdefs.h"
14103 /* System header to define __stub macros and hopefully few prototypes, 14127 /* System header to define __stub macros and hopefully few prototypes,
14104 which can conflict with char msgget(); below. */ 14128 which can conflict with char msgget(); below. */
14105 #include <assert.h> 14129 #include <assert.h>
14106 /* Override any gcc2 internal prototype to avoid an error. */ 14130 /* Override any gcc2 internal prototype to avoid an error. */
14119 msgget(); 14143 msgget();
14120 #endif 14144 #endif
14121 14145
14122 ; return 0; } 14146 ; return 0; }
14123 EOF 14147 EOF
14124 if { (eval echo configure:14125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14148 if { (eval echo configure:14149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14125 rm -rf conftest* 14149 rm -rf conftest*
14126 eval "ac_cv_func_msgget=yes" 14150 eval "ac_cv_func_msgget=yes"
14127 else 14151 else
14128 echo "configure: failed program was:" >&5 14152 echo "configure: failed program was:" >&5
14129 cat conftest.$ac_ext >&5 14153 cat conftest.$ac_ext >&5
14134 14158
14135 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 14159 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
14136 echo "$ac_t""yes" 1>&6 14160 echo "$ac_t""yes" 1>&6
14137 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 14161 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
14138 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 14162 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
14139 echo "configure:14140: checking for sys/ipc.h" >&5 14163 echo "configure:14164: checking for sys/ipc.h" >&5
14140 14164
14141 cat > conftest.$ac_ext <<EOF 14165 cat > conftest.$ac_ext <<EOF
14142 #line 14143 "configure" 14166 #line 14167 "configure"
14143 #include "confdefs.h" 14167 #include "confdefs.h"
14144 #include <sys/ipc.h> 14168 #include <sys/ipc.h>
14145 EOF 14169 EOF
14146 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14170 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14147 { (eval echo configure:14148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14171 { (eval echo configure:14172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14148 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14172 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14149 if test -z "$ac_err"; then 14173 if test -z "$ac_err"; then
14150 rm -rf conftest* 14174 rm -rf conftest*
14151 eval "ac_cv_header_$ac_safe=yes" 14175 eval "ac_cv_header_$ac_safe=yes"
14152 else 14176 else
14159 rm -f conftest* 14183 rm -f conftest*
14160 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 14184 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14161 echo "$ac_t""yes" 1>&6 14185 echo "$ac_t""yes" 1>&6
14162 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 14186 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
14163 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 14187 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
14164 echo "configure:14165: checking for sys/msg.h" >&5 14188 echo "configure:14189: checking for sys/msg.h" >&5
14165 14189
14166 cat > conftest.$ac_ext <<EOF 14190 cat > conftest.$ac_ext <<EOF
14167 #line 14168 "configure" 14191 #line 14192 "configure"
14168 #include "confdefs.h" 14192 #include "confdefs.h"
14169 #include <sys/msg.h> 14193 #include <sys/msg.h>
14170 EOF 14194 EOF
14171 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14195 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14172 { (eval echo configure:14173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14196 { (eval echo configure:14197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14173 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14197 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14174 if test -z "$ac_err"; then 14198 if test -z "$ac_err"; then
14175 rm -rf conftest* 14199 rm -rf conftest*
14176 eval "ac_cv_header_$ac_safe=yes" 14200 eval "ac_cv_header_$ac_safe=yes"
14177 else 14201 else
14205 fi 14229 fi
14206 14230
14207 14231
14208 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 14232 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
14209 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 14233 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
14210 echo "configure:14211: checking for dirent.h" >&5 14234 echo "configure:14235: checking for dirent.h" >&5
14211 14235
14212 cat > conftest.$ac_ext <<EOF 14236 cat > conftest.$ac_ext <<EOF
14213 #line 14214 "configure" 14237 #line 14238 "configure"
14214 #include "confdefs.h" 14238 #include "confdefs.h"
14215 #include <dirent.h> 14239 #include <dirent.h>
14216 EOF 14240 EOF
14217 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14241 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14218 { (eval echo configure:14219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14242 { (eval echo configure:14243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14219 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14243 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14220 if test -z "$ac_err"; then 14244 if test -z "$ac_err"; then
14221 rm -rf conftest* 14245 rm -rf conftest*
14222 eval "ac_cv_header_$ac_safe=yes" 14246 eval "ac_cv_header_$ac_safe=yes"
14223 else 14247 else
14240 14264
14241 else 14265 else
14242 echo "$ac_t""no" 1>&6 14266 echo "$ac_t""no" 1>&6
14243 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 14267 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
14244 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 14268 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
14245 echo "configure:14246: checking for sys/dir.h" >&5 14269 echo "configure:14270: checking for sys/dir.h" >&5
14246 14270
14247 cat > conftest.$ac_ext <<EOF 14271 cat > conftest.$ac_ext <<EOF
14248 #line 14249 "configure" 14272 #line 14273 "configure"
14249 #include "confdefs.h" 14273 #include "confdefs.h"
14250 #include <sys/dir.h> 14274 #include <sys/dir.h>
14251 EOF 14275 EOF
14252 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14276 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14253 { (eval echo configure:14254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14277 { (eval echo configure:14278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14254 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14278 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14255 if test -z "$ac_err"; then 14279 if test -z "$ac_err"; then
14256 rm -rf conftest* 14280 rm -rf conftest*
14257 eval "ac_cv_header_$ac_safe=yes" 14281 eval "ac_cv_header_$ac_safe=yes"
14258 else 14282 else
14281 fi 14305 fi
14282 14306
14283 14307
14284 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 14308 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
14285 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 14309 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
14286 echo "configure:14287: checking for nlist.h" >&5 14310 echo "configure:14311: checking for nlist.h" >&5
14287 14311
14288 cat > conftest.$ac_ext <<EOF 14312 cat > conftest.$ac_ext <<EOF
14289 #line 14290 "configure" 14313 #line 14314 "configure"
14290 #include "confdefs.h" 14314 #include "confdefs.h"
14291 #include <nlist.h> 14315 #include <nlist.h>
14292 EOF 14316 EOF
14293 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14317 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14294 { (eval echo configure:14295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14318 { (eval echo configure:14319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14295 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14319 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14296 if test -z "$ac_err"; then 14320 if test -z "$ac_err"; then
14297 rm -rf conftest* 14321 rm -rf conftest*
14298 eval "ac_cv_header_$ac_safe=yes" 14322 eval "ac_cv_header_$ac_safe=yes"
14299 else 14323 else
14319 fi 14343 fi
14320 14344
14321 14345
14322 14346
14323 echo "checking "for sound support"" 1>&6 14347 echo "checking "for sound support"" 1>&6
14324 echo "configure:14325: checking "for sound support"" >&5 14348 echo "configure:14349: checking "for sound support"" >&5
14325 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 14349 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
14326 14350
14327 if test "$with_native_sound" != "no"; then 14351 if test "$with_native_sound" != "no"; then
14328 if test -n "$native_sound_lib"; then 14352 if test -n "$native_sound_lib"; then
14329 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 14353 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
14330 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 14354 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
14331 echo "configure:14332: checking for multimedia/audio_device.h" >&5 14355 echo "configure:14356: checking for multimedia/audio_device.h" >&5
14332 14356
14333 cat > conftest.$ac_ext <<EOF 14357 cat > conftest.$ac_ext <<EOF
14334 #line 14335 "configure" 14358 #line 14359 "configure"
14335 #include "confdefs.h" 14359 #include "confdefs.h"
14336 #include <multimedia/audio_device.h> 14360 #include <multimedia/audio_device.h>
14337 EOF 14361 EOF
14338 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14362 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14339 { (eval echo configure:14340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14363 { (eval echo configure:14364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14340 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14364 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14341 if test -z "$ac_err"; then 14365 if test -z "$ac_err"; then
14342 rm -rf conftest* 14366 rm -rf conftest*
14343 eval "ac_cv_header_$ac_safe=yes" 14367 eval "ac_cv_header_$ac_safe=yes"
14344 else 14368 else
14390 case "$canonical" in 14414 case "$canonical" in
14391 *-sgi-* ) 14415 *-sgi-* )
14392 if test -z "$native_sound_lib"; then 14416 if test -z "$native_sound_lib"; then
14393 14417
14394 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 14418 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
14395 echo "configure:14396: checking for ALopenport in -laudio" >&5 14419 echo "configure:14420: checking for ALopenport in -laudio" >&5
14396 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 14420 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
14397 14421
14398 xe_check_libs=" -laudio " 14422 xe_check_libs=" -laudio "
14399 cat > conftest.$ac_ext <<EOF 14423 cat > conftest.$ac_ext <<EOF
14400 #line 14401 "configure" 14424 #line 14425 "configure"
14401 #include "confdefs.h" 14425 #include "confdefs.h"
14402 /* Override any gcc2 internal prototype to avoid an error. */ 14426 /* Override any gcc2 internal prototype to avoid an error. */
14403 /* We use char because int might match the return type of a gcc2 14427 /* We use char because int might match the return type of a gcc2
14404 builtin and then its argument prototype would still apply. */ 14428 builtin and then its argument prototype would still apply. */
14405 char ALopenport(); 14429 char ALopenport();
14406 14430
14407 int main() { 14431 int main() {
14408 ALopenport() 14432 ALopenport()
14409 ; return 0; } 14433 ; return 0; }
14410 EOF 14434 EOF
14411 if { (eval echo configure:14412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14435 if { (eval echo configure:14436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14412 rm -rf conftest* 14436 rm -rf conftest*
14413 eval "ac_cv_lib_$ac_lib_var=yes" 14437 eval "ac_cv_lib_$ac_lib_var=yes"
14414 else 14438 else
14415 echo "configure: failed program was:" >&5 14439 echo "configure: failed program was:" >&5
14416 cat conftest.$ac_ext >&5 14440 cat conftest.$ac_ext >&5
14437 fi ;; 14461 fi ;;
14438 hppa*-hp-hpux* ) 14462 hppa*-hp-hpux* )
14439 if test -z "$native_sound_lib"; then 14463 if test -z "$native_sound_lib"; then
14440 14464
14441 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 14465 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
14442 echo "configure:14443: checking for AOpenAudio in -lAlib" >&5 14466 echo "configure:14467: checking for AOpenAudio in -lAlib" >&5
14443 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 14467 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
14444 14468
14445 xe_check_libs=" -lAlib " 14469 xe_check_libs=" -lAlib "
14446 cat > conftest.$ac_ext <<EOF 14470 cat > conftest.$ac_ext <<EOF
14447 #line 14448 "configure" 14471 #line 14472 "configure"
14448 #include "confdefs.h" 14472 #include "confdefs.h"
14449 /* Override any gcc2 internal prototype to avoid an error. */ 14473 /* Override any gcc2 internal prototype to avoid an error. */
14450 /* We use char because int might match the return type of a gcc2 14474 /* We use char because int might match the return type of a gcc2
14451 builtin and then its argument prototype would still apply. */ 14475 builtin and then its argument prototype would still apply. */
14452 char AOpenAudio(); 14476 char AOpenAudio();
14453 14477
14454 int main() { 14478 int main() {
14455 AOpenAudio() 14479 AOpenAudio()
14456 ; return 0; } 14480 ; return 0; }
14457 EOF 14481 EOF
14458 if { (eval echo configure:14459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14482 if { (eval echo configure:14483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14459 rm -rf conftest* 14483 rm -rf conftest*
14460 eval "ac_cv_lib_$ac_lib_var=yes" 14484 eval "ac_cv_lib_$ac_lib_var=yes"
14461 else 14485 else
14462 echo "configure: failed program was:" >&5 14486 echo "configure: failed program was:" >&5
14463 cat conftest.$ac_ext >&5 14487 cat conftest.$ac_ext >&5
14501 14525
14502 if test -z "$sound_found"; then 14526 if test -z "$sound_found"; then
14503 for dir in "machine" "sys" "linux"; do 14527 for dir in "machine" "sys" "linux"; do
14504 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 14528 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
14505 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 14529 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
14506 echo "configure:14507: checking for ${dir}/soundcard.h" >&5 14530 echo "configure:14531: checking for ${dir}/soundcard.h" >&5
14507 14531
14508 cat > conftest.$ac_ext <<EOF 14532 cat > conftest.$ac_ext <<EOF
14509 #line 14510 "configure" 14533 #line 14534 "configure"
14510 #include "confdefs.h" 14534 #include "confdefs.h"
14511 #include <${dir}/soundcard.h> 14535 #include <${dir}/soundcard.h>
14512 EOF 14536 EOF
14513 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14514 { (eval echo configure:14515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14538 { (eval echo configure:14539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14515 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14516 if test -z "$ac_err"; then 14540 if test -z "$ac_err"; then
14517 rm -rf conftest* 14541 rm -rf conftest*
14518 eval "ac_cv_header_$ac_safe=yes" 14542 eval "ac_cv_header_$ac_safe=yes"
14519 else 14543 else
14563 fi 14587 fi
14564 14588
14565 if test "$with_nas_sound" != "no"; then 14589 if test "$with_nas_sound" != "no"; then
14566 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'` 14590 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
14567 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6 14591 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
14568 echo "configure:14569: checking for audio/audiolib.h" >&5 14592 echo "configure:14593: checking for audio/audiolib.h" >&5
14569 14593
14570 cat > conftest.$ac_ext <<EOF 14594 cat > conftest.$ac_ext <<EOF
14571 #line 14572 "configure" 14595 #line 14596 "configure"
14572 #include "confdefs.h" 14596 #include "confdefs.h"
14573 #include <audio/audiolib.h> 14597 #include <audio/audiolib.h>
14574 EOF 14598 EOF
14575 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14599 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14576 { (eval echo configure:14577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14600 { (eval echo configure:14601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14577 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14601 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14578 if test -z "$ac_err"; then 14602 if test -z "$ac_err"; then
14579 rm -rf conftest* 14603 rm -rf conftest*
14580 eval "ac_cv_header_$ac_safe=yes" 14604 eval "ac_cv_header_$ac_safe=yes"
14581 else 14605 else
14589 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 14613 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14590 echo "$ac_t""yes" 1>&6 14614 echo "$ac_t""yes" 1>&6
14591 14615
14592 14616
14593 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6 14617 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
14594 echo "configure:14595: checking for AuOpenServer in -laudio" >&5 14618 echo "configure:14619: checking for AuOpenServer in -laudio" >&5
14595 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'` 14619 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
14596 14620
14597 xe_check_libs=" -laudio " 14621 xe_check_libs=" -laudio "
14598 cat > conftest.$ac_ext <<EOF 14622 cat > conftest.$ac_ext <<EOF
14599 #line 14600 "configure" 14623 #line 14624 "configure"
14600 #include "confdefs.h" 14624 #include "confdefs.h"
14601 /* Override any gcc2 internal prototype to avoid an error. */ 14625 /* Override any gcc2 internal prototype to avoid an error. */
14602 /* We use char because int might match the return type of a gcc2 14626 /* We use char because int might match the return type of a gcc2
14603 builtin and then its argument prototype would still apply. */ 14627 builtin and then its argument prototype would still apply. */
14604 char AuOpenServer(); 14628 char AuOpenServer();
14605 14629
14606 int main() { 14630 int main() {
14607 AuOpenServer() 14631 AuOpenServer()
14608 ; return 0; } 14632 ; return 0; }
14609 EOF 14633 EOF
14610 if { (eval echo configure:14611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14634 if { (eval echo configure:14635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14611 rm -rf conftest* 14635 rm -rf conftest*
14612 eval "ac_cv_lib_$ac_lib_var=yes" 14636 eval "ac_cv_lib_$ac_lib_var=yes"
14613 else 14637 else
14614 echo "configure: failed program was:" >&5 14638 echo "configure: failed program was:" >&5
14615 cat conftest.$ac_ext >&5 14639 cat conftest.$ac_ext >&5
14644 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 14668 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
14645 echo " xemacs will be linked with \"nas.o\"" 14669 echo " xemacs will be linked with \"nas.o\""
14646 fi 14670 fi
14647 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi 14671 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
14648 cat > conftest.$ac_ext <<EOF 14672 cat > conftest.$ac_ext <<EOF
14649 #line 14650 "configure" 14673 #line 14674 "configure"
14650 #include "confdefs.h" 14674 #include "confdefs.h"
14651 #include <audio/Xtutil.h> 14675 #include <audio/Xtutil.h>
14652 EOF 14676 EOF
14653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14654 egrep "AuXtErrorJump" >/dev/null 2>&1; then 14678 egrep "AuXtErrorJump" >/dev/null 2>&1; then
14675 14699
14676 if test "$with_esd_sound" != "no"; then 14700 if test "$with_esd_sound" != "no"; then
14677 # Extract the first word of "esd-config", so it can be a program name with args. 14701 # Extract the first word of "esd-config", so it can be a program name with args.
14678 set dummy esd-config; ac_word=$2 14702 set dummy esd-config; ac_word=$2
14679 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 14703 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14680 echo "configure:14681: checking for $ac_word" >&5 14704 echo "configure:14705: checking for $ac_word" >&5
14681 14705
14682 if test -n "$have_esd_config"; then 14706 if test -n "$have_esd_config"; then
14683 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test. 14707 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
14684 else 14708 else
14685 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 14709 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14704 if test "$have_esd_config" = "yes"; then 14728 if test "$have_esd_config" = "yes"; then
14705 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS" 14729 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
14706 c_switch_site="$c_switch_site `esd-config --cflags`" && if test "$extra_verbose" = "yes"; then echo " Appending \"`esd-config --cflags`\" to \$c_switch_site"; fi 14730 c_switch_site="$c_switch_site `esd-config --cflags`" && if test "$extra_verbose" = "yes"; then echo " Appending \"`esd-config --cflags`\" to \$c_switch_site"; fi
14707 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi 14731 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
14708 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6 14732 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
14709 echo "configure:14710: checking for esd_play_stream" >&5 14733 echo "configure:14734: checking for esd_play_stream" >&5
14710 14734
14711 cat > conftest.$ac_ext <<EOF 14735 cat > conftest.$ac_ext <<EOF
14712 #line 14713 "configure" 14736 #line 14737 "configure"
14713 #include "confdefs.h" 14737 #include "confdefs.h"
14714 /* System header to define __stub macros and hopefully few prototypes, 14738 /* System header to define __stub macros and hopefully few prototypes,
14715 which can conflict with char esd_play_stream(); below. */ 14739 which can conflict with char esd_play_stream(); below. */
14716 #include <assert.h> 14740 #include <assert.h>
14717 /* Override any gcc2 internal prototype to avoid an error. */ 14741 /* Override any gcc2 internal prototype to avoid an error. */
14730 esd_play_stream(); 14754 esd_play_stream();
14731 #endif 14755 #endif
14732 14756
14733 ; return 0; } 14757 ; return 0; }
14734 EOF 14758 EOF
14735 if { (eval echo configure:14736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14759 if { (eval echo configure:14760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14736 rm -rf conftest* 14760 rm -rf conftest*
14737 eval "ac_cv_func_esd_play_stream=yes" 14761 eval "ac_cv_func_esd_play_stream=yes"
14738 else 14762 else
14739 echo "configure: failed program was:" >&5 14763 echo "configure: failed program was:" >&5
14740 cat conftest.$ac_ext >&5 14764 cat conftest.$ac_ext >&5
14781 14805
14782 test -z "$with_tty" && with_tty=yes 14806 test -z "$with_tty" && with_tty=yes
14783 14807
14784 if test "$with_tty" = "yes" ; then 14808 if test "$with_tty" = "yes" ; then
14785 echo "checking for TTY-related features" 1>&6 14809 echo "checking for TTY-related features" 1>&6
14786 echo "configure:14787: checking for TTY-related features" >&5 14810 echo "configure:14811: checking for TTY-related features" >&5
14787 { test "$extra_verbose" = "yes" && cat << \EOF 14811 { test "$extra_verbose" = "yes" && cat << \EOF
14788 Defining HAVE_TTY 14812 Defining HAVE_TTY
14789 EOF 14813 EOF
14790 cat >> confdefs.h <<\EOF 14814 cat >> confdefs.h <<\EOF
14791 #define HAVE_TTY 1 14815 #define HAVE_TTY 1
14794 14818
14795 14819
14796 if test -z "$with_ncurses"; then 14820 if test -z "$with_ncurses"; then
14797 14821
14798 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 14822 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
14799 echo "configure:14800: checking for tgetent in -lncurses" >&5 14823 echo "configure:14824: checking for tgetent in -lncurses" >&5
14800 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 14824 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
14801 14825
14802 xe_check_libs=" -lncurses " 14826 xe_check_libs=" -lncurses "
14803 cat > conftest.$ac_ext <<EOF 14827 cat > conftest.$ac_ext <<EOF
14804 #line 14805 "configure" 14828 #line 14829 "configure"
14805 #include "confdefs.h" 14829 #include "confdefs.h"
14806 /* Override any gcc2 internal prototype to avoid an error. */ 14830 /* Override any gcc2 internal prototype to avoid an error. */
14807 /* We use char because int might match the return type of a gcc2 14831 /* We use char because int might match the return type of a gcc2
14808 builtin and then its argument prototype would still apply. */ 14832 builtin and then its argument prototype would still apply. */
14809 char tgetent(); 14833 char tgetent();
14810 14834
14811 int main() { 14835 int main() {
14812 tgetent() 14836 tgetent()
14813 ; return 0; } 14837 ; return 0; }
14814 EOF 14838 EOF
14815 if { (eval echo configure:14816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14839 if { (eval echo configure:14840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14816 rm -rf conftest* 14840 rm -rf conftest*
14817 eval "ac_cv_lib_$ac_lib_var=yes" 14841 eval "ac_cv_lib_$ac_lib_var=yes"
14818 else 14842 else
14819 echo "configure: failed program was:" >&5 14843 echo "configure: failed program was:" >&5
14820 cat conftest.$ac_ext >&5 14844 cat conftest.$ac_ext >&5
14843 EOF 14867 EOF
14844 } 14868 }
14845 14869
14846 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 14870 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
14847 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 14871 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
14848 echo "configure:14849: checking for ncurses/curses.h" >&5 14872 echo "configure:14873: checking for ncurses/curses.h" >&5
14849 14873
14850 cat > conftest.$ac_ext <<EOF 14874 cat > conftest.$ac_ext <<EOF
14851 #line 14852 "configure" 14875 #line 14876 "configure"
14852 #include "confdefs.h" 14876 #include "confdefs.h"
14853 #include <ncurses/curses.h> 14877 #include <ncurses/curses.h>
14854 EOF 14878 EOF
14855 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14879 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14856 { (eval echo configure:14857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14880 { (eval echo configure:14881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14857 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14881 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14858 if test -z "$ac_err"; then 14882 if test -z "$ac_err"; then
14859 rm -rf conftest* 14883 rm -rf conftest*
14860 eval "ac_cv_header_$ac_safe=yes" 14884 eval "ac_cv_header_$ac_safe=yes"
14861 else 14885 else
14873 echo "$ac_t""no" 1>&6 14897 echo "$ac_t""no" 1>&6
14874 fi 14898 fi
14875 14899
14876 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 14900 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
14877 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 14901 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
14878 echo "configure:14879: checking for ncurses/term.h" >&5 14902 echo "configure:14903: checking for ncurses/term.h" >&5
14879 14903
14880 cat > conftest.$ac_ext <<EOF 14904 cat > conftest.$ac_ext <<EOF
14881 #line 14882 "configure" 14905 #line 14906 "configure"
14882 #include "confdefs.h" 14906 #include "confdefs.h"
14883 #include <ncurses/term.h> 14907 #include <ncurses/term.h>
14884 EOF 14908 EOF
14885 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14909 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14886 { (eval echo configure:14887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14910 { (eval echo configure:14911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14887 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14911 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14888 if test -z "$ac_err"; then 14912 if test -z "$ac_err"; then
14889 rm -rf conftest* 14913 rm -rf conftest*
14890 eval "ac_cv_header_$ac_safe=yes" 14914 eval "ac_cv_header_$ac_safe=yes"
14891 else 14915 else
14911 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 14935 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
14912 save_c_switch_site="$c_switch_site" 14936 save_c_switch_site="$c_switch_site"
14913 c_switch_site="$c_switch_site -I/usr/include/ncurses" 14937 c_switch_site="$c_switch_site -I/usr/include/ncurses"
14914 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 14938 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
14915 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 14939 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
14916 echo "configure:14917: checking for ncurses/curses.h" >&5 14940 echo "configure:14941: checking for ncurses/curses.h" >&5
14917 14941
14918 cat > conftest.$ac_ext <<EOF 14942 cat > conftest.$ac_ext <<EOF
14919 #line 14920 "configure" 14943 #line 14944 "configure"
14920 #include "confdefs.h" 14944 #include "confdefs.h"
14921 #include <ncurses/curses.h> 14945 #include <ncurses/curses.h>
14922 EOF 14946 EOF
14923 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14947 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14924 { (eval echo configure:14925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14948 { (eval echo configure:14949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14925 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14949 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14926 if test -z "$ac_err"; then 14950 if test -z "$ac_err"; then
14927 rm -rf conftest* 14951 rm -rf conftest*
14928 eval "ac_cv_header_$ac_safe=yes" 14952 eval "ac_cv_header_$ac_safe=yes"
14929 else 14953 else
14954 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 14978 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
14955 else 14979 else
14956 for lib in curses termlib termcap; do 14980 for lib in curses termlib termcap; do
14957 14981
14958 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 14982 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
14959 echo "configure:14960: checking for tgetent in -l$lib" >&5 14983 echo "configure:14984: checking for tgetent in -l$lib" >&5
14960 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 14984 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
14961 14985
14962 xe_check_libs=" -l$lib " 14986 xe_check_libs=" -l$lib "
14963 cat > conftest.$ac_ext <<EOF 14987 cat > conftest.$ac_ext <<EOF
14964 #line 14965 "configure" 14988 #line 14989 "configure"
14965 #include "confdefs.h" 14989 #include "confdefs.h"
14966 /* Override any gcc2 internal prototype to avoid an error. */ 14990 /* Override any gcc2 internal prototype to avoid an error. */
14967 /* We use char because int might match the return type of a gcc2 14991 /* We use char because int might match the return type of a gcc2
14968 builtin and then its argument prototype would still apply. */ 14992 builtin and then its argument prototype would still apply. */
14969 char tgetent(); 14993 char tgetent();
14970 14994
14971 int main() { 14995 int main() {
14972 tgetent() 14996 tgetent()
14973 ; return 0; } 14997 ; return 0; }
14974 EOF 14998 EOF
14975 if { (eval echo configure:14976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14999 if { (eval echo configure:15000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14976 rm -rf conftest* 15000 rm -rf conftest*
14977 eval "ac_cv_lib_$ac_lib_var=yes" 15001 eval "ac_cv_lib_$ac_lib_var=yes"
14978 else 15002 else
14979 echo "configure: failed program was:" >&5 15003 echo "configure: failed program was:" >&5
14980 cat conftest.$ac_ext >&5 15004 cat conftest.$ac_ext >&5
15001 if test -n "$libs_termcap"; then 15025 if test -n "$libs_termcap"; then
15002 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 15026 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
15003 else 15027 else
15004 15028
15005 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 15029 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
15006 echo "configure:15007: checking for tgetent in -lcurses" >&5 15030 echo "configure:15031: checking for tgetent in -lcurses" >&5
15007 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 15031 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
15008 15032
15009 xe_check_libs=" -lcurses " 15033 xe_check_libs=" -lcurses "
15010 cat > conftest.$ac_ext <<EOF 15034 cat > conftest.$ac_ext <<EOF
15011 #line 15012 "configure" 15035 #line 15036 "configure"
15012 #include "confdefs.h" 15036 #include "confdefs.h"
15013 /* Override any gcc2 internal prototype to avoid an error. */ 15037 /* Override any gcc2 internal prototype to avoid an error. */
15014 /* We use char because int might match the return type of a gcc2 15038 /* We use char because int might match the return type of a gcc2
15015 builtin and then its argument prototype would still apply. */ 15039 builtin and then its argument prototype would still apply. */
15016 char tgetent(); 15040 char tgetent();
15017 15041
15018 int main() { 15042 int main() {
15019 tgetent() 15043 tgetent()
15020 ; return 0; } 15044 ; return 0; }
15021 EOF 15045 EOF
15022 if { (eval echo configure:15023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15046 if { (eval echo configure:15047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15023 rm -rf conftest* 15047 rm -rf conftest*
15024 eval "ac_cv_lib_$ac_lib_var=yes" 15048 eval "ac_cv_lib_$ac_lib_var=yes"
15025 else 15049 else
15026 echo "configure: failed program was:" >&5 15050 echo "configure: failed program was:" >&5
15027 cat conftest.$ac_ext >&5 15051 cat conftest.$ac_ext >&5
15035 echo "$ac_t""yes" 1>&6 15059 echo "$ac_t""yes" 1>&6
15036 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 15060 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
15037 else 15061 else
15038 echo "$ac_t""no" 1>&6 15062 echo "$ac_t""no" 1>&6
15039 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 15063 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
15040 echo "configure:15041: checking for tgetent in -ltermcap" >&5 15064 echo "configure:15065: checking for tgetent in -ltermcap" >&5
15041 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 15065 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
15042 15066
15043 xe_check_libs=" -ltermcap " 15067 xe_check_libs=" -ltermcap "
15044 cat > conftest.$ac_ext <<EOF 15068 cat > conftest.$ac_ext <<EOF
15045 #line 15046 "configure" 15069 #line 15070 "configure"
15046 #include "confdefs.h" 15070 #include "confdefs.h"
15047 /* Override any gcc2 internal prototype to avoid an error. */ 15071 /* Override any gcc2 internal prototype to avoid an error. */
15048 /* We use char because int might match the return type of a gcc2 15072 /* We use char because int might match the return type of a gcc2
15049 builtin and then its argument prototype would still apply. */ 15073 builtin and then its argument prototype would still apply. */
15050 char tgetent(); 15074 char tgetent();
15051 15075
15052 int main() { 15076 int main() {
15053 tgetent() 15077 tgetent()
15054 ; return 0; } 15078 ; return 0; }
15055 EOF 15079 EOF
15056 if { (eval echo configure:15057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15080 if { (eval echo configure:15081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15057 rm -rf conftest* 15081 rm -rf conftest*
15058 eval "ac_cv_lib_$ac_lib_var=yes" 15082 eval "ac_cv_lib_$ac_lib_var=yes"
15059 else 15083 else
15060 echo "configure: failed program was:" >&5 15084 echo "configure: failed program was:" >&5
15061 cat conftest.$ac_ext >&5 15085 cat conftest.$ac_ext >&5
15097 #define TERM_H_FILE "${term_h_file-term.h}" 15121 #define TERM_H_FILE "${term_h_file-term.h}"
15098 EOF 15122 EOF
15099 } 15123 }
15100 15124
15101 15125
15102 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 15126 if test "$with_gpm" != "no"; then
15127 ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
15103 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 15128 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
15104 echo "configure:15105: checking for gpm.h" >&5 15129 echo "configure:15130: checking for gpm.h" >&5
15105 15130
15106 cat > conftest.$ac_ext <<EOF 15131 cat > conftest.$ac_ext <<EOF
15107 #line 15108 "configure" 15132 #line 15133 "configure"
15108 #include "confdefs.h" 15133 #include "confdefs.h"
15109 #include <gpm.h> 15134 #include <gpm.h>
15110 EOF 15135 EOF
15111 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 15136 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15112 { (eval echo configure:15113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 15137 { (eval echo configure:15138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15113 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 15138 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15114 if test -z "$ac_err"; then 15139 if test -z "$ac_err"; then
15115 rm -rf conftest* 15140 rm -rf conftest*
15116 eval "ac_cv_header_$ac_safe=yes" 15141 eval "ac_cv_header_$ac_safe=yes"
15117 else 15142 else
15122 eval "ac_cv_header_$ac_safe=no" 15147 eval "ac_cv_header_$ac_safe=no"
15123 fi 15148 fi
15124 rm -f conftest* 15149 rm -f conftest*
15125 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 15150 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15126 echo "$ac_t""yes" 1>&6 15151 echo "$ac_t""yes" 1>&6
15127 : 15152
15128 else 15153
15129 echo "$ac_t""no" 1>&6
15130 with_gpm=no
15131 fi
15132 }
15133 test -z "$with_gpm" && {
15134 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 15154 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
15135 echo "configure:15136: checking for Gpm_Open in -lgpm" >&5 15155 echo "configure:15156: checking for Gpm_Open in -lgpm" >&5
15136 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 15156 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
15137 15157
15138 xe_check_libs=" -lgpm " 15158 xe_check_libs=" -lgpm "
15139 cat > conftest.$ac_ext <<EOF 15159 cat > conftest.$ac_ext <<EOF
15140 #line 15141 "configure" 15160 #line 15161 "configure"
15141 #include "confdefs.h" 15161 #include "confdefs.h"
15142 /* Override any gcc2 internal prototype to avoid an error. */ 15162 /* Override any gcc2 internal prototype to avoid an error. */
15143 /* We use char because int might match the return type of a gcc2 15163 /* We use char because int might match the return type of a gcc2
15144 builtin and then its argument prototype would still apply. */ 15164 builtin and then its argument prototype would still apply. */
15145 char Gpm_Open(); 15165 char Gpm_Open();
15146 15166
15147 int main() { 15167 int main() {
15148 Gpm_Open() 15168 Gpm_Open()
15149 ; return 0; } 15169 ; return 0; }
15150 EOF 15170 EOF
15151 if { (eval echo configure:15152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15171 if { (eval echo configure:15172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15152 rm -rf conftest* 15172 rm -rf conftest*
15153 eval "ac_cv_lib_$ac_lib_var=yes" 15173 eval "ac_cv_lib_$ac_lib_var=yes"
15154 else 15174 else
15155 echo "configure: failed program was:" >&5 15175 echo "configure: failed program was:" >&5
15156 cat conftest.$ac_ext >&5 15176 cat conftest.$ac_ext >&5
15160 rm -f conftest* 15180 rm -f conftest*
15161 xe_check_libs="" 15181 xe_check_libs=""
15162 15182
15163 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 15183 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
15164 echo "$ac_t""yes" 1>&6 15184 echo "$ac_t""yes" 1>&6
15165 with_gpm=yes 15185 have_gpm=yes
15166 else 15186 else
15167 echo "$ac_t""no" 1>&6 15187 echo "$ac_t""no" 1>&6
15168 with_gpm=no 15188 fi
15169 fi 15189
15170 15190
15171 } 15191 else
15172 if test "$with_gpm" = "yes"; then 15192 echo "$ac_t""no" 1>&6
15173 { test "$extra_verbose" = "yes" && cat << \EOF 15193 fi
15194
15195 if test "$have_gpm" = "yes"; then
15196 with_gpm=yes
15197 { test "$extra_verbose" = "yes" && cat << \EOF
15174 Defining HAVE_GPM 15198 Defining HAVE_GPM
15175 EOF 15199 EOF
15176 cat >> confdefs.h <<\EOF 15200 cat >> confdefs.h <<\EOF
15177 #define HAVE_GPM 1 15201 #define HAVE_GPM 1
15178 EOF 15202 EOF
15179 } 15203 }
15180 15204
15181 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi 15205 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi
15206 elif test "$with_gpm" = "yes"; then
15207 { echo "Error:" "GPM requested, but gpm.h or libgpm seems to be missing." >&2; exit 1; }
15208 else
15209 with_gpm=no
15210 fi
15182 fi 15211 fi
15183 15212
15184 else for feature in ncurses gpm; do 15213 else for feature in ncurses gpm; do
15185 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then 15214 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
15186 echo "configure: warning: --with-${feature} ignored: Not valid without TTY support" 1>&2 15215 echo "configure: warning: --with-${feature} ignored: Not valid without TTY support" 1>&2
15189 done 15218 done
15190 fi 15219 fi
15191 15220
15192 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \ 15221 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
15193 != "no no no" && echo "checking for database support" 1>&6 15222 != "no no no" && echo "checking for database support" 1>&6
15194 echo "configure:15195: checking for database support" >&5 15223 echo "configure:15224: checking for database support" >&5
15195 15224
15196 if test "$with_database_gdbm $with_database_dbm" != "no no"; then 15225 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
15197 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'` 15226 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
15198 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6 15227 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
15199 echo "configure:15200: checking for ndbm.h" >&5 15228 echo "configure:15229: checking for ndbm.h" >&5
15200 15229
15201 cat > conftest.$ac_ext <<EOF 15230 cat > conftest.$ac_ext <<EOF
15202 #line 15203 "configure" 15231 #line 15232 "configure"
15203 #include "confdefs.h" 15232 #include "confdefs.h"
15204 #include <ndbm.h> 15233 #include <ndbm.h>
15205 EOF 15234 EOF
15206 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 15235 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15207 { (eval echo configure:15208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 15236 { (eval echo configure:15237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15208 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 15237 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15209 if test -z "$ac_err"; then 15238 if test -z "$ac_err"; then
15210 rm -rf conftest* 15239 rm -rf conftest*
15211 eval "ac_cv_header_$ac_safe=yes" 15240 eval "ac_cv_header_$ac_safe=yes"
15212 else 15241 else
15232 fi 15261 fi
15233 15262
15234 if test "$with_database_gdbm" != "no"; then 15263 if test "$with_database_gdbm" != "no"; then
15235 15264
15236 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 15265 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
15237 echo "configure:15238: checking for dbm_open in -lgdbm" >&5 15266 echo "configure:15267: checking for dbm_open in -lgdbm" >&5
15238 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 15267 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
15239 15268
15240 xe_check_libs=" -lgdbm " 15269 xe_check_libs=" -lgdbm "
15241 cat > conftest.$ac_ext <<EOF 15270 cat > conftest.$ac_ext <<EOF
15242 #line 15243 "configure" 15271 #line 15272 "configure"
15243 #include "confdefs.h" 15272 #include "confdefs.h"
15244 /* Override any gcc2 internal prototype to avoid an error. */ 15273 /* Override any gcc2 internal prototype to avoid an error. */
15245 /* We use char because int might match the return type of a gcc2 15274 /* We use char because int might match the return type of a gcc2
15246 builtin and then its argument prototype would still apply. */ 15275 builtin and then its argument prototype would still apply. */
15247 char dbm_open(); 15276 char dbm_open();
15248 15277
15249 int main() { 15278 int main() {
15250 dbm_open() 15279 dbm_open()
15251 ; return 0; } 15280 ; return 0; }
15252 EOF 15281 EOF
15253 if { (eval echo configure:15254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15282 if { (eval echo configure:15283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15254 rm -rf conftest* 15283 rm -rf conftest*
15255 eval "ac_cv_lib_$ac_lib_var=yes" 15284 eval "ac_cv_lib_$ac_lib_var=yes"
15256 else 15285 else
15257 echo "configure: failed program was:" >&5 15286 echo "configure: failed program was:" >&5
15258 cat conftest.$ac_ext >&5 15287 cat conftest.$ac_ext >&5
15276 15305
15277 fi 15306 fi
15278 15307
15279 if test "$with_database_dbm" != "no"; then 15308 if test "$with_database_dbm" != "no"; then
15280 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 15309 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
15281 echo "configure:15282: checking for dbm_open" >&5 15310 echo "configure:15311: checking for dbm_open" >&5
15282 15311
15283 cat > conftest.$ac_ext <<EOF 15312 cat > conftest.$ac_ext <<EOF
15284 #line 15285 "configure" 15313 #line 15314 "configure"
15285 #include "confdefs.h" 15314 #include "confdefs.h"
15286 /* System header to define __stub macros and hopefully few prototypes, 15315 /* System header to define __stub macros and hopefully few prototypes,
15287 which can conflict with char dbm_open(); below. */ 15316 which can conflict with char dbm_open(); below. */
15288 #include <assert.h> 15317 #include <assert.h>
15289 /* Override any gcc2 internal prototype to avoid an error. */ 15318 /* Override any gcc2 internal prototype to avoid an error. */
15302 dbm_open(); 15331 dbm_open();
15303 #endif 15332 #endif
15304 15333
15305 ; return 0; } 15334 ; return 0; }
15306 EOF 15335 EOF
15307 if { (eval echo configure:15308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15336 if { (eval echo configure:15337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15308 rm -rf conftest* 15337 rm -rf conftest*
15309 eval "ac_cv_func_dbm_open=yes" 15338 eval "ac_cv_func_dbm_open=yes"
15310 else 15339 else
15311 echo "configure: failed program was:" >&5 15340 echo "configure: failed program was:" >&5
15312 cat conftest.$ac_ext >&5 15341 cat conftest.$ac_ext >&5
15321 else 15350 else
15322 echo "$ac_t""no" 1>&6 15351 echo "$ac_t""no" 1>&6
15323 15352
15324 15353
15325 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 15354 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
15326 echo "configure:15327: checking for dbm_open in -ldbm" >&5 15355 echo "configure:15356: checking for dbm_open in -ldbm" >&5
15327 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 15356 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
15328 15357
15329 xe_check_libs=" -ldbm " 15358 xe_check_libs=" -ldbm "
15330 cat > conftest.$ac_ext <<EOF 15359 cat > conftest.$ac_ext <<EOF
15331 #line 15332 "configure" 15360 #line 15361 "configure"
15332 #include "confdefs.h" 15361 #include "confdefs.h"
15333 /* Override any gcc2 internal prototype to avoid an error. */ 15362 /* Override any gcc2 internal prototype to avoid an error. */
15334 /* We use char because int might match the return type of a gcc2 15363 /* We use char because int might match the return type of a gcc2
15335 builtin and then its argument prototype would still apply. */ 15364 builtin and then its argument prototype would still apply. */
15336 char dbm_open(); 15365 char dbm_open();
15337 15366
15338 int main() { 15367 int main() {
15339 dbm_open() 15368 dbm_open()
15340 ; return 0; } 15369 ; return 0; }
15341 EOF 15370 EOF
15342 if { (eval echo configure:15343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15371 if { (eval echo configure:15372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15343 rm -rf conftest* 15372 rm -rf conftest*
15344 eval "ac_cv_lib_$ac_lib_var=yes" 15373 eval "ac_cv_lib_$ac_lib_var=yes"
15345 else 15374 else
15346 echo "configure: failed program was:" >&5 15375 echo "configure: failed program was:" >&5
15347 cat conftest.$ac_ext >&5 15376 cat conftest.$ac_ext >&5
15378 } 15407 }
15379 15408
15380 15409
15381 if test "$with_database_berkdb" != "no"; then 15410 if test "$with_database_berkdb" != "no"; then
15382 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6 15411 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
15383 echo "configure:15384: checking for Berkeley db.h" >&5 15412 echo "configure:15413: checking for Berkeley db.h" >&5
15384 for header in "db/db.h" "db.h"; do 15413 for header in "db/db.h" "db.h"; do
15385 cat > conftest.$ac_ext <<EOF 15414 cat > conftest.$ac_ext <<EOF
15386 #line 15387 "configure" 15415 #line 15416 "configure"
15387 #include "confdefs.h" 15416 #include "confdefs.h"
15388 15417
15389 #include <stdlib.h> 15418 #include <stdlib.h>
15390 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1) 15419 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
15391 #ifdef HAVE_INTTYPES_H 15420 #ifdef HAVE_INTTYPES_H
15403 15432
15404 int main() { 15433 int main() {
15405 15434
15406 ; return 0; } 15435 ; return 0; }
15407 EOF 15436 EOF
15408 if { (eval echo configure:15409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 15437 if { (eval echo configure:15438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15409 rm -rf conftest* 15438 rm -rf conftest*
15410 db_h_file="$header"; break 15439 db_h_file="$header"; break
15411 else 15440 else
15412 echo "configure: failed program was:" >&5 15441 echo "configure: failed program was:" >&5
15413 cat conftest.$ac_ext >&5 15442 cat conftest.$ac_ext >&5
15419 else echo "$ac_t""$db_h_file" 1>&6 15448 else echo "$ac_t""$db_h_file" 1>&6
15420 fi 15449 fi
15421 15450
15422 if test "$with_database_berkdb" != "no"; then 15451 if test "$with_database_berkdb" != "no"; then
15423 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6 15452 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
15424 echo "configure:15425: checking for Berkeley DB version" >&5 15453 echo "configure:15454: checking for Berkeley DB version" >&5
15425 cat > conftest.$ac_ext <<EOF 15454 cat > conftest.$ac_ext <<EOF
15426 #line 15427 "configure" 15455 #line 15456 "configure"
15427 #include "confdefs.h" 15456 #include "confdefs.h"
15428 #include <$db_h_file> 15457 #include <$db_h_file>
15429 #if DB_VERSION_MAJOR > 1 15458 #if DB_VERSION_MAJOR > 1
15430 yes 15459 yes
15431 #endif 15460 #endif
15433 EOF 15462 EOF
15434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15435 egrep "yes" >/dev/null 2>&1; then 15464 egrep "yes" >/dev/null 2>&1; then
15436 rm -rf conftest* 15465 rm -rf conftest*
15437 cat > conftest.$ac_ext <<EOF 15466 cat > conftest.$ac_ext <<EOF
15438 #line 15439 "configure" 15467 #line 15468 "configure"
15439 #include "confdefs.h" 15468 #include "confdefs.h"
15440 #include <$db_h_file> 15469 #include <$db_h_file>
15441 #if DB_VERSION_MAJOR > 2 15470 #if DB_VERSION_MAJOR > 2
15442 yes 15471 yes
15443 #endif 15472 #endif
15445 EOF 15474 EOF
15446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15447 egrep "yes" >/dev/null 2>&1; then 15476 egrep "yes" >/dev/null 2>&1; then
15448 rm -rf conftest* 15477 rm -rf conftest*
15449 cat > conftest.$ac_ext <<EOF 15478 cat > conftest.$ac_ext <<EOF
15450 #line 15451 "configure" 15479 #line 15480 "configure"
15451 #include "confdefs.h" 15480 #include "confdefs.h"
15452 #include <$db_h_file> 15481 #include <$db_h_file>
15453 #if DB_VERSION_MAJOR > 3 15482 #if DB_VERSION_MAJOR > 3
15454 yes 15483 yes
15455 #endif 15484 #endif
15479 echo "$ac_t""1" 1>&6; dbfunc=dbopen; dbver=1 15508 echo "$ac_t""1" 1>&6; dbfunc=dbopen; dbver=1
15480 fi 15509 fi
15481 rm -f conftest* 15510 rm -f conftest*
15482 15511
15483 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6 15512 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
15484 echo "configure:15485: checking for $dbfunc" >&5 15513 echo "configure:15514: checking for $dbfunc" >&5
15485 15514
15486 cat > conftest.$ac_ext <<EOF 15515 cat > conftest.$ac_ext <<EOF
15487 #line 15488 "configure" 15516 #line 15517 "configure"
15488 #include "confdefs.h" 15517 #include "confdefs.h"
15489 /* System header to define __stub macros and hopefully few prototypes, 15518 /* System header to define __stub macros and hopefully few prototypes,
15490 which can conflict with char $dbfunc(); below. */ 15519 which can conflict with char $dbfunc(); below. */
15491 #include <assert.h> 15520 #include <assert.h>
15492 /* Override any gcc2 internal prototype to avoid an error. */ 15521 /* Override any gcc2 internal prototype to avoid an error. */
15505 $dbfunc(); 15534 $dbfunc();
15506 #endif 15535 #endif
15507 15536
15508 ; return 0; } 15537 ; return 0; }
15509 EOF 15538 EOF
15510 if { (eval echo configure:15511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15539 if { (eval echo configure:15540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15511 rm -rf conftest* 15540 rm -rf conftest*
15512 eval "ac_cv_func_$dbfunc=yes" 15541 eval "ac_cv_func_$dbfunc=yes"
15513 else 15542 else
15514 echo "configure: failed program was:" >&5 15543 echo "configure: failed program was:" >&5
15515 cat conftest.$ac_ext >&5 15544 cat conftest.$ac_ext >&5
15524 else 15553 else
15525 echo "$ac_t""no" 1>&6 15554 echo "$ac_t""no" 1>&6
15526 15555
15527 15556
15528 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 15557 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
15529 echo "configure:15530: checking for $dbfunc in -ldb" >&5 15558 echo "configure:15559: checking for $dbfunc in -ldb" >&5
15530 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` 15559 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
15531 15560
15532 xe_check_libs=" -ldb " 15561 xe_check_libs=" -ldb "
15533 cat > conftest.$ac_ext <<EOF 15562 cat > conftest.$ac_ext <<EOF
15534 #line 15535 "configure" 15563 #line 15564 "configure"
15535 #include "confdefs.h" 15564 #include "confdefs.h"
15536 /* Override any gcc2 internal prototype to avoid an error. */ 15565 /* Override any gcc2 internal prototype to avoid an error. */
15537 /* We use char because int might match the return type of a gcc2 15566 /* We use char because int might match the return type of a gcc2
15538 builtin and then its argument prototype would still apply. */ 15567 builtin and then its argument prototype would still apply. */
15539 char $dbfunc(); 15568 char $dbfunc();
15540 15569
15541 int main() { 15570 int main() {
15542 $dbfunc() 15571 $dbfunc()
15543 ; return 0; } 15572 ; return 0; }
15544 EOF 15573 EOF
15545 if { (eval echo configure:15546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15574 if { (eval echo configure:15575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15546 rm -rf conftest* 15575 rm -rf conftest*
15547 eval "ac_cv_lib_$ac_lib_var=yes" 15576 eval "ac_cv_lib_$ac_lib_var=yes"
15548 else 15577 else
15549 echo "configure: failed program was:" >&5 15578 echo "configure: failed program was:" >&5
15550 cat conftest.$ac_ext >&5 15579 cat conftest.$ac_ext >&5
15574 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"` 15603 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
15575 rm -f $tempcname 15604 rm -f $tempcname
15576 echo "configure: warning: "db_create is really $dbfunc"" 1>&2 15605 echo "configure: warning: "db_create is really $dbfunc"" 1>&2
15577 15606
15578 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 15607 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
15579 echo "configure:15580: checking for $dbfunc in -ldb" >&5 15608 echo "configure:15609: checking for $dbfunc in -ldb" >&5
15580 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` 15609 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
15581 15610
15582 xe_check_libs=" -ldb " 15611 xe_check_libs=" -ldb "
15583 cat > conftest.$ac_ext <<EOF 15612 cat > conftest.$ac_ext <<EOF
15584 #line 15585 "configure" 15613 #line 15614 "configure"
15585 #include "confdefs.h" 15614 #include "confdefs.h"
15586 /* Override any gcc2 internal prototype to avoid an error. */ 15615 /* Override any gcc2 internal prototype to avoid an error. */
15587 /* We use char because int might match the return type of a gcc2 15616 /* We use char because int might match the return type of a gcc2
15588 builtin and then its argument prototype would still apply. */ 15617 builtin and then its argument prototype would still apply. */
15589 char $dbfunc(); 15618 char $dbfunc();
15590 15619
15591 int main() { 15620 int main() {
15592 $dbfunc() 15621 $dbfunc()
15593 ; return 0; } 15622 ; return 0; }
15594 EOF 15623 EOF
15595 if { (eval echo configure:15596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15624 if { (eval echo configure:15625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15596 rm -rf conftest* 15625 rm -rf conftest*
15597 eval "ac_cv_lib_$ac_lib_var=yes" 15626 eval "ac_cv_lib_$ac_lib_var=yes"
15598 else 15627 else
15599 echo "configure: failed program was:" >&5 15628 echo "configure: failed program was:" >&5
15600 cat conftest.$ac_ext >&5 15629 cat conftest.$ac_ext >&5
15649 fi 15678 fi
15650 15679
15651 if test "$with_socks" = "yes"; then 15680 if test "$with_socks" = "yes"; then
15652 15681
15653 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 15682 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
15654 echo "configure:15655: checking for SOCKSinit in -lsocks" >&5 15683 echo "configure:15684: checking for SOCKSinit in -lsocks" >&5
15655 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 15684 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
15656 15685
15657 xe_check_libs=" -lsocks " 15686 xe_check_libs=" -lsocks "
15658 cat > conftest.$ac_ext <<EOF 15687 cat > conftest.$ac_ext <<EOF
15659 #line 15660 "configure" 15688 #line 15689 "configure"
15660 #include "confdefs.h" 15689 #include "confdefs.h"
15661 /* Override any gcc2 internal prototype to avoid an error. */ 15690 /* Override any gcc2 internal prototype to avoid an error. */
15662 /* We use char because int might match the return type of a gcc2 15691 /* We use char because int might match the return type of a gcc2
15663 builtin and then its argument prototype would still apply. */ 15692 builtin and then its argument prototype would still apply. */
15664 char SOCKSinit(); 15693 char SOCKSinit();
15665 15694
15666 int main() { 15695 int main() {
15667 SOCKSinit() 15696 SOCKSinit()
15668 ; return 0; } 15697 ; return 0; }
15669 EOF 15698 EOF
15670 if { (eval echo configure:15671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15699 if { (eval echo configure:15700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15671 rm -rf conftest* 15700 rm -rf conftest*
15672 eval "ac_cv_lib_$ac_lib_var=yes" 15701 eval "ac_cv_lib_$ac_lib_var=yes"
15673 else 15702 else
15674 echo "configure: failed program was:" >&5 15703 echo "configure: failed program was:" >&5
15675 cat conftest.$ac_ext >&5 15704 cat conftest.$ac_ext >&5
15721 fi 15750 fi
15722 15751
15723 if test "$use_number_lib" = "gmp"; then 15752 if test "$use_number_lib" = "gmp"; then
15724 ac_safe=`echo "gmp.h" | sed 'y%./+-%__p_%'` 15753 ac_safe=`echo "gmp.h" | sed 'y%./+-%__p_%'`
15725 echo $ac_n "checking for gmp.h""... $ac_c" 1>&6 15754 echo $ac_n "checking for gmp.h""... $ac_c" 1>&6
15726 echo "configure:15727: checking for gmp.h" >&5 15755 echo "configure:15756: checking for gmp.h" >&5
15727 15756
15728 cat > conftest.$ac_ext <<EOF 15757 cat > conftest.$ac_ext <<EOF
15729 #line 15730 "configure" 15758 #line 15759 "configure"
15730 #include "confdefs.h" 15759 #include "confdefs.h"
15731 #include <gmp.h> 15760 #include <gmp.h>
15732 EOF 15761 EOF
15733 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 15762 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15734 { (eval echo configure:15735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 15763 { (eval echo configure:15764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15735 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 15764 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15736 if test -z "$ac_err"; then 15765 if test -z "$ac_err"; then
15737 rm -rf conftest* 15766 rm -rf conftest*
15738 eval "ac_cv_header_$ac_safe=yes" 15767 eval "ac_cv_header_$ac_safe=yes"
15739 else 15768 else
15747 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 15776 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15748 echo "$ac_t""yes" 1>&6 15777 echo "$ac_t""yes" 1>&6
15749 15778
15750 15779
15751 echo $ac_n "checking for __gmpz_init in -lgmp""... $ac_c" 1>&6 15780 echo $ac_n "checking for __gmpz_init in -lgmp""... $ac_c" 1>&6
15752 echo "configure:15753: checking for __gmpz_init in -lgmp" >&5 15781 echo "configure:15782: checking for __gmpz_init in -lgmp" >&5
15753 ac_lib_var=`echo gmp'_'__gmpz_init | sed 'y%./+-%__p_%'` 15782 ac_lib_var=`echo gmp'_'__gmpz_init | sed 'y%./+-%__p_%'`
15754 15783
15755 xe_check_libs=" -lgmp " 15784 xe_check_libs=" -lgmp "
15756 cat > conftest.$ac_ext <<EOF 15785 cat > conftest.$ac_ext <<EOF
15757 #line 15758 "configure" 15786 #line 15787 "configure"
15758 #include "confdefs.h" 15787 #include "confdefs.h"
15759 /* Override any gcc2 internal prototype to avoid an error. */ 15788 /* Override any gcc2 internal prototype to avoid an error. */
15760 /* We use char because int might match the return type of a gcc2 15789 /* We use char because int might match the return type of a gcc2
15761 builtin and then its argument prototype would still apply. */ 15790 builtin and then its argument prototype would still apply. */
15762 char __gmpz_init(); 15791 char __gmpz_init();
15763 15792
15764 int main() { 15793 int main() {
15765 __gmpz_init() 15794 __gmpz_init()
15766 ; return 0; } 15795 ; return 0; }
15767 EOF 15796 EOF
15768 if { (eval echo configure:15769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15797 if { (eval echo configure:15798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15769 rm -rf conftest* 15798 rm -rf conftest*
15770 eval "ac_cv_lib_$ac_lib_var=yes" 15799 eval "ac_cv_lib_$ac_lib_var=yes"
15771 else 15800 else
15772 echo "configure: failed program was:" >&5 15801 echo "configure: failed program was:" >&5
15773 cat conftest.$ac_ext >&5 15802 cat conftest.$ac_ext >&5
15812 fi 15841 fi
15813 elif test "$use_number_lib" = "mp"; then 15842 elif test "$use_number_lib" = "mp"; then
15814 for library in "" "-lcrypto"; do 15843 for library in "" "-lcrypto"; do
15815 ac_safe=`echo "mp.h" | sed 'y%./+-%__p_%'` 15844 ac_safe=`echo "mp.h" | sed 'y%./+-%__p_%'`
15816 echo $ac_n "checking for mp.h""... $ac_c" 1>&6 15845 echo $ac_n "checking for mp.h""... $ac_c" 1>&6
15817 echo "configure:15818: checking for mp.h" >&5 15846 echo "configure:15847: checking for mp.h" >&5
15818 15847
15819 cat > conftest.$ac_ext <<EOF 15848 cat > conftest.$ac_ext <<EOF
15820 #line 15821 "configure" 15849 #line 15850 "configure"
15821 #include "confdefs.h" 15850 #include "confdefs.h"
15822 #include <mp.h> 15851 #include <mp.h>
15823 EOF 15852 EOF
15824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 15853 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15825 { (eval echo configure:15826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 15854 { (eval echo configure:15855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15826 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 15855 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15827 if test -z "$ac_err"; then 15856 if test -z "$ac_err"; then
15828 rm -rf conftest* 15857 rm -rf conftest*
15829 eval "ac_cv_header_$ac_safe=yes" 15858 eval "ac_cv_header_$ac_safe=yes"
15830 else 15859 else
15840 15869
15841 15870
15842 xe_msg_checking="for mp_mfree in -lmp" 15871 xe_msg_checking="for mp_mfree in -lmp"
15843 test -n "$library" && xe_msg_checking="$xe_msg_checking using extra libs $library" 15872 test -n "$library" && xe_msg_checking="$xe_msg_checking using extra libs $library"
15844 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 15873 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
15845 echo "configure:15846: checking "$xe_msg_checking"" >&5 15874 echo "configure:15875: checking "$xe_msg_checking"" >&5
15846 ac_lib_var=`echo mp'_'mp_mfree | sed 'y%./+-%__p_%'` 15875 ac_lib_var=`echo mp'_'mp_mfree | sed 'y%./+-%__p_%'`
15847 15876
15848 xe_check_libs=" -lmp $library" 15877 xe_check_libs=" -lmp $library"
15849 cat > conftest.$ac_ext <<EOF 15878 cat > conftest.$ac_ext <<EOF
15850 #line 15851 "configure" 15879 #line 15880 "configure"
15851 #include "confdefs.h" 15880 #include "confdefs.h"
15852 /* Override any gcc2 internal prototype to avoid an error. */ 15881 /* Override any gcc2 internal prototype to avoid an error. */
15853 /* We use char because int might match the return type of a gcc2 15882 /* We use char because int might match the return type of a gcc2
15854 builtin and then its argument prototype would still apply. */ 15883 builtin and then its argument prototype would still apply. */
15855 char mp_mfree(); 15884 char mp_mfree();
15856 15885
15857 int main() { 15886 int main() {
15858 mp_mfree() 15887 mp_mfree()
15859 ; return 0; } 15888 ; return 0; }
15860 EOF 15889 EOF
15861 if { (eval echo configure:15862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15890 if { (eval echo configure:15891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15862 rm -rf conftest* 15891 rm -rf conftest*
15863 eval "ac_cv_lib_$ac_lib_var=yes" 15892 eval "ac_cv_lib_$ac_lib_var=yes"
15864 else 15893 else
15865 echo "configure: failed program was:" >&5 15894 echo "configure: failed program was:" >&5
15866 cat conftest.$ac_ext >&5 15895 cat conftest.$ac_ext >&5
15877 echo "$ac_t""no" 1>&6 15906 echo "$ac_t""no" 1>&6
15878 15907
15879 xe_msg_checking="for mfree in -lmp" 15908 xe_msg_checking="for mfree in -lmp"
15880 test -n "$library" && xe_msg_checking="$xe_msg_checking using extra libs $library" 15909 test -n "$library" && xe_msg_checking="$xe_msg_checking using extra libs $library"
15881 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 15910 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
15882 echo "configure:15883: checking "$xe_msg_checking"" >&5 15911 echo "configure:15912: checking "$xe_msg_checking"" >&5
15883 ac_lib_var=`echo mp'_'mfree | sed 'y%./+-%__p_%'` 15912 ac_lib_var=`echo mp'_'mfree | sed 'y%./+-%__p_%'`
15884 15913
15885 xe_check_libs=" -lmp $library" 15914 xe_check_libs=" -lmp $library"
15886 cat > conftest.$ac_ext <<EOF 15915 cat > conftest.$ac_ext <<EOF
15887 #line 15888 "configure" 15916 #line 15917 "configure"
15888 #include "confdefs.h" 15917 #include "confdefs.h"
15889 /* Override any gcc2 internal prototype to avoid an error. */ 15918 /* Override any gcc2 internal prototype to avoid an error. */
15890 /* We use char because int might match the return type of a gcc2 15919 /* We use char because int might match the return type of a gcc2
15891 builtin and then its argument prototype would still apply. */ 15920 builtin and then its argument prototype would still apply. */
15892 char mfree(); 15921 char mfree();
15893 15922
15894 int main() { 15923 int main() {
15895 mfree() 15924 mfree()
15896 ; return 0; } 15925 ; return 0; }
15897 EOF 15926 EOF
15898 if { (eval echo configure:15899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15927 if { (eval echo configure:15928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15899 rm -rf conftest* 15928 rm -rf conftest*
15900 eval "ac_cv_lib_$ac_lib_var=yes" 15929 eval "ac_cv_lib_$ac_lib_var=yes"
15901 else 15930 else
15902 echo "configure: failed program was:" >&5 15931 echo "configure: failed program was:" >&5
15903 cat conftest.$ac_ext >&5 15932 cat conftest.$ac_ext >&5
15935 LIBS="$LIBS -lmp" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lmp\" to \$LIBS"; fi 15964 LIBS="$LIBS -lmp" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lmp\" to \$LIBS"; fi
15936 if test "$library" != ""; then 15965 if test "$library" != ""; then
15937 LIBS="$LIBS $library" && if test "$extra_verbose" = "yes"; then echo " Appending \"$library\" to \$LIBS"; fi 15966 LIBS="$LIBS $library" && if test "$extra_verbose" = "yes"; then echo " Appending \"$library\" to \$LIBS"; fi
15938 fi 15967 fi
15939 echo $ac_n "checking for mp_move""... $ac_c" 1>&6 15968 echo $ac_n "checking for mp_move""... $ac_c" 1>&6
15940 echo "configure:15941: checking for mp_move" >&5 15969 echo "configure:15970: checking for mp_move" >&5
15941 15970
15942 cat > conftest.$ac_ext <<EOF 15971 cat > conftest.$ac_ext <<EOF
15943 #line 15944 "configure" 15972 #line 15973 "configure"
15944 #include "confdefs.h" 15973 #include "confdefs.h"
15945 /* System header to define __stub macros and hopefully few prototypes, 15974 /* System header to define __stub macros and hopefully few prototypes,
15946 which can conflict with char mp_move(); below. */ 15975 which can conflict with char mp_move(); below. */
15947 #include <assert.h> 15976 #include <assert.h>
15948 /* Override any gcc2 internal prototype to avoid an error. */ 15977 /* Override any gcc2 internal prototype to avoid an error. */
15961 mp_move(); 15990 mp_move();
15962 #endif 15991 #endif
15963 15992
15964 ; return 0; } 15993 ; return 0; }
15965 EOF 15994 EOF
15966 if { (eval echo configure:15967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15995 if { (eval echo configure:15996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15967 rm -rf conftest* 15996 rm -rf conftest*
15968 eval "ac_cv_func_mp_move=yes" 15997 eval "ac_cv_func_mp_move=yes"
15969 else 15998 else
15970 echo "configure: failed program was:" >&5 15999 echo "configure: failed program was:" >&5
15971 cat conftest.$ac_ext >&5 16000 cat conftest.$ac_ext >&5
15992 LIBS="$LIBS -lmp" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lmp\" to \$LIBS"; fi 16021 LIBS="$LIBS -lmp" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lmp\" to \$LIBS"; fi
15993 if test "$library" != ""; then 16022 if test "$library" != ""; then
15994 LIBS="$LIBS $library" && if test "$extra_verbose" = "yes"; then echo " Appending \"$library\" to \$LIBS"; fi 16023 LIBS="$LIBS $library" && if test "$extra_verbose" = "yes"; then echo " Appending \"$library\" to \$LIBS"; fi
15995 fi 16024 fi
15996 echo $ac_n "checking for move""... $ac_c" 1>&6 16025 echo $ac_n "checking for move""... $ac_c" 1>&6
15997 echo "configure:15998: checking for move" >&5 16026 echo "configure:16027: checking for move" >&5
15998 16027
15999 cat > conftest.$ac_ext <<EOF 16028 cat > conftest.$ac_ext <<EOF
16000 #line 16001 "configure" 16029 #line 16030 "configure"
16001 #include "confdefs.h" 16030 #include "confdefs.h"
16002 /* System header to define __stub macros and hopefully few prototypes, 16031 /* System header to define __stub macros and hopefully few prototypes,
16003 which can conflict with char move(); below. */ 16032 which can conflict with char move(); below. */
16004 #include <assert.h> 16033 #include <assert.h>
16005 /* Override any gcc2 internal prototype to avoid an error. */ 16034 /* Override any gcc2 internal prototype to avoid an error. */
16018 move(); 16047 move();
16019 #endif 16048 #endif
16020 16049
16021 ; return 0; } 16050 ; return 0; }
16022 EOF 16051 EOF
16023 if { (eval echo configure:16024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 16052 if { (eval echo configure:16053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16024 rm -rf conftest* 16053 rm -rf conftest*
16025 eval "ac_cv_func_move=yes" 16054 eval "ac_cv_func_move=yes"
16026 else 16055 else
16027 echo "configure: failed program was:" >&5 16056 echo "configure: failed program was:" >&5
16028 cat conftest.$ac_ext >&5 16057 cat conftest.$ac_ext >&5
16065 } 16094 }
16066 16095
16067 fi 16096 fi
16068 16097
16069 cat > conftest.$ac_ext <<EOF 16098 cat > conftest.$ac_ext <<EOF
16070 #line 16071 "configure" 16099 #line 16100 "configure"
16071 #include "confdefs.h" 16100 #include "confdefs.h"
16072 int main(int c,char *v[]){return 0;} 16101 int main(int c,char *v[]){return 0;}
16073 EOF 16102 EOF
16074 if { (eval echo configure:16075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 16103 if { (eval echo configure:16104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
16075 then 16104 then
16076 : 16105 :
16077 else 16106 else
16078 conftest_rc="$?" 16107 conftest_rc="$?"
16079 echo "configure: failed program was:" >&5 16108 echo "configure: failed program was:" >&5
16884 if test "$use_union_type" = yes ; then 16913 if test "$use_union_type" = yes ; then
16885 echo " Using the union type for Lisp_Objects." 16914 echo " Using the union type for Lisp_Objects."
16886 echo " WARNING: ---------------------------------------------------------" 16915 echo " WARNING: ---------------------------------------------------------"
16887 echo " WARNING: This tends to trigger compiler bugs, especially when" 16916 echo " WARNING: This tends to trigger compiler bugs, especially when"
16888 echo " WARNING: combined with MULE and ERROR_CHECKING. Crashes have" 16917 echo " WARNING: combined with MULE and ERROR_CHECKING. Crashes have"
16889 echo " WARNING: been seen with various versions of GCC, and recently" 16918 echo " WARNING: been seen with various versions of GCC (up to about 2.95),"
16890 echo " WARNING: with Visual C++ as well." 16919 echo " WARNING: and recently with Visual C++ as well (mid-2003)."
16920 echo " WARNING: More recent versions may be safer, or not."
16891 echo " WARNING: ---------------------------------------------------------" 16921 echo " WARNING: ---------------------------------------------------------"
16892 fi 16922 fi
16893 test "$use_union_type" = yes && echo " WARNING: Use of the union type may cause crashes due to compiler bugs."
16894 test "$use_kkcc" = yes && echo " Using the new GC algorithms." 16923 test "$use_kkcc" = yes && echo " Using the new GC algorithms."
16895 test "$pdump" = yes && echo " Using the new portable dumper." 16924 test "$pdump" = yes && echo " Using the new portable dumper."
16896 test "$debug" = yes && echo " Compiling in support for extra debugging code." 16925 test "$debug" = yes && echo " Compiling in support for extra debugging code."
16897 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)." 16926 test "$usage_tracking" = yes && echo " Compiling in support for active usage tracking (Sun internal)."
16898 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" \ 16927 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" \
16899 != "no no no no no no no no no"; then 16928 != "no no no no no no no no no"; then
16929 echo " Compiling in support for runtime error checking."
16900 echo " WARNING: ---------------------------------------------------------" 16930 echo " WARNING: ---------------------------------------------------------"
16901 echo " WARNING: Compiling in support for runtime error checking."
16902 echo " WARNING: XEmacs will run noticeably more slowly as a result." 16931 echo " WARNING: XEmacs will run noticeably more slowly as a result."
16903 echo " WARNING: Error checking is on by default for XEmacs beta releases." 16932 echo " WARNING: Error checking is on by default for XEmacs beta releases."
16904 echo " WARNING: ---------------------------------------------------------" 16933 echo " WARNING: ---------------------------------------------------------"
16905 fi 16934 fi
16906 echo "" 16935 echo ""