Mercurial > emacs
comparison configure @ 29733:6a91d938851d
*** empty log message ***
author | Dave Love <fx@gnu.org> |
---|---|
date | Mon, 19 Jun 2000 10:59:57 +0000 |
parents | cdef08609770 |
children | fb20d35ffa9a |
comparison
equal
deleted
inserted
replaced
29732:f1f8ca8dd938 | 29733:6a91d938851d |
---|---|
2964 #include "confdefs.h" | 2964 #include "confdefs.h" |
2965 | 2965 |
2966 int main() { | 2966 int main() { |
2967 | 2967 |
2968 /* Ultrix mips cc rejects this. */ | 2968 /* Ultrix mips cc rejects this. */ |
2969 typedef int charset[2]; const charset x; | 2969 typedef int charset[2]; const charset x = {0,0}; |
2970 /* SunOS 4.1.1 cc rejects this. */ | 2970 /* SunOS 4.1.1 cc rejects this. */ |
2971 char const *const *ccp; | 2971 char const *const *ccp; |
2972 char **p; | 2972 char **p; |
2973 /* NEC SVR4.0.2 mips cc rejects this. */ | 2973 /* NEC SVR4.0.2 mips cc rejects this. */ |
2974 struct point {int x, y;}; | 2974 struct point {int x, y;}; |
4948 cat > conftest.$ac_ext <<EOF | 4948 cat > conftest.$ac_ext <<EOF |
4949 #line 4950 "configure" | 4949 #line 4950 "configure" |
4950 #include "confdefs.h" | 4950 #include "confdefs.h" |
4951 #include <alloca.h> | 4951 #include <alloca.h> |
4952 int main() { | 4952 int main() { |
4953 char *p = alloca(2 * sizeof(int)); | 4953 void *p = alloca(2 * sizeof(int)); |
4954 ; return 0; } | 4954 ; return 0; } |
4955 EOF | 4955 EOF |
4956 if { (eval echo configure:4957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4956 if { (eval echo configure:4957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4957 rm -rf conftest* | 4957 rm -rf conftest* |
4958 ac_cv_header_alloca_h=yes | 4958 ac_cv_header_alloca_h=yes |
5461 | 5461 |
5462 for ac_func in gettimeofday gethostname getdomainname dup2 \ | 5462 for ac_func in gettimeofday gethostname getdomainname dup2 \ |
5463 rename closedir mkdir rmdir sysinfo \ | 5463 rename closedir mkdir rmdir sysinfo \ |
5464 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ | 5464 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ |
5465 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ | 5465 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ |
5466 utimes setrlimit setpgid getcwd shutdown strftime getaddrinfo \ | 5466 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ |
5467 __fpending getloadavg mblen mbrlen strsignal setitimer ualarm | 5467 __fpending getloadavg mblen mbrlen strsignal setitimer ualarm |
5468 do | 5468 do |
5469 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 5469 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5470 echo "configure:5471: checking for $ac_func" >&5 | 5470 echo "configure:5471: checking for $ac_func" >&5 |
5471 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 5471 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7155 #include <sys/time.h> | 7155 #include <sys/time.h> |
7156 #else | 7156 #else |
7157 #include <time.h> | 7157 #include <time.h> |
7158 #endif | 7158 #endif |
7159 #endif | 7159 #endif |
7160 | |
7161 int main() { | 7160 int main() { |
7162 | 7161 struct timeval time; |
7163 struct timeval time; | 7162 struct timezone dummy; |
7164 struct timezone dummy; | 7163 gettimeofday (&time, &dummy); |
7165 gettimeofday (&time, &dummy); | |
7166 | |
7167 ; return 0; } | 7164 ; return 0; } |
7168 EOF | 7165 EOF |
7169 if { (eval echo configure:7170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7166 if { (eval echo configure:7167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7170 rm -rf conftest* | 7167 rm -rf conftest* |
7171 emacs_cv_gettimeofday_two_arguments=yes | 7168 emacs_cv_gettimeofday_two_arguments=yes |
7172 else | 7169 else |
7173 echo "configure: failed program was:" >&5 | 7170 echo "configure: failed program was:" >&5 |
7174 cat conftest.$ac_ext >&5 | 7171 cat conftest.$ac_ext >&5 |
7175 rm -rf conftest* | 7172 rm -rf conftest* |
7173 cat > conftest.$ac_ext <<EOF | |
7174 #line 7175 "configure" | |
7175 #include "confdefs.h" | |
7176 | |
7177 #ifdef TIME_WITH_SYS_TIME | |
7178 #include <sys/time.h> | |
7179 #include <time.h> | |
7180 #else | |
7181 #ifdef HAVE_SYS_TIME_H | |
7182 #include <sys/time.h> | |
7183 #else | |
7184 #include <time.h> | |
7185 #endif | |
7186 #endif | |
7187 int main() { | |
7188 struct timeval time; | |
7189 int dummy; | |
7190 gettimeofday (&time, &dummy); | |
7191 ; return 0; } | |
7192 EOF | |
7193 if { (eval echo configure:7194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7194 rm -rf conftest* | |
7195 emacs_cv_gettimeofday_two_arguments=yes | |
7196 else | |
7197 echo "configure: failed program was:" >&5 | |
7198 cat conftest.$ac_ext >&5 | |
7199 rm -rf conftest* | |
7176 emacs_cv_gettimeofday_two_arguments=no | 7200 emacs_cv_gettimeofday_two_arguments=no |
7201 fi | |
7202 rm -f conftest* | |
7177 fi | 7203 fi |
7178 rm -f conftest* | 7204 rm -f conftest* |
7179 fi | 7205 fi |
7180 | 7206 |
7181 echo "$ac_t""$emacs_cv_gettimeofday_two_arguments" 1>&6 | 7207 echo "$ac_t""$emacs_cv_gettimeofday_two_arguments" 1>&6 |
7187 fi | 7213 fi |
7188 fi | 7214 fi |
7189 | 7215 |
7190 ok_so_far=yes | 7216 ok_so_far=yes |
7191 echo $ac_n "checking for socket""... $ac_c" 1>&6 | 7217 echo $ac_n "checking for socket""... $ac_c" 1>&6 |
7192 echo "configure:7193: checking for socket" >&5 | 7218 echo "configure:7219: checking for socket" >&5 |
7193 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then | 7219 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
7194 echo $ac_n "(cached) $ac_c" 1>&6 | 7220 echo $ac_n "(cached) $ac_c" 1>&6 |
7195 else | 7221 else |
7196 cat > conftest.$ac_ext <<EOF | 7222 cat > conftest.$ac_ext <<EOF |
7197 #line 7198 "configure" | 7223 #line 7224 "configure" |
7198 #include "confdefs.h" | 7224 #include "confdefs.h" |
7199 /* System header to define __stub macros and hopefully few prototypes, | 7225 /* System header to define __stub macros and hopefully few prototypes, |
7200 which can conflict with char socket(); below. */ | 7226 which can conflict with char socket(); below. */ |
7201 #include <assert.h> | 7227 #include <assert.h> |
7202 /* Override any gcc2 internal prototype to avoid an error. */ | 7228 /* Override any gcc2 internal prototype to avoid an error. */ |
7215 socket(); | 7241 socket(); |
7216 #endif | 7242 #endif |
7217 | 7243 |
7218 ; return 0; } | 7244 ; return 0; } |
7219 EOF | 7245 EOF |
7220 if { (eval echo configure:7221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7246 if { (eval echo configure:7247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7221 rm -rf conftest* | 7247 rm -rf conftest* |
7222 eval "ac_cv_func_socket=yes" | 7248 eval "ac_cv_func_socket=yes" |
7223 else | 7249 else |
7224 echo "configure: failed program was:" >&5 | 7250 echo "configure: failed program was:" >&5 |
7225 cat conftest.$ac_ext >&5 | 7251 cat conftest.$ac_ext >&5 |
7238 fi | 7264 fi |
7239 | 7265 |
7240 if test $ok_so_far = yes; then | 7266 if test $ok_so_far = yes; then |
7241 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` | 7267 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` |
7242 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 | 7268 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 |
7243 echo "configure:7244: checking for netinet/in.h" >&5 | 7269 echo "configure:7270: checking for netinet/in.h" >&5 |
7244 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7270 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7245 echo $ac_n "(cached) $ac_c" 1>&6 | 7271 echo $ac_n "(cached) $ac_c" 1>&6 |
7246 else | 7272 else |
7247 cat > conftest.$ac_ext <<EOF | 7273 cat > conftest.$ac_ext <<EOF |
7248 #line 7249 "configure" | 7274 #line 7275 "configure" |
7249 #include "confdefs.h" | 7275 #include "confdefs.h" |
7250 #include <netinet/in.h> | 7276 #include <netinet/in.h> |
7251 EOF | 7277 EOF |
7252 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7278 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7253 { (eval echo configure:7254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7279 { (eval echo configure:7280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7254 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7280 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7255 if test -z "$ac_err"; then | 7281 if test -z "$ac_err"; then |
7256 rm -rf conftest* | 7282 rm -rf conftest* |
7257 eval "ac_cv_header_$ac_safe=yes" | 7283 eval "ac_cv_header_$ac_safe=yes" |
7258 else | 7284 else |
7274 | 7300 |
7275 fi | 7301 fi |
7276 if test $ok_so_far = yes; then | 7302 if test $ok_so_far = yes; then |
7277 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` | 7303 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` |
7278 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 | 7304 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 |
7279 echo "configure:7280: checking for arpa/inet.h" >&5 | 7305 echo "configure:7306: checking for arpa/inet.h" >&5 |
7280 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7306 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7281 echo $ac_n "(cached) $ac_c" 1>&6 | 7307 echo $ac_n "(cached) $ac_c" 1>&6 |
7282 else | 7308 else |
7283 cat > conftest.$ac_ext <<EOF | 7309 cat > conftest.$ac_ext <<EOF |
7284 #line 7285 "configure" | 7310 #line 7311 "configure" |
7285 #include "confdefs.h" | 7311 #include "confdefs.h" |
7286 #include <arpa/inet.h> | 7312 #include <arpa/inet.h> |
7287 EOF | 7313 EOF |
7288 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7289 { (eval echo configure:7290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7315 { (eval echo configure:7316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7290 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7291 if test -z "$ac_err"; then | 7317 if test -z "$ac_err"; then |
7292 rm -rf conftest* | 7318 rm -rf conftest* |
7293 eval "ac_cv_header_$ac_safe=yes" | 7319 eval "ac_cv_header_$ac_safe=yes" |
7294 else | 7320 else |
7322 EOF | 7348 EOF |
7323 | 7349 |
7324 fi | 7350 fi |
7325 | 7351 |
7326 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6 | 7352 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6 |
7327 echo "configure:7328: checking whether system supports dynamic ptys" >&5 | 7353 echo "configure:7354: checking whether system supports dynamic ptys" >&5 |
7328 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then | 7354 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then |
7329 echo "$ac_t""yes" 1>&6 | 7355 echo "$ac_t""yes" 1>&6 |
7330 cat >> confdefs.h <<\EOF | 7356 cat >> confdefs.h <<\EOF |
7331 #define HAVE_DEV_PTMX 1 | 7357 #define HAVE_DEV_PTMX 1 |
7332 EOF | 7358 EOF |
7334 else | 7360 else |
7335 echo "$ac_t""no" 1>&6 | 7361 echo "$ac_t""no" 1>&6 |
7336 fi | 7362 fi |
7337 | 7363 |
7338 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | 7364 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
7339 echo "configure:7340: checking for pid_t" >&5 | 7365 echo "configure:7366: checking for pid_t" >&5 |
7340 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then | 7366 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
7341 echo $ac_n "(cached) $ac_c" 1>&6 | 7367 echo $ac_n "(cached) $ac_c" 1>&6 |
7342 else | 7368 else |
7343 cat > conftest.$ac_ext <<EOF | 7369 cat > conftest.$ac_ext <<EOF |
7344 #line 7345 "configure" | 7370 #line 7371 "configure" |
7345 #include "confdefs.h" | 7371 #include "confdefs.h" |
7346 #include <sys/types.h> | 7372 #include <sys/types.h> |
7347 #if STDC_HEADERS | 7373 #if STDC_HEADERS |
7348 #include <stdlib.h> | 7374 #include <stdlib.h> |
7349 #include <stddef.h> | 7375 #include <stddef.h> |
7368 | 7394 |
7369 fi | 7395 fi |
7370 | 7396 |
7371 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` | 7397 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` |
7372 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 | 7398 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 |
7373 echo "configure:7374: checking for vfork.h" >&5 | 7399 echo "configure:7400: checking for vfork.h" >&5 |
7374 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7400 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7375 echo $ac_n "(cached) $ac_c" 1>&6 | 7401 echo $ac_n "(cached) $ac_c" 1>&6 |
7376 else | 7402 else |
7377 cat > conftest.$ac_ext <<EOF | 7403 cat > conftest.$ac_ext <<EOF |
7378 #line 7379 "configure" | 7404 #line 7405 "configure" |
7379 #include "confdefs.h" | 7405 #include "confdefs.h" |
7380 #include <vfork.h> | 7406 #include <vfork.h> |
7381 EOF | 7407 EOF |
7382 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7408 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7383 { (eval echo configure:7384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7409 { (eval echo configure:7410: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7384 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7410 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7385 if test -z "$ac_err"; then | 7411 if test -z "$ac_err"; then |
7386 rm -rf conftest* | 7412 rm -rf conftest* |
7387 eval "ac_cv_header_$ac_safe=yes" | 7413 eval "ac_cv_header_$ac_safe=yes" |
7388 else | 7414 else |
7403 else | 7429 else |
7404 echo "$ac_t""no" 1>&6 | 7430 echo "$ac_t""no" 1>&6 |
7405 fi | 7431 fi |
7406 | 7432 |
7407 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 | 7433 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 |
7408 echo "configure:7409: checking for working vfork" >&5 | 7434 echo "configure:7435: checking for working vfork" >&5 |
7409 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then | 7435 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then |
7410 echo $ac_n "(cached) $ac_c" 1>&6 | 7436 echo $ac_n "(cached) $ac_c" 1>&6 |
7411 else | 7437 else |
7412 if test "$cross_compiling" = yes; then | 7438 if test "$cross_compiling" = yes; then |
7413 echo $ac_n "checking for vfork""... $ac_c" 1>&6 | 7439 echo $ac_n "checking for vfork""... $ac_c" 1>&6 |
7414 echo "configure:7415: checking for vfork" >&5 | 7440 echo "configure:7441: checking for vfork" >&5 |
7415 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then | 7441 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then |
7416 echo $ac_n "(cached) $ac_c" 1>&6 | 7442 echo $ac_n "(cached) $ac_c" 1>&6 |
7417 else | 7443 else |
7418 cat > conftest.$ac_ext <<EOF | 7444 cat > conftest.$ac_ext <<EOF |
7419 #line 7420 "configure" | 7445 #line 7446 "configure" |
7420 #include "confdefs.h" | 7446 #include "confdefs.h" |
7421 /* System header to define __stub macros and hopefully few prototypes, | 7447 /* System header to define __stub macros and hopefully few prototypes, |
7422 which can conflict with char vfork(); below. */ | 7448 which can conflict with char vfork(); below. */ |
7423 #include <assert.h> | 7449 #include <assert.h> |
7424 /* Override any gcc2 internal prototype to avoid an error. */ | 7450 /* Override any gcc2 internal prototype to avoid an error. */ |
7437 vfork(); | 7463 vfork(); |
7438 #endif | 7464 #endif |
7439 | 7465 |
7440 ; return 0; } | 7466 ; return 0; } |
7441 EOF | 7467 EOF |
7442 if { (eval echo configure:7443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7468 if { (eval echo configure:7469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7443 rm -rf conftest* | 7469 rm -rf conftest* |
7444 eval "ac_cv_func_vfork=yes" | 7470 eval "ac_cv_func_vfork=yes" |
7445 else | 7471 else |
7446 echo "configure: failed program was:" >&5 | 7472 echo "configure: failed program was:" >&5 |
7447 cat conftest.$ac_ext >&5 | 7473 cat conftest.$ac_ext >&5 |
7459 fi | 7485 fi |
7460 | 7486 |
7461 ac_cv_func_vfork_works=$ac_cv_func_vfork | 7487 ac_cv_func_vfork_works=$ac_cv_func_vfork |
7462 else | 7488 else |
7463 cat > conftest.$ac_ext <<EOF | 7489 cat > conftest.$ac_ext <<EOF |
7464 #line 7465 "configure" | 7490 #line 7491 "configure" |
7465 #include "confdefs.h" | 7491 #include "confdefs.h" |
7466 /* Thanks to Paul Eggert for this test. */ | 7492 /* Thanks to Paul Eggert for this test. */ |
7467 #include <stdio.h> | 7493 #include <stdio.h> |
7468 #include <sys/types.h> | 7494 #include <sys/types.h> |
7469 #include <sys/stat.h> | 7495 #include <sys/stat.h> |
7554 || fstat(fileno(stdout), &st) != 0 | 7580 || fstat(fileno(stdout), &st) != 0 |
7555 ); | 7581 ); |
7556 } | 7582 } |
7557 } | 7583 } |
7558 EOF | 7584 EOF |
7559 if { (eval echo configure:7560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 7585 if { (eval echo configure:7586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
7560 then | 7586 then |
7561 ac_cv_func_vfork_works=yes | 7587 ac_cv_func_vfork_works=yes |
7562 else | 7588 else |
7563 echo "configure: failed program was:" >&5 | 7589 echo "configure: failed program was:" >&5 |
7564 cat conftest.$ac_ext >&5 | 7590 cat conftest.$ac_ext >&5 |