| 4700 | | # Check for the readline library |
|---|
| 4701 | | |
|---|
| 4702 | | for ac_header in readline/readline.h |
|---|
| | 4837 | |
|---|
| | 4838 | ####################################################################### |
|---|
| | 4839 | # Checks for header files |
|---|
| | 4840 | |
|---|
| | 4841 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|---|
| | 4842 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
|---|
| | 4843 | if test "${ac_cv_header_stdc+set}" = set; then |
|---|
| | 4844 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| | 4845 | else |
|---|
| | 4846 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 4847 | #line $LINENO "configure" |
|---|
| | 4848 | /* confdefs.h. */ |
|---|
| | 4849 | _ACEOF |
|---|
| | 4850 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 4851 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 4852 | /* end confdefs.h. */ |
|---|
| | 4853 | #include <stdlib.h> |
|---|
| | 4854 | #include <stdarg.h> |
|---|
| | 4855 | #include <string.h> |
|---|
| | 4856 | #include <float.h> |
|---|
| | 4857 | |
|---|
| | 4858 | int |
|---|
| | 4859 | main () |
|---|
| | 4860 | { |
|---|
| | 4861 | |
|---|
| | 4862 | ; |
|---|
| | 4863 | return 0; |
|---|
| | 4864 | } |
|---|
| | 4865 | _ACEOF |
|---|
| | 4866 | rm -f conftest.$ac_objext |
|---|
| | 4867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|---|
| | 4868 | (eval $ac_compile) 2>&5 |
|---|
| | 4869 | ac_status=$? |
|---|
| | 4870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 4871 | (exit $ac_status); } && |
|---|
| | 4872 | { ac_try='test -s conftest.$ac_objext' |
|---|
| | 4873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| | 4874 | (eval $ac_try) 2>&5 |
|---|
| | 4875 | ac_status=$? |
|---|
| | 4876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 4877 | (exit $ac_status); }; }; then |
|---|
| | 4878 | ac_cv_header_stdc=yes |
|---|
| | 4879 | else |
|---|
| | 4880 | echo "$as_me: failed program was:" >&5 |
|---|
| | 4881 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 4882 | |
|---|
| | 4883 | ac_cv_header_stdc=no |
|---|
| | 4884 | fi |
|---|
| | 4885 | rm -f conftest.$ac_objext conftest.$ac_ext |
|---|
| | 4886 | |
|---|
| | 4887 | if test $ac_cv_header_stdc = yes; then |
|---|
| | 4888 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|---|
| | 4889 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 4890 | #line $LINENO "configure" |
|---|
| | 4891 | /* confdefs.h. */ |
|---|
| | 4892 | _ACEOF |
|---|
| | 4893 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 4894 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 4895 | /* end confdefs.h. */ |
|---|
| | 4896 | #include <string.h> |
|---|
| | 4897 | |
|---|
| | 4898 | _ACEOF |
|---|
| | 4899 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|---|
| | 4900 | $EGREP "memchr" >/dev/null 2>&1; then |
|---|
| | 4901 | : |
|---|
| | 4902 | else |
|---|
| | 4903 | ac_cv_header_stdc=no |
|---|
| | 4904 | fi |
|---|
| | 4905 | rm -f conftest* |
|---|
| | 4906 | |
|---|
| | 4907 | fi |
|---|
| | 4908 | |
|---|
| | 4909 | if test $ac_cv_header_stdc = yes; then |
|---|
| | 4910 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|---|
| | 4911 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 4912 | #line $LINENO "configure" |
|---|
| | 4913 | /* confdefs.h. */ |
|---|
| | 4914 | _ACEOF |
|---|
| | 4915 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 4916 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 4917 | /* end confdefs.h. */ |
|---|
| | 4918 | #include <stdlib.h> |
|---|
| | 4919 | |
|---|
| | 4920 | _ACEOF |
|---|
| | 4921 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|---|
| | 4922 | $EGREP "free" >/dev/null 2>&1; then |
|---|
| | 4923 | : |
|---|
| | 4924 | else |
|---|
| | 4925 | ac_cv_header_stdc=no |
|---|
| | 4926 | fi |
|---|
| | 4927 | rm -f conftest* |
|---|
| | 4928 | |
|---|
| | 4929 | fi |
|---|
| | 4930 | |
|---|
| | 4931 | if test $ac_cv_header_stdc = yes; then |
|---|
| | 4932 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|---|
| | 4933 | if test "$cross_compiling" = yes; then |
|---|
| | 4934 | : |
|---|
| | 4935 | else |
|---|
| | 4936 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 4937 | #line $LINENO "configure" |
|---|
| | 4938 | /* confdefs.h. */ |
|---|
| | 4939 | _ACEOF |
|---|
| | 4940 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 4941 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 4942 | /* end confdefs.h. */ |
|---|
| | 4943 | #include <ctype.h> |
|---|
| | 4944 | #if ((' ' & 0x0FF) == 0x020) |
|---|
| | 4945 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|---|
| | 4946 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|---|
| | 4947 | #else |
|---|
| | 4948 | # define ISLOWER(c) \ |
|---|
| | 4949 | (('a' <= (c) && (c) <= 'i') \ |
|---|
| | 4950 | || ('j' <= (c) && (c) <= 'r') \ |
|---|
| | 4951 | || ('s' <= (c) && (c) <= 'z')) |
|---|
| | 4952 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|---|
| | 4953 | #endif |
|---|
| | 4954 | |
|---|
| | 4955 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|---|
| | 4956 | int |
|---|
| | 4957 | main () |
|---|
| | 4958 | { |
|---|
| | 4959 | int i; |
|---|
| | 4960 | for (i = 0; i < 256; i++) |
|---|
| | 4961 | if (XOR (islower (i), ISLOWER (i)) |
|---|
| | 4962 | || toupper (i) != TOUPPER (i)) |
|---|
| | 4963 | exit(2); |
|---|
| | 4964 | exit (0); |
|---|
| | 4965 | } |
|---|
| | 4966 | _ACEOF |
|---|
| | 4967 | rm -f conftest$ac_exeext |
|---|
| | 4968 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|---|
| | 4969 | (eval $ac_link) 2>&5 |
|---|
| | 4970 | ac_status=$? |
|---|
| | 4971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 4972 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|---|
| | 4973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| | 4974 | (eval $ac_try) 2>&5 |
|---|
| | 4975 | ac_status=$? |
|---|
| | 4976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 4977 | (exit $ac_status); }; }; then |
|---|
| | 4978 | : |
|---|
| | 4979 | else |
|---|
| | 4980 | echo "$as_me: program exited with status $ac_status" >&5 |
|---|
| | 4981 | echo "$as_me: failed program was:" >&5 |
|---|
| | 4982 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 4983 | |
|---|
| | 4984 | ( exit $ac_status ) |
|---|
| | 4985 | ac_cv_header_stdc=no |
|---|
| | 4986 | fi |
|---|
| | 4987 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|---|
| | 4988 | fi |
|---|
| | 4989 | fi |
|---|
| | 4990 | fi |
|---|
| | 4991 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|---|
| | 4992 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
|---|
| | 4993 | if test $ac_cv_header_stdc = yes; then |
|---|
| | 4994 | |
|---|
| | 4995 | cat >>confdefs.h <<\_ACEOF |
|---|
| | 4996 | #define STDC_HEADERS 1 |
|---|
| | 4997 | _ACEOF |
|---|
| | 4998 | |
|---|
| | 4999 | fi |
|---|
| | 5000 | |
|---|
| | 5001 | echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
|---|
| | 5002 | echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 |
|---|
| | 5003 | if test "${ac_cv_header_stdbool_h+set}" = set; then |
|---|
| | 5004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| | 5005 | else |
|---|
| | 5006 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 5007 | #line $LINENO "configure" |
|---|
| | 5008 | /* confdefs.h. */ |
|---|
| | 5009 | _ACEOF |
|---|
| | 5010 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 5011 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 5012 | /* end confdefs.h. */ |
|---|
| | 5013 | |
|---|
| | 5014 | #include <stdbool.h> |
|---|
| | 5015 | #ifndef bool |
|---|
| | 5016 | # error bool is not defined |
|---|
| | 5017 | #endif |
|---|
| | 5018 | #ifndef false |
|---|
| | 5019 | # error false is not defined |
|---|
| | 5020 | #endif |
|---|
| | 5021 | #if false |
|---|
| | 5022 | # error false is not 0 |
|---|
| | 5023 | #endif |
|---|
| | 5024 | #ifndef true |
|---|
| | 5025 | # error true is not defined |
|---|
| | 5026 | #endif |
|---|
| | 5027 | #if true != 1 |
|---|
| | 5028 | # error true is not 1 |
|---|
| | 5029 | #endif |
|---|
| | 5030 | #ifndef __bool_true_false_are_defined |
|---|
| | 5031 | # error __bool_true_false_are_defined is not defined |
|---|
| | 5032 | #endif |
|---|
| | 5033 | |
|---|
| | 5034 | struct s { _Bool s: 1; _Bool t; } s; |
|---|
| | 5035 | |
|---|
| | 5036 | char a[true == 1 ? 1 : -1]; |
|---|
| | 5037 | char b[false == 0 ? 1 : -1]; |
|---|
| | 5038 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
|---|
| | 5039 | char d[(bool) -0.5 == true ? 1 : -1]; |
|---|
| | 5040 | bool e = &s; |
|---|
| | 5041 | char f[(_Bool) -0.0 == false ? 1 : -1]; |
|---|
| | 5042 | char g[true]; |
|---|
| | 5043 | char h[sizeof (_Bool)]; |
|---|
| | 5044 | char i[sizeof s.t]; |
|---|
| | 5045 | |
|---|
| | 5046 | int |
|---|
| | 5047 | main () |
|---|
| | 5048 | { |
|---|
| | 5049 | return !a + !b + !c + !d + !e + !f + !g + !h + !i; |
|---|
| | 5050 | ; |
|---|
| | 5051 | return 0; |
|---|
| | 5052 | } |
|---|
| | 5053 | _ACEOF |
|---|
| | 5054 | rm -f conftest.$ac_objext |
|---|
| | 5055 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|---|
| | 5056 | (eval $ac_compile) 2>&5 |
|---|
| | 5057 | ac_status=$? |
|---|
| | 5058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 5059 | (exit $ac_status); } && |
|---|
| | 5060 | { ac_try='test -s conftest.$ac_objext' |
|---|
| | 5061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| | 5062 | (eval $ac_try) 2>&5 |
|---|
| | 5063 | ac_status=$? |
|---|
| | 5064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 5065 | (exit $ac_status); }; }; then |
|---|
| | 5066 | ac_cv_header_stdbool_h=yes |
|---|
| | 5067 | else |
|---|
| | 5068 | echo "$as_me: failed program was:" >&5 |
|---|
| | 5069 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 5070 | |
|---|
| | 5071 | ac_cv_header_stdbool_h=no |
|---|
| | 5072 | fi |
|---|
| | 5073 | rm -f conftest.$ac_objext conftest.$ac_ext |
|---|
| | 5074 | fi |
|---|
| | 5075 | echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
|---|
| | 5076 | echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 |
|---|
| | 5077 | echo "$as_me:$LINENO: checking for _Bool" >&5 |
|---|
| | 5078 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 |
|---|
| | 5079 | if test "${ac_cv_type__Bool+set}" = set; then |
|---|
| | 5080 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| | 5081 | else |
|---|
| | 5082 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 5083 | #line $LINENO "configure" |
|---|
| | 5084 | /* confdefs.h. */ |
|---|
| | 5085 | _ACEOF |
|---|
| | 5086 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 5087 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 5088 | /* end confdefs.h. */ |
|---|
| | 5089 | $ac_includes_default |
|---|
| | 5090 | int |
|---|
| | 5091 | main () |
|---|
| | 5092 | { |
|---|
| | 5093 | if ((_Bool *) 0) |
|---|
| | 5094 | return 0; |
|---|
| | 5095 | if (sizeof (_Bool)) |
|---|
| | 5096 | return 0; |
|---|
| | 5097 | ; |
|---|
| | 5098 | return 0; |
|---|
| | 5099 | } |
|---|
| | 5100 | _ACEOF |
|---|
| | 5101 | rm -f conftest.$ac_objext |
|---|
| | 5102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|---|
| | 5103 | (eval $ac_compile) 2>&5 |
|---|
| | 5104 | ac_status=$? |
|---|
| | 5105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 5106 | (exit $ac_status); } && |
|---|
| | 5107 | { ac_try='test -s conftest.$ac_objext' |
|---|
| | 5108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| | 5109 | (eval $ac_try) 2>&5 |
|---|
| | 5110 | ac_status=$? |
|---|
| | 5111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 5112 | (exit $ac_status); }; }; then |
|---|
| | 5113 | ac_cv_type__Bool=yes |
|---|
| | 5114 | else |
|---|
| | 5115 | echo "$as_me: failed program was:" >&5 |
|---|
| | 5116 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 5117 | |
|---|
| | 5118 | ac_cv_type__Bool=no |
|---|
| | 5119 | fi |
|---|
| | 5120 | rm -f conftest.$ac_objext conftest.$ac_ext |
|---|
| | 5121 | fi |
|---|
| | 5122 | echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
|---|
| | 5123 | echo "${ECHO_T}$ac_cv_type__Bool" >&6 |
|---|
| | 5124 | if test $ac_cv_type__Bool = yes; then |
|---|
| | 5125 | |
|---|
| | 5126 | cat >>confdefs.h <<_ACEOF |
|---|
| | 5127 | #define HAVE__BOOL 1 |
|---|
| | 5128 | _ACEOF |
|---|
| | 5129 | |
|---|
| | 5130 | |
|---|
| | 5131 | fi |
|---|
| | 5132 | |
|---|
| | 5133 | if test $ac_cv_header_stdbool_h = yes; then |
|---|
| | 5134 | |
|---|
| | 5135 | cat >>confdefs.h <<\_ACEOF |
|---|
| | 5136 | #define HAVE_STDBOOL_H 1 |
|---|
| | 5137 | _ACEOF |
|---|
| | 5138 | |
|---|
| | 5139 | fi |
|---|
| | 5140 | |
|---|
| | 5141 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
|---|
| | 5142 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
|---|
| | 5143 | if test "${ac_cv_header_time+set}" = set; then |
|---|
| | 5144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| | 5145 | else |
|---|
| | 5146 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 5147 | #line $LINENO "configure" |
|---|
| | 5148 | /* confdefs.h. */ |
|---|
| | 5149 | _ACEOF |
|---|
| | 5150 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 5151 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 5152 | /* end confdefs.h. */ |
|---|
| | 5153 | #include <sys/types.h> |
|---|
| | 5154 | #include <sys/time.h> |
|---|
| | 5155 | #include <time.h> |
|---|
| | 5156 | |
|---|
| | 5157 | int |
|---|
| | 5158 | main () |
|---|
| | 5159 | { |
|---|
| | 5160 | if ((struct tm *) 0) |
|---|
| | 5161 | return 0; |
|---|
| | 5162 | ; |
|---|
| | 5163 | return 0; |
|---|
| | 5164 | } |
|---|
| | 5165 | _ACEOF |
|---|
| | 5166 | rm -f conftest.$ac_objext |
|---|
| | 5167 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|---|
| | 5168 | (eval $ac_compile) 2>&5 |
|---|
| | 5169 | ac_status=$? |
|---|
| | 5170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 5171 | (exit $ac_status); } && |
|---|
| | 5172 | { ac_try='test -s conftest.$ac_objext' |
|---|
| | 5173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| | 5174 | (eval $ac_try) 2>&5 |
|---|
| | 5175 | ac_status=$? |
|---|
| | 5176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 5177 | (exit $ac_status); }; }; then |
|---|
| | 5178 | ac_cv_header_time=yes |
|---|
| | 5179 | else |
|---|
| | 5180 | echo "$as_me: failed program was:" >&5 |
|---|
| | 5181 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 5182 | |
|---|
| | 5183 | ac_cv_header_time=no |
|---|
| | 5184 | fi |
|---|
| | 5185 | rm -f conftest.$ac_objext conftest.$ac_ext |
|---|
| | 5186 | fi |
|---|
| | 5187 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
|---|
| | 5188 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
|---|
| | 5189 | if test $ac_cv_header_time = yes; then |
|---|
| | 5190 | |
|---|
| | 5191 | cat >>confdefs.h <<\_ACEOF |
|---|
| | 5192 | #define TIME_WITH_SYS_TIME 1 |
|---|
| | 5193 | _ACEOF |
|---|
| | 5194 | |
|---|
| | 5195 | fi |
|---|
| | 5196 | |
|---|
| | 5197 | |
|---|
| | 5198 | |
|---|
| | 5199 | |
|---|
| | 5200 | |
|---|
| | 5201 | |
|---|
| | 5202 | ac_header_dirent=no |
|---|
| | 5203 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
|---|
| | 5204 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
|---|
| | 5205 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
|---|
| | 5206 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
|---|
| | 5207 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|---|
| | 5208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| | 5209 | else |
|---|
| | 5210 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 5211 | #line $LINENO "configure" |
|---|
| | 5212 | /* confdefs.h. */ |
|---|
| | 5213 | _ACEOF |
|---|
| | 5214 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 5215 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 5216 | /* end confdefs.h. */ |
|---|
| | 5217 | #include <sys/types.h> |
|---|
| | 5218 | #include <$ac_hdr> |
|---|
| | 5219 | |
|---|
| | 5220 | int |
|---|
| | 5221 | main () |
|---|
| | 5222 | { |
|---|
| | 5223 | if ((DIR *) 0) |
|---|
| | 5224 | return 0; |
|---|
| | 5225 | ; |
|---|
| | 5226 | return 0; |
|---|
| | 5227 | } |
|---|
| | 5228 | _ACEOF |
|---|
| | 5229 | rm -f conftest.$ac_objext |
|---|
| | 5230 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|---|
| | 5231 | (eval $ac_compile) 2>&5 |
|---|
| | 5232 | ac_status=$? |
|---|
| | 5233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 5234 | (exit $ac_status); } && |
|---|
| | 5235 | { ac_try='test -s conftest.$ac_objext' |
|---|
| | 5236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| | 5237 | (eval $ac_try) 2>&5 |
|---|
| | 5238 | ac_status=$? |
|---|
| | 5239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 5240 | (exit $ac_status); }; }; then |
|---|
| | 5241 | eval "$as_ac_Header=yes" |
|---|
| | 5242 | else |
|---|
| | 5243 | echo "$as_me: failed program was:" >&5 |
|---|
| | 5244 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 5245 | |
|---|
| | 5246 | eval "$as_ac_Header=no" |
|---|
| | 5247 | fi |
|---|
| | 5248 | rm -f conftest.$ac_objext conftest.$ac_ext |
|---|
| | 5249 | fi |
|---|
| | 5250 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|---|
| | 5251 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|---|
| | 5252 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|---|
| | 5253 | cat >>confdefs.h <<_ACEOF |
|---|
| | 5254 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
|---|
| | 5255 | _ACEOF |
|---|
| | 5256 | |
|---|
| | 5257 | ac_header_dirent=$ac_hdr; break |
|---|
| | 5258 | fi |
|---|
| | 5259 | |
|---|
| | 5260 | done |
|---|
| | 5261 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
|---|
| | 5262 | if test $ac_header_dirent = dirent.h; then |
|---|
| | 5263 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
|---|
| | 5264 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
|---|
| | 5265 | if test "${ac_cv_search_opendir+set}" = set; then |
|---|
| | 5266 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| | 5267 | else |
|---|
| | 5268 | ac_func_search_save_LIBS=$LIBS |
|---|
| | 5269 | ac_cv_search_opendir=no |
|---|
| | 5270 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 5271 | #line $LINENO "configure" |
|---|
| | 5272 | /* confdefs.h. */ |
|---|
| | 5273 | _ACEOF |
|---|
| | 5274 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 5275 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 5276 | /* end confdefs.h. */ |
|---|
| | 5277 | |
|---|
| | 5278 | /* Override any gcc2 internal prototype to avoid an error. */ |
|---|
| | 5279 | #ifdef __cplusplus |
|---|
| | 5280 | extern "C" |
|---|
| | 5281 | #endif |
|---|
| | 5282 | /* We use char because int might match the return type of a gcc2 |
|---|
| | 5283 | builtin and then its argument prototype would still apply. */ |
|---|
| | 5284 | char opendir (); |
|---|
| | 5285 | int |
|---|
| | 5286 | main () |
|---|
| | 5287 | { |
|---|
| | 5288 | opendir (); |
|---|
| | 5289 | ; |
|---|
| | 5290 | return 0; |
|---|
| | 5291 | } |
|---|
| | 5292 | _ACEOF |
|---|
| | 5293 | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| | 5294 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|---|
| | 5295 | (eval $ac_link) 2>&5 |
|---|
| | 5296 | ac_status=$? |
|---|
| | 5297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 5298 | (exit $ac_status); } && |
|---|
| | 5299 | { ac_try='test -s conftest$ac_exeext' |
|---|
| | 5300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| | 5301 | (eval $ac_try) 2>&5 |
|---|
| | 5302 | ac_status=$? |
|---|
| | 5303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 5304 | (exit $ac_status); }; }; then |
|---|
| | 5305 | ac_cv_search_opendir="none required" |
|---|
| | 5306 | else |
|---|
| | 5307 | echo "$as_me: failed program was:" >&5 |
|---|
| | 5308 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 5309 | |
|---|
| | 5310 | fi |
|---|
| | 5311 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|---|
| | 5312 | if test "$ac_cv_search_opendir" = no; then |
|---|
| | 5313 | for ac_lib in dir; do |
|---|
| | 5314 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|---|
| | 5315 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 5316 | #line $LINENO "configure" |
|---|
| | 5317 | /* confdefs.h. */ |
|---|
| | 5318 | _ACEOF |
|---|
| | 5319 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 5320 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 5321 | /* end confdefs.h. */ |
|---|
| | 5322 | |
|---|
| | 5323 | /* Override any gcc2 internal prototype to avoid an error. */ |
|---|
| | 5324 | #ifdef __cplusplus |
|---|
| | 5325 | extern "C" |
|---|
| | 5326 | #endif |
|---|
| | 5327 | /* We use char because int might match the return type of a gcc2 |
|---|
| | 5328 | builtin and then its argument prototype would still apply. */ |
|---|
| | 5329 | char opendir (); |
|---|
| | 5330 | int |
|---|
| | 5331 | main () |
|---|
| | 5332 | { |
|---|
| | 5333 | opendir (); |
|---|
| | 5334 | ; |
|---|
| | 5335 | return 0; |
|---|
| | 5336 | } |
|---|
| | 5337 | _ACEOF |
|---|
| | 5338 | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| | 5339 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|---|
| | 5340 | (eval $ac_link) 2>&5 |
|---|
| | 5341 | ac_status=$? |
|---|
| | 5342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 5343 | (exit $ac_status); } && |
|---|
| | 5344 | { ac_try='test -s conftest$ac_exeext' |
|---|
| | 5345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| | 5346 | (eval $ac_try) 2>&5 |
|---|
| | 5347 | ac_status=$? |
|---|
| | 5348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 5349 | (exit $ac_status); }; }; then |
|---|
| | 5350 | ac_cv_search_opendir="-l$ac_lib" |
|---|
| | 5351 | break |
|---|
| | 5352 | else |
|---|
| | 5353 | echo "$as_me: failed program was:" >&5 |
|---|
| | 5354 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 5355 | |
|---|
| | 5356 | fi |
|---|
| | 5357 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|---|
| | 5358 | done |
|---|
| | 5359 | fi |
|---|
| | 5360 | LIBS=$ac_func_search_save_LIBS |
|---|
| | 5361 | fi |
|---|
| | 5362 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
|---|
| | 5363 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
|---|
| | 5364 | if test "$ac_cv_search_opendir" != no; then |
|---|
| | 5365 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
|---|
| | 5366 | |
|---|
| | 5367 | fi |
|---|
| | 5368 | |
|---|
| | 5369 | else |
|---|
| | 5370 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
|---|
| | 5371 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
|---|
| | 5372 | if test "${ac_cv_search_opendir+set}" = set; then |
|---|
| | 5373 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| | 5374 | else |
|---|
| | 5375 | ac_func_search_save_LIBS=$LIBS |
|---|
| | 5376 | ac_cv_search_opendir=no |
|---|
| | 5377 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 5378 | #line $LINENO "configure" |
|---|
| | 5379 | /* confdefs.h. */ |
|---|
| | 5380 | _ACEOF |
|---|
| | 5381 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 5382 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 5383 | /* end confdefs.h. */ |
|---|
| | 5384 | |
|---|
| | 5385 | /* Override any gcc2 internal prototype to avoid an error. */ |
|---|
| | 5386 | #ifdef __cplusplus |
|---|
| | 5387 | extern "C" |
|---|
| | 5388 | #endif |
|---|
| | 5389 | /* We use char because int might match the return type of a gcc2 |
|---|
| | 5390 | builtin and then its argument prototype would still apply. */ |
|---|
| | 5391 | char opendir (); |
|---|
| | 5392 | int |
|---|
| | 5393 | main () |
|---|
| | 5394 | { |
|---|
| | 5395 | opendir (); |
|---|
| | 5396 | ; |
|---|
| | 5397 | return 0; |
|---|
| | 5398 | } |
|---|
| | 5399 | _ACEOF |
|---|
| | 5400 | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| | 5401 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|---|
| | 5402 | (eval $ac_link) 2>&5 |
|---|
| | 5403 | ac_status=$? |
|---|
| | 5404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 5405 | (exit $ac_status); } && |
|---|
| | 5406 | { ac_try='test -s conftest$ac_exeext' |
|---|
| | 5407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| | 5408 | (eval $ac_try) 2>&5 |
|---|
| | 5409 | ac_status=$? |
|---|
| | 5410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 5411 | (exit $ac_status); }; }; then |
|---|
| | 5412 | ac_cv_search_opendir="none required" |
|---|
| | 5413 | else |
|---|
| | 5414 | echo "$as_me: failed program was:" >&5 |
|---|
| | 5415 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 5416 | |
|---|
| | 5417 | fi |
|---|
| | 5418 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|---|
| | 5419 | if test "$ac_cv_search_opendir" = no; then |
|---|
| | 5420 | for ac_lib in x; do |
|---|
| | 5421 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|---|
| | 5422 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 5423 | #line $LINENO "configure" |
|---|
| | 5424 | /* confdefs.h. */ |
|---|
| | 5425 | _ACEOF |
|---|
| | 5426 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 5427 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 5428 | /* end confdefs.h. */ |
|---|
| | 5429 | |
|---|
| | 5430 | /* Override any gcc2 internal prototype to avoid an error. */ |
|---|
| | 5431 | #ifdef __cplusplus |
|---|
| | 5432 | extern "C" |
|---|
| | 5433 | #endif |
|---|
| | 5434 | /* We use char because int might match the return type of a gcc2 |
|---|
| | 5435 | builtin and then its argument prototype would still apply. */ |
|---|
| | 5436 | char opendir (); |
|---|
| | 5437 | int |
|---|
| | 5438 | main () |
|---|
| | 5439 | { |
|---|
| | 5440 | opendir (); |
|---|
| | 5441 | ; |
|---|
| | 5442 | return 0; |
|---|
| | 5443 | } |
|---|
| | 5444 | _ACEOF |
|---|
| | 5445 | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| | 5446 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|---|
| | 5447 | (eval $ac_link) 2>&5 |
|---|
| | 5448 | ac_status=$? |
|---|
| | 5449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 5450 | (exit $ac_status); } && |
|---|
| | 5451 | { ac_try='test -s conftest$ac_exeext' |
|---|
| | 5452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| | 5453 | (eval $ac_try) 2>&5 |
|---|
| | 5454 | ac_status=$? |
|---|
| | 5455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 5456 | (exit $ac_status); }; }; then |
|---|
| | 5457 | ac_cv_search_opendir="-l$ac_lib" |
|---|
| | 5458 | break |
|---|
| | 5459 | else |
|---|
| | 5460 | echo "$as_me: failed program was:" >&5 |
|---|
| | 5461 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 5462 | |
|---|
| | 5463 | fi |
|---|
| | 5464 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|---|
| | 5465 | done |
|---|
| | 5466 | fi |
|---|
| | 5467 | LIBS=$ac_func_search_save_LIBS |
|---|
| | 5468 | fi |
|---|
| | 5469 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
|---|
| | 5470 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
|---|
| | 5471 | if test "$ac_cv_search_opendir" != no; then |
|---|
| | 5472 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
|---|
| | 5473 | |
|---|
| | 5474 | fi |
|---|
| | 5475 | |
|---|
| | 5476 | fi |
|---|
| | 5477 | |
|---|
| | 5478 | |
|---|
| | 5479 | |
|---|
| | 5480 | |
|---|
| | 5481 | |
|---|
| | 5482 | |
|---|
| | 5483 | |
|---|
| | 5484 | |
|---|
| | 5485 | |
|---|
| | 5486 | |
|---|
| | 5487 | |
|---|
| | 5488 | |
|---|
| | 5489 | |
|---|
| | 5490 | |
|---|
| | 5491 | for ac_header in \ |
|---|
| | 5492 | arpa/inet.h \ |
|---|
| | 5493 | fcntl.h \ |
|---|
| | 5494 | limits.h \ |
|---|
| | 5495 | netdb.h \ |
|---|
| | 5496 | netinet/in.h \ |
|---|
| | 5497 | stdlib.h \ |
|---|
| | 5498 | string.h \ |
|---|
| | 5499 | sys/ioctl.h \ |
|---|
| | 5500 | sys/param.h \ |
|---|
| | 5501 | sys/socket.h \ |
|---|
| | 5502 | sys/time.h \ |
|---|
| | 5503 | termios.h \ |
|---|
| | 5504 | unistd.h \ |
|---|
| | 5505 | |
|---|
| 4858 | | main (); |
|---|
| 4859 | | ; |
|---|
| 4860 | | return 0; |
|---|
| 4861 | | } |
|---|
| 4862 | | _ACEOF |
|---|
| 4863 | | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| 4864 | | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|---|
| 4865 | | (eval $ac_link) 2>&5 |
|---|
| 4866 | | ac_status=$? |
|---|
| 4867 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 4868 | | (exit $ac_status); } && |
|---|
| 4869 | | { ac_try='test -s conftest$ac_exeext' |
|---|
| 4870 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 4871 | | (eval $ac_try) 2>&5 |
|---|
| 4872 | | ac_status=$? |
|---|
| 4873 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 4874 | | (exit $ac_status); }; }; then |
|---|
| 4875 | | ac_cv_lib_readline_main=yes |
|---|
| 4876 | | else |
|---|
| 4877 | | echo "$as_me: failed program was:" >&5 |
|---|
| 4878 | | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 4879 | | |
|---|
| 4880 | | ac_cv_lib_readline_main=no |
|---|
| 4881 | | fi |
|---|
| 4882 | | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|---|
| 4883 | | LIBS=$ac_check_lib_save_LIBS |
|---|
| 4884 | | fi |
|---|
| 4885 | | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5 |
|---|
| 4886 | | echo "${ECHO_T}$ac_cv_lib_readline_main" >&6 |
|---|
| 4887 | | if test $ac_cv_lib_readline_main = yes; then |
|---|
| 4888 | | |
|---|
| 4889 | | LIBS="$LIBS -lreadline" |
|---|
| 4890 | | |
|---|
| 4891 | | echo "$as_me:$LINENO: checking for rl_completion_matches" >&5 |
|---|
| 4892 | | echo $ECHO_N "checking for rl_completion_matches... $ECHO_C" >&6 |
|---|
| 4893 | | if test "$cross_compiling" = yes; then |
|---|
| 4894 | | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
|---|
| 4895 | | See \`config.log' for more details." >&5 |
|---|
| 4896 | | echo "$as_me: error: cannot run test program while cross compiling |
|---|
| 4897 | | See \`config.log' for more details." >&2;} |
|---|
| 4898 | | { (exit 1); exit 1; }; } |
|---|
| 4899 | | else |
|---|
| 4900 | | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 4901 | | #line $LINENO "configure" |
|---|
| 4902 | | /* confdefs.h. */ |
|---|
| 4903 | | _ACEOF |
|---|
| 4904 | | cat confdefs.h >>conftest.$ac_ext |
|---|
| 4905 | | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 4906 | | /* end confdefs.h. */ |
|---|
| 4907 | | |
|---|
| 4908 | | #include <stdio.h> |
|---|
| 4909 | | #include <readline/readline.h> |
|---|
| 4910 | | char * generator(const char *text, int state) { |
|---|
| 4911 | | return NULL; |
|---|
| 4912 | | } |
|---|
| 4913 | | int main(void) { |
|---|
| 4914 | | char **matches = rl_completion_matches("", generator); |
|---|
| 4915 | | |
|---|
| 4916 | | return 0; |
|---|
| 4917 | | } |
|---|
| 4918 | | |
|---|
| 4919 | | _ACEOF |
|---|
| 4920 | | rm -f conftest$ac_exeext |
|---|
| 4921 | | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|---|
| 4922 | | (eval $ac_link) 2>&5 |
|---|
| 4923 | | ac_status=$? |
|---|
| 4924 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 4925 | | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|---|
| 4926 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 4927 | | (eval $ac_try) 2>&5 |
|---|
| 4928 | | ac_status=$? |
|---|
| 4929 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 4930 | | (exit $ac_status); }; }; then |
|---|
| 4931 | | |
|---|
| 4932 | | |
|---|
| 4933 | | cat >>confdefs.h <<\_ACEOF |
|---|
| 4934 | | #define HAVE_RL_COMPLETION_MATCHES 1 |
|---|
| 4935 | | _ACEOF |
|---|
| 4936 | | |
|---|
| 4937 | | echo "$as_me:$LINENO: result: yes" >&5 |
|---|
| 4938 | | echo "${ECHO_T}yes" >&6 |
|---|
| 4939 | | |
|---|
| 4940 | | |
|---|
| 4941 | | else |
|---|
| 4942 | | echo "$as_me: program exited with status $ac_status" >&5 |
|---|
| 4943 | | echo "$as_me: failed program was:" >&5 |
|---|
| 4944 | | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 4945 | | |
|---|
| 4946 | | ( exit $ac_status ) |
|---|
| 4947 | | |
|---|
| 4948 | | echo "$as_me:$LINENO: result: no" >&5 |
|---|
| 4949 | | echo "${ECHO_T}no" >&6 |
|---|
| 4950 | | |
|---|
| 4951 | | fi |
|---|
| 4952 | | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|---|
| 4953 | | fi |
|---|
| 4954 | | |
|---|
| 4955 | | else |
|---|
| 4956 | | |
|---|
| 4957 | | |
|---|
| 4958 | | { { echo "$as_me:$LINENO: error: could not locate readline |
|---|
| 4959 | | |
|---|
| 4960 | | If you installed readline into a non-standard directory, please run: |
|---|
| 4961 | | |
|---|
| 4962 | | env CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&5 |
|---|
| 4963 | | echo "$as_me: error: could not locate readline |
|---|
| 4964 | | |
|---|
| 4965 | | If you installed readline into a non-standard directory, please run: |
|---|
| 4966 | | |
|---|
| 4967 | | env CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&2;} |
|---|
| 4968 | | { (exit 1); exit 1; }; } |
|---|
| 4969 | | |
|---|
| 4970 | | |
|---|
| 4971 | | fi |
|---|
| 4972 | | |
|---|
| 4973 | | |
|---|
| 4974 | | else |
|---|
| 4975 | | |
|---|
| 4976 | | |
|---|
| 4977 | | { { echo "$as_me:$LINENO: error: could not locate readline |
|---|
| 4978 | | |
|---|
| 4979 | | If you installed readline into a non-standard directory, please run: |
|---|
| 4980 | | |
|---|
| 4981 | | env CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&5 |
|---|
| 4982 | | echo "$as_me: error: could not locate readline |
|---|
| 4983 | | |
|---|
| 4984 | | If you installed readline into a non-standard directory, please run: |
|---|
| 4985 | | |
|---|
| 4986 | | env CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&2;} |
|---|
| 4987 | | { (exit 1); exit 1; }; } |
|---|
| 4988 | | |
|---|
| 4989 | | |
|---|
| 4990 | | fi |
|---|
| 4991 | | |
|---|
| 4992 | | done |
|---|
| 4993 | | |
|---|
| 4994 | | |
|---|
| 4995 | | |
|---|
| 4996 | | |
|---|
| 4997 | | ####################################################################### |
|---|
| 4998 | | # Checks for header files |
|---|
| 4999 | | |
|---|
| 5000 | | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|---|
| 5001 | | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
|---|
| 5002 | | if test "${ac_cv_header_stdc+set}" = set; then |
|---|
| 5003 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 5004 | | else |
|---|
| 5005 | | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 5006 | | #line $LINENO "configure" |
|---|
| 5007 | | /* confdefs.h. */ |
|---|
| 5008 | | _ACEOF |
|---|
| 5009 | | cat confdefs.h >>conftest.$ac_ext |
|---|
| 5010 | | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 5011 | | /* end confdefs.h. */ |
|---|
| 5012 | | #include <stdlib.h> |
|---|
| 5013 | | #include <stdarg.h> |
|---|
| 5014 | | #include <string.h> |
|---|
| 5015 | | #include <float.h> |
|---|
| 5016 | | |
|---|
| 5017 | | int |
|---|
| 5018 | | main () |
|---|
| 5019 | | { |
|---|
| | 5667 | /* FIXME: Include the comments suggested by Paul. */ |
|---|
| | 5668 | #ifndef __cplusplus |
|---|
| | 5669 | /* Ultrix mips cc rejects this. */ |
|---|
| | 5670 | typedef int charset[2]; |
|---|
| | 5671 | const charset x; |
|---|
| | 5672 | /* SunOS 4.1.1 cc rejects this. */ |
|---|
| | 5673 | char const *const *ccp; |
|---|
| | 5674 | char **p; |
|---|
| | 5675 | /* NEC SVR4.0.2 mips cc rejects this. */ |
|---|
| | 5676 | struct point {int x, y;}; |
|---|
| | 5677 | static struct point const zero = {0,0}; |
|---|
| | 5678 | /* AIX XL C 1.02.0.0 rejects this. |
|---|
| | 5679 | It does not let you subtract one const X* pointer from another in |
|---|
| | 5680 | an arm of an if-expression whose if-part is not a constant |
|---|
| | 5681 | expression */ |
|---|
| | 5682 | const char *g = "string"; |
|---|
| | 5683 | ccp = &g + (g ? g-g : 0); |
|---|
| | 5684 | /* HPUX 7.0 cc rejects these. */ |
|---|
| | 5685 | ++ccp; |
|---|
| | 5686 | p = (char**) ccp; |
|---|
| | 5687 | ccp = (char const *const *) p; |
|---|
| | 5688 | { /* SCO 3.2v4 cc rejects this. */ |
|---|
| | 5689 | char *t; |
|---|
| | 5690 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
|---|
| | 5691 | |
|---|
| | 5692 | *t++ = 0; |
|---|
| | 5693 | } |
|---|
| | 5694 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
|---|
| | 5695 | int x[] = {25, 17}; |
|---|
| | 5696 | const int *foo = &x[0]; |
|---|
| | 5697 | ++foo; |
|---|
| | 5698 | } |
|---|
| | 5699 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
|---|
| | 5700 | typedef const int *iptr; |
|---|
| | 5701 | iptr p = 0; |
|---|
| | 5702 | ++p; |
|---|
| | 5703 | } |
|---|
| | 5704 | { /* AIX XL C 1.02.0.0 rejects this saying |
|---|
| | 5705 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
|---|
| | 5706 | struct s { int j; const int *ap[3]; }; |
|---|
| | 5707 | struct s *b; b->j = 5; |
|---|
| | 5708 | } |
|---|
| | 5709 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
|---|
| | 5710 | const int foo = 10; |
|---|
| | 5711 | } |
|---|
| | 5712 | #endif |
|---|