Mercurial > emacs
comparison configure @ 30311:65d8fb2ca198
*** empty log message ***
author | Dave Love <fx@gnu.org> |
---|---|
date | Tue, 18 Jul 2000 22:16:01 +0000 |
parents | a567b99dd7d3 |
children | 3d8d0e78d92c |
comparison
equal
deleted
inserted
replaced
30310:a3f30480694a | 30311:65d8fb2ca198 |
---|---|
2247 fi | 2247 fi |
2248 rm -f conftest* | 2248 rm -f conftest* |
2249 | 2249 |
2250 | 2250 |
2251 | 2251 |
2252 #### Extract some information from the operating system and machine files. | |
2253 | |
2254 echo "checking the machine- and system-dependent files to find out | |
2255 - which libraries the lib-src programs will want, and | |
2256 - whether the GNU malloc routines are usable" 1>&6 | |
2257 echo "configure:2258: checking the machine- and system-dependent files to find out | |
2258 - which libraries the lib-src programs will want, and | |
2259 - whether the GNU malloc routines are usable" >&5 | |
2260 | |
2261 ### First figure out CFLAGS (which we use for running the compiler here) | |
2262 ### and REAL_CFLAGS (which we use for real compilation). | |
2263 ### The two are the same except on a few systems, where they are made | |
2264 ### different to work around various lossages. For example, | |
2265 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g | |
2266 ### as implying static linking. | |
2267 | |
2268 ### If the CFLAGS env var is specified, we use that value | |
2269 ### instead of the default. | |
2270 | |
2271 ### It's not important that this name contain the PID; you can't run | |
2272 ### two configures in the same directory and have anything work | |
2273 ### anyway. | |
2274 tempcname="conftest.c" | |
2275 | |
2276 echo ' | |
2277 #include "'${srcdir}'/src/'${opsysfile}'" | |
2278 #include "'${srcdir}'/src/'${machfile}'" | |
2279 #ifndef LIBS_MACHINE | |
2280 #define LIBS_MACHINE | |
2281 #endif | |
2282 #ifndef LIBS_SYSTEM | |
2283 #define LIBS_SYSTEM | |
2284 #endif | |
2285 #ifndef C_SWITCH_SYSTEM | |
2286 #define C_SWITCH_SYSTEM | |
2287 #endif | |
2288 #ifndef C_SWITCH_MACHINE | |
2289 #define C_SWITCH_MACHINE | |
2290 #endif | |
2291 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM | |
2292 configure___ c_switch_system=C_SWITCH_SYSTEM | |
2293 configure___ c_switch_machine=C_SWITCH_MACHINE | |
2294 | |
2295 #ifndef LIB_X11_LIB | |
2296 #define LIB_X11_LIB -lX11 | |
2297 #endif | |
2298 | |
2299 #ifndef LIBX11_MACHINE | |
2300 #define LIBX11_MACHINE | |
2301 #endif | |
2302 | |
2303 #ifndef LIBX11_SYSTEM | |
2304 #define LIBX11_SYSTEM | |
2305 #endif | |
2306 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM | |
2307 | |
2308 #ifdef UNEXEC | |
2309 configure___ unexec=UNEXEC | |
2310 #else | |
2311 configure___ unexec=unexec.o | |
2312 #endif | |
2313 | |
2314 #ifdef SYSTEM_MALLOC | |
2315 configure___ system_malloc=yes | |
2316 #else | |
2317 configure___ system_malloc=no | |
2318 #endif | |
2319 | |
2320 #ifndef C_DEBUG_SWITCH | |
2321 #define C_DEBUG_SWITCH -g | |
2322 #endif | |
2323 | |
2324 #ifndef C_OPTIMIZE_SWITCH | |
2325 #ifdef __GNUC__ | |
2326 #define C_OPTIMIZE_SWITCH -O2 | |
2327 #else | |
2328 #define C_OPTIMIZE_SWITCH -O | |
2329 #endif | |
2330 #endif | |
2331 | |
2332 #ifndef LD_SWITCH_MACHINE | |
2333 #define LD_SWITCH_MACHINE | |
2334 #endif | |
2335 | |
2336 #ifndef LD_SWITCH_SYSTEM | |
2337 #define LD_SWITCH_SYSTEM | |
2338 #endif | |
2339 | |
2340 #ifndef LD_SWITCH_X_SITE_AUX | |
2341 #define LD_SWITCH_X_SITE_AUX | |
2342 #endif | |
2343 | |
2344 configure___ ld_switch_system=LD_SWITCH_SYSTEM | |
2345 configure___ ld_switch_machine=LD_SWITCH_MACHINE | |
2346 | |
2347 #ifdef THIS_IS_CONFIGURE | |
2348 | |
2349 /* Get the CFLAGS for tests in configure. */ | |
2350 #ifdef __GNUC__ | |
2351 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
2352 #else | |
2353 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
2354 #endif | |
2355 | |
2356 #else /* not THIS_IS_CONFIGURE */ | |
2357 | |
2358 /* Get the CFLAGS for real compilation. */ | |
2359 #ifdef __GNUC__ | |
2360 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
2361 #else | |
2362 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
2363 #endif | |
2364 | |
2365 #endif /* not THIS_IS_CONFIGURE */ | |
2366 ' > ${tempcname} | |
2367 | |
2368 # The value of CPP is a quoted variable reference, so we need to do this | |
2369 # to get its actual value... | |
2370 CPP=`eval "echo $CPP"` | |
2371 eval `${CPP} -Isrc ${tempcname} \ | |
2372 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
2373 if test "x$SPECIFIED_CFLAGS" = x; then | |
2374 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \ | |
2375 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
2376 else | |
2377 REAL_CFLAGS="$CFLAGS" | |
2378 fi | |
2379 rm ${tempcname} | |
2380 | |
2381 ac_link="$ac_link $ld_switch_machine $ld_switch_system" | |
2382 | |
2383 ### Make sure subsequent tests use flags consistent with the build flags. | |
2384 | |
2385 if test x"${OVERRIDE_CPPFLAGS}" != x; then | |
2386 CPPFLAGS="${OVERRIDE_CPPFLAGS}" | |
2387 else | |
2388 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS" | |
2389 fi | |
2390 | |
2252 # Sound support for GNU/Linux and the free BSDs. | 2391 # Sound support for GNU/Linux and the free BSDs. |
2253 for ac_hdr in machine/soundcard.h sys/soundcard.h soundcard.h | 2392 for ac_hdr in machine/soundcard.h sys/soundcard.h soundcard.h |
2254 do | 2393 do |
2255 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 2394 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
2256 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 2395 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
2257 echo "configure:2258: checking for $ac_hdr" >&5 | 2396 echo "configure:2397: checking for $ac_hdr" >&5 |
2258 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 2397 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2259 echo $ac_n "(cached) $ac_c" 1>&6 | 2398 echo $ac_n "(cached) $ac_c" 1>&6 |
2260 else | 2399 else |
2261 cat > conftest.$ac_ext <<EOF | 2400 cat > conftest.$ac_ext <<EOF |
2262 #line 2263 "configure" | 2401 #line 2402 "configure" |
2263 #include "confdefs.h" | 2402 #include "confdefs.h" |
2264 #include <$ac_hdr> | 2403 #include <$ac_hdr> |
2265 EOF | 2404 EOF |
2266 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 2405 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2267 { (eval echo configure:2268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 2406 { (eval echo configure:2407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2268 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 2407 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2269 if test -z "$ac_err"; then | 2408 if test -z "$ac_err"; then |
2270 rm -rf conftest* | 2409 rm -rf conftest* |
2271 eval "ac_cv_header_$ac_safe=yes" | 2410 eval "ac_cv_header_$ac_safe=yes" |
2272 else | 2411 else |
2290 fi | 2429 fi |
2291 done | 2430 done |
2292 | 2431 |
2293 # Emulation library used on NetBSD. | 2432 # Emulation library used on NetBSD. |
2294 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6 | 2433 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6 |
2295 echo "configure:2296: checking for _oss_ioctl in -lossaudio" >&5 | 2434 echo "configure:2435: checking for _oss_ioctl in -lossaudio" >&5 |
2296 ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'` | 2435 ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'` |
2297 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 2436 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2298 echo $ac_n "(cached) $ac_c" 1>&6 | 2437 echo $ac_n "(cached) $ac_c" 1>&6 |
2299 else | 2438 else |
2300 ac_save_LIBS="$LIBS" | 2439 ac_save_LIBS="$LIBS" |
2301 LIBS="-lossaudio $LIBS" | 2440 LIBS="-lossaudio $LIBS" |
2302 cat > conftest.$ac_ext <<EOF | 2441 cat > conftest.$ac_ext <<EOF |
2303 #line 2304 "configure" | 2442 #line 2443 "configure" |
2304 #include "confdefs.h" | 2443 #include "confdefs.h" |
2305 /* Override any gcc2 internal prototype to avoid an error. */ | 2444 /* Override any gcc2 internal prototype to avoid an error. */ |
2306 /* We use char because int might match the return type of a gcc2 | 2445 /* We use char because int might match the return type of a gcc2 |
2307 builtin and then its argument prototype would still apply. */ | 2446 builtin and then its argument prototype would still apply. */ |
2308 char _oss_ioctl(); | 2447 char _oss_ioctl(); |
2309 | 2448 |
2310 int main() { | 2449 int main() { |
2311 _oss_ioctl() | 2450 _oss_ioctl() |
2312 ; return 0; } | 2451 ; return 0; } |
2313 EOF | 2452 EOF |
2314 if { (eval echo configure:2315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 2453 if { (eval echo configure:2454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2315 rm -rf conftest* | 2454 rm -rf conftest* |
2316 eval "ac_cv_lib_$ac_lib_var=yes" | 2455 eval "ac_cv_lib_$ac_lib_var=yes" |
2317 else | 2456 else |
2318 echo "configure: failed program was:" >&5 | 2457 echo "configure: failed program was:" >&5 |
2319 cat conftest.$ac_ext >&5 | 2458 cat conftest.$ac_ext >&5 |
2338 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ | 2477 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ |
2339 termcap.h stdio_ext.h fcntl.h term.h | 2478 termcap.h stdio_ext.h fcntl.h term.h |
2340 do | 2479 do |
2341 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 2480 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
2342 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 2481 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
2343 echo "configure:2344: checking for $ac_hdr" >&5 | 2482 echo "configure:2483: checking for $ac_hdr" >&5 |
2344 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 2483 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2345 echo $ac_n "(cached) $ac_c" 1>&6 | 2484 echo $ac_n "(cached) $ac_c" 1>&6 |
2346 else | 2485 else |
2347 cat > conftest.$ac_ext <<EOF | 2486 cat > conftest.$ac_ext <<EOF |
2348 #line 2349 "configure" | 2487 #line 2488 "configure" |
2349 #include "confdefs.h" | 2488 #include "confdefs.h" |
2350 #include <$ac_hdr> | 2489 #include <$ac_hdr> |
2351 EOF | 2490 EOF |
2352 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 2491 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2353 { (eval echo configure:2354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 2492 { (eval echo configure:2493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2354 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 2493 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2355 if test -z "$ac_err"; then | 2494 if test -z "$ac_err"; then |
2356 rm -rf conftest* | 2495 rm -rf conftest* |
2357 eval "ac_cv_header_$ac_safe=yes" | 2496 eval "ac_cv_header_$ac_safe=yes" |
2358 else | 2497 else |
2375 echo "$ac_t""no" 1>&6 | 2514 echo "$ac_t""no" 1>&6 |
2376 fi | 2515 fi |
2377 done | 2516 done |
2378 | 2517 |
2379 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | 2518 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
2380 echo "configure:2381: checking for ANSI C header files" >&5 | 2519 echo "configure:2520: checking for ANSI C header files" >&5 |
2381 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then | 2520 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
2382 echo $ac_n "(cached) $ac_c" 1>&6 | 2521 echo $ac_n "(cached) $ac_c" 1>&6 |
2383 else | 2522 else |
2384 cat > conftest.$ac_ext <<EOF | 2523 cat > conftest.$ac_ext <<EOF |
2385 #line 2386 "configure" | 2524 #line 2525 "configure" |
2386 #include "confdefs.h" | 2525 #include "confdefs.h" |
2387 #include <stdlib.h> | 2526 #include <stdlib.h> |
2388 #include <stdarg.h> | 2527 #include <stdarg.h> |
2389 #include <string.h> | 2528 #include <string.h> |
2390 #include <float.h> | 2529 #include <float.h> |
2391 EOF | 2530 EOF |
2392 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 2531 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2393 { (eval echo configure:2394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 2532 { (eval echo configure:2533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2394 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 2533 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2395 if test -z "$ac_err"; then | 2534 if test -z "$ac_err"; then |
2396 rm -rf conftest* | 2535 rm -rf conftest* |
2397 ac_cv_header_stdc=yes | 2536 ac_cv_header_stdc=yes |
2398 else | 2537 else |
2405 rm -f conftest* | 2544 rm -f conftest* |
2406 | 2545 |
2407 if test $ac_cv_header_stdc = yes; then | 2546 if test $ac_cv_header_stdc = yes; then |
2408 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 2547 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
2409 cat > conftest.$ac_ext <<EOF | 2548 cat > conftest.$ac_ext <<EOF |
2410 #line 2411 "configure" | 2549 #line 2550 "configure" |
2411 #include "confdefs.h" | 2550 #include "confdefs.h" |
2412 #include <string.h> | 2551 #include <string.h> |
2413 EOF | 2552 EOF |
2414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 2553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
2415 egrep "memchr" >/dev/null 2>&1; then | 2554 egrep "memchr" >/dev/null 2>&1; then |
2423 fi | 2562 fi |
2424 | 2563 |
2425 if test $ac_cv_header_stdc = yes; then | 2564 if test $ac_cv_header_stdc = yes; then |
2426 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 2565 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
2427 cat > conftest.$ac_ext <<EOF | 2566 cat > conftest.$ac_ext <<EOF |
2428 #line 2429 "configure" | 2567 #line 2568 "configure" |
2429 #include "confdefs.h" | 2568 #include "confdefs.h" |
2430 #include <stdlib.h> | 2569 #include <stdlib.h> |
2431 EOF | 2570 EOF |
2432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 2571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
2433 egrep "free" >/dev/null 2>&1; then | 2572 egrep "free" >/dev/null 2>&1; then |
2444 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 2583 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
2445 if test "$cross_compiling" = yes; then | 2584 if test "$cross_compiling" = yes; then |
2446 : | 2585 : |
2447 else | 2586 else |
2448 cat > conftest.$ac_ext <<EOF | 2587 cat > conftest.$ac_ext <<EOF |
2449 #line 2450 "configure" | 2588 #line 2589 "configure" |
2450 #include "confdefs.h" | 2589 #include "confdefs.h" |
2451 #include <ctype.h> | 2590 #include <ctype.h> |
2452 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 2591 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
2453 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 2592 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
2454 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 2593 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
2455 int main () { int i; for (i = 0; i < 256; i++) | 2594 int main () { int i; for (i = 0; i < 256; i++) |
2456 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | 2595 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
2457 exit (0); } | 2596 exit (0); } |
2458 | 2597 |
2459 EOF | 2598 EOF |
2460 if { (eval echo configure:2461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 2599 if { (eval echo configure:2600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2461 then | 2600 then |
2462 : | 2601 : |
2463 else | 2602 else |
2464 echo "configure: failed program was:" >&5 | 2603 echo "configure: failed program was:" >&5 |
2465 cat conftest.$ac_ext >&5 | 2604 cat conftest.$ac_ext >&5 |
2479 EOF | 2618 EOF |
2480 | 2619 |
2481 fi | 2620 fi |
2482 | 2621 |
2483 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | 2622 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
2484 echo "configure:2485: checking whether time.h and sys/time.h may both be included" >&5 | 2623 echo "configure:2624: checking whether time.h and sys/time.h may both be included" >&5 |
2485 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then | 2624 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
2486 echo $ac_n "(cached) $ac_c" 1>&6 | 2625 echo $ac_n "(cached) $ac_c" 1>&6 |
2487 else | 2626 else |
2488 cat > conftest.$ac_ext <<EOF | 2627 cat > conftest.$ac_ext <<EOF |
2489 #line 2490 "configure" | 2628 #line 2629 "configure" |
2490 #include "confdefs.h" | 2629 #include "confdefs.h" |
2491 #include <sys/types.h> | 2630 #include <sys/types.h> |
2492 #include <sys/time.h> | 2631 #include <sys/time.h> |
2493 #include <time.h> | 2632 #include <time.h> |
2494 int main() { | 2633 int main() { |
2495 struct tm *tp; | 2634 struct tm *tp; |
2496 ; return 0; } | 2635 ; return 0; } |
2497 EOF | 2636 EOF |
2498 if { (eval echo configure:2499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2637 if { (eval echo configure:2638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2499 rm -rf conftest* | 2638 rm -rf conftest* |
2500 ac_cv_header_time=yes | 2639 ac_cv_header_time=yes |
2501 else | 2640 else |
2502 echo "configure: failed program was:" >&5 | 2641 echo "configure: failed program was:" >&5 |
2503 cat conftest.$ac_ext >&5 | 2642 cat conftest.$ac_ext >&5 |
2514 EOF | 2653 EOF |
2515 | 2654 |
2516 fi | 2655 fi |
2517 | 2656 |
2518 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 | 2657 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 |
2519 echo "configure:2520: checking for sys_siglist declaration in signal.h or unistd.h" >&5 | 2658 echo "configure:2659: checking for sys_siglist declaration in signal.h or unistd.h" >&5 |
2520 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then | 2659 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then |
2521 echo $ac_n "(cached) $ac_c" 1>&6 | 2660 echo $ac_n "(cached) $ac_c" 1>&6 |
2522 else | 2661 else |
2523 cat > conftest.$ac_ext <<EOF | 2662 cat > conftest.$ac_ext <<EOF |
2524 #line 2525 "configure" | 2663 #line 2664 "configure" |
2525 #include "confdefs.h" | 2664 #include "confdefs.h" |
2526 #include <sys/types.h> | 2665 #include <sys/types.h> |
2527 #include <signal.h> | 2666 #include <signal.h> |
2528 /* NetBSD declares sys_siglist in unistd.h. */ | 2667 /* NetBSD declares sys_siglist in unistd.h. */ |
2529 #ifdef HAVE_UNISTD_H | 2668 #ifdef HAVE_UNISTD_H |
2531 #endif | 2670 #endif |
2532 int main() { | 2671 int main() { |
2533 char *msg = *(sys_siglist + 1); | 2672 char *msg = *(sys_siglist + 1); |
2534 ; return 0; } | 2673 ; return 0; } |
2535 EOF | 2674 EOF |
2536 if { (eval echo configure:2537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2675 if { (eval echo configure:2676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2537 rm -rf conftest* | 2676 rm -rf conftest* |
2538 ac_cv_decl_sys_siglist=yes | 2677 ac_cv_decl_sys_siglist=yes |
2539 else | 2678 else |
2540 echo "configure: failed program was:" >&5 | 2679 echo "configure: failed program was:" >&5 |
2541 cat conftest.$ac_ext >&5 | 2680 cat conftest.$ac_ext >&5 |
2552 EOF | 2691 EOF |
2553 | 2692 |
2554 fi | 2693 fi |
2555 | 2694 |
2556 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 | 2695 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 |
2557 echo "configure:2558: checking for sys/wait.h that is POSIX.1 compatible" >&5 | 2696 echo "configure:2697: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
2558 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then | 2697 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then |
2559 echo $ac_n "(cached) $ac_c" 1>&6 | 2698 echo $ac_n "(cached) $ac_c" 1>&6 |
2560 else | 2699 else |
2561 cat > conftest.$ac_ext <<EOF | 2700 cat > conftest.$ac_ext <<EOF |
2562 #line 2563 "configure" | 2701 #line 2702 "configure" |
2563 #include "confdefs.h" | 2702 #include "confdefs.h" |
2564 #include <sys/types.h> | 2703 #include <sys/types.h> |
2565 #include <sys/wait.h> | 2704 #include <sys/wait.h> |
2566 #ifndef WEXITSTATUS | 2705 #ifndef WEXITSTATUS |
2567 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | 2706 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
2573 int s; | 2712 int s; |
2574 wait (&s); | 2713 wait (&s); |
2575 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | 2714 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
2576 ; return 0; } | 2715 ; return 0; } |
2577 EOF | 2716 EOF |
2578 if { (eval echo configure:2579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2717 if { (eval echo configure:2718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2579 rm -rf conftest* | 2718 rm -rf conftest* |
2580 ac_cv_header_sys_wait_h=yes | 2719 ac_cv_header_sys_wait_h=yes |
2581 else | 2720 else |
2582 echo "configure: failed program was:" >&5 | 2721 echo "configure: failed program was:" >&5 |
2583 cat conftest.$ac_ext >&5 | 2722 cat conftest.$ac_ext >&5 |
2595 | 2734 |
2596 fi | 2735 fi |
2597 | 2736 |
2598 | 2737 |
2599 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 | 2738 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 |
2600 echo "configure:2601: checking for struct utimbuf" >&5 | 2739 echo "configure:2740: checking for struct utimbuf" >&5 |
2601 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then | 2740 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then |
2602 echo $ac_n "(cached) $ac_c" 1>&6 | 2741 echo $ac_n "(cached) $ac_c" 1>&6 |
2603 else | 2742 else |
2604 cat > conftest.$ac_ext <<EOF | 2743 cat > conftest.$ac_ext <<EOF |
2605 #line 2606 "configure" | 2744 #line 2745 "configure" |
2606 #include "confdefs.h" | 2745 #include "confdefs.h" |
2607 #ifdef TIME_WITH_SYS_TIME | 2746 #ifdef TIME_WITH_SYS_TIME |
2608 #include <sys/time.h> | 2747 #include <sys/time.h> |
2609 #include <time.h> | 2748 #include <time.h> |
2610 #else | 2749 #else |
2619 #endif | 2758 #endif |
2620 int main() { | 2759 int main() { |
2621 static struct utimbuf x; x.actime = x.modtime; | 2760 static struct utimbuf x; x.actime = x.modtime; |
2622 ; return 0; } | 2761 ; return 0; } |
2623 EOF | 2762 EOF |
2624 if { (eval echo configure:2625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2763 if { (eval echo configure:2764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2625 rm -rf conftest* | 2764 rm -rf conftest* |
2626 emacs_cv_struct_utimbuf=yes | 2765 emacs_cv_struct_utimbuf=yes |
2627 else | 2766 else |
2628 echo "configure: failed program was:" >&5 | 2767 echo "configure: failed program was:" >&5 |
2629 cat conftest.$ac_ext >&5 | 2768 cat conftest.$ac_ext >&5 |
2640 EOF | 2779 EOF |
2641 | 2780 |
2642 fi | 2781 fi |
2643 | 2782 |
2644 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 | 2783 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
2645 echo "configure:2646: checking return type of signal handlers" >&5 | 2784 echo "configure:2785: checking return type of signal handlers" >&5 |
2646 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then | 2785 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
2647 echo $ac_n "(cached) $ac_c" 1>&6 | 2786 echo $ac_n "(cached) $ac_c" 1>&6 |
2648 else | 2787 else |
2649 cat > conftest.$ac_ext <<EOF | 2788 cat > conftest.$ac_ext <<EOF |
2650 #line 2651 "configure" | 2789 #line 2790 "configure" |
2651 #include "confdefs.h" | 2790 #include "confdefs.h" |
2652 #include <sys/types.h> | 2791 #include <sys/types.h> |
2653 #include <signal.h> | 2792 #include <signal.h> |
2654 #ifdef signal | 2793 #ifdef signal |
2655 #undef signal | 2794 #undef signal |
2662 | 2801 |
2663 int main() { | 2802 int main() { |
2664 int i; | 2803 int i; |
2665 ; return 0; } | 2804 ; return 0; } |
2666 EOF | 2805 EOF |
2667 if { (eval echo configure:2668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2806 if { (eval echo configure:2807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2668 rm -rf conftest* | 2807 rm -rf conftest* |
2669 ac_cv_type_signal=void | 2808 ac_cv_type_signal=void |
2670 else | 2809 else |
2671 echo "configure: failed program was:" >&5 | 2810 echo "configure: failed program was:" >&5 |
2672 cat conftest.$ac_ext >&5 | 2811 cat conftest.$ac_ext >&5 |
2682 EOF | 2821 EOF |
2683 | 2822 |
2684 | 2823 |
2685 | 2824 |
2686 echo $ac_n "checking for speed_t""... $ac_c" 1>&6 | 2825 echo $ac_n "checking for speed_t""... $ac_c" 1>&6 |
2687 echo "configure:2688: checking for speed_t" >&5 | 2826 echo "configure:2827: checking for speed_t" >&5 |
2688 if eval "test \"`echo '$''{'emacs_cv_speed_t'+set}'`\" = set"; then | 2827 if eval "test \"`echo '$''{'emacs_cv_speed_t'+set}'`\" = set"; then |
2689 echo $ac_n "(cached) $ac_c" 1>&6 | 2828 echo $ac_n "(cached) $ac_c" 1>&6 |
2690 else | 2829 else |
2691 cat > conftest.$ac_ext <<EOF | 2830 cat > conftest.$ac_ext <<EOF |
2692 #line 2693 "configure" | 2831 #line 2832 "configure" |
2693 #include "confdefs.h" | 2832 #include "confdefs.h" |
2694 #include <termios.h> | 2833 #include <termios.h> |
2695 int main() { | 2834 int main() { |
2696 speed_t x = 1; | 2835 speed_t x = 1; |
2697 ; return 0; } | 2836 ; return 0; } |
2698 EOF | 2837 EOF |
2699 if { (eval echo configure:2700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2838 if { (eval echo configure:2839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2700 rm -rf conftest* | 2839 rm -rf conftest* |
2701 emacs_cv_speed_t=yes | 2840 emacs_cv_speed_t=yes |
2702 else | 2841 else |
2703 echo "configure: failed program was:" >&5 | 2842 echo "configure: failed program was:" >&5 |
2704 cat conftest.$ac_ext >&5 | 2843 cat conftest.$ac_ext >&5 |
2713 EOF | 2852 EOF |
2714 | 2853 |
2715 fi | 2854 fi |
2716 | 2855 |
2717 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 | 2856 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 |
2718 echo "configure:2719: checking for struct timeval" >&5 | 2857 echo "configure:2858: checking for struct timeval" >&5 |
2719 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then | 2858 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then |
2720 echo $ac_n "(cached) $ac_c" 1>&6 | 2859 echo $ac_n "(cached) $ac_c" 1>&6 |
2721 else | 2860 else |
2722 cat > conftest.$ac_ext <<EOF | 2861 cat > conftest.$ac_ext <<EOF |
2723 #line 2724 "configure" | 2862 #line 2863 "configure" |
2724 #include "confdefs.h" | 2863 #include "confdefs.h" |
2725 #ifdef TIME_WITH_SYS_TIME | 2864 #ifdef TIME_WITH_SYS_TIME |
2726 #include <sys/time.h> | 2865 #include <sys/time.h> |
2727 #include <time.h> | 2866 #include <time.h> |
2728 #else | 2867 #else |
2734 #endif | 2873 #endif |
2735 int main() { | 2874 int main() { |
2736 static struct timeval x; x.tv_sec = x.tv_usec; | 2875 static struct timeval x; x.tv_sec = x.tv_usec; |
2737 ; return 0; } | 2876 ; return 0; } |
2738 EOF | 2877 EOF |
2739 if { (eval echo configure:2740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2878 if { (eval echo configure:2879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2740 rm -rf conftest* | 2879 rm -rf conftest* |
2741 emacs_cv_struct_timeval=yes | 2880 emacs_cv_struct_timeval=yes |
2742 else | 2881 else |
2743 echo "configure: failed program was:" >&5 | 2882 echo "configure: failed program was:" >&5 |
2744 cat conftest.$ac_ext >&5 | 2883 cat conftest.$ac_ext >&5 |
2756 EOF | 2895 EOF |
2757 | 2896 |
2758 fi | 2897 fi |
2759 | 2898 |
2760 echo $ac_n "checking for struct exception""... $ac_c" 1>&6 | 2899 echo $ac_n "checking for struct exception""... $ac_c" 1>&6 |
2761 echo "configure:2762: checking for struct exception" >&5 | 2900 echo "configure:2901: checking for struct exception" >&5 |
2762 if eval "test \"`echo '$''{'emacs_cv_struct_exception'+set}'`\" = set"; then | 2901 if eval "test \"`echo '$''{'emacs_cv_struct_exception'+set}'`\" = set"; then |
2763 echo $ac_n "(cached) $ac_c" 1>&6 | 2902 echo $ac_n "(cached) $ac_c" 1>&6 |
2764 else | 2903 else |
2765 cat > conftest.$ac_ext <<EOF | 2904 cat > conftest.$ac_ext <<EOF |
2766 #line 2767 "configure" | 2905 #line 2906 "configure" |
2767 #include "confdefs.h" | 2906 #include "confdefs.h" |
2768 #include <math.h> | 2907 #include <math.h> |
2769 int main() { | 2908 int main() { |
2770 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; | 2909 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; |
2771 ; return 0; } | 2910 ; return 0; } |
2772 EOF | 2911 EOF |
2773 if { (eval echo configure:2774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2912 if { (eval echo configure:2913: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2774 rm -rf conftest* | 2913 rm -rf conftest* |
2775 emacs_cv_struct_exception=yes | 2914 emacs_cv_struct_exception=yes |
2776 else | 2915 else |
2777 echo "configure: failed program was:" >&5 | 2916 echo "configure: failed program was:" >&5 |
2778 cat conftest.$ac_ext >&5 | 2917 cat conftest.$ac_ext >&5 |
2790 EOF | 2929 EOF |
2791 | 2930 |
2792 fi | 2931 fi |
2793 | 2932 |
2794 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 | 2933 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 |
2795 echo "configure:2796: checking whether struct tm is in sys/time.h or time.h" >&5 | 2934 echo "configure:2935: checking whether struct tm is in sys/time.h or time.h" >&5 |
2796 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then | 2935 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then |
2797 echo $ac_n "(cached) $ac_c" 1>&6 | 2936 echo $ac_n "(cached) $ac_c" 1>&6 |
2798 else | 2937 else |
2799 cat > conftest.$ac_ext <<EOF | 2938 cat > conftest.$ac_ext <<EOF |
2800 #line 2801 "configure" | 2939 #line 2940 "configure" |
2801 #include "confdefs.h" | 2940 #include "confdefs.h" |
2802 #include <sys/types.h> | 2941 #include <sys/types.h> |
2803 #include <time.h> | 2942 #include <time.h> |
2804 int main() { | 2943 int main() { |
2805 struct tm *tp; tp->tm_sec; | 2944 struct tm *tp; tp->tm_sec; |
2806 ; return 0; } | 2945 ; return 0; } |
2807 EOF | 2946 EOF |
2808 if { (eval echo configure:2809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2947 if { (eval echo configure:2948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2809 rm -rf conftest* | 2948 rm -rf conftest* |
2810 ac_cv_struct_tm=time.h | 2949 ac_cv_struct_tm=time.h |
2811 else | 2950 else |
2812 echo "configure: failed program was:" >&5 | 2951 echo "configure: failed program was:" >&5 |
2813 cat conftest.$ac_ext >&5 | 2952 cat conftest.$ac_ext >&5 |
2824 EOF | 2963 EOF |
2825 | 2964 |
2826 fi | 2965 fi |
2827 | 2966 |
2828 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 | 2967 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 |
2829 echo "configure:2830: checking for tm_zone in struct tm" >&5 | 2968 echo "configure:2969: checking for tm_zone in struct tm" >&5 |
2830 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then | 2969 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then |
2831 echo $ac_n "(cached) $ac_c" 1>&6 | 2970 echo $ac_n "(cached) $ac_c" 1>&6 |
2832 else | 2971 else |
2833 cat > conftest.$ac_ext <<EOF | 2972 cat > conftest.$ac_ext <<EOF |
2834 #line 2835 "configure" | 2973 #line 2974 "configure" |
2835 #include "confdefs.h" | 2974 #include "confdefs.h" |
2836 #include <sys/types.h> | 2975 #include <sys/types.h> |
2837 #include <$ac_cv_struct_tm> | 2976 #include <$ac_cv_struct_tm> |
2838 int main() { | 2977 int main() { |
2839 struct tm tm; tm.tm_zone; | 2978 struct tm tm; tm.tm_zone; |
2840 ; return 0; } | 2979 ; return 0; } |
2841 EOF | 2980 EOF |
2842 if { (eval echo configure:2843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2981 if { (eval echo configure:2982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2843 rm -rf conftest* | 2982 rm -rf conftest* |
2844 ac_cv_struct_tm_zone=yes | 2983 ac_cv_struct_tm_zone=yes |
2845 else | 2984 else |
2846 echo "configure: failed program was:" >&5 | 2985 echo "configure: failed program was:" >&5 |
2847 cat conftest.$ac_ext >&5 | 2986 cat conftest.$ac_ext >&5 |
2857 #define HAVE_TM_ZONE 1 | 2996 #define HAVE_TM_ZONE 1 |
2858 EOF | 2997 EOF |
2859 | 2998 |
2860 else | 2999 else |
2861 echo $ac_n "checking for tzname""... $ac_c" 1>&6 | 3000 echo $ac_n "checking for tzname""... $ac_c" 1>&6 |
2862 echo "configure:2863: checking for tzname" >&5 | 3001 echo "configure:3002: checking for tzname" >&5 |
2863 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then | 3002 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then |
2864 echo $ac_n "(cached) $ac_c" 1>&6 | 3003 echo $ac_n "(cached) $ac_c" 1>&6 |
2865 else | 3004 else |
2866 cat > conftest.$ac_ext <<EOF | 3005 cat > conftest.$ac_ext <<EOF |
2867 #line 2868 "configure" | 3006 #line 3007 "configure" |
2868 #include "confdefs.h" | 3007 #include "confdefs.h" |
2869 #include <time.h> | 3008 #include <time.h> |
2870 #ifndef tzname /* For SGI. */ | 3009 #ifndef tzname /* For SGI. */ |
2871 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | 3010 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
2872 #endif | 3011 #endif |
2873 int main() { | 3012 int main() { |
2874 atoi(*tzname); | 3013 atoi(*tzname); |
2875 ; return 0; } | 3014 ; return 0; } |
2876 EOF | 3015 EOF |
2877 if { (eval echo configure:2878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 3016 if { (eval echo configure:3017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2878 rm -rf conftest* | 3017 rm -rf conftest* |
2879 ac_cv_var_tzname=yes | 3018 ac_cv_var_tzname=yes |
2880 else | 3019 else |
2881 echo "configure: failed program was:" >&5 | 3020 echo "configure: failed program was:" >&5 |
2882 cat conftest.$ac_ext >&5 | 3021 cat conftest.$ac_ext >&5 |
2894 | 3033 |
2895 fi | 3034 fi |
2896 fi | 3035 fi |
2897 | 3036 |
2898 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | 3037 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 |
2899 echo "configure:2900: checking for tm_gmtoff in struct tm" >&5 | 3038 echo "configure:3039: checking for tm_gmtoff in struct tm" >&5 |
2900 if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then | 3039 if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then |
2901 echo $ac_n "(cached) $ac_c" 1>&6 | 3040 echo $ac_n "(cached) $ac_c" 1>&6 |
2902 else | 3041 else |
2903 cat > conftest.$ac_ext <<EOF | 3042 cat > conftest.$ac_ext <<EOF |
2904 #line 2905 "configure" | 3043 #line 3044 "configure" |
2905 #include "confdefs.h" | 3044 #include "confdefs.h" |
2906 #include <time.h> | 3045 #include <time.h> |
2907 int main() { | 3046 int main() { |
2908 struct tm t; t.tm_gmtoff = 0 | 3047 struct tm t; t.tm_gmtoff = 0 |
2909 ; return 0; } | 3048 ; return 0; } |
2910 EOF | 3049 EOF |
2911 if { (eval echo configure:2912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 3050 if { (eval echo configure:3051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2912 rm -rf conftest* | 3051 rm -rf conftest* |
2913 emacs_cv_tm_gmtoff=yes | 3052 emacs_cv_tm_gmtoff=yes |
2914 else | 3053 else |
2915 echo "configure: failed program was:" >&5 | 3054 echo "configure: failed program was:" >&5 |
2916 cat conftest.$ac_ext >&5 | 3055 cat conftest.$ac_ext >&5 |
2928 | 3067 |
2929 fi | 3068 fi |
2930 | 3069 |
2931 | 3070 |
2932 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6 | 3071 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6 |
2933 echo "configure:2934: checking for ${CC-cc} option to accept ANSI C" >&5 | 3072 echo "configure:3073: checking for ${CC-cc} option to accept ANSI C" >&5 |
2934 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then | 3073 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then |
2935 echo $ac_n "(cached) $ac_c" 1>&6 | 3074 echo $ac_n "(cached) $ac_c" 1>&6 |
2936 else | 3075 else |
2937 ac_cv_prog_cc_stdc=no | 3076 ac_cv_prog_cc_stdc=no |
2938 ac_save_CC="$CC" | 3077 ac_save_CC="$CC" |
2945 # SVR4 -Xc -D__EXTENSIONS__ | 3084 # SVR4 -Xc -D__EXTENSIONS__ |
2946 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 3085 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
2947 do | 3086 do |
2948 CC="$ac_save_CC $ac_arg" | 3087 CC="$ac_save_CC $ac_arg" |
2949 cat > conftest.$ac_ext <<EOF | 3088 cat > conftest.$ac_ext <<EOF |
2950 #line 2951 "configure" | 3089 #line 3090 "configure" |
2951 #include "confdefs.h" | 3090 #include "confdefs.h" |
2952 #include <stdarg.h> | 3091 #include <stdarg.h> |
2953 #include <stdio.h> | 3092 #include <stdio.h> |
2954 #include <sys/types.h> | 3093 #include <sys/types.h> |
2955 #include <sys/stat.h> | 3094 #include <sys/stat.h> |
2979 char **argv; | 3118 char **argv; |
2980 int main() { | 3119 int main() { |
2981 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | 3120 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
2982 ; return 0; } | 3121 ; return 0; } |
2983 EOF | 3122 EOF |
2984 if { (eval echo configure:2985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3123 if { (eval echo configure:3124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2985 rm -rf conftest* | 3124 rm -rf conftest* |
2986 ac_cv_prog_cc_stdc="$ac_arg"; break | 3125 ac_cv_prog_cc_stdc="$ac_arg"; break |
2987 else | 3126 else |
2988 echo "configure: failed program was:" >&5 | 3127 echo "configure: failed program was:" >&5 |
2989 cat conftest.$ac_ext >&5 | 3128 cat conftest.$ac_ext >&5 |
3001 echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6 | 3140 echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6 |
3002 CC="$CC $ac_cv_prog_cc_stdc" ;; | 3141 CC="$CC $ac_cv_prog_cc_stdc" ;; |
3003 esac | 3142 esac |
3004 | 3143 |
3005 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6 | 3144 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6 |
3006 echo "configure:3007: checking for function prototypes" >&5 | 3145 echo "configure:3146: checking for function prototypes" >&5 |
3007 if test "$ac_cv_prog_cc_stdc" != no; then | 3146 if test "$ac_cv_prog_cc_stdc" != no; then |
3008 echo "$ac_t""yes" 1>&6 | 3147 echo "$ac_t""yes" 1>&6 |
3009 cat >> confdefs.h <<\EOF | 3148 cat >> confdefs.h <<\EOF |
3010 #define PROTOTYPES 1 | 3149 #define PROTOTYPES 1 |
3011 EOF | 3150 EOF |
3013 else | 3152 else |
3014 echo "$ac_t""no" 1>&6 | 3153 echo "$ac_t""no" 1>&6 |
3015 fi | 3154 fi |
3016 | 3155 |
3017 echo $ac_n "checking for working volatile""... $ac_c" 1>&6 | 3156 echo $ac_n "checking for working volatile""... $ac_c" 1>&6 |
3018 echo "configure:3019: checking for working volatile" >&5 | 3157 echo "configure:3158: checking for working volatile" >&5 |
3019 if eval "test \"`echo '$''{'ac_cv_c_volatile'+set}'`\" = set"; then | 3158 if eval "test \"`echo '$''{'ac_cv_c_volatile'+set}'`\" = set"; then |
3020 echo $ac_n "(cached) $ac_c" 1>&6 | 3159 echo $ac_n "(cached) $ac_c" 1>&6 |
3021 else | 3160 else |
3022 cat > conftest.$ac_ext <<EOF | 3161 cat > conftest.$ac_ext <<EOF |
3023 #line 3024 "configure" | 3162 #line 3163 "configure" |
3024 #include "confdefs.h" | 3163 #include "confdefs.h" |
3025 | 3164 |
3026 int main() { | 3165 int main() { |
3027 | 3166 |
3028 volatile int x; | 3167 volatile int x; |
3029 int * volatile y; | 3168 int * volatile y; |
3030 ; return 0; } | 3169 ; return 0; } |
3031 EOF | 3170 EOF |
3032 if { (eval echo configure:3033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3171 if { (eval echo configure:3172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3033 rm -rf conftest* | 3172 rm -rf conftest* |
3034 ac_cv_c_volatile=yes | 3173 ac_cv_c_volatile=yes |
3035 else | 3174 else |
3036 echo "configure: failed program was:" >&5 | 3175 echo "configure: failed program was:" >&5 |
3037 cat conftest.$ac_ext >&5 | 3176 cat conftest.$ac_ext >&5 |
3048 EOF | 3187 EOF |
3049 | 3188 |
3050 fi | 3189 fi |
3051 | 3190 |
3052 echo $ac_n "checking for working const""... $ac_c" 1>&6 | 3191 echo $ac_n "checking for working const""... $ac_c" 1>&6 |
3053 echo "configure:3054: checking for working const" >&5 | 3192 echo "configure:3193: checking for working const" >&5 |
3054 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then | 3193 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
3055 echo $ac_n "(cached) $ac_c" 1>&6 | 3194 echo $ac_n "(cached) $ac_c" 1>&6 |
3056 else | 3195 else |
3057 cat > conftest.$ac_ext <<EOF | 3196 cat > conftest.$ac_ext <<EOF |
3058 #line 3059 "configure" | 3197 #line 3198 "configure" |
3059 #include "confdefs.h" | 3198 #include "confdefs.h" |
3060 | 3199 |
3061 int main() { | 3200 int main() { |
3062 | 3201 |
3063 /* Ultrix mips cc rejects this. */ | 3202 /* Ultrix mips cc rejects this. */ |
3064 typedef int charset[2]; const charset x; | 3203 typedef int charset[2]; const charset x = {0,0}; |
3065 /* SunOS 4.1.1 cc rejects this. */ | 3204 /* SunOS 4.1.1 cc rejects this. */ |
3066 char const *const *ccp; | 3205 char const *const *ccp; |
3067 char **p; | 3206 char **p; |
3068 /* NEC SVR4.0.2 mips cc rejects this. */ | 3207 /* NEC SVR4.0.2 mips cc rejects this. */ |
3069 struct point {int x, y;}; | 3208 struct point {int x, y;}; |
3102 const int foo = 10; | 3241 const int foo = 10; |
3103 } | 3242 } |
3104 | 3243 |
3105 ; return 0; } | 3244 ; return 0; } |
3106 EOF | 3245 EOF |
3107 if { (eval echo configure:3108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3246 if { (eval echo configure:3247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3108 rm -rf conftest* | 3247 rm -rf conftest* |
3109 ac_cv_c_const=yes | 3248 ac_cv_c_const=yes |
3110 else | 3249 else |
3111 echo "configure: failed program was:" >&5 | 3250 echo "configure: failed program was:" >&5 |
3112 cat conftest.$ac_ext >&5 | 3251 cat conftest.$ac_ext >&5 |
3123 EOF | 3262 EOF |
3124 | 3263 |
3125 fi | 3264 fi |
3126 | 3265 |
3127 echo $ac_n "checking for void * support""... $ac_c" 1>&6 | 3266 echo $ac_n "checking for void * support""... $ac_c" 1>&6 |
3128 echo "configure:3129: checking for void * support" >&5 | 3267 echo "configure:3268: checking for void * support" >&5 |
3129 if eval "test \"`echo '$''{'emacs_cv_void_star'+set}'`\" = set"; then | 3268 if eval "test \"`echo '$''{'emacs_cv_void_star'+set}'`\" = set"; then |
3130 echo $ac_n "(cached) $ac_c" 1>&6 | 3269 echo $ac_n "(cached) $ac_c" 1>&6 |
3131 else | 3270 else |
3132 cat > conftest.$ac_ext <<EOF | 3271 cat > conftest.$ac_ext <<EOF |
3133 #line 3134 "configure" | 3272 #line 3273 "configure" |
3134 #include "confdefs.h" | 3273 #include "confdefs.h" |
3135 | 3274 |
3136 int main() { | 3275 int main() { |
3137 void * foo; | 3276 void * foo; |
3138 ; return 0; } | 3277 ; return 0; } |
3139 EOF | 3278 EOF |
3140 if { (eval echo configure:3141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3279 if { (eval echo configure:3280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3141 rm -rf conftest* | 3280 rm -rf conftest* |
3142 emacs_cv_void_star=yes | 3281 emacs_cv_void_star=yes |
3143 else | 3282 else |
3144 echo "configure: failed program was:" >&5 | 3283 echo "configure: failed program was:" >&5 |
3145 cat conftest.$ac_ext >&5 | 3284 cat conftest.$ac_ext >&5 |
3161 EOF | 3300 EOF |
3162 | 3301 |
3163 fi | 3302 fi |
3164 | 3303 |
3165 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | 3304 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
3166 echo "configure:3167: checking whether ${MAKE-make} sets \${MAKE}" >&5 | 3305 echo "configure:3306: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
3167 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` | 3306 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
3168 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | 3307 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
3169 echo $ac_n "(cached) $ac_c" 1>&6 | 3308 echo $ac_n "(cached) $ac_c" 1>&6 |
3170 else | 3309 else |
3171 cat > conftestmake <<\EOF | 3310 cat > conftestmake <<\EOF |
3189 SET_MAKE="MAKE=${MAKE-make}" | 3328 SET_MAKE="MAKE=${MAKE-make}" |
3190 fi | 3329 fi |
3191 | 3330 |
3192 | 3331 |
3193 echo $ac_n "checking for long file names""... $ac_c" 1>&6 | 3332 echo $ac_n "checking for long file names""... $ac_c" 1>&6 |
3194 echo "configure:3195: checking for long file names" >&5 | 3333 echo "configure:3334: checking for long file names" >&5 |
3195 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then | 3334 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then |
3196 echo $ac_n "(cached) $ac_c" 1>&6 | 3335 echo $ac_n "(cached) $ac_c" 1>&6 |
3197 else | 3336 else |
3198 ac_cv_sys_long_file_names=yes | 3337 ac_cv_sys_long_file_names=yes |
3199 # Test for long file names in all the places we know might matter: | 3338 # Test for long file names in all the places we know might matter: |
3240 # If we find X, set shell vars x_includes and x_libraries to the | 3379 # If we find X, set shell vars x_includes and x_libraries to the |
3241 # paths, otherwise set no_x=yes. | 3380 # paths, otherwise set no_x=yes. |
3242 # Uses ac_ vars as temps to allow command line to override cache and checks. | 3381 # Uses ac_ vars as temps to allow command line to override cache and checks. |
3243 # --without-x overrides everything else, but does not touch the cache. | 3382 # --without-x overrides everything else, but does not touch the cache. |
3244 echo $ac_n "checking for X""... $ac_c" 1>&6 | 3383 echo $ac_n "checking for X""... $ac_c" 1>&6 |
3245 echo "configure:3246: checking for X" >&5 | 3384 echo "configure:3385: checking for X" >&5 |
3246 | 3385 |
3247 # Check whether --with-x or --without-x was given. | 3386 # Check whether --with-x or --without-x was given. |
3248 if test "${with_x+set}" = set; then | 3387 if test "${with_x+set}" = set; then |
3249 withval="$with_x" | 3388 withval="$with_x" |
3250 : | 3389 : |
3302 # Guess where to find include files, by looking for this one X11 .h file. | 3441 # Guess where to find include files, by looking for this one X11 .h file. |
3303 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | 3442 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h |
3304 | 3443 |
3305 # First, try using that file with no special directory specified. | 3444 # First, try using that file with no special directory specified. |
3306 cat > conftest.$ac_ext <<EOF | 3445 cat > conftest.$ac_ext <<EOF |
3307 #line 3308 "configure" | 3446 #line 3447 "configure" |
3308 #include "confdefs.h" | 3447 #include "confdefs.h" |
3309 #include <$x_direct_test_include> | 3448 #include <$x_direct_test_include> |
3310 EOF | 3449 EOF |
3311 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 3450 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
3312 { (eval echo configure:3313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 3451 { (eval echo configure:3452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3313 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 3452 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3314 if test -z "$ac_err"; then | 3453 if test -z "$ac_err"; then |
3315 rm -rf conftest* | 3454 rm -rf conftest* |
3316 # We can compile using X headers with no special include directory. | 3455 # We can compile using X headers with no special include directory. |
3317 ac_x_includes= | 3456 ac_x_includes= |
3376 # See if we find them without any special options. | 3515 # See if we find them without any special options. |
3377 # Don't add to $LIBS permanently. | 3516 # Don't add to $LIBS permanently. |
3378 ac_save_LIBS="$LIBS" | 3517 ac_save_LIBS="$LIBS" |
3379 LIBS="-l$x_direct_test_library $LIBS" | 3518 LIBS="-l$x_direct_test_library $LIBS" |
3380 cat > conftest.$ac_ext <<EOF | 3519 cat > conftest.$ac_ext <<EOF |
3381 #line 3382 "configure" | 3520 #line 3521 "configure" |
3382 #include "confdefs.h" | 3521 #include "confdefs.h" |
3383 | 3522 |
3384 int main() { | 3523 int main() { |
3385 ${x_direct_test_function}() | 3524 ${x_direct_test_function}() |
3386 ; return 0; } | 3525 ; return 0; } |
3387 EOF | 3526 EOF |
3388 if { (eval echo configure:3389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 3527 if { (eval echo configure:3528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3389 rm -rf conftest* | 3528 rm -rf conftest* |
3390 LIBS="$ac_save_LIBS" | 3529 LIBS="$ac_save_LIBS" |
3391 # We can link X programs with no special library path. | 3530 # We can link X programs with no special library path. |
3392 ac_x_libraries= | 3531 ac_x_libraries= |
3393 else | 3532 else |
3553 opsysfile="s/hpux9shxr4.h" | 3692 opsysfile="s/hpux9shxr4.h" |
3554 ;; | 3693 ;; |
3555 esac | 3694 esac |
3556 fi | 3695 fi |
3557 | 3696 |
3558 #### Extract some information from the operating system and machine files. | |
3559 | |
3560 echo "checking the machine- and system-dependent files to find out | |
3561 - which libraries the lib-src programs will want, and | |
3562 - whether the GNU malloc routines are usable" 1>&6 | |
3563 echo "configure:3564: checking the machine- and system-dependent files to find out | |
3564 - which libraries the lib-src programs will want, and | |
3565 - whether the GNU malloc routines are usable" >&5 | |
3566 | |
3567 ### First figure out CFLAGS (which we use for running the compiler here) | |
3568 ### and REAL_CFLAGS (which we use for real compilation). | |
3569 ### The two are the same except on a few systems, where they are made | |
3570 ### different to work around various lossages. For example, | |
3571 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g | |
3572 ### as implying static linking. | |
3573 | |
3574 ### If the CFLAGS env var is specified, we use that value | |
3575 ### instead of the default. | |
3576 | |
3577 ### It's not important that this name contain the PID; you can't run | |
3578 ### two configures in the same directory and have anything work | |
3579 ### anyway. | |
3580 tempcname="conftest.c" | |
3581 | |
3582 echo ' | |
3583 #include "'${srcdir}'/src/'${opsysfile}'" | |
3584 #include "'${srcdir}'/src/'${machfile}'" | |
3585 #ifndef LIBS_MACHINE | |
3586 #define LIBS_MACHINE | |
3587 #endif | |
3588 #ifndef LIBS_SYSTEM | |
3589 #define LIBS_SYSTEM | |
3590 #endif | |
3591 #ifndef C_SWITCH_SYSTEM | |
3592 #define C_SWITCH_SYSTEM | |
3593 #endif | |
3594 #ifndef C_SWITCH_MACHINE | |
3595 #define C_SWITCH_MACHINE | |
3596 #endif | |
3597 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM | |
3598 configure___ c_switch_system=C_SWITCH_SYSTEM | |
3599 configure___ c_switch_machine=C_SWITCH_MACHINE | |
3600 | |
3601 #ifndef LIB_X11_LIB | |
3602 #define LIB_X11_LIB -lX11 | |
3603 #endif | |
3604 | |
3605 #ifndef LIBX11_MACHINE | |
3606 #define LIBX11_MACHINE | |
3607 #endif | |
3608 | |
3609 #ifndef LIBX11_SYSTEM | |
3610 #define LIBX11_SYSTEM | |
3611 #endif | |
3612 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM | |
3613 | |
3614 #ifdef UNEXEC | |
3615 configure___ unexec=UNEXEC | |
3616 #else | |
3617 configure___ unexec=unexec.o | |
3618 #endif | |
3619 | |
3620 #ifdef SYSTEM_MALLOC | |
3621 configure___ system_malloc=yes | |
3622 #else | |
3623 configure___ system_malloc=no | |
3624 #endif | |
3625 | |
3626 #ifndef C_DEBUG_SWITCH | |
3627 #define C_DEBUG_SWITCH -g | |
3628 #endif | |
3629 | |
3630 #ifndef C_OPTIMIZE_SWITCH | |
3631 #ifdef __GNUC__ | |
3632 #define C_OPTIMIZE_SWITCH -O2 | |
3633 #else | |
3634 #define C_OPTIMIZE_SWITCH -O | |
3635 #endif | |
3636 #endif | |
3637 | |
3638 #ifndef LD_SWITCH_MACHINE | |
3639 #define LD_SWITCH_MACHINE | |
3640 #endif | |
3641 | |
3642 #ifndef LD_SWITCH_SYSTEM | |
3643 #define LD_SWITCH_SYSTEM | |
3644 #endif | |
3645 | |
3646 #ifndef LD_SWITCH_X_SITE_AUX | |
3647 #define LD_SWITCH_X_SITE_AUX | |
3648 #endif | |
3649 | |
3650 configure___ ld_switch_system=LD_SWITCH_SYSTEM | |
3651 configure___ ld_switch_machine=LD_SWITCH_MACHINE | |
3652 | |
3653 #ifdef THIS_IS_CONFIGURE | |
3654 | |
3655 /* Get the CFLAGS for tests in configure. */ | |
3656 #ifdef __GNUC__ | |
3657 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
3658 #else | |
3659 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
3660 #endif | |
3661 | |
3662 #else /* not THIS_IS_CONFIGURE */ | |
3663 | |
3664 /* Get the CFLAGS for real compilation. */ | |
3665 #ifdef __GNUC__ | |
3666 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
3667 #else | |
3668 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
3669 #endif | |
3670 | |
3671 #endif /* not THIS_IS_CONFIGURE */ | |
3672 ' > ${tempcname} | |
3673 | |
3674 # The value of CPP is a quoted variable reference, so we need to do this | |
3675 # to get its actual value... | |
3676 CPP=`eval "echo $CPP"` | |
3677 eval `${CPP} -Isrc ${tempcname} \ | |
3678 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
3679 if test "x$SPECIFIED_CFLAGS" = x; then | |
3680 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \ | |
3681 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
3682 else | |
3683 REAL_CFLAGS="$CFLAGS" | |
3684 fi | |
3685 rm ${tempcname} | |
3686 | |
3687 ac_link="$ac_link $ld_switch_machine $ld_switch_system" | |
3688 | |
3689 ### Compute the unexec source name from the object name. | 3697 ### Compute the unexec source name from the object name. |
3690 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`" | 3698 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`" |
3691 | 3699 |
3692 # Do the opsystem or machine files prohibit the use of the GNU malloc? | 3700 # Do the opsystem or machine files prohibit the use of the GNU malloc? |
3693 # Assume not, until told otherwise. | 3701 # Assume not, until told otherwise. |
3694 GNU_MALLOC=yes | 3702 GNU_MALLOC=yes |
3695 doug_lea_malloc=yes | 3703 doug_lea_malloc=yes |
3696 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 | 3704 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 |
3697 echo "configure:3698: checking for malloc_get_state" >&5 | 3705 echo "configure:3706: checking for malloc_get_state" >&5 |
3698 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then | 3706 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then |
3699 echo $ac_n "(cached) $ac_c" 1>&6 | 3707 echo $ac_n "(cached) $ac_c" 1>&6 |
3700 else | 3708 else |
3701 cat > conftest.$ac_ext <<EOF | 3709 cat > conftest.$ac_ext <<EOF |
3702 #line 3703 "configure" | 3710 #line 3711 "configure" |
3703 #include "confdefs.h" | 3711 #include "confdefs.h" |
3704 /* System header to define __stub macros and hopefully few prototypes, | 3712 /* System header to define __stub macros and hopefully few prototypes, |
3705 which can conflict with char malloc_get_state(); below. */ | 3713 which can conflict with char malloc_get_state(); below. */ |
3706 #include <assert.h> | 3714 #include <assert.h> |
3707 /* Override any gcc2 internal prototype to avoid an error. */ | 3715 /* Override any gcc2 internal prototype to avoid an error. */ |
3720 malloc_get_state(); | 3728 malloc_get_state(); |
3721 #endif | 3729 #endif |
3722 | 3730 |
3723 ; return 0; } | 3731 ; return 0; } |
3724 EOF | 3732 EOF |
3725 if { (eval echo configure:3726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 3733 if { (eval echo configure:3734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3726 rm -rf conftest* | 3734 rm -rf conftest* |
3727 eval "ac_cv_func_malloc_get_state=yes" | 3735 eval "ac_cv_func_malloc_get_state=yes" |
3728 else | 3736 else |
3729 echo "configure: failed program was:" >&5 | 3737 echo "configure: failed program was:" >&5 |
3730 cat conftest.$ac_ext >&5 | 3738 cat conftest.$ac_ext >&5 |
3741 echo "$ac_t""no" 1>&6 | 3749 echo "$ac_t""no" 1>&6 |
3742 doug_lea_malloc=no | 3750 doug_lea_malloc=no |
3743 fi | 3751 fi |
3744 | 3752 |
3745 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 | 3753 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 |
3746 echo "configure:3747: checking for malloc_set_state" >&5 | 3754 echo "configure:3755: checking for malloc_set_state" >&5 |
3747 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then | 3755 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then |
3748 echo $ac_n "(cached) $ac_c" 1>&6 | 3756 echo $ac_n "(cached) $ac_c" 1>&6 |
3749 else | 3757 else |
3750 cat > conftest.$ac_ext <<EOF | 3758 cat > conftest.$ac_ext <<EOF |
3751 #line 3752 "configure" | 3759 #line 3760 "configure" |
3752 #include "confdefs.h" | 3760 #include "confdefs.h" |
3753 /* System header to define __stub macros and hopefully few prototypes, | 3761 /* System header to define __stub macros and hopefully few prototypes, |
3754 which can conflict with char malloc_set_state(); below. */ | 3762 which can conflict with char malloc_set_state(); below. */ |
3755 #include <assert.h> | 3763 #include <assert.h> |
3756 /* Override any gcc2 internal prototype to avoid an error. */ | 3764 /* Override any gcc2 internal prototype to avoid an error. */ |
3769 malloc_set_state(); | 3777 malloc_set_state(); |
3770 #endif | 3778 #endif |
3771 | 3779 |
3772 ; return 0; } | 3780 ; return 0; } |
3773 EOF | 3781 EOF |
3774 if { (eval echo configure:3775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 3782 if { (eval echo configure:3783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3775 rm -rf conftest* | 3783 rm -rf conftest* |
3776 eval "ac_cv_func_malloc_set_state=yes" | 3784 eval "ac_cv_func_malloc_set_state=yes" |
3777 else | 3785 else |
3778 echo "configure: failed program was:" >&5 | 3786 echo "configure: failed program was:" >&5 |
3779 cat conftest.$ac_ext >&5 | 3787 cat conftest.$ac_ext >&5 |
3790 echo "$ac_t""no" 1>&6 | 3798 echo "$ac_t""no" 1>&6 |
3791 doug_lea_malloc=no | 3799 doug_lea_malloc=no |
3792 fi | 3800 fi |
3793 | 3801 |
3794 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 | 3802 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 |
3795 echo "configure:3796: checking whether __after_morecore_hook exists" >&5 | 3803 echo "configure:3804: checking whether __after_morecore_hook exists" >&5 |
3796 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then | 3804 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then |
3797 echo $ac_n "(cached) $ac_c" 1>&6 | 3805 echo $ac_n "(cached) $ac_c" 1>&6 |
3798 else | 3806 else |
3799 cat > conftest.$ac_ext <<EOF | 3807 cat > conftest.$ac_ext <<EOF |
3800 #line 3801 "configure" | 3808 #line 3809 "configure" |
3801 #include "confdefs.h" | 3809 #include "confdefs.h" |
3802 extern void (* __after_morecore_hook)(); | 3810 extern void (* __after_morecore_hook)(); |
3803 int main() { | 3811 int main() { |
3804 __after_morecore_hook = 0 | 3812 __after_morecore_hook = 0 |
3805 ; return 0; } | 3813 ; return 0; } |
3806 EOF | 3814 EOF |
3807 if { (eval echo configure:3808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 3815 if { (eval echo configure:3816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3808 rm -rf conftest* | 3816 rm -rf conftest* |
3809 emacs_cv_var___after_morecore_hook=yes | 3817 emacs_cv_var___after_morecore_hook=yes |
3810 else | 3818 else |
3811 echo "configure: failed program was:" >&5 | 3819 echo "configure: failed program was:" >&5 |
3812 cat conftest.$ac_ext >&5 | 3820 cat conftest.$ac_ext >&5 |
3836 | 3844 |
3837 fi | 3845 fi |
3838 | 3846 |
3839 if test x"${REL_ALLOC}" = x; then | 3847 if test x"${REL_ALLOC}" = x; then |
3840 REL_ALLOC=${GNU_MALLOC} | 3848 REL_ALLOC=${GNU_MALLOC} |
3841 fi | |
3842 | |
3843 #### Add the libraries to LIBS and check for some functions. | |
3844 | |
3845 if test x"${OVERRIDE_CPPFLAGS}" != x; then | |
3846 CPPFLAGS="${OVERRIDE_CPPFLAGS}" | |
3847 else | |
3848 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS" | |
3849 fi | 3849 fi |
3850 | 3850 |
3851 LIBS="$libsrc_libs $LIBS" | 3851 LIBS="$libsrc_libs $LIBS" |
3852 | 3852 |
3853 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | 3853 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
5074 cat > conftest.$ac_ext <<EOF | 5074 cat > conftest.$ac_ext <<EOF |
5075 #line 5076 "configure" | 5075 #line 5076 "configure" |
5076 #include "confdefs.h" | 5076 #include "confdefs.h" |
5077 #include <alloca.h> | 5077 #include <alloca.h> |
5078 int main() { | 5078 int main() { |
5079 char *p = alloca(2 * sizeof(int)); | 5079 void *p = alloca(2 * sizeof(int)); |
5080 ; return 0; } | 5080 ; return 0; } |
5081 EOF | 5081 EOF |
5082 if { (eval echo configure:5083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5082 if { (eval echo configure:5083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5083 rm -rf conftest* | 5083 rm -rf conftest* |
5084 ac_cv_header_alloca_h=yes | 5084 ac_cv_header_alloca_h=yes |